configure revision 7965d9ac
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for xf86-video-i128 1.3.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554 555# Check that we are running under the correct shell. 556SHELL=${CONFIG_SHELL-/bin/sh} 557 558case X$ECHO in 559X*--fallback-echo) 560 # Remove one level of quotation (which was required for Make). 561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 562 ;; 563esac 564 565echo=${ECHO-echo} 566if test "X$1" = X--no-reexec; then 567 # Discard the --no-reexec flag, and continue. 568 shift 569elif test "X$1" = X--fallback-echo; then 570 # Avoid inline document here, it may be left over 571 : 572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 573 # Yippee, $echo works! 574 : 575else 576 # Restart under the correct shell. 577 exec $SHELL "$0" --no-reexec ${1+"$@"} 578fi 579 580if test "X$1" = X--fallback-echo; then 581 # used as fallback echo 582 shift 583 cat <<EOF 584$* 585EOF 586 exit 0 587fi 588 589# The HP-UX ksh and POSIX shell print the target directory to stdout 590# if CDPATH is set. 591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 592 593if test -z "$ECHO"; then 594if test "X${echo_test_string+set}" != Xset; then 595# find a string as large as possible, as long as the shell can cope with it 596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 598 if (echo_test_string=`eval $cmd`) 2>/dev/null && 599 echo_test_string=`eval $cmd` && 600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 601 then 602 break 603 fi 604 done 605fi 606 607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 : 611else 612 # The Solaris, AIX, and Digital Unix default echo programs unquote 613 # backslashes. This makes it impossible to quote backslashes using 614 # echo "$something" | sed 's/\\/\\\\/g' 615 # 616 # So, first we look for a working echo in the user's PATH. 617 618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 619 for dir in $PATH /usr/ucb; do 620 IFS="$lt_save_ifs" 621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 624 test "X$echo_testing_string" = "X$echo_test_string"; then 625 echo="$dir/echo" 626 break 627 fi 628 done 629 IFS="$lt_save_ifs" 630 631 if test "X$echo" = Xecho; then 632 # We didn't find a better echo, so look for alternatives. 633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 # This shell has a builtin print -r that does the trick. 637 echo='print -r' 638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 639 test "X$CONFIG_SHELL" != X/bin/ksh; then 640 # If we have ksh, try running configure again with it. 641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 642 export ORIGINAL_CONFIG_SHELL 643 CONFIG_SHELL=/bin/ksh 644 export CONFIG_SHELL 645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 646 else 647 # Try using printf. 648 echo='printf %s\n' 649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 # Cool, printf works 653 : 654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 655 test "X$echo_testing_string" = 'X\t' && 656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 659 export CONFIG_SHELL 660 SHELL="$CONFIG_SHELL" 661 export SHELL 662 echo="$CONFIG_SHELL $0 --fallback-echo" 663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 664 test "X$echo_testing_string" = 'X\t' && 665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 666 test "X$echo_testing_string" = "X$echo_test_string"; then 667 echo="$CONFIG_SHELL $0 --fallback-echo" 668 else 669 # maybe with a smaller string... 670 prev=: 671 672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 674 then 675 break 676 fi 677 prev="$cmd" 678 done 679 680 if test "$prev" != 'sed 50q "$0"'; then 681 echo_test_string=`eval $prev` 682 export echo_test_string 683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 684 else 685 # Oops. We lost completely, so just stick with echo. 686 echo=echo 687 fi 688 fi 689 fi 690 fi 691fi 692fi 693 694# Copy echo and quote the copy suitably for passing to libtool from 695# the Makefile, instead of quoting the original, which is used later. 696ECHO=$echo 697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 699fi 700 701 702 703 704tagnames=${tagnames+${tagnames},}CXX 705 706tagnames=${tagnames+${tagnames},}F77 707 708exec 7<&0 </dev/null 6>&1 709 710# Name of the host. 711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 712# so uname gets run too. 713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 714 715# 716# Initializations. 717# 718ac_default_prefix=/usr/local 719ac_clean_files= 720ac_config_libobj_dir=. 721LIBOBJS= 722cross_compiling=no 723subdirs= 724MFLAGS= 725MAKEFLAGS= 726SHELL=${CONFIG_SHELL-/bin/sh} 727 728# Identity of this package. 729PACKAGE_NAME='xf86-video-i128' 730PACKAGE_TARNAME='xf86-video-i128' 731PACKAGE_VERSION='1.3.1' 732PACKAGE_STRING='xf86-video-i128 1.3.1' 733PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 734 735ac_unique_file="Makefile.am" 736# Factoring default headers for most tests. 737ac_includes_default="\ 738#include <stdio.h> 739#ifdef HAVE_SYS_TYPES_H 740# include <sys/types.h> 741#endif 742#ifdef HAVE_SYS_STAT_H 743# include <sys/stat.h> 744#endif 745#ifdef STDC_HEADERS 746# include <stdlib.h> 747# include <stddef.h> 748#else 749# ifdef HAVE_STDLIB_H 750# include <stdlib.h> 751# endif 752#endif 753#ifdef HAVE_STRING_H 754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 755# include <memory.h> 756# endif 757# include <string.h> 758#endif 759#ifdef HAVE_STRINGS_H 760# include <strings.h> 761#endif 762#ifdef HAVE_INTTYPES_H 763# include <inttypes.h> 764#endif 765#ifdef HAVE_STDINT_H 766# include <stdint.h> 767#endif 768#ifdef HAVE_UNISTD_H 769# include <unistd.h> 770#endif" 771 772ac_subst_vars='SHELL 773PATH_SEPARATOR 774PACKAGE_NAME 775PACKAGE_TARNAME 776PACKAGE_VERSION 777PACKAGE_STRING 778PACKAGE_BUGREPORT 779exec_prefix 780prefix 781program_transform_name 782bindir 783sbindir 784libexecdir 785datarootdir 786datadir 787sysconfdir 788sharedstatedir 789localstatedir 790includedir 791oldincludedir 792docdir 793infodir 794htmldir 795dvidir 796pdfdir 797psdir 798libdir 799localedir 800mandir 801DEFS 802ECHO_C 803ECHO_N 804ECHO_T 805LIBS 806build_alias 807host_alias 808target_alias 809INSTALL_PROGRAM 810INSTALL_SCRIPT 811INSTALL_DATA 812am__isrc 813CYGPATH_W 814PACKAGE 815VERSION 816ACLOCAL 817AUTOCONF 818AUTOMAKE 819AUTOHEADER 820MAKEINFO 821install_sh 822STRIP 823INSTALL_STRIP_PROGRAM 824mkdir_p 825AWK 826SET_MAKE 827am__leading_dot 828AMTAR 829am__tar 830am__untar 831MAINTAINER_MODE_TRUE 832MAINTAINER_MODE_FALSE 833MAINT 834build 835build_cpu 836build_vendor 837build_os 838host 839host_cpu 840host_vendor 841host_os 842CC 843CFLAGS 844LDFLAGS 845CPPFLAGS 846ac_ct_CC 847EXEEXT 848OBJEXT 849DEPDIR 850am__include 851am__quote 852AMDEP_TRUE 853AMDEP_FALSE 854AMDEPBACKSLASH 855CCDEPMODE 856am__fastdepCC_TRUE 857am__fastdepCC_FALSE 858SED 859GREP 860EGREP 861LN_S 862ECHO 863AR 864RANLIB 865DSYMUTIL 866NMEDIT 867CPP 868CXX 869CXXFLAGS 870ac_ct_CXX 871CXXDEPMODE 872am__fastdepCXX_TRUE 873am__fastdepCXX_FALSE 874CXXCPP 875F77 876FFLAGS 877ac_ct_F77 878LIBTOOL 879PKG_CONFIG 880XORG_CFLAGS 881XORG_LIBS 882PCIACCESS_CFLAGS 883PCIACCESS_LIBS 884XSERVER_LIBPCIACCESS_TRUE 885XSERVER_LIBPCIACCESS_FALSE 886moduledir 887DRIVER_NAME 888APP_MAN_SUFFIX 889LIB_MAN_SUFFIX 890FILE_MAN_SUFFIX 891MISC_MAN_SUFFIX 892DRIVER_MAN_SUFFIX 893ADMIN_MAN_SUFFIX 894APP_MAN_DIR 895LIB_MAN_DIR 896FILE_MAN_DIR 897MISC_MAN_DIR 898DRIVER_MAN_DIR 899ADMIN_MAN_DIR 900LINUXDOC 901PS2PDF 902BUILD_LINUXDOC_TRUE 903BUILD_LINUXDOC_FALSE 904BUILD_PDFDOC_TRUE 905BUILD_PDFDOC_FALSE 906MAKE_TEXT 907MAKE_PS 908MAKE_PDF 909MAKE_HTML 910LIBOBJS 911LTLIBOBJS' 912ac_subst_files='' 913 ac_precious_vars='build_alias 914host_alias 915target_alias 916CC 917CFLAGS 918LDFLAGS 919LIBS 920CPPFLAGS 921CPP 922CXX 923CXXFLAGS 924CCC 925CXXCPP 926F77 927FFLAGS 928PKG_CONFIG 929XORG_CFLAGS 930XORG_LIBS 931PCIACCESS_CFLAGS 932PCIACCESS_LIBS' 933 934 935# Initialize some variables set by options. 936ac_init_help= 937ac_init_version=false 938# The variables have the same names as the options, with 939# dashes changed to underlines. 940cache_file=/dev/null 941exec_prefix=NONE 942no_create= 943no_recursion= 944prefix=NONE 945program_prefix=NONE 946program_suffix=NONE 947program_transform_name=s,x,x, 948silent= 949site= 950srcdir= 951verbose= 952x_includes=NONE 953x_libraries=NONE 954 955# Installation directory options. 956# These are left unexpanded so users can "make install exec_prefix=/foo" 957# and all the variables that are supposed to be based on exec_prefix 958# by default will actually change. 959# Use braces instead of parens because sh, perl, etc. also accept them. 960# (The list follows the same order as the GNU Coding Standards.) 961bindir='${exec_prefix}/bin' 962sbindir='${exec_prefix}/sbin' 963libexecdir='${exec_prefix}/libexec' 964datarootdir='${prefix}/share' 965datadir='${datarootdir}' 966sysconfdir='${prefix}/etc' 967sharedstatedir='${prefix}/com' 968localstatedir='${prefix}/var' 969includedir='${prefix}/include' 970oldincludedir='/usr/include' 971docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 972infodir='${datarootdir}/info' 973htmldir='${docdir}' 974dvidir='${docdir}' 975pdfdir='${docdir}' 976psdir='${docdir}' 977libdir='${exec_prefix}/lib' 978localedir='${datarootdir}/locale' 979mandir='${datarootdir}/man' 980 981ac_prev= 982ac_dashdash= 983for ac_option 984do 985 # If the previous option needs an argument, assign it. 986 if test -n "$ac_prev"; then 987 eval $ac_prev=\$ac_option 988 ac_prev= 989 continue 990 fi 991 992 case $ac_option in 993 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 994 *) ac_optarg=yes ;; 995 esac 996 997 # Accept the important Cygnus configure options, so we can diagnose typos. 998 999 case $ac_dashdash$ac_option in 1000 --) 1001 ac_dashdash=yes ;; 1002 1003 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1004 ac_prev=bindir ;; 1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1006 bindir=$ac_optarg ;; 1007 1008 -build | --build | --buil | --bui | --bu) 1009 ac_prev=build_alias ;; 1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1011 build_alias=$ac_optarg ;; 1012 1013 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1015 ac_prev=cache_file ;; 1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1018 cache_file=$ac_optarg ;; 1019 1020 --config-cache | -C) 1021 cache_file=config.cache ;; 1022 1023 -datadir | --datadir | --datadi | --datad) 1024 ac_prev=datadir ;; 1025 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1026 datadir=$ac_optarg ;; 1027 1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1029 | --dataroo | --dataro | --datar) 1030 ac_prev=datarootdir ;; 1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1033 datarootdir=$ac_optarg ;; 1034 1035 -disable-* | --disable-*) 1036 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1037 # Reject names that are not valid shell variable names. 1038 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1039 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1040 { (exit 1); exit 1; }; } 1041 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1042 eval enable_$ac_feature=no ;; 1043 1044 -docdir | --docdir | --docdi | --doc | --do) 1045 ac_prev=docdir ;; 1046 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1047 docdir=$ac_optarg ;; 1048 1049 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1050 ac_prev=dvidir ;; 1051 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1052 dvidir=$ac_optarg ;; 1053 1054 -enable-* | --enable-*) 1055 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1056 # Reject names that are not valid shell variable names. 1057 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1058 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1059 { (exit 1); exit 1; }; } 1060 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1061 eval enable_$ac_feature=\$ac_optarg ;; 1062 1063 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1064 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1065 | --exec | --exe | --ex) 1066 ac_prev=exec_prefix ;; 1067 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1068 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1069 | --exec=* | --exe=* | --ex=*) 1070 exec_prefix=$ac_optarg ;; 1071 1072 -gas | --gas | --ga | --g) 1073 # Obsolete; use --with-gas. 1074 with_gas=yes ;; 1075 1076 -help | --help | --hel | --he | -h) 1077 ac_init_help=long ;; 1078 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1079 ac_init_help=recursive ;; 1080 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1081 ac_init_help=short ;; 1082 1083 -host | --host | --hos | --ho) 1084 ac_prev=host_alias ;; 1085 -host=* | --host=* | --hos=* | --ho=*) 1086 host_alias=$ac_optarg ;; 1087 1088 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1089 ac_prev=htmldir ;; 1090 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1091 | --ht=*) 1092 htmldir=$ac_optarg ;; 1093 1094 -includedir | --includedir | --includedi | --included | --include \ 1095 | --includ | --inclu | --incl | --inc) 1096 ac_prev=includedir ;; 1097 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1098 | --includ=* | --inclu=* | --incl=* | --inc=*) 1099 includedir=$ac_optarg ;; 1100 1101 -infodir | --infodir | --infodi | --infod | --info | --inf) 1102 ac_prev=infodir ;; 1103 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1104 infodir=$ac_optarg ;; 1105 1106 -libdir | --libdir | --libdi | --libd) 1107 ac_prev=libdir ;; 1108 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1109 libdir=$ac_optarg ;; 1110 1111 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1112 | --libexe | --libex | --libe) 1113 ac_prev=libexecdir ;; 1114 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1115 | --libexe=* | --libex=* | --libe=*) 1116 libexecdir=$ac_optarg ;; 1117 1118 -localedir | --localedir | --localedi | --localed | --locale) 1119 ac_prev=localedir ;; 1120 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1121 localedir=$ac_optarg ;; 1122 1123 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1124 | --localstate | --localstat | --localsta | --localst | --locals) 1125 ac_prev=localstatedir ;; 1126 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1127 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1128 localstatedir=$ac_optarg ;; 1129 1130 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1131 ac_prev=mandir ;; 1132 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1133 mandir=$ac_optarg ;; 1134 1135 -nfp | --nfp | --nf) 1136 # Obsolete; use --without-fp. 1137 with_fp=no ;; 1138 1139 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1140 | --no-cr | --no-c | -n) 1141 no_create=yes ;; 1142 1143 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1144 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1145 no_recursion=yes ;; 1146 1147 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1148 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1149 | --oldin | --oldi | --old | --ol | --o) 1150 ac_prev=oldincludedir ;; 1151 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1152 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1153 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1154 oldincludedir=$ac_optarg ;; 1155 1156 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1157 ac_prev=prefix ;; 1158 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1159 prefix=$ac_optarg ;; 1160 1161 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1162 | --program-pre | --program-pr | --program-p) 1163 ac_prev=program_prefix ;; 1164 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1165 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1166 program_prefix=$ac_optarg ;; 1167 1168 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1169 | --program-suf | --program-su | --program-s) 1170 ac_prev=program_suffix ;; 1171 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1172 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1173 program_suffix=$ac_optarg ;; 1174 1175 -program-transform-name | --program-transform-name \ 1176 | --program-transform-nam | --program-transform-na \ 1177 | --program-transform-n | --program-transform- \ 1178 | --program-transform | --program-transfor \ 1179 | --program-transfo | --program-transf \ 1180 | --program-trans | --program-tran \ 1181 | --progr-tra | --program-tr | --program-t) 1182 ac_prev=program_transform_name ;; 1183 -program-transform-name=* | --program-transform-name=* \ 1184 | --program-transform-nam=* | --program-transform-na=* \ 1185 | --program-transform-n=* | --program-transform-=* \ 1186 | --program-transform=* | --program-transfor=* \ 1187 | --program-transfo=* | --program-transf=* \ 1188 | --program-trans=* | --program-tran=* \ 1189 | --progr-tra=* | --program-tr=* | --program-t=*) 1190 program_transform_name=$ac_optarg ;; 1191 1192 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1193 ac_prev=pdfdir ;; 1194 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1195 pdfdir=$ac_optarg ;; 1196 1197 -psdir | --psdir | --psdi | --psd | --ps) 1198 ac_prev=psdir ;; 1199 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1200 psdir=$ac_optarg ;; 1201 1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1203 | -silent | --silent | --silen | --sile | --sil) 1204 silent=yes ;; 1205 1206 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1207 ac_prev=sbindir ;; 1208 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1209 | --sbi=* | --sb=*) 1210 sbindir=$ac_optarg ;; 1211 1212 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1213 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1214 | --sharedst | --shareds | --shared | --share | --shar \ 1215 | --sha | --sh) 1216 ac_prev=sharedstatedir ;; 1217 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1218 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1219 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1220 | --sha=* | --sh=*) 1221 sharedstatedir=$ac_optarg ;; 1222 1223 -site | --site | --sit) 1224 ac_prev=site ;; 1225 -site=* | --site=* | --sit=*) 1226 site=$ac_optarg ;; 1227 1228 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1229 ac_prev=srcdir ;; 1230 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1231 srcdir=$ac_optarg ;; 1232 1233 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1234 | --syscon | --sysco | --sysc | --sys | --sy) 1235 ac_prev=sysconfdir ;; 1236 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1237 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1238 sysconfdir=$ac_optarg ;; 1239 1240 -target | --target | --targe | --targ | --tar | --ta | --t) 1241 ac_prev=target_alias ;; 1242 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1243 target_alias=$ac_optarg ;; 1244 1245 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1246 verbose=yes ;; 1247 1248 -version | --version | --versio | --versi | --vers | -V) 1249 ac_init_version=: ;; 1250 1251 -with-* | --with-*) 1252 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1253 # Reject names that are not valid shell variable names. 1254 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1255 { echo "$as_me: error: invalid package name: $ac_package" >&2 1256 { (exit 1); exit 1; }; } 1257 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1258 eval with_$ac_package=\$ac_optarg ;; 1259 1260 -without-* | --without-*) 1261 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1262 # Reject names that are not valid shell variable names. 1263 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1264 { echo "$as_me: error: invalid package name: $ac_package" >&2 1265 { (exit 1); exit 1; }; } 1266 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1267 eval with_$ac_package=no ;; 1268 1269 --x) 1270 # Obsolete; use --with-x. 1271 with_x=yes ;; 1272 1273 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1274 | --x-incl | --x-inc | --x-in | --x-i) 1275 ac_prev=x_includes ;; 1276 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1277 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1278 x_includes=$ac_optarg ;; 1279 1280 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1281 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1282 ac_prev=x_libraries ;; 1283 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1284 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1285 x_libraries=$ac_optarg ;; 1286 1287 -*) { echo "$as_me: error: unrecognized option: $ac_option 1288Try \`$0 --help' for more information." >&2 1289 { (exit 1); exit 1; }; } 1290 ;; 1291 1292 *=*) 1293 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1294 # Reject names that are not valid shell variable names. 1295 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1296 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1297 { (exit 1); exit 1; }; } 1298 eval $ac_envvar=\$ac_optarg 1299 export $ac_envvar ;; 1300 1301 *) 1302 # FIXME: should be removed in autoconf 3.0. 1303 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1305 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1306 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1307 ;; 1308 1309 esac 1310done 1311 1312if test -n "$ac_prev"; then 1313 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1314 { echo "$as_me: error: missing argument to $ac_option" >&2 1315 { (exit 1); exit 1; }; } 1316fi 1317 1318# Be sure to have absolute directory names. 1319for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1320 datadir sysconfdir sharedstatedir localstatedir includedir \ 1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1322 libdir localedir mandir 1323do 1324 eval ac_val=\$$ac_var 1325 case $ac_val in 1326 [\\/$]* | ?:[\\/]* ) continue;; 1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1328 esac 1329 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1330 { (exit 1); exit 1; }; } 1331done 1332 1333# There might be people who depend on the old broken behavior: `$host' 1334# used to hold the argument of --host etc. 1335# FIXME: To remove some day. 1336build=$build_alias 1337host=$host_alias 1338target=$target_alias 1339 1340# FIXME: To remove some day. 1341if test "x$host_alias" != x; then 1342 if test "x$build_alias" = x; then 1343 cross_compiling=maybe 1344 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1345 If a cross compiler is detected then cross compile mode will be used." >&2 1346 elif test "x$build_alias" != "x$host_alias"; then 1347 cross_compiling=yes 1348 fi 1349fi 1350 1351ac_tool_prefix= 1352test -n "$host_alias" && ac_tool_prefix=$host_alias- 1353 1354test "$silent" = yes && exec 6>/dev/null 1355 1356 1357ac_pwd=`pwd` && test -n "$ac_pwd" && 1358ac_ls_di=`ls -di .` && 1359ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1360 { echo "$as_me: error: Working directory cannot be determined" >&2 1361 { (exit 1); exit 1; }; } 1362test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1363 { echo "$as_me: error: pwd does not report name of working directory" >&2 1364 { (exit 1); exit 1; }; } 1365 1366 1367# Find the source files, if location was not specified. 1368if test -z "$srcdir"; then 1369 ac_srcdir_defaulted=yes 1370 # Try the directory containing this script, then the parent directory. 1371 ac_confdir=`$as_dirname -- "$0" || 1372$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1373 X"$0" : 'X\(//\)[^/]' \| \ 1374 X"$0" : 'X\(//\)$' \| \ 1375 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1376echo X"$0" | 1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1378 s//\1/ 1379 q 1380 } 1381 /^X\(\/\/\)[^/].*/{ 1382 s//\1/ 1383 q 1384 } 1385 /^X\(\/\/\)$/{ 1386 s//\1/ 1387 q 1388 } 1389 /^X\(\/\).*/{ 1390 s//\1/ 1391 q 1392 } 1393 s/.*/./; q'` 1394 srcdir=$ac_confdir 1395 if test ! -r "$srcdir/$ac_unique_file"; then 1396 srcdir=.. 1397 fi 1398else 1399 ac_srcdir_defaulted=no 1400fi 1401if test ! -r "$srcdir/$ac_unique_file"; then 1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1403 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1404 { (exit 1); exit 1; }; } 1405fi 1406ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1407ac_abs_confdir=`( 1408 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1409 { (exit 1); exit 1; }; } 1410 pwd)` 1411# When building in place, set srcdir=. 1412if test "$ac_abs_confdir" = "$ac_pwd"; then 1413 srcdir=. 1414fi 1415# Remove unnecessary trailing slashes from srcdir. 1416# Double slashes in file names in object file debugging info 1417# mess up M-x gdb in Emacs. 1418case $srcdir in 1419*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1420esac 1421for ac_var in $ac_precious_vars; do 1422 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1423 eval ac_env_${ac_var}_value=\$${ac_var} 1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1425 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1426done 1427 1428# 1429# Report the --help message. 1430# 1431if test "$ac_init_help" = "long"; then 1432 # Omit some internal or obsolete options to make the list less imposing. 1433 # This message is too long to be a string in the A/UX 3.1 sh. 1434 cat <<_ACEOF 1435\`configure' configures xf86-video-i128 1.3.1 to adapt to many kinds of systems. 1436 1437Usage: $0 [OPTION]... [VAR=VALUE]... 1438 1439To assign environment variables (e.g., CC, CFLAGS...), specify them as 1440VAR=VALUE. See below for descriptions of some of the useful variables. 1441 1442Defaults for the options are specified in brackets. 1443 1444Configuration: 1445 -h, --help display this help and exit 1446 --help=short display options specific to this package 1447 --help=recursive display the short help of all the included packages 1448 -V, --version display version information and exit 1449 -q, --quiet, --silent do not print \`checking...' messages 1450 --cache-file=FILE cache test results in FILE [disabled] 1451 -C, --config-cache alias for \`--cache-file=config.cache' 1452 -n, --no-create do not create output files 1453 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1454 1455Installation directories: 1456 --prefix=PREFIX install architecture-independent files in PREFIX 1457 [$ac_default_prefix] 1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1459 [PREFIX] 1460 1461By default, \`make install' will install all the files in 1462\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1463an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1464for instance \`--prefix=\$HOME'. 1465 1466For better control, use the options below. 1467 1468Fine tuning of the installation directories: 1469 --bindir=DIR user executables [EPREFIX/bin] 1470 --sbindir=DIR system admin executables [EPREFIX/sbin] 1471 --libexecdir=DIR program executables [EPREFIX/libexec] 1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1475 --libdir=DIR object code libraries [EPREFIX/lib] 1476 --includedir=DIR C header files [PREFIX/include] 1477 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1480 --infodir=DIR info documentation [DATAROOTDIR/info] 1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1482 --mandir=DIR man documentation [DATAROOTDIR/man] 1483 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-i128] 1484 --htmldir=DIR html documentation [DOCDIR] 1485 --dvidir=DIR dvi documentation [DOCDIR] 1486 --pdfdir=DIR pdf documentation [DOCDIR] 1487 --psdir=DIR ps documentation [DOCDIR] 1488_ACEOF 1489 1490 cat <<\_ACEOF 1491 1492Program names: 1493 --program-prefix=PREFIX prepend PREFIX to installed program names 1494 --program-suffix=SUFFIX append SUFFIX to installed program names 1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1496 1497System types: 1498 --build=BUILD configure for building on BUILD [guessed] 1499 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1500_ACEOF 1501fi 1502 1503if test -n "$ac_init_help"; then 1504 case $ac_init_help in 1505 short | recursive ) echo "Configuration of xf86-video-i128 1.3.1:";; 1506 esac 1507 cat <<\_ACEOF 1508 1509Optional Features: 1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1512 --enable-maintainer-mode enable make rules and dependencies not useful 1513 (and sometimes confusing) to the casual installer 1514 --enable-static[=PKGS] build static libraries [default=no] 1515 --enable-shared[=PKGS] build shared libraries [default=yes] 1516 --enable-fast-install[=PKGS] 1517 optimize for fast installation [default=yes] 1518 --disable-dependency-tracking speeds up one-time build 1519 --enable-dependency-tracking do not reject slow dependency extractors 1520 --disable-libtool-lock avoid locking (might break parallel builds) 1521 1522Optional Packages: 1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1525 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1526 --with-pic try to use only PIC/non-PIC objects [default=use 1527 both] 1528 --with-tags[=TAGS] include additional configurations [automatic] 1529 --with-xorg-module-dir=DIR 1530 Default xorg module directory 1531 [default=$libdir/xorg/modules] 1532 --with-release-version=STRING 1533 Use release version string in package name 1534 1535Some influential environment variables: 1536 CC C compiler command 1537 CFLAGS C compiler flags 1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1539 nonstandard directory <lib dir> 1540 LIBS libraries to pass to the linker, e.g. -l<library> 1541 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1542 you have headers in a nonstandard directory <include dir> 1543 CPP C preprocessor 1544 CXX C++ compiler command 1545 CXXFLAGS C++ compiler flags 1546 CXXCPP C++ preprocessor 1547 F77 Fortran 77 compiler command 1548 FFLAGS Fortran 77 compiler flags 1549 PKG_CONFIG path to pkg-config utility 1550 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1551 XORG_LIBS linker flags for XORG, overriding pkg-config 1552 PCIACCESS_CFLAGS 1553 C compiler flags for PCIACCESS, overriding pkg-config 1554 PCIACCESS_LIBS 1555 linker flags for PCIACCESS, overriding pkg-config 1556 1557Use these variables to override the choices made by `configure' or to help 1558it to find libraries and programs with nonstandard names/locations. 1559 1560Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1561_ACEOF 1562ac_status=$? 1563fi 1564 1565if test "$ac_init_help" = "recursive"; then 1566 # If there are subdirs, report their specific --help. 1567 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1568 test -d "$ac_dir" || continue 1569 ac_builddir=. 1570 1571case "$ac_dir" in 1572.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1573*) 1574 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1575 # A ".." for each directory in $ac_dir_suffix. 1576 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1577 case $ac_top_builddir_sub in 1578 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1579 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1580 esac ;; 1581esac 1582ac_abs_top_builddir=$ac_pwd 1583ac_abs_builddir=$ac_pwd$ac_dir_suffix 1584# for backward compatibility: 1585ac_top_builddir=$ac_top_build_prefix 1586 1587case $srcdir in 1588 .) # We are building in place. 1589 ac_srcdir=. 1590 ac_top_srcdir=$ac_top_builddir_sub 1591 ac_abs_top_srcdir=$ac_pwd ;; 1592 [\\/]* | ?:[\\/]* ) # Absolute name. 1593 ac_srcdir=$srcdir$ac_dir_suffix; 1594 ac_top_srcdir=$srcdir 1595 ac_abs_top_srcdir=$srcdir ;; 1596 *) # Relative name. 1597 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1598 ac_top_srcdir=$ac_top_build_prefix$srcdir 1599 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1600esac 1601ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1602 1603 cd "$ac_dir" || { ac_status=$?; continue; } 1604 # Check for guested configure. 1605 if test -f "$ac_srcdir/configure.gnu"; then 1606 echo && 1607 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1608 elif test -f "$ac_srcdir/configure"; then 1609 echo && 1610 $SHELL "$ac_srcdir/configure" --help=recursive 1611 else 1612 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1613 fi || ac_status=$? 1614 cd "$ac_pwd" || { ac_status=$?; break; } 1615 done 1616fi 1617 1618test -n "$ac_init_help" && exit $ac_status 1619if $ac_init_version; then 1620 cat <<\_ACEOF 1621xf86-video-i128 configure 1.3.1 1622generated by GNU Autoconf 2.61 1623 1624Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16252002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1626This configure script is free software; the Free Software Foundation 1627gives unlimited permission to copy, distribute and modify it. 1628_ACEOF 1629 exit 1630fi 1631cat >config.log <<_ACEOF 1632This file contains any messages produced by compilers while 1633running configure, to aid debugging if configure makes a mistake. 1634 1635It was created by xf86-video-i128 $as_me 1.3.1, which was 1636generated by GNU Autoconf 2.61. Invocation command line was 1637 1638 $ $0 $@ 1639 1640_ACEOF 1641exec 5>>config.log 1642{ 1643cat <<_ASUNAME 1644## --------- ## 1645## Platform. ## 1646## --------- ## 1647 1648hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1649uname -m = `(uname -m) 2>/dev/null || echo unknown` 1650uname -r = `(uname -r) 2>/dev/null || echo unknown` 1651uname -s = `(uname -s) 2>/dev/null || echo unknown` 1652uname -v = `(uname -v) 2>/dev/null || echo unknown` 1653 1654/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1655/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1656 1657/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1658/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1659/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1660/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1661/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1662/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1663/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1664 1665_ASUNAME 1666 1667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1668for as_dir in $PATH 1669do 1670 IFS=$as_save_IFS 1671 test -z "$as_dir" && as_dir=. 1672 echo "PATH: $as_dir" 1673done 1674IFS=$as_save_IFS 1675 1676} >&5 1677 1678cat >&5 <<_ACEOF 1679 1680 1681## ----------- ## 1682## Core tests. ## 1683## ----------- ## 1684 1685_ACEOF 1686 1687 1688# Keep a trace of the command line. 1689# Strip out --no-create and --no-recursion so they do not pile up. 1690# Strip out --silent because we don't want to record it for future runs. 1691# Also quote any args containing shell meta-characters. 1692# Make two passes to allow for proper duplicate-argument suppression. 1693ac_configure_args= 1694ac_configure_args0= 1695ac_configure_args1= 1696ac_must_keep_next=false 1697for ac_pass in 1 2 1698do 1699 for ac_arg 1700 do 1701 case $ac_arg in 1702 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1704 | -silent | --silent | --silen | --sile | --sil) 1705 continue ;; 1706 *\'*) 1707 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1708 esac 1709 case $ac_pass in 1710 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1711 2) 1712 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1713 if test $ac_must_keep_next = true; then 1714 ac_must_keep_next=false # Got value, back to normal. 1715 else 1716 case $ac_arg in 1717 *=* | --config-cache | -C | -disable-* | --disable-* \ 1718 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1719 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1720 | -with-* | --with-* | -without-* | --without-* | --x) 1721 case "$ac_configure_args0 " in 1722 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1723 esac 1724 ;; 1725 -* ) ac_must_keep_next=true ;; 1726 esac 1727 fi 1728 ac_configure_args="$ac_configure_args '$ac_arg'" 1729 ;; 1730 esac 1731 done 1732done 1733$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1734$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1735 1736# When interrupted or exit'd, cleanup temporary files, and complete 1737# config.log. We remove comments because anyway the quotes in there 1738# would cause problems or look ugly. 1739# WARNING: Use '\'' to represent an apostrophe within the trap. 1740# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1741trap 'exit_status=$? 1742 # Save into config.log some information that might help in debugging. 1743 { 1744 echo 1745 1746 cat <<\_ASBOX 1747## ---------------- ## 1748## Cache variables. ## 1749## ---------------- ## 1750_ASBOX 1751 echo 1752 # The following way of writing the cache mishandles newlines in values, 1753( 1754 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1755 eval ac_val=\$$ac_var 1756 case $ac_val in #( 1757 *${as_nl}*) 1758 case $ac_var in #( 1759 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1760echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1761 esac 1762 case $ac_var in #( 1763 _ | IFS | as_nl) ;; #( 1764 *) $as_unset $ac_var ;; 1765 esac ;; 1766 esac 1767 done 1768 (set) 2>&1 | 1769 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1770 *${as_nl}ac_space=\ *) 1771 sed -n \ 1772 "s/'\''/'\''\\\\'\'''\''/g; 1773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1774 ;; #( 1775 *) 1776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1777 ;; 1778 esac | 1779 sort 1780) 1781 echo 1782 1783 cat <<\_ASBOX 1784## ----------------- ## 1785## Output variables. ## 1786## ----------------- ## 1787_ASBOX 1788 echo 1789 for ac_var in $ac_subst_vars 1790 do 1791 eval ac_val=\$$ac_var 1792 case $ac_val in 1793 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1794 esac 1795 echo "$ac_var='\''$ac_val'\''" 1796 done | sort 1797 echo 1798 1799 if test -n "$ac_subst_files"; then 1800 cat <<\_ASBOX 1801## ------------------- ## 1802## File substitutions. ## 1803## ------------------- ## 1804_ASBOX 1805 echo 1806 for ac_var in $ac_subst_files 1807 do 1808 eval ac_val=\$$ac_var 1809 case $ac_val in 1810 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1811 esac 1812 echo "$ac_var='\''$ac_val'\''" 1813 done | sort 1814 echo 1815 fi 1816 1817 if test -s confdefs.h; then 1818 cat <<\_ASBOX 1819## ----------- ## 1820## confdefs.h. ## 1821## ----------- ## 1822_ASBOX 1823 echo 1824 cat confdefs.h 1825 echo 1826 fi 1827 test "$ac_signal" != 0 && 1828 echo "$as_me: caught signal $ac_signal" 1829 echo "$as_me: exit $exit_status" 1830 } >&5 1831 rm -f core *.core core.conftest.* && 1832 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1833 exit $exit_status 1834' 0 1835for ac_signal in 1 2 13 15; do 1836 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1837done 1838ac_signal=0 1839 1840# confdefs.h avoids OS command line length limits that DEFS can exceed. 1841rm -f -r conftest* confdefs.h 1842 1843# Predefined preprocessor variables. 1844 1845cat >>confdefs.h <<_ACEOF 1846#define PACKAGE_NAME "$PACKAGE_NAME" 1847_ACEOF 1848 1849 1850cat >>confdefs.h <<_ACEOF 1851#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1852_ACEOF 1853 1854 1855cat >>confdefs.h <<_ACEOF 1856#define PACKAGE_VERSION "$PACKAGE_VERSION" 1857_ACEOF 1858 1859 1860cat >>confdefs.h <<_ACEOF 1861#define PACKAGE_STRING "$PACKAGE_STRING" 1862_ACEOF 1863 1864 1865cat >>confdefs.h <<_ACEOF 1866#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1867_ACEOF 1868 1869 1870# Let the site file select an alternate cache file if it wants to. 1871# Prefer explicitly selected file to automatically selected ones. 1872if test -n "$CONFIG_SITE"; then 1873 set x "$CONFIG_SITE" 1874elif test "x$prefix" != xNONE; then 1875 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1876else 1877 set x "$ac_default_prefix/share/config.site" \ 1878 "$ac_default_prefix/etc/config.site" 1879fi 1880shift 1881for ac_site_file 1882do 1883 if test -r "$ac_site_file"; then 1884 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1885echo "$as_me: loading site script $ac_site_file" >&6;} 1886 sed 's/^/| /' "$ac_site_file" >&5 1887 . "$ac_site_file" 1888 fi 1889done 1890 1891if test -r "$cache_file"; then 1892 # Some versions of bash will fail to source /dev/null (special 1893 # files actually), so we avoid doing that. 1894 if test -f "$cache_file"; then 1895 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1896echo "$as_me: loading cache $cache_file" >&6;} 1897 case $cache_file in 1898 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1899 *) . "./$cache_file";; 1900 esac 1901 fi 1902else 1903 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1904echo "$as_me: creating cache $cache_file" >&6;} 1905 >$cache_file 1906fi 1907 1908# Check that the precious variables saved in the cache have kept the same 1909# value. 1910ac_cache_corrupted=false 1911for ac_var in $ac_precious_vars; do 1912 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1913 eval ac_new_set=\$ac_env_${ac_var}_set 1914 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1915 eval ac_new_val=\$ac_env_${ac_var}_value 1916 case $ac_old_set,$ac_new_set in 1917 set,) 1918 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1919echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1920 ac_cache_corrupted=: ;; 1921 ,set) 1922 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1923echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1924 ac_cache_corrupted=: ;; 1925 ,);; 1926 *) 1927 if test "x$ac_old_val" != "x$ac_new_val"; then 1928 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1929echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1930 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1931echo "$as_me: former value: $ac_old_val" >&2;} 1932 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1933echo "$as_me: current value: $ac_new_val" >&2;} 1934 ac_cache_corrupted=: 1935 fi;; 1936 esac 1937 # Pass precious variables to config.status. 1938 if test "$ac_new_set" = set; then 1939 case $ac_new_val in 1940 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1941 *) ac_arg=$ac_var=$ac_new_val ;; 1942 esac 1943 case " $ac_configure_args " in 1944 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1945 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1946 esac 1947 fi 1948done 1949if $ac_cache_corrupted; then 1950 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1951echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1952 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1953echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1954 { (exit 1); exit 1; }; } 1955fi 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981ac_ext=c 1982ac_cpp='$CPP $CPPFLAGS' 1983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1985ac_compiler_gnu=$ac_cv_c_compiler_gnu 1986 1987 1988 1989 1990ac_config_headers="$ac_config_headers config.h" 1991 1992ac_aux_dir= 1993for ac_dir in . "$srcdir"/.; do 1994 if test -f "$ac_dir/install-sh"; then 1995 ac_aux_dir=$ac_dir 1996 ac_install_sh="$ac_aux_dir/install-sh -c" 1997 break 1998 elif test -f "$ac_dir/install.sh"; then 1999 ac_aux_dir=$ac_dir 2000 ac_install_sh="$ac_aux_dir/install.sh -c" 2001 break 2002 elif test -f "$ac_dir/shtool"; then 2003 ac_aux_dir=$ac_dir 2004 ac_install_sh="$ac_aux_dir/shtool install -c" 2005 break 2006 fi 2007done 2008if test -z "$ac_aux_dir"; then 2009 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2010echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2011 { (exit 1); exit 1; }; } 2012fi 2013 2014# These three variables are undocumented and unsupported, 2015# and are intended to be withdrawn in a future Autoconf release. 2016# They can cause serious problems if a builder's source tree is in a directory 2017# whose full name contains unusual characters. 2018ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2019ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2020ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2021 2022 2023 2024am__api_version='1.10' 2025 2026# Find a good install program. We prefer a C program (faster), 2027# so one script is as good as another. But avoid the broken or 2028# incompatible versions: 2029# SysV /etc/install, /usr/sbin/install 2030# SunOS /usr/etc/install 2031# IRIX /sbin/install 2032# AIX /bin/install 2033# AmigaOS /C/install, which installs bootblocks on floppy discs 2034# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2035# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2036# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2037# OS/2's system install, which has a completely different semantic 2038# ./install, which can be erroneously created by make from ./install.sh. 2039{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2040echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2041if test -z "$INSTALL"; then 2042if test "${ac_cv_path_install+set}" = set; then 2043 echo $ECHO_N "(cached) $ECHO_C" >&6 2044else 2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2046for as_dir in $PATH 2047do 2048 IFS=$as_save_IFS 2049 test -z "$as_dir" && as_dir=. 2050 # Account for people who put trailing slashes in PATH elements. 2051case $as_dir/ in 2052 ./ | .// | /cC/* | \ 2053 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2054 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2055 /usr/ucb/* ) ;; 2056 *) 2057 # OSF1 and SCO ODT 3.0 have their own names for install. 2058 # Don't use installbsd from OSF since it installs stuff as root 2059 # by default. 2060 for ac_prog in ginstall scoinst install; do 2061 for ac_exec_ext in '' $ac_executable_extensions; do 2062 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2063 if test $ac_prog = install && 2064 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2065 # AIX install. It has an incompatible calling convention. 2066 : 2067 elif test $ac_prog = install && 2068 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2069 # program-specific install script used by HP pwplus--don't use. 2070 : 2071 else 2072 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2073 break 3 2074 fi 2075 fi 2076 done 2077 done 2078 ;; 2079esac 2080done 2081IFS=$as_save_IFS 2082 2083 2084fi 2085 if test "${ac_cv_path_install+set}" = set; then 2086 INSTALL=$ac_cv_path_install 2087 else 2088 # As a last resort, use the slow shell script. Don't cache a 2089 # value for INSTALL within a source directory, because that will 2090 # break other packages using the cache if that directory is 2091 # removed, or if the value is a relative name. 2092 INSTALL=$ac_install_sh 2093 fi 2094fi 2095{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2096echo "${ECHO_T}$INSTALL" >&6; } 2097 2098# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2099# It thinks the first close brace ends the variable substitution. 2100test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2101 2102test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2103 2104test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2105 2106{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2107echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2108# Just in case 2109sleep 1 2110echo timestamp > conftest.file 2111# Do `set' in a subshell so we don't clobber the current shell's 2112# arguments. Must try -L first in case configure is actually a 2113# symlink; some systems play weird games with the mod time of symlinks 2114# (eg FreeBSD returns the mod time of the symlink's containing 2115# directory). 2116if ( 2117 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2118 if test "$*" = "X"; then 2119 # -L didn't work. 2120 set X `ls -t $srcdir/configure conftest.file` 2121 fi 2122 rm -f conftest.file 2123 if test "$*" != "X $srcdir/configure conftest.file" \ 2124 && test "$*" != "X conftest.file $srcdir/configure"; then 2125 2126 # If neither matched, then we have a broken ls. This can happen 2127 # if, for instance, CONFIG_SHELL is bash and it inherits a 2128 # broken ls alias from the environment. This has actually 2129 # happened. Such a system could not be considered "sane". 2130 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2131alias in your environment" >&5 2132echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2133alias in your environment" >&2;} 2134 { (exit 1); exit 1; }; } 2135 fi 2136 2137 test "$2" = conftest.file 2138 ) 2139then 2140 # Ok. 2141 : 2142else 2143 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2144Check your system clock" >&5 2145echo "$as_me: error: newly created file is older than distributed files! 2146Check your system clock" >&2;} 2147 { (exit 1); exit 1; }; } 2148fi 2149{ echo "$as_me:$LINENO: result: yes" >&5 2150echo "${ECHO_T}yes" >&6; } 2151test "$program_prefix" != NONE && 2152 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2153# Use a double $ so make ignores it. 2154test "$program_suffix" != NONE && 2155 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2156# Double any \ or $. echo might interpret backslashes. 2157# By default was `s,x,x', remove it if useless. 2158cat <<\_ACEOF >conftest.sed 2159s/[\\$]/&&/g;s/;s,x,x,$// 2160_ACEOF 2161program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2162rm -f conftest.sed 2163 2164# expand $ac_aux_dir to an absolute path 2165am_aux_dir=`cd $ac_aux_dir && pwd` 2166 2167test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2168# Use eval to expand $SHELL 2169if eval "$MISSING --run true"; then 2170 am_missing_run="$MISSING --run " 2171else 2172 am_missing_run= 2173 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2174echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2175fi 2176 2177{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2178echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2179if test -z "$MKDIR_P"; then 2180 if test "${ac_cv_path_mkdir+set}" = set; then 2181 echo $ECHO_N "(cached) $ECHO_C" >&6 2182else 2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2184for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2185do 2186 IFS=$as_save_IFS 2187 test -z "$as_dir" && as_dir=. 2188 for ac_prog in mkdir gmkdir; do 2189 for ac_exec_ext in '' $ac_executable_extensions; do 2190 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2191 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2192 'mkdir (GNU coreutils) '* | \ 2193 'mkdir (coreutils) '* | \ 2194 'mkdir (fileutils) '4.1*) 2195 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2196 break 3;; 2197 esac 2198 done 2199 done 2200done 2201IFS=$as_save_IFS 2202 2203fi 2204 2205 if test "${ac_cv_path_mkdir+set}" = set; then 2206 MKDIR_P="$ac_cv_path_mkdir -p" 2207 else 2208 # As a last resort, use the slow shell script. Don't cache a 2209 # value for MKDIR_P within a source directory, because that will 2210 # break other packages using the cache if that directory is 2211 # removed, or if the value is a relative name. 2212 test -d ./--version && rmdir ./--version 2213 MKDIR_P="$ac_install_sh -d" 2214 fi 2215fi 2216{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2217echo "${ECHO_T}$MKDIR_P" >&6; } 2218 2219mkdir_p="$MKDIR_P" 2220case $mkdir_p in 2221 [\\/$]* | ?:[\\/]*) ;; 2222 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2223esac 2224 2225for ac_prog in gawk mawk nawk awk 2226do 2227 # Extract the first word of "$ac_prog", so it can be a program name with args. 2228set dummy $ac_prog; ac_word=$2 2229{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2231if test "${ac_cv_prog_AWK+set}" = set; then 2232 echo $ECHO_N "(cached) $ECHO_C" >&6 2233else 2234 if test -n "$AWK"; then 2235 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2236else 2237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2238for as_dir in $PATH 2239do 2240 IFS=$as_save_IFS 2241 test -z "$as_dir" && as_dir=. 2242 for ac_exec_ext in '' $ac_executable_extensions; do 2243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2244 ac_cv_prog_AWK="$ac_prog" 2245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2246 break 2 2247 fi 2248done 2249done 2250IFS=$as_save_IFS 2251 2252fi 2253fi 2254AWK=$ac_cv_prog_AWK 2255if test -n "$AWK"; then 2256 { echo "$as_me:$LINENO: result: $AWK" >&5 2257echo "${ECHO_T}$AWK" >&6; } 2258else 2259 { echo "$as_me:$LINENO: result: no" >&5 2260echo "${ECHO_T}no" >&6; } 2261fi 2262 2263 2264 test -n "$AWK" && break 2265done 2266 2267{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2268echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2269set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2270if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2271 echo $ECHO_N "(cached) $ECHO_C" >&6 2272else 2273 cat >conftest.make <<\_ACEOF 2274SHELL = /bin/sh 2275all: 2276 @echo '@@@%%%=$(MAKE)=@@@%%%' 2277_ACEOF 2278# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2279case `${MAKE-make} -f conftest.make 2>/dev/null` in 2280 *@@@%%%=?*=@@@%%%*) 2281 eval ac_cv_prog_make_${ac_make}_set=yes;; 2282 *) 2283 eval ac_cv_prog_make_${ac_make}_set=no;; 2284esac 2285rm -f conftest.make 2286fi 2287if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2288 { echo "$as_me:$LINENO: result: yes" >&5 2289echo "${ECHO_T}yes" >&6; } 2290 SET_MAKE= 2291else 2292 { echo "$as_me:$LINENO: result: no" >&5 2293echo "${ECHO_T}no" >&6; } 2294 SET_MAKE="MAKE=${MAKE-make}" 2295fi 2296 2297rm -rf .tst 2>/dev/null 2298mkdir .tst 2>/dev/null 2299if test -d .tst; then 2300 am__leading_dot=. 2301else 2302 am__leading_dot=_ 2303fi 2304rmdir .tst 2>/dev/null 2305 2306if test "`cd $srcdir && pwd`" != "`pwd`"; then 2307 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2308 # is not polluted with repeated "-I." 2309 am__isrc=' -I$(srcdir)' 2310 # test to see if srcdir already configured 2311 if test -f $srcdir/config.status; then 2312 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2313echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2314 { (exit 1); exit 1; }; } 2315 fi 2316fi 2317 2318# test whether we have cygpath 2319if test -z "$CYGPATH_W"; then 2320 if (cygpath --version) >/dev/null 2>/dev/null; then 2321 CYGPATH_W='cygpath -w' 2322 else 2323 CYGPATH_W=echo 2324 fi 2325fi 2326 2327 2328# Define the identity of the package. 2329 PACKAGE='xf86-video-i128' 2330 VERSION='1.3.1' 2331 2332 2333cat >>confdefs.h <<_ACEOF 2334#define PACKAGE "$PACKAGE" 2335_ACEOF 2336 2337 2338cat >>confdefs.h <<_ACEOF 2339#define VERSION "$VERSION" 2340_ACEOF 2341 2342# Some tools Automake needs. 2343 2344ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2345 2346 2347AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2348 2349 2350AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2351 2352 2353AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2354 2355 2356MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2357 2358install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2359 2360# Installed binaries are usually stripped using `strip' when the user 2361# run `make install-strip'. However `strip' might not be the right 2362# tool to use in cross-compilation environments, therefore Automake 2363# will honor the `STRIP' environment variable to overrule this program. 2364if test "$cross_compiling" != no; then 2365 if test -n "$ac_tool_prefix"; then 2366 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2367set dummy ${ac_tool_prefix}strip; ac_word=$2 2368{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2370if test "${ac_cv_prog_STRIP+set}" = set; then 2371 echo $ECHO_N "(cached) $ECHO_C" >&6 2372else 2373 if test -n "$STRIP"; then 2374 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2375else 2376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2377for as_dir in $PATH 2378do 2379 IFS=$as_save_IFS 2380 test -z "$as_dir" && as_dir=. 2381 for ac_exec_ext in '' $ac_executable_extensions; do 2382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2383 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2385 break 2 2386 fi 2387done 2388done 2389IFS=$as_save_IFS 2390 2391fi 2392fi 2393STRIP=$ac_cv_prog_STRIP 2394if test -n "$STRIP"; then 2395 { echo "$as_me:$LINENO: result: $STRIP" >&5 2396echo "${ECHO_T}$STRIP" >&6; } 2397else 2398 { echo "$as_me:$LINENO: result: no" >&5 2399echo "${ECHO_T}no" >&6; } 2400fi 2401 2402 2403fi 2404if test -z "$ac_cv_prog_STRIP"; then 2405 ac_ct_STRIP=$STRIP 2406 # Extract the first word of "strip", so it can be a program name with args. 2407set dummy strip; ac_word=$2 2408{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2410if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2411 echo $ECHO_N "(cached) $ECHO_C" >&6 2412else 2413 if test -n "$ac_ct_STRIP"; then 2414 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2415else 2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2417for as_dir in $PATH 2418do 2419 IFS=$as_save_IFS 2420 test -z "$as_dir" && as_dir=. 2421 for ac_exec_ext in '' $ac_executable_extensions; do 2422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2423 ac_cv_prog_ac_ct_STRIP="strip" 2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2425 break 2 2426 fi 2427done 2428done 2429IFS=$as_save_IFS 2430 2431fi 2432fi 2433ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2434if test -n "$ac_ct_STRIP"; then 2435 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2436echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2437else 2438 { echo "$as_me:$LINENO: result: no" >&5 2439echo "${ECHO_T}no" >&6; } 2440fi 2441 2442 if test "x$ac_ct_STRIP" = x; then 2443 STRIP=":" 2444 else 2445 case $cross_compiling:$ac_tool_warned in 2446yes:) 2447{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2448whose name does not start with the host triplet. If you think this 2449configuration is useful to you, please write to autoconf@gnu.org." >&5 2450echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2451whose name does not start with the host triplet. If you think this 2452configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2453ac_tool_warned=yes ;; 2454esac 2455 STRIP=$ac_ct_STRIP 2456 fi 2457else 2458 STRIP="$ac_cv_prog_STRIP" 2459fi 2460 2461fi 2462INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2463 2464# We need awk for the "check" target. The system "awk" is bad on 2465# some platforms. 2466# Always define AMTAR for backward compatibility. 2467 2468AMTAR=${AMTAR-"${am_missing_run}tar"} 2469 2470am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2471 2472 2473 2474 2475 2476 2477{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2478echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2479 # Check whether --enable-maintainer-mode was given. 2480if test "${enable_maintainer_mode+set}" = set; then 2481 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2482else 2483 USE_MAINTAINER_MODE=no 2484fi 2485 2486 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2487echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2488 if test $USE_MAINTAINER_MODE = yes; then 2489 MAINTAINER_MODE_TRUE= 2490 MAINTAINER_MODE_FALSE='#' 2491else 2492 MAINTAINER_MODE_TRUE='#' 2493 MAINTAINER_MODE_FALSE= 2494fi 2495 2496 MAINT=$MAINTAINER_MODE_TRUE 2497 2498 2499 2500# Checks for programs. 2501# Check whether --enable-static was given. 2502if test "${enable_static+set}" = set; then 2503 enableval=$enable_static; p=${PACKAGE-default} 2504 case $enableval in 2505 yes) enable_static=yes ;; 2506 no) enable_static=no ;; 2507 *) 2508 enable_static=no 2509 # Look at the argument we got. We use all the common list separators. 2510 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2511 for pkg in $enableval; do 2512 IFS="$lt_save_ifs" 2513 if test "X$pkg" = "X$p"; then 2514 enable_static=yes 2515 fi 2516 done 2517 IFS="$lt_save_ifs" 2518 ;; 2519 esac 2520else 2521 enable_static=no 2522fi 2523 2524 2525 2526# Check whether --enable-shared was given. 2527if test "${enable_shared+set}" = set; then 2528 enableval=$enable_shared; p=${PACKAGE-default} 2529 case $enableval in 2530 yes) enable_shared=yes ;; 2531 no) enable_shared=no ;; 2532 *) 2533 enable_shared=no 2534 # Look at the argument we got. We use all the common list separators. 2535 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2536 for pkg in $enableval; do 2537 IFS="$lt_save_ifs" 2538 if test "X$pkg" = "X$p"; then 2539 enable_shared=yes 2540 fi 2541 done 2542 IFS="$lt_save_ifs" 2543 ;; 2544 esac 2545else 2546 enable_shared=yes 2547fi 2548 2549 2550# Check whether --enable-fast-install was given. 2551if test "${enable_fast_install+set}" = set; then 2552 enableval=$enable_fast_install; p=${PACKAGE-default} 2553 case $enableval in 2554 yes) enable_fast_install=yes ;; 2555 no) enable_fast_install=no ;; 2556 *) 2557 enable_fast_install=no 2558 # Look at the argument we got. We use all the common list separators. 2559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2560 for pkg in $enableval; do 2561 IFS="$lt_save_ifs" 2562 if test "X$pkg" = "X$p"; then 2563 enable_fast_install=yes 2564 fi 2565 done 2566 IFS="$lt_save_ifs" 2567 ;; 2568 esac 2569else 2570 enable_fast_install=yes 2571fi 2572 2573 2574# Make sure we can run config.sub. 2575$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2576 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2577echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2578 { (exit 1); exit 1; }; } 2579 2580{ echo "$as_me:$LINENO: checking build system type" >&5 2581echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2582if test "${ac_cv_build+set}" = set; then 2583 echo $ECHO_N "(cached) $ECHO_C" >&6 2584else 2585 ac_build_alias=$build_alias 2586test "x$ac_build_alias" = x && 2587 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2588test "x$ac_build_alias" = x && 2589 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2590echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2591 { (exit 1); exit 1; }; } 2592ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2593 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2594echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2595 { (exit 1); exit 1; }; } 2596 2597fi 2598{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2599echo "${ECHO_T}$ac_cv_build" >&6; } 2600case $ac_cv_build in 2601*-*-*) ;; 2602*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2603echo "$as_me: error: invalid value of canonical build" >&2;} 2604 { (exit 1); exit 1; }; };; 2605esac 2606build=$ac_cv_build 2607ac_save_IFS=$IFS; IFS='-' 2608set x $ac_cv_build 2609shift 2610build_cpu=$1 2611build_vendor=$2 2612shift; shift 2613# Remember, the first character of IFS is used to create $*, 2614# except with old shells: 2615build_os=$* 2616IFS=$ac_save_IFS 2617case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2618 2619 2620{ echo "$as_me:$LINENO: checking host system type" >&5 2621echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2622if test "${ac_cv_host+set}" = set; then 2623 echo $ECHO_N "(cached) $ECHO_C" >&6 2624else 2625 if test "x$host_alias" = x; then 2626 ac_cv_host=$ac_cv_build 2627else 2628 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2629 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2630echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2631 { (exit 1); exit 1; }; } 2632fi 2633 2634fi 2635{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2636echo "${ECHO_T}$ac_cv_host" >&6; } 2637case $ac_cv_host in 2638*-*-*) ;; 2639*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2640echo "$as_me: error: invalid value of canonical host" >&2;} 2641 { (exit 1); exit 1; }; };; 2642esac 2643host=$ac_cv_host 2644ac_save_IFS=$IFS; IFS='-' 2645set x $ac_cv_host 2646shift 2647host_cpu=$1 2648host_vendor=$2 2649shift; shift 2650# Remember, the first character of IFS is used to create $*, 2651# except with old shells: 2652host_os=$* 2653IFS=$ac_save_IFS 2654case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2655 2656 2657DEPDIR="${am__leading_dot}deps" 2658 2659ac_config_commands="$ac_config_commands depfiles" 2660 2661 2662am_make=${MAKE-make} 2663cat > confinc << 'END' 2664am__doit: 2665 @echo done 2666.PHONY: am__doit 2667END 2668# If we don't find an include directive, just comment out the code. 2669{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2670echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2671am__include="#" 2672am__quote= 2673_am_result=none 2674# First try GNU make style include. 2675echo "include confinc" > confmf 2676# We grep out `Entering directory' and `Leaving directory' 2677# messages which can occur if `w' ends up in MAKEFLAGS. 2678# In particular we don't look at `^make:' because GNU make might 2679# be invoked under some other name (usually "gmake"), in which 2680# case it prints its new name instead of `make'. 2681if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2682 am__include=include 2683 am__quote= 2684 _am_result=GNU 2685fi 2686# Now try BSD make style include. 2687if test "$am__include" = "#"; then 2688 echo '.include "confinc"' > confmf 2689 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2690 am__include=.include 2691 am__quote="\"" 2692 _am_result=BSD 2693 fi 2694fi 2695 2696 2697{ echo "$as_me:$LINENO: result: $_am_result" >&5 2698echo "${ECHO_T}$_am_result" >&6; } 2699rm -f confinc confmf 2700 2701# Check whether --enable-dependency-tracking was given. 2702if test "${enable_dependency_tracking+set}" = set; then 2703 enableval=$enable_dependency_tracking; 2704fi 2705 2706if test "x$enable_dependency_tracking" != xno; then 2707 am_depcomp="$ac_aux_dir/depcomp" 2708 AMDEPBACKSLASH='\' 2709fi 2710 if test "x$enable_dependency_tracking" != xno; then 2711 AMDEP_TRUE= 2712 AMDEP_FALSE='#' 2713else 2714 AMDEP_TRUE='#' 2715 AMDEP_FALSE= 2716fi 2717 2718 2719ac_ext=c 2720ac_cpp='$CPP $CPPFLAGS' 2721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2723ac_compiler_gnu=$ac_cv_c_compiler_gnu 2724if test -n "$ac_tool_prefix"; then 2725 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2726set dummy ${ac_tool_prefix}gcc; ac_word=$2 2727{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2729if test "${ac_cv_prog_CC+set}" = set; then 2730 echo $ECHO_N "(cached) $ECHO_C" >&6 2731else 2732 if test -n "$CC"; then 2733 ac_cv_prog_CC="$CC" # Let the user override the test. 2734else 2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2736for as_dir in $PATH 2737do 2738 IFS=$as_save_IFS 2739 test -z "$as_dir" && as_dir=. 2740 for ac_exec_ext in '' $ac_executable_extensions; do 2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2742 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2744 break 2 2745 fi 2746done 2747done 2748IFS=$as_save_IFS 2749 2750fi 2751fi 2752CC=$ac_cv_prog_CC 2753if test -n "$CC"; then 2754 { echo "$as_me:$LINENO: result: $CC" >&5 2755echo "${ECHO_T}$CC" >&6; } 2756else 2757 { echo "$as_me:$LINENO: result: no" >&5 2758echo "${ECHO_T}no" >&6; } 2759fi 2760 2761 2762fi 2763if test -z "$ac_cv_prog_CC"; then 2764 ac_ct_CC=$CC 2765 # Extract the first word of "gcc", so it can be a program name with args. 2766set dummy gcc; ac_word=$2 2767{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2769if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2770 echo $ECHO_N "(cached) $ECHO_C" >&6 2771else 2772 if test -n "$ac_ct_CC"; then 2773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2774else 2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2776for as_dir in $PATH 2777do 2778 IFS=$as_save_IFS 2779 test -z "$as_dir" && as_dir=. 2780 for ac_exec_ext in '' $ac_executable_extensions; do 2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2782 ac_cv_prog_ac_ct_CC="gcc" 2783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2784 break 2 2785 fi 2786done 2787done 2788IFS=$as_save_IFS 2789 2790fi 2791fi 2792ac_ct_CC=$ac_cv_prog_ac_ct_CC 2793if test -n "$ac_ct_CC"; then 2794 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2795echo "${ECHO_T}$ac_ct_CC" >&6; } 2796else 2797 { echo "$as_me:$LINENO: result: no" >&5 2798echo "${ECHO_T}no" >&6; } 2799fi 2800 2801 if test "x$ac_ct_CC" = x; then 2802 CC="" 2803 else 2804 case $cross_compiling:$ac_tool_warned in 2805yes:) 2806{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2807whose name does not start with the host triplet. If you think this 2808configuration is useful to you, please write to autoconf@gnu.org." >&5 2809echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2810whose name does not start with the host triplet. If you think this 2811configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2812ac_tool_warned=yes ;; 2813esac 2814 CC=$ac_ct_CC 2815 fi 2816else 2817 CC="$ac_cv_prog_CC" 2818fi 2819 2820if test -z "$CC"; then 2821 if test -n "$ac_tool_prefix"; then 2822 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2823set dummy ${ac_tool_prefix}cc; ac_word=$2 2824{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2826if test "${ac_cv_prog_CC+set}" = set; then 2827 echo $ECHO_N "(cached) $ECHO_C" >&6 2828else 2829 if test -n "$CC"; then 2830 ac_cv_prog_CC="$CC" # Let the user override the test. 2831else 2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2833for as_dir in $PATH 2834do 2835 IFS=$as_save_IFS 2836 test -z "$as_dir" && as_dir=. 2837 for ac_exec_ext in '' $ac_executable_extensions; do 2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2839 ac_cv_prog_CC="${ac_tool_prefix}cc" 2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2841 break 2 2842 fi 2843done 2844done 2845IFS=$as_save_IFS 2846 2847fi 2848fi 2849CC=$ac_cv_prog_CC 2850if test -n "$CC"; then 2851 { echo "$as_me:$LINENO: result: $CC" >&5 2852echo "${ECHO_T}$CC" >&6; } 2853else 2854 { echo "$as_me:$LINENO: result: no" >&5 2855echo "${ECHO_T}no" >&6; } 2856fi 2857 2858 2859 fi 2860fi 2861if test -z "$CC"; then 2862 # Extract the first word of "cc", so it can be a program name with args. 2863set dummy cc; ac_word=$2 2864{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2866if test "${ac_cv_prog_CC+set}" = set; then 2867 echo $ECHO_N "(cached) $ECHO_C" >&6 2868else 2869 if test -n "$CC"; then 2870 ac_cv_prog_CC="$CC" # Let the user override the test. 2871else 2872 ac_prog_rejected=no 2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2874for as_dir in $PATH 2875do 2876 IFS=$as_save_IFS 2877 test -z "$as_dir" && as_dir=. 2878 for ac_exec_ext in '' $ac_executable_extensions; do 2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2880 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2881 ac_prog_rejected=yes 2882 continue 2883 fi 2884 ac_cv_prog_CC="cc" 2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2886 break 2 2887 fi 2888done 2889done 2890IFS=$as_save_IFS 2891 2892if test $ac_prog_rejected = yes; then 2893 # We found a bogon in the path, so make sure we never use it. 2894 set dummy $ac_cv_prog_CC 2895 shift 2896 if test $# != 0; then 2897 # We chose a different compiler from the bogus one. 2898 # However, it has the same basename, so the bogon will be chosen 2899 # first if we set CC to just the basename; use the full file name. 2900 shift 2901 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2902 fi 2903fi 2904fi 2905fi 2906CC=$ac_cv_prog_CC 2907if test -n "$CC"; then 2908 { echo "$as_me:$LINENO: result: $CC" >&5 2909echo "${ECHO_T}$CC" >&6; } 2910else 2911 { echo "$as_me:$LINENO: result: no" >&5 2912echo "${ECHO_T}no" >&6; } 2913fi 2914 2915 2916fi 2917if test -z "$CC"; then 2918 if test -n "$ac_tool_prefix"; then 2919 for ac_prog in cl.exe 2920 do 2921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2922set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2923{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2925if test "${ac_cv_prog_CC+set}" = set; then 2926 echo $ECHO_N "(cached) $ECHO_C" >&6 2927else 2928 if test -n "$CC"; then 2929 ac_cv_prog_CC="$CC" # Let the user override the test. 2930else 2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2932for as_dir in $PATH 2933do 2934 IFS=$as_save_IFS 2935 test -z "$as_dir" && as_dir=. 2936 for ac_exec_ext in '' $ac_executable_extensions; do 2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2938 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2940 break 2 2941 fi 2942done 2943done 2944IFS=$as_save_IFS 2945 2946fi 2947fi 2948CC=$ac_cv_prog_CC 2949if test -n "$CC"; then 2950 { echo "$as_me:$LINENO: result: $CC" >&5 2951echo "${ECHO_T}$CC" >&6; } 2952else 2953 { echo "$as_me:$LINENO: result: no" >&5 2954echo "${ECHO_T}no" >&6; } 2955fi 2956 2957 2958 test -n "$CC" && break 2959 done 2960fi 2961if test -z "$CC"; then 2962 ac_ct_CC=$CC 2963 for ac_prog in cl.exe 2964do 2965 # Extract the first word of "$ac_prog", so it can be a program name with args. 2966set dummy $ac_prog; ac_word=$2 2967{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2969if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2970 echo $ECHO_N "(cached) $ECHO_C" >&6 2971else 2972 if test -n "$ac_ct_CC"; then 2973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2974else 2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2976for as_dir in $PATH 2977do 2978 IFS=$as_save_IFS 2979 test -z "$as_dir" && as_dir=. 2980 for ac_exec_ext in '' $ac_executable_extensions; do 2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2982 ac_cv_prog_ac_ct_CC="$ac_prog" 2983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2984 break 2 2985 fi 2986done 2987done 2988IFS=$as_save_IFS 2989 2990fi 2991fi 2992ac_ct_CC=$ac_cv_prog_ac_ct_CC 2993if test -n "$ac_ct_CC"; then 2994 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2995echo "${ECHO_T}$ac_ct_CC" >&6; } 2996else 2997 { echo "$as_me:$LINENO: result: no" >&5 2998echo "${ECHO_T}no" >&6; } 2999fi 3000 3001 3002 test -n "$ac_ct_CC" && break 3003done 3004 3005 if test "x$ac_ct_CC" = x; then 3006 CC="" 3007 else 3008 case $cross_compiling:$ac_tool_warned in 3009yes:) 3010{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3011whose name does not start with the host triplet. If you think this 3012configuration is useful to you, please write to autoconf@gnu.org." >&5 3013echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3014whose name does not start with the host triplet. If you think this 3015configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3016ac_tool_warned=yes ;; 3017esac 3018 CC=$ac_ct_CC 3019 fi 3020fi 3021 3022fi 3023 3024 3025test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3026See \`config.log' for more details." >&5 3027echo "$as_me: error: no acceptable C compiler found in \$PATH 3028See \`config.log' for more details." >&2;} 3029 { (exit 1); exit 1; }; } 3030 3031# Provide some information about the compiler. 3032echo "$as_me:$LINENO: checking for C compiler version" >&5 3033ac_compiler=`set X $ac_compile; echo $2` 3034{ (ac_try="$ac_compiler --version >&5" 3035case "(($ac_try" in 3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3037 *) ac_try_echo=$ac_try;; 3038esac 3039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3040 (eval "$ac_compiler --version >&5") 2>&5 3041 ac_status=$? 3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3043 (exit $ac_status); } 3044{ (ac_try="$ac_compiler -v >&5" 3045case "(($ac_try" in 3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3047 *) ac_try_echo=$ac_try;; 3048esac 3049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3050 (eval "$ac_compiler -v >&5") 2>&5 3051 ac_status=$? 3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3053 (exit $ac_status); } 3054{ (ac_try="$ac_compiler -V >&5" 3055case "(($ac_try" in 3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3057 *) ac_try_echo=$ac_try;; 3058esac 3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3060 (eval "$ac_compiler -V >&5") 2>&5 3061 ac_status=$? 3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3063 (exit $ac_status); } 3064 3065cat >conftest.$ac_ext <<_ACEOF 3066/* confdefs.h. */ 3067_ACEOF 3068cat confdefs.h >>conftest.$ac_ext 3069cat >>conftest.$ac_ext <<_ACEOF 3070/* end confdefs.h. */ 3071 3072int 3073main () 3074{ 3075 3076 ; 3077 return 0; 3078} 3079_ACEOF 3080ac_clean_files_save=$ac_clean_files 3081ac_clean_files="$ac_clean_files a.out a.exe b.out" 3082# Try to create an executable without -o first, disregard a.out. 3083# It will help us diagnose broken compilers, and finding out an intuition 3084# of exeext. 3085{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3086echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3087ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3088# 3089# List of possible output files, starting from the most likely. 3090# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3091# only as a last resort. b.out is created by i960 compilers. 3092ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3093# 3094# The IRIX 6 linker writes into existing files which may not be 3095# executable, retaining their permissions. Remove them first so a 3096# subsequent execution test works. 3097ac_rmfiles= 3098for ac_file in $ac_files 3099do 3100 case $ac_file in 3101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3102 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3103 esac 3104done 3105rm -f $ac_rmfiles 3106 3107if { (ac_try="$ac_link_default" 3108case "(($ac_try" in 3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3110 *) ac_try_echo=$ac_try;; 3111esac 3112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3113 (eval "$ac_link_default") 2>&5 3114 ac_status=$? 3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3116 (exit $ac_status); }; then 3117 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3118# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3119# in a Makefile. We should not override ac_cv_exeext if it was cached, 3120# so that the user can short-circuit this test for compilers unknown to 3121# Autoconf. 3122for ac_file in $ac_files '' 3123do 3124 test -f "$ac_file" || continue 3125 case $ac_file in 3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3127 ;; 3128 [ab].out ) 3129 # We found the default executable, but exeext='' is most 3130 # certainly right. 3131 break;; 3132 *.* ) 3133 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3134 then :; else 3135 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3136 fi 3137 # We set ac_cv_exeext here because the later test for it is not 3138 # safe: cross compilers may not add the suffix if given an `-o' 3139 # argument, so we may need to know it at that point already. 3140 # Even if this section looks crufty: it has the advantage of 3141 # actually working. 3142 break;; 3143 * ) 3144 break;; 3145 esac 3146done 3147test "$ac_cv_exeext" = no && ac_cv_exeext= 3148 3149else 3150 ac_file='' 3151fi 3152 3153{ echo "$as_me:$LINENO: result: $ac_file" >&5 3154echo "${ECHO_T}$ac_file" >&6; } 3155if test -z "$ac_file"; then 3156 echo "$as_me: failed program was:" >&5 3157sed 's/^/| /' conftest.$ac_ext >&5 3158 3159{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3160See \`config.log' for more details." >&5 3161echo "$as_me: error: C compiler cannot create executables 3162See \`config.log' for more details." >&2;} 3163 { (exit 77); exit 77; }; } 3164fi 3165 3166ac_exeext=$ac_cv_exeext 3167 3168# Check that the compiler produces executables we can run. If not, either 3169# the compiler is broken, or we cross compile. 3170{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3171echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3172# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3173# If not cross compiling, check that we can run a simple program. 3174if test "$cross_compiling" != yes; then 3175 if { ac_try='./$ac_file' 3176 { (case "(($ac_try" in 3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3178 *) ac_try_echo=$ac_try;; 3179esac 3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3181 (eval "$ac_try") 2>&5 3182 ac_status=$? 3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3184 (exit $ac_status); }; }; then 3185 cross_compiling=no 3186 else 3187 if test "$cross_compiling" = maybe; then 3188 cross_compiling=yes 3189 else 3190 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3191If you meant to cross compile, use \`--host'. 3192See \`config.log' for more details." >&5 3193echo "$as_me: error: cannot run C compiled programs. 3194If you meant to cross compile, use \`--host'. 3195See \`config.log' for more details." >&2;} 3196 { (exit 1); exit 1; }; } 3197 fi 3198 fi 3199fi 3200{ echo "$as_me:$LINENO: result: yes" >&5 3201echo "${ECHO_T}yes" >&6; } 3202 3203rm -f a.out a.exe conftest$ac_cv_exeext b.out 3204ac_clean_files=$ac_clean_files_save 3205# Check that the compiler produces executables we can run. If not, either 3206# the compiler is broken, or we cross compile. 3207{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3208echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3209{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3210echo "${ECHO_T}$cross_compiling" >&6; } 3211 3212{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3213echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3214if { (ac_try="$ac_link" 3215case "(($ac_try" in 3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3217 *) ac_try_echo=$ac_try;; 3218esac 3219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3220 (eval "$ac_link") 2>&5 3221 ac_status=$? 3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3223 (exit $ac_status); }; then 3224 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3225# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3226# work properly (i.e., refer to `conftest.exe'), while it won't with 3227# `rm'. 3228for ac_file in conftest.exe conftest conftest.*; do 3229 test -f "$ac_file" || continue 3230 case $ac_file in 3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3232 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3233 break;; 3234 * ) break;; 3235 esac 3236done 3237else 3238 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3239See \`config.log' for more details." >&5 3240echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3241See \`config.log' for more details." >&2;} 3242 { (exit 1); exit 1; }; } 3243fi 3244 3245rm -f conftest$ac_cv_exeext 3246{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3247echo "${ECHO_T}$ac_cv_exeext" >&6; } 3248 3249rm -f conftest.$ac_ext 3250EXEEXT=$ac_cv_exeext 3251ac_exeext=$EXEEXT 3252{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3253echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3254if test "${ac_cv_objext+set}" = set; then 3255 echo $ECHO_N "(cached) $ECHO_C" >&6 3256else 3257 cat >conftest.$ac_ext <<_ACEOF 3258/* confdefs.h. */ 3259_ACEOF 3260cat confdefs.h >>conftest.$ac_ext 3261cat >>conftest.$ac_ext <<_ACEOF 3262/* end confdefs.h. */ 3263 3264int 3265main () 3266{ 3267 3268 ; 3269 return 0; 3270} 3271_ACEOF 3272rm -f conftest.o conftest.obj 3273if { (ac_try="$ac_compile" 3274case "(($ac_try" in 3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3276 *) ac_try_echo=$ac_try;; 3277esac 3278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3279 (eval "$ac_compile") 2>&5 3280 ac_status=$? 3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3282 (exit $ac_status); }; then 3283 for ac_file in conftest.o conftest.obj conftest.*; do 3284 test -f "$ac_file" || continue; 3285 case $ac_file in 3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3287 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3288 break;; 3289 esac 3290done 3291else 3292 echo "$as_me: failed program was:" >&5 3293sed 's/^/| /' conftest.$ac_ext >&5 3294 3295{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3296See \`config.log' for more details." >&5 3297echo "$as_me: error: cannot compute suffix of object files: cannot compile 3298See \`config.log' for more details." >&2;} 3299 { (exit 1); exit 1; }; } 3300fi 3301 3302rm -f conftest.$ac_cv_objext conftest.$ac_ext 3303fi 3304{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3305echo "${ECHO_T}$ac_cv_objext" >&6; } 3306OBJEXT=$ac_cv_objext 3307ac_objext=$OBJEXT 3308{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3309echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3310if test "${ac_cv_c_compiler_gnu+set}" = set; then 3311 echo $ECHO_N "(cached) $ECHO_C" >&6 3312else 3313 cat >conftest.$ac_ext <<_ACEOF 3314/* confdefs.h. */ 3315_ACEOF 3316cat confdefs.h >>conftest.$ac_ext 3317cat >>conftest.$ac_ext <<_ACEOF 3318/* end confdefs.h. */ 3319 3320int 3321main () 3322{ 3323#ifndef __GNUC__ 3324 choke me 3325#endif 3326 3327 ; 3328 return 0; 3329} 3330_ACEOF 3331rm -f conftest.$ac_objext 3332if { (ac_try="$ac_compile" 3333case "(($ac_try" in 3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3335 *) ac_try_echo=$ac_try;; 3336esac 3337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3338 (eval "$ac_compile") 2>conftest.er1 3339 ac_status=$? 3340 grep -v '^ *+' conftest.er1 >conftest.err 3341 rm -f conftest.er1 3342 cat conftest.err >&5 3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3344 (exit $ac_status); } && { 3345 test -z "$ac_c_werror_flag" || 3346 test ! -s conftest.err 3347 } && test -s conftest.$ac_objext; then 3348 ac_compiler_gnu=yes 3349else 3350 echo "$as_me: failed program was:" >&5 3351sed 's/^/| /' conftest.$ac_ext >&5 3352 3353 ac_compiler_gnu=no 3354fi 3355 3356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3357ac_cv_c_compiler_gnu=$ac_compiler_gnu 3358 3359fi 3360{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3361echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3362GCC=`test $ac_compiler_gnu = yes && echo yes` 3363ac_test_CFLAGS=${CFLAGS+set} 3364ac_save_CFLAGS=$CFLAGS 3365{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3366echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3367if test "${ac_cv_prog_cc_g+set}" = set; then 3368 echo $ECHO_N "(cached) $ECHO_C" >&6 3369else 3370 ac_save_c_werror_flag=$ac_c_werror_flag 3371 ac_c_werror_flag=yes 3372 ac_cv_prog_cc_g=no 3373 CFLAGS="-g" 3374 cat >conftest.$ac_ext <<_ACEOF 3375/* confdefs.h. */ 3376_ACEOF 3377cat confdefs.h >>conftest.$ac_ext 3378cat >>conftest.$ac_ext <<_ACEOF 3379/* end confdefs.h. */ 3380 3381int 3382main () 3383{ 3384 3385 ; 3386 return 0; 3387} 3388_ACEOF 3389rm -f conftest.$ac_objext 3390if { (ac_try="$ac_compile" 3391case "(($ac_try" in 3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3393 *) ac_try_echo=$ac_try;; 3394esac 3395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3396 (eval "$ac_compile") 2>conftest.er1 3397 ac_status=$? 3398 grep -v '^ *+' conftest.er1 >conftest.err 3399 rm -f conftest.er1 3400 cat conftest.err >&5 3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3402 (exit $ac_status); } && { 3403 test -z "$ac_c_werror_flag" || 3404 test ! -s conftest.err 3405 } && test -s conftest.$ac_objext; then 3406 ac_cv_prog_cc_g=yes 3407else 3408 echo "$as_me: failed program was:" >&5 3409sed 's/^/| /' conftest.$ac_ext >&5 3410 3411 CFLAGS="" 3412 cat >conftest.$ac_ext <<_ACEOF 3413/* confdefs.h. */ 3414_ACEOF 3415cat confdefs.h >>conftest.$ac_ext 3416cat >>conftest.$ac_ext <<_ACEOF 3417/* end confdefs.h. */ 3418 3419int 3420main () 3421{ 3422 3423 ; 3424 return 0; 3425} 3426_ACEOF 3427rm -f conftest.$ac_objext 3428if { (ac_try="$ac_compile" 3429case "(($ac_try" in 3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3431 *) ac_try_echo=$ac_try;; 3432esac 3433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3434 (eval "$ac_compile") 2>conftest.er1 3435 ac_status=$? 3436 grep -v '^ *+' conftest.er1 >conftest.err 3437 rm -f conftest.er1 3438 cat conftest.err >&5 3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3440 (exit $ac_status); } && { 3441 test -z "$ac_c_werror_flag" || 3442 test ! -s conftest.err 3443 } && test -s conftest.$ac_objext; then 3444 : 3445else 3446 echo "$as_me: failed program was:" >&5 3447sed 's/^/| /' conftest.$ac_ext >&5 3448 3449 ac_c_werror_flag=$ac_save_c_werror_flag 3450 CFLAGS="-g" 3451 cat >conftest.$ac_ext <<_ACEOF 3452/* confdefs.h. */ 3453_ACEOF 3454cat confdefs.h >>conftest.$ac_ext 3455cat >>conftest.$ac_ext <<_ACEOF 3456/* end confdefs.h. */ 3457 3458int 3459main () 3460{ 3461 3462 ; 3463 return 0; 3464} 3465_ACEOF 3466rm -f conftest.$ac_objext 3467if { (ac_try="$ac_compile" 3468case "(($ac_try" in 3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3470 *) ac_try_echo=$ac_try;; 3471esac 3472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3473 (eval "$ac_compile") 2>conftest.er1 3474 ac_status=$? 3475 grep -v '^ *+' conftest.er1 >conftest.err 3476 rm -f conftest.er1 3477 cat conftest.err >&5 3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3479 (exit $ac_status); } && { 3480 test -z "$ac_c_werror_flag" || 3481 test ! -s conftest.err 3482 } && test -s conftest.$ac_objext; then 3483 ac_cv_prog_cc_g=yes 3484else 3485 echo "$as_me: failed program was:" >&5 3486sed 's/^/| /' conftest.$ac_ext >&5 3487 3488 3489fi 3490 3491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3492fi 3493 3494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3495fi 3496 3497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3498 ac_c_werror_flag=$ac_save_c_werror_flag 3499fi 3500{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3501echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3502if test "$ac_test_CFLAGS" = set; then 3503 CFLAGS=$ac_save_CFLAGS 3504elif test $ac_cv_prog_cc_g = yes; then 3505 if test "$GCC" = yes; then 3506 CFLAGS="-g -O2" 3507 else 3508 CFLAGS="-g" 3509 fi 3510else 3511 if test "$GCC" = yes; then 3512 CFLAGS="-O2" 3513 else 3514 CFLAGS= 3515 fi 3516fi 3517{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3518echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3519if test "${ac_cv_prog_cc_c89+set}" = set; then 3520 echo $ECHO_N "(cached) $ECHO_C" >&6 3521else 3522 ac_cv_prog_cc_c89=no 3523ac_save_CC=$CC 3524cat >conftest.$ac_ext <<_ACEOF 3525/* confdefs.h. */ 3526_ACEOF 3527cat confdefs.h >>conftest.$ac_ext 3528cat >>conftest.$ac_ext <<_ACEOF 3529/* end confdefs.h. */ 3530#include <stdarg.h> 3531#include <stdio.h> 3532#include <sys/types.h> 3533#include <sys/stat.h> 3534/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3535struct buf { int x; }; 3536FILE * (*rcsopen) (struct buf *, struct stat *, int); 3537static char *e (p, i) 3538 char **p; 3539 int i; 3540{ 3541 return p[i]; 3542} 3543static char *f (char * (*g) (char **, int), char **p, ...) 3544{ 3545 char *s; 3546 va_list v; 3547 va_start (v,p); 3548 s = g (p, va_arg (v,int)); 3549 va_end (v); 3550 return s; 3551} 3552 3553/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3554 function prototypes and stuff, but not '\xHH' hex character constants. 3555 These don't provoke an error unfortunately, instead are silently treated 3556 as 'x'. The following induces an error, until -std is added to get 3557 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3558 array size at least. It's necessary to write '\x00'==0 to get something 3559 that's true only with -std. */ 3560int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3561 3562/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3563 inside strings and character constants. */ 3564#define FOO(x) 'x' 3565int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3566 3567int test (int i, double x); 3568struct s1 {int (*f) (int a);}; 3569struct s2 {int (*f) (double a);}; 3570int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3571int argc; 3572char **argv; 3573int 3574main () 3575{ 3576return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3577 ; 3578 return 0; 3579} 3580_ACEOF 3581for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3582 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3583do 3584 CC="$ac_save_CC $ac_arg" 3585 rm -f conftest.$ac_objext 3586if { (ac_try="$ac_compile" 3587case "(($ac_try" in 3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3589 *) ac_try_echo=$ac_try;; 3590esac 3591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3592 (eval "$ac_compile") 2>conftest.er1 3593 ac_status=$? 3594 grep -v '^ *+' conftest.er1 >conftest.err 3595 rm -f conftest.er1 3596 cat conftest.err >&5 3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3598 (exit $ac_status); } && { 3599 test -z "$ac_c_werror_flag" || 3600 test ! -s conftest.err 3601 } && test -s conftest.$ac_objext; then 3602 ac_cv_prog_cc_c89=$ac_arg 3603else 3604 echo "$as_me: failed program was:" >&5 3605sed 's/^/| /' conftest.$ac_ext >&5 3606 3607 3608fi 3609 3610rm -f core conftest.err conftest.$ac_objext 3611 test "x$ac_cv_prog_cc_c89" != "xno" && break 3612done 3613rm -f conftest.$ac_ext 3614CC=$ac_save_CC 3615 3616fi 3617# AC_CACHE_VAL 3618case "x$ac_cv_prog_cc_c89" in 3619 x) 3620 { echo "$as_me:$LINENO: result: none needed" >&5 3621echo "${ECHO_T}none needed" >&6; } ;; 3622 xno) 3623 { echo "$as_me:$LINENO: result: unsupported" >&5 3624echo "${ECHO_T}unsupported" >&6; } ;; 3625 *) 3626 CC="$CC $ac_cv_prog_cc_c89" 3627 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3628echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3629esac 3630 3631 3632ac_ext=c 3633ac_cpp='$CPP $CPPFLAGS' 3634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3636ac_compiler_gnu=$ac_cv_c_compiler_gnu 3637 3638depcc="$CC" am_compiler_list= 3639 3640{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3641echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3642if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3643 echo $ECHO_N "(cached) $ECHO_C" >&6 3644else 3645 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3646 # We make a subdir and do the tests there. Otherwise we can end up 3647 # making bogus files that we don't know about and never remove. For 3648 # instance it was reported that on HP-UX the gcc test will end up 3649 # making a dummy file named `D' -- because `-MD' means `put the output 3650 # in D'. 3651 mkdir conftest.dir 3652 # Copy depcomp to subdir because otherwise we won't find it if we're 3653 # using a relative directory. 3654 cp "$am_depcomp" conftest.dir 3655 cd conftest.dir 3656 # We will build objects and dependencies in a subdirectory because 3657 # it helps to detect inapplicable dependency modes. For instance 3658 # both Tru64's cc and ICC support -MD to output dependencies as a 3659 # side effect of compilation, but ICC will put the dependencies in 3660 # the current directory while Tru64 will put them in the object 3661 # directory. 3662 mkdir sub 3663 3664 am_cv_CC_dependencies_compiler_type=none 3665 if test "$am_compiler_list" = ""; then 3666 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3667 fi 3668 for depmode in $am_compiler_list; do 3669 # Setup a source with many dependencies, because some compilers 3670 # like to wrap large dependency lists on column 80 (with \), and 3671 # we should not choose a depcomp mode which is confused by this. 3672 # 3673 # We need to recreate these files for each test, as the compiler may 3674 # overwrite some of them when testing with obscure command lines. 3675 # This happens at least with the AIX C compiler. 3676 : > sub/conftest.c 3677 for i in 1 2 3 4 5 6; do 3678 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3679 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3680 # Solaris 8's {/usr,}/bin/sh. 3681 touch sub/conftst$i.h 3682 done 3683 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3684 3685 case $depmode in 3686 nosideeffect) 3687 # after this tag, mechanisms are not by side-effect, so they'll 3688 # only be used when explicitly requested 3689 if test "x$enable_dependency_tracking" = xyes; then 3690 continue 3691 else 3692 break 3693 fi 3694 ;; 3695 none) break ;; 3696 esac 3697 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3698 # mode. It turns out that the SunPro C++ compiler does not properly 3699 # handle `-M -o', and we need to detect this. 3700 if depmode=$depmode \ 3701 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3702 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3703 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3704 >/dev/null 2>conftest.err && 3705 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3706 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3707 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3708 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3709 # icc doesn't choke on unknown options, it will just issue warnings 3710 # or remarks (even with -Werror). So we grep stderr for any message 3711 # that says an option was ignored or not supported. 3712 # When given -MP, icc 7.0 and 7.1 complain thusly: 3713 # icc: Command line warning: ignoring option '-M'; no argument required 3714 # The diagnosis changed in icc 8.0: 3715 # icc: Command line remark: option '-MP' not supported 3716 if (grep 'ignoring option' conftest.err || 3717 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3718 am_cv_CC_dependencies_compiler_type=$depmode 3719 break 3720 fi 3721 fi 3722 done 3723 3724 cd .. 3725 rm -rf conftest.dir 3726else 3727 am_cv_CC_dependencies_compiler_type=none 3728fi 3729 3730fi 3731{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3732echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3733CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3734 3735 if 3736 test "x$enable_dependency_tracking" != xno \ 3737 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3738 am__fastdepCC_TRUE= 3739 am__fastdepCC_FALSE='#' 3740else 3741 am__fastdepCC_TRUE='#' 3742 am__fastdepCC_FALSE= 3743fi 3744 3745 3746{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3747echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3748if test "${lt_cv_path_SED+set}" = set; then 3749 echo $ECHO_N "(cached) $ECHO_C" >&6 3750else 3751 # Loop through the user's path and test for sed and gsed. 3752# Then use that list of sed's as ones to test for truncation. 3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3754for as_dir in $PATH 3755do 3756 IFS=$as_save_IFS 3757 test -z "$as_dir" && as_dir=. 3758 for lt_ac_prog in sed gsed; do 3759 for ac_exec_ext in '' $ac_executable_extensions; do 3760 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3761 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3762 fi 3763 done 3764 done 3765done 3766IFS=$as_save_IFS 3767lt_ac_max=0 3768lt_ac_count=0 3769# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3770# along with /bin/sed that truncates output. 3771for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3772 test ! -f $lt_ac_sed && continue 3773 cat /dev/null > conftest.in 3774 lt_ac_count=0 3775 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3776 # Check for GNU sed and select it if it is found. 3777 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3778 lt_cv_path_SED=$lt_ac_sed 3779 break 3780 fi 3781 while true; do 3782 cat conftest.in conftest.in >conftest.tmp 3783 mv conftest.tmp conftest.in 3784 cp conftest.in conftest.nl 3785 echo >>conftest.nl 3786 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3787 cmp -s conftest.out conftest.nl || break 3788 # 10000 chars as input seems more than enough 3789 test $lt_ac_count -gt 10 && break 3790 lt_ac_count=`expr $lt_ac_count + 1` 3791 if test $lt_ac_count -gt $lt_ac_max; then 3792 lt_ac_max=$lt_ac_count 3793 lt_cv_path_SED=$lt_ac_sed 3794 fi 3795 done 3796done 3797 3798fi 3799 3800SED=$lt_cv_path_SED 3801 3802{ echo "$as_me:$LINENO: result: $SED" >&5 3803echo "${ECHO_T}$SED" >&6; } 3804 3805{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3806echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3807if test "${ac_cv_path_GREP+set}" = set; then 3808 echo $ECHO_N "(cached) $ECHO_C" >&6 3809else 3810 # Extract the first word of "grep ggrep" to use in msg output 3811if test -z "$GREP"; then 3812set dummy grep ggrep; ac_prog_name=$2 3813if test "${ac_cv_path_GREP+set}" = set; then 3814 echo $ECHO_N "(cached) $ECHO_C" >&6 3815else 3816 ac_path_GREP_found=false 3817# Loop through the user's path and test for each of PROGNAME-LIST 3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3819for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3820do 3821 IFS=$as_save_IFS 3822 test -z "$as_dir" && as_dir=. 3823 for ac_prog in grep ggrep; do 3824 for ac_exec_ext in '' $ac_executable_extensions; do 3825 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3826 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3827 # Check for GNU ac_path_GREP and select it if it is found. 3828 # Check for GNU $ac_path_GREP 3829case `"$ac_path_GREP" --version 2>&1` in 3830*GNU*) 3831 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3832*) 3833 ac_count=0 3834 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3835 while : 3836 do 3837 cat "conftest.in" "conftest.in" >"conftest.tmp" 3838 mv "conftest.tmp" "conftest.in" 3839 cp "conftest.in" "conftest.nl" 3840 echo 'GREP' >> "conftest.nl" 3841 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3843 ac_count=`expr $ac_count + 1` 3844 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3845 # Best one so far, save it but keep looking for a better one 3846 ac_cv_path_GREP="$ac_path_GREP" 3847 ac_path_GREP_max=$ac_count 3848 fi 3849 # 10*(2^10) chars as input seems more than enough 3850 test $ac_count -gt 10 && break 3851 done 3852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3853esac 3854 3855 3856 $ac_path_GREP_found && break 3 3857 done 3858done 3859 3860done 3861IFS=$as_save_IFS 3862 3863 3864fi 3865 3866GREP="$ac_cv_path_GREP" 3867if test -z "$GREP"; then 3868 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3869echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3870 { (exit 1); exit 1; }; } 3871fi 3872 3873else 3874 ac_cv_path_GREP=$GREP 3875fi 3876 3877 3878fi 3879{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3880echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3881 GREP="$ac_cv_path_GREP" 3882 3883 3884{ echo "$as_me:$LINENO: checking for egrep" >&5 3885echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3886if test "${ac_cv_path_EGREP+set}" = set; then 3887 echo $ECHO_N "(cached) $ECHO_C" >&6 3888else 3889 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3890 then ac_cv_path_EGREP="$GREP -E" 3891 else 3892 # Extract the first word of "egrep" to use in msg output 3893if test -z "$EGREP"; then 3894set dummy egrep; ac_prog_name=$2 3895if test "${ac_cv_path_EGREP+set}" = set; then 3896 echo $ECHO_N "(cached) $ECHO_C" >&6 3897else 3898 ac_path_EGREP_found=false 3899# Loop through the user's path and test for each of PROGNAME-LIST 3900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3901for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3902do 3903 IFS=$as_save_IFS 3904 test -z "$as_dir" && as_dir=. 3905 for ac_prog in egrep; do 3906 for ac_exec_ext in '' $ac_executable_extensions; do 3907 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3908 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3909 # Check for GNU ac_path_EGREP and select it if it is found. 3910 # Check for GNU $ac_path_EGREP 3911case `"$ac_path_EGREP" --version 2>&1` in 3912*GNU*) 3913 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3914*) 3915 ac_count=0 3916 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3917 while : 3918 do 3919 cat "conftest.in" "conftest.in" >"conftest.tmp" 3920 mv "conftest.tmp" "conftest.in" 3921 cp "conftest.in" "conftest.nl" 3922 echo 'EGREP' >> "conftest.nl" 3923 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3925 ac_count=`expr $ac_count + 1` 3926 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3927 # Best one so far, save it but keep looking for a better one 3928 ac_cv_path_EGREP="$ac_path_EGREP" 3929 ac_path_EGREP_max=$ac_count 3930 fi 3931 # 10*(2^10) chars as input seems more than enough 3932 test $ac_count -gt 10 && break 3933 done 3934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3935esac 3936 3937 3938 $ac_path_EGREP_found && break 3 3939 done 3940done 3941 3942done 3943IFS=$as_save_IFS 3944 3945 3946fi 3947 3948EGREP="$ac_cv_path_EGREP" 3949if test -z "$EGREP"; then 3950 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3951echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3952 { (exit 1); exit 1; }; } 3953fi 3954 3955else 3956 ac_cv_path_EGREP=$EGREP 3957fi 3958 3959 3960 fi 3961fi 3962{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3963echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3964 EGREP="$ac_cv_path_EGREP" 3965 3966 3967 3968# Check whether --with-gnu-ld was given. 3969if test "${with_gnu_ld+set}" = set; then 3970 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3971else 3972 with_gnu_ld=no 3973fi 3974 3975ac_prog=ld 3976if test "$GCC" = yes; then 3977 # Check if gcc -print-prog-name=ld gives a path. 3978 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3979echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3980 case $host in 3981 *-*-mingw*) 3982 # gcc leaves a trailing carriage return which upsets mingw 3983 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3984 *) 3985 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3986 esac 3987 case $ac_prog in 3988 # Accept absolute paths. 3989 [\\/]* | ?:[\\/]*) 3990 re_direlt='/[^/][^/]*/\.\./' 3991 # Canonicalize the pathname of ld 3992 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3993 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3994 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3995 done 3996 test -z "$LD" && LD="$ac_prog" 3997 ;; 3998 "") 3999 # If it fails, then pretend we aren't using GCC. 4000 ac_prog=ld 4001 ;; 4002 *) 4003 # If it is relative, then search for the first ld in PATH. 4004 with_gnu_ld=unknown 4005 ;; 4006 esac 4007elif test "$with_gnu_ld" = yes; then 4008 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4009echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4010else 4011 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4012echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4013fi 4014if test "${lt_cv_path_LD+set}" = set; then 4015 echo $ECHO_N "(cached) $ECHO_C" >&6 4016else 4017 if test -z "$LD"; then 4018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4019 for ac_dir in $PATH; do 4020 IFS="$lt_save_ifs" 4021 test -z "$ac_dir" && ac_dir=. 4022 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4023 lt_cv_path_LD="$ac_dir/$ac_prog" 4024 # Check to see if the program is GNU ld. I'd rather use --version, 4025 # but apparently some variants of GNU ld only accept -v. 4026 # Break only if it was the GNU/non-GNU ld that we prefer. 4027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4028 *GNU* | *'with BFD'*) 4029 test "$with_gnu_ld" != no && break 4030 ;; 4031 *) 4032 test "$with_gnu_ld" != yes && break 4033 ;; 4034 esac 4035 fi 4036 done 4037 IFS="$lt_save_ifs" 4038else 4039 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4040fi 4041fi 4042 4043LD="$lt_cv_path_LD" 4044if test -n "$LD"; then 4045 { echo "$as_me:$LINENO: result: $LD" >&5 4046echo "${ECHO_T}$LD" >&6; } 4047else 4048 { echo "$as_me:$LINENO: result: no" >&5 4049echo "${ECHO_T}no" >&6; } 4050fi 4051test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4052echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4053 { (exit 1); exit 1; }; } 4054{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4055echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4056if test "${lt_cv_prog_gnu_ld+set}" = set; then 4057 echo $ECHO_N "(cached) $ECHO_C" >&6 4058else 4059 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4060case `$LD -v 2>&1 </dev/null` in 4061*GNU* | *'with BFD'*) 4062 lt_cv_prog_gnu_ld=yes 4063 ;; 4064*) 4065 lt_cv_prog_gnu_ld=no 4066 ;; 4067esac 4068fi 4069{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4070echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4071with_gnu_ld=$lt_cv_prog_gnu_ld 4072 4073 4074{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4075echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4076if test "${lt_cv_ld_reload_flag+set}" = set; then 4077 echo $ECHO_N "(cached) $ECHO_C" >&6 4078else 4079 lt_cv_ld_reload_flag='-r' 4080fi 4081{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4082echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4083reload_flag=$lt_cv_ld_reload_flag 4084case $reload_flag in 4085"" | " "*) ;; 4086*) reload_flag=" $reload_flag" ;; 4087esac 4088reload_cmds='$LD$reload_flag -o $output$reload_objs' 4089case $host_os in 4090 darwin*) 4091 if test "$GCC" = yes; then 4092 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4093 else 4094 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4095 fi 4096 ;; 4097esac 4098 4099{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4100echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4101if test "${lt_cv_path_NM+set}" = set; then 4102 echo $ECHO_N "(cached) $ECHO_C" >&6 4103else 4104 if test -n "$NM"; then 4105 # Let the user override the test. 4106 lt_cv_path_NM="$NM" 4107else 4108 lt_nm_to_check="${ac_tool_prefix}nm" 4109 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4110 lt_nm_to_check="$lt_nm_to_check nm" 4111 fi 4112 for lt_tmp_nm in $lt_nm_to_check; do 4113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4114 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4115 IFS="$lt_save_ifs" 4116 test -z "$ac_dir" && ac_dir=. 4117 tmp_nm="$ac_dir/$lt_tmp_nm" 4118 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4119 # Check to see if the nm accepts a BSD-compat flag. 4120 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4121 # nm: unknown option "B" ignored 4122 # Tru64's nm complains that /dev/null is an invalid object file 4123 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4124 */dev/null* | *'Invalid file or object type'*) 4125 lt_cv_path_NM="$tmp_nm -B" 4126 break 4127 ;; 4128 *) 4129 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4130 */dev/null*) 4131 lt_cv_path_NM="$tmp_nm -p" 4132 break 4133 ;; 4134 *) 4135 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4136 continue # so that we can try to find one that supports BSD flags 4137 ;; 4138 esac 4139 ;; 4140 esac 4141 fi 4142 done 4143 IFS="$lt_save_ifs" 4144 done 4145 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4146fi 4147fi 4148{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4149echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4150NM="$lt_cv_path_NM" 4151 4152{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4153echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4154LN_S=$as_ln_s 4155if test "$LN_S" = "ln -s"; then 4156 { echo "$as_me:$LINENO: result: yes" >&5 4157echo "${ECHO_T}yes" >&6; } 4158else 4159 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4160echo "${ECHO_T}no, using $LN_S" >&6; } 4161fi 4162 4163{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4164echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4165if test "${lt_cv_deplibs_check_method+set}" = set; then 4166 echo $ECHO_N "(cached) $ECHO_C" >&6 4167else 4168 lt_cv_file_magic_cmd='$MAGIC_CMD' 4169lt_cv_file_magic_test_file= 4170lt_cv_deplibs_check_method='unknown' 4171# Need to set the preceding variable on all platforms that support 4172# interlibrary dependencies. 4173# 'none' -- dependencies not supported. 4174# `unknown' -- same as none, but documents that we really don't know. 4175# 'pass_all' -- all dependencies passed with no checks. 4176# 'test_compile' -- check by making test program. 4177# 'file_magic [[regex]]' -- check by looking for files in library path 4178# which responds to the $file_magic_cmd with a given extended regex. 4179# If you have `file' or equivalent on your system and you're not sure 4180# whether `pass_all' will *always* work, you probably want this one. 4181 4182case $host_os in 4183aix[4-9]*) 4184 lt_cv_deplibs_check_method=pass_all 4185 ;; 4186 4187beos*) 4188 lt_cv_deplibs_check_method=pass_all 4189 ;; 4190 4191bsdi[45]*) 4192 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4193 lt_cv_file_magic_cmd='/usr/bin/file -L' 4194 lt_cv_file_magic_test_file=/shlib/libc.so 4195 ;; 4196 4197cygwin*) 4198 # func_win32_libid is a shell function defined in ltmain.sh 4199 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4200 lt_cv_file_magic_cmd='func_win32_libid' 4201 ;; 4202 4203mingw* | pw32*) 4204 # Base MSYS/MinGW do not provide the 'file' command needed by 4205 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4206 # unless we find 'file', for example because we are cross-compiling. 4207 if ( file / ) >/dev/null 2>&1; then 4208 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4209 lt_cv_file_magic_cmd='func_win32_libid' 4210 else 4211 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4212 lt_cv_file_magic_cmd='$OBJDUMP -f' 4213 fi 4214 ;; 4215 4216darwin* | rhapsody*) 4217 lt_cv_deplibs_check_method=pass_all 4218 ;; 4219 4220freebsd* | dragonfly*) 4221 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4222 case $host_cpu in 4223 i*86 ) 4224 # Not sure whether the presence of OpenBSD here was a mistake. 4225 # Let's accept both of them until this is cleared up. 4226 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4227 lt_cv_file_magic_cmd=/usr/bin/file 4228 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4229 ;; 4230 esac 4231 else 4232 lt_cv_deplibs_check_method=pass_all 4233 fi 4234 ;; 4235 4236gnu*) 4237 lt_cv_deplibs_check_method=pass_all 4238 ;; 4239 4240hpux10.20* | hpux11*) 4241 lt_cv_file_magic_cmd=/usr/bin/file 4242 case $host_cpu in 4243 ia64*) 4244 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4245 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4246 ;; 4247 hppa*64*) 4248 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]' 4249 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4250 ;; 4251 *) 4252 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4253 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4254 ;; 4255 esac 4256 ;; 4257 4258interix[3-9]*) 4259 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4261 ;; 4262 4263irix5* | irix6* | nonstopux*) 4264 case $LD in 4265 *-32|*"-32 ") libmagic=32-bit;; 4266 *-n32|*"-n32 ") libmagic=N32;; 4267 *-64|*"-64 ") libmagic=64-bit;; 4268 *) libmagic=never-match;; 4269 esac 4270 lt_cv_deplibs_check_method=pass_all 4271 ;; 4272 4273# This must be Linux ELF. 4274linux* | k*bsd*-gnu) 4275 lt_cv_deplibs_check_method=pass_all 4276 ;; 4277 4278netbsd* | netbsdelf*-gnu) 4279 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4281 else 4282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4283 fi 4284 ;; 4285 4286newos6*) 4287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4288 lt_cv_file_magic_cmd=/usr/bin/file 4289 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4290 ;; 4291 4292nto-qnx*) 4293 lt_cv_deplibs_check_method=unknown 4294 ;; 4295 4296openbsd*) 4297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4299 else 4300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4301 fi 4302 ;; 4303 4304osf3* | osf4* | osf5*) 4305 lt_cv_deplibs_check_method=pass_all 4306 ;; 4307 4308rdos*) 4309 lt_cv_deplibs_check_method=pass_all 4310 ;; 4311 4312solaris*) 4313 lt_cv_deplibs_check_method=pass_all 4314 ;; 4315 4316sysv4 | sysv4.3*) 4317 case $host_vendor in 4318 motorola) 4319 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]' 4320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4321 ;; 4322 ncr) 4323 lt_cv_deplibs_check_method=pass_all 4324 ;; 4325 sequent) 4326 lt_cv_file_magic_cmd='/bin/file' 4327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4328 ;; 4329 sni) 4330 lt_cv_file_magic_cmd='/bin/file' 4331 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4332 lt_cv_file_magic_test_file=/lib/libc.so 4333 ;; 4334 siemens) 4335 lt_cv_deplibs_check_method=pass_all 4336 ;; 4337 pc) 4338 lt_cv_deplibs_check_method=pass_all 4339 ;; 4340 esac 4341 ;; 4342 4343sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4344 lt_cv_deplibs_check_method=pass_all 4345 ;; 4346esac 4347 4348fi 4349{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4350echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4351file_magic_cmd=$lt_cv_file_magic_cmd 4352deplibs_check_method=$lt_cv_deplibs_check_method 4353test -z "$deplibs_check_method" && deplibs_check_method=unknown 4354 4355 4356 4357 4358# If no C compiler was specified, use CC. 4359LTCC=${LTCC-"$CC"} 4360 4361# If no C compiler flags were specified, use CFLAGS. 4362LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4363 4364# Allow CC to be a program name with arguments. 4365compiler=$CC 4366 4367 4368# Check whether --enable-libtool-lock was given. 4369if test "${enable_libtool_lock+set}" = set; then 4370 enableval=$enable_libtool_lock; 4371fi 4372 4373test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4374 4375# Some flags need to be propagated to the compiler or linker for good 4376# libtool support. 4377case $host in 4378ia64-*-hpux*) 4379 # Find out which ABI we are using. 4380 echo 'int i;' > conftest.$ac_ext 4381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4382 (eval $ac_compile) 2>&5 4383 ac_status=$? 4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4385 (exit $ac_status); }; then 4386 case `/usr/bin/file conftest.$ac_objext` in 4387 *ELF-32*) 4388 HPUX_IA64_MODE="32" 4389 ;; 4390 *ELF-64*) 4391 HPUX_IA64_MODE="64" 4392 ;; 4393 esac 4394 fi 4395 rm -rf conftest* 4396 ;; 4397*-*-irix6*) 4398 # Find out which ABI we are using. 4399 echo '#line 4399 "configure"' > conftest.$ac_ext 4400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4401 (eval $ac_compile) 2>&5 4402 ac_status=$? 4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4404 (exit $ac_status); }; then 4405 if test "$lt_cv_prog_gnu_ld" = yes; then 4406 case `/usr/bin/file conftest.$ac_objext` in 4407 *32-bit*) 4408 LD="${LD-ld} -melf32bsmip" 4409 ;; 4410 *N32*) 4411 LD="${LD-ld} -melf32bmipn32" 4412 ;; 4413 *64-bit*) 4414 LD="${LD-ld} -melf64bmip" 4415 ;; 4416 esac 4417 else 4418 case `/usr/bin/file conftest.$ac_objext` in 4419 *32-bit*) 4420 LD="${LD-ld} -32" 4421 ;; 4422 *N32*) 4423 LD="${LD-ld} -n32" 4424 ;; 4425 *64-bit*) 4426 LD="${LD-ld} -64" 4427 ;; 4428 esac 4429 fi 4430 fi 4431 rm -rf conftest* 4432 ;; 4433 4434x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4435s390*-*linux*|sparc*-*linux*) 4436 # Find out which ABI we are using. 4437 echo 'int i;' > conftest.$ac_ext 4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4439 (eval $ac_compile) 2>&5 4440 ac_status=$? 4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4442 (exit $ac_status); }; then 4443 case `/usr/bin/file conftest.o` in 4444 *32-bit*) 4445 case $host in 4446 x86_64-*kfreebsd*-gnu) 4447 LD="${LD-ld} -m elf_i386_fbsd" 4448 ;; 4449 x86_64-*linux*) 4450 LD="${LD-ld} -m elf_i386" 4451 ;; 4452 ppc64-*linux*|powerpc64-*linux*) 4453 LD="${LD-ld} -m elf32ppclinux" 4454 ;; 4455 s390x-*linux*) 4456 LD="${LD-ld} -m elf_s390" 4457 ;; 4458 sparc64-*linux*) 4459 LD="${LD-ld} -m elf32_sparc" 4460 ;; 4461 esac 4462 ;; 4463 *64-bit*) 4464 case $host in 4465 x86_64-*kfreebsd*-gnu) 4466 LD="${LD-ld} -m elf_x86_64_fbsd" 4467 ;; 4468 x86_64-*linux*) 4469 LD="${LD-ld} -m elf_x86_64" 4470 ;; 4471 ppc*-*linux*|powerpc*-*linux*) 4472 LD="${LD-ld} -m elf64ppc" 4473 ;; 4474 s390*-*linux*) 4475 LD="${LD-ld} -m elf64_s390" 4476 ;; 4477 sparc*-*linux*) 4478 LD="${LD-ld} -m elf64_sparc" 4479 ;; 4480 esac 4481 ;; 4482 esac 4483 fi 4484 rm -rf conftest* 4485 ;; 4486 4487*-*-sco3.2v5*) 4488 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4489 SAVE_CFLAGS="$CFLAGS" 4490 CFLAGS="$CFLAGS -belf" 4491 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4492echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4493if test "${lt_cv_cc_needs_belf+set}" = set; then 4494 echo $ECHO_N "(cached) $ECHO_C" >&6 4495else 4496 ac_ext=c 4497ac_cpp='$CPP $CPPFLAGS' 4498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4500ac_compiler_gnu=$ac_cv_c_compiler_gnu 4501 4502 cat >conftest.$ac_ext <<_ACEOF 4503/* confdefs.h. */ 4504_ACEOF 4505cat confdefs.h >>conftest.$ac_ext 4506cat >>conftest.$ac_ext <<_ACEOF 4507/* end confdefs.h. */ 4508 4509int 4510main () 4511{ 4512 4513 ; 4514 return 0; 4515} 4516_ACEOF 4517rm -f conftest.$ac_objext conftest$ac_exeext 4518if { (ac_try="$ac_link" 4519case "(($ac_try" in 4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4521 *) ac_try_echo=$ac_try;; 4522esac 4523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4524 (eval "$ac_link") 2>conftest.er1 4525 ac_status=$? 4526 grep -v '^ *+' conftest.er1 >conftest.err 4527 rm -f conftest.er1 4528 cat conftest.err >&5 4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4530 (exit $ac_status); } && { 4531 test -z "$ac_c_werror_flag" || 4532 test ! -s conftest.err 4533 } && test -s conftest$ac_exeext && 4534 $as_test_x conftest$ac_exeext; then 4535 lt_cv_cc_needs_belf=yes 4536else 4537 echo "$as_me: failed program was:" >&5 4538sed 's/^/| /' conftest.$ac_ext >&5 4539 4540 lt_cv_cc_needs_belf=no 4541fi 4542 4543rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4544 conftest$ac_exeext conftest.$ac_ext 4545 ac_ext=c 4546ac_cpp='$CPP $CPPFLAGS' 4547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4549ac_compiler_gnu=$ac_cv_c_compiler_gnu 4550 4551fi 4552{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4553echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4554 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4555 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4556 CFLAGS="$SAVE_CFLAGS" 4557 fi 4558 ;; 4559sparc*-*solaris*) 4560 # Find out which ABI we are using. 4561 echo 'int i;' > conftest.$ac_ext 4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4563 (eval $ac_compile) 2>&5 4564 ac_status=$? 4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4566 (exit $ac_status); }; then 4567 case `/usr/bin/file conftest.o` in 4568 *64-bit*) 4569 case $lt_cv_prog_gnu_ld in 4570 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4571 *) 4572 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4573 LD="${LD-ld} -64" 4574 fi 4575 ;; 4576 esac 4577 ;; 4578 esac 4579 fi 4580 rm -rf conftest* 4581 ;; 4582 4583 4584esac 4585 4586need_locks="$enable_libtool_lock" 4587 4588 4589ac_ext=c 4590ac_cpp='$CPP $CPPFLAGS' 4591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4593ac_compiler_gnu=$ac_cv_c_compiler_gnu 4594{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4595echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4596# On Suns, sometimes $CPP names a directory. 4597if test -n "$CPP" && test -d "$CPP"; then 4598 CPP= 4599fi 4600if test -z "$CPP"; then 4601 if test "${ac_cv_prog_CPP+set}" = set; then 4602 echo $ECHO_N "(cached) $ECHO_C" >&6 4603else 4604 # Double quotes because CPP needs to be expanded 4605 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4606 do 4607 ac_preproc_ok=false 4608for ac_c_preproc_warn_flag in '' yes 4609do 4610 # Use a header file that comes with gcc, so configuring glibc 4611 # with a fresh cross-compiler works. 4612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4613 # <limits.h> exists even on freestanding compilers. 4614 # On the NeXT, cc -E runs the code through the compiler's parser, 4615 # not just through cpp. "Syntax error" is here to catch this case. 4616 cat >conftest.$ac_ext <<_ACEOF 4617/* confdefs.h. */ 4618_ACEOF 4619cat confdefs.h >>conftest.$ac_ext 4620cat >>conftest.$ac_ext <<_ACEOF 4621/* end confdefs.h. */ 4622#ifdef __STDC__ 4623# include <limits.h> 4624#else 4625# include <assert.h> 4626#endif 4627 Syntax error 4628_ACEOF 4629if { (ac_try="$ac_cpp conftest.$ac_ext" 4630case "(($ac_try" in 4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4632 *) ac_try_echo=$ac_try;; 4633esac 4634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4636 ac_status=$? 4637 grep -v '^ *+' conftest.er1 >conftest.err 4638 rm -f conftest.er1 4639 cat conftest.err >&5 4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4641 (exit $ac_status); } >/dev/null && { 4642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4643 test ! -s conftest.err 4644 }; then 4645 : 4646else 4647 echo "$as_me: failed program was:" >&5 4648sed 's/^/| /' conftest.$ac_ext >&5 4649 4650 # Broken: fails on valid input. 4651continue 4652fi 4653 4654rm -f conftest.err conftest.$ac_ext 4655 4656 # OK, works on sane cases. Now check whether nonexistent headers 4657 # can be detected and how. 4658 cat >conftest.$ac_ext <<_ACEOF 4659/* confdefs.h. */ 4660_ACEOF 4661cat confdefs.h >>conftest.$ac_ext 4662cat >>conftest.$ac_ext <<_ACEOF 4663/* end confdefs.h. */ 4664#include <ac_nonexistent.h> 4665_ACEOF 4666if { (ac_try="$ac_cpp conftest.$ac_ext" 4667case "(($ac_try" in 4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4669 *) ac_try_echo=$ac_try;; 4670esac 4671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4673 ac_status=$? 4674 grep -v '^ *+' conftest.er1 >conftest.err 4675 rm -f conftest.er1 4676 cat conftest.err >&5 4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4678 (exit $ac_status); } >/dev/null && { 4679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4680 test ! -s conftest.err 4681 }; then 4682 # Broken: success on invalid input. 4683continue 4684else 4685 echo "$as_me: failed program was:" >&5 4686sed 's/^/| /' conftest.$ac_ext >&5 4687 4688 # Passes both tests. 4689ac_preproc_ok=: 4690break 4691fi 4692 4693rm -f conftest.err conftest.$ac_ext 4694 4695done 4696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4697rm -f conftest.err conftest.$ac_ext 4698if $ac_preproc_ok; then 4699 break 4700fi 4701 4702 done 4703 ac_cv_prog_CPP=$CPP 4704 4705fi 4706 CPP=$ac_cv_prog_CPP 4707else 4708 ac_cv_prog_CPP=$CPP 4709fi 4710{ echo "$as_me:$LINENO: result: $CPP" >&5 4711echo "${ECHO_T}$CPP" >&6; } 4712ac_preproc_ok=false 4713for ac_c_preproc_warn_flag in '' yes 4714do 4715 # Use a header file that comes with gcc, so configuring glibc 4716 # with a fresh cross-compiler works. 4717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4718 # <limits.h> exists even on freestanding compilers. 4719 # On the NeXT, cc -E runs the code through the compiler's parser, 4720 # not just through cpp. "Syntax error" is here to catch this case. 4721 cat >conftest.$ac_ext <<_ACEOF 4722/* confdefs.h. */ 4723_ACEOF 4724cat confdefs.h >>conftest.$ac_ext 4725cat >>conftest.$ac_ext <<_ACEOF 4726/* end confdefs.h. */ 4727#ifdef __STDC__ 4728# include <limits.h> 4729#else 4730# include <assert.h> 4731#endif 4732 Syntax error 4733_ACEOF 4734if { (ac_try="$ac_cpp conftest.$ac_ext" 4735case "(($ac_try" in 4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4737 *) ac_try_echo=$ac_try;; 4738esac 4739eval "echo \"\$as_me:$LINENO: $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 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 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4778 ac_status=$? 4779 grep -v '^ *+' conftest.er1 >conftest.err 4780 rm -f conftest.er1 4781 cat conftest.err >&5 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); } >/dev/null && { 4784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4785 test ! -s conftest.err 4786 }; then 4787 # Broken: success on invalid input. 4788continue 4789else 4790 echo "$as_me: failed program was:" >&5 4791sed 's/^/| /' conftest.$ac_ext >&5 4792 4793 # Passes both tests. 4794ac_preproc_ok=: 4795break 4796fi 4797 4798rm -f conftest.err conftest.$ac_ext 4799 4800done 4801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4802rm -f conftest.err conftest.$ac_ext 4803if $ac_preproc_ok; then 4804 : 4805else 4806 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4807See \`config.log' for more details." >&5 4808echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4809See \`config.log' for more details." >&2;} 4810 { (exit 1); exit 1; }; } 4811fi 4812 4813ac_ext=c 4814ac_cpp='$CPP $CPPFLAGS' 4815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4817ac_compiler_gnu=$ac_cv_c_compiler_gnu 4818 4819 4820{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4821echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4822if test "${ac_cv_header_stdc+set}" = set; then 4823 echo $ECHO_N "(cached) $ECHO_C" >&6 4824else 4825 cat >conftest.$ac_ext <<_ACEOF 4826/* confdefs.h. */ 4827_ACEOF 4828cat confdefs.h >>conftest.$ac_ext 4829cat >>conftest.$ac_ext <<_ACEOF 4830/* end confdefs.h. */ 4831#include <stdlib.h> 4832#include <stdarg.h> 4833#include <string.h> 4834#include <float.h> 4835 4836int 4837main () 4838{ 4839 4840 ; 4841 return 0; 4842} 4843_ACEOF 4844rm -f conftest.$ac_objext 4845if { (ac_try="$ac_compile" 4846case "(($ac_try" in 4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4848 *) ac_try_echo=$ac_try;; 4849esac 4850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4851 (eval "$ac_compile") 2>conftest.er1 4852 ac_status=$? 4853 grep -v '^ *+' conftest.er1 >conftest.err 4854 rm -f conftest.er1 4855 cat conftest.err >&5 4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4857 (exit $ac_status); } && { 4858 test -z "$ac_c_werror_flag" || 4859 test ! -s conftest.err 4860 } && test -s conftest.$ac_objext; then 4861 ac_cv_header_stdc=yes 4862else 4863 echo "$as_me: failed program was:" >&5 4864sed 's/^/| /' conftest.$ac_ext >&5 4865 4866 ac_cv_header_stdc=no 4867fi 4868 4869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4870 4871if test $ac_cv_header_stdc = yes; then 4872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4873 cat >conftest.$ac_ext <<_ACEOF 4874/* confdefs.h. */ 4875_ACEOF 4876cat confdefs.h >>conftest.$ac_ext 4877cat >>conftest.$ac_ext <<_ACEOF 4878/* end confdefs.h. */ 4879#include <string.h> 4880 4881_ACEOF 4882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4883 $EGREP "memchr" >/dev/null 2>&1; then 4884 : 4885else 4886 ac_cv_header_stdc=no 4887fi 4888rm -f conftest* 4889 4890fi 4891 4892if test $ac_cv_header_stdc = yes; then 4893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4894 cat >conftest.$ac_ext <<_ACEOF 4895/* confdefs.h. */ 4896_ACEOF 4897cat confdefs.h >>conftest.$ac_ext 4898cat >>conftest.$ac_ext <<_ACEOF 4899/* end confdefs.h. */ 4900#include <stdlib.h> 4901 4902_ACEOF 4903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4904 $EGREP "free" >/dev/null 2>&1; then 4905 : 4906else 4907 ac_cv_header_stdc=no 4908fi 4909rm -f conftest* 4910 4911fi 4912 4913if test $ac_cv_header_stdc = yes; then 4914 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4915 if test "$cross_compiling" = yes; then 4916 : 4917else 4918 cat >conftest.$ac_ext <<_ACEOF 4919/* confdefs.h. */ 4920_ACEOF 4921cat confdefs.h >>conftest.$ac_ext 4922cat >>conftest.$ac_ext <<_ACEOF 4923/* end confdefs.h. */ 4924#include <ctype.h> 4925#include <stdlib.h> 4926#if ((' ' & 0x0FF) == 0x020) 4927# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4928# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4929#else 4930# define ISLOWER(c) \ 4931 (('a' <= (c) && (c) <= 'i') \ 4932 || ('j' <= (c) && (c) <= 'r') \ 4933 || ('s' <= (c) && (c) <= 'z')) 4934# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4935#endif 4936 4937#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4938int 4939main () 4940{ 4941 int i; 4942 for (i = 0; i < 256; i++) 4943 if (XOR (islower (i), ISLOWER (i)) 4944 || toupper (i) != TOUPPER (i)) 4945 return 2; 4946 return 0; 4947} 4948_ACEOF 4949rm -f conftest$ac_exeext 4950if { (ac_try="$ac_link" 4951case "(($ac_try" in 4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4953 *) ac_try_echo=$ac_try;; 4954esac 4955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4956 (eval "$ac_link") 2>&5 4957 ac_status=$? 4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4960 { (case "(($ac_try" in 4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4962 *) ac_try_echo=$ac_try;; 4963esac 4964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4965 (eval "$ac_try") 2>&5 4966 ac_status=$? 4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4968 (exit $ac_status); }; }; then 4969 : 4970else 4971 echo "$as_me: program exited with status $ac_status" >&5 4972echo "$as_me: failed program was:" >&5 4973sed 's/^/| /' conftest.$ac_ext >&5 4974 4975( exit $ac_status ) 4976ac_cv_header_stdc=no 4977fi 4978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4979fi 4980 4981 4982fi 4983fi 4984{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4985echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4986if test $ac_cv_header_stdc = yes; then 4987 4988cat >>confdefs.h <<\_ACEOF 4989#define STDC_HEADERS 1 4990_ACEOF 4991 4992fi 4993 4994# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5005 inttypes.h stdint.h unistd.h 5006do 5007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5008{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5011 echo $ECHO_N "(cached) $ECHO_C" >&6 5012else 5013 cat >conftest.$ac_ext <<_ACEOF 5014/* confdefs.h. */ 5015_ACEOF 5016cat confdefs.h >>conftest.$ac_ext 5017cat >>conftest.$ac_ext <<_ACEOF 5018/* end confdefs.h. */ 5019$ac_includes_default 5020 5021#include <$ac_header> 5022_ACEOF 5023rm -f conftest.$ac_objext 5024if { (ac_try="$ac_compile" 5025case "(($ac_try" in 5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5027 *) ac_try_echo=$ac_try;; 5028esac 5029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5030 (eval "$ac_compile") 2>conftest.er1 5031 ac_status=$? 5032 grep -v '^ *+' conftest.er1 >conftest.err 5033 rm -f conftest.er1 5034 cat conftest.err >&5 5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5036 (exit $ac_status); } && { 5037 test -z "$ac_c_werror_flag" || 5038 test ! -s conftest.err 5039 } && test -s conftest.$ac_objext; then 5040 eval "$as_ac_Header=yes" 5041else 5042 echo "$as_me: failed program was:" >&5 5043sed 's/^/| /' conftest.$ac_ext >&5 5044 5045 eval "$as_ac_Header=no" 5046fi 5047 5048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5049fi 5050ac_res=`eval echo '${'$as_ac_Header'}'` 5051 { echo "$as_me:$LINENO: result: $ac_res" >&5 5052echo "${ECHO_T}$ac_res" >&6; } 5053if test `eval echo '${'$as_ac_Header'}'` = yes; then 5054 cat >>confdefs.h <<_ACEOF 5055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5056_ACEOF 5057 5058fi 5059 5060done 5061 5062 5063 5064for ac_header in dlfcn.h 5065do 5066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5067if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5068 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5071 echo $ECHO_N "(cached) $ECHO_C" >&6 5072fi 5073ac_res=`eval echo '${'$as_ac_Header'}'` 5074 { echo "$as_me:$LINENO: result: $ac_res" >&5 5075echo "${ECHO_T}$ac_res" >&6; } 5076else 5077 # Is the header compilable? 5078{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5079echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5080cat >conftest.$ac_ext <<_ACEOF 5081/* confdefs.h. */ 5082_ACEOF 5083cat confdefs.h >>conftest.$ac_ext 5084cat >>conftest.$ac_ext <<_ACEOF 5085/* end confdefs.h. */ 5086$ac_includes_default 5087#include <$ac_header> 5088_ACEOF 5089rm -f conftest.$ac_objext 5090if { (ac_try="$ac_compile" 5091case "(($ac_try" in 5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5093 *) ac_try_echo=$ac_try;; 5094esac 5095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5096 (eval "$ac_compile") 2>conftest.er1 5097 ac_status=$? 5098 grep -v '^ *+' conftest.er1 >conftest.err 5099 rm -f conftest.er1 5100 cat conftest.err >&5 5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5102 (exit $ac_status); } && { 5103 test -z "$ac_c_werror_flag" || 5104 test ! -s conftest.err 5105 } && test -s conftest.$ac_objext; then 5106 ac_header_compiler=yes 5107else 5108 echo "$as_me: failed program was:" >&5 5109sed 's/^/| /' conftest.$ac_ext >&5 5110 5111 ac_header_compiler=no 5112fi 5113 5114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5115{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5116echo "${ECHO_T}$ac_header_compiler" >&6; } 5117 5118# Is the header present? 5119{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5121cat >conftest.$ac_ext <<_ACEOF 5122/* confdefs.h. */ 5123_ACEOF 5124cat confdefs.h >>conftest.$ac_ext 5125cat >>conftest.$ac_ext <<_ACEOF 5126/* end confdefs.h. */ 5127#include <$ac_header> 5128_ACEOF 5129if { (ac_try="$ac_cpp conftest.$ac_ext" 5130case "(($ac_try" in 5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5132 *) ac_try_echo=$ac_try;; 5133esac 5134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5136 ac_status=$? 5137 grep -v '^ *+' conftest.er1 >conftest.err 5138 rm -f conftest.er1 5139 cat conftest.err >&5 5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5141 (exit $ac_status); } >/dev/null && { 5142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5143 test ! -s conftest.err 5144 }; then 5145 ac_header_preproc=yes 5146else 5147 echo "$as_me: failed program was:" >&5 5148sed 's/^/| /' conftest.$ac_ext >&5 5149 5150 ac_header_preproc=no 5151fi 5152 5153rm -f conftest.err conftest.$ac_ext 5154{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5155echo "${ECHO_T}$ac_header_preproc" >&6; } 5156 5157# So? What about this header? 5158case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5159 yes:no: ) 5160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5161echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5163echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5164 ac_header_preproc=yes 5165 ;; 5166 no:yes:* ) 5167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5168echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5170echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5171 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5172echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5173 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5174echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5176echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5177 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5178echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5179 ( cat <<\_ASBOX 5180## ---------------------------------------------------------------------- ## 5181## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5182## ---------------------------------------------------------------------- ## 5183_ASBOX 5184 ) | sed "s/^/$as_me: WARNING: /" >&2 5185 ;; 5186esac 5187{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5190 echo $ECHO_N "(cached) $ECHO_C" >&6 5191else 5192 eval "$as_ac_Header=\$ac_header_preproc" 5193fi 5194ac_res=`eval echo '${'$as_ac_Header'}'` 5195 { echo "$as_me:$LINENO: result: $ac_res" >&5 5196echo "${ECHO_T}$ac_res" >&6; } 5197 5198fi 5199if test `eval echo '${'$as_ac_Header'}'` = yes; then 5200 cat >>confdefs.h <<_ACEOF 5201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5202_ACEOF 5203 5204fi 5205 5206done 5207 5208ac_ext=cpp 5209ac_cpp='$CXXCPP $CPPFLAGS' 5210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5213if test -z "$CXX"; then 5214 if test -n "$CCC"; then 5215 CXX=$CCC 5216 else 5217 if test -n "$ac_tool_prefix"; then 5218 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5219 do 5220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5221set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5222{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5224if test "${ac_cv_prog_CXX+set}" = set; then 5225 echo $ECHO_N "(cached) $ECHO_C" >&6 5226else 5227 if test -n "$CXX"; then 5228 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5229else 5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5231for as_dir in $PATH 5232do 5233 IFS=$as_save_IFS 5234 test -z "$as_dir" && as_dir=. 5235 for ac_exec_ext in '' $ac_executable_extensions; do 5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5237 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5239 break 2 5240 fi 5241done 5242done 5243IFS=$as_save_IFS 5244 5245fi 5246fi 5247CXX=$ac_cv_prog_CXX 5248if test -n "$CXX"; then 5249 { echo "$as_me:$LINENO: result: $CXX" >&5 5250echo "${ECHO_T}$CXX" >&6; } 5251else 5252 { echo "$as_me:$LINENO: result: no" >&5 5253echo "${ECHO_T}no" >&6; } 5254fi 5255 5256 5257 test -n "$CXX" && break 5258 done 5259fi 5260if test -z "$CXX"; then 5261 ac_ct_CXX=$CXX 5262 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5263do 5264 # Extract the first word of "$ac_prog", so it can be a program name with args. 5265set dummy $ac_prog; ac_word=$2 5266{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5268if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5269 echo $ECHO_N "(cached) $ECHO_C" >&6 5270else 5271 if test -n "$ac_ct_CXX"; then 5272 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5273else 5274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5275for as_dir in $PATH 5276do 5277 IFS=$as_save_IFS 5278 test -z "$as_dir" && as_dir=. 5279 for ac_exec_ext in '' $ac_executable_extensions; do 5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5281 ac_cv_prog_ac_ct_CXX="$ac_prog" 5282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5283 break 2 5284 fi 5285done 5286done 5287IFS=$as_save_IFS 5288 5289fi 5290fi 5291ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5292if test -n "$ac_ct_CXX"; then 5293 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5294echo "${ECHO_T}$ac_ct_CXX" >&6; } 5295else 5296 { echo "$as_me:$LINENO: result: no" >&5 5297echo "${ECHO_T}no" >&6; } 5298fi 5299 5300 5301 test -n "$ac_ct_CXX" && break 5302done 5303 5304 if test "x$ac_ct_CXX" = x; then 5305 CXX="g++" 5306 else 5307 case $cross_compiling:$ac_tool_warned in 5308yes:) 5309{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5310whose name does not start with the host triplet. If you think this 5311configuration is useful to you, please write to autoconf@gnu.org." >&5 5312echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5313whose name does not start with the host triplet. If you think this 5314configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5315ac_tool_warned=yes ;; 5316esac 5317 CXX=$ac_ct_CXX 5318 fi 5319fi 5320 5321 fi 5322fi 5323# Provide some information about the compiler. 5324echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5325ac_compiler=`set X $ac_compile; echo $2` 5326{ (ac_try="$ac_compiler --version >&5" 5327case "(($ac_try" in 5328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5329 *) ac_try_echo=$ac_try;; 5330esac 5331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5332 (eval "$ac_compiler --version >&5") 2>&5 5333 ac_status=$? 5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5335 (exit $ac_status); } 5336{ (ac_try="$ac_compiler -v >&5" 5337case "(($ac_try" in 5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5339 *) ac_try_echo=$ac_try;; 5340esac 5341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5342 (eval "$ac_compiler -v >&5") 2>&5 5343 ac_status=$? 5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5345 (exit $ac_status); } 5346{ (ac_try="$ac_compiler -V >&5" 5347case "(($ac_try" in 5348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5349 *) ac_try_echo=$ac_try;; 5350esac 5351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5352 (eval "$ac_compiler -V >&5") 2>&5 5353 ac_status=$? 5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5355 (exit $ac_status); } 5356 5357{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5358echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5359if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5360 echo $ECHO_N "(cached) $ECHO_C" >&6 5361else 5362 cat >conftest.$ac_ext <<_ACEOF 5363/* confdefs.h. */ 5364_ACEOF 5365cat confdefs.h >>conftest.$ac_ext 5366cat >>conftest.$ac_ext <<_ACEOF 5367/* end confdefs.h. */ 5368 5369int 5370main () 5371{ 5372#ifndef __GNUC__ 5373 choke me 5374#endif 5375 5376 ; 5377 return 0; 5378} 5379_ACEOF 5380rm -f conftest.$ac_objext 5381if { (ac_try="$ac_compile" 5382case "(($ac_try" in 5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5384 *) ac_try_echo=$ac_try;; 5385esac 5386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5387 (eval "$ac_compile") 2>conftest.er1 5388 ac_status=$? 5389 grep -v '^ *+' conftest.er1 >conftest.err 5390 rm -f conftest.er1 5391 cat conftest.err >&5 5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5393 (exit $ac_status); } && { 5394 test -z "$ac_cxx_werror_flag" || 5395 test ! -s conftest.err 5396 } && test -s conftest.$ac_objext; then 5397 ac_compiler_gnu=yes 5398else 5399 echo "$as_me: failed program was:" >&5 5400sed 's/^/| /' conftest.$ac_ext >&5 5401 5402 ac_compiler_gnu=no 5403fi 5404 5405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5406ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5407 5408fi 5409{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5410echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5411GXX=`test $ac_compiler_gnu = yes && echo yes` 5412ac_test_CXXFLAGS=${CXXFLAGS+set} 5413ac_save_CXXFLAGS=$CXXFLAGS 5414{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5415echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5416if test "${ac_cv_prog_cxx_g+set}" = set; then 5417 echo $ECHO_N "(cached) $ECHO_C" >&6 5418else 5419 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5420 ac_cxx_werror_flag=yes 5421 ac_cv_prog_cxx_g=no 5422 CXXFLAGS="-g" 5423 cat >conftest.$ac_ext <<_ACEOF 5424/* confdefs.h. */ 5425_ACEOF 5426cat confdefs.h >>conftest.$ac_ext 5427cat >>conftest.$ac_ext <<_ACEOF 5428/* end confdefs.h. */ 5429 5430int 5431main () 5432{ 5433 5434 ; 5435 return 0; 5436} 5437_ACEOF 5438rm -f conftest.$ac_objext 5439if { (ac_try="$ac_compile" 5440case "(($ac_try" in 5441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5442 *) ac_try_echo=$ac_try;; 5443esac 5444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5445 (eval "$ac_compile") 2>conftest.er1 5446 ac_status=$? 5447 grep -v '^ *+' conftest.er1 >conftest.err 5448 rm -f conftest.er1 5449 cat conftest.err >&5 5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5451 (exit $ac_status); } && { 5452 test -z "$ac_cxx_werror_flag" || 5453 test ! -s conftest.err 5454 } && test -s conftest.$ac_objext; then 5455 ac_cv_prog_cxx_g=yes 5456else 5457 echo "$as_me: failed program was:" >&5 5458sed 's/^/| /' conftest.$ac_ext >&5 5459 5460 CXXFLAGS="" 5461 cat >conftest.$ac_ext <<_ACEOF 5462/* confdefs.h. */ 5463_ACEOF 5464cat confdefs.h >>conftest.$ac_ext 5465cat >>conftest.$ac_ext <<_ACEOF 5466/* end confdefs.h. */ 5467 5468int 5469main () 5470{ 5471 5472 ; 5473 return 0; 5474} 5475_ACEOF 5476rm -f conftest.$ac_objext 5477if { (ac_try="$ac_compile" 5478case "(($ac_try" in 5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5480 *) ac_try_echo=$ac_try;; 5481esac 5482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5483 (eval "$ac_compile") 2>conftest.er1 5484 ac_status=$? 5485 grep -v '^ *+' conftest.er1 >conftest.err 5486 rm -f conftest.er1 5487 cat conftest.err >&5 5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5489 (exit $ac_status); } && { 5490 test -z "$ac_cxx_werror_flag" || 5491 test ! -s conftest.err 5492 } && test -s conftest.$ac_objext; then 5493 : 5494else 5495 echo "$as_me: failed program was:" >&5 5496sed 's/^/| /' conftest.$ac_ext >&5 5497 5498 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5499 CXXFLAGS="-g" 5500 cat >conftest.$ac_ext <<_ACEOF 5501/* confdefs.h. */ 5502_ACEOF 5503cat confdefs.h >>conftest.$ac_ext 5504cat >>conftest.$ac_ext <<_ACEOF 5505/* end confdefs.h. */ 5506 5507int 5508main () 5509{ 5510 5511 ; 5512 return 0; 5513} 5514_ACEOF 5515rm -f conftest.$ac_objext 5516if { (ac_try="$ac_compile" 5517case "(($ac_try" in 5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5519 *) ac_try_echo=$ac_try;; 5520esac 5521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5522 (eval "$ac_compile") 2>conftest.er1 5523 ac_status=$? 5524 grep -v '^ *+' conftest.er1 >conftest.err 5525 rm -f conftest.er1 5526 cat conftest.err >&5 5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5528 (exit $ac_status); } && { 5529 test -z "$ac_cxx_werror_flag" || 5530 test ! -s conftest.err 5531 } && test -s conftest.$ac_objext; then 5532 ac_cv_prog_cxx_g=yes 5533else 5534 echo "$as_me: failed program was:" >&5 5535sed 's/^/| /' conftest.$ac_ext >&5 5536 5537 5538fi 5539 5540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5541fi 5542 5543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5544fi 5545 5546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5547 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5548fi 5549{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5550echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5551if test "$ac_test_CXXFLAGS" = set; then 5552 CXXFLAGS=$ac_save_CXXFLAGS 5553elif test $ac_cv_prog_cxx_g = yes; then 5554 if test "$GXX" = yes; then 5555 CXXFLAGS="-g -O2" 5556 else 5557 CXXFLAGS="-g" 5558 fi 5559else 5560 if test "$GXX" = yes; then 5561 CXXFLAGS="-O2" 5562 else 5563 CXXFLAGS= 5564 fi 5565fi 5566ac_ext=cpp 5567ac_cpp='$CXXCPP $CPPFLAGS' 5568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5571 5572depcc="$CXX" am_compiler_list= 5573 5574{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5575echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5576if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5577 echo $ECHO_N "(cached) $ECHO_C" >&6 5578else 5579 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5580 # We make a subdir and do the tests there. Otherwise we can end up 5581 # making bogus files that we don't know about and never remove. For 5582 # instance it was reported that on HP-UX the gcc test will end up 5583 # making a dummy file named `D' -- because `-MD' means `put the output 5584 # in D'. 5585 mkdir conftest.dir 5586 # Copy depcomp to subdir because otherwise we won't find it if we're 5587 # using a relative directory. 5588 cp "$am_depcomp" conftest.dir 5589 cd conftest.dir 5590 # We will build objects and dependencies in a subdirectory because 5591 # it helps to detect inapplicable dependency modes. For instance 5592 # both Tru64's cc and ICC support -MD to output dependencies as a 5593 # side effect of compilation, but ICC will put the dependencies in 5594 # the current directory while Tru64 will put them in the object 5595 # directory. 5596 mkdir sub 5597 5598 am_cv_CXX_dependencies_compiler_type=none 5599 if test "$am_compiler_list" = ""; then 5600 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5601 fi 5602 for depmode in $am_compiler_list; do 5603 # Setup a source with many dependencies, because some compilers 5604 # like to wrap large dependency lists on column 80 (with \), and 5605 # we should not choose a depcomp mode which is confused by this. 5606 # 5607 # We need to recreate these files for each test, as the compiler may 5608 # overwrite some of them when testing with obscure command lines. 5609 # This happens at least with the AIX C compiler. 5610 : > sub/conftest.c 5611 for i in 1 2 3 4 5 6; do 5612 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5613 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5614 # Solaris 8's {/usr,}/bin/sh. 5615 touch sub/conftst$i.h 5616 done 5617 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5618 5619 case $depmode in 5620 nosideeffect) 5621 # after this tag, mechanisms are not by side-effect, so they'll 5622 # only be used when explicitly requested 5623 if test "x$enable_dependency_tracking" = xyes; then 5624 continue 5625 else 5626 break 5627 fi 5628 ;; 5629 none) break ;; 5630 esac 5631 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5632 # mode. It turns out that the SunPro C++ compiler does not properly 5633 # handle `-M -o', and we need to detect this. 5634 if depmode=$depmode \ 5635 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5636 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5637 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5638 >/dev/null 2>conftest.err && 5639 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5640 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5641 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5642 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5643 # icc doesn't choke on unknown options, it will just issue warnings 5644 # or remarks (even with -Werror). So we grep stderr for any message 5645 # that says an option was ignored or not supported. 5646 # When given -MP, icc 7.0 and 7.1 complain thusly: 5647 # icc: Command line warning: ignoring option '-M'; no argument required 5648 # The diagnosis changed in icc 8.0: 5649 # icc: Command line remark: option '-MP' not supported 5650 if (grep 'ignoring option' conftest.err || 5651 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5652 am_cv_CXX_dependencies_compiler_type=$depmode 5653 break 5654 fi 5655 fi 5656 done 5657 5658 cd .. 5659 rm -rf conftest.dir 5660else 5661 am_cv_CXX_dependencies_compiler_type=none 5662fi 5663 5664fi 5665{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5666echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5667CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5668 5669 if 5670 test "x$enable_dependency_tracking" != xno \ 5671 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5672 am__fastdepCXX_TRUE= 5673 am__fastdepCXX_FALSE='#' 5674else 5675 am__fastdepCXX_TRUE='#' 5676 am__fastdepCXX_FALSE= 5677fi 5678 5679 5680 5681 5682if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5683 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5684 (test "X$CXX" != "Xg++"))) ; then 5685 ac_ext=cpp 5686ac_cpp='$CXXCPP $CPPFLAGS' 5687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5690{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5691echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5692if test -z "$CXXCPP"; then 5693 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5694 echo $ECHO_N "(cached) $ECHO_C" >&6 5695else 5696 # Double quotes because CXXCPP needs to be expanded 5697 for CXXCPP in "$CXX -E" "/lib/cpp" 5698 do 5699 ac_preproc_ok=false 5700for ac_cxx_preproc_warn_flag in '' yes 5701do 5702 # Use a header file that comes with gcc, so configuring glibc 5703 # with a fresh cross-compiler works. 5704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5705 # <limits.h> exists even on freestanding compilers. 5706 # On the NeXT, cc -E runs the code through the compiler's parser, 5707 # not just through cpp. "Syntax error" is here to catch this case. 5708 cat >conftest.$ac_ext <<_ACEOF 5709/* confdefs.h. */ 5710_ACEOF 5711cat confdefs.h >>conftest.$ac_ext 5712cat >>conftest.$ac_ext <<_ACEOF 5713/* end confdefs.h. */ 5714#ifdef __STDC__ 5715# include <limits.h> 5716#else 5717# include <assert.h> 5718#endif 5719 Syntax error 5720_ACEOF 5721if { (ac_try="$ac_cpp conftest.$ac_ext" 5722case "(($ac_try" in 5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5724 *) ac_try_echo=$ac_try;; 5725esac 5726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5728 ac_status=$? 5729 grep -v '^ *+' conftest.er1 >conftest.err 5730 rm -f conftest.er1 5731 cat conftest.err >&5 5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5733 (exit $ac_status); } >/dev/null && { 5734 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5735 test ! -s conftest.err 5736 }; then 5737 : 5738else 5739 echo "$as_me: failed program was:" >&5 5740sed 's/^/| /' conftest.$ac_ext >&5 5741 5742 # Broken: fails on valid input. 5743continue 5744fi 5745 5746rm -f conftest.err conftest.$ac_ext 5747 5748 # OK, works on sane cases. Now check whether nonexistent headers 5749 # can be detected and how. 5750 cat >conftest.$ac_ext <<_ACEOF 5751/* confdefs.h. */ 5752_ACEOF 5753cat confdefs.h >>conftest.$ac_ext 5754cat >>conftest.$ac_ext <<_ACEOF 5755/* end confdefs.h. */ 5756#include <ac_nonexistent.h> 5757_ACEOF 5758if { (ac_try="$ac_cpp conftest.$ac_ext" 5759case "(($ac_try" in 5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5761 *) ac_try_echo=$ac_try;; 5762esac 5763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5765 ac_status=$? 5766 grep -v '^ *+' conftest.er1 >conftest.err 5767 rm -f conftest.er1 5768 cat conftest.err >&5 5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5770 (exit $ac_status); } >/dev/null && { 5771 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5772 test ! -s conftest.err 5773 }; then 5774 # Broken: success on invalid input. 5775continue 5776else 5777 echo "$as_me: failed program was:" >&5 5778sed 's/^/| /' conftest.$ac_ext >&5 5779 5780 # Passes both tests. 5781ac_preproc_ok=: 5782break 5783fi 5784 5785rm -f conftest.err conftest.$ac_ext 5786 5787done 5788# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5789rm -f conftest.err conftest.$ac_ext 5790if $ac_preproc_ok; then 5791 break 5792fi 5793 5794 done 5795 ac_cv_prog_CXXCPP=$CXXCPP 5796 5797fi 5798 CXXCPP=$ac_cv_prog_CXXCPP 5799else 5800 ac_cv_prog_CXXCPP=$CXXCPP 5801fi 5802{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5803echo "${ECHO_T}$CXXCPP" >&6; } 5804ac_preproc_ok=false 5805for ac_cxx_preproc_warn_flag in '' yes 5806do 5807 # Use a header file that comes with gcc, so configuring glibc 5808 # with a fresh cross-compiler works. 5809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5810 # <limits.h> exists even on freestanding compilers. 5811 # On the NeXT, cc -E runs the code through the compiler's parser, 5812 # not just through cpp. "Syntax error" is here to catch this case. 5813 cat >conftest.$ac_ext <<_ACEOF 5814/* confdefs.h. */ 5815_ACEOF 5816cat confdefs.h >>conftest.$ac_ext 5817cat >>conftest.$ac_ext <<_ACEOF 5818/* end confdefs.h. */ 5819#ifdef __STDC__ 5820# include <limits.h> 5821#else 5822# include <assert.h> 5823#endif 5824 Syntax error 5825_ACEOF 5826if { (ac_try="$ac_cpp conftest.$ac_ext" 5827case "(($ac_try" in 5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5829 *) ac_try_echo=$ac_try;; 5830esac 5831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5833 ac_status=$? 5834 grep -v '^ *+' conftest.er1 >conftest.err 5835 rm -f conftest.er1 5836 cat conftest.err >&5 5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5838 (exit $ac_status); } >/dev/null && { 5839 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5840 test ! -s conftest.err 5841 }; then 5842 : 5843else 5844 echo "$as_me: failed program was:" >&5 5845sed 's/^/| /' conftest.$ac_ext >&5 5846 5847 # Broken: fails on valid input. 5848continue 5849fi 5850 5851rm -f conftest.err conftest.$ac_ext 5852 5853 # OK, works on sane cases. Now check whether nonexistent headers 5854 # can be detected and how. 5855 cat >conftest.$ac_ext <<_ACEOF 5856/* confdefs.h. */ 5857_ACEOF 5858cat confdefs.h >>conftest.$ac_ext 5859cat >>conftest.$ac_ext <<_ACEOF 5860/* end confdefs.h. */ 5861#include <ac_nonexistent.h> 5862_ACEOF 5863if { (ac_try="$ac_cpp conftest.$ac_ext" 5864case "(($ac_try" in 5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5866 *) ac_try_echo=$ac_try;; 5867esac 5868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5870 ac_status=$? 5871 grep -v '^ *+' conftest.er1 >conftest.err 5872 rm -f conftest.er1 5873 cat conftest.err >&5 5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5875 (exit $ac_status); } >/dev/null && { 5876 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5877 test ! -s conftest.err 5878 }; then 5879 # Broken: success on invalid input. 5880continue 5881else 5882 echo "$as_me: failed program was:" >&5 5883sed 's/^/| /' conftest.$ac_ext >&5 5884 5885 # Passes both tests. 5886ac_preproc_ok=: 5887break 5888fi 5889 5890rm -f conftest.err conftest.$ac_ext 5891 5892done 5893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5894rm -f conftest.err conftest.$ac_ext 5895if $ac_preproc_ok; then 5896 : 5897else 5898 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5899See \`config.log' for more details." >&5 5900echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5901See \`config.log' for more details." >&2;} 5902 { (exit 1); exit 1; }; } 5903fi 5904 5905ac_ext=cpp 5906ac_cpp='$CXXCPP $CPPFLAGS' 5907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5910 5911fi 5912 5913 5914ac_ext=f 5915ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5916ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5917ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5918if test -n "$ac_tool_prefix"; then 5919 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 5920 do 5921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5922set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5923{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5925if test "${ac_cv_prog_F77+set}" = set; then 5926 echo $ECHO_N "(cached) $ECHO_C" >&6 5927else 5928 if test -n "$F77"; then 5929 ac_cv_prog_F77="$F77" # Let the user override the test. 5930else 5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5932for as_dir in $PATH 5933do 5934 IFS=$as_save_IFS 5935 test -z "$as_dir" && as_dir=. 5936 for ac_exec_ext in '' $ac_executable_extensions; do 5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5938 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5940 break 2 5941 fi 5942done 5943done 5944IFS=$as_save_IFS 5945 5946fi 5947fi 5948F77=$ac_cv_prog_F77 5949if test -n "$F77"; then 5950 { echo "$as_me:$LINENO: result: $F77" >&5 5951echo "${ECHO_T}$F77" >&6; } 5952else 5953 { echo "$as_me:$LINENO: result: no" >&5 5954echo "${ECHO_T}no" >&6; } 5955fi 5956 5957 5958 test -n "$F77" && break 5959 done 5960fi 5961if test -z "$F77"; then 5962 ac_ct_F77=$F77 5963 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 5964do 5965 # Extract the first word of "$ac_prog", so it can be a program name with args. 5966set dummy $ac_prog; ac_word=$2 5967{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5969if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5970 echo $ECHO_N "(cached) $ECHO_C" >&6 5971else 5972 if test -n "$ac_ct_F77"; then 5973 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5974else 5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5976for as_dir in $PATH 5977do 5978 IFS=$as_save_IFS 5979 test -z "$as_dir" && as_dir=. 5980 for ac_exec_ext in '' $ac_executable_extensions; do 5981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5982 ac_cv_prog_ac_ct_F77="$ac_prog" 5983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5984 break 2 5985 fi 5986done 5987done 5988IFS=$as_save_IFS 5989 5990fi 5991fi 5992ac_ct_F77=$ac_cv_prog_ac_ct_F77 5993if test -n "$ac_ct_F77"; then 5994 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5995echo "${ECHO_T}$ac_ct_F77" >&6; } 5996else 5997 { echo "$as_me:$LINENO: result: no" >&5 5998echo "${ECHO_T}no" >&6; } 5999fi 6000 6001 6002 test -n "$ac_ct_F77" && break 6003done 6004 6005 if test "x$ac_ct_F77" = x; then 6006 F77="" 6007 else 6008 case $cross_compiling:$ac_tool_warned in 6009yes:) 6010{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6011whose name does not start with the host triplet. If you think this 6012configuration is useful to you, please write to autoconf@gnu.org." >&5 6013echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6014whose name does not start with the host triplet. If you think this 6015configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6016ac_tool_warned=yes ;; 6017esac 6018 F77=$ac_ct_F77 6019 fi 6020fi 6021 6022 6023# Provide some information about the compiler. 6024echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6025ac_compiler=`set X $ac_compile; echo $2` 6026{ (ac_try="$ac_compiler --version >&5" 6027case "(($ac_try" in 6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6029 *) ac_try_echo=$ac_try;; 6030esac 6031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6032 (eval "$ac_compiler --version >&5") 2>&5 6033 ac_status=$? 6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6035 (exit $ac_status); } 6036{ (ac_try="$ac_compiler -v >&5" 6037case "(($ac_try" in 6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6039 *) ac_try_echo=$ac_try;; 6040esac 6041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6042 (eval "$ac_compiler -v >&5") 2>&5 6043 ac_status=$? 6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6045 (exit $ac_status); } 6046{ (ac_try="$ac_compiler -V >&5" 6047case "(($ac_try" in 6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6049 *) ac_try_echo=$ac_try;; 6050esac 6051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6052 (eval "$ac_compiler -V >&5") 2>&5 6053 ac_status=$? 6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6055 (exit $ac_status); } 6056rm -f a.out 6057 6058# If we don't use `.F' as extension, the preprocessor is not run on the 6059# input file. (Note that this only needs to work for GNU compilers.) 6060ac_save_ext=$ac_ext 6061ac_ext=F 6062{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6063echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6064if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6065 echo $ECHO_N "(cached) $ECHO_C" >&6 6066else 6067 cat >conftest.$ac_ext <<_ACEOF 6068 program main 6069#ifndef __GNUC__ 6070 choke me 6071#endif 6072 6073 end 6074_ACEOF 6075rm -f conftest.$ac_objext 6076if { (ac_try="$ac_compile" 6077case "(($ac_try" in 6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6079 *) ac_try_echo=$ac_try;; 6080esac 6081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6082 (eval "$ac_compile") 2>conftest.er1 6083 ac_status=$? 6084 grep -v '^ *+' conftest.er1 >conftest.err 6085 rm -f conftest.er1 6086 cat conftest.err >&5 6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6088 (exit $ac_status); } && { 6089 test -z "$ac_f77_werror_flag" || 6090 test ! -s conftest.err 6091 } && test -s conftest.$ac_objext; then 6092 ac_compiler_gnu=yes 6093else 6094 echo "$as_me: failed program was:" >&5 6095sed 's/^/| /' conftest.$ac_ext >&5 6096 6097 ac_compiler_gnu=no 6098fi 6099 6100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6101ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6102 6103fi 6104{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6105echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6106ac_ext=$ac_save_ext 6107ac_test_FFLAGS=${FFLAGS+set} 6108ac_save_FFLAGS=$FFLAGS 6109FFLAGS= 6110{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6111echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6112if test "${ac_cv_prog_f77_g+set}" = set; then 6113 echo $ECHO_N "(cached) $ECHO_C" >&6 6114else 6115 FFLAGS=-g 6116cat >conftest.$ac_ext <<_ACEOF 6117 program main 6118 6119 end 6120_ACEOF 6121rm -f conftest.$ac_objext 6122if { (ac_try="$ac_compile" 6123case "(($ac_try" in 6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6125 *) ac_try_echo=$ac_try;; 6126esac 6127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6128 (eval "$ac_compile") 2>conftest.er1 6129 ac_status=$? 6130 grep -v '^ *+' conftest.er1 >conftest.err 6131 rm -f conftest.er1 6132 cat conftest.err >&5 6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6134 (exit $ac_status); } && { 6135 test -z "$ac_f77_werror_flag" || 6136 test ! -s conftest.err 6137 } && test -s conftest.$ac_objext; then 6138 ac_cv_prog_f77_g=yes 6139else 6140 echo "$as_me: failed program was:" >&5 6141sed 's/^/| /' conftest.$ac_ext >&5 6142 6143 ac_cv_prog_f77_g=no 6144fi 6145 6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6147 6148fi 6149{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6150echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6151if test "$ac_test_FFLAGS" = set; then 6152 FFLAGS=$ac_save_FFLAGS 6153elif test $ac_cv_prog_f77_g = yes; then 6154 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6155 FFLAGS="-g -O2" 6156 else 6157 FFLAGS="-g" 6158 fi 6159else 6160 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6161 FFLAGS="-O2" 6162 else 6163 FFLAGS= 6164 fi 6165fi 6166 6167G77=`test $ac_compiler_gnu = yes && echo yes` 6168ac_ext=c 6169ac_cpp='$CPP $CPPFLAGS' 6170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6172ac_compiler_gnu=$ac_cv_c_compiler_gnu 6173 6174 6175 6176# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6177# find the maximum length of command line arguments 6178{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6179echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6180if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6181 echo $ECHO_N "(cached) $ECHO_C" >&6 6182else 6183 i=0 6184 teststring="ABCD" 6185 6186 case $build_os in 6187 msdosdjgpp*) 6188 # On DJGPP, this test can blow up pretty badly due to problems in libc 6189 # (any single argument exceeding 2000 bytes causes a buffer overrun 6190 # during glob expansion). Even if it were fixed, the result of this 6191 # check would be larger than it should be. 6192 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6193 ;; 6194 6195 gnu*) 6196 # Under GNU Hurd, this test is not required because there is 6197 # no limit to the length of command line arguments. 6198 # Libtool will interpret -1 as no limit whatsoever 6199 lt_cv_sys_max_cmd_len=-1; 6200 ;; 6201 6202 cygwin* | mingw*) 6203 # On Win9x/ME, this test blows up -- it succeeds, but takes 6204 # about 5 minutes as the teststring grows exponentially. 6205 # Worse, since 9x/ME are not pre-emptively multitasking, 6206 # you end up with a "frozen" computer, even though with patience 6207 # the test eventually succeeds (with a max line length of 256k). 6208 # Instead, let's just punt: use the minimum linelength reported by 6209 # all of the supported platforms: 8192 (on NT/2K/XP). 6210 lt_cv_sys_max_cmd_len=8192; 6211 ;; 6212 6213 amigaos*) 6214 # On AmigaOS with pdksh, this test takes hours, literally. 6215 # So we just punt and use a minimum line length of 8192. 6216 lt_cv_sys_max_cmd_len=8192; 6217 ;; 6218 6219 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6220 # This has been around since 386BSD, at least. Likely further. 6221 if test -x /sbin/sysctl; then 6222 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6223 elif test -x /usr/sbin/sysctl; then 6224 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6225 else 6226 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6227 fi 6228 # And add a safety zone 6229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6230 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6231 ;; 6232 6233 interix*) 6234 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6235 lt_cv_sys_max_cmd_len=196608 6236 ;; 6237 6238 osf*) 6239 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6240 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6241 # nice to cause kernel panics so lets avoid the loop below. 6242 # First set a reasonable default. 6243 lt_cv_sys_max_cmd_len=16384 6244 # 6245 if test -x /sbin/sysconfig; then 6246 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6247 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6248 esac 6249 fi 6250 ;; 6251 sco3.2v5*) 6252 lt_cv_sys_max_cmd_len=102400 6253 ;; 6254 sysv5* | sco5v6* | sysv4.2uw2*) 6255 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6256 if test -n "$kargmax"; then 6257 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6258 else 6259 lt_cv_sys_max_cmd_len=32768 6260 fi 6261 ;; 6262 *) 6263 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6264 if test -n "$lt_cv_sys_max_cmd_len"; then 6265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6267 else 6268 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6269 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6270 = "XX$teststring") >/dev/null 2>&1 && 6271 new_result=`expr "X$teststring" : ".*" 2>&1` && 6272 lt_cv_sys_max_cmd_len=$new_result && 6273 test $i != 17 # 1/2 MB should be enough 6274 do 6275 i=`expr $i + 1` 6276 teststring=$teststring$teststring 6277 done 6278 teststring= 6279 # Add a significant safety factor because C++ compilers can tack on massive 6280 # amounts of additional arguments before passing them to the linker. 6281 # It appears as though 1/2 is a usable value. 6282 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6283 fi 6284 ;; 6285 esac 6286 6287fi 6288 6289if test -n $lt_cv_sys_max_cmd_len ; then 6290 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6291echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6292else 6293 { echo "$as_me:$LINENO: result: none" >&5 6294echo "${ECHO_T}none" >&6; } 6295fi 6296 6297 6298 6299 6300 6301# Check for command to grab the raw symbol name followed by C symbol from nm. 6302{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6303echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6304if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6305 echo $ECHO_N "(cached) $ECHO_C" >&6 6306else 6307 6308# These are sane defaults that work on at least a few old systems. 6309# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6310 6311# Character class describing NM global symbol codes. 6312symcode='[BCDEGRST]' 6313 6314# Regexp to match symbols that can be accessed directly from C. 6315sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6316 6317# Transform an extracted symbol line into a proper C declaration 6318lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6319 6320# Transform an extracted symbol line into symbol name and symbol address 6321lt_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'" 6322 6323# Define system-specific variables. 6324case $host_os in 6325aix*) 6326 symcode='[BCDT]' 6327 ;; 6328cygwin* | mingw* | pw32*) 6329 symcode='[ABCDGISTW]' 6330 ;; 6331hpux*) # Its linker distinguishes data from code symbols 6332 if test "$host_cpu" = ia64; then 6333 symcode='[ABCDEGRST]' 6334 fi 6335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6336 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'" 6337 ;; 6338linux* | k*bsd*-gnu) 6339 if test "$host_cpu" = ia64; then 6340 symcode='[ABCDGIRSTW]' 6341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6342 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'" 6343 fi 6344 ;; 6345irix* | nonstopux*) 6346 symcode='[BCDEGRST]' 6347 ;; 6348osf*) 6349 symcode='[BCDEGQRST]' 6350 ;; 6351solaris*) 6352 symcode='[BDRT]' 6353 ;; 6354sco3.2v5*) 6355 symcode='[DT]' 6356 ;; 6357sysv4.2uw2*) 6358 symcode='[DT]' 6359 ;; 6360sysv5* | sco5v6* | unixware* | OpenUNIX*) 6361 symcode='[ABDT]' 6362 ;; 6363sysv4) 6364 symcode='[DFNSTU]' 6365 ;; 6366esac 6367 6368# Handle CRLF in mingw tool chain 6369opt_cr= 6370case $build_os in 6371mingw*) 6372 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6373 ;; 6374esac 6375 6376# If we're using GNU nm, then use its standard symbol codes. 6377case `$NM -V 2>&1` in 6378*GNU* | *'with BFD'*) 6379 symcode='[ABCDGIRSTW]' ;; 6380esac 6381 6382# Try without a prefix undercore, then with it. 6383for ac_symprfx in "" "_"; do 6384 6385 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6386 symxfrm="\\1 $ac_symprfx\\2 \\2" 6387 6388 # Write the raw and C identifiers. 6389 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6390 6391 # Check to see that the pipe works correctly. 6392 pipe_works=no 6393 6394 rm -f conftest* 6395 cat > conftest.$ac_ext <<EOF 6396#ifdef __cplusplus 6397extern "C" { 6398#endif 6399char nm_test_var; 6400void nm_test_func(){} 6401#ifdef __cplusplus 6402} 6403#endif 6404int main(){nm_test_var='a';nm_test_func();return(0);} 6405EOF 6406 6407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6408 (eval $ac_compile) 2>&5 6409 ac_status=$? 6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6411 (exit $ac_status); }; then 6412 # Now try to grab the symbols. 6413 nlist=conftest.nm 6414 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6415 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6416 ac_status=$? 6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6418 (exit $ac_status); } && test -s "$nlist"; then 6419 # Try sorting and uniquifying the output. 6420 if sort "$nlist" | uniq > "$nlist"T; then 6421 mv -f "$nlist"T "$nlist" 6422 else 6423 rm -f "$nlist"T 6424 fi 6425 6426 # Make sure that we snagged all the symbols we need. 6427 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6428 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6429 cat <<EOF > conftest.$ac_ext 6430#ifdef __cplusplus 6431extern "C" { 6432#endif 6433 6434EOF 6435 # Now generate the symbol file. 6436 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6437 6438 cat <<EOF >> conftest.$ac_ext 6439#if defined (__STDC__) && __STDC__ 6440# define lt_ptr_t void * 6441#else 6442# define lt_ptr_t char * 6443# define const 6444#endif 6445 6446/* The mapping between symbol names and symbols. */ 6447const struct { 6448 const char *name; 6449 lt_ptr_t address; 6450} 6451lt_preloaded_symbols[] = 6452{ 6453EOF 6454 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6455 cat <<\EOF >> conftest.$ac_ext 6456 {0, (lt_ptr_t) 0} 6457}; 6458 6459#ifdef __cplusplus 6460} 6461#endif 6462EOF 6463 # Now try linking the two files. 6464 mv conftest.$ac_objext conftstm.$ac_objext 6465 lt_save_LIBS="$LIBS" 6466 lt_save_CFLAGS="$CFLAGS" 6467 LIBS="conftstm.$ac_objext" 6468 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6470 (eval $ac_link) 2>&5 6471 ac_status=$? 6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6473 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6474 pipe_works=yes 6475 fi 6476 LIBS="$lt_save_LIBS" 6477 CFLAGS="$lt_save_CFLAGS" 6478 else 6479 echo "cannot find nm_test_func in $nlist" >&5 6480 fi 6481 else 6482 echo "cannot find nm_test_var in $nlist" >&5 6483 fi 6484 else 6485 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6486 fi 6487 else 6488 echo "$progname: failed program was:" >&5 6489 cat conftest.$ac_ext >&5 6490 fi 6491 rm -rf conftest* conftst* 6492 6493 # Do not use the global_symbol_pipe unless it works. 6494 if test "$pipe_works" = yes; then 6495 break 6496 else 6497 lt_cv_sys_global_symbol_pipe= 6498 fi 6499done 6500 6501fi 6502 6503if test -z "$lt_cv_sys_global_symbol_pipe"; then 6504 lt_cv_sys_global_symbol_to_cdecl= 6505fi 6506if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6507 { echo "$as_me:$LINENO: result: failed" >&5 6508echo "${ECHO_T}failed" >&6; } 6509else 6510 { echo "$as_me:$LINENO: result: ok" >&5 6511echo "${ECHO_T}ok" >&6; } 6512fi 6513 6514{ echo "$as_me:$LINENO: checking for objdir" >&5 6515echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6516if test "${lt_cv_objdir+set}" = set; then 6517 echo $ECHO_N "(cached) $ECHO_C" >&6 6518else 6519 rm -f .libs 2>/dev/null 6520mkdir .libs 2>/dev/null 6521if test -d .libs; then 6522 lt_cv_objdir=.libs 6523else 6524 # MS-DOS does not allow filenames that begin with a dot. 6525 lt_cv_objdir=_libs 6526fi 6527rmdir .libs 2>/dev/null 6528fi 6529{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6530echo "${ECHO_T}$lt_cv_objdir" >&6; } 6531objdir=$lt_cv_objdir 6532 6533 6534 6535 6536 6537case $host_os in 6538aix3*) 6539 # AIX sometimes has problems with the GCC collect2 program. For some 6540 # reason, if we set the COLLECT_NAMES environment variable, the problems 6541 # vanish in a puff of smoke. 6542 if test "X${COLLECT_NAMES+set}" != Xset; then 6543 COLLECT_NAMES= 6544 export COLLECT_NAMES 6545 fi 6546 ;; 6547esac 6548 6549# Sed substitution that helps us do robust quoting. It backslashifies 6550# metacharacters that are still active within double-quoted strings. 6551Xsed='sed -e 1s/^X//' 6552sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6553 6554# Same as above, but do not quote variable references. 6555double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6556 6557# Sed substitution to delay expansion of an escaped shell variable in a 6558# double_quote_subst'ed string. 6559delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6560 6561# Sed substitution to avoid accidental globbing in evaled expressions 6562no_glob_subst='s/\*/\\\*/g' 6563 6564# Constants: 6565rm="rm -f" 6566 6567# Global variables: 6568default_ofile=libtool 6569can_build_shared=yes 6570 6571# All known linkers require a `.a' archive for static linking (except MSVC, 6572# which needs '.lib'). 6573libext=a 6574ltmain="$ac_aux_dir/ltmain.sh" 6575ofile="$default_ofile" 6576with_gnu_ld="$lt_cv_prog_gnu_ld" 6577 6578if test -n "$ac_tool_prefix"; then 6579 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6580set dummy ${ac_tool_prefix}ar; ac_word=$2 6581{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6583if test "${ac_cv_prog_AR+set}" = set; then 6584 echo $ECHO_N "(cached) $ECHO_C" >&6 6585else 6586 if test -n "$AR"; then 6587 ac_cv_prog_AR="$AR" # Let the user override the test. 6588else 6589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6590for as_dir in $PATH 6591do 6592 IFS=$as_save_IFS 6593 test -z "$as_dir" && as_dir=. 6594 for ac_exec_ext in '' $ac_executable_extensions; do 6595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6596 ac_cv_prog_AR="${ac_tool_prefix}ar" 6597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6598 break 2 6599 fi 6600done 6601done 6602IFS=$as_save_IFS 6603 6604fi 6605fi 6606AR=$ac_cv_prog_AR 6607if test -n "$AR"; then 6608 { echo "$as_me:$LINENO: result: $AR" >&5 6609echo "${ECHO_T}$AR" >&6; } 6610else 6611 { echo "$as_me:$LINENO: result: no" >&5 6612echo "${ECHO_T}no" >&6; } 6613fi 6614 6615 6616fi 6617if test -z "$ac_cv_prog_AR"; then 6618 ac_ct_AR=$AR 6619 # Extract the first word of "ar", so it can be a program name with args. 6620set dummy ar; ac_word=$2 6621{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6623if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6624 echo $ECHO_N "(cached) $ECHO_C" >&6 6625else 6626 if test -n "$ac_ct_AR"; then 6627 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6628else 6629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6630for as_dir in $PATH 6631do 6632 IFS=$as_save_IFS 6633 test -z "$as_dir" && as_dir=. 6634 for ac_exec_ext in '' $ac_executable_extensions; do 6635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6636 ac_cv_prog_ac_ct_AR="ar" 6637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6638 break 2 6639 fi 6640done 6641done 6642IFS=$as_save_IFS 6643 6644fi 6645fi 6646ac_ct_AR=$ac_cv_prog_ac_ct_AR 6647if test -n "$ac_ct_AR"; then 6648 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6649echo "${ECHO_T}$ac_ct_AR" >&6; } 6650else 6651 { echo "$as_me:$LINENO: result: no" >&5 6652echo "${ECHO_T}no" >&6; } 6653fi 6654 6655 if test "x$ac_ct_AR" = x; then 6656 AR="false" 6657 else 6658 case $cross_compiling:$ac_tool_warned in 6659yes:) 6660{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6661whose name does not start with the host triplet. If you think this 6662configuration is useful to you, please write to autoconf@gnu.org." >&5 6663echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6664whose name does not start with the host triplet. If you think this 6665configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6666ac_tool_warned=yes ;; 6667esac 6668 AR=$ac_ct_AR 6669 fi 6670else 6671 AR="$ac_cv_prog_AR" 6672fi 6673 6674if test -n "$ac_tool_prefix"; then 6675 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6676set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6677{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6679if test "${ac_cv_prog_RANLIB+set}" = set; then 6680 echo $ECHO_N "(cached) $ECHO_C" >&6 6681else 6682 if test -n "$RANLIB"; then 6683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6684else 6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6686for as_dir in $PATH 6687do 6688 IFS=$as_save_IFS 6689 test -z "$as_dir" && as_dir=. 6690 for ac_exec_ext in '' $ac_executable_extensions; do 6691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6692 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6694 break 2 6695 fi 6696done 6697done 6698IFS=$as_save_IFS 6699 6700fi 6701fi 6702RANLIB=$ac_cv_prog_RANLIB 6703if test -n "$RANLIB"; then 6704 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6705echo "${ECHO_T}$RANLIB" >&6; } 6706else 6707 { echo "$as_me:$LINENO: result: no" >&5 6708echo "${ECHO_T}no" >&6; } 6709fi 6710 6711 6712fi 6713if test -z "$ac_cv_prog_RANLIB"; then 6714 ac_ct_RANLIB=$RANLIB 6715 # Extract the first word of "ranlib", so it can be a program name with args. 6716set dummy ranlib; ac_word=$2 6717{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6719if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6720 echo $ECHO_N "(cached) $ECHO_C" >&6 6721else 6722 if test -n "$ac_ct_RANLIB"; then 6723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6724else 6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6726for as_dir in $PATH 6727do 6728 IFS=$as_save_IFS 6729 test -z "$as_dir" && as_dir=. 6730 for ac_exec_ext in '' $ac_executable_extensions; do 6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6732 ac_cv_prog_ac_ct_RANLIB="ranlib" 6733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6734 break 2 6735 fi 6736done 6737done 6738IFS=$as_save_IFS 6739 6740fi 6741fi 6742ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6743if test -n "$ac_ct_RANLIB"; then 6744 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6745echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6746else 6747 { echo "$as_me:$LINENO: result: no" >&5 6748echo "${ECHO_T}no" >&6; } 6749fi 6750 6751 if test "x$ac_ct_RANLIB" = x; then 6752 RANLIB=":" 6753 else 6754 case $cross_compiling:$ac_tool_warned in 6755yes:) 6756{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6757whose name does not start with the host triplet. If you think this 6758configuration is useful to you, please write to autoconf@gnu.org." >&5 6759echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6760whose name does not start with the host triplet. If you think this 6761configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6762ac_tool_warned=yes ;; 6763esac 6764 RANLIB=$ac_ct_RANLIB 6765 fi 6766else 6767 RANLIB="$ac_cv_prog_RANLIB" 6768fi 6769 6770if test -n "$ac_tool_prefix"; then 6771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6772set dummy ${ac_tool_prefix}strip; ac_word=$2 6773{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6775if test "${ac_cv_prog_STRIP+set}" = set; then 6776 echo $ECHO_N "(cached) $ECHO_C" >&6 6777else 6778 if test -n "$STRIP"; then 6779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6780else 6781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6782for as_dir in $PATH 6783do 6784 IFS=$as_save_IFS 6785 test -z "$as_dir" && as_dir=. 6786 for ac_exec_ext in '' $ac_executable_extensions; do 6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6788 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6790 break 2 6791 fi 6792done 6793done 6794IFS=$as_save_IFS 6795 6796fi 6797fi 6798STRIP=$ac_cv_prog_STRIP 6799if test -n "$STRIP"; then 6800 { echo "$as_me:$LINENO: result: $STRIP" >&5 6801echo "${ECHO_T}$STRIP" >&6; } 6802else 6803 { echo "$as_me:$LINENO: result: no" >&5 6804echo "${ECHO_T}no" >&6; } 6805fi 6806 6807 6808fi 6809if test -z "$ac_cv_prog_STRIP"; then 6810 ac_ct_STRIP=$STRIP 6811 # Extract the first word of "strip", so it can be a program name with args. 6812set dummy strip; ac_word=$2 6813{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6815if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6816 echo $ECHO_N "(cached) $ECHO_C" >&6 6817else 6818 if test -n "$ac_ct_STRIP"; then 6819 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6820else 6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6822for as_dir in $PATH 6823do 6824 IFS=$as_save_IFS 6825 test -z "$as_dir" && as_dir=. 6826 for ac_exec_ext in '' $ac_executable_extensions; do 6827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6828 ac_cv_prog_ac_ct_STRIP="strip" 6829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6830 break 2 6831 fi 6832done 6833done 6834IFS=$as_save_IFS 6835 6836fi 6837fi 6838ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6839if test -n "$ac_ct_STRIP"; then 6840 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6841echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6842else 6843 { echo "$as_me:$LINENO: result: no" >&5 6844echo "${ECHO_T}no" >&6; } 6845fi 6846 6847 if test "x$ac_ct_STRIP" = x; then 6848 STRIP=":" 6849 else 6850 case $cross_compiling:$ac_tool_warned in 6851yes:) 6852{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6853whose name does not start with the host triplet. If you think this 6854configuration is useful to you, please write to autoconf@gnu.org." >&5 6855echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6856whose name does not start with the host triplet. If you think this 6857configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6858ac_tool_warned=yes ;; 6859esac 6860 STRIP=$ac_ct_STRIP 6861 fi 6862else 6863 STRIP="$ac_cv_prog_STRIP" 6864fi 6865 6866 6867old_CC="$CC" 6868old_CFLAGS="$CFLAGS" 6869 6870# Set sane defaults for various variables 6871test -z "$AR" && AR=ar 6872test -z "$AR_FLAGS" && AR_FLAGS=cru 6873test -z "$AS" && AS=as 6874test -z "$CC" && CC=cc 6875test -z "$LTCC" && LTCC=$CC 6876test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6877test -z "$DLLTOOL" && DLLTOOL=dlltool 6878test -z "$LD" && LD=ld 6879test -z "$LN_S" && LN_S="ln -s" 6880test -z "$MAGIC_CMD" && MAGIC_CMD=file 6881test -z "$NM" && NM=nm 6882test -z "$SED" && SED=sed 6883test -z "$OBJDUMP" && OBJDUMP=objdump 6884test -z "$RANLIB" && RANLIB=: 6885test -z "$STRIP" && STRIP=: 6886test -z "$ac_objext" && ac_objext=o 6887 6888# Determine commands to create old-style static archives. 6889old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6890old_postinstall_cmds='chmod 644 $oldlib' 6891old_postuninstall_cmds= 6892 6893if test -n "$RANLIB"; then 6894 case $host_os in 6895 openbsd*) 6896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6897 ;; 6898 *) 6899 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6900 ;; 6901 esac 6902 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6903fi 6904 6905for cc_temp in $compiler""; do 6906 case $cc_temp in 6907 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6908 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6909 \-*) ;; 6910 *) break;; 6911 esac 6912done 6913cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6914 6915 6916# Only perform the check for file, if the check method requires it 6917case $deplibs_check_method in 6918file_magic*) 6919 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6920 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6921echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6922if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6923 echo $ECHO_N "(cached) $ECHO_C" >&6 6924else 6925 case $MAGIC_CMD in 6926[\\/*] | ?:[\\/]*) 6927 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6928 ;; 6929*) 6930 lt_save_MAGIC_CMD="$MAGIC_CMD" 6931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6932 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6933 for ac_dir in $ac_dummy; do 6934 IFS="$lt_save_ifs" 6935 test -z "$ac_dir" && ac_dir=. 6936 if test -f $ac_dir/${ac_tool_prefix}file; then 6937 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6938 if test -n "$file_magic_test_file"; then 6939 case $deplibs_check_method in 6940 "file_magic "*) 6941 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6942 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6943 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6944 $EGREP "$file_magic_regex" > /dev/null; then 6945 : 6946 else 6947 cat <<EOF 1>&2 6948 6949*** Warning: the command libtool uses to detect shared libraries, 6950*** $file_magic_cmd, produces output that libtool cannot recognize. 6951*** The result is that libtool may fail to recognize shared libraries 6952*** as such. This will affect the creation of libtool libraries that 6953*** depend on shared libraries, but programs linked with such libtool 6954*** libraries will work regardless of this problem. Nevertheless, you 6955*** may want to report the problem to your system manager and/or to 6956*** bug-libtool@gnu.org 6957 6958EOF 6959 fi ;; 6960 esac 6961 fi 6962 break 6963 fi 6964 done 6965 IFS="$lt_save_ifs" 6966 MAGIC_CMD="$lt_save_MAGIC_CMD" 6967 ;; 6968esac 6969fi 6970 6971MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6972if test -n "$MAGIC_CMD"; then 6973 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6974echo "${ECHO_T}$MAGIC_CMD" >&6; } 6975else 6976 { echo "$as_me:$LINENO: result: no" >&5 6977echo "${ECHO_T}no" >&6; } 6978fi 6979 6980if test -z "$lt_cv_path_MAGIC_CMD"; then 6981 if test -n "$ac_tool_prefix"; then 6982 { echo "$as_me:$LINENO: checking for file" >&5 6983echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6984if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6985 echo $ECHO_N "(cached) $ECHO_C" >&6 6986else 6987 case $MAGIC_CMD in 6988[\\/*] | ?:[\\/]*) 6989 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6990 ;; 6991*) 6992 lt_save_MAGIC_CMD="$MAGIC_CMD" 6993 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6994 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6995 for ac_dir in $ac_dummy; do 6996 IFS="$lt_save_ifs" 6997 test -z "$ac_dir" && ac_dir=. 6998 if test -f $ac_dir/file; then 6999 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7000 if test -n "$file_magic_test_file"; then 7001 case $deplibs_check_method in 7002 "file_magic "*) 7003 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7004 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7005 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7006 $EGREP "$file_magic_regex" > /dev/null; then 7007 : 7008 else 7009 cat <<EOF 1>&2 7010 7011*** Warning: the command libtool uses to detect shared libraries, 7012*** $file_magic_cmd, produces output that libtool cannot recognize. 7013*** The result is that libtool may fail to recognize shared libraries 7014*** as such. This will affect the creation of libtool libraries that 7015*** depend on shared libraries, but programs linked with such libtool 7016*** libraries will work regardless of this problem. Nevertheless, you 7017*** may want to report the problem to your system manager and/or to 7018*** bug-libtool@gnu.org 7019 7020EOF 7021 fi ;; 7022 esac 7023 fi 7024 break 7025 fi 7026 done 7027 IFS="$lt_save_ifs" 7028 MAGIC_CMD="$lt_save_MAGIC_CMD" 7029 ;; 7030esac 7031fi 7032 7033MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7034if test -n "$MAGIC_CMD"; then 7035 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7036echo "${ECHO_T}$MAGIC_CMD" >&6; } 7037else 7038 { echo "$as_me:$LINENO: result: no" >&5 7039echo "${ECHO_T}no" >&6; } 7040fi 7041 7042 else 7043 MAGIC_CMD=: 7044 fi 7045fi 7046 7047 fi 7048 ;; 7049esac 7050 7051 7052 case $host_os in 7053 rhapsody* | darwin*) 7054 if test -n "$ac_tool_prefix"; then 7055 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7056set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7057{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7059if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7060 echo $ECHO_N "(cached) $ECHO_C" >&6 7061else 7062 if test -n "$DSYMUTIL"; then 7063 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7064else 7065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7066for as_dir in $PATH 7067do 7068 IFS=$as_save_IFS 7069 test -z "$as_dir" && as_dir=. 7070 for ac_exec_ext in '' $ac_executable_extensions; do 7071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7072 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7074 break 2 7075 fi 7076done 7077done 7078IFS=$as_save_IFS 7079 7080fi 7081fi 7082DSYMUTIL=$ac_cv_prog_DSYMUTIL 7083if test -n "$DSYMUTIL"; then 7084 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7085echo "${ECHO_T}$DSYMUTIL" >&6; } 7086else 7087 { echo "$as_me:$LINENO: result: no" >&5 7088echo "${ECHO_T}no" >&6; } 7089fi 7090 7091 7092fi 7093if test -z "$ac_cv_prog_DSYMUTIL"; then 7094 ac_ct_DSYMUTIL=$DSYMUTIL 7095 # Extract the first word of "dsymutil", so it can be a program name with args. 7096set dummy dsymutil; ac_word=$2 7097{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7099if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7100 echo $ECHO_N "(cached) $ECHO_C" >&6 7101else 7102 if test -n "$ac_ct_DSYMUTIL"; then 7103 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7104else 7105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7106for as_dir in $PATH 7107do 7108 IFS=$as_save_IFS 7109 test -z "$as_dir" && as_dir=. 7110 for ac_exec_ext in '' $ac_executable_extensions; do 7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7112 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7114 break 2 7115 fi 7116done 7117done 7118IFS=$as_save_IFS 7119 7120fi 7121fi 7122ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7123if test -n "$ac_ct_DSYMUTIL"; then 7124 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7125echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 7126else 7127 { echo "$as_me:$LINENO: result: no" >&5 7128echo "${ECHO_T}no" >&6; } 7129fi 7130 7131 if test "x$ac_ct_DSYMUTIL" = x; then 7132 DSYMUTIL=":" 7133 else 7134 case $cross_compiling:$ac_tool_warned in 7135yes:) 7136{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7137whose name does not start with the host triplet. If you think this 7138configuration is useful to you, please write to autoconf@gnu.org." >&5 7139echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7140whose name does not start with the host triplet. If you think this 7141configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7142ac_tool_warned=yes ;; 7143esac 7144 DSYMUTIL=$ac_ct_DSYMUTIL 7145 fi 7146else 7147 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7148fi 7149 7150 if test -n "$ac_tool_prefix"; then 7151 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7152set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7153{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7155if test "${ac_cv_prog_NMEDIT+set}" = set; then 7156 echo $ECHO_N "(cached) $ECHO_C" >&6 7157else 7158 if test -n "$NMEDIT"; then 7159 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7160else 7161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7162for as_dir in $PATH 7163do 7164 IFS=$as_save_IFS 7165 test -z "$as_dir" && as_dir=. 7166 for ac_exec_ext in '' $ac_executable_extensions; do 7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7168 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7170 break 2 7171 fi 7172done 7173done 7174IFS=$as_save_IFS 7175 7176fi 7177fi 7178NMEDIT=$ac_cv_prog_NMEDIT 7179if test -n "$NMEDIT"; then 7180 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 7181echo "${ECHO_T}$NMEDIT" >&6; } 7182else 7183 { echo "$as_me:$LINENO: result: no" >&5 7184echo "${ECHO_T}no" >&6; } 7185fi 7186 7187 7188fi 7189if test -z "$ac_cv_prog_NMEDIT"; then 7190 ac_ct_NMEDIT=$NMEDIT 7191 # Extract the first word of "nmedit", so it can be a program name with args. 7192set dummy nmedit; ac_word=$2 7193{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7195if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7196 echo $ECHO_N "(cached) $ECHO_C" >&6 7197else 7198 if test -n "$ac_ct_NMEDIT"; then 7199 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7200else 7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7202for as_dir in $PATH 7203do 7204 IFS=$as_save_IFS 7205 test -z "$as_dir" && as_dir=. 7206 for ac_exec_ext in '' $ac_executable_extensions; do 7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7208 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7210 break 2 7211 fi 7212done 7213done 7214IFS=$as_save_IFS 7215 7216fi 7217fi 7218ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7219if test -n "$ac_ct_NMEDIT"; then 7220 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7221echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 7222else 7223 { echo "$as_me:$LINENO: result: no" >&5 7224echo "${ECHO_T}no" >&6; } 7225fi 7226 7227 if test "x$ac_ct_NMEDIT" = x; then 7228 NMEDIT=":" 7229 else 7230 case $cross_compiling:$ac_tool_warned in 7231yes:) 7232{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7233whose name does not start with the host triplet. If you think this 7234configuration is useful to you, please write to autoconf@gnu.org." >&5 7235echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7236whose name does not start with the host triplet. If you think this 7237configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7238ac_tool_warned=yes ;; 7239esac 7240 NMEDIT=$ac_ct_NMEDIT 7241 fi 7242else 7243 NMEDIT="$ac_cv_prog_NMEDIT" 7244fi 7245 7246 7247 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7248echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 7249if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7250 echo $ECHO_N "(cached) $ECHO_C" >&6 7251else 7252 lt_cv_apple_cc_single_mod=no 7253 if test -z "${LT_MULTI_MODULE}"; then 7254 # By default we will add the -single_module flag. You can override 7255 # by either setting the environment variable LT_MULTI_MODULE 7256 # non-empty at configure time, or by adding -multi_module to the 7257 # link flags. 7258 echo "int foo(void){return 1;}" > conftest.c 7259 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7260 -dynamiclib ${wl}-single_module conftest.c 7261 if test -f libconftest.dylib; then 7262 lt_cv_apple_cc_single_mod=yes 7263 rm -rf libconftest.dylib* 7264 fi 7265 rm conftest.c 7266 fi 7267fi 7268{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7269echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 7270 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7271echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 7272if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7273 echo $ECHO_N "(cached) $ECHO_C" >&6 7274else 7275 lt_cv_ld_exported_symbols_list=no 7276 save_LDFLAGS=$LDFLAGS 7277 echo "_main" > conftest.sym 7278 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7279 cat >conftest.$ac_ext <<_ACEOF 7280/* confdefs.h. */ 7281_ACEOF 7282cat confdefs.h >>conftest.$ac_ext 7283cat >>conftest.$ac_ext <<_ACEOF 7284/* end confdefs.h. */ 7285 7286int 7287main () 7288{ 7289 7290 ; 7291 return 0; 7292} 7293_ACEOF 7294rm -f conftest.$ac_objext conftest$ac_exeext 7295if { (ac_try="$ac_link" 7296case "(($ac_try" in 7297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7298 *) ac_try_echo=$ac_try;; 7299esac 7300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7301 (eval "$ac_link") 2>conftest.er1 7302 ac_status=$? 7303 grep -v '^ *+' conftest.er1 >conftest.err 7304 rm -f conftest.er1 7305 cat conftest.err >&5 7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7307 (exit $ac_status); } && { 7308 test -z "$ac_c_werror_flag" || 7309 test ! -s conftest.err 7310 } && test -s conftest$ac_exeext && 7311 $as_test_x conftest$ac_exeext; then 7312 lt_cv_ld_exported_symbols_list=yes 7313else 7314 echo "$as_me: failed program was:" >&5 7315sed 's/^/| /' conftest.$ac_ext >&5 7316 7317 lt_cv_ld_exported_symbols_list=no 7318fi 7319 7320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7321 conftest$ac_exeext conftest.$ac_ext 7322 LDFLAGS="$save_LDFLAGS" 7323 7324fi 7325{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7326echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 7327 case $host_os in 7328 rhapsody* | darwin1.[0123]) 7329 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7330 darwin1.*) 7331 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7332 darwin*) 7333 # if running on 10.5 or later, the deployment target defaults 7334 # to the OS version, if on x86, and 10.4, the deployment 7335 # target defaults to 10.4. Don't you love it? 7336 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7337 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7338 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7339 10.[012]*) 7340 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7341 10.*) 7342 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7343 esac 7344 ;; 7345 esac 7346 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7347 _lt_dar_single_mod='$single_module' 7348 fi 7349 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7350 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7351 else 7352 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7353 fi 7354 if test "$DSYMUTIL" != ":"; then 7355 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7356 else 7357 _lt_dsymutil= 7358 fi 7359 ;; 7360 esac 7361 7362 7363enable_dlopen=no 7364enable_win32_dll=no 7365 7366# Check whether --enable-libtool-lock was given. 7367if test "${enable_libtool_lock+set}" = set; then 7368 enableval=$enable_libtool_lock; 7369fi 7370 7371test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7372 7373 7374# Check whether --with-pic was given. 7375if test "${with_pic+set}" = set; then 7376 withval=$with_pic; pic_mode="$withval" 7377else 7378 pic_mode=default 7379fi 7380 7381test -z "$pic_mode" && pic_mode=default 7382 7383# Use C for the default configuration in the libtool script 7384tagname= 7385lt_save_CC="$CC" 7386ac_ext=c 7387ac_cpp='$CPP $CPPFLAGS' 7388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7390ac_compiler_gnu=$ac_cv_c_compiler_gnu 7391 7392 7393# Source file extension for C test sources. 7394ac_ext=c 7395 7396# Object file extension for compiled C test sources. 7397objext=o 7398objext=$objext 7399 7400# Code to be used in simple compile tests 7401lt_simple_compile_test_code="int some_variable = 0;" 7402 7403# Code to be used in simple link tests 7404lt_simple_link_test_code='int main(){return(0);}' 7405 7406 7407# If no C compiler was specified, use CC. 7408LTCC=${LTCC-"$CC"} 7409 7410# If no C compiler flags were specified, use CFLAGS. 7411LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7412 7413# Allow CC to be a program name with arguments. 7414compiler=$CC 7415 7416 7417# save warnings/boilerplate of simple test code 7418ac_outfile=conftest.$ac_objext 7419echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7420eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7421_lt_compiler_boilerplate=`cat conftest.err` 7422$rm conftest* 7423 7424ac_outfile=conftest.$ac_objext 7425echo "$lt_simple_link_test_code" >conftest.$ac_ext 7426eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7427_lt_linker_boilerplate=`cat conftest.err` 7428$rm -r conftest* 7429 7430 7431 7432lt_prog_compiler_no_builtin_flag= 7433 7434if test "$GCC" = yes; then 7435 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7436 7437 7438{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7439echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7440if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7441 echo $ECHO_N "(cached) $ECHO_C" >&6 7442else 7443 lt_cv_prog_compiler_rtti_exceptions=no 7444 ac_outfile=conftest.$ac_objext 7445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7446 lt_compiler_flag="-fno-rtti -fno-exceptions" 7447 # Insert the option either (1) after the last *FLAGS variable, or 7448 # (2) before a word containing "conftest.", or (3) at the end. 7449 # Note that $ac_compile itself does not contain backslashes and begins 7450 # with a dollar sign (not a hyphen), so the echo should work correctly. 7451 # The option is referenced via a variable to avoid confusing sed. 7452 lt_compile=`echo "$ac_compile" | $SED \ 7453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7455 -e 's:$: $lt_compiler_flag:'` 7456 (eval echo "\"\$as_me:7456: $lt_compile\"" >&5) 7457 (eval "$lt_compile" 2>conftest.err) 7458 ac_status=$? 7459 cat conftest.err >&5 7460 echo "$as_me:7460: \$? = $ac_status" >&5 7461 if (exit $ac_status) && test -s "$ac_outfile"; then 7462 # The compiler can only warn and ignore the option if not recognized 7463 # So say no if there are warnings other than the usual output. 7464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7467 lt_cv_prog_compiler_rtti_exceptions=yes 7468 fi 7469 fi 7470 $rm conftest* 7471 7472fi 7473{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7474echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7475 7476if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7477 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7478else 7479 : 7480fi 7481 7482fi 7483 7484lt_prog_compiler_wl= 7485lt_prog_compiler_pic= 7486lt_prog_compiler_static= 7487 7488{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7489echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7490 7491 if test "$GCC" = yes; then 7492 lt_prog_compiler_wl='-Wl,' 7493 lt_prog_compiler_static='-static' 7494 7495 case $host_os in 7496 aix*) 7497 # All AIX code is PIC. 7498 if test "$host_cpu" = ia64; then 7499 # AIX 5 now supports IA64 processor 7500 lt_prog_compiler_static='-Bstatic' 7501 fi 7502 ;; 7503 7504 amigaos*) 7505 # FIXME: we need at least 68020 code to build shared libraries, but 7506 # adding the `-m68020' flag to GCC prevents building anything better, 7507 # like `-m68040'. 7508 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7509 ;; 7510 7511 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7512 # PIC is the default for these OSes. 7513 ;; 7514 7515 mingw* | cygwin* | pw32* | os2*) 7516 # This hack is so that the source file can tell whether it is being 7517 # built for inclusion in a dll (and should export symbols for example). 7518 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7519 # (--disable-auto-import) libraries 7520 lt_prog_compiler_pic='-DDLL_EXPORT' 7521 ;; 7522 7523 darwin* | rhapsody*) 7524 # PIC is the default on this platform 7525 # Common symbols not allowed in MH_DYLIB files 7526 lt_prog_compiler_pic='-fno-common' 7527 ;; 7528 7529 interix[3-9]*) 7530 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7531 # Instead, we relocate shared libraries at runtime. 7532 ;; 7533 7534 msdosdjgpp*) 7535 # Just because we use GCC doesn't mean we suddenly get shared libraries 7536 # on systems that don't support them. 7537 lt_prog_compiler_can_build_shared=no 7538 enable_shared=no 7539 ;; 7540 7541 sysv4*MP*) 7542 if test -d /usr/nec; then 7543 lt_prog_compiler_pic=-Kconform_pic 7544 fi 7545 ;; 7546 7547 hpux*) 7548 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7549 # not for PA HP-UX. 7550 case $host_cpu in 7551 hppa*64*|ia64*) 7552 # +Z the default 7553 ;; 7554 *) 7555 lt_prog_compiler_pic='-fPIC' 7556 ;; 7557 esac 7558 ;; 7559 7560 *) 7561 lt_prog_compiler_pic='-fPIC' 7562 ;; 7563 esac 7564 else 7565 # PORTME Check for flag to pass linker flags through the system compiler. 7566 case $host_os in 7567 aix*) 7568 lt_prog_compiler_wl='-Wl,' 7569 if test "$host_cpu" = ia64; then 7570 # AIX 5 now supports IA64 processor 7571 lt_prog_compiler_static='-Bstatic' 7572 else 7573 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7574 fi 7575 ;; 7576 darwin*) 7577 # PIC is the default on this platform 7578 # Common symbols not allowed in MH_DYLIB files 7579 case $cc_basename in 7580 xlc*) 7581 lt_prog_compiler_pic='-qnocommon' 7582 lt_prog_compiler_wl='-Wl,' 7583 ;; 7584 esac 7585 ;; 7586 7587 mingw* | cygwin* | pw32* | os2*) 7588 # This hack is so that the source file can tell whether it is being 7589 # built for inclusion in a dll (and should export symbols for example). 7590 lt_prog_compiler_pic='-DDLL_EXPORT' 7591 ;; 7592 7593 hpux9* | hpux10* | hpux11*) 7594 lt_prog_compiler_wl='-Wl,' 7595 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7596 # not for PA HP-UX. 7597 case $host_cpu in 7598 hppa*64*|ia64*) 7599 # +Z the default 7600 ;; 7601 *) 7602 lt_prog_compiler_pic='+Z' 7603 ;; 7604 esac 7605 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7606 lt_prog_compiler_static='${wl}-a ${wl}archive' 7607 ;; 7608 7609 irix5* | irix6* | nonstopux*) 7610 lt_prog_compiler_wl='-Wl,' 7611 # PIC (with -KPIC) is the default. 7612 lt_prog_compiler_static='-non_shared' 7613 ;; 7614 7615 newsos6) 7616 lt_prog_compiler_pic='-KPIC' 7617 lt_prog_compiler_static='-Bstatic' 7618 ;; 7619 7620 linux* | k*bsd*-gnu) 7621 case $cc_basename in 7622 icc* | ecc*) 7623 lt_prog_compiler_wl='-Wl,' 7624 lt_prog_compiler_pic='-KPIC' 7625 lt_prog_compiler_static='-static' 7626 ;; 7627 pgcc* | pgf77* | pgf90* | pgf95*) 7628 # Portland Group compilers (*not* the Pentium gcc compiler, 7629 # which looks to be a dead project) 7630 lt_prog_compiler_wl='-Wl,' 7631 lt_prog_compiler_pic='-fpic' 7632 lt_prog_compiler_static='-Bstatic' 7633 ;; 7634 ccc*) 7635 lt_prog_compiler_wl='-Wl,' 7636 # All Alpha code is PIC. 7637 lt_prog_compiler_static='-non_shared' 7638 ;; 7639 *) 7640 case `$CC -V 2>&1 | sed 5q` in 7641 *Sun\ C*) 7642 # Sun C 5.9 7643 lt_prog_compiler_pic='-KPIC' 7644 lt_prog_compiler_static='-Bstatic' 7645 lt_prog_compiler_wl='-Wl,' 7646 ;; 7647 *Sun\ F*) 7648 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7649 lt_prog_compiler_pic='-KPIC' 7650 lt_prog_compiler_static='-Bstatic' 7651 lt_prog_compiler_wl='' 7652 ;; 7653 esac 7654 ;; 7655 esac 7656 ;; 7657 7658 osf3* | osf4* | osf5*) 7659 lt_prog_compiler_wl='-Wl,' 7660 # All OSF/1 code is PIC. 7661 lt_prog_compiler_static='-non_shared' 7662 ;; 7663 7664 rdos*) 7665 lt_prog_compiler_static='-non_shared' 7666 ;; 7667 7668 solaris*) 7669 lt_prog_compiler_pic='-KPIC' 7670 lt_prog_compiler_static='-Bstatic' 7671 case $cc_basename in 7672 f77* | f90* | f95*) 7673 lt_prog_compiler_wl='-Qoption ld ';; 7674 *) 7675 lt_prog_compiler_wl='-Wl,';; 7676 esac 7677 ;; 7678 7679 sunos4*) 7680 lt_prog_compiler_wl='-Qoption ld ' 7681 lt_prog_compiler_pic='-PIC' 7682 lt_prog_compiler_static='-Bstatic' 7683 ;; 7684 7685 sysv4 | sysv4.2uw2* | sysv4.3*) 7686 lt_prog_compiler_wl='-Wl,' 7687 lt_prog_compiler_pic='-KPIC' 7688 lt_prog_compiler_static='-Bstatic' 7689 ;; 7690 7691 sysv4*MP*) 7692 if test -d /usr/nec ;then 7693 lt_prog_compiler_pic='-Kconform_pic' 7694 lt_prog_compiler_static='-Bstatic' 7695 fi 7696 ;; 7697 7698 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7699 lt_prog_compiler_wl='-Wl,' 7700 lt_prog_compiler_pic='-KPIC' 7701 lt_prog_compiler_static='-Bstatic' 7702 ;; 7703 7704 unicos*) 7705 lt_prog_compiler_wl='-Wl,' 7706 lt_prog_compiler_can_build_shared=no 7707 ;; 7708 7709 uts4*) 7710 lt_prog_compiler_pic='-pic' 7711 lt_prog_compiler_static='-Bstatic' 7712 ;; 7713 7714 *) 7715 lt_prog_compiler_can_build_shared=no 7716 ;; 7717 esac 7718 fi 7719 7720{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7721echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7722 7723# 7724# Check to make sure the PIC flag actually works. 7725# 7726if test -n "$lt_prog_compiler_pic"; then 7727 7728{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7729echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7730if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7731 echo $ECHO_N "(cached) $ECHO_C" >&6 7732else 7733 lt_cv_prog_compiler_pic_works=no 7734 ac_outfile=conftest.$ac_objext 7735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7736 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7737 # Insert the option either (1) after the last *FLAGS variable, or 7738 # (2) before a word containing "conftest.", or (3) at the end. 7739 # Note that $ac_compile itself does not contain backslashes and begins 7740 # with a dollar sign (not a hyphen), so the echo should work correctly. 7741 # The option is referenced via a variable to avoid confusing sed. 7742 lt_compile=`echo "$ac_compile" | $SED \ 7743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7745 -e 's:$: $lt_compiler_flag:'` 7746 (eval echo "\"\$as_me:7746: $lt_compile\"" >&5) 7747 (eval "$lt_compile" 2>conftest.err) 7748 ac_status=$? 7749 cat conftest.err >&5 7750 echo "$as_me:7750: \$? = $ac_status" >&5 7751 if (exit $ac_status) && test -s "$ac_outfile"; then 7752 # The compiler can only warn and ignore the option if not recognized 7753 # So say no if there are warnings other than the usual output. 7754 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7756 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7757 lt_cv_prog_compiler_pic_works=yes 7758 fi 7759 fi 7760 $rm conftest* 7761 7762fi 7763{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7764echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 7765 7766if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7767 case $lt_prog_compiler_pic in 7768 "" | " "*) ;; 7769 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7770 esac 7771else 7772 lt_prog_compiler_pic= 7773 lt_prog_compiler_can_build_shared=no 7774fi 7775 7776fi 7777case $host_os in 7778 # For platforms which do not support PIC, -DPIC is meaningless: 7779 *djgpp*) 7780 lt_prog_compiler_pic= 7781 ;; 7782 *) 7783 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7784 ;; 7785esac 7786 7787# 7788# Check to make sure the static flag actually works. 7789# 7790wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7791{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7792echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7793if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7794 echo $ECHO_N "(cached) $ECHO_C" >&6 7795else 7796 lt_cv_prog_compiler_static_works=no 7797 save_LDFLAGS="$LDFLAGS" 7798 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7799 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7800 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7801 # The linker can only warn and ignore the option if not recognized 7802 # So say no if there are warnings 7803 if test -s conftest.err; then 7804 # Append any errors to the config.log. 7805 cat conftest.err 1>&5 7806 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7808 if diff conftest.exp conftest.er2 >/dev/null; then 7809 lt_cv_prog_compiler_static_works=yes 7810 fi 7811 else 7812 lt_cv_prog_compiler_static_works=yes 7813 fi 7814 fi 7815 $rm -r conftest* 7816 LDFLAGS="$save_LDFLAGS" 7817 7818fi 7819{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7820echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 7821 7822if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7823 : 7824else 7825 lt_prog_compiler_static= 7826fi 7827 7828 7829{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7830echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7831if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7832 echo $ECHO_N "(cached) $ECHO_C" >&6 7833else 7834 lt_cv_prog_compiler_c_o=no 7835 $rm -r conftest 2>/dev/null 7836 mkdir conftest 7837 cd conftest 7838 mkdir out 7839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7840 7841 lt_compiler_flag="-o out/conftest2.$ac_objext" 7842 # Insert the option either (1) after the last *FLAGS variable, or 7843 # (2) before a word containing "conftest.", or (3) at the end. 7844 # Note that $ac_compile itself does not contain backslashes and begins 7845 # with a dollar sign (not a hyphen), so the echo should work correctly. 7846 lt_compile=`echo "$ac_compile" | $SED \ 7847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7849 -e 's:$: $lt_compiler_flag:'` 7850 (eval echo "\"\$as_me:7850: $lt_compile\"" >&5) 7851 (eval "$lt_compile" 2>out/conftest.err) 7852 ac_status=$? 7853 cat out/conftest.err >&5 7854 echo "$as_me:7854: \$? = $ac_status" >&5 7855 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7856 then 7857 # The compiler can only warn and ignore the option if not recognized 7858 # So say no if there are warnings 7859 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7860 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7861 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7862 lt_cv_prog_compiler_c_o=yes 7863 fi 7864 fi 7865 chmod u+w . 2>&5 7866 $rm conftest* 7867 # SGI C++ compiler will create directory out/ii_files/ for 7868 # template instantiation 7869 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7870 $rm out/* && rmdir out 7871 cd .. 7872 rmdir conftest 7873 $rm conftest* 7874 7875fi 7876{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7877echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7878 7879 7880hard_links="nottested" 7881if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7882 # do not overwrite the value of need_locks provided by the user 7883 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7884echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7885 hard_links=yes 7886 $rm conftest* 7887 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7888 touch conftest.a 7889 ln conftest.a conftest.b 2>&5 || hard_links=no 7890 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7891 { echo "$as_me:$LINENO: result: $hard_links" >&5 7892echo "${ECHO_T}$hard_links" >&6; } 7893 if test "$hard_links" = no; then 7894 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7895echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7896 need_locks=warn 7897 fi 7898else 7899 need_locks=no 7900fi 7901 7902{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7903echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7904 7905 runpath_var= 7906 allow_undefined_flag= 7907 enable_shared_with_static_runtimes=no 7908 archive_cmds= 7909 archive_expsym_cmds= 7910 old_archive_From_new_cmds= 7911 old_archive_from_expsyms_cmds= 7912 export_dynamic_flag_spec= 7913 whole_archive_flag_spec= 7914 thread_safe_flag_spec= 7915 hardcode_libdir_flag_spec= 7916 hardcode_libdir_flag_spec_ld= 7917 hardcode_libdir_separator= 7918 hardcode_direct=no 7919 hardcode_minus_L=no 7920 hardcode_shlibpath_var=unsupported 7921 link_all_deplibs=unknown 7922 hardcode_automatic=no 7923 module_cmds= 7924 module_expsym_cmds= 7925 always_export_symbols=no 7926 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7927 # include_expsyms should be a list of space-separated symbols to be *always* 7928 # included in the symbol list 7929 include_expsyms= 7930 # exclude_expsyms can be an extended regexp of symbols to exclude 7931 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7932 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7933 # as well as any symbol that contains `d'. 7934 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7935 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7936 # platforms (ab)use it in PIC code, but their linkers get confused if 7937 # the symbol is explicitly referenced. Since portable code cannot 7938 # rely on this symbol name, it's probably fine to never include it in 7939 # preloaded symbol tables. 7940 # Exclude shared library initialization/finalization symbols. 7941 extract_expsyms_cmds= 7942 # Just being paranoid about ensuring that cc_basename is set. 7943 for cc_temp in $compiler""; do 7944 case $cc_temp in 7945 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7946 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7947 \-*) ;; 7948 *) break;; 7949 esac 7950done 7951cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7952 7953 case $host_os in 7954 cygwin* | mingw* | pw32*) 7955 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7956 # When not using gcc, we currently assume that we are using 7957 # Microsoft Visual C++. 7958 if test "$GCC" != yes; then 7959 with_gnu_ld=no 7960 fi 7961 ;; 7962 interix*) 7963 # we just hope/assume this is gcc and not c89 (= MSVC++) 7964 with_gnu_ld=yes 7965 ;; 7966 openbsd*) 7967 with_gnu_ld=no 7968 ;; 7969 esac 7970 7971 ld_shlibs=yes 7972 if test "$with_gnu_ld" = yes; then 7973 # If archive_cmds runs LD, not CC, wlarc should be empty 7974 wlarc='${wl}' 7975 7976 # Set some defaults for GNU ld with shared library support. These 7977 # are reset later if shared libraries are not supported. Putting them 7978 # here allows them to be overridden if necessary. 7979 runpath_var=LD_RUN_PATH 7980 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7981 export_dynamic_flag_spec='${wl}--export-dynamic' 7982 # ancient GNU ld didn't support --whole-archive et. al. 7983 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7984 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7985 else 7986 whole_archive_flag_spec= 7987 fi 7988 supports_anon_versioning=no 7989 case `$LD -v 2>/dev/null` in 7990 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7991 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7992 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7993 *\ 2.11.*) ;; # other 2.11 versions 7994 *) supports_anon_versioning=yes ;; 7995 esac 7996 7997 # See if GNU ld supports shared libraries. 7998 case $host_os in 7999 aix[3-9]*) 8000 # On AIX/PPC, the GNU linker is very broken 8001 if test "$host_cpu" != ia64; then 8002 ld_shlibs=no 8003 cat <<EOF 1>&2 8004 8005*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8006*** to be unable to reliably create shared libraries on AIX. 8007*** Therefore, libtool is disabling shared libraries support. If you 8008*** really care for shared libraries, you may want to modify your PATH 8009*** so that a non-GNU linker is found, and then restart. 8010 8011EOF 8012 fi 8013 ;; 8014 8015 amigaos*) 8016 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)' 8017 hardcode_libdir_flag_spec='-L$libdir' 8018 hardcode_minus_L=yes 8019 8020 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8021 # that the semantics of dynamic libraries on AmigaOS, at least up 8022 # to version 4, is to share data among multiple programs linked 8023 # with the same dynamic library. Since this doesn't match the 8024 # behavior of shared libraries on other platforms, we can't use 8025 # them. 8026 ld_shlibs=no 8027 ;; 8028 8029 beos*) 8030 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8031 allow_undefined_flag=unsupported 8032 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8033 # support --undefined. This deserves some investigation. FIXME 8034 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8035 else 8036 ld_shlibs=no 8037 fi 8038 ;; 8039 8040 cygwin* | mingw* | pw32*) 8041 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8042 # as there is no search path for DLLs. 8043 hardcode_libdir_flag_spec='-L$libdir' 8044 allow_undefined_flag=unsupported 8045 always_export_symbols=no 8046 enable_shared_with_static_runtimes=yes 8047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8048 8049 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8051 # If the export-symbols file already is a .def file (1st line 8052 # is EXPORTS), use it as is; otherwise, prepend... 8053 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8054 cp $export_symbols $output_objdir/$soname.def; 8055 else 8056 echo EXPORTS > $output_objdir/$soname.def; 8057 cat $export_symbols >> $output_objdir/$soname.def; 8058 fi~ 8059 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8060 else 8061 ld_shlibs=no 8062 fi 8063 ;; 8064 8065 interix[3-9]*) 8066 hardcode_direct=no 8067 hardcode_shlibpath_var=no 8068 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8069 export_dynamic_flag_spec='${wl}-E' 8070 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8071 # Instead, shared libraries are loaded at an image base (0x10000000 by 8072 # default) and relocated if they conflict, which is a slow very memory 8073 # consuming and fragmenting process. To avoid this, we pick a random, 8074 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8075 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8076 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8077 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' 8078 ;; 8079 8080 gnu* | linux* | k*bsd*-gnu) 8081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8082 tmp_addflag= 8083 case $cc_basename,$host_cpu in 8084 pgcc*) # Portland Group C compiler 8085 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' 8086 tmp_addflag=' $pic_flag' 8087 ;; 8088 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8089 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' 8090 tmp_addflag=' $pic_flag -Mnomain' ;; 8091 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8092 tmp_addflag=' -i_dynamic' ;; 8093 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8094 tmp_addflag=' -i_dynamic -nofor_main' ;; 8095 ifc* | ifort*) # Intel Fortran compiler 8096 tmp_addflag=' -nofor_main' ;; 8097 esac 8098 case `$CC -V 2>&1 | sed 5q` in 8099 *Sun\ C*) # Sun C 5.9 8100 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' 8101 tmp_sharedflag='-G' ;; 8102 *Sun\ F*) # Sun Fortran 8.3 8103 tmp_sharedflag='-G' ;; 8104 *) 8105 tmp_sharedflag='-shared' ;; 8106 esac 8107 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8108 8109 if test $supports_anon_versioning = yes; then 8110 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8112 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8113 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8114 fi 8115 link_all_deplibs=no 8116 else 8117 ld_shlibs=no 8118 fi 8119 ;; 8120 8121 netbsd* | netbsdelf*-gnu) 8122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8123 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8124 wlarc= 8125 else 8126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8128 fi 8129 ;; 8130 8131 solaris*) 8132 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8133 ld_shlibs=no 8134 cat <<EOF 1>&2 8135 8136*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8137*** create shared libraries on Solaris systems. Therefore, libtool 8138*** is disabling shared libraries support. We urge you to upgrade GNU 8139*** binutils to release 2.9.1 or newer. Another option is to modify 8140*** your PATH or compiler configuration so that the native linker is 8141*** used, and then restart. 8142 8143EOF 8144 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8145 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8146 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8147 else 8148 ld_shlibs=no 8149 fi 8150 ;; 8151 8152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8153 case `$LD -v 2>&1` in 8154 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8155 ld_shlibs=no 8156 cat <<_LT_EOF 1>&2 8157 8158*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8159*** reliably create shared libraries on SCO systems. Therefore, libtool 8160*** is disabling shared libraries support. We urge you to upgrade GNU 8161*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8162*** your PATH or compiler configuration so that the native linker is 8163*** used, and then restart. 8164 8165_LT_EOF 8166 ;; 8167 *) 8168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8169 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8171 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8172 else 8173 ld_shlibs=no 8174 fi 8175 ;; 8176 esac 8177 ;; 8178 8179 sunos4*) 8180 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8181 wlarc= 8182 hardcode_direct=yes 8183 hardcode_shlibpath_var=no 8184 ;; 8185 8186 *) 8187 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8189 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8190 else 8191 ld_shlibs=no 8192 fi 8193 ;; 8194 esac 8195 8196 if test "$ld_shlibs" = no; then 8197 runpath_var= 8198 hardcode_libdir_flag_spec= 8199 export_dynamic_flag_spec= 8200 whole_archive_flag_spec= 8201 fi 8202 else 8203 # PORTME fill in a description of your system's linker (not GNU ld) 8204 case $host_os in 8205 aix3*) 8206 allow_undefined_flag=unsupported 8207 always_export_symbols=yes 8208 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' 8209 # Note: this linker hardcodes the directories in LIBPATH if there 8210 # are no directories specified by -L. 8211 hardcode_minus_L=yes 8212 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8213 # Neither direct hardcoding nor static linking is supported with a 8214 # broken collect2. 8215 hardcode_direct=unsupported 8216 fi 8217 ;; 8218 8219 aix[4-9]*) 8220 if test "$host_cpu" = ia64; then 8221 # On IA64, the linker does run time linking by default, so we don't 8222 # have to do anything special. 8223 aix_use_runtimelinking=no 8224 exp_sym_flag='-Bexport' 8225 no_entry_flag="" 8226 else 8227 # If we're using GNU nm, then we don't want the "-C" option. 8228 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8229 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8230 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' 8231 else 8232 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' 8233 fi 8234 aix_use_runtimelinking=no 8235 8236 # Test if we are trying to use run time linking or normal 8237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8238 # need to do runtime linking. 8239 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8240 for ld_flag in $LDFLAGS; do 8241 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8242 aix_use_runtimelinking=yes 8243 break 8244 fi 8245 done 8246 ;; 8247 esac 8248 8249 exp_sym_flag='-bexport' 8250 no_entry_flag='-bnoentry' 8251 fi 8252 8253 # When large executables or shared objects are built, AIX ld can 8254 # have problems creating the table of contents. If linking a library 8255 # or program results in "error TOC overflow" add -mminimal-toc to 8256 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8257 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8258 8259 archive_cmds='' 8260 hardcode_direct=yes 8261 hardcode_libdir_separator=':' 8262 link_all_deplibs=yes 8263 8264 if test "$GCC" = yes; then 8265 case $host_os in aix4.[012]|aix4.[012].*) 8266 # We only want to do this on AIX 4.2 and lower, the check 8267 # below for broken collect2 doesn't work under 4.3+ 8268 collect2name=`${CC} -print-prog-name=collect2` 8269 if test -f "$collect2name" && \ 8270 strings "$collect2name" | grep resolve_lib_name >/dev/null 8271 then 8272 # We have reworked collect2 8273 : 8274 else 8275 # We have old collect2 8276 hardcode_direct=unsupported 8277 # It fails to find uninstalled libraries when the uninstalled 8278 # path is not listed in the libpath. Setting hardcode_minus_L 8279 # to unsupported forces relinking 8280 hardcode_minus_L=yes 8281 hardcode_libdir_flag_spec='-L$libdir' 8282 hardcode_libdir_separator= 8283 fi 8284 ;; 8285 esac 8286 shared_flag='-shared' 8287 if test "$aix_use_runtimelinking" = yes; then 8288 shared_flag="$shared_flag "'${wl}-G' 8289 fi 8290 else 8291 # not using gcc 8292 if test "$host_cpu" = ia64; then 8293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8294 # chokes on -Wl,-G. The following line is correct: 8295 shared_flag='-G' 8296 else 8297 if test "$aix_use_runtimelinking" = yes; then 8298 shared_flag='${wl}-G' 8299 else 8300 shared_flag='${wl}-bM:SRE' 8301 fi 8302 fi 8303 fi 8304 8305 # It seems that -bexpall does not export symbols beginning with 8306 # underscore (_), so it is better to generate a list of symbols to export. 8307 always_export_symbols=yes 8308 if test "$aix_use_runtimelinking" = yes; then 8309 # Warning - without using the other runtime loading flags (-brtl), 8310 # -berok will link without error, but may produce a broken library. 8311 allow_undefined_flag='-berok' 8312 # Determine the default libpath from the value encoded in an empty executable. 8313 cat >conftest.$ac_ext <<_ACEOF 8314/* confdefs.h. */ 8315_ACEOF 8316cat confdefs.h >>conftest.$ac_ext 8317cat >>conftest.$ac_ext <<_ACEOF 8318/* end confdefs.h. */ 8319 8320int 8321main () 8322{ 8323 8324 ; 8325 return 0; 8326} 8327_ACEOF 8328rm -f conftest.$ac_objext conftest$ac_exeext 8329if { (ac_try="$ac_link" 8330case "(($ac_try" in 8331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8332 *) ac_try_echo=$ac_try;; 8333esac 8334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8335 (eval "$ac_link") 2>conftest.er1 8336 ac_status=$? 8337 grep -v '^ *+' conftest.er1 >conftest.err 8338 rm -f conftest.er1 8339 cat conftest.err >&5 8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8341 (exit $ac_status); } && { 8342 test -z "$ac_c_werror_flag" || 8343 test ! -s conftest.err 8344 } && test -s conftest$ac_exeext && 8345 $as_test_x conftest$ac_exeext; then 8346 8347lt_aix_libpath_sed=' 8348 /Import File Strings/,/^$/ { 8349 /^0/ { 8350 s/^0 *\(.*\)$/\1/ 8351 p 8352 } 8353 }' 8354aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8355# Check for a 64-bit object if we didn't find anything. 8356if test -z "$aix_libpath"; then 8357 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8358fi 8359else 8360 echo "$as_me: failed program was:" >&5 8361sed 's/^/| /' conftest.$ac_ext >&5 8362 8363 8364fi 8365 8366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8367 conftest$ac_exeext conftest.$ac_ext 8368if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8369 8370 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8371 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" 8372 else 8373 if test "$host_cpu" = ia64; then 8374 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8375 allow_undefined_flag="-z nodefs" 8376 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" 8377 else 8378 # Determine the default libpath from the value encoded in an empty executable. 8379 cat >conftest.$ac_ext <<_ACEOF 8380/* confdefs.h. */ 8381_ACEOF 8382cat confdefs.h >>conftest.$ac_ext 8383cat >>conftest.$ac_ext <<_ACEOF 8384/* end confdefs.h. */ 8385 8386int 8387main () 8388{ 8389 8390 ; 8391 return 0; 8392} 8393_ACEOF 8394rm -f conftest.$ac_objext conftest$ac_exeext 8395if { (ac_try="$ac_link" 8396case "(($ac_try" in 8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8398 *) ac_try_echo=$ac_try;; 8399esac 8400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8401 (eval "$ac_link") 2>conftest.er1 8402 ac_status=$? 8403 grep -v '^ *+' conftest.er1 >conftest.err 8404 rm -f conftest.er1 8405 cat conftest.err >&5 8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8407 (exit $ac_status); } && { 8408 test -z "$ac_c_werror_flag" || 8409 test ! -s conftest.err 8410 } && test -s conftest$ac_exeext && 8411 $as_test_x conftest$ac_exeext; then 8412 8413lt_aix_libpath_sed=' 8414 /Import File Strings/,/^$/ { 8415 /^0/ { 8416 s/^0 *\(.*\)$/\1/ 8417 p 8418 } 8419 }' 8420aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8421# Check for a 64-bit object if we didn't find anything. 8422if test -z "$aix_libpath"; then 8423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8424fi 8425else 8426 echo "$as_me: failed program was:" >&5 8427sed 's/^/| /' conftest.$ac_ext >&5 8428 8429 8430fi 8431 8432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8433 conftest$ac_exeext conftest.$ac_ext 8434if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8435 8436 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8437 # Warning - without using the other run time loading flags, 8438 # -berok will link without error, but may produce a broken library. 8439 no_undefined_flag=' ${wl}-bernotok' 8440 allow_undefined_flag=' ${wl}-berok' 8441 # Exported symbols can be pulled into shared objects from archives 8442 whole_archive_flag_spec='$convenience' 8443 archive_cmds_need_lc=yes 8444 # This is similar to how AIX traditionally builds its shared libraries. 8445 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' 8446 fi 8447 fi 8448 ;; 8449 8450 amigaos*) 8451 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)' 8452 hardcode_libdir_flag_spec='-L$libdir' 8453 hardcode_minus_L=yes 8454 # see comment about different semantics on the GNU ld section 8455 ld_shlibs=no 8456 ;; 8457 8458 bsdi[45]*) 8459 export_dynamic_flag_spec=-rdynamic 8460 ;; 8461 8462 cygwin* | mingw* | pw32*) 8463 # When not using gcc, we currently assume that we are using 8464 # Microsoft Visual C++. 8465 # hardcode_libdir_flag_spec is actually meaningless, as there is 8466 # no search path for DLLs. 8467 hardcode_libdir_flag_spec=' ' 8468 allow_undefined_flag=unsupported 8469 # Tell ltmain to make .lib files, not .a files. 8470 libext=lib 8471 # Tell ltmain to make .dll files, not .so files. 8472 shrext_cmds=".dll" 8473 # FIXME: Setting linknames here is a bad hack. 8474 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8475 # The linker will automatically build a .lib file if we build a DLL. 8476 old_archive_From_new_cmds='true' 8477 # FIXME: Should let the user specify the lib program. 8478 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8479 fix_srcfile_path='`cygpath -w "$srcfile"`' 8480 enable_shared_with_static_runtimes=yes 8481 ;; 8482 8483 darwin* | rhapsody*) 8484 case $host_os in 8485 rhapsody* | darwin1.[012]) 8486 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8487 ;; 8488 *) # Darwin 1.3 on 8489 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8490 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8491 else 8492 case ${MACOSX_DEPLOYMENT_TARGET} in 8493 10.[012]) 8494 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8495 ;; 8496 10.*) 8497 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8498 ;; 8499 esac 8500 fi 8501 ;; 8502 esac 8503 archive_cmds_need_lc=no 8504 hardcode_direct=no 8505 hardcode_automatic=yes 8506 hardcode_shlibpath_var=unsupported 8507 whole_archive_flag_spec='' 8508 link_all_deplibs=yes 8509 if test "$GCC" = yes ; then 8510 output_verbose_link_cmd='echo' 8511 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8512 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8513 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}" 8514 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}" 8515 else 8516 case $cc_basename in 8517 xlc*) 8518 output_verbose_link_cmd='echo' 8519 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8520 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8521 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8522 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}' 8523 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}' 8524 ;; 8525 *) 8526 ld_shlibs=no 8527 ;; 8528 esac 8529 fi 8530 ;; 8531 8532 dgux*) 8533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8534 hardcode_libdir_flag_spec='-L$libdir' 8535 hardcode_shlibpath_var=no 8536 ;; 8537 8538 freebsd1*) 8539 ld_shlibs=no 8540 ;; 8541 8542 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8543 # support. Future versions do this automatically, but an explicit c++rt0.o 8544 # does not break anything, and helps significantly (at the cost of a little 8545 # extra space). 8546 freebsd2.2*) 8547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8548 hardcode_libdir_flag_spec='-R$libdir' 8549 hardcode_direct=yes 8550 hardcode_shlibpath_var=no 8551 ;; 8552 8553 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8554 freebsd2*) 8555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8556 hardcode_direct=yes 8557 hardcode_minus_L=yes 8558 hardcode_shlibpath_var=no 8559 ;; 8560 8561 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8562 freebsd* | dragonfly*) 8563 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8564 hardcode_libdir_flag_spec='-R$libdir' 8565 hardcode_direct=yes 8566 hardcode_shlibpath_var=no 8567 ;; 8568 8569 hpux9*) 8570 if test "$GCC" = yes; then 8571 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' 8572 else 8573 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' 8574 fi 8575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8576 hardcode_libdir_separator=: 8577 hardcode_direct=yes 8578 8579 # hardcode_minus_L: Not really in the search PATH, 8580 # but as the default location of the library. 8581 hardcode_minus_L=yes 8582 export_dynamic_flag_spec='${wl}-E' 8583 ;; 8584 8585 hpux10*) 8586 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8587 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8588 else 8589 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8590 fi 8591 if test "$with_gnu_ld" = no; then 8592 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8593 hardcode_libdir_separator=: 8594 8595 hardcode_direct=yes 8596 export_dynamic_flag_spec='${wl}-E' 8597 8598 # hardcode_minus_L: Not really in the search PATH, 8599 # but as the default location of the library. 8600 hardcode_minus_L=yes 8601 fi 8602 ;; 8603 8604 hpux11*) 8605 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8606 case $host_cpu in 8607 hppa*64*) 8608 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8609 ;; 8610 ia64*) 8611 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8612 ;; 8613 *) 8614 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8615 ;; 8616 esac 8617 else 8618 case $host_cpu in 8619 hppa*64*) 8620 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8621 ;; 8622 ia64*) 8623 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8624 ;; 8625 *) 8626 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8627 ;; 8628 esac 8629 fi 8630 if test "$with_gnu_ld" = no; then 8631 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8632 hardcode_libdir_separator=: 8633 8634 case $host_cpu in 8635 hppa*64*|ia64*) 8636 hardcode_libdir_flag_spec_ld='+b $libdir' 8637 hardcode_direct=no 8638 hardcode_shlibpath_var=no 8639 ;; 8640 *) 8641 hardcode_direct=yes 8642 export_dynamic_flag_spec='${wl}-E' 8643 8644 # hardcode_minus_L: Not really in the search PATH, 8645 # but as the default location of the library. 8646 hardcode_minus_L=yes 8647 ;; 8648 esac 8649 fi 8650 ;; 8651 8652 irix5* | irix6* | nonstopux*) 8653 if test "$GCC" = yes; then 8654 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' 8655 else 8656 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' 8657 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8658 fi 8659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8660 hardcode_libdir_separator=: 8661 link_all_deplibs=yes 8662 ;; 8663 8664 netbsd* | netbsdelf*-gnu) 8665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8667 else 8668 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8669 fi 8670 hardcode_libdir_flag_spec='-R$libdir' 8671 hardcode_direct=yes 8672 hardcode_shlibpath_var=no 8673 ;; 8674 8675 newsos6) 8676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8677 hardcode_direct=yes 8678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8679 hardcode_libdir_separator=: 8680 hardcode_shlibpath_var=no 8681 ;; 8682 8683 openbsd*) 8684 if test -f /usr/libexec/ld.so; then 8685 hardcode_direct=yes 8686 hardcode_shlibpath_var=no 8687 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8688 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8689 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8690 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8691 export_dynamic_flag_spec='${wl}-E' 8692 else 8693 case $host_os in 8694 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8695 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8696 hardcode_libdir_flag_spec='-R$libdir' 8697 ;; 8698 *) 8699 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8700 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8701 ;; 8702 esac 8703 fi 8704 else 8705 ld_shlibs=no 8706 fi 8707 ;; 8708 8709 os2*) 8710 hardcode_libdir_flag_spec='-L$libdir' 8711 hardcode_minus_L=yes 8712 allow_undefined_flag=unsupported 8713 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' 8714 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8715 ;; 8716 8717 osf3*) 8718 if test "$GCC" = yes; then 8719 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8720 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' 8721 else 8722 allow_undefined_flag=' -expect_unresolved \*' 8723 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' 8724 fi 8725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8726 hardcode_libdir_separator=: 8727 ;; 8728 8729 osf4* | osf5*) # as osf3* with the addition of -msym flag 8730 if test "$GCC" = yes; then 8731 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8732 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' 8733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8734 else 8735 allow_undefined_flag=' -expect_unresolved \*' 8736 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' 8737 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8738 $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' 8739 8740 # Both c and cxx compiler support -rpath directly 8741 hardcode_libdir_flag_spec='-rpath $libdir' 8742 fi 8743 hardcode_libdir_separator=: 8744 ;; 8745 8746 solaris*) 8747 no_undefined_flag=' -z text' 8748 if test "$GCC" = yes; then 8749 wlarc='${wl}' 8750 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8751 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8752 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8753 else 8754 wlarc='' 8755 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8756 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8757 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8758 fi 8759 hardcode_libdir_flag_spec='-R$libdir' 8760 hardcode_shlibpath_var=no 8761 case $host_os in 8762 solaris2.[0-5] | solaris2.[0-5].*) ;; 8763 *) 8764 # The compiler driver will combine and reorder linker options, 8765 # but understands `-z linker_flag'. GCC discards it without `$wl', 8766 # but is careful enough not to reorder. 8767 # Supported since Solaris 2.6 (maybe 2.5.1?) 8768 if test "$GCC" = yes; then 8769 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8770 else 8771 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8772 fi 8773 ;; 8774 esac 8775 link_all_deplibs=yes 8776 ;; 8777 8778 sunos4*) 8779 if test "x$host_vendor" = xsequent; then 8780 # Use $CC to link under sequent, because it throws in some extra .o 8781 # files that make .init and .fini sections work. 8782 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8783 else 8784 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8785 fi 8786 hardcode_libdir_flag_spec='-L$libdir' 8787 hardcode_direct=yes 8788 hardcode_minus_L=yes 8789 hardcode_shlibpath_var=no 8790 ;; 8791 8792 sysv4) 8793 case $host_vendor in 8794 sni) 8795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8796 hardcode_direct=yes # is this really true??? 8797 ;; 8798 siemens) 8799 ## LD is ld it makes a PLAMLIB 8800 ## CC just makes a GrossModule. 8801 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8802 reload_cmds='$CC -r -o $output$reload_objs' 8803 hardcode_direct=no 8804 ;; 8805 motorola) 8806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8807 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8808 ;; 8809 esac 8810 runpath_var='LD_RUN_PATH' 8811 hardcode_shlibpath_var=no 8812 ;; 8813 8814 sysv4.3*) 8815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8816 hardcode_shlibpath_var=no 8817 export_dynamic_flag_spec='-Bexport' 8818 ;; 8819 8820 sysv4*MP*) 8821 if test -d /usr/nec; then 8822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8823 hardcode_shlibpath_var=no 8824 runpath_var=LD_RUN_PATH 8825 hardcode_runpath_var=yes 8826 ld_shlibs=yes 8827 fi 8828 ;; 8829 8830 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8831 no_undefined_flag='${wl}-z,text' 8832 archive_cmds_need_lc=no 8833 hardcode_shlibpath_var=no 8834 runpath_var='LD_RUN_PATH' 8835 8836 if test "$GCC" = yes; then 8837 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8838 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8839 else 8840 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8841 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8842 fi 8843 ;; 8844 8845 sysv5* | sco3.2v5* | sco5v6*) 8846 # Note: We can NOT use -z defs as we might desire, because we do not 8847 # link with -lc, and that would cause any symbols used from libc to 8848 # always be unresolved, which means just about no library would 8849 # ever link correctly. If we're not using GNU ld we use -z text 8850 # though, which does catch some bad symbols but isn't as heavy-handed 8851 # as -z defs. 8852 no_undefined_flag='${wl}-z,text' 8853 allow_undefined_flag='${wl}-z,nodefs' 8854 archive_cmds_need_lc=no 8855 hardcode_shlibpath_var=no 8856 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8857 hardcode_libdir_separator=':' 8858 link_all_deplibs=yes 8859 export_dynamic_flag_spec='${wl}-Bexport' 8860 runpath_var='LD_RUN_PATH' 8861 8862 if test "$GCC" = yes; then 8863 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8864 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8865 else 8866 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8867 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8868 fi 8869 ;; 8870 8871 uts4*) 8872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8873 hardcode_libdir_flag_spec='-L$libdir' 8874 hardcode_shlibpath_var=no 8875 ;; 8876 8877 *) 8878 ld_shlibs=no 8879 ;; 8880 esac 8881 fi 8882 8883{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8884echo "${ECHO_T}$ld_shlibs" >&6; } 8885test "$ld_shlibs" = no && can_build_shared=no 8886 8887# 8888# Do we need to explicitly link libc? 8889# 8890case "x$archive_cmds_need_lc" in 8891x|xyes) 8892 # Assume -lc should be added 8893 archive_cmds_need_lc=yes 8894 8895 if test "$enable_shared" = yes && test "$GCC" = yes; then 8896 case $archive_cmds in 8897 *'~'*) 8898 # FIXME: we may have to deal with multi-command sequences. 8899 ;; 8900 '$CC '*) 8901 # Test whether the compiler implicitly links with -lc since on some 8902 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8903 # to ld, don't add -lc before -lgcc. 8904 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8905echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8906 $rm conftest* 8907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8908 8909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8910 (eval $ac_compile) 2>&5 8911 ac_status=$? 8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8913 (exit $ac_status); } 2>conftest.err; then 8914 soname=conftest 8915 lib=conftest 8916 libobjs=conftest.$ac_objext 8917 deplibs= 8918 wl=$lt_prog_compiler_wl 8919 pic_flag=$lt_prog_compiler_pic 8920 compiler_flags=-v 8921 linker_flags=-v 8922 verstring= 8923 output_objdir=. 8924 libname=conftest 8925 lt_save_allow_undefined_flag=$allow_undefined_flag 8926 allow_undefined_flag= 8927 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8928 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8929 ac_status=$? 8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8931 (exit $ac_status); } 8932 then 8933 archive_cmds_need_lc=no 8934 else 8935 archive_cmds_need_lc=yes 8936 fi 8937 allow_undefined_flag=$lt_save_allow_undefined_flag 8938 else 8939 cat conftest.err 1>&5 8940 fi 8941 $rm conftest* 8942 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8943echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8944 ;; 8945 esac 8946 fi 8947 ;; 8948esac 8949 8950{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8951echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8952library_names_spec= 8953libname_spec='lib$name' 8954soname_spec= 8955shrext_cmds=".so" 8956postinstall_cmds= 8957postuninstall_cmds= 8958finish_cmds= 8959finish_eval= 8960shlibpath_var= 8961shlibpath_overrides_runpath=unknown 8962version_type=none 8963dynamic_linker="$host_os ld.so" 8964sys_lib_dlsearch_path_spec="/lib /usr/lib" 8965 8966if test "$GCC" = yes; then 8967 case $host_os in 8968 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8969 *) lt_awk_arg="/^libraries:/" ;; 8970 esac 8971 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8972 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 8973 # if the path contains ";" then we assume it to be the separator 8974 # otherwise default to the standard path separator (i.e. ":") - it is 8975 # assumed that no part of a normal pathname contains ";" but that should 8976 # okay in the real world where ";" in dirpaths is itself problematic. 8977 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8978 else 8979 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8980 fi 8981 # Ok, now we have the path, separated by spaces, we can step through it 8982 # and add multilib dir if necessary. 8983 lt_tmp_lt_search_path_spec= 8984 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8985 for lt_sys_path in $lt_search_path_spec; do 8986 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8987 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8988 else 8989 test -d "$lt_sys_path" && \ 8990 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8991 fi 8992 done 8993 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 8994BEGIN {RS=" "; FS="/|\n";} { 8995 lt_foo=""; 8996 lt_count=0; 8997 for (lt_i = NF; lt_i > 0; lt_i--) { 8998 if ($lt_i != "" && $lt_i != ".") { 8999 if ($lt_i == "..") { 9000 lt_count++; 9001 } else { 9002 if (lt_count == 0) { 9003 lt_foo="/" $lt_i lt_foo; 9004 } else { 9005 lt_count--; 9006 } 9007 } 9008 } 9009 } 9010 if (lt_foo != "") { lt_freq[lt_foo]++; } 9011 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9012}'` 9013 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9014else 9015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9016fi 9017need_lib_prefix=unknown 9018hardcode_into_libs=no 9019 9020# when you set need_version to no, make sure it does not cause -set_version 9021# flags to be left without arguments 9022need_version=unknown 9023 9024case $host_os in 9025aix3*) 9026 version_type=linux 9027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9028 shlibpath_var=LIBPATH 9029 9030 # AIX 3 has no versioning support, so we append a major version to the name. 9031 soname_spec='${libname}${release}${shared_ext}$major' 9032 ;; 9033 9034aix[4-9]*) 9035 version_type=linux 9036 need_lib_prefix=no 9037 need_version=no 9038 hardcode_into_libs=yes 9039 if test "$host_cpu" = ia64; then 9040 # AIX 5 supports IA64 9041 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9042 shlibpath_var=LD_LIBRARY_PATH 9043 else 9044 # With GCC up to 2.95.x, collect2 would create an import file 9045 # for dependence libraries. The import file would start with 9046 # the line `#! .'. This would cause the generated library to 9047 # depend on `.', always an invalid library. This was fixed in 9048 # development snapshots of GCC prior to 3.0. 9049 case $host_os in 9050 aix4 | aix4.[01] | aix4.[01].*) 9051 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9052 echo ' yes ' 9053 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9054 : 9055 else 9056 can_build_shared=no 9057 fi 9058 ;; 9059 esac 9060 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9061 # soname into executable. Probably we can add versioning support to 9062 # collect2, so additional links can be useful in future. 9063 if test "$aix_use_runtimelinking" = yes; then 9064 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9065 # instead of lib<name>.a to let people know that these are not 9066 # typical AIX shared libraries. 9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9068 else 9069 # We preserve .a as extension for shared libraries through AIX4.2 9070 # and later when we are not doing run time linking. 9071 library_names_spec='${libname}${release}.a $libname.a' 9072 soname_spec='${libname}${release}${shared_ext}$major' 9073 fi 9074 shlibpath_var=LIBPATH 9075 fi 9076 ;; 9077 9078amigaos*) 9079 library_names_spec='$libname.ixlibrary $libname.a' 9080 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9081 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' 9082 ;; 9083 9084beos*) 9085 library_names_spec='${libname}${shared_ext}' 9086 dynamic_linker="$host_os ld.so" 9087 shlibpath_var=LIBRARY_PATH 9088 ;; 9089 9090bsdi[45]*) 9091 version_type=linux 9092 need_version=no 9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9094 soname_spec='${libname}${release}${shared_ext}$major' 9095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9096 shlibpath_var=LD_LIBRARY_PATH 9097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9099 # the default ld.so.conf also contains /usr/contrib/lib and 9100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9101 # libtool to hard-code these into programs 9102 ;; 9103 9104cygwin* | mingw* | pw32*) 9105 version_type=windows 9106 shrext_cmds=".dll" 9107 need_version=no 9108 need_lib_prefix=no 9109 9110 case $GCC,$host_os in 9111 yes,cygwin* | yes,mingw* | yes,pw32*) 9112 library_names_spec='$libname.dll.a' 9113 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9114 postinstall_cmds='base_file=`basename \${file}`~ 9115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9116 dldir=$destdir/`dirname \$dlpath`~ 9117 test -d \$dldir || mkdir -p \$dldir~ 9118 $install_prog $dir/$dlname \$dldir/$dlname~ 9119 chmod a+x \$dldir/$dlname' 9120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9121 dlpath=$dir/\$dldll~ 9122 $rm \$dlpath' 9123 shlibpath_overrides_runpath=yes 9124 9125 case $host_os in 9126 cygwin*) 9127 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9129 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9130 ;; 9131 mingw*) 9132 # MinGW DLLs use traditional 'lib' prefix 9133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9134 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9135 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9136 # It is most probably a Windows format PATH printed by 9137 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9138 # path with ; separators, and with drive letters. We can handle the 9139 # drive letters (cygwin fileutils understands them), so leave them, 9140 # especially as we might pass files found there to a mingw objdump, 9141 # which wouldn't understand a cygwinified path. Ahh. 9142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9143 else 9144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9145 fi 9146 ;; 9147 pw32*) 9148 # pw32 DLLs use 'pw' prefix rather than 'lib' 9149 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9150 ;; 9151 esac 9152 ;; 9153 9154 *) 9155 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9156 ;; 9157 esac 9158 dynamic_linker='Win32 ld.exe' 9159 # FIXME: first we should search . and the directory the executable is in 9160 shlibpath_var=PATH 9161 ;; 9162 9163darwin* | rhapsody*) 9164 dynamic_linker="$host_os dyld" 9165 version_type=darwin 9166 need_lib_prefix=no 9167 need_version=no 9168 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9169 soname_spec='${libname}${release}${major}$shared_ext' 9170 shlibpath_overrides_runpath=yes 9171 shlibpath_var=DYLD_LIBRARY_PATH 9172 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9173 9174 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9175 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9176 ;; 9177 9178dgux*) 9179 version_type=linux 9180 need_lib_prefix=no 9181 need_version=no 9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9183 soname_spec='${libname}${release}${shared_ext}$major' 9184 shlibpath_var=LD_LIBRARY_PATH 9185 ;; 9186 9187freebsd1*) 9188 dynamic_linker=no 9189 ;; 9190 9191freebsd* | dragonfly*) 9192 # DragonFly does not have aout. When/if they implement a new 9193 # versioning mechanism, adjust this. 9194 if test -x /usr/bin/objformat; then 9195 objformat=`/usr/bin/objformat` 9196 else 9197 case $host_os in 9198 freebsd[123]*) objformat=aout ;; 9199 *) objformat=elf ;; 9200 esac 9201 fi 9202 version_type=freebsd-$objformat 9203 case $version_type in 9204 freebsd-elf*) 9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9206 need_version=no 9207 need_lib_prefix=no 9208 ;; 9209 freebsd-*) 9210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9211 need_version=yes 9212 ;; 9213 esac 9214 shlibpath_var=LD_LIBRARY_PATH 9215 case $host_os in 9216 freebsd2*) 9217 shlibpath_overrides_runpath=yes 9218 ;; 9219 freebsd3.[01]* | freebsdelf3.[01]*) 9220 shlibpath_overrides_runpath=yes 9221 hardcode_into_libs=yes 9222 ;; 9223 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9224 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9225 shlibpath_overrides_runpath=no 9226 hardcode_into_libs=yes 9227 ;; 9228 *) # from 4.6 on, and DragonFly 9229 shlibpath_overrides_runpath=yes 9230 hardcode_into_libs=yes 9231 ;; 9232 esac 9233 ;; 9234 9235gnu*) 9236 version_type=linux 9237 need_lib_prefix=no 9238 need_version=no 9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9240 soname_spec='${libname}${release}${shared_ext}$major' 9241 shlibpath_var=LD_LIBRARY_PATH 9242 hardcode_into_libs=yes 9243 ;; 9244 9245hpux9* | hpux10* | hpux11*) 9246 # Give a soname corresponding to the major version so that dld.sl refuses to 9247 # link against other versions. 9248 version_type=sunos 9249 need_lib_prefix=no 9250 need_version=no 9251 case $host_cpu in 9252 ia64*) 9253 shrext_cmds='.so' 9254 hardcode_into_libs=yes 9255 dynamic_linker="$host_os dld.so" 9256 shlibpath_var=LD_LIBRARY_PATH 9257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9259 soname_spec='${libname}${release}${shared_ext}$major' 9260 if test "X$HPUX_IA64_MODE" = X32; then 9261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9262 else 9263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9264 fi 9265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9266 ;; 9267 hppa*64*) 9268 shrext_cmds='.sl' 9269 hardcode_into_libs=yes 9270 dynamic_linker="$host_os dld.sl" 9271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9274 soname_spec='${libname}${release}${shared_ext}$major' 9275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9277 ;; 9278 *) 9279 shrext_cmds='.sl' 9280 dynamic_linker="$host_os dld.sl" 9281 shlibpath_var=SHLIB_PATH 9282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9284 soname_spec='${libname}${release}${shared_ext}$major' 9285 ;; 9286 esac 9287 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9288 postinstall_cmds='chmod 555 $lib' 9289 ;; 9290 9291interix[3-9]*) 9292 version_type=linux 9293 need_lib_prefix=no 9294 need_version=no 9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9296 soname_spec='${libname}${release}${shared_ext}$major' 9297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9298 shlibpath_var=LD_LIBRARY_PATH 9299 shlibpath_overrides_runpath=no 9300 hardcode_into_libs=yes 9301 ;; 9302 9303irix5* | irix6* | nonstopux*) 9304 case $host_os in 9305 nonstopux*) version_type=nonstopux ;; 9306 *) 9307 if test "$lt_cv_prog_gnu_ld" = yes; then 9308 version_type=linux 9309 else 9310 version_type=irix 9311 fi ;; 9312 esac 9313 need_lib_prefix=no 9314 need_version=no 9315 soname_spec='${libname}${release}${shared_ext}$major' 9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9317 case $host_os in 9318 irix5* | nonstopux*) 9319 libsuff= shlibsuff= 9320 ;; 9321 *) 9322 case $LD in # libtool.m4 will add one of these switches to LD 9323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9324 libsuff= shlibsuff= libmagic=32-bit;; 9325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9326 libsuff=32 shlibsuff=N32 libmagic=N32;; 9327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9328 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9329 *) libsuff= shlibsuff= libmagic=never-match;; 9330 esac 9331 ;; 9332 esac 9333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9334 shlibpath_overrides_runpath=no 9335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9337 hardcode_into_libs=yes 9338 ;; 9339 9340# No shared lib support for Linux oldld, aout, or coff. 9341linux*oldld* | linux*aout* | linux*coff*) 9342 dynamic_linker=no 9343 ;; 9344 9345# This must be Linux ELF. 9346linux* | k*bsd*-gnu) 9347 version_type=linux 9348 need_lib_prefix=no 9349 need_version=no 9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9351 soname_spec='${libname}${release}${shared_ext}$major' 9352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9353 shlibpath_var=LD_LIBRARY_PATH 9354 shlibpath_overrides_runpath=no 9355 # This implies no fast_install, which is unacceptable. 9356 # Some rework will be needed to allow for fast_install 9357 # before this can be enabled. 9358 hardcode_into_libs=yes 9359 9360 # Append ld.so.conf contents to the search path 9361 if test -f /etc/ld.so.conf; then 9362 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' ' '` 9363 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9364 fi 9365 9366 # We used to test for /lib/ld.so.1 and disable shared libraries on 9367 # powerpc, because MkLinux only supported shared libraries with the 9368 # GNU dynamic linker. Since this was broken with cross compilers, 9369 # most powerpc-linux boxes support dynamic linking these days and 9370 # people can always --disable-shared, the test was removed, and we 9371 # assume the GNU/Linux dynamic linker is in use. 9372 dynamic_linker='GNU/Linux ld.so' 9373 ;; 9374 9375netbsdelf*-gnu) 9376 version_type=linux 9377 need_lib_prefix=no 9378 need_version=no 9379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9380 soname_spec='${libname}${release}${shared_ext}$major' 9381 shlibpath_var=LD_LIBRARY_PATH 9382 shlibpath_overrides_runpath=no 9383 hardcode_into_libs=yes 9384 dynamic_linker='NetBSD ld.elf_so' 9385 ;; 9386 9387netbsd*) 9388 version_type=sunos 9389 need_lib_prefix=no 9390 need_version=no 9391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9394 dynamic_linker='NetBSD (a.out) ld.so' 9395 else 9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9397 soname_spec='${libname}${release}${shared_ext}$major' 9398 dynamic_linker='NetBSD ld.elf_so' 9399 fi 9400 shlibpath_var=LD_LIBRARY_PATH 9401 shlibpath_overrides_runpath=yes 9402 hardcode_into_libs=yes 9403 ;; 9404 9405newsos6) 9406 version_type=linux 9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9408 shlibpath_var=LD_LIBRARY_PATH 9409 shlibpath_overrides_runpath=yes 9410 ;; 9411 9412nto-qnx*) 9413 version_type=linux 9414 need_lib_prefix=no 9415 need_version=no 9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9417 soname_spec='${libname}${release}${shared_ext}$major' 9418 shlibpath_var=LD_LIBRARY_PATH 9419 shlibpath_overrides_runpath=yes 9420 ;; 9421 9422openbsd*) 9423 version_type=sunos 9424 sys_lib_dlsearch_path_spec="/usr/lib" 9425 need_lib_prefix=no 9426 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9427 case $host_os in 9428 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9429 *) need_version=no ;; 9430 esac 9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9433 shlibpath_var=LD_LIBRARY_PATH 9434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9435 case $host_os in 9436 openbsd2.[89] | openbsd2.[89].*) 9437 shlibpath_overrides_runpath=no 9438 ;; 9439 *) 9440 shlibpath_overrides_runpath=yes 9441 ;; 9442 esac 9443 else 9444 shlibpath_overrides_runpath=yes 9445 fi 9446 ;; 9447 9448os2*) 9449 libname_spec='$name' 9450 shrext_cmds=".dll" 9451 need_lib_prefix=no 9452 library_names_spec='$libname${shared_ext} $libname.a' 9453 dynamic_linker='OS/2 ld.exe' 9454 shlibpath_var=LIBPATH 9455 ;; 9456 9457osf3* | osf4* | osf5*) 9458 version_type=osf 9459 need_lib_prefix=no 9460 need_version=no 9461 soname_spec='${libname}${release}${shared_ext}$major' 9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9463 shlibpath_var=LD_LIBRARY_PATH 9464 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9465 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9466 ;; 9467 9468rdos*) 9469 dynamic_linker=no 9470 ;; 9471 9472solaris*) 9473 version_type=linux 9474 need_lib_prefix=no 9475 need_version=no 9476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9477 soname_spec='${libname}${release}${shared_ext}$major' 9478 shlibpath_var=LD_LIBRARY_PATH 9479 shlibpath_overrides_runpath=yes 9480 hardcode_into_libs=yes 9481 # ldd complains unless libraries are executable 9482 postinstall_cmds='chmod +x $lib' 9483 ;; 9484 9485sunos4*) 9486 version_type=sunos 9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9489 shlibpath_var=LD_LIBRARY_PATH 9490 shlibpath_overrides_runpath=yes 9491 if test "$with_gnu_ld" = yes; then 9492 need_lib_prefix=no 9493 fi 9494 need_version=yes 9495 ;; 9496 9497sysv4 | sysv4.3*) 9498 version_type=linux 9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9500 soname_spec='${libname}${release}${shared_ext}$major' 9501 shlibpath_var=LD_LIBRARY_PATH 9502 case $host_vendor in 9503 sni) 9504 shlibpath_overrides_runpath=no 9505 need_lib_prefix=no 9506 export_dynamic_flag_spec='${wl}-Blargedynsym' 9507 runpath_var=LD_RUN_PATH 9508 ;; 9509 siemens) 9510 need_lib_prefix=no 9511 ;; 9512 motorola) 9513 need_lib_prefix=no 9514 need_version=no 9515 shlibpath_overrides_runpath=no 9516 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9517 ;; 9518 esac 9519 ;; 9520 9521sysv4*MP*) 9522 if test -d /usr/nec ;then 9523 version_type=linux 9524 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9525 soname_spec='$libname${shared_ext}.$major' 9526 shlibpath_var=LD_LIBRARY_PATH 9527 fi 9528 ;; 9529 9530sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9531 version_type=freebsd-elf 9532 need_lib_prefix=no 9533 need_version=no 9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9535 soname_spec='${libname}${release}${shared_ext}$major' 9536 shlibpath_var=LD_LIBRARY_PATH 9537 hardcode_into_libs=yes 9538 if test "$with_gnu_ld" = yes; then 9539 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9540 shlibpath_overrides_runpath=no 9541 else 9542 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9543 shlibpath_overrides_runpath=yes 9544 case $host_os in 9545 sco3.2v5*) 9546 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9547 ;; 9548 esac 9549 fi 9550 sys_lib_dlsearch_path_spec='/usr/lib' 9551 ;; 9552 9553uts4*) 9554 version_type=linux 9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9556 soname_spec='${libname}${release}${shared_ext}$major' 9557 shlibpath_var=LD_LIBRARY_PATH 9558 ;; 9559 9560*) 9561 dynamic_linker=no 9562 ;; 9563esac 9564{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9565echo "${ECHO_T}$dynamic_linker" >&6; } 9566test "$dynamic_linker" = no && can_build_shared=no 9567 9568if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9569 echo $ECHO_N "(cached) $ECHO_C" >&6 9570else 9571 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9572fi 9573 9574sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9575if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9576 echo $ECHO_N "(cached) $ECHO_C" >&6 9577else 9578 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9579fi 9580 9581sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9582 9583variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9584if test "$GCC" = yes; then 9585 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9586fi 9587 9588{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9589echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9590hardcode_action= 9591if test -n "$hardcode_libdir_flag_spec" || \ 9592 test -n "$runpath_var" || \ 9593 test "X$hardcode_automatic" = "Xyes" ; then 9594 9595 # We can hardcode non-existant directories. 9596 if test "$hardcode_direct" != no && 9597 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9598 # have to relink, otherwise we might link with an installed library 9599 # when we should be linking with a yet-to-be-installed one 9600 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9601 test "$hardcode_minus_L" != no; then 9602 # Linking always hardcodes the temporary library directory. 9603 hardcode_action=relink 9604 else 9605 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9606 hardcode_action=immediate 9607 fi 9608else 9609 # We cannot hardcode anything, or else we can only hardcode existing 9610 # directories. 9611 hardcode_action=unsupported 9612fi 9613{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9614echo "${ECHO_T}$hardcode_action" >&6; } 9615 9616if test "$hardcode_action" = relink; then 9617 # Fast installation is not supported 9618 enable_fast_install=no 9619elif test "$shlibpath_overrides_runpath" = yes || 9620 test "$enable_shared" = no; then 9621 # Fast installation is not necessary 9622 enable_fast_install=needless 9623fi 9624 9625striplib= 9626old_striplib= 9627{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9628echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9629if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9630 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9631 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9632 { echo "$as_me:$LINENO: result: yes" >&5 9633echo "${ECHO_T}yes" >&6; } 9634else 9635# FIXME - insert some real tests, host_os isn't really good enough 9636 case $host_os in 9637 darwin*) 9638 if test -n "$STRIP" ; then 9639 striplib="$STRIP -x" 9640 old_striplib="$STRIP -S" 9641 { echo "$as_me:$LINENO: result: yes" >&5 9642echo "${ECHO_T}yes" >&6; } 9643 else 9644 { echo "$as_me:$LINENO: result: no" >&5 9645echo "${ECHO_T}no" >&6; } 9646fi 9647 ;; 9648 *) 9649 { echo "$as_me:$LINENO: result: no" >&5 9650echo "${ECHO_T}no" >&6; } 9651 ;; 9652 esac 9653fi 9654 9655if test "x$enable_dlopen" != xyes; then 9656 enable_dlopen=unknown 9657 enable_dlopen_self=unknown 9658 enable_dlopen_self_static=unknown 9659else 9660 lt_cv_dlopen=no 9661 lt_cv_dlopen_libs= 9662 9663 case $host_os in 9664 beos*) 9665 lt_cv_dlopen="load_add_on" 9666 lt_cv_dlopen_libs= 9667 lt_cv_dlopen_self=yes 9668 ;; 9669 9670 mingw* | pw32*) 9671 lt_cv_dlopen="LoadLibrary" 9672 lt_cv_dlopen_libs= 9673 ;; 9674 9675 cygwin*) 9676 lt_cv_dlopen="dlopen" 9677 lt_cv_dlopen_libs= 9678 ;; 9679 9680 darwin*) 9681 # if libdl is installed we need to link against it 9682 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9683echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9684if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9685 echo $ECHO_N "(cached) $ECHO_C" >&6 9686else 9687 ac_check_lib_save_LIBS=$LIBS 9688LIBS="-ldl $LIBS" 9689cat >conftest.$ac_ext <<_ACEOF 9690/* confdefs.h. */ 9691_ACEOF 9692cat confdefs.h >>conftest.$ac_ext 9693cat >>conftest.$ac_ext <<_ACEOF 9694/* end confdefs.h. */ 9695 9696/* Override any GCC internal prototype to avoid an error. 9697 Use char because int might match the return type of a GCC 9698 builtin and then its argument prototype would still apply. */ 9699#ifdef __cplusplus 9700extern "C" 9701#endif 9702char dlopen (); 9703int 9704main () 9705{ 9706return dlopen (); 9707 ; 9708 return 0; 9709} 9710_ACEOF 9711rm -f conftest.$ac_objext conftest$ac_exeext 9712if { (ac_try="$ac_link" 9713case "(($ac_try" in 9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9715 *) ac_try_echo=$ac_try;; 9716esac 9717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9718 (eval "$ac_link") 2>conftest.er1 9719 ac_status=$? 9720 grep -v '^ *+' conftest.er1 >conftest.err 9721 rm -f conftest.er1 9722 cat conftest.err >&5 9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9724 (exit $ac_status); } && { 9725 test -z "$ac_c_werror_flag" || 9726 test ! -s conftest.err 9727 } && test -s conftest$ac_exeext && 9728 $as_test_x conftest$ac_exeext; then 9729 ac_cv_lib_dl_dlopen=yes 9730else 9731 echo "$as_me: failed program was:" >&5 9732sed 's/^/| /' conftest.$ac_ext >&5 9733 9734 ac_cv_lib_dl_dlopen=no 9735fi 9736 9737rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9738 conftest$ac_exeext conftest.$ac_ext 9739LIBS=$ac_check_lib_save_LIBS 9740fi 9741{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9742echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9743if test $ac_cv_lib_dl_dlopen = yes; then 9744 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9745else 9746 9747 lt_cv_dlopen="dyld" 9748 lt_cv_dlopen_libs= 9749 lt_cv_dlopen_self=yes 9750 9751fi 9752 9753 ;; 9754 9755 *) 9756 { echo "$as_me:$LINENO: checking for shl_load" >&5 9757echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9758if test "${ac_cv_func_shl_load+set}" = set; then 9759 echo $ECHO_N "(cached) $ECHO_C" >&6 9760else 9761 cat >conftest.$ac_ext <<_ACEOF 9762/* confdefs.h. */ 9763_ACEOF 9764cat confdefs.h >>conftest.$ac_ext 9765cat >>conftest.$ac_ext <<_ACEOF 9766/* end confdefs.h. */ 9767/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9768 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9769#define shl_load innocuous_shl_load 9770 9771/* System header to define __stub macros and hopefully few prototypes, 9772 which can conflict with char shl_load (); below. 9773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9774 <limits.h> exists even on freestanding compilers. */ 9775 9776#ifdef __STDC__ 9777# include <limits.h> 9778#else 9779# include <assert.h> 9780#endif 9781 9782#undef shl_load 9783 9784/* Override any GCC internal prototype to avoid an error. 9785 Use char because int might match the return type of a GCC 9786 builtin and then its argument prototype would still apply. */ 9787#ifdef __cplusplus 9788extern "C" 9789#endif 9790char shl_load (); 9791/* The GNU C library defines this for functions which it implements 9792 to always fail with ENOSYS. Some functions are actually named 9793 something starting with __ and the normal name is an alias. */ 9794#if defined __stub_shl_load || defined __stub___shl_load 9795choke me 9796#endif 9797 9798int 9799main () 9800{ 9801return shl_load (); 9802 ; 9803 return 0; 9804} 9805_ACEOF 9806rm -f conftest.$ac_objext conftest$ac_exeext 9807if { (ac_try="$ac_link" 9808case "(($ac_try" in 9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9810 *) ac_try_echo=$ac_try;; 9811esac 9812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9813 (eval "$ac_link") 2>conftest.er1 9814 ac_status=$? 9815 grep -v '^ *+' conftest.er1 >conftest.err 9816 rm -f conftest.er1 9817 cat conftest.err >&5 9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9819 (exit $ac_status); } && { 9820 test -z "$ac_c_werror_flag" || 9821 test ! -s conftest.err 9822 } && test -s conftest$ac_exeext && 9823 $as_test_x conftest$ac_exeext; then 9824 ac_cv_func_shl_load=yes 9825else 9826 echo "$as_me: failed program was:" >&5 9827sed 's/^/| /' conftest.$ac_ext >&5 9828 9829 ac_cv_func_shl_load=no 9830fi 9831 9832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9833 conftest$ac_exeext conftest.$ac_ext 9834fi 9835{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9836echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9837if test $ac_cv_func_shl_load = yes; then 9838 lt_cv_dlopen="shl_load" 9839else 9840 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9841echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9842if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9843 echo $ECHO_N "(cached) $ECHO_C" >&6 9844else 9845 ac_check_lib_save_LIBS=$LIBS 9846LIBS="-ldld $LIBS" 9847cat >conftest.$ac_ext <<_ACEOF 9848/* confdefs.h. */ 9849_ACEOF 9850cat confdefs.h >>conftest.$ac_ext 9851cat >>conftest.$ac_ext <<_ACEOF 9852/* end confdefs.h. */ 9853 9854/* Override any GCC internal prototype to avoid an error. 9855 Use char because int might match the return type of a GCC 9856 builtin and then its argument prototype would still apply. */ 9857#ifdef __cplusplus 9858extern "C" 9859#endif 9860char shl_load (); 9861int 9862main () 9863{ 9864return shl_load (); 9865 ; 9866 return 0; 9867} 9868_ACEOF 9869rm -f conftest.$ac_objext conftest$ac_exeext 9870if { (ac_try="$ac_link" 9871case "(($ac_try" in 9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9873 *) ac_try_echo=$ac_try;; 9874esac 9875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9876 (eval "$ac_link") 2>conftest.er1 9877 ac_status=$? 9878 grep -v '^ *+' conftest.er1 >conftest.err 9879 rm -f conftest.er1 9880 cat conftest.err >&5 9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9882 (exit $ac_status); } && { 9883 test -z "$ac_c_werror_flag" || 9884 test ! -s conftest.err 9885 } && test -s conftest$ac_exeext && 9886 $as_test_x conftest$ac_exeext; then 9887 ac_cv_lib_dld_shl_load=yes 9888else 9889 echo "$as_me: failed program was:" >&5 9890sed 's/^/| /' conftest.$ac_ext >&5 9891 9892 ac_cv_lib_dld_shl_load=no 9893fi 9894 9895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9896 conftest$ac_exeext conftest.$ac_ext 9897LIBS=$ac_check_lib_save_LIBS 9898fi 9899{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9900echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9901if test $ac_cv_lib_dld_shl_load = yes; then 9902 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9903else 9904 { echo "$as_me:$LINENO: checking for dlopen" >&5 9905echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9906if test "${ac_cv_func_dlopen+set}" = set; then 9907 echo $ECHO_N "(cached) $ECHO_C" >&6 9908else 9909 cat >conftest.$ac_ext <<_ACEOF 9910/* confdefs.h. */ 9911_ACEOF 9912cat confdefs.h >>conftest.$ac_ext 9913cat >>conftest.$ac_ext <<_ACEOF 9914/* end confdefs.h. */ 9915/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9916 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9917#define dlopen innocuous_dlopen 9918 9919/* System header to define __stub macros and hopefully few prototypes, 9920 which can conflict with char dlopen (); below. 9921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9922 <limits.h> exists even on freestanding compilers. */ 9923 9924#ifdef __STDC__ 9925# include <limits.h> 9926#else 9927# include <assert.h> 9928#endif 9929 9930#undef dlopen 9931 9932/* Override any GCC internal prototype to avoid an error. 9933 Use char because int might match the return type of a GCC 9934 builtin and then its argument prototype would still apply. */ 9935#ifdef __cplusplus 9936extern "C" 9937#endif 9938char dlopen (); 9939/* The GNU C library defines this for functions which it implements 9940 to always fail with ENOSYS. Some functions are actually named 9941 something starting with __ and the normal name is an alias. */ 9942#if defined __stub_dlopen || defined __stub___dlopen 9943choke me 9944#endif 9945 9946int 9947main () 9948{ 9949return dlopen (); 9950 ; 9951 return 0; 9952} 9953_ACEOF 9954rm -f conftest.$ac_objext conftest$ac_exeext 9955if { (ac_try="$ac_link" 9956case "(($ac_try" in 9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9958 *) ac_try_echo=$ac_try;; 9959esac 9960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9961 (eval "$ac_link") 2>conftest.er1 9962 ac_status=$? 9963 grep -v '^ *+' conftest.er1 >conftest.err 9964 rm -f conftest.er1 9965 cat conftest.err >&5 9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9967 (exit $ac_status); } && { 9968 test -z "$ac_c_werror_flag" || 9969 test ! -s conftest.err 9970 } && test -s conftest$ac_exeext && 9971 $as_test_x conftest$ac_exeext; then 9972 ac_cv_func_dlopen=yes 9973else 9974 echo "$as_me: failed program was:" >&5 9975sed 's/^/| /' conftest.$ac_ext >&5 9976 9977 ac_cv_func_dlopen=no 9978fi 9979 9980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9981 conftest$ac_exeext conftest.$ac_ext 9982fi 9983{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9984echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9985if test $ac_cv_func_dlopen = yes; then 9986 lt_cv_dlopen="dlopen" 9987else 9988 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9989echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9990if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9991 echo $ECHO_N "(cached) $ECHO_C" >&6 9992else 9993 ac_check_lib_save_LIBS=$LIBS 9994LIBS="-ldl $LIBS" 9995cat >conftest.$ac_ext <<_ACEOF 9996/* confdefs.h. */ 9997_ACEOF 9998cat confdefs.h >>conftest.$ac_ext 9999cat >>conftest.$ac_ext <<_ACEOF 10000/* end confdefs.h. */ 10001 10002/* Override any GCC internal prototype to avoid an error. 10003 Use char because int might match the return type of a GCC 10004 builtin and then its argument prototype would still apply. */ 10005#ifdef __cplusplus 10006extern "C" 10007#endif 10008char dlopen (); 10009int 10010main () 10011{ 10012return dlopen (); 10013 ; 10014 return 0; 10015} 10016_ACEOF 10017rm -f conftest.$ac_objext conftest$ac_exeext 10018if { (ac_try="$ac_link" 10019case "(($ac_try" in 10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10021 *) ac_try_echo=$ac_try;; 10022esac 10023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10024 (eval "$ac_link") 2>conftest.er1 10025 ac_status=$? 10026 grep -v '^ *+' conftest.er1 >conftest.err 10027 rm -f conftest.er1 10028 cat conftest.err >&5 10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10030 (exit $ac_status); } && { 10031 test -z "$ac_c_werror_flag" || 10032 test ! -s conftest.err 10033 } && test -s conftest$ac_exeext && 10034 $as_test_x conftest$ac_exeext; then 10035 ac_cv_lib_dl_dlopen=yes 10036else 10037 echo "$as_me: failed program was:" >&5 10038sed 's/^/| /' conftest.$ac_ext >&5 10039 10040 ac_cv_lib_dl_dlopen=no 10041fi 10042 10043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10044 conftest$ac_exeext conftest.$ac_ext 10045LIBS=$ac_check_lib_save_LIBS 10046fi 10047{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10048echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10049if test $ac_cv_lib_dl_dlopen = yes; then 10050 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10051else 10052 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10053echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10054if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10055 echo $ECHO_N "(cached) $ECHO_C" >&6 10056else 10057 ac_check_lib_save_LIBS=$LIBS 10058LIBS="-lsvld $LIBS" 10059cat >conftest.$ac_ext <<_ACEOF 10060/* confdefs.h. */ 10061_ACEOF 10062cat confdefs.h >>conftest.$ac_ext 10063cat >>conftest.$ac_ext <<_ACEOF 10064/* end confdefs.h. */ 10065 10066/* Override any GCC internal prototype to avoid an error. 10067 Use char because int might match the return type of a GCC 10068 builtin and then its argument prototype would still apply. */ 10069#ifdef __cplusplus 10070extern "C" 10071#endif 10072char dlopen (); 10073int 10074main () 10075{ 10076return dlopen (); 10077 ; 10078 return 0; 10079} 10080_ACEOF 10081rm -f conftest.$ac_objext conftest$ac_exeext 10082if { (ac_try="$ac_link" 10083case "(($ac_try" in 10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10085 *) ac_try_echo=$ac_try;; 10086esac 10087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10088 (eval "$ac_link") 2>conftest.er1 10089 ac_status=$? 10090 grep -v '^ *+' conftest.er1 >conftest.err 10091 rm -f conftest.er1 10092 cat conftest.err >&5 10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10094 (exit $ac_status); } && { 10095 test -z "$ac_c_werror_flag" || 10096 test ! -s conftest.err 10097 } && test -s conftest$ac_exeext && 10098 $as_test_x conftest$ac_exeext; then 10099 ac_cv_lib_svld_dlopen=yes 10100else 10101 echo "$as_me: failed program was:" >&5 10102sed 's/^/| /' conftest.$ac_ext >&5 10103 10104 ac_cv_lib_svld_dlopen=no 10105fi 10106 10107rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10108 conftest$ac_exeext conftest.$ac_ext 10109LIBS=$ac_check_lib_save_LIBS 10110fi 10111{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10112echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10113if test $ac_cv_lib_svld_dlopen = yes; then 10114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10115else 10116 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10117echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10118if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10119 echo $ECHO_N "(cached) $ECHO_C" >&6 10120else 10121 ac_check_lib_save_LIBS=$LIBS 10122LIBS="-ldld $LIBS" 10123cat >conftest.$ac_ext <<_ACEOF 10124/* confdefs.h. */ 10125_ACEOF 10126cat confdefs.h >>conftest.$ac_ext 10127cat >>conftest.$ac_ext <<_ACEOF 10128/* end confdefs.h. */ 10129 10130/* Override any GCC internal prototype to avoid an error. 10131 Use char because int might match the return type of a GCC 10132 builtin and then its argument prototype would still apply. */ 10133#ifdef __cplusplus 10134extern "C" 10135#endif 10136char dld_link (); 10137int 10138main () 10139{ 10140return dld_link (); 10141 ; 10142 return 0; 10143} 10144_ACEOF 10145rm -f conftest.$ac_objext conftest$ac_exeext 10146if { (ac_try="$ac_link" 10147case "(($ac_try" in 10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10149 *) ac_try_echo=$ac_try;; 10150esac 10151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10152 (eval "$ac_link") 2>conftest.er1 10153 ac_status=$? 10154 grep -v '^ *+' conftest.er1 >conftest.err 10155 rm -f conftest.er1 10156 cat conftest.err >&5 10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10158 (exit $ac_status); } && { 10159 test -z "$ac_c_werror_flag" || 10160 test ! -s conftest.err 10161 } && test -s conftest$ac_exeext && 10162 $as_test_x conftest$ac_exeext; then 10163 ac_cv_lib_dld_dld_link=yes 10164else 10165 echo "$as_me: failed program was:" >&5 10166sed 's/^/| /' conftest.$ac_ext >&5 10167 10168 ac_cv_lib_dld_dld_link=no 10169fi 10170 10171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10172 conftest$ac_exeext conftest.$ac_ext 10173LIBS=$ac_check_lib_save_LIBS 10174fi 10175{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10176echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10177if test $ac_cv_lib_dld_dld_link = yes; then 10178 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10179fi 10180 10181 10182fi 10183 10184 10185fi 10186 10187 10188fi 10189 10190 10191fi 10192 10193 10194fi 10195 10196 ;; 10197 esac 10198 10199 if test "x$lt_cv_dlopen" != xno; then 10200 enable_dlopen=yes 10201 else 10202 enable_dlopen=no 10203 fi 10204 10205 case $lt_cv_dlopen in 10206 dlopen) 10207 save_CPPFLAGS="$CPPFLAGS" 10208 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10209 10210 save_LDFLAGS="$LDFLAGS" 10211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10212 10213 save_LIBS="$LIBS" 10214 LIBS="$lt_cv_dlopen_libs $LIBS" 10215 10216 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10217echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10218if test "${lt_cv_dlopen_self+set}" = set; then 10219 echo $ECHO_N "(cached) $ECHO_C" >&6 10220else 10221 if test "$cross_compiling" = yes; then : 10222 lt_cv_dlopen_self=cross 10223else 10224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10225 lt_status=$lt_dlunknown 10226 cat > conftest.$ac_ext <<EOF 10227#line 10227 "configure" 10228#include "confdefs.h" 10229 10230#if HAVE_DLFCN_H 10231#include <dlfcn.h> 10232#endif 10233 10234#include <stdio.h> 10235 10236#ifdef RTLD_GLOBAL 10237# define LT_DLGLOBAL RTLD_GLOBAL 10238#else 10239# ifdef DL_GLOBAL 10240# define LT_DLGLOBAL DL_GLOBAL 10241# else 10242# define LT_DLGLOBAL 0 10243# endif 10244#endif 10245 10246/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10247 find out it does not work in some platform. */ 10248#ifndef LT_DLLAZY_OR_NOW 10249# ifdef RTLD_LAZY 10250# define LT_DLLAZY_OR_NOW RTLD_LAZY 10251# else 10252# ifdef DL_LAZY 10253# define LT_DLLAZY_OR_NOW DL_LAZY 10254# else 10255# ifdef RTLD_NOW 10256# define LT_DLLAZY_OR_NOW RTLD_NOW 10257# else 10258# ifdef DL_NOW 10259# define LT_DLLAZY_OR_NOW DL_NOW 10260# else 10261# define LT_DLLAZY_OR_NOW 0 10262# endif 10263# endif 10264# endif 10265# endif 10266#endif 10267 10268#ifdef __cplusplus 10269extern "C" void exit (int); 10270#endif 10271 10272void fnord() { int i=42;} 10273int main () 10274{ 10275 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10276 int status = $lt_dlunknown; 10277 10278 if (self) 10279 { 10280 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10281 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10282 /* dlclose (self); */ 10283 } 10284 else 10285 puts (dlerror ()); 10286 10287 exit (status); 10288} 10289EOF 10290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10291 (eval $ac_link) 2>&5 10292 ac_status=$? 10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10294 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10295 (./conftest; exit; ) >&5 2>/dev/null 10296 lt_status=$? 10297 case x$lt_status in 10298 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10299 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10300 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10301 esac 10302 else : 10303 # compilation failed 10304 lt_cv_dlopen_self=no 10305 fi 10306fi 10307rm -fr conftest* 10308 10309 10310fi 10311{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10312echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10313 10314 if test "x$lt_cv_dlopen_self" = xyes; then 10315 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10316 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10317echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10318if test "${lt_cv_dlopen_self_static+set}" = set; then 10319 echo $ECHO_N "(cached) $ECHO_C" >&6 10320else 10321 if test "$cross_compiling" = yes; then : 10322 lt_cv_dlopen_self_static=cross 10323else 10324 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10325 lt_status=$lt_dlunknown 10326 cat > conftest.$ac_ext <<EOF 10327#line 10327 "configure" 10328#include "confdefs.h" 10329 10330#if HAVE_DLFCN_H 10331#include <dlfcn.h> 10332#endif 10333 10334#include <stdio.h> 10335 10336#ifdef RTLD_GLOBAL 10337# define LT_DLGLOBAL RTLD_GLOBAL 10338#else 10339# ifdef DL_GLOBAL 10340# define LT_DLGLOBAL DL_GLOBAL 10341# else 10342# define LT_DLGLOBAL 0 10343# endif 10344#endif 10345 10346/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10347 find out it does not work in some platform. */ 10348#ifndef LT_DLLAZY_OR_NOW 10349# ifdef RTLD_LAZY 10350# define LT_DLLAZY_OR_NOW RTLD_LAZY 10351# else 10352# ifdef DL_LAZY 10353# define LT_DLLAZY_OR_NOW DL_LAZY 10354# else 10355# ifdef RTLD_NOW 10356# define LT_DLLAZY_OR_NOW RTLD_NOW 10357# else 10358# ifdef DL_NOW 10359# define LT_DLLAZY_OR_NOW DL_NOW 10360# else 10361# define LT_DLLAZY_OR_NOW 0 10362# endif 10363# endif 10364# endif 10365# endif 10366#endif 10367 10368#ifdef __cplusplus 10369extern "C" void exit (int); 10370#endif 10371 10372void fnord() { int i=42;} 10373int main () 10374{ 10375 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10376 int status = $lt_dlunknown; 10377 10378 if (self) 10379 { 10380 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10381 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10382 /* dlclose (self); */ 10383 } 10384 else 10385 puts (dlerror ()); 10386 10387 exit (status); 10388} 10389EOF 10390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10391 (eval $ac_link) 2>&5 10392 ac_status=$? 10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10394 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10395 (./conftest; exit; ) >&5 2>/dev/null 10396 lt_status=$? 10397 case x$lt_status in 10398 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10399 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10400 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10401 esac 10402 else : 10403 # compilation failed 10404 lt_cv_dlopen_self_static=no 10405 fi 10406fi 10407rm -fr conftest* 10408 10409 10410fi 10411{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10412echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10413 fi 10414 10415 CPPFLAGS="$save_CPPFLAGS" 10416 LDFLAGS="$save_LDFLAGS" 10417 LIBS="$save_LIBS" 10418 ;; 10419 esac 10420 10421 case $lt_cv_dlopen_self in 10422 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10423 *) enable_dlopen_self=unknown ;; 10424 esac 10425 10426 case $lt_cv_dlopen_self_static in 10427 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10428 *) enable_dlopen_self_static=unknown ;; 10429 esac 10430fi 10431 10432 10433# Report which library types will actually be built 10434{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10435echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10436{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10437echo "${ECHO_T}$can_build_shared" >&6; } 10438 10439{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10440echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10441test "$can_build_shared" = "no" && enable_shared=no 10442 10443# On AIX, shared libraries and static libraries use the same namespace, and 10444# are all built from PIC. 10445case $host_os in 10446aix3*) 10447 test "$enable_shared" = yes && enable_static=no 10448 if test -n "$RANLIB"; then 10449 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10450 postinstall_cmds='$RANLIB $lib' 10451 fi 10452 ;; 10453 10454aix[4-9]*) 10455 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10456 test "$enable_shared" = yes && enable_static=no 10457 fi 10458 ;; 10459esac 10460{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10461echo "${ECHO_T}$enable_shared" >&6; } 10462 10463{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10464echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10465# Make sure either enable_shared or enable_static is yes. 10466test "$enable_shared" = yes || enable_static=yes 10467{ echo "$as_me:$LINENO: result: $enable_static" >&5 10468echo "${ECHO_T}$enable_static" >&6; } 10469 10470# The else clause should only fire when bootstrapping the 10471# libtool distribution, otherwise you forgot to ship ltmain.sh 10472# with your package, and you will get complaints that there are 10473# no rules to generate ltmain.sh. 10474if test -f "$ltmain"; then 10475 # See if we are running on zsh, and set the options which allow our commands through 10476 # without removal of \ escapes. 10477 if test -n "${ZSH_VERSION+set}" ; then 10478 setopt NO_GLOB_SUBST 10479 fi 10480 # Now quote all the things that may contain metacharacters while being 10481 # careful not to overquote the AC_SUBSTed values. We take copies of the 10482 # variables and quote the copies for generation of the libtool script. 10483 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10484 SED SHELL STRIP \ 10485 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10486 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10487 deplibs_check_method reload_flag reload_cmds need_locks \ 10488 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10489 lt_cv_sys_global_symbol_to_c_name_address \ 10490 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10491 old_postinstall_cmds old_postuninstall_cmds \ 10492 compiler \ 10493 CC \ 10494 LD \ 10495 lt_prog_compiler_wl \ 10496 lt_prog_compiler_pic \ 10497 lt_prog_compiler_static \ 10498 lt_prog_compiler_no_builtin_flag \ 10499 export_dynamic_flag_spec \ 10500 thread_safe_flag_spec \ 10501 whole_archive_flag_spec \ 10502 enable_shared_with_static_runtimes \ 10503 old_archive_cmds \ 10504 old_archive_from_new_cmds \ 10505 predep_objects \ 10506 postdep_objects \ 10507 predeps \ 10508 postdeps \ 10509 compiler_lib_search_path \ 10510 compiler_lib_search_dirs \ 10511 archive_cmds \ 10512 archive_expsym_cmds \ 10513 postinstall_cmds \ 10514 postuninstall_cmds \ 10515 old_archive_from_expsyms_cmds \ 10516 allow_undefined_flag \ 10517 no_undefined_flag \ 10518 export_symbols_cmds \ 10519 hardcode_libdir_flag_spec \ 10520 hardcode_libdir_flag_spec_ld \ 10521 hardcode_libdir_separator \ 10522 hardcode_automatic \ 10523 module_cmds \ 10524 module_expsym_cmds \ 10525 lt_cv_prog_compiler_c_o \ 10526 fix_srcfile_path \ 10527 exclude_expsyms \ 10528 include_expsyms; do 10529 10530 case $var in 10531 old_archive_cmds | \ 10532 old_archive_from_new_cmds | \ 10533 archive_cmds | \ 10534 archive_expsym_cmds | \ 10535 module_cmds | \ 10536 module_expsym_cmds | \ 10537 old_archive_from_expsyms_cmds | \ 10538 export_symbols_cmds | \ 10539 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10540 postinstall_cmds | postuninstall_cmds | \ 10541 old_postinstall_cmds | old_postuninstall_cmds | \ 10542 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10543 # Double-quote double-evaled strings. 10544 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10545 ;; 10546 *) 10547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10548 ;; 10549 esac 10550 done 10551 10552 case $lt_echo in 10553 *'\$0 --fallback-echo"') 10554 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10555 ;; 10556 esac 10557 10558cfgfile="${ofile}T" 10559 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10560 $rm -f "$cfgfile" 10561 { echo "$as_me:$LINENO: creating $ofile" >&5 10562echo "$as_me: creating $ofile" >&6;} 10563 10564 cat <<__EOF__ >> "$cfgfile" 10565#! $SHELL 10566 10567# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10568# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10569# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10570# 10571# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10572# Free Software Foundation, Inc. 10573# 10574# This file is part of GNU Libtool: 10575# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10576# 10577# This program is free software; you can redistribute it and/or modify 10578# it under the terms of the GNU General Public License as published by 10579# the Free Software Foundation; either version 2 of the License, or 10580# (at your option) any later version. 10581# 10582# This program is distributed in the hope that it will be useful, but 10583# WITHOUT ANY WARRANTY; without even the implied warranty of 10584# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10585# General Public License for more details. 10586# 10587# You should have received a copy of the GNU General Public License 10588# along with this program; if not, write to the Free Software 10589# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10590# 10591# As a special exception to the GNU General Public License, if you 10592# distribute this file as part of a program that contains a 10593# configuration script generated by Autoconf, you may include it under 10594# the same distribution terms that you use for the rest of that program. 10595 10596# A sed program that does not truncate output. 10597SED=$lt_SED 10598 10599# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10600Xsed="$SED -e 1s/^X//" 10601 10602# The HP-UX ksh and POSIX shell print the target directory to stdout 10603# if CDPATH is set. 10604(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10605 10606# The names of the tagged configurations supported by this script. 10607available_tags= 10608 10609# ### BEGIN LIBTOOL CONFIG 10610 10611# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10612 10613# Shell to use when invoking shell scripts. 10614SHELL=$lt_SHELL 10615 10616# Whether or not to build shared libraries. 10617build_libtool_libs=$enable_shared 10618 10619# Whether or not to build static libraries. 10620build_old_libs=$enable_static 10621 10622# Whether or not to add -lc for building shared libraries. 10623build_libtool_need_lc=$archive_cmds_need_lc 10624 10625# Whether or not to disallow shared libs when runtime libs are static 10626allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10627 10628# Whether or not to optimize for fast installation. 10629fast_install=$enable_fast_install 10630 10631# The host system. 10632host_alias=$host_alias 10633host=$host 10634host_os=$host_os 10635 10636# The build system. 10637build_alias=$build_alias 10638build=$build 10639build_os=$build_os 10640 10641# An echo program that does not interpret backslashes. 10642echo=$lt_echo 10643 10644# The archiver. 10645AR=$lt_AR 10646AR_FLAGS=$lt_AR_FLAGS 10647 10648# A C compiler. 10649LTCC=$lt_LTCC 10650 10651# LTCC compiler flags. 10652LTCFLAGS=$lt_LTCFLAGS 10653 10654# A language-specific compiler. 10655CC=$lt_compiler 10656 10657# Is the compiler the GNU C compiler? 10658with_gcc=$GCC 10659 10660# An ERE matcher. 10661EGREP=$lt_EGREP 10662 10663# The linker used to build libraries. 10664LD=$lt_LD 10665 10666# Whether we need hard or soft links. 10667LN_S=$lt_LN_S 10668 10669# A BSD-compatible nm program. 10670NM=$lt_NM 10671 10672# A symbol stripping program 10673STRIP=$lt_STRIP 10674 10675# Used to examine libraries when file_magic_cmd begins "file" 10676MAGIC_CMD=$MAGIC_CMD 10677 10678# Used on cygwin: DLL creation program. 10679DLLTOOL="$DLLTOOL" 10680 10681# Used on cygwin: object dumper. 10682OBJDUMP="$OBJDUMP" 10683 10684# Used on cygwin: assembler. 10685AS="$AS" 10686 10687# The name of the directory that contains temporary libtool files. 10688objdir=$objdir 10689 10690# How to create reloadable object files. 10691reload_flag=$lt_reload_flag 10692reload_cmds=$lt_reload_cmds 10693 10694# How to pass a linker flag through the compiler. 10695wl=$lt_lt_prog_compiler_wl 10696 10697# Object file suffix (normally "o"). 10698objext="$ac_objext" 10699 10700# Old archive suffix (normally "a"). 10701libext="$libext" 10702 10703# Shared library suffix (normally ".so"). 10704shrext_cmds='$shrext_cmds' 10705 10706# Executable file suffix (normally ""). 10707exeext="$exeext" 10708 10709# Additional compiler flags for building library objects. 10710pic_flag=$lt_lt_prog_compiler_pic 10711pic_mode=$pic_mode 10712 10713# What is the maximum length of a command? 10714max_cmd_len=$lt_cv_sys_max_cmd_len 10715 10716# Does compiler simultaneously support -c and -o options? 10717compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10718 10719# Must we lock files when doing compilation? 10720need_locks=$lt_need_locks 10721 10722# Do we need the lib prefix for modules? 10723need_lib_prefix=$need_lib_prefix 10724 10725# Do we need a version for libraries? 10726need_version=$need_version 10727 10728# Whether dlopen is supported. 10729dlopen_support=$enable_dlopen 10730 10731# Whether dlopen of programs is supported. 10732dlopen_self=$enable_dlopen_self 10733 10734# Whether dlopen of statically linked programs is supported. 10735dlopen_self_static=$enable_dlopen_self_static 10736 10737# Compiler flag to prevent dynamic linking. 10738link_static_flag=$lt_lt_prog_compiler_static 10739 10740# Compiler flag to turn off builtin functions. 10741no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10742 10743# Compiler flag to allow reflexive dlopens. 10744export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10745 10746# Compiler flag to generate shared objects directly from archives. 10747whole_archive_flag_spec=$lt_whole_archive_flag_spec 10748 10749# Compiler flag to generate thread-safe objects. 10750thread_safe_flag_spec=$lt_thread_safe_flag_spec 10751 10752# Library versioning type. 10753version_type=$version_type 10754 10755# Format of library name prefix. 10756libname_spec=$lt_libname_spec 10757 10758# List of archive names. First name is the real one, the rest are links. 10759# The last name is the one that the linker finds with -lNAME. 10760library_names_spec=$lt_library_names_spec 10761 10762# The coded name of the library, if different from the real name. 10763soname_spec=$lt_soname_spec 10764 10765# Commands used to build and install an old-style archive. 10766RANLIB=$lt_RANLIB 10767old_archive_cmds=$lt_old_archive_cmds 10768old_postinstall_cmds=$lt_old_postinstall_cmds 10769old_postuninstall_cmds=$lt_old_postuninstall_cmds 10770 10771# Create an old-style archive from a shared archive. 10772old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10773 10774# Create a temporary old-style archive to link instead of a shared archive. 10775old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10776 10777# Commands used to build and install a shared archive. 10778archive_cmds=$lt_archive_cmds 10779archive_expsym_cmds=$lt_archive_expsym_cmds 10780postinstall_cmds=$lt_postinstall_cmds 10781postuninstall_cmds=$lt_postuninstall_cmds 10782 10783# Commands used to build a loadable module (assumed same as above if empty) 10784module_cmds=$lt_module_cmds 10785module_expsym_cmds=$lt_module_expsym_cmds 10786 10787# Commands to strip libraries. 10788old_striplib=$lt_old_striplib 10789striplib=$lt_striplib 10790 10791# Dependencies to place before the objects being linked to create a 10792# shared library. 10793predep_objects=$lt_predep_objects 10794 10795# Dependencies to place after the objects being linked to create a 10796# shared library. 10797postdep_objects=$lt_postdep_objects 10798 10799# Dependencies to place before the objects being linked to create a 10800# shared library. 10801predeps=$lt_predeps 10802 10803# Dependencies to place after the objects being linked to create a 10804# shared library. 10805postdeps=$lt_postdeps 10806 10807# The directories searched by this compiler when creating a shared 10808# library 10809compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 10810 10811# The library search path used internally by the compiler when linking 10812# a shared library. 10813compiler_lib_search_path=$lt_compiler_lib_search_path 10814 10815# Method to check whether dependent libraries are shared objects. 10816deplibs_check_method=$lt_deplibs_check_method 10817 10818# Command to use when deplibs_check_method == file_magic. 10819file_magic_cmd=$lt_file_magic_cmd 10820 10821# Flag that allows shared libraries with undefined symbols to be built. 10822allow_undefined_flag=$lt_allow_undefined_flag 10823 10824# Flag that forces no undefined symbols. 10825no_undefined_flag=$lt_no_undefined_flag 10826 10827# Commands used to finish a libtool library installation in a directory. 10828finish_cmds=$lt_finish_cmds 10829 10830# Same as above, but a single script fragment to be evaled but not shown. 10831finish_eval=$lt_finish_eval 10832 10833# Take the output of nm and produce a listing of raw symbols and C names. 10834global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10835 10836# Transform the output of nm in a proper C declaration 10837global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10838 10839# Transform the output of nm in a C name address pair 10840global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10841 10842# This is the shared library runtime path variable. 10843runpath_var=$runpath_var 10844 10845# This is the shared library path variable. 10846shlibpath_var=$shlibpath_var 10847 10848# Is shlibpath searched before the hard-coded library search path? 10849shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10850 10851# How to hardcode a shared library path into an executable. 10852hardcode_action=$hardcode_action 10853 10854# Whether we should hardcode library paths into libraries. 10855hardcode_into_libs=$hardcode_into_libs 10856 10857# Flag to hardcode \$libdir into a binary during linking. 10858# This must work even if \$libdir does not exist. 10859hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10860 10861# If ld is used when linking, flag to hardcode \$libdir into 10862# a binary during linking. This must work even if \$libdir does 10863# not exist. 10864hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10865 10866# Whether we need a single -rpath flag with a separated argument. 10867hardcode_libdir_separator=$lt_hardcode_libdir_separator 10868 10869# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10870# resulting binary. 10871hardcode_direct=$hardcode_direct 10872 10873# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10874# resulting binary. 10875hardcode_minus_L=$hardcode_minus_L 10876 10877# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10878# the resulting binary. 10879hardcode_shlibpath_var=$hardcode_shlibpath_var 10880 10881# Set to yes if building a shared library automatically hardcodes DIR into the library 10882# and all subsequent libraries and executables linked against it. 10883hardcode_automatic=$hardcode_automatic 10884 10885# Variables whose values should be saved in libtool wrapper scripts and 10886# restored at relink time. 10887variables_saved_for_relink="$variables_saved_for_relink" 10888 10889# Whether libtool must link a program against all its dependency libraries. 10890link_all_deplibs=$link_all_deplibs 10891 10892# Compile-time system search path for libraries 10893sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10894 10895# Run-time system search path for libraries 10896sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10897 10898# Fix the shell variable \$srcfile for the compiler. 10899fix_srcfile_path=$lt_fix_srcfile_path 10900 10901# Set to yes if exported symbols are required. 10902always_export_symbols=$always_export_symbols 10903 10904# The commands to list exported symbols. 10905export_symbols_cmds=$lt_export_symbols_cmds 10906 10907# The commands to extract the exported symbol list from a shared archive. 10908extract_expsyms_cmds=$lt_extract_expsyms_cmds 10909 10910# Symbols that should not be listed in the preloaded symbols. 10911exclude_expsyms=$lt_exclude_expsyms 10912 10913# Symbols that must always be exported. 10914include_expsyms=$lt_include_expsyms 10915 10916# ### END LIBTOOL CONFIG 10917 10918__EOF__ 10919 10920 10921 case $host_os in 10922 aix3*) 10923 cat <<\EOF >> "$cfgfile" 10924 10925# AIX sometimes has problems with the GCC collect2 program. For some 10926# reason, if we set the COLLECT_NAMES environment variable, the problems 10927# vanish in a puff of smoke. 10928if test "X${COLLECT_NAMES+set}" != Xset; then 10929 COLLECT_NAMES= 10930 export COLLECT_NAMES 10931fi 10932EOF 10933 ;; 10934 esac 10935 10936 # We use sed instead of cat because bash on DJGPP gets confused if 10937 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10938 # text mode, it properly converts lines to CR/LF. This bash problem 10939 # is reportedly fixed, but why not run on old versions too? 10940 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10941 10942 mv -f "$cfgfile" "$ofile" || \ 10943 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10944 chmod +x "$ofile" 10945 10946else 10947 # If there is no Makefile yet, we rely on a make rule to execute 10948 # `config.status --recheck' to rerun these tests and create the 10949 # libtool script then. 10950 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10951 if test -f "$ltmain_in"; then 10952 test -f Makefile && make "$ltmain" 10953 fi 10954fi 10955 10956 10957ac_ext=c 10958ac_cpp='$CPP $CPPFLAGS' 10959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10961ac_compiler_gnu=$ac_cv_c_compiler_gnu 10962 10963CC="$lt_save_CC" 10964 10965 10966# Check whether --with-tags was given. 10967if test "${with_tags+set}" = set; then 10968 withval=$with_tags; tagnames="$withval" 10969fi 10970 10971 10972if test -f "$ltmain" && test -n "$tagnames"; then 10973 if test ! -f "${ofile}"; then 10974 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10975echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10976 fi 10977 10978 if test -z "$LTCC"; then 10979 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10980 if test -z "$LTCC"; then 10981 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10982echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10983 else 10984 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10985echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10986 fi 10987 fi 10988 if test -z "$LTCFLAGS"; then 10989 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10990 fi 10991 10992 # Extract list of available tagged configurations in $ofile. 10993 # Note that this assumes the entire list is on one line. 10994 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10995 10996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10997 for tagname in $tagnames; do 10998 IFS="$lt_save_ifs" 10999 # Check whether tagname contains only valid characters 11000 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11001 "") ;; 11002 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11003echo "$as_me: error: invalid tag name: $tagname" >&2;} 11004 { (exit 1); exit 1; }; } 11005 ;; 11006 esac 11007 11008 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11009 then 11010 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11011echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11012 { (exit 1); exit 1; }; } 11013 fi 11014 11015 # Update the list of available tags. 11016 if test -n "$tagname"; then 11017 echo appending configuration tag \"$tagname\" to $ofile 11018 11019 case $tagname in 11020 CXX) 11021 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11022 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11023 (test "X$CXX" != "Xg++"))) ; then 11024 ac_ext=cpp 11025ac_cpp='$CXXCPP $CPPFLAGS' 11026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11029 11030 11031 11032 11033archive_cmds_need_lc_CXX=no 11034allow_undefined_flag_CXX= 11035always_export_symbols_CXX=no 11036archive_expsym_cmds_CXX= 11037export_dynamic_flag_spec_CXX= 11038hardcode_direct_CXX=no 11039hardcode_libdir_flag_spec_CXX= 11040hardcode_libdir_flag_spec_ld_CXX= 11041hardcode_libdir_separator_CXX= 11042hardcode_minus_L_CXX=no 11043hardcode_shlibpath_var_CXX=unsupported 11044hardcode_automatic_CXX=no 11045module_cmds_CXX= 11046module_expsym_cmds_CXX= 11047link_all_deplibs_CXX=unknown 11048old_archive_cmds_CXX=$old_archive_cmds 11049no_undefined_flag_CXX= 11050whole_archive_flag_spec_CXX= 11051enable_shared_with_static_runtimes_CXX=no 11052 11053# Dependencies to place before and after the object being linked: 11054predep_objects_CXX= 11055postdep_objects_CXX= 11056predeps_CXX= 11057postdeps_CXX= 11058compiler_lib_search_path_CXX= 11059compiler_lib_search_dirs_CXX= 11060 11061# Source file extension for C++ test sources. 11062ac_ext=cpp 11063 11064# Object file extension for compiled C++ test sources. 11065objext=o 11066objext_CXX=$objext 11067 11068# Code to be used in simple compile tests 11069lt_simple_compile_test_code="int some_variable = 0;" 11070 11071# Code to be used in simple link tests 11072lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11073 11074# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11075 11076# If no C compiler was specified, use CC. 11077LTCC=${LTCC-"$CC"} 11078 11079# If no C compiler flags were specified, use CFLAGS. 11080LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11081 11082# Allow CC to be a program name with arguments. 11083compiler=$CC 11084 11085 11086# save warnings/boilerplate of simple test code 11087ac_outfile=conftest.$ac_objext 11088echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11089eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11090_lt_compiler_boilerplate=`cat conftest.err` 11091$rm conftest* 11092 11093ac_outfile=conftest.$ac_objext 11094echo "$lt_simple_link_test_code" >conftest.$ac_ext 11095eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11096_lt_linker_boilerplate=`cat conftest.err` 11097$rm -r conftest* 11098 11099 11100# Allow CC to be a program name with arguments. 11101lt_save_CC=$CC 11102lt_save_LD=$LD 11103lt_save_GCC=$GCC 11104GCC=$GXX 11105lt_save_with_gnu_ld=$with_gnu_ld 11106lt_save_path_LD=$lt_cv_path_LD 11107if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11108 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11109else 11110 $as_unset lt_cv_prog_gnu_ld 11111fi 11112if test -n "${lt_cv_path_LDCXX+set}"; then 11113 lt_cv_path_LD=$lt_cv_path_LDCXX 11114else 11115 $as_unset lt_cv_path_LD 11116fi 11117test -z "${LDCXX+set}" || LD=$LDCXX 11118CC=${CXX-"c++"} 11119compiler=$CC 11120compiler_CXX=$CC 11121for cc_temp in $compiler""; do 11122 case $cc_temp in 11123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11125 \-*) ;; 11126 *) break;; 11127 esac 11128done 11129cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11130 11131 11132# We don't want -fno-exception wen compiling C++ code, so set the 11133# no_builtin_flag separately 11134if test "$GXX" = yes; then 11135 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11136else 11137 lt_prog_compiler_no_builtin_flag_CXX= 11138fi 11139 11140if test "$GXX" = yes; then 11141 # Set up default GNU C++ configuration 11142 11143 11144# Check whether --with-gnu-ld was given. 11145if test "${with_gnu_ld+set}" = set; then 11146 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11147else 11148 with_gnu_ld=no 11149fi 11150 11151ac_prog=ld 11152if test "$GCC" = yes; then 11153 # Check if gcc -print-prog-name=ld gives a path. 11154 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11155echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11156 case $host in 11157 *-*-mingw*) 11158 # gcc leaves a trailing carriage return which upsets mingw 11159 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11160 *) 11161 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11162 esac 11163 case $ac_prog in 11164 # Accept absolute paths. 11165 [\\/]* | ?:[\\/]*) 11166 re_direlt='/[^/][^/]*/\.\./' 11167 # Canonicalize the pathname of ld 11168 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11169 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11170 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11171 done 11172 test -z "$LD" && LD="$ac_prog" 11173 ;; 11174 "") 11175 # If it fails, then pretend we aren't using GCC. 11176 ac_prog=ld 11177 ;; 11178 *) 11179 # If it is relative, then search for the first ld in PATH. 11180 with_gnu_ld=unknown 11181 ;; 11182 esac 11183elif test "$with_gnu_ld" = yes; then 11184 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11185echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11186else 11187 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11188echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11189fi 11190if test "${lt_cv_path_LD+set}" = set; then 11191 echo $ECHO_N "(cached) $ECHO_C" >&6 11192else 11193 if test -z "$LD"; then 11194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11195 for ac_dir in $PATH; do 11196 IFS="$lt_save_ifs" 11197 test -z "$ac_dir" && ac_dir=. 11198 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11199 lt_cv_path_LD="$ac_dir/$ac_prog" 11200 # Check to see if the program is GNU ld. I'd rather use --version, 11201 # but apparently some variants of GNU ld only accept -v. 11202 # Break only if it was the GNU/non-GNU ld that we prefer. 11203 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11204 *GNU* | *'with BFD'*) 11205 test "$with_gnu_ld" != no && break 11206 ;; 11207 *) 11208 test "$with_gnu_ld" != yes && break 11209 ;; 11210 esac 11211 fi 11212 done 11213 IFS="$lt_save_ifs" 11214else 11215 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11216fi 11217fi 11218 11219LD="$lt_cv_path_LD" 11220if test -n "$LD"; then 11221 { echo "$as_me:$LINENO: result: $LD" >&5 11222echo "${ECHO_T}$LD" >&6; } 11223else 11224 { echo "$as_me:$LINENO: result: no" >&5 11225echo "${ECHO_T}no" >&6; } 11226fi 11227test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11228echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11229 { (exit 1); exit 1; }; } 11230{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11231echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11232if test "${lt_cv_prog_gnu_ld+set}" = set; then 11233 echo $ECHO_N "(cached) $ECHO_C" >&6 11234else 11235 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11236case `$LD -v 2>&1 </dev/null` in 11237*GNU* | *'with BFD'*) 11238 lt_cv_prog_gnu_ld=yes 11239 ;; 11240*) 11241 lt_cv_prog_gnu_ld=no 11242 ;; 11243esac 11244fi 11245{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11246echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11247with_gnu_ld=$lt_cv_prog_gnu_ld 11248 11249 11250 11251 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11252 # archiving commands below assume that GNU ld is being used. 11253 if test "$with_gnu_ld" = yes; then 11254 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11255 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' 11256 11257 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11258 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11259 11260 # If archive_cmds runs LD, not CC, wlarc should be empty 11261 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11262 # investigate it a little bit more. (MM) 11263 wlarc='${wl}' 11264 11265 # ancient GNU ld didn't support --whole-archive et. al. 11266 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11267 grep 'no-whole-archive' > /dev/null; then 11268 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11269 else 11270 whole_archive_flag_spec_CXX= 11271 fi 11272 else 11273 with_gnu_ld=no 11274 wlarc= 11275 11276 # A generic and very simple default shared library creation 11277 # command for GNU C++ for the case where it uses the native 11278 # linker, instead of GNU ld. If possible, this setting should 11279 # overridden to take advantage of the native linker features on 11280 # the platform it is being used on. 11281 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11282 fi 11283 11284 # Commands to make compiler produce verbose output that lists 11285 # what "hidden" libraries, object files and flags are used when 11286 # linking a shared library. 11287 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11288 11289else 11290 GXX=no 11291 with_gnu_ld=no 11292 wlarc= 11293fi 11294 11295# PORTME: fill in a description of your system's C++ link characteristics 11296{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11297echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11298ld_shlibs_CXX=yes 11299case $host_os in 11300 aix3*) 11301 # FIXME: insert proper C++ library support 11302 ld_shlibs_CXX=no 11303 ;; 11304 aix[4-9]*) 11305 if test "$host_cpu" = ia64; then 11306 # On IA64, the linker does run time linking by default, so we don't 11307 # have to do anything special. 11308 aix_use_runtimelinking=no 11309 exp_sym_flag='-Bexport' 11310 no_entry_flag="" 11311 else 11312 aix_use_runtimelinking=no 11313 11314 # Test if we are trying to use run time linking or normal 11315 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11316 # need to do runtime linking. 11317 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11318 for ld_flag in $LDFLAGS; do 11319 case $ld_flag in 11320 *-brtl*) 11321 aix_use_runtimelinking=yes 11322 break 11323 ;; 11324 esac 11325 done 11326 ;; 11327 esac 11328 11329 exp_sym_flag='-bexport' 11330 no_entry_flag='-bnoentry' 11331 fi 11332 11333 # When large executables or shared objects are built, AIX ld can 11334 # have problems creating the table of contents. If linking a library 11335 # or program results in "error TOC overflow" add -mminimal-toc to 11336 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11337 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11338 11339 archive_cmds_CXX='' 11340 hardcode_direct_CXX=yes 11341 hardcode_libdir_separator_CXX=':' 11342 link_all_deplibs_CXX=yes 11343 11344 if test "$GXX" = yes; then 11345 case $host_os in aix4.[012]|aix4.[012].*) 11346 # We only want to do this on AIX 4.2 and lower, the check 11347 # below for broken collect2 doesn't work under 4.3+ 11348 collect2name=`${CC} -print-prog-name=collect2` 11349 if test -f "$collect2name" && \ 11350 strings "$collect2name" | grep resolve_lib_name >/dev/null 11351 then 11352 # We have reworked collect2 11353 : 11354 else 11355 # We have old collect2 11356 hardcode_direct_CXX=unsupported 11357 # It fails to find uninstalled libraries when the uninstalled 11358 # path is not listed in the libpath. Setting hardcode_minus_L 11359 # to unsupported forces relinking 11360 hardcode_minus_L_CXX=yes 11361 hardcode_libdir_flag_spec_CXX='-L$libdir' 11362 hardcode_libdir_separator_CXX= 11363 fi 11364 ;; 11365 esac 11366 shared_flag='-shared' 11367 if test "$aix_use_runtimelinking" = yes; then 11368 shared_flag="$shared_flag "'${wl}-G' 11369 fi 11370 else 11371 # not using gcc 11372 if test "$host_cpu" = ia64; then 11373 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11374 # chokes on -Wl,-G. The following line is correct: 11375 shared_flag='-G' 11376 else 11377 if test "$aix_use_runtimelinking" = yes; then 11378 shared_flag='${wl}-G' 11379 else 11380 shared_flag='${wl}-bM:SRE' 11381 fi 11382 fi 11383 fi 11384 11385 # It seems that -bexpall does not export symbols beginning with 11386 # underscore (_), so it is better to generate a list of symbols to export. 11387 always_export_symbols_CXX=yes 11388 if test "$aix_use_runtimelinking" = yes; then 11389 # Warning - without using the other runtime loading flags (-brtl), 11390 # -berok will link without error, but may produce a broken library. 11391 allow_undefined_flag_CXX='-berok' 11392 # Determine the default libpath from the value encoded in an empty executable. 11393 cat >conftest.$ac_ext <<_ACEOF 11394/* confdefs.h. */ 11395_ACEOF 11396cat confdefs.h >>conftest.$ac_ext 11397cat >>conftest.$ac_ext <<_ACEOF 11398/* end confdefs.h. */ 11399 11400int 11401main () 11402{ 11403 11404 ; 11405 return 0; 11406} 11407_ACEOF 11408rm -f conftest.$ac_objext conftest$ac_exeext 11409if { (ac_try="$ac_link" 11410case "(($ac_try" in 11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11412 *) ac_try_echo=$ac_try;; 11413esac 11414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11415 (eval "$ac_link") 2>conftest.er1 11416 ac_status=$? 11417 grep -v '^ *+' conftest.er1 >conftest.err 11418 rm -f conftest.er1 11419 cat conftest.err >&5 11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11421 (exit $ac_status); } && { 11422 test -z "$ac_cxx_werror_flag" || 11423 test ! -s conftest.err 11424 } && test -s conftest$ac_exeext && 11425 $as_test_x conftest$ac_exeext; then 11426 11427lt_aix_libpath_sed=' 11428 /Import File Strings/,/^$/ { 11429 /^0/ { 11430 s/^0 *\(.*\)$/\1/ 11431 p 11432 } 11433 }' 11434aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11435# Check for a 64-bit object if we didn't find anything. 11436if test -z "$aix_libpath"; then 11437 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11438fi 11439else 11440 echo "$as_me: failed program was:" >&5 11441sed 's/^/| /' conftest.$ac_ext >&5 11442 11443 11444fi 11445 11446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11447 conftest$ac_exeext conftest.$ac_ext 11448if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11449 11450 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11451 11452 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" 11453 else 11454 if test "$host_cpu" = ia64; then 11455 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11456 allow_undefined_flag_CXX="-z nodefs" 11457 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" 11458 else 11459 # Determine the default libpath from the value encoded in an empty executable. 11460 cat >conftest.$ac_ext <<_ACEOF 11461/* confdefs.h. */ 11462_ACEOF 11463cat confdefs.h >>conftest.$ac_ext 11464cat >>conftest.$ac_ext <<_ACEOF 11465/* end confdefs.h. */ 11466 11467int 11468main () 11469{ 11470 11471 ; 11472 return 0; 11473} 11474_ACEOF 11475rm -f conftest.$ac_objext conftest$ac_exeext 11476if { (ac_try="$ac_link" 11477case "(($ac_try" in 11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11479 *) ac_try_echo=$ac_try;; 11480esac 11481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11482 (eval "$ac_link") 2>conftest.er1 11483 ac_status=$? 11484 grep -v '^ *+' conftest.er1 >conftest.err 11485 rm -f conftest.er1 11486 cat conftest.err >&5 11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11488 (exit $ac_status); } && { 11489 test -z "$ac_cxx_werror_flag" || 11490 test ! -s conftest.err 11491 } && test -s conftest$ac_exeext && 11492 $as_test_x conftest$ac_exeext; then 11493 11494lt_aix_libpath_sed=' 11495 /Import File Strings/,/^$/ { 11496 /^0/ { 11497 s/^0 *\(.*\)$/\1/ 11498 p 11499 } 11500 }' 11501aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11502# Check for a 64-bit object if we didn't find anything. 11503if test -z "$aix_libpath"; then 11504 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11505fi 11506else 11507 echo "$as_me: failed program was:" >&5 11508sed 's/^/| /' conftest.$ac_ext >&5 11509 11510 11511fi 11512 11513rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11514 conftest$ac_exeext conftest.$ac_ext 11515if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11516 11517 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11518 # Warning - without using the other run time loading flags, 11519 # -berok will link without error, but may produce a broken library. 11520 no_undefined_flag_CXX=' ${wl}-bernotok' 11521 allow_undefined_flag_CXX=' ${wl}-berok' 11522 # Exported symbols can be pulled into shared objects from archives 11523 whole_archive_flag_spec_CXX='$convenience' 11524 archive_cmds_need_lc_CXX=yes 11525 # This is similar to how AIX traditionally builds its shared libraries. 11526 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' 11527 fi 11528 fi 11529 ;; 11530 11531 beos*) 11532 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11533 allow_undefined_flag_CXX=unsupported 11534 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11535 # support --undefined. This deserves some investigation. FIXME 11536 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11537 else 11538 ld_shlibs_CXX=no 11539 fi 11540 ;; 11541 11542 chorus*) 11543 case $cc_basename in 11544 *) 11545 # FIXME: insert proper C++ library support 11546 ld_shlibs_CXX=no 11547 ;; 11548 esac 11549 ;; 11550 11551 cygwin* | mingw* | pw32*) 11552 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11553 # as there is no search path for DLLs. 11554 hardcode_libdir_flag_spec_CXX='-L$libdir' 11555 allow_undefined_flag_CXX=unsupported 11556 always_export_symbols_CXX=no 11557 enable_shared_with_static_runtimes_CXX=yes 11558 11559 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11560 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' 11561 # If the export-symbols file already is a .def file (1st line 11562 # is EXPORTS), use it as is; otherwise, prepend... 11563 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11564 cp $export_symbols $output_objdir/$soname.def; 11565 else 11566 echo EXPORTS > $output_objdir/$soname.def; 11567 cat $export_symbols >> $output_objdir/$soname.def; 11568 fi~ 11569 $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' 11570 else 11571 ld_shlibs_CXX=no 11572 fi 11573 ;; 11574 darwin* | rhapsody*) 11575 archive_cmds_need_lc_CXX=no 11576 hardcode_direct_CXX=no 11577 hardcode_automatic_CXX=yes 11578 hardcode_shlibpath_var_CXX=unsupported 11579 whole_archive_flag_spec_CXX='' 11580 link_all_deplibs_CXX=yes 11581 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11582 if test "$GXX" = yes ; then 11583 output_verbose_link_cmd='echo' 11584 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}" 11585 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11586 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}" 11587 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}" 11588 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11589 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}" 11590 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}" 11591 fi 11592 else 11593 case $cc_basename in 11594 xlc*) 11595 output_verbose_link_cmd='echo' 11596 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' 11597 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11598 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11599 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}' 11600 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}' 11601 ;; 11602 *) 11603 ld_shlibs_CXX=no 11604 ;; 11605 esac 11606 fi 11607 ;; 11608 11609 dgux*) 11610 case $cc_basename in 11611 ec++*) 11612 # FIXME: insert proper C++ library support 11613 ld_shlibs_CXX=no 11614 ;; 11615 ghcx*) 11616 # Green Hills C++ Compiler 11617 # FIXME: insert proper C++ library support 11618 ld_shlibs_CXX=no 11619 ;; 11620 *) 11621 # FIXME: insert proper C++ library support 11622 ld_shlibs_CXX=no 11623 ;; 11624 esac 11625 ;; 11626 freebsd[12]*) 11627 # C++ shared libraries reported to be fairly broken before switch to ELF 11628 ld_shlibs_CXX=no 11629 ;; 11630 freebsd-elf*) 11631 archive_cmds_need_lc_CXX=no 11632 ;; 11633 freebsd* | dragonfly*) 11634 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11635 # conventions 11636 ld_shlibs_CXX=yes 11637 ;; 11638 gnu*) 11639 ;; 11640 hpux9*) 11641 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11642 hardcode_libdir_separator_CXX=: 11643 export_dynamic_flag_spec_CXX='${wl}-E' 11644 hardcode_direct_CXX=yes 11645 hardcode_minus_L_CXX=yes # Not in the search PATH, 11646 # but as the default 11647 # location of the library. 11648 11649 case $cc_basename in 11650 CC*) 11651 # FIXME: insert proper C++ library support 11652 ld_shlibs_CXX=no 11653 ;; 11654 aCC*) 11655 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' 11656 # Commands to make compiler produce verbose output that lists 11657 # what "hidden" libraries, object files and flags are used when 11658 # linking a shared library. 11659 # 11660 # There doesn't appear to be a way to prevent this compiler from 11661 # explicitly linking system object files so we need to strip them 11662 # from the output so that they don't get included in the library 11663 # dependencies. 11664 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' 11665 ;; 11666 *) 11667 if test "$GXX" = yes; then 11668 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' 11669 else 11670 # FIXME: insert proper C++ library support 11671 ld_shlibs_CXX=no 11672 fi 11673 ;; 11674 esac 11675 ;; 11676 hpux10*|hpux11*) 11677 if test $with_gnu_ld = no; then 11678 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11679 hardcode_libdir_separator_CXX=: 11680 11681 case $host_cpu in 11682 hppa*64*|ia64*) ;; 11683 *) 11684 export_dynamic_flag_spec_CXX='${wl}-E' 11685 ;; 11686 esac 11687 fi 11688 case $host_cpu in 11689 hppa*64*|ia64*) 11690 hardcode_direct_CXX=no 11691 hardcode_shlibpath_var_CXX=no 11692 ;; 11693 *) 11694 hardcode_direct_CXX=yes 11695 hardcode_minus_L_CXX=yes # Not in the search PATH, 11696 # but as the default 11697 # location of the library. 11698 ;; 11699 esac 11700 11701 case $cc_basename in 11702 CC*) 11703 # FIXME: insert proper C++ library support 11704 ld_shlibs_CXX=no 11705 ;; 11706 aCC*) 11707 case $host_cpu in 11708 hppa*64*) 11709 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11710 ;; 11711 ia64*) 11712 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11713 ;; 11714 *) 11715 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11716 ;; 11717 esac 11718 # Commands to make compiler produce verbose output that lists 11719 # what "hidden" libraries, object files and flags are used when 11720 # linking a shared library. 11721 # 11722 # There doesn't appear to be a way to prevent this compiler from 11723 # explicitly linking system object files so we need to strip them 11724 # from the output so that they don't get included in the library 11725 # dependencies. 11726 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' 11727 ;; 11728 *) 11729 if test "$GXX" = yes; then 11730 if test $with_gnu_ld = no; then 11731 case $host_cpu in 11732 hppa*64*) 11733 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11734 ;; 11735 ia64*) 11736 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11737 ;; 11738 *) 11739 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' 11740 ;; 11741 esac 11742 fi 11743 else 11744 # FIXME: insert proper C++ library support 11745 ld_shlibs_CXX=no 11746 fi 11747 ;; 11748 esac 11749 ;; 11750 interix[3-9]*) 11751 hardcode_direct_CXX=no 11752 hardcode_shlibpath_var_CXX=no 11753 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11754 export_dynamic_flag_spec_CXX='${wl}-E' 11755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11756 # Instead, shared libraries are loaded at an image base (0x10000000 by 11757 # default) and relocated if they conflict, which is a slow very memory 11758 # consuming and fragmenting process. To avoid this, we pick a random, 11759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11760 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11761 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' 11762 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' 11763 ;; 11764 irix5* | irix6*) 11765 case $cc_basename in 11766 CC*) 11767 # SGI C++ 11768 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' 11769 11770 # Archives containing C++ object files must be created using 11771 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11772 # necessary to make sure instantiated templates are included 11773 # in the archive. 11774 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11775 ;; 11776 *) 11777 if test "$GXX" = yes; then 11778 if test "$with_gnu_ld" = no; then 11779 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' 11780 else 11781 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' 11782 fi 11783 fi 11784 link_all_deplibs_CXX=yes 11785 ;; 11786 esac 11787 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11788 hardcode_libdir_separator_CXX=: 11789 ;; 11790 linux* | k*bsd*-gnu) 11791 case $cc_basename in 11792 KCC*) 11793 # Kuck and Associates, Inc. (KAI) C++ Compiler 11794 11795 # KCC will only create a shared library if the output file 11796 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11797 # to its proper name (with version) after linking. 11798 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' 11799 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' 11800 # Commands to make compiler produce verbose output that lists 11801 # what "hidden" libraries, object files and flags are used when 11802 # linking a shared library. 11803 # 11804 # There doesn't appear to be a way to prevent this compiler from 11805 # explicitly linking system object files so we need to strip them 11806 # from the output so that they don't get included in the library 11807 # dependencies. 11808 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' 11809 11810 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11811 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11812 11813 # Archives containing C++ object files must be created using 11814 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11815 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11816 ;; 11817 icpc*) 11818 # Intel C++ 11819 with_gnu_ld=yes 11820 # version 8.0 and above of icpc choke on multiply defined symbols 11821 # if we add $predep_objects and $postdep_objects, however 7.1 and 11822 # earlier do not add the objects themselves. 11823 case `$CC -V 2>&1` in 11824 *"Version 7."*) 11825 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11826 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' 11827 ;; 11828 *) # Version 8.0 or newer 11829 tmp_idyn= 11830 case $host_cpu in 11831 ia64*) tmp_idyn=' -i_dynamic';; 11832 esac 11833 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11834 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' 11835 ;; 11836 esac 11837 archive_cmds_need_lc_CXX=no 11838 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11839 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11840 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11841 ;; 11842 pgCC* | pgcpp*) 11843 # Portland Group C++ compiler 11844 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11845 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' 11846 11847 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11848 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11849 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' 11850 ;; 11851 cxx*) 11852 # Compaq C++ 11853 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11854 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' 11855 11856 runpath_var=LD_RUN_PATH 11857 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11858 hardcode_libdir_separator_CXX=: 11859 11860 # Commands to make compiler produce verbose output that lists 11861 # what "hidden" libraries, object files and flags are used when 11862 # linking a shared library. 11863 # 11864 # There doesn't appear to be a way to prevent this compiler from 11865 # explicitly linking system object files so we need to strip them 11866 # from the output so that they don't get included in the library 11867 # dependencies. 11868 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' 11869 ;; 11870 *) 11871 case `$CC -V 2>&1 | sed 5q` in 11872 *Sun\ C*) 11873 # Sun C++ 5.9 11874 no_undefined_flag_CXX=' -zdefs' 11875 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11876 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' 11877 hardcode_libdir_flag_spec_CXX='-R$libdir' 11878 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' 11879 11880 # Not sure whether something based on 11881 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11882 # would be better. 11883 output_verbose_link_cmd='echo' 11884 11885 # Archives containing C++ object files must be created using 11886 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11887 # necessary to make sure instantiated templates are included 11888 # in the archive. 11889 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11890 ;; 11891 esac 11892 ;; 11893 esac 11894 ;; 11895 lynxos*) 11896 # FIXME: insert proper C++ library support 11897 ld_shlibs_CXX=no 11898 ;; 11899 m88k*) 11900 # FIXME: insert proper C++ library support 11901 ld_shlibs_CXX=no 11902 ;; 11903 mvs*) 11904 case $cc_basename in 11905 cxx*) 11906 # FIXME: insert proper C++ library support 11907 ld_shlibs_CXX=no 11908 ;; 11909 *) 11910 # FIXME: insert proper C++ library support 11911 ld_shlibs_CXX=no 11912 ;; 11913 esac 11914 ;; 11915 netbsd* | netbsdelf*-gnu) 11916 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11917 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11918 wlarc= 11919 hardcode_libdir_flag_spec_CXX='-R$libdir' 11920 hardcode_direct_CXX=yes 11921 hardcode_shlibpath_var_CXX=no 11922 fi 11923 # Workaround some broken pre-1.5 toolchains 11924 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11925 ;; 11926 openbsd2*) 11927 # C++ shared libraries are fairly broken 11928 ld_shlibs_CXX=no 11929 ;; 11930 openbsd*) 11931 if test -f /usr/libexec/ld.so; then 11932 hardcode_direct_CXX=yes 11933 hardcode_shlibpath_var_CXX=no 11934 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11935 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11936 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11937 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11938 export_dynamic_flag_spec_CXX='${wl}-E' 11939 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11940 fi 11941 output_verbose_link_cmd='echo' 11942 else 11943 ld_shlibs_CXX=no 11944 fi 11945 ;; 11946 osf3*) 11947 case $cc_basename in 11948 KCC*) 11949 # Kuck and Associates, Inc. (KAI) C++ Compiler 11950 11951 # KCC will only create a shared library if the output file 11952 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11953 # to its proper name (with version) after linking. 11954 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' 11955 11956 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11957 hardcode_libdir_separator_CXX=: 11958 11959 # Archives containing C++ object files must be created using 11960 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11961 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11962 11963 ;; 11964 RCC*) 11965 # Rational C++ 2.4.1 11966 # FIXME: insert proper C++ library support 11967 ld_shlibs_CXX=no 11968 ;; 11969 cxx*) 11970 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11971 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' 11972 11973 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11974 hardcode_libdir_separator_CXX=: 11975 11976 # Commands to make compiler produce verbose output that lists 11977 # what "hidden" libraries, object files and flags are used when 11978 # linking a shared library. 11979 # 11980 # There doesn't appear to be a way to prevent this compiler from 11981 # explicitly linking system object files so we need to strip them 11982 # from the output so that they don't get included in the library 11983 # dependencies. 11984 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' 11985 ;; 11986 *) 11987 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11988 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11989 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' 11990 11991 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11992 hardcode_libdir_separator_CXX=: 11993 11994 # Commands to make compiler produce verbose output that lists 11995 # what "hidden" libraries, object files and flags are used when 11996 # linking a shared library. 11997 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11998 11999 else 12000 # FIXME: insert proper C++ library support 12001 ld_shlibs_CXX=no 12002 fi 12003 ;; 12004 esac 12005 ;; 12006 osf4* | osf5*) 12007 case $cc_basename in 12008 KCC*) 12009 # Kuck and Associates, Inc. (KAI) C++ Compiler 12010 12011 # KCC will only create a shared library if the output file 12012 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12013 # to its proper name (with version) after linking. 12014 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' 12015 12016 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12017 hardcode_libdir_separator_CXX=: 12018 12019 # Archives containing C++ object files must be created using 12020 # the KAI C++ compiler. 12021 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12022 ;; 12023 RCC*) 12024 # Rational C++ 2.4.1 12025 # FIXME: insert proper C++ library support 12026 ld_shlibs_CXX=no 12027 ;; 12028 cxx*) 12029 allow_undefined_flag_CXX=' -expect_unresolved \*' 12030 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' 12031 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12032 echo "-hidden">> $lib.exp~ 12033 $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~ 12034 $rm $lib.exp' 12035 12036 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12037 hardcode_libdir_separator_CXX=: 12038 12039 # Commands to make compiler produce verbose output that lists 12040 # what "hidden" libraries, object files and flags are used when 12041 # linking a shared library. 12042 # 12043 # There doesn't appear to be a way to prevent this compiler from 12044 # explicitly linking system object files so we need to strip them 12045 # from the output so that they don't get included in the library 12046 # dependencies. 12047 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' 12048 ;; 12049 *) 12050 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12051 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12052 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' 12053 12054 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12055 hardcode_libdir_separator_CXX=: 12056 12057 # Commands to make compiler produce verbose output that lists 12058 # what "hidden" libraries, object files and flags are used when 12059 # linking a shared library. 12060 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12061 12062 else 12063 # FIXME: insert proper C++ library support 12064 ld_shlibs_CXX=no 12065 fi 12066 ;; 12067 esac 12068 ;; 12069 psos*) 12070 # FIXME: insert proper C++ library support 12071 ld_shlibs_CXX=no 12072 ;; 12073 sunos4*) 12074 case $cc_basename in 12075 CC*) 12076 # Sun C++ 4.x 12077 # FIXME: insert proper C++ library support 12078 ld_shlibs_CXX=no 12079 ;; 12080 lcc*) 12081 # Lucid 12082 # FIXME: insert proper C++ library support 12083 ld_shlibs_CXX=no 12084 ;; 12085 *) 12086 # FIXME: insert proper C++ library support 12087 ld_shlibs_CXX=no 12088 ;; 12089 esac 12090 ;; 12091 solaris*) 12092 case $cc_basename in 12093 CC*) 12094 # Sun C++ 4.2, 5.x and Centerline C++ 12095 archive_cmds_need_lc_CXX=yes 12096 no_undefined_flag_CXX=' -zdefs' 12097 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12098 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12099 $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' 12100 12101 hardcode_libdir_flag_spec_CXX='-R$libdir' 12102 hardcode_shlibpath_var_CXX=no 12103 case $host_os in 12104 solaris2.[0-5] | solaris2.[0-5].*) ;; 12105 *) 12106 # The compiler driver will combine and reorder linker options, 12107 # but understands `-z linker_flag'. 12108 # Supported since Solaris 2.6 (maybe 2.5.1?) 12109 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12110 ;; 12111 esac 12112 link_all_deplibs_CXX=yes 12113 12114 output_verbose_link_cmd='echo' 12115 12116 # Archives containing C++ object files must be created using 12117 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12118 # necessary to make sure instantiated templates are included 12119 # in the archive. 12120 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12121 ;; 12122 gcx*) 12123 # Green Hills C++ Compiler 12124 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12125 12126 # The C++ compiler must be used to create the archive. 12127 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12128 ;; 12129 *) 12130 # GNU C++ compiler with Solaris linker 12131 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12132 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12133 if $CC --version | grep -v '^2\.7' > /dev/null; then 12134 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12135 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12136 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12137 12138 # Commands to make compiler produce verbose output that lists 12139 # what "hidden" libraries, object files and flags are used when 12140 # linking a shared library. 12141 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12142 else 12143 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12144 # platform. 12145 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12146 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12147 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12148 12149 # Commands to make compiler produce verbose output that lists 12150 # what "hidden" libraries, object files and flags are used when 12151 # linking a shared library. 12152 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12153 fi 12154 12155 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12156 case $host_os in 12157 solaris2.[0-5] | solaris2.[0-5].*) ;; 12158 *) 12159 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12160 ;; 12161 esac 12162 fi 12163 ;; 12164 esac 12165 ;; 12166 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12167 no_undefined_flag_CXX='${wl}-z,text' 12168 archive_cmds_need_lc_CXX=no 12169 hardcode_shlibpath_var_CXX=no 12170 runpath_var='LD_RUN_PATH' 12171 12172 case $cc_basename in 12173 CC*) 12174 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12175 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12176 ;; 12177 *) 12178 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12179 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12180 ;; 12181 esac 12182 ;; 12183 sysv5* | sco3.2v5* | sco5v6*) 12184 # Note: We can NOT use -z defs as we might desire, because we do not 12185 # link with -lc, and that would cause any symbols used from libc to 12186 # always be unresolved, which means just about no library would 12187 # ever link correctly. If we're not using GNU ld we use -z text 12188 # though, which does catch some bad symbols but isn't as heavy-handed 12189 # as -z defs. 12190 # For security reasons, it is highly recommended that you always 12191 # use absolute paths for naming shared libraries, and exclude the 12192 # DT_RUNPATH tag from executables and libraries. But doing so 12193 # requires that you compile everything twice, which is a pain. 12194 # So that behaviour is only enabled if SCOABSPATH is set to a 12195 # non-empty value in the environment. Most likely only useful for 12196 # creating official distributions of packages. 12197 # This is a hack until libtool officially supports absolute path 12198 # names for shared libraries. 12199 no_undefined_flag_CXX='${wl}-z,text' 12200 allow_undefined_flag_CXX='${wl}-z,nodefs' 12201 archive_cmds_need_lc_CXX=no 12202 hardcode_shlibpath_var_CXX=no 12203 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12204 hardcode_libdir_separator_CXX=':' 12205 link_all_deplibs_CXX=yes 12206 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12207 runpath_var='LD_RUN_PATH' 12208 12209 case $cc_basename in 12210 CC*) 12211 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12212 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12213 ;; 12214 *) 12215 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12216 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12217 ;; 12218 esac 12219 ;; 12220 tandem*) 12221 case $cc_basename in 12222 NCC*) 12223 # NonStop-UX NCC 3.20 12224 # FIXME: insert proper C++ library support 12225 ld_shlibs_CXX=no 12226 ;; 12227 *) 12228 # FIXME: insert proper C++ library support 12229 ld_shlibs_CXX=no 12230 ;; 12231 esac 12232 ;; 12233 vxworks*) 12234 # FIXME: insert proper C++ library support 12235 ld_shlibs_CXX=no 12236 ;; 12237 *) 12238 # FIXME: insert proper C++ library support 12239 ld_shlibs_CXX=no 12240 ;; 12241esac 12242{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12243echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12244test "$ld_shlibs_CXX" = no && can_build_shared=no 12245 12246GCC_CXX="$GXX" 12247LD_CXX="$LD" 12248 12249cat > conftest.$ac_ext <<EOF 12250class Foo 12251{ 12252public: 12253 Foo (void) { a = 0; } 12254private: 12255 int a; 12256}; 12257EOF 12258 12259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12260 (eval $ac_compile) 2>&5 12261 ac_status=$? 12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12263 (exit $ac_status); }; then 12264 # Parse the compiler output and extract the necessary 12265 # objects, libraries and library flags. 12266 12267 # Sentinel used to keep track of whether or not we are before 12268 # the conftest object file. 12269 pre_test_object_deps_done=no 12270 12271 # The `*' in the case matches for architectures that use `case' in 12272 # $output_verbose_cmd can trigger glob expansion during the loop 12273 # eval without this substitution. 12274 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12275 12276 for p in `eval $output_verbose_link_cmd`; do 12277 case $p in 12278 12279 -L* | -R* | -l*) 12280 # Some compilers place space between "-{L,R}" and the path. 12281 # Remove the space. 12282 if test $p = "-L" \ 12283 || test $p = "-R"; then 12284 prev=$p 12285 continue 12286 else 12287 prev= 12288 fi 12289 12290 if test "$pre_test_object_deps_done" = no; then 12291 case $p in 12292 -L* | -R*) 12293 # Internal compiler library paths should come after those 12294 # provided the user. The postdeps already come after the 12295 # user supplied libs so there is no need to process them. 12296 if test -z "$compiler_lib_search_path_CXX"; then 12297 compiler_lib_search_path_CXX="${prev}${p}" 12298 else 12299 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12300 fi 12301 ;; 12302 # The "-l" case would never come before the object being 12303 # linked, so don't bother handling this case. 12304 esac 12305 else 12306 if test -z "$postdeps_CXX"; then 12307 postdeps_CXX="${prev}${p}" 12308 else 12309 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12310 fi 12311 fi 12312 ;; 12313 12314 *.$objext) 12315 # This assumes that the test object file only shows up 12316 # once in the compiler output. 12317 if test "$p" = "conftest.$objext"; then 12318 pre_test_object_deps_done=yes 12319 continue 12320 fi 12321 12322 if test "$pre_test_object_deps_done" = no; then 12323 if test -z "$predep_objects_CXX"; then 12324 predep_objects_CXX="$p" 12325 else 12326 predep_objects_CXX="$predep_objects_CXX $p" 12327 fi 12328 else 12329 if test -z "$postdep_objects_CXX"; then 12330 postdep_objects_CXX="$p" 12331 else 12332 postdep_objects_CXX="$postdep_objects_CXX $p" 12333 fi 12334 fi 12335 ;; 12336 12337 *) ;; # Ignore the rest. 12338 12339 esac 12340 done 12341 12342 # Clean up. 12343 rm -f a.out a.exe 12344else 12345 echo "libtool.m4: error: problem compiling CXX test program" 12346fi 12347 12348$rm -f confest.$objext 12349 12350compiler_lib_search_dirs_CXX= 12351if test -n "$compiler_lib_search_path_CXX"; then 12352 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12353fi 12354 12355# PORTME: override above test on systems where it is broken 12356case $host_os in 12357interix[3-9]*) 12358 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12359 # hack all around it, let's just trust "g++" to DTRT. 12360 predep_objects_CXX= 12361 postdep_objects_CXX= 12362 postdeps_CXX= 12363 ;; 12364 12365linux*) 12366 case `$CC -V 2>&1 | sed 5q` in 12367 *Sun\ C*) 12368 # Sun C++ 5.9 12369 # 12370 # The more standards-conforming stlport4 library is 12371 # incompatible with the Cstd library. Avoid specifying 12372 # it if it's in CXXFLAGS. Ignore libCrun as 12373 # -library=stlport4 depends on it. 12374 case " $CXX $CXXFLAGS " in 12375 *" -library=stlport4 "*) 12376 solaris_use_stlport4=yes 12377 ;; 12378 esac 12379 if test "$solaris_use_stlport4" != yes; then 12380 postdeps_CXX='-library=Cstd -library=Crun' 12381 fi 12382 ;; 12383 esac 12384 ;; 12385 12386solaris*) 12387 case $cc_basename in 12388 CC*) 12389 # The more standards-conforming stlport4 library is 12390 # incompatible with the Cstd library. Avoid specifying 12391 # it if it's in CXXFLAGS. Ignore libCrun as 12392 # -library=stlport4 depends on it. 12393 case " $CXX $CXXFLAGS " in 12394 *" -library=stlport4 "*) 12395 solaris_use_stlport4=yes 12396 ;; 12397 esac 12398 12399 # Adding this requires a known-good setup of shared libraries for 12400 # Sun compiler versions before 5.6, else PIC objects from an old 12401 # archive will be linked into the output, leading to subtle bugs. 12402 if test "$solaris_use_stlport4" != yes; then 12403 postdeps_CXX='-library=Cstd -library=Crun' 12404 fi 12405 ;; 12406 esac 12407 ;; 12408esac 12409 12410case " $postdeps_CXX " in 12411*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12412esac 12413 12414lt_prog_compiler_wl_CXX= 12415lt_prog_compiler_pic_CXX= 12416lt_prog_compiler_static_CXX= 12417 12418{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12419echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12420 12421 # C++ specific cases for pic, static, wl, etc. 12422 if test "$GXX" = yes; then 12423 lt_prog_compiler_wl_CXX='-Wl,' 12424 lt_prog_compiler_static_CXX='-static' 12425 12426 case $host_os in 12427 aix*) 12428 # All AIX code is PIC. 12429 if test "$host_cpu" = ia64; then 12430 # AIX 5 now supports IA64 processor 12431 lt_prog_compiler_static_CXX='-Bstatic' 12432 fi 12433 ;; 12434 amigaos*) 12435 # FIXME: we need at least 68020 code to build shared libraries, but 12436 # adding the `-m68020' flag to GCC prevents building anything better, 12437 # like `-m68040'. 12438 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12439 ;; 12440 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12441 # PIC is the default for these OSes. 12442 ;; 12443 mingw* | cygwin* | os2* | pw32*) 12444 # This hack is so that the source file can tell whether it is being 12445 # built for inclusion in a dll (and should export symbols for example). 12446 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12447 # (--disable-auto-import) libraries 12448 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12449 ;; 12450 darwin* | rhapsody*) 12451 # PIC is the default on this platform 12452 # Common symbols not allowed in MH_DYLIB files 12453 lt_prog_compiler_pic_CXX='-fno-common' 12454 ;; 12455 *djgpp*) 12456 # DJGPP does not support shared libraries at all 12457 lt_prog_compiler_pic_CXX= 12458 ;; 12459 interix[3-9]*) 12460 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12461 # Instead, we relocate shared libraries at runtime. 12462 ;; 12463 sysv4*MP*) 12464 if test -d /usr/nec; then 12465 lt_prog_compiler_pic_CXX=-Kconform_pic 12466 fi 12467 ;; 12468 hpux*) 12469 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12470 # not for PA HP-UX. 12471 case $host_cpu in 12472 hppa*64*|ia64*) 12473 ;; 12474 *) 12475 lt_prog_compiler_pic_CXX='-fPIC' 12476 ;; 12477 esac 12478 ;; 12479 *) 12480 lt_prog_compiler_pic_CXX='-fPIC' 12481 ;; 12482 esac 12483 else 12484 case $host_os in 12485 aix[4-9]*) 12486 # All AIX code is PIC. 12487 if test "$host_cpu" = ia64; then 12488 # AIX 5 now supports IA64 processor 12489 lt_prog_compiler_static_CXX='-Bstatic' 12490 else 12491 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12492 fi 12493 ;; 12494 chorus*) 12495 case $cc_basename in 12496 cxch68*) 12497 # Green Hills C++ Compiler 12498 # _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" 12499 ;; 12500 esac 12501 ;; 12502 darwin*) 12503 # PIC is the default on this platform 12504 # Common symbols not allowed in MH_DYLIB files 12505 case $cc_basename in 12506 xlc*) 12507 lt_prog_compiler_pic_CXX='-qnocommon' 12508 lt_prog_compiler_wl_CXX='-Wl,' 12509 ;; 12510 esac 12511 ;; 12512 dgux*) 12513 case $cc_basename in 12514 ec++*) 12515 lt_prog_compiler_pic_CXX='-KPIC' 12516 ;; 12517 ghcx*) 12518 # Green Hills C++ Compiler 12519 lt_prog_compiler_pic_CXX='-pic' 12520 ;; 12521 *) 12522 ;; 12523 esac 12524 ;; 12525 freebsd* | dragonfly*) 12526 # FreeBSD uses GNU C++ 12527 ;; 12528 hpux9* | hpux10* | hpux11*) 12529 case $cc_basename in 12530 CC*) 12531 lt_prog_compiler_wl_CXX='-Wl,' 12532 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12533 if test "$host_cpu" != ia64; then 12534 lt_prog_compiler_pic_CXX='+Z' 12535 fi 12536 ;; 12537 aCC*) 12538 lt_prog_compiler_wl_CXX='-Wl,' 12539 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12540 case $host_cpu in 12541 hppa*64*|ia64*) 12542 # +Z the default 12543 ;; 12544 *) 12545 lt_prog_compiler_pic_CXX='+Z' 12546 ;; 12547 esac 12548 ;; 12549 *) 12550 ;; 12551 esac 12552 ;; 12553 interix*) 12554 # This is c89, which is MS Visual C++ (no shared libs) 12555 # Anyone wants to do a port? 12556 ;; 12557 irix5* | irix6* | nonstopux*) 12558 case $cc_basename in 12559 CC*) 12560 lt_prog_compiler_wl_CXX='-Wl,' 12561 lt_prog_compiler_static_CXX='-non_shared' 12562 # CC pic flag -KPIC is the default. 12563 ;; 12564 *) 12565 ;; 12566 esac 12567 ;; 12568 linux* | k*bsd*-gnu) 12569 case $cc_basename in 12570 KCC*) 12571 # KAI C++ Compiler 12572 lt_prog_compiler_wl_CXX='--backend -Wl,' 12573 lt_prog_compiler_pic_CXX='-fPIC' 12574 ;; 12575 icpc* | ecpc*) 12576 # Intel C++ 12577 lt_prog_compiler_wl_CXX='-Wl,' 12578 lt_prog_compiler_pic_CXX='-KPIC' 12579 lt_prog_compiler_static_CXX='-static' 12580 ;; 12581 pgCC* | pgcpp*) 12582 # Portland Group C++ compiler. 12583 lt_prog_compiler_wl_CXX='-Wl,' 12584 lt_prog_compiler_pic_CXX='-fpic' 12585 lt_prog_compiler_static_CXX='-Bstatic' 12586 ;; 12587 cxx*) 12588 # Compaq C++ 12589 # Make sure the PIC flag is empty. It appears that all Alpha 12590 # Linux and Compaq Tru64 Unix objects are PIC. 12591 lt_prog_compiler_pic_CXX= 12592 lt_prog_compiler_static_CXX='-non_shared' 12593 ;; 12594 *) 12595 case `$CC -V 2>&1 | sed 5q` in 12596 *Sun\ C*) 12597 # Sun C++ 5.9 12598 lt_prog_compiler_pic_CXX='-KPIC' 12599 lt_prog_compiler_static_CXX='-Bstatic' 12600 lt_prog_compiler_wl_CXX='-Qoption ld ' 12601 ;; 12602 esac 12603 ;; 12604 esac 12605 ;; 12606 lynxos*) 12607 ;; 12608 m88k*) 12609 ;; 12610 mvs*) 12611 case $cc_basename in 12612 cxx*) 12613 lt_prog_compiler_pic_CXX='-W c,exportall' 12614 ;; 12615 *) 12616 ;; 12617 esac 12618 ;; 12619 netbsd* | netbsdelf*-gnu) 12620 ;; 12621 osf3* | osf4* | osf5*) 12622 case $cc_basename in 12623 KCC*) 12624 lt_prog_compiler_wl_CXX='--backend -Wl,' 12625 ;; 12626 RCC*) 12627 # Rational C++ 2.4.1 12628 lt_prog_compiler_pic_CXX='-pic' 12629 ;; 12630 cxx*) 12631 # Digital/Compaq C++ 12632 lt_prog_compiler_wl_CXX='-Wl,' 12633 # Make sure the PIC flag is empty. It appears that all Alpha 12634 # Linux and Compaq Tru64 Unix objects are PIC. 12635 lt_prog_compiler_pic_CXX= 12636 lt_prog_compiler_static_CXX='-non_shared' 12637 ;; 12638 *) 12639 ;; 12640 esac 12641 ;; 12642 psos*) 12643 ;; 12644 solaris*) 12645 case $cc_basename in 12646 CC*) 12647 # Sun C++ 4.2, 5.x and Centerline C++ 12648 lt_prog_compiler_pic_CXX='-KPIC' 12649 lt_prog_compiler_static_CXX='-Bstatic' 12650 lt_prog_compiler_wl_CXX='-Qoption ld ' 12651 ;; 12652 gcx*) 12653 # Green Hills C++ Compiler 12654 lt_prog_compiler_pic_CXX='-PIC' 12655 ;; 12656 *) 12657 ;; 12658 esac 12659 ;; 12660 sunos4*) 12661 case $cc_basename in 12662 CC*) 12663 # Sun C++ 4.x 12664 lt_prog_compiler_pic_CXX='-pic' 12665 lt_prog_compiler_static_CXX='-Bstatic' 12666 ;; 12667 lcc*) 12668 # Lucid 12669 lt_prog_compiler_pic_CXX='-pic' 12670 ;; 12671 *) 12672 ;; 12673 esac 12674 ;; 12675 tandem*) 12676 case $cc_basename in 12677 NCC*) 12678 # NonStop-UX NCC 3.20 12679 lt_prog_compiler_pic_CXX='-KPIC' 12680 ;; 12681 *) 12682 ;; 12683 esac 12684 ;; 12685 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12686 case $cc_basename in 12687 CC*) 12688 lt_prog_compiler_wl_CXX='-Wl,' 12689 lt_prog_compiler_pic_CXX='-KPIC' 12690 lt_prog_compiler_static_CXX='-Bstatic' 12691 ;; 12692 esac 12693 ;; 12694 vxworks*) 12695 ;; 12696 *) 12697 lt_prog_compiler_can_build_shared_CXX=no 12698 ;; 12699 esac 12700 fi 12701 12702{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12703echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12704 12705# 12706# Check to make sure the PIC flag actually works. 12707# 12708if test -n "$lt_prog_compiler_pic_CXX"; then 12709 12710{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12711echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12712if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12713 echo $ECHO_N "(cached) $ECHO_C" >&6 12714else 12715 lt_cv_prog_compiler_pic_works_CXX=no 12716 ac_outfile=conftest.$ac_objext 12717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12718 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12719 # Insert the option either (1) after the last *FLAGS variable, or 12720 # (2) before a word containing "conftest.", or (3) at the end. 12721 # Note that $ac_compile itself does not contain backslashes and begins 12722 # with a dollar sign (not a hyphen), so the echo should work correctly. 12723 # The option is referenced via a variable to avoid confusing sed. 12724 lt_compile=`echo "$ac_compile" | $SED \ 12725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12727 -e 's:$: $lt_compiler_flag:'` 12728 (eval echo "\"\$as_me:12728: $lt_compile\"" >&5) 12729 (eval "$lt_compile" 2>conftest.err) 12730 ac_status=$? 12731 cat conftest.err >&5 12732 echo "$as_me:12732: \$? = $ac_status" >&5 12733 if (exit $ac_status) && test -s "$ac_outfile"; then 12734 # The compiler can only warn and ignore the option if not recognized 12735 # So say no if there are warnings other than the usual output. 12736 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12739 lt_cv_prog_compiler_pic_works_CXX=yes 12740 fi 12741 fi 12742 $rm conftest* 12743 12744fi 12745{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12746echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12747 12748if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12749 case $lt_prog_compiler_pic_CXX in 12750 "" | " "*) ;; 12751 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12752 esac 12753else 12754 lt_prog_compiler_pic_CXX= 12755 lt_prog_compiler_can_build_shared_CXX=no 12756fi 12757 12758fi 12759case $host_os in 12760 # For platforms which do not support PIC, -DPIC is meaningless: 12761 *djgpp*) 12762 lt_prog_compiler_pic_CXX= 12763 ;; 12764 *) 12765 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12766 ;; 12767esac 12768 12769# 12770# Check to make sure the static flag actually works. 12771# 12772wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12773{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12774echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12775if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 12776 echo $ECHO_N "(cached) $ECHO_C" >&6 12777else 12778 lt_cv_prog_compiler_static_works_CXX=no 12779 save_LDFLAGS="$LDFLAGS" 12780 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12781 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12782 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12783 # The linker can only warn and ignore the option if not recognized 12784 # So say no if there are warnings 12785 if test -s conftest.err; then 12786 # Append any errors to the config.log. 12787 cat conftest.err 1>&5 12788 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12790 if diff conftest.exp conftest.er2 >/dev/null; then 12791 lt_cv_prog_compiler_static_works_CXX=yes 12792 fi 12793 else 12794 lt_cv_prog_compiler_static_works_CXX=yes 12795 fi 12796 fi 12797 $rm -r conftest* 12798 LDFLAGS="$save_LDFLAGS" 12799 12800fi 12801{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 12802echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } 12803 12804if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 12805 : 12806else 12807 lt_prog_compiler_static_CXX= 12808fi 12809 12810 12811{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12812echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12813if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12814 echo $ECHO_N "(cached) $ECHO_C" >&6 12815else 12816 lt_cv_prog_compiler_c_o_CXX=no 12817 $rm -r conftest 2>/dev/null 12818 mkdir conftest 12819 cd conftest 12820 mkdir out 12821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12822 12823 lt_compiler_flag="-o out/conftest2.$ac_objext" 12824 # Insert the option either (1) after the last *FLAGS variable, or 12825 # (2) before a word containing "conftest.", or (3) at the end. 12826 # Note that $ac_compile itself does not contain backslashes and begins 12827 # with a dollar sign (not a hyphen), so the echo should work correctly. 12828 lt_compile=`echo "$ac_compile" | $SED \ 12829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12831 -e 's:$: $lt_compiler_flag:'` 12832 (eval echo "\"\$as_me:12832: $lt_compile\"" >&5) 12833 (eval "$lt_compile" 2>out/conftest.err) 12834 ac_status=$? 12835 cat out/conftest.err >&5 12836 echo "$as_me:12836: \$? = $ac_status" >&5 12837 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12838 then 12839 # The compiler can only warn and ignore the option if not recognized 12840 # So say no if there are warnings 12841 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12842 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12843 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12844 lt_cv_prog_compiler_c_o_CXX=yes 12845 fi 12846 fi 12847 chmod u+w . 2>&5 12848 $rm conftest* 12849 # SGI C++ compiler will create directory out/ii_files/ for 12850 # template instantiation 12851 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12852 $rm out/* && rmdir out 12853 cd .. 12854 rmdir conftest 12855 $rm conftest* 12856 12857fi 12858{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12859echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12860 12861 12862hard_links="nottested" 12863if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12864 # do not overwrite the value of need_locks provided by the user 12865 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12866echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12867 hard_links=yes 12868 $rm conftest* 12869 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12870 touch conftest.a 12871 ln conftest.a conftest.b 2>&5 || hard_links=no 12872 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12873 { echo "$as_me:$LINENO: result: $hard_links" >&5 12874echo "${ECHO_T}$hard_links" >&6; } 12875 if test "$hard_links" = no; then 12876 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12877echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12878 need_locks=warn 12879 fi 12880else 12881 need_locks=no 12882fi 12883 12884{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12885echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12886 12887 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12888 case $host_os in 12889 aix[4-9]*) 12890 # If we're using GNU nm, then we don't want the "-C" option. 12891 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12892 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12893 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' 12894 else 12895 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' 12896 fi 12897 ;; 12898 pw32*) 12899 export_symbols_cmds_CXX="$ltdll_cmds" 12900 ;; 12901 cygwin* | mingw*) 12902 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' 12903 ;; 12904 linux* | k*bsd*-gnu) 12905 link_all_deplibs_CXX=no 12906 ;; 12907 *) 12908 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12909 ;; 12910 esac 12911 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12912 12913{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12914echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12915test "$ld_shlibs_CXX" = no && can_build_shared=no 12916 12917# 12918# Do we need to explicitly link libc? 12919# 12920case "x$archive_cmds_need_lc_CXX" in 12921x|xyes) 12922 # Assume -lc should be added 12923 archive_cmds_need_lc_CXX=yes 12924 12925 if test "$enable_shared" = yes && test "$GCC" = yes; then 12926 case $archive_cmds_CXX in 12927 *'~'*) 12928 # FIXME: we may have to deal with multi-command sequences. 12929 ;; 12930 '$CC '*) 12931 # Test whether the compiler implicitly links with -lc since on some 12932 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12933 # to ld, don't add -lc before -lgcc. 12934 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12935echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12936 $rm conftest* 12937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12938 12939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12940 (eval $ac_compile) 2>&5 12941 ac_status=$? 12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12943 (exit $ac_status); } 2>conftest.err; then 12944 soname=conftest 12945 lib=conftest 12946 libobjs=conftest.$ac_objext 12947 deplibs= 12948 wl=$lt_prog_compiler_wl_CXX 12949 pic_flag=$lt_prog_compiler_pic_CXX 12950 compiler_flags=-v 12951 linker_flags=-v 12952 verstring= 12953 output_objdir=. 12954 libname=conftest 12955 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12956 allow_undefined_flag_CXX= 12957 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12958 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12959 ac_status=$? 12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12961 (exit $ac_status); } 12962 then 12963 archive_cmds_need_lc_CXX=no 12964 else 12965 archive_cmds_need_lc_CXX=yes 12966 fi 12967 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12968 else 12969 cat conftest.err 1>&5 12970 fi 12971 $rm conftest* 12972 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12973echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12974 ;; 12975 esac 12976 fi 12977 ;; 12978esac 12979 12980{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12981echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12982library_names_spec= 12983libname_spec='lib$name' 12984soname_spec= 12985shrext_cmds=".so" 12986postinstall_cmds= 12987postuninstall_cmds= 12988finish_cmds= 12989finish_eval= 12990shlibpath_var= 12991shlibpath_overrides_runpath=unknown 12992version_type=none 12993dynamic_linker="$host_os ld.so" 12994sys_lib_dlsearch_path_spec="/lib /usr/lib" 12995 12996need_lib_prefix=unknown 12997hardcode_into_libs=no 12998 12999# when you set need_version to no, make sure it does not cause -set_version 13000# flags to be left without arguments 13001need_version=unknown 13002 13003case $host_os in 13004aix3*) 13005 version_type=linux 13006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13007 shlibpath_var=LIBPATH 13008 13009 # AIX 3 has no versioning support, so we append a major version to the name. 13010 soname_spec='${libname}${release}${shared_ext}$major' 13011 ;; 13012 13013aix[4-9]*) 13014 version_type=linux 13015 need_lib_prefix=no 13016 need_version=no 13017 hardcode_into_libs=yes 13018 if test "$host_cpu" = ia64; then 13019 # AIX 5 supports IA64 13020 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13021 shlibpath_var=LD_LIBRARY_PATH 13022 else 13023 # With GCC up to 2.95.x, collect2 would create an import file 13024 # for dependence libraries. The import file would start with 13025 # the line `#! .'. This would cause the generated library to 13026 # depend on `.', always an invalid library. This was fixed in 13027 # development snapshots of GCC prior to 3.0. 13028 case $host_os in 13029 aix4 | aix4.[01] | aix4.[01].*) 13030 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13031 echo ' yes ' 13032 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13033 : 13034 else 13035 can_build_shared=no 13036 fi 13037 ;; 13038 esac 13039 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13040 # soname into executable. Probably we can add versioning support to 13041 # collect2, so additional links can be useful in future. 13042 if test "$aix_use_runtimelinking" = yes; then 13043 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13044 # instead of lib<name>.a to let people know that these are not 13045 # typical AIX shared libraries. 13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13047 else 13048 # We preserve .a as extension for shared libraries through AIX4.2 13049 # and later when we are not doing run time linking. 13050 library_names_spec='${libname}${release}.a $libname.a' 13051 soname_spec='${libname}${release}${shared_ext}$major' 13052 fi 13053 shlibpath_var=LIBPATH 13054 fi 13055 ;; 13056 13057amigaos*) 13058 library_names_spec='$libname.ixlibrary $libname.a' 13059 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13060 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' 13061 ;; 13062 13063beos*) 13064 library_names_spec='${libname}${shared_ext}' 13065 dynamic_linker="$host_os ld.so" 13066 shlibpath_var=LIBRARY_PATH 13067 ;; 13068 13069bsdi[45]*) 13070 version_type=linux 13071 need_version=no 13072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13073 soname_spec='${libname}${release}${shared_ext}$major' 13074 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13075 shlibpath_var=LD_LIBRARY_PATH 13076 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13077 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13078 # the default ld.so.conf also contains /usr/contrib/lib and 13079 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13080 # libtool to hard-code these into programs 13081 ;; 13082 13083cygwin* | mingw* | pw32*) 13084 version_type=windows 13085 shrext_cmds=".dll" 13086 need_version=no 13087 need_lib_prefix=no 13088 13089 case $GCC,$host_os in 13090 yes,cygwin* | yes,mingw* | yes,pw32*) 13091 library_names_spec='$libname.dll.a' 13092 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13093 postinstall_cmds='base_file=`basename \${file}`~ 13094 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13095 dldir=$destdir/`dirname \$dlpath`~ 13096 test -d \$dldir || mkdir -p \$dldir~ 13097 $install_prog $dir/$dlname \$dldir/$dlname~ 13098 chmod a+x \$dldir/$dlname' 13099 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13100 dlpath=$dir/\$dldll~ 13101 $rm \$dlpath' 13102 shlibpath_overrides_runpath=yes 13103 13104 case $host_os in 13105 cygwin*) 13106 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13107 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13108 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13109 ;; 13110 mingw*) 13111 # MinGW DLLs use traditional 'lib' prefix 13112 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13113 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13114 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13115 # It is most probably a Windows format PATH printed by 13116 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13117 # path with ; separators, and with drive letters. We can handle the 13118 # drive letters (cygwin fileutils understands them), so leave them, 13119 # especially as we might pass files found there to a mingw objdump, 13120 # which wouldn't understand a cygwinified path. Ahh. 13121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13122 else 13123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13124 fi 13125 ;; 13126 pw32*) 13127 # pw32 DLLs use 'pw' prefix rather than 'lib' 13128 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13129 ;; 13130 esac 13131 ;; 13132 13133 *) 13134 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13135 ;; 13136 esac 13137 dynamic_linker='Win32 ld.exe' 13138 # FIXME: first we should search . and the directory the executable is in 13139 shlibpath_var=PATH 13140 ;; 13141 13142darwin* | rhapsody*) 13143 dynamic_linker="$host_os dyld" 13144 version_type=darwin 13145 need_lib_prefix=no 13146 need_version=no 13147 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13148 soname_spec='${libname}${release}${major}$shared_ext' 13149 shlibpath_overrides_runpath=yes 13150 shlibpath_var=DYLD_LIBRARY_PATH 13151 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13152 13153 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13154 ;; 13155 13156dgux*) 13157 version_type=linux 13158 need_lib_prefix=no 13159 need_version=no 13160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13161 soname_spec='${libname}${release}${shared_ext}$major' 13162 shlibpath_var=LD_LIBRARY_PATH 13163 ;; 13164 13165freebsd1*) 13166 dynamic_linker=no 13167 ;; 13168 13169freebsd* | dragonfly*) 13170 # DragonFly does not have aout. When/if they implement a new 13171 # versioning mechanism, adjust this. 13172 if test -x /usr/bin/objformat; then 13173 objformat=`/usr/bin/objformat` 13174 else 13175 case $host_os in 13176 freebsd[123]*) objformat=aout ;; 13177 *) objformat=elf ;; 13178 esac 13179 fi 13180 version_type=freebsd-$objformat 13181 case $version_type in 13182 freebsd-elf*) 13183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13184 need_version=no 13185 need_lib_prefix=no 13186 ;; 13187 freebsd-*) 13188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13189 need_version=yes 13190 ;; 13191 esac 13192 shlibpath_var=LD_LIBRARY_PATH 13193 case $host_os in 13194 freebsd2*) 13195 shlibpath_overrides_runpath=yes 13196 ;; 13197 freebsd3.[01]* | freebsdelf3.[01]*) 13198 shlibpath_overrides_runpath=yes 13199 hardcode_into_libs=yes 13200 ;; 13201 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13202 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13203 shlibpath_overrides_runpath=no 13204 hardcode_into_libs=yes 13205 ;; 13206 *) # from 4.6 on, and DragonFly 13207 shlibpath_overrides_runpath=yes 13208 hardcode_into_libs=yes 13209 ;; 13210 esac 13211 ;; 13212 13213gnu*) 13214 version_type=linux 13215 need_lib_prefix=no 13216 need_version=no 13217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13218 soname_spec='${libname}${release}${shared_ext}$major' 13219 shlibpath_var=LD_LIBRARY_PATH 13220 hardcode_into_libs=yes 13221 ;; 13222 13223hpux9* | hpux10* | hpux11*) 13224 # Give a soname corresponding to the major version so that dld.sl refuses to 13225 # link against other versions. 13226 version_type=sunos 13227 need_lib_prefix=no 13228 need_version=no 13229 case $host_cpu in 13230 ia64*) 13231 shrext_cmds='.so' 13232 hardcode_into_libs=yes 13233 dynamic_linker="$host_os dld.so" 13234 shlibpath_var=LD_LIBRARY_PATH 13235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13237 soname_spec='${libname}${release}${shared_ext}$major' 13238 if test "X$HPUX_IA64_MODE" = X32; then 13239 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13240 else 13241 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13242 fi 13243 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13244 ;; 13245 hppa*64*) 13246 shrext_cmds='.sl' 13247 hardcode_into_libs=yes 13248 dynamic_linker="$host_os dld.sl" 13249 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13250 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13252 soname_spec='${libname}${release}${shared_ext}$major' 13253 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13255 ;; 13256 *) 13257 shrext_cmds='.sl' 13258 dynamic_linker="$host_os dld.sl" 13259 shlibpath_var=SHLIB_PATH 13260 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13262 soname_spec='${libname}${release}${shared_ext}$major' 13263 ;; 13264 esac 13265 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13266 postinstall_cmds='chmod 555 $lib' 13267 ;; 13268 13269interix[3-9]*) 13270 version_type=linux 13271 need_lib_prefix=no 13272 need_version=no 13273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13274 soname_spec='${libname}${release}${shared_ext}$major' 13275 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13276 shlibpath_var=LD_LIBRARY_PATH 13277 shlibpath_overrides_runpath=no 13278 hardcode_into_libs=yes 13279 ;; 13280 13281irix5* | irix6* | nonstopux*) 13282 case $host_os in 13283 nonstopux*) version_type=nonstopux ;; 13284 *) 13285 if test "$lt_cv_prog_gnu_ld" = yes; then 13286 version_type=linux 13287 else 13288 version_type=irix 13289 fi ;; 13290 esac 13291 need_lib_prefix=no 13292 need_version=no 13293 soname_spec='${libname}${release}${shared_ext}$major' 13294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13295 case $host_os in 13296 irix5* | nonstopux*) 13297 libsuff= shlibsuff= 13298 ;; 13299 *) 13300 case $LD in # libtool.m4 will add one of these switches to LD 13301 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13302 libsuff= shlibsuff= libmagic=32-bit;; 13303 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13304 libsuff=32 shlibsuff=N32 libmagic=N32;; 13305 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13306 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13307 *) libsuff= shlibsuff= libmagic=never-match;; 13308 esac 13309 ;; 13310 esac 13311 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13312 shlibpath_overrides_runpath=no 13313 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13314 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13315 hardcode_into_libs=yes 13316 ;; 13317 13318# No shared lib support for Linux oldld, aout, or coff. 13319linux*oldld* | linux*aout* | linux*coff*) 13320 dynamic_linker=no 13321 ;; 13322 13323# This must be Linux ELF. 13324linux* | k*bsd*-gnu) 13325 version_type=linux 13326 need_lib_prefix=no 13327 need_version=no 13328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13329 soname_spec='${libname}${release}${shared_ext}$major' 13330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13331 shlibpath_var=LD_LIBRARY_PATH 13332 shlibpath_overrides_runpath=no 13333 # This implies no fast_install, which is unacceptable. 13334 # Some rework will be needed to allow for fast_install 13335 # before this can be enabled. 13336 hardcode_into_libs=yes 13337 13338 # Append ld.so.conf contents to the search path 13339 if test -f /etc/ld.so.conf; then 13340 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' ' '` 13341 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13342 fi 13343 13344 # We used to test for /lib/ld.so.1 and disable shared libraries on 13345 # powerpc, because MkLinux only supported shared libraries with the 13346 # GNU dynamic linker. Since this was broken with cross compilers, 13347 # most powerpc-linux boxes support dynamic linking these days and 13348 # people can always --disable-shared, the test was removed, and we 13349 # assume the GNU/Linux dynamic linker is in use. 13350 dynamic_linker='GNU/Linux ld.so' 13351 ;; 13352 13353netbsdelf*-gnu) 13354 version_type=linux 13355 need_lib_prefix=no 13356 need_version=no 13357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13358 soname_spec='${libname}${release}${shared_ext}$major' 13359 shlibpath_var=LD_LIBRARY_PATH 13360 shlibpath_overrides_runpath=no 13361 hardcode_into_libs=yes 13362 dynamic_linker='NetBSD ld.elf_so' 13363 ;; 13364 13365netbsd*) 13366 version_type=sunos 13367 need_lib_prefix=no 13368 need_version=no 13369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13372 dynamic_linker='NetBSD (a.out) ld.so' 13373 else 13374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13375 soname_spec='${libname}${release}${shared_ext}$major' 13376 dynamic_linker='NetBSD ld.elf_so' 13377 fi 13378 shlibpath_var=LD_LIBRARY_PATH 13379 shlibpath_overrides_runpath=yes 13380 hardcode_into_libs=yes 13381 ;; 13382 13383newsos6) 13384 version_type=linux 13385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13386 shlibpath_var=LD_LIBRARY_PATH 13387 shlibpath_overrides_runpath=yes 13388 ;; 13389 13390nto-qnx*) 13391 version_type=linux 13392 need_lib_prefix=no 13393 need_version=no 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 shlibpath_var=LD_LIBRARY_PATH 13397 shlibpath_overrides_runpath=yes 13398 ;; 13399 13400openbsd*) 13401 version_type=sunos 13402 sys_lib_dlsearch_path_spec="/usr/lib" 13403 need_lib_prefix=no 13404 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13405 case $host_os in 13406 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13407 *) need_version=no ;; 13408 esac 13409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13411 shlibpath_var=LD_LIBRARY_PATH 13412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13413 case $host_os in 13414 openbsd2.[89] | openbsd2.[89].*) 13415 shlibpath_overrides_runpath=no 13416 ;; 13417 *) 13418 shlibpath_overrides_runpath=yes 13419 ;; 13420 esac 13421 else 13422 shlibpath_overrides_runpath=yes 13423 fi 13424 ;; 13425 13426os2*) 13427 libname_spec='$name' 13428 shrext_cmds=".dll" 13429 need_lib_prefix=no 13430 library_names_spec='$libname${shared_ext} $libname.a' 13431 dynamic_linker='OS/2 ld.exe' 13432 shlibpath_var=LIBPATH 13433 ;; 13434 13435osf3* | osf4* | osf5*) 13436 version_type=osf 13437 need_lib_prefix=no 13438 need_version=no 13439 soname_spec='${libname}${release}${shared_ext}$major' 13440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13441 shlibpath_var=LD_LIBRARY_PATH 13442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13443 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13444 ;; 13445 13446rdos*) 13447 dynamic_linker=no 13448 ;; 13449 13450solaris*) 13451 version_type=linux 13452 need_lib_prefix=no 13453 need_version=no 13454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13455 soname_spec='${libname}${release}${shared_ext}$major' 13456 shlibpath_var=LD_LIBRARY_PATH 13457 shlibpath_overrides_runpath=yes 13458 hardcode_into_libs=yes 13459 # ldd complains unless libraries are executable 13460 postinstall_cmds='chmod +x $lib' 13461 ;; 13462 13463sunos4*) 13464 version_type=sunos 13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13466 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13467 shlibpath_var=LD_LIBRARY_PATH 13468 shlibpath_overrides_runpath=yes 13469 if test "$with_gnu_ld" = yes; then 13470 need_lib_prefix=no 13471 fi 13472 need_version=yes 13473 ;; 13474 13475sysv4 | sysv4.3*) 13476 version_type=linux 13477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13478 soname_spec='${libname}${release}${shared_ext}$major' 13479 shlibpath_var=LD_LIBRARY_PATH 13480 case $host_vendor in 13481 sni) 13482 shlibpath_overrides_runpath=no 13483 need_lib_prefix=no 13484 export_dynamic_flag_spec='${wl}-Blargedynsym' 13485 runpath_var=LD_RUN_PATH 13486 ;; 13487 siemens) 13488 need_lib_prefix=no 13489 ;; 13490 motorola) 13491 need_lib_prefix=no 13492 need_version=no 13493 shlibpath_overrides_runpath=no 13494 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13495 ;; 13496 esac 13497 ;; 13498 13499sysv4*MP*) 13500 if test -d /usr/nec ;then 13501 version_type=linux 13502 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13503 soname_spec='$libname${shared_ext}.$major' 13504 shlibpath_var=LD_LIBRARY_PATH 13505 fi 13506 ;; 13507 13508sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13509 version_type=freebsd-elf 13510 need_lib_prefix=no 13511 need_version=no 13512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13513 soname_spec='${libname}${release}${shared_ext}$major' 13514 shlibpath_var=LD_LIBRARY_PATH 13515 hardcode_into_libs=yes 13516 if test "$with_gnu_ld" = yes; then 13517 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13518 shlibpath_overrides_runpath=no 13519 else 13520 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13521 shlibpath_overrides_runpath=yes 13522 case $host_os in 13523 sco3.2v5*) 13524 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13525 ;; 13526 esac 13527 fi 13528 sys_lib_dlsearch_path_spec='/usr/lib' 13529 ;; 13530 13531uts4*) 13532 version_type=linux 13533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13534 soname_spec='${libname}${release}${shared_ext}$major' 13535 shlibpath_var=LD_LIBRARY_PATH 13536 ;; 13537 13538*) 13539 dynamic_linker=no 13540 ;; 13541esac 13542{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13543echo "${ECHO_T}$dynamic_linker" >&6; } 13544test "$dynamic_linker" = no && can_build_shared=no 13545 13546if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13547 echo $ECHO_N "(cached) $ECHO_C" >&6 13548else 13549 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13550fi 13551 13552sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13553if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13554 echo $ECHO_N "(cached) $ECHO_C" >&6 13555else 13556 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13557fi 13558 13559sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13560 13561variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13562if test "$GCC" = yes; then 13563 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13564fi 13565 13566{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13567echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13568hardcode_action_CXX= 13569if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13570 test -n "$runpath_var_CXX" || \ 13571 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13572 13573 # We can hardcode non-existant directories. 13574 if test "$hardcode_direct_CXX" != no && 13575 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13576 # have to relink, otherwise we might link with an installed library 13577 # when we should be linking with a yet-to-be-installed one 13578 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13579 test "$hardcode_minus_L_CXX" != no; then 13580 # Linking always hardcodes the temporary library directory. 13581 hardcode_action_CXX=relink 13582 else 13583 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13584 hardcode_action_CXX=immediate 13585 fi 13586else 13587 # We cannot hardcode anything, or else we can only hardcode existing 13588 # directories. 13589 hardcode_action_CXX=unsupported 13590fi 13591{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13592echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13593 13594if test "$hardcode_action_CXX" = relink; then 13595 # Fast installation is not supported 13596 enable_fast_install=no 13597elif test "$shlibpath_overrides_runpath" = yes || 13598 test "$enable_shared" = no; then 13599 # Fast installation is not necessary 13600 enable_fast_install=needless 13601fi 13602 13603 13604# The else clause should only fire when bootstrapping the 13605# libtool distribution, otherwise you forgot to ship ltmain.sh 13606# with your package, and you will get complaints that there are 13607# no rules to generate ltmain.sh. 13608if test -f "$ltmain"; then 13609 # See if we are running on zsh, and set the options which allow our commands through 13610 # without removal of \ escapes. 13611 if test -n "${ZSH_VERSION+set}" ; then 13612 setopt NO_GLOB_SUBST 13613 fi 13614 # Now quote all the things that may contain metacharacters while being 13615 # careful not to overquote the AC_SUBSTed values. We take copies of the 13616 # variables and quote the copies for generation of the libtool script. 13617 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13618 SED SHELL STRIP \ 13619 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13620 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13621 deplibs_check_method reload_flag reload_cmds need_locks \ 13622 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13623 lt_cv_sys_global_symbol_to_c_name_address \ 13624 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13625 old_postinstall_cmds old_postuninstall_cmds \ 13626 compiler_CXX \ 13627 CC_CXX \ 13628 LD_CXX \ 13629 lt_prog_compiler_wl_CXX \ 13630 lt_prog_compiler_pic_CXX \ 13631 lt_prog_compiler_static_CXX \ 13632 lt_prog_compiler_no_builtin_flag_CXX \ 13633 export_dynamic_flag_spec_CXX \ 13634 thread_safe_flag_spec_CXX \ 13635 whole_archive_flag_spec_CXX \ 13636 enable_shared_with_static_runtimes_CXX \ 13637 old_archive_cmds_CXX \ 13638 old_archive_from_new_cmds_CXX \ 13639 predep_objects_CXX \ 13640 postdep_objects_CXX \ 13641 predeps_CXX \ 13642 postdeps_CXX \ 13643 compiler_lib_search_path_CXX \ 13644 compiler_lib_search_dirs_CXX \ 13645 archive_cmds_CXX \ 13646 archive_expsym_cmds_CXX \ 13647 postinstall_cmds_CXX \ 13648 postuninstall_cmds_CXX \ 13649 old_archive_from_expsyms_cmds_CXX \ 13650 allow_undefined_flag_CXX \ 13651 no_undefined_flag_CXX \ 13652 export_symbols_cmds_CXX \ 13653 hardcode_libdir_flag_spec_CXX \ 13654 hardcode_libdir_flag_spec_ld_CXX \ 13655 hardcode_libdir_separator_CXX \ 13656 hardcode_automatic_CXX \ 13657 module_cmds_CXX \ 13658 module_expsym_cmds_CXX \ 13659 lt_cv_prog_compiler_c_o_CXX \ 13660 fix_srcfile_path_CXX \ 13661 exclude_expsyms_CXX \ 13662 include_expsyms_CXX; do 13663 13664 case $var in 13665 old_archive_cmds_CXX | \ 13666 old_archive_from_new_cmds_CXX | \ 13667 archive_cmds_CXX | \ 13668 archive_expsym_cmds_CXX | \ 13669 module_cmds_CXX | \ 13670 module_expsym_cmds_CXX | \ 13671 old_archive_from_expsyms_cmds_CXX | \ 13672 export_symbols_cmds_CXX | \ 13673 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13674 postinstall_cmds | postuninstall_cmds | \ 13675 old_postinstall_cmds | old_postuninstall_cmds | \ 13676 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13677 # Double-quote double-evaled strings. 13678 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13679 ;; 13680 *) 13681 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13682 ;; 13683 esac 13684 done 13685 13686 case $lt_echo in 13687 *'\$0 --fallback-echo"') 13688 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13689 ;; 13690 esac 13691 13692cfgfile="$ofile" 13693 13694 cat <<__EOF__ >> "$cfgfile" 13695# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13696 13697# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13698 13699# Shell to use when invoking shell scripts. 13700SHELL=$lt_SHELL 13701 13702# Whether or not to build shared libraries. 13703build_libtool_libs=$enable_shared 13704 13705# Whether or not to build static libraries. 13706build_old_libs=$enable_static 13707 13708# Whether or not to add -lc for building shared libraries. 13709build_libtool_need_lc=$archive_cmds_need_lc_CXX 13710 13711# Whether or not to disallow shared libs when runtime libs are static 13712allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13713 13714# Whether or not to optimize for fast installation. 13715fast_install=$enable_fast_install 13716 13717# The host system. 13718host_alias=$host_alias 13719host=$host 13720host_os=$host_os 13721 13722# The build system. 13723build_alias=$build_alias 13724build=$build 13725build_os=$build_os 13726 13727# An echo program that does not interpret backslashes. 13728echo=$lt_echo 13729 13730# The archiver. 13731AR=$lt_AR 13732AR_FLAGS=$lt_AR_FLAGS 13733 13734# A C compiler. 13735LTCC=$lt_LTCC 13736 13737# LTCC compiler flags. 13738LTCFLAGS=$lt_LTCFLAGS 13739 13740# A language-specific compiler. 13741CC=$lt_compiler_CXX 13742 13743# Is the compiler the GNU C compiler? 13744with_gcc=$GCC_CXX 13745 13746# An ERE matcher. 13747EGREP=$lt_EGREP 13748 13749# The linker used to build libraries. 13750LD=$lt_LD_CXX 13751 13752# Whether we need hard or soft links. 13753LN_S=$lt_LN_S 13754 13755# A BSD-compatible nm program. 13756NM=$lt_NM 13757 13758# A symbol stripping program 13759STRIP=$lt_STRIP 13760 13761# Used to examine libraries when file_magic_cmd begins "file" 13762MAGIC_CMD=$MAGIC_CMD 13763 13764# Used on cygwin: DLL creation program. 13765DLLTOOL="$DLLTOOL" 13766 13767# Used on cygwin: object dumper. 13768OBJDUMP="$OBJDUMP" 13769 13770# Used on cygwin: assembler. 13771AS="$AS" 13772 13773# The name of the directory that contains temporary libtool files. 13774objdir=$objdir 13775 13776# How to create reloadable object files. 13777reload_flag=$lt_reload_flag 13778reload_cmds=$lt_reload_cmds 13779 13780# How to pass a linker flag through the compiler. 13781wl=$lt_lt_prog_compiler_wl_CXX 13782 13783# Object file suffix (normally "o"). 13784objext="$ac_objext" 13785 13786# Old archive suffix (normally "a"). 13787libext="$libext" 13788 13789# Shared library suffix (normally ".so"). 13790shrext_cmds='$shrext_cmds' 13791 13792# Executable file suffix (normally ""). 13793exeext="$exeext" 13794 13795# Additional compiler flags for building library objects. 13796pic_flag=$lt_lt_prog_compiler_pic_CXX 13797pic_mode=$pic_mode 13798 13799# What is the maximum length of a command? 13800max_cmd_len=$lt_cv_sys_max_cmd_len 13801 13802# Does compiler simultaneously support -c and -o options? 13803compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13804 13805# Must we lock files when doing compilation? 13806need_locks=$lt_need_locks 13807 13808# Do we need the lib prefix for modules? 13809need_lib_prefix=$need_lib_prefix 13810 13811# Do we need a version for libraries? 13812need_version=$need_version 13813 13814# Whether dlopen is supported. 13815dlopen_support=$enable_dlopen 13816 13817# Whether dlopen of programs is supported. 13818dlopen_self=$enable_dlopen_self 13819 13820# Whether dlopen of statically linked programs is supported. 13821dlopen_self_static=$enable_dlopen_self_static 13822 13823# Compiler flag to prevent dynamic linking. 13824link_static_flag=$lt_lt_prog_compiler_static_CXX 13825 13826# Compiler flag to turn off builtin functions. 13827no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13828 13829# Compiler flag to allow reflexive dlopens. 13830export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13831 13832# Compiler flag to generate shared objects directly from archives. 13833whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13834 13835# Compiler flag to generate thread-safe objects. 13836thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13837 13838# Library versioning type. 13839version_type=$version_type 13840 13841# Format of library name prefix. 13842libname_spec=$lt_libname_spec 13843 13844# List of archive names. First name is the real one, the rest are links. 13845# The last name is the one that the linker finds with -lNAME. 13846library_names_spec=$lt_library_names_spec 13847 13848# The coded name of the library, if different from the real name. 13849soname_spec=$lt_soname_spec 13850 13851# Commands used to build and install an old-style archive. 13852RANLIB=$lt_RANLIB 13853old_archive_cmds=$lt_old_archive_cmds_CXX 13854old_postinstall_cmds=$lt_old_postinstall_cmds 13855old_postuninstall_cmds=$lt_old_postuninstall_cmds 13856 13857# Create an old-style archive from a shared archive. 13858old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13859 13860# Create a temporary old-style archive to link instead of a shared archive. 13861old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13862 13863# Commands used to build and install a shared archive. 13864archive_cmds=$lt_archive_cmds_CXX 13865archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13866postinstall_cmds=$lt_postinstall_cmds 13867postuninstall_cmds=$lt_postuninstall_cmds 13868 13869# Commands used to build a loadable module (assumed same as above if empty) 13870module_cmds=$lt_module_cmds_CXX 13871module_expsym_cmds=$lt_module_expsym_cmds_CXX 13872 13873# Commands to strip libraries. 13874old_striplib=$lt_old_striplib 13875striplib=$lt_striplib 13876 13877# Dependencies to place before the objects being linked to create a 13878# shared library. 13879predep_objects=$lt_predep_objects_CXX 13880 13881# Dependencies to place after the objects being linked to create a 13882# shared library. 13883postdep_objects=$lt_postdep_objects_CXX 13884 13885# Dependencies to place before the objects being linked to create a 13886# shared library. 13887predeps=$lt_predeps_CXX 13888 13889# Dependencies to place after the objects being linked to create a 13890# shared library. 13891postdeps=$lt_postdeps_CXX 13892 13893# The directories searched by this compiler when creating a shared 13894# library 13895compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 13896 13897# The library search path used internally by the compiler when linking 13898# a shared library. 13899compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13900 13901# Method to check whether dependent libraries are shared objects. 13902deplibs_check_method=$lt_deplibs_check_method 13903 13904# Command to use when deplibs_check_method == file_magic. 13905file_magic_cmd=$lt_file_magic_cmd 13906 13907# Flag that allows shared libraries with undefined symbols to be built. 13908allow_undefined_flag=$lt_allow_undefined_flag_CXX 13909 13910# Flag that forces no undefined symbols. 13911no_undefined_flag=$lt_no_undefined_flag_CXX 13912 13913# Commands used to finish a libtool library installation in a directory. 13914finish_cmds=$lt_finish_cmds 13915 13916# Same as above, but a single script fragment to be evaled but not shown. 13917finish_eval=$lt_finish_eval 13918 13919# Take the output of nm and produce a listing of raw symbols and C names. 13920global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13921 13922# Transform the output of nm in a proper C declaration 13923global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13924 13925# Transform the output of nm in a C name address pair 13926global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13927 13928# This is the shared library runtime path variable. 13929runpath_var=$runpath_var 13930 13931# This is the shared library path variable. 13932shlibpath_var=$shlibpath_var 13933 13934# Is shlibpath searched before the hard-coded library search path? 13935shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13936 13937# How to hardcode a shared library path into an executable. 13938hardcode_action=$hardcode_action_CXX 13939 13940# Whether we should hardcode library paths into libraries. 13941hardcode_into_libs=$hardcode_into_libs 13942 13943# Flag to hardcode \$libdir into a binary during linking. 13944# This must work even if \$libdir does not exist. 13945hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13946 13947# If ld is used when linking, flag to hardcode \$libdir into 13948# a binary during linking. This must work even if \$libdir does 13949# not exist. 13950hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13951 13952# Whether we need a single -rpath flag with a separated argument. 13953hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13954 13955# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13956# resulting binary. 13957hardcode_direct=$hardcode_direct_CXX 13958 13959# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13960# resulting binary. 13961hardcode_minus_L=$hardcode_minus_L_CXX 13962 13963# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13964# the resulting binary. 13965hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13966 13967# Set to yes if building a shared library automatically hardcodes DIR into the library 13968# and all subsequent libraries and executables linked against it. 13969hardcode_automatic=$hardcode_automatic_CXX 13970 13971# Variables whose values should be saved in libtool wrapper scripts and 13972# restored at relink time. 13973variables_saved_for_relink="$variables_saved_for_relink" 13974 13975# Whether libtool must link a program against all its dependency libraries. 13976link_all_deplibs=$link_all_deplibs_CXX 13977 13978# Compile-time system search path for libraries 13979sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13980 13981# Run-time system search path for libraries 13982sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13983 13984# Fix the shell variable \$srcfile for the compiler. 13985fix_srcfile_path=$lt_fix_srcfile_path 13986 13987# Set to yes if exported symbols are required. 13988always_export_symbols=$always_export_symbols_CXX 13989 13990# The commands to list exported symbols. 13991export_symbols_cmds=$lt_export_symbols_cmds_CXX 13992 13993# The commands to extract the exported symbol list from a shared archive. 13994extract_expsyms_cmds=$lt_extract_expsyms_cmds 13995 13996# Symbols that should not be listed in the preloaded symbols. 13997exclude_expsyms=$lt_exclude_expsyms_CXX 13998 13999# Symbols that must always be exported. 14000include_expsyms=$lt_include_expsyms_CXX 14001 14002# ### END LIBTOOL TAG CONFIG: $tagname 14003 14004__EOF__ 14005 14006 14007else 14008 # If there is no Makefile yet, we rely on a make rule to execute 14009 # `config.status --recheck' to rerun these tests and create the 14010 # libtool script then. 14011 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14012 if test -f "$ltmain_in"; then 14013 test -f Makefile && make "$ltmain" 14014 fi 14015fi 14016 14017 14018ac_ext=c 14019ac_cpp='$CPP $CPPFLAGS' 14020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14022ac_compiler_gnu=$ac_cv_c_compiler_gnu 14023 14024CC=$lt_save_CC 14025LDCXX=$LD 14026LD=$lt_save_LD 14027GCC=$lt_save_GCC 14028with_gnu_ldcxx=$with_gnu_ld 14029with_gnu_ld=$lt_save_with_gnu_ld 14030lt_cv_path_LDCXX=$lt_cv_path_LD 14031lt_cv_path_LD=$lt_save_path_LD 14032lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14033lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14034 14035 else 14036 tagname="" 14037 fi 14038 ;; 14039 14040 F77) 14041 if test -n "$F77" && test "X$F77" != "Xno"; then 14042 14043ac_ext=f 14044ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14045ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14046ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14047 14048 14049archive_cmds_need_lc_F77=no 14050allow_undefined_flag_F77= 14051always_export_symbols_F77=no 14052archive_expsym_cmds_F77= 14053export_dynamic_flag_spec_F77= 14054hardcode_direct_F77=no 14055hardcode_libdir_flag_spec_F77= 14056hardcode_libdir_flag_spec_ld_F77= 14057hardcode_libdir_separator_F77= 14058hardcode_minus_L_F77=no 14059hardcode_automatic_F77=no 14060module_cmds_F77= 14061module_expsym_cmds_F77= 14062link_all_deplibs_F77=unknown 14063old_archive_cmds_F77=$old_archive_cmds 14064no_undefined_flag_F77= 14065whole_archive_flag_spec_F77= 14066enable_shared_with_static_runtimes_F77=no 14067 14068# Source file extension for f77 test sources. 14069ac_ext=f 14070 14071# Object file extension for compiled f77 test sources. 14072objext=o 14073objext_F77=$objext 14074 14075# Code to be used in simple compile tests 14076lt_simple_compile_test_code="\ 14077 subroutine t 14078 return 14079 end 14080" 14081 14082# Code to be used in simple link tests 14083lt_simple_link_test_code="\ 14084 program t 14085 end 14086" 14087 14088# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14089 14090# If no C compiler was specified, use CC. 14091LTCC=${LTCC-"$CC"} 14092 14093# If no C compiler flags were specified, use CFLAGS. 14094LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14095 14096# Allow CC to be a program name with arguments. 14097compiler=$CC 14098 14099 14100# save warnings/boilerplate of simple test code 14101ac_outfile=conftest.$ac_objext 14102echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14103eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14104_lt_compiler_boilerplate=`cat conftest.err` 14105$rm conftest* 14106 14107ac_outfile=conftest.$ac_objext 14108echo "$lt_simple_link_test_code" >conftest.$ac_ext 14109eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14110_lt_linker_boilerplate=`cat conftest.err` 14111$rm -r conftest* 14112 14113 14114# Allow CC to be a program name with arguments. 14115lt_save_CC="$CC" 14116CC=${F77-"f77"} 14117compiler=$CC 14118compiler_F77=$CC 14119for cc_temp in $compiler""; do 14120 case $cc_temp in 14121 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14122 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14123 \-*) ;; 14124 *) break;; 14125 esac 14126done 14127cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14128 14129 14130{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14131echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14132{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14133echo "${ECHO_T}$can_build_shared" >&6; } 14134 14135{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14136echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14137test "$can_build_shared" = "no" && enable_shared=no 14138 14139# On AIX, shared libraries and static libraries use the same namespace, and 14140# are all built from PIC. 14141case $host_os in 14142aix3*) 14143 test "$enable_shared" = yes && enable_static=no 14144 if test -n "$RANLIB"; then 14145 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14146 postinstall_cmds='$RANLIB $lib' 14147 fi 14148 ;; 14149aix[4-9]*) 14150 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14151 test "$enable_shared" = yes && enable_static=no 14152 fi 14153 ;; 14154esac 14155{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14156echo "${ECHO_T}$enable_shared" >&6; } 14157 14158{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14159echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14160# Make sure either enable_shared or enable_static is yes. 14161test "$enable_shared" = yes || enable_static=yes 14162{ echo "$as_me:$LINENO: result: $enable_static" >&5 14163echo "${ECHO_T}$enable_static" >&6; } 14164 14165GCC_F77="$G77" 14166LD_F77="$LD" 14167 14168lt_prog_compiler_wl_F77= 14169lt_prog_compiler_pic_F77= 14170lt_prog_compiler_static_F77= 14171 14172{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14173echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14174 14175 if test "$GCC" = yes; then 14176 lt_prog_compiler_wl_F77='-Wl,' 14177 lt_prog_compiler_static_F77='-static' 14178 14179 case $host_os in 14180 aix*) 14181 # All AIX code is PIC. 14182 if test "$host_cpu" = ia64; then 14183 # AIX 5 now supports IA64 processor 14184 lt_prog_compiler_static_F77='-Bstatic' 14185 fi 14186 ;; 14187 14188 amigaos*) 14189 # FIXME: we need at least 68020 code to build shared libraries, but 14190 # adding the `-m68020' flag to GCC prevents building anything better, 14191 # like `-m68040'. 14192 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14193 ;; 14194 14195 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14196 # PIC is the default for these OSes. 14197 ;; 14198 14199 mingw* | cygwin* | pw32* | os2*) 14200 # This hack is so that the source file can tell whether it is being 14201 # built for inclusion in a dll (and should export symbols for example). 14202 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14203 # (--disable-auto-import) libraries 14204 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14205 ;; 14206 14207 darwin* | rhapsody*) 14208 # PIC is the default on this platform 14209 # Common symbols not allowed in MH_DYLIB files 14210 lt_prog_compiler_pic_F77='-fno-common' 14211 ;; 14212 14213 interix[3-9]*) 14214 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14215 # Instead, we relocate shared libraries at runtime. 14216 ;; 14217 14218 msdosdjgpp*) 14219 # Just because we use GCC doesn't mean we suddenly get shared libraries 14220 # on systems that don't support them. 14221 lt_prog_compiler_can_build_shared_F77=no 14222 enable_shared=no 14223 ;; 14224 14225 sysv4*MP*) 14226 if test -d /usr/nec; then 14227 lt_prog_compiler_pic_F77=-Kconform_pic 14228 fi 14229 ;; 14230 14231 hpux*) 14232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14233 # not for PA HP-UX. 14234 case $host_cpu in 14235 hppa*64*|ia64*) 14236 # +Z the default 14237 ;; 14238 *) 14239 lt_prog_compiler_pic_F77='-fPIC' 14240 ;; 14241 esac 14242 ;; 14243 14244 *) 14245 lt_prog_compiler_pic_F77='-fPIC' 14246 ;; 14247 esac 14248 else 14249 # PORTME Check for flag to pass linker flags through the system compiler. 14250 case $host_os in 14251 aix*) 14252 lt_prog_compiler_wl_F77='-Wl,' 14253 if test "$host_cpu" = ia64; then 14254 # AIX 5 now supports IA64 processor 14255 lt_prog_compiler_static_F77='-Bstatic' 14256 else 14257 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14258 fi 14259 ;; 14260 darwin*) 14261 # PIC is the default on this platform 14262 # Common symbols not allowed in MH_DYLIB files 14263 case $cc_basename in 14264 xlc*) 14265 lt_prog_compiler_pic_F77='-qnocommon' 14266 lt_prog_compiler_wl_F77='-Wl,' 14267 ;; 14268 esac 14269 ;; 14270 14271 mingw* | cygwin* | pw32* | os2*) 14272 # This hack is so that the source file can tell whether it is being 14273 # built for inclusion in a dll (and should export symbols for example). 14274 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14275 ;; 14276 14277 hpux9* | hpux10* | hpux11*) 14278 lt_prog_compiler_wl_F77='-Wl,' 14279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14280 # not for PA HP-UX. 14281 case $host_cpu in 14282 hppa*64*|ia64*) 14283 # +Z the default 14284 ;; 14285 *) 14286 lt_prog_compiler_pic_F77='+Z' 14287 ;; 14288 esac 14289 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14290 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14291 ;; 14292 14293 irix5* | irix6* | nonstopux*) 14294 lt_prog_compiler_wl_F77='-Wl,' 14295 # PIC (with -KPIC) is the default. 14296 lt_prog_compiler_static_F77='-non_shared' 14297 ;; 14298 14299 newsos6) 14300 lt_prog_compiler_pic_F77='-KPIC' 14301 lt_prog_compiler_static_F77='-Bstatic' 14302 ;; 14303 14304 linux* | k*bsd*-gnu) 14305 case $cc_basename in 14306 icc* | ecc*) 14307 lt_prog_compiler_wl_F77='-Wl,' 14308 lt_prog_compiler_pic_F77='-KPIC' 14309 lt_prog_compiler_static_F77='-static' 14310 ;; 14311 pgcc* | pgf77* | pgf90* | pgf95*) 14312 # Portland Group compilers (*not* the Pentium gcc compiler, 14313 # which looks to be a dead project) 14314 lt_prog_compiler_wl_F77='-Wl,' 14315 lt_prog_compiler_pic_F77='-fpic' 14316 lt_prog_compiler_static_F77='-Bstatic' 14317 ;; 14318 ccc*) 14319 lt_prog_compiler_wl_F77='-Wl,' 14320 # All Alpha code is PIC. 14321 lt_prog_compiler_static_F77='-non_shared' 14322 ;; 14323 *) 14324 case `$CC -V 2>&1 | sed 5q` in 14325 *Sun\ C*) 14326 # Sun C 5.9 14327 lt_prog_compiler_pic_F77='-KPIC' 14328 lt_prog_compiler_static_F77='-Bstatic' 14329 lt_prog_compiler_wl_F77='-Wl,' 14330 ;; 14331 *Sun\ F*) 14332 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14333 lt_prog_compiler_pic_F77='-KPIC' 14334 lt_prog_compiler_static_F77='-Bstatic' 14335 lt_prog_compiler_wl_F77='' 14336 ;; 14337 esac 14338 ;; 14339 esac 14340 ;; 14341 14342 osf3* | osf4* | osf5*) 14343 lt_prog_compiler_wl_F77='-Wl,' 14344 # All OSF/1 code is PIC. 14345 lt_prog_compiler_static_F77='-non_shared' 14346 ;; 14347 14348 rdos*) 14349 lt_prog_compiler_static_F77='-non_shared' 14350 ;; 14351 14352 solaris*) 14353 lt_prog_compiler_pic_F77='-KPIC' 14354 lt_prog_compiler_static_F77='-Bstatic' 14355 case $cc_basename in 14356 f77* | f90* | f95*) 14357 lt_prog_compiler_wl_F77='-Qoption ld ';; 14358 *) 14359 lt_prog_compiler_wl_F77='-Wl,';; 14360 esac 14361 ;; 14362 14363 sunos4*) 14364 lt_prog_compiler_wl_F77='-Qoption ld ' 14365 lt_prog_compiler_pic_F77='-PIC' 14366 lt_prog_compiler_static_F77='-Bstatic' 14367 ;; 14368 14369 sysv4 | sysv4.2uw2* | sysv4.3*) 14370 lt_prog_compiler_wl_F77='-Wl,' 14371 lt_prog_compiler_pic_F77='-KPIC' 14372 lt_prog_compiler_static_F77='-Bstatic' 14373 ;; 14374 14375 sysv4*MP*) 14376 if test -d /usr/nec ;then 14377 lt_prog_compiler_pic_F77='-Kconform_pic' 14378 lt_prog_compiler_static_F77='-Bstatic' 14379 fi 14380 ;; 14381 14382 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14383 lt_prog_compiler_wl_F77='-Wl,' 14384 lt_prog_compiler_pic_F77='-KPIC' 14385 lt_prog_compiler_static_F77='-Bstatic' 14386 ;; 14387 14388 unicos*) 14389 lt_prog_compiler_wl_F77='-Wl,' 14390 lt_prog_compiler_can_build_shared_F77=no 14391 ;; 14392 14393 uts4*) 14394 lt_prog_compiler_pic_F77='-pic' 14395 lt_prog_compiler_static_F77='-Bstatic' 14396 ;; 14397 14398 *) 14399 lt_prog_compiler_can_build_shared_F77=no 14400 ;; 14401 esac 14402 fi 14403 14404{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14405echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14406 14407# 14408# Check to make sure the PIC flag actually works. 14409# 14410if test -n "$lt_prog_compiler_pic_F77"; then 14411 14412{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14413echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14414if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14415 echo $ECHO_N "(cached) $ECHO_C" >&6 14416else 14417 lt_cv_prog_compiler_pic_works_F77=no 14418 ac_outfile=conftest.$ac_objext 14419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14420 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14421 # Insert the option either (1) after the last *FLAGS variable, or 14422 # (2) before a word containing "conftest.", or (3) at the end. 14423 # Note that $ac_compile itself does not contain backslashes and begins 14424 # with a dollar sign (not a hyphen), so the echo should work correctly. 14425 # The option is referenced via a variable to avoid confusing sed. 14426 lt_compile=`echo "$ac_compile" | $SED \ 14427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14429 -e 's:$: $lt_compiler_flag:'` 14430 (eval echo "\"\$as_me:14430: $lt_compile\"" >&5) 14431 (eval "$lt_compile" 2>conftest.err) 14432 ac_status=$? 14433 cat conftest.err >&5 14434 echo "$as_me:14434: \$? = $ac_status" >&5 14435 if (exit $ac_status) && test -s "$ac_outfile"; then 14436 # The compiler can only warn and ignore the option if not recognized 14437 # So say no if there are warnings other than the usual output. 14438 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14441 lt_cv_prog_compiler_pic_works_F77=yes 14442 fi 14443 fi 14444 $rm conftest* 14445 14446fi 14447{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14448echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } 14449 14450if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14451 case $lt_prog_compiler_pic_F77 in 14452 "" | " "*) ;; 14453 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14454 esac 14455else 14456 lt_prog_compiler_pic_F77= 14457 lt_prog_compiler_can_build_shared_F77=no 14458fi 14459 14460fi 14461case $host_os in 14462 # For platforms which do not support PIC, -DPIC is meaningless: 14463 *djgpp*) 14464 lt_prog_compiler_pic_F77= 14465 ;; 14466 *) 14467 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14468 ;; 14469esac 14470 14471# 14472# Check to make sure the static flag actually works. 14473# 14474wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14475{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14476echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14477if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14478 echo $ECHO_N "(cached) $ECHO_C" >&6 14479else 14480 lt_cv_prog_compiler_static_works_F77=no 14481 save_LDFLAGS="$LDFLAGS" 14482 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14483 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14484 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14485 # The linker can only warn and ignore the option if not recognized 14486 # So say no if there are warnings 14487 if test -s conftest.err; then 14488 # Append any errors to the config.log. 14489 cat conftest.err 1>&5 14490 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14491 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14492 if diff conftest.exp conftest.er2 >/dev/null; then 14493 lt_cv_prog_compiler_static_works_F77=yes 14494 fi 14495 else 14496 lt_cv_prog_compiler_static_works_F77=yes 14497 fi 14498 fi 14499 $rm -r conftest* 14500 LDFLAGS="$save_LDFLAGS" 14501 14502fi 14503{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14504echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } 14505 14506if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14507 : 14508else 14509 lt_prog_compiler_static_F77= 14510fi 14511 14512 14513{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14514echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14515if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14516 echo $ECHO_N "(cached) $ECHO_C" >&6 14517else 14518 lt_cv_prog_compiler_c_o_F77=no 14519 $rm -r conftest 2>/dev/null 14520 mkdir conftest 14521 cd conftest 14522 mkdir out 14523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14524 14525 lt_compiler_flag="-o out/conftest2.$ac_objext" 14526 # Insert the option either (1) after the last *FLAGS variable, or 14527 # (2) before a word containing "conftest.", or (3) at the end. 14528 # Note that $ac_compile itself does not contain backslashes and begins 14529 # with a dollar sign (not a hyphen), so the echo should work correctly. 14530 lt_compile=`echo "$ac_compile" | $SED \ 14531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14533 -e 's:$: $lt_compiler_flag:'` 14534 (eval echo "\"\$as_me:14534: $lt_compile\"" >&5) 14535 (eval "$lt_compile" 2>out/conftest.err) 14536 ac_status=$? 14537 cat out/conftest.err >&5 14538 echo "$as_me:14538: \$? = $ac_status" >&5 14539 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14540 then 14541 # The compiler can only warn and ignore the option if not recognized 14542 # So say no if there are warnings 14543 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14544 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14545 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14546 lt_cv_prog_compiler_c_o_F77=yes 14547 fi 14548 fi 14549 chmod u+w . 2>&5 14550 $rm conftest* 14551 # SGI C++ compiler will create directory out/ii_files/ for 14552 # template instantiation 14553 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14554 $rm out/* && rmdir out 14555 cd .. 14556 rmdir conftest 14557 $rm conftest* 14558 14559fi 14560{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14561echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14562 14563 14564hard_links="nottested" 14565if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14566 # do not overwrite the value of need_locks provided by the user 14567 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14568echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14569 hard_links=yes 14570 $rm conftest* 14571 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14572 touch conftest.a 14573 ln conftest.a conftest.b 2>&5 || hard_links=no 14574 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14575 { echo "$as_me:$LINENO: result: $hard_links" >&5 14576echo "${ECHO_T}$hard_links" >&6; } 14577 if test "$hard_links" = no; then 14578 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14579echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14580 need_locks=warn 14581 fi 14582else 14583 need_locks=no 14584fi 14585 14586{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14587echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14588 14589 runpath_var= 14590 allow_undefined_flag_F77= 14591 enable_shared_with_static_runtimes_F77=no 14592 archive_cmds_F77= 14593 archive_expsym_cmds_F77= 14594 old_archive_From_new_cmds_F77= 14595 old_archive_from_expsyms_cmds_F77= 14596 export_dynamic_flag_spec_F77= 14597 whole_archive_flag_spec_F77= 14598 thread_safe_flag_spec_F77= 14599 hardcode_libdir_flag_spec_F77= 14600 hardcode_libdir_flag_spec_ld_F77= 14601 hardcode_libdir_separator_F77= 14602 hardcode_direct_F77=no 14603 hardcode_minus_L_F77=no 14604 hardcode_shlibpath_var_F77=unsupported 14605 link_all_deplibs_F77=unknown 14606 hardcode_automatic_F77=no 14607 module_cmds_F77= 14608 module_expsym_cmds_F77= 14609 always_export_symbols_F77=no 14610 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14611 # include_expsyms should be a list of space-separated symbols to be *always* 14612 # included in the symbol list 14613 include_expsyms_F77= 14614 # exclude_expsyms can be an extended regexp of symbols to exclude 14615 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14616 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14617 # as well as any symbol that contains `d'. 14618 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14619 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14620 # platforms (ab)use it in PIC code, but their linkers get confused if 14621 # the symbol is explicitly referenced. Since portable code cannot 14622 # rely on this symbol name, it's probably fine to never include it in 14623 # preloaded symbol tables. 14624 # Exclude shared library initialization/finalization symbols. 14625 extract_expsyms_cmds= 14626 # Just being paranoid about ensuring that cc_basename is set. 14627 for cc_temp in $compiler""; do 14628 case $cc_temp in 14629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14631 \-*) ;; 14632 *) break;; 14633 esac 14634done 14635cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14636 14637 case $host_os in 14638 cygwin* | mingw* | pw32*) 14639 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14640 # When not using gcc, we currently assume that we are using 14641 # Microsoft Visual C++. 14642 if test "$GCC" != yes; then 14643 with_gnu_ld=no 14644 fi 14645 ;; 14646 interix*) 14647 # we just hope/assume this is gcc and not c89 (= MSVC++) 14648 with_gnu_ld=yes 14649 ;; 14650 openbsd*) 14651 with_gnu_ld=no 14652 ;; 14653 esac 14654 14655 ld_shlibs_F77=yes 14656 if test "$with_gnu_ld" = yes; then 14657 # If archive_cmds runs LD, not CC, wlarc should be empty 14658 wlarc='${wl}' 14659 14660 # Set some defaults for GNU ld with shared library support. These 14661 # are reset later if shared libraries are not supported. Putting them 14662 # here allows them to be overridden if necessary. 14663 runpath_var=LD_RUN_PATH 14664 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14665 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14666 # ancient GNU ld didn't support --whole-archive et. al. 14667 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14668 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14669 else 14670 whole_archive_flag_spec_F77= 14671 fi 14672 supports_anon_versioning=no 14673 case `$LD -v 2>/dev/null` in 14674 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14675 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14676 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14677 *\ 2.11.*) ;; # other 2.11 versions 14678 *) supports_anon_versioning=yes ;; 14679 esac 14680 14681 # See if GNU ld supports shared libraries. 14682 case $host_os in 14683 aix[3-9]*) 14684 # On AIX/PPC, the GNU linker is very broken 14685 if test "$host_cpu" != ia64; then 14686 ld_shlibs_F77=no 14687 cat <<EOF 1>&2 14688 14689*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14690*** to be unable to reliably create shared libraries on AIX. 14691*** Therefore, libtool is disabling shared libraries support. If you 14692*** really care for shared libraries, you may want to modify your PATH 14693*** so that a non-GNU linker is found, and then restart. 14694 14695EOF 14696 fi 14697 ;; 14698 14699 amigaos*) 14700 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)' 14701 hardcode_libdir_flag_spec_F77='-L$libdir' 14702 hardcode_minus_L_F77=yes 14703 14704 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14705 # that the semantics of dynamic libraries on AmigaOS, at least up 14706 # to version 4, is to share data among multiple programs linked 14707 # with the same dynamic library. Since this doesn't match the 14708 # behavior of shared libraries on other platforms, we can't use 14709 # them. 14710 ld_shlibs_F77=no 14711 ;; 14712 14713 beos*) 14714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14715 allow_undefined_flag_F77=unsupported 14716 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14717 # support --undefined. This deserves some investigation. FIXME 14718 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14719 else 14720 ld_shlibs_F77=no 14721 fi 14722 ;; 14723 14724 cygwin* | mingw* | pw32*) 14725 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14726 # as there is no search path for DLLs. 14727 hardcode_libdir_flag_spec_F77='-L$libdir' 14728 allow_undefined_flag_F77=unsupported 14729 always_export_symbols_F77=no 14730 enable_shared_with_static_runtimes_F77=yes 14731 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14732 14733 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14734 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14735 # If the export-symbols file already is a .def file (1st line 14736 # is EXPORTS), use it as is; otherwise, prepend... 14737 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14738 cp $export_symbols $output_objdir/$soname.def; 14739 else 14740 echo EXPORTS > $output_objdir/$soname.def; 14741 cat $export_symbols >> $output_objdir/$soname.def; 14742 fi~ 14743 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14744 else 14745 ld_shlibs_F77=no 14746 fi 14747 ;; 14748 14749 interix[3-9]*) 14750 hardcode_direct_F77=no 14751 hardcode_shlibpath_var_F77=no 14752 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14753 export_dynamic_flag_spec_F77='${wl}-E' 14754 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14755 # Instead, shared libraries are loaded at an image base (0x10000000 by 14756 # default) and relocated if they conflict, which is a slow very memory 14757 # consuming and fragmenting process. To avoid this, we pick a random, 14758 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14759 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14760 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' 14761 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' 14762 ;; 14763 14764 gnu* | linux* | k*bsd*-gnu) 14765 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14766 tmp_addflag= 14767 case $cc_basename,$host_cpu in 14768 pgcc*) # Portland Group C compiler 14769 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' 14770 tmp_addflag=' $pic_flag' 14771 ;; 14772 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14773 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' 14774 tmp_addflag=' $pic_flag -Mnomain' ;; 14775 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14776 tmp_addflag=' -i_dynamic' ;; 14777 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14778 tmp_addflag=' -i_dynamic -nofor_main' ;; 14779 ifc* | ifort*) # Intel Fortran compiler 14780 tmp_addflag=' -nofor_main' ;; 14781 esac 14782 case `$CC -V 2>&1 | sed 5q` in 14783 *Sun\ C*) # Sun C 5.9 14784 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' 14785 tmp_sharedflag='-G' ;; 14786 *Sun\ F*) # Sun Fortran 8.3 14787 tmp_sharedflag='-G' ;; 14788 *) 14789 tmp_sharedflag='-shared' ;; 14790 esac 14791 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14792 14793 if test $supports_anon_versioning = yes; then 14794 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14796 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14797 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14798 fi 14799 link_all_deplibs_F77=no 14800 else 14801 ld_shlibs_F77=no 14802 fi 14803 ;; 14804 14805 netbsd* | netbsdelf*-gnu) 14806 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14807 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14808 wlarc= 14809 else 14810 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14811 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14812 fi 14813 ;; 14814 14815 solaris*) 14816 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14817 ld_shlibs_F77=no 14818 cat <<EOF 1>&2 14819 14820*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14821*** create shared libraries on Solaris systems. Therefore, libtool 14822*** is disabling shared libraries support. We urge you to upgrade GNU 14823*** binutils to release 2.9.1 or newer. Another option is to modify 14824*** your PATH or compiler configuration so that the native linker is 14825*** used, and then restart. 14826 14827EOF 14828 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14829 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14830 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14831 else 14832 ld_shlibs_F77=no 14833 fi 14834 ;; 14835 14836 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14837 case `$LD -v 2>&1` in 14838 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14839 ld_shlibs_F77=no 14840 cat <<_LT_EOF 1>&2 14841 14842*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14843*** reliably create shared libraries on SCO systems. Therefore, libtool 14844*** is disabling shared libraries support. We urge you to upgrade GNU 14845*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14846*** your PATH or compiler configuration so that the native linker is 14847*** used, and then restart. 14848 14849_LT_EOF 14850 ;; 14851 *) 14852 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14853 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14854 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14855 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14856 else 14857 ld_shlibs_F77=no 14858 fi 14859 ;; 14860 esac 14861 ;; 14862 14863 sunos4*) 14864 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14865 wlarc= 14866 hardcode_direct_F77=yes 14867 hardcode_shlibpath_var_F77=no 14868 ;; 14869 14870 *) 14871 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14872 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14873 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14874 else 14875 ld_shlibs_F77=no 14876 fi 14877 ;; 14878 esac 14879 14880 if test "$ld_shlibs_F77" = no; then 14881 runpath_var= 14882 hardcode_libdir_flag_spec_F77= 14883 export_dynamic_flag_spec_F77= 14884 whole_archive_flag_spec_F77= 14885 fi 14886 else 14887 # PORTME fill in a description of your system's linker (not GNU ld) 14888 case $host_os in 14889 aix3*) 14890 allow_undefined_flag_F77=unsupported 14891 always_export_symbols_F77=yes 14892 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' 14893 # Note: this linker hardcodes the directories in LIBPATH if there 14894 # are no directories specified by -L. 14895 hardcode_minus_L_F77=yes 14896 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14897 # Neither direct hardcoding nor static linking is supported with a 14898 # broken collect2. 14899 hardcode_direct_F77=unsupported 14900 fi 14901 ;; 14902 14903 aix[4-9]*) 14904 if test "$host_cpu" = ia64; then 14905 # On IA64, the linker does run time linking by default, so we don't 14906 # have to do anything special. 14907 aix_use_runtimelinking=no 14908 exp_sym_flag='-Bexport' 14909 no_entry_flag="" 14910 else 14911 # If we're using GNU nm, then we don't want the "-C" option. 14912 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14913 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14914 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' 14915 else 14916 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' 14917 fi 14918 aix_use_runtimelinking=no 14919 14920 # Test if we are trying to use run time linking or normal 14921 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14922 # need to do runtime linking. 14923 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14924 for ld_flag in $LDFLAGS; do 14925 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14926 aix_use_runtimelinking=yes 14927 break 14928 fi 14929 done 14930 ;; 14931 esac 14932 14933 exp_sym_flag='-bexport' 14934 no_entry_flag='-bnoentry' 14935 fi 14936 14937 # When large executables or shared objects are built, AIX ld can 14938 # have problems creating the table of contents. If linking a library 14939 # or program results in "error TOC overflow" add -mminimal-toc to 14940 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14941 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14942 14943 archive_cmds_F77='' 14944 hardcode_direct_F77=yes 14945 hardcode_libdir_separator_F77=':' 14946 link_all_deplibs_F77=yes 14947 14948 if test "$GCC" = yes; then 14949 case $host_os in aix4.[012]|aix4.[012].*) 14950 # We only want to do this on AIX 4.2 and lower, the check 14951 # below for broken collect2 doesn't work under 4.3+ 14952 collect2name=`${CC} -print-prog-name=collect2` 14953 if test -f "$collect2name" && \ 14954 strings "$collect2name" | grep resolve_lib_name >/dev/null 14955 then 14956 # We have reworked collect2 14957 : 14958 else 14959 # We have old collect2 14960 hardcode_direct_F77=unsupported 14961 # It fails to find uninstalled libraries when the uninstalled 14962 # path is not listed in the libpath. Setting hardcode_minus_L 14963 # to unsupported forces relinking 14964 hardcode_minus_L_F77=yes 14965 hardcode_libdir_flag_spec_F77='-L$libdir' 14966 hardcode_libdir_separator_F77= 14967 fi 14968 ;; 14969 esac 14970 shared_flag='-shared' 14971 if test "$aix_use_runtimelinking" = yes; then 14972 shared_flag="$shared_flag "'${wl}-G' 14973 fi 14974 else 14975 # not using gcc 14976 if test "$host_cpu" = ia64; then 14977 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14978 # chokes on -Wl,-G. The following line is correct: 14979 shared_flag='-G' 14980 else 14981 if test "$aix_use_runtimelinking" = yes; then 14982 shared_flag='${wl}-G' 14983 else 14984 shared_flag='${wl}-bM:SRE' 14985 fi 14986 fi 14987 fi 14988 14989 # It seems that -bexpall does not export symbols beginning with 14990 # underscore (_), so it is better to generate a list of symbols to export. 14991 always_export_symbols_F77=yes 14992 if test "$aix_use_runtimelinking" = yes; then 14993 # Warning - without using the other runtime loading flags (-brtl), 14994 # -berok will link without error, but may produce a broken library. 14995 allow_undefined_flag_F77='-berok' 14996 # Determine the default libpath from the value encoded in an empty executable. 14997 cat >conftest.$ac_ext <<_ACEOF 14998 program main 14999 15000 end 15001_ACEOF 15002rm -f conftest.$ac_objext conftest$ac_exeext 15003if { (ac_try="$ac_link" 15004case "(($ac_try" in 15005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15006 *) ac_try_echo=$ac_try;; 15007esac 15008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15009 (eval "$ac_link") 2>conftest.er1 15010 ac_status=$? 15011 grep -v '^ *+' conftest.er1 >conftest.err 15012 rm -f conftest.er1 15013 cat conftest.err >&5 15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15015 (exit $ac_status); } && { 15016 test -z "$ac_f77_werror_flag" || 15017 test ! -s conftest.err 15018 } && test -s conftest$ac_exeext && 15019 $as_test_x conftest$ac_exeext; then 15020 15021lt_aix_libpath_sed=' 15022 /Import File Strings/,/^$/ { 15023 /^0/ { 15024 s/^0 *\(.*\)$/\1/ 15025 p 15026 } 15027 }' 15028aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15029# Check for a 64-bit object if we didn't find anything. 15030if test -z "$aix_libpath"; then 15031 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15032fi 15033else 15034 echo "$as_me: failed program was:" >&5 15035sed 's/^/| /' conftest.$ac_ext >&5 15036 15037 15038fi 15039 15040rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15041 conftest$ac_exeext conftest.$ac_ext 15042if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15043 15044 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15045 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" 15046 else 15047 if test "$host_cpu" = ia64; then 15048 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15049 allow_undefined_flag_F77="-z nodefs" 15050 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" 15051 else 15052 # Determine the default libpath from the value encoded in an empty executable. 15053 cat >conftest.$ac_ext <<_ACEOF 15054 program main 15055 15056 end 15057_ACEOF 15058rm -f conftest.$ac_objext conftest$ac_exeext 15059if { (ac_try="$ac_link" 15060case "(($ac_try" in 15061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15062 *) ac_try_echo=$ac_try;; 15063esac 15064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15065 (eval "$ac_link") 2>conftest.er1 15066 ac_status=$? 15067 grep -v '^ *+' conftest.er1 >conftest.err 15068 rm -f conftest.er1 15069 cat conftest.err >&5 15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15071 (exit $ac_status); } && { 15072 test -z "$ac_f77_werror_flag" || 15073 test ! -s conftest.err 15074 } && test -s conftest$ac_exeext && 15075 $as_test_x conftest$ac_exeext; then 15076 15077lt_aix_libpath_sed=' 15078 /Import File Strings/,/^$/ { 15079 /^0/ { 15080 s/^0 *\(.*\)$/\1/ 15081 p 15082 } 15083 }' 15084aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15085# Check for a 64-bit object if we didn't find anything. 15086if test -z "$aix_libpath"; then 15087 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15088fi 15089else 15090 echo "$as_me: failed program was:" >&5 15091sed 's/^/| /' conftest.$ac_ext >&5 15092 15093 15094fi 15095 15096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15097 conftest$ac_exeext conftest.$ac_ext 15098if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15099 15100 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15101 # Warning - without using the other run time loading flags, 15102 # -berok will link without error, but may produce a broken library. 15103 no_undefined_flag_F77=' ${wl}-bernotok' 15104 allow_undefined_flag_F77=' ${wl}-berok' 15105 # Exported symbols can be pulled into shared objects from archives 15106 whole_archive_flag_spec_F77='$convenience' 15107 archive_cmds_need_lc_F77=yes 15108 # This is similar to how AIX traditionally builds its shared libraries. 15109 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' 15110 fi 15111 fi 15112 ;; 15113 15114 amigaos*) 15115 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)' 15116 hardcode_libdir_flag_spec_F77='-L$libdir' 15117 hardcode_minus_L_F77=yes 15118 # see comment about different semantics on the GNU ld section 15119 ld_shlibs_F77=no 15120 ;; 15121 15122 bsdi[45]*) 15123 export_dynamic_flag_spec_F77=-rdynamic 15124 ;; 15125 15126 cygwin* | mingw* | pw32*) 15127 # When not using gcc, we currently assume that we are using 15128 # Microsoft Visual C++. 15129 # hardcode_libdir_flag_spec is actually meaningless, as there is 15130 # no search path for DLLs. 15131 hardcode_libdir_flag_spec_F77=' ' 15132 allow_undefined_flag_F77=unsupported 15133 # Tell ltmain to make .lib files, not .a files. 15134 libext=lib 15135 # Tell ltmain to make .dll files, not .so files. 15136 shrext_cmds=".dll" 15137 # FIXME: Setting linknames here is a bad hack. 15138 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15139 # The linker will automatically build a .lib file if we build a DLL. 15140 old_archive_From_new_cmds_F77='true' 15141 # FIXME: Should let the user specify the lib program. 15142 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15143 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15144 enable_shared_with_static_runtimes_F77=yes 15145 ;; 15146 15147 darwin* | rhapsody*) 15148 case $host_os in 15149 rhapsody* | darwin1.[012]) 15150 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15151 ;; 15152 *) # Darwin 1.3 on 15153 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15154 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15155 else 15156 case ${MACOSX_DEPLOYMENT_TARGET} in 15157 10.[012]) 15158 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15159 ;; 15160 10.*) 15161 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15162 ;; 15163 esac 15164 fi 15165 ;; 15166 esac 15167 archive_cmds_need_lc_F77=no 15168 hardcode_direct_F77=no 15169 hardcode_automatic_F77=yes 15170 hardcode_shlibpath_var_F77=unsupported 15171 whole_archive_flag_spec_F77='' 15172 link_all_deplibs_F77=yes 15173 if test "$GCC" = yes ; then 15174 output_verbose_link_cmd='echo' 15175 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}" 15176 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15177 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}" 15178 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}" 15179 else 15180 case $cc_basename in 15181 xlc*) 15182 output_verbose_link_cmd='echo' 15183 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15184 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15185 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15186 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}' 15187 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}' 15188 ;; 15189 *) 15190 ld_shlibs_F77=no 15191 ;; 15192 esac 15193 fi 15194 ;; 15195 15196 dgux*) 15197 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15198 hardcode_libdir_flag_spec_F77='-L$libdir' 15199 hardcode_shlibpath_var_F77=no 15200 ;; 15201 15202 freebsd1*) 15203 ld_shlibs_F77=no 15204 ;; 15205 15206 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15207 # support. Future versions do this automatically, but an explicit c++rt0.o 15208 # does not break anything, and helps significantly (at the cost of a little 15209 # extra space). 15210 freebsd2.2*) 15211 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15212 hardcode_libdir_flag_spec_F77='-R$libdir' 15213 hardcode_direct_F77=yes 15214 hardcode_shlibpath_var_F77=no 15215 ;; 15216 15217 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15218 freebsd2*) 15219 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15220 hardcode_direct_F77=yes 15221 hardcode_minus_L_F77=yes 15222 hardcode_shlibpath_var_F77=no 15223 ;; 15224 15225 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15226 freebsd* | dragonfly*) 15227 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15228 hardcode_libdir_flag_spec_F77='-R$libdir' 15229 hardcode_direct_F77=yes 15230 hardcode_shlibpath_var_F77=no 15231 ;; 15232 15233 hpux9*) 15234 if test "$GCC" = yes; then 15235 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' 15236 else 15237 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' 15238 fi 15239 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15240 hardcode_libdir_separator_F77=: 15241 hardcode_direct_F77=yes 15242 15243 # hardcode_minus_L: Not really in the search PATH, 15244 # but as the default location of the library. 15245 hardcode_minus_L_F77=yes 15246 export_dynamic_flag_spec_F77='${wl}-E' 15247 ;; 15248 15249 hpux10*) 15250 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15251 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15252 else 15253 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15254 fi 15255 if test "$with_gnu_ld" = no; then 15256 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15257 hardcode_libdir_separator_F77=: 15258 15259 hardcode_direct_F77=yes 15260 export_dynamic_flag_spec_F77='${wl}-E' 15261 15262 # hardcode_minus_L: Not really in the search PATH, 15263 # but as the default location of the library. 15264 hardcode_minus_L_F77=yes 15265 fi 15266 ;; 15267 15268 hpux11*) 15269 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15270 case $host_cpu in 15271 hppa*64*) 15272 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15273 ;; 15274 ia64*) 15275 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15276 ;; 15277 *) 15278 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15279 ;; 15280 esac 15281 else 15282 case $host_cpu in 15283 hppa*64*) 15284 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15285 ;; 15286 ia64*) 15287 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15288 ;; 15289 *) 15290 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15291 ;; 15292 esac 15293 fi 15294 if test "$with_gnu_ld" = no; then 15295 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15296 hardcode_libdir_separator_F77=: 15297 15298 case $host_cpu in 15299 hppa*64*|ia64*) 15300 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15301 hardcode_direct_F77=no 15302 hardcode_shlibpath_var_F77=no 15303 ;; 15304 *) 15305 hardcode_direct_F77=yes 15306 export_dynamic_flag_spec_F77='${wl}-E' 15307 15308 # hardcode_minus_L: Not really in the search PATH, 15309 # but as the default location of the library. 15310 hardcode_minus_L_F77=yes 15311 ;; 15312 esac 15313 fi 15314 ;; 15315 15316 irix5* | irix6* | nonstopux*) 15317 if test "$GCC" = yes; then 15318 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' 15319 else 15320 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' 15321 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15322 fi 15323 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15324 hardcode_libdir_separator_F77=: 15325 link_all_deplibs_F77=yes 15326 ;; 15327 15328 netbsd* | netbsdelf*-gnu) 15329 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15330 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15331 else 15332 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15333 fi 15334 hardcode_libdir_flag_spec_F77='-R$libdir' 15335 hardcode_direct_F77=yes 15336 hardcode_shlibpath_var_F77=no 15337 ;; 15338 15339 newsos6) 15340 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15341 hardcode_direct_F77=yes 15342 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15343 hardcode_libdir_separator_F77=: 15344 hardcode_shlibpath_var_F77=no 15345 ;; 15346 15347 openbsd*) 15348 if test -f /usr/libexec/ld.so; then 15349 hardcode_direct_F77=yes 15350 hardcode_shlibpath_var_F77=no 15351 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15352 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15353 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15354 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15355 export_dynamic_flag_spec_F77='${wl}-E' 15356 else 15357 case $host_os in 15358 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15359 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15360 hardcode_libdir_flag_spec_F77='-R$libdir' 15361 ;; 15362 *) 15363 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15364 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15365 ;; 15366 esac 15367 fi 15368 else 15369 ld_shlibs_F77=no 15370 fi 15371 ;; 15372 15373 os2*) 15374 hardcode_libdir_flag_spec_F77='-L$libdir' 15375 hardcode_minus_L_F77=yes 15376 allow_undefined_flag_F77=unsupported 15377 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' 15378 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15379 ;; 15380 15381 osf3*) 15382 if test "$GCC" = yes; then 15383 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15384 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' 15385 else 15386 allow_undefined_flag_F77=' -expect_unresolved \*' 15387 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' 15388 fi 15389 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15390 hardcode_libdir_separator_F77=: 15391 ;; 15392 15393 osf4* | osf5*) # as osf3* with the addition of -msym flag 15394 if test "$GCC" = yes; then 15395 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15396 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' 15397 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15398 else 15399 allow_undefined_flag_F77=' -expect_unresolved \*' 15400 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' 15401 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~ 15402 $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' 15403 15404 # Both c and cxx compiler support -rpath directly 15405 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15406 fi 15407 hardcode_libdir_separator_F77=: 15408 ;; 15409 15410 solaris*) 15411 no_undefined_flag_F77=' -z text' 15412 if test "$GCC" = yes; then 15413 wlarc='${wl}' 15414 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15415 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15416 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15417 else 15418 wlarc='' 15419 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15420 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15421 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15422 fi 15423 hardcode_libdir_flag_spec_F77='-R$libdir' 15424 hardcode_shlibpath_var_F77=no 15425 case $host_os in 15426 solaris2.[0-5] | solaris2.[0-5].*) ;; 15427 *) 15428 # The compiler driver will combine and reorder linker options, 15429 # but understands `-z linker_flag'. GCC discards it without `$wl', 15430 # but is careful enough not to reorder. 15431 # Supported since Solaris 2.6 (maybe 2.5.1?) 15432 if test "$GCC" = yes; then 15433 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15434 else 15435 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15436 fi 15437 ;; 15438 esac 15439 link_all_deplibs_F77=yes 15440 ;; 15441 15442 sunos4*) 15443 if test "x$host_vendor" = xsequent; then 15444 # Use $CC to link under sequent, because it throws in some extra .o 15445 # files that make .init and .fini sections work. 15446 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15447 else 15448 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15449 fi 15450 hardcode_libdir_flag_spec_F77='-L$libdir' 15451 hardcode_direct_F77=yes 15452 hardcode_minus_L_F77=yes 15453 hardcode_shlibpath_var_F77=no 15454 ;; 15455 15456 sysv4) 15457 case $host_vendor in 15458 sni) 15459 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15460 hardcode_direct_F77=yes # is this really true??? 15461 ;; 15462 siemens) 15463 ## LD is ld it makes a PLAMLIB 15464 ## CC just makes a GrossModule. 15465 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15466 reload_cmds_F77='$CC -r -o $output$reload_objs' 15467 hardcode_direct_F77=no 15468 ;; 15469 motorola) 15470 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15471 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15472 ;; 15473 esac 15474 runpath_var='LD_RUN_PATH' 15475 hardcode_shlibpath_var_F77=no 15476 ;; 15477 15478 sysv4.3*) 15479 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15480 hardcode_shlibpath_var_F77=no 15481 export_dynamic_flag_spec_F77='-Bexport' 15482 ;; 15483 15484 sysv4*MP*) 15485 if test -d /usr/nec; then 15486 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15487 hardcode_shlibpath_var_F77=no 15488 runpath_var=LD_RUN_PATH 15489 hardcode_runpath_var=yes 15490 ld_shlibs_F77=yes 15491 fi 15492 ;; 15493 15494 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15495 no_undefined_flag_F77='${wl}-z,text' 15496 archive_cmds_need_lc_F77=no 15497 hardcode_shlibpath_var_F77=no 15498 runpath_var='LD_RUN_PATH' 15499 15500 if test "$GCC" = yes; then 15501 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15502 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15503 else 15504 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15505 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15506 fi 15507 ;; 15508 15509 sysv5* | sco3.2v5* | sco5v6*) 15510 # Note: We can NOT use -z defs as we might desire, because we do not 15511 # link with -lc, and that would cause any symbols used from libc to 15512 # always be unresolved, which means just about no library would 15513 # ever link correctly. If we're not using GNU ld we use -z text 15514 # though, which does catch some bad symbols but isn't as heavy-handed 15515 # as -z defs. 15516 no_undefined_flag_F77='${wl}-z,text' 15517 allow_undefined_flag_F77='${wl}-z,nodefs' 15518 archive_cmds_need_lc_F77=no 15519 hardcode_shlibpath_var_F77=no 15520 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15521 hardcode_libdir_separator_F77=':' 15522 link_all_deplibs_F77=yes 15523 export_dynamic_flag_spec_F77='${wl}-Bexport' 15524 runpath_var='LD_RUN_PATH' 15525 15526 if test "$GCC" = yes; then 15527 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15528 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15529 else 15530 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15531 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15532 fi 15533 ;; 15534 15535 uts4*) 15536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15537 hardcode_libdir_flag_spec_F77='-L$libdir' 15538 hardcode_shlibpath_var_F77=no 15539 ;; 15540 15541 *) 15542 ld_shlibs_F77=no 15543 ;; 15544 esac 15545 fi 15546 15547{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15548echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15549test "$ld_shlibs_F77" = no && can_build_shared=no 15550 15551# 15552# Do we need to explicitly link libc? 15553# 15554case "x$archive_cmds_need_lc_F77" in 15555x|xyes) 15556 # Assume -lc should be added 15557 archive_cmds_need_lc_F77=yes 15558 15559 if test "$enable_shared" = yes && test "$GCC" = yes; then 15560 case $archive_cmds_F77 in 15561 *'~'*) 15562 # FIXME: we may have to deal with multi-command sequences. 15563 ;; 15564 '$CC '*) 15565 # Test whether the compiler implicitly links with -lc since on some 15566 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15567 # to ld, don't add -lc before -lgcc. 15568 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15569echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15570 $rm conftest* 15571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15572 15573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15574 (eval $ac_compile) 2>&5 15575 ac_status=$? 15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15577 (exit $ac_status); } 2>conftest.err; then 15578 soname=conftest 15579 lib=conftest 15580 libobjs=conftest.$ac_objext 15581 deplibs= 15582 wl=$lt_prog_compiler_wl_F77 15583 pic_flag=$lt_prog_compiler_pic_F77 15584 compiler_flags=-v 15585 linker_flags=-v 15586 verstring= 15587 output_objdir=. 15588 libname=conftest 15589 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15590 allow_undefined_flag_F77= 15591 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15592 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15593 ac_status=$? 15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15595 (exit $ac_status); } 15596 then 15597 archive_cmds_need_lc_F77=no 15598 else 15599 archive_cmds_need_lc_F77=yes 15600 fi 15601 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15602 else 15603 cat conftest.err 1>&5 15604 fi 15605 $rm conftest* 15606 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15607echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15608 ;; 15609 esac 15610 fi 15611 ;; 15612esac 15613 15614{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15615echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15616library_names_spec= 15617libname_spec='lib$name' 15618soname_spec= 15619shrext_cmds=".so" 15620postinstall_cmds= 15621postuninstall_cmds= 15622finish_cmds= 15623finish_eval= 15624shlibpath_var= 15625shlibpath_overrides_runpath=unknown 15626version_type=none 15627dynamic_linker="$host_os ld.so" 15628sys_lib_dlsearch_path_spec="/lib /usr/lib" 15629 15630need_lib_prefix=unknown 15631hardcode_into_libs=no 15632 15633# when you set need_version to no, make sure it does not cause -set_version 15634# flags to be left without arguments 15635need_version=unknown 15636 15637case $host_os in 15638aix3*) 15639 version_type=linux 15640 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15641 shlibpath_var=LIBPATH 15642 15643 # AIX 3 has no versioning support, so we append a major version to the name. 15644 soname_spec='${libname}${release}${shared_ext}$major' 15645 ;; 15646 15647aix[4-9]*) 15648 version_type=linux 15649 need_lib_prefix=no 15650 need_version=no 15651 hardcode_into_libs=yes 15652 if test "$host_cpu" = ia64; then 15653 # AIX 5 supports IA64 15654 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15655 shlibpath_var=LD_LIBRARY_PATH 15656 else 15657 # With GCC up to 2.95.x, collect2 would create an import file 15658 # for dependence libraries. The import file would start with 15659 # the line `#! .'. This would cause the generated library to 15660 # depend on `.', always an invalid library. This was fixed in 15661 # development snapshots of GCC prior to 3.0. 15662 case $host_os in 15663 aix4 | aix4.[01] | aix4.[01].*) 15664 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15665 echo ' yes ' 15666 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15667 : 15668 else 15669 can_build_shared=no 15670 fi 15671 ;; 15672 esac 15673 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15674 # soname into executable. Probably we can add versioning support to 15675 # collect2, so additional links can be useful in future. 15676 if test "$aix_use_runtimelinking" = yes; then 15677 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15678 # instead of lib<name>.a to let people know that these are not 15679 # typical AIX shared libraries. 15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15681 else 15682 # We preserve .a as extension for shared libraries through AIX4.2 15683 # and later when we are not doing run time linking. 15684 library_names_spec='${libname}${release}.a $libname.a' 15685 soname_spec='${libname}${release}${shared_ext}$major' 15686 fi 15687 shlibpath_var=LIBPATH 15688 fi 15689 ;; 15690 15691amigaos*) 15692 library_names_spec='$libname.ixlibrary $libname.a' 15693 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15694 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' 15695 ;; 15696 15697beos*) 15698 library_names_spec='${libname}${shared_ext}' 15699 dynamic_linker="$host_os ld.so" 15700 shlibpath_var=LIBRARY_PATH 15701 ;; 15702 15703bsdi[45]*) 15704 version_type=linux 15705 need_version=no 15706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15707 soname_spec='${libname}${release}${shared_ext}$major' 15708 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15709 shlibpath_var=LD_LIBRARY_PATH 15710 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15711 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15712 # the default ld.so.conf also contains /usr/contrib/lib and 15713 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15714 # libtool to hard-code these into programs 15715 ;; 15716 15717cygwin* | mingw* | pw32*) 15718 version_type=windows 15719 shrext_cmds=".dll" 15720 need_version=no 15721 need_lib_prefix=no 15722 15723 case $GCC,$host_os in 15724 yes,cygwin* | yes,mingw* | yes,pw32*) 15725 library_names_spec='$libname.dll.a' 15726 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15727 postinstall_cmds='base_file=`basename \${file}`~ 15728 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15729 dldir=$destdir/`dirname \$dlpath`~ 15730 test -d \$dldir || mkdir -p \$dldir~ 15731 $install_prog $dir/$dlname \$dldir/$dlname~ 15732 chmod a+x \$dldir/$dlname' 15733 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15734 dlpath=$dir/\$dldll~ 15735 $rm \$dlpath' 15736 shlibpath_overrides_runpath=yes 15737 15738 case $host_os in 15739 cygwin*) 15740 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15741 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15742 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15743 ;; 15744 mingw*) 15745 # MinGW DLLs use traditional 'lib' prefix 15746 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15747 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15748 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15749 # It is most probably a Windows format PATH printed by 15750 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15751 # path with ; separators, and with drive letters. We can handle the 15752 # drive letters (cygwin fileutils understands them), so leave them, 15753 # especially as we might pass files found there to a mingw objdump, 15754 # which wouldn't understand a cygwinified path. Ahh. 15755 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15756 else 15757 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15758 fi 15759 ;; 15760 pw32*) 15761 # pw32 DLLs use 'pw' prefix rather than 'lib' 15762 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15763 ;; 15764 esac 15765 ;; 15766 15767 *) 15768 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15769 ;; 15770 esac 15771 dynamic_linker='Win32 ld.exe' 15772 # FIXME: first we should search . and the directory the executable is in 15773 shlibpath_var=PATH 15774 ;; 15775 15776darwin* | rhapsody*) 15777 dynamic_linker="$host_os dyld" 15778 version_type=darwin 15779 need_lib_prefix=no 15780 need_version=no 15781 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15782 soname_spec='${libname}${release}${major}$shared_ext' 15783 shlibpath_overrides_runpath=yes 15784 shlibpath_var=DYLD_LIBRARY_PATH 15785 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15786 15787 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15788 ;; 15789 15790dgux*) 15791 version_type=linux 15792 need_lib_prefix=no 15793 need_version=no 15794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15795 soname_spec='${libname}${release}${shared_ext}$major' 15796 shlibpath_var=LD_LIBRARY_PATH 15797 ;; 15798 15799freebsd1*) 15800 dynamic_linker=no 15801 ;; 15802 15803freebsd* | dragonfly*) 15804 # DragonFly does not have aout. When/if they implement a new 15805 # versioning mechanism, adjust this. 15806 if test -x /usr/bin/objformat; then 15807 objformat=`/usr/bin/objformat` 15808 else 15809 case $host_os in 15810 freebsd[123]*) objformat=aout ;; 15811 *) objformat=elf ;; 15812 esac 15813 fi 15814 version_type=freebsd-$objformat 15815 case $version_type in 15816 freebsd-elf*) 15817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15818 need_version=no 15819 need_lib_prefix=no 15820 ;; 15821 freebsd-*) 15822 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15823 need_version=yes 15824 ;; 15825 esac 15826 shlibpath_var=LD_LIBRARY_PATH 15827 case $host_os in 15828 freebsd2*) 15829 shlibpath_overrides_runpath=yes 15830 ;; 15831 freebsd3.[01]* | freebsdelf3.[01]*) 15832 shlibpath_overrides_runpath=yes 15833 hardcode_into_libs=yes 15834 ;; 15835 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15836 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15837 shlibpath_overrides_runpath=no 15838 hardcode_into_libs=yes 15839 ;; 15840 *) # from 4.6 on, and DragonFly 15841 shlibpath_overrides_runpath=yes 15842 hardcode_into_libs=yes 15843 ;; 15844 esac 15845 ;; 15846 15847gnu*) 15848 version_type=linux 15849 need_lib_prefix=no 15850 need_version=no 15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15852 soname_spec='${libname}${release}${shared_ext}$major' 15853 shlibpath_var=LD_LIBRARY_PATH 15854 hardcode_into_libs=yes 15855 ;; 15856 15857hpux9* | hpux10* | hpux11*) 15858 # Give a soname corresponding to the major version so that dld.sl refuses to 15859 # link against other versions. 15860 version_type=sunos 15861 need_lib_prefix=no 15862 need_version=no 15863 case $host_cpu in 15864 ia64*) 15865 shrext_cmds='.so' 15866 hardcode_into_libs=yes 15867 dynamic_linker="$host_os dld.so" 15868 shlibpath_var=LD_LIBRARY_PATH 15869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15871 soname_spec='${libname}${release}${shared_ext}$major' 15872 if test "X$HPUX_IA64_MODE" = X32; then 15873 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15874 else 15875 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15876 fi 15877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15878 ;; 15879 hppa*64*) 15880 shrext_cmds='.sl' 15881 hardcode_into_libs=yes 15882 dynamic_linker="$host_os dld.sl" 15883 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15886 soname_spec='${libname}${release}${shared_ext}$major' 15887 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15888 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15889 ;; 15890 *) 15891 shrext_cmds='.sl' 15892 dynamic_linker="$host_os dld.sl" 15893 shlibpath_var=SHLIB_PATH 15894 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15896 soname_spec='${libname}${release}${shared_ext}$major' 15897 ;; 15898 esac 15899 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15900 postinstall_cmds='chmod 555 $lib' 15901 ;; 15902 15903interix[3-9]*) 15904 version_type=linux 15905 need_lib_prefix=no 15906 need_version=no 15907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15908 soname_spec='${libname}${release}${shared_ext}$major' 15909 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15910 shlibpath_var=LD_LIBRARY_PATH 15911 shlibpath_overrides_runpath=no 15912 hardcode_into_libs=yes 15913 ;; 15914 15915irix5* | irix6* | nonstopux*) 15916 case $host_os in 15917 nonstopux*) version_type=nonstopux ;; 15918 *) 15919 if test "$lt_cv_prog_gnu_ld" = yes; then 15920 version_type=linux 15921 else 15922 version_type=irix 15923 fi ;; 15924 esac 15925 need_lib_prefix=no 15926 need_version=no 15927 soname_spec='${libname}${release}${shared_ext}$major' 15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15929 case $host_os in 15930 irix5* | nonstopux*) 15931 libsuff= shlibsuff= 15932 ;; 15933 *) 15934 case $LD in # libtool.m4 will add one of these switches to LD 15935 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15936 libsuff= shlibsuff= libmagic=32-bit;; 15937 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15938 libsuff=32 shlibsuff=N32 libmagic=N32;; 15939 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15940 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15941 *) libsuff= shlibsuff= libmagic=never-match;; 15942 esac 15943 ;; 15944 esac 15945 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15946 shlibpath_overrides_runpath=no 15947 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15948 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15949 hardcode_into_libs=yes 15950 ;; 15951 15952# No shared lib support for Linux oldld, aout, or coff. 15953linux*oldld* | linux*aout* | linux*coff*) 15954 dynamic_linker=no 15955 ;; 15956 15957# This must be Linux ELF. 15958linux* | k*bsd*-gnu) 15959 version_type=linux 15960 need_lib_prefix=no 15961 need_version=no 15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15963 soname_spec='${libname}${release}${shared_ext}$major' 15964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15965 shlibpath_var=LD_LIBRARY_PATH 15966 shlibpath_overrides_runpath=no 15967 # This implies no fast_install, which is unacceptable. 15968 # Some rework will be needed to allow for fast_install 15969 # before this can be enabled. 15970 hardcode_into_libs=yes 15971 15972 # Append ld.so.conf contents to the search path 15973 if test -f /etc/ld.so.conf; then 15974 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' ' '` 15975 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15976 fi 15977 15978 # We used to test for /lib/ld.so.1 and disable shared libraries on 15979 # powerpc, because MkLinux only supported shared libraries with the 15980 # GNU dynamic linker. Since this was broken with cross compilers, 15981 # most powerpc-linux boxes support dynamic linking these days and 15982 # people can always --disable-shared, the test was removed, and we 15983 # assume the GNU/Linux dynamic linker is in use. 15984 dynamic_linker='GNU/Linux ld.so' 15985 ;; 15986 15987netbsdelf*-gnu) 15988 version_type=linux 15989 need_lib_prefix=no 15990 need_version=no 15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15992 soname_spec='${libname}${release}${shared_ext}$major' 15993 shlibpath_var=LD_LIBRARY_PATH 15994 shlibpath_overrides_runpath=no 15995 hardcode_into_libs=yes 15996 dynamic_linker='NetBSD ld.elf_so' 15997 ;; 15998 15999netbsd*) 16000 version_type=sunos 16001 need_lib_prefix=no 16002 need_version=no 16003 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16006 dynamic_linker='NetBSD (a.out) ld.so' 16007 else 16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16009 soname_spec='${libname}${release}${shared_ext}$major' 16010 dynamic_linker='NetBSD ld.elf_so' 16011 fi 16012 shlibpath_var=LD_LIBRARY_PATH 16013 shlibpath_overrides_runpath=yes 16014 hardcode_into_libs=yes 16015 ;; 16016 16017newsos6) 16018 version_type=linux 16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16020 shlibpath_var=LD_LIBRARY_PATH 16021 shlibpath_overrides_runpath=yes 16022 ;; 16023 16024nto-qnx*) 16025 version_type=linux 16026 need_lib_prefix=no 16027 need_version=no 16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16029 soname_spec='${libname}${release}${shared_ext}$major' 16030 shlibpath_var=LD_LIBRARY_PATH 16031 shlibpath_overrides_runpath=yes 16032 ;; 16033 16034openbsd*) 16035 version_type=sunos 16036 sys_lib_dlsearch_path_spec="/usr/lib" 16037 need_lib_prefix=no 16038 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16039 case $host_os in 16040 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16041 *) need_version=no ;; 16042 esac 16043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16045 shlibpath_var=LD_LIBRARY_PATH 16046 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16047 case $host_os in 16048 openbsd2.[89] | openbsd2.[89].*) 16049 shlibpath_overrides_runpath=no 16050 ;; 16051 *) 16052 shlibpath_overrides_runpath=yes 16053 ;; 16054 esac 16055 else 16056 shlibpath_overrides_runpath=yes 16057 fi 16058 ;; 16059 16060os2*) 16061 libname_spec='$name' 16062 shrext_cmds=".dll" 16063 need_lib_prefix=no 16064 library_names_spec='$libname${shared_ext} $libname.a' 16065 dynamic_linker='OS/2 ld.exe' 16066 shlibpath_var=LIBPATH 16067 ;; 16068 16069osf3* | osf4* | osf5*) 16070 version_type=osf 16071 need_lib_prefix=no 16072 need_version=no 16073 soname_spec='${libname}${release}${shared_ext}$major' 16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16075 shlibpath_var=LD_LIBRARY_PATH 16076 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16077 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16078 ;; 16079 16080rdos*) 16081 dynamic_linker=no 16082 ;; 16083 16084solaris*) 16085 version_type=linux 16086 need_lib_prefix=no 16087 need_version=no 16088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16089 soname_spec='${libname}${release}${shared_ext}$major' 16090 shlibpath_var=LD_LIBRARY_PATH 16091 shlibpath_overrides_runpath=yes 16092 hardcode_into_libs=yes 16093 # ldd complains unless libraries are executable 16094 postinstall_cmds='chmod +x $lib' 16095 ;; 16096 16097sunos4*) 16098 version_type=sunos 16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16100 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16101 shlibpath_var=LD_LIBRARY_PATH 16102 shlibpath_overrides_runpath=yes 16103 if test "$with_gnu_ld" = yes; then 16104 need_lib_prefix=no 16105 fi 16106 need_version=yes 16107 ;; 16108 16109sysv4 | sysv4.3*) 16110 version_type=linux 16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16112 soname_spec='${libname}${release}${shared_ext}$major' 16113 shlibpath_var=LD_LIBRARY_PATH 16114 case $host_vendor in 16115 sni) 16116 shlibpath_overrides_runpath=no 16117 need_lib_prefix=no 16118 export_dynamic_flag_spec='${wl}-Blargedynsym' 16119 runpath_var=LD_RUN_PATH 16120 ;; 16121 siemens) 16122 need_lib_prefix=no 16123 ;; 16124 motorola) 16125 need_lib_prefix=no 16126 need_version=no 16127 shlibpath_overrides_runpath=no 16128 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16129 ;; 16130 esac 16131 ;; 16132 16133sysv4*MP*) 16134 if test -d /usr/nec ;then 16135 version_type=linux 16136 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16137 soname_spec='$libname${shared_ext}.$major' 16138 shlibpath_var=LD_LIBRARY_PATH 16139 fi 16140 ;; 16141 16142sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16143 version_type=freebsd-elf 16144 need_lib_prefix=no 16145 need_version=no 16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16147 soname_spec='${libname}${release}${shared_ext}$major' 16148 shlibpath_var=LD_LIBRARY_PATH 16149 hardcode_into_libs=yes 16150 if test "$with_gnu_ld" = yes; then 16151 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16152 shlibpath_overrides_runpath=no 16153 else 16154 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16155 shlibpath_overrides_runpath=yes 16156 case $host_os in 16157 sco3.2v5*) 16158 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16159 ;; 16160 esac 16161 fi 16162 sys_lib_dlsearch_path_spec='/usr/lib' 16163 ;; 16164 16165uts4*) 16166 version_type=linux 16167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16168 soname_spec='${libname}${release}${shared_ext}$major' 16169 shlibpath_var=LD_LIBRARY_PATH 16170 ;; 16171 16172*) 16173 dynamic_linker=no 16174 ;; 16175esac 16176{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16177echo "${ECHO_T}$dynamic_linker" >&6; } 16178test "$dynamic_linker" = no && can_build_shared=no 16179 16180if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16181 echo $ECHO_N "(cached) $ECHO_C" >&6 16182else 16183 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16184fi 16185 16186sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16187if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16188 echo $ECHO_N "(cached) $ECHO_C" >&6 16189else 16190 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16191fi 16192 16193sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16194 16195variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16196if test "$GCC" = yes; then 16197 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16198fi 16199 16200{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16201echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16202hardcode_action_F77= 16203if test -n "$hardcode_libdir_flag_spec_F77" || \ 16204 test -n "$runpath_var_F77" || \ 16205 test "X$hardcode_automatic_F77" = "Xyes" ; then 16206 16207 # We can hardcode non-existant directories. 16208 if test "$hardcode_direct_F77" != no && 16209 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16210 # have to relink, otherwise we might link with an installed library 16211 # when we should be linking with a yet-to-be-installed one 16212 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16213 test "$hardcode_minus_L_F77" != no; then 16214 # Linking always hardcodes the temporary library directory. 16215 hardcode_action_F77=relink 16216 else 16217 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16218 hardcode_action_F77=immediate 16219 fi 16220else 16221 # We cannot hardcode anything, or else we can only hardcode existing 16222 # directories. 16223 hardcode_action_F77=unsupported 16224fi 16225{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16226echo "${ECHO_T}$hardcode_action_F77" >&6; } 16227 16228if test "$hardcode_action_F77" = relink; then 16229 # Fast installation is not supported 16230 enable_fast_install=no 16231elif test "$shlibpath_overrides_runpath" = yes || 16232 test "$enable_shared" = no; then 16233 # Fast installation is not necessary 16234 enable_fast_install=needless 16235fi 16236 16237 16238# The else clause should only fire when bootstrapping the 16239# libtool distribution, otherwise you forgot to ship ltmain.sh 16240# with your package, and you will get complaints that there are 16241# no rules to generate ltmain.sh. 16242if test -f "$ltmain"; then 16243 # See if we are running on zsh, and set the options which allow our commands through 16244 # without removal of \ escapes. 16245 if test -n "${ZSH_VERSION+set}" ; then 16246 setopt NO_GLOB_SUBST 16247 fi 16248 # Now quote all the things that may contain metacharacters while being 16249 # careful not to overquote the AC_SUBSTed values. We take copies of the 16250 # variables and quote the copies for generation of the libtool script. 16251 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16252 SED SHELL STRIP \ 16253 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16254 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16255 deplibs_check_method reload_flag reload_cmds need_locks \ 16256 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16257 lt_cv_sys_global_symbol_to_c_name_address \ 16258 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16259 old_postinstall_cmds old_postuninstall_cmds \ 16260 compiler_F77 \ 16261 CC_F77 \ 16262 LD_F77 \ 16263 lt_prog_compiler_wl_F77 \ 16264 lt_prog_compiler_pic_F77 \ 16265 lt_prog_compiler_static_F77 \ 16266 lt_prog_compiler_no_builtin_flag_F77 \ 16267 export_dynamic_flag_spec_F77 \ 16268 thread_safe_flag_spec_F77 \ 16269 whole_archive_flag_spec_F77 \ 16270 enable_shared_with_static_runtimes_F77 \ 16271 old_archive_cmds_F77 \ 16272 old_archive_from_new_cmds_F77 \ 16273 predep_objects_F77 \ 16274 postdep_objects_F77 \ 16275 predeps_F77 \ 16276 postdeps_F77 \ 16277 compiler_lib_search_path_F77 \ 16278 compiler_lib_search_dirs_F77 \ 16279 archive_cmds_F77 \ 16280 archive_expsym_cmds_F77 \ 16281 postinstall_cmds_F77 \ 16282 postuninstall_cmds_F77 \ 16283 old_archive_from_expsyms_cmds_F77 \ 16284 allow_undefined_flag_F77 \ 16285 no_undefined_flag_F77 \ 16286 export_symbols_cmds_F77 \ 16287 hardcode_libdir_flag_spec_F77 \ 16288 hardcode_libdir_flag_spec_ld_F77 \ 16289 hardcode_libdir_separator_F77 \ 16290 hardcode_automatic_F77 \ 16291 module_cmds_F77 \ 16292 module_expsym_cmds_F77 \ 16293 lt_cv_prog_compiler_c_o_F77 \ 16294 fix_srcfile_path_F77 \ 16295 exclude_expsyms_F77 \ 16296 include_expsyms_F77; do 16297 16298 case $var in 16299 old_archive_cmds_F77 | \ 16300 old_archive_from_new_cmds_F77 | \ 16301 archive_cmds_F77 | \ 16302 archive_expsym_cmds_F77 | \ 16303 module_cmds_F77 | \ 16304 module_expsym_cmds_F77 | \ 16305 old_archive_from_expsyms_cmds_F77 | \ 16306 export_symbols_cmds_F77 | \ 16307 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16308 postinstall_cmds | postuninstall_cmds | \ 16309 old_postinstall_cmds | old_postuninstall_cmds | \ 16310 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16311 # Double-quote double-evaled strings. 16312 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16313 ;; 16314 *) 16315 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16316 ;; 16317 esac 16318 done 16319 16320 case $lt_echo in 16321 *'\$0 --fallback-echo"') 16322 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16323 ;; 16324 esac 16325 16326cfgfile="$ofile" 16327 16328 cat <<__EOF__ >> "$cfgfile" 16329# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16330 16331# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16332 16333# Shell to use when invoking shell scripts. 16334SHELL=$lt_SHELL 16335 16336# Whether or not to build shared libraries. 16337build_libtool_libs=$enable_shared 16338 16339# Whether or not to build static libraries. 16340build_old_libs=$enable_static 16341 16342# Whether or not to add -lc for building shared libraries. 16343build_libtool_need_lc=$archive_cmds_need_lc_F77 16344 16345# Whether or not to disallow shared libs when runtime libs are static 16346allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16347 16348# Whether or not to optimize for fast installation. 16349fast_install=$enable_fast_install 16350 16351# The host system. 16352host_alias=$host_alias 16353host=$host 16354host_os=$host_os 16355 16356# The build system. 16357build_alias=$build_alias 16358build=$build 16359build_os=$build_os 16360 16361# An echo program that does not interpret backslashes. 16362echo=$lt_echo 16363 16364# The archiver. 16365AR=$lt_AR 16366AR_FLAGS=$lt_AR_FLAGS 16367 16368# A C compiler. 16369LTCC=$lt_LTCC 16370 16371# LTCC compiler flags. 16372LTCFLAGS=$lt_LTCFLAGS 16373 16374# A language-specific compiler. 16375CC=$lt_compiler_F77 16376 16377# Is the compiler the GNU C compiler? 16378with_gcc=$GCC_F77 16379 16380# An ERE matcher. 16381EGREP=$lt_EGREP 16382 16383# The linker used to build libraries. 16384LD=$lt_LD_F77 16385 16386# Whether we need hard or soft links. 16387LN_S=$lt_LN_S 16388 16389# A BSD-compatible nm program. 16390NM=$lt_NM 16391 16392# A symbol stripping program 16393STRIP=$lt_STRIP 16394 16395# Used to examine libraries when file_magic_cmd begins "file" 16396MAGIC_CMD=$MAGIC_CMD 16397 16398# Used on cygwin: DLL creation program. 16399DLLTOOL="$DLLTOOL" 16400 16401# Used on cygwin: object dumper. 16402OBJDUMP="$OBJDUMP" 16403 16404# Used on cygwin: assembler. 16405AS="$AS" 16406 16407# The name of the directory that contains temporary libtool files. 16408objdir=$objdir 16409 16410# How to create reloadable object files. 16411reload_flag=$lt_reload_flag 16412reload_cmds=$lt_reload_cmds 16413 16414# How to pass a linker flag through the compiler. 16415wl=$lt_lt_prog_compiler_wl_F77 16416 16417# Object file suffix (normally "o"). 16418objext="$ac_objext" 16419 16420# Old archive suffix (normally "a"). 16421libext="$libext" 16422 16423# Shared library suffix (normally ".so"). 16424shrext_cmds='$shrext_cmds' 16425 16426# Executable file suffix (normally ""). 16427exeext="$exeext" 16428 16429# Additional compiler flags for building library objects. 16430pic_flag=$lt_lt_prog_compiler_pic_F77 16431pic_mode=$pic_mode 16432 16433# What is the maximum length of a command? 16434max_cmd_len=$lt_cv_sys_max_cmd_len 16435 16436# Does compiler simultaneously support -c and -o options? 16437compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16438 16439# Must we lock files when doing compilation? 16440need_locks=$lt_need_locks 16441 16442# Do we need the lib prefix for modules? 16443need_lib_prefix=$need_lib_prefix 16444 16445# Do we need a version for libraries? 16446need_version=$need_version 16447 16448# Whether dlopen is supported. 16449dlopen_support=$enable_dlopen 16450 16451# Whether dlopen of programs is supported. 16452dlopen_self=$enable_dlopen_self 16453 16454# Whether dlopen of statically linked programs is supported. 16455dlopen_self_static=$enable_dlopen_self_static 16456 16457# Compiler flag to prevent dynamic linking. 16458link_static_flag=$lt_lt_prog_compiler_static_F77 16459 16460# Compiler flag to turn off builtin functions. 16461no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16462 16463# Compiler flag to allow reflexive dlopens. 16464export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16465 16466# Compiler flag to generate shared objects directly from archives. 16467whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16468 16469# Compiler flag to generate thread-safe objects. 16470thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16471 16472# Library versioning type. 16473version_type=$version_type 16474 16475# Format of library name prefix. 16476libname_spec=$lt_libname_spec 16477 16478# List of archive names. First name is the real one, the rest are links. 16479# The last name is the one that the linker finds with -lNAME. 16480library_names_spec=$lt_library_names_spec 16481 16482# The coded name of the library, if different from the real name. 16483soname_spec=$lt_soname_spec 16484 16485# Commands used to build and install an old-style archive. 16486RANLIB=$lt_RANLIB 16487old_archive_cmds=$lt_old_archive_cmds_F77 16488old_postinstall_cmds=$lt_old_postinstall_cmds 16489old_postuninstall_cmds=$lt_old_postuninstall_cmds 16490 16491# Create an old-style archive from a shared archive. 16492old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16493 16494# Create a temporary old-style archive to link instead of a shared archive. 16495old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16496 16497# Commands used to build and install a shared archive. 16498archive_cmds=$lt_archive_cmds_F77 16499archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16500postinstall_cmds=$lt_postinstall_cmds 16501postuninstall_cmds=$lt_postuninstall_cmds 16502 16503# Commands used to build a loadable module (assumed same as above if empty) 16504module_cmds=$lt_module_cmds_F77 16505module_expsym_cmds=$lt_module_expsym_cmds_F77 16506 16507# Commands to strip libraries. 16508old_striplib=$lt_old_striplib 16509striplib=$lt_striplib 16510 16511# Dependencies to place before the objects being linked to create a 16512# shared library. 16513predep_objects=$lt_predep_objects_F77 16514 16515# Dependencies to place after the objects being linked to create a 16516# shared library. 16517postdep_objects=$lt_postdep_objects_F77 16518 16519# Dependencies to place before the objects being linked to create a 16520# shared library. 16521predeps=$lt_predeps_F77 16522 16523# Dependencies to place after the objects being linked to create a 16524# shared library. 16525postdeps=$lt_postdeps_F77 16526 16527# The directories searched by this compiler when creating a shared 16528# library 16529compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16530 16531# The library search path used internally by the compiler when linking 16532# a shared library. 16533compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16534 16535# Method to check whether dependent libraries are shared objects. 16536deplibs_check_method=$lt_deplibs_check_method 16537 16538# Command to use when deplibs_check_method == file_magic. 16539file_magic_cmd=$lt_file_magic_cmd 16540 16541# Flag that allows shared libraries with undefined symbols to be built. 16542allow_undefined_flag=$lt_allow_undefined_flag_F77 16543 16544# Flag that forces no undefined symbols. 16545no_undefined_flag=$lt_no_undefined_flag_F77 16546 16547# Commands used to finish a libtool library installation in a directory. 16548finish_cmds=$lt_finish_cmds 16549 16550# Same as above, but a single script fragment to be evaled but not shown. 16551finish_eval=$lt_finish_eval 16552 16553# Take the output of nm and produce a listing of raw symbols and C names. 16554global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16555 16556# Transform the output of nm in a proper C declaration 16557global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16558 16559# Transform the output of nm in a C name address pair 16560global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16561 16562# This is the shared library runtime path variable. 16563runpath_var=$runpath_var 16564 16565# This is the shared library path variable. 16566shlibpath_var=$shlibpath_var 16567 16568# Is shlibpath searched before the hard-coded library search path? 16569shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16570 16571# How to hardcode a shared library path into an executable. 16572hardcode_action=$hardcode_action_F77 16573 16574# Whether we should hardcode library paths into libraries. 16575hardcode_into_libs=$hardcode_into_libs 16576 16577# Flag to hardcode \$libdir into a binary during linking. 16578# This must work even if \$libdir does not exist. 16579hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16580 16581# If ld is used when linking, flag to hardcode \$libdir into 16582# a binary during linking. This must work even if \$libdir does 16583# not exist. 16584hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16585 16586# Whether we need a single -rpath flag with a separated argument. 16587hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16588 16589# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16590# resulting binary. 16591hardcode_direct=$hardcode_direct_F77 16592 16593# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16594# resulting binary. 16595hardcode_minus_L=$hardcode_minus_L_F77 16596 16597# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16598# the resulting binary. 16599hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16600 16601# Set to yes if building a shared library automatically hardcodes DIR into the library 16602# and all subsequent libraries and executables linked against it. 16603hardcode_automatic=$hardcode_automatic_F77 16604 16605# Variables whose values should be saved in libtool wrapper scripts and 16606# restored at relink time. 16607variables_saved_for_relink="$variables_saved_for_relink" 16608 16609# Whether libtool must link a program against all its dependency libraries. 16610link_all_deplibs=$link_all_deplibs_F77 16611 16612# Compile-time system search path for libraries 16613sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16614 16615# Run-time system search path for libraries 16616sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16617 16618# Fix the shell variable \$srcfile for the compiler. 16619fix_srcfile_path=$lt_fix_srcfile_path 16620 16621# Set to yes if exported symbols are required. 16622always_export_symbols=$always_export_symbols_F77 16623 16624# The commands to list exported symbols. 16625export_symbols_cmds=$lt_export_symbols_cmds_F77 16626 16627# The commands to extract the exported symbol list from a shared archive. 16628extract_expsyms_cmds=$lt_extract_expsyms_cmds 16629 16630# Symbols that should not be listed in the preloaded symbols. 16631exclude_expsyms=$lt_exclude_expsyms_F77 16632 16633# Symbols that must always be exported. 16634include_expsyms=$lt_include_expsyms_F77 16635 16636# ### END LIBTOOL TAG CONFIG: $tagname 16637 16638__EOF__ 16639 16640 16641else 16642 # If there is no Makefile yet, we rely on a make rule to execute 16643 # `config.status --recheck' to rerun these tests and create the 16644 # libtool script then. 16645 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16646 if test -f "$ltmain_in"; then 16647 test -f Makefile && make "$ltmain" 16648 fi 16649fi 16650 16651 16652ac_ext=c 16653ac_cpp='$CPP $CPPFLAGS' 16654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16656ac_compiler_gnu=$ac_cv_c_compiler_gnu 16657 16658CC="$lt_save_CC" 16659 16660 else 16661 tagname="" 16662 fi 16663 ;; 16664 16665 GCJ) 16666 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16667 16668 16669# Source file extension for Java test sources. 16670ac_ext=java 16671 16672# Object file extension for compiled Java test sources. 16673objext=o 16674objext_GCJ=$objext 16675 16676# Code to be used in simple compile tests 16677lt_simple_compile_test_code="class foo {}" 16678 16679# Code to be used in simple link tests 16680lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16681 16682# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16683 16684# If no C compiler was specified, use CC. 16685LTCC=${LTCC-"$CC"} 16686 16687# If no C compiler flags were specified, use CFLAGS. 16688LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16689 16690# Allow CC to be a program name with arguments. 16691compiler=$CC 16692 16693 16694# save warnings/boilerplate of simple test code 16695ac_outfile=conftest.$ac_objext 16696echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16697eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16698_lt_compiler_boilerplate=`cat conftest.err` 16699$rm conftest* 16700 16701ac_outfile=conftest.$ac_objext 16702echo "$lt_simple_link_test_code" >conftest.$ac_ext 16703eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16704_lt_linker_boilerplate=`cat conftest.err` 16705$rm -r conftest* 16706 16707 16708# Allow CC to be a program name with arguments. 16709lt_save_CC="$CC" 16710CC=${GCJ-"gcj"} 16711compiler=$CC 16712compiler_GCJ=$CC 16713for cc_temp in $compiler""; do 16714 case $cc_temp in 16715 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16716 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16717 \-*) ;; 16718 *) break;; 16719 esac 16720done 16721cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16722 16723 16724# GCJ did not exist at the time GCC didn't implicitly link libc in. 16725archive_cmds_need_lc_GCJ=no 16726 16727old_archive_cmds_GCJ=$old_archive_cmds 16728 16729 16730lt_prog_compiler_no_builtin_flag_GCJ= 16731 16732if test "$GCC" = yes; then 16733 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16734 16735 16736{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16737echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16738if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16739 echo $ECHO_N "(cached) $ECHO_C" >&6 16740else 16741 lt_cv_prog_compiler_rtti_exceptions=no 16742 ac_outfile=conftest.$ac_objext 16743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16744 lt_compiler_flag="-fno-rtti -fno-exceptions" 16745 # Insert the option either (1) after the last *FLAGS variable, or 16746 # (2) before a word containing "conftest.", or (3) at the end. 16747 # Note that $ac_compile itself does not contain backslashes and begins 16748 # with a dollar sign (not a hyphen), so the echo should work correctly. 16749 # The option is referenced via a variable to avoid confusing sed. 16750 lt_compile=`echo "$ac_compile" | $SED \ 16751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16753 -e 's:$: $lt_compiler_flag:'` 16754 (eval echo "\"\$as_me:16754: $lt_compile\"" >&5) 16755 (eval "$lt_compile" 2>conftest.err) 16756 ac_status=$? 16757 cat conftest.err >&5 16758 echo "$as_me:16758: \$? = $ac_status" >&5 16759 if (exit $ac_status) && test -s "$ac_outfile"; then 16760 # The compiler can only warn and ignore the option if not recognized 16761 # So say no if there are warnings other than the usual output. 16762 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16765 lt_cv_prog_compiler_rtti_exceptions=yes 16766 fi 16767 fi 16768 $rm conftest* 16769 16770fi 16771{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16772echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16773 16774if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16775 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16776else 16777 : 16778fi 16779 16780fi 16781 16782lt_prog_compiler_wl_GCJ= 16783lt_prog_compiler_pic_GCJ= 16784lt_prog_compiler_static_GCJ= 16785 16786{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16787echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16788 16789 if test "$GCC" = yes; then 16790 lt_prog_compiler_wl_GCJ='-Wl,' 16791 lt_prog_compiler_static_GCJ='-static' 16792 16793 case $host_os in 16794 aix*) 16795 # All AIX code is PIC. 16796 if test "$host_cpu" = ia64; then 16797 # AIX 5 now supports IA64 processor 16798 lt_prog_compiler_static_GCJ='-Bstatic' 16799 fi 16800 ;; 16801 16802 amigaos*) 16803 # FIXME: we need at least 68020 code to build shared libraries, but 16804 # adding the `-m68020' flag to GCC prevents building anything better, 16805 # like `-m68040'. 16806 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16807 ;; 16808 16809 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16810 # PIC is the default for these OSes. 16811 ;; 16812 16813 mingw* | cygwin* | pw32* | os2*) 16814 # This hack is so that the source file can tell whether it is being 16815 # built for inclusion in a dll (and should export symbols for example). 16816 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16817 # (--disable-auto-import) libraries 16818 16819 ;; 16820 16821 darwin* | rhapsody*) 16822 # PIC is the default on this platform 16823 # Common symbols not allowed in MH_DYLIB files 16824 lt_prog_compiler_pic_GCJ='-fno-common' 16825 ;; 16826 16827 interix[3-9]*) 16828 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16829 # Instead, we relocate shared libraries at runtime. 16830 ;; 16831 16832 msdosdjgpp*) 16833 # Just because we use GCC doesn't mean we suddenly get shared libraries 16834 # on systems that don't support them. 16835 lt_prog_compiler_can_build_shared_GCJ=no 16836 enable_shared=no 16837 ;; 16838 16839 sysv4*MP*) 16840 if test -d /usr/nec; then 16841 lt_prog_compiler_pic_GCJ=-Kconform_pic 16842 fi 16843 ;; 16844 16845 hpux*) 16846 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16847 # not for PA HP-UX. 16848 case $host_cpu in 16849 hppa*64*|ia64*) 16850 # +Z the default 16851 ;; 16852 *) 16853 lt_prog_compiler_pic_GCJ='-fPIC' 16854 ;; 16855 esac 16856 ;; 16857 16858 *) 16859 lt_prog_compiler_pic_GCJ='-fPIC' 16860 ;; 16861 esac 16862 else 16863 # PORTME Check for flag to pass linker flags through the system compiler. 16864 case $host_os in 16865 aix*) 16866 lt_prog_compiler_wl_GCJ='-Wl,' 16867 if test "$host_cpu" = ia64; then 16868 # AIX 5 now supports IA64 processor 16869 lt_prog_compiler_static_GCJ='-Bstatic' 16870 else 16871 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16872 fi 16873 ;; 16874 darwin*) 16875 # PIC is the default on this platform 16876 # Common symbols not allowed in MH_DYLIB files 16877 case $cc_basename in 16878 xlc*) 16879 lt_prog_compiler_pic_GCJ='-qnocommon' 16880 lt_prog_compiler_wl_GCJ='-Wl,' 16881 ;; 16882 esac 16883 ;; 16884 16885 mingw* | cygwin* | pw32* | os2*) 16886 # This hack is so that the source file can tell whether it is being 16887 # built for inclusion in a dll (and should export symbols for example). 16888 16889 ;; 16890 16891 hpux9* | hpux10* | hpux11*) 16892 lt_prog_compiler_wl_GCJ='-Wl,' 16893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16894 # not for PA HP-UX. 16895 case $host_cpu in 16896 hppa*64*|ia64*) 16897 # +Z the default 16898 ;; 16899 *) 16900 lt_prog_compiler_pic_GCJ='+Z' 16901 ;; 16902 esac 16903 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16904 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16905 ;; 16906 16907 irix5* | irix6* | nonstopux*) 16908 lt_prog_compiler_wl_GCJ='-Wl,' 16909 # PIC (with -KPIC) is the default. 16910 lt_prog_compiler_static_GCJ='-non_shared' 16911 ;; 16912 16913 newsos6) 16914 lt_prog_compiler_pic_GCJ='-KPIC' 16915 lt_prog_compiler_static_GCJ='-Bstatic' 16916 ;; 16917 16918 linux* | k*bsd*-gnu) 16919 case $cc_basename in 16920 icc* | ecc*) 16921 lt_prog_compiler_wl_GCJ='-Wl,' 16922 lt_prog_compiler_pic_GCJ='-KPIC' 16923 lt_prog_compiler_static_GCJ='-static' 16924 ;; 16925 pgcc* | pgf77* | pgf90* | pgf95*) 16926 # Portland Group compilers (*not* the Pentium gcc compiler, 16927 # which looks to be a dead project) 16928 lt_prog_compiler_wl_GCJ='-Wl,' 16929 lt_prog_compiler_pic_GCJ='-fpic' 16930 lt_prog_compiler_static_GCJ='-Bstatic' 16931 ;; 16932 ccc*) 16933 lt_prog_compiler_wl_GCJ='-Wl,' 16934 # All Alpha code is PIC. 16935 lt_prog_compiler_static_GCJ='-non_shared' 16936 ;; 16937 *) 16938 case `$CC -V 2>&1 | sed 5q` in 16939 *Sun\ C*) 16940 # Sun C 5.9 16941 lt_prog_compiler_pic_GCJ='-KPIC' 16942 lt_prog_compiler_static_GCJ='-Bstatic' 16943 lt_prog_compiler_wl_GCJ='-Wl,' 16944 ;; 16945 *Sun\ F*) 16946 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16947 lt_prog_compiler_pic_GCJ='-KPIC' 16948 lt_prog_compiler_static_GCJ='-Bstatic' 16949 lt_prog_compiler_wl_GCJ='' 16950 ;; 16951 esac 16952 ;; 16953 esac 16954 ;; 16955 16956 osf3* | osf4* | osf5*) 16957 lt_prog_compiler_wl_GCJ='-Wl,' 16958 # All OSF/1 code is PIC. 16959 lt_prog_compiler_static_GCJ='-non_shared' 16960 ;; 16961 16962 rdos*) 16963 lt_prog_compiler_static_GCJ='-non_shared' 16964 ;; 16965 16966 solaris*) 16967 lt_prog_compiler_pic_GCJ='-KPIC' 16968 lt_prog_compiler_static_GCJ='-Bstatic' 16969 case $cc_basename in 16970 f77* | f90* | f95*) 16971 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16972 *) 16973 lt_prog_compiler_wl_GCJ='-Wl,';; 16974 esac 16975 ;; 16976 16977 sunos4*) 16978 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16979 lt_prog_compiler_pic_GCJ='-PIC' 16980 lt_prog_compiler_static_GCJ='-Bstatic' 16981 ;; 16982 16983 sysv4 | sysv4.2uw2* | sysv4.3*) 16984 lt_prog_compiler_wl_GCJ='-Wl,' 16985 lt_prog_compiler_pic_GCJ='-KPIC' 16986 lt_prog_compiler_static_GCJ='-Bstatic' 16987 ;; 16988 16989 sysv4*MP*) 16990 if test -d /usr/nec ;then 16991 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16992 lt_prog_compiler_static_GCJ='-Bstatic' 16993 fi 16994 ;; 16995 16996 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16997 lt_prog_compiler_wl_GCJ='-Wl,' 16998 lt_prog_compiler_pic_GCJ='-KPIC' 16999 lt_prog_compiler_static_GCJ='-Bstatic' 17000 ;; 17001 17002 unicos*) 17003 lt_prog_compiler_wl_GCJ='-Wl,' 17004 lt_prog_compiler_can_build_shared_GCJ=no 17005 ;; 17006 17007 uts4*) 17008 lt_prog_compiler_pic_GCJ='-pic' 17009 lt_prog_compiler_static_GCJ='-Bstatic' 17010 ;; 17011 17012 *) 17013 lt_prog_compiler_can_build_shared_GCJ=no 17014 ;; 17015 esac 17016 fi 17017 17018{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17019echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 17020 17021# 17022# Check to make sure the PIC flag actually works. 17023# 17024if test -n "$lt_prog_compiler_pic_GCJ"; then 17025 17026{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17027echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 17028if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17029 echo $ECHO_N "(cached) $ECHO_C" >&6 17030else 17031 lt_cv_prog_compiler_pic_works_GCJ=no 17032 ac_outfile=conftest.$ac_objext 17033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17034 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17035 # Insert the option either (1) after the last *FLAGS variable, or 17036 # (2) before a word containing "conftest.", or (3) at the end. 17037 # Note that $ac_compile itself does not contain backslashes and begins 17038 # with a dollar sign (not a hyphen), so the echo should work correctly. 17039 # The option is referenced via a variable to avoid confusing sed. 17040 lt_compile=`echo "$ac_compile" | $SED \ 17041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17043 -e 's:$: $lt_compiler_flag:'` 17044 (eval echo "\"\$as_me:17044: $lt_compile\"" >&5) 17045 (eval "$lt_compile" 2>conftest.err) 17046 ac_status=$? 17047 cat conftest.err >&5 17048 echo "$as_me:17048: \$? = $ac_status" >&5 17049 if (exit $ac_status) && test -s "$ac_outfile"; then 17050 # The compiler can only warn and ignore the option if not recognized 17051 # So say no if there are warnings other than the usual output. 17052 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17053 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17054 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17055 lt_cv_prog_compiler_pic_works_GCJ=yes 17056 fi 17057 fi 17058 $rm conftest* 17059 17060fi 17061{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17062echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17063 17064if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17065 case $lt_prog_compiler_pic_GCJ in 17066 "" | " "*) ;; 17067 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17068 esac 17069else 17070 lt_prog_compiler_pic_GCJ= 17071 lt_prog_compiler_can_build_shared_GCJ=no 17072fi 17073 17074fi 17075case $host_os in 17076 # For platforms which do not support PIC, -DPIC is meaningless: 17077 *djgpp*) 17078 lt_prog_compiler_pic_GCJ= 17079 ;; 17080 *) 17081 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17082 ;; 17083esac 17084 17085# 17086# Check to make sure the static flag actually works. 17087# 17088wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17089{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17090echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17091if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17092 echo $ECHO_N "(cached) $ECHO_C" >&6 17093else 17094 lt_cv_prog_compiler_static_works_GCJ=no 17095 save_LDFLAGS="$LDFLAGS" 17096 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17097 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17098 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17099 # The linker can only warn and ignore the option if not recognized 17100 # So say no if there are warnings 17101 if test -s conftest.err; then 17102 # Append any errors to the config.log. 17103 cat conftest.err 1>&5 17104 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17106 if diff conftest.exp conftest.er2 >/dev/null; then 17107 lt_cv_prog_compiler_static_works_GCJ=yes 17108 fi 17109 else 17110 lt_cv_prog_compiler_static_works_GCJ=yes 17111 fi 17112 fi 17113 $rm -r conftest* 17114 LDFLAGS="$save_LDFLAGS" 17115 17116fi 17117{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17118echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17119 17120if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17121 : 17122else 17123 lt_prog_compiler_static_GCJ= 17124fi 17125 17126 17127{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17128echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17129if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17130 echo $ECHO_N "(cached) $ECHO_C" >&6 17131else 17132 lt_cv_prog_compiler_c_o_GCJ=no 17133 $rm -r conftest 2>/dev/null 17134 mkdir conftest 17135 cd conftest 17136 mkdir out 17137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17138 17139 lt_compiler_flag="-o out/conftest2.$ac_objext" 17140 # Insert the option either (1) after the last *FLAGS variable, or 17141 # (2) before a word containing "conftest.", or (3) at the end. 17142 # Note that $ac_compile itself does not contain backslashes and begins 17143 # with a dollar sign (not a hyphen), so the echo should work correctly. 17144 lt_compile=`echo "$ac_compile" | $SED \ 17145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17147 -e 's:$: $lt_compiler_flag:'` 17148 (eval echo "\"\$as_me:17148: $lt_compile\"" >&5) 17149 (eval "$lt_compile" 2>out/conftest.err) 17150 ac_status=$? 17151 cat out/conftest.err >&5 17152 echo "$as_me:17152: \$? = $ac_status" >&5 17153 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17154 then 17155 # The compiler can only warn and ignore the option if not recognized 17156 # So say no if there are warnings 17157 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17158 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17159 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17160 lt_cv_prog_compiler_c_o_GCJ=yes 17161 fi 17162 fi 17163 chmod u+w . 2>&5 17164 $rm conftest* 17165 # SGI C++ compiler will create directory out/ii_files/ for 17166 # template instantiation 17167 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17168 $rm out/* && rmdir out 17169 cd .. 17170 rmdir conftest 17171 $rm conftest* 17172 17173fi 17174{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17175echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17176 17177 17178hard_links="nottested" 17179if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17180 # do not overwrite the value of need_locks provided by the user 17181 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17182echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17183 hard_links=yes 17184 $rm conftest* 17185 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17186 touch conftest.a 17187 ln conftest.a conftest.b 2>&5 || hard_links=no 17188 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17189 { echo "$as_me:$LINENO: result: $hard_links" >&5 17190echo "${ECHO_T}$hard_links" >&6; } 17191 if test "$hard_links" = no; then 17192 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17193echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17194 need_locks=warn 17195 fi 17196else 17197 need_locks=no 17198fi 17199 17200{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17201echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17202 17203 runpath_var= 17204 allow_undefined_flag_GCJ= 17205 enable_shared_with_static_runtimes_GCJ=no 17206 archive_cmds_GCJ= 17207 archive_expsym_cmds_GCJ= 17208 old_archive_From_new_cmds_GCJ= 17209 old_archive_from_expsyms_cmds_GCJ= 17210 export_dynamic_flag_spec_GCJ= 17211 whole_archive_flag_spec_GCJ= 17212 thread_safe_flag_spec_GCJ= 17213 hardcode_libdir_flag_spec_GCJ= 17214 hardcode_libdir_flag_spec_ld_GCJ= 17215 hardcode_libdir_separator_GCJ= 17216 hardcode_direct_GCJ=no 17217 hardcode_minus_L_GCJ=no 17218 hardcode_shlibpath_var_GCJ=unsupported 17219 link_all_deplibs_GCJ=unknown 17220 hardcode_automatic_GCJ=no 17221 module_cmds_GCJ= 17222 module_expsym_cmds_GCJ= 17223 always_export_symbols_GCJ=no 17224 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17225 # include_expsyms should be a list of space-separated symbols to be *always* 17226 # included in the symbol list 17227 include_expsyms_GCJ= 17228 # exclude_expsyms can be an extended regexp of symbols to exclude 17229 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17230 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17231 # as well as any symbol that contains `d'. 17232 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17233 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17234 # platforms (ab)use it in PIC code, but their linkers get confused if 17235 # the symbol is explicitly referenced. Since portable code cannot 17236 # rely on this symbol name, it's probably fine to never include it in 17237 # preloaded symbol tables. 17238 # Exclude shared library initialization/finalization symbols. 17239 extract_expsyms_cmds= 17240 # Just being paranoid about ensuring that cc_basename is set. 17241 for cc_temp in $compiler""; do 17242 case $cc_temp in 17243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17245 \-*) ;; 17246 *) break;; 17247 esac 17248done 17249cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17250 17251 case $host_os in 17252 cygwin* | mingw* | pw32*) 17253 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17254 # When not using gcc, we currently assume that we are using 17255 # Microsoft Visual C++. 17256 if test "$GCC" != yes; then 17257 with_gnu_ld=no 17258 fi 17259 ;; 17260 interix*) 17261 # we just hope/assume this is gcc and not c89 (= MSVC++) 17262 with_gnu_ld=yes 17263 ;; 17264 openbsd*) 17265 with_gnu_ld=no 17266 ;; 17267 esac 17268 17269 ld_shlibs_GCJ=yes 17270 if test "$with_gnu_ld" = yes; then 17271 # If archive_cmds runs LD, not CC, wlarc should be empty 17272 wlarc='${wl}' 17273 17274 # Set some defaults for GNU ld with shared library support. These 17275 # are reset later if shared libraries are not supported. Putting them 17276 # here allows them to be overridden if necessary. 17277 runpath_var=LD_RUN_PATH 17278 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17279 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17280 # ancient GNU ld didn't support --whole-archive et. al. 17281 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17282 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17283 else 17284 whole_archive_flag_spec_GCJ= 17285 fi 17286 supports_anon_versioning=no 17287 case `$LD -v 2>/dev/null` in 17288 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17289 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17290 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17291 *\ 2.11.*) ;; # other 2.11 versions 17292 *) supports_anon_versioning=yes ;; 17293 esac 17294 17295 # See if GNU ld supports shared libraries. 17296 case $host_os in 17297 aix[3-9]*) 17298 # On AIX/PPC, the GNU linker is very broken 17299 if test "$host_cpu" != ia64; then 17300 ld_shlibs_GCJ=no 17301 cat <<EOF 1>&2 17302 17303*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17304*** to be unable to reliably create shared libraries on AIX. 17305*** Therefore, libtool is disabling shared libraries support. If you 17306*** really care for shared libraries, you may want to modify your PATH 17307*** so that a non-GNU linker is found, and then restart. 17308 17309EOF 17310 fi 17311 ;; 17312 17313 amigaos*) 17314 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)' 17315 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17316 hardcode_minus_L_GCJ=yes 17317 17318 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17319 # that the semantics of dynamic libraries on AmigaOS, at least up 17320 # to version 4, is to share data among multiple programs linked 17321 # with the same dynamic library. Since this doesn't match the 17322 # behavior of shared libraries on other platforms, we can't use 17323 # them. 17324 ld_shlibs_GCJ=no 17325 ;; 17326 17327 beos*) 17328 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17329 allow_undefined_flag_GCJ=unsupported 17330 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17331 # support --undefined. This deserves some investigation. FIXME 17332 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17333 else 17334 ld_shlibs_GCJ=no 17335 fi 17336 ;; 17337 17338 cygwin* | mingw* | pw32*) 17339 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17340 # as there is no search path for DLLs. 17341 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17342 allow_undefined_flag_GCJ=unsupported 17343 always_export_symbols_GCJ=no 17344 enable_shared_with_static_runtimes_GCJ=yes 17345 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17346 17347 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17348 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17349 # If the export-symbols file already is a .def file (1st line 17350 # is EXPORTS), use it as is; otherwise, prepend... 17351 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17352 cp $export_symbols $output_objdir/$soname.def; 17353 else 17354 echo EXPORTS > $output_objdir/$soname.def; 17355 cat $export_symbols >> $output_objdir/$soname.def; 17356 fi~ 17357 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17358 else 17359 ld_shlibs_GCJ=no 17360 fi 17361 ;; 17362 17363 interix[3-9]*) 17364 hardcode_direct_GCJ=no 17365 hardcode_shlibpath_var_GCJ=no 17366 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17367 export_dynamic_flag_spec_GCJ='${wl}-E' 17368 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17369 # Instead, shared libraries are loaded at an image base (0x10000000 by 17370 # default) and relocated if they conflict, which is a slow very memory 17371 # consuming and fragmenting process. To avoid this, we pick a random, 17372 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17373 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17374 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' 17375 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' 17376 ;; 17377 17378 gnu* | linux* | k*bsd*-gnu) 17379 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17380 tmp_addflag= 17381 case $cc_basename,$host_cpu in 17382 pgcc*) # Portland Group C compiler 17383 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' 17384 tmp_addflag=' $pic_flag' 17385 ;; 17386 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17387 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' 17388 tmp_addflag=' $pic_flag -Mnomain' ;; 17389 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17390 tmp_addflag=' -i_dynamic' ;; 17391 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17392 tmp_addflag=' -i_dynamic -nofor_main' ;; 17393 ifc* | ifort*) # Intel Fortran compiler 17394 tmp_addflag=' -nofor_main' ;; 17395 esac 17396 case `$CC -V 2>&1 | sed 5q` in 17397 *Sun\ C*) # Sun C 5.9 17398 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' 17399 tmp_sharedflag='-G' ;; 17400 *Sun\ F*) # Sun Fortran 8.3 17401 tmp_sharedflag='-G' ;; 17402 *) 17403 tmp_sharedflag='-shared' ;; 17404 esac 17405 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17406 17407 if test $supports_anon_versioning = yes; then 17408 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17409 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17410 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17411 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17412 fi 17413 link_all_deplibs_GCJ=no 17414 else 17415 ld_shlibs_GCJ=no 17416 fi 17417 ;; 17418 17419 netbsd* | netbsdelf*-gnu) 17420 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17421 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17422 wlarc= 17423 else 17424 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17425 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17426 fi 17427 ;; 17428 17429 solaris*) 17430 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17431 ld_shlibs_GCJ=no 17432 cat <<EOF 1>&2 17433 17434*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17435*** create shared libraries on Solaris systems. Therefore, libtool 17436*** is disabling shared libraries support. We urge you to upgrade GNU 17437*** binutils to release 2.9.1 or newer. Another option is to modify 17438*** your PATH or compiler configuration so that the native linker is 17439*** used, and then restart. 17440 17441EOF 17442 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17443 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17444 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17445 else 17446 ld_shlibs_GCJ=no 17447 fi 17448 ;; 17449 17450 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17451 case `$LD -v 2>&1` in 17452 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17453 ld_shlibs_GCJ=no 17454 cat <<_LT_EOF 1>&2 17455 17456*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17457*** reliably create shared libraries on SCO systems. Therefore, libtool 17458*** is disabling shared libraries support. We urge you to upgrade GNU 17459*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17460*** your PATH or compiler configuration so that the native linker is 17461*** used, and then restart. 17462 17463_LT_EOF 17464 ;; 17465 *) 17466 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17467 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17468 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17469 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17470 else 17471 ld_shlibs_GCJ=no 17472 fi 17473 ;; 17474 esac 17475 ;; 17476 17477 sunos4*) 17478 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17479 wlarc= 17480 hardcode_direct_GCJ=yes 17481 hardcode_shlibpath_var_GCJ=no 17482 ;; 17483 17484 *) 17485 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17486 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17487 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17488 else 17489 ld_shlibs_GCJ=no 17490 fi 17491 ;; 17492 esac 17493 17494 if test "$ld_shlibs_GCJ" = no; then 17495 runpath_var= 17496 hardcode_libdir_flag_spec_GCJ= 17497 export_dynamic_flag_spec_GCJ= 17498 whole_archive_flag_spec_GCJ= 17499 fi 17500 else 17501 # PORTME fill in a description of your system's linker (not GNU ld) 17502 case $host_os in 17503 aix3*) 17504 allow_undefined_flag_GCJ=unsupported 17505 always_export_symbols_GCJ=yes 17506 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' 17507 # Note: this linker hardcodes the directories in LIBPATH if there 17508 # are no directories specified by -L. 17509 hardcode_minus_L_GCJ=yes 17510 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17511 # Neither direct hardcoding nor static linking is supported with a 17512 # broken collect2. 17513 hardcode_direct_GCJ=unsupported 17514 fi 17515 ;; 17516 17517 aix[4-9]*) 17518 if test "$host_cpu" = ia64; then 17519 # On IA64, the linker does run time linking by default, so we don't 17520 # have to do anything special. 17521 aix_use_runtimelinking=no 17522 exp_sym_flag='-Bexport' 17523 no_entry_flag="" 17524 else 17525 # If we're using GNU nm, then we don't want the "-C" option. 17526 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17527 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17528 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' 17529 else 17530 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' 17531 fi 17532 aix_use_runtimelinking=no 17533 17534 # Test if we are trying to use run time linking or normal 17535 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17536 # need to do runtime linking. 17537 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17538 for ld_flag in $LDFLAGS; do 17539 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17540 aix_use_runtimelinking=yes 17541 break 17542 fi 17543 done 17544 ;; 17545 esac 17546 17547 exp_sym_flag='-bexport' 17548 no_entry_flag='-bnoentry' 17549 fi 17550 17551 # When large executables or shared objects are built, AIX ld can 17552 # have problems creating the table of contents. If linking a library 17553 # or program results in "error TOC overflow" add -mminimal-toc to 17554 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17555 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17556 17557 archive_cmds_GCJ='' 17558 hardcode_direct_GCJ=yes 17559 hardcode_libdir_separator_GCJ=':' 17560 link_all_deplibs_GCJ=yes 17561 17562 if test "$GCC" = yes; then 17563 case $host_os in aix4.[012]|aix4.[012].*) 17564 # We only want to do this on AIX 4.2 and lower, the check 17565 # below for broken collect2 doesn't work under 4.3+ 17566 collect2name=`${CC} -print-prog-name=collect2` 17567 if test -f "$collect2name" && \ 17568 strings "$collect2name" | grep resolve_lib_name >/dev/null 17569 then 17570 # We have reworked collect2 17571 : 17572 else 17573 # We have old collect2 17574 hardcode_direct_GCJ=unsupported 17575 # It fails to find uninstalled libraries when the uninstalled 17576 # path is not listed in the libpath. Setting hardcode_minus_L 17577 # to unsupported forces relinking 17578 hardcode_minus_L_GCJ=yes 17579 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17580 hardcode_libdir_separator_GCJ= 17581 fi 17582 ;; 17583 esac 17584 shared_flag='-shared' 17585 if test "$aix_use_runtimelinking" = yes; then 17586 shared_flag="$shared_flag "'${wl}-G' 17587 fi 17588 else 17589 # not using gcc 17590 if test "$host_cpu" = ia64; then 17591 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17592 # chokes on -Wl,-G. The following line is correct: 17593 shared_flag='-G' 17594 else 17595 if test "$aix_use_runtimelinking" = yes; then 17596 shared_flag='${wl}-G' 17597 else 17598 shared_flag='${wl}-bM:SRE' 17599 fi 17600 fi 17601 fi 17602 17603 # It seems that -bexpall does not export symbols beginning with 17604 # underscore (_), so it is better to generate a list of symbols to export. 17605 always_export_symbols_GCJ=yes 17606 if test "$aix_use_runtimelinking" = yes; then 17607 # Warning - without using the other runtime loading flags (-brtl), 17608 # -berok will link without error, but may produce a broken library. 17609 allow_undefined_flag_GCJ='-berok' 17610 # Determine the default libpath from the value encoded in an empty executable. 17611 cat >conftest.$ac_ext <<_ACEOF 17612/* confdefs.h. */ 17613_ACEOF 17614cat confdefs.h >>conftest.$ac_ext 17615cat >>conftest.$ac_ext <<_ACEOF 17616/* end confdefs.h. */ 17617 17618int 17619main () 17620{ 17621 17622 ; 17623 return 0; 17624} 17625_ACEOF 17626rm -f conftest.$ac_objext conftest$ac_exeext 17627if { (ac_try="$ac_link" 17628case "(($ac_try" in 17629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17630 *) ac_try_echo=$ac_try;; 17631esac 17632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17633 (eval "$ac_link") 2>conftest.er1 17634 ac_status=$? 17635 grep -v '^ *+' conftest.er1 >conftest.err 17636 rm -f conftest.er1 17637 cat conftest.err >&5 17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17639 (exit $ac_status); } && { 17640 test -z "$ac_c_werror_flag" || 17641 test ! -s conftest.err 17642 } && test -s conftest$ac_exeext && 17643 $as_test_x conftest$ac_exeext; then 17644 17645lt_aix_libpath_sed=' 17646 /Import File Strings/,/^$/ { 17647 /^0/ { 17648 s/^0 *\(.*\)$/\1/ 17649 p 17650 } 17651 }' 17652aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17653# Check for a 64-bit object if we didn't find anything. 17654if test -z "$aix_libpath"; then 17655 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17656fi 17657else 17658 echo "$as_me: failed program was:" >&5 17659sed 's/^/| /' conftest.$ac_ext >&5 17660 17661 17662fi 17663 17664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17665 conftest$ac_exeext conftest.$ac_ext 17666if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17667 17668 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17669 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" 17670 else 17671 if test "$host_cpu" = ia64; then 17672 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17673 allow_undefined_flag_GCJ="-z nodefs" 17674 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" 17675 else 17676 # Determine the default libpath from the value encoded in an empty executable. 17677 cat >conftest.$ac_ext <<_ACEOF 17678/* confdefs.h. */ 17679_ACEOF 17680cat confdefs.h >>conftest.$ac_ext 17681cat >>conftest.$ac_ext <<_ACEOF 17682/* end confdefs.h. */ 17683 17684int 17685main () 17686{ 17687 17688 ; 17689 return 0; 17690} 17691_ACEOF 17692rm -f conftest.$ac_objext conftest$ac_exeext 17693if { (ac_try="$ac_link" 17694case "(($ac_try" in 17695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17696 *) ac_try_echo=$ac_try;; 17697esac 17698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17699 (eval "$ac_link") 2>conftest.er1 17700 ac_status=$? 17701 grep -v '^ *+' conftest.er1 >conftest.err 17702 rm -f conftest.er1 17703 cat conftest.err >&5 17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17705 (exit $ac_status); } && { 17706 test -z "$ac_c_werror_flag" || 17707 test ! -s conftest.err 17708 } && test -s conftest$ac_exeext && 17709 $as_test_x conftest$ac_exeext; then 17710 17711lt_aix_libpath_sed=' 17712 /Import File Strings/,/^$/ { 17713 /^0/ { 17714 s/^0 *\(.*\)$/\1/ 17715 p 17716 } 17717 }' 17718aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17719# Check for a 64-bit object if we didn't find anything. 17720if test -z "$aix_libpath"; then 17721 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17722fi 17723else 17724 echo "$as_me: failed program was:" >&5 17725sed 's/^/| /' conftest.$ac_ext >&5 17726 17727 17728fi 17729 17730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17731 conftest$ac_exeext conftest.$ac_ext 17732if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17733 17734 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17735 # Warning - without using the other run time loading flags, 17736 # -berok will link without error, but may produce a broken library. 17737 no_undefined_flag_GCJ=' ${wl}-bernotok' 17738 allow_undefined_flag_GCJ=' ${wl}-berok' 17739 # Exported symbols can be pulled into shared objects from archives 17740 whole_archive_flag_spec_GCJ='$convenience' 17741 archive_cmds_need_lc_GCJ=yes 17742 # This is similar to how AIX traditionally builds its shared libraries. 17743 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' 17744 fi 17745 fi 17746 ;; 17747 17748 amigaos*) 17749 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)' 17750 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17751 hardcode_minus_L_GCJ=yes 17752 # see comment about different semantics on the GNU ld section 17753 ld_shlibs_GCJ=no 17754 ;; 17755 17756 bsdi[45]*) 17757 export_dynamic_flag_spec_GCJ=-rdynamic 17758 ;; 17759 17760 cygwin* | mingw* | pw32*) 17761 # When not using gcc, we currently assume that we are using 17762 # Microsoft Visual C++. 17763 # hardcode_libdir_flag_spec is actually meaningless, as there is 17764 # no search path for DLLs. 17765 hardcode_libdir_flag_spec_GCJ=' ' 17766 allow_undefined_flag_GCJ=unsupported 17767 # Tell ltmain to make .lib files, not .a files. 17768 libext=lib 17769 # Tell ltmain to make .dll files, not .so files. 17770 shrext_cmds=".dll" 17771 # FIXME: Setting linknames here is a bad hack. 17772 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17773 # The linker will automatically build a .lib file if we build a DLL. 17774 old_archive_From_new_cmds_GCJ='true' 17775 # FIXME: Should let the user specify the lib program. 17776 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17777 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17778 enable_shared_with_static_runtimes_GCJ=yes 17779 ;; 17780 17781 darwin* | rhapsody*) 17782 case $host_os in 17783 rhapsody* | darwin1.[012]) 17784 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17785 ;; 17786 *) # Darwin 1.3 on 17787 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17788 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17789 else 17790 case ${MACOSX_DEPLOYMENT_TARGET} in 17791 10.[012]) 17792 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17793 ;; 17794 10.*) 17795 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17796 ;; 17797 esac 17798 fi 17799 ;; 17800 esac 17801 archive_cmds_need_lc_GCJ=no 17802 hardcode_direct_GCJ=no 17803 hardcode_automatic_GCJ=yes 17804 hardcode_shlibpath_var_GCJ=unsupported 17805 whole_archive_flag_spec_GCJ='' 17806 link_all_deplibs_GCJ=yes 17807 if test "$GCC" = yes ; then 17808 output_verbose_link_cmd='echo' 17809 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}" 17810 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17811 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}" 17812 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}" 17813 else 17814 case $cc_basename in 17815 xlc*) 17816 output_verbose_link_cmd='echo' 17817 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17818 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17820 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}' 17821 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}' 17822 ;; 17823 *) 17824 ld_shlibs_GCJ=no 17825 ;; 17826 esac 17827 fi 17828 ;; 17829 17830 dgux*) 17831 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17832 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17833 hardcode_shlibpath_var_GCJ=no 17834 ;; 17835 17836 freebsd1*) 17837 ld_shlibs_GCJ=no 17838 ;; 17839 17840 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17841 # support. Future versions do this automatically, but an explicit c++rt0.o 17842 # does not break anything, and helps significantly (at the cost of a little 17843 # extra space). 17844 freebsd2.2*) 17845 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17846 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17847 hardcode_direct_GCJ=yes 17848 hardcode_shlibpath_var_GCJ=no 17849 ;; 17850 17851 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17852 freebsd2*) 17853 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17854 hardcode_direct_GCJ=yes 17855 hardcode_minus_L_GCJ=yes 17856 hardcode_shlibpath_var_GCJ=no 17857 ;; 17858 17859 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17860 freebsd* | dragonfly*) 17861 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17862 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17863 hardcode_direct_GCJ=yes 17864 hardcode_shlibpath_var_GCJ=no 17865 ;; 17866 17867 hpux9*) 17868 if test "$GCC" = yes; then 17869 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' 17870 else 17871 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' 17872 fi 17873 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17874 hardcode_libdir_separator_GCJ=: 17875 hardcode_direct_GCJ=yes 17876 17877 # hardcode_minus_L: Not really in the search PATH, 17878 # but as the default location of the library. 17879 hardcode_minus_L_GCJ=yes 17880 export_dynamic_flag_spec_GCJ='${wl}-E' 17881 ;; 17882 17883 hpux10*) 17884 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17885 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17886 else 17887 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17888 fi 17889 if test "$with_gnu_ld" = no; then 17890 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17891 hardcode_libdir_separator_GCJ=: 17892 17893 hardcode_direct_GCJ=yes 17894 export_dynamic_flag_spec_GCJ='${wl}-E' 17895 17896 # hardcode_minus_L: Not really in the search PATH, 17897 # but as the default location of the library. 17898 hardcode_minus_L_GCJ=yes 17899 fi 17900 ;; 17901 17902 hpux11*) 17903 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17904 case $host_cpu in 17905 hppa*64*) 17906 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17907 ;; 17908 ia64*) 17909 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17910 ;; 17911 *) 17912 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17913 ;; 17914 esac 17915 else 17916 case $host_cpu in 17917 hppa*64*) 17918 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17919 ;; 17920 ia64*) 17921 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17922 ;; 17923 *) 17924 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17925 ;; 17926 esac 17927 fi 17928 if test "$with_gnu_ld" = no; then 17929 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17930 hardcode_libdir_separator_GCJ=: 17931 17932 case $host_cpu in 17933 hppa*64*|ia64*) 17934 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17935 hardcode_direct_GCJ=no 17936 hardcode_shlibpath_var_GCJ=no 17937 ;; 17938 *) 17939 hardcode_direct_GCJ=yes 17940 export_dynamic_flag_spec_GCJ='${wl}-E' 17941 17942 # hardcode_minus_L: Not really in the search PATH, 17943 # but as the default location of the library. 17944 hardcode_minus_L_GCJ=yes 17945 ;; 17946 esac 17947 fi 17948 ;; 17949 17950 irix5* | irix6* | nonstopux*) 17951 if test "$GCC" = yes; then 17952 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' 17953 else 17954 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' 17955 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17956 fi 17957 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17958 hardcode_libdir_separator_GCJ=: 17959 link_all_deplibs_GCJ=yes 17960 ;; 17961 17962 netbsd* | netbsdelf*-gnu) 17963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17964 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17965 else 17966 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17967 fi 17968 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17969 hardcode_direct_GCJ=yes 17970 hardcode_shlibpath_var_GCJ=no 17971 ;; 17972 17973 newsos6) 17974 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17975 hardcode_direct_GCJ=yes 17976 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17977 hardcode_libdir_separator_GCJ=: 17978 hardcode_shlibpath_var_GCJ=no 17979 ;; 17980 17981 openbsd*) 17982 if test -f /usr/libexec/ld.so; then 17983 hardcode_direct_GCJ=yes 17984 hardcode_shlibpath_var_GCJ=no 17985 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17986 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17987 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17988 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17989 export_dynamic_flag_spec_GCJ='${wl}-E' 17990 else 17991 case $host_os in 17992 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17993 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17994 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17995 ;; 17996 *) 17997 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17999 ;; 18000 esac 18001 fi 18002 else 18003 ld_shlibs_GCJ=no 18004 fi 18005 ;; 18006 18007 os2*) 18008 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18009 hardcode_minus_L_GCJ=yes 18010 allow_undefined_flag_GCJ=unsupported 18011 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' 18012 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18013 ;; 18014 18015 osf3*) 18016 if test "$GCC" = yes; then 18017 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18018 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' 18019 else 18020 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18021 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' 18022 fi 18023 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18024 hardcode_libdir_separator_GCJ=: 18025 ;; 18026 18027 osf4* | osf5*) # as osf3* with the addition of -msym flag 18028 if test "$GCC" = yes; then 18029 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18030 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' 18031 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18032 else 18033 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18034 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' 18035 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~ 18036 $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' 18037 18038 # Both c and cxx compiler support -rpath directly 18039 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18040 fi 18041 hardcode_libdir_separator_GCJ=: 18042 ;; 18043 18044 solaris*) 18045 no_undefined_flag_GCJ=' -z text' 18046 if test "$GCC" = yes; then 18047 wlarc='${wl}' 18048 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18049 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18050 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18051 else 18052 wlarc='' 18053 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18054 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18055 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18056 fi 18057 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18058 hardcode_shlibpath_var_GCJ=no 18059 case $host_os in 18060 solaris2.[0-5] | solaris2.[0-5].*) ;; 18061 *) 18062 # The compiler driver will combine and reorder linker options, 18063 # but understands `-z linker_flag'. GCC discards it without `$wl', 18064 # but is careful enough not to reorder. 18065 # Supported since Solaris 2.6 (maybe 2.5.1?) 18066 if test "$GCC" = yes; then 18067 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18068 else 18069 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18070 fi 18071 ;; 18072 esac 18073 link_all_deplibs_GCJ=yes 18074 ;; 18075 18076 sunos4*) 18077 if test "x$host_vendor" = xsequent; then 18078 # Use $CC to link under sequent, because it throws in some extra .o 18079 # files that make .init and .fini sections work. 18080 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18081 else 18082 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18083 fi 18084 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18085 hardcode_direct_GCJ=yes 18086 hardcode_minus_L_GCJ=yes 18087 hardcode_shlibpath_var_GCJ=no 18088 ;; 18089 18090 sysv4) 18091 case $host_vendor in 18092 sni) 18093 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18094 hardcode_direct_GCJ=yes # is this really true??? 18095 ;; 18096 siemens) 18097 ## LD is ld it makes a PLAMLIB 18098 ## CC just makes a GrossModule. 18099 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18100 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18101 hardcode_direct_GCJ=no 18102 ;; 18103 motorola) 18104 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18105 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18106 ;; 18107 esac 18108 runpath_var='LD_RUN_PATH' 18109 hardcode_shlibpath_var_GCJ=no 18110 ;; 18111 18112 sysv4.3*) 18113 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18114 hardcode_shlibpath_var_GCJ=no 18115 export_dynamic_flag_spec_GCJ='-Bexport' 18116 ;; 18117 18118 sysv4*MP*) 18119 if test -d /usr/nec; then 18120 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18121 hardcode_shlibpath_var_GCJ=no 18122 runpath_var=LD_RUN_PATH 18123 hardcode_runpath_var=yes 18124 ld_shlibs_GCJ=yes 18125 fi 18126 ;; 18127 18128 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18129 no_undefined_flag_GCJ='${wl}-z,text' 18130 archive_cmds_need_lc_GCJ=no 18131 hardcode_shlibpath_var_GCJ=no 18132 runpath_var='LD_RUN_PATH' 18133 18134 if test "$GCC" = yes; then 18135 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18136 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18137 else 18138 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18139 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18140 fi 18141 ;; 18142 18143 sysv5* | sco3.2v5* | sco5v6*) 18144 # Note: We can NOT use -z defs as we might desire, because we do not 18145 # link with -lc, and that would cause any symbols used from libc to 18146 # always be unresolved, which means just about no library would 18147 # ever link correctly. If we're not using GNU ld we use -z text 18148 # though, which does catch some bad symbols but isn't as heavy-handed 18149 # as -z defs. 18150 no_undefined_flag_GCJ='${wl}-z,text' 18151 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18152 archive_cmds_need_lc_GCJ=no 18153 hardcode_shlibpath_var_GCJ=no 18154 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18155 hardcode_libdir_separator_GCJ=':' 18156 link_all_deplibs_GCJ=yes 18157 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18158 runpath_var='LD_RUN_PATH' 18159 18160 if test "$GCC" = yes; then 18161 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18162 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18163 else 18164 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18165 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18166 fi 18167 ;; 18168 18169 uts4*) 18170 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18171 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18172 hardcode_shlibpath_var_GCJ=no 18173 ;; 18174 18175 *) 18176 ld_shlibs_GCJ=no 18177 ;; 18178 esac 18179 fi 18180 18181{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18182echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18183test "$ld_shlibs_GCJ" = no && can_build_shared=no 18184 18185# 18186# Do we need to explicitly link libc? 18187# 18188case "x$archive_cmds_need_lc_GCJ" in 18189x|xyes) 18190 # Assume -lc should be added 18191 archive_cmds_need_lc_GCJ=yes 18192 18193 if test "$enable_shared" = yes && test "$GCC" = yes; then 18194 case $archive_cmds_GCJ in 18195 *'~'*) 18196 # FIXME: we may have to deal with multi-command sequences. 18197 ;; 18198 '$CC '*) 18199 # Test whether the compiler implicitly links with -lc since on some 18200 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18201 # to ld, don't add -lc before -lgcc. 18202 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18203echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18204 $rm conftest* 18205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18206 18207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18208 (eval $ac_compile) 2>&5 18209 ac_status=$? 18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18211 (exit $ac_status); } 2>conftest.err; then 18212 soname=conftest 18213 lib=conftest 18214 libobjs=conftest.$ac_objext 18215 deplibs= 18216 wl=$lt_prog_compiler_wl_GCJ 18217 pic_flag=$lt_prog_compiler_pic_GCJ 18218 compiler_flags=-v 18219 linker_flags=-v 18220 verstring= 18221 output_objdir=. 18222 libname=conftest 18223 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18224 allow_undefined_flag_GCJ= 18225 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18226 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18227 ac_status=$? 18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18229 (exit $ac_status); } 18230 then 18231 archive_cmds_need_lc_GCJ=no 18232 else 18233 archive_cmds_need_lc_GCJ=yes 18234 fi 18235 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18236 else 18237 cat conftest.err 1>&5 18238 fi 18239 $rm conftest* 18240 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18241echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18242 ;; 18243 esac 18244 fi 18245 ;; 18246esac 18247 18248{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18249echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18250library_names_spec= 18251libname_spec='lib$name' 18252soname_spec= 18253shrext_cmds=".so" 18254postinstall_cmds= 18255postuninstall_cmds= 18256finish_cmds= 18257finish_eval= 18258shlibpath_var= 18259shlibpath_overrides_runpath=unknown 18260version_type=none 18261dynamic_linker="$host_os ld.so" 18262sys_lib_dlsearch_path_spec="/lib /usr/lib" 18263 18264need_lib_prefix=unknown 18265hardcode_into_libs=no 18266 18267# when you set need_version to no, make sure it does not cause -set_version 18268# flags to be left without arguments 18269need_version=unknown 18270 18271case $host_os in 18272aix3*) 18273 version_type=linux 18274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18275 shlibpath_var=LIBPATH 18276 18277 # AIX 3 has no versioning support, so we append a major version to the name. 18278 soname_spec='${libname}${release}${shared_ext}$major' 18279 ;; 18280 18281aix[4-9]*) 18282 version_type=linux 18283 need_lib_prefix=no 18284 need_version=no 18285 hardcode_into_libs=yes 18286 if test "$host_cpu" = ia64; then 18287 # AIX 5 supports IA64 18288 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18289 shlibpath_var=LD_LIBRARY_PATH 18290 else 18291 # With GCC up to 2.95.x, collect2 would create an import file 18292 # for dependence libraries. The import file would start with 18293 # the line `#! .'. This would cause the generated library to 18294 # depend on `.', always an invalid library. This was fixed in 18295 # development snapshots of GCC prior to 3.0. 18296 case $host_os in 18297 aix4 | aix4.[01] | aix4.[01].*) 18298 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18299 echo ' yes ' 18300 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18301 : 18302 else 18303 can_build_shared=no 18304 fi 18305 ;; 18306 esac 18307 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18308 # soname into executable. Probably we can add versioning support to 18309 # collect2, so additional links can be useful in future. 18310 if test "$aix_use_runtimelinking" = yes; then 18311 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18312 # instead of lib<name>.a to let people know that these are not 18313 # typical AIX shared libraries. 18314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18315 else 18316 # We preserve .a as extension for shared libraries through AIX4.2 18317 # and later when we are not doing run time linking. 18318 library_names_spec='${libname}${release}.a $libname.a' 18319 soname_spec='${libname}${release}${shared_ext}$major' 18320 fi 18321 shlibpath_var=LIBPATH 18322 fi 18323 ;; 18324 18325amigaos*) 18326 library_names_spec='$libname.ixlibrary $libname.a' 18327 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18328 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' 18329 ;; 18330 18331beos*) 18332 library_names_spec='${libname}${shared_ext}' 18333 dynamic_linker="$host_os ld.so" 18334 shlibpath_var=LIBRARY_PATH 18335 ;; 18336 18337bsdi[45]*) 18338 version_type=linux 18339 need_version=no 18340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18341 soname_spec='${libname}${release}${shared_ext}$major' 18342 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18343 shlibpath_var=LD_LIBRARY_PATH 18344 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18345 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18346 # the default ld.so.conf also contains /usr/contrib/lib and 18347 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18348 # libtool to hard-code these into programs 18349 ;; 18350 18351cygwin* | mingw* | pw32*) 18352 version_type=windows 18353 shrext_cmds=".dll" 18354 need_version=no 18355 need_lib_prefix=no 18356 18357 case $GCC,$host_os in 18358 yes,cygwin* | yes,mingw* | yes,pw32*) 18359 library_names_spec='$libname.dll.a' 18360 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18361 postinstall_cmds='base_file=`basename \${file}`~ 18362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18363 dldir=$destdir/`dirname \$dlpath`~ 18364 test -d \$dldir || mkdir -p \$dldir~ 18365 $install_prog $dir/$dlname \$dldir/$dlname~ 18366 chmod a+x \$dldir/$dlname' 18367 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18368 dlpath=$dir/\$dldll~ 18369 $rm \$dlpath' 18370 shlibpath_overrides_runpath=yes 18371 18372 case $host_os in 18373 cygwin*) 18374 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18375 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18376 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18377 ;; 18378 mingw*) 18379 # MinGW DLLs use traditional 'lib' prefix 18380 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18381 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18382 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18383 # It is most probably a Windows format PATH printed by 18384 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18385 # path with ; separators, and with drive letters. We can handle the 18386 # drive letters (cygwin fileutils understands them), so leave them, 18387 # especially as we might pass files found there to a mingw objdump, 18388 # which wouldn't understand a cygwinified path. Ahh. 18389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18390 else 18391 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18392 fi 18393 ;; 18394 pw32*) 18395 # pw32 DLLs use 'pw' prefix rather than 'lib' 18396 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18397 ;; 18398 esac 18399 ;; 18400 18401 *) 18402 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18403 ;; 18404 esac 18405 dynamic_linker='Win32 ld.exe' 18406 # FIXME: first we should search . and the directory the executable is in 18407 shlibpath_var=PATH 18408 ;; 18409 18410darwin* | rhapsody*) 18411 dynamic_linker="$host_os dyld" 18412 version_type=darwin 18413 need_lib_prefix=no 18414 need_version=no 18415 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18416 soname_spec='${libname}${release}${major}$shared_ext' 18417 shlibpath_overrides_runpath=yes 18418 shlibpath_var=DYLD_LIBRARY_PATH 18419 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18420 18421 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18422 ;; 18423 18424dgux*) 18425 version_type=linux 18426 need_lib_prefix=no 18427 need_version=no 18428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18429 soname_spec='${libname}${release}${shared_ext}$major' 18430 shlibpath_var=LD_LIBRARY_PATH 18431 ;; 18432 18433freebsd1*) 18434 dynamic_linker=no 18435 ;; 18436 18437freebsd* | dragonfly*) 18438 # DragonFly does not have aout. When/if they implement a new 18439 # versioning mechanism, adjust this. 18440 if test -x /usr/bin/objformat; then 18441 objformat=`/usr/bin/objformat` 18442 else 18443 case $host_os in 18444 freebsd[123]*) objformat=aout ;; 18445 *) objformat=elf ;; 18446 esac 18447 fi 18448 version_type=freebsd-$objformat 18449 case $version_type in 18450 freebsd-elf*) 18451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18452 need_version=no 18453 need_lib_prefix=no 18454 ;; 18455 freebsd-*) 18456 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18457 need_version=yes 18458 ;; 18459 esac 18460 shlibpath_var=LD_LIBRARY_PATH 18461 case $host_os in 18462 freebsd2*) 18463 shlibpath_overrides_runpath=yes 18464 ;; 18465 freebsd3.[01]* | freebsdelf3.[01]*) 18466 shlibpath_overrides_runpath=yes 18467 hardcode_into_libs=yes 18468 ;; 18469 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18470 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18471 shlibpath_overrides_runpath=no 18472 hardcode_into_libs=yes 18473 ;; 18474 *) # from 4.6 on, and DragonFly 18475 shlibpath_overrides_runpath=yes 18476 hardcode_into_libs=yes 18477 ;; 18478 esac 18479 ;; 18480 18481gnu*) 18482 version_type=linux 18483 need_lib_prefix=no 18484 need_version=no 18485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18486 soname_spec='${libname}${release}${shared_ext}$major' 18487 shlibpath_var=LD_LIBRARY_PATH 18488 hardcode_into_libs=yes 18489 ;; 18490 18491hpux9* | hpux10* | hpux11*) 18492 # Give a soname corresponding to the major version so that dld.sl refuses to 18493 # link against other versions. 18494 version_type=sunos 18495 need_lib_prefix=no 18496 need_version=no 18497 case $host_cpu in 18498 ia64*) 18499 shrext_cmds='.so' 18500 hardcode_into_libs=yes 18501 dynamic_linker="$host_os dld.so" 18502 shlibpath_var=LD_LIBRARY_PATH 18503 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18505 soname_spec='${libname}${release}${shared_ext}$major' 18506 if test "X$HPUX_IA64_MODE" = X32; then 18507 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18508 else 18509 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18510 fi 18511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18512 ;; 18513 hppa*64*) 18514 shrext_cmds='.sl' 18515 hardcode_into_libs=yes 18516 dynamic_linker="$host_os dld.sl" 18517 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18520 soname_spec='${libname}${release}${shared_ext}$major' 18521 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18522 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18523 ;; 18524 *) 18525 shrext_cmds='.sl' 18526 dynamic_linker="$host_os dld.sl" 18527 shlibpath_var=SHLIB_PATH 18528 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18530 soname_spec='${libname}${release}${shared_ext}$major' 18531 ;; 18532 esac 18533 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18534 postinstall_cmds='chmod 555 $lib' 18535 ;; 18536 18537interix[3-9]*) 18538 version_type=linux 18539 need_lib_prefix=no 18540 need_version=no 18541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18542 soname_spec='${libname}${release}${shared_ext}$major' 18543 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18544 shlibpath_var=LD_LIBRARY_PATH 18545 shlibpath_overrides_runpath=no 18546 hardcode_into_libs=yes 18547 ;; 18548 18549irix5* | irix6* | nonstopux*) 18550 case $host_os in 18551 nonstopux*) version_type=nonstopux ;; 18552 *) 18553 if test "$lt_cv_prog_gnu_ld" = yes; then 18554 version_type=linux 18555 else 18556 version_type=irix 18557 fi ;; 18558 esac 18559 need_lib_prefix=no 18560 need_version=no 18561 soname_spec='${libname}${release}${shared_ext}$major' 18562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18563 case $host_os in 18564 irix5* | nonstopux*) 18565 libsuff= shlibsuff= 18566 ;; 18567 *) 18568 case $LD in # libtool.m4 will add one of these switches to LD 18569 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18570 libsuff= shlibsuff= libmagic=32-bit;; 18571 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18572 libsuff=32 shlibsuff=N32 libmagic=N32;; 18573 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18574 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18575 *) libsuff= shlibsuff= libmagic=never-match;; 18576 esac 18577 ;; 18578 esac 18579 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18580 shlibpath_overrides_runpath=no 18581 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18582 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18583 hardcode_into_libs=yes 18584 ;; 18585 18586# No shared lib support for Linux oldld, aout, or coff. 18587linux*oldld* | linux*aout* | linux*coff*) 18588 dynamic_linker=no 18589 ;; 18590 18591# This must be Linux ELF. 18592linux* | k*bsd*-gnu) 18593 version_type=linux 18594 need_lib_prefix=no 18595 need_version=no 18596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18597 soname_spec='${libname}${release}${shared_ext}$major' 18598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18599 shlibpath_var=LD_LIBRARY_PATH 18600 shlibpath_overrides_runpath=no 18601 # This implies no fast_install, which is unacceptable. 18602 # Some rework will be needed to allow for fast_install 18603 # before this can be enabled. 18604 hardcode_into_libs=yes 18605 18606 # Append ld.so.conf contents to the search path 18607 if test -f /etc/ld.so.conf; then 18608 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' ' '` 18609 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18610 fi 18611 18612 # We used to test for /lib/ld.so.1 and disable shared libraries on 18613 # powerpc, because MkLinux only supported shared libraries with the 18614 # GNU dynamic linker. Since this was broken with cross compilers, 18615 # most powerpc-linux boxes support dynamic linking these days and 18616 # people can always --disable-shared, the test was removed, and we 18617 # assume the GNU/Linux dynamic linker is in use. 18618 dynamic_linker='GNU/Linux ld.so' 18619 ;; 18620 18621netbsdelf*-gnu) 18622 version_type=linux 18623 need_lib_prefix=no 18624 need_version=no 18625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18626 soname_spec='${libname}${release}${shared_ext}$major' 18627 shlibpath_var=LD_LIBRARY_PATH 18628 shlibpath_overrides_runpath=no 18629 hardcode_into_libs=yes 18630 dynamic_linker='NetBSD ld.elf_so' 18631 ;; 18632 18633netbsd*) 18634 version_type=sunos 18635 need_lib_prefix=no 18636 need_version=no 18637 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18640 dynamic_linker='NetBSD (a.out) ld.so' 18641 else 18642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18643 soname_spec='${libname}${release}${shared_ext}$major' 18644 dynamic_linker='NetBSD ld.elf_so' 18645 fi 18646 shlibpath_var=LD_LIBRARY_PATH 18647 shlibpath_overrides_runpath=yes 18648 hardcode_into_libs=yes 18649 ;; 18650 18651newsos6) 18652 version_type=linux 18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18654 shlibpath_var=LD_LIBRARY_PATH 18655 shlibpath_overrides_runpath=yes 18656 ;; 18657 18658nto-qnx*) 18659 version_type=linux 18660 need_lib_prefix=no 18661 need_version=no 18662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18663 soname_spec='${libname}${release}${shared_ext}$major' 18664 shlibpath_var=LD_LIBRARY_PATH 18665 shlibpath_overrides_runpath=yes 18666 ;; 18667 18668openbsd*) 18669 version_type=sunos 18670 sys_lib_dlsearch_path_spec="/usr/lib" 18671 need_lib_prefix=no 18672 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18673 case $host_os in 18674 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18675 *) need_version=no ;; 18676 esac 18677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18679 shlibpath_var=LD_LIBRARY_PATH 18680 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18681 case $host_os in 18682 openbsd2.[89] | openbsd2.[89].*) 18683 shlibpath_overrides_runpath=no 18684 ;; 18685 *) 18686 shlibpath_overrides_runpath=yes 18687 ;; 18688 esac 18689 else 18690 shlibpath_overrides_runpath=yes 18691 fi 18692 ;; 18693 18694os2*) 18695 libname_spec='$name' 18696 shrext_cmds=".dll" 18697 need_lib_prefix=no 18698 library_names_spec='$libname${shared_ext} $libname.a' 18699 dynamic_linker='OS/2 ld.exe' 18700 shlibpath_var=LIBPATH 18701 ;; 18702 18703osf3* | osf4* | osf5*) 18704 version_type=osf 18705 need_lib_prefix=no 18706 need_version=no 18707 soname_spec='${libname}${release}${shared_ext}$major' 18708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18709 shlibpath_var=LD_LIBRARY_PATH 18710 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18711 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18712 ;; 18713 18714rdos*) 18715 dynamic_linker=no 18716 ;; 18717 18718solaris*) 18719 version_type=linux 18720 need_lib_prefix=no 18721 need_version=no 18722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18723 soname_spec='${libname}${release}${shared_ext}$major' 18724 shlibpath_var=LD_LIBRARY_PATH 18725 shlibpath_overrides_runpath=yes 18726 hardcode_into_libs=yes 18727 # ldd complains unless libraries are executable 18728 postinstall_cmds='chmod +x $lib' 18729 ;; 18730 18731sunos4*) 18732 version_type=sunos 18733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18734 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18735 shlibpath_var=LD_LIBRARY_PATH 18736 shlibpath_overrides_runpath=yes 18737 if test "$with_gnu_ld" = yes; then 18738 need_lib_prefix=no 18739 fi 18740 need_version=yes 18741 ;; 18742 18743sysv4 | sysv4.3*) 18744 version_type=linux 18745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18746 soname_spec='${libname}${release}${shared_ext}$major' 18747 shlibpath_var=LD_LIBRARY_PATH 18748 case $host_vendor in 18749 sni) 18750 shlibpath_overrides_runpath=no 18751 need_lib_prefix=no 18752 export_dynamic_flag_spec='${wl}-Blargedynsym' 18753 runpath_var=LD_RUN_PATH 18754 ;; 18755 siemens) 18756 need_lib_prefix=no 18757 ;; 18758 motorola) 18759 need_lib_prefix=no 18760 need_version=no 18761 shlibpath_overrides_runpath=no 18762 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18763 ;; 18764 esac 18765 ;; 18766 18767sysv4*MP*) 18768 if test -d /usr/nec ;then 18769 version_type=linux 18770 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18771 soname_spec='$libname${shared_ext}.$major' 18772 shlibpath_var=LD_LIBRARY_PATH 18773 fi 18774 ;; 18775 18776sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18777 version_type=freebsd-elf 18778 need_lib_prefix=no 18779 need_version=no 18780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18781 soname_spec='${libname}${release}${shared_ext}$major' 18782 shlibpath_var=LD_LIBRARY_PATH 18783 hardcode_into_libs=yes 18784 if test "$with_gnu_ld" = yes; then 18785 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18786 shlibpath_overrides_runpath=no 18787 else 18788 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18789 shlibpath_overrides_runpath=yes 18790 case $host_os in 18791 sco3.2v5*) 18792 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18793 ;; 18794 esac 18795 fi 18796 sys_lib_dlsearch_path_spec='/usr/lib' 18797 ;; 18798 18799uts4*) 18800 version_type=linux 18801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18802 soname_spec='${libname}${release}${shared_ext}$major' 18803 shlibpath_var=LD_LIBRARY_PATH 18804 ;; 18805 18806*) 18807 dynamic_linker=no 18808 ;; 18809esac 18810{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18811echo "${ECHO_T}$dynamic_linker" >&6; } 18812test "$dynamic_linker" = no && can_build_shared=no 18813 18814if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18815 echo $ECHO_N "(cached) $ECHO_C" >&6 18816else 18817 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18818fi 18819 18820sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18821if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18822 echo $ECHO_N "(cached) $ECHO_C" >&6 18823else 18824 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 18825fi 18826 18827sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18828 18829variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18830if test "$GCC" = yes; then 18831 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18832fi 18833 18834{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18835echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18836hardcode_action_GCJ= 18837if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18838 test -n "$runpath_var_GCJ" || \ 18839 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18840 18841 # We can hardcode non-existant directories. 18842 if test "$hardcode_direct_GCJ" != no && 18843 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18844 # have to relink, otherwise we might link with an installed library 18845 # when we should be linking with a yet-to-be-installed one 18846 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18847 test "$hardcode_minus_L_GCJ" != no; then 18848 # Linking always hardcodes the temporary library directory. 18849 hardcode_action_GCJ=relink 18850 else 18851 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18852 hardcode_action_GCJ=immediate 18853 fi 18854else 18855 # We cannot hardcode anything, or else we can only hardcode existing 18856 # directories. 18857 hardcode_action_GCJ=unsupported 18858fi 18859{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18860echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18861 18862if test "$hardcode_action_GCJ" = relink; then 18863 # Fast installation is not supported 18864 enable_fast_install=no 18865elif test "$shlibpath_overrides_runpath" = yes || 18866 test "$enable_shared" = no; then 18867 # Fast installation is not necessary 18868 enable_fast_install=needless 18869fi 18870 18871 18872# The else clause should only fire when bootstrapping the 18873# libtool distribution, otherwise you forgot to ship ltmain.sh 18874# with your package, and you will get complaints that there are 18875# no rules to generate ltmain.sh. 18876if test -f "$ltmain"; then 18877 # See if we are running on zsh, and set the options which allow our commands through 18878 # without removal of \ escapes. 18879 if test -n "${ZSH_VERSION+set}" ; then 18880 setopt NO_GLOB_SUBST 18881 fi 18882 # Now quote all the things that may contain metacharacters while being 18883 # careful not to overquote the AC_SUBSTed values. We take copies of the 18884 # variables and quote the copies for generation of the libtool script. 18885 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18886 SED SHELL STRIP \ 18887 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18888 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18889 deplibs_check_method reload_flag reload_cmds need_locks \ 18890 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18891 lt_cv_sys_global_symbol_to_c_name_address \ 18892 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18893 old_postinstall_cmds old_postuninstall_cmds \ 18894 compiler_GCJ \ 18895 CC_GCJ \ 18896 LD_GCJ \ 18897 lt_prog_compiler_wl_GCJ \ 18898 lt_prog_compiler_pic_GCJ \ 18899 lt_prog_compiler_static_GCJ \ 18900 lt_prog_compiler_no_builtin_flag_GCJ \ 18901 export_dynamic_flag_spec_GCJ \ 18902 thread_safe_flag_spec_GCJ \ 18903 whole_archive_flag_spec_GCJ \ 18904 enable_shared_with_static_runtimes_GCJ \ 18905 old_archive_cmds_GCJ \ 18906 old_archive_from_new_cmds_GCJ \ 18907 predep_objects_GCJ \ 18908 postdep_objects_GCJ \ 18909 predeps_GCJ \ 18910 postdeps_GCJ \ 18911 compiler_lib_search_path_GCJ \ 18912 compiler_lib_search_dirs_GCJ \ 18913 archive_cmds_GCJ \ 18914 archive_expsym_cmds_GCJ \ 18915 postinstall_cmds_GCJ \ 18916 postuninstall_cmds_GCJ \ 18917 old_archive_from_expsyms_cmds_GCJ \ 18918 allow_undefined_flag_GCJ \ 18919 no_undefined_flag_GCJ \ 18920 export_symbols_cmds_GCJ \ 18921 hardcode_libdir_flag_spec_GCJ \ 18922 hardcode_libdir_flag_spec_ld_GCJ \ 18923 hardcode_libdir_separator_GCJ \ 18924 hardcode_automatic_GCJ \ 18925 module_cmds_GCJ \ 18926 module_expsym_cmds_GCJ \ 18927 lt_cv_prog_compiler_c_o_GCJ \ 18928 fix_srcfile_path_GCJ \ 18929 exclude_expsyms_GCJ \ 18930 include_expsyms_GCJ; do 18931 18932 case $var in 18933 old_archive_cmds_GCJ | \ 18934 old_archive_from_new_cmds_GCJ | \ 18935 archive_cmds_GCJ | \ 18936 archive_expsym_cmds_GCJ | \ 18937 module_cmds_GCJ | \ 18938 module_expsym_cmds_GCJ | \ 18939 old_archive_from_expsyms_cmds_GCJ | \ 18940 export_symbols_cmds_GCJ | \ 18941 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18942 postinstall_cmds | postuninstall_cmds | \ 18943 old_postinstall_cmds | old_postuninstall_cmds | \ 18944 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18945 # Double-quote double-evaled strings. 18946 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18947 ;; 18948 *) 18949 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18950 ;; 18951 esac 18952 done 18953 18954 case $lt_echo in 18955 *'\$0 --fallback-echo"') 18956 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18957 ;; 18958 esac 18959 18960cfgfile="$ofile" 18961 18962 cat <<__EOF__ >> "$cfgfile" 18963# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18964 18965# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18966 18967# Shell to use when invoking shell scripts. 18968SHELL=$lt_SHELL 18969 18970# Whether or not to build shared libraries. 18971build_libtool_libs=$enable_shared 18972 18973# Whether or not to build static libraries. 18974build_old_libs=$enable_static 18975 18976# Whether or not to add -lc for building shared libraries. 18977build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18978 18979# Whether or not to disallow shared libs when runtime libs are static 18980allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18981 18982# Whether or not to optimize for fast installation. 18983fast_install=$enable_fast_install 18984 18985# The host system. 18986host_alias=$host_alias 18987host=$host 18988host_os=$host_os 18989 18990# The build system. 18991build_alias=$build_alias 18992build=$build 18993build_os=$build_os 18994 18995# An echo program that does not interpret backslashes. 18996echo=$lt_echo 18997 18998# The archiver. 18999AR=$lt_AR 19000AR_FLAGS=$lt_AR_FLAGS 19001 19002# A C compiler. 19003LTCC=$lt_LTCC 19004 19005# LTCC compiler flags. 19006LTCFLAGS=$lt_LTCFLAGS 19007 19008# A language-specific compiler. 19009CC=$lt_compiler_GCJ 19010 19011# Is the compiler the GNU C compiler? 19012with_gcc=$GCC_GCJ 19013 19014# An ERE matcher. 19015EGREP=$lt_EGREP 19016 19017# The linker used to build libraries. 19018LD=$lt_LD_GCJ 19019 19020# Whether we need hard or soft links. 19021LN_S=$lt_LN_S 19022 19023# A BSD-compatible nm program. 19024NM=$lt_NM 19025 19026# A symbol stripping program 19027STRIP=$lt_STRIP 19028 19029# Used to examine libraries when file_magic_cmd begins "file" 19030MAGIC_CMD=$MAGIC_CMD 19031 19032# Used on cygwin: DLL creation program. 19033DLLTOOL="$DLLTOOL" 19034 19035# Used on cygwin: object dumper. 19036OBJDUMP="$OBJDUMP" 19037 19038# Used on cygwin: assembler. 19039AS="$AS" 19040 19041# The name of the directory that contains temporary libtool files. 19042objdir=$objdir 19043 19044# How to create reloadable object files. 19045reload_flag=$lt_reload_flag 19046reload_cmds=$lt_reload_cmds 19047 19048# How to pass a linker flag through the compiler. 19049wl=$lt_lt_prog_compiler_wl_GCJ 19050 19051# Object file suffix (normally "o"). 19052objext="$ac_objext" 19053 19054# Old archive suffix (normally "a"). 19055libext="$libext" 19056 19057# Shared library suffix (normally ".so"). 19058shrext_cmds='$shrext_cmds' 19059 19060# Executable file suffix (normally ""). 19061exeext="$exeext" 19062 19063# Additional compiler flags for building library objects. 19064pic_flag=$lt_lt_prog_compiler_pic_GCJ 19065pic_mode=$pic_mode 19066 19067# What is the maximum length of a command? 19068max_cmd_len=$lt_cv_sys_max_cmd_len 19069 19070# Does compiler simultaneously support -c and -o options? 19071compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19072 19073# Must we lock files when doing compilation? 19074need_locks=$lt_need_locks 19075 19076# Do we need the lib prefix for modules? 19077need_lib_prefix=$need_lib_prefix 19078 19079# Do we need a version for libraries? 19080need_version=$need_version 19081 19082# Whether dlopen is supported. 19083dlopen_support=$enable_dlopen 19084 19085# Whether dlopen of programs is supported. 19086dlopen_self=$enable_dlopen_self 19087 19088# Whether dlopen of statically linked programs is supported. 19089dlopen_self_static=$enable_dlopen_self_static 19090 19091# Compiler flag to prevent dynamic linking. 19092link_static_flag=$lt_lt_prog_compiler_static_GCJ 19093 19094# Compiler flag to turn off builtin functions. 19095no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19096 19097# Compiler flag to allow reflexive dlopens. 19098export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19099 19100# Compiler flag to generate shared objects directly from archives. 19101whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19102 19103# Compiler flag to generate thread-safe objects. 19104thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19105 19106# Library versioning type. 19107version_type=$version_type 19108 19109# Format of library name prefix. 19110libname_spec=$lt_libname_spec 19111 19112# List of archive names. First name is the real one, the rest are links. 19113# The last name is the one that the linker finds with -lNAME. 19114library_names_spec=$lt_library_names_spec 19115 19116# The coded name of the library, if different from the real name. 19117soname_spec=$lt_soname_spec 19118 19119# Commands used to build and install an old-style archive. 19120RANLIB=$lt_RANLIB 19121old_archive_cmds=$lt_old_archive_cmds_GCJ 19122old_postinstall_cmds=$lt_old_postinstall_cmds 19123old_postuninstall_cmds=$lt_old_postuninstall_cmds 19124 19125# Create an old-style archive from a shared archive. 19126old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19127 19128# Create a temporary old-style archive to link instead of a shared archive. 19129old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19130 19131# Commands used to build and install a shared archive. 19132archive_cmds=$lt_archive_cmds_GCJ 19133archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19134postinstall_cmds=$lt_postinstall_cmds 19135postuninstall_cmds=$lt_postuninstall_cmds 19136 19137# Commands used to build a loadable module (assumed same as above if empty) 19138module_cmds=$lt_module_cmds_GCJ 19139module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19140 19141# Commands to strip libraries. 19142old_striplib=$lt_old_striplib 19143striplib=$lt_striplib 19144 19145# Dependencies to place before the objects being linked to create a 19146# shared library. 19147predep_objects=$lt_predep_objects_GCJ 19148 19149# Dependencies to place after the objects being linked to create a 19150# shared library. 19151postdep_objects=$lt_postdep_objects_GCJ 19152 19153# Dependencies to place before the objects being linked to create a 19154# shared library. 19155predeps=$lt_predeps_GCJ 19156 19157# Dependencies to place after the objects being linked to create a 19158# shared library. 19159postdeps=$lt_postdeps_GCJ 19160 19161# The directories searched by this compiler when creating a shared 19162# library 19163compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19164 19165# The library search path used internally by the compiler when linking 19166# a shared library. 19167compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19168 19169# Method to check whether dependent libraries are shared objects. 19170deplibs_check_method=$lt_deplibs_check_method 19171 19172# Command to use when deplibs_check_method == file_magic. 19173file_magic_cmd=$lt_file_magic_cmd 19174 19175# Flag that allows shared libraries with undefined symbols to be built. 19176allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19177 19178# Flag that forces no undefined symbols. 19179no_undefined_flag=$lt_no_undefined_flag_GCJ 19180 19181# Commands used to finish a libtool library installation in a directory. 19182finish_cmds=$lt_finish_cmds 19183 19184# Same as above, but a single script fragment to be evaled but not shown. 19185finish_eval=$lt_finish_eval 19186 19187# Take the output of nm and produce a listing of raw symbols and C names. 19188global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19189 19190# Transform the output of nm in a proper C declaration 19191global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19192 19193# Transform the output of nm in a C name address pair 19194global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19195 19196# This is the shared library runtime path variable. 19197runpath_var=$runpath_var 19198 19199# This is the shared library path variable. 19200shlibpath_var=$shlibpath_var 19201 19202# Is shlibpath searched before the hard-coded library search path? 19203shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19204 19205# How to hardcode a shared library path into an executable. 19206hardcode_action=$hardcode_action_GCJ 19207 19208# Whether we should hardcode library paths into libraries. 19209hardcode_into_libs=$hardcode_into_libs 19210 19211# Flag to hardcode \$libdir into a binary during linking. 19212# This must work even if \$libdir does not exist. 19213hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19214 19215# If ld is used when linking, flag to hardcode \$libdir into 19216# a binary during linking. This must work even if \$libdir does 19217# not exist. 19218hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19219 19220# Whether we need a single -rpath flag with a separated argument. 19221hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19222 19223# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19224# resulting binary. 19225hardcode_direct=$hardcode_direct_GCJ 19226 19227# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19228# resulting binary. 19229hardcode_minus_L=$hardcode_minus_L_GCJ 19230 19231# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19232# the resulting binary. 19233hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19234 19235# Set to yes if building a shared library automatically hardcodes DIR into the library 19236# and all subsequent libraries and executables linked against it. 19237hardcode_automatic=$hardcode_automatic_GCJ 19238 19239# Variables whose values should be saved in libtool wrapper scripts and 19240# restored at relink time. 19241variables_saved_for_relink="$variables_saved_for_relink" 19242 19243# Whether libtool must link a program against all its dependency libraries. 19244link_all_deplibs=$link_all_deplibs_GCJ 19245 19246# Compile-time system search path for libraries 19247sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19248 19249# Run-time system search path for libraries 19250sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19251 19252# Fix the shell variable \$srcfile for the compiler. 19253fix_srcfile_path=$lt_fix_srcfile_path 19254 19255# Set to yes if exported symbols are required. 19256always_export_symbols=$always_export_symbols_GCJ 19257 19258# The commands to list exported symbols. 19259export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19260 19261# The commands to extract the exported symbol list from a shared archive. 19262extract_expsyms_cmds=$lt_extract_expsyms_cmds 19263 19264# Symbols that should not be listed in the preloaded symbols. 19265exclude_expsyms=$lt_exclude_expsyms_GCJ 19266 19267# Symbols that must always be exported. 19268include_expsyms=$lt_include_expsyms_GCJ 19269 19270# ### END LIBTOOL TAG CONFIG: $tagname 19271 19272__EOF__ 19273 19274 19275else 19276 # If there is no Makefile yet, we rely on a make rule to execute 19277 # `config.status --recheck' to rerun these tests and create the 19278 # libtool script then. 19279 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19280 if test -f "$ltmain_in"; then 19281 test -f Makefile && make "$ltmain" 19282 fi 19283fi 19284 19285 19286ac_ext=c 19287ac_cpp='$CPP $CPPFLAGS' 19288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19290ac_compiler_gnu=$ac_cv_c_compiler_gnu 19291 19292CC="$lt_save_CC" 19293 19294 else 19295 tagname="" 19296 fi 19297 ;; 19298 19299 RC) 19300 19301 19302# Source file extension for RC test sources. 19303ac_ext=rc 19304 19305# Object file extension for compiled RC test sources. 19306objext=o 19307objext_RC=$objext 19308 19309# Code to be used in simple compile tests 19310lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19311 19312# Code to be used in simple link tests 19313lt_simple_link_test_code="$lt_simple_compile_test_code" 19314 19315# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19316 19317# If no C compiler was specified, use CC. 19318LTCC=${LTCC-"$CC"} 19319 19320# If no C compiler flags were specified, use CFLAGS. 19321LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19322 19323# Allow CC to be a program name with arguments. 19324compiler=$CC 19325 19326 19327# save warnings/boilerplate of simple test code 19328ac_outfile=conftest.$ac_objext 19329echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19330eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19331_lt_compiler_boilerplate=`cat conftest.err` 19332$rm conftest* 19333 19334ac_outfile=conftest.$ac_objext 19335echo "$lt_simple_link_test_code" >conftest.$ac_ext 19336eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19337_lt_linker_boilerplate=`cat conftest.err` 19338$rm -r conftest* 19339 19340 19341# Allow CC to be a program name with arguments. 19342lt_save_CC="$CC" 19343CC=${RC-"windres"} 19344compiler=$CC 19345compiler_RC=$CC 19346for cc_temp in $compiler""; do 19347 case $cc_temp in 19348 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19349 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19350 \-*) ;; 19351 *) break;; 19352 esac 19353done 19354cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19355 19356lt_cv_prog_compiler_c_o_RC=yes 19357 19358# The else clause should only fire when bootstrapping the 19359# libtool distribution, otherwise you forgot to ship ltmain.sh 19360# with your package, and you will get complaints that there are 19361# no rules to generate ltmain.sh. 19362if test -f "$ltmain"; then 19363 # See if we are running on zsh, and set the options which allow our commands through 19364 # without removal of \ escapes. 19365 if test -n "${ZSH_VERSION+set}" ; then 19366 setopt NO_GLOB_SUBST 19367 fi 19368 # Now quote all the things that may contain metacharacters while being 19369 # careful not to overquote the AC_SUBSTed values. We take copies of the 19370 # variables and quote the copies for generation of the libtool script. 19371 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19372 SED SHELL STRIP \ 19373 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19374 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19375 deplibs_check_method reload_flag reload_cmds need_locks \ 19376 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19377 lt_cv_sys_global_symbol_to_c_name_address \ 19378 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19379 old_postinstall_cmds old_postuninstall_cmds \ 19380 compiler_RC \ 19381 CC_RC \ 19382 LD_RC \ 19383 lt_prog_compiler_wl_RC \ 19384 lt_prog_compiler_pic_RC \ 19385 lt_prog_compiler_static_RC \ 19386 lt_prog_compiler_no_builtin_flag_RC \ 19387 export_dynamic_flag_spec_RC \ 19388 thread_safe_flag_spec_RC \ 19389 whole_archive_flag_spec_RC \ 19390 enable_shared_with_static_runtimes_RC \ 19391 old_archive_cmds_RC \ 19392 old_archive_from_new_cmds_RC \ 19393 predep_objects_RC \ 19394 postdep_objects_RC \ 19395 predeps_RC \ 19396 postdeps_RC \ 19397 compiler_lib_search_path_RC \ 19398 compiler_lib_search_dirs_RC \ 19399 archive_cmds_RC \ 19400 archive_expsym_cmds_RC \ 19401 postinstall_cmds_RC \ 19402 postuninstall_cmds_RC \ 19403 old_archive_from_expsyms_cmds_RC \ 19404 allow_undefined_flag_RC \ 19405 no_undefined_flag_RC \ 19406 export_symbols_cmds_RC \ 19407 hardcode_libdir_flag_spec_RC \ 19408 hardcode_libdir_flag_spec_ld_RC \ 19409 hardcode_libdir_separator_RC \ 19410 hardcode_automatic_RC \ 19411 module_cmds_RC \ 19412 module_expsym_cmds_RC \ 19413 lt_cv_prog_compiler_c_o_RC \ 19414 fix_srcfile_path_RC \ 19415 exclude_expsyms_RC \ 19416 include_expsyms_RC; do 19417 19418 case $var in 19419 old_archive_cmds_RC | \ 19420 old_archive_from_new_cmds_RC | \ 19421 archive_cmds_RC | \ 19422 archive_expsym_cmds_RC | \ 19423 module_cmds_RC | \ 19424 module_expsym_cmds_RC | \ 19425 old_archive_from_expsyms_cmds_RC | \ 19426 export_symbols_cmds_RC | \ 19427 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19428 postinstall_cmds | postuninstall_cmds | \ 19429 old_postinstall_cmds | old_postuninstall_cmds | \ 19430 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19431 # Double-quote double-evaled strings. 19432 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19433 ;; 19434 *) 19435 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19436 ;; 19437 esac 19438 done 19439 19440 case $lt_echo in 19441 *'\$0 --fallback-echo"') 19442 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19443 ;; 19444 esac 19445 19446cfgfile="$ofile" 19447 19448 cat <<__EOF__ >> "$cfgfile" 19449# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19450 19451# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19452 19453# Shell to use when invoking shell scripts. 19454SHELL=$lt_SHELL 19455 19456# Whether or not to build shared libraries. 19457build_libtool_libs=$enable_shared 19458 19459# Whether or not to build static libraries. 19460build_old_libs=$enable_static 19461 19462# Whether or not to add -lc for building shared libraries. 19463build_libtool_need_lc=$archive_cmds_need_lc_RC 19464 19465# Whether or not to disallow shared libs when runtime libs are static 19466allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19467 19468# Whether or not to optimize for fast installation. 19469fast_install=$enable_fast_install 19470 19471# The host system. 19472host_alias=$host_alias 19473host=$host 19474host_os=$host_os 19475 19476# The build system. 19477build_alias=$build_alias 19478build=$build 19479build_os=$build_os 19480 19481# An echo program that does not interpret backslashes. 19482echo=$lt_echo 19483 19484# The archiver. 19485AR=$lt_AR 19486AR_FLAGS=$lt_AR_FLAGS 19487 19488# A C compiler. 19489LTCC=$lt_LTCC 19490 19491# LTCC compiler flags. 19492LTCFLAGS=$lt_LTCFLAGS 19493 19494# A language-specific compiler. 19495CC=$lt_compiler_RC 19496 19497# Is the compiler the GNU C compiler? 19498with_gcc=$GCC_RC 19499 19500# An ERE matcher. 19501EGREP=$lt_EGREP 19502 19503# The linker used to build libraries. 19504LD=$lt_LD_RC 19505 19506# Whether we need hard or soft links. 19507LN_S=$lt_LN_S 19508 19509# A BSD-compatible nm program. 19510NM=$lt_NM 19511 19512# A symbol stripping program 19513STRIP=$lt_STRIP 19514 19515# Used to examine libraries when file_magic_cmd begins "file" 19516MAGIC_CMD=$MAGIC_CMD 19517 19518# Used on cygwin: DLL creation program. 19519DLLTOOL="$DLLTOOL" 19520 19521# Used on cygwin: object dumper. 19522OBJDUMP="$OBJDUMP" 19523 19524# Used on cygwin: assembler. 19525AS="$AS" 19526 19527# The name of the directory that contains temporary libtool files. 19528objdir=$objdir 19529 19530# How to create reloadable object files. 19531reload_flag=$lt_reload_flag 19532reload_cmds=$lt_reload_cmds 19533 19534# How to pass a linker flag through the compiler. 19535wl=$lt_lt_prog_compiler_wl_RC 19536 19537# Object file suffix (normally "o"). 19538objext="$ac_objext" 19539 19540# Old archive suffix (normally "a"). 19541libext="$libext" 19542 19543# Shared library suffix (normally ".so"). 19544shrext_cmds='$shrext_cmds' 19545 19546# Executable file suffix (normally ""). 19547exeext="$exeext" 19548 19549# Additional compiler flags for building library objects. 19550pic_flag=$lt_lt_prog_compiler_pic_RC 19551pic_mode=$pic_mode 19552 19553# What is the maximum length of a command? 19554max_cmd_len=$lt_cv_sys_max_cmd_len 19555 19556# Does compiler simultaneously support -c and -o options? 19557compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19558 19559# Must we lock files when doing compilation? 19560need_locks=$lt_need_locks 19561 19562# Do we need the lib prefix for modules? 19563need_lib_prefix=$need_lib_prefix 19564 19565# Do we need a version for libraries? 19566need_version=$need_version 19567 19568# Whether dlopen is supported. 19569dlopen_support=$enable_dlopen 19570 19571# Whether dlopen of programs is supported. 19572dlopen_self=$enable_dlopen_self 19573 19574# Whether dlopen of statically linked programs is supported. 19575dlopen_self_static=$enable_dlopen_self_static 19576 19577# Compiler flag to prevent dynamic linking. 19578link_static_flag=$lt_lt_prog_compiler_static_RC 19579 19580# Compiler flag to turn off builtin functions. 19581no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19582 19583# Compiler flag to allow reflexive dlopens. 19584export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19585 19586# Compiler flag to generate shared objects directly from archives. 19587whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19588 19589# Compiler flag to generate thread-safe objects. 19590thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19591 19592# Library versioning type. 19593version_type=$version_type 19594 19595# Format of library name prefix. 19596libname_spec=$lt_libname_spec 19597 19598# List of archive names. First name is the real one, the rest are links. 19599# The last name is the one that the linker finds with -lNAME. 19600library_names_spec=$lt_library_names_spec 19601 19602# The coded name of the library, if different from the real name. 19603soname_spec=$lt_soname_spec 19604 19605# Commands used to build and install an old-style archive. 19606RANLIB=$lt_RANLIB 19607old_archive_cmds=$lt_old_archive_cmds_RC 19608old_postinstall_cmds=$lt_old_postinstall_cmds 19609old_postuninstall_cmds=$lt_old_postuninstall_cmds 19610 19611# Create an old-style archive from a shared archive. 19612old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19613 19614# Create a temporary old-style archive to link instead of a shared archive. 19615old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19616 19617# Commands used to build and install a shared archive. 19618archive_cmds=$lt_archive_cmds_RC 19619archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19620postinstall_cmds=$lt_postinstall_cmds 19621postuninstall_cmds=$lt_postuninstall_cmds 19622 19623# Commands used to build a loadable module (assumed same as above if empty) 19624module_cmds=$lt_module_cmds_RC 19625module_expsym_cmds=$lt_module_expsym_cmds_RC 19626 19627# Commands to strip libraries. 19628old_striplib=$lt_old_striplib 19629striplib=$lt_striplib 19630 19631# Dependencies to place before the objects being linked to create a 19632# shared library. 19633predep_objects=$lt_predep_objects_RC 19634 19635# Dependencies to place after the objects being linked to create a 19636# shared library. 19637postdep_objects=$lt_postdep_objects_RC 19638 19639# Dependencies to place before the objects being linked to create a 19640# shared library. 19641predeps=$lt_predeps_RC 19642 19643# Dependencies to place after the objects being linked to create a 19644# shared library. 19645postdeps=$lt_postdeps_RC 19646 19647# The directories searched by this compiler when creating a shared 19648# library 19649compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19650 19651# The library search path used internally by the compiler when linking 19652# a shared library. 19653compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19654 19655# Method to check whether dependent libraries are shared objects. 19656deplibs_check_method=$lt_deplibs_check_method 19657 19658# Command to use when deplibs_check_method == file_magic. 19659file_magic_cmd=$lt_file_magic_cmd 19660 19661# Flag that allows shared libraries with undefined symbols to be built. 19662allow_undefined_flag=$lt_allow_undefined_flag_RC 19663 19664# Flag that forces no undefined symbols. 19665no_undefined_flag=$lt_no_undefined_flag_RC 19666 19667# Commands used to finish a libtool library installation in a directory. 19668finish_cmds=$lt_finish_cmds 19669 19670# Same as above, but a single script fragment to be evaled but not shown. 19671finish_eval=$lt_finish_eval 19672 19673# Take the output of nm and produce a listing of raw symbols and C names. 19674global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19675 19676# Transform the output of nm in a proper C declaration 19677global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19678 19679# Transform the output of nm in a C name address pair 19680global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19681 19682# This is the shared library runtime path variable. 19683runpath_var=$runpath_var 19684 19685# This is the shared library path variable. 19686shlibpath_var=$shlibpath_var 19687 19688# Is shlibpath searched before the hard-coded library search path? 19689shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19690 19691# How to hardcode a shared library path into an executable. 19692hardcode_action=$hardcode_action_RC 19693 19694# Whether we should hardcode library paths into libraries. 19695hardcode_into_libs=$hardcode_into_libs 19696 19697# Flag to hardcode \$libdir into a binary during linking. 19698# This must work even if \$libdir does not exist. 19699hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19700 19701# If ld is used when linking, flag to hardcode \$libdir into 19702# a binary during linking. This must work even if \$libdir does 19703# not exist. 19704hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19705 19706# Whether we need a single -rpath flag with a separated argument. 19707hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19708 19709# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19710# resulting binary. 19711hardcode_direct=$hardcode_direct_RC 19712 19713# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19714# resulting binary. 19715hardcode_minus_L=$hardcode_minus_L_RC 19716 19717# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19718# the resulting binary. 19719hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19720 19721# Set to yes if building a shared library automatically hardcodes DIR into the library 19722# and all subsequent libraries and executables linked against it. 19723hardcode_automatic=$hardcode_automatic_RC 19724 19725# Variables whose values should be saved in libtool wrapper scripts and 19726# restored at relink time. 19727variables_saved_for_relink="$variables_saved_for_relink" 19728 19729# Whether libtool must link a program against all its dependency libraries. 19730link_all_deplibs=$link_all_deplibs_RC 19731 19732# Compile-time system search path for libraries 19733sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19734 19735# Run-time system search path for libraries 19736sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19737 19738# Fix the shell variable \$srcfile for the compiler. 19739fix_srcfile_path=$lt_fix_srcfile_path 19740 19741# Set to yes if exported symbols are required. 19742always_export_symbols=$always_export_symbols_RC 19743 19744# The commands to list exported symbols. 19745export_symbols_cmds=$lt_export_symbols_cmds_RC 19746 19747# The commands to extract the exported symbol list from a shared archive. 19748extract_expsyms_cmds=$lt_extract_expsyms_cmds 19749 19750# Symbols that should not be listed in the preloaded symbols. 19751exclude_expsyms=$lt_exclude_expsyms_RC 19752 19753# Symbols that must always be exported. 19754include_expsyms=$lt_include_expsyms_RC 19755 19756# ### END LIBTOOL TAG CONFIG: $tagname 19757 19758__EOF__ 19759 19760 19761else 19762 # If there is no Makefile yet, we rely on a make rule to execute 19763 # `config.status --recheck' to rerun these tests and create the 19764 # libtool script then. 19765 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19766 if test -f "$ltmain_in"; then 19767 test -f Makefile && make "$ltmain" 19768 fi 19769fi 19770 19771 19772ac_ext=c 19773ac_cpp='$CPP $CPPFLAGS' 19774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19776ac_compiler_gnu=$ac_cv_c_compiler_gnu 19777 19778CC="$lt_save_CC" 19779 19780 ;; 19781 19782 *) 19783 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19784echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19785 { (exit 1); exit 1; }; } 19786 ;; 19787 esac 19788 19789 # Append the new tag name to the list of available tags. 19790 if test -n "$tagname" ; then 19791 available_tags="$available_tags $tagname" 19792 fi 19793 fi 19794 done 19795 IFS="$lt_save_ifs" 19796 19797 # Now substitute the updated list of available tags. 19798 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19799 mv "${ofile}T" "$ofile" 19800 chmod +x "$ofile" 19801 else 19802 rm -f "${ofile}T" 19803 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19804echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19805 { (exit 1); exit 1; }; } 19806 fi 19807fi 19808 19809 19810 19811# This can be used to rebuild libtool when needed 19812LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19813 19814# Always use our own libtool. 19815LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19816 19817# Prevent multiple expansion 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834 19835 19836 19837 19838ac_ext=c 19839ac_cpp='$CPP $CPPFLAGS' 19840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19842ac_compiler_gnu=$ac_cv_c_compiler_gnu 19843if test -n "$ac_tool_prefix"; then 19844 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19845set dummy ${ac_tool_prefix}gcc; ac_word=$2 19846{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19848if test "${ac_cv_prog_CC+set}" = set; then 19849 echo $ECHO_N "(cached) $ECHO_C" >&6 19850else 19851 if test -n "$CC"; then 19852 ac_cv_prog_CC="$CC" # Let the user override the test. 19853else 19854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19855for as_dir in $PATH 19856do 19857 IFS=$as_save_IFS 19858 test -z "$as_dir" && as_dir=. 19859 for ac_exec_ext in '' $ac_executable_extensions; do 19860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19861 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19863 break 2 19864 fi 19865done 19866done 19867IFS=$as_save_IFS 19868 19869fi 19870fi 19871CC=$ac_cv_prog_CC 19872if test -n "$CC"; then 19873 { echo "$as_me:$LINENO: result: $CC" >&5 19874echo "${ECHO_T}$CC" >&6; } 19875else 19876 { echo "$as_me:$LINENO: result: no" >&5 19877echo "${ECHO_T}no" >&6; } 19878fi 19879 19880 19881fi 19882if test -z "$ac_cv_prog_CC"; then 19883 ac_ct_CC=$CC 19884 # Extract the first word of "gcc", so it can be a program name with args. 19885set dummy gcc; ac_word=$2 19886{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19888if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19889 echo $ECHO_N "(cached) $ECHO_C" >&6 19890else 19891 if test -n "$ac_ct_CC"; then 19892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19893else 19894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19895for as_dir in $PATH 19896do 19897 IFS=$as_save_IFS 19898 test -z "$as_dir" && as_dir=. 19899 for ac_exec_ext in '' $ac_executable_extensions; do 19900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19901 ac_cv_prog_ac_ct_CC="gcc" 19902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19903 break 2 19904 fi 19905done 19906done 19907IFS=$as_save_IFS 19908 19909fi 19910fi 19911ac_ct_CC=$ac_cv_prog_ac_ct_CC 19912if test -n "$ac_ct_CC"; then 19913 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19914echo "${ECHO_T}$ac_ct_CC" >&6; } 19915else 19916 { echo "$as_me:$LINENO: result: no" >&5 19917echo "${ECHO_T}no" >&6; } 19918fi 19919 19920 if test "x$ac_ct_CC" = x; then 19921 CC="" 19922 else 19923 case $cross_compiling:$ac_tool_warned in 19924yes:) 19925{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19926whose name does not start with the host triplet. If you think this 19927configuration is useful to you, please write to autoconf@gnu.org." >&5 19928echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19929whose name does not start with the host triplet. If you think this 19930configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19931ac_tool_warned=yes ;; 19932esac 19933 CC=$ac_ct_CC 19934 fi 19935else 19936 CC="$ac_cv_prog_CC" 19937fi 19938 19939if test -z "$CC"; then 19940 if test -n "$ac_tool_prefix"; then 19941 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19942set dummy ${ac_tool_prefix}cc; ac_word=$2 19943{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19945if test "${ac_cv_prog_CC+set}" = set; then 19946 echo $ECHO_N "(cached) $ECHO_C" >&6 19947else 19948 if test -n "$CC"; then 19949 ac_cv_prog_CC="$CC" # Let the user override the test. 19950else 19951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19952for as_dir in $PATH 19953do 19954 IFS=$as_save_IFS 19955 test -z "$as_dir" && as_dir=. 19956 for ac_exec_ext in '' $ac_executable_extensions; do 19957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19958 ac_cv_prog_CC="${ac_tool_prefix}cc" 19959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19960 break 2 19961 fi 19962done 19963done 19964IFS=$as_save_IFS 19965 19966fi 19967fi 19968CC=$ac_cv_prog_CC 19969if test -n "$CC"; then 19970 { echo "$as_me:$LINENO: result: $CC" >&5 19971echo "${ECHO_T}$CC" >&6; } 19972else 19973 { echo "$as_me:$LINENO: result: no" >&5 19974echo "${ECHO_T}no" >&6; } 19975fi 19976 19977 19978 fi 19979fi 19980if test -z "$CC"; then 19981 # Extract the first word of "cc", so it can be a program name with args. 19982set dummy cc; ac_word=$2 19983{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19985if test "${ac_cv_prog_CC+set}" = set; then 19986 echo $ECHO_N "(cached) $ECHO_C" >&6 19987else 19988 if test -n "$CC"; then 19989 ac_cv_prog_CC="$CC" # Let the user override the test. 19990else 19991 ac_prog_rejected=no 19992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19993for as_dir in $PATH 19994do 19995 IFS=$as_save_IFS 19996 test -z "$as_dir" && as_dir=. 19997 for ac_exec_ext in '' $ac_executable_extensions; do 19998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19999 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 20000 ac_prog_rejected=yes 20001 continue 20002 fi 20003 ac_cv_prog_CC="cc" 20004 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 20011if test $ac_prog_rejected = yes; then 20012 # We found a bogon in the path, so make sure we never use it. 20013 set dummy $ac_cv_prog_CC 20014 shift 20015 if test $# != 0; then 20016 # We chose a different compiler from the bogus one. 20017 # However, it has the same basename, so the bogon will be chosen 20018 # first if we set CC to just the basename; use the full file name. 20019 shift 20020 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 20021 fi 20022fi 20023fi 20024fi 20025CC=$ac_cv_prog_CC 20026if test -n "$CC"; then 20027 { echo "$as_me:$LINENO: result: $CC" >&5 20028echo "${ECHO_T}$CC" >&6; } 20029else 20030 { echo "$as_me:$LINENO: result: no" >&5 20031echo "${ECHO_T}no" >&6; } 20032fi 20033 20034 20035fi 20036if test -z "$CC"; then 20037 if test -n "$ac_tool_prefix"; then 20038 for ac_prog in cl.exe 20039 do 20040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20041set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20042{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20044if test "${ac_cv_prog_CC+set}" = set; then 20045 echo $ECHO_N "(cached) $ECHO_C" >&6 20046else 20047 if test -n "$CC"; then 20048 ac_cv_prog_CC="$CC" # Let the user override the test. 20049else 20050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20051for as_dir in $PATH 20052do 20053 IFS=$as_save_IFS 20054 test -z "$as_dir" && as_dir=. 20055 for ac_exec_ext in '' $ac_executable_extensions; do 20056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20057 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20059 break 2 20060 fi 20061done 20062done 20063IFS=$as_save_IFS 20064 20065fi 20066fi 20067CC=$ac_cv_prog_CC 20068if test -n "$CC"; then 20069 { echo "$as_me:$LINENO: result: $CC" >&5 20070echo "${ECHO_T}$CC" >&6; } 20071else 20072 { echo "$as_me:$LINENO: result: no" >&5 20073echo "${ECHO_T}no" >&6; } 20074fi 20075 20076 20077 test -n "$CC" && break 20078 done 20079fi 20080if test -z "$CC"; then 20081 ac_ct_CC=$CC 20082 for ac_prog in cl.exe 20083do 20084 # Extract the first word of "$ac_prog", so it can be a program name with args. 20085set dummy $ac_prog; ac_word=$2 20086{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20089 echo $ECHO_N "(cached) $ECHO_C" >&6 20090else 20091 if test -n "$ac_ct_CC"; then 20092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20093else 20094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20095for as_dir in $PATH 20096do 20097 IFS=$as_save_IFS 20098 test -z "$as_dir" && as_dir=. 20099 for ac_exec_ext in '' $ac_executable_extensions; do 20100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20101 ac_cv_prog_ac_ct_CC="$ac_prog" 20102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20103 break 2 20104 fi 20105done 20106done 20107IFS=$as_save_IFS 20108 20109fi 20110fi 20111ac_ct_CC=$ac_cv_prog_ac_ct_CC 20112if test -n "$ac_ct_CC"; then 20113 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20114echo "${ECHO_T}$ac_ct_CC" >&6; } 20115else 20116 { echo "$as_me:$LINENO: result: no" >&5 20117echo "${ECHO_T}no" >&6; } 20118fi 20119 20120 20121 test -n "$ac_ct_CC" && break 20122done 20123 20124 if test "x$ac_ct_CC" = x; then 20125 CC="" 20126 else 20127 case $cross_compiling:$ac_tool_warned in 20128yes:) 20129{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20130whose name does not start with the host triplet. If you think this 20131configuration is useful to you, please write to autoconf@gnu.org." >&5 20132echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20133whose name does not start with the host triplet. If you think this 20134configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20135ac_tool_warned=yes ;; 20136esac 20137 CC=$ac_ct_CC 20138 fi 20139fi 20140 20141fi 20142 20143 20144test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20145See \`config.log' for more details." >&5 20146echo "$as_me: error: no acceptable C compiler found in \$PATH 20147See \`config.log' for more details." >&2;} 20148 { (exit 1); exit 1; }; } 20149 20150# Provide some information about the compiler. 20151echo "$as_me:$LINENO: checking for C compiler version" >&5 20152ac_compiler=`set X $ac_compile; echo $2` 20153{ (ac_try="$ac_compiler --version >&5" 20154case "(($ac_try" in 20155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20156 *) ac_try_echo=$ac_try;; 20157esac 20158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20159 (eval "$ac_compiler --version >&5") 2>&5 20160 ac_status=$? 20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20162 (exit $ac_status); } 20163{ (ac_try="$ac_compiler -v >&5" 20164case "(($ac_try" in 20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20166 *) ac_try_echo=$ac_try;; 20167esac 20168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20169 (eval "$ac_compiler -v >&5") 2>&5 20170 ac_status=$? 20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20172 (exit $ac_status); } 20173{ (ac_try="$ac_compiler -V >&5" 20174case "(($ac_try" in 20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20176 *) ac_try_echo=$ac_try;; 20177esac 20178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20179 (eval "$ac_compiler -V >&5") 2>&5 20180 ac_status=$? 20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20182 (exit $ac_status); } 20183 20184{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20185echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 20186if test "${ac_cv_c_compiler_gnu+set}" = set; then 20187 echo $ECHO_N "(cached) $ECHO_C" >&6 20188else 20189 cat >conftest.$ac_ext <<_ACEOF 20190/* confdefs.h. */ 20191_ACEOF 20192cat confdefs.h >>conftest.$ac_ext 20193cat >>conftest.$ac_ext <<_ACEOF 20194/* end confdefs.h. */ 20195 20196int 20197main () 20198{ 20199#ifndef __GNUC__ 20200 choke me 20201#endif 20202 20203 ; 20204 return 0; 20205} 20206_ACEOF 20207rm -f conftest.$ac_objext 20208if { (ac_try="$ac_compile" 20209case "(($ac_try" in 20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20211 *) ac_try_echo=$ac_try;; 20212esac 20213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20214 (eval "$ac_compile") 2>conftest.er1 20215 ac_status=$? 20216 grep -v '^ *+' conftest.er1 >conftest.err 20217 rm -f conftest.er1 20218 cat conftest.err >&5 20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20220 (exit $ac_status); } && { 20221 test -z "$ac_c_werror_flag" || 20222 test ! -s conftest.err 20223 } && test -s conftest.$ac_objext; then 20224 ac_compiler_gnu=yes 20225else 20226 echo "$as_me: failed program was:" >&5 20227sed 's/^/| /' conftest.$ac_ext >&5 20228 20229 ac_compiler_gnu=no 20230fi 20231 20232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20233ac_cv_c_compiler_gnu=$ac_compiler_gnu 20234 20235fi 20236{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20237echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 20238GCC=`test $ac_compiler_gnu = yes && echo yes` 20239ac_test_CFLAGS=${CFLAGS+set} 20240ac_save_CFLAGS=$CFLAGS 20241{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20242echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 20243if test "${ac_cv_prog_cc_g+set}" = set; then 20244 echo $ECHO_N "(cached) $ECHO_C" >&6 20245else 20246 ac_save_c_werror_flag=$ac_c_werror_flag 20247 ac_c_werror_flag=yes 20248 ac_cv_prog_cc_g=no 20249 CFLAGS="-g" 20250 cat >conftest.$ac_ext <<_ACEOF 20251/* confdefs.h. */ 20252_ACEOF 20253cat confdefs.h >>conftest.$ac_ext 20254cat >>conftest.$ac_ext <<_ACEOF 20255/* end confdefs.h. */ 20256 20257int 20258main () 20259{ 20260 20261 ; 20262 return 0; 20263} 20264_ACEOF 20265rm -f conftest.$ac_objext 20266if { (ac_try="$ac_compile" 20267case "(($ac_try" in 20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20269 *) ac_try_echo=$ac_try;; 20270esac 20271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20272 (eval "$ac_compile") 2>conftest.er1 20273 ac_status=$? 20274 grep -v '^ *+' conftest.er1 >conftest.err 20275 rm -f conftest.er1 20276 cat conftest.err >&5 20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20278 (exit $ac_status); } && { 20279 test -z "$ac_c_werror_flag" || 20280 test ! -s conftest.err 20281 } && test -s conftest.$ac_objext; then 20282 ac_cv_prog_cc_g=yes 20283else 20284 echo "$as_me: failed program was:" >&5 20285sed 's/^/| /' conftest.$ac_ext >&5 20286 20287 CFLAGS="" 20288 cat >conftest.$ac_ext <<_ACEOF 20289/* confdefs.h. */ 20290_ACEOF 20291cat confdefs.h >>conftest.$ac_ext 20292cat >>conftest.$ac_ext <<_ACEOF 20293/* end confdefs.h. */ 20294 20295int 20296main () 20297{ 20298 20299 ; 20300 return 0; 20301} 20302_ACEOF 20303rm -f conftest.$ac_objext 20304if { (ac_try="$ac_compile" 20305case "(($ac_try" in 20306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20307 *) ac_try_echo=$ac_try;; 20308esac 20309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20310 (eval "$ac_compile") 2>conftest.er1 20311 ac_status=$? 20312 grep -v '^ *+' conftest.er1 >conftest.err 20313 rm -f conftest.er1 20314 cat conftest.err >&5 20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20316 (exit $ac_status); } && { 20317 test -z "$ac_c_werror_flag" || 20318 test ! -s conftest.err 20319 } && test -s conftest.$ac_objext; then 20320 : 20321else 20322 echo "$as_me: failed program was:" >&5 20323sed 's/^/| /' conftest.$ac_ext >&5 20324 20325 ac_c_werror_flag=$ac_save_c_werror_flag 20326 CFLAGS="-g" 20327 cat >conftest.$ac_ext <<_ACEOF 20328/* confdefs.h. */ 20329_ACEOF 20330cat confdefs.h >>conftest.$ac_ext 20331cat >>conftest.$ac_ext <<_ACEOF 20332/* end confdefs.h. */ 20333 20334int 20335main () 20336{ 20337 20338 ; 20339 return 0; 20340} 20341_ACEOF 20342rm -f conftest.$ac_objext 20343if { (ac_try="$ac_compile" 20344case "(($ac_try" in 20345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20346 *) ac_try_echo=$ac_try;; 20347esac 20348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20349 (eval "$ac_compile") 2>conftest.er1 20350 ac_status=$? 20351 grep -v '^ *+' conftest.er1 >conftest.err 20352 rm -f conftest.er1 20353 cat conftest.err >&5 20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20355 (exit $ac_status); } && { 20356 test -z "$ac_c_werror_flag" || 20357 test ! -s conftest.err 20358 } && test -s conftest.$ac_objext; then 20359 ac_cv_prog_cc_g=yes 20360else 20361 echo "$as_me: failed program was:" >&5 20362sed 's/^/| /' conftest.$ac_ext >&5 20363 20364 20365fi 20366 20367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20368fi 20369 20370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20371fi 20372 20373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20374 ac_c_werror_flag=$ac_save_c_werror_flag 20375fi 20376{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20377echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 20378if test "$ac_test_CFLAGS" = set; then 20379 CFLAGS=$ac_save_CFLAGS 20380elif test $ac_cv_prog_cc_g = yes; then 20381 if test "$GCC" = yes; then 20382 CFLAGS="-g -O2" 20383 else 20384 CFLAGS="-g" 20385 fi 20386else 20387 if test "$GCC" = yes; then 20388 CFLAGS="-O2" 20389 else 20390 CFLAGS= 20391 fi 20392fi 20393{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20394echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 20395if test "${ac_cv_prog_cc_c89+set}" = set; then 20396 echo $ECHO_N "(cached) $ECHO_C" >&6 20397else 20398 ac_cv_prog_cc_c89=no 20399ac_save_CC=$CC 20400cat >conftest.$ac_ext <<_ACEOF 20401/* confdefs.h. */ 20402_ACEOF 20403cat confdefs.h >>conftest.$ac_ext 20404cat >>conftest.$ac_ext <<_ACEOF 20405/* end confdefs.h. */ 20406#include <stdarg.h> 20407#include <stdio.h> 20408#include <sys/types.h> 20409#include <sys/stat.h> 20410/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20411struct buf { int x; }; 20412FILE * (*rcsopen) (struct buf *, struct stat *, int); 20413static char *e (p, i) 20414 char **p; 20415 int i; 20416{ 20417 return p[i]; 20418} 20419static char *f (char * (*g) (char **, int), char **p, ...) 20420{ 20421 char *s; 20422 va_list v; 20423 va_start (v,p); 20424 s = g (p, va_arg (v,int)); 20425 va_end (v); 20426 return s; 20427} 20428 20429/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20430 function prototypes and stuff, but not '\xHH' hex character constants. 20431 These don't provoke an error unfortunately, instead are silently treated 20432 as 'x'. The following induces an error, until -std is added to get 20433 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20434 array size at least. It's necessary to write '\x00'==0 to get something 20435 that's true only with -std. */ 20436int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20437 20438/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20439 inside strings and character constants. */ 20440#define FOO(x) 'x' 20441int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20442 20443int test (int i, double x); 20444struct s1 {int (*f) (int a);}; 20445struct s2 {int (*f) (double a);}; 20446int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20447int argc; 20448char **argv; 20449int 20450main () 20451{ 20452return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20453 ; 20454 return 0; 20455} 20456_ACEOF 20457for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20458 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20459do 20460 CC="$ac_save_CC $ac_arg" 20461 rm -f conftest.$ac_objext 20462if { (ac_try="$ac_compile" 20463case "(($ac_try" in 20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20465 *) ac_try_echo=$ac_try;; 20466esac 20467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20468 (eval "$ac_compile") 2>conftest.er1 20469 ac_status=$? 20470 grep -v '^ *+' conftest.er1 >conftest.err 20471 rm -f conftest.er1 20472 cat conftest.err >&5 20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20474 (exit $ac_status); } && { 20475 test -z "$ac_c_werror_flag" || 20476 test ! -s conftest.err 20477 } && test -s conftest.$ac_objext; then 20478 ac_cv_prog_cc_c89=$ac_arg 20479else 20480 echo "$as_me: failed program was:" >&5 20481sed 's/^/| /' conftest.$ac_ext >&5 20482 20483 20484fi 20485 20486rm -f core conftest.err conftest.$ac_objext 20487 test "x$ac_cv_prog_cc_c89" != "xno" && break 20488done 20489rm -f conftest.$ac_ext 20490CC=$ac_save_CC 20491 20492fi 20493# AC_CACHE_VAL 20494case "x$ac_cv_prog_cc_c89" in 20495 x) 20496 { echo "$as_me:$LINENO: result: none needed" >&5 20497echo "${ECHO_T}none needed" >&6; } ;; 20498 xno) 20499 { echo "$as_me:$LINENO: result: unsupported" >&5 20500echo "${ECHO_T}unsupported" >&6; } ;; 20501 *) 20502 CC="$CC $ac_cv_prog_cc_c89" 20503 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20504echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 20505esac 20506 20507 20508ac_ext=c 20509ac_cpp='$CPP $CPPFLAGS' 20510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20512ac_compiler_gnu=$ac_cv_c_compiler_gnu 20513 20514depcc="$CC" am_compiler_list= 20515 20516{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20517echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 20518if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20519 echo $ECHO_N "(cached) $ECHO_C" >&6 20520else 20521 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20522 # We make a subdir and do the tests there. Otherwise we can end up 20523 # making bogus files that we don't know about and never remove. For 20524 # instance it was reported that on HP-UX the gcc test will end up 20525 # making a dummy file named `D' -- because `-MD' means `put the output 20526 # in D'. 20527 mkdir conftest.dir 20528 # Copy depcomp to subdir because otherwise we won't find it if we're 20529 # using a relative directory. 20530 cp "$am_depcomp" conftest.dir 20531 cd conftest.dir 20532 # We will build objects and dependencies in a subdirectory because 20533 # it helps to detect inapplicable dependency modes. For instance 20534 # both Tru64's cc and ICC support -MD to output dependencies as a 20535 # side effect of compilation, but ICC will put the dependencies in 20536 # the current directory while Tru64 will put them in the object 20537 # directory. 20538 mkdir sub 20539 20540 am_cv_CC_dependencies_compiler_type=none 20541 if test "$am_compiler_list" = ""; then 20542 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20543 fi 20544 for depmode in $am_compiler_list; do 20545 # Setup a source with many dependencies, because some compilers 20546 # like to wrap large dependency lists on column 80 (with \), and 20547 # we should not choose a depcomp mode which is confused by this. 20548 # 20549 # We need to recreate these files for each test, as the compiler may 20550 # overwrite some of them when testing with obscure command lines. 20551 # This happens at least with the AIX C compiler. 20552 : > sub/conftest.c 20553 for i in 1 2 3 4 5 6; do 20554 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20555 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20556 # Solaris 8's {/usr,}/bin/sh. 20557 touch sub/conftst$i.h 20558 done 20559 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20560 20561 case $depmode in 20562 nosideeffect) 20563 # after this tag, mechanisms are not by side-effect, so they'll 20564 # only be used when explicitly requested 20565 if test "x$enable_dependency_tracking" = xyes; then 20566 continue 20567 else 20568 break 20569 fi 20570 ;; 20571 none) break ;; 20572 esac 20573 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20574 # mode. It turns out that the SunPro C++ compiler does not properly 20575 # handle `-M -o', and we need to detect this. 20576 if depmode=$depmode \ 20577 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20578 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20579 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20580 >/dev/null 2>conftest.err && 20581 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 20582 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20583 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20584 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20585 # icc doesn't choke on unknown options, it will just issue warnings 20586 # or remarks (even with -Werror). So we grep stderr for any message 20587 # that says an option was ignored or not supported. 20588 # When given -MP, icc 7.0 and 7.1 complain thusly: 20589 # icc: Command line warning: ignoring option '-M'; no argument required 20590 # The diagnosis changed in icc 8.0: 20591 # icc: Command line remark: option '-MP' not supported 20592 if (grep 'ignoring option' conftest.err || 20593 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20594 am_cv_CC_dependencies_compiler_type=$depmode 20595 break 20596 fi 20597 fi 20598 done 20599 20600 cd .. 20601 rm -rf conftest.dir 20602else 20603 am_cv_CC_dependencies_compiler_type=none 20604fi 20605 20606fi 20607{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20608echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 20609CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20610 20611 if 20612 test "x$enable_dependency_tracking" != xno \ 20613 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20614 am__fastdepCC_TRUE= 20615 am__fastdepCC_FALSE='#' 20616else 20617 am__fastdepCC_TRUE='#' 20618 am__fastdepCC_FALSE= 20619fi 20620 20621 20622 20623 20624 20625 20626 20627# Check whether --with-xorg-module-dir was given. 20628if test "${with_xorg_module_dir+set}" = set; then 20629 withval=$with_xorg_module_dir; moduledir="$withval" 20630else 20631 moduledir="$libdir/xorg/modules" 20632fi 20633 20634 20635# Checks for extensions 20636 20637 SAVE_CFLAGS="$CFLAGS" 20638 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20639 cat >conftest.$ac_ext <<_ACEOF 20640/* confdefs.h. */ 20641_ACEOF 20642cat confdefs.h >>conftest.$ac_ext 20643cat >>conftest.$ac_ext <<_ACEOF 20644/* end confdefs.h. */ 20645 20646#include "xorg-server.h" 20647#if !defined RANDR 20648#error RANDR not defined 20649#endif 20650 20651int 20652main () 20653{ 20654 20655 ; 20656 return 0; 20657} 20658_ACEOF 20659rm -f conftest.$ac_objext 20660if { (ac_try="$ac_compile" 20661case "(($ac_try" in 20662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20663 *) ac_try_echo=$ac_try;; 20664esac 20665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20666 (eval "$ac_compile") 2>conftest.er1 20667 ac_status=$? 20668 grep -v '^ *+' conftest.er1 >conftest.err 20669 rm -f conftest.er1 20670 cat conftest.err >&5 20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20672 (exit $ac_status); } && { 20673 test -z "$ac_c_werror_flag" || 20674 test ! -s conftest.err 20675 } && test -s conftest.$ac_objext; then 20676 _EXT_CHECK=yes 20677else 20678 echo "$as_me: failed program was:" >&5 20679sed 's/^/| /' conftest.$ac_ext >&5 20680 20681 _EXT_CHECK=no 20682fi 20683 20684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20685 CFLAGS="$SAVE_CFLAGS" 20686 { echo "$as_me:$LINENO: checking if RANDR is defined" >&5 20687echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; } 20688 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20689echo "${ECHO_T}$_EXT_CHECK" >&6; } 20690 if test "$_EXT_CHECK" != no; then 20691 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 20692 fi 20693 20694 20695 SAVE_CFLAGS="$CFLAGS" 20696 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20697 cat >conftest.$ac_ext <<_ACEOF 20698/* confdefs.h. */ 20699_ACEOF 20700cat confdefs.h >>conftest.$ac_ext 20701cat >>conftest.$ac_ext <<_ACEOF 20702/* end confdefs.h. */ 20703 20704#include "xorg-server.h" 20705#if !defined RENDER 20706#error RENDER not defined 20707#endif 20708 20709int 20710main () 20711{ 20712 20713 ; 20714 return 0; 20715} 20716_ACEOF 20717rm -f conftest.$ac_objext 20718if { (ac_try="$ac_compile" 20719case "(($ac_try" in 20720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20721 *) ac_try_echo=$ac_try;; 20722esac 20723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20724 (eval "$ac_compile") 2>conftest.er1 20725 ac_status=$? 20726 grep -v '^ *+' conftest.er1 >conftest.err 20727 rm -f conftest.er1 20728 cat conftest.err >&5 20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20730 (exit $ac_status); } && { 20731 test -z "$ac_c_werror_flag" || 20732 test ! -s conftest.err 20733 } && test -s conftest.$ac_objext; then 20734 _EXT_CHECK=yes 20735else 20736 echo "$as_me: failed program was:" >&5 20737sed 's/^/| /' conftest.$ac_ext >&5 20738 20739 _EXT_CHECK=no 20740fi 20741 20742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20743 CFLAGS="$SAVE_CFLAGS" 20744 { echo "$as_me:$LINENO: checking if RENDER is defined" >&5 20745echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6; } 20746 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20747echo "${ECHO_T}$_EXT_CHECK" >&6; } 20748 if test "$_EXT_CHECK" != no; then 20749 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 20750 fi 20751 20752 20753 SAVE_CFLAGS="$CFLAGS" 20754 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20755 cat >conftest.$ac_ext <<_ACEOF 20756/* confdefs.h. */ 20757_ACEOF 20758cat confdefs.h >>conftest.$ac_ext 20759cat >>conftest.$ac_ext <<_ACEOF 20760/* end confdefs.h. */ 20761 20762#include "xorg-server.h" 20763#if !defined XV 20764#error XV not defined 20765#endif 20766 20767int 20768main () 20769{ 20770 20771 ; 20772 return 0; 20773} 20774_ACEOF 20775rm -f conftest.$ac_objext 20776if { (ac_try="$ac_compile" 20777case "(($ac_try" in 20778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20779 *) ac_try_echo=$ac_try;; 20780esac 20781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20782 (eval "$ac_compile") 2>conftest.er1 20783 ac_status=$? 20784 grep -v '^ *+' conftest.er1 >conftest.err 20785 rm -f conftest.er1 20786 cat conftest.err >&5 20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20788 (exit $ac_status); } && { 20789 test -z "$ac_c_werror_flag" || 20790 test ! -s conftest.err 20791 } && test -s conftest.$ac_objext; then 20792 _EXT_CHECK=yes 20793else 20794 echo "$as_me: failed program was:" >&5 20795sed 's/^/| /' conftest.$ac_ext >&5 20796 20797 _EXT_CHECK=no 20798fi 20799 20800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20801 CFLAGS="$SAVE_CFLAGS" 20802 { echo "$as_me:$LINENO: checking if XV is defined" >&5 20803echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6; } 20804 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20805echo "${ECHO_T}$_EXT_CHECK" >&6; } 20806 if test "$_EXT_CHECK" != no; then 20807 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 20808 fi 20809 20810 20811 SAVE_CFLAGS="$CFLAGS" 20812 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20813 cat >conftest.$ac_ext <<_ACEOF 20814/* confdefs.h. */ 20815_ACEOF 20816cat confdefs.h >>conftest.$ac_ext 20817cat >>conftest.$ac_ext <<_ACEOF 20818/* end confdefs.h. */ 20819 20820#include "xorg-server.h" 20821#if !defined DPMSExtension 20822#error DPMSExtension not defined 20823#endif 20824 20825int 20826main () 20827{ 20828 20829 ; 20830 return 0; 20831} 20832_ACEOF 20833rm -f conftest.$ac_objext 20834if { (ac_try="$ac_compile" 20835case "(($ac_try" in 20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20837 *) ac_try_echo=$ac_try;; 20838esac 20839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20840 (eval "$ac_compile") 2>conftest.er1 20841 ac_status=$? 20842 grep -v '^ *+' conftest.er1 >conftest.err 20843 rm -f conftest.er1 20844 cat conftest.err >&5 20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20846 (exit $ac_status); } && { 20847 test -z "$ac_c_werror_flag" || 20848 test ! -s conftest.err 20849 } && test -s conftest.$ac_objext; then 20850 _EXT_CHECK=yes 20851else 20852 echo "$as_me: failed program was:" >&5 20853sed 's/^/| /' conftest.$ac_ext >&5 20854 20855 _EXT_CHECK=no 20856fi 20857 20858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20859 CFLAGS="$SAVE_CFLAGS" 20860 { echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 20861echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6; } 20862 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20863echo "${ECHO_T}$_EXT_CHECK" >&6; } 20864 if test "$_EXT_CHECK" != no; then 20865 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 20866 fi 20867 20868 20869# Checks for pkg-config packages 20870 20871 20872if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20873 if test -n "$ac_tool_prefix"; then 20874 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20875set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20876{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20878if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20879 echo $ECHO_N "(cached) $ECHO_C" >&6 20880else 20881 case $PKG_CONFIG in 20882 [\\/]* | ?:[\\/]*) 20883 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20884 ;; 20885 *) 20886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20887for as_dir in $PATH 20888do 20889 IFS=$as_save_IFS 20890 test -z "$as_dir" && as_dir=. 20891 for ac_exec_ext in '' $ac_executable_extensions; do 20892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20893 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20895 break 2 20896 fi 20897done 20898done 20899IFS=$as_save_IFS 20900 20901 ;; 20902esac 20903fi 20904PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20905if test -n "$PKG_CONFIG"; then 20906 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20907echo "${ECHO_T}$PKG_CONFIG" >&6; } 20908else 20909 { echo "$as_me:$LINENO: result: no" >&5 20910echo "${ECHO_T}no" >&6; } 20911fi 20912 20913 20914fi 20915if test -z "$ac_cv_path_PKG_CONFIG"; then 20916 ac_pt_PKG_CONFIG=$PKG_CONFIG 20917 # Extract the first word of "pkg-config", so it can be a program name with args. 20918set dummy pkg-config; ac_word=$2 20919{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20921if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20922 echo $ECHO_N "(cached) $ECHO_C" >&6 20923else 20924 case $ac_pt_PKG_CONFIG in 20925 [\\/]* | ?:[\\/]*) 20926 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20927 ;; 20928 *) 20929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20930for as_dir in $PATH 20931do 20932 IFS=$as_save_IFS 20933 test -z "$as_dir" && as_dir=. 20934 for ac_exec_ext in '' $ac_executable_extensions; do 20935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20936 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20938 break 2 20939 fi 20940done 20941done 20942IFS=$as_save_IFS 20943 20944 ;; 20945esac 20946fi 20947ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20948if test -n "$ac_pt_PKG_CONFIG"; then 20949 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 20950echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 20951else 20952 { echo "$as_me:$LINENO: result: no" >&5 20953echo "${ECHO_T}no" >&6; } 20954fi 20955 20956 if test "x$ac_pt_PKG_CONFIG" = x; then 20957 PKG_CONFIG="" 20958 else 20959 case $cross_compiling:$ac_tool_warned in 20960yes:) 20961{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20962whose name does not start with the host triplet. If you think this 20963configuration is useful to you, please write to autoconf@gnu.org." >&5 20964echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20965whose name does not start with the host triplet. If you think this 20966configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20967ac_tool_warned=yes ;; 20968esac 20969 PKG_CONFIG=$ac_pt_PKG_CONFIG 20970 fi 20971else 20972 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20973fi 20974 20975fi 20976if test -n "$PKG_CONFIG"; then 20977 _pkg_min_version=0.9.0 20978 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20979echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 20980 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20981 { echo "$as_me:$LINENO: result: yes" >&5 20982echo "${ECHO_T}yes" >&6; } 20983 else 20984 { echo "$as_me:$LINENO: result: no" >&5 20985echo "${ECHO_T}no" >&6; } 20986 PKG_CONFIG="" 20987 fi 20988 20989fi 20990 20991pkg_failed=no 20992{ echo "$as_me:$LINENO: checking for XORG" >&5 20993echo $ECHO_N "checking for XORG... $ECHO_C" >&6; } 20994 20995if test -n "$PKG_CONFIG"; then 20996 if test -n "$XORG_CFLAGS"; then 20997 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 20998 else 20999 if test -n "$PKG_CONFIG" && \ 21000 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\"") >&5 21001 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5 21002 ac_status=$? 21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21004 (exit $ac_status); }; then 21005 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21006else 21007 pkg_failed=yes 21008fi 21009 fi 21010else 21011 pkg_failed=untried 21012fi 21013if test -n "$PKG_CONFIG"; then 21014 if test -n "$XORG_LIBS"; then 21015 pkg_cv_XORG_LIBS="$XORG_LIBS" 21016 else 21017 if test -n "$PKG_CONFIG" && \ 21018 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\"") >&5 21019 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5 21020 ac_status=$? 21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21022 (exit $ac_status); }; then 21023 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21024else 21025 pkg_failed=yes 21026fi 21027 fi 21028else 21029 pkg_failed=untried 21030fi 21031 21032 21033 21034if test $pkg_failed = yes; then 21035 21036if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21037 _pkg_short_errors_supported=yes 21038else 21039 _pkg_short_errors_supported=no 21040fi 21041 if test $_pkg_short_errors_supported = yes; then 21042 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES"` 21043 else 21044 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES"` 21045 fi 21046 # Put the nasty error message in config.log where it belongs 21047 echo "$XORG_PKG_ERRORS" >&5 21048 21049 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met: 21050 21051$XORG_PKG_ERRORS 21052 21053Consider adjusting the PKG_CONFIG_PATH environment variable if you 21054installed software in a non-standard prefix. 21055 21056Alternatively, you may set the environment variables XORG_CFLAGS 21057and XORG_LIBS to avoid the need to call pkg-config. 21058See the pkg-config man page for more details. 21059" >&5 21060echo "$as_me: error: Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met: 21061 21062$XORG_PKG_ERRORS 21063 21064Consider adjusting the PKG_CONFIG_PATH environment variable if you 21065installed software in a non-standard prefix. 21066 21067Alternatively, you may set the environment variables XORG_CFLAGS 21068and XORG_LIBS to avoid the need to call pkg-config. 21069See the pkg-config man page for more details. 21070" >&2;} 21071 { (exit 1); exit 1; }; } 21072elif test $pkg_failed = untried; then 21073 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21074is in your PATH or set the PKG_CONFIG environment variable to the full 21075path to pkg-config. 21076 21077Alternatively, you may set the environment variables XORG_CFLAGS 21078and XORG_LIBS to avoid the need to call pkg-config. 21079See the pkg-config man page for more details. 21080 21081To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21082See \`config.log' for more details." >&5 21083echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21084is in your PATH or set the PKG_CONFIG environment variable to the full 21085path to pkg-config. 21086 21087Alternatively, you may set the environment variables XORG_CFLAGS 21088and XORG_LIBS to avoid the need to call pkg-config. 21089See the pkg-config man page for more details. 21090 21091To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21092See \`config.log' for more details." >&2;} 21093 { (exit 1); exit 1; }; } 21094else 21095 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 21096 XORG_LIBS=$pkg_cv_XORG_LIBS 21097 { echo "$as_me:$LINENO: result: yes" >&5 21098echo "${ECHO_T}yes" >&6; } 21099 : 21100fi 21101sdkdir=$(pkg-config --variable=sdkdir xorg-server) 21102 21103# Checks for libraries. 21104SAVE_CPPFLAGS="$CPPFLAGS" 21105CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 21106{ echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5 21107echo $ECHO_N "checking whether XSERVER_LIBPCIACCESS is declared... $ECHO_C" >&6; } 21108if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then 21109 echo $ECHO_N "(cached) $ECHO_C" >&6 21110else 21111 cat >conftest.$ac_ext <<_ACEOF 21112/* confdefs.h. */ 21113_ACEOF 21114cat confdefs.h >>conftest.$ac_ext 21115cat >>conftest.$ac_ext <<_ACEOF 21116/* end confdefs.h. */ 21117#include "xorg-server.h" 21118 21119int 21120main () 21121{ 21122#ifndef XSERVER_LIBPCIACCESS 21123 (void) XSERVER_LIBPCIACCESS; 21124#endif 21125 21126 ; 21127 return 0; 21128} 21129_ACEOF 21130rm -f conftest.$ac_objext 21131if { (ac_try="$ac_compile" 21132case "(($ac_try" in 21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21134 *) ac_try_echo=$ac_try;; 21135esac 21136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21137 (eval "$ac_compile") 2>conftest.er1 21138 ac_status=$? 21139 grep -v '^ *+' conftest.er1 >conftest.err 21140 rm -f conftest.er1 21141 cat conftest.err >&5 21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21143 (exit $ac_status); } && { 21144 test -z "$ac_c_werror_flag" || 21145 test ! -s conftest.err 21146 } && test -s conftest.$ac_objext; then 21147 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes 21148else 21149 echo "$as_me: failed program was:" >&5 21150sed 's/^/| /' conftest.$ac_ext >&5 21151 21152 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no 21153fi 21154 21155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21156fi 21157{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5 21158echo "${ECHO_T}$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; } 21159if test $ac_cv_have_decl_XSERVER_LIBPCIACCESS = yes; then 21160 XSERVER_LIBPCIACCESS=yes 21161else 21162 XSERVER_LIBPCIACCESS=no 21163fi 21164 21165if test "${ac_cv_header_xf1bpp_h+set}" = set; then 21166 { echo "$as_me:$LINENO: checking for xf1bpp.h" >&5 21167echo $ECHO_N "checking for xf1bpp.h... $ECHO_C" >&6; } 21168if test "${ac_cv_header_xf1bpp_h+set}" = set; then 21169 echo $ECHO_N "(cached) $ECHO_C" >&6 21170fi 21171{ echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5 21172echo "${ECHO_T}$ac_cv_header_xf1bpp_h" >&6; } 21173else 21174 # Is the header compilable? 21175{ echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5 21176echo $ECHO_N "checking xf1bpp.h usability... $ECHO_C" >&6; } 21177cat >conftest.$ac_ext <<_ACEOF 21178/* confdefs.h. */ 21179_ACEOF 21180cat confdefs.h >>conftest.$ac_ext 21181cat >>conftest.$ac_ext <<_ACEOF 21182/* end confdefs.h. */ 21183$ac_includes_default 21184#include <xf1bpp.h> 21185_ACEOF 21186rm -f conftest.$ac_objext 21187if { (ac_try="$ac_compile" 21188case "(($ac_try" in 21189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21190 *) ac_try_echo=$ac_try;; 21191esac 21192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21193 (eval "$ac_compile") 2>conftest.er1 21194 ac_status=$? 21195 grep -v '^ *+' conftest.er1 >conftest.err 21196 rm -f conftest.er1 21197 cat conftest.err >&5 21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21199 (exit $ac_status); } && { 21200 test -z "$ac_c_werror_flag" || 21201 test ! -s conftest.err 21202 } && test -s conftest.$ac_objext; then 21203 ac_header_compiler=yes 21204else 21205 echo "$as_me: failed program was:" >&5 21206sed 's/^/| /' conftest.$ac_ext >&5 21207 21208 ac_header_compiler=no 21209fi 21210 21211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21212{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21213echo "${ECHO_T}$ac_header_compiler" >&6; } 21214 21215# Is the header present? 21216{ echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5 21217echo $ECHO_N "checking xf1bpp.h presence... $ECHO_C" >&6; } 21218cat >conftest.$ac_ext <<_ACEOF 21219/* confdefs.h. */ 21220_ACEOF 21221cat confdefs.h >>conftest.$ac_ext 21222cat >>conftest.$ac_ext <<_ACEOF 21223/* end confdefs.h. */ 21224#include <xf1bpp.h> 21225_ACEOF 21226if { (ac_try="$ac_cpp conftest.$ac_ext" 21227case "(($ac_try" in 21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21229 *) ac_try_echo=$ac_try;; 21230esac 21231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21233 ac_status=$? 21234 grep -v '^ *+' conftest.er1 >conftest.err 21235 rm -f conftest.er1 21236 cat conftest.err >&5 21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21238 (exit $ac_status); } >/dev/null && { 21239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21240 test ! -s conftest.err 21241 }; then 21242 ac_header_preproc=yes 21243else 21244 echo "$as_me: failed program was:" >&5 21245sed 's/^/| /' conftest.$ac_ext >&5 21246 21247 ac_header_preproc=no 21248fi 21249 21250rm -f conftest.err conftest.$ac_ext 21251{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21252echo "${ECHO_T}$ac_header_preproc" >&6; } 21253 21254# So? What about this header? 21255case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21256 yes:no: ) 21257 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5 21258echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21259 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5 21260echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;} 21261 ac_header_preproc=yes 21262 ;; 21263 no:yes:* ) 21264 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5 21265echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;} 21266 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&5 21267echo "$as_me: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&2;} 21268 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5 21269echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;} 21270 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&5 21271echo "$as_me: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&2;} 21272 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5 21273echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;} 21274 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5 21275echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;} 21276 ( cat <<\_ASBOX 21277## ---------------------------------------------------------------------- ## 21278## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 21279## ---------------------------------------------------------------------- ## 21280_ASBOX 21281 ) | sed "s/^/$as_me: WARNING: /" >&2 21282 ;; 21283esac 21284{ echo "$as_me:$LINENO: checking for xf1bpp.h" >&5 21285echo $ECHO_N "checking for xf1bpp.h... $ECHO_C" >&6; } 21286if test "${ac_cv_header_xf1bpp_h+set}" = set; then 21287 echo $ECHO_N "(cached) $ECHO_C" >&6 21288else 21289 ac_cv_header_xf1bpp_h=$ac_header_preproc 21290fi 21291{ echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5 21292echo "${ECHO_T}$ac_cv_header_xf1bpp_h" >&6; } 21293 21294fi 21295if test $ac_cv_header_xf1bpp_h = yes; then 21296 21297cat >>confdefs.h <<\_ACEOF 21298#define HAVE_XF1BPP 1 21299_ACEOF 21300 21301fi 21302 21303 21304if test "${ac_cv_header_xf4bpp_h+set}" = set; then 21305 { echo "$as_me:$LINENO: checking for xf4bpp.h" >&5 21306echo $ECHO_N "checking for xf4bpp.h... $ECHO_C" >&6; } 21307if test "${ac_cv_header_xf4bpp_h+set}" = set; then 21308 echo $ECHO_N "(cached) $ECHO_C" >&6 21309fi 21310{ echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5 21311echo "${ECHO_T}$ac_cv_header_xf4bpp_h" >&6; } 21312else 21313 # Is the header compilable? 21314{ echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5 21315echo $ECHO_N "checking xf4bpp.h usability... $ECHO_C" >&6; } 21316cat >conftest.$ac_ext <<_ACEOF 21317/* confdefs.h. */ 21318_ACEOF 21319cat confdefs.h >>conftest.$ac_ext 21320cat >>conftest.$ac_ext <<_ACEOF 21321/* end confdefs.h. */ 21322$ac_includes_default 21323#include <xf4bpp.h> 21324_ACEOF 21325rm -f conftest.$ac_objext 21326if { (ac_try="$ac_compile" 21327case "(($ac_try" in 21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21329 *) ac_try_echo=$ac_try;; 21330esac 21331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21332 (eval "$ac_compile") 2>conftest.er1 21333 ac_status=$? 21334 grep -v '^ *+' conftest.er1 >conftest.err 21335 rm -f conftest.er1 21336 cat conftest.err >&5 21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21338 (exit $ac_status); } && { 21339 test -z "$ac_c_werror_flag" || 21340 test ! -s conftest.err 21341 } && test -s conftest.$ac_objext; then 21342 ac_header_compiler=yes 21343else 21344 echo "$as_me: failed program was:" >&5 21345sed 's/^/| /' conftest.$ac_ext >&5 21346 21347 ac_header_compiler=no 21348fi 21349 21350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21351{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21352echo "${ECHO_T}$ac_header_compiler" >&6; } 21353 21354# Is the header present? 21355{ echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5 21356echo $ECHO_N "checking xf4bpp.h presence... $ECHO_C" >&6; } 21357cat >conftest.$ac_ext <<_ACEOF 21358/* confdefs.h. */ 21359_ACEOF 21360cat confdefs.h >>conftest.$ac_ext 21361cat >>conftest.$ac_ext <<_ACEOF 21362/* end confdefs.h. */ 21363#include <xf4bpp.h> 21364_ACEOF 21365if { (ac_try="$ac_cpp conftest.$ac_ext" 21366case "(($ac_try" in 21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21368 *) ac_try_echo=$ac_try;; 21369esac 21370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21372 ac_status=$? 21373 grep -v '^ *+' conftest.er1 >conftest.err 21374 rm -f conftest.er1 21375 cat conftest.err >&5 21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21377 (exit $ac_status); } >/dev/null && { 21378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21379 test ! -s conftest.err 21380 }; then 21381 ac_header_preproc=yes 21382else 21383 echo "$as_me: failed program was:" >&5 21384sed 's/^/| /' conftest.$ac_ext >&5 21385 21386 ac_header_preproc=no 21387fi 21388 21389rm -f conftest.err conftest.$ac_ext 21390{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21391echo "${ECHO_T}$ac_header_preproc" >&6; } 21392 21393# So? What about this header? 21394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21395 yes:no: ) 21396 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5 21397echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21398 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5 21399echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;} 21400 ac_header_preproc=yes 21401 ;; 21402 no:yes:* ) 21403 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5 21404echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;} 21405 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&5 21406echo "$as_me: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&2;} 21407 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5 21408echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;} 21409 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&5 21410echo "$as_me: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&2;} 21411 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5 21412echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;} 21413 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5 21414echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;} 21415 ( cat <<\_ASBOX 21416## ---------------------------------------------------------------------- ## 21417## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 21418## ---------------------------------------------------------------------- ## 21419_ASBOX 21420 ) | sed "s/^/$as_me: WARNING: /" >&2 21421 ;; 21422esac 21423{ echo "$as_me:$LINENO: checking for xf4bpp.h" >&5 21424echo $ECHO_N "checking for xf4bpp.h... $ECHO_C" >&6; } 21425if test "${ac_cv_header_xf4bpp_h+set}" = set; then 21426 echo $ECHO_N "(cached) $ECHO_C" >&6 21427else 21428 ac_cv_header_xf4bpp_h=$ac_header_preproc 21429fi 21430{ echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5 21431echo "${ECHO_T}$ac_cv_header_xf4bpp_h" >&6; } 21432 21433fi 21434if test $ac_cv_header_xf4bpp_h = yes; then 21435 21436cat >>confdefs.h <<\_ACEOF 21437#define HAVE_XF4BPP 1 21438_ACEOF 21439 21440fi 21441 21442 21443CPPFLAGS="$SAVE_CPPFLAGS" 21444 21445if test "x$XSERVER_LIBPCIACCESS" = xyes; then 21446 21447pkg_failed=no 21448{ echo "$as_me:$LINENO: checking for PCIACCESS" >&5 21449echo $ECHO_N "checking for PCIACCESS... $ECHO_C" >&6; } 21450 21451if test -n "$PKG_CONFIG"; then 21452 if test -n "$PCIACCESS_CFLAGS"; then 21453 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 21454 else 21455 if test -n "$PKG_CONFIG" && \ 21456 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 21457 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 21458 ac_status=$? 21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21460 (exit $ac_status); }; then 21461 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 21462else 21463 pkg_failed=yes 21464fi 21465 fi 21466else 21467 pkg_failed=untried 21468fi 21469if test -n "$PKG_CONFIG"; then 21470 if test -n "$PCIACCESS_LIBS"; then 21471 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 21472 else 21473 if test -n "$PKG_CONFIG" && \ 21474 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5 21475 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 21476 ac_status=$? 21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21478 (exit $ac_status); }; then 21479 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 21480else 21481 pkg_failed=yes 21482fi 21483 fi 21484else 21485 pkg_failed=untried 21486fi 21487 21488 21489 21490if test $pkg_failed = yes; then 21491 21492if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21493 _pkg_short_errors_supported=yes 21494else 21495 _pkg_short_errors_supported=no 21496fi 21497 if test $_pkg_short_errors_supported = yes; then 21498 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess >= 0.8.0"` 21499 else 21500 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.8.0"` 21501 fi 21502 # Put the nasty error message in config.log where it belongs 21503 echo "$PCIACCESS_PKG_ERRORS" >&5 21504 21505 { { echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met: 21506 21507$PCIACCESS_PKG_ERRORS 21508 21509Consider adjusting the PKG_CONFIG_PATH environment variable if you 21510installed software in a non-standard prefix. 21511 21512Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21513and PCIACCESS_LIBS to avoid the need to call pkg-config. 21514See the pkg-config man page for more details. 21515" >&5 21516echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met: 21517 21518$PCIACCESS_PKG_ERRORS 21519 21520Consider adjusting the PKG_CONFIG_PATH environment variable if you 21521installed software in a non-standard prefix. 21522 21523Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21524and PCIACCESS_LIBS to avoid the need to call pkg-config. 21525See the pkg-config man page for more details. 21526" >&2;} 21527 { (exit 1); exit 1; }; } 21528elif test $pkg_failed = untried; then 21529 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21530is in your PATH or set the PKG_CONFIG environment variable to the full 21531path to pkg-config. 21532 21533Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21534and PCIACCESS_LIBS to avoid the need to call pkg-config. 21535See the pkg-config man page for more details. 21536 21537To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21538See \`config.log' for more details." >&5 21539echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21540is in your PATH or set the PKG_CONFIG environment variable to the full 21541path to pkg-config. 21542 21543Alternatively, you may set the environment variables PCIACCESS_CFLAGS 21544and PCIACCESS_LIBS to avoid the need to call pkg-config. 21545See the pkg-config man page for more details. 21546 21547To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21548See \`config.log' for more details." >&2;} 21549 { (exit 1); exit 1; }; } 21550else 21551 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 21552 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 21553 { echo "$as_me:$LINENO: result: yes" >&5 21554echo "${ECHO_T}yes" >&6; } 21555 : 21556fi 21557 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 21558fi 21559 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 21560 XSERVER_LIBPCIACCESS_TRUE= 21561 XSERVER_LIBPCIACCESS_FALSE='#' 21562else 21563 XSERVER_LIBPCIACCESS_TRUE='#' 21564 XSERVER_LIBPCIACCESS_FALSE= 21565fi 21566 21567 21568# Checks for header files. 21569{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21570echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 21571if test "${ac_cv_header_stdc+set}" = set; then 21572 echo $ECHO_N "(cached) $ECHO_C" >&6 21573else 21574 cat >conftest.$ac_ext <<_ACEOF 21575/* confdefs.h. */ 21576_ACEOF 21577cat confdefs.h >>conftest.$ac_ext 21578cat >>conftest.$ac_ext <<_ACEOF 21579/* end confdefs.h. */ 21580#include <stdlib.h> 21581#include <stdarg.h> 21582#include <string.h> 21583#include <float.h> 21584 21585int 21586main () 21587{ 21588 21589 ; 21590 return 0; 21591} 21592_ACEOF 21593rm -f conftest.$ac_objext 21594if { (ac_try="$ac_compile" 21595case "(($ac_try" in 21596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21597 *) ac_try_echo=$ac_try;; 21598esac 21599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21600 (eval "$ac_compile") 2>conftest.er1 21601 ac_status=$? 21602 grep -v '^ *+' conftest.er1 >conftest.err 21603 rm -f conftest.er1 21604 cat conftest.err >&5 21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21606 (exit $ac_status); } && { 21607 test -z "$ac_c_werror_flag" || 21608 test ! -s conftest.err 21609 } && test -s conftest.$ac_objext; then 21610 ac_cv_header_stdc=yes 21611else 21612 echo "$as_me: failed program was:" >&5 21613sed 's/^/| /' conftest.$ac_ext >&5 21614 21615 ac_cv_header_stdc=no 21616fi 21617 21618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21619 21620if test $ac_cv_header_stdc = yes; then 21621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21622 cat >conftest.$ac_ext <<_ACEOF 21623/* confdefs.h. */ 21624_ACEOF 21625cat confdefs.h >>conftest.$ac_ext 21626cat >>conftest.$ac_ext <<_ACEOF 21627/* end confdefs.h. */ 21628#include <string.h> 21629 21630_ACEOF 21631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21632 $EGREP "memchr" >/dev/null 2>&1; then 21633 : 21634else 21635 ac_cv_header_stdc=no 21636fi 21637rm -f conftest* 21638 21639fi 21640 21641if test $ac_cv_header_stdc = yes; then 21642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21643 cat >conftest.$ac_ext <<_ACEOF 21644/* confdefs.h. */ 21645_ACEOF 21646cat confdefs.h >>conftest.$ac_ext 21647cat >>conftest.$ac_ext <<_ACEOF 21648/* end confdefs.h. */ 21649#include <stdlib.h> 21650 21651_ACEOF 21652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21653 $EGREP "free" >/dev/null 2>&1; then 21654 : 21655else 21656 ac_cv_header_stdc=no 21657fi 21658rm -f conftest* 21659 21660fi 21661 21662if test $ac_cv_header_stdc = yes; then 21663 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21664 if test "$cross_compiling" = yes; then 21665 : 21666else 21667 cat >conftest.$ac_ext <<_ACEOF 21668/* confdefs.h. */ 21669_ACEOF 21670cat confdefs.h >>conftest.$ac_ext 21671cat >>conftest.$ac_ext <<_ACEOF 21672/* end confdefs.h. */ 21673#include <ctype.h> 21674#include <stdlib.h> 21675#if ((' ' & 0x0FF) == 0x020) 21676# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21677# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21678#else 21679# define ISLOWER(c) \ 21680 (('a' <= (c) && (c) <= 'i') \ 21681 || ('j' <= (c) && (c) <= 'r') \ 21682 || ('s' <= (c) && (c) <= 'z')) 21683# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21684#endif 21685 21686#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21687int 21688main () 21689{ 21690 int i; 21691 for (i = 0; i < 256; i++) 21692 if (XOR (islower (i), ISLOWER (i)) 21693 || toupper (i) != TOUPPER (i)) 21694 return 2; 21695 return 0; 21696} 21697_ACEOF 21698rm -f conftest$ac_exeext 21699if { (ac_try="$ac_link" 21700case "(($ac_try" in 21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21702 *) ac_try_echo=$ac_try;; 21703esac 21704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21705 (eval "$ac_link") 2>&5 21706 ac_status=$? 21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21709 { (case "(($ac_try" in 21710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21711 *) ac_try_echo=$ac_try;; 21712esac 21713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21714 (eval "$ac_try") 2>&5 21715 ac_status=$? 21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21717 (exit $ac_status); }; }; then 21718 : 21719else 21720 echo "$as_me: program exited with status $ac_status" >&5 21721echo "$as_me: failed program was:" >&5 21722sed 's/^/| /' conftest.$ac_ext >&5 21723 21724( exit $ac_status ) 21725ac_cv_header_stdc=no 21726fi 21727rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21728fi 21729 21730 21731fi 21732fi 21733{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21734echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 21735if test $ac_cv_header_stdc = yes; then 21736 21737cat >>confdefs.h <<\_ACEOF 21738#define STDC_HEADERS 1 21739_ACEOF 21740 21741fi 21742 21743 21744 21745 21746 21747DRIVER_NAME=i128 21748 21749 21750 21751 21752 21753if test x$APP_MAN_SUFFIX = x ; then 21754 APP_MAN_SUFFIX=1 21755fi 21756if test x$APP_MAN_DIR = x ; then 21757 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 21758fi 21759 21760if test x$LIB_MAN_SUFFIX = x ; then 21761 LIB_MAN_SUFFIX=3 21762fi 21763if test x$LIB_MAN_DIR = x ; then 21764 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 21765fi 21766 21767if test x$FILE_MAN_SUFFIX = x ; then 21768 case $host_os in 21769 solaris*) FILE_MAN_SUFFIX=4 ;; 21770 *) FILE_MAN_SUFFIX=5 ;; 21771 esac 21772fi 21773if test x$FILE_MAN_DIR = x ; then 21774 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 21775fi 21776 21777if test x$MISC_MAN_SUFFIX = x ; then 21778 case $host_os in 21779 solaris*) MISC_MAN_SUFFIX=5 ;; 21780 *) MISC_MAN_SUFFIX=7 ;; 21781 esac 21782fi 21783if test x$MISC_MAN_DIR = x ; then 21784 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 21785fi 21786 21787if test x$DRIVER_MAN_SUFFIX = x ; then 21788 case $host_os in 21789 solaris*) DRIVER_MAN_SUFFIX=7 ;; 21790 *) DRIVER_MAN_SUFFIX=4 ;; 21791 esac 21792fi 21793if test x$DRIVER_MAN_DIR = x ; then 21794 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 21795fi 21796 21797if test x$ADMIN_MAN_SUFFIX = x ; then 21798 case $host_os in 21799 solaris*) ADMIN_MAN_SUFFIX=1m ;; 21800 *) ADMIN_MAN_SUFFIX=8 ;; 21801 esac 21802fi 21803if test x$ADMIN_MAN_DIR = x ; then 21804 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 21805fi 21806 21807 21808 21809 21810 21811 21812 21813 21814 21815 21816 21817 21818 21819 21820 21821 21822 21823# Check whether --with-release-version was given. 21824if test "${with_release_version+set}" = set; then 21825 withval=$with_release_version; RELEASE_VERSION="$withval" 21826else 21827 RELEASE_VERSION="" 21828fi 21829 21830 if test "x$RELEASE_VERSION" != "x"; then 21831 PACKAGE="$PACKAGE-$RELEASE_VERSION" 21832 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 21833 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 21834echo "$as_me: Building with package name set to $PACKAGE" >&6;} 21835 fi 21836 21837cat >>confdefs.h <<_ACEOF 21838#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 21839_ACEOF 21840 21841 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 21842 if test "x$PVM" = "x"; then 21843 PVM="0" 21844 fi 21845 21846cat >>confdefs.h <<_ACEOF 21847#define PACKAGE_VERSION_MINOR $PVM 21848_ACEOF 21849 21850 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 21851 if test "x$PVP" = "x"; then 21852 PVP="0" 21853 fi 21854 21855cat >>confdefs.h <<_ACEOF 21856#define PACKAGE_VERSION_PATCHLEVEL $PVP 21857_ACEOF 21858 21859 21860 21861 21862XORG_SGML_PATH=$prefix/share/sgml 21863HAVE_DEFS_ENT= 21864 21865if test x"$cross_compiling" = x"yes" ; then 21866 HAVE_DEFS_ENT=no 21867else 21868 as_ac_File=`echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh` 21869{ echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5 21870echo $ECHO_N "checking for $XORG_SGML_PATH/X11/defs.ent... $ECHO_C" >&6; } 21871if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 21872 echo $ECHO_N "(cached) $ECHO_C" >&6 21873else 21874 test "$cross_compiling" = yes && 21875 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 21876echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 21877 { (exit 1); exit 1; }; } 21878if test -r "$XORG_SGML_PATH/X11/defs.ent"; then 21879 eval "$as_ac_File=yes" 21880else 21881 eval "$as_ac_File=no" 21882fi 21883fi 21884ac_res=`eval echo '${'$as_ac_File'}'` 21885 { echo "$as_me:$LINENO: result: $ac_res" >&5 21886echo "${ECHO_T}$ac_res" >&6; } 21887if test `eval echo '${'$as_ac_File'}'` = yes; then 21888 HAVE_DEFS_ENT=yes 21889fi 21890 21891fi 21892 21893# Extract the first word of "linuxdoc", so it can be a program name with args. 21894set dummy linuxdoc; ac_word=$2 21895{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21897if test "${ac_cv_path_LINUXDOC+set}" = set; then 21898 echo $ECHO_N "(cached) $ECHO_C" >&6 21899else 21900 case $LINUXDOC in 21901 [\\/]* | ?:[\\/]*) 21902 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path. 21903 ;; 21904 *) 21905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21906for as_dir in $PATH 21907do 21908 IFS=$as_save_IFS 21909 test -z "$as_dir" && as_dir=. 21910 for ac_exec_ext in '' $ac_executable_extensions; do 21911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21912 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext" 21913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21914 break 2 21915 fi 21916done 21917done 21918IFS=$as_save_IFS 21919 21920 ;; 21921esac 21922fi 21923LINUXDOC=$ac_cv_path_LINUXDOC 21924if test -n "$LINUXDOC"; then 21925 { echo "$as_me:$LINENO: result: $LINUXDOC" >&5 21926echo "${ECHO_T}$LINUXDOC" >&6; } 21927else 21928 { echo "$as_me:$LINENO: result: no" >&5 21929echo "${ECHO_T}no" >&6; } 21930fi 21931 21932 21933# Extract the first word of "ps2pdf", so it can be a program name with args. 21934set dummy ps2pdf; ac_word=$2 21935{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21937if test "${ac_cv_path_PS2PDF+set}" = set; then 21938 echo $ECHO_N "(cached) $ECHO_C" >&6 21939else 21940 case $PS2PDF in 21941 [\\/]* | ?:[\\/]*) 21942 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 21943 ;; 21944 *) 21945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21946for as_dir in $PATH 21947do 21948 IFS=$as_save_IFS 21949 test -z "$as_dir" && as_dir=. 21950 for ac_exec_ext in '' $ac_executable_extensions; do 21951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21952 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 21953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21954 break 2 21955 fi 21956done 21957done 21958IFS=$as_save_IFS 21959 21960 ;; 21961esac 21962fi 21963PS2PDF=$ac_cv_path_PS2PDF 21964if test -n "$PS2PDF"; then 21965 { echo "$as_me:$LINENO: result: $PS2PDF" >&5 21966echo "${ECHO_T}$PS2PDF" >&6; } 21967else 21968 { echo "$as_me:$LINENO: result: no" >&5 21969echo "${ECHO_T}no" >&6; } 21970fi 21971 21972 21973 21974{ echo "$as_me:$LINENO: checking Whether to build documentation" >&5 21975echo $ECHO_N "checking Whether to build documentation... $ECHO_C" >&6; } 21976 21977if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 21978 BUILDDOC=yes 21979else 21980 BUILDDOC=no 21981fi 21982 21983 if test x$BUILDDOC = xyes; then 21984 BUILD_LINUXDOC_TRUE= 21985 BUILD_LINUXDOC_FALSE='#' 21986else 21987 BUILD_LINUXDOC_TRUE='#' 21988 BUILD_LINUXDOC_FALSE= 21989fi 21990 21991 21992{ echo "$as_me:$LINENO: result: $BUILDDOC" >&5 21993echo "${ECHO_T}$BUILDDOC" >&6; } 21994 21995{ echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5 21996echo $ECHO_N "checking Whether to build pdf documentation... $ECHO_C" >&6; } 21997 21998if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 21999 BUILDPDFDOC=yes 22000else 22001 BUILDPDFDOC=no 22002fi 22003 22004 if test x$BUILDPDFDOC = xyes; then 22005 BUILD_PDFDOC_TRUE= 22006 BUILD_PDFDOC_FALSE='#' 22007else 22008 BUILD_PDFDOC_TRUE='#' 22009 BUILD_PDFDOC_FALSE= 22010fi 22011 22012 22013{ echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5 22014echo "${ECHO_T}$BUILDPDFDOC" >&6; } 22015 22016MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 22017MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 22018MAKE_PDF="$PS2PDF" 22019MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 22020 22021 22022 22023 22024 22025 22026 22027ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 22028 22029cat >confcache <<\_ACEOF 22030# This file is a shell script that caches the results of configure 22031# tests run on this system so they can be shared between configure 22032# scripts and configure runs, see configure's option --config-cache. 22033# It is not useful on other systems. If it contains results you don't 22034# want to keep, you may remove or edit it. 22035# 22036# config.status only pays attention to the cache file if you give it 22037# the --recheck option to rerun configure. 22038# 22039# `ac_cv_env_foo' variables (set or unset) will be overridden when 22040# loading this file, other *unset* `ac_cv_foo' will be assigned the 22041# following values. 22042 22043_ACEOF 22044 22045# The following way of writing the cache mishandles newlines in values, 22046# but we know of no workaround that is simple, portable, and efficient. 22047# So, we kill variables containing newlines. 22048# Ultrix sh set writes to stderr and can't be redirected directly, 22049# and sets the high bit in the cache file unless we assign to the vars. 22050( 22051 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22052 eval ac_val=\$$ac_var 22053 case $ac_val in #( 22054 *${as_nl}*) 22055 case $ac_var in #( 22056 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22057echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22058 esac 22059 case $ac_var in #( 22060 _ | IFS | as_nl) ;; #( 22061 *) $as_unset $ac_var ;; 22062 esac ;; 22063 esac 22064 done 22065 22066 (set) 2>&1 | 22067 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22068 *${as_nl}ac_space=\ *) 22069 # `set' does not quote correctly, so add quotes (double-quote 22070 # substitution turns \\\\ into \\, and sed turns \\ into \). 22071 sed -n \ 22072 "s/'/'\\\\''/g; 22073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22074 ;; #( 22075 *) 22076 # `set' quotes correctly as required by POSIX, so do not add quotes. 22077 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22078 ;; 22079 esac | 22080 sort 22081) | 22082 sed ' 22083 /^ac_cv_env_/b end 22084 t clear 22085 :clear 22086 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22087 t end 22088 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22089 :end' >>confcache 22090if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22091 if test -w "$cache_file"; then 22092 test "x$cache_file" != "x/dev/null" && 22093 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 22094echo "$as_me: updating cache $cache_file" >&6;} 22095 cat confcache >$cache_file 22096 else 22097 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22098echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22099 fi 22100fi 22101rm -f confcache 22102 22103test "x$prefix" = xNONE && prefix=$ac_default_prefix 22104# Let make expand exec_prefix. 22105test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22106 22107DEFS=-DHAVE_CONFIG_H 22108 22109ac_libobjs= 22110ac_ltlibobjs= 22111for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22112 # 1. Remove the extension, and $U if already installed. 22113 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22114 ac_i=`echo "$ac_i" | sed "$ac_script"` 22115 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22116 # will be set to the directory where LIBOBJS objects are built. 22117 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22118 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22119done 22120LIBOBJS=$ac_libobjs 22121 22122LTLIBOBJS=$ac_ltlibobjs 22123 22124 22125if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22126 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 22127Usually this means the macro was only invoked conditionally." >&5 22128echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 22129Usually this means the macro was only invoked conditionally." >&2;} 22130 { (exit 1); exit 1; }; } 22131fi 22132if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22133 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 22134Usually this means the macro was only invoked conditionally." >&5 22135echo "$as_me: error: conditional \"AMDEP\" was never defined. 22136Usually this means the macro was only invoked conditionally." >&2;} 22137 { (exit 1); exit 1; }; } 22138fi 22139if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22140 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22141Usually this means the macro was only invoked conditionally." >&5 22142echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22143Usually this means the macro was only invoked conditionally." >&2;} 22144 { (exit 1); exit 1; }; } 22145fi 22146if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22147 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 22148Usually this means the macro was only invoked conditionally." >&5 22149echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 22150Usually this means the macro was only invoked conditionally." >&2;} 22151 { (exit 1); exit 1; }; } 22152fi 22153if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22154 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 22155Usually this means the macro was only invoked conditionally." >&5 22156echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 22157Usually this means the macro was only invoked conditionally." >&2;} 22158 { (exit 1); exit 1; }; } 22159fi 22160if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 22161 { { echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22162Usually this means the macro was only invoked conditionally." >&5 22163echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined. 22164Usually this means the macro was only invoked conditionally." >&2;} 22165 { (exit 1); exit 1; }; } 22166fi 22167if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then 22168 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined. 22169Usually this means the macro was only invoked conditionally." >&5 22170echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined. 22171Usually this means the macro was only invoked conditionally." >&2;} 22172 { (exit 1); exit 1; }; } 22173fi 22174if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then 22175 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined. 22176Usually this means the macro was only invoked conditionally." >&5 22177echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined. 22178Usually this means the macro was only invoked conditionally." >&2;} 22179 { (exit 1); exit 1; }; } 22180fi 22181 22182: ${CONFIG_STATUS=./config.status} 22183ac_clean_files_save=$ac_clean_files 22184ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22185{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22186echo "$as_me: creating $CONFIG_STATUS" >&6;} 22187cat >$CONFIG_STATUS <<_ACEOF 22188#! $SHELL 22189# Generated by $as_me. 22190# Run this file to recreate the current configuration. 22191# Compiler output produced by configure, useful for debugging 22192# configure, is in config.log if it exists. 22193 22194debug=false 22195ac_cs_recheck=false 22196ac_cs_silent=false 22197SHELL=\${CONFIG_SHELL-$SHELL} 22198_ACEOF 22199 22200cat >>$CONFIG_STATUS <<\_ACEOF 22201## --------------------- ## 22202## M4sh Initialization. ## 22203## --------------------- ## 22204 22205# Be more Bourne compatible 22206DUALCASE=1; export DUALCASE # for MKS sh 22207if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22208 emulate sh 22209 NULLCMD=: 22210 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22211 # is contrary to our usage. Disable this feature. 22212 alias -g '${1+"$@"}'='"$@"' 22213 setopt NO_GLOB_SUBST 22214else 22215 case `(set -o) 2>/dev/null` in 22216 *posix*) set -o posix ;; 22217esac 22218 22219fi 22220 22221 22222 22223 22224# PATH needs CR 22225# Avoid depending upon Character Ranges. 22226as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22227as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22228as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22229as_cr_digits='0123456789' 22230as_cr_alnum=$as_cr_Letters$as_cr_digits 22231 22232# The user is always right. 22233if test "${PATH_SEPARATOR+set}" != set; then 22234 echo "#! /bin/sh" >conf$$.sh 22235 echo "exit 0" >>conf$$.sh 22236 chmod +x conf$$.sh 22237 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22238 PATH_SEPARATOR=';' 22239 else 22240 PATH_SEPARATOR=: 22241 fi 22242 rm -f conf$$.sh 22243fi 22244 22245# Support unset when possible. 22246if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22247 as_unset=unset 22248else 22249 as_unset=false 22250fi 22251 22252 22253# IFS 22254# We need space, tab and new line, in precisely that order. Quoting is 22255# there to prevent editors from complaining about space-tab. 22256# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22257# splitting by setting IFS to empty value.) 22258as_nl=' 22259' 22260IFS=" "" $as_nl" 22261 22262# Find who we are. Look in the path if we contain no directory separator. 22263case $0 in 22264 *[\\/]* ) as_myself=$0 ;; 22265 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22266for as_dir in $PATH 22267do 22268 IFS=$as_save_IFS 22269 test -z "$as_dir" && as_dir=. 22270 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22271done 22272IFS=$as_save_IFS 22273 22274 ;; 22275esac 22276# We did not find ourselves, most probably we were run as `sh COMMAND' 22277# in which case we are not to be found in the path. 22278if test "x$as_myself" = x; then 22279 as_myself=$0 22280fi 22281if test ! -f "$as_myself"; then 22282 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22283 { (exit 1); exit 1; } 22284fi 22285 22286# Work around bugs in pre-3.0 UWIN ksh. 22287for as_var in ENV MAIL MAILPATH 22288do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22289done 22290PS1='$ ' 22291PS2='> ' 22292PS4='+ ' 22293 22294# NLS nuisances. 22295for as_var in \ 22296 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22297 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22298 LC_TELEPHONE LC_TIME 22299do 22300 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22301 eval $as_var=C; export $as_var 22302 else 22303 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22304 fi 22305done 22306 22307# Required to use basename. 22308if expr a : '\(a\)' >/dev/null 2>&1 && 22309 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22310 as_expr=expr 22311else 22312 as_expr=false 22313fi 22314 22315if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22316 as_basename=basename 22317else 22318 as_basename=false 22319fi 22320 22321 22322# Name of the executable. 22323as_me=`$as_basename -- "$0" || 22324$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22325 X"$0" : 'X\(//\)$' \| \ 22326 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22327echo X/"$0" | 22328 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22329 s//\1/ 22330 q 22331 } 22332 /^X\/\(\/\/\)$/{ 22333 s//\1/ 22334 q 22335 } 22336 /^X\/\(\/\).*/{ 22337 s//\1/ 22338 q 22339 } 22340 s/.*/./; q'` 22341 22342# CDPATH. 22343$as_unset CDPATH 22344 22345 22346 22347 as_lineno_1=$LINENO 22348 as_lineno_2=$LINENO 22349 test "x$as_lineno_1" != "x$as_lineno_2" && 22350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22351 22352 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22353 # uniformly replaced by the line number. The first 'sed' inserts a 22354 # line-number line after each line using $LINENO; the second 'sed' 22355 # does the real work. The second script uses 'N' to pair each 22356 # line-number line with the line containing $LINENO, and appends 22357 # trailing '-' during substitution so that $LINENO is not a special 22358 # case at line end. 22359 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22360 # scripts with optimization help from Paolo Bonzini. Blame Lee 22361 # E. McMahon (1931-1989) for sed's syntax. :-) 22362 sed -n ' 22363 p 22364 /[$]LINENO/= 22365 ' <$as_myself | 22366 sed ' 22367 s/[$]LINENO.*/&-/ 22368 t lineno 22369 b 22370 :lineno 22371 N 22372 :loop 22373 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22374 t loop 22375 s/-\n.*// 22376 ' >$as_me.lineno && 22377 chmod +x "$as_me.lineno" || 22378 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22379 { (exit 1); exit 1; }; } 22380 22381 # Don't try to exec as it changes $[0], causing all sort of problems 22382 # (the dirname of $[0] is not the place where we might find the 22383 # original and so on. Autoconf is especially sensitive to this). 22384 . "./$as_me.lineno" 22385 # Exit status is that of the last command. 22386 exit 22387} 22388 22389 22390if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22391 as_dirname=dirname 22392else 22393 as_dirname=false 22394fi 22395 22396ECHO_C= ECHO_N= ECHO_T= 22397case `echo -n x` in 22398-n*) 22399 case `echo 'x\c'` in 22400 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22401 *) ECHO_C='\c';; 22402 esac;; 22403*) 22404 ECHO_N='-n';; 22405esac 22406 22407if expr a : '\(a\)' >/dev/null 2>&1 && 22408 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22409 as_expr=expr 22410else 22411 as_expr=false 22412fi 22413 22414rm -f conf$$ conf$$.exe conf$$.file 22415if test -d conf$$.dir; then 22416 rm -f conf$$.dir/conf$$.file 22417else 22418 rm -f conf$$.dir 22419 mkdir conf$$.dir 22420fi 22421echo >conf$$.file 22422if ln -s conf$$.file conf$$ 2>/dev/null; then 22423 as_ln_s='ln -s' 22424 # ... but there are two gotchas: 22425 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22426 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22427 # In both cases, we have to default to `cp -p'. 22428 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22429 as_ln_s='cp -p' 22430elif ln conf$$.file conf$$ 2>/dev/null; then 22431 as_ln_s=ln 22432else 22433 as_ln_s='cp -p' 22434fi 22435rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22436rmdir conf$$.dir 2>/dev/null 22437 22438if mkdir -p . 2>/dev/null; then 22439 as_mkdir_p=: 22440else 22441 test -d ./-p && rmdir ./-p 22442 as_mkdir_p=false 22443fi 22444 22445if test -x / >/dev/null 2>&1; then 22446 as_test_x='test -x' 22447else 22448 if ls -dL / >/dev/null 2>&1; then 22449 as_ls_L_option=L 22450 else 22451 as_ls_L_option= 22452 fi 22453 as_test_x=' 22454 eval sh -c '\'' 22455 if test -d "$1"; then 22456 test -d "$1/."; 22457 else 22458 case $1 in 22459 -*)set "./$1";; 22460 esac; 22461 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 22462 ???[sx]*):;;*)false;;esac;fi 22463 '\'' sh 22464 ' 22465fi 22466as_executable_p=$as_test_x 22467 22468# Sed expression to map a string onto a valid CPP name. 22469as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22470 22471# Sed expression to map a string onto a valid variable name. 22472as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22473 22474 22475exec 6>&1 22476 22477# Save the log message, to keep $[0] and so on meaningful, and to 22478# report actual input values of CONFIG_FILES etc. instead of their 22479# values after options handling. 22480ac_log=" 22481This file was extended by xf86-video-i128 $as_me 1.3.1, which was 22482generated by GNU Autoconf 2.61. Invocation command line was 22483 22484 CONFIG_FILES = $CONFIG_FILES 22485 CONFIG_HEADERS = $CONFIG_HEADERS 22486 CONFIG_LINKS = $CONFIG_LINKS 22487 CONFIG_COMMANDS = $CONFIG_COMMANDS 22488 $ $0 $@ 22489 22490on `(hostname || uname -n) 2>/dev/null | sed 1q` 22491" 22492 22493_ACEOF 22494 22495cat >>$CONFIG_STATUS <<_ACEOF 22496# Files that config.status was made for. 22497config_files="$ac_config_files" 22498config_headers="$ac_config_headers" 22499config_commands="$ac_config_commands" 22500 22501_ACEOF 22502 22503cat >>$CONFIG_STATUS <<\_ACEOF 22504ac_cs_usage="\ 22505\`$as_me' instantiates files from templates according to the 22506current configuration. 22507 22508Usage: $0 [OPTIONS] [FILE]... 22509 22510 -h, --help print this help, then exit 22511 -V, --version print version number and configuration settings, then exit 22512 -q, --quiet do not print progress messages 22513 -d, --debug don't remove temporary files 22514 --recheck update $as_me by reconfiguring in the same conditions 22515 --file=FILE[:TEMPLATE] 22516 instantiate the configuration file FILE 22517 --header=FILE[:TEMPLATE] 22518 instantiate the configuration header FILE 22519 22520Configuration files: 22521$config_files 22522 22523Configuration headers: 22524$config_headers 22525 22526Configuration commands: 22527$config_commands 22528 22529Report bugs to <bug-autoconf@gnu.org>." 22530 22531_ACEOF 22532cat >>$CONFIG_STATUS <<_ACEOF 22533ac_cs_version="\\ 22534xf86-video-i128 config.status 1.3.1 22535configured by $0, generated by GNU Autoconf 2.61, 22536 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22537 22538Copyright (C) 2006 Free Software Foundation, Inc. 22539This config.status script is free software; the Free Software Foundation 22540gives unlimited permission to copy, distribute and modify it." 22541 22542ac_pwd='$ac_pwd' 22543srcdir='$srcdir' 22544INSTALL='$INSTALL' 22545MKDIR_P='$MKDIR_P' 22546_ACEOF 22547 22548cat >>$CONFIG_STATUS <<\_ACEOF 22549# If no file are specified by the user, then we need to provide default 22550# value. By we need to know if files were specified by the user. 22551ac_need_defaults=: 22552while test $# != 0 22553do 22554 case $1 in 22555 --*=*) 22556 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22557 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22558 ac_shift=: 22559 ;; 22560 *) 22561 ac_option=$1 22562 ac_optarg=$2 22563 ac_shift=shift 22564 ;; 22565 esac 22566 22567 case $ac_option in 22568 # Handling of the options. 22569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22570 ac_cs_recheck=: ;; 22571 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22572 echo "$ac_cs_version"; exit ;; 22573 --debug | --debu | --deb | --de | --d | -d ) 22574 debug=: ;; 22575 --file | --fil | --fi | --f ) 22576 $ac_shift 22577 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22578 ac_need_defaults=false;; 22579 --header | --heade | --head | --hea ) 22580 $ac_shift 22581 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22582 ac_need_defaults=false;; 22583 --he | --h) 22584 # Conflict between --help and --header 22585 { echo "$as_me: error: ambiguous option: $1 22586Try \`$0 --help' for more information." >&2 22587 { (exit 1); exit 1; }; };; 22588 --help | --hel | -h ) 22589 echo "$ac_cs_usage"; exit ;; 22590 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22591 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22592 ac_cs_silent=: ;; 22593 22594 # This is an error. 22595 -*) { echo "$as_me: error: unrecognized option: $1 22596Try \`$0 --help' for more information." >&2 22597 { (exit 1); exit 1; }; } ;; 22598 22599 *) ac_config_targets="$ac_config_targets $1" 22600 ac_need_defaults=false ;; 22601 22602 esac 22603 shift 22604done 22605 22606ac_configure_extra_args= 22607 22608if $ac_cs_silent; then 22609 exec 6>/dev/null 22610 ac_configure_extra_args="$ac_configure_extra_args --silent" 22611fi 22612 22613_ACEOF 22614cat >>$CONFIG_STATUS <<_ACEOF 22615if \$ac_cs_recheck; then 22616 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22617 CONFIG_SHELL=$SHELL 22618 export CONFIG_SHELL 22619 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22620fi 22621 22622_ACEOF 22623cat >>$CONFIG_STATUS <<\_ACEOF 22624exec 5>>config.log 22625{ 22626 echo 22627 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22628## Running $as_me. ## 22629_ASBOX 22630 echo "$ac_log" 22631} >&5 22632 22633_ACEOF 22634cat >>$CONFIG_STATUS <<_ACEOF 22635# 22636# INIT-COMMANDS 22637# 22638AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22639 22640_ACEOF 22641 22642cat >>$CONFIG_STATUS <<\_ACEOF 22643 22644# Handling of arguments. 22645for ac_config_target in $ac_config_targets 22646do 22647 case $ac_config_target in 22648 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22649 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22650 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22651 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22652 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22653 22654 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22655echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22656 { (exit 1); exit 1; }; };; 22657 esac 22658done 22659 22660 22661# If the user did not use the arguments to specify the items to instantiate, 22662# then the envvar interface is used. Set only those that are not. 22663# We use the long form for the default assignment because of an extremely 22664# bizarre bug on SunOS 4.1.3. 22665if $ac_need_defaults; then 22666 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22667 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22668 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22669fi 22670 22671# Have a temporary directory for convenience. Make it in the build tree 22672# simply because there is no reason against having it here, and in addition, 22673# creating and moving files from /tmp can sometimes cause problems. 22674# Hook for its removal unless debugging. 22675# Note that there is a small window in which the directory will not be cleaned: 22676# after its creation but before its name has been assigned to `$tmp'. 22677$debug || 22678{ 22679 tmp= 22680 trap 'exit_status=$? 22681 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22682' 0 22683 trap '{ (exit 1); exit 1; }' 1 2 13 15 22684} 22685# Create a (secure) tmp directory for tmp files. 22686 22687{ 22688 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22689 test -n "$tmp" && test -d "$tmp" 22690} || 22691{ 22692 tmp=./conf$$-$RANDOM 22693 (umask 077 && mkdir "$tmp") 22694} || 22695{ 22696 echo "$me: cannot create a temporary directory in ." >&2 22697 { (exit 1); exit 1; } 22698} 22699 22700# 22701# Set up the sed scripts for CONFIG_FILES section. 22702# 22703 22704# No need to generate the scripts if there are no CONFIG_FILES. 22705# This happens for instance when ./config.status config.h 22706if test -n "$CONFIG_FILES"; then 22707 22708_ACEOF 22709 22710 22711 22712ac_delim='%!_!# ' 22713for ac_last_try in false false false false false :; do 22714 cat >conf$$subs.sed <<_ACEOF 22715SHELL!$SHELL$ac_delim 22716PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22717PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22718PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22719PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22720PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22721PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22722exec_prefix!$exec_prefix$ac_delim 22723prefix!$prefix$ac_delim 22724program_transform_name!$program_transform_name$ac_delim 22725bindir!$bindir$ac_delim 22726sbindir!$sbindir$ac_delim 22727libexecdir!$libexecdir$ac_delim 22728datarootdir!$datarootdir$ac_delim 22729datadir!$datadir$ac_delim 22730sysconfdir!$sysconfdir$ac_delim 22731sharedstatedir!$sharedstatedir$ac_delim 22732localstatedir!$localstatedir$ac_delim 22733includedir!$includedir$ac_delim 22734oldincludedir!$oldincludedir$ac_delim 22735docdir!$docdir$ac_delim 22736infodir!$infodir$ac_delim 22737htmldir!$htmldir$ac_delim 22738dvidir!$dvidir$ac_delim 22739pdfdir!$pdfdir$ac_delim 22740psdir!$psdir$ac_delim 22741libdir!$libdir$ac_delim 22742localedir!$localedir$ac_delim 22743mandir!$mandir$ac_delim 22744DEFS!$DEFS$ac_delim 22745ECHO_C!$ECHO_C$ac_delim 22746ECHO_N!$ECHO_N$ac_delim 22747ECHO_T!$ECHO_T$ac_delim 22748LIBS!$LIBS$ac_delim 22749build_alias!$build_alias$ac_delim 22750host_alias!$host_alias$ac_delim 22751target_alias!$target_alias$ac_delim 22752INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22753INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22754INSTALL_DATA!$INSTALL_DATA$ac_delim 22755am__isrc!$am__isrc$ac_delim 22756CYGPATH_W!$CYGPATH_W$ac_delim 22757PACKAGE!$PACKAGE$ac_delim 22758VERSION!$VERSION$ac_delim 22759ACLOCAL!$ACLOCAL$ac_delim 22760AUTOCONF!$AUTOCONF$ac_delim 22761AUTOMAKE!$AUTOMAKE$ac_delim 22762AUTOHEADER!$AUTOHEADER$ac_delim 22763MAKEINFO!$MAKEINFO$ac_delim 22764install_sh!$install_sh$ac_delim 22765STRIP!$STRIP$ac_delim 22766INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 22767mkdir_p!$mkdir_p$ac_delim 22768AWK!$AWK$ac_delim 22769SET_MAKE!$SET_MAKE$ac_delim 22770am__leading_dot!$am__leading_dot$ac_delim 22771AMTAR!$AMTAR$ac_delim 22772am__tar!$am__tar$ac_delim 22773am__untar!$am__untar$ac_delim 22774MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 22775MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 22776MAINT!$MAINT$ac_delim 22777build!$build$ac_delim 22778build_cpu!$build_cpu$ac_delim 22779build_vendor!$build_vendor$ac_delim 22780build_os!$build_os$ac_delim 22781host!$host$ac_delim 22782host_cpu!$host_cpu$ac_delim 22783host_vendor!$host_vendor$ac_delim 22784host_os!$host_os$ac_delim 22785CC!$CC$ac_delim 22786CFLAGS!$CFLAGS$ac_delim 22787LDFLAGS!$LDFLAGS$ac_delim 22788CPPFLAGS!$CPPFLAGS$ac_delim 22789ac_ct_CC!$ac_ct_CC$ac_delim 22790EXEEXT!$EXEEXT$ac_delim 22791OBJEXT!$OBJEXT$ac_delim 22792DEPDIR!$DEPDIR$ac_delim 22793am__include!$am__include$ac_delim 22794am__quote!$am__quote$ac_delim 22795AMDEP_TRUE!$AMDEP_TRUE$ac_delim 22796AMDEP_FALSE!$AMDEP_FALSE$ac_delim 22797AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 22798CCDEPMODE!$CCDEPMODE$ac_delim 22799am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 22800am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 22801SED!$SED$ac_delim 22802GREP!$GREP$ac_delim 22803EGREP!$EGREP$ac_delim 22804LN_S!$LN_S$ac_delim 22805ECHO!$ECHO$ac_delim 22806AR!$AR$ac_delim 22807RANLIB!$RANLIB$ac_delim 22808DSYMUTIL!$DSYMUTIL$ac_delim 22809NMEDIT!$NMEDIT$ac_delim 22810CPP!$CPP$ac_delim 22811CXX!$CXX$ac_delim 22812_ACEOF 22813 22814 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22815 break 22816 elif $ac_last_try; then 22817 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22818echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22819 { (exit 1); exit 1; }; } 22820 else 22821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22822 fi 22823done 22824 22825ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22826if test -n "$ac_eof"; then 22827 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22828 ac_eof=`expr $ac_eof + 1` 22829fi 22830 22831cat >>$CONFIG_STATUS <<_ACEOF 22832cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22833/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22834_ACEOF 22835sed ' 22836s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22837s/^/s,@/; s/!/@,|#_!!_#|/ 22838:n 22839t n 22840s/'"$ac_delim"'$/,g/; t 22841s/$/\\/; p 22842N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22843' >>$CONFIG_STATUS <conf$$subs.sed 22844rm -f conf$$subs.sed 22845cat >>$CONFIG_STATUS <<_ACEOF 22846CEOF$ac_eof 22847_ACEOF 22848 22849 22850ac_delim='%!_!# ' 22851for ac_last_try in false false false false false :; do 22852 cat >conf$$subs.sed <<_ACEOF 22853CXXFLAGS!$CXXFLAGS$ac_delim 22854ac_ct_CXX!$ac_ct_CXX$ac_delim 22855CXXDEPMODE!$CXXDEPMODE$ac_delim 22856am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 22857am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 22858CXXCPP!$CXXCPP$ac_delim 22859F77!$F77$ac_delim 22860FFLAGS!$FFLAGS$ac_delim 22861ac_ct_F77!$ac_ct_F77$ac_delim 22862LIBTOOL!$LIBTOOL$ac_delim 22863PKG_CONFIG!$PKG_CONFIG$ac_delim 22864XORG_CFLAGS!$XORG_CFLAGS$ac_delim 22865XORG_LIBS!$XORG_LIBS$ac_delim 22866PCIACCESS_CFLAGS!$PCIACCESS_CFLAGS$ac_delim 22867PCIACCESS_LIBS!$PCIACCESS_LIBS$ac_delim 22868XSERVER_LIBPCIACCESS_TRUE!$XSERVER_LIBPCIACCESS_TRUE$ac_delim 22869XSERVER_LIBPCIACCESS_FALSE!$XSERVER_LIBPCIACCESS_FALSE$ac_delim 22870moduledir!$moduledir$ac_delim 22871DRIVER_NAME!$DRIVER_NAME$ac_delim 22872APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim 22873LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim 22874FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim 22875MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim 22876DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim 22877ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim 22878APP_MAN_DIR!$APP_MAN_DIR$ac_delim 22879LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim 22880FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim 22881MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim 22882DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim 22883ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim 22884LINUXDOC!$LINUXDOC$ac_delim 22885PS2PDF!$PS2PDF$ac_delim 22886BUILD_LINUXDOC_TRUE!$BUILD_LINUXDOC_TRUE$ac_delim 22887BUILD_LINUXDOC_FALSE!$BUILD_LINUXDOC_FALSE$ac_delim 22888BUILD_PDFDOC_TRUE!$BUILD_PDFDOC_TRUE$ac_delim 22889BUILD_PDFDOC_FALSE!$BUILD_PDFDOC_FALSE$ac_delim 22890MAKE_TEXT!$MAKE_TEXT$ac_delim 22891MAKE_PS!$MAKE_PS$ac_delim 22892MAKE_PDF!$MAKE_PDF$ac_delim 22893MAKE_HTML!$MAKE_HTML$ac_delim 22894LIBOBJS!$LIBOBJS$ac_delim 22895LTLIBOBJS!$LTLIBOBJS$ac_delim 22896_ACEOF 22897 22898 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 43; then 22899 break 22900 elif $ac_last_try; then 22901 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22902echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22903 { (exit 1); exit 1; }; } 22904 else 22905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22906 fi 22907done 22908 22909ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22910if test -n "$ac_eof"; then 22911 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22912 ac_eof=`expr $ac_eof + 1` 22913fi 22914 22915cat >>$CONFIG_STATUS <<_ACEOF 22916cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22917/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22918_ACEOF 22919sed ' 22920s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22921s/^/s,@/; s/!/@,|#_!!_#|/ 22922:n 22923t n 22924s/'"$ac_delim"'$/,g/; t 22925s/$/\\/; p 22926N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22927' >>$CONFIG_STATUS <conf$$subs.sed 22928rm -f conf$$subs.sed 22929cat >>$CONFIG_STATUS <<_ACEOF 22930:end 22931s/|#_!!_#|//g 22932CEOF$ac_eof 22933_ACEOF 22934 22935 22936# VPATH may cause trouble with some makes, so we remove $(srcdir), 22937# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22938# trailing colons and then remove the whole line if VPATH becomes empty 22939# (actually we leave an empty line to preserve line numbers). 22940if test "x$srcdir" = x.; then 22941 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22942s/:*\$(srcdir):*/:/ 22943s/:*\${srcdir}:*/:/ 22944s/:*@srcdir@:*/:/ 22945s/^\([^=]*=[ ]*\):*/\1/ 22946s/:*$// 22947s/^[^=]*=[ ]*$// 22948}' 22949fi 22950 22951cat >>$CONFIG_STATUS <<\_ACEOF 22952fi # test -n "$CONFIG_FILES" 22953 22954 22955for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22956do 22957 case $ac_tag in 22958 :[FHLC]) ac_mode=$ac_tag; continue;; 22959 esac 22960 case $ac_mode$ac_tag in 22961 :[FHL]*:*);; 22962 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22963echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22964 { (exit 1); exit 1; }; };; 22965 :[FH]-) ac_tag=-:-;; 22966 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22967 esac 22968 ac_save_IFS=$IFS 22969 IFS=: 22970 set x $ac_tag 22971 IFS=$ac_save_IFS 22972 shift 22973 ac_file=$1 22974 shift 22975 22976 case $ac_mode in 22977 :L) ac_source=$1;; 22978 :[FH]) 22979 ac_file_inputs= 22980 for ac_f 22981 do 22982 case $ac_f in 22983 -) ac_f="$tmp/stdin";; 22984 *) # Look for the file first in the build tree, then in the source tree 22985 # (if the path is not absolute). The absolute path cannot be DOS-style, 22986 # because $ac_f cannot contain `:'. 22987 test -f "$ac_f" || 22988 case $ac_f in 22989 [\\/$]*) false;; 22990 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22991 esac || 22992 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22993echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22994 { (exit 1); exit 1; }; };; 22995 esac 22996 ac_file_inputs="$ac_file_inputs $ac_f" 22997 done 22998 22999 # Let's still pretend it is `configure' which instantiates (i.e., don't 23000 # use $as_me), people would be surprised to read: 23001 # /* config.h. Generated by config.status. */ 23002 configure_input="Generated from "`IFS=: 23003 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23004 if test x"$ac_file" != x-; then 23005 configure_input="$ac_file. $configure_input" 23006 { echo "$as_me:$LINENO: creating $ac_file" >&5 23007echo "$as_me: creating $ac_file" >&6;} 23008 fi 23009 23010 case $ac_tag in 23011 *:-:* | *:-) cat >"$tmp/stdin";; 23012 esac 23013 ;; 23014 esac 23015 23016 ac_dir=`$as_dirname -- "$ac_file" || 23017$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23018 X"$ac_file" : 'X\(//\)[^/]' \| \ 23019 X"$ac_file" : 'X\(//\)$' \| \ 23020 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23021echo X"$ac_file" | 23022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23023 s//\1/ 23024 q 23025 } 23026 /^X\(\/\/\)[^/].*/{ 23027 s//\1/ 23028 q 23029 } 23030 /^X\(\/\/\)$/{ 23031 s//\1/ 23032 q 23033 } 23034 /^X\(\/\).*/{ 23035 s//\1/ 23036 q 23037 } 23038 s/.*/./; q'` 23039 { as_dir="$ac_dir" 23040 case $as_dir in #( 23041 -*) as_dir=./$as_dir;; 23042 esac 23043 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23044 as_dirs= 23045 while :; do 23046 case $as_dir in #( 23047 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23048 *) as_qdir=$as_dir;; 23049 esac 23050 as_dirs="'$as_qdir' $as_dirs" 23051 as_dir=`$as_dirname -- "$as_dir" || 23052$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23053 X"$as_dir" : 'X\(//\)[^/]' \| \ 23054 X"$as_dir" : 'X\(//\)$' \| \ 23055 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23056echo X"$as_dir" | 23057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23058 s//\1/ 23059 q 23060 } 23061 /^X\(\/\/\)[^/].*/{ 23062 s//\1/ 23063 q 23064 } 23065 /^X\(\/\/\)$/{ 23066 s//\1/ 23067 q 23068 } 23069 /^X\(\/\).*/{ 23070 s//\1/ 23071 q 23072 } 23073 s/.*/./; q'` 23074 test -d "$as_dir" && break 23075 done 23076 test -z "$as_dirs" || eval "mkdir $as_dirs" 23077 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23078echo "$as_me: error: cannot create directory $as_dir" >&2;} 23079 { (exit 1); exit 1; }; }; } 23080 ac_builddir=. 23081 23082case "$ac_dir" in 23083.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23084*) 23085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23086 # A ".." for each directory in $ac_dir_suffix. 23087 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23088 case $ac_top_builddir_sub in 23089 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23090 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23091 esac ;; 23092esac 23093ac_abs_top_builddir=$ac_pwd 23094ac_abs_builddir=$ac_pwd$ac_dir_suffix 23095# for backward compatibility: 23096ac_top_builddir=$ac_top_build_prefix 23097 23098case $srcdir in 23099 .) # We are building in place. 23100 ac_srcdir=. 23101 ac_top_srcdir=$ac_top_builddir_sub 23102 ac_abs_top_srcdir=$ac_pwd ;; 23103 [\\/]* | ?:[\\/]* ) # Absolute name. 23104 ac_srcdir=$srcdir$ac_dir_suffix; 23105 ac_top_srcdir=$srcdir 23106 ac_abs_top_srcdir=$srcdir ;; 23107 *) # Relative name. 23108 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23109 ac_top_srcdir=$ac_top_build_prefix$srcdir 23110 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23111esac 23112ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23113 23114 23115 case $ac_mode in 23116 :F) 23117 # 23118 # CONFIG_FILE 23119 # 23120 23121 case $INSTALL in 23122 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23123 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23124 esac 23125 ac_MKDIR_P=$MKDIR_P 23126 case $MKDIR_P in 23127 [\\/$]* | ?:[\\/]* ) ;; 23128 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23129 esac 23130_ACEOF 23131 23132cat >>$CONFIG_STATUS <<\_ACEOF 23133# If the template does not know about datarootdir, expand it. 23134# FIXME: This hack should be removed a few years after 2.60. 23135ac_datarootdir_hack=; ac_datarootdir_seen= 23136 23137case `sed -n '/datarootdir/ { 23138 p 23139 q 23140} 23141/@datadir@/p 23142/@docdir@/p 23143/@infodir@/p 23144/@localedir@/p 23145/@mandir@/p 23146' $ac_file_inputs` in 23147*datarootdir*) ac_datarootdir_seen=yes;; 23148*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23149 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23150echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23151_ACEOF 23152cat >>$CONFIG_STATUS <<_ACEOF 23153 ac_datarootdir_hack=' 23154 s&@datadir@&$datadir&g 23155 s&@docdir@&$docdir&g 23156 s&@infodir@&$infodir&g 23157 s&@localedir@&$localedir&g 23158 s&@mandir@&$mandir&g 23159 s&\\\${datarootdir}&$datarootdir&g' ;; 23160esac 23161_ACEOF 23162 23163# Neutralize VPATH when `$srcdir' = `.'. 23164# Shell code in configure.ac might set extrasub. 23165# FIXME: do we really want to maintain this feature? 23166cat >>$CONFIG_STATUS <<_ACEOF 23167 sed "$ac_vpsub 23168$extrasub 23169_ACEOF 23170cat >>$CONFIG_STATUS <<\_ACEOF 23171:t 23172/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23173s&@configure_input@&$configure_input&;t t 23174s&@top_builddir@&$ac_top_builddir_sub&;t t 23175s&@srcdir@&$ac_srcdir&;t t 23176s&@abs_srcdir@&$ac_abs_srcdir&;t t 23177s&@top_srcdir@&$ac_top_srcdir&;t t 23178s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23179s&@builddir@&$ac_builddir&;t t 23180s&@abs_builddir@&$ac_abs_builddir&;t t 23181s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23182s&@INSTALL@&$ac_INSTALL&;t t 23183s&@MKDIR_P@&$ac_MKDIR_P&;t t 23184$ac_datarootdir_hack 23185" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 23186 23187test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23188 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23189 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23190 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23191which seems to be undefined. Please make sure it is defined." >&5 23192echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23193which seems to be undefined. Please make sure it is defined." >&2;} 23194 23195 rm -f "$tmp/stdin" 23196 case $ac_file in 23197 -) cat "$tmp/out"; rm -f "$tmp/out";; 23198 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 23199 esac 23200 ;; 23201 :H) 23202 # 23203 # CONFIG_HEADER 23204 # 23205_ACEOF 23206 23207# Transform confdefs.h into a sed script `conftest.defines', that 23208# substitutes the proper values into config.h.in to produce config.h. 23209rm -f conftest.defines conftest.tail 23210# First, append a space to every undef/define line, to ease matching. 23211echo 's/$/ /' >conftest.defines 23212# Then, protect against being on the right side of a sed subst, or in 23213# an unquoted here document, in config.status. If some macros were 23214# called several times there might be several #defines for the same 23215# symbol, which is useless. But do not sort them, since the last 23216# AC_DEFINE must be honored. 23217ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23218# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 23219# NAME is the cpp macro being defined, VALUE is the value it is being given. 23220# PARAMS is the parameter list in the macro definition--in most cases, it's 23221# just an empty string. 23222ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 23223ac_dB='\\)[ (].*,\\1define\\2' 23224ac_dC=' ' 23225ac_dD=' ,' 23226 23227uniq confdefs.h | 23228 sed -n ' 23229 t rset 23230 :rset 23231 s/^[ ]*#[ ]*define[ ][ ]*// 23232 t ok 23233 d 23234 :ok 23235 s/[\\&,]/\\&/g 23236 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 23237 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 23238 ' >>conftest.defines 23239 23240# Remove the space that was appended to ease matching. 23241# Then replace #undef with comments. This is necessary, for 23242# example, in the case of _POSIX_SOURCE, which is predefined and required 23243# on some systems where configure will not decide to define it. 23244# (The regexp can be short, since the line contains either #define or #undef.) 23245echo 's/ $// 23246s,^[ #]*u.*,/* & */,' >>conftest.defines 23247 23248# Break up conftest.defines: 23249ac_max_sed_lines=50 23250 23251# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23252# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23253# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23254# et cetera. 23255ac_in='$ac_file_inputs' 23256ac_out='"$tmp/out1"' 23257ac_nxt='"$tmp/out2"' 23258 23259while : 23260do 23261 # Write a here document: 23262 cat >>$CONFIG_STATUS <<_ACEOF 23263 # First, check the format of the line: 23264 cat >"\$tmp/defines.sed" <<\\CEOF 23265/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23266/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23267b 23268:def 23269_ACEOF 23270 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23271 echo 'CEOF 23272 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23273 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23274 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23275 grep . conftest.tail >/dev/null || break 23276 rm -f conftest.defines 23277 mv conftest.tail conftest.defines 23278done 23279rm -f conftest.defines conftest.tail 23280 23281echo "ac_result=$ac_in" >>$CONFIG_STATUS 23282cat >>$CONFIG_STATUS <<\_ACEOF 23283 if test x"$ac_file" != x-; then 23284 echo "/* $configure_input */" >"$tmp/config.h" 23285 cat "$ac_result" >>"$tmp/config.h" 23286 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23287 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23288echo "$as_me: $ac_file is unchanged" >&6;} 23289 else 23290 rm -f $ac_file 23291 mv "$tmp/config.h" $ac_file 23292 fi 23293 else 23294 echo "/* $configure_input */" 23295 cat "$ac_result" 23296 fi 23297 rm -f "$tmp/out12" 23298# Compute $ac_file's index in $config_headers. 23299_am_arg=$ac_file 23300_am_stamp_count=1 23301for _am_header in $config_headers :; do 23302 case $_am_header in 23303 $_am_arg | $_am_arg:* ) 23304 break ;; 23305 * ) 23306 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23307 esac 23308done 23309echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23310$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23311 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23312 X"$_am_arg" : 'X\(//\)$' \| \ 23313 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23314echo X"$_am_arg" | 23315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23316 s//\1/ 23317 q 23318 } 23319 /^X\(\/\/\)[^/].*/{ 23320 s//\1/ 23321 q 23322 } 23323 /^X\(\/\/\)$/{ 23324 s//\1/ 23325 q 23326 } 23327 /^X\(\/\).*/{ 23328 s//\1/ 23329 q 23330 } 23331 s/.*/./; q'`/stamp-h$_am_stamp_count 23332 ;; 23333 23334 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23335echo "$as_me: executing $ac_file commands" >&6;} 23336 ;; 23337 esac 23338 23339 23340 case $ac_file$ac_mode in 23341 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23342 # Strip MF so we end up with the name of the file. 23343 mf=`echo "$mf" | sed -e 's/:.*$//'` 23344 # Check whether this is an Automake generated Makefile or not. 23345 # We used to match only the files named `Makefile.in', but 23346 # some people rename them; so instead we look at the file content. 23347 # Grep'ing the first line is not enough: some people post-process 23348 # each Makefile.in and add a new line on top of each file to say so. 23349 # Grep'ing the whole file is not good either: AIX grep has a line 23350 # limit of 2048, but all sed's we know have understand at least 4000. 23351 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 23352 dirpart=`$as_dirname -- "$mf" || 23353$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23354 X"$mf" : 'X\(//\)[^/]' \| \ 23355 X"$mf" : 'X\(//\)$' \| \ 23356 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23357echo X"$mf" | 23358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23359 s//\1/ 23360 q 23361 } 23362 /^X\(\/\/\)[^/].*/{ 23363 s//\1/ 23364 q 23365 } 23366 /^X\(\/\/\)$/{ 23367 s//\1/ 23368 q 23369 } 23370 /^X\(\/\).*/{ 23371 s//\1/ 23372 q 23373 } 23374 s/.*/./; q'` 23375 else 23376 continue 23377 fi 23378 # Extract the definition of DEPDIR, am__include, and am__quote 23379 # from the Makefile without running `make'. 23380 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23381 test -z "$DEPDIR" && continue 23382 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23383 test -z "am__include" && continue 23384 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23385 # When using ansi2knr, U may be empty or an underscore; expand it 23386 U=`sed -n 's/^U = //p' < "$mf"` 23387 # Find all dependency output files, they are included files with 23388 # $(DEPDIR) in their names. We invoke sed twice because it is the 23389 # simplest approach to changing $(DEPDIR) to its actual value in the 23390 # expansion. 23391 for file in `sed -n " 23392 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23393 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23394 # Make sure the directory exists. 23395 test -f "$dirpart/$file" && continue 23396 fdir=`$as_dirname -- "$file" || 23397$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23398 X"$file" : 'X\(//\)[^/]' \| \ 23399 X"$file" : 'X\(//\)$' \| \ 23400 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23401echo X"$file" | 23402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23403 s//\1/ 23404 q 23405 } 23406 /^X\(\/\/\)[^/].*/{ 23407 s//\1/ 23408 q 23409 } 23410 /^X\(\/\/\)$/{ 23411 s//\1/ 23412 q 23413 } 23414 /^X\(\/\).*/{ 23415 s//\1/ 23416 q 23417 } 23418 s/.*/./; q'` 23419 { as_dir=$dirpart/$fdir 23420 case $as_dir in #( 23421 -*) as_dir=./$as_dir;; 23422 esac 23423 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23424 as_dirs= 23425 while :; do 23426 case $as_dir in #( 23427 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23428 *) as_qdir=$as_dir;; 23429 esac 23430 as_dirs="'$as_qdir' $as_dirs" 23431 as_dir=`$as_dirname -- "$as_dir" || 23432$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23433 X"$as_dir" : 'X\(//\)[^/]' \| \ 23434 X"$as_dir" : 'X\(//\)$' \| \ 23435 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23436echo X"$as_dir" | 23437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23438 s//\1/ 23439 q 23440 } 23441 /^X\(\/\/\)[^/].*/{ 23442 s//\1/ 23443 q 23444 } 23445 /^X\(\/\/\)$/{ 23446 s//\1/ 23447 q 23448 } 23449 /^X\(\/\).*/{ 23450 s//\1/ 23451 q 23452 } 23453 s/.*/./; q'` 23454 test -d "$as_dir" && break 23455 done 23456 test -z "$as_dirs" || eval "mkdir $as_dirs" 23457 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23458echo "$as_me: error: cannot create directory $as_dir" >&2;} 23459 { (exit 1); exit 1; }; }; } 23460 # echo "creating $dirpart/$file" 23461 echo '# dummy' > "$dirpart/$file" 23462 done 23463done 23464 ;; 23465 23466 esac 23467done # for ac_tag 23468 23469 23470{ (exit 0); exit 0; } 23471_ACEOF 23472chmod +x $CONFIG_STATUS 23473ac_clean_files=$ac_clean_files_save 23474 23475 23476# configure is writing to config.log, and then calls config.status. 23477# config.status does its own redirection, appending to config.log. 23478# Unfortunately, on DOS this fails, as config.log is still kept open 23479# by configure, so config.status won't be able to write to it; its 23480# output is simply discarded. So we exec the FD to /dev/null, 23481# effectively closing config.log, so it can be properly (re)opened and 23482# appended to by config.status. When coming back to configure, we 23483# need to make the FD available again. 23484if test "$no_create" != yes; then 23485 ac_cs_success=: 23486 ac_config_status_args= 23487 test "$silent" = yes && 23488 ac_config_status_args="$ac_config_status_args --quiet" 23489 exec 5>/dev/null 23490 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23491 exec 5>>config.log 23492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23493 # would make configure fail if this is the last instruction. 23494 $ac_cs_success || { (exit 1); exit 1; } 23495fi 23496 23497