configure revision bdcaa8d0
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for xf86-video-rendition 4.1.3. 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 Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23else 24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 25fi 26BIN_SH=xpg4; export BIN_SH # for Tru64 27DUALCASE=1; export DUALCASE # for MKS sh 28 29 30# PATH needs CR 31# Avoid depending upon Character Ranges. 32as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34as_cr_Letters=$as_cr_letters$as_cr_LETTERS 35as_cr_digits='0123456789' 36as_cr_alnum=$as_cr_Letters$as_cr_digits 37 38# The user is always right. 39if test "${PATH_SEPARATOR+set}" != set; then 40 echo "#! /bin/sh" >conf$$.sh 41 echo "exit 0" >>conf$$.sh 42 chmod +x conf$$.sh 43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 44 PATH_SEPARATOR=';' 45 else 46 PATH_SEPARATOR=: 47 fi 48 rm -f conf$$.sh 49fi 50 51# Support unset when possible. 52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 53 as_unset=unset 54else 55 as_unset=false 56fi 57 58 59# IFS 60# We need space, tab and new line, in precisely that order. Quoting is 61# there to prevent editors from complaining about space-tab. 62# (If _AS_PATH_WALK were called with IFS unset, it would disable word 63# splitting by setting IFS to empty value.) 64as_nl=' 65' 66IFS=" "" $as_nl" 67 68# Find who we are. Look in the path if we contain no directory separator. 69case $0 in 70 *[\\/]* ) as_myself=$0 ;; 71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 72for as_dir in $PATH 73do 74 IFS=$as_save_IFS 75 test -z "$as_dir" && as_dir=. 76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 77done 78IFS=$as_save_IFS 79 80 ;; 81esac 82# We did not find ourselves, most probably we were run as `sh COMMAND' 83# in which case we are not to be found in the path. 84if test "x$as_myself" = x; then 85 as_myself=$0 86fi 87if test ! -f "$as_myself"; then 88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 89 { (exit 1); exit 1; } 90fi 91 92# Work around bugs in pre-3.0 UWIN ksh. 93for as_var in ENV MAIL MAILPATH 94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 95done 96PS1='$ ' 97PS2='> ' 98PS4='+ ' 99 100# NLS nuisances. 101for as_var in \ 102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 104 LC_TELEPHONE LC_TIME 105do 106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 107 eval $as_var=C; export $as_var 108 else 109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 110 fi 111done 112 113# Required to use basename. 114if expr a : '\(a\)' >/dev/null 2>&1 && 115 test "X`expr 00001 : '.*\(...\)'`" = X001; then 116 as_expr=expr 117else 118 as_expr=false 119fi 120 121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 122 as_basename=basename 123else 124 as_basename=false 125fi 126 127 128# Name of the executable. 129as_me=`$as_basename -- "$0" || 130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 131 X"$0" : 'X\(//\)$' \| \ 132 X"$0" : 'X\(/\)' \| . 2>/dev/null || 133echo X/"$0" | 134 sed '/^.*\/\([^/][^/]*\)\/*$/{ 135 s//\1/ 136 q 137 } 138 /^X\/\(\/\/\)$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\).*/{ 143 s//\1/ 144 q 145 } 146 s/.*/./; q'` 147 148# CDPATH. 149$as_unset CDPATH 150 151 152if test "x$CONFIG_SHELL" = x; then 153 if (eval ":") 2>/dev/null; then 154 as_have_required=yes 155else 156 as_have_required=no 157fi 158 159 if test $as_have_required = yes && (eval ": 160(as_func_return () { 161 (exit \$1) 162} 163as_func_success () { 164 as_func_return 0 165} 166as_func_failure () { 167 as_func_return 1 168} 169as_func_ret_success () { 170 return 0 171} 172as_func_ret_failure () { 173 return 1 174} 175 176exitcode=0 177if as_func_success; then 178 : 179else 180 exitcode=1 181 echo as_func_success failed. 182fi 183 184if as_func_failure; then 185 exitcode=1 186 echo as_func_failure succeeded. 187fi 188 189if as_func_ret_success; then 190 : 191else 192 exitcode=1 193 echo as_func_ret_success failed. 194fi 195 196if as_func_ret_failure; then 197 exitcode=1 198 echo as_func_ret_failure succeeded. 199fi 200 201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 202 : 203else 204 exitcode=1 205 echo positional parameters were not saved. 206fi 207 208test \$exitcode = 0) || { (exit 1); exit 1; } 209 210( 211 as_lineno_1=\$LINENO 212 as_lineno_2=\$LINENO 213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 215") 2> /dev/null; then 216 : 217else 218 as_candidate_shells= 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 case $as_dir in 225 /*) 226 for as_base in sh bash ksh sh5; do 227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 228 done;; 229 esac 230done 231IFS=$as_save_IFS 232 233 234 for as_shell in $as_candidate_shells $SHELL; do 235 # Try only shells that exist, to save several forks. 236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 237 { ("$as_shell") 2> /dev/null <<\_ASEOF 238# Be Bourne compatible 239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 240 emulate sh 241 NULLCMD=: 242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 243 # is contrary to our usage. Disable this feature. 244 alias -g '${1+"$@"}'='"$@"' 245 setopt NO_GLOB_SUBST 246else 247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 248fi 249BIN_SH=xpg4; export BIN_SH # for Tru64 250DUALCASE=1; export DUALCASE # for MKS sh 251 252: 253_ASEOF 254}; then 255 CONFIG_SHELL=$as_shell 256 as_have_required=yes 257 if { "$as_shell" 2> /dev/null <<\_ASEOF 258# Be Bourne compatible 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 268fi 269BIN_SH=xpg4; export BIN_SH # for Tru64 270DUALCASE=1; export DUALCASE # for MKS sh 271 272: 273(as_func_return () { 274 (exit $1) 275} 276as_func_success () { 277 as_func_return 0 278} 279as_func_failure () { 280 as_func_return 1 281} 282as_func_ret_success () { 283 return 0 284} 285as_func_ret_failure () { 286 return 1 287} 288 289exitcode=0 290if as_func_success; then 291 : 292else 293 exitcode=1 294 echo as_func_success failed. 295fi 296 297if as_func_failure; then 298 exitcode=1 299 echo as_func_failure succeeded. 300fi 301 302if as_func_ret_success; then 303 : 304else 305 exitcode=1 306 echo as_func_ret_success failed. 307fi 308 309if as_func_ret_failure; then 310 exitcode=1 311 echo as_func_ret_failure succeeded. 312fi 313 314if ( set x; as_func_ret_success y && test x = "$1" ); then 315 : 316else 317 exitcode=1 318 echo positional parameters were not saved. 319fi 320 321test $exitcode = 0) || { (exit 1); exit 1; } 322 323( 324 as_lineno_1=$LINENO 325 as_lineno_2=$LINENO 326 test "x$as_lineno_1" != "x$as_lineno_2" && 327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 328 329_ASEOF 330}; then 331 break 332fi 333 334fi 335 336 done 337 338 if test "x$CONFIG_SHELL" != x; then 339 for as_var in BASH_ENV ENV 340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 341 done 342 export CONFIG_SHELL 343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 344fi 345 346 347 if test $as_have_required = no; then 348 echo This script requires a shell more modern than all the 349 echo shells that I found on your system. Please install a 350 echo modern shell, or manually run the script under such a 351 echo shell if you do have one. 352 { (exit 1); exit 1; } 353fi 354 355 356fi 357 358fi 359 360 361 362(eval "as_func_return () { 363 (exit \$1) 364} 365as_func_success () { 366 as_func_return 0 367} 368as_func_failure () { 369 as_func_return 1 370} 371as_func_ret_success () { 372 return 0 373} 374as_func_ret_failure () { 375 return 1 376} 377 378exitcode=0 379if as_func_success; then 380 : 381else 382 exitcode=1 383 echo as_func_success failed. 384fi 385 386if as_func_failure; then 387 exitcode=1 388 echo as_func_failure succeeded. 389fi 390 391if as_func_ret_success; then 392 : 393else 394 exitcode=1 395 echo as_func_ret_success failed. 396fi 397 398if as_func_ret_failure; then 399 exitcode=1 400 echo as_func_ret_failure succeeded. 401fi 402 403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 404 : 405else 406 exitcode=1 407 echo positional parameters were not saved. 408fi 409 410test \$exitcode = 0") || { 411 echo No shell found that supports shell functions. 412 echo Please tell autoconf@gnu.org about your system, 413 echo including any error possibly output before this 414 echo message 415} 416 417 418 419 as_lineno_1=$LINENO 420 as_lineno_2=$LINENO 421 test "x$as_lineno_1" != "x$as_lineno_2" && 422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 423 424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 425 # uniformly replaced by the line number. The first 'sed' inserts a 426 # line-number line after each line using $LINENO; the second 'sed' 427 # does the real work. The second script uses 'N' to pair each 428 # line-number line with the line containing $LINENO, and appends 429 # trailing '-' during substitution so that $LINENO is not a special 430 # case at line end. 431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 432 # scripts with optimization help from Paolo Bonzini. Blame Lee 433 # E. McMahon (1931-1989) for sed's syntax. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 449 chmod +x "$as_me.lineno" || 450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 451 { (exit 1); exit 1; }; } 452 453 # Don't try to exec as it changes $[0], causing all sort of problems 454 # (the dirname of $[0] is not the place where we might find the 455 # original and so on. Autoconf is especially sensitive to this). 456 . "./$as_me.lineno" 457 # Exit status is that of the last command. 458 exit 459} 460 461 462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 463 as_dirname=dirname 464else 465 as_dirname=false 466fi 467 468ECHO_C= ECHO_N= ECHO_T= 469case `echo -n x` in 470-n*) 471 case `echo 'x\c'` in 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 473 *) ECHO_C='\c';; 474 esac;; 475*) 476 ECHO_N='-n';; 477esac 478 479if expr a : '\(a\)' >/dev/null 2>&1 && 480 test "X`expr 00001 : '.*\(...\)'`" = X001; then 481 as_expr=expr 482else 483 as_expr=false 484fi 485 486rm -f conf$$ conf$$.exe conf$$.file 487if test -d conf$$.dir; then 488 rm -f conf$$.dir/conf$$.file 489else 490 rm -f conf$$.dir 491 mkdir conf$$.dir 492fi 493echo >conf$$.file 494if ln -s conf$$.file conf$$ 2>/dev/null; then 495 as_ln_s='ln -s' 496 # ... but there are two gotchas: 497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 499 # In both cases, we have to default to `cp -p'. 500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 501 as_ln_s='cp -p' 502elif ln conf$$.file conf$$ 2>/dev/null; then 503 as_ln_s=ln 504else 505 as_ln_s='cp -p' 506fi 507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 508rmdir conf$$.dir 2>/dev/null 509 510if mkdir -p . 2>/dev/null; then 511 as_mkdir_p=: 512else 513 test -d ./-p && rmdir ./-p 514 as_mkdir_p=false 515fi 516 517# Find out whether ``test -x'' works. Don't use a zero-byte file, as 518# systems may use methods other than mode bits to determine executability. 519cat >conf$$.file <<_ASEOF 520#! /bin/sh 521exit 0 522_ASEOF 523chmod +x conf$$.file 524if test -x conf$$.file >/dev/null 2>&1; then 525 as_executable_p="test -x" 526else 527 as_executable_p=: 528fi 529rm -f conf$$.file 530 531# Sed expression to map a string onto a valid CPP name. 532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 533 534# Sed expression to map a string onto a valid variable name. 535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 536 537 538 539 540# Check that we are running under the correct shell. 541SHELL=${CONFIG_SHELL-/bin/sh} 542 543case X$ECHO in 544X*--fallback-echo) 545 # Remove one level of quotation (which was required for Make). 546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 547 ;; 548esac 549 550echo=${ECHO-echo} 551if test "X$1" = X--no-reexec; then 552 # Discard the --no-reexec flag, and continue. 553 shift 554elif test "X$1" = X--fallback-echo; then 555 # Avoid inline document here, it may be left over 556 : 557elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 558 # Yippee, $echo works! 559 : 560else 561 # Restart under the correct shell. 562 exec $SHELL "$0" --no-reexec ${1+"$@"} 563fi 564 565if test "X$1" = X--fallback-echo; then 566 # used as fallback echo 567 shift 568 cat <<EOF 569$* 570EOF 571 exit 0 572fi 573 574# The HP-UX ksh and POSIX shell print the target directory to stdout 575# if CDPATH is set. 576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 577 578if test -z "$ECHO"; then 579if test "X${echo_test_string+set}" != Xset; then 580# find a string as large as possible, as long as the shell can cope with it 581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 583 if (echo_test_string=`eval $cmd`) 2>/dev/null && 584 echo_test_string=`eval $cmd` && 585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 586 then 587 break 588 fi 589 done 590fi 591 592if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 594 test "X$echo_testing_string" = "X$echo_test_string"; then 595 : 596else 597 # The Solaris, AIX, and Digital Unix default echo programs unquote 598 # backslashes. This makes it impossible to quote backslashes using 599 # echo "$something" | sed 's/\\/\\\\/g' 600 # 601 # So, first we look for a working echo in the user's PATH. 602 603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 604 for dir in $PATH /usr/ucb; do 605 IFS="$lt_save_ifs" 606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 echo="$dir/echo" 611 break 612 fi 613 done 614 IFS="$lt_save_ifs" 615 616 if test "X$echo" = Xecho; then 617 # We didn't find a better echo, so look for alternatives. 618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 620 test "X$echo_testing_string" = "X$echo_test_string"; then 621 # This shell has a builtin print -r that does the trick. 622 echo='print -r' 623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 624 test "X$CONFIG_SHELL" != X/bin/ksh; then 625 # If we have ksh, try running configure again with it. 626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 627 export ORIGINAL_CONFIG_SHELL 628 CONFIG_SHELL=/bin/ksh 629 export CONFIG_SHELL 630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 631 else 632 # Try using printf. 633 echo='printf %s\n' 634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 636 test "X$echo_testing_string" = "X$echo_test_string"; then 637 # Cool, printf works 638 : 639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 640 test "X$echo_testing_string" = 'X\t' && 641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 642 test "X$echo_testing_string" = "X$echo_test_string"; then 643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 644 export CONFIG_SHELL 645 SHELL="$CONFIG_SHELL" 646 export SHELL 647 echo="$CONFIG_SHELL $0 --fallback-echo" 648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 649 test "X$echo_testing_string" = 'X\t' && 650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 echo="$CONFIG_SHELL $0 --fallback-echo" 653 else 654 # maybe with a smaller string... 655 prev=: 656 657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 659 then 660 break 661 fi 662 prev="$cmd" 663 done 664 665 if test "$prev" != 'sed 50q "$0"'; then 666 echo_test_string=`eval $prev` 667 export echo_test_string 668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 669 else 670 # Oops. We lost completely, so just stick with echo. 671 echo=echo 672 fi 673 fi 674 fi 675 fi 676fi 677fi 678 679# Copy echo and quote the copy suitably for passing to libtool from 680# the Makefile, instead of quoting the original, which is used later. 681ECHO=$echo 682if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 684fi 685 686 687 688 689tagnames=${tagnames+${tagnames},}CXX 690 691tagnames=${tagnames+${tagnames},}F77 692 693exec 7<&0 </dev/null 6>&1 694 695# Name of the host. 696# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 697# so uname gets run too. 698ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 699 700# 701# Initializations. 702# 703ac_default_prefix=/usr/local 704ac_clean_files= 705ac_config_libobj_dir=. 706LIBOBJS= 707cross_compiling=no 708subdirs= 709MFLAGS= 710MAKEFLAGS= 711SHELL=${CONFIG_SHELL-/bin/sh} 712 713# Identity of this package. 714PACKAGE_NAME='xf86-video-rendition' 715PACKAGE_TARNAME='xf86-video-rendition' 716PACKAGE_VERSION='4.1.3' 717PACKAGE_STRING='xf86-video-rendition 4.1.3' 718PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 719 720ac_unique_file="Makefile.am" 721# Factoring default headers for most tests. 722ac_includes_default="\ 723#include <stdio.h> 724#if HAVE_SYS_TYPES_H 725# include <sys/types.h> 726#endif 727#if HAVE_SYS_STAT_H 728# include <sys/stat.h> 729#endif 730#if STDC_HEADERS 731# include <stdlib.h> 732# include <stddef.h> 733#else 734# if HAVE_STDLIB_H 735# include <stdlib.h> 736# endif 737#endif 738#if HAVE_STRING_H 739# if !STDC_HEADERS && HAVE_MEMORY_H 740# include <memory.h> 741# endif 742# include <string.h> 743#endif 744#if HAVE_STRINGS_H 745# include <strings.h> 746#endif 747#if HAVE_INTTYPES_H 748# include <inttypes.h> 749#endif 750#if HAVE_STDINT_H 751# include <stdint.h> 752#endif 753#if HAVE_UNISTD_H 754# include <unistd.h> 755#endif" 756 757ac_subst_vars='SHELL 758PATH_SEPARATOR 759PACKAGE_NAME 760PACKAGE_TARNAME 761PACKAGE_VERSION 762PACKAGE_STRING 763PACKAGE_BUGREPORT 764exec_prefix 765prefix 766program_transform_name 767bindir 768sbindir 769libexecdir 770datarootdir 771datadir 772sysconfdir 773sharedstatedir 774localstatedir 775includedir 776oldincludedir 777docdir 778infodir 779htmldir 780dvidir 781pdfdir 782psdir 783libdir 784localedir 785mandir 786DEFS 787ECHO_C 788ECHO_N 789ECHO_T 790LIBS 791build_alias 792host_alias 793target_alias 794INSTALL_PROGRAM 795INSTALL_SCRIPT 796INSTALL_DATA 797CYGPATH_W 798PACKAGE 799VERSION 800ACLOCAL 801AUTOCONF 802AUTOMAKE 803AUTOHEADER 804MAKEINFO 805install_sh 806STRIP 807INSTALL_STRIP_PROGRAM 808mkdir_p 809AWK 810SET_MAKE 811am__leading_dot 812AMTAR 813am__tar 814am__untar 815AMSHOWCMDSAT 816AMDEPSHOWCMDSAT 817AMPRETTYECHO 818AMCMDECHO 819LT_QUIET 820MAINTAINER_MODE_TRUE 821MAINTAINER_MODE_FALSE 822MAINT 823build 824build_cpu 825build_vendor 826build_os 827host 828host_cpu 829host_vendor 830host_os 831CC 832CFLAGS 833LDFLAGS 834CPPFLAGS 835ac_ct_CC 836EXEEXT 837OBJEXT 838DEPDIR 839am__include 840am__quote 841AMDEP_TRUE 842AMDEP_FALSE 843AMDEPBACKSLASH 844CCDEPMODE 845am__fastdepCC_TRUE 846am__fastdepCC_FALSE 847GREP 848EGREP 849LN_S 850ECHO 851AR 852RANLIB 853CPP 854CXX 855CXXFLAGS 856ac_ct_CXX 857CXXDEPMODE 858am__fastdepCXX_TRUE 859am__fastdepCXX_FALSE 860CXXCPP 861F77 862FFLAGS 863ac_ct_F77 864LIBTOOL 865PKG_CONFIG 866XORG_CFLAGS 867XORG_LIBS 868moduledir 869DRIVER_NAME 870APP_MAN_SUFFIX 871LIB_MAN_SUFFIX 872FILE_MAN_SUFFIX 873MISC_MAN_SUFFIX 874DRIVER_MAN_SUFFIX 875ADMIN_MAN_SUFFIX 876APP_MAN_DIR 877LIB_MAN_DIR 878FILE_MAN_DIR 879MISC_MAN_DIR 880DRIVER_MAN_DIR 881ADMIN_MAN_DIR 882LINUXDOC 883PS2PDF 884BUILD_LINUXDOC_TRUE 885BUILD_LINUXDOC_FALSE 886BUILD_PDFDOC_TRUE 887BUILD_PDFDOC_FALSE 888MAKE_TEXT 889MAKE_PS 890MAKE_PDF 891MAKE_HTML 892LIBOBJS 893LTLIBOBJS' 894ac_subst_files='' 895 ac_precious_vars='build_alias 896host_alias 897target_alias 898CC 899CFLAGS 900LDFLAGS 901CPPFLAGS 902CPP 903CXX 904CXXFLAGS 905CCC 906CXXCPP 907F77 908FFLAGS 909PKG_CONFIG 910XORG_CFLAGS 911XORG_LIBS' 912 913 914# Initialize some variables set by options. 915ac_init_help= 916ac_init_version=false 917# The variables have the same names as the options, with 918# dashes changed to underlines. 919cache_file=/dev/null 920exec_prefix=NONE 921no_create= 922no_recursion= 923prefix=NONE 924program_prefix=NONE 925program_suffix=NONE 926program_transform_name=s,x,x, 927silent= 928site= 929srcdir= 930verbose= 931x_includes=NONE 932x_libraries=NONE 933 934# Installation directory options. 935# These are left unexpanded so users can "make install exec_prefix=/foo" 936# and all the variables that are supposed to be based on exec_prefix 937# by default will actually change. 938# Use braces instead of parens because sh, perl, etc. also accept them. 939# (The list follows the same order as the GNU Coding Standards.) 940bindir='${exec_prefix}/bin' 941sbindir='${exec_prefix}/sbin' 942libexecdir='${exec_prefix}/libexec' 943datarootdir='${prefix}/share' 944datadir='${datarootdir}' 945sysconfdir='${prefix}/etc' 946sharedstatedir='${prefix}/com' 947localstatedir='${prefix}/var' 948includedir='${prefix}/include' 949oldincludedir='/usr/include' 950docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 951infodir='${datarootdir}/info' 952htmldir='${docdir}' 953dvidir='${docdir}' 954pdfdir='${docdir}' 955psdir='${docdir}' 956libdir='${exec_prefix}/lib' 957localedir='${datarootdir}/locale' 958mandir='${datarootdir}/man' 959 960ac_prev= 961ac_dashdash= 962for ac_option 963do 964 # If the previous option needs an argument, assign it. 965 if test -n "$ac_prev"; then 966 eval $ac_prev=\$ac_option 967 ac_prev= 968 continue 969 fi 970 971 case $ac_option in 972 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 973 *) ac_optarg=yes ;; 974 esac 975 976 # Accept the important Cygnus configure options, so we can diagnose typos. 977 978 case $ac_dashdash$ac_option in 979 --) 980 ac_dashdash=yes ;; 981 982 -bindir | --bindir | --bindi | --bind | --bin | --bi) 983 ac_prev=bindir ;; 984 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 985 bindir=$ac_optarg ;; 986 987 -build | --build | --buil | --bui | --bu) 988 ac_prev=build_alias ;; 989 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 990 build_alias=$ac_optarg ;; 991 992 -cache-file | --cache-file | --cache-fil | --cache-fi \ 993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 994 ac_prev=cache_file ;; 995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 997 cache_file=$ac_optarg ;; 998 999 --config-cache | -C) 1000 cache_file=config.cache ;; 1001 1002 -datadir | --datadir | --datadi | --datad) 1003 ac_prev=datadir ;; 1004 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1005 datadir=$ac_optarg ;; 1006 1007 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1008 | --dataroo | --dataro | --datar) 1009 ac_prev=datarootdir ;; 1010 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1011 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1012 datarootdir=$ac_optarg ;; 1013 1014 -disable-* | --disable-*) 1015 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1016 # Reject names that are not valid shell variable names. 1017 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1018 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1019 { (exit 1); exit 1; }; } 1020 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1021 eval enable_$ac_feature=no ;; 1022 1023 -docdir | --docdir | --docdi | --doc | --do) 1024 ac_prev=docdir ;; 1025 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1026 docdir=$ac_optarg ;; 1027 1028 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1029 ac_prev=dvidir ;; 1030 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1031 dvidir=$ac_optarg ;; 1032 1033 -enable-* | --enable-*) 1034 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1035 # Reject names that are not valid shell variable names. 1036 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1037 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1038 { (exit 1); exit 1; }; } 1039 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1040 eval enable_$ac_feature=\$ac_optarg ;; 1041 1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1044 | --exec | --exe | --ex) 1045 ac_prev=exec_prefix ;; 1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1048 | --exec=* | --exe=* | --ex=*) 1049 exec_prefix=$ac_optarg ;; 1050 1051 -gas | --gas | --ga | --g) 1052 # Obsolete; use --with-gas. 1053 with_gas=yes ;; 1054 1055 -help | --help | --hel | --he | -h) 1056 ac_init_help=long ;; 1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1058 ac_init_help=recursive ;; 1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1060 ac_init_help=short ;; 1061 1062 -host | --host | --hos | --ho) 1063 ac_prev=host_alias ;; 1064 -host=* | --host=* | --hos=* | --ho=*) 1065 host_alias=$ac_optarg ;; 1066 1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1068 ac_prev=htmldir ;; 1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1070 | --ht=*) 1071 htmldir=$ac_optarg ;; 1072 1073 -includedir | --includedir | --includedi | --included | --include \ 1074 | --includ | --inclu | --incl | --inc) 1075 ac_prev=includedir ;; 1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1077 | --includ=* | --inclu=* | --incl=* | --inc=*) 1078 includedir=$ac_optarg ;; 1079 1080 -infodir | --infodir | --infodi | --infod | --info | --inf) 1081 ac_prev=infodir ;; 1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1083 infodir=$ac_optarg ;; 1084 1085 -libdir | --libdir | --libdi | --libd) 1086 ac_prev=libdir ;; 1087 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1088 libdir=$ac_optarg ;; 1089 1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1091 | --libexe | --libex | --libe) 1092 ac_prev=libexecdir ;; 1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1094 | --libexe=* | --libex=* | --libe=*) 1095 libexecdir=$ac_optarg ;; 1096 1097 -localedir | --localedir | --localedi | --localed | --locale) 1098 ac_prev=localedir ;; 1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1100 localedir=$ac_optarg ;; 1101 1102 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1103 | --localstate | --localstat | --localsta | --localst | --locals) 1104 ac_prev=localstatedir ;; 1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1107 localstatedir=$ac_optarg ;; 1108 1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1110 ac_prev=mandir ;; 1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1112 mandir=$ac_optarg ;; 1113 1114 -nfp | --nfp | --nf) 1115 # Obsolete; use --without-fp. 1116 with_fp=no ;; 1117 1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1119 | --no-cr | --no-c | -n) 1120 no_create=yes ;; 1121 1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1124 no_recursion=yes ;; 1125 1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1128 | --oldin | --oldi | --old | --ol | --o) 1129 ac_prev=oldincludedir ;; 1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1133 oldincludedir=$ac_optarg ;; 1134 1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1136 ac_prev=prefix ;; 1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1138 prefix=$ac_optarg ;; 1139 1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1141 | --program-pre | --program-pr | --program-p) 1142 ac_prev=program_prefix ;; 1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1145 program_prefix=$ac_optarg ;; 1146 1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1148 | --program-suf | --program-su | --program-s) 1149 ac_prev=program_suffix ;; 1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1152 program_suffix=$ac_optarg ;; 1153 1154 -program-transform-name | --program-transform-name \ 1155 | --program-transform-nam | --program-transform-na \ 1156 | --program-transform-n | --program-transform- \ 1157 | --program-transform | --program-transfor \ 1158 | --program-transfo | --program-transf \ 1159 | --program-trans | --program-tran \ 1160 | --progr-tra | --program-tr | --program-t) 1161 ac_prev=program_transform_name ;; 1162 -program-transform-name=* | --program-transform-name=* \ 1163 | --program-transform-nam=* | --program-transform-na=* \ 1164 | --program-transform-n=* | --program-transform-=* \ 1165 | --program-transform=* | --program-transfor=* \ 1166 | --program-transfo=* | --program-transf=* \ 1167 | --program-trans=* | --program-tran=* \ 1168 | --progr-tra=* | --program-tr=* | --program-t=*) 1169 program_transform_name=$ac_optarg ;; 1170 1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1172 ac_prev=pdfdir ;; 1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1174 pdfdir=$ac_optarg ;; 1175 1176 -psdir | --psdir | --psdi | --psd | --ps) 1177 ac_prev=psdir ;; 1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1179 psdir=$ac_optarg ;; 1180 1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1182 | -silent | --silent | --silen | --sile | --sil) 1183 silent=yes ;; 1184 1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1186 ac_prev=sbindir ;; 1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1188 | --sbi=* | --sb=*) 1189 sbindir=$ac_optarg ;; 1190 1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1193 | --sharedst | --shareds | --shared | --share | --shar \ 1194 | --sha | --sh) 1195 ac_prev=sharedstatedir ;; 1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1199 | --sha=* | --sh=*) 1200 sharedstatedir=$ac_optarg ;; 1201 1202 -site | --site | --sit) 1203 ac_prev=site ;; 1204 -site=* | --site=* | --sit=*) 1205 site=$ac_optarg ;; 1206 1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1208 ac_prev=srcdir ;; 1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1210 srcdir=$ac_optarg ;; 1211 1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1213 | --syscon | --sysco | --sysc | --sys | --sy) 1214 ac_prev=sysconfdir ;; 1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1217 sysconfdir=$ac_optarg ;; 1218 1219 -target | --target | --targe | --targ | --tar | --ta | --t) 1220 ac_prev=target_alias ;; 1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1222 target_alias=$ac_optarg ;; 1223 1224 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1225 verbose=yes ;; 1226 1227 -version | --version | --versio | --versi | --vers | -V) 1228 ac_init_version=: ;; 1229 1230 -with-* | --with-*) 1231 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1232 # Reject names that are not valid shell variable names. 1233 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1234 { echo "$as_me: error: invalid package name: $ac_package" >&2 1235 { (exit 1); exit 1; }; } 1236 ac_package=`echo $ac_package| sed 's/-/_/g'` 1237 eval with_$ac_package=\$ac_optarg ;; 1238 1239 -without-* | --without-*) 1240 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1241 # Reject names that are not valid shell variable names. 1242 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1243 { echo "$as_me: error: invalid package name: $ac_package" >&2 1244 { (exit 1); exit 1; }; } 1245 ac_package=`echo $ac_package | sed 's/-/_/g'` 1246 eval with_$ac_package=no ;; 1247 1248 --x) 1249 # Obsolete; use --with-x. 1250 with_x=yes ;; 1251 1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1253 | --x-incl | --x-inc | --x-in | --x-i) 1254 ac_prev=x_includes ;; 1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1257 x_includes=$ac_optarg ;; 1258 1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1261 ac_prev=x_libraries ;; 1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1264 x_libraries=$ac_optarg ;; 1265 1266 -*) { echo "$as_me: error: unrecognized option: $ac_option 1267Try \`$0 --help' for more information." >&2 1268 { (exit 1); exit 1; }; } 1269 ;; 1270 1271 *=*) 1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1273 # Reject names that are not valid shell variable names. 1274 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1275 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1276 { (exit 1); exit 1; }; } 1277 eval $ac_envvar=\$ac_optarg 1278 export $ac_envvar ;; 1279 1280 *) 1281 # FIXME: should be removed in autoconf 3.0. 1282 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1284 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1286 ;; 1287 1288 esac 1289done 1290 1291if test -n "$ac_prev"; then 1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1293 { echo "$as_me: error: missing argument to $ac_option" >&2 1294 { (exit 1); exit 1; }; } 1295fi 1296 1297# Be sure to have absolute directory names. 1298for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1299 datadir sysconfdir sharedstatedir localstatedir includedir \ 1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1301 libdir localedir mandir 1302do 1303 eval ac_val=\$$ac_var 1304 case $ac_val in 1305 [\\/$]* | ?:[\\/]* ) continue;; 1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1307 esac 1308 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1309 { (exit 1); exit 1; }; } 1310done 1311 1312# There might be people who depend on the old broken behavior: `$host' 1313# used to hold the argument of --host etc. 1314# FIXME: To remove some day. 1315build=$build_alias 1316host=$host_alias 1317target=$target_alias 1318 1319# FIXME: To remove some day. 1320if test "x$host_alias" != x; then 1321 if test "x$build_alias" = x; then 1322 cross_compiling=maybe 1323 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1324 If a cross compiler is detected then cross compile mode will be used." >&2 1325 elif test "x$build_alias" != "x$host_alias"; then 1326 cross_compiling=yes 1327 fi 1328fi 1329 1330ac_tool_prefix= 1331test -n "$host_alias" && ac_tool_prefix=$host_alias- 1332 1333test "$silent" = yes && exec 6>/dev/null 1334 1335 1336ac_pwd=`pwd` && test -n "$ac_pwd" && 1337ac_ls_di=`ls -di .` && 1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1339 { echo "$as_me: error: Working directory cannot be determined" >&2 1340 { (exit 1); exit 1; }; } 1341test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1342 { echo "$as_me: error: pwd does not report name of working directory" >&2 1343 { (exit 1); exit 1; }; } 1344 1345 1346# Find the source files, if location was not specified. 1347if test -z "$srcdir"; then 1348 ac_srcdir_defaulted=yes 1349 # Try the directory containing this script, then the parent directory. 1350 ac_confdir=`$as_dirname -- "$0" || 1351$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1352 X"$0" : 'X\(//\)[^/]' \| \ 1353 X"$0" : 'X\(//\)$' \| \ 1354 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1355echo X"$0" | 1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\/\)[^/].*/{ 1361 s//\1/ 1362 q 1363 } 1364 /^X\(\/\/\)$/{ 1365 s//\1/ 1366 q 1367 } 1368 /^X\(\/\).*/{ 1369 s//\1/ 1370 q 1371 } 1372 s/.*/./; q'` 1373 srcdir=$ac_confdir 1374 if test ! -r "$srcdir/$ac_unique_file"; then 1375 srcdir=.. 1376 fi 1377else 1378 ac_srcdir_defaulted=no 1379fi 1380if test ! -r "$srcdir/$ac_unique_file"; then 1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1382 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1383 { (exit 1); exit 1; }; } 1384fi 1385ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1386ac_abs_confdir=`( 1387 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1388 { (exit 1); exit 1; }; } 1389 pwd)` 1390# When building in place, set srcdir=. 1391if test "$ac_abs_confdir" = "$ac_pwd"; then 1392 srcdir=. 1393fi 1394# Remove unnecessary trailing slashes from srcdir. 1395# Double slashes in file names in object file debugging info 1396# mess up M-x gdb in Emacs. 1397case $srcdir in 1398*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1399esac 1400for ac_var in $ac_precious_vars; do 1401 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1402 eval ac_env_${ac_var}_value=\$${ac_var} 1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1404 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1405done 1406 1407# 1408# Report the --help message. 1409# 1410if test "$ac_init_help" = "long"; then 1411 # Omit some internal or obsolete options to make the list less imposing. 1412 # This message is too long to be a string in the A/UX 3.1 sh. 1413 cat <<_ACEOF 1414\`configure' configures xf86-video-rendition 4.1.3 to adapt to many kinds of systems. 1415 1416Usage: $0 [OPTION]... [VAR=VALUE]... 1417 1418To assign environment variables (e.g., CC, CFLAGS...), specify them as 1419VAR=VALUE. See below for descriptions of some of the useful variables. 1420 1421Defaults for the options are specified in brackets. 1422 1423Configuration: 1424 -h, --help display this help and exit 1425 --help=short display options specific to this package 1426 --help=recursive display the short help of all the included packages 1427 -V, --version display version information and exit 1428 -q, --quiet, --silent do not print \`checking...' messages 1429 --cache-file=FILE cache test results in FILE [disabled] 1430 -C, --config-cache alias for \`--cache-file=config.cache' 1431 -n, --no-create do not create output files 1432 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1433 1434Installation directories: 1435 --prefix=PREFIX install architecture-independent files in PREFIX 1436 [$ac_default_prefix] 1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1438 [PREFIX] 1439 1440By default, \`make install' will install all the files in 1441\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1442an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1443for instance \`--prefix=\$HOME'. 1444 1445For better control, use the options below. 1446 1447Fine tuning of the installation directories: 1448 --bindir=DIR user executables [EPREFIX/bin] 1449 --sbindir=DIR system admin executables [EPREFIX/sbin] 1450 --libexecdir=DIR program executables [EPREFIX/libexec] 1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1454 --libdir=DIR object code libraries [EPREFIX/lib] 1455 --includedir=DIR C header files [PREFIX/include] 1456 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1459 --infodir=DIR info documentation [DATAROOTDIR/info] 1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1461 --mandir=DIR man documentation [DATAROOTDIR/man] 1462 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-rendition] 1463 --htmldir=DIR html documentation [DOCDIR] 1464 --dvidir=DIR dvi documentation [DOCDIR] 1465 --pdfdir=DIR pdf documentation [DOCDIR] 1466 --psdir=DIR ps documentation [DOCDIR] 1467_ACEOF 1468 1469 cat <<\_ACEOF 1470 1471Program names: 1472 --program-prefix=PREFIX prepend PREFIX to installed program names 1473 --program-suffix=SUFFIX append SUFFIX to installed program names 1474 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1475 1476System types: 1477 --build=BUILD configure for building on BUILD [guessed] 1478 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1479_ACEOF 1480fi 1481 1482if test -n "$ac_init_help"; then 1483 case $ac_init_help in 1484 short | recursive ) echo "Configuration of xf86-video-rendition 4.1.3:";; 1485 esac 1486 cat <<\_ACEOF 1487 1488Optional Features: 1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1491 --disable-pretty-cmds show all commands executed 1492 --enable-pretty-cmds do not output the entire command lines 1493 --enable-maintainer-mode enable make rules and dependencies not useful 1494 (and sometimes confusing) to the casual installer 1495 --enable-static[=PKGS] build static libraries [default=no] 1496 --enable-shared[=PKGS] build shared libraries [default=yes] 1497 --enable-fast-install[=PKGS] 1498 optimize for fast installation [default=yes] 1499 --disable-dependency-tracking speeds up one-time build 1500 --enable-dependency-tracking do not reject slow dependency extractors 1501 --disable-libtool-lock avoid locking (might break parallel builds) 1502 1503Optional Packages: 1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1507 --with-pic try to use only PIC/non-PIC objects [default=use 1508 both] 1509 --with-tags[=TAGS] include additional configurations [automatic] 1510 --with-xorg-module-dir=DIR 1511 Default xorg module directory 1512 [default=$libdir/xorg/modules] 1513 --with-release-version=STRING 1514 Use release version string in package name 1515 1516Some influential environment variables: 1517 CC C compiler command 1518 CFLAGS C compiler flags 1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1520 nonstandard directory <lib dir> 1521 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1522 you have headers in a nonstandard directory <include dir> 1523 CPP C preprocessor 1524 CXX C++ compiler command 1525 CXXFLAGS C++ compiler flags 1526 CXXCPP C++ preprocessor 1527 F77 Fortran 77 compiler command 1528 FFLAGS Fortran 77 compiler flags 1529 PKG_CONFIG path to pkg-config utility 1530 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1531 XORG_LIBS linker flags for XORG, overriding pkg-config 1532 1533Use these variables to override the choices made by `configure' or to help 1534it to find libraries and programs with nonstandard names/locations. 1535 1536Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1537_ACEOF 1538ac_status=$? 1539fi 1540 1541if test "$ac_init_help" = "recursive"; then 1542 # If there are subdirs, report their specific --help. 1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1544 test -d "$ac_dir" || continue 1545 ac_builddir=. 1546 1547case "$ac_dir" in 1548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1549*) 1550 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1551 # A ".." for each directory in $ac_dir_suffix. 1552 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1553 case $ac_top_builddir_sub in 1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1556 esac ;; 1557esac 1558ac_abs_top_builddir=$ac_pwd 1559ac_abs_builddir=$ac_pwd$ac_dir_suffix 1560# for backward compatibility: 1561ac_top_builddir=$ac_top_build_prefix 1562 1563case $srcdir in 1564 .) # We are building in place. 1565 ac_srcdir=. 1566 ac_top_srcdir=$ac_top_builddir_sub 1567 ac_abs_top_srcdir=$ac_pwd ;; 1568 [\\/]* | ?:[\\/]* ) # Absolute name. 1569 ac_srcdir=$srcdir$ac_dir_suffix; 1570 ac_top_srcdir=$srcdir 1571 ac_abs_top_srcdir=$srcdir ;; 1572 *) # Relative name. 1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1574 ac_top_srcdir=$ac_top_build_prefix$srcdir 1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1576esac 1577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1578 1579 cd "$ac_dir" || { ac_status=$?; continue; } 1580 # Check for guested configure. 1581 if test -f "$ac_srcdir/configure.gnu"; then 1582 echo && 1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1584 elif test -f "$ac_srcdir/configure"; then 1585 echo && 1586 $SHELL "$ac_srcdir/configure" --help=recursive 1587 else 1588 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1589 fi || ac_status=$? 1590 cd "$ac_pwd" || { ac_status=$?; break; } 1591 done 1592fi 1593 1594test -n "$ac_init_help" && exit $ac_status 1595if $ac_init_version; then 1596 cat <<\_ACEOF 1597xf86-video-rendition configure 4.1.3 1598generated by GNU Autoconf 2.60 1599 1600Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16012002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1602This configure script is free software; the Free Software Foundation 1603gives unlimited permission to copy, distribute and modify it. 1604_ACEOF 1605 exit 1606fi 1607cat >config.log <<_ACEOF 1608This file contains any messages produced by compilers while 1609running configure, to aid debugging if configure makes a mistake. 1610 1611It was created by xf86-video-rendition $as_me 4.1.3, which was 1612generated by GNU Autoconf 2.60. Invocation command line was 1613 1614 $ $0 $@ 1615 1616_ACEOF 1617exec 5>>config.log 1618{ 1619cat <<_ASUNAME 1620## --------- ## 1621## Platform. ## 1622## --------- ## 1623 1624hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1625uname -m = `(uname -m) 2>/dev/null || echo unknown` 1626uname -r = `(uname -r) 2>/dev/null || echo unknown` 1627uname -s = `(uname -s) 2>/dev/null || echo unknown` 1628uname -v = `(uname -v) 2>/dev/null || echo unknown` 1629 1630/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1631/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1632 1633/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1634/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1635/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1636/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1637/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1638/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1639/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1640 1641_ASUNAME 1642 1643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1644for as_dir in $PATH 1645do 1646 IFS=$as_save_IFS 1647 test -z "$as_dir" && as_dir=. 1648 echo "PATH: $as_dir" 1649done 1650IFS=$as_save_IFS 1651 1652} >&5 1653 1654cat >&5 <<_ACEOF 1655 1656 1657## ----------- ## 1658## Core tests. ## 1659## ----------- ## 1660 1661_ACEOF 1662 1663 1664# Keep a trace of the command line. 1665# Strip out --no-create and --no-recursion so they do not pile up. 1666# Strip out --silent because we don't want to record it for future runs. 1667# Also quote any args containing shell meta-characters. 1668# Make two passes to allow for proper duplicate-argument suppression. 1669ac_configure_args= 1670ac_configure_args0= 1671ac_configure_args1= 1672ac_must_keep_next=false 1673for ac_pass in 1 2 1674do 1675 for ac_arg 1676 do 1677 case $ac_arg in 1678 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1680 | -silent | --silent | --silen | --sile | --sil) 1681 continue ;; 1682 *\'*) 1683 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1684 esac 1685 case $ac_pass in 1686 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1687 2) 1688 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1689 if test $ac_must_keep_next = true; then 1690 ac_must_keep_next=false # Got value, back to normal. 1691 else 1692 case $ac_arg in 1693 *=* | --config-cache | -C | -disable-* | --disable-* \ 1694 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1695 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1696 | -with-* | --with-* | -without-* | --without-* | --x) 1697 case "$ac_configure_args0 " in 1698 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1699 esac 1700 ;; 1701 -* ) ac_must_keep_next=true ;; 1702 esac 1703 fi 1704 ac_configure_args="$ac_configure_args '$ac_arg'" 1705 ;; 1706 esac 1707 done 1708done 1709$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1710$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1711 1712# When interrupted or exit'd, cleanup temporary files, and complete 1713# config.log. We remove comments because anyway the quotes in there 1714# would cause problems or look ugly. 1715# WARNING: Use '\'' to represent an apostrophe within the trap. 1716# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1717trap 'exit_status=$? 1718 # Save into config.log some information that might help in debugging. 1719 { 1720 echo 1721 1722 cat <<\_ASBOX 1723## ---------------- ## 1724## Cache variables. ## 1725## ---------------- ## 1726_ASBOX 1727 echo 1728 # The following way of writing the cache mishandles newlines in values, 1729( 1730 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1731 eval ac_val=\$$ac_var 1732 case $ac_val in #( 1733 *${as_nl}*) 1734 case $ac_var in #( 1735 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1736echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1737 esac 1738 case $ac_var in #( 1739 _ | IFS | as_nl) ;; #( 1740 *) $as_unset $ac_var ;; 1741 esac ;; 1742 esac 1743 done 1744 (set) 2>&1 | 1745 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1746 *${as_nl}ac_space=\ *) 1747 sed -n \ 1748 "s/'\''/'\''\\\\'\'''\''/g; 1749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1750 ;; #( 1751 *) 1752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1753 ;; 1754 esac | 1755 sort 1756) 1757 echo 1758 1759 cat <<\_ASBOX 1760## ----------------- ## 1761## Output variables. ## 1762## ----------------- ## 1763_ASBOX 1764 echo 1765 for ac_var in $ac_subst_vars 1766 do 1767 eval ac_val=\$$ac_var 1768 case $ac_val in 1769 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1770 esac 1771 echo "$ac_var='\''$ac_val'\''" 1772 done | sort 1773 echo 1774 1775 if test -n "$ac_subst_files"; then 1776 cat <<\_ASBOX 1777## ------------------- ## 1778## File substitutions. ## 1779## ------------------- ## 1780_ASBOX 1781 echo 1782 for ac_var in $ac_subst_files 1783 do 1784 eval ac_val=\$$ac_var 1785 case $ac_val in 1786 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1787 esac 1788 echo "$ac_var='\''$ac_val'\''" 1789 done | sort 1790 echo 1791 fi 1792 1793 if test -s confdefs.h; then 1794 cat <<\_ASBOX 1795## ----------- ## 1796## confdefs.h. ## 1797## ----------- ## 1798_ASBOX 1799 echo 1800 cat confdefs.h 1801 echo 1802 fi 1803 test "$ac_signal" != 0 && 1804 echo "$as_me: caught signal $ac_signal" 1805 echo "$as_me: exit $exit_status" 1806 } >&5 1807 rm -f core *.core core.conftest.* && 1808 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1809 exit $exit_status 1810' 0 1811for ac_signal in 1 2 13 15; do 1812 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1813done 1814ac_signal=0 1815 1816# confdefs.h avoids OS command line length limits that DEFS can exceed. 1817rm -f -r conftest* confdefs.h 1818 1819# Predefined preprocessor variables. 1820 1821cat >>confdefs.h <<_ACEOF 1822#define PACKAGE_NAME "$PACKAGE_NAME" 1823_ACEOF 1824 1825 1826cat >>confdefs.h <<_ACEOF 1827#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1828_ACEOF 1829 1830 1831cat >>confdefs.h <<_ACEOF 1832#define PACKAGE_VERSION "$PACKAGE_VERSION" 1833_ACEOF 1834 1835 1836cat >>confdefs.h <<_ACEOF 1837#define PACKAGE_STRING "$PACKAGE_STRING" 1838_ACEOF 1839 1840 1841cat >>confdefs.h <<_ACEOF 1842#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1843_ACEOF 1844 1845 1846# Let the site file select an alternate cache file if it wants to. 1847# Prefer explicitly selected file to automatically selected ones. 1848if test -n "$CONFIG_SITE"; then 1849 set x "$CONFIG_SITE" 1850elif test "x$prefix" != xNONE; then 1851 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1852else 1853 set x "$ac_default_prefix/share/config.site" \ 1854 "$ac_default_prefix/etc/config.site" 1855fi 1856shift 1857for ac_site_file 1858do 1859 if test -r "$ac_site_file"; then 1860 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1861echo "$as_me: loading site script $ac_site_file" >&6;} 1862 sed 's/^/| /' "$ac_site_file" >&5 1863 . "$ac_site_file" 1864 fi 1865done 1866 1867if test -r "$cache_file"; then 1868 # Some versions of bash will fail to source /dev/null (special 1869 # files actually), so we avoid doing that. 1870 if test -f "$cache_file"; then 1871 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1872echo "$as_me: loading cache $cache_file" >&6;} 1873 case $cache_file in 1874 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1875 *) . "./$cache_file";; 1876 esac 1877 fi 1878else 1879 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1880echo "$as_me: creating cache $cache_file" >&6;} 1881 >$cache_file 1882fi 1883 1884# Check that the precious variables saved in the cache have kept the same 1885# value. 1886ac_cache_corrupted=false 1887for ac_var in $ac_precious_vars; do 1888 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1889 eval ac_new_set=\$ac_env_${ac_var}_set 1890 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1891 eval ac_new_val=\$ac_env_${ac_var}_value 1892 case $ac_old_set,$ac_new_set in 1893 set,) 1894 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1895echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1896 ac_cache_corrupted=: ;; 1897 ,set) 1898 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1899echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1900 ac_cache_corrupted=: ;; 1901 ,);; 1902 *) 1903 if test "x$ac_old_val" != "x$ac_new_val"; then 1904 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1905echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1906 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1907echo "$as_me: former value: $ac_old_val" >&2;} 1908 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1909echo "$as_me: current value: $ac_new_val" >&2;} 1910 ac_cache_corrupted=: 1911 fi;; 1912 esac 1913 # Pass precious variables to config.status. 1914 if test "$ac_new_set" = set; then 1915 case $ac_new_val in 1916 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1917 *) ac_arg=$ac_var=$ac_new_val ;; 1918 esac 1919 case " $ac_configure_args " in 1920 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1921 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1922 esac 1923 fi 1924done 1925if $ac_cache_corrupted; then 1926 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1927echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1928 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1929echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1930 { (exit 1); exit 1; }; } 1931fi 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957ac_ext=c 1958ac_cpp='$CPP $CPPFLAGS' 1959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1961ac_compiler_gnu=$ac_cv_c_compiler_gnu 1962 1963 1964 1965 1966ac_config_headers="$ac_config_headers config.h" 1967 1968ac_aux_dir= 1969for ac_dir in . "$srcdir"/.; do 1970 if test -f "$ac_dir/install-sh"; then 1971 ac_aux_dir=$ac_dir 1972 ac_install_sh="$ac_aux_dir/install-sh -c" 1973 break 1974 elif test -f "$ac_dir/install.sh"; then 1975 ac_aux_dir=$ac_dir 1976 ac_install_sh="$ac_aux_dir/install.sh -c" 1977 break 1978 elif test -f "$ac_dir/shtool"; then 1979 ac_aux_dir=$ac_dir 1980 ac_install_sh="$ac_aux_dir/shtool install -c" 1981 break 1982 fi 1983done 1984if test -z "$ac_aux_dir"; then 1985 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 1986echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 1987 { (exit 1); exit 1; }; } 1988fi 1989 1990# These three variables are undocumented and unsupported, 1991# and are intended to be withdrawn in a future Autoconf release. 1992# They can cause serious problems if a builder's source tree is in a directory 1993# whose full name contains unusual characters. 1994ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1995ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1996ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1997 1998 1999 2000am__api_version="1.9" 2001# Find a good install program. We prefer a C program (faster), 2002# so one script is as good as another. But avoid the broken or 2003# incompatible versions: 2004# SysV /etc/install, /usr/sbin/install 2005# SunOS /usr/etc/install 2006# IRIX /sbin/install 2007# AIX /bin/install 2008# AmigaOS /C/install, which installs bootblocks on floppy discs 2009# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2010# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2011# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2012# OS/2's system install, which has a completely different semantic 2013# ./install, which can be erroneously created by make from ./install.sh. 2014{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2015echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2016if test -z "$INSTALL"; then 2017if test "${ac_cv_path_install+set}" = set; then 2018 echo $ECHO_N "(cached) $ECHO_C" >&6 2019else 2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2021for as_dir in $PATH 2022do 2023 IFS=$as_save_IFS 2024 test -z "$as_dir" && as_dir=. 2025 # Account for people who put trailing slashes in PATH elements. 2026case $as_dir/ in 2027 ./ | .// | /cC/* | \ 2028 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2029 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2030 /usr/ucb/* ) ;; 2031 *) 2032 # OSF1 and SCO ODT 3.0 have their own names for install. 2033 # Don't use installbsd from OSF since it installs stuff as root 2034 # by default. 2035 for ac_prog in ginstall scoinst install; do 2036 for ac_exec_ext in '' $ac_executable_extensions; do 2037 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 2038 if test $ac_prog = install && 2039 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2040 # AIX install. It has an incompatible calling convention. 2041 : 2042 elif test $ac_prog = install && 2043 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2044 # program-specific install script used by HP pwplus--don't use. 2045 : 2046 else 2047 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2048 break 3 2049 fi 2050 fi 2051 done 2052 done 2053 ;; 2054esac 2055done 2056IFS=$as_save_IFS 2057 2058 2059fi 2060 if test "${ac_cv_path_install+set}" = set; then 2061 INSTALL=$ac_cv_path_install 2062 else 2063 # As a last resort, use the slow shell script. Don't cache a 2064 # value for INSTALL within a source directory, because that will 2065 # break other packages using the cache if that directory is 2066 # removed, or if the value is a relative name. 2067 INSTALL=$ac_install_sh 2068 fi 2069fi 2070{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2071echo "${ECHO_T}$INSTALL" >&6; } 2072 2073# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2074# It thinks the first close brace ends the variable substitution. 2075test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2076 2077test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2078 2079test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2080 2081{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2082echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2083# Just in case 2084sleep 1 2085echo timestamp > conftest.file 2086# Do `set' in a subshell so we don't clobber the current shell's 2087# arguments. Must try -L first in case configure is actually a 2088# symlink; some systems play weird games with the mod time of symlinks 2089# (eg FreeBSD returns the mod time of the symlink's containing 2090# directory). 2091if ( 2092 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2093 if test "$*" = "X"; then 2094 # -L didn't work. 2095 set X `ls -t $srcdir/configure conftest.file` 2096 fi 2097 rm -f conftest.file 2098 if test "$*" != "X $srcdir/configure conftest.file" \ 2099 && test "$*" != "X conftest.file $srcdir/configure"; then 2100 2101 # If neither matched, then we have a broken ls. This can happen 2102 # if, for instance, CONFIG_SHELL is bash and it inherits a 2103 # broken ls alias from the environment. This has actually 2104 # happened. Such a system could not be considered "sane". 2105 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2106alias in your environment" >&5 2107echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2108alias in your environment" >&2;} 2109 { (exit 1); exit 1; }; } 2110 fi 2111 2112 test "$2" = conftest.file 2113 ) 2114then 2115 # Ok. 2116 : 2117else 2118 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2119Check your system clock" >&5 2120echo "$as_me: error: newly created file is older than distributed files! 2121Check your system clock" >&2;} 2122 { (exit 1); exit 1; }; } 2123fi 2124{ echo "$as_me:$LINENO: result: yes" >&5 2125echo "${ECHO_T}yes" >&6; } 2126test "$program_prefix" != NONE && 2127 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2128# Use a double $ so make ignores it. 2129test "$program_suffix" != NONE && 2130 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2131# Double any \ or $. echo might interpret backslashes. 2132# By default was `s,x,x', remove it if useless. 2133cat <<\_ACEOF >conftest.sed 2134s/[\\$]/&&/g;s/;s,x,x,$// 2135_ACEOF 2136program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2137rm -f conftest.sed 2138 2139# expand $ac_aux_dir to an absolute path 2140am_aux_dir=`cd $ac_aux_dir && pwd` 2141 2142test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2143# Use eval to expand $SHELL 2144if eval "$MISSING --run true"; then 2145 am_missing_run="$MISSING --run " 2146else 2147 am_missing_run= 2148 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2149echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2150fi 2151 2152if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2153 # We used to keeping the `.' as first argument, in order to 2154 # allow $(mkdir_p) to be used without argument. As in 2155 # $(mkdir_p) $(somedir) 2156 # where $(somedir) is conditionally defined. However this is wrong 2157 # for two reasons: 2158 # 1. if the package is installed by a user who cannot write `.' 2159 # make install will fail, 2160 # 2. the above comment should most certainly read 2161 # $(mkdir_p) $(DESTDIR)$(somedir) 2162 # so it does not work when $(somedir) is undefined and 2163 # $(DESTDIR) is not. 2164 # To support the latter case, we have to write 2165 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2166 # so the `.' trick is pointless. 2167 mkdir_p='mkdir -p --' 2168else 2169 # On NextStep and OpenStep, the `mkdir' command does not 2170 # recognize any option. It will interpret all options as 2171 # directories to create, and then abort because `.' already 2172 # exists. 2173 for d in ./-p ./--version; 2174 do 2175 test -d $d && rmdir $d 2176 done 2177 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2178 if test -f "$ac_aux_dir/mkinstalldirs"; then 2179 mkdir_p='$(mkinstalldirs)' 2180 else 2181 mkdir_p='$(install_sh) -d' 2182 fi 2183fi 2184 2185for ac_prog in gawk mawk nawk awk 2186do 2187 # Extract the first word of "$ac_prog", so it can be a program name with args. 2188set dummy $ac_prog; ac_word=$2 2189{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2191if test "${ac_cv_prog_AWK+set}" = set; then 2192 echo $ECHO_N "(cached) $ECHO_C" >&6 2193else 2194 if test -n "$AWK"; then 2195 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2196else 2197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2198for as_dir in $PATH 2199do 2200 IFS=$as_save_IFS 2201 test -z "$as_dir" && as_dir=. 2202 for ac_exec_ext in '' $ac_executable_extensions; do 2203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2204 ac_cv_prog_AWK="$ac_prog" 2205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2206 break 2 2207 fi 2208done 2209done 2210IFS=$as_save_IFS 2211 2212fi 2213fi 2214AWK=$ac_cv_prog_AWK 2215if test -n "$AWK"; then 2216 { echo "$as_me:$LINENO: result: $AWK" >&5 2217echo "${ECHO_T}$AWK" >&6; } 2218else 2219 { echo "$as_me:$LINENO: result: no" >&5 2220echo "${ECHO_T}no" >&6; } 2221fi 2222 2223 2224 test -n "$AWK" && break 2225done 2226 2227{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2228echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2229set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2230if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2231 echo $ECHO_N "(cached) $ECHO_C" >&6 2232else 2233 cat >conftest.make <<\_ACEOF 2234SHELL = /bin/sh 2235all: 2236 @echo '@@@%%%=$(MAKE)=@@@%%%' 2237_ACEOF 2238# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2239case `${MAKE-make} -f conftest.make 2>/dev/null` in 2240 *@@@%%%=?*=@@@%%%*) 2241 eval ac_cv_prog_make_${ac_make}_set=yes;; 2242 *) 2243 eval ac_cv_prog_make_${ac_make}_set=no;; 2244esac 2245rm -f conftest.make 2246fi 2247if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2248 { echo "$as_me:$LINENO: result: yes" >&5 2249echo "${ECHO_T}yes" >&6; } 2250 SET_MAKE= 2251else 2252 { echo "$as_me:$LINENO: result: no" >&5 2253echo "${ECHO_T}no" >&6; } 2254 SET_MAKE="MAKE=${MAKE-make}" 2255fi 2256 2257rm -rf .tst 2>/dev/null 2258mkdir .tst 2>/dev/null 2259if test -d .tst; then 2260 am__leading_dot=. 2261else 2262 am__leading_dot=_ 2263fi 2264rmdir .tst 2>/dev/null 2265 2266# Check whether --enable-pretty-cmds was given. 2267if test "${enable_pretty_cmds+set}" = set; then 2268 enableval=$enable_pretty_cmds; 2269fi 2270 2271AMSHOWCMDSAT='' 2272AMDEPSHOWCMDSAT='' 2273AMPRETTYECHO=true 2274AMCMDECHO=echo 2275if test "x$enable_pretty_cmds" = xyes; 2276then 2277 AMSHOWCMDSAT='@' 2278 test "x$enable_dependency_tracking" = xno && AMDEPSHOWCMDSAT='@' 2279 AMPRETTYECHO=echo 2280 AMCMDECHO=true 2281 LT_QUIET='--quiet' 2282fi 2283 2284 2285 2286 2287 2288 2289# test to see if srcdir already configured 2290if test "`cd $srcdir && pwd`" != "`pwd`" && 2291 test -f $srcdir/config.status; then 2292 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2293echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2294 { (exit 1); exit 1; }; } 2295fi 2296 2297# test whether we have cygpath 2298if test -z "$CYGPATH_W"; then 2299 if (cygpath --version) >/dev/null 2>/dev/null; then 2300 CYGPATH_W='cygpath -w' 2301 else 2302 CYGPATH_W=echo 2303 fi 2304fi 2305 2306 2307# Define the identity of the package. 2308 PACKAGE='xf86-video-rendition' 2309 VERSION='4.1.3' 2310 2311 2312cat >>confdefs.h <<_ACEOF 2313#define PACKAGE "$PACKAGE" 2314_ACEOF 2315 2316 2317cat >>confdefs.h <<_ACEOF 2318#define VERSION "$VERSION" 2319_ACEOF 2320 2321# Some tools Automake needs. 2322 2323ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2324 2325 2326AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2327 2328 2329AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2330 2331 2332AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2333 2334 2335MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2336 2337install_sh=${install_sh-"$am_aux_dir/install-sh"} 2338 2339# Installed binaries are usually stripped using `strip' when the user 2340# run `make install-strip'. However `strip' might not be the right 2341# tool to use in cross-compilation environments, therefore Automake 2342# will honor the `STRIP' environment variable to overrule this program. 2343if test "$cross_compiling" != no; then 2344 if test -n "$ac_tool_prefix"; then 2345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2346set dummy ${ac_tool_prefix}strip; ac_word=$2 2347{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2349if test "${ac_cv_prog_STRIP+set}" = set; then 2350 echo $ECHO_N "(cached) $ECHO_C" >&6 2351else 2352 if test -n "$STRIP"; then 2353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2354else 2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2356for as_dir in $PATH 2357do 2358 IFS=$as_save_IFS 2359 test -z "$as_dir" && as_dir=. 2360 for ac_exec_ext in '' $ac_executable_extensions; do 2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2362 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2364 break 2 2365 fi 2366done 2367done 2368IFS=$as_save_IFS 2369 2370fi 2371fi 2372STRIP=$ac_cv_prog_STRIP 2373if test -n "$STRIP"; then 2374 { echo "$as_me:$LINENO: result: $STRIP" >&5 2375echo "${ECHO_T}$STRIP" >&6; } 2376else 2377 { echo "$as_me:$LINENO: result: no" >&5 2378echo "${ECHO_T}no" >&6; } 2379fi 2380 2381 2382fi 2383if test -z "$ac_cv_prog_STRIP"; then 2384 ac_ct_STRIP=$STRIP 2385 # Extract the first word of "strip", so it can be a program name with args. 2386set dummy strip; ac_word=$2 2387{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2389if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2390 echo $ECHO_N "(cached) $ECHO_C" >&6 2391else 2392 if test -n "$ac_ct_STRIP"; then 2393 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2394else 2395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2396for as_dir in $PATH 2397do 2398 IFS=$as_save_IFS 2399 test -z "$as_dir" && as_dir=. 2400 for ac_exec_ext in '' $ac_executable_extensions; do 2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2402 ac_cv_prog_ac_ct_STRIP="strip" 2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2404 break 2 2405 fi 2406done 2407done 2408IFS=$as_save_IFS 2409 2410fi 2411fi 2412ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2413if test -n "$ac_ct_STRIP"; then 2414 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2415echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2416else 2417 { echo "$as_me:$LINENO: result: no" >&5 2418echo "${ECHO_T}no" >&6; } 2419fi 2420 2421 if test "x$ac_ct_STRIP" = x; then 2422 STRIP=":" 2423 else 2424 case $cross_compiling:$ac_tool_warned in 2425yes:) 2426{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2427whose name does not start with the host triplet. If you think this 2428configuration is useful to you, please write to autoconf@gnu.org." >&5 2429echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2430whose name does not start with the host triplet. If you think this 2431configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2432ac_tool_warned=yes ;; 2433esac 2434 STRIP=$ac_ct_STRIP 2435 fi 2436else 2437 STRIP="$ac_cv_prog_STRIP" 2438fi 2439 2440fi 2441INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2442 2443# We need awk for the "check" target. The system "awk" is bad on 2444# some platforms. 2445# Always define AMTAR for backward compatibility. 2446 2447AMTAR=${AMTAR-"${am_missing_run}tar"} 2448 2449am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2450 2451 2452 2453 2454 2455 2456 2457{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2458echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2459 # Check whether --enable-maintainer-mode was given. 2460if test "${enable_maintainer_mode+set}" = set; then 2461 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2462else 2463 USE_MAINTAINER_MODE=no 2464fi 2465 2466 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2467echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2468 2469 2470if test $USE_MAINTAINER_MODE = yes; then 2471 MAINTAINER_MODE_TRUE= 2472 MAINTAINER_MODE_FALSE='#' 2473else 2474 MAINTAINER_MODE_TRUE='#' 2475 MAINTAINER_MODE_FALSE= 2476fi 2477 2478 MAINT=$MAINTAINER_MODE_TRUE 2479 2480 2481 2482# Checks for programs. 2483# Check whether --enable-static was given. 2484if test "${enable_static+set}" = set; then 2485 enableval=$enable_static; p=${PACKAGE-default} 2486 case $enableval in 2487 yes) enable_static=yes ;; 2488 no) enable_static=no ;; 2489 *) 2490 enable_static=no 2491 # Look at the argument we got. We use all the common list separators. 2492 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2493 for pkg in $enableval; do 2494 IFS="$lt_save_ifs" 2495 if test "X$pkg" = "X$p"; then 2496 enable_static=yes 2497 fi 2498 done 2499 IFS="$lt_save_ifs" 2500 ;; 2501 esac 2502else 2503 enable_static=no 2504fi 2505 2506 2507 2508# Check whether --enable-shared was given. 2509if test "${enable_shared+set}" = set; then 2510 enableval=$enable_shared; p=${PACKAGE-default} 2511 case $enableval in 2512 yes) enable_shared=yes ;; 2513 no) enable_shared=no ;; 2514 *) 2515 enable_shared=no 2516 # Look at the argument we got. We use all the common list separators. 2517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2518 for pkg in $enableval; do 2519 IFS="$lt_save_ifs" 2520 if test "X$pkg" = "X$p"; then 2521 enable_shared=yes 2522 fi 2523 done 2524 IFS="$lt_save_ifs" 2525 ;; 2526 esac 2527else 2528 enable_shared=yes 2529fi 2530 2531 2532# Check whether --enable-fast-install was given. 2533if test "${enable_fast_install+set}" = set; then 2534 enableval=$enable_fast_install; p=${PACKAGE-default} 2535 case $enableval in 2536 yes) enable_fast_install=yes ;; 2537 no) enable_fast_install=no ;; 2538 *) 2539 enable_fast_install=no 2540 # Look at the argument we got. We use all the common list separators. 2541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2542 for pkg in $enableval; do 2543 IFS="$lt_save_ifs" 2544 if test "X$pkg" = "X$p"; then 2545 enable_fast_install=yes 2546 fi 2547 done 2548 IFS="$lt_save_ifs" 2549 ;; 2550 esac 2551else 2552 enable_fast_install=yes 2553fi 2554 2555 2556# Make sure we can run config.sub. 2557$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2558 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2559echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2560 { (exit 1); exit 1; }; } 2561 2562{ echo "$as_me:$LINENO: checking build system type" >&5 2563echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2564if test "${ac_cv_build+set}" = set; then 2565 echo $ECHO_N "(cached) $ECHO_C" >&6 2566else 2567 ac_build_alias=$build_alias 2568test "x$ac_build_alias" = x && 2569 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2570test "x$ac_build_alias" = x && 2571 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2572echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2573 { (exit 1); exit 1; }; } 2574ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2575 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2576echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2577 { (exit 1); exit 1; }; } 2578 2579fi 2580{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2581echo "${ECHO_T}$ac_cv_build" >&6; } 2582case $ac_cv_build in 2583*-*-*) ;; 2584*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2585echo "$as_me: error: invalid value of canonical build" >&2;} 2586 { (exit 1); exit 1; }; };; 2587esac 2588build=$ac_cv_build 2589ac_save_IFS=$IFS; IFS='-' 2590set x $ac_cv_build 2591shift 2592build_cpu=$1 2593build_vendor=$2 2594shift; shift 2595# Remember, the first character of IFS is used to create $*, 2596# except with old shells: 2597build_os=$* 2598IFS=$ac_save_IFS 2599case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2600 2601 2602{ echo "$as_me:$LINENO: checking host system type" >&5 2603echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2604if test "${ac_cv_host+set}" = set; then 2605 echo $ECHO_N "(cached) $ECHO_C" >&6 2606else 2607 if test "x$host_alias" = x; then 2608 ac_cv_host=$ac_cv_build 2609else 2610 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2611 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2612echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2613 { (exit 1); exit 1; }; } 2614fi 2615 2616fi 2617{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2618echo "${ECHO_T}$ac_cv_host" >&6; } 2619case $ac_cv_host in 2620*-*-*) ;; 2621*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2622echo "$as_me: error: invalid value of canonical host" >&2;} 2623 { (exit 1); exit 1; }; };; 2624esac 2625host=$ac_cv_host 2626ac_save_IFS=$IFS; IFS='-' 2627set x $ac_cv_host 2628shift 2629host_cpu=$1 2630host_vendor=$2 2631shift; shift 2632# Remember, the first character of IFS is used to create $*, 2633# except with old shells: 2634host_os=$* 2635IFS=$ac_save_IFS 2636case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2637 2638 2639DEPDIR="${am__leading_dot}deps" 2640 2641ac_config_commands="$ac_config_commands depfiles" 2642 2643 2644am_make=${MAKE-make} 2645cat > confinc << 'END' 2646am__doit: 2647 @echo done 2648.PHONY: am__doit 2649END 2650# If we don't find an include directive, just comment out the code. 2651{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2652echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2653am__include="#" 2654am__quote= 2655_am_result=none 2656# First try GNU make style include. 2657echo "include confinc" > confmf 2658# We grep out `Entering directory' and `Leaving directory' 2659# messages which can occur if `w' ends up in MAKEFLAGS. 2660# In particular we don't look at `^make:' because GNU make might 2661# be invoked under some other name (usually "gmake"), in which 2662# case it prints its new name instead of `make'. 2663if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2664 am__include=include 2665 am__quote= 2666 _am_result=GNU 2667fi 2668# Now try BSD make style include. 2669if test "$am__include" = "#"; then 2670 echo '.include "confinc"' > confmf 2671 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2672 am__include=.include 2673 am__quote="\"" 2674 _am_result=BSD 2675 fi 2676fi 2677 2678 2679{ echo "$as_me:$LINENO: result: $_am_result" >&5 2680echo "${ECHO_T}$_am_result" >&6; } 2681rm -f confinc confmf 2682 2683# Check whether --enable-dependency-tracking was given. 2684if test "${enable_dependency_tracking+set}" = set; then 2685 enableval=$enable_dependency_tracking; 2686fi 2687 2688if test "x$enable_dependency_tracking" != xno; then 2689 am_depcomp="$ac_aux_dir/depcomp" 2690 AMDEPBACKSLASH='\' 2691fi 2692 2693 2694if test "x$enable_dependency_tracking" != xno; then 2695 AMDEP_TRUE= 2696 AMDEP_FALSE='#' 2697else 2698 AMDEP_TRUE='#' 2699 AMDEP_FALSE= 2700fi 2701 2702 2703 2704ac_ext=c 2705ac_cpp='$CPP $CPPFLAGS' 2706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2708ac_compiler_gnu=$ac_cv_c_compiler_gnu 2709if test -n "$ac_tool_prefix"; then 2710 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2711set dummy ${ac_tool_prefix}gcc; ac_word=$2 2712{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2714if test "${ac_cv_prog_CC+set}" = set; then 2715 echo $ECHO_N "(cached) $ECHO_C" >&6 2716else 2717 if test -n "$CC"; then 2718 ac_cv_prog_CC="$CC" # Let the user override the test. 2719else 2720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2721for as_dir in $PATH 2722do 2723 IFS=$as_save_IFS 2724 test -z "$as_dir" && as_dir=. 2725 for ac_exec_ext in '' $ac_executable_extensions; do 2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2727 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2729 break 2 2730 fi 2731done 2732done 2733IFS=$as_save_IFS 2734 2735fi 2736fi 2737CC=$ac_cv_prog_CC 2738if test -n "$CC"; then 2739 { echo "$as_me:$LINENO: result: $CC" >&5 2740echo "${ECHO_T}$CC" >&6; } 2741else 2742 { echo "$as_me:$LINENO: result: no" >&5 2743echo "${ECHO_T}no" >&6; } 2744fi 2745 2746 2747fi 2748if test -z "$ac_cv_prog_CC"; then 2749 ac_ct_CC=$CC 2750 # Extract the first word of "gcc", so it can be a program name with args. 2751set dummy gcc; ac_word=$2 2752{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2754if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2755 echo $ECHO_N "(cached) $ECHO_C" >&6 2756else 2757 if test -n "$ac_ct_CC"; then 2758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2759else 2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2761for as_dir in $PATH 2762do 2763 IFS=$as_save_IFS 2764 test -z "$as_dir" && as_dir=. 2765 for ac_exec_ext in '' $ac_executable_extensions; do 2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2767 ac_cv_prog_ac_ct_CC="gcc" 2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2769 break 2 2770 fi 2771done 2772done 2773IFS=$as_save_IFS 2774 2775fi 2776fi 2777ac_ct_CC=$ac_cv_prog_ac_ct_CC 2778if test -n "$ac_ct_CC"; then 2779 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2780echo "${ECHO_T}$ac_ct_CC" >&6; } 2781else 2782 { echo "$as_me:$LINENO: result: no" >&5 2783echo "${ECHO_T}no" >&6; } 2784fi 2785 2786 if test "x$ac_ct_CC" = x; then 2787 CC="" 2788 else 2789 case $cross_compiling:$ac_tool_warned in 2790yes:) 2791{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2792whose name does not start with the host triplet. If you think this 2793configuration is useful to you, please write to autoconf@gnu.org." >&5 2794echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2795whose name does not start with the host triplet. If you think this 2796configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2797ac_tool_warned=yes ;; 2798esac 2799 CC=$ac_ct_CC 2800 fi 2801else 2802 CC="$ac_cv_prog_CC" 2803fi 2804 2805if test -z "$CC"; then 2806 if test -n "$ac_tool_prefix"; then 2807 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2808set dummy ${ac_tool_prefix}cc; ac_word=$2 2809{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2811if test "${ac_cv_prog_CC+set}" = set; then 2812 echo $ECHO_N "(cached) $ECHO_C" >&6 2813else 2814 if test -n "$CC"; then 2815 ac_cv_prog_CC="$CC" # Let the user override the test. 2816else 2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818for as_dir in $PATH 2819do 2820 IFS=$as_save_IFS 2821 test -z "$as_dir" && as_dir=. 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2824 ac_cv_prog_CC="${ac_tool_prefix}cc" 2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2826 break 2 2827 fi 2828done 2829done 2830IFS=$as_save_IFS 2831 2832fi 2833fi 2834CC=$ac_cv_prog_CC 2835if test -n "$CC"; then 2836 { echo "$as_me:$LINENO: result: $CC" >&5 2837echo "${ECHO_T}$CC" >&6; } 2838else 2839 { echo "$as_me:$LINENO: result: no" >&5 2840echo "${ECHO_T}no" >&6; } 2841fi 2842 2843 2844 fi 2845fi 2846if test -z "$CC"; then 2847 # Extract the first word of "cc", so it can be a program name with args. 2848set dummy cc; ac_word=$2 2849{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2851if test "${ac_cv_prog_CC+set}" = set; then 2852 echo $ECHO_N "(cached) $ECHO_C" >&6 2853else 2854 if test -n "$CC"; then 2855 ac_cv_prog_CC="$CC" # Let the user override the test. 2856else 2857 ac_prog_rejected=no 2858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2859for as_dir in $PATH 2860do 2861 IFS=$as_save_IFS 2862 test -z "$as_dir" && as_dir=. 2863 for ac_exec_ext in '' $ac_executable_extensions; do 2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2865 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2866 ac_prog_rejected=yes 2867 continue 2868 fi 2869 ac_cv_prog_CC="cc" 2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873done 2874done 2875IFS=$as_save_IFS 2876 2877if test $ac_prog_rejected = yes; then 2878 # We found a bogon in the path, so make sure we never use it. 2879 set dummy $ac_cv_prog_CC 2880 shift 2881 if test $# != 0; then 2882 # We chose a different compiler from the bogus one. 2883 # However, it has the same basename, so the bogon will be chosen 2884 # first if we set CC to just the basename; use the full file name. 2885 shift 2886 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2887 fi 2888fi 2889fi 2890fi 2891CC=$ac_cv_prog_CC 2892if test -n "$CC"; then 2893 { echo "$as_me:$LINENO: result: $CC" >&5 2894echo "${ECHO_T}$CC" >&6; } 2895else 2896 { echo "$as_me:$LINENO: result: no" >&5 2897echo "${ECHO_T}no" >&6; } 2898fi 2899 2900 2901fi 2902if test -z "$CC"; then 2903 if test -n "$ac_tool_prefix"; then 2904 for ac_prog in cl.exe 2905 do 2906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2907set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2908{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2910if test "${ac_cv_prog_CC+set}" = set; then 2911 echo $ECHO_N "(cached) $ECHO_C" >&6 2912else 2913 if test -n "$CC"; then 2914 ac_cv_prog_CC="$CC" # Let the user override the test. 2915else 2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2917for as_dir in $PATH 2918do 2919 IFS=$as_save_IFS 2920 test -z "$as_dir" && as_dir=. 2921 for ac_exec_ext in '' $ac_executable_extensions; do 2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2925 break 2 2926 fi 2927done 2928done 2929IFS=$as_save_IFS 2930 2931fi 2932fi 2933CC=$ac_cv_prog_CC 2934if test -n "$CC"; then 2935 { echo "$as_me:$LINENO: result: $CC" >&5 2936echo "${ECHO_T}$CC" >&6; } 2937else 2938 { echo "$as_me:$LINENO: result: no" >&5 2939echo "${ECHO_T}no" >&6; } 2940fi 2941 2942 2943 test -n "$CC" && break 2944 done 2945fi 2946if test -z "$CC"; then 2947 ac_ct_CC=$CC 2948 for ac_prog in cl.exe 2949do 2950 # Extract the first word of "$ac_prog", so it can be a program name with args. 2951set dummy $ac_prog; ac_word=$2 2952{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2954if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2955 echo $ECHO_N "(cached) $ECHO_C" >&6 2956else 2957 if test -n "$ac_ct_CC"; then 2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2959else 2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2961for as_dir in $PATH 2962do 2963 IFS=$as_save_IFS 2964 test -z "$as_dir" && as_dir=. 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2967 ac_cv_prog_ac_ct_CC="$ac_prog" 2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972done 2973IFS=$as_save_IFS 2974 2975fi 2976fi 2977ac_ct_CC=$ac_cv_prog_ac_ct_CC 2978if test -n "$ac_ct_CC"; then 2979 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2980echo "${ECHO_T}$ac_ct_CC" >&6; } 2981else 2982 { echo "$as_me:$LINENO: result: no" >&5 2983echo "${ECHO_T}no" >&6; } 2984fi 2985 2986 2987 test -n "$ac_ct_CC" && break 2988done 2989 2990 if test "x$ac_ct_CC" = x; then 2991 CC="" 2992 else 2993 case $cross_compiling:$ac_tool_warned in 2994yes:) 2995{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2996whose name does not start with the host triplet. If you think this 2997configuration is useful to you, please write to autoconf@gnu.org." >&5 2998echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2999whose name does not start with the host triplet. If you think this 3000configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3001ac_tool_warned=yes ;; 3002esac 3003 CC=$ac_ct_CC 3004 fi 3005fi 3006 3007fi 3008 3009 3010test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3011See \`config.log' for more details." >&5 3012echo "$as_me: error: no acceptable C compiler found in \$PATH 3013See \`config.log' for more details." >&2;} 3014 { (exit 1); exit 1; }; } 3015 3016# Provide some information about the compiler. 3017echo "$as_me:$LINENO: checking for C compiler version" >&5 3018ac_compiler=`set X $ac_compile; echo $2` 3019{ (ac_try="$ac_compiler --version >&5" 3020case "(($ac_try" in 3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3022 *) ac_try_echo=$ac_try;; 3023esac 3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3025 (eval "$ac_compiler --version >&5") 2>&5 3026 ac_status=$? 3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3028 (exit $ac_status); } 3029{ (ac_try="$ac_compiler -v >&5" 3030case "(($ac_try" in 3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3032 *) ac_try_echo=$ac_try;; 3033esac 3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3035 (eval "$ac_compiler -v >&5") 2>&5 3036 ac_status=$? 3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3038 (exit $ac_status); } 3039{ (ac_try="$ac_compiler -V >&5" 3040case "(($ac_try" in 3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3042 *) ac_try_echo=$ac_try;; 3043esac 3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3045 (eval "$ac_compiler -V >&5") 2>&5 3046 ac_status=$? 3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3048 (exit $ac_status); } 3049 3050cat >conftest.$ac_ext <<_ACEOF 3051/* confdefs.h. */ 3052_ACEOF 3053cat confdefs.h >>conftest.$ac_ext 3054cat >>conftest.$ac_ext <<_ACEOF 3055/* end confdefs.h. */ 3056 3057int 3058main () 3059{ 3060 3061 ; 3062 return 0; 3063} 3064_ACEOF 3065ac_clean_files_save=$ac_clean_files 3066ac_clean_files="$ac_clean_files a.out a.exe b.out" 3067# Try to create an executable without -o first, disregard a.out. 3068# It will help us diagnose broken compilers, and finding out an intuition 3069# of exeext. 3070{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3071echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 3072ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3073# 3074# List of possible output files, starting from the most likely. 3075# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 3076# only as a last resort. b.out is created by i960 compilers. 3077ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 3078# 3079# The IRIX 6 linker writes into existing files which may not be 3080# executable, retaining their permissions. Remove them first so a 3081# subsequent execution test works. 3082ac_rmfiles= 3083for ac_file in $ac_files 3084do 3085 case $ac_file in 3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3087 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3088 esac 3089done 3090rm -f $ac_rmfiles 3091 3092if { (ac_try="$ac_link_default" 3093case "(($ac_try" in 3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3095 *) ac_try_echo=$ac_try;; 3096esac 3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3098 (eval "$ac_link_default") 2>&5 3099 ac_status=$? 3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3101 (exit $ac_status); }; then 3102 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3103# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3104# in a Makefile. We should not override ac_cv_exeext if it was cached, 3105# so that the user can short-circuit this test for compilers unknown to 3106# Autoconf. 3107for ac_file in $ac_files 3108do 3109 test -f "$ac_file" || continue 3110 case $ac_file in 3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3112 ;; 3113 [ab].out ) 3114 # We found the default executable, but exeext='' is most 3115 # certainly right. 3116 break;; 3117 *.* ) 3118 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3119 then :; else 3120 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3121 fi 3122 # We set ac_cv_exeext here because the later test for it is not 3123 # safe: cross compilers may not add the suffix if given an `-o' 3124 # argument, so we may need to know it at that point already. 3125 # Even if this section looks crufty: it has the advantage of 3126 # actually working. 3127 break;; 3128 * ) 3129 break;; 3130 esac 3131done 3132test "$ac_cv_exeext" = no && ac_cv_exeext= 3133 3134else 3135 echo "$as_me: failed program was:" >&5 3136sed 's/^/| /' conftest.$ac_ext >&5 3137 3138{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3139See \`config.log' for more details." >&5 3140echo "$as_me: error: C compiler cannot create executables 3141See \`config.log' for more details." >&2;} 3142 { (exit 77); exit 77; }; } 3143fi 3144 3145ac_exeext=$ac_cv_exeext 3146{ echo "$as_me:$LINENO: result: $ac_file" >&5 3147echo "${ECHO_T}$ac_file" >&6; } 3148 3149# Check that the compiler produces executables we can run. If not, either 3150# the compiler is broken, or we cross compile. 3151{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3152echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3153# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3154# If not cross compiling, check that we can run a simple program. 3155if test "$cross_compiling" != yes; then 3156 if { ac_try='./$ac_file' 3157 { (case "(($ac_try" in 3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3159 *) ac_try_echo=$ac_try;; 3160esac 3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3162 (eval "$ac_try") 2>&5 3163 ac_status=$? 3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3165 (exit $ac_status); }; }; then 3166 cross_compiling=no 3167 else 3168 if test "$cross_compiling" = maybe; then 3169 cross_compiling=yes 3170 else 3171 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3172If you meant to cross compile, use \`--host'. 3173See \`config.log' for more details." >&5 3174echo "$as_me: error: cannot run C compiled programs. 3175If you meant to cross compile, use \`--host'. 3176See \`config.log' for more details." >&2;} 3177 { (exit 1); exit 1; }; } 3178 fi 3179 fi 3180fi 3181{ echo "$as_me:$LINENO: result: yes" >&5 3182echo "${ECHO_T}yes" >&6; } 3183 3184rm -f a.out a.exe conftest$ac_cv_exeext b.out 3185ac_clean_files=$ac_clean_files_save 3186# Check that the compiler produces executables we can run. If not, either 3187# the compiler is broken, or we cross compile. 3188{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3189echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3190{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3191echo "${ECHO_T}$cross_compiling" >&6; } 3192 3193{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3194echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3195if { (ac_try="$ac_link" 3196case "(($ac_try" in 3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3198 *) ac_try_echo=$ac_try;; 3199esac 3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3201 (eval "$ac_link") 2>&5 3202 ac_status=$? 3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3204 (exit $ac_status); }; then 3205 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3206# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3207# work properly (i.e., refer to `conftest.exe'), while it won't with 3208# `rm'. 3209for ac_file in conftest.exe conftest conftest.*; do 3210 test -f "$ac_file" || continue 3211 case $ac_file in 3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3213 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3214 break;; 3215 * ) break;; 3216 esac 3217done 3218else 3219 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3220See \`config.log' for more details." >&5 3221echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3222See \`config.log' for more details." >&2;} 3223 { (exit 1); exit 1; }; } 3224fi 3225 3226rm -f conftest$ac_cv_exeext 3227{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3228echo "${ECHO_T}$ac_cv_exeext" >&6; } 3229 3230rm -f conftest.$ac_ext 3231EXEEXT=$ac_cv_exeext 3232ac_exeext=$EXEEXT 3233{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3234echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3235if test "${ac_cv_objext+set}" = set; then 3236 echo $ECHO_N "(cached) $ECHO_C" >&6 3237else 3238 cat >conftest.$ac_ext <<_ACEOF 3239/* confdefs.h. */ 3240_ACEOF 3241cat confdefs.h >>conftest.$ac_ext 3242cat >>conftest.$ac_ext <<_ACEOF 3243/* end confdefs.h. */ 3244 3245int 3246main () 3247{ 3248 3249 ; 3250 return 0; 3251} 3252_ACEOF 3253rm -f conftest.o conftest.obj 3254if { (ac_try="$ac_compile" 3255case "(($ac_try" in 3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3257 *) ac_try_echo=$ac_try;; 3258esac 3259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3260 (eval "$ac_compile") 2>&5 3261 ac_status=$? 3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3263 (exit $ac_status); }; then 3264 for ac_file in conftest.o conftest.obj conftest.*; do 3265 test -f "$ac_file" || continue; 3266 case $ac_file in 3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3269 break;; 3270 esac 3271done 3272else 3273 echo "$as_me: failed program was:" >&5 3274sed 's/^/| /' conftest.$ac_ext >&5 3275 3276{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3277See \`config.log' for more details." >&5 3278echo "$as_me: error: cannot compute suffix of object files: cannot compile 3279See \`config.log' for more details." >&2;} 3280 { (exit 1); exit 1; }; } 3281fi 3282 3283rm -f conftest.$ac_cv_objext conftest.$ac_ext 3284fi 3285{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3286echo "${ECHO_T}$ac_cv_objext" >&6; } 3287OBJEXT=$ac_cv_objext 3288ac_objext=$OBJEXT 3289{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3290echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3291if test "${ac_cv_c_compiler_gnu+set}" = set; then 3292 echo $ECHO_N "(cached) $ECHO_C" >&6 3293else 3294 cat >conftest.$ac_ext <<_ACEOF 3295/* confdefs.h. */ 3296_ACEOF 3297cat confdefs.h >>conftest.$ac_ext 3298cat >>conftest.$ac_ext <<_ACEOF 3299/* end confdefs.h. */ 3300 3301int 3302main () 3303{ 3304#ifndef __GNUC__ 3305 choke me 3306#endif 3307 3308 ; 3309 return 0; 3310} 3311_ACEOF 3312rm -f conftest.$ac_objext 3313if { (ac_try="$ac_compile" 3314case "(($ac_try" in 3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3316 *) ac_try_echo=$ac_try;; 3317esac 3318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3319 (eval "$ac_compile") 2>conftest.er1 3320 ac_status=$? 3321 grep -v '^ *+' conftest.er1 >conftest.err 3322 rm -f conftest.er1 3323 cat conftest.err >&5 3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3325 (exit $ac_status); } && 3326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3327 { (case "(($ac_try" in 3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3329 *) ac_try_echo=$ac_try;; 3330esac 3331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3332 (eval "$ac_try") 2>&5 3333 ac_status=$? 3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3335 (exit $ac_status); }; } && 3336 { ac_try='test -s conftest.$ac_objext' 3337 { (case "(($ac_try" in 3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3339 *) ac_try_echo=$ac_try;; 3340esac 3341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3342 (eval "$ac_try") 2>&5 3343 ac_status=$? 3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3345 (exit $ac_status); }; }; then 3346 ac_compiler_gnu=yes 3347else 3348 echo "$as_me: failed program was:" >&5 3349sed 's/^/| /' conftest.$ac_ext >&5 3350 3351 ac_compiler_gnu=no 3352fi 3353 3354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3355ac_cv_c_compiler_gnu=$ac_compiler_gnu 3356 3357fi 3358{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3359echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3360GCC=`test $ac_compiler_gnu = yes && echo yes` 3361ac_test_CFLAGS=${CFLAGS+set} 3362ac_save_CFLAGS=$CFLAGS 3363{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3364echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3365if test "${ac_cv_prog_cc_g+set}" = set; then 3366 echo $ECHO_N "(cached) $ECHO_C" >&6 3367else 3368 ac_save_c_werror_flag=$ac_c_werror_flag 3369 ac_c_werror_flag=yes 3370 ac_cv_prog_cc_g=no 3371 CFLAGS="-g" 3372 cat >conftest.$ac_ext <<_ACEOF 3373/* confdefs.h. */ 3374_ACEOF 3375cat confdefs.h >>conftest.$ac_ext 3376cat >>conftest.$ac_ext <<_ACEOF 3377/* end confdefs.h. */ 3378 3379int 3380main () 3381{ 3382 3383 ; 3384 return 0; 3385} 3386_ACEOF 3387rm -f conftest.$ac_objext 3388if { (ac_try="$ac_compile" 3389case "(($ac_try" in 3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3391 *) ac_try_echo=$ac_try;; 3392esac 3393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3394 (eval "$ac_compile") 2>conftest.er1 3395 ac_status=$? 3396 grep -v '^ *+' conftest.er1 >conftest.err 3397 rm -f conftest.er1 3398 cat conftest.err >&5 3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3400 (exit $ac_status); } && 3401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3402 { (case "(($ac_try" in 3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3404 *) ac_try_echo=$ac_try;; 3405esac 3406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3407 (eval "$ac_try") 2>&5 3408 ac_status=$? 3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3410 (exit $ac_status); }; } && 3411 { ac_try='test -s conftest.$ac_objext' 3412 { (case "(($ac_try" in 3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3414 *) ac_try_echo=$ac_try;; 3415esac 3416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3417 (eval "$ac_try") 2>&5 3418 ac_status=$? 3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3420 (exit $ac_status); }; }; then 3421 ac_cv_prog_cc_g=yes 3422else 3423 echo "$as_me: failed program was:" >&5 3424sed 's/^/| /' conftest.$ac_ext >&5 3425 3426 CFLAGS="" 3427 cat >conftest.$ac_ext <<_ACEOF 3428/* confdefs.h. */ 3429_ACEOF 3430cat confdefs.h >>conftest.$ac_ext 3431cat >>conftest.$ac_ext <<_ACEOF 3432/* end confdefs.h. */ 3433 3434int 3435main () 3436{ 3437 3438 ; 3439 return 0; 3440} 3441_ACEOF 3442rm -f conftest.$ac_objext 3443if { (ac_try="$ac_compile" 3444case "(($ac_try" in 3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3446 *) ac_try_echo=$ac_try;; 3447esac 3448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3449 (eval "$ac_compile") 2>conftest.er1 3450 ac_status=$? 3451 grep -v '^ *+' conftest.er1 >conftest.err 3452 rm -f conftest.er1 3453 cat conftest.err >&5 3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3455 (exit $ac_status); } && 3456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3457 { (case "(($ac_try" in 3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3459 *) ac_try_echo=$ac_try;; 3460esac 3461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3462 (eval "$ac_try") 2>&5 3463 ac_status=$? 3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3465 (exit $ac_status); }; } && 3466 { ac_try='test -s conftest.$ac_objext' 3467 { (case "(($ac_try" in 3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3469 *) ac_try_echo=$ac_try;; 3470esac 3471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3472 (eval "$ac_try") 2>&5 3473 ac_status=$? 3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3475 (exit $ac_status); }; }; then 3476 : 3477else 3478 echo "$as_me: failed program was:" >&5 3479sed 's/^/| /' conftest.$ac_ext >&5 3480 3481 ac_c_werror_flag=$ac_save_c_werror_flag 3482 CFLAGS="-g" 3483 cat >conftest.$ac_ext <<_ACEOF 3484/* confdefs.h. */ 3485_ACEOF 3486cat confdefs.h >>conftest.$ac_ext 3487cat >>conftest.$ac_ext <<_ACEOF 3488/* end confdefs.h. */ 3489 3490int 3491main () 3492{ 3493 3494 ; 3495 return 0; 3496} 3497_ACEOF 3498rm -f conftest.$ac_objext 3499if { (ac_try="$ac_compile" 3500case "(($ac_try" in 3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3502 *) ac_try_echo=$ac_try;; 3503esac 3504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3505 (eval "$ac_compile") 2>conftest.er1 3506 ac_status=$? 3507 grep -v '^ *+' conftest.er1 >conftest.err 3508 rm -f conftest.er1 3509 cat conftest.err >&5 3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3511 (exit $ac_status); } && 3512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3513 { (case "(($ac_try" in 3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3515 *) ac_try_echo=$ac_try;; 3516esac 3517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3518 (eval "$ac_try") 2>&5 3519 ac_status=$? 3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3521 (exit $ac_status); }; } && 3522 { ac_try='test -s conftest.$ac_objext' 3523 { (case "(($ac_try" in 3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3525 *) ac_try_echo=$ac_try;; 3526esac 3527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3528 (eval "$ac_try") 2>&5 3529 ac_status=$? 3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3531 (exit $ac_status); }; }; then 3532 ac_cv_prog_cc_g=yes 3533else 3534 echo "$as_me: failed program was:" >&5 3535sed 's/^/| /' conftest.$ac_ext >&5 3536 3537 3538fi 3539 3540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3541fi 3542 3543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3544fi 3545 3546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3547 ac_c_werror_flag=$ac_save_c_werror_flag 3548fi 3549{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3550echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3551if test "$ac_test_CFLAGS" = set; then 3552 CFLAGS=$ac_save_CFLAGS 3553elif test $ac_cv_prog_cc_g = yes; then 3554 if test "$GCC" = yes; then 3555 CFLAGS="-g -O2" 3556 else 3557 CFLAGS="-g" 3558 fi 3559else 3560 if test "$GCC" = yes; then 3561 CFLAGS="-O2" 3562 else 3563 CFLAGS= 3564 fi 3565fi 3566{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3567echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3568if test "${ac_cv_prog_cc_c89+set}" = set; then 3569 echo $ECHO_N "(cached) $ECHO_C" >&6 3570else 3571 ac_cv_prog_cc_c89=no 3572ac_save_CC=$CC 3573cat >conftest.$ac_ext <<_ACEOF 3574/* confdefs.h. */ 3575_ACEOF 3576cat confdefs.h >>conftest.$ac_ext 3577cat >>conftest.$ac_ext <<_ACEOF 3578/* end confdefs.h. */ 3579#include <stdarg.h> 3580#include <stdio.h> 3581#include <sys/types.h> 3582#include <sys/stat.h> 3583/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3584struct buf { int x; }; 3585FILE * (*rcsopen) (struct buf *, struct stat *, int); 3586static char *e (p, i) 3587 char **p; 3588 int i; 3589{ 3590 return p[i]; 3591} 3592static char *f (char * (*g) (char **, int), char **p, ...) 3593{ 3594 char *s; 3595 va_list v; 3596 va_start (v,p); 3597 s = g (p, va_arg (v,int)); 3598 va_end (v); 3599 return s; 3600} 3601 3602/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3603 function prototypes and stuff, but not '\xHH' hex character constants. 3604 These don't provoke an error unfortunately, instead are silently treated 3605 as 'x'. The following induces an error, until -std is added to get 3606 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3607 array size at least. It's necessary to write '\x00'==0 to get something 3608 that's true only with -std. */ 3609int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3610 3611/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3612 inside strings and character constants. */ 3613#define FOO(x) 'x' 3614int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3615 3616int test (int i, double x); 3617struct s1 {int (*f) (int a);}; 3618struct s2 {int (*f) (double a);}; 3619int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3620int argc; 3621char **argv; 3622int 3623main () 3624{ 3625return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3626 ; 3627 return 0; 3628} 3629_ACEOF 3630for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3631 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3632do 3633 CC="$ac_save_CC $ac_arg" 3634 rm -f conftest.$ac_objext 3635if { (ac_try="$ac_compile" 3636case "(($ac_try" in 3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3638 *) ac_try_echo=$ac_try;; 3639esac 3640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3641 (eval "$ac_compile") 2>conftest.er1 3642 ac_status=$? 3643 grep -v '^ *+' conftest.er1 >conftest.err 3644 rm -f conftest.er1 3645 cat conftest.err >&5 3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3647 (exit $ac_status); } && 3648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3649 { (case "(($ac_try" in 3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3651 *) ac_try_echo=$ac_try;; 3652esac 3653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3654 (eval "$ac_try") 2>&5 3655 ac_status=$? 3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3657 (exit $ac_status); }; } && 3658 { ac_try='test -s conftest.$ac_objext' 3659 { (case "(($ac_try" in 3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3661 *) ac_try_echo=$ac_try;; 3662esac 3663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3664 (eval "$ac_try") 2>&5 3665 ac_status=$? 3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3667 (exit $ac_status); }; }; then 3668 ac_cv_prog_cc_c89=$ac_arg 3669else 3670 echo "$as_me: failed program was:" >&5 3671sed 's/^/| /' conftest.$ac_ext >&5 3672 3673 3674fi 3675 3676rm -f core conftest.err conftest.$ac_objext 3677 test "x$ac_cv_prog_cc_c89" != "xno" && break 3678done 3679rm -f conftest.$ac_ext 3680CC=$ac_save_CC 3681 3682fi 3683# AC_CACHE_VAL 3684case "x$ac_cv_prog_cc_c89" in 3685 x) 3686 { echo "$as_me:$LINENO: result: none needed" >&5 3687echo "${ECHO_T}none needed" >&6; } ;; 3688 xno) 3689 { echo "$as_me:$LINENO: result: unsupported" >&5 3690echo "${ECHO_T}unsupported" >&6; } ;; 3691 *) 3692 CC="$CC $ac_cv_prog_cc_c89" 3693 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3694echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3695esac 3696 3697 3698ac_ext=c 3699ac_cpp='$CPP $CPPFLAGS' 3700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3702ac_compiler_gnu=$ac_cv_c_compiler_gnu 3703 3704depcc="$CC" am_compiler_list= 3705 3706{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3707echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3708if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3709 echo $ECHO_N "(cached) $ECHO_C" >&6 3710else 3711 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3712 # We make a subdir and do the tests there. Otherwise we can end up 3713 # making bogus files that we don't know about and never remove. For 3714 # instance it was reported that on HP-UX the gcc test will end up 3715 # making a dummy file named `D' -- because `-MD' means `put the output 3716 # in D'. 3717 mkdir conftest.dir 3718 # Copy depcomp to subdir because otherwise we won't find it if we're 3719 # using a relative directory. 3720 cp "$am_depcomp" conftest.dir 3721 cd conftest.dir 3722 # We will build objects and dependencies in a subdirectory because 3723 # it helps to detect inapplicable dependency modes. For instance 3724 # both Tru64's cc and ICC support -MD to output dependencies as a 3725 # side effect of compilation, but ICC will put the dependencies in 3726 # the current directory while Tru64 will put them in the object 3727 # directory. 3728 mkdir sub 3729 3730 am_cv_CC_dependencies_compiler_type=none 3731 if test "$am_compiler_list" = ""; then 3732 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3733 fi 3734 for depmode in $am_compiler_list; do 3735 # Setup a source with many dependencies, because some compilers 3736 # like to wrap large dependency lists on column 80 (with \), and 3737 # we should not choose a depcomp mode which is confused by this. 3738 # 3739 # We need to recreate these files for each test, as the compiler may 3740 # overwrite some of them when testing with obscure command lines. 3741 # This happens at least with the AIX C compiler. 3742 : > sub/conftest.c 3743 for i in 1 2 3 4 5 6; do 3744 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3745 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3746 # Solaris 8's {/usr,}/bin/sh. 3747 touch sub/conftst$i.h 3748 done 3749 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3750 3751 case $depmode in 3752 nosideeffect) 3753 # after this tag, mechanisms are not by side-effect, so they'll 3754 # only be used when explicitly requested 3755 if test "x$enable_dependency_tracking" = xyes; then 3756 continue 3757 else 3758 break 3759 fi 3760 ;; 3761 none) break ;; 3762 esac 3763 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3764 # mode. It turns out that the SunPro C++ compiler does not properly 3765 # handle `-M -o', and we need to detect this. 3766 if depmode=$depmode \ 3767 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3768 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3769 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3770 >/dev/null 2>conftest.err && 3771 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3772 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3773 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3774 # icc doesn't choke on unknown options, it will just issue warnings 3775 # or remarks (even with -Werror). So we grep stderr for any message 3776 # that says an option was ignored or not supported. 3777 # When given -MP, icc 7.0 and 7.1 complain thusly: 3778 # icc: Command line warning: ignoring option '-M'; no argument required 3779 # The diagnosis changed in icc 8.0: 3780 # icc: Command line remark: option '-MP' not supported 3781 if (grep 'ignoring option' conftest.err || 3782 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3783 am_cv_CC_dependencies_compiler_type=$depmode 3784 break 3785 fi 3786 fi 3787 done 3788 3789 cd .. 3790 rm -rf conftest.dir 3791else 3792 am_cv_CC_dependencies_compiler_type=none 3793fi 3794 3795fi 3796{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3797echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3798CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3799 3800 3801 3802if 3803 test "x$enable_dependency_tracking" != xno \ 3804 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3805 am__fastdepCC_TRUE= 3806 am__fastdepCC_FALSE='#' 3807else 3808 am__fastdepCC_TRUE='#' 3809 am__fastdepCC_FALSE= 3810fi 3811 3812 3813{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3814echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3815if test "${lt_cv_path_SED+set}" = set; then 3816 echo $ECHO_N "(cached) $ECHO_C" >&6 3817else 3818 # Loop through the user's path and test for sed and gsed. 3819# Then use that list of sed's as ones to test for truncation. 3820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3821for as_dir in $PATH 3822do 3823 IFS=$as_save_IFS 3824 test -z "$as_dir" && as_dir=. 3825 for lt_ac_prog in sed gsed; do 3826 for ac_exec_ext in '' $ac_executable_extensions; do 3827 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3828 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3829 fi 3830 done 3831 done 3832done 3833lt_ac_max=0 3834lt_ac_count=0 3835# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3836# along with /bin/sed that truncates output. 3837for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3838 test ! -f $lt_ac_sed && continue 3839 cat /dev/null > conftest.in 3840 lt_ac_count=0 3841 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3842 # Check for GNU sed and select it if it is found. 3843 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3844 lt_cv_path_SED=$lt_ac_sed 3845 break 3846 fi 3847 while true; do 3848 cat conftest.in conftest.in >conftest.tmp 3849 mv conftest.tmp conftest.in 3850 cp conftest.in conftest.nl 3851 echo >>conftest.nl 3852 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3853 cmp -s conftest.out conftest.nl || break 3854 # 10000 chars as input seems more than enough 3855 test $lt_ac_count -gt 10 && break 3856 lt_ac_count=`expr $lt_ac_count + 1` 3857 if test $lt_ac_count -gt $lt_ac_max; then 3858 lt_ac_max=$lt_ac_count 3859 lt_cv_path_SED=$lt_ac_sed 3860 fi 3861 done 3862done 3863 3864fi 3865 3866SED=$lt_cv_path_SED 3867{ echo "$as_me:$LINENO: result: $SED" >&5 3868echo "${ECHO_T}$SED" >&6; } 3869 3870{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3871echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3872if test "${ac_cv_path_GREP+set}" = set; then 3873 echo $ECHO_N "(cached) $ECHO_C" >&6 3874else 3875 # Extract the first word of "grep ggrep" to use in msg output 3876if test -z "$GREP"; then 3877set dummy grep ggrep; ac_prog_name=$2 3878if test "${ac_cv_path_GREP+set}" = set; then 3879 echo $ECHO_N "(cached) $ECHO_C" >&6 3880else 3881 ac_path_GREP_found=false 3882# Loop through the user's path and test for each of PROGNAME-LIST 3883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3884for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3885do 3886 IFS=$as_save_IFS 3887 test -z "$as_dir" && as_dir=. 3888 for ac_prog in grep ggrep; do 3889 for ac_exec_ext in '' $ac_executable_extensions; do 3890 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3891 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3892 # Check for GNU ac_path_GREP and select it if it is found. 3893 # Check for GNU $ac_path_GREP 3894case `"$ac_path_GREP" --version 2>&1` in 3895*GNU*) 3896 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3897*) 3898 ac_count=0 3899 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3900 while : 3901 do 3902 cat "conftest.in" "conftest.in" >"conftest.tmp" 3903 mv "conftest.tmp" "conftest.in" 3904 cp "conftest.in" "conftest.nl" 3905 echo 'GREP' >> "conftest.nl" 3906 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3908 ac_count=`expr $ac_count + 1` 3909 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3910 # Best one so far, save it but keep looking for a better one 3911 ac_cv_path_GREP="$ac_path_GREP" 3912 ac_path_GREP_max=$ac_count 3913 fi 3914 # 10*(2^10) chars as input seems more than enough 3915 test $ac_count -gt 10 && break 3916 done 3917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3918esac 3919 3920 3921 $ac_path_GREP_found && break 3 3922 done 3923done 3924 3925done 3926IFS=$as_save_IFS 3927 3928 3929fi 3930 3931GREP="$ac_cv_path_GREP" 3932if test -z "$GREP"; then 3933 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3934echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3935 { (exit 1); exit 1; }; } 3936fi 3937 3938else 3939 ac_cv_path_GREP=$GREP 3940fi 3941 3942 3943fi 3944{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3945echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3946 GREP="$ac_cv_path_GREP" 3947 3948 3949{ echo "$as_me:$LINENO: checking for egrep" >&5 3950echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3951if test "${ac_cv_path_EGREP+set}" = set; then 3952 echo $ECHO_N "(cached) $ECHO_C" >&6 3953else 3954 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3955 then ac_cv_path_EGREP="$GREP -E" 3956 else 3957 # Extract the first word of "egrep" to use in msg output 3958if test -z "$EGREP"; then 3959set dummy egrep; ac_prog_name=$2 3960if test "${ac_cv_path_EGREP+set}" = set; then 3961 echo $ECHO_N "(cached) $ECHO_C" >&6 3962else 3963 ac_path_EGREP_found=false 3964# Loop through the user's path and test for each of PROGNAME-LIST 3965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3966for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3967do 3968 IFS=$as_save_IFS 3969 test -z "$as_dir" && as_dir=. 3970 for ac_prog in egrep; do 3971 for ac_exec_ext in '' $ac_executable_extensions; do 3972 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3973 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3974 # Check for GNU ac_path_EGREP and select it if it is found. 3975 # Check for GNU $ac_path_EGREP 3976case `"$ac_path_EGREP" --version 2>&1` in 3977*GNU*) 3978 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3979*) 3980 ac_count=0 3981 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3982 while : 3983 do 3984 cat "conftest.in" "conftest.in" >"conftest.tmp" 3985 mv "conftest.tmp" "conftest.in" 3986 cp "conftest.in" "conftest.nl" 3987 echo 'EGREP' >> "conftest.nl" 3988 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3990 ac_count=`expr $ac_count + 1` 3991 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3992 # Best one so far, save it but keep looking for a better one 3993 ac_cv_path_EGREP="$ac_path_EGREP" 3994 ac_path_EGREP_max=$ac_count 3995 fi 3996 # 10*(2^10) chars as input seems more than enough 3997 test $ac_count -gt 10 && break 3998 done 3999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4000esac 4001 4002 4003 $ac_path_EGREP_found && break 3 4004 done 4005done 4006 4007done 4008IFS=$as_save_IFS 4009 4010 4011fi 4012 4013EGREP="$ac_cv_path_EGREP" 4014if test -z "$EGREP"; then 4015 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4016echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4017 { (exit 1); exit 1; }; } 4018fi 4019 4020else 4021 ac_cv_path_EGREP=$EGREP 4022fi 4023 4024 4025 fi 4026fi 4027{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4028echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4029 EGREP="$ac_cv_path_EGREP" 4030 4031 4032 4033# Check whether --with-gnu-ld was given. 4034if test "${with_gnu_ld+set}" = set; then 4035 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4036else 4037 with_gnu_ld=no 4038fi 4039 4040ac_prog=ld 4041if test "$GCC" = yes; then 4042 # Check if gcc -print-prog-name=ld gives a path. 4043 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4044echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4045 case $host in 4046 *-*-mingw*) 4047 # gcc leaves a trailing carriage return which upsets mingw 4048 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4049 *) 4050 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4051 esac 4052 case $ac_prog in 4053 # Accept absolute paths. 4054 [\\/]* | ?:[\\/]*) 4055 re_direlt='/[^/][^/]*/\.\./' 4056 # Canonicalize the pathname of ld 4057 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4058 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4059 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4060 done 4061 test -z "$LD" && LD="$ac_prog" 4062 ;; 4063 "") 4064 # If it fails, then pretend we aren't using GCC. 4065 ac_prog=ld 4066 ;; 4067 *) 4068 # If it is relative, then search for the first ld in PATH. 4069 with_gnu_ld=unknown 4070 ;; 4071 esac 4072elif test "$with_gnu_ld" = yes; then 4073 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4074echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4075else 4076 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4077echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4078fi 4079if test "${lt_cv_path_LD+set}" = set; then 4080 echo $ECHO_N "(cached) $ECHO_C" >&6 4081else 4082 if test -z "$LD"; then 4083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4084 for ac_dir in $PATH; do 4085 IFS="$lt_save_ifs" 4086 test -z "$ac_dir" && ac_dir=. 4087 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4088 lt_cv_path_LD="$ac_dir/$ac_prog" 4089 # Check to see if the program is GNU ld. I'd rather use --version, 4090 # but apparently some variants of GNU ld only accept -v. 4091 # Break only if it was the GNU/non-GNU ld that we prefer. 4092 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4093 *GNU* | *'with BFD'*) 4094 test "$with_gnu_ld" != no && break 4095 ;; 4096 *) 4097 test "$with_gnu_ld" != yes && break 4098 ;; 4099 esac 4100 fi 4101 done 4102 IFS="$lt_save_ifs" 4103else 4104 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4105fi 4106fi 4107 4108LD="$lt_cv_path_LD" 4109if test -n "$LD"; then 4110 { echo "$as_me:$LINENO: result: $LD" >&5 4111echo "${ECHO_T}$LD" >&6; } 4112else 4113 { echo "$as_me:$LINENO: result: no" >&5 4114echo "${ECHO_T}no" >&6; } 4115fi 4116test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4117echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4118 { (exit 1); exit 1; }; } 4119{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4120echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4121if test "${lt_cv_prog_gnu_ld+set}" = set; then 4122 echo $ECHO_N "(cached) $ECHO_C" >&6 4123else 4124 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4125case `$LD -v 2>&1 </dev/null` in 4126*GNU* | *'with BFD'*) 4127 lt_cv_prog_gnu_ld=yes 4128 ;; 4129*) 4130 lt_cv_prog_gnu_ld=no 4131 ;; 4132esac 4133fi 4134{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4135echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4136with_gnu_ld=$lt_cv_prog_gnu_ld 4137 4138 4139{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4140echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4141if test "${lt_cv_ld_reload_flag+set}" = set; then 4142 echo $ECHO_N "(cached) $ECHO_C" >&6 4143else 4144 lt_cv_ld_reload_flag='-r' 4145fi 4146{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4147echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4148reload_flag=$lt_cv_ld_reload_flag 4149case $reload_flag in 4150"" | " "*) ;; 4151*) reload_flag=" $reload_flag" ;; 4152esac 4153reload_cmds='$LD$reload_flag -o $output$reload_objs' 4154case $host_os in 4155 darwin*) 4156 if test "$GCC" = yes; then 4157 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4158 else 4159 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4160 fi 4161 ;; 4162esac 4163 4164{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4165echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4166if test "${lt_cv_path_NM+set}" = set; then 4167 echo $ECHO_N "(cached) $ECHO_C" >&6 4168else 4169 if test -n "$NM"; then 4170 # Let the user override the test. 4171 lt_cv_path_NM="$NM" 4172else 4173 lt_nm_to_check="${ac_tool_prefix}nm" 4174 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4175 lt_nm_to_check="$lt_nm_to_check nm" 4176 fi 4177 for lt_tmp_nm in $lt_nm_to_check; do 4178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4179 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4180 IFS="$lt_save_ifs" 4181 test -z "$ac_dir" && ac_dir=. 4182 tmp_nm="$ac_dir/$lt_tmp_nm" 4183 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4184 # Check to see if the nm accepts a BSD-compat flag. 4185 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4186 # nm: unknown option "B" ignored 4187 # Tru64's nm complains that /dev/null is an invalid object file 4188 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4189 */dev/null* | *'Invalid file or object type'*) 4190 lt_cv_path_NM="$tmp_nm -B" 4191 break 4192 ;; 4193 *) 4194 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4195 */dev/null*) 4196 lt_cv_path_NM="$tmp_nm -p" 4197 break 4198 ;; 4199 *) 4200 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4201 continue # so that we can try to find one that supports BSD flags 4202 ;; 4203 esac 4204 ;; 4205 esac 4206 fi 4207 done 4208 IFS="$lt_save_ifs" 4209 done 4210 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4211fi 4212fi 4213{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4214echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4215NM="$lt_cv_path_NM" 4216 4217{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4218echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4219LN_S=$as_ln_s 4220if test "$LN_S" = "ln -s"; then 4221 { echo "$as_me:$LINENO: result: yes" >&5 4222echo "${ECHO_T}yes" >&6; } 4223else 4224 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4225echo "${ECHO_T}no, using $LN_S" >&6; } 4226fi 4227 4228{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4229echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4230if test "${lt_cv_deplibs_check_method+set}" = set; then 4231 echo $ECHO_N "(cached) $ECHO_C" >&6 4232else 4233 lt_cv_file_magic_cmd='$MAGIC_CMD' 4234lt_cv_file_magic_test_file= 4235lt_cv_deplibs_check_method='unknown' 4236# Need to set the preceding variable on all platforms that support 4237# interlibrary dependencies. 4238# 'none' -- dependencies not supported. 4239# `unknown' -- same as none, but documents that we really don't know. 4240# 'pass_all' -- all dependencies passed with no checks. 4241# 'test_compile' -- check by making test program. 4242# 'file_magic [[regex]]' -- check by looking for files in library path 4243# which responds to the $file_magic_cmd with a given extended regex. 4244# If you have `file' or equivalent on your system and you're not sure 4245# whether `pass_all' will *always* work, you probably want this one. 4246 4247case $host_os in 4248aix4* | aix5*) 4249 lt_cv_deplibs_check_method=pass_all 4250 ;; 4251 4252beos*) 4253 lt_cv_deplibs_check_method=pass_all 4254 ;; 4255 4256bsdi[45]*) 4257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4258 lt_cv_file_magic_cmd='/usr/bin/file -L' 4259 lt_cv_file_magic_test_file=/shlib/libc.so 4260 ;; 4261 4262cygwin*) 4263 # func_win32_libid is a shell function defined in ltmain.sh 4264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4265 lt_cv_file_magic_cmd='func_win32_libid' 4266 ;; 4267 4268mingw* | pw32*) 4269 # Base MSYS/MinGW do not provide the 'file' command needed by 4270 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4271 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4272 lt_cv_file_magic_cmd='$OBJDUMP -f' 4273 ;; 4274 4275darwin* | rhapsody*) 4276 lt_cv_deplibs_check_method=pass_all 4277 ;; 4278 4279freebsd* | dragonfly*) 4280 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4281 case $host_cpu in 4282 i*86 ) 4283 # Not sure whether the presence of OpenBSD here was a mistake. 4284 # Let's accept both of them until this is cleared up. 4285 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4286 lt_cv_file_magic_cmd=/usr/bin/file 4287 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4288 ;; 4289 esac 4290 else 4291 lt_cv_deplibs_check_method=pass_all 4292 fi 4293 ;; 4294 4295gnu*) 4296 lt_cv_deplibs_check_method=pass_all 4297 ;; 4298 4299hpux10.20* | hpux11*) 4300 lt_cv_file_magic_cmd=/usr/bin/file 4301 case $host_cpu in 4302 ia64*) 4303 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4304 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4305 ;; 4306 hppa*64*) 4307 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]' 4308 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4309 ;; 4310 *) 4311 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4312 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4313 ;; 4314 esac 4315 ;; 4316 4317interix3*) 4318 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4320 ;; 4321 4322irix5* | irix6* | nonstopux*) 4323 case $LD in 4324 *-32|*"-32 ") libmagic=32-bit;; 4325 *-n32|*"-n32 ") libmagic=N32;; 4326 *-64|*"-64 ") libmagic=64-bit;; 4327 *) libmagic=never-match;; 4328 esac 4329 lt_cv_deplibs_check_method=pass_all 4330 ;; 4331 4332# This must be Linux ELF. 4333linux* | k*bsd*-gnu) 4334 lt_cv_deplibs_check_method=pass_all 4335 ;; 4336 4337netbsd* | netbsdelf*-gnu) 4338 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4340 else 4341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4342 fi 4343 ;; 4344 4345newos6*) 4346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4347 lt_cv_file_magic_cmd=/usr/bin/file 4348 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4349 ;; 4350 4351nto-qnx*) 4352 lt_cv_deplibs_check_method=unknown 4353 ;; 4354 4355openbsd*) 4356 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4358 else 4359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4360 fi 4361 ;; 4362 4363osf3* | osf4* | osf5*) 4364 lt_cv_deplibs_check_method=pass_all 4365 ;; 4366 4367solaris*) 4368 lt_cv_deplibs_check_method=pass_all 4369 ;; 4370 4371sysv4 | sysv4.3*) 4372 case $host_vendor in 4373 motorola) 4374 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]' 4375 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4376 ;; 4377 ncr) 4378 lt_cv_deplibs_check_method=pass_all 4379 ;; 4380 sequent) 4381 lt_cv_file_magic_cmd='/bin/file' 4382 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4383 ;; 4384 sni) 4385 lt_cv_file_magic_cmd='/bin/file' 4386 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4387 lt_cv_file_magic_test_file=/lib/libc.so 4388 ;; 4389 siemens) 4390 lt_cv_deplibs_check_method=pass_all 4391 ;; 4392 pc) 4393 lt_cv_deplibs_check_method=pass_all 4394 ;; 4395 esac 4396 ;; 4397 4398sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4399 lt_cv_deplibs_check_method=pass_all 4400 ;; 4401esac 4402 4403fi 4404{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4405echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4406file_magic_cmd=$lt_cv_file_magic_cmd 4407deplibs_check_method=$lt_cv_deplibs_check_method 4408test -z "$deplibs_check_method" && deplibs_check_method=unknown 4409 4410 4411 4412 4413# If no C compiler was specified, use CC. 4414LTCC=${LTCC-"$CC"} 4415 4416# If no C compiler flags were specified, use CFLAGS. 4417LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4418 4419# Allow CC to be a program name with arguments. 4420compiler=$CC 4421 4422 4423# Check whether --enable-libtool-lock was given. 4424if test "${enable_libtool_lock+set}" = set; then 4425 enableval=$enable_libtool_lock; 4426fi 4427 4428test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4429 4430# Some flags need to be propagated to the compiler or linker for good 4431# libtool support. 4432case $host in 4433ia64-*-hpux*) 4434 # Find out which ABI we are using. 4435 echo 'int i;' > conftest.$ac_ext 4436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4437 (eval $ac_compile) 2>&5 4438 ac_status=$? 4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4440 (exit $ac_status); }; then 4441 case `/usr/bin/file conftest.$ac_objext` in 4442 *ELF-32*) 4443 HPUX_IA64_MODE="32" 4444 ;; 4445 *ELF-64*) 4446 HPUX_IA64_MODE="64" 4447 ;; 4448 esac 4449 fi 4450 rm -rf conftest* 4451 ;; 4452*-*-irix6*) 4453 # Find out which ABI we are using. 4454 echo '#line 4454 "configure"' > conftest.$ac_ext 4455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4456 (eval $ac_compile) 2>&5 4457 ac_status=$? 4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4459 (exit $ac_status); }; then 4460 if test "$lt_cv_prog_gnu_ld" = yes; then 4461 case `/usr/bin/file conftest.$ac_objext` in 4462 *32-bit*) 4463 LD="${LD-ld} -melf32bsmip" 4464 ;; 4465 *N32*) 4466 LD="${LD-ld} -melf32bmipn32" 4467 ;; 4468 *64-bit*) 4469 LD="${LD-ld} -melf64bmip" 4470 ;; 4471 esac 4472 else 4473 case `/usr/bin/file conftest.$ac_objext` in 4474 *32-bit*) 4475 LD="${LD-ld} -32" 4476 ;; 4477 *N32*) 4478 LD="${LD-ld} -n32" 4479 ;; 4480 *64-bit*) 4481 LD="${LD-ld} -64" 4482 ;; 4483 esac 4484 fi 4485 fi 4486 rm -rf conftest* 4487 ;; 4488 4489x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4490 # Find out which ABI we are using. 4491 echo 'int i;' > conftest.$ac_ext 4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4493 (eval $ac_compile) 2>&5 4494 ac_status=$? 4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4496 (exit $ac_status); }; then 4497 case `/usr/bin/file conftest.o` in 4498 *32-bit*) 4499 case $host in 4500 x86_64-*linux*) 4501 LD="${LD-ld} -m elf_i386" 4502 ;; 4503 ppc64-*linux*|powerpc64-*linux*) 4504 LD="${LD-ld} -m elf32ppclinux" 4505 ;; 4506 s390x-*linux*) 4507 LD="${LD-ld} -m elf_s390" 4508 ;; 4509 sparc64-*linux*) 4510 LD="${LD-ld} -m elf32_sparc" 4511 ;; 4512 esac 4513 ;; 4514 *64-bit*) 4515 case $host in 4516 x86_64-*linux*) 4517 LD="${LD-ld} -m elf_x86_64" 4518 ;; 4519 ppc*-*linux*|powerpc*-*linux*) 4520 LD="${LD-ld} -m elf64ppc" 4521 ;; 4522 s390*-*linux*) 4523 LD="${LD-ld} -m elf64_s390" 4524 ;; 4525 sparc*-*linux*) 4526 LD="${LD-ld} -m elf64_sparc" 4527 ;; 4528 esac 4529 ;; 4530 esac 4531 fi 4532 rm -rf conftest* 4533 ;; 4534 4535*-*-sco3.2v5*) 4536 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4537 SAVE_CFLAGS="$CFLAGS" 4538 CFLAGS="$CFLAGS -belf" 4539 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4540echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4541if test "${lt_cv_cc_needs_belf+set}" = set; then 4542 echo $ECHO_N "(cached) $ECHO_C" >&6 4543else 4544 ac_ext=c 4545ac_cpp='$CPP $CPPFLAGS' 4546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4548ac_compiler_gnu=$ac_cv_c_compiler_gnu 4549 4550 cat >conftest.$ac_ext <<_ACEOF 4551/* confdefs.h. */ 4552_ACEOF 4553cat confdefs.h >>conftest.$ac_ext 4554cat >>conftest.$ac_ext <<_ACEOF 4555/* end confdefs.h. */ 4556 4557int 4558main () 4559{ 4560 4561 ; 4562 return 0; 4563} 4564_ACEOF 4565rm -f conftest.$ac_objext conftest$ac_exeext 4566if { (ac_try="$ac_link" 4567case "(($ac_try" in 4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4569 *) ac_try_echo=$ac_try;; 4570esac 4571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4572 (eval "$ac_link") 2>conftest.er1 4573 ac_status=$? 4574 grep -v '^ *+' conftest.er1 >conftest.err 4575 rm -f conftest.er1 4576 cat conftest.err >&5 4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4578 (exit $ac_status); } && 4579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4580 { (case "(($ac_try" in 4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4582 *) ac_try_echo=$ac_try;; 4583esac 4584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4585 (eval "$ac_try") 2>&5 4586 ac_status=$? 4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4588 (exit $ac_status); }; } && 4589 { ac_try='test -s conftest$ac_exeext' 4590 { (case "(($ac_try" in 4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4592 *) ac_try_echo=$ac_try;; 4593esac 4594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4595 (eval "$ac_try") 2>&5 4596 ac_status=$? 4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4598 (exit $ac_status); }; }; then 4599 lt_cv_cc_needs_belf=yes 4600else 4601 echo "$as_me: failed program was:" >&5 4602sed 's/^/| /' conftest.$ac_ext >&5 4603 4604 lt_cv_cc_needs_belf=no 4605fi 4606 4607rm -f core conftest.err conftest.$ac_objext \ 4608 conftest$ac_exeext conftest.$ac_ext 4609 ac_ext=c 4610ac_cpp='$CPP $CPPFLAGS' 4611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4613ac_compiler_gnu=$ac_cv_c_compiler_gnu 4614 4615fi 4616{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4617echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4618 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4619 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4620 CFLAGS="$SAVE_CFLAGS" 4621 fi 4622 ;; 4623sparc*-*solaris*) 4624 # Find out which ABI we are using. 4625 echo 'int i;' > conftest.$ac_ext 4626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4627 (eval $ac_compile) 2>&5 4628 ac_status=$? 4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4630 (exit $ac_status); }; then 4631 case `/usr/bin/file conftest.o` in 4632 *64-bit*) 4633 case $lt_cv_prog_gnu_ld in 4634 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4635 *) LD="${LD-ld} -64" ;; 4636 esac 4637 ;; 4638 esac 4639 fi 4640 rm -rf conftest* 4641 ;; 4642 4643 4644esac 4645 4646need_locks="$enable_libtool_lock" 4647 4648 4649ac_ext=c 4650ac_cpp='$CPP $CPPFLAGS' 4651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4653ac_compiler_gnu=$ac_cv_c_compiler_gnu 4654{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4655echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4656# On Suns, sometimes $CPP names a directory. 4657if test -n "$CPP" && test -d "$CPP"; then 4658 CPP= 4659fi 4660if test -z "$CPP"; then 4661 if test "${ac_cv_prog_CPP+set}" = set; then 4662 echo $ECHO_N "(cached) $ECHO_C" >&6 4663else 4664 # Double quotes because CPP needs to be expanded 4665 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4666 do 4667 ac_preproc_ok=false 4668for ac_c_preproc_warn_flag in '' yes 4669do 4670 # Use a header file that comes with gcc, so configuring glibc 4671 # with a fresh cross-compiler works. 4672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4673 # <limits.h> exists even on freestanding compilers. 4674 # On the NeXT, cc -E runs the code through the compiler's parser, 4675 # not just through cpp. "Syntax error" is here to catch this case. 4676 cat >conftest.$ac_ext <<_ACEOF 4677/* confdefs.h. */ 4678_ACEOF 4679cat confdefs.h >>conftest.$ac_ext 4680cat >>conftest.$ac_ext <<_ACEOF 4681/* end confdefs.h. */ 4682#ifdef __STDC__ 4683# include <limits.h> 4684#else 4685# include <assert.h> 4686#endif 4687 Syntax error 4688_ACEOF 4689if { (ac_try="$ac_cpp conftest.$ac_ext" 4690case "(($ac_try" in 4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4692 *) ac_try_echo=$ac_try;; 4693esac 4694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4696 ac_status=$? 4697 grep -v '^ *+' conftest.er1 >conftest.err 4698 rm -f conftest.er1 4699 cat conftest.err >&5 4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4701 (exit $ac_status); } >/dev/null; then 4702 if test -s conftest.err; then 4703 ac_cpp_err=$ac_c_preproc_warn_flag 4704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4705 else 4706 ac_cpp_err= 4707 fi 4708else 4709 ac_cpp_err=yes 4710fi 4711if test -z "$ac_cpp_err"; then 4712 : 4713else 4714 echo "$as_me: failed program was:" >&5 4715sed 's/^/| /' conftest.$ac_ext >&5 4716 4717 # Broken: fails on valid input. 4718continue 4719fi 4720 4721rm -f conftest.err conftest.$ac_ext 4722 4723 # OK, works on sane cases. Now check whether nonexistent headers 4724 # can be detected and how. 4725 cat >conftest.$ac_ext <<_ACEOF 4726/* confdefs.h. */ 4727_ACEOF 4728cat confdefs.h >>conftest.$ac_ext 4729cat >>conftest.$ac_ext <<_ACEOF 4730/* end confdefs.h. */ 4731#include <ac_nonexistent.h> 4732_ACEOF 4733if { (ac_try="$ac_cpp conftest.$ac_ext" 4734case "(($ac_try" in 4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4736 *) ac_try_echo=$ac_try;; 4737esac 4738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4740 ac_status=$? 4741 grep -v '^ *+' conftest.er1 >conftest.err 4742 rm -f conftest.er1 4743 cat conftest.err >&5 4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4745 (exit $ac_status); } >/dev/null; then 4746 if test -s conftest.err; then 4747 ac_cpp_err=$ac_c_preproc_warn_flag 4748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4749 else 4750 ac_cpp_err= 4751 fi 4752else 4753 ac_cpp_err=yes 4754fi 4755if test -z "$ac_cpp_err"; then 4756 # Broken: success on invalid input. 4757continue 4758else 4759 echo "$as_me: failed program was:" >&5 4760sed 's/^/| /' conftest.$ac_ext >&5 4761 4762 # Passes both tests. 4763ac_preproc_ok=: 4764break 4765fi 4766 4767rm -f conftest.err conftest.$ac_ext 4768 4769done 4770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4771rm -f conftest.err conftest.$ac_ext 4772if $ac_preproc_ok; then 4773 break 4774fi 4775 4776 done 4777 ac_cv_prog_CPP=$CPP 4778 4779fi 4780 CPP=$ac_cv_prog_CPP 4781else 4782 ac_cv_prog_CPP=$CPP 4783fi 4784{ echo "$as_me:$LINENO: result: $CPP" >&5 4785echo "${ECHO_T}$CPP" >&6; } 4786ac_preproc_ok=false 4787for ac_c_preproc_warn_flag in '' yes 4788do 4789 # Use a header file that comes with gcc, so configuring glibc 4790 # with a fresh cross-compiler works. 4791 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4792 # <limits.h> exists even on freestanding compilers. 4793 # On the NeXT, cc -E runs the code through the compiler's parser, 4794 # not just through cpp. "Syntax error" is here to catch this case. 4795 cat >conftest.$ac_ext <<_ACEOF 4796/* confdefs.h. */ 4797_ACEOF 4798cat confdefs.h >>conftest.$ac_ext 4799cat >>conftest.$ac_ext <<_ACEOF 4800/* end confdefs.h. */ 4801#ifdef __STDC__ 4802# include <limits.h> 4803#else 4804# include <assert.h> 4805#endif 4806 Syntax error 4807_ACEOF 4808if { (ac_try="$ac_cpp conftest.$ac_ext" 4809case "(($ac_try" in 4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4811 *) ac_try_echo=$ac_try;; 4812esac 4813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4815 ac_status=$? 4816 grep -v '^ *+' conftest.er1 >conftest.err 4817 rm -f conftest.er1 4818 cat conftest.err >&5 4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4820 (exit $ac_status); } >/dev/null; then 4821 if test -s conftest.err; then 4822 ac_cpp_err=$ac_c_preproc_warn_flag 4823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4824 else 4825 ac_cpp_err= 4826 fi 4827else 4828 ac_cpp_err=yes 4829fi 4830if test -z "$ac_cpp_err"; then 4831 : 4832else 4833 echo "$as_me: failed program was:" >&5 4834sed 's/^/| /' conftest.$ac_ext >&5 4835 4836 # Broken: fails on valid input. 4837continue 4838fi 4839 4840rm -f conftest.err conftest.$ac_ext 4841 4842 # OK, works on sane cases. Now check whether nonexistent headers 4843 # can be detected and how. 4844 cat >conftest.$ac_ext <<_ACEOF 4845/* confdefs.h. */ 4846_ACEOF 4847cat confdefs.h >>conftest.$ac_ext 4848cat >>conftest.$ac_ext <<_ACEOF 4849/* end confdefs.h. */ 4850#include <ac_nonexistent.h> 4851_ACEOF 4852if { (ac_try="$ac_cpp conftest.$ac_ext" 4853case "(($ac_try" in 4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4855 *) ac_try_echo=$ac_try;; 4856esac 4857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4859 ac_status=$? 4860 grep -v '^ *+' conftest.er1 >conftest.err 4861 rm -f conftest.er1 4862 cat conftest.err >&5 4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4864 (exit $ac_status); } >/dev/null; then 4865 if test -s conftest.err; then 4866 ac_cpp_err=$ac_c_preproc_warn_flag 4867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4868 else 4869 ac_cpp_err= 4870 fi 4871else 4872 ac_cpp_err=yes 4873fi 4874if test -z "$ac_cpp_err"; then 4875 # Broken: success on invalid input. 4876continue 4877else 4878 echo "$as_me: failed program was:" >&5 4879sed 's/^/| /' conftest.$ac_ext >&5 4880 4881 # Passes both tests. 4882ac_preproc_ok=: 4883break 4884fi 4885 4886rm -f conftest.err conftest.$ac_ext 4887 4888done 4889# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4890rm -f conftest.err conftest.$ac_ext 4891if $ac_preproc_ok; then 4892 : 4893else 4894 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4895See \`config.log' for more details." >&5 4896echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4897See \`config.log' for more details." >&2;} 4898 { (exit 1); exit 1; }; } 4899fi 4900 4901ac_ext=c 4902ac_cpp='$CPP $CPPFLAGS' 4903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4905ac_compiler_gnu=$ac_cv_c_compiler_gnu 4906 4907 4908{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4909echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4910if test "${ac_cv_header_stdc+set}" = set; then 4911 echo $ECHO_N "(cached) $ECHO_C" >&6 4912else 4913 cat >conftest.$ac_ext <<_ACEOF 4914/* confdefs.h. */ 4915_ACEOF 4916cat confdefs.h >>conftest.$ac_ext 4917cat >>conftest.$ac_ext <<_ACEOF 4918/* end confdefs.h. */ 4919#include <stdlib.h> 4920#include <stdarg.h> 4921#include <string.h> 4922#include <float.h> 4923 4924int 4925main () 4926{ 4927 4928 ; 4929 return 0; 4930} 4931_ACEOF 4932rm -f conftest.$ac_objext 4933if { (ac_try="$ac_compile" 4934case "(($ac_try" in 4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4936 *) ac_try_echo=$ac_try;; 4937esac 4938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4939 (eval "$ac_compile") 2>conftest.er1 4940 ac_status=$? 4941 grep -v '^ *+' conftest.er1 >conftest.err 4942 rm -f conftest.er1 4943 cat conftest.err >&5 4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4945 (exit $ac_status); } && 4946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4947 { (case "(($ac_try" in 4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4949 *) ac_try_echo=$ac_try;; 4950esac 4951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4952 (eval "$ac_try") 2>&5 4953 ac_status=$? 4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4955 (exit $ac_status); }; } && 4956 { ac_try='test -s conftest.$ac_objext' 4957 { (case "(($ac_try" in 4958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4959 *) ac_try_echo=$ac_try;; 4960esac 4961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4962 (eval "$ac_try") 2>&5 4963 ac_status=$? 4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4965 (exit $ac_status); }; }; then 4966 ac_cv_header_stdc=yes 4967else 4968 echo "$as_me: failed program was:" >&5 4969sed 's/^/| /' conftest.$ac_ext >&5 4970 4971 ac_cv_header_stdc=no 4972fi 4973 4974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4975 4976if test $ac_cv_header_stdc = yes; then 4977 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4978 cat >conftest.$ac_ext <<_ACEOF 4979/* confdefs.h. */ 4980_ACEOF 4981cat confdefs.h >>conftest.$ac_ext 4982cat >>conftest.$ac_ext <<_ACEOF 4983/* end confdefs.h. */ 4984#include <string.h> 4985 4986_ACEOF 4987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4988 $EGREP "memchr" >/dev/null 2>&1; then 4989 : 4990else 4991 ac_cv_header_stdc=no 4992fi 4993rm -f conftest* 4994 4995fi 4996 4997if test $ac_cv_header_stdc = yes; then 4998 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4999 cat >conftest.$ac_ext <<_ACEOF 5000/* confdefs.h. */ 5001_ACEOF 5002cat confdefs.h >>conftest.$ac_ext 5003cat >>conftest.$ac_ext <<_ACEOF 5004/* end confdefs.h. */ 5005#include <stdlib.h> 5006 5007_ACEOF 5008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5009 $EGREP "free" >/dev/null 2>&1; then 5010 : 5011else 5012 ac_cv_header_stdc=no 5013fi 5014rm -f conftest* 5015 5016fi 5017 5018if test $ac_cv_header_stdc = yes; then 5019 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5020 if test "$cross_compiling" = yes; then 5021 : 5022else 5023 cat >conftest.$ac_ext <<_ACEOF 5024/* confdefs.h. */ 5025_ACEOF 5026cat confdefs.h >>conftest.$ac_ext 5027cat >>conftest.$ac_ext <<_ACEOF 5028/* end confdefs.h. */ 5029#include <ctype.h> 5030#include <stdlib.h> 5031#if ((' ' & 0x0FF) == 0x020) 5032# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5033# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5034#else 5035# define ISLOWER(c) \ 5036 (('a' <= (c) && (c) <= 'i') \ 5037 || ('j' <= (c) && (c) <= 'r') \ 5038 || ('s' <= (c) && (c) <= 'z')) 5039# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5040#endif 5041 5042#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5043int 5044main () 5045{ 5046 int i; 5047 for (i = 0; i < 256; i++) 5048 if (XOR (islower (i), ISLOWER (i)) 5049 || toupper (i) != TOUPPER (i)) 5050 return 2; 5051 return 0; 5052} 5053_ACEOF 5054rm -f conftest$ac_exeext 5055if { (ac_try="$ac_link" 5056case "(($ac_try" in 5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5058 *) ac_try_echo=$ac_try;; 5059esac 5060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5061 (eval "$ac_link") 2>&5 5062 ac_status=$? 5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5065 { (case "(($ac_try" in 5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5067 *) ac_try_echo=$ac_try;; 5068esac 5069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5070 (eval "$ac_try") 2>&5 5071 ac_status=$? 5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5073 (exit $ac_status); }; }; then 5074 : 5075else 5076 echo "$as_me: program exited with status $ac_status" >&5 5077echo "$as_me: failed program was:" >&5 5078sed 's/^/| /' conftest.$ac_ext >&5 5079 5080( exit $ac_status ) 5081ac_cv_header_stdc=no 5082fi 5083rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5084fi 5085 5086 5087fi 5088fi 5089{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5090echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5091if test $ac_cv_header_stdc = yes; then 5092 5093cat >>confdefs.h <<\_ACEOF 5094#define STDC_HEADERS 1 5095_ACEOF 5096 5097fi 5098 5099# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5110 inttypes.h stdint.h unistd.h 5111do 5112as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5113{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5116 echo $ECHO_N "(cached) $ECHO_C" >&6 5117else 5118 cat >conftest.$ac_ext <<_ACEOF 5119/* confdefs.h. */ 5120_ACEOF 5121cat confdefs.h >>conftest.$ac_ext 5122cat >>conftest.$ac_ext <<_ACEOF 5123/* end confdefs.h. */ 5124$ac_includes_default 5125 5126#include <$ac_header> 5127_ACEOF 5128rm -f conftest.$ac_objext 5129if { (ac_try="$ac_compile" 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_compile") 2>conftest.er1 5136 ac_status=$? 5137 grep -v '^ *+' conftest.er1 >conftest.err 5138 rm -f conftest.er1 5139 cat conftest.err >&5 5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5141 (exit $ac_status); } && 5142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5143 { (case "(($ac_try" in 5144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5145 *) ac_try_echo=$ac_try;; 5146esac 5147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5148 (eval "$ac_try") 2>&5 5149 ac_status=$? 5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5151 (exit $ac_status); }; } && 5152 { ac_try='test -s conftest.$ac_objext' 5153 { (case "(($ac_try" in 5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5155 *) ac_try_echo=$ac_try;; 5156esac 5157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5158 (eval "$ac_try") 2>&5 5159 ac_status=$? 5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5161 (exit $ac_status); }; }; then 5162 eval "$as_ac_Header=yes" 5163else 5164 echo "$as_me: failed program was:" >&5 5165sed 's/^/| /' conftest.$ac_ext >&5 5166 5167 eval "$as_ac_Header=no" 5168fi 5169 5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5171fi 5172ac_res=`eval echo '${'$as_ac_Header'}'` 5173 { echo "$as_me:$LINENO: result: $ac_res" >&5 5174echo "${ECHO_T}$ac_res" >&6; } 5175if test `eval echo '${'$as_ac_Header'}'` = yes; then 5176 cat >>confdefs.h <<_ACEOF 5177#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5178_ACEOF 5179 5180fi 5181 5182done 5183 5184 5185 5186for ac_header in dlfcn.h 5187do 5188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5190 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5193 echo $ECHO_N "(cached) $ECHO_C" >&6 5194fi 5195ac_res=`eval echo '${'$as_ac_Header'}'` 5196 { echo "$as_me:$LINENO: result: $ac_res" >&5 5197echo "${ECHO_T}$ac_res" >&6; } 5198else 5199 # Is the header compilable? 5200{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5202cat >conftest.$ac_ext <<_ACEOF 5203/* confdefs.h. */ 5204_ACEOF 5205cat confdefs.h >>conftest.$ac_ext 5206cat >>conftest.$ac_ext <<_ACEOF 5207/* end confdefs.h. */ 5208$ac_includes_default 5209#include <$ac_header> 5210_ACEOF 5211rm -f conftest.$ac_objext 5212if { (ac_try="$ac_compile" 5213case "(($ac_try" in 5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5215 *) ac_try_echo=$ac_try;; 5216esac 5217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5218 (eval "$ac_compile") 2>conftest.er1 5219 ac_status=$? 5220 grep -v '^ *+' conftest.er1 >conftest.err 5221 rm -f conftest.er1 5222 cat conftest.err >&5 5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5224 (exit $ac_status); } && 5225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5226 { (case "(($ac_try" in 5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5228 *) ac_try_echo=$ac_try;; 5229esac 5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5231 (eval "$ac_try") 2>&5 5232 ac_status=$? 5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5234 (exit $ac_status); }; } && 5235 { ac_try='test -s conftest.$ac_objext' 5236 { (case "(($ac_try" in 5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5238 *) ac_try_echo=$ac_try;; 5239esac 5240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5241 (eval "$ac_try") 2>&5 5242 ac_status=$? 5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5244 (exit $ac_status); }; }; then 5245 ac_header_compiler=yes 5246else 5247 echo "$as_me: failed program was:" >&5 5248sed 's/^/| /' conftest.$ac_ext >&5 5249 5250 ac_header_compiler=no 5251fi 5252 5253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5254{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5255echo "${ECHO_T}$ac_header_compiler" >&6; } 5256 5257# Is the header present? 5258{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5259echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5260cat >conftest.$ac_ext <<_ACEOF 5261/* confdefs.h. */ 5262_ACEOF 5263cat confdefs.h >>conftest.$ac_ext 5264cat >>conftest.$ac_ext <<_ACEOF 5265/* end confdefs.h. */ 5266#include <$ac_header> 5267_ACEOF 5268if { (ac_try="$ac_cpp conftest.$ac_ext" 5269case "(($ac_try" in 5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5271 *) ac_try_echo=$ac_try;; 5272esac 5273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5275 ac_status=$? 5276 grep -v '^ *+' conftest.er1 >conftest.err 5277 rm -f conftest.er1 5278 cat conftest.err >&5 5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5280 (exit $ac_status); } >/dev/null; then 5281 if test -s conftest.err; then 5282 ac_cpp_err=$ac_c_preproc_warn_flag 5283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5284 else 5285 ac_cpp_err= 5286 fi 5287else 5288 ac_cpp_err=yes 5289fi 5290if test -z "$ac_cpp_err"; then 5291 ac_header_preproc=yes 5292else 5293 echo "$as_me: failed program was:" >&5 5294sed 's/^/| /' conftest.$ac_ext >&5 5295 5296 ac_header_preproc=no 5297fi 5298 5299rm -f conftest.err conftest.$ac_ext 5300{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5301echo "${ECHO_T}$ac_header_preproc" >&6; } 5302 5303# So? What about this header? 5304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5305 yes:no: ) 5306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5307echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5309echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5310 ac_header_preproc=yes 5311 ;; 5312 no:yes:* ) 5313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5316echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5318echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5320echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5324echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5325 ( cat <<\_ASBOX 5326## ---------------------------------------------------------------------- ## 5327## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5328## ---------------------------------------------------------------------- ## 5329_ASBOX 5330 ) | sed "s/^/$as_me: WARNING: /" >&2 5331 ;; 5332esac 5333{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5336 echo $ECHO_N "(cached) $ECHO_C" >&6 5337else 5338 eval "$as_ac_Header=\$ac_header_preproc" 5339fi 5340ac_res=`eval echo '${'$as_ac_Header'}'` 5341 { echo "$as_me:$LINENO: result: $ac_res" >&5 5342echo "${ECHO_T}$ac_res" >&6; } 5343 5344fi 5345if test `eval echo '${'$as_ac_Header'}'` = yes; then 5346 cat >>confdefs.h <<_ACEOF 5347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5348_ACEOF 5349 5350fi 5351 5352done 5353 5354ac_ext=cpp 5355ac_cpp='$CXXCPP $CPPFLAGS' 5356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5359if test -z "$CXX"; then 5360 if test -n "$CCC"; then 5361 CXX=$CCC 5362 else 5363 if test -n "$ac_tool_prefix"; then 5364 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5365 do 5366 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5367set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5368{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5370if test "${ac_cv_prog_CXX+set}" = set; then 5371 echo $ECHO_N "(cached) $ECHO_C" >&6 5372else 5373 if test -n "$CXX"; then 5374 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5375else 5376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5377for as_dir in $PATH 5378do 5379 IFS=$as_save_IFS 5380 test -z "$as_dir" && as_dir=. 5381 for ac_exec_ext in '' $ac_executable_extensions; do 5382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5383 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5385 break 2 5386 fi 5387done 5388done 5389IFS=$as_save_IFS 5390 5391fi 5392fi 5393CXX=$ac_cv_prog_CXX 5394if test -n "$CXX"; then 5395 { echo "$as_me:$LINENO: result: $CXX" >&5 5396echo "${ECHO_T}$CXX" >&6; } 5397else 5398 { echo "$as_me:$LINENO: result: no" >&5 5399echo "${ECHO_T}no" >&6; } 5400fi 5401 5402 5403 test -n "$CXX" && break 5404 done 5405fi 5406if test -z "$CXX"; then 5407 ac_ct_CXX=$CXX 5408 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5409do 5410 # Extract the first word of "$ac_prog", so it can be a program name with args. 5411set dummy $ac_prog; ac_word=$2 5412{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5414if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5415 echo $ECHO_N "(cached) $ECHO_C" >&6 5416else 5417 if test -n "$ac_ct_CXX"; then 5418 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5419else 5420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5421for as_dir in $PATH 5422do 5423 IFS=$as_save_IFS 5424 test -z "$as_dir" && as_dir=. 5425 for ac_exec_ext in '' $ac_executable_extensions; do 5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5427 ac_cv_prog_ac_ct_CXX="$ac_prog" 5428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5429 break 2 5430 fi 5431done 5432done 5433IFS=$as_save_IFS 5434 5435fi 5436fi 5437ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5438if test -n "$ac_ct_CXX"; then 5439 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5440echo "${ECHO_T}$ac_ct_CXX" >&6; } 5441else 5442 { echo "$as_me:$LINENO: result: no" >&5 5443echo "${ECHO_T}no" >&6; } 5444fi 5445 5446 5447 test -n "$ac_ct_CXX" && break 5448done 5449 5450 if test "x$ac_ct_CXX" = x; then 5451 CXX="g++" 5452 else 5453 case $cross_compiling:$ac_tool_warned in 5454yes:) 5455{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5456whose name does not start with the host triplet. If you think this 5457configuration is useful to you, please write to autoconf@gnu.org." >&5 5458echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5459whose name does not start with the host triplet. If you think this 5460configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5461ac_tool_warned=yes ;; 5462esac 5463 CXX=$ac_ct_CXX 5464 fi 5465fi 5466 5467 fi 5468fi 5469# Provide some information about the compiler. 5470echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5471ac_compiler=`set X $ac_compile; echo $2` 5472{ (ac_try="$ac_compiler --version >&5" 5473case "(($ac_try" in 5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5475 *) ac_try_echo=$ac_try;; 5476esac 5477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5478 (eval "$ac_compiler --version >&5") 2>&5 5479 ac_status=$? 5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5481 (exit $ac_status); } 5482{ (ac_try="$ac_compiler -v >&5" 5483case "(($ac_try" in 5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5485 *) ac_try_echo=$ac_try;; 5486esac 5487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5488 (eval "$ac_compiler -v >&5") 2>&5 5489 ac_status=$? 5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5491 (exit $ac_status); } 5492{ (ac_try="$ac_compiler -V >&5" 5493case "(($ac_try" in 5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5495 *) ac_try_echo=$ac_try;; 5496esac 5497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5498 (eval "$ac_compiler -V >&5") 2>&5 5499 ac_status=$? 5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5501 (exit $ac_status); } 5502 5503{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5504echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5505if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5506 echo $ECHO_N "(cached) $ECHO_C" >&6 5507else 5508 cat >conftest.$ac_ext <<_ACEOF 5509/* confdefs.h. */ 5510_ACEOF 5511cat confdefs.h >>conftest.$ac_ext 5512cat >>conftest.$ac_ext <<_ACEOF 5513/* end confdefs.h. */ 5514 5515int 5516main () 5517{ 5518#ifndef __GNUC__ 5519 choke me 5520#endif 5521 5522 ; 5523 return 0; 5524} 5525_ACEOF 5526rm -f conftest.$ac_objext 5527if { (ac_try="$ac_compile" 5528case "(($ac_try" in 5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5530 *) ac_try_echo=$ac_try;; 5531esac 5532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5533 (eval "$ac_compile") 2>conftest.er1 5534 ac_status=$? 5535 grep -v '^ *+' conftest.er1 >conftest.err 5536 rm -f conftest.er1 5537 cat conftest.err >&5 5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5539 (exit $ac_status); } && 5540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5541 { (case "(($ac_try" in 5542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5543 *) ac_try_echo=$ac_try;; 5544esac 5545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5546 (eval "$ac_try") 2>&5 5547 ac_status=$? 5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5549 (exit $ac_status); }; } && 5550 { ac_try='test -s conftest.$ac_objext' 5551 { (case "(($ac_try" in 5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5553 *) ac_try_echo=$ac_try;; 5554esac 5555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5556 (eval "$ac_try") 2>&5 5557 ac_status=$? 5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5559 (exit $ac_status); }; }; then 5560 ac_compiler_gnu=yes 5561else 5562 echo "$as_me: failed program was:" >&5 5563sed 's/^/| /' conftest.$ac_ext >&5 5564 5565 ac_compiler_gnu=no 5566fi 5567 5568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5569ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5570 5571fi 5572{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5573echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5574GXX=`test $ac_compiler_gnu = yes && echo yes` 5575ac_test_CXXFLAGS=${CXXFLAGS+set} 5576ac_save_CXXFLAGS=$CXXFLAGS 5577{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5578echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5579if test "${ac_cv_prog_cxx_g+set}" = set; then 5580 echo $ECHO_N "(cached) $ECHO_C" >&6 5581else 5582 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5583 ac_cxx_werror_flag=yes 5584 ac_cv_prog_cxx_g=no 5585 CXXFLAGS="-g" 5586 cat >conftest.$ac_ext <<_ACEOF 5587/* confdefs.h. */ 5588_ACEOF 5589cat confdefs.h >>conftest.$ac_ext 5590cat >>conftest.$ac_ext <<_ACEOF 5591/* end confdefs.h. */ 5592 5593int 5594main () 5595{ 5596 5597 ; 5598 return 0; 5599} 5600_ACEOF 5601rm -f conftest.$ac_objext 5602if { (ac_try="$ac_compile" 5603case "(($ac_try" in 5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5605 *) ac_try_echo=$ac_try;; 5606esac 5607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5608 (eval "$ac_compile") 2>conftest.er1 5609 ac_status=$? 5610 grep -v '^ *+' conftest.er1 >conftest.err 5611 rm -f conftest.er1 5612 cat conftest.err >&5 5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5614 (exit $ac_status); } && 5615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5616 { (case "(($ac_try" in 5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5618 *) ac_try_echo=$ac_try;; 5619esac 5620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5621 (eval "$ac_try") 2>&5 5622 ac_status=$? 5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5624 (exit $ac_status); }; } && 5625 { ac_try='test -s conftest.$ac_objext' 5626 { (case "(($ac_try" in 5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5628 *) ac_try_echo=$ac_try;; 5629esac 5630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5631 (eval "$ac_try") 2>&5 5632 ac_status=$? 5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5634 (exit $ac_status); }; }; then 5635 ac_cv_prog_cxx_g=yes 5636else 5637 echo "$as_me: failed program was:" >&5 5638sed 's/^/| /' conftest.$ac_ext >&5 5639 5640 CXXFLAGS="" 5641 cat >conftest.$ac_ext <<_ACEOF 5642/* confdefs.h. */ 5643_ACEOF 5644cat confdefs.h >>conftest.$ac_ext 5645cat >>conftest.$ac_ext <<_ACEOF 5646/* end confdefs.h. */ 5647 5648int 5649main () 5650{ 5651 5652 ; 5653 return 0; 5654} 5655_ACEOF 5656rm -f conftest.$ac_objext 5657if { (ac_try="$ac_compile" 5658case "(($ac_try" in 5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5660 *) ac_try_echo=$ac_try;; 5661esac 5662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5663 (eval "$ac_compile") 2>conftest.er1 5664 ac_status=$? 5665 grep -v '^ *+' conftest.er1 >conftest.err 5666 rm -f conftest.er1 5667 cat conftest.err >&5 5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5669 (exit $ac_status); } && 5670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5671 { (case "(($ac_try" in 5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5673 *) ac_try_echo=$ac_try;; 5674esac 5675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5676 (eval "$ac_try") 2>&5 5677 ac_status=$? 5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5679 (exit $ac_status); }; } && 5680 { ac_try='test -s conftest.$ac_objext' 5681 { (case "(($ac_try" in 5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5683 *) ac_try_echo=$ac_try;; 5684esac 5685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5686 (eval "$ac_try") 2>&5 5687 ac_status=$? 5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5689 (exit $ac_status); }; }; then 5690 : 5691else 5692 echo "$as_me: failed program was:" >&5 5693sed 's/^/| /' conftest.$ac_ext >&5 5694 5695 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5696 CXXFLAGS="-g" 5697 cat >conftest.$ac_ext <<_ACEOF 5698/* confdefs.h. */ 5699_ACEOF 5700cat confdefs.h >>conftest.$ac_ext 5701cat >>conftest.$ac_ext <<_ACEOF 5702/* end confdefs.h. */ 5703 5704int 5705main () 5706{ 5707 5708 ; 5709 return 0; 5710} 5711_ACEOF 5712rm -f conftest.$ac_objext 5713if { (ac_try="$ac_compile" 5714case "(($ac_try" in 5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5716 *) ac_try_echo=$ac_try;; 5717esac 5718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5719 (eval "$ac_compile") 2>conftest.er1 5720 ac_status=$? 5721 grep -v '^ *+' conftest.er1 >conftest.err 5722 rm -f conftest.er1 5723 cat conftest.err >&5 5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5725 (exit $ac_status); } && 5726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5727 { (case "(($ac_try" in 5728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5729 *) ac_try_echo=$ac_try;; 5730esac 5731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5732 (eval "$ac_try") 2>&5 5733 ac_status=$? 5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5735 (exit $ac_status); }; } && 5736 { ac_try='test -s conftest.$ac_objext' 5737 { (case "(($ac_try" in 5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5739 *) ac_try_echo=$ac_try;; 5740esac 5741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5742 (eval "$ac_try") 2>&5 5743 ac_status=$? 5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5745 (exit $ac_status); }; }; then 5746 ac_cv_prog_cxx_g=yes 5747else 5748 echo "$as_me: failed program was:" >&5 5749sed 's/^/| /' conftest.$ac_ext >&5 5750 5751 5752fi 5753 5754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5755fi 5756 5757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5758fi 5759 5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5761 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5762fi 5763{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5764echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5765if test "$ac_test_CXXFLAGS" = set; then 5766 CXXFLAGS=$ac_save_CXXFLAGS 5767elif test $ac_cv_prog_cxx_g = yes; then 5768 if test "$GXX" = yes; then 5769 CXXFLAGS="-g -O2" 5770 else 5771 CXXFLAGS="-g" 5772 fi 5773else 5774 if test "$GXX" = yes; then 5775 CXXFLAGS="-O2" 5776 else 5777 CXXFLAGS= 5778 fi 5779fi 5780ac_ext=cpp 5781ac_cpp='$CXXCPP $CPPFLAGS' 5782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5785 5786depcc="$CXX" am_compiler_list= 5787 5788{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5789echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5790if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5791 echo $ECHO_N "(cached) $ECHO_C" >&6 5792else 5793 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5794 # We make a subdir and do the tests there. Otherwise we can end up 5795 # making bogus files that we don't know about and never remove. For 5796 # instance it was reported that on HP-UX the gcc test will end up 5797 # making a dummy file named `D' -- because `-MD' means `put the output 5798 # in D'. 5799 mkdir conftest.dir 5800 # Copy depcomp to subdir because otherwise we won't find it if we're 5801 # using a relative directory. 5802 cp "$am_depcomp" conftest.dir 5803 cd conftest.dir 5804 # We will build objects and dependencies in a subdirectory because 5805 # it helps to detect inapplicable dependency modes. For instance 5806 # both Tru64's cc and ICC support -MD to output dependencies as a 5807 # side effect of compilation, but ICC will put the dependencies in 5808 # the current directory while Tru64 will put them in the object 5809 # directory. 5810 mkdir sub 5811 5812 am_cv_CXX_dependencies_compiler_type=none 5813 if test "$am_compiler_list" = ""; then 5814 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5815 fi 5816 for depmode in $am_compiler_list; do 5817 # Setup a source with many dependencies, because some compilers 5818 # like to wrap large dependency lists on column 80 (with \), and 5819 # we should not choose a depcomp mode which is confused by this. 5820 # 5821 # We need to recreate these files for each test, as the compiler may 5822 # overwrite some of them when testing with obscure command lines. 5823 # This happens at least with the AIX C compiler. 5824 : > sub/conftest.c 5825 for i in 1 2 3 4 5 6; do 5826 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5827 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5828 # Solaris 8's {/usr,}/bin/sh. 5829 touch sub/conftst$i.h 5830 done 5831 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5832 5833 case $depmode in 5834 nosideeffect) 5835 # after this tag, mechanisms are not by side-effect, so they'll 5836 # only be used when explicitly requested 5837 if test "x$enable_dependency_tracking" = xyes; then 5838 continue 5839 else 5840 break 5841 fi 5842 ;; 5843 none) break ;; 5844 esac 5845 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5846 # mode. It turns out that the SunPro C++ compiler does not properly 5847 # handle `-M -o', and we need to detect this. 5848 if depmode=$depmode \ 5849 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5850 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5851 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5852 >/dev/null 2>conftest.err && 5853 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5854 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5855 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5856 # icc doesn't choke on unknown options, it will just issue warnings 5857 # or remarks (even with -Werror). So we grep stderr for any message 5858 # that says an option was ignored or not supported. 5859 # When given -MP, icc 7.0 and 7.1 complain thusly: 5860 # icc: Command line warning: ignoring option '-M'; no argument required 5861 # The diagnosis changed in icc 8.0: 5862 # icc: Command line remark: option '-MP' not supported 5863 if (grep 'ignoring option' conftest.err || 5864 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5865 am_cv_CXX_dependencies_compiler_type=$depmode 5866 break 5867 fi 5868 fi 5869 done 5870 5871 cd .. 5872 rm -rf conftest.dir 5873else 5874 am_cv_CXX_dependencies_compiler_type=none 5875fi 5876 5877fi 5878{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5879echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5880CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5881 5882 5883 5884if 5885 test "x$enable_dependency_tracking" != xno \ 5886 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5887 am__fastdepCXX_TRUE= 5888 am__fastdepCXX_FALSE='#' 5889else 5890 am__fastdepCXX_TRUE='#' 5891 am__fastdepCXX_FALSE= 5892fi 5893 5894 5895 5896 5897if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5898 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5899 (test "X$CXX" != "Xg++"))) ; then 5900 ac_ext=cpp 5901ac_cpp='$CXXCPP $CPPFLAGS' 5902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5905{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5906echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5907if test -z "$CXXCPP"; then 5908 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5909 echo $ECHO_N "(cached) $ECHO_C" >&6 5910else 5911 # Double quotes because CXXCPP needs to be expanded 5912 for CXXCPP in "$CXX -E" "/lib/cpp" 5913 do 5914 ac_preproc_ok=false 5915for ac_cxx_preproc_warn_flag in '' yes 5916do 5917 # Use a header file that comes with gcc, so configuring glibc 5918 # with a fresh cross-compiler works. 5919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5920 # <limits.h> exists even on freestanding compilers. 5921 # On the NeXT, cc -E runs the code through the compiler's parser, 5922 # not just through cpp. "Syntax error" is here to catch this case. 5923 cat >conftest.$ac_ext <<_ACEOF 5924/* confdefs.h. */ 5925_ACEOF 5926cat confdefs.h >>conftest.$ac_ext 5927cat >>conftest.$ac_ext <<_ACEOF 5928/* end confdefs.h. */ 5929#ifdef __STDC__ 5930# include <limits.h> 5931#else 5932# include <assert.h> 5933#endif 5934 Syntax error 5935_ACEOF 5936if { (ac_try="$ac_cpp conftest.$ac_ext" 5937case "(($ac_try" in 5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5939 *) ac_try_echo=$ac_try;; 5940esac 5941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5943 ac_status=$? 5944 grep -v '^ *+' conftest.er1 >conftest.err 5945 rm -f conftest.er1 5946 cat conftest.err >&5 5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5948 (exit $ac_status); } >/dev/null; then 5949 if test -s conftest.err; then 5950 ac_cpp_err=$ac_cxx_preproc_warn_flag 5951 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5952 else 5953 ac_cpp_err= 5954 fi 5955else 5956 ac_cpp_err=yes 5957fi 5958if test -z "$ac_cpp_err"; then 5959 : 5960else 5961 echo "$as_me: failed program was:" >&5 5962sed 's/^/| /' conftest.$ac_ext >&5 5963 5964 # Broken: fails on valid input. 5965continue 5966fi 5967 5968rm -f conftest.err conftest.$ac_ext 5969 5970 # OK, works on sane cases. Now check whether nonexistent headers 5971 # can be detected and how. 5972 cat >conftest.$ac_ext <<_ACEOF 5973/* confdefs.h. */ 5974_ACEOF 5975cat confdefs.h >>conftest.$ac_ext 5976cat >>conftest.$ac_ext <<_ACEOF 5977/* end confdefs.h. */ 5978#include <ac_nonexistent.h> 5979_ACEOF 5980if { (ac_try="$ac_cpp conftest.$ac_ext" 5981case "(($ac_try" in 5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5983 *) ac_try_echo=$ac_try;; 5984esac 5985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5987 ac_status=$? 5988 grep -v '^ *+' conftest.er1 >conftest.err 5989 rm -f conftest.er1 5990 cat conftest.err >&5 5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5992 (exit $ac_status); } >/dev/null; then 5993 if test -s conftest.err; then 5994 ac_cpp_err=$ac_cxx_preproc_warn_flag 5995 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5996 else 5997 ac_cpp_err= 5998 fi 5999else 6000 ac_cpp_err=yes 6001fi 6002if test -z "$ac_cpp_err"; then 6003 # Broken: success on invalid input. 6004continue 6005else 6006 echo "$as_me: failed program was:" >&5 6007sed 's/^/| /' conftest.$ac_ext >&5 6008 6009 # Passes both tests. 6010ac_preproc_ok=: 6011break 6012fi 6013 6014rm -f conftest.err conftest.$ac_ext 6015 6016done 6017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6018rm -f conftest.err conftest.$ac_ext 6019if $ac_preproc_ok; then 6020 break 6021fi 6022 6023 done 6024 ac_cv_prog_CXXCPP=$CXXCPP 6025 6026fi 6027 CXXCPP=$ac_cv_prog_CXXCPP 6028else 6029 ac_cv_prog_CXXCPP=$CXXCPP 6030fi 6031{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6032echo "${ECHO_T}$CXXCPP" >&6; } 6033ac_preproc_ok=false 6034for ac_cxx_preproc_warn_flag in '' yes 6035do 6036 # Use a header file that comes with gcc, so configuring glibc 6037 # with a fresh cross-compiler works. 6038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6039 # <limits.h> exists even on freestanding compilers. 6040 # On the NeXT, cc -E runs the code through the compiler's parser, 6041 # not just through cpp. "Syntax error" is here to catch this case. 6042 cat >conftest.$ac_ext <<_ACEOF 6043/* confdefs.h. */ 6044_ACEOF 6045cat confdefs.h >>conftest.$ac_ext 6046cat >>conftest.$ac_ext <<_ACEOF 6047/* end confdefs.h. */ 6048#ifdef __STDC__ 6049# include <limits.h> 6050#else 6051# include <assert.h> 6052#endif 6053 Syntax error 6054_ACEOF 6055if { (ac_try="$ac_cpp conftest.$ac_ext" 6056case "(($ac_try" in 6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6058 *) ac_try_echo=$ac_try;; 6059esac 6060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6062 ac_status=$? 6063 grep -v '^ *+' conftest.er1 >conftest.err 6064 rm -f conftest.er1 6065 cat conftest.err >&5 6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6067 (exit $ac_status); } >/dev/null; then 6068 if test -s conftest.err; then 6069 ac_cpp_err=$ac_cxx_preproc_warn_flag 6070 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6071 else 6072 ac_cpp_err= 6073 fi 6074else 6075 ac_cpp_err=yes 6076fi 6077if test -z "$ac_cpp_err"; then 6078 : 6079else 6080 echo "$as_me: failed program was:" >&5 6081sed 's/^/| /' conftest.$ac_ext >&5 6082 6083 # Broken: fails on valid input. 6084continue 6085fi 6086 6087rm -f conftest.err conftest.$ac_ext 6088 6089 # OK, works on sane cases. Now check whether nonexistent headers 6090 # can be detected and how. 6091 cat >conftest.$ac_ext <<_ACEOF 6092/* confdefs.h. */ 6093_ACEOF 6094cat confdefs.h >>conftest.$ac_ext 6095cat >>conftest.$ac_ext <<_ACEOF 6096/* end confdefs.h. */ 6097#include <ac_nonexistent.h> 6098_ACEOF 6099if { (ac_try="$ac_cpp conftest.$ac_ext" 6100case "(($ac_try" in 6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6102 *) ac_try_echo=$ac_try;; 6103esac 6104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6106 ac_status=$? 6107 grep -v '^ *+' conftest.er1 >conftest.err 6108 rm -f conftest.er1 6109 cat conftest.err >&5 6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6111 (exit $ac_status); } >/dev/null; then 6112 if test -s conftest.err; then 6113 ac_cpp_err=$ac_cxx_preproc_warn_flag 6114 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6115 else 6116 ac_cpp_err= 6117 fi 6118else 6119 ac_cpp_err=yes 6120fi 6121if test -z "$ac_cpp_err"; then 6122 # Broken: success on invalid input. 6123continue 6124else 6125 echo "$as_me: failed program was:" >&5 6126sed 's/^/| /' conftest.$ac_ext >&5 6127 6128 # Passes both tests. 6129ac_preproc_ok=: 6130break 6131fi 6132 6133rm -f conftest.err conftest.$ac_ext 6134 6135done 6136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6137rm -f conftest.err conftest.$ac_ext 6138if $ac_preproc_ok; then 6139 : 6140else 6141 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6142See \`config.log' for more details." >&5 6143echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6144See \`config.log' for more details." >&2;} 6145 { (exit 1); exit 1; }; } 6146fi 6147 6148ac_ext=cpp 6149ac_cpp='$CXXCPP $CPPFLAGS' 6150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6153 6154fi 6155 6156 6157ac_ext=f 6158ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6159ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6160ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6161if test -n "$ac_tool_prefix"; then 6162 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6163 do 6164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6165set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6166{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6168if test "${ac_cv_prog_F77+set}" = set; then 6169 echo $ECHO_N "(cached) $ECHO_C" >&6 6170else 6171 if test -n "$F77"; then 6172 ac_cv_prog_F77="$F77" # Let the user override the test. 6173else 6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6175for as_dir in $PATH 6176do 6177 IFS=$as_save_IFS 6178 test -z "$as_dir" && as_dir=. 6179 for ac_exec_ext in '' $ac_executable_extensions; do 6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6181 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6183 break 2 6184 fi 6185done 6186done 6187IFS=$as_save_IFS 6188 6189fi 6190fi 6191F77=$ac_cv_prog_F77 6192if test -n "$F77"; then 6193 { echo "$as_me:$LINENO: result: $F77" >&5 6194echo "${ECHO_T}$F77" >&6; } 6195else 6196 { echo "$as_me:$LINENO: result: no" >&5 6197echo "${ECHO_T}no" >&6; } 6198fi 6199 6200 6201 test -n "$F77" && break 6202 done 6203fi 6204if test -z "$F77"; then 6205 ac_ct_F77=$F77 6206 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6207do 6208 # Extract the first word of "$ac_prog", so it can be a program name with args. 6209set dummy $ac_prog; ac_word=$2 6210{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6212if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6213 echo $ECHO_N "(cached) $ECHO_C" >&6 6214else 6215 if test -n "$ac_ct_F77"; then 6216 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6217else 6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6219for as_dir in $PATH 6220do 6221 IFS=$as_save_IFS 6222 test -z "$as_dir" && as_dir=. 6223 for ac_exec_ext in '' $ac_executable_extensions; do 6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6225 ac_cv_prog_ac_ct_F77="$ac_prog" 6226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6227 break 2 6228 fi 6229done 6230done 6231IFS=$as_save_IFS 6232 6233fi 6234fi 6235ac_ct_F77=$ac_cv_prog_ac_ct_F77 6236if test -n "$ac_ct_F77"; then 6237 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6238echo "${ECHO_T}$ac_ct_F77" >&6; } 6239else 6240 { echo "$as_me:$LINENO: result: no" >&5 6241echo "${ECHO_T}no" >&6; } 6242fi 6243 6244 6245 test -n "$ac_ct_F77" && break 6246done 6247 6248 if test "x$ac_ct_F77" = x; then 6249 F77="" 6250 else 6251 case $cross_compiling:$ac_tool_warned in 6252yes:) 6253{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6254whose name does not start with the host triplet. If you think this 6255configuration is useful to you, please write to autoconf@gnu.org." >&5 6256echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6257whose name does not start with the host triplet. If you think this 6258configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6259ac_tool_warned=yes ;; 6260esac 6261 F77=$ac_ct_F77 6262 fi 6263fi 6264 6265 6266# Provide some information about the compiler. 6267echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6268ac_compiler=`set X $ac_compile; echo $2` 6269{ (ac_try="$ac_compiler --version >&5" 6270case "(($ac_try" in 6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6272 *) ac_try_echo=$ac_try;; 6273esac 6274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6275 (eval "$ac_compiler --version >&5") 2>&5 6276 ac_status=$? 6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6278 (exit $ac_status); } 6279{ (ac_try="$ac_compiler -v >&5" 6280case "(($ac_try" in 6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6282 *) ac_try_echo=$ac_try;; 6283esac 6284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6285 (eval "$ac_compiler -v >&5") 2>&5 6286 ac_status=$? 6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6288 (exit $ac_status); } 6289{ (ac_try="$ac_compiler -V >&5" 6290case "(($ac_try" in 6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6292 *) ac_try_echo=$ac_try;; 6293esac 6294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6295 (eval "$ac_compiler -V >&5") 2>&5 6296 ac_status=$? 6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6298 (exit $ac_status); } 6299rm -f a.out 6300 6301# If we don't use `.F' as extension, the preprocessor is not run on the 6302# input file. (Note that this only needs to work for GNU compilers.) 6303ac_save_ext=$ac_ext 6304ac_ext=F 6305{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6306echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6307if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6308 echo $ECHO_N "(cached) $ECHO_C" >&6 6309else 6310 cat >conftest.$ac_ext <<_ACEOF 6311 program main 6312#ifndef __GNUC__ 6313 choke me 6314#endif 6315 6316 end 6317_ACEOF 6318rm -f conftest.$ac_objext 6319if { (ac_try="$ac_compile" 6320case "(($ac_try" in 6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6322 *) ac_try_echo=$ac_try;; 6323esac 6324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6325 (eval "$ac_compile") 2>conftest.er1 6326 ac_status=$? 6327 grep -v '^ *+' conftest.er1 >conftest.err 6328 rm -f conftest.er1 6329 cat conftest.err >&5 6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6331 (exit $ac_status); } && 6332 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6333 { (case "(($ac_try" in 6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6335 *) ac_try_echo=$ac_try;; 6336esac 6337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6338 (eval "$ac_try") 2>&5 6339 ac_status=$? 6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6341 (exit $ac_status); }; } && 6342 { ac_try='test -s conftest.$ac_objext' 6343 { (case "(($ac_try" in 6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6345 *) ac_try_echo=$ac_try;; 6346esac 6347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6348 (eval "$ac_try") 2>&5 6349 ac_status=$? 6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6351 (exit $ac_status); }; }; then 6352 ac_compiler_gnu=yes 6353else 6354 echo "$as_me: failed program was:" >&5 6355sed 's/^/| /' conftest.$ac_ext >&5 6356 6357 ac_compiler_gnu=no 6358fi 6359 6360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6361ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6362 6363fi 6364{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6365echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6366ac_ext=$ac_save_ext 6367ac_test_FFLAGS=${FFLAGS+set} 6368ac_save_FFLAGS=$FFLAGS 6369FFLAGS= 6370{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6371echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6372if test "${ac_cv_prog_f77_g+set}" = set; then 6373 echo $ECHO_N "(cached) $ECHO_C" >&6 6374else 6375 FFLAGS=-g 6376cat >conftest.$ac_ext <<_ACEOF 6377 program main 6378 6379 end 6380_ACEOF 6381rm -f conftest.$ac_objext 6382if { (ac_try="$ac_compile" 6383case "(($ac_try" in 6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6385 *) ac_try_echo=$ac_try;; 6386esac 6387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6388 (eval "$ac_compile") 2>conftest.er1 6389 ac_status=$? 6390 grep -v '^ *+' conftest.er1 >conftest.err 6391 rm -f conftest.er1 6392 cat conftest.err >&5 6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6394 (exit $ac_status); } && 6395 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6396 { (case "(($ac_try" in 6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6398 *) ac_try_echo=$ac_try;; 6399esac 6400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6401 (eval "$ac_try") 2>&5 6402 ac_status=$? 6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6404 (exit $ac_status); }; } && 6405 { ac_try='test -s conftest.$ac_objext' 6406 { (case "(($ac_try" in 6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6408 *) ac_try_echo=$ac_try;; 6409esac 6410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6411 (eval "$ac_try") 2>&5 6412 ac_status=$? 6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6414 (exit $ac_status); }; }; then 6415 ac_cv_prog_f77_g=yes 6416else 6417 echo "$as_me: failed program was:" >&5 6418sed 's/^/| /' conftest.$ac_ext >&5 6419 6420 ac_cv_prog_f77_g=no 6421fi 6422 6423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6424 6425fi 6426{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6427echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6428if test "$ac_test_FFLAGS" = set; then 6429 FFLAGS=$ac_save_FFLAGS 6430elif test $ac_cv_prog_f77_g = yes; then 6431 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6432 FFLAGS="-g -O2" 6433 else 6434 FFLAGS="-g" 6435 fi 6436else 6437 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6438 FFLAGS="-O2" 6439 else 6440 FFLAGS= 6441 fi 6442fi 6443 6444G77=`test $ac_compiler_gnu = yes && echo yes` 6445ac_ext=c 6446ac_cpp='$CPP $CPPFLAGS' 6447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6449ac_compiler_gnu=$ac_cv_c_compiler_gnu 6450 6451 6452 6453# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6454 6455# find the maximum length of command line arguments 6456{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6457echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6458if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6459 echo $ECHO_N "(cached) $ECHO_C" >&6 6460else 6461 i=0 6462 teststring="ABCD" 6463 6464 case $build_os in 6465 msdosdjgpp*) 6466 # On DJGPP, this test can blow up pretty badly due to problems in libc 6467 # (any single argument exceeding 2000 bytes causes a buffer overrun 6468 # during glob expansion). Even if it were fixed, the result of this 6469 # check would be larger than it should be. 6470 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6471 ;; 6472 6473 gnu*) 6474 # Under GNU Hurd, this test is not required because there is 6475 # no limit to the length of command line arguments. 6476 # Libtool will interpret -1 as no limit whatsoever 6477 lt_cv_sys_max_cmd_len=-1; 6478 ;; 6479 6480 cygwin* | mingw*) 6481 # On Win9x/ME, this test blows up -- it succeeds, but takes 6482 # about 5 minutes as the teststring grows exponentially. 6483 # Worse, since 9x/ME are not pre-emptively multitasking, 6484 # you end up with a "frozen" computer, even though with patience 6485 # the test eventually succeeds (with a max line length of 256k). 6486 # Instead, let's just punt: use the minimum linelength reported by 6487 # all of the supported platforms: 8192 (on NT/2K/XP). 6488 lt_cv_sys_max_cmd_len=8192; 6489 ;; 6490 6491 amigaos*) 6492 # On AmigaOS with pdksh, this test takes hours, literally. 6493 # So we just punt and use a minimum line length of 8192. 6494 lt_cv_sys_max_cmd_len=8192; 6495 ;; 6496 6497 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6498 # This has been around since 386BSD, at least. Likely further. 6499 if test -x /sbin/sysctl; then 6500 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6501 elif test -x /usr/sbin/sysctl; then 6502 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6503 else 6504 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6505 fi 6506 # And add a safety zone 6507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6508 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6509 ;; 6510 6511 interix*) 6512 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6513 lt_cv_sys_max_cmd_len=196608 6514 ;; 6515 6516 osf*) 6517 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6518 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6519 # nice to cause kernel panics so lets avoid the loop below. 6520 # First set a reasonable default. 6521 lt_cv_sys_max_cmd_len=16384 6522 # 6523 if test -x /sbin/sysconfig; then 6524 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6525 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6526 esac 6527 fi 6528 ;; 6529 sco3.2v5*) 6530 lt_cv_sys_max_cmd_len=102400 6531 ;; 6532 sysv5* | sco5v6* | sysv4.2uw2*) 6533 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6534 if test -n "$kargmax"; then 6535 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6536 else 6537 lt_cv_sys_max_cmd_len=32768 6538 fi 6539 ;; 6540 *) 6541 # If test is not a shell built-in, we'll probably end up computing a 6542 # maximum length that is only half of the actual maximum length, but 6543 # we can't tell. 6544 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6545 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6546 = "XX$teststring") >/dev/null 2>&1 && 6547 new_result=`expr "X$teststring" : ".*" 2>&1` && 6548 lt_cv_sys_max_cmd_len=$new_result && 6549 test $i != 17 # 1/2 MB should be enough 6550 do 6551 i=`expr $i + 1` 6552 teststring=$teststring$teststring 6553 done 6554 teststring= 6555 # Add a significant safety factor because C++ compilers can tack on massive 6556 # amounts of additional arguments before passing them to the linker. 6557 # It appears as though 1/2 is a usable value. 6558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6559 ;; 6560 esac 6561 6562fi 6563 6564if test -n $lt_cv_sys_max_cmd_len ; then 6565 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6566echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6567else 6568 { echo "$as_me:$LINENO: result: none" >&5 6569echo "${ECHO_T}none" >&6; } 6570fi 6571 6572 6573 6574 6575# Check for command to grab the raw symbol name followed by C symbol from nm. 6576{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6577echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6578if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6579 echo $ECHO_N "(cached) $ECHO_C" >&6 6580else 6581 6582# These are sane defaults that work on at least a few old systems. 6583# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6584 6585# Character class describing NM global symbol codes. 6586symcode='[BCDEGRST]' 6587 6588# Regexp to match symbols that can be accessed directly from C. 6589sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6590 6591# Transform an extracted symbol line into a proper C declaration 6592lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6593 6594# Transform an extracted symbol line into symbol name and symbol address 6595lt_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'" 6596 6597# Define system-specific variables. 6598case $host_os in 6599aix*) 6600 symcode='[BCDT]' 6601 ;; 6602cygwin* | mingw* | pw32*) 6603 symcode='[ABCDGISTW]' 6604 ;; 6605hpux*) # Its linker distinguishes data from code symbols 6606 if test "$host_cpu" = ia64; then 6607 symcode='[ABCDEGRST]' 6608 fi 6609 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6610 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'" 6611 ;; 6612linux* | k*bsd*-gnu) 6613 if test "$host_cpu" = ia64; then 6614 symcode='[ABCDGIRSTW]' 6615 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6616 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'" 6617 fi 6618 ;; 6619irix* | nonstopux*) 6620 symcode='[BCDEGRST]' 6621 ;; 6622osf*) 6623 symcode='[BCDEGQRST]' 6624 ;; 6625solaris*) 6626 symcode='[BDRT]' 6627 ;; 6628sco3.2v5*) 6629 symcode='[DT]' 6630 ;; 6631sysv4.2uw2*) 6632 symcode='[DT]' 6633 ;; 6634sysv5* | sco5v6* | unixware* | OpenUNIX*) 6635 symcode='[ABDT]' 6636 ;; 6637sysv4) 6638 symcode='[DFNSTU]' 6639 ;; 6640esac 6641 6642# Handle CRLF in mingw tool chain 6643opt_cr= 6644case $build_os in 6645mingw*) 6646 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6647 ;; 6648esac 6649 6650# If we're using GNU nm, then use its standard symbol codes. 6651case `$NM -V 2>&1` in 6652*GNU* | *'with BFD'*) 6653 symcode='[ABCDGIRSTW]' ;; 6654esac 6655 6656# Try without a prefix undercore, then with it. 6657for ac_symprfx in "" "_"; do 6658 6659 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6660 symxfrm="\\1 $ac_symprfx\\2 \\2" 6661 6662 # Write the raw and C identifiers. 6663 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6664 6665 # Check to see that the pipe works correctly. 6666 pipe_works=no 6667 6668 rm -f conftest* 6669 cat > conftest.$ac_ext <<EOF 6670#ifdef __cplusplus 6671extern "C" { 6672#endif 6673char nm_test_var; 6674void nm_test_func(){} 6675#ifdef __cplusplus 6676} 6677#endif 6678int main(){nm_test_var='a';nm_test_func();return(0);} 6679EOF 6680 6681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6682 (eval $ac_compile) 2>&5 6683 ac_status=$? 6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6685 (exit $ac_status); }; then 6686 # Now try to grab the symbols. 6687 nlist=conftest.nm 6688 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6689 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6690 ac_status=$? 6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6692 (exit $ac_status); } && test -s "$nlist"; then 6693 # Try sorting and uniquifying the output. 6694 if sort "$nlist" | uniq > "$nlist"T; then 6695 mv -f "$nlist"T "$nlist" 6696 else 6697 rm -f "$nlist"T 6698 fi 6699 6700 # Make sure that we snagged all the symbols we need. 6701 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6702 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6703 cat <<EOF > conftest.$ac_ext 6704#ifdef __cplusplus 6705extern "C" { 6706#endif 6707 6708EOF 6709 # Now generate the symbol file. 6710 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6711 6712 cat <<EOF >> conftest.$ac_ext 6713#if defined (__STDC__) && __STDC__ 6714# define lt_ptr_t void * 6715#else 6716# define lt_ptr_t char * 6717# define const 6718#endif 6719 6720/* The mapping between symbol names and symbols. */ 6721const struct { 6722 const char *name; 6723 lt_ptr_t address; 6724} 6725lt_preloaded_symbols[] = 6726{ 6727EOF 6728 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6729 cat <<\EOF >> conftest.$ac_ext 6730 {0, (lt_ptr_t) 0} 6731}; 6732 6733#ifdef __cplusplus 6734} 6735#endif 6736EOF 6737 # Now try linking the two files. 6738 mv conftest.$ac_objext conftstm.$ac_objext 6739 lt_save_LIBS="$LIBS" 6740 lt_save_CFLAGS="$CFLAGS" 6741 LIBS="conftstm.$ac_objext" 6742 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6744 (eval $ac_link) 2>&5 6745 ac_status=$? 6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6747 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6748 pipe_works=yes 6749 fi 6750 LIBS="$lt_save_LIBS" 6751 CFLAGS="$lt_save_CFLAGS" 6752 else 6753 echo "cannot find nm_test_func in $nlist" >&5 6754 fi 6755 else 6756 echo "cannot find nm_test_var in $nlist" >&5 6757 fi 6758 else 6759 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6760 fi 6761 else 6762 echo "$progname: failed program was:" >&5 6763 cat conftest.$ac_ext >&5 6764 fi 6765 rm -f conftest* conftst* 6766 6767 # Do not use the global_symbol_pipe unless it works. 6768 if test "$pipe_works" = yes; then 6769 break 6770 else 6771 lt_cv_sys_global_symbol_pipe= 6772 fi 6773done 6774 6775fi 6776 6777if test -z "$lt_cv_sys_global_symbol_pipe"; then 6778 lt_cv_sys_global_symbol_to_cdecl= 6779fi 6780if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6781 { echo "$as_me:$LINENO: result: failed" >&5 6782echo "${ECHO_T}failed" >&6; } 6783else 6784 { echo "$as_me:$LINENO: result: ok" >&5 6785echo "${ECHO_T}ok" >&6; } 6786fi 6787 6788{ echo "$as_me:$LINENO: checking for objdir" >&5 6789echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6790if test "${lt_cv_objdir+set}" = set; then 6791 echo $ECHO_N "(cached) $ECHO_C" >&6 6792else 6793 rm -f .libs 2>/dev/null 6794mkdir .libs 2>/dev/null 6795if test -d .libs; then 6796 lt_cv_objdir=.libs 6797else 6798 # MS-DOS does not allow filenames that begin with a dot. 6799 lt_cv_objdir=_libs 6800fi 6801rmdir .libs 2>/dev/null 6802fi 6803{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6804echo "${ECHO_T}$lt_cv_objdir" >&6; } 6805objdir=$lt_cv_objdir 6806 6807 6808 6809 6810 6811case $host_os in 6812aix3*) 6813 # AIX sometimes has problems with the GCC collect2 program. For some 6814 # reason, if we set the COLLECT_NAMES environment variable, the problems 6815 # vanish in a puff of smoke. 6816 if test "X${COLLECT_NAMES+set}" != Xset; then 6817 COLLECT_NAMES= 6818 export COLLECT_NAMES 6819 fi 6820 ;; 6821esac 6822 6823# Sed substitution that helps us do robust quoting. It backslashifies 6824# metacharacters that are still active within double-quoted strings. 6825Xsed='sed -e 1s/^X//' 6826sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6827 6828# Same as above, but do not quote variable references. 6829double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6830 6831# Sed substitution to delay expansion of an escaped shell variable in a 6832# double_quote_subst'ed string. 6833delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6834 6835# Sed substitution to avoid accidental globbing in evaled expressions 6836no_glob_subst='s/\*/\\\*/g' 6837 6838# Constants: 6839rm="rm -f" 6840 6841# Global variables: 6842default_ofile=libtool 6843can_build_shared=yes 6844 6845# All known linkers require a `.a' archive for static linking (except MSVC, 6846# which needs '.lib'). 6847libext=a 6848ltmain="$ac_aux_dir/ltmain.sh" 6849ofile="$default_ofile" 6850with_gnu_ld="$lt_cv_prog_gnu_ld" 6851 6852if test -n "$ac_tool_prefix"; then 6853 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6854set dummy ${ac_tool_prefix}ar; ac_word=$2 6855{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6857if test "${ac_cv_prog_AR+set}" = set; then 6858 echo $ECHO_N "(cached) $ECHO_C" >&6 6859else 6860 if test -n "$AR"; then 6861 ac_cv_prog_AR="$AR" # Let the user override the test. 6862else 6863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6864for as_dir in $PATH 6865do 6866 IFS=$as_save_IFS 6867 test -z "$as_dir" && as_dir=. 6868 for ac_exec_ext in '' $ac_executable_extensions; do 6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6870 ac_cv_prog_AR="${ac_tool_prefix}ar" 6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6872 break 2 6873 fi 6874done 6875done 6876IFS=$as_save_IFS 6877 6878fi 6879fi 6880AR=$ac_cv_prog_AR 6881if test -n "$AR"; then 6882 { echo "$as_me:$LINENO: result: $AR" >&5 6883echo "${ECHO_T}$AR" >&6; } 6884else 6885 { echo "$as_me:$LINENO: result: no" >&5 6886echo "${ECHO_T}no" >&6; } 6887fi 6888 6889 6890fi 6891if test -z "$ac_cv_prog_AR"; then 6892 ac_ct_AR=$AR 6893 # Extract the first word of "ar", so it can be a program name with args. 6894set dummy ar; ac_word=$2 6895{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6897if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6898 echo $ECHO_N "(cached) $ECHO_C" >&6 6899else 6900 if test -n "$ac_ct_AR"; then 6901 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6902else 6903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6904for as_dir in $PATH 6905do 6906 IFS=$as_save_IFS 6907 test -z "$as_dir" && as_dir=. 6908 for ac_exec_ext in '' $ac_executable_extensions; do 6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6910 ac_cv_prog_ac_ct_AR="ar" 6911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6912 break 2 6913 fi 6914done 6915done 6916IFS=$as_save_IFS 6917 6918fi 6919fi 6920ac_ct_AR=$ac_cv_prog_ac_ct_AR 6921if test -n "$ac_ct_AR"; then 6922 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6923echo "${ECHO_T}$ac_ct_AR" >&6; } 6924else 6925 { echo "$as_me:$LINENO: result: no" >&5 6926echo "${ECHO_T}no" >&6; } 6927fi 6928 6929 if test "x$ac_ct_AR" = x; then 6930 AR="false" 6931 else 6932 case $cross_compiling:$ac_tool_warned in 6933yes:) 6934{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6935whose name does not start with the host triplet. If you think this 6936configuration is useful to you, please write to autoconf@gnu.org." >&5 6937echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6938whose name does not start with the host triplet. If you think this 6939configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6940ac_tool_warned=yes ;; 6941esac 6942 AR=$ac_ct_AR 6943 fi 6944else 6945 AR="$ac_cv_prog_AR" 6946fi 6947 6948if test -n "$ac_tool_prefix"; then 6949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6950set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6951{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6953if test "${ac_cv_prog_RANLIB+set}" = set; then 6954 echo $ECHO_N "(cached) $ECHO_C" >&6 6955else 6956 if test -n "$RANLIB"; then 6957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6958else 6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6960for as_dir in $PATH 6961do 6962 IFS=$as_save_IFS 6963 test -z "$as_dir" && as_dir=. 6964 for ac_exec_ext in '' $ac_executable_extensions; do 6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6968 break 2 6969 fi 6970done 6971done 6972IFS=$as_save_IFS 6973 6974fi 6975fi 6976RANLIB=$ac_cv_prog_RANLIB 6977if test -n "$RANLIB"; then 6978 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6979echo "${ECHO_T}$RANLIB" >&6; } 6980else 6981 { echo "$as_me:$LINENO: result: no" >&5 6982echo "${ECHO_T}no" >&6; } 6983fi 6984 6985 6986fi 6987if test -z "$ac_cv_prog_RANLIB"; then 6988 ac_ct_RANLIB=$RANLIB 6989 # Extract the first word of "ranlib", so it can be a program name with args. 6990set dummy ranlib; ac_word=$2 6991{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6993if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6994 echo $ECHO_N "(cached) $ECHO_C" >&6 6995else 6996 if test -n "$ac_ct_RANLIB"; then 6997 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6998else 6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7000for as_dir in $PATH 7001do 7002 IFS=$as_save_IFS 7003 test -z "$as_dir" && as_dir=. 7004 for ac_exec_ext in '' $ac_executable_extensions; do 7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7006 ac_cv_prog_ac_ct_RANLIB="ranlib" 7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7008 break 2 7009 fi 7010done 7011done 7012IFS=$as_save_IFS 7013 7014fi 7015fi 7016ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7017if test -n "$ac_ct_RANLIB"; then 7018 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7019echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7020else 7021 { echo "$as_me:$LINENO: result: no" >&5 7022echo "${ECHO_T}no" >&6; } 7023fi 7024 7025 if test "x$ac_ct_RANLIB" = x; then 7026 RANLIB=":" 7027 else 7028 case $cross_compiling:$ac_tool_warned in 7029yes:) 7030{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7031whose name does not start with the host triplet. If you think this 7032configuration is useful to you, please write to autoconf@gnu.org." >&5 7033echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7034whose name does not start with the host triplet. If you think this 7035configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7036ac_tool_warned=yes ;; 7037esac 7038 RANLIB=$ac_ct_RANLIB 7039 fi 7040else 7041 RANLIB="$ac_cv_prog_RANLIB" 7042fi 7043 7044if test -n "$ac_tool_prefix"; then 7045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7046set dummy ${ac_tool_prefix}strip; ac_word=$2 7047{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7049if test "${ac_cv_prog_STRIP+set}" = set; then 7050 echo $ECHO_N "(cached) $ECHO_C" >&6 7051else 7052 if test -n "$STRIP"; then 7053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7054else 7055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7056for as_dir in $PATH 7057do 7058 IFS=$as_save_IFS 7059 test -z "$as_dir" && as_dir=. 7060 for ac_exec_ext in '' $ac_executable_extensions; do 7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7062 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7064 break 2 7065 fi 7066done 7067done 7068IFS=$as_save_IFS 7069 7070fi 7071fi 7072STRIP=$ac_cv_prog_STRIP 7073if test -n "$STRIP"; then 7074 { echo "$as_me:$LINENO: result: $STRIP" >&5 7075echo "${ECHO_T}$STRIP" >&6; } 7076else 7077 { echo "$as_me:$LINENO: result: no" >&5 7078echo "${ECHO_T}no" >&6; } 7079fi 7080 7081 7082fi 7083if test -z "$ac_cv_prog_STRIP"; then 7084 ac_ct_STRIP=$STRIP 7085 # Extract the first word of "strip", so it can be a program name with args. 7086set dummy strip; ac_word=$2 7087{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7089if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7090 echo $ECHO_N "(cached) $ECHO_C" >&6 7091else 7092 if test -n "$ac_ct_STRIP"; then 7093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7094else 7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7096for as_dir in $PATH 7097do 7098 IFS=$as_save_IFS 7099 test -z "$as_dir" && as_dir=. 7100 for ac_exec_ext in '' $ac_executable_extensions; do 7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7102 ac_cv_prog_ac_ct_STRIP="strip" 7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7104 break 2 7105 fi 7106done 7107done 7108IFS=$as_save_IFS 7109 7110fi 7111fi 7112ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7113if test -n "$ac_ct_STRIP"; then 7114 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7115echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7116else 7117 { echo "$as_me:$LINENO: result: no" >&5 7118echo "${ECHO_T}no" >&6; } 7119fi 7120 7121 if test "x$ac_ct_STRIP" = x; then 7122 STRIP=":" 7123 else 7124 case $cross_compiling:$ac_tool_warned in 7125yes:) 7126{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7127whose name does not start with the host triplet. If you think this 7128configuration is useful to you, please write to autoconf@gnu.org." >&5 7129echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7130whose name does not start with the host triplet. If you think this 7131configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7132ac_tool_warned=yes ;; 7133esac 7134 STRIP=$ac_ct_STRIP 7135 fi 7136else 7137 STRIP="$ac_cv_prog_STRIP" 7138fi 7139 7140 7141old_CC="$CC" 7142old_CFLAGS="$CFLAGS" 7143 7144# Set sane defaults for various variables 7145test -z "$AR" && AR=ar 7146test -z "$AR_FLAGS" && AR_FLAGS=cru 7147test -z "$AS" && AS=as 7148test -z "$CC" && CC=cc 7149test -z "$LTCC" && LTCC=$CC 7150test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7151test -z "$DLLTOOL" && DLLTOOL=dlltool 7152test -z "$LD" && LD=ld 7153test -z "$LN_S" && LN_S="ln -s" 7154test -z "$MAGIC_CMD" && MAGIC_CMD=file 7155test -z "$NM" && NM=nm 7156test -z "$SED" && SED=sed 7157test -z "$OBJDUMP" && OBJDUMP=objdump 7158test -z "$RANLIB" && RANLIB=: 7159test -z "$STRIP" && STRIP=: 7160test -z "$ac_objext" && ac_objext=o 7161 7162# Determine commands to create old-style static archives. 7163old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7164old_postinstall_cmds='chmod 644 $oldlib' 7165old_postuninstall_cmds= 7166 7167if test -n "$RANLIB"; then 7168 case $host_os in 7169 openbsd*) 7170 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7171 ;; 7172 *) 7173 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7174 ;; 7175 esac 7176 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7177fi 7178 7179for cc_temp in $compiler""; do 7180 case $cc_temp in 7181 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7182 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7183 \-*) ;; 7184 *) break;; 7185 esac 7186done 7187cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7188 7189 7190# Only perform the check for file, if the check method requires it 7191case $deplibs_check_method in 7192file_magic*) 7193 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7194 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7195echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7196if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7197 echo $ECHO_N "(cached) $ECHO_C" >&6 7198else 7199 case $MAGIC_CMD in 7200[\\/*] | ?:[\\/]*) 7201 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7202 ;; 7203*) 7204 lt_save_MAGIC_CMD="$MAGIC_CMD" 7205 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7206 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7207 for ac_dir in $ac_dummy; do 7208 IFS="$lt_save_ifs" 7209 test -z "$ac_dir" && ac_dir=. 7210 if test -f $ac_dir/${ac_tool_prefix}file; then 7211 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7212 if test -n "$file_magic_test_file"; then 7213 case $deplibs_check_method in 7214 "file_magic "*) 7215 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7217 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7218 $EGREP "$file_magic_regex" > /dev/null; then 7219 : 7220 else 7221 cat <<EOF 1>&2 7222 7223*** Warning: the command libtool uses to detect shared libraries, 7224*** $file_magic_cmd, produces output that libtool cannot recognize. 7225*** The result is that libtool may fail to recognize shared libraries 7226*** as such. This will affect the creation of libtool libraries that 7227*** depend on shared libraries, but programs linked with such libtool 7228*** libraries will work regardless of this problem. Nevertheless, you 7229*** may want to report the problem to your system manager and/or to 7230*** bug-libtool@gnu.org 7231 7232EOF 7233 fi ;; 7234 esac 7235 fi 7236 break 7237 fi 7238 done 7239 IFS="$lt_save_ifs" 7240 MAGIC_CMD="$lt_save_MAGIC_CMD" 7241 ;; 7242esac 7243fi 7244 7245MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7246if test -n "$MAGIC_CMD"; then 7247 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7248echo "${ECHO_T}$MAGIC_CMD" >&6; } 7249else 7250 { echo "$as_me:$LINENO: result: no" >&5 7251echo "${ECHO_T}no" >&6; } 7252fi 7253 7254if test -z "$lt_cv_path_MAGIC_CMD"; then 7255 if test -n "$ac_tool_prefix"; then 7256 { echo "$as_me:$LINENO: checking for file" >&5 7257echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7258if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7259 echo $ECHO_N "(cached) $ECHO_C" >&6 7260else 7261 case $MAGIC_CMD in 7262[\\/*] | ?:[\\/]*) 7263 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7264 ;; 7265*) 7266 lt_save_MAGIC_CMD="$MAGIC_CMD" 7267 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7268 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7269 for ac_dir in $ac_dummy; do 7270 IFS="$lt_save_ifs" 7271 test -z "$ac_dir" && ac_dir=. 7272 if test -f $ac_dir/file; then 7273 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7274 if test -n "$file_magic_test_file"; then 7275 case $deplibs_check_method in 7276 "file_magic "*) 7277 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7278 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7279 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7280 $EGREP "$file_magic_regex" > /dev/null; then 7281 : 7282 else 7283 cat <<EOF 1>&2 7284 7285*** Warning: the command libtool uses to detect shared libraries, 7286*** $file_magic_cmd, produces output that libtool cannot recognize. 7287*** The result is that libtool may fail to recognize shared libraries 7288*** as such. This will affect the creation of libtool libraries that 7289*** depend on shared libraries, but programs linked with such libtool 7290*** libraries will work regardless of this problem. Nevertheless, you 7291*** may want to report the problem to your system manager and/or to 7292*** bug-libtool@gnu.org 7293 7294EOF 7295 fi ;; 7296 esac 7297 fi 7298 break 7299 fi 7300 done 7301 IFS="$lt_save_ifs" 7302 MAGIC_CMD="$lt_save_MAGIC_CMD" 7303 ;; 7304esac 7305fi 7306 7307MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7308if test -n "$MAGIC_CMD"; then 7309 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7310echo "${ECHO_T}$MAGIC_CMD" >&6; } 7311else 7312 { echo "$as_me:$LINENO: result: no" >&5 7313echo "${ECHO_T}no" >&6; } 7314fi 7315 7316 else 7317 MAGIC_CMD=: 7318 fi 7319fi 7320 7321 fi 7322 ;; 7323esac 7324 7325enable_dlopen=no 7326enable_win32_dll=no 7327 7328# Check whether --enable-libtool-lock was given. 7329if test "${enable_libtool_lock+set}" = set; then 7330 enableval=$enable_libtool_lock; 7331fi 7332 7333test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7334 7335 7336# Check whether --with-pic was given. 7337if test "${with_pic+set}" = set; then 7338 withval=$with_pic; pic_mode="$withval" 7339else 7340 pic_mode=default 7341fi 7342 7343test -z "$pic_mode" && pic_mode=default 7344 7345# Use C for the default configuration in the libtool script 7346tagname= 7347lt_save_CC="$CC" 7348ac_ext=c 7349ac_cpp='$CPP $CPPFLAGS' 7350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7352ac_compiler_gnu=$ac_cv_c_compiler_gnu 7353 7354 7355# Source file extension for C test sources. 7356ac_ext=c 7357 7358# Object file extension for compiled C test sources. 7359objext=o 7360objext=$objext 7361 7362# Code to be used in simple compile tests 7363lt_simple_compile_test_code="int some_variable = 0;\n" 7364 7365# Code to be used in simple link tests 7366lt_simple_link_test_code='int main(){return(0);}\n' 7367 7368 7369# If no C compiler was specified, use CC. 7370LTCC=${LTCC-"$CC"} 7371 7372# If no C compiler flags were specified, use CFLAGS. 7373LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7374 7375# Allow CC to be a program name with arguments. 7376compiler=$CC 7377 7378 7379# save warnings/boilerplate of simple test code 7380ac_outfile=conftest.$ac_objext 7381printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7382eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7383_lt_compiler_boilerplate=`cat conftest.err` 7384$rm conftest* 7385 7386ac_outfile=conftest.$ac_objext 7387printf "$lt_simple_link_test_code" >conftest.$ac_ext 7388eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7389_lt_linker_boilerplate=`cat conftest.err` 7390$rm conftest* 7391 7392 7393 7394lt_prog_compiler_no_builtin_flag= 7395 7396if test "$GCC" = yes; then 7397 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7398 7399 7400{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7401echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7402if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7403 echo $ECHO_N "(cached) $ECHO_C" >&6 7404else 7405 lt_cv_prog_compiler_rtti_exceptions=no 7406 ac_outfile=conftest.$ac_objext 7407 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7408 lt_compiler_flag="-fno-rtti -fno-exceptions" 7409 # Insert the option either (1) after the last *FLAGS variable, or 7410 # (2) before a word containing "conftest.", or (3) at the end. 7411 # Note that $ac_compile itself does not contain backslashes and begins 7412 # with a dollar sign (not a hyphen), so the echo should work correctly. 7413 # The option is referenced via a variable to avoid confusing sed. 7414 lt_compile=`echo "$ac_compile" | $SED \ 7415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7417 -e 's:$: $lt_compiler_flag:'` 7418 (eval echo "\"\$as_me:7418: $lt_compile\"" >&5) 7419 (eval "$lt_compile" 2>conftest.err) 7420 ac_status=$? 7421 cat conftest.err >&5 7422 echo "$as_me:7422: \$? = $ac_status" >&5 7423 if (exit $ac_status) && test -s "$ac_outfile"; then 7424 # The compiler can only warn and ignore the option if not recognized 7425 # So say no if there are warnings other than the usual output. 7426 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7429 lt_cv_prog_compiler_rtti_exceptions=yes 7430 fi 7431 fi 7432 $rm conftest* 7433 7434fi 7435{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7436echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7437 7438if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7439 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7440else 7441 : 7442fi 7443 7444fi 7445 7446lt_prog_compiler_wl= 7447lt_prog_compiler_pic= 7448lt_prog_compiler_static= 7449 7450{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7451echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7452 7453 if test "$GCC" = yes; then 7454 lt_prog_compiler_wl='-Wl,' 7455 lt_prog_compiler_static='-static' 7456 7457 case $host_os in 7458 aix*) 7459 # All AIX code is PIC. 7460 if test "$host_cpu" = ia64; then 7461 # AIX 5 now supports IA64 processor 7462 lt_prog_compiler_static='-Bstatic' 7463 fi 7464 ;; 7465 7466 amigaos*) 7467 # FIXME: we need at least 68020 code to build shared libraries, but 7468 # adding the `-m68020' flag to GCC prevents building anything better, 7469 # like `-m68040'. 7470 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7471 ;; 7472 7473 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7474 # PIC is the default for these OSes. 7475 ;; 7476 7477 mingw* | pw32* | os2*) 7478 # This hack is so that the source file can tell whether it is being 7479 # built for inclusion in a dll (and should export symbols for example). 7480 lt_prog_compiler_pic='-DDLL_EXPORT' 7481 ;; 7482 7483 darwin* | rhapsody*) 7484 # PIC is the default on this platform 7485 # Common symbols not allowed in MH_DYLIB files 7486 lt_prog_compiler_pic='-fno-common' 7487 ;; 7488 7489 interix3*) 7490 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7491 # Instead, we relocate shared libraries at runtime. 7492 ;; 7493 7494 msdosdjgpp*) 7495 # Just because we use GCC doesn't mean we suddenly get shared libraries 7496 # on systems that don't support them. 7497 lt_prog_compiler_can_build_shared=no 7498 enable_shared=no 7499 ;; 7500 7501 sysv4*MP*) 7502 if test -d /usr/nec; then 7503 lt_prog_compiler_pic=-Kconform_pic 7504 fi 7505 ;; 7506 7507 hpux*) 7508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7509 # not for PA HP-UX. 7510 case $host_cpu in 7511 hppa*64*|ia64*) 7512 # +Z the default 7513 ;; 7514 *) 7515 lt_prog_compiler_pic='-fPIC' 7516 ;; 7517 esac 7518 ;; 7519 7520 *) 7521 lt_prog_compiler_pic='-fPIC' 7522 ;; 7523 esac 7524 else 7525 # PORTME Check for flag to pass linker flags through the system compiler. 7526 case $host_os in 7527 aix*) 7528 lt_prog_compiler_wl='-Wl,' 7529 if test "$host_cpu" = ia64; then 7530 # AIX 5 now supports IA64 processor 7531 lt_prog_compiler_static='-Bstatic' 7532 else 7533 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7534 fi 7535 ;; 7536 darwin*) 7537 # PIC is the default on this platform 7538 # Common symbols not allowed in MH_DYLIB files 7539 case $cc_basename in 7540 xlc*) 7541 lt_prog_compiler_pic='-qnocommon' 7542 lt_prog_compiler_wl='-Wl,' 7543 ;; 7544 esac 7545 ;; 7546 7547 mingw* | pw32* | os2*) 7548 # This hack is so that the source file can tell whether it is being 7549 # built for inclusion in a dll (and should export symbols for example). 7550 lt_prog_compiler_pic='-DDLL_EXPORT' 7551 ;; 7552 7553 hpux9* | hpux10* | hpux11*) 7554 lt_prog_compiler_wl='-Wl,' 7555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7556 # not for PA HP-UX. 7557 case $host_cpu in 7558 hppa*64*|ia64*) 7559 # +Z the default 7560 ;; 7561 *) 7562 lt_prog_compiler_pic='+Z' 7563 ;; 7564 esac 7565 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7566 lt_prog_compiler_static='${wl}-a ${wl}archive' 7567 ;; 7568 7569 irix5* | irix6* | nonstopux*) 7570 lt_prog_compiler_wl='-Wl,' 7571 # PIC (with -KPIC) is the default. 7572 lt_prog_compiler_static='-non_shared' 7573 ;; 7574 7575 newsos6) 7576 lt_prog_compiler_pic='-KPIC' 7577 lt_prog_compiler_static='-Bstatic' 7578 ;; 7579 7580 linux* | k*bsd*-gnu) 7581 case $cc_basename in 7582 icc* | ecc*) 7583 lt_prog_compiler_wl='-Wl,' 7584 lt_prog_compiler_pic='-KPIC' 7585 lt_prog_compiler_static='-static' 7586 ;; 7587 pgcc* | pgf77* | pgf90* | pgf95*) 7588 # Portland Group compilers (*not* the Pentium gcc compiler, 7589 # which looks to be a dead project) 7590 lt_prog_compiler_wl='-Wl,' 7591 lt_prog_compiler_pic='-fpic' 7592 lt_prog_compiler_static='-Bstatic' 7593 ;; 7594 ccc*) 7595 lt_prog_compiler_wl='-Wl,' 7596 # All Alpha code is PIC. 7597 lt_prog_compiler_static='-non_shared' 7598 ;; 7599 esac 7600 ;; 7601 7602 osf3* | osf4* | osf5*) 7603 lt_prog_compiler_wl='-Wl,' 7604 # All OSF/1 code is PIC. 7605 lt_prog_compiler_static='-non_shared' 7606 ;; 7607 7608 solaris*) 7609 lt_prog_compiler_pic='-KPIC' 7610 lt_prog_compiler_static='-Bstatic' 7611 case $cc_basename in 7612 f77* | f90* | f95*) 7613 lt_prog_compiler_wl='-Qoption ld ';; 7614 *) 7615 lt_prog_compiler_wl='-Wl,';; 7616 esac 7617 ;; 7618 7619 sunos4*) 7620 lt_prog_compiler_wl='-Qoption ld ' 7621 lt_prog_compiler_pic='-PIC' 7622 lt_prog_compiler_static='-Bstatic' 7623 ;; 7624 7625 sysv4 | sysv4.2uw2* | sysv4.3*) 7626 lt_prog_compiler_wl='-Wl,' 7627 lt_prog_compiler_pic='-KPIC' 7628 lt_prog_compiler_static='-Bstatic' 7629 ;; 7630 7631 sysv4*MP*) 7632 if test -d /usr/nec ;then 7633 lt_prog_compiler_pic='-Kconform_pic' 7634 lt_prog_compiler_static='-Bstatic' 7635 fi 7636 ;; 7637 7638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7639 lt_prog_compiler_wl='-Wl,' 7640 lt_prog_compiler_pic='-KPIC' 7641 lt_prog_compiler_static='-Bstatic' 7642 ;; 7643 7644 unicos*) 7645 lt_prog_compiler_wl='-Wl,' 7646 lt_prog_compiler_can_build_shared=no 7647 ;; 7648 7649 uts4*) 7650 lt_prog_compiler_pic='-pic' 7651 lt_prog_compiler_static='-Bstatic' 7652 ;; 7653 7654 *) 7655 lt_prog_compiler_can_build_shared=no 7656 ;; 7657 esac 7658 fi 7659 7660{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7661echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7662 7663# 7664# Check to make sure the PIC flag actually works. 7665# 7666if test -n "$lt_prog_compiler_pic"; then 7667 7668{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7669echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7670if test "${lt_prog_compiler_pic_works+set}" = set; then 7671 echo $ECHO_N "(cached) $ECHO_C" >&6 7672else 7673 lt_prog_compiler_pic_works=no 7674 ac_outfile=conftest.$ac_objext 7675 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7676 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7677 # Insert the option either (1) after the last *FLAGS variable, or 7678 # (2) before a word containing "conftest.", or (3) at the end. 7679 # Note that $ac_compile itself does not contain backslashes and begins 7680 # with a dollar sign (not a hyphen), so the echo should work correctly. 7681 # The option is referenced via a variable to avoid confusing sed. 7682 lt_compile=`echo "$ac_compile" | $SED \ 7683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7685 -e 's:$: $lt_compiler_flag:'` 7686 (eval echo "\"\$as_me:7686: $lt_compile\"" >&5) 7687 (eval "$lt_compile" 2>conftest.err) 7688 ac_status=$? 7689 cat conftest.err >&5 7690 echo "$as_me:7690: \$? = $ac_status" >&5 7691 if (exit $ac_status) && test -s "$ac_outfile"; then 7692 # The compiler can only warn and ignore the option if not recognized 7693 # So say no if there are warnings other than the usual output. 7694 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7697 lt_prog_compiler_pic_works=yes 7698 fi 7699 fi 7700 $rm conftest* 7701 7702fi 7703{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7704echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7705 7706if test x"$lt_prog_compiler_pic_works" = xyes; then 7707 case $lt_prog_compiler_pic in 7708 "" | " "*) ;; 7709 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7710 esac 7711else 7712 lt_prog_compiler_pic= 7713 lt_prog_compiler_can_build_shared=no 7714fi 7715 7716fi 7717case $host_os in 7718 # For platforms which do not support PIC, -DPIC is meaningless: 7719 *djgpp*) 7720 lt_prog_compiler_pic= 7721 ;; 7722 *) 7723 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7724 ;; 7725esac 7726 7727# 7728# Check to make sure the static flag actually works. 7729# 7730wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7731{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7732echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7733if test "${lt_prog_compiler_static_works+set}" = set; then 7734 echo $ECHO_N "(cached) $ECHO_C" >&6 7735else 7736 lt_prog_compiler_static_works=no 7737 save_LDFLAGS="$LDFLAGS" 7738 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7739 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7740 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7741 # The linker can only warn and ignore the option if not recognized 7742 # So say no if there are warnings 7743 if test -s conftest.err; then 7744 # Append any errors to the config.log. 7745 cat conftest.err 1>&5 7746 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7748 if diff conftest.exp conftest.er2 >/dev/null; then 7749 lt_prog_compiler_static_works=yes 7750 fi 7751 else 7752 lt_prog_compiler_static_works=yes 7753 fi 7754 fi 7755 $rm conftest* 7756 LDFLAGS="$save_LDFLAGS" 7757 7758fi 7759{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7760echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7761 7762if test x"$lt_prog_compiler_static_works" = xyes; then 7763 : 7764else 7765 lt_prog_compiler_static= 7766fi 7767 7768 7769{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7770echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7771if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7772 echo $ECHO_N "(cached) $ECHO_C" >&6 7773else 7774 lt_cv_prog_compiler_c_o=no 7775 $rm -r conftest 2>/dev/null 7776 mkdir conftest 7777 cd conftest 7778 mkdir out 7779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7780 7781 lt_compiler_flag="-o out/conftest2.$ac_objext" 7782 # Insert the option either (1) after the last *FLAGS variable, or 7783 # (2) before a word containing "conftest.", or (3) at the end. 7784 # Note that $ac_compile itself does not contain backslashes and begins 7785 # with a dollar sign (not a hyphen), so the echo should work correctly. 7786 lt_compile=`echo "$ac_compile" | $SED \ 7787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7789 -e 's:$: $lt_compiler_flag:'` 7790 (eval echo "\"\$as_me:7790: $lt_compile\"" >&5) 7791 (eval "$lt_compile" 2>out/conftest.err) 7792 ac_status=$? 7793 cat out/conftest.err >&5 7794 echo "$as_me:7794: \$? = $ac_status" >&5 7795 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7796 then 7797 # The compiler can only warn and ignore the option if not recognized 7798 # So say no if there are warnings 7799 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7802 lt_cv_prog_compiler_c_o=yes 7803 fi 7804 fi 7805 chmod u+w . 2>&5 7806 $rm conftest* 7807 # SGI C++ compiler will create directory out/ii_files/ for 7808 # template instantiation 7809 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7810 $rm out/* && rmdir out 7811 cd .. 7812 rmdir conftest 7813 $rm conftest* 7814 7815fi 7816{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7817echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7818 7819 7820hard_links="nottested" 7821if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7822 # do not overwrite the value of need_locks provided by the user 7823 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7824echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7825 hard_links=yes 7826 $rm conftest* 7827 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7828 touch conftest.a 7829 ln conftest.a conftest.b 2>&5 || hard_links=no 7830 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7831 { echo "$as_me:$LINENO: result: $hard_links" >&5 7832echo "${ECHO_T}$hard_links" >&6; } 7833 if test "$hard_links" = no; then 7834 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7835echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7836 need_locks=warn 7837 fi 7838else 7839 need_locks=no 7840fi 7841 7842{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7843echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7844 7845 runpath_var= 7846 allow_undefined_flag= 7847 enable_shared_with_static_runtimes=no 7848 archive_cmds= 7849 archive_expsym_cmds= 7850 old_archive_From_new_cmds= 7851 old_archive_from_expsyms_cmds= 7852 export_dynamic_flag_spec= 7853 whole_archive_flag_spec= 7854 thread_safe_flag_spec= 7855 hardcode_libdir_flag_spec= 7856 hardcode_libdir_flag_spec_ld= 7857 hardcode_libdir_separator= 7858 hardcode_direct=no 7859 hardcode_minus_L=no 7860 hardcode_shlibpath_var=unsupported 7861 link_all_deplibs=unknown 7862 hardcode_automatic=no 7863 module_cmds= 7864 module_expsym_cmds= 7865 always_export_symbols=no 7866 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7867 # include_expsyms should be a list of space-separated symbols to be *always* 7868 # included in the symbol list 7869 include_expsyms= 7870 # exclude_expsyms can be an extended regexp of symbols to exclude 7871 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7872 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7873 # as well as any symbol that contains `d'. 7874 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7875 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7876 # platforms (ab)use it in PIC code, but their linkers get confused if 7877 # the symbol is explicitly referenced. Since portable code cannot 7878 # rely on this symbol name, it's probably fine to never include it in 7879 # preloaded symbol tables. 7880 extract_expsyms_cmds= 7881 # Just being paranoid about ensuring that cc_basename is set. 7882 for cc_temp in $compiler""; do 7883 case $cc_temp in 7884 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7885 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7886 \-*) ;; 7887 *) break;; 7888 esac 7889done 7890cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7891 7892 case $host_os in 7893 cygwin* | mingw* | pw32*) 7894 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7895 # When not using gcc, we currently assume that we are using 7896 # Microsoft Visual C++. 7897 if test "$GCC" != yes; then 7898 with_gnu_ld=no 7899 fi 7900 ;; 7901 interix*) 7902 # we just hope/assume this is gcc and not c89 (= MSVC++) 7903 with_gnu_ld=yes 7904 ;; 7905 openbsd*) 7906 with_gnu_ld=no 7907 ;; 7908 esac 7909 7910 ld_shlibs=yes 7911 if test "$with_gnu_ld" = yes; then 7912 # If archive_cmds runs LD, not CC, wlarc should be empty 7913 wlarc='${wl}' 7914 7915 # Set some defaults for GNU ld with shared library support. These 7916 # are reset later if shared libraries are not supported. Putting them 7917 # here allows them to be overridden if necessary. 7918 runpath_var=LD_RUN_PATH 7919 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7920 export_dynamic_flag_spec='${wl}--export-dynamic' 7921 # ancient GNU ld didn't support --whole-archive et. al. 7922 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7923 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7924 else 7925 whole_archive_flag_spec= 7926 fi 7927 supports_anon_versioning=no 7928 case `$LD -v 2>/dev/null` in 7929 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7930 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7931 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7932 *\ 2.11.*) ;; # other 2.11 versions 7933 *) supports_anon_versioning=yes ;; 7934 esac 7935 7936 # See if GNU ld supports shared libraries. 7937 case $host_os in 7938 aix3* | aix4* | aix5*) 7939 # On AIX/PPC, the GNU linker is very broken 7940 if test "$host_cpu" != ia64; then 7941 ld_shlibs=no 7942 cat <<EOF 1>&2 7943 7944*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7945*** to be unable to reliably create shared libraries on AIX. 7946*** Therefore, libtool is disabling shared libraries support. If you 7947*** really care for shared libraries, you may want to modify your PATH 7948*** so that a non-GNU linker is found, and then restart. 7949 7950EOF 7951 fi 7952 ;; 7953 7954 amigaos*) 7955 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)' 7956 hardcode_libdir_flag_spec='-L$libdir' 7957 hardcode_minus_L=yes 7958 7959 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7960 # that the semantics of dynamic libraries on AmigaOS, at least up 7961 # to version 4, is to share data among multiple programs linked 7962 # with the same dynamic library. Since this doesn't match the 7963 # behavior of shared libraries on other platforms, we can't use 7964 # them. 7965 ld_shlibs=no 7966 ;; 7967 7968 beos*) 7969 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7970 allow_undefined_flag=unsupported 7971 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7972 # support --undefined. This deserves some investigation. FIXME 7973 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7974 else 7975 ld_shlibs=no 7976 fi 7977 ;; 7978 7979 cygwin* | mingw* | pw32*) 7980 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7981 # as there is no search path for DLLs. 7982 hardcode_libdir_flag_spec='-L$libdir' 7983 allow_undefined_flag=unsupported 7984 always_export_symbols=no 7985 enable_shared_with_static_runtimes=yes 7986 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7987 7988 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7990 # If the export-symbols file already is a .def file (1st line 7991 # is EXPORTS), use it as is; otherwise, prepend... 7992 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7993 cp $export_symbols $output_objdir/$soname.def; 7994 else 7995 echo EXPORTS > $output_objdir/$soname.def; 7996 cat $export_symbols >> $output_objdir/$soname.def; 7997 fi~ 7998 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7999 else 8000 ld_shlibs=no 8001 fi 8002 ;; 8003 8004 interix3*) 8005 hardcode_direct=no 8006 hardcode_shlibpath_var=no 8007 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8008 export_dynamic_flag_spec='${wl}-E' 8009 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8010 # Instead, shared libraries are loaded at an image base (0x10000000 by 8011 # default) and relocated if they conflict, which is a slow very memory 8012 # consuming and fragmenting process. To avoid this, we pick a random, 8013 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8014 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8015 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8016 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' 8017 ;; 8018 8019 linux* | k*bsd*-gnu) 8020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8021 tmp_addflag= 8022 case $cc_basename,$host_cpu in 8023 pgcc*) # Portland Group C compiler 8024 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' 8025 tmp_addflag=' $pic_flag' 8026 ;; 8027 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8028 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' 8029 tmp_addflag=' $pic_flag -Mnomain' ;; 8030 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8031 tmp_addflag=' -i_dynamic' ;; 8032 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8033 tmp_addflag=' -i_dynamic -nofor_main' ;; 8034 ifc* | ifort*) # Intel Fortran compiler 8035 tmp_addflag=' -nofor_main' ;; 8036 esac 8037 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8038 8039 if test $supports_anon_versioning = yes; then 8040 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8042 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8043 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8044 fi 8045 link_all_deplibs=no 8046 else 8047 ld_shlibs=no 8048 fi 8049 ;; 8050 8051 netbsd* | netbsdelf*-gnu) 8052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8053 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8054 wlarc= 8055 else 8056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8058 fi 8059 ;; 8060 8061 solaris*) 8062 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8063 ld_shlibs=no 8064 cat <<EOF 1>&2 8065 8066*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8067*** create shared libraries on Solaris systems. Therefore, libtool 8068*** is disabling shared libraries support. We urge you to upgrade GNU 8069*** binutils to release 2.9.1 or newer. Another option is to modify 8070*** your PATH or compiler configuration so that the native linker is 8071*** used, and then restart. 8072 8073EOF 8074 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8076 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8077 else 8078 ld_shlibs=no 8079 fi 8080 ;; 8081 8082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8083 case `$LD -v 2>&1` in 8084 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8085 ld_shlibs=no 8086 cat <<_LT_EOF 1>&2 8087 8088*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8089*** reliably create shared libraries on SCO systems. Therefore, libtool 8090*** is disabling shared libraries support. We urge you to upgrade GNU 8091*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8092*** your PATH or compiler configuration so that the native linker is 8093*** used, and then restart. 8094 8095_LT_EOF 8096 ;; 8097 *) 8098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8099 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8101 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8102 else 8103 ld_shlibs=no 8104 fi 8105 ;; 8106 esac 8107 ;; 8108 8109 sunos4*) 8110 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8111 wlarc= 8112 hardcode_direct=yes 8113 hardcode_shlibpath_var=no 8114 ;; 8115 8116 *) 8117 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8119 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8120 else 8121 ld_shlibs=no 8122 fi 8123 ;; 8124 esac 8125 8126 if test "$ld_shlibs" = no; then 8127 runpath_var= 8128 hardcode_libdir_flag_spec= 8129 export_dynamic_flag_spec= 8130 whole_archive_flag_spec= 8131 fi 8132 else 8133 # PORTME fill in a description of your system's linker (not GNU ld) 8134 case $host_os in 8135 aix3*) 8136 allow_undefined_flag=unsupported 8137 always_export_symbols=yes 8138 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' 8139 # Note: this linker hardcodes the directories in LIBPATH if there 8140 # are no directories specified by -L. 8141 hardcode_minus_L=yes 8142 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8143 # Neither direct hardcoding nor static linking is supported with a 8144 # broken collect2. 8145 hardcode_direct=unsupported 8146 fi 8147 ;; 8148 8149 aix4* | aix5*) 8150 if test "$host_cpu" = ia64; then 8151 # On IA64, the linker does run time linking by default, so we don't 8152 # have to do anything special. 8153 aix_use_runtimelinking=no 8154 exp_sym_flag='-Bexport' 8155 no_entry_flag="" 8156 else 8157 # If we're using GNU nm, then we don't want the "-C" option. 8158 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8159 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8160 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' 8161 else 8162 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' 8163 fi 8164 aix_use_runtimelinking=no 8165 8166 # Test if we are trying to use run time linking or normal 8167 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8168 # need to do runtime linking. 8169 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8170 for ld_flag in $LDFLAGS; do 8171 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8172 aix_use_runtimelinking=yes 8173 break 8174 fi 8175 done 8176 ;; 8177 esac 8178 8179 exp_sym_flag='-bexport' 8180 no_entry_flag='-bnoentry' 8181 fi 8182 8183 # When large executables or shared objects are built, AIX ld can 8184 # have problems creating the table of contents. If linking a library 8185 # or program results in "error TOC overflow" add -mminimal-toc to 8186 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8187 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8188 8189 archive_cmds='' 8190 hardcode_direct=yes 8191 hardcode_libdir_separator=':' 8192 link_all_deplibs=yes 8193 8194 if test "$GCC" = yes; then 8195 case $host_os in aix4.[012]|aix4.[012].*) 8196 # We only want to do this on AIX 4.2 and lower, the check 8197 # below for broken collect2 doesn't work under 4.3+ 8198 collect2name=`${CC} -print-prog-name=collect2` 8199 if test -f "$collect2name" && \ 8200 strings "$collect2name" | grep resolve_lib_name >/dev/null 8201 then 8202 # We have reworked collect2 8203 hardcode_direct=yes 8204 else 8205 # We have old collect2 8206 hardcode_direct=unsupported 8207 # It fails to find uninstalled libraries when the uninstalled 8208 # path is not listed in the libpath. Setting hardcode_minus_L 8209 # to unsupported forces relinking 8210 hardcode_minus_L=yes 8211 hardcode_libdir_flag_spec='-L$libdir' 8212 hardcode_libdir_separator= 8213 fi 8214 ;; 8215 esac 8216 shared_flag='-shared' 8217 if test "$aix_use_runtimelinking" = yes; then 8218 shared_flag="$shared_flag "'${wl}-G' 8219 fi 8220 else 8221 # not using gcc 8222 if test "$host_cpu" = ia64; then 8223 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8224 # chokes on -Wl,-G. The following line is correct: 8225 shared_flag='-G' 8226 else 8227 if test "$aix_use_runtimelinking" = yes; then 8228 shared_flag='${wl}-G' 8229 else 8230 shared_flag='${wl}-bM:SRE' 8231 fi 8232 fi 8233 fi 8234 8235 # It seems that -bexpall does not export symbols beginning with 8236 # underscore (_), so it is better to generate a list of symbols to export. 8237 always_export_symbols=yes 8238 if test "$aix_use_runtimelinking" = yes; then 8239 # Warning - without using the other runtime loading flags (-brtl), 8240 # -berok will link without error, but may produce a broken library. 8241 allow_undefined_flag='-berok' 8242 # Determine the default libpath from the value encoded in an empty executable. 8243 cat >conftest.$ac_ext <<_ACEOF 8244/* confdefs.h. */ 8245_ACEOF 8246cat confdefs.h >>conftest.$ac_ext 8247cat >>conftest.$ac_ext <<_ACEOF 8248/* end confdefs.h. */ 8249 8250int 8251main () 8252{ 8253 8254 ; 8255 return 0; 8256} 8257_ACEOF 8258rm -f conftest.$ac_objext conftest$ac_exeext 8259if { (ac_try="$ac_link" 8260case "(($ac_try" in 8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8262 *) ac_try_echo=$ac_try;; 8263esac 8264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8265 (eval "$ac_link") 2>conftest.er1 8266 ac_status=$? 8267 grep -v '^ *+' conftest.er1 >conftest.err 8268 rm -f conftest.er1 8269 cat conftest.err >&5 8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8271 (exit $ac_status); } && 8272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8273 { (case "(($ac_try" in 8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8275 *) ac_try_echo=$ac_try;; 8276esac 8277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8278 (eval "$ac_try") 2>&5 8279 ac_status=$? 8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8281 (exit $ac_status); }; } && 8282 { ac_try='test -s conftest$ac_exeext' 8283 { (case "(($ac_try" in 8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8285 *) ac_try_echo=$ac_try;; 8286esac 8287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8288 (eval "$ac_try") 2>&5 8289 ac_status=$? 8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8291 (exit $ac_status); }; }; then 8292 8293aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8294}'` 8295# Check for a 64-bit object if we didn't find anything. 8296if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8297}'`; fi 8298else 8299 echo "$as_me: failed program was:" >&5 8300sed 's/^/| /' conftest.$ac_ext >&5 8301 8302 8303fi 8304 8305rm -f core conftest.err conftest.$ac_objext \ 8306 conftest$ac_exeext conftest.$ac_ext 8307if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8308 8309 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8310 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" 8311 else 8312 if test "$host_cpu" = ia64; then 8313 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8314 allow_undefined_flag="-z nodefs" 8315 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" 8316 else 8317 # Determine the default libpath from the value encoded in an empty executable. 8318 cat >conftest.$ac_ext <<_ACEOF 8319/* confdefs.h. */ 8320_ACEOF 8321cat confdefs.h >>conftest.$ac_ext 8322cat >>conftest.$ac_ext <<_ACEOF 8323/* end confdefs.h. */ 8324 8325int 8326main () 8327{ 8328 8329 ; 8330 return 0; 8331} 8332_ACEOF 8333rm -f conftest.$ac_objext conftest$ac_exeext 8334if { (ac_try="$ac_link" 8335case "(($ac_try" in 8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8337 *) ac_try_echo=$ac_try;; 8338esac 8339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8340 (eval "$ac_link") 2>conftest.er1 8341 ac_status=$? 8342 grep -v '^ *+' conftest.er1 >conftest.err 8343 rm -f conftest.er1 8344 cat conftest.err >&5 8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8346 (exit $ac_status); } && 8347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8348 { (case "(($ac_try" in 8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8350 *) ac_try_echo=$ac_try;; 8351esac 8352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8353 (eval "$ac_try") 2>&5 8354 ac_status=$? 8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8356 (exit $ac_status); }; } && 8357 { ac_try='test -s conftest$ac_exeext' 8358 { (case "(($ac_try" in 8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8360 *) ac_try_echo=$ac_try;; 8361esac 8362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8363 (eval "$ac_try") 2>&5 8364 ac_status=$? 8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8366 (exit $ac_status); }; }; then 8367 8368aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8369}'` 8370# Check for a 64-bit object if we didn't find anything. 8371if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8372}'`; fi 8373else 8374 echo "$as_me: failed program was:" >&5 8375sed 's/^/| /' conftest.$ac_ext >&5 8376 8377 8378fi 8379 8380rm -f core conftest.err conftest.$ac_objext \ 8381 conftest$ac_exeext conftest.$ac_ext 8382if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8383 8384 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8385 # Warning - without using the other run time loading flags, 8386 # -berok will link without error, but may produce a broken library. 8387 no_undefined_flag=' ${wl}-bernotok' 8388 allow_undefined_flag=' ${wl}-berok' 8389 # Exported symbols can be pulled into shared objects from archives 8390 whole_archive_flag_spec='$convenience' 8391 archive_cmds_need_lc=yes 8392 # This is similar to how AIX traditionally builds its shared libraries. 8393 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' 8394 fi 8395 fi 8396 ;; 8397 8398 amigaos*) 8399 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)' 8400 hardcode_libdir_flag_spec='-L$libdir' 8401 hardcode_minus_L=yes 8402 # see comment about different semantics on the GNU ld section 8403 ld_shlibs=no 8404 ;; 8405 8406 bsdi[45]*) 8407 export_dynamic_flag_spec=-rdynamic 8408 ;; 8409 8410 cygwin* | mingw* | pw32*) 8411 # When not using gcc, we currently assume that we are using 8412 # Microsoft Visual C++. 8413 # hardcode_libdir_flag_spec is actually meaningless, as there is 8414 # no search path for DLLs. 8415 hardcode_libdir_flag_spec=' ' 8416 allow_undefined_flag=unsupported 8417 # Tell ltmain to make .lib files, not .a files. 8418 libext=lib 8419 # Tell ltmain to make .dll files, not .so files. 8420 shrext_cmds=".dll" 8421 # FIXME: Setting linknames here is a bad hack. 8422 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8423 # The linker will automatically build a .lib file if we build a DLL. 8424 old_archive_From_new_cmds='true' 8425 # FIXME: Should let the user specify the lib program. 8426 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8427 fix_srcfile_path='`cygpath -w "$srcfile"`' 8428 enable_shared_with_static_runtimes=yes 8429 ;; 8430 8431 darwin* | rhapsody*) 8432 case $host_os in 8433 rhapsody* | darwin1.[012]) 8434 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8435 ;; 8436 *) # Darwin 1.3 on 8437 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8438 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8439 else 8440 case ${MACOSX_DEPLOYMENT_TARGET} in 8441 10.[012]) 8442 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8443 ;; 8444 10.*) 8445 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8446 ;; 8447 esac 8448 fi 8449 ;; 8450 esac 8451 archive_cmds_need_lc=no 8452 hardcode_direct=no 8453 hardcode_automatic=yes 8454 hardcode_shlibpath_var=unsupported 8455 whole_archive_flag_spec='' 8456 link_all_deplibs=yes 8457 if test "$GCC" = yes ; then 8458 output_verbose_link_cmd='echo' 8459 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8460 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8461 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8462 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8463 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}' 8464 else 8465 case $cc_basename in 8466 xlc*) 8467 output_verbose_link_cmd='echo' 8468 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8469 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8470 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8471 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8472 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}' 8473 ;; 8474 *) 8475 ld_shlibs=no 8476 ;; 8477 esac 8478 fi 8479 ;; 8480 8481 dgux*) 8482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8483 hardcode_libdir_flag_spec='-L$libdir' 8484 hardcode_shlibpath_var=no 8485 ;; 8486 8487 freebsd1*) 8488 ld_shlibs=no 8489 ;; 8490 8491 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8492 # support. Future versions do this automatically, but an explicit c++rt0.o 8493 # does not break anything, and helps significantly (at the cost of a little 8494 # extra space). 8495 freebsd2.2*) 8496 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8497 hardcode_libdir_flag_spec='-R$libdir' 8498 hardcode_direct=yes 8499 hardcode_shlibpath_var=no 8500 ;; 8501 8502 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8503 freebsd2*) 8504 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8505 hardcode_direct=yes 8506 hardcode_minus_L=yes 8507 hardcode_shlibpath_var=no 8508 ;; 8509 8510 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8511 freebsd* | dragonfly*) 8512 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8513 hardcode_libdir_flag_spec='-R$libdir' 8514 hardcode_direct=yes 8515 hardcode_shlibpath_var=no 8516 ;; 8517 8518 hpux9*) 8519 if test "$GCC" = yes; then 8520 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' 8521 else 8522 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' 8523 fi 8524 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8525 hardcode_libdir_separator=: 8526 hardcode_direct=yes 8527 8528 # hardcode_minus_L: Not really in the search PATH, 8529 # but as the default location of the library. 8530 hardcode_minus_L=yes 8531 export_dynamic_flag_spec='${wl}-E' 8532 ;; 8533 8534 hpux10*) 8535 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8536 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8537 else 8538 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8539 fi 8540 if test "$with_gnu_ld" = no; then 8541 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8542 hardcode_libdir_separator=: 8543 8544 hardcode_direct=yes 8545 export_dynamic_flag_spec='${wl}-E' 8546 8547 # hardcode_minus_L: Not really in the search PATH, 8548 # but as the default location of the library. 8549 hardcode_minus_L=yes 8550 fi 8551 ;; 8552 8553 hpux11*) 8554 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8555 case $host_cpu in 8556 hppa*64*) 8557 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8558 ;; 8559 ia64*) 8560 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8561 ;; 8562 *) 8563 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8564 ;; 8565 esac 8566 else 8567 case $host_cpu in 8568 hppa*64*) 8569 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8570 ;; 8571 ia64*) 8572 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8573 ;; 8574 *) 8575 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8576 ;; 8577 esac 8578 fi 8579 if test "$with_gnu_ld" = no; then 8580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8581 hardcode_libdir_separator=: 8582 8583 case $host_cpu in 8584 hppa*64*|ia64*) 8585 hardcode_libdir_flag_spec_ld='+b $libdir' 8586 hardcode_direct=no 8587 hardcode_shlibpath_var=no 8588 ;; 8589 *) 8590 hardcode_direct=yes 8591 export_dynamic_flag_spec='${wl}-E' 8592 8593 # hardcode_minus_L: Not really in the search PATH, 8594 # but as the default location of the library. 8595 hardcode_minus_L=yes 8596 ;; 8597 esac 8598 fi 8599 ;; 8600 8601 irix5* | irix6* | nonstopux*) 8602 if test "$GCC" = yes; then 8603 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' 8604 else 8605 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' 8606 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8607 fi 8608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8609 hardcode_libdir_separator=: 8610 link_all_deplibs=yes 8611 ;; 8612 8613 netbsd* | netbsdelf*-gnu) 8614 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8616 else 8617 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8618 fi 8619 hardcode_libdir_flag_spec='-R$libdir' 8620 hardcode_direct=yes 8621 hardcode_shlibpath_var=no 8622 ;; 8623 8624 newsos6) 8625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8626 hardcode_direct=yes 8627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8628 hardcode_libdir_separator=: 8629 hardcode_shlibpath_var=no 8630 ;; 8631 8632 openbsd*) 8633 hardcode_direct=yes 8634 hardcode_shlibpath_var=no 8635 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8636 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8637 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8638 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8639 export_dynamic_flag_spec='${wl}-E' 8640 else 8641 case $host_os in 8642 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8644 hardcode_libdir_flag_spec='-R$libdir' 8645 ;; 8646 *) 8647 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8648 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8649 ;; 8650 esac 8651 fi 8652 ;; 8653 8654 os2*) 8655 hardcode_libdir_flag_spec='-L$libdir' 8656 hardcode_minus_L=yes 8657 allow_undefined_flag=unsupported 8658 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' 8659 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8660 ;; 8661 8662 osf3*) 8663 if test "$GCC" = yes; then 8664 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8665 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' 8666 else 8667 allow_undefined_flag=' -expect_unresolved \*' 8668 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' 8669 fi 8670 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8671 hardcode_libdir_separator=: 8672 ;; 8673 8674 osf4* | osf5*) # as osf3* with the addition of -msym flag 8675 if test "$GCC" = yes; then 8676 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8677 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' 8678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8679 else 8680 allow_undefined_flag=' -expect_unresolved \*' 8681 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' 8682 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8683 $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' 8684 8685 # Both c and cxx compiler support -rpath directly 8686 hardcode_libdir_flag_spec='-rpath $libdir' 8687 fi 8688 hardcode_libdir_separator=: 8689 ;; 8690 8691 solaris*) 8692 no_undefined_flag=' -z text' 8693 if test "$GCC" = yes; then 8694 wlarc='${wl}' 8695 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8696 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8697 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8698 else 8699 wlarc='' 8700 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8701 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8702 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8703 fi 8704 hardcode_libdir_flag_spec='-R$libdir' 8705 hardcode_shlibpath_var=no 8706 case $host_os in 8707 solaris2.[0-5] | solaris2.[0-5].*) ;; 8708 *) 8709 # The compiler driver will combine linker options so we 8710 # cannot just pass the convience library names through 8711 # without $wl, iff we do not link with $LD. 8712 # Luckily, gcc supports the same syntax we need for Sun Studio. 8713 # Supported since Solaris 2.6 (maybe 2.5.1?) 8714 case $wlarc in 8715 '') 8716 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8717 *) 8718 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8719 esac ;; 8720 esac 8721 link_all_deplibs=yes 8722 ;; 8723 8724 sunos4*) 8725 if test "x$host_vendor" = xsequent; then 8726 # Use $CC to link under sequent, because it throws in some extra .o 8727 # files that make .init and .fini sections work. 8728 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8729 else 8730 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8731 fi 8732 hardcode_libdir_flag_spec='-L$libdir' 8733 hardcode_direct=yes 8734 hardcode_minus_L=yes 8735 hardcode_shlibpath_var=no 8736 ;; 8737 8738 sysv4) 8739 case $host_vendor in 8740 sni) 8741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8742 hardcode_direct=yes # is this really true??? 8743 ;; 8744 siemens) 8745 ## LD is ld it makes a PLAMLIB 8746 ## CC just makes a GrossModule. 8747 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8748 reload_cmds='$CC -r -o $output$reload_objs' 8749 hardcode_direct=no 8750 ;; 8751 motorola) 8752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8753 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8754 ;; 8755 esac 8756 runpath_var='LD_RUN_PATH' 8757 hardcode_shlibpath_var=no 8758 ;; 8759 8760 sysv4.3*) 8761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8762 hardcode_shlibpath_var=no 8763 export_dynamic_flag_spec='-Bexport' 8764 ;; 8765 8766 sysv4*MP*) 8767 if test -d /usr/nec; then 8768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8769 hardcode_shlibpath_var=no 8770 runpath_var=LD_RUN_PATH 8771 hardcode_runpath_var=yes 8772 ld_shlibs=yes 8773 fi 8774 ;; 8775 8776 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8777 no_undefined_flag='${wl}-z,text' 8778 archive_cmds_need_lc=no 8779 hardcode_shlibpath_var=no 8780 runpath_var='LD_RUN_PATH' 8781 8782 if test "$GCC" = yes; then 8783 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8784 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8785 else 8786 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8787 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8788 fi 8789 ;; 8790 8791 sysv5* | sco3.2v5* | sco5v6*) 8792 # Note: We can NOT use -z defs as we might desire, because we do not 8793 # link with -lc, and that would cause any symbols used from libc to 8794 # always be unresolved, which means just about no library would 8795 # ever link correctly. If we're not using GNU ld we use -z text 8796 # though, which does catch some bad symbols but isn't as heavy-handed 8797 # as -z defs. 8798 no_undefined_flag='${wl}-z,text' 8799 allow_undefined_flag='${wl}-z,nodefs' 8800 archive_cmds_need_lc=no 8801 hardcode_shlibpath_var=no 8802 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8803 hardcode_libdir_separator=':' 8804 link_all_deplibs=yes 8805 export_dynamic_flag_spec='${wl}-Bexport' 8806 runpath_var='LD_RUN_PATH' 8807 8808 if test "$GCC" = yes; then 8809 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8810 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8811 else 8812 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8813 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8814 fi 8815 ;; 8816 8817 uts4*) 8818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8819 hardcode_libdir_flag_spec='-L$libdir' 8820 hardcode_shlibpath_var=no 8821 ;; 8822 8823 *) 8824 ld_shlibs=no 8825 ;; 8826 esac 8827 fi 8828 8829{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8830echo "${ECHO_T}$ld_shlibs" >&6; } 8831test "$ld_shlibs" = no && can_build_shared=no 8832 8833# 8834# Do we need to explicitly link libc? 8835# 8836case "x$archive_cmds_need_lc" in 8837x|xyes) 8838 # Assume -lc should be added 8839 archive_cmds_need_lc=yes 8840 8841 if test "$enable_shared" = yes && test "$GCC" = yes; then 8842 case $archive_cmds in 8843 *'~'*) 8844 # FIXME: we may have to deal with multi-command sequences. 8845 ;; 8846 '$CC '*) 8847 # Test whether the compiler implicitly links with -lc since on some 8848 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8849 # to ld, don't add -lc before -lgcc. 8850 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8851echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8852 $rm conftest* 8853 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8854 8855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8856 (eval $ac_compile) 2>&5 8857 ac_status=$? 8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8859 (exit $ac_status); } 2>conftest.err; then 8860 soname=conftest 8861 lib=conftest 8862 libobjs=conftest.$ac_objext 8863 deplibs= 8864 wl=$lt_prog_compiler_wl 8865 pic_flag=$lt_prog_compiler_pic 8866 compiler_flags=-v 8867 linker_flags=-v 8868 verstring= 8869 output_objdir=. 8870 libname=conftest 8871 lt_save_allow_undefined_flag=$allow_undefined_flag 8872 allow_undefined_flag= 8873 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8874 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8875 ac_status=$? 8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8877 (exit $ac_status); } 8878 then 8879 archive_cmds_need_lc=no 8880 else 8881 archive_cmds_need_lc=yes 8882 fi 8883 allow_undefined_flag=$lt_save_allow_undefined_flag 8884 else 8885 cat conftest.err 1>&5 8886 fi 8887 $rm conftest* 8888 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8889echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8890 ;; 8891 esac 8892 fi 8893 ;; 8894esac 8895 8896{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8897echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8898library_names_spec= 8899libname_spec='lib$name' 8900soname_spec= 8901shrext_cmds=".so" 8902postinstall_cmds= 8903postuninstall_cmds= 8904finish_cmds= 8905finish_eval= 8906shlibpath_var= 8907shlibpath_overrides_runpath=unknown 8908version_type=none 8909dynamic_linker="$host_os ld.so" 8910sys_lib_dlsearch_path_spec="/lib /usr/lib" 8911if test "$GCC" = yes; then 8912 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8913 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8914 # if the path contains ";" then we assume it to be the separator 8915 # otherwise default to the standard path separator (i.e. ":") - it is 8916 # assumed that no part of a normal pathname contains ";" but that should 8917 # okay in the real world where ";" in dirpaths is itself problematic. 8918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8919 else 8920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8921 fi 8922else 8923 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8924fi 8925need_lib_prefix=unknown 8926hardcode_into_libs=no 8927 8928# when you set need_version to no, make sure it does not cause -set_version 8929# flags to be left without arguments 8930need_version=unknown 8931 8932case $host_os in 8933aix3*) 8934 version_type=linux 8935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8936 shlibpath_var=LIBPATH 8937 8938 # AIX 3 has no versioning support, so we append a major version to the name. 8939 soname_spec='${libname}${release}${shared_ext}$major' 8940 ;; 8941 8942aix4* | aix5*) 8943 version_type=linux 8944 need_lib_prefix=no 8945 need_version=no 8946 hardcode_into_libs=yes 8947 if test "$host_cpu" = ia64; then 8948 # AIX 5 supports IA64 8949 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8950 shlibpath_var=LD_LIBRARY_PATH 8951 else 8952 # With GCC up to 2.95.x, collect2 would create an import file 8953 # for dependence libraries. The import file would start with 8954 # the line `#! .'. This would cause the generated library to 8955 # depend on `.', always an invalid library. This was fixed in 8956 # development snapshots of GCC prior to 3.0. 8957 case $host_os in 8958 aix4 | aix4.[01] | aix4.[01].*) 8959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8960 echo ' yes ' 8961 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8962 : 8963 else 8964 can_build_shared=no 8965 fi 8966 ;; 8967 esac 8968 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8969 # soname into executable. Probably we can add versioning support to 8970 # collect2, so additional links can be useful in future. 8971 if test "$aix_use_runtimelinking" = yes; then 8972 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8973 # instead of lib<name>.a to let people know that these are not 8974 # typical AIX shared libraries. 8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8976 else 8977 # We preserve .a as extension for shared libraries through AIX4.2 8978 # and later when we are not doing run time linking. 8979 library_names_spec='${libname}${release}.a $libname.a' 8980 soname_spec='${libname}${release}${shared_ext}$major' 8981 fi 8982 shlibpath_var=LIBPATH 8983 fi 8984 ;; 8985 8986amigaos*) 8987 library_names_spec='$libname.ixlibrary $libname.a' 8988 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8989 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' 8990 ;; 8991 8992beos*) 8993 library_names_spec='${libname}${shared_ext}' 8994 dynamic_linker="$host_os ld.so" 8995 shlibpath_var=LIBRARY_PATH 8996 ;; 8997 8998bsdi[45]*) 8999 version_type=linux 9000 need_version=no 9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9002 soname_spec='${libname}${release}${shared_ext}$major' 9003 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9004 shlibpath_var=LD_LIBRARY_PATH 9005 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9006 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9007 # the default ld.so.conf also contains /usr/contrib/lib and 9008 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9009 # libtool to hard-code these into programs 9010 ;; 9011 9012cygwin* | mingw* | pw32*) 9013 version_type=windows 9014 shrext_cmds=".dll" 9015 need_version=no 9016 need_lib_prefix=no 9017 9018 case $GCC,$host_os in 9019 yes,cygwin* | yes,mingw* | yes,pw32*) 9020 library_names_spec='$libname.dll.a' 9021 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9022 postinstall_cmds='base_file=`basename \${file}`~ 9023 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9024 dldir=$destdir/`dirname \$dlpath`~ 9025 test -d \$dldir || mkdir -p \$dldir~ 9026 $install_prog $dir/$dlname \$dldir/$dlname~ 9027 chmod a+x \$dldir/$dlname' 9028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9029 dlpath=$dir/\$dldll~ 9030 $rm \$dlpath' 9031 shlibpath_overrides_runpath=yes 9032 9033 case $host_os in 9034 cygwin*) 9035 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9036 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9037 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9038 ;; 9039 mingw*) 9040 # MinGW DLLs use traditional 'lib' prefix 9041 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9043 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9044 # It is most probably a Windows format PATH printed by 9045 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9046 # path with ; separators, and with drive letters. We can handle the 9047 # drive letters (cygwin fileutils understands them), so leave them, 9048 # especially as we might pass files found there to a mingw objdump, 9049 # which wouldn't understand a cygwinified path. Ahh. 9050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9051 else 9052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9053 fi 9054 ;; 9055 pw32*) 9056 # pw32 DLLs use 'pw' prefix rather than 'lib' 9057 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9058 ;; 9059 esac 9060 ;; 9061 9062 *) 9063 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9064 ;; 9065 esac 9066 dynamic_linker='Win32 ld.exe' 9067 # FIXME: first we should search . and the directory the executable is in 9068 shlibpath_var=PATH 9069 ;; 9070 9071darwin* | rhapsody*) 9072 dynamic_linker="$host_os dyld" 9073 version_type=darwin 9074 need_lib_prefix=no 9075 need_version=no 9076 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9077 soname_spec='${libname}${release}${major}$shared_ext' 9078 shlibpath_overrides_runpath=yes 9079 shlibpath_var=DYLD_LIBRARY_PATH 9080 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9081 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9082 if test "$GCC" = yes; then 9083 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 9084 else 9085 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9086 fi 9087 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9088 ;; 9089 9090dgux*) 9091 version_type=linux 9092 need_lib_prefix=no 9093 need_version=no 9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9095 soname_spec='${libname}${release}${shared_ext}$major' 9096 shlibpath_var=LD_LIBRARY_PATH 9097 ;; 9098 9099freebsd1*) 9100 dynamic_linker=no 9101 ;; 9102 9103freebsd* | dragonfly*) 9104 # DragonFly does not have aout. When/if they implement a new 9105 # versioning mechanism, adjust this. 9106 if test -x /usr/bin/objformat; then 9107 objformat=`/usr/bin/objformat` 9108 else 9109 case $host_os in 9110 freebsd[123]*) objformat=aout ;; 9111 *) objformat=elf ;; 9112 esac 9113 fi 9114 version_type=freebsd-$objformat 9115 case $version_type in 9116 freebsd-elf*) 9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9118 need_version=no 9119 need_lib_prefix=no 9120 ;; 9121 freebsd-*) 9122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9123 need_version=yes 9124 ;; 9125 esac 9126 shlibpath_var=LD_LIBRARY_PATH 9127 case $host_os in 9128 freebsd2*) 9129 shlibpath_overrides_runpath=yes 9130 ;; 9131 freebsd3.[01]* | freebsdelf3.[01]*) 9132 shlibpath_overrides_runpath=yes 9133 hardcode_into_libs=yes 9134 ;; 9135 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9136 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9137 shlibpath_overrides_runpath=no 9138 hardcode_into_libs=yes 9139 ;; 9140 freebsd*) # from 4.6 on 9141 shlibpath_overrides_runpath=yes 9142 hardcode_into_libs=yes 9143 ;; 9144 esac 9145 ;; 9146 9147gnu*) 9148 version_type=linux 9149 need_lib_prefix=no 9150 need_version=no 9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9152 soname_spec='${libname}${release}${shared_ext}$major' 9153 shlibpath_var=LD_LIBRARY_PATH 9154 hardcode_into_libs=yes 9155 ;; 9156 9157hpux9* | hpux10* | hpux11*) 9158 # Give a soname corresponding to the major version so that dld.sl refuses to 9159 # link against other versions. 9160 version_type=sunos 9161 need_lib_prefix=no 9162 need_version=no 9163 case $host_cpu in 9164 ia64*) 9165 shrext_cmds='.so' 9166 hardcode_into_libs=yes 9167 dynamic_linker="$host_os dld.so" 9168 shlibpath_var=LD_LIBRARY_PATH 9169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9171 soname_spec='${libname}${release}${shared_ext}$major' 9172 if test "X$HPUX_IA64_MODE" = X32; then 9173 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9174 else 9175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9176 fi 9177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9178 ;; 9179 hppa*64*) 9180 shrext_cmds='.sl' 9181 hardcode_into_libs=yes 9182 dynamic_linker="$host_os dld.sl" 9183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9186 soname_spec='${libname}${release}${shared_ext}$major' 9187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9189 ;; 9190 *) 9191 shrext_cmds='.sl' 9192 dynamic_linker="$host_os dld.sl" 9193 shlibpath_var=SHLIB_PATH 9194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9196 soname_spec='${libname}${release}${shared_ext}$major' 9197 ;; 9198 esac 9199 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9200 postinstall_cmds='chmod 555 $lib' 9201 ;; 9202 9203interix3*) 9204 version_type=linux 9205 need_lib_prefix=no 9206 need_version=no 9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9208 soname_spec='${libname}${release}${shared_ext}$major' 9209 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9210 shlibpath_var=LD_LIBRARY_PATH 9211 shlibpath_overrides_runpath=no 9212 hardcode_into_libs=yes 9213 ;; 9214 9215irix5* | irix6* | nonstopux*) 9216 case $host_os in 9217 nonstopux*) version_type=nonstopux ;; 9218 *) 9219 if test "$lt_cv_prog_gnu_ld" = yes; then 9220 version_type=linux 9221 else 9222 version_type=irix 9223 fi ;; 9224 esac 9225 need_lib_prefix=no 9226 need_version=no 9227 soname_spec='${libname}${release}${shared_ext}$major' 9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9229 case $host_os in 9230 irix5* | nonstopux*) 9231 libsuff= shlibsuff= 9232 ;; 9233 *) 9234 case $LD in # libtool.m4 will add one of these switches to LD 9235 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9236 libsuff= shlibsuff= libmagic=32-bit;; 9237 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9238 libsuff=32 shlibsuff=N32 libmagic=N32;; 9239 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9240 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9241 *) libsuff= shlibsuff= libmagic=never-match;; 9242 esac 9243 ;; 9244 esac 9245 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9246 shlibpath_overrides_runpath=no 9247 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9248 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9249 hardcode_into_libs=yes 9250 ;; 9251 9252# No shared lib support for Linux oldld, aout, or coff. 9253linux*oldld* | linux*aout* | linux*coff*) 9254 dynamic_linker=no 9255 ;; 9256 9257# This must be Linux ELF. 9258linux* | k*bsd*-gnu) 9259 version_type=linux 9260 need_lib_prefix=no 9261 need_version=no 9262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9263 soname_spec='${libname}${release}${shared_ext}$major' 9264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9265 shlibpath_var=LD_LIBRARY_PATH 9266 shlibpath_overrides_runpath=no 9267 # This implies no fast_install, which is unacceptable. 9268 # Some rework will be needed to allow for fast_install 9269 # before this can be enabled. 9270 hardcode_into_libs=yes 9271 9272 # Append ld.so.conf contents to the search path 9273 if test -f /etc/ld.so.conf; then 9274 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9275 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9276 fi 9277 9278 # We used to test for /lib/ld.so.1 and disable shared libraries on 9279 # powerpc, because MkLinux only supported shared libraries with the 9280 # GNU dynamic linker. Since this was broken with cross compilers, 9281 # most powerpc-linux boxes support dynamic linking these days and 9282 # people can always --disable-shared, the test was removed, and we 9283 # assume the GNU/Linux dynamic linker is in use. 9284 dynamic_linker='GNU/Linux ld.so' 9285 ;; 9286 9287netbsdelf*-gnu) 9288 version_type=linux 9289 need_lib_prefix=no 9290 need_version=no 9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9292 soname_spec='${libname}${release}${shared_ext}$major' 9293 shlibpath_var=LD_LIBRARY_PATH 9294 shlibpath_overrides_runpath=no 9295 hardcode_into_libs=yes 9296 dynamic_linker='NetBSD ld.elf_so' 9297 ;; 9298 9299netbsd*) 9300 version_type=sunos 9301 need_lib_prefix=no 9302 need_version=no 9303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9306 dynamic_linker='NetBSD (a.out) ld.so' 9307 else 9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9309 soname_spec='${libname}${release}${shared_ext}$major' 9310 dynamic_linker='NetBSD ld.elf_so' 9311 fi 9312 shlibpath_var=LD_LIBRARY_PATH 9313 shlibpath_overrides_runpath=yes 9314 hardcode_into_libs=yes 9315 ;; 9316 9317newsos6) 9318 version_type=linux 9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9320 shlibpath_var=LD_LIBRARY_PATH 9321 shlibpath_overrides_runpath=yes 9322 ;; 9323 9324nto-qnx*) 9325 version_type=linux 9326 need_lib_prefix=no 9327 need_version=no 9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9329 soname_spec='${libname}${release}${shared_ext}$major' 9330 shlibpath_var=LD_LIBRARY_PATH 9331 shlibpath_overrides_runpath=yes 9332 ;; 9333 9334openbsd*) 9335 version_type=sunos 9336 sys_lib_dlsearch_path_spec="/usr/lib" 9337 need_lib_prefix=no 9338 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9339 case $host_os in 9340 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9341 *) need_version=no ;; 9342 esac 9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9345 shlibpath_var=LD_LIBRARY_PATH 9346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9347 case $host_os in 9348 openbsd2.[89] | openbsd2.[89].*) 9349 shlibpath_overrides_runpath=no 9350 ;; 9351 *) 9352 shlibpath_overrides_runpath=yes 9353 ;; 9354 esac 9355 else 9356 shlibpath_overrides_runpath=yes 9357 fi 9358 ;; 9359 9360os2*) 9361 libname_spec='$name' 9362 shrext_cmds=".dll" 9363 need_lib_prefix=no 9364 library_names_spec='$libname${shared_ext} $libname.a' 9365 dynamic_linker='OS/2 ld.exe' 9366 shlibpath_var=LIBPATH 9367 ;; 9368 9369osf3* | osf4* | osf5*) 9370 version_type=osf 9371 need_lib_prefix=no 9372 need_version=no 9373 soname_spec='${libname}${release}${shared_ext}$major' 9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9375 shlibpath_var=LD_LIBRARY_PATH 9376 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9377 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9378 ;; 9379 9380solaris*) 9381 version_type=linux 9382 need_lib_prefix=no 9383 need_version=no 9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9385 soname_spec='${libname}${release}${shared_ext}$major' 9386 shlibpath_var=LD_LIBRARY_PATH 9387 shlibpath_overrides_runpath=yes 9388 hardcode_into_libs=yes 9389 # ldd complains unless libraries are executable 9390 postinstall_cmds='chmod +x $lib' 9391 ;; 9392 9393sunos4*) 9394 version_type=sunos 9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9396 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9397 shlibpath_var=LD_LIBRARY_PATH 9398 shlibpath_overrides_runpath=yes 9399 if test "$with_gnu_ld" = yes; then 9400 need_lib_prefix=no 9401 fi 9402 need_version=yes 9403 ;; 9404 9405sysv4 | sysv4.3*) 9406 version_type=linux 9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9408 soname_spec='${libname}${release}${shared_ext}$major' 9409 shlibpath_var=LD_LIBRARY_PATH 9410 case $host_vendor in 9411 sni) 9412 shlibpath_overrides_runpath=no 9413 need_lib_prefix=no 9414 export_dynamic_flag_spec='${wl}-Blargedynsym' 9415 runpath_var=LD_RUN_PATH 9416 ;; 9417 siemens) 9418 need_lib_prefix=no 9419 ;; 9420 motorola) 9421 need_lib_prefix=no 9422 need_version=no 9423 shlibpath_overrides_runpath=no 9424 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9425 ;; 9426 esac 9427 ;; 9428 9429sysv4*MP*) 9430 if test -d /usr/nec ;then 9431 version_type=linux 9432 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9433 soname_spec='$libname${shared_ext}.$major' 9434 shlibpath_var=LD_LIBRARY_PATH 9435 fi 9436 ;; 9437 9438sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9439 version_type=freebsd-elf 9440 need_lib_prefix=no 9441 need_version=no 9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9443 soname_spec='${libname}${release}${shared_ext}$major' 9444 shlibpath_var=LD_LIBRARY_PATH 9445 hardcode_into_libs=yes 9446 if test "$with_gnu_ld" = yes; then 9447 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9448 shlibpath_overrides_runpath=no 9449 else 9450 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9451 shlibpath_overrides_runpath=yes 9452 case $host_os in 9453 sco3.2v5*) 9454 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9455 ;; 9456 esac 9457 fi 9458 sys_lib_dlsearch_path_spec='/usr/lib' 9459 ;; 9460 9461uts4*) 9462 version_type=linux 9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9464 soname_spec='${libname}${release}${shared_ext}$major' 9465 shlibpath_var=LD_LIBRARY_PATH 9466 ;; 9467 9468*) 9469 dynamic_linker=no 9470 ;; 9471esac 9472{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9473echo "${ECHO_T}$dynamic_linker" >&6; } 9474test "$dynamic_linker" = no && can_build_shared=no 9475 9476variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9477if test "$GCC" = yes; then 9478 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9479fi 9480 9481{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9482echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9483hardcode_action= 9484if test -n "$hardcode_libdir_flag_spec" || \ 9485 test -n "$runpath_var" || \ 9486 test "X$hardcode_automatic" = "Xyes" ; then 9487 9488 # We can hardcode non-existant directories. 9489 if test "$hardcode_direct" != no && 9490 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9491 # have to relink, otherwise we might link with an installed library 9492 # when we should be linking with a yet-to-be-installed one 9493 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9494 test "$hardcode_minus_L" != no; then 9495 # Linking always hardcodes the temporary library directory. 9496 hardcode_action=relink 9497 else 9498 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9499 hardcode_action=immediate 9500 fi 9501else 9502 # We cannot hardcode anything, or else we can only hardcode existing 9503 # directories. 9504 hardcode_action=unsupported 9505fi 9506{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9507echo "${ECHO_T}$hardcode_action" >&6; } 9508 9509if test "$hardcode_action" = relink; then 9510 # Fast installation is not supported 9511 enable_fast_install=no 9512elif test "$shlibpath_overrides_runpath" = yes || 9513 test "$enable_shared" = no; then 9514 # Fast installation is not necessary 9515 enable_fast_install=needless 9516fi 9517 9518striplib= 9519old_striplib= 9520{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9521echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9522if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9523 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9524 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9525 { echo "$as_me:$LINENO: result: yes" >&5 9526echo "${ECHO_T}yes" >&6; } 9527else 9528# FIXME - insert some real tests, host_os isn't really good enough 9529 case $host_os in 9530 darwin*) 9531 if test -n "$STRIP" ; then 9532 striplib="$STRIP -x" 9533 { echo "$as_me:$LINENO: result: yes" >&5 9534echo "${ECHO_T}yes" >&6; } 9535 else 9536 { echo "$as_me:$LINENO: result: no" >&5 9537echo "${ECHO_T}no" >&6; } 9538fi 9539 ;; 9540 *) 9541 { echo "$as_me:$LINENO: result: no" >&5 9542echo "${ECHO_T}no" >&6; } 9543 ;; 9544 esac 9545fi 9546 9547if test "x$enable_dlopen" != xyes; then 9548 enable_dlopen=unknown 9549 enable_dlopen_self=unknown 9550 enable_dlopen_self_static=unknown 9551else 9552 lt_cv_dlopen=no 9553 lt_cv_dlopen_libs= 9554 9555 case $host_os in 9556 beos*) 9557 lt_cv_dlopen="load_add_on" 9558 lt_cv_dlopen_libs= 9559 lt_cv_dlopen_self=yes 9560 ;; 9561 9562 mingw* | pw32*) 9563 lt_cv_dlopen="LoadLibrary" 9564 lt_cv_dlopen_libs= 9565 ;; 9566 9567 cygwin*) 9568 lt_cv_dlopen="dlopen" 9569 lt_cv_dlopen_libs= 9570 ;; 9571 9572 darwin*) 9573 # if libdl is installed we need to link against it 9574 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9575echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9576if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9577 echo $ECHO_N "(cached) $ECHO_C" >&6 9578else 9579 ac_check_lib_save_LIBS=$LIBS 9580LIBS="-ldl $LIBS" 9581cat >conftest.$ac_ext <<_ACEOF 9582/* confdefs.h. */ 9583_ACEOF 9584cat confdefs.h >>conftest.$ac_ext 9585cat >>conftest.$ac_ext <<_ACEOF 9586/* end confdefs.h. */ 9587 9588/* Override any GCC internal prototype to avoid an error. 9589 Use char because int might match the return type of a GCC 9590 builtin and then its argument prototype would still apply. */ 9591#ifdef __cplusplus 9592extern "C" 9593#endif 9594char dlopen (); 9595int 9596main () 9597{ 9598return dlopen (); 9599 ; 9600 return 0; 9601} 9602_ACEOF 9603rm -f conftest.$ac_objext conftest$ac_exeext 9604if { (ac_try="$ac_link" 9605case "(($ac_try" in 9606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9607 *) ac_try_echo=$ac_try;; 9608esac 9609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9610 (eval "$ac_link") 2>conftest.er1 9611 ac_status=$? 9612 grep -v '^ *+' conftest.er1 >conftest.err 9613 rm -f conftest.er1 9614 cat conftest.err >&5 9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9616 (exit $ac_status); } && 9617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9618 { (case "(($ac_try" in 9619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9620 *) ac_try_echo=$ac_try;; 9621esac 9622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9623 (eval "$ac_try") 2>&5 9624 ac_status=$? 9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9626 (exit $ac_status); }; } && 9627 { ac_try='test -s conftest$ac_exeext' 9628 { (case "(($ac_try" in 9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9630 *) ac_try_echo=$ac_try;; 9631esac 9632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9633 (eval "$ac_try") 2>&5 9634 ac_status=$? 9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9636 (exit $ac_status); }; }; then 9637 ac_cv_lib_dl_dlopen=yes 9638else 9639 echo "$as_me: failed program was:" >&5 9640sed 's/^/| /' conftest.$ac_ext >&5 9641 9642 ac_cv_lib_dl_dlopen=no 9643fi 9644 9645rm -f core conftest.err conftest.$ac_objext \ 9646 conftest$ac_exeext conftest.$ac_ext 9647LIBS=$ac_check_lib_save_LIBS 9648fi 9649{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9650echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9651if test $ac_cv_lib_dl_dlopen = yes; then 9652 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9653else 9654 9655 lt_cv_dlopen="dyld" 9656 lt_cv_dlopen_libs= 9657 lt_cv_dlopen_self=yes 9658 9659fi 9660 9661 ;; 9662 9663 *) 9664 { echo "$as_me:$LINENO: checking for shl_load" >&5 9665echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9666if test "${ac_cv_func_shl_load+set}" = set; then 9667 echo $ECHO_N "(cached) $ECHO_C" >&6 9668else 9669 cat >conftest.$ac_ext <<_ACEOF 9670/* confdefs.h. */ 9671_ACEOF 9672cat confdefs.h >>conftest.$ac_ext 9673cat >>conftest.$ac_ext <<_ACEOF 9674/* end confdefs.h. */ 9675/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9676 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9677#define shl_load innocuous_shl_load 9678 9679/* System header to define __stub macros and hopefully few prototypes, 9680 which can conflict with char shl_load (); below. 9681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9682 <limits.h> exists even on freestanding compilers. */ 9683 9684#ifdef __STDC__ 9685# include <limits.h> 9686#else 9687# include <assert.h> 9688#endif 9689 9690#undef shl_load 9691 9692/* Override any GCC internal prototype to avoid an error. 9693 Use char because int might match the return type of a GCC 9694 builtin and then its argument prototype would still apply. */ 9695#ifdef __cplusplus 9696extern "C" 9697#endif 9698char shl_load (); 9699/* The GNU C library defines this for functions which it implements 9700 to always fail with ENOSYS. Some functions are actually named 9701 something starting with __ and the normal name is an alias. */ 9702#if defined __stub_shl_load || defined __stub___shl_load 9703choke me 9704#endif 9705 9706int 9707main () 9708{ 9709return shl_load (); 9710 ; 9711 return 0; 9712} 9713_ACEOF 9714rm -f conftest.$ac_objext conftest$ac_exeext 9715if { (ac_try="$ac_link" 9716case "(($ac_try" in 9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9718 *) ac_try_echo=$ac_try;; 9719esac 9720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9721 (eval "$ac_link") 2>conftest.er1 9722 ac_status=$? 9723 grep -v '^ *+' conftest.er1 >conftest.err 9724 rm -f conftest.er1 9725 cat conftest.err >&5 9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9727 (exit $ac_status); } && 9728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9729 { (case "(($ac_try" in 9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9731 *) ac_try_echo=$ac_try;; 9732esac 9733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9734 (eval "$ac_try") 2>&5 9735 ac_status=$? 9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9737 (exit $ac_status); }; } && 9738 { ac_try='test -s conftest$ac_exeext' 9739 { (case "(($ac_try" in 9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9741 *) ac_try_echo=$ac_try;; 9742esac 9743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9744 (eval "$ac_try") 2>&5 9745 ac_status=$? 9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9747 (exit $ac_status); }; }; then 9748 ac_cv_func_shl_load=yes 9749else 9750 echo "$as_me: failed program was:" >&5 9751sed 's/^/| /' conftest.$ac_ext >&5 9752 9753 ac_cv_func_shl_load=no 9754fi 9755 9756rm -f core conftest.err conftest.$ac_objext \ 9757 conftest$ac_exeext conftest.$ac_ext 9758fi 9759{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9760echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9761if test $ac_cv_func_shl_load = yes; then 9762 lt_cv_dlopen="shl_load" 9763else 9764 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9765echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9766if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9767 echo $ECHO_N "(cached) $ECHO_C" >&6 9768else 9769 ac_check_lib_save_LIBS=$LIBS 9770LIBS="-ldld $LIBS" 9771cat >conftest.$ac_ext <<_ACEOF 9772/* confdefs.h. */ 9773_ACEOF 9774cat confdefs.h >>conftest.$ac_ext 9775cat >>conftest.$ac_ext <<_ACEOF 9776/* end confdefs.h. */ 9777 9778/* Override any GCC internal prototype to avoid an error. 9779 Use char because int might match the return type of a GCC 9780 builtin and then its argument prototype would still apply. */ 9781#ifdef __cplusplus 9782extern "C" 9783#endif 9784char shl_load (); 9785int 9786main () 9787{ 9788return shl_load (); 9789 ; 9790 return 0; 9791} 9792_ACEOF 9793rm -f conftest.$ac_objext conftest$ac_exeext 9794if { (ac_try="$ac_link" 9795case "(($ac_try" in 9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9797 *) ac_try_echo=$ac_try;; 9798esac 9799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9800 (eval "$ac_link") 2>conftest.er1 9801 ac_status=$? 9802 grep -v '^ *+' conftest.er1 >conftest.err 9803 rm -f conftest.er1 9804 cat conftest.err >&5 9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9806 (exit $ac_status); } && 9807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9808 { (case "(($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_try") 2>&5 9814 ac_status=$? 9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9816 (exit $ac_status); }; } && 9817 { ac_try='test -s conftest$ac_exeext' 9818 { (case "(($ac_try" in 9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9820 *) ac_try_echo=$ac_try;; 9821esac 9822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9823 (eval "$ac_try") 2>&5 9824 ac_status=$? 9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9826 (exit $ac_status); }; }; then 9827 ac_cv_lib_dld_shl_load=yes 9828else 9829 echo "$as_me: failed program was:" >&5 9830sed 's/^/| /' conftest.$ac_ext >&5 9831 9832 ac_cv_lib_dld_shl_load=no 9833fi 9834 9835rm -f core conftest.err conftest.$ac_objext \ 9836 conftest$ac_exeext conftest.$ac_ext 9837LIBS=$ac_check_lib_save_LIBS 9838fi 9839{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9840echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9841if test $ac_cv_lib_dld_shl_load = yes; then 9842 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9843else 9844 { echo "$as_me:$LINENO: checking for dlopen" >&5 9845echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9846if test "${ac_cv_func_dlopen+set}" = set; then 9847 echo $ECHO_N "(cached) $ECHO_C" >&6 9848else 9849 cat >conftest.$ac_ext <<_ACEOF 9850/* confdefs.h. */ 9851_ACEOF 9852cat confdefs.h >>conftest.$ac_ext 9853cat >>conftest.$ac_ext <<_ACEOF 9854/* end confdefs.h. */ 9855/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9856 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9857#define dlopen innocuous_dlopen 9858 9859/* System header to define __stub macros and hopefully few prototypes, 9860 which can conflict with char dlopen (); below. 9861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9862 <limits.h> exists even on freestanding compilers. */ 9863 9864#ifdef __STDC__ 9865# include <limits.h> 9866#else 9867# include <assert.h> 9868#endif 9869 9870#undef dlopen 9871 9872/* Override any GCC internal prototype to avoid an error. 9873 Use char because int might match the return type of a GCC 9874 builtin and then its argument prototype would still apply. */ 9875#ifdef __cplusplus 9876extern "C" 9877#endif 9878char dlopen (); 9879/* The GNU C library defines this for functions which it implements 9880 to always fail with ENOSYS. Some functions are actually named 9881 something starting with __ and the normal name is an alias. */ 9882#if defined __stub_dlopen || defined __stub___dlopen 9883choke me 9884#endif 9885 9886int 9887main () 9888{ 9889return dlopen (); 9890 ; 9891 return 0; 9892} 9893_ACEOF 9894rm -f conftest.$ac_objext conftest$ac_exeext 9895if { (ac_try="$ac_link" 9896case "(($ac_try" in 9897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9898 *) ac_try_echo=$ac_try;; 9899esac 9900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9901 (eval "$ac_link") 2>conftest.er1 9902 ac_status=$? 9903 grep -v '^ *+' conftest.er1 >conftest.err 9904 rm -f conftest.er1 9905 cat conftest.err >&5 9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9907 (exit $ac_status); } && 9908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9909 { (case "(($ac_try" in 9910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9911 *) ac_try_echo=$ac_try;; 9912esac 9913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9914 (eval "$ac_try") 2>&5 9915 ac_status=$? 9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9917 (exit $ac_status); }; } && 9918 { ac_try='test -s conftest$ac_exeext' 9919 { (case "(($ac_try" in 9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9921 *) ac_try_echo=$ac_try;; 9922esac 9923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9924 (eval "$ac_try") 2>&5 9925 ac_status=$? 9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9927 (exit $ac_status); }; }; then 9928 ac_cv_func_dlopen=yes 9929else 9930 echo "$as_me: failed program was:" >&5 9931sed 's/^/| /' conftest.$ac_ext >&5 9932 9933 ac_cv_func_dlopen=no 9934fi 9935 9936rm -f core conftest.err conftest.$ac_objext \ 9937 conftest$ac_exeext conftest.$ac_ext 9938fi 9939{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9940echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9941if test $ac_cv_func_dlopen = yes; then 9942 lt_cv_dlopen="dlopen" 9943else 9944 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9945echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9946if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9947 echo $ECHO_N "(cached) $ECHO_C" >&6 9948else 9949 ac_check_lib_save_LIBS=$LIBS 9950LIBS="-ldl $LIBS" 9951cat >conftest.$ac_ext <<_ACEOF 9952/* confdefs.h. */ 9953_ACEOF 9954cat confdefs.h >>conftest.$ac_ext 9955cat >>conftest.$ac_ext <<_ACEOF 9956/* end confdefs.h. */ 9957 9958/* Override any GCC internal prototype to avoid an error. 9959 Use char because int might match the return type of a GCC 9960 builtin and then its argument prototype would still apply. */ 9961#ifdef __cplusplus 9962extern "C" 9963#endif 9964char dlopen (); 9965int 9966main () 9967{ 9968return dlopen (); 9969 ; 9970 return 0; 9971} 9972_ACEOF 9973rm -f conftest.$ac_objext conftest$ac_exeext 9974if { (ac_try="$ac_link" 9975case "(($ac_try" in 9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9977 *) ac_try_echo=$ac_try;; 9978esac 9979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9980 (eval "$ac_link") 2>conftest.er1 9981 ac_status=$? 9982 grep -v '^ *+' conftest.er1 >conftest.err 9983 rm -f conftest.er1 9984 cat conftest.err >&5 9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9986 (exit $ac_status); } && 9987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9988 { (case "(($ac_try" in 9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9990 *) ac_try_echo=$ac_try;; 9991esac 9992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9993 (eval "$ac_try") 2>&5 9994 ac_status=$? 9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9996 (exit $ac_status); }; } && 9997 { ac_try='test -s conftest$ac_exeext' 9998 { (case "(($ac_try" in 9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10000 *) ac_try_echo=$ac_try;; 10001esac 10002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10003 (eval "$ac_try") 2>&5 10004 ac_status=$? 10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10006 (exit $ac_status); }; }; then 10007 ac_cv_lib_dl_dlopen=yes 10008else 10009 echo "$as_me: failed program was:" >&5 10010sed 's/^/| /' conftest.$ac_ext >&5 10011 10012 ac_cv_lib_dl_dlopen=no 10013fi 10014 10015rm -f core conftest.err conftest.$ac_objext \ 10016 conftest$ac_exeext conftest.$ac_ext 10017LIBS=$ac_check_lib_save_LIBS 10018fi 10019{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10020echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10021if test $ac_cv_lib_dl_dlopen = yes; then 10022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10023else 10024 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10025echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10026if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10027 echo $ECHO_N "(cached) $ECHO_C" >&6 10028else 10029 ac_check_lib_save_LIBS=$LIBS 10030LIBS="-lsvld $LIBS" 10031cat >conftest.$ac_ext <<_ACEOF 10032/* confdefs.h. */ 10033_ACEOF 10034cat confdefs.h >>conftest.$ac_ext 10035cat >>conftest.$ac_ext <<_ACEOF 10036/* end confdefs.h. */ 10037 10038/* Override any GCC internal prototype to avoid an error. 10039 Use char because int might match the return type of a GCC 10040 builtin and then its argument prototype would still apply. */ 10041#ifdef __cplusplus 10042extern "C" 10043#endif 10044char dlopen (); 10045int 10046main () 10047{ 10048return dlopen (); 10049 ; 10050 return 0; 10051} 10052_ACEOF 10053rm -f conftest.$ac_objext conftest$ac_exeext 10054if { (ac_try="$ac_link" 10055case "(($ac_try" in 10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10057 *) ac_try_echo=$ac_try;; 10058esac 10059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10060 (eval "$ac_link") 2>conftest.er1 10061 ac_status=$? 10062 grep -v '^ *+' conftest.er1 >conftest.err 10063 rm -f conftest.er1 10064 cat conftest.err >&5 10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10066 (exit $ac_status); } && 10067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10068 { (case "(($ac_try" in 10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10070 *) ac_try_echo=$ac_try;; 10071esac 10072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10073 (eval "$ac_try") 2>&5 10074 ac_status=$? 10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10076 (exit $ac_status); }; } && 10077 { ac_try='test -s conftest$ac_exeext' 10078 { (case "(($ac_try" in 10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10080 *) ac_try_echo=$ac_try;; 10081esac 10082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10083 (eval "$ac_try") 2>&5 10084 ac_status=$? 10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10086 (exit $ac_status); }; }; then 10087 ac_cv_lib_svld_dlopen=yes 10088else 10089 echo "$as_me: failed program was:" >&5 10090sed 's/^/| /' conftest.$ac_ext >&5 10091 10092 ac_cv_lib_svld_dlopen=no 10093fi 10094 10095rm -f core conftest.err conftest.$ac_objext \ 10096 conftest$ac_exeext conftest.$ac_ext 10097LIBS=$ac_check_lib_save_LIBS 10098fi 10099{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10100echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10101if test $ac_cv_lib_svld_dlopen = yes; then 10102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10103else 10104 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10105echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10106if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10107 echo $ECHO_N "(cached) $ECHO_C" >&6 10108else 10109 ac_check_lib_save_LIBS=$LIBS 10110LIBS="-ldld $LIBS" 10111cat >conftest.$ac_ext <<_ACEOF 10112/* confdefs.h. */ 10113_ACEOF 10114cat confdefs.h >>conftest.$ac_ext 10115cat >>conftest.$ac_ext <<_ACEOF 10116/* end confdefs.h. */ 10117 10118/* Override any GCC internal prototype to avoid an error. 10119 Use char because int might match the return type of a GCC 10120 builtin and then its argument prototype would still apply. */ 10121#ifdef __cplusplus 10122extern "C" 10123#endif 10124char dld_link (); 10125int 10126main () 10127{ 10128return dld_link (); 10129 ; 10130 return 0; 10131} 10132_ACEOF 10133rm -f conftest.$ac_objext conftest$ac_exeext 10134if { (ac_try="$ac_link" 10135case "(($ac_try" in 10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10137 *) ac_try_echo=$ac_try;; 10138esac 10139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10140 (eval "$ac_link") 2>conftest.er1 10141 ac_status=$? 10142 grep -v '^ *+' conftest.er1 >conftest.err 10143 rm -f conftest.er1 10144 cat conftest.err >&5 10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10146 (exit $ac_status); } && 10147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10148 { (case "(($ac_try" in 10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10150 *) ac_try_echo=$ac_try;; 10151esac 10152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10153 (eval "$ac_try") 2>&5 10154 ac_status=$? 10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10156 (exit $ac_status); }; } && 10157 { ac_try='test -s conftest$ac_exeext' 10158 { (case "(($ac_try" in 10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10160 *) ac_try_echo=$ac_try;; 10161esac 10162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10163 (eval "$ac_try") 2>&5 10164 ac_status=$? 10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10166 (exit $ac_status); }; }; then 10167 ac_cv_lib_dld_dld_link=yes 10168else 10169 echo "$as_me: failed program was:" >&5 10170sed 's/^/| /' conftest.$ac_ext >&5 10171 10172 ac_cv_lib_dld_dld_link=no 10173fi 10174 10175rm -f core conftest.err conftest.$ac_objext \ 10176 conftest$ac_exeext conftest.$ac_ext 10177LIBS=$ac_check_lib_save_LIBS 10178fi 10179{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10180echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10181if test $ac_cv_lib_dld_dld_link = yes; then 10182 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10183fi 10184 10185 10186fi 10187 10188 10189fi 10190 10191 10192fi 10193 10194 10195fi 10196 10197 10198fi 10199 10200 ;; 10201 esac 10202 10203 if test "x$lt_cv_dlopen" != xno; then 10204 enable_dlopen=yes 10205 else 10206 enable_dlopen=no 10207 fi 10208 10209 case $lt_cv_dlopen in 10210 dlopen) 10211 save_CPPFLAGS="$CPPFLAGS" 10212 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10213 10214 save_LDFLAGS="$LDFLAGS" 10215 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10216 10217 save_LIBS="$LIBS" 10218 LIBS="$lt_cv_dlopen_libs $LIBS" 10219 10220 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10221echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10222if test "${lt_cv_dlopen_self+set}" = set; then 10223 echo $ECHO_N "(cached) $ECHO_C" >&6 10224else 10225 if test "$cross_compiling" = yes; then : 10226 lt_cv_dlopen_self=cross 10227else 10228 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10229 lt_status=$lt_dlunknown 10230 cat > conftest.$ac_ext <<EOF 10231#line 10231 "configure" 10232#include "confdefs.h" 10233 10234#if HAVE_DLFCN_H 10235#include <dlfcn.h> 10236#endif 10237 10238#include <stdio.h> 10239 10240#ifdef RTLD_GLOBAL 10241# define LT_DLGLOBAL RTLD_GLOBAL 10242#else 10243# ifdef DL_GLOBAL 10244# define LT_DLGLOBAL DL_GLOBAL 10245# else 10246# define LT_DLGLOBAL 0 10247# endif 10248#endif 10249 10250/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10251 find out it does not work in some platform. */ 10252#ifndef LT_DLLAZY_OR_NOW 10253# ifdef RTLD_LAZY 10254# define LT_DLLAZY_OR_NOW RTLD_LAZY 10255# else 10256# ifdef DL_LAZY 10257# define LT_DLLAZY_OR_NOW DL_LAZY 10258# else 10259# ifdef RTLD_NOW 10260# define LT_DLLAZY_OR_NOW RTLD_NOW 10261# else 10262# ifdef DL_NOW 10263# define LT_DLLAZY_OR_NOW DL_NOW 10264# else 10265# define LT_DLLAZY_OR_NOW 0 10266# endif 10267# endif 10268# endif 10269# endif 10270#endif 10271 10272#ifdef __cplusplus 10273extern "C" void exit (int); 10274#endif 10275 10276void fnord() { int i=42;} 10277int main () 10278{ 10279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10280 int status = $lt_dlunknown; 10281 10282 if (self) 10283 { 10284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10285 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10286 /* dlclose (self); */ 10287 } 10288 else 10289 puts (dlerror ()); 10290 10291 exit (status); 10292} 10293EOF 10294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10295 (eval $ac_link) 2>&5 10296 ac_status=$? 10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10298 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10299 (./conftest; exit; ) >&5 2>/dev/null 10300 lt_status=$? 10301 case x$lt_status in 10302 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10303 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10304 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10305 esac 10306 else : 10307 # compilation failed 10308 lt_cv_dlopen_self=no 10309 fi 10310fi 10311rm -fr conftest* 10312 10313 10314fi 10315{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10316echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10317 10318 if test "x$lt_cv_dlopen_self" = xyes; then 10319 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10320 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10321echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10322if test "${lt_cv_dlopen_self_static+set}" = set; then 10323 echo $ECHO_N "(cached) $ECHO_C" >&6 10324else 10325 if test "$cross_compiling" = yes; then : 10326 lt_cv_dlopen_self_static=cross 10327else 10328 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10329 lt_status=$lt_dlunknown 10330 cat > conftest.$ac_ext <<EOF 10331#line 10331 "configure" 10332#include "confdefs.h" 10333 10334#if HAVE_DLFCN_H 10335#include <dlfcn.h> 10336#endif 10337 10338#include <stdio.h> 10339 10340#ifdef RTLD_GLOBAL 10341# define LT_DLGLOBAL RTLD_GLOBAL 10342#else 10343# ifdef DL_GLOBAL 10344# define LT_DLGLOBAL DL_GLOBAL 10345# else 10346# define LT_DLGLOBAL 0 10347# endif 10348#endif 10349 10350/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10351 find out it does not work in some platform. */ 10352#ifndef LT_DLLAZY_OR_NOW 10353# ifdef RTLD_LAZY 10354# define LT_DLLAZY_OR_NOW RTLD_LAZY 10355# else 10356# ifdef DL_LAZY 10357# define LT_DLLAZY_OR_NOW DL_LAZY 10358# else 10359# ifdef RTLD_NOW 10360# define LT_DLLAZY_OR_NOW RTLD_NOW 10361# else 10362# ifdef DL_NOW 10363# define LT_DLLAZY_OR_NOW DL_NOW 10364# else 10365# define LT_DLLAZY_OR_NOW 0 10366# endif 10367# endif 10368# endif 10369# endif 10370#endif 10371 10372#ifdef __cplusplus 10373extern "C" void exit (int); 10374#endif 10375 10376void fnord() { int i=42;} 10377int main () 10378{ 10379 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10380 int status = $lt_dlunknown; 10381 10382 if (self) 10383 { 10384 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10385 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10386 /* dlclose (self); */ 10387 } 10388 else 10389 puts (dlerror ()); 10390 10391 exit (status); 10392} 10393EOF 10394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10395 (eval $ac_link) 2>&5 10396 ac_status=$? 10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10398 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10399 (./conftest; exit; ) >&5 2>/dev/null 10400 lt_status=$? 10401 case x$lt_status in 10402 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10403 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10404 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10405 esac 10406 else : 10407 # compilation failed 10408 lt_cv_dlopen_self_static=no 10409 fi 10410fi 10411rm -fr conftest* 10412 10413 10414fi 10415{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10416echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10417 fi 10418 10419 CPPFLAGS="$save_CPPFLAGS" 10420 LDFLAGS="$save_LDFLAGS" 10421 LIBS="$save_LIBS" 10422 ;; 10423 esac 10424 10425 case $lt_cv_dlopen_self in 10426 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10427 *) enable_dlopen_self=unknown ;; 10428 esac 10429 10430 case $lt_cv_dlopen_self_static in 10431 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10432 *) enable_dlopen_self_static=unknown ;; 10433 esac 10434fi 10435 10436 10437# Report which library types will actually be built 10438{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10439echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10440{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10441echo "${ECHO_T}$can_build_shared" >&6; } 10442 10443{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10444echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10445test "$can_build_shared" = "no" && enable_shared=no 10446 10447# On AIX, shared libraries and static libraries use the same namespace, and 10448# are all built from PIC. 10449case $host_os in 10450aix3*) 10451 test "$enable_shared" = yes && enable_static=no 10452 if test -n "$RANLIB"; then 10453 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10454 postinstall_cmds='$RANLIB $lib' 10455 fi 10456 ;; 10457 10458aix4* | aix5*) 10459 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10460 test "$enable_shared" = yes && enable_static=no 10461 fi 10462 ;; 10463esac 10464{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10465echo "${ECHO_T}$enable_shared" >&6; } 10466 10467{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10468echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10469# Make sure either enable_shared or enable_static is yes. 10470test "$enable_shared" = yes || enable_static=yes 10471{ echo "$as_me:$LINENO: result: $enable_static" >&5 10472echo "${ECHO_T}$enable_static" >&6; } 10473 10474# The else clause should only fire when bootstrapping the 10475# libtool distribution, otherwise you forgot to ship ltmain.sh 10476# with your package, and you will get complaints that there are 10477# no rules to generate ltmain.sh. 10478if test -f "$ltmain"; then 10479 # See if we are running on zsh, and set the options which allow our commands through 10480 # without removal of \ escapes. 10481 if test -n "${ZSH_VERSION+set}" ; then 10482 setopt NO_GLOB_SUBST 10483 fi 10484 # Now quote all the things that may contain metacharacters while being 10485 # careful not to overquote the AC_SUBSTed values. We take copies of the 10486 # variables and quote the copies for generation of the libtool script. 10487 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10488 SED SHELL STRIP \ 10489 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10490 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10491 deplibs_check_method reload_flag reload_cmds need_locks \ 10492 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10493 lt_cv_sys_global_symbol_to_c_name_address \ 10494 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10495 old_postinstall_cmds old_postuninstall_cmds \ 10496 compiler \ 10497 CC \ 10498 LD \ 10499 lt_prog_compiler_wl \ 10500 lt_prog_compiler_pic \ 10501 lt_prog_compiler_static \ 10502 lt_prog_compiler_no_builtin_flag \ 10503 export_dynamic_flag_spec \ 10504 thread_safe_flag_spec \ 10505 whole_archive_flag_spec \ 10506 enable_shared_with_static_runtimes \ 10507 old_archive_cmds \ 10508 old_archive_from_new_cmds \ 10509 predep_objects \ 10510 postdep_objects \ 10511 predeps \ 10512 postdeps \ 10513 compiler_lib_search_path \ 10514 archive_cmds \ 10515 archive_expsym_cmds \ 10516 postinstall_cmds \ 10517 postuninstall_cmds \ 10518 old_archive_from_expsyms_cmds \ 10519 allow_undefined_flag \ 10520 no_undefined_flag \ 10521 export_symbols_cmds \ 10522 hardcode_libdir_flag_spec \ 10523 hardcode_libdir_flag_spec_ld \ 10524 hardcode_libdir_separator \ 10525 hardcode_automatic \ 10526 module_cmds \ 10527 module_expsym_cmds \ 10528 lt_cv_prog_compiler_c_o \ 10529 exclude_expsyms \ 10530 include_expsyms; do 10531 10532 case $var in 10533 old_archive_cmds | \ 10534 old_archive_from_new_cmds | \ 10535 archive_cmds | \ 10536 archive_expsym_cmds | \ 10537 module_cmds | \ 10538 module_expsym_cmds | \ 10539 old_archive_from_expsyms_cmds | \ 10540 export_symbols_cmds | \ 10541 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10542 postinstall_cmds | postuninstall_cmds | \ 10543 old_postinstall_cmds | old_postuninstall_cmds | \ 10544 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10545 # Double-quote double-evaled strings. 10546 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10547 ;; 10548 *) 10549 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10550 ;; 10551 esac 10552 done 10553 10554 case $lt_echo in 10555 *'\$0 --fallback-echo"') 10556 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10557 ;; 10558 esac 10559 10560cfgfile="${ofile}T" 10561 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10562 $rm -f "$cfgfile" 10563 { echo "$as_me:$LINENO: creating $ofile" >&5 10564echo "$as_me: creating $ofile" >&6;} 10565 10566 cat <<__EOF__ >> "$cfgfile" 10567#! $SHELL 10568 10569# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10570# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10571# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10572# 10573# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10574# Free Software Foundation, Inc. 10575# 10576# This file is part of GNU Libtool: 10577# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10578# 10579# This program is free software; you can redistribute it and/or modify 10580# it under the terms of the GNU General Public License as published by 10581# the Free Software Foundation; either version 2 of the License, or 10582# (at your option) any later version. 10583# 10584# This program is distributed in the hope that it will be useful, but 10585# WITHOUT ANY WARRANTY; without even the implied warranty of 10586# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10587# General Public License for more details. 10588# 10589# You should have received a copy of the GNU General Public License 10590# along with this program; if not, write to the Free Software 10591# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10592# 10593# As a special exception to the GNU General Public License, if you 10594# distribute this file as part of a program that contains a 10595# configuration script generated by Autoconf, you may include it under 10596# the same distribution terms that you use for the rest of that program. 10597 10598# A sed program that does not truncate output. 10599SED=$lt_SED 10600 10601# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10602Xsed="$SED -e 1s/^X//" 10603 10604# The HP-UX ksh and POSIX shell print the target directory to stdout 10605# if CDPATH is set. 10606(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10607 10608# The names of the tagged configurations supported by this script. 10609available_tags= 10610 10611# ### BEGIN LIBTOOL CONFIG 10612 10613# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10614 10615# Shell to use when invoking shell scripts. 10616SHELL=$lt_SHELL 10617 10618# Whether or not to build shared libraries. 10619build_libtool_libs=$enable_shared 10620 10621# Whether or not to build static libraries. 10622build_old_libs=$enable_static 10623 10624# Whether or not to add -lc for building shared libraries. 10625build_libtool_need_lc=$archive_cmds_need_lc 10626 10627# Whether or not to disallow shared libs when runtime libs are static 10628allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10629 10630# Whether or not to optimize for fast installation. 10631fast_install=$enable_fast_install 10632 10633# The host system. 10634host_alias=$host_alias 10635host=$host 10636host_os=$host_os 10637 10638# The build system. 10639build_alias=$build_alias 10640build=$build 10641build_os=$build_os 10642 10643# An echo program that does not interpret backslashes. 10644echo=$lt_echo 10645 10646# The archiver. 10647AR=$lt_AR 10648AR_FLAGS=$lt_AR_FLAGS 10649 10650# A C compiler. 10651LTCC=$lt_LTCC 10652 10653# LTCC compiler flags. 10654LTCFLAGS=$lt_LTCFLAGS 10655 10656# A language-specific compiler. 10657CC=$lt_compiler 10658 10659# Is the compiler the GNU C compiler? 10660with_gcc=$GCC 10661 10662# An ERE matcher. 10663EGREP=$lt_EGREP 10664 10665# The linker used to build libraries. 10666LD=$lt_LD 10667 10668# Whether we need hard or soft links. 10669LN_S=$lt_LN_S 10670 10671# A BSD-compatible nm program. 10672NM=$lt_NM 10673 10674# A symbol stripping program 10675STRIP=$lt_STRIP 10676 10677# Used to examine libraries when file_magic_cmd begins "file" 10678MAGIC_CMD=$MAGIC_CMD 10679 10680# Used on cygwin: DLL creation program. 10681DLLTOOL="$DLLTOOL" 10682 10683# Used on cygwin: object dumper. 10684OBJDUMP="$OBJDUMP" 10685 10686# Used on cygwin: assembler. 10687AS="$AS" 10688 10689# The name of the directory that contains temporary libtool files. 10690objdir=$objdir 10691 10692# How to create reloadable object files. 10693reload_flag=$lt_reload_flag 10694reload_cmds=$lt_reload_cmds 10695 10696# How to pass a linker flag through the compiler. 10697wl=$lt_lt_prog_compiler_wl 10698 10699# Object file suffix (normally "o"). 10700objext="$ac_objext" 10701 10702# Old archive suffix (normally "a"). 10703libext="$libext" 10704 10705# Shared library suffix (normally ".so"). 10706shrext_cmds='$shrext_cmds' 10707 10708# Executable file suffix (normally ""). 10709exeext="$exeext" 10710 10711# Additional compiler flags for building library objects. 10712pic_flag=$lt_lt_prog_compiler_pic 10713pic_mode=$pic_mode 10714 10715# What is the maximum length of a command? 10716max_cmd_len=$lt_cv_sys_max_cmd_len 10717 10718# Does compiler simultaneously support -c and -o options? 10719compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10720 10721# Must we lock files when doing compilation? 10722need_locks=$lt_need_locks 10723 10724# Do we need the lib prefix for modules? 10725need_lib_prefix=$need_lib_prefix 10726 10727# Do we need a version for libraries? 10728need_version=$need_version 10729 10730# Whether dlopen is supported. 10731dlopen_support=$enable_dlopen 10732 10733# Whether dlopen of programs is supported. 10734dlopen_self=$enable_dlopen_self 10735 10736# Whether dlopen of statically linked programs is supported. 10737dlopen_self_static=$enable_dlopen_self_static 10738 10739# Compiler flag to prevent dynamic linking. 10740link_static_flag=$lt_lt_prog_compiler_static 10741 10742# Compiler flag to turn off builtin functions. 10743no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10744 10745# Compiler flag to allow reflexive dlopens. 10746export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10747 10748# Compiler flag to generate shared objects directly from archives. 10749whole_archive_flag_spec=$lt_whole_archive_flag_spec 10750 10751# Compiler flag to generate thread-safe objects. 10752thread_safe_flag_spec=$lt_thread_safe_flag_spec 10753 10754# Library versioning type. 10755version_type=$version_type 10756 10757# Format of library name prefix. 10758libname_spec=$lt_libname_spec 10759 10760# List of archive names. First name is the real one, the rest are links. 10761# The last name is the one that the linker finds with -lNAME. 10762library_names_spec=$lt_library_names_spec 10763 10764# The coded name of the library, if different from the real name. 10765soname_spec=$lt_soname_spec 10766 10767# Commands used to build and install an old-style archive. 10768RANLIB=$lt_RANLIB 10769old_archive_cmds=$lt_old_archive_cmds 10770old_postinstall_cmds=$lt_old_postinstall_cmds 10771old_postuninstall_cmds=$lt_old_postuninstall_cmds 10772 10773# Create an old-style archive from a shared archive. 10774old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10775 10776# Create a temporary old-style archive to link instead of a shared archive. 10777old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10778 10779# Commands used to build and install a shared archive. 10780archive_cmds=$lt_archive_cmds 10781archive_expsym_cmds=$lt_archive_expsym_cmds 10782postinstall_cmds=$lt_postinstall_cmds 10783postuninstall_cmds=$lt_postuninstall_cmds 10784 10785# Commands used to build a loadable module (assumed same as above if empty) 10786module_cmds=$lt_module_cmds 10787module_expsym_cmds=$lt_module_expsym_cmds 10788 10789# Commands to strip libraries. 10790old_striplib=$lt_old_striplib 10791striplib=$lt_striplib 10792 10793# Dependencies to place before the objects being linked to create a 10794# shared library. 10795predep_objects=$lt_predep_objects 10796 10797# Dependencies to place after the objects being linked to create a 10798# shared library. 10799postdep_objects=$lt_postdep_objects 10800 10801# Dependencies to place before the objects being linked to create a 10802# shared library. 10803predeps=$lt_predeps 10804 10805# Dependencies to place after the objects being linked to create a 10806# shared library. 10807postdeps=$lt_postdeps 10808 10809# The library search path used internally by the compiler when linking 10810# a shared library. 10811compiler_lib_search_path=$lt_compiler_lib_search_path 10812 10813# Method to check whether dependent libraries are shared objects. 10814deplibs_check_method=$lt_deplibs_check_method 10815 10816# Command to use when deplibs_check_method == file_magic. 10817file_magic_cmd=$lt_file_magic_cmd 10818 10819# Flag that allows shared libraries with undefined symbols to be built. 10820allow_undefined_flag=$lt_allow_undefined_flag 10821 10822# Flag that forces no undefined symbols. 10823no_undefined_flag=$lt_no_undefined_flag 10824 10825# Commands used to finish a libtool library installation in a directory. 10826finish_cmds=$lt_finish_cmds 10827 10828# Same as above, but a single script fragment to be evaled but not shown. 10829finish_eval=$lt_finish_eval 10830 10831# Take the output of nm and produce a listing of raw symbols and C names. 10832global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10833 10834# Transform the output of nm in a proper C declaration 10835global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10836 10837# Transform the output of nm in a C name address pair 10838global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10839 10840# This is the shared library runtime path variable. 10841runpath_var=$runpath_var 10842 10843# This is the shared library path variable. 10844shlibpath_var=$shlibpath_var 10845 10846# Is shlibpath searched before the hard-coded library search path? 10847shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10848 10849# How to hardcode a shared library path into an executable. 10850hardcode_action=$hardcode_action 10851 10852# Whether we should hardcode library paths into libraries. 10853hardcode_into_libs=$hardcode_into_libs 10854 10855# Flag to hardcode \$libdir into a binary during linking. 10856# This must work even if \$libdir does not exist. 10857hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10858 10859# If ld is used when linking, flag to hardcode \$libdir into 10860# a binary during linking. This must work even if \$libdir does 10861# not exist. 10862hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10863 10864# Whether we need a single -rpath flag with a separated argument. 10865hardcode_libdir_separator=$lt_hardcode_libdir_separator 10866 10867# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10868# resulting binary. 10869hardcode_direct=$hardcode_direct 10870 10871# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10872# resulting binary. 10873hardcode_minus_L=$hardcode_minus_L 10874 10875# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10876# the resulting binary. 10877hardcode_shlibpath_var=$hardcode_shlibpath_var 10878 10879# Set to yes if building a shared library automatically hardcodes DIR into the library 10880# and all subsequent libraries and executables linked against it. 10881hardcode_automatic=$hardcode_automatic 10882 10883# Variables whose values should be saved in libtool wrapper scripts and 10884# restored at relink time. 10885variables_saved_for_relink="$variables_saved_for_relink" 10886 10887# Whether libtool must link a program against all its dependency libraries. 10888link_all_deplibs=$link_all_deplibs 10889 10890# Compile-time system search path for libraries 10891sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10892 10893# Run-time system search path for libraries 10894sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10895 10896# Fix the shell variable \$srcfile for the compiler. 10897fix_srcfile_path="$fix_srcfile_path" 10898 10899# Set to yes if exported symbols are required. 10900always_export_symbols=$always_export_symbols 10901 10902# The commands to list exported symbols. 10903export_symbols_cmds=$lt_export_symbols_cmds 10904 10905# The commands to extract the exported symbol list from a shared archive. 10906extract_expsyms_cmds=$lt_extract_expsyms_cmds 10907 10908# Symbols that should not be listed in the preloaded symbols. 10909exclude_expsyms=$lt_exclude_expsyms 10910 10911# Symbols that must always be exported. 10912include_expsyms=$lt_include_expsyms 10913 10914# ### END LIBTOOL CONFIG 10915 10916__EOF__ 10917 10918 10919 case $host_os in 10920 aix3*) 10921 cat <<\EOF >> "$cfgfile" 10922 10923# AIX sometimes has problems with the GCC collect2 program. For some 10924# reason, if we set the COLLECT_NAMES environment variable, the problems 10925# vanish in a puff of smoke. 10926if test "X${COLLECT_NAMES+set}" != Xset; then 10927 COLLECT_NAMES= 10928 export COLLECT_NAMES 10929fi 10930EOF 10931 ;; 10932 esac 10933 10934 # We use sed instead of cat because bash on DJGPP gets confused if 10935 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10936 # text mode, it properly converts lines to CR/LF. This bash problem 10937 # is reportedly fixed, but why not run on old versions too? 10938 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10939 10940 mv -f "$cfgfile" "$ofile" || \ 10941 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10942 chmod +x "$ofile" 10943 10944else 10945 # If there is no Makefile yet, we rely on a make rule to execute 10946 # `config.status --recheck' to rerun these tests and create the 10947 # libtool script then. 10948 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10949 if test -f "$ltmain_in"; then 10950 test -f Makefile && make "$ltmain" 10951 fi 10952fi 10953 10954 10955ac_ext=c 10956ac_cpp='$CPP $CPPFLAGS' 10957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10959ac_compiler_gnu=$ac_cv_c_compiler_gnu 10960 10961CC="$lt_save_CC" 10962 10963 10964# Check whether --with-tags was given. 10965if test "${with_tags+set}" = set; then 10966 withval=$with_tags; tagnames="$withval" 10967fi 10968 10969 10970if test -f "$ltmain" && test -n "$tagnames"; then 10971 if test ! -f "${ofile}"; then 10972 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10973echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10974 fi 10975 10976 if test -z "$LTCC"; then 10977 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10978 if test -z "$LTCC"; then 10979 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10980echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10981 else 10982 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10983echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10984 fi 10985 fi 10986 if test -z "$LTCFLAGS"; then 10987 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10988 fi 10989 10990 # Extract list of available tagged configurations in $ofile. 10991 # Note that this assumes the entire list is on one line. 10992 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10993 10994 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10995 for tagname in $tagnames; do 10996 IFS="$lt_save_ifs" 10997 # Check whether tagname contains only valid characters 10998 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10999 "") ;; 11000 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11001echo "$as_me: error: invalid tag name: $tagname" >&2;} 11002 { (exit 1); exit 1; }; } 11003 ;; 11004 esac 11005 11006 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11007 then 11008 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11009echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11010 { (exit 1); exit 1; }; } 11011 fi 11012 11013 # Update the list of available tags. 11014 if test -n "$tagname"; then 11015 echo appending configuration tag \"$tagname\" to $ofile 11016 11017 case $tagname in 11018 CXX) 11019 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11020 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11021 (test "X$CXX" != "Xg++"))) ; then 11022 ac_ext=cpp 11023ac_cpp='$CXXCPP $CPPFLAGS' 11024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11027 11028 11029 11030 11031archive_cmds_need_lc_CXX=no 11032allow_undefined_flag_CXX= 11033always_export_symbols_CXX=no 11034archive_expsym_cmds_CXX= 11035export_dynamic_flag_spec_CXX= 11036hardcode_direct_CXX=no 11037hardcode_libdir_flag_spec_CXX= 11038hardcode_libdir_flag_spec_ld_CXX= 11039hardcode_libdir_separator_CXX= 11040hardcode_minus_L_CXX=no 11041hardcode_shlibpath_var_CXX=unsupported 11042hardcode_automatic_CXX=no 11043module_cmds_CXX= 11044module_expsym_cmds_CXX= 11045link_all_deplibs_CXX=unknown 11046old_archive_cmds_CXX=$old_archive_cmds 11047no_undefined_flag_CXX= 11048whole_archive_flag_spec_CXX= 11049enable_shared_with_static_runtimes_CXX=no 11050 11051# Dependencies to place before and after the object being linked: 11052predep_objects_CXX= 11053postdep_objects_CXX= 11054predeps_CXX= 11055postdeps_CXX= 11056compiler_lib_search_path_CXX= 11057 11058# Source file extension for C++ test sources. 11059ac_ext=cpp 11060 11061# Object file extension for compiled C++ test sources. 11062objext=o 11063objext_CXX=$objext 11064 11065# Code to be used in simple compile tests 11066lt_simple_compile_test_code="int some_variable = 0;\n" 11067 11068# Code to be used in simple link tests 11069lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11070 11071# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11072 11073# If no C compiler was specified, use CC. 11074LTCC=${LTCC-"$CC"} 11075 11076# If no C compiler flags were specified, use CFLAGS. 11077LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11078 11079# Allow CC to be a program name with arguments. 11080compiler=$CC 11081 11082 11083# save warnings/boilerplate of simple test code 11084ac_outfile=conftest.$ac_objext 11085printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11086eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11087_lt_compiler_boilerplate=`cat conftest.err` 11088$rm conftest* 11089 11090ac_outfile=conftest.$ac_objext 11091printf "$lt_simple_link_test_code" >conftest.$ac_ext 11092eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11093_lt_linker_boilerplate=`cat conftest.err` 11094$rm conftest* 11095 11096 11097# Allow CC to be a program name with arguments. 11098lt_save_CC=$CC 11099lt_save_LD=$LD 11100lt_save_GCC=$GCC 11101GCC=$GXX 11102lt_save_with_gnu_ld=$with_gnu_ld 11103lt_save_path_LD=$lt_cv_path_LD 11104if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11105 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11106else 11107 $as_unset lt_cv_prog_gnu_ld 11108fi 11109if test -n "${lt_cv_path_LDCXX+set}"; then 11110 lt_cv_path_LD=$lt_cv_path_LDCXX 11111else 11112 $as_unset lt_cv_path_LD 11113fi 11114test -z "${LDCXX+set}" || LD=$LDCXX 11115CC=${CXX-"c++"} 11116compiler=$CC 11117compiler_CXX=$CC 11118for cc_temp in $compiler""; do 11119 case $cc_temp in 11120 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11121 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11122 \-*) ;; 11123 *) break;; 11124 esac 11125done 11126cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11127 11128 11129# We don't want -fno-exception wen compiling C++ code, so set the 11130# no_builtin_flag separately 11131if test "$GXX" = yes; then 11132 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11133else 11134 lt_prog_compiler_no_builtin_flag_CXX= 11135fi 11136 11137if test "$GXX" = yes; then 11138 # Set up default GNU C++ configuration 11139 11140 11141# Check whether --with-gnu-ld was given. 11142if test "${with_gnu_ld+set}" = set; then 11143 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11144else 11145 with_gnu_ld=no 11146fi 11147 11148ac_prog=ld 11149if test "$GCC" = yes; then 11150 # Check if gcc -print-prog-name=ld gives a path. 11151 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11152echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11153 case $host in 11154 *-*-mingw*) 11155 # gcc leaves a trailing carriage return which upsets mingw 11156 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11157 *) 11158 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11159 esac 11160 case $ac_prog in 11161 # Accept absolute paths. 11162 [\\/]* | ?:[\\/]*) 11163 re_direlt='/[^/][^/]*/\.\./' 11164 # Canonicalize the pathname of ld 11165 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11166 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11167 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11168 done 11169 test -z "$LD" && LD="$ac_prog" 11170 ;; 11171 "") 11172 # If it fails, then pretend we aren't using GCC. 11173 ac_prog=ld 11174 ;; 11175 *) 11176 # If it is relative, then search for the first ld in PATH. 11177 with_gnu_ld=unknown 11178 ;; 11179 esac 11180elif test "$with_gnu_ld" = yes; then 11181 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11182echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11183else 11184 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11185echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11186fi 11187if test "${lt_cv_path_LD+set}" = set; then 11188 echo $ECHO_N "(cached) $ECHO_C" >&6 11189else 11190 if test -z "$LD"; then 11191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11192 for ac_dir in $PATH; do 11193 IFS="$lt_save_ifs" 11194 test -z "$ac_dir" && ac_dir=. 11195 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11196 lt_cv_path_LD="$ac_dir/$ac_prog" 11197 # Check to see if the program is GNU ld. I'd rather use --version, 11198 # but apparently some variants of GNU ld only accept -v. 11199 # Break only if it was the GNU/non-GNU ld that we prefer. 11200 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11201 *GNU* | *'with BFD'*) 11202 test "$with_gnu_ld" != no && break 11203 ;; 11204 *) 11205 test "$with_gnu_ld" != yes && break 11206 ;; 11207 esac 11208 fi 11209 done 11210 IFS="$lt_save_ifs" 11211else 11212 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11213fi 11214fi 11215 11216LD="$lt_cv_path_LD" 11217if test -n "$LD"; then 11218 { echo "$as_me:$LINENO: result: $LD" >&5 11219echo "${ECHO_T}$LD" >&6; } 11220else 11221 { echo "$as_me:$LINENO: result: no" >&5 11222echo "${ECHO_T}no" >&6; } 11223fi 11224test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11225echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11226 { (exit 1); exit 1; }; } 11227{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11228echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11229if test "${lt_cv_prog_gnu_ld+set}" = set; then 11230 echo $ECHO_N "(cached) $ECHO_C" >&6 11231else 11232 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11233case `$LD -v 2>&1 </dev/null` in 11234*GNU* | *'with BFD'*) 11235 lt_cv_prog_gnu_ld=yes 11236 ;; 11237*) 11238 lt_cv_prog_gnu_ld=no 11239 ;; 11240esac 11241fi 11242{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11243echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11244with_gnu_ld=$lt_cv_prog_gnu_ld 11245 11246 11247 11248 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11249 # archiving commands below assume that GNU ld is being used. 11250 if test "$with_gnu_ld" = yes; then 11251 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11252 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' 11253 11254 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11255 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11256 11257 # If archive_cmds runs LD, not CC, wlarc should be empty 11258 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11259 # investigate it a little bit more. (MM) 11260 wlarc='${wl}' 11261 11262 # ancient GNU ld didn't support --whole-archive et. al. 11263 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11264 grep 'no-whole-archive' > /dev/null; then 11265 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11266 else 11267 whole_archive_flag_spec_CXX= 11268 fi 11269 else 11270 with_gnu_ld=no 11271 wlarc= 11272 11273 # A generic and very simple default shared library creation 11274 # command for GNU C++ for the case where it uses the native 11275 # linker, instead of GNU ld. If possible, this setting should 11276 # overridden to take advantage of the native linker features on 11277 # the platform it is being used on. 11278 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11279 fi 11280 11281 # Commands to make compiler produce verbose output that lists 11282 # what "hidden" libraries, object files and flags are used when 11283 # linking a shared library. 11284 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11285 11286else 11287 GXX=no 11288 with_gnu_ld=no 11289 wlarc= 11290fi 11291 11292# PORTME: fill in a description of your system's C++ link characteristics 11293{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11294echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11295ld_shlibs_CXX=yes 11296case $host_os in 11297 aix3*) 11298 # FIXME: insert proper C++ library support 11299 ld_shlibs_CXX=no 11300 ;; 11301 aix4* | aix5*) 11302 if test "$host_cpu" = ia64; then 11303 # On IA64, the linker does run time linking by default, so we don't 11304 # have to do anything special. 11305 aix_use_runtimelinking=no 11306 exp_sym_flag='-Bexport' 11307 no_entry_flag="" 11308 else 11309 aix_use_runtimelinking=no 11310 11311 # Test if we are trying to use run time linking or normal 11312 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11313 # need to do runtime linking. 11314 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11315 for ld_flag in $LDFLAGS; do 11316 case $ld_flag in 11317 *-brtl*) 11318 aix_use_runtimelinking=yes 11319 break 11320 ;; 11321 esac 11322 done 11323 ;; 11324 esac 11325 11326 exp_sym_flag='-bexport' 11327 no_entry_flag='-bnoentry' 11328 fi 11329 11330 # When large executables or shared objects are built, AIX ld can 11331 # have problems creating the table of contents. If linking a library 11332 # or program results in "error TOC overflow" add -mminimal-toc to 11333 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11334 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11335 11336 archive_cmds_CXX='' 11337 hardcode_direct_CXX=yes 11338 hardcode_libdir_separator_CXX=':' 11339 link_all_deplibs_CXX=yes 11340 11341 if test "$GXX" = yes; then 11342 case $host_os in aix4.[012]|aix4.[012].*) 11343 # We only want to do this on AIX 4.2 and lower, the check 11344 # below for broken collect2 doesn't work under 4.3+ 11345 collect2name=`${CC} -print-prog-name=collect2` 11346 if test -f "$collect2name" && \ 11347 strings "$collect2name" | grep resolve_lib_name >/dev/null 11348 then 11349 # We have reworked collect2 11350 hardcode_direct_CXX=yes 11351 else 11352 # We have old collect2 11353 hardcode_direct_CXX=unsupported 11354 # It fails to find uninstalled libraries when the uninstalled 11355 # path is not listed in the libpath. Setting hardcode_minus_L 11356 # to unsupported forces relinking 11357 hardcode_minus_L_CXX=yes 11358 hardcode_libdir_flag_spec_CXX='-L$libdir' 11359 hardcode_libdir_separator_CXX= 11360 fi 11361 ;; 11362 esac 11363 shared_flag='-shared' 11364 if test "$aix_use_runtimelinking" = yes; then 11365 shared_flag="$shared_flag "'${wl}-G' 11366 fi 11367 else 11368 # not using gcc 11369 if test "$host_cpu" = ia64; then 11370 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11371 # chokes on -Wl,-G. The following line is correct: 11372 shared_flag='-G' 11373 else 11374 if test "$aix_use_runtimelinking" = yes; then 11375 shared_flag='${wl}-G' 11376 else 11377 shared_flag='${wl}-bM:SRE' 11378 fi 11379 fi 11380 fi 11381 11382 # It seems that -bexpall does not export symbols beginning with 11383 # underscore (_), so it is better to generate a list of symbols to export. 11384 always_export_symbols_CXX=yes 11385 if test "$aix_use_runtimelinking" = yes; then 11386 # Warning - without using the other runtime loading flags (-brtl), 11387 # -berok will link without error, but may produce a broken library. 11388 allow_undefined_flag_CXX='-berok' 11389 # Determine the default libpath from the value encoded in an empty executable. 11390 cat >conftest.$ac_ext <<_ACEOF 11391/* confdefs.h. */ 11392_ACEOF 11393cat confdefs.h >>conftest.$ac_ext 11394cat >>conftest.$ac_ext <<_ACEOF 11395/* end confdefs.h. */ 11396 11397int 11398main () 11399{ 11400 11401 ; 11402 return 0; 11403} 11404_ACEOF 11405rm -f conftest.$ac_objext conftest$ac_exeext 11406if { (ac_try="$ac_link" 11407case "(($ac_try" in 11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11409 *) ac_try_echo=$ac_try;; 11410esac 11411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11412 (eval "$ac_link") 2>conftest.er1 11413 ac_status=$? 11414 grep -v '^ *+' conftest.er1 >conftest.err 11415 rm -f conftest.er1 11416 cat conftest.err >&5 11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11418 (exit $ac_status); } && 11419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11420 { (case "(($ac_try" in 11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11422 *) ac_try_echo=$ac_try;; 11423esac 11424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11425 (eval "$ac_try") 2>&5 11426 ac_status=$? 11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11428 (exit $ac_status); }; } && 11429 { ac_try='test -s conftest$ac_exeext' 11430 { (case "(($ac_try" in 11431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11432 *) ac_try_echo=$ac_try;; 11433esac 11434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11435 (eval "$ac_try") 2>&5 11436 ac_status=$? 11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11438 (exit $ac_status); }; }; then 11439 11440aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11441}'` 11442# Check for a 64-bit object if we didn't find anything. 11443if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11444}'`; fi 11445else 11446 echo "$as_me: failed program was:" >&5 11447sed 's/^/| /' conftest.$ac_ext >&5 11448 11449 11450fi 11451 11452rm -f core conftest.err conftest.$ac_objext \ 11453 conftest$ac_exeext conftest.$ac_ext 11454if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11455 11456 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11457 11458 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" 11459 else 11460 if test "$host_cpu" = ia64; then 11461 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11462 allow_undefined_flag_CXX="-z nodefs" 11463 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" 11464 else 11465 # Determine the default libpath from the value encoded in an empty executable. 11466 cat >conftest.$ac_ext <<_ACEOF 11467/* confdefs.h. */ 11468_ACEOF 11469cat confdefs.h >>conftest.$ac_ext 11470cat >>conftest.$ac_ext <<_ACEOF 11471/* end confdefs.h. */ 11472 11473int 11474main () 11475{ 11476 11477 ; 11478 return 0; 11479} 11480_ACEOF 11481rm -f conftest.$ac_objext conftest$ac_exeext 11482if { (ac_try="$ac_link" 11483case "(($ac_try" in 11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11485 *) ac_try_echo=$ac_try;; 11486esac 11487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11488 (eval "$ac_link") 2>conftest.er1 11489 ac_status=$? 11490 grep -v '^ *+' conftest.er1 >conftest.err 11491 rm -f conftest.er1 11492 cat conftest.err >&5 11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11494 (exit $ac_status); } && 11495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11496 { (case "(($ac_try" in 11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11498 *) ac_try_echo=$ac_try;; 11499esac 11500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11501 (eval "$ac_try") 2>&5 11502 ac_status=$? 11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11504 (exit $ac_status); }; } && 11505 { ac_try='test -s conftest$ac_exeext' 11506 { (case "(($ac_try" in 11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11508 *) ac_try_echo=$ac_try;; 11509esac 11510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11511 (eval "$ac_try") 2>&5 11512 ac_status=$? 11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11514 (exit $ac_status); }; }; then 11515 11516aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11517}'` 11518# Check for a 64-bit object if we didn't find anything. 11519if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11520}'`; fi 11521else 11522 echo "$as_me: failed program was:" >&5 11523sed 's/^/| /' conftest.$ac_ext >&5 11524 11525 11526fi 11527 11528rm -f core conftest.err conftest.$ac_objext \ 11529 conftest$ac_exeext conftest.$ac_ext 11530if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11531 11532 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11533 # Warning - without using the other run time loading flags, 11534 # -berok will link without error, but may produce a broken library. 11535 no_undefined_flag_CXX=' ${wl}-bernotok' 11536 allow_undefined_flag_CXX=' ${wl}-berok' 11537 # Exported symbols can be pulled into shared objects from archives 11538 whole_archive_flag_spec_CXX='$convenience' 11539 archive_cmds_need_lc_CXX=yes 11540 # This is similar to how AIX traditionally builds its shared libraries. 11541 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' 11542 fi 11543 fi 11544 ;; 11545 11546 beos*) 11547 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11548 allow_undefined_flag_CXX=unsupported 11549 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11550 # support --undefined. This deserves some investigation. FIXME 11551 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11552 else 11553 ld_shlibs_CXX=no 11554 fi 11555 ;; 11556 11557 chorus*) 11558 case $cc_basename in 11559 *) 11560 # FIXME: insert proper C++ library support 11561 ld_shlibs_CXX=no 11562 ;; 11563 esac 11564 ;; 11565 11566 cygwin* | mingw* | pw32*) 11567 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11568 # as there is no search path for DLLs. 11569 hardcode_libdir_flag_spec_CXX='-L$libdir' 11570 allow_undefined_flag_CXX=unsupported 11571 always_export_symbols_CXX=no 11572 enable_shared_with_static_runtimes_CXX=yes 11573 11574 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11575 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' 11576 # If the export-symbols file already is a .def file (1st line 11577 # is EXPORTS), use it as is; otherwise, prepend... 11578 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11579 cp $export_symbols $output_objdir/$soname.def; 11580 else 11581 echo EXPORTS > $output_objdir/$soname.def; 11582 cat $export_symbols >> $output_objdir/$soname.def; 11583 fi~ 11584 $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' 11585 else 11586 ld_shlibs_CXX=no 11587 fi 11588 ;; 11589 darwin* | rhapsody*) 11590 case $host_os in 11591 rhapsody* | darwin1.[012]) 11592 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11593 ;; 11594 *) # Darwin 1.3 on 11595 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11596 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11597 else 11598 case ${MACOSX_DEPLOYMENT_TARGET} in 11599 10.[012]) 11600 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11601 ;; 11602 10.*) 11603 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11604 ;; 11605 esac 11606 fi 11607 ;; 11608 esac 11609 archive_cmds_need_lc_CXX=no 11610 hardcode_direct_CXX=no 11611 hardcode_automatic_CXX=yes 11612 hardcode_shlibpath_var_CXX=unsupported 11613 whole_archive_flag_spec_CXX='' 11614 link_all_deplibs_CXX=yes 11615 11616 if test "$GXX" = yes ; then 11617 lt_int_apple_cc_single_mod=no 11618 output_verbose_link_cmd='echo' 11619 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11620 lt_int_apple_cc_single_mod=yes 11621 fi 11622 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11623 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11624 else 11625 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' 11626 fi 11627 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11628 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11629 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11630 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11631 else 11632 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11633 fi 11634 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}' 11635 else 11636 case $cc_basename in 11637 xlc*) 11638 output_verbose_link_cmd='echo' 11639 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11640 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11641 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11642 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11643 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}' 11644 ;; 11645 *) 11646 ld_shlibs_CXX=no 11647 ;; 11648 esac 11649 fi 11650 ;; 11651 11652 dgux*) 11653 case $cc_basename in 11654 ec++*) 11655 # FIXME: insert proper C++ library support 11656 ld_shlibs_CXX=no 11657 ;; 11658 ghcx*) 11659 # Green Hills C++ Compiler 11660 # FIXME: insert proper C++ library support 11661 ld_shlibs_CXX=no 11662 ;; 11663 *) 11664 # FIXME: insert proper C++ library support 11665 ld_shlibs_CXX=no 11666 ;; 11667 esac 11668 ;; 11669 freebsd[12]*) 11670 # C++ shared libraries reported to be fairly broken before switch to ELF 11671 ld_shlibs_CXX=no 11672 ;; 11673 freebsd-elf*) 11674 archive_cmds_need_lc_CXX=no 11675 ;; 11676 freebsd* | dragonfly*) 11677 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11678 # conventions 11679 ld_shlibs_CXX=yes 11680 ;; 11681 gnu*) 11682 ;; 11683 hpux9*) 11684 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11685 hardcode_libdir_separator_CXX=: 11686 export_dynamic_flag_spec_CXX='${wl}-E' 11687 hardcode_direct_CXX=yes 11688 hardcode_minus_L_CXX=yes # Not in the search PATH, 11689 # but as the default 11690 # location of the library. 11691 11692 case $cc_basename in 11693 CC*) 11694 # FIXME: insert proper C++ library support 11695 ld_shlibs_CXX=no 11696 ;; 11697 aCC*) 11698 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' 11699 # Commands to make compiler produce verbose output that lists 11700 # what "hidden" libraries, object files and flags are used when 11701 # linking a shared library. 11702 # 11703 # There doesn't appear to be a way to prevent this compiler from 11704 # explicitly linking system object files so we need to strip them 11705 # from the output so that they don't get included in the library 11706 # dependencies. 11707 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' 11708 ;; 11709 *) 11710 if test "$GXX" = yes; then 11711 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' 11712 else 11713 # FIXME: insert proper C++ library support 11714 ld_shlibs_CXX=no 11715 fi 11716 ;; 11717 esac 11718 ;; 11719 hpux10*|hpux11*) 11720 if test $with_gnu_ld = no; then 11721 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11722 hardcode_libdir_separator_CXX=: 11723 11724 case $host_cpu in 11725 hppa*64*|ia64*) 11726 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11727 ;; 11728 *) 11729 export_dynamic_flag_spec_CXX='${wl}-E' 11730 ;; 11731 esac 11732 fi 11733 case $host_cpu in 11734 hppa*64*|ia64*) 11735 hardcode_direct_CXX=no 11736 hardcode_shlibpath_var_CXX=no 11737 ;; 11738 *) 11739 hardcode_direct_CXX=yes 11740 hardcode_minus_L_CXX=yes # Not in the search PATH, 11741 # but as the default 11742 # location of the library. 11743 ;; 11744 esac 11745 11746 case $cc_basename in 11747 CC*) 11748 # FIXME: insert proper C++ library support 11749 ld_shlibs_CXX=no 11750 ;; 11751 aCC*) 11752 case $host_cpu in 11753 hppa*64*) 11754 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11755 ;; 11756 ia64*) 11757 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11758 ;; 11759 *) 11760 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11761 ;; 11762 esac 11763 # Commands to make compiler produce verbose output that lists 11764 # what "hidden" libraries, object files and flags are used when 11765 # linking a shared library. 11766 # 11767 # There doesn't appear to be a way to prevent this compiler from 11768 # explicitly linking system object files so we need to strip them 11769 # from the output so that they don't get included in the library 11770 # dependencies. 11771 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' 11772 ;; 11773 *) 11774 if test "$GXX" = yes; then 11775 if test $with_gnu_ld = no; then 11776 case $host_cpu in 11777 hppa*64*) 11778 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11779 ;; 11780 ia64*) 11781 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11782 ;; 11783 *) 11784 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' 11785 ;; 11786 esac 11787 fi 11788 else 11789 # FIXME: insert proper C++ library support 11790 ld_shlibs_CXX=no 11791 fi 11792 ;; 11793 esac 11794 ;; 11795 interix3*) 11796 hardcode_direct_CXX=no 11797 hardcode_shlibpath_var_CXX=no 11798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11799 export_dynamic_flag_spec_CXX='${wl}-E' 11800 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11801 # Instead, shared libraries are loaded at an image base (0x10000000 by 11802 # default) and relocated if they conflict, which is a slow very memory 11803 # consuming and fragmenting process. To avoid this, we pick a random, 11804 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11805 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11806 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' 11807 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' 11808 ;; 11809 irix5* | irix6*) 11810 case $cc_basename in 11811 CC*) 11812 # SGI C++ 11813 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' 11814 11815 # Archives containing C++ object files must be created using 11816 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11817 # necessary to make sure instantiated templates are included 11818 # in the archive. 11819 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11820 ;; 11821 *) 11822 if test "$GXX" = yes; then 11823 if test "$with_gnu_ld" = no; then 11824 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' 11825 else 11826 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' 11827 fi 11828 fi 11829 link_all_deplibs_CXX=yes 11830 ;; 11831 esac 11832 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11833 hardcode_libdir_separator_CXX=: 11834 ;; 11835 linux* | k*bsd*-gnu) 11836 case $cc_basename in 11837 KCC*) 11838 # Kuck and Associates, Inc. (KAI) C++ Compiler 11839 11840 # KCC will only create a shared library if the output file 11841 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11842 # to its proper name (with version) after linking. 11843 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' 11844 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' 11845 # Commands to make compiler produce verbose output that lists 11846 # what "hidden" libraries, object files and flags are used when 11847 # linking a shared library. 11848 # 11849 # There doesn't appear to be a way to prevent this compiler from 11850 # explicitly linking system object files so we need to strip them 11851 # from the output so that they don't get included in the library 11852 # dependencies. 11853 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' 11854 11855 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11856 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11857 11858 # Archives containing C++ object files must be created using 11859 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11860 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11861 ;; 11862 icpc*) 11863 # Intel C++ 11864 with_gnu_ld=yes 11865 # version 8.0 and above of icpc choke on multiply defined symbols 11866 # if we add $predep_objects and $postdep_objects, however 7.1 and 11867 # earlier do not add the objects themselves. 11868 case `$CC -V 2>&1` in 11869 *"Version 7."*) 11870 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11871 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' 11872 ;; 11873 *) # Version 8.0 or newer 11874 tmp_idyn= 11875 case $host_cpu in 11876 ia64*) tmp_idyn=' -i_dynamic';; 11877 esac 11878 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11879 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' 11880 ;; 11881 esac 11882 archive_cmds_need_lc_CXX=no 11883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11884 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11885 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11886 ;; 11887 pgCC*) 11888 # Portland Group C++ compiler 11889 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11890 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' 11891 11892 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11893 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11894 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' 11895 ;; 11896 cxx*) 11897 # Compaq C++ 11898 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11899 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' 11900 11901 runpath_var=LD_RUN_PATH 11902 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11903 hardcode_libdir_separator_CXX=: 11904 11905 # Commands to make compiler produce verbose output that lists 11906 # what "hidden" libraries, object files and flags are used when 11907 # linking a shared library. 11908 # 11909 # There doesn't appear to be a way to prevent this compiler from 11910 # explicitly linking system object files so we need to strip them 11911 # from the output so that they don't get included in the library 11912 # dependencies. 11913 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' 11914 ;; 11915 esac 11916 ;; 11917 lynxos*) 11918 # FIXME: insert proper C++ library support 11919 ld_shlibs_CXX=no 11920 ;; 11921 m88k*) 11922 # FIXME: insert proper C++ library support 11923 ld_shlibs_CXX=no 11924 ;; 11925 mvs*) 11926 case $cc_basename in 11927 cxx*) 11928 # FIXME: insert proper C++ library support 11929 ld_shlibs_CXX=no 11930 ;; 11931 *) 11932 # FIXME: insert proper C++ library support 11933 ld_shlibs_CXX=no 11934 ;; 11935 esac 11936 ;; 11937 netbsd* | netbsdelf*-gnu) 11938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11939 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11940 wlarc= 11941 hardcode_libdir_flag_spec_CXX='-R$libdir' 11942 hardcode_direct_CXX=yes 11943 hardcode_shlibpath_var_CXX=no 11944 fi 11945 # Workaround some broken pre-1.5 toolchains 11946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11947 ;; 11948 openbsd2*) 11949 # C++ shared libraries are fairly broken 11950 ld_shlibs_CXX=no 11951 ;; 11952 openbsd*) 11953 hardcode_direct_CXX=yes 11954 hardcode_shlibpath_var_CXX=no 11955 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11956 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11957 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11958 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11959 export_dynamic_flag_spec_CXX='${wl}-E' 11960 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11961 fi 11962 output_verbose_link_cmd='echo' 11963 ;; 11964 osf3*) 11965 case $cc_basename in 11966 KCC*) 11967 # Kuck and Associates, Inc. (KAI) C++ Compiler 11968 11969 # KCC will only create a shared library if the output file 11970 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11971 # to its proper name (with version) after linking. 11972 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' 11973 11974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11975 hardcode_libdir_separator_CXX=: 11976 11977 # Archives containing C++ object files must be created using 11978 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11979 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11980 11981 ;; 11982 RCC*) 11983 # Rational C++ 2.4.1 11984 # FIXME: insert proper C++ library support 11985 ld_shlibs_CXX=no 11986 ;; 11987 cxx*) 11988 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11989 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' 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 # 11998 # There doesn't appear to be a way to prevent this compiler from 11999 # explicitly linking system object files so we need to strip them 12000 # from the output so that they don't get included in the library 12001 # dependencies. 12002 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' 12003 ;; 12004 *) 12005 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12006 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12007 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' 12008 12009 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12010 hardcode_libdir_separator_CXX=: 12011 12012 # Commands to make compiler produce verbose output that lists 12013 # what "hidden" libraries, object files and flags are used when 12014 # linking a shared library. 12015 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12016 12017 else 12018 # FIXME: insert proper C++ library support 12019 ld_shlibs_CXX=no 12020 fi 12021 ;; 12022 esac 12023 ;; 12024 osf4* | osf5*) 12025 case $cc_basename in 12026 KCC*) 12027 # Kuck and Associates, Inc. (KAI) C++ Compiler 12028 12029 # KCC will only create a shared library if the output file 12030 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12031 # to its proper name (with version) after linking. 12032 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' 12033 12034 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12035 hardcode_libdir_separator_CXX=: 12036 12037 # Archives containing C++ object files must be created using 12038 # the KAI C++ compiler. 12039 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12040 ;; 12041 RCC*) 12042 # Rational C++ 2.4.1 12043 # FIXME: insert proper C++ library support 12044 ld_shlibs_CXX=no 12045 ;; 12046 cxx*) 12047 allow_undefined_flag_CXX=' -expect_unresolved \*' 12048 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' 12049 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12050 echo "-hidden">> $lib.exp~ 12051 $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~ 12052 $rm $lib.exp' 12053 12054 hardcode_libdir_flag_spec_CXX='-rpath $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 # 12061 # There doesn't appear to be a way to prevent this compiler from 12062 # explicitly linking system object files so we need to strip them 12063 # from the output so that they don't get included in the library 12064 # dependencies. 12065 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' 12066 ;; 12067 *) 12068 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12069 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12070 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' 12071 12072 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12073 hardcode_libdir_separator_CXX=: 12074 12075 # Commands to make compiler produce verbose output that lists 12076 # what "hidden" libraries, object files and flags are used when 12077 # linking a shared library. 12078 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12079 12080 else 12081 # FIXME: insert proper C++ library support 12082 ld_shlibs_CXX=no 12083 fi 12084 ;; 12085 esac 12086 ;; 12087 psos*) 12088 # FIXME: insert proper C++ library support 12089 ld_shlibs_CXX=no 12090 ;; 12091 sunos4*) 12092 case $cc_basename in 12093 CC*) 12094 # Sun C++ 4.x 12095 # FIXME: insert proper C++ library support 12096 ld_shlibs_CXX=no 12097 ;; 12098 lcc*) 12099 # Lucid 12100 # FIXME: insert proper C++ library support 12101 ld_shlibs_CXX=no 12102 ;; 12103 *) 12104 # FIXME: insert proper C++ library support 12105 ld_shlibs_CXX=no 12106 ;; 12107 esac 12108 ;; 12109 solaris*) 12110 case $cc_basename in 12111 CC*) 12112 # Sun C++ 4.2, 5.x and Centerline C++ 12113 archive_cmds_need_lc_CXX=yes 12114 no_undefined_flag_CXX=' -zdefs' 12115 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12116 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12117 $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' 12118 12119 hardcode_libdir_flag_spec_CXX='-R$libdir' 12120 hardcode_shlibpath_var_CXX=no 12121 case $host_os in 12122 solaris2.[0-5] | solaris2.[0-5].*) ;; 12123 *) 12124 # The C++ compiler is used as linker so we must use $wl 12125 # flag to pass the commands to the underlying system 12126 # linker. We must also pass each convience library through 12127 # to the system linker between allextract/defaultextract. 12128 # The C++ compiler will combine linker options so we 12129 # cannot just pass the convience library names through 12130 # without $wl. 12131 # Supported since Solaris 2.6 (maybe 2.5.1?) 12132 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 12133 ;; 12134 esac 12135 link_all_deplibs_CXX=yes 12136 12137 output_verbose_link_cmd='echo' 12138 12139 # Archives containing C++ object files must be created using 12140 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12141 # necessary to make sure instantiated templates are included 12142 # in the archive. 12143 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12144 ;; 12145 gcx*) 12146 # Green Hills C++ Compiler 12147 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12148 12149 # The C++ compiler must be used to create the archive. 12150 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12151 ;; 12152 *) 12153 # GNU C++ compiler with Solaris linker 12154 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12155 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12156 if $CC --version | grep -v '^2\.7' > /dev/null; then 12157 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12158 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12159 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12160 12161 # Commands to make compiler produce verbose output that lists 12162 # what "hidden" libraries, object files and flags are used when 12163 # linking a shared library. 12164 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12165 else 12166 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12167 # platform. 12168 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12169 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12170 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12171 12172 # Commands to make compiler produce verbose output that lists 12173 # what "hidden" libraries, object files and flags are used when 12174 # linking a shared library. 12175 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12176 fi 12177 12178 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12179 fi 12180 ;; 12181 esac 12182 ;; 12183 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12184 no_undefined_flag_CXX='${wl}-z,text' 12185 archive_cmds_need_lc_CXX=no 12186 hardcode_shlibpath_var_CXX=no 12187 runpath_var='LD_RUN_PATH' 12188 12189 case $cc_basename in 12190 CC*) 12191 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12192 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12193 ;; 12194 *) 12195 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12196 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12197 ;; 12198 esac 12199 ;; 12200 sysv5* | sco3.2v5* | sco5v6*) 12201 # Note: We can NOT use -z defs as we might desire, because we do not 12202 # link with -lc, and that would cause any symbols used from libc to 12203 # always be unresolved, which means just about no library would 12204 # ever link correctly. If we're not using GNU ld we use -z text 12205 # though, which does catch some bad symbols but isn't as heavy-handed 12206 # as -z defs. 12207 # For security reasons, it is highly recommended that you always 12208 # use absolute paths for naming shared libraries, and exclude the 12209 # DT_RUNPATH tag from executables and libraries. But doing so 12210 # requires that you compile everything twice, which is a pain. 12211 # So that behaviour is only enabled if SCOABSPATH is set to a 12212 # non-empty value in the environment. Most likely only useful for 12213 # creating official distributions of packages. 12214 # This is a hack until libtool officially supports absolute path 12215 # names for shared libraries. 12216 no_undefined_flag_CXX='${wl}-z,text' 12217 allow_undefined_flag_CXX='${wl}-z,nodefs' 12218 archive_cmds_need_lc_CXX=no 12219 hardcode_shlibpath_var_CXX=no 12220 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12221 hardcode_libdir_separator_CXX=':' 12222 link_all_deplibs_CXX=yes 12223 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12224 runpath_var='LD_RUN_PATH' 12225 12226 case $cc_basename in 12227 CC*) 12228 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12229 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12230 ;; 12231 *) 12232 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12233 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12234 ;; 12235 esac 12236 ;; 12237 tandem*) 12238 case $cc_basename in 12239 NCC*) 12240 # NonStop-UX NCC 3.20 12241 # FIXME: insert proper C++ library support 12242 ld_shlibs_CXX=no 12243 ;; 12244 *) 12245 # FIXME: insert proper C++ library support 12246 ld_shlibs_CXX=no 12247 ;; 12248 esac 12249 ;; 12250 vxworks*) 12251 # FIXME: insert proper C++ library support 12252 ld_shlibs_CXX=no 12253 ;; 12254 *) 12255 # FIXME: insert proper C++ library support 12256 ld_shlibs_CXX=no 12257 ;; 12258esac 12259{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12260echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12261test "$ld_shlibs_CXX" = no && can_build_shared=no 12262 12263GCC_CXX="$GXX" 12264LD_CXX="$LD" 12265 12266 12267cat > conftest.$ac_ext <<EOF 12268class Foo 12269{ 12270public: 12271 Foo (void) { a = 0; } 12272private: 12273 int a; 12274}; 12275EOF 12276 12277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12278 (eval $ac_compile) 2>&5 12279 ac_status=$? 12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12281 (exit $ac_status); }; then 12282 # Parse the compiler output and extract the necessary 12283 # objects, libraries and library flags. 12284 12285 # Sentinel used to keep track of whether or not we are before 12286 # the conftest object file. 12287 pre_test_object_deps_done=no 12288 12289 # The `*' in the case matches for architectures that use `case' in 12290 # $output_verbose_cmd can trigger glob expansion during the loop 12291 # eval without this substitution. 12292 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12293 12294 for p in `eval $output_verbose_link_cmd`; do 12295 case $p in 12296 12297 -L* | -R* | -l*) 12298 # Some compilers place space between "-{L,R}" and the path. 12299 # Remove the space. 12300 if test $p = "-L" \ 12301 || test $p = "-R"; then 12302 prev=$p 12303 continue 12304 else 12305 prev= 12306 fi 12307 12308 if test "$pre_test_object_deps_done" = no; then 12309 case $p in 12310 -L* | -R*) 12311 # Internal compiler library paths should come after those 12312 # provided the user. The postdeps already come after the 12313 # user supplied libs so there is no need to process them. 12314 if test -z "$compiler_lib_search_path_CXX"; then 12315 compiler_lib_search_path_CXX="${prev}${p}" 12316 else 12317 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12318 fi 12319 ;; 12320 # The "-l" case would never come before the object being 12321 # linked, so don't bother handling this case. 12322 esac 12323 else 12324 if test -z "$postdeps_CXX"; then 12325 postdeps_CXX="${prev}${p}" 12326 else 12327 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12328 fi 12329 fi 12330 ;; 12331 12332 *.$objext) 12333 # This assumes that the test object file only shows up 12334 # once in the compiler output. 12335 if test "$p" = "conftest.$objext"; then 12336 pre_test_object_deps_done=yes 12337 continue 12338 fi 12339 12340 if test "$pre_test_object_deps_done" = no; then 12341 if test -z "$predep_objects_CXX"; then 12342 predep_objects_CXX="$p" 12343 else 12344 predep_objects_CXX="$predep_objects_CXX $p" 12345 fi 12346 else 12347 if test -z "$postdep_objects_CXX"; then 12348 postdep_objects_CXX="$p" 12349 else 12350 postdep_objects_CXX="$postdep_objects_CXX $p" 12351 fi 12352 fi 12353 ;; 12354 12355 *) ;; # Ignore the rest. 12356 12357 esac 12358 done 12359 12360 # Clean up. 12361 rm -f a.out a.exe 12362else 12363 echo "libtool.m4: error: problem compiling CXX test program" 12364fi 12365 12366$rm -f confest.$objext 12367 12368# PORTME: override above test on systems where it is broken 12369case $host_os in 12370interix3*) 12371 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12372 # hack all around it, let's just trust "g++" to DTRT. 12373 predep_objects_CXX= 12374 postdep_objects_CXX= 12375 postdeps_CXX= 12376 ;; 12377 12378solaris*) 12379 case $cc_basename in 12380 CC*) 12381 # Adding this requires a known-good setup of shared libraries for 12382 # Sun compiler versions before 5.6, else PIC objects from an old 12383 # archive will be linked into the output, leading to subtle bugs. 12384 postdeps_CXX='-lCstd -lCrun' 12385 ;; 12386 esac 12387 ;; 12388esac 12389 12390 12391case " $postdeps_CXX " in 12392*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12393esac 12394 12395lt_prog_compiler_wl_CXX= 12396lt_prog_compiler_pic_CXX= 12397lt_prog_compiler_static_CXX= 12398 12399{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12400echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12401 12402 # C++ specific cases for pic, static, wl, etc. 12403 if test "$GXX" = yes; then 12404 lt_prog_compiler_wl_CXX='-Wl,' 12405 lt_prog_compiler_static_CXX='-static' 12406 12407 case $host_os in 12408 aix*) 12409 # All AIX code is PIC. 12410 if test "$host_cpu" = ia64; then 12411 # AIX 5 now supports IA64 processor 12412 lt_prog_compiler_static_CXX='-Bstatic' 12413 fi 12414 ;; 12415 amigaos*) 12416 # FIXME: we need at least 68020 code to build shared libraries, but 12417 # adding the `-m68020' flag to GCC prevents building anything better, 12418 # like `-m68040'. 12419 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12420 ;; 12421 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12422 # PIC is the default for these OSes. 12423 ;; 12424 mingw* | os2* | pw32*) 12425 # This hack is so that the source file can tell whether it is being 12426 # built for inclusion in a dll (and should export symbols for example). 12427 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12428 ;; 12429 darwin* | rhapsody*) 12430 # PIC is the default on this platform 12431 # Common symbols not allowed in MH_DYLIB files 12432 lt_prog_compiler_pic_CXX='-fno-common' 12433 ;; 12434 *djgpp*) 12435 # DJGPP does not support shared libraries at all 12436 lt_prog_compiler_pic_CXX= 12437 ;; 12438 interix3*) 12439 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12440 # Instead, we relocate shared libraries at runtime. 12441 ;; 12442 sysv4*MP*) 12443 if test -d /usr/nec; then 12444 lt_prog_compiler_pic_CXX=-Kconform_pic 12445 fi 12446 ;; 12447 hpux*) 12448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12449 # not for PA HP-UX. 12450 case $host_cpu in 12451 hppa*64*|ia64*) 12452 ;; 12453 *) 12454 lt_prog_compiler_pic_CXX='-fPIC' 12455 ;; 12456 esac 12457 ;; 12458 *) 12459 lt_prog_compiler_pic_CXX='-fPIC' 12460 ;; 12461 esac 12462 else 12463 case $host_os in 12464 aix4* | aix5*) 12465 # All AIX code is PIC. 12466 if test "$host_cpu" = ia64; then 12467 # AIX 5 now supports IA64 processor 12468 lt_prog_compiler_static_CXX='-Bstatic' 12469 else 12470 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12471 fi 12472 ;; 12473 chorus*) 12474 case $cc_basename in 12475 cxch68*) 12476 # Green Hills C++ Compiler 12477 # _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" 12478 ;; 12479 esac 12480 ;; 12481 darwin*) 12482 # PIC is the default on this platform 12483 # Common symbols not allowed in MH_DYLIB files 12484 case $cc_basename in 12485 xlc*) 12486 lt_prog_compiler_pic_CXX='-qnocommon' 12487 lt_prog_compiler_wl_CXX='-Wl,' 12488 ;; 12489 esac 12490 ;; 12491 dgux*) 12492 case $cc_basename in 12493 ec++*) 12494 lt_prog_compiler_pic_CXX='-KPIC' 12495 ;; 12496 ghcx*) 12497 # Green Hills C++ Compiler 12498 lt_prog_compiler_pic_CXX='-pic' 12499 ;; 12500 *) 12501 ;; 12502 esac 12503 ;; 12504 freebsd* | dragonfly*) 12505 # FreeBSD uses GNU C++ 12506 ;; 12507 hpux9* | hpux10* | hpux11*) 12508 case $cc_basename in 12509 CC*) 12510 lt_prog_compiler_wl_CXX='-Wl,' 12511 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12512 if test "$host_cpu" != ia64; then 12513 lt_prog_compiler_pic_CXX='+Z' 12514 fi 12515 ;; 12516 aCC*) 12517 lt_prog_compiler_wl_CXX='-Wl,' 12518 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12519 case $host_cpu in 12520 hppa*64*|ia64*) 12521 # +Z the default 12522 ;; 12523 *) 12524 lt_prog_compiler_pic_CXX='+Z' 12525 ;; 12526 esac 12527 ;; 12528 *) 12529 ;; 12530 esac 12531 ;; 12532 interix*) 12533 # This is c89, which is MS Visual C++ (no shared libs) 12534 # Anyone wants to do a port? 12535 ;; 12536 irix5* | irix6* | nonstopux*) 12537 case $cc_basename in 12538 CC*) 12539 lt_prog_compiler_wl_CXX='-Wl,' 12540 lt_prog_compiler_static_CXX='-non_shared' 12541 # CC pic flag -KPIC is the default. 12542 ;; 12543 *) 12544 ;; 12545 esac 12546 ;; 12547 linux* | k*bsd*-gnu) 12548 case $cc_basename in 12549 KCC*) 12550 # KAI C++ Compiler 12551 lt_prog_compiler_wl_CXX='--backend -Wl,' 12552 lt_prog_compiler_pic_CXX='-fPIC' 12553 ;; 12554 icpc* | ecpc*) 12555 # Intel C++ 12556 lt_prog_compiler_wl_CXX='-Wl,' 12557 lt_prog_compiler_pic_CXX='-KPIC' 12558 lt_prog_compiler_static_CXX='-static' 12559 ;; 12560 pgCC*) 12561 # Portland Group C++ compiler. 12562 lt_prog_compiler_wl_CXX='-Wl,' 12563 lt_prog_compiler_pic_CXX='-fpic' 12564 lt_prog_compiler_static_CXX='-Bstatic' 12565 ;; 12566 cxx*) 12567 # Compaq C++ 12568 # Make sure the PIC flag is empty. It appears that all Alpha 12569 # Linux and Compaq Tru64 Unix objects are PIC. 12570 lt_prog_compiler_pic_CXX= 12571 lt_prog_compiler_static_CXX='-non_shared' 12572 ;; 12573 *) 12574 ;; 12575 esac 12576 ;; 12577 lynxos*) 12578 ;; 12579 m88k*) 12580 ;; 12581 mvs*) 12582 case $cc_basename in 12583 cxx*) 12584 lt_prog_compiler_pic_CXX='-W c,exportall' 12585 ;; 12586 *) 12587 ;; 12588 esac 12589 ;; 12590 netbsd* | netbsdelf*-gnu) 12591 ;; 12592 osf3* | osf4* | osf5*) 12593 case $cc_basename in 12594 KCC*) 12595 lt_prog_compiler_wl_CXX='--backend -Wl,' 12596 ;; 12597 RCC*) 12598 # Rational C++ 2.4.1 12599 lt_prog_compiler_pic_CXX='-pic' 12600 ;; 12601 cxx*) 12602 # Digital/Compaq C++ 12603 lt_prog_compiler_wl_CXX='-Wl,' 12604 # Make sure the PIC flag is empty. It appears that all Alpha 12605 # Linux and Compaq Tru64 Unix objects are PIC. 12606 lt_prog_compiler_pic_CXX= 12607 lt_prog_compiler_static_CXX='-non_shared' 12608 ;; 12609 *) 12610 ;; 12611 esac 12612 ;; 12613 psos*) 12614 ;; 12615 solaris*) 12616 case $cc_basename in 12617 CC*) 12618 # Sun C++ 4.2, 5.x and Centerline C++ 12619 lt_prog_compiler_pic_CXX='-KPIC' 12620 lt_prog_compiler_static_CXX='-Bstatic' 12621 lt_prog_compiler_wl_CXX='-Qoption ld ' 12622 ;; 12623 gcx*) 12624 # Green Hills C++ Compiler 12625 lt_prog_compiler_pic_CXX='-PIC' 12626 ;; 12627 *) 12628 ;; 12629 esac 12630 ;; 12631 sunos4*) 12632 case $cc_basename in 12633 CC*) 12634 # Sun C++ 4.x 12635 lt_prog_compiler_pic_CXX='-pic' 12636 lt_prog_compiler_static_CXX='-Bstatic' 12637 ;; 12638 lcc*) 12639 # Lucid 12640 lt_prog_compiler_pic_CXX='-pic' 12641 ;; 12642 *) 12643 ;; 12644 esac 12645 ;; 12646 tandem*) 12647 case $cc_basename in 12648 NCC*) 12649 # NonStop-UX NCC 3.20 12650 lt_prog_compiler_pic_CXX='-KPIC' 12651 ;; 12652 *) 12653 ;; 12654 esac 12655 ;; 12656 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12657 case $cc_basename in 12658 CC*) 12659 lt_prog_compiler_wl_CXX='-Wl,' 12660 lt_prog_compiler_pic_CXX='-KPIC' 12661 lt_prog_compiler_static_CXX='-Bstatic' 12662 ;; 12663 esac 12664 ;; 12665 vxworks*) 12666 ;; 12667 *) 12668 lt_prog_compiler_can_build_shared_CXX=no 12669 ;; 12670 esac 12671 fi 12672 12673{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12674echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12675 12676# 12677# Check to make sure the PIC flag actually works. 12678# 12679if test -n "$lt_prog_compiler_pic_CXX"; then 12680 12681{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12682echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12683if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12684 echo $ECHO_N "(cached) $ECHO_C" >&6 12685else 12686 lt_prog_compiler_pic_works_CXX=no 12687 ac_outfile=conftest.$ac_objext 12688 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12689 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12690 # Insert the option either (1) after the last *FLAGS variable, or 12691 # (2) before a word containing "conftest.", or (3) at the end. 12692 # Note that $ac_compile itself does not contain backslashes and begins 12693 # with a dollar sign (not a hyphen), so the echo should work correctly. 12694 # The option is referenced via a variable to avoid confusing sed. 12695 lt_compile=`echo "$ac_compile" | $SED \ 12696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12698 -e 's:$: $lt_compiler_flag:'` 12699 (eval echo "\"\$as_me:12699: $lt_compile\"" >&5) 12700 (eval "$lt_compile" 2>conftest.err) 12701 ac_status=$? 12702 cat conftest.err >&5 12703 echo "$as_me:12703: \$? = $ac_status" >&5 12704 if (exit $ac_status) && test -s "$ac_outfile"; then 12705 # The compiler can only warn and ignore the option if not recognized 12706 # So say no if there are warnings other than the usual output. 12707 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12710 lt_prog_compiler_pic_works_CXX=yes 12711 fi 12712 fi 12713 $rm conftest* 12714 12715fi 12716{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12717echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12718 12719if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12720 case $lt_prog_compiler_pic_CXX in 12721 "" | " "*) ;; 12722 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12723 esac 12724else 12725 lt_prog_compiler_pic_CXX= 12726 lt_prog_compiler_can_build_shared_CXX=no 12727fi 12728 12729fi 12730case $host_os in 12731 # For platforms which do not support PIC, -DPIC is meaningless: 12732 *djgpp*) 12733 lt_prog_compiler_pic_CXX= 12734 ;; 12735 *) 12736 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12737 ;; 12738esac 12739 12740# 12741# Check to make sure the static flag actually works. 12742# 12743wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12744{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12745echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12746if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12747 echo $ECHO_N "(cached) $ECHO_C" >&6 12748else 12749 lt_prog_compiler_static_works_CXX=no 12750 save_LDFLAGS="$LDFLAGS" 12751 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12752 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12753 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12754 # The linker can only warn and ignore the option if not recognized 12755 # So say no if there are warnings 12756 if test -s conftest.err; then 12757 # Append any errors to the config.log. 12758 cat conftest.err 1>&5 12759 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12761 if diff conftest.exp conftest.er2 >/dev/null; then 12762 lt_prog_compiler_static_works_CXX=yes 12763 fi 12764 else 12765 lt_prog_compiler_static_works_CXX=yes 12766 fi 12767 fi 12768 $rm conftest* 12769 LDFLAGS="$save_LDFLAGS" 12770 12771fi 12772{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12773echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12774 12775if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12776 : 12777else 12778 lt_prog_compiler_static_CXX= 12779fi 12780 12781 12782{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12783echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12784if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12785 echo $ECHO_N "(cached) $ECHO_C" >&6 12786else 12787 lt_cv_prog_compiler_c_o_CXX=no 12788 $rm -r conftest 2>/dev/null 12789 mkdir conftest 12790 cd conftest 12791 mkdir out 12792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12793 12794 lt_compiler_flag="-o out/conftest2.$ac_objext" 12795 # Insert the option either (1) after the last *FLAGS variable, or 12796 # (2) before a word containing "conftest.", or (3) at the end. 12797 # Note that $ac_compile itself does not contain backslashes and begins 12798 # with a dollar sign (not a hyphen), so the echo should work correctly. 12799 lt_compile=`echo "$ac_compile" | $SED \ 12800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12802 -e 's:$: $lt_compiler_flag:'` 12803 (eval echo "\"\$as_me:12803: $lt_compile\"" >&5) 12804 (eval "$lt_compile" 2>out/conftest.err) 12805 ac_status=$? 12806 cat out/conftest.err >&5 12807 echo "$as_me:12807: \$? = $ac_status" >&5 12808 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12809 then 12810 # The compiler can only warn and ignore the option if not recognized 12811 # So say no if there are warnings 12812 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12813 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12814 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12815 lt_cv_prog_compiler_c_o_CXX=yes 12816 fi 12817 fi 12818 chmod u+w . 2>&5 12819 $rm conftest* 12820 # SGI C++ compiler will create directory out/ii_files/ for 12821 # template instantiation 12822 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12823 $rm out/* && rmdir out 12824 cd .. 12825 rmdir conftest 12826 $rm conftest* 12827 12828fi 12829{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12830echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12831 12832 12833hard_links="nottested" 12834if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12835 # do not overwrite the value of need_locks provided by the user 12836 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12837echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12838 hard_links=yes 12839 $rm conftest* 12840 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12841 touch conftest.a 12842 ln conftest.a conftest.b 2>&5 || hard_links=no 12843 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12844 { echo "$as_me:$LINENO: result: $hard_links" >&5 12845echo "${ECHO_T}$hard_links" >&6; } 12846 if test "$hard_links" = no; then 12847 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12848echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12849 need_locks=warn 12850 fi 12851else 12852 need_locks=no 12853fi 12854 12855{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12856echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12857 12858 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12859 case $host_os in 12860 aix4* | aix5*) 12861 # If we're using GNU nm, then we don't want the "-C" option. 12862 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12863 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12864 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' 12865 else 12866 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' 12867 fi 12868 ;; 12869 pw32*) 12870 export_symbols_cmds_CXX="$ltdll_cmds" 12871 ;; 12872 cygwin* | mingw*) 12873 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' 12874 ;; 12875 linux* | k*bsd*-gnu) 12876 link_all_deplibs_CXX=no 12877 ;; 12878 *) 12879 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12880 ;; 12881 esac 12882 12883{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12884echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12885test "$ld_shlibs_CXX" = no && can_build_shared=no 12886 12887# 12888# Do we need to explicitly link libc? 12889# 12890case "x$archive_cmds_need_lc_CXX" in 12891x|xyes) 12892 # Assume -lc should be added 12893 archive_cmds_need_lc_CXX=yes 12894 12895 if test "$enable_shared" = yes && test "$GCC" = yes; then 12896 case $archive_cmds_CXX in 12897 *'~'*) 12898 # FIXME: we may have to deal with multi-command sequences. 12899 ;; 12900 '$CC '*) 12901 # Test whether the compiler implicitly links with -lc since on some 12902 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12903 # to ld, don't add -lc before -lgcc. 12904 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12905echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12906 $rm conftest* 12907 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12908 12909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12910 (eval $ac_compile) 2>&5 12911 ac_status=$? 12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12913 (exit $ac_status); } 2>conftest.err; then 12914 soname=conftest 12915 lib=conftest 12916 libobjs=conftest.$ac_objext 12917 deplibs= 12918 wl=$lt_prog_compiler_wl_CXX 12919 pic_flag=$lt_prog_compiler_pic_CXX 12920 compiler_flags=-v 12921 linker_flags=-v 12922 verstring= 12923 output_objdir=. 12924 libname=conftest 12925 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12926 allow_undefined_flag_CXX= 12927 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12928 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12929 ac_status=$? 12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12931 (exit $ac_status); } 12932 then 12933 archive_cmds_need_lc_CXX=no 12934 else 12935 archive_cmds_need_lc_CXX=yes 12936 fi 12937 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12938 else 12939 cat conftest.err 1>&5 12940 fi 12941 $rm conftest* 12942 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12943echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12944 ;; 12945 esac 12946 fi 12947 ;; 12948esac 12949 12950{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12951echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12952library_names_spec= 12953libname_spec='lib$name' 12954soname_spec= 12955shrext_cmds=".so" 12956postinstall_cmds= 12957postuninstall_cmds= 12958finish_cmds= 12959finish_eval= 12960shlibpath_var= 12961shlibpath_overrides_runpath=unknown 12962version_type=none 12963dynamic_linker="$host_os ld.so" 12964sys_lib_dlsearch_path_spec="/lib /usr/lib" 12965if test "$GCC" = yes; then 12966 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12967 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12968 # if the path contains ";" then we assume it to be the separator 12969 # otherwise default to the standard path separator (i.e. ":") - it is 12970 # assumed that no part of a normal pathname contains ";" but that should 12971 # okay in the real world where ";" in dirpaths is itself problematic. 12972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12973 else 12974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12975 fi 12976else 12977 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12978fi 12979need_lib_prefix=unknown 12980hardcode_into_libs=no 12981 12982# when you set need_version to no, make sure it does not cause -set_version 12983# flags to be left without arguments 12984need_version=unknown 12985 12986case $host_os in 12987aix3*) 12988 version_type=linux 12989 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12990 shlibpath_var=LIBPATH 12991 12992 # AIX 3 has no versioning support, so we append a major version to the name. 12993 soname_spec='${libname}${release}${shared_ext}$major' 12994 ;; 12995 12996aix4* | aix5*) 12997 version_type=linux 12998 need_lib_prefix=no 12999 need_version=no 13000 hardcode_into_libs=yes 13001 if test "$host_cpu" = ia64; then 13002 # AIX 5 supports IA64 13003 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13004 shlibpath_var=LD_LIBRARY_PATH 13005 else 13006 # With GCC up to 2.95.x, collect2 would create an import file 13007 # for dependence libraries. The import file would start with 13008 # the line `#! .'. This would cause the generated library to 13009 # depend on `.', always an invalid library. This was fixed in 13010 # development snapshots of GCC prior to 3.0. 13011 case $host_os in 13012 aix4 | aix4.[01] | aix4.[01].*) 13013 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13014 echo ' yes ' 13015 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13016 : 13017 else 13018 can_build_shared=no 13019 fi 13020 ;; 13021 esac 13022 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13023 # soname into executable. Probably we can add versioning support to 13024 # collect2, so additional links can be useful in future. 13025 if test "$aix_use_runtimelinking" = yes; then 13026 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13027 # instead of lib<name>.a to let people know that these are not 13028 # typical AIX shared libraries. 13029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13030 else 13031 # We preserve .a as extension for shared libraries through AIX4.2 13032 # and later when we are not doing run time linking. 13033 library_names_spec='${libname}${release}.a $libname.a' 13034 soname_spec='${libname}${release}${shared_ext}$major' 13035 fi 13036 shlibpath_var=LIBPATH 13037 fi 13038 ;; 13039 13040amigaos*) 13041 library_names_spec='$libname.ixlibrary $libname.a' 13042 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13043 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' 13044 ;; 13045 13046beos*) 13047 library_names_spec='${libname}${shared_ext}' 13048 dynamic_linker="$host_os ld.so" 13049 shlibpath_var=LIBRARY_PATH 13050 ;; 13051 13052bsdi[45]*) 13053 version_type=linux 13054 need_version=no 13055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13056 soname_spec='${libname}${release}${shared_ext}$major' 13057 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13058 shlibpath_var=LD_LIBRARY_PATH 13059 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13060 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13061 # the default ld.so.conf also contains /usr/contrib/lib and 13062 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13063 # libtool to hard-code these into programs 13064 ;; 13065 13066cygwin* | mingw* | pw32*) 13067 version_type=windows 13068 shrext_cmds=".dll" 13069 need_version=no 13070 need_lib_prefix=no 13071 13072 case $GCC,$host_os in 13073 yes,cygwin* | yes,mingw* | yes,pw32*) 13074 library_names_spec='$libname.dll.a' 13075 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13076 postinstall_cmds='base_file=`basename \${file}`~ 13077 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13078 dldir=$destdir/`dirname \$dlpath`~ 13079 test -d \$dldir || mkdir -p \$dldir~ 13080 $install_prog $dir/$dlname \$dldir/$dlname~ 13081 chmod a+x \$dldir/$dlname' 13082 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13083 dlpath=$dir/\$dldll~ 13084 $rm \$dlpath' 13085 shlibpath_overrides_runpath=yes 13086 13087 case $host_os in 13088 cygwin*) 13089 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13090 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13091 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13092 ;; 13093 mingw*) 13094 # MinGW DLLs use traditional 'lib' prefix 13095 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13096 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13097 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13098 # It is most probably a Windows format PATH printed by 13099 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13100 # path with ; separators, and with drive letters. We can handle the 13101 # drive letters (cygwin fileutils understands them), so leave them, 13102 # especially as we might pass files found there to a mingw objdump, 13103 # which wouldn't understand a cygwinified path. Ahh. 13104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13105 else 13106 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13107 fi 13108 ;; 13109 pw32*) 13110 # pw32 DLLs use 'pw' prefix rather than 'lib' 13111 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13112 ;; 13113 esac 13114 ;; 13115 13116 *) 13117 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13118 ;; 13119 esac 13120 dynamic_linker='Win32 ld.exe' 13121 # FIXME: first we should search . and the directory the executable is in 13122 shlibpath_var=PATH 13123 ;; 13124 13125darwin* | rhapsody*) 13126 dynamic_linker="$host_os dyld" 13127 version_type=darwin 13128 need_lib_prefix=no 13129 need_version=no 13130 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13131 soname_spec='${libname}${release}${major}$shared_ext' 13132 shlibpath_overrides_runpath=yes 13133 shlibpath_var=DYLD_LIBRARY_PATH 13134 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13135 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13136 if test "$GCC" = yes; then 13137 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 13138 else 13139 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13140 fi 13141 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13142 ;; 13143 13144dgux*) 13145 version_type=linux 13146 need_lib_prefix=no 13147 need_version=no 13148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13149 soname_spec='${libname}${release}${shared_ext}$major' 13150 shlibpath_var=LD_LIBRARY_PATH 13151 ;; 13152 13153freebsd1*) 13154 dynamic_linker=no 13155 ;; 13156 13157freebsd* | dragonfly*) 13158 # DragonFly does not have aout. When/if they implement a new 13159 # versioning mechanism, adjust this. 13160 if test -x /usr/bin/objformat; then 13161 objformat=`/usr/bin/objformat` 13162 else 13163 case $host_os in 13164 freebsd[123]*) objformat=aout ;; 13165 *) objformat=elf ;; 13166 esac 13167 fi 13168 version_type=freebsd-$objformat 13169 case $version_type in 13170 freebsd-elf*) 13171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13172 need_version=no 13173 need_lib_prefix=no 13174 ;; 13175 freebsd-*) 13176 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13177 need_version=yes 13178 ;; 13179 esac 13180 shlibpath_var=LD_LIBRARY_PATH 13181 case $host_os in 13182 freebsd2*) 13183 shlibpath_overrides_runpath=yes 13184 ;; 13185 freebsd3.[01]* | freebsdelf3.[01]*) 13186 shlibpath_overrides_runpath=yes 13187 hardcode_into_libs=yes 13188 ;; 13189 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13190 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13191 shlibpath_overrides_runpath=no 13192 hardcode_into_libs=yes 13193 ;; 13194 freebsd*) # from 4.6 on 13195 shlibpath_overrides_runpath=yes 13196 hardcode_into_libs=yes 13197 ;; 13198 esac 13199 ;; 13200 13201gnu*) 13202 version_type=linux 13203 need_lib_prefix=no 13204 need_version=no 13205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13206 soname_spec='${libname}${release}${shared_ext}$major' 13207 shlibpath_var=LD_LIBRARY_PATH 13208 hardcode_into_libs=yes 13209 ;; 13210 13211hpux9* | hpux10* | hpux11*) 13212 # Give a soname corresponding to the major version so that dld.sl refuses to 13213 # link against other versions. 13214 version_type=sunos 13215 need_lib_prefix=no 13216 need_version=no 13217 case $host_cpu in 13218 ia64*) 13219 shrext_cmds='.so' 13220 hardcode_into_libs=yes 13221 dynamic_linker="$host_os dld.so" 13222 shlibpath_var=LD_LIBRARY_PATH 13223 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13225 soname_spec='${libname}${release}${shared_ext}$major' 13226 if test "X$HPUX_IA64_MODE" = X32; then 13227 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13228 else 13229 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13230 fi 13231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13232 ;; 13233 hppa*64*) 13234 shrext_cmds='.sl' 13235 hardcode_into_libs=yes 13236 dynamic_linker="$host_os dld.sl" 13237 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13238 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13240 soname_spec='${libname}${release}${shared_ext}$major' 13241 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13242 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13243 ;; 13244 *) 13245 shrext_cmds='.sl' 13246 dynamic_linker="$host_os dld.sl" 13247 shlibpath_var=SHLIB_PATH 13248 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13250 soname_spec='${libname}${release}${shared_ext}$major' 13251 ;; 13252 esac 13253 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13254 postinstall_cmds='chmod 555 $lib' 13255 ;; 13256 13257interix3*) 13258 version_type=linux 13259 need_lib_prefix=no 13260 need_version=no 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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13264 shlibpath_var=LD_LIBRARY_PATH 13265 shlibpath_overrides_runpath=no 13266 hardcode_into_libs=yes 13267 ;; 13268 13269irix5* | irix6* | nonstopux*) 13270 case $host_os in 13271 nonstopux*) version_type=nonstopux ;; 13272 *) 13273 if test "$lt_cv_prog_gnu_ld" = yes; then 13274 version_type=linux 13275 else 13276 version_type=irix 13277 fi ;; 13278 esac 13279 need_lib_prefix=no 13280 need_version=no 13281 soname_spec='${libname}${release}${shared_ext}$major' 13282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13283 case $host_os in 13284 irix5* | nonstopux*) 13285 libsuff= shlibsuff= 13286 ;; 13287 *) 13288 case $LD in # libtool.m4 will add one of these switches to LD 13289 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13290 libsuff= shlibsuff= libmagic=32-bit;; 13291 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13292 libsuff=32 shlibsuff=N32 libmagic=N32;; 13293 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13294 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13295 *) libsuff= shlibsuff= libmagic=never-match;; 13296 esac 13297 ;; 13298 esac 13299 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13300 shlibpath_overrides_runpath=no 13301 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13302 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13303 hardcode_into_libs=yes 13304 ;; 13305 13306# No shared lib support for Linux oldld, aout, or coff. 13307linux*oldld* | linux*aout* | linux*coff*) 13308 dynamic_linker=no 13309 ;; 13310 13311# This must be Linux ELF. 13312linux* | k*bsd*-gnu) 13313 version_type=linux 13314 need_lib_prefix=no 13315 need_version=no 13316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13317 soname_spec='${libname}${release}${shared_ext}$major' 13318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13319 shlibpath_var=LD_LIBRARY_PATH 13320 shlibpath_overrides_runpath=no 13321 # This implies no fast_install, which is unacceptable. 13322 # Some rework will be needed to allow for fast_install 13323 # before this can be enabled. 13324 hardcode_into_libs=yes 13325 13326 # Append ld.so.conf contents to the search path 13327 if test -f /etc/ld.so.conf; then 13328 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13329 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13330 fi 13331 13332 # We used to test for /lib/ld.so.1 and disable shared libraries on 13333 # powerpc, because MkLinux only supported shared libraries with the 13334 # GNU dynamic linker. Since this was broken with cross compilers, 13335 # most powerpc-linux boxes support dynamic linking these days and 13336 # people can always --disable-shared, the test was removed, and we 13337 # assume the GNU/Linux dynamic linker is in use. 13338 dynamic_linker='GNU/Linux ld.so' 13339 ;; 13340 13341netbsdelf*-gnu) 13342 version_type=linux 13343 need_lib_prefix=no 13344 need_version=no 13345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13346 soname_spec='${libname}${release}${shared_ext}$major' 13347 shlibpath_var=LD_LIBRARY_PATH 13348 shlibpath_overrides_runpath=no 13349 hardcode_into_libs=yes 13350 dynamic_linker='NetBSD ld.elf_so' 13351 ;; 13352 13353netbsd*) 13354 version_type=sunos 13355 need_lib_prefix=no 13356 need_version=no 13357 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13360 dynamic_linker='NetBSD (a.out) ld.so' 13361 else 13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13363 soname_spec='${libname}${release}${shared_ext}$major' 13364 dynamic_linker='NetBSD ld.elf_so' 13365 fi 13366 shlibpath_var=LD_LIBRARY_PATH 13367 shlibpath_overrides_runpath=yes 13368 hardcode_into_libs=yes 13369 ;; 13370 13371newsos6) 13372 version_type=linux 13373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13374 shlibpath_var=LD_LIBRARY_PATH 13375 shlibpath_overrides_runpath=yes 13376 ;; 13377 13378nto-qnx*) 13379 version_type=linux 13380 need_lib_prefix=no 13381 need_version=no 13382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13383 soname_spec='${libname}${release}${shared_ext}$major' 13384 shlibpath_var=LD_LIBRARY_PATH 13385 shlibpath_overrides_runpath=yes 13386 ;; 13387 13388openbsd*) 13389 version_type=sunos 13390 sys_lib_dlsearch_path_spec="/usr/lib" 13391 need_lib_prefix=no 13392 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13393 case $host_os in 13394 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13395 *) need_version=no ;; 13396 esac 13397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13399 shlibpath_var=LD_LIBRARY_PATH 13400 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13401 case $host_os in 13402 openbsd2.[89] | openbsd2.[89].*) 13403 shlibpath_overrides_runpath=no 13404 ;; 13405 *) 13406 shlibpath_overrides_runpath=yes 13407 ;; 13408 esac 13409 else 13410 shlibpath_overrides_runpath=yes 13411 fi 13412 ;; 13413 13414os2*) 13415 libname_spec='$name' 13416 shrext_cmds=".dll" 13417 need_lib_prefix=no 13418 library_names_spec='$libname${shared_ext} $libname.a' 13419 dynamic_linker='OS/2 ld.exe' 13420 shlibpath_var=LIBPATH 13421 ;; 13422 13423osf3* | osf4* | osf5*) 13424 version_type=osf 13425 need_lib_prefix=no 13426 need_version=no 13427 soname_spec='${libname}${release}${shared_ext}$major' 13428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13429 shlibpath_var=LD_LIBRARY_PATH 13430 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13431 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13432 ;; 13433 13434solaris*) 13435 version_type=linux 13436 need_lib_prefix=no 13437 need_version=no 13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13439 soname_spec='${libname}${release}${shared_ext}$major' 13440 shlibpath_var=LD_LIBRARY_PATH 13441 shlibpath_overrides_runpath=yes 13442 hardcode_into_libs=yes 13443 # ldd complains unless libraries are executable 13444 postinstall_cmds='chmod +x $lib' 13445 ;; 13446 13447sunos4*) 13448 version_type=sunos 13449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13450 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13451 shlibpath_var=LD_LIBRARY_PATH 13452 shlibpath_overrides_runpath=yes 13453 if test "$with_gnu_ld" = yes; then 13454 need_lib_prefix=no 13455 fi 13456 need_version=yes 13457 ;; 13458 13459sysv4 | sysv4.3*) 13460 version_type=linux 13461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13462 soname_spec='${libname}${release}${shared_ext}$major' 13463 shlibpath_var=LD_LIBRARY_PATH 13464 case $host_vendor in 13465 sni) 13466 shlibpath_overrides_runpath=no 13467 need_lib_prefix=no 13468 export_dynamic_flag_spec='${wl}-Blargedynsym' 13469 runpath_var=LD_RUN_PATH 13470 ;; 13471 siemens) 13472 need_lib_prefix=no 13473 ;; 13474 motorola) 13475 need_lib_prefix=no 13476 need_version=no 13477 shlibpath_overrides_runpath=no 13478 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13479 ;; 13480 esac 13481 ;; 13482 13483sysv4*MP*) 13484 if test -d /usr/nec ;then 13485 version_type=linux 13486 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13487 soname_spec='$libname${shared_ext}.$major' 13488 shlibpath_var=LD_LIBRARY_PATH 13489 fi 13490 ;; 13491 13492sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13493 version_type=freebsd-elf 13494 need_lib_prefix=no 13495 need_version=no 13496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13497 soname_spec='${libname}${release}${shared_ext}$major' 13498 shlibpath_var=LD_LIBRARY_PATH 13499 hardcode_into_libs=yes 13500 if test "$with_gnu_ld" = yes; then 13501 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13502 shlibpath_overrides_runpath=no 13503 else 13504 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13505 shlibpath_overrides_runpath=yes 13506 case $host_os in 13507 sco3.2v5*) 13508 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13509 ;; 13510 esac 13511 fi 13512 sys_lib_dlsearch_path_spec='/usr/lib' 13513 ;; 13514 13515uts4*) 13516 version_type=linux 13517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13518 soname_spec='${libname}${release}${shared_ext}$major' 13519 shlibpath_var=LD_LIBRARY_PATH 13520 ;; 13521 13522*) 13523 dynamic_linker=no 13524 ;; 13525esac 13526{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13527echo "${ECHO_T}$dynamic_linker" >&6; } 13528test "$dynamic_linker" = no && can_build_shared=no 13529 13530variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13531if test "$GCC" = yes; then 13532 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13533fi 13534 13535{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13536echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13537hardcode_action_CXX= 13538if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13539 test -n "$runpath_var_CXX" || \ 13540 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13541 13542 # We can hardcode non-existant directories. 13543 if test "$hardcode_direct_CXX" != no && 13544 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13545 # have to relink, otherwise we might link with an installed library 13546 # when we should be linking with a yet-to-be-installed one 13547 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13548 test "$hardcode_minus_L_CXX" != no; then 13549 # Linking always hardcodes the temporary library directory. 13550 hardcode_action_CXX=relink 13551 else 13552 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13553 hardcode_action_CXX=immediate 13554 fi 13555else 13556 # We cannot hardcode anything, or else we can only hardcode existing 13557 # directories. 13558 hardcode_action_CXX=unsupported 13559fi 13560{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13561echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13562 13563if test "$hardcode_action_CXX" = relink; then 13564 # Fast installation is not supported 13565 enable_fast_install=no 13566elif test "$shlibpath_overrides_runpath" = yes || 13567 test "$enable_shared" = no; then 13568 # Fast installation is not necessary 13569 enable_fast_install=needless 13570fi 13571 13572 13573# The else clause should only fire when bootstrapping the 13574# libtool distribution, otherwise you forgot to ship ltmain.sh 13575# with your package, and you will get complaints that there are 13576# no rules to generate ltmain.sh. 13577if test -f "$ltmain"; then 13578 # See if we are running on zsh, and set the options which allow our commands through 13579 # without removal of \ escapes. 13580 if test -n "${ZSH_VERSION+set}" ; then 13581 setopt NO_GLOB_SUBST 13582 fi 13583 # Now quote all the things that may contain metacharacters while being 13584 # careful not to overquote the AC_SUBSTed values. We take copies of the 13585 # variables and quote the copies for generation of the libtool script. 13586 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13587 SED SHELL STRIP \ 13588 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13589 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13590 deplibs_check_method reload_flag reload_cmds need_locks \ 13591 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13592 lt_cv_sys_global_symbol_to_c_name_address \ 13593 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13594 old_postinstall_cmds old_postuninstall_cmds \ 13595 compiler_CXX \ 13596 CC_CXX \ 13597 LD_CXX \ 13598 lt_prog_compiler_wl_CXX \ 13599 lt_prog_compiler_pic_CXX \ 13600 lt_prog_compiler_static_CXX \ 13601 lt_prog_compiler_no_builtin_flag_CXX \ 13602 export_dynamic_flag_spec_CXX \ 13603 thread_safe_flag_spec_CXX \ 13604 whole_archive_flag_spec_CXX \ 13605 enable_shared_with_static_runtimes_CXX \ 13606 old_archive_cmds_CXX \ 13607 old_archive_from_new_cmds_CXX \ 13608 predep_objects_CXX \ 13609 postdep_objects_CXX \ 13610 predeps_CXX \ 13611 postdeps_CXX \ 13612 compiler_lib_search_path_CXX \ 13613 archive_cmds_CXX \ 13614 archive_expsym_cmds_CXX \ 13615 postinstall_cmds_CXX \ 13616 postuninstall_cmds_CXX \ 13617 old_archive_from_expsyms_cmds_CXX \ 13618 allow_undefined_flag_CXX \ 13619 no_undefined_flag_CXX \ 13620 export_symbols_cmds_CXX \ 13621 hardcode_libdir_flag_spec_CXX \ 13622 hardcode_libdir_flag_spec_ld_CXX \ 13623 hardcode_libdir_separator_CXX \ 13624 hardcode_automatic_CXX \ 13625 module_cmds_CXX \ 13626 module_expsym_cmds_CXX \ 13627 lt_cv_prog_compiler_c_o_CXX \ 13628 exclude_expsyms_CXX \ 13629 include_expsyms_CXX; do 13630 13631 case $var in 13632 old_archive_cmds_CXX | \ 13633 old_archive_from_new_cmds_CXX | \ 13634 archive_cmds_CXX | \ 13635 archive_expsym_cmds_CXX | \ 13636 module_cmds_CXX | \ 13637 module_expsym_cmds_CXX | \ 13638 old_archive_from_expsyms_cmds_CXX | \ 13639 export_symbols_cmds_CXX | \ 13640 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13641 postinstall_cmds | postuninstall_cmds | \ 13642 old_postinstall_cmds | old_postuninstall_cmds | \ 13643 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13644 # Double-quote double-evaled strings. 13645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13646 ;; 13647 *) 13648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13649 ;; 13650 esac 13651 done 13652 13653 case $lt_echo in 13654 *'\$0 --fallback-echo"') 13655 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13656 ;; 13657 esac 13658 13659cfgfile="$ofile" 13660 13661 cat <<__EOF__ >> "$cfgfile" 13662# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13663 13664# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13665 13666# Shell to use when invoking shell scripts. 13667SHELL=$lt_SHELL 13668 13669# Whether or not to build shared libraries. 13670build_libtool_libs=$enable_shared 13671 13672# Whether or not to build static libraries. 13673build_old_libs=$enable_static 13674 13675# Whether or not to add -lc for building shared libraries. 13676build_libtool_need_lc=$archive_cmds_need_lc_CXX 13677 13678# Whether or not to disallow shared libs when runtime libs are static 13679allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13680 13681# Whether or not to optimize for fast installation. 13682fast_install=$enable_fast_install 13683 13684# The host system. 13685host_alias=$host_alias 13686host=$host 13687host_os=$host_os 13688 13689# The build system. 13690build_alias=$build_alias 13691build=$build 13692build_os=$build_os 13693 13694# An echo program that does not interpret backslashes. 13695echo=$lt_echo 13696 13697# The archiver. 13698AR=$lt_AR 13699AR_FLAGS=$lt_AR_FLAGS 13700 13701# A C compiler. 13702LTCC=$lt_LTCC 13703 13704# LTCC compiler flags. 13705LTCFLAGS=$lt_LTCFLAGS 13706 13707# A language-specific compiler. 13708CC=$lt_compiler_CXX 13709 13710# Is the compiler the GNU C compiler? 13711with_gcc=$GCC_CXX 13712 13713# An ERE matcher. 13714EGREP=$lt_EGREP 13715 13716# The linker used to build libraries. 13717LD=$lt_LD_CXX 13718 13719# Whether we need hard or soft links. 13720LN_S=$lt_LN_S 13721 13722# A BSD-compatible nm program. 13723NM=$lt_NM 13724 13725# A symbol stripping program 13726STRIP=$lt_STRIP 13727 13728# Used to examine libraries when file_magic_cmd begins "file" 13729MAGIC_CMD=$MAGIC_CMD 13730 13731# Used on cygwin: DLL creation program. 13732DLLTOOL="$DLLTOOL" 13733 13734# Used on cygwin: object dumper. 13735OBJDUMP="$OBJDUMP" 13736 13737# Used on cygwin: assembler. 13738AS="$AS" 13739 13740# The name of the directory that contains temporary libtool files. 13741objdir=$objdir 13742 13743# How to create reloadable object files. 13744reload_flag=$lt_reload_flag 13745reload_cmds=$lt_reload_cmds 13746 13747# How to pass a linker flag through the compiler. 13748wl=$lt_lt_prog_compiler_wl_CXX 13749 13750# Object file suffix (normally "o"). 13751objext="$ac_objext" 13752 13753# Old archive suffix (normally "a"). 13754libext="$libext" 13755 13756# Shared library suffix (normally ".so"). 13757shrext_cmds='$shrext_cmds' 13758 13759# Executable file suffix (normally ""). 13760exeext="$exeext" 13761 13762# Additional compiler flags for building library objects. 13763pic_flag=$lt_lt_prog_compiler_pic_CXX 13764pic_mode=$pic_mode 13765 13766# What is the maximum length of a command? 13767max_cmd_len=$lt_cv_sys_max_cmd_len 13768 13769# Does compiler simultaneously support -c and -o options? 13770compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13771 13772# Must we lock files when doing compilation? 13773need_locks=$lt_need_locks 13774 13775# Do we need the lib prefix for modules? 13776need_lib_prefix=$need_lib_prefix 13777 13778# Do we need a version for libraries? 13779need_version=$need_version 13780 13781# Whether dlopen is supported. 13782dlopen_support=$enable_dlopen 13783 13784# Whether dlopen of programs is supported. 13785dlopen_self=$enable_dlopen_self 13786 13787# Whether dlopen of statically linked programs is supported. 13788dlopen_self_static=$enable_dlopen_self_static 13789 13790# Compiler flag to prevent dynamic linking. 13791link_static_flag=$lt_lt_prog_compiler_static_CXX 13792 13793# Compiler flag to turn off builtin functions. 13794no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13795 13796# Compiler flag to allow reflexive dlopens. 13797export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13798 13799# Compiler flag to generate shared objects directly from archives. 13800whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13801 13802# Compiler flag to generate thread-safe objects. 13803thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13804 13805# Library versioning type. 13806version_type=$version_type 13807 13808# Format of library name prefix. 13809libname_spec=$lt_libname_spec 13810 13811# List of archive names. First name is the real one, the rest are links. 13812# The last name is the one that the linker finds with -lNAME. 13813library_names_spec=$lt_library_names_spec 13814 13815# The coded name of the library, if different from the real name. 13816soname_spec=$lt_soname_spec 13817 13818# Commands used to build and install an old-style archive. 13819RANLIB=$lt_RANLIB 13820old_archive_cmds=$lt_old_archive_cmds_CXX 13821old_postinstall_cmds=$lt_old_postinstall_cmds 13822old_postuninstall_cmds=$lt_old_postuninstall_cmds 13823 13824# Create an old-style archive from a shared archive. 13825old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13826 13827# Create a temporary old-style archive to link instead of a shared archive. 13828old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13829 13830# Commands used to build and install a shared archive. 13831archive_cmds=$lt_archive_cmds_CXX 13832archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13833postinstall_cmds=$lt_postinstall_cmds 13834postuninstall_cmds=$lt_postuninstall_cmds 13835 13836# Commands used to build a loadable module (assumed same as above if empty) 13837module_cmds=$lt_module_cmds_CXX 13838module_expsym_cmds=$lt_module_expsym_cmds_CXX 13839 13840# Commands to strip libraries. 13841old_striplib=$lt_old_striplib 13842striplib=$lt_striplib 13843 13844# Dependencies to place before the objects being linked to create a 13845# shared library. 13846predep_objects=$lt_predep_objects_CXX 13847 13848# Dependencies to place after the objects being linked to create a 13849# shared library. 13850postdep_objects=$lt_postdep_objects_CXX 13851 13852# Dependencies to place before the objects being linked to create a 13853# shared library. 13854predeps=$lt_predeps_CXX 13855 13856# Dependencies to place after the objects being linked to create a 13857# shared library. 13858postdeps=$lt_postdeps_CXX 13859 13860# The library search path used internally by the compiler when linking 13861# a shared library. 13862compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13863 13864# Method to check whether dependent libraries are shared objects. 13865deplibs_check_method=$lt_deplibs_check_method 13866 13867# Command to use when deplibs_check_method == file_magic. 13868file_magic_cmd=$lt_file_magic_cmd 13869 13870# Flag that allows shared libraries with undefined symbols to be built. 13871allow_undefined_flag=$lt_allow_undefined_flag_CXX 13872 13873# Flag that forces no undefined symbols. 13874no_undefined_flag=$lt_no_undefined_flag_CXX 13875 13876# Commands used to finish a libtool library installation in a directory. 13877finish_cmds=$lt_finish_cmds 13878 13879# Same as above, but a single script fragment to be evaled but not shown. 13880finish_eval=$lt_finish_eval 13881 13882# Take the output of nm and produce a listing of raw symbols and C names. 13883global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13884 13885# Transform the output of nm in a proper C declaration 13886global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13887 13888# Transform the output of nm in a C name address pair 13889global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13890 13891# This is the shared library runtime path variable. 13892runpath_var=$runpath_var 13893 13894# This is the shared library path variable. 13895shlibpath_var=$shlibpath_var 13896 13897# Is shlibpath searched before the hard-coded library search path? 13898shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13899 13900# How to hardcode a shared library path into an executable. 13901hardcode_action=$hardcode_action_CXX 13902 13903# Whether we should hardcode library paths into libraries. 13904hardcode_into_libs=$hardcode_into_libs 13905 13906# Flag to hardcode \$libdir into a binary during linking. 13907# This must work even if \$libdir does not exist. 13908hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13909 13910# If ld is used when linking, flag to hardcode \$libdir into 13911# a binary during linking. This must work even if \$libdir does 13912# not exist. 13913hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13914 13915# Whether we need a single -rpath flag with a separated argument. 13916hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13917 13918# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13919# resulting binary. 13920hardcode_direct=$hardcode_direct_CXX 13921 13922# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13923# resulting binary. 13924hardcode_minus_L=$hardcode_minus_L_CXX 13925 13926# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13927# the resulting binary. 13928hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13929 13930# Set to yes if building a shared library automatically hardcodes DIR into the library 13931# and all subsequent libraries and executables linked against it. 13932hardcode_automatic=$hardcode_automatic_CXX 13933 13934# Variables whose values should be saved in libtool wrapper scripts and 13935# restored at relink time. 13936variables_saved_for_relink="$variables_saved_for_relink" 13937 13938# Whether libtool must link a program against all its dependency libraries. 13939link_all_deplibs=$link_all_deplibs_CXX 13940 13941# Compile-time system search path for libraries 13942sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13943 13944# Run-time system search path for libraries 13945sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13946 13947# Fix the shell variable \$srcfile for the compiler. 13948fix_srcfile_path="$fix_srcfile_path_CXX" 13949 13950# Set to yes if exported symbols are required. 13951always_export_symbols=$always_export_symbols_CXX 13952 13953# The commands to list exported symbols. 13954export_symbols_cmds=$lt_export_symbols_cmds_CXX 13955 13956# The commands to extract the exported symbol list from a shared archive. 13957extract_expsyms_cmds=$lt_extract_expsyms_cmds 13958 13959# Symbols that should not be listed in the preloaded symbols. 13960exclude_expsyms=$lt_exclude_expsyms_CXX 13961 13962# Symbols that must always be exported. 13963include_expsyms=$lt_include_expsyms_CXX 13964 13965# ### END LIBTOOL TAG CONFIG: $tagname 13966 13967__EOF__ 13968 13969 13970else 13971 # If there is no Makefile yet, we rely on a make rule to execute 13972 # `config.status --recheck' to rerun these tests and create the 13973 # libtool script then. 13974 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13975 if test -f "$ltmain_in"; then 13976 test -f Makefile && make "$ltmain" 13977 fi 13978fi 13979 13980 13981ac_ext=c 13982ac_cpp='$CPP $CPPFLAGS' 13983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13985ac_compiler_gnu=$ac_cv_c_compiler_gnu 13986 13987CC=$lt_save_CC 13988LDCXX=$LD 13989LD=$lt_save_LD 13990GCC=$lt_save_GCC 13991with_gnu_ldcxx=$with_gnu_ld 13992with_gnu_ld=$lt_save_with_gnu_ld 13993lt_cv_path_LDCXX=$lt_cv_path_LD 13994lt_cv_path_LD=$lt_save_path_LD 13995lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13996lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13997 13998 else 13999 tagname="" 14000 fi 14001 ;; 14002 14003 F77) 14004 if test -n "$F77" && test "X$F77" != "Xno"; then 14005 14006ac_ext=f 14007ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14008ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14009ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14010 14011 14012archive_cmds_need_lc_F77=no 14013allow_undefined_flag_F77= 14014always_export_symbols_F77=no 14015archive_expsym_cmds_F77= 14016export_dynamic_flag_spec_F77= 14017hardcode_direct_F77=no 14018hardcode_libdir_flag_spec_F77= 14019hardcode_libdir_flag_spec_ld_F77= 14020hardcode_libdir_separator_F77= 14021hardcode_minus_L_F77=no 14022hardcode_automatic_F77=no 14023module_cmds_F77= 14024module_expsym_cmds_F77= 14025link_all_deplibs_F77=unknown 14026old_archive_cmds_F77=$old_archive_cmds 14027no_undefined_flag_F77= 14028whole_archive_flag_spec_F77= 14029enable_shared_with_static_runtimes_F77=no 14030 14031# Source file extension for f77 test sources. 14032ac_ext=f 14033 14034# Object file extension for compiled f77 test sources. 14035objext=o 14036objext_F77=$objext 14037 14038# Code to be used in simple compile tests 14039lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14040 14041# Code to be used in simple link tests 14042lt_simple_link_test_code=" program t\n end\n" 14043 14044# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14045 14046# If no C compiler was specified, use CC. 14047LTCC=${LTCC-"$CC"} 14048 14049# If no C compiler flags were specified, use CFLAGS. 14050LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14051 14052# Allow CC to be a program name with arguments. 14053compiler=$CC 14054 14055 14056# save warnings/boilerplate of simple test code 14057ac_outfile=conftest.$ac_objext 14058printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14059eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14060_lt_compiler_boilerplate=`cat conftest.err` 14061$rm conftest* 14062 14063ac_outfile=conftest.$ac_objext 14064printf "$lt_simple_link_test_code" >conftest.$ac_ext 14065eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14066_lt_linker_boilerplate=`cat conftest.err` 14067$rm conftest* 14068 14069 14070# Allow CC to be a program name with arguments. 14071lt_save_CC="$CC" 14072CC=${F77-"f77"} 14073compiler=$CC 14074compiler_F77=$CC 14075for cc_temp in $compiler""; do 14076 case $cc_temp in 14077 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14078 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14079 \-*) ;; 14080 *) break;; 14081 esac 14082done 14083cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14084 14085 14086{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14087echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14088{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14089echo "${ECHO_T}$can_build_shared" >&6; } 14090 14091{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14092echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14093test "$can_build_shared" = "no" && enable_shared=no 14094 14095# On AIX, shared libraries and static libraries use the same namespace, and 14096# are all built from PIC. 14097case $host_os in 14098aix3*) 14099 test "$enable_shared" = yes && enable_static=no 14100 if test -n "$RANLIB"; then 14101 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14102 postinstall_cmds='$RANLIB $lib' 14103 fi 14104 ;; 14105aix4* | aix5*) 14106 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14107 test "$enable_shared" = yes && enable_static=no 14108 fi 14109 ;; 14110esac 14111{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14112echo "${ECHO_T}$enable_shared" >&6; } 14113 14114{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14115echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14116# Make sure either enable_shared or enable_static is yes. 14117test "$enable_shared" = yes || enable_static=yes 14118{ echo "$as_me:$LINENO: result: $enable_static" >&5 14119echo "${ECHO_T}$enable_static" >&6; } 14120 14121GCC_F77="$G77" 14122LD_F77="$LD" 14123 14124lt_prog_compiler_wl_F77= 14125lt_prog_compiler_pic_F77= 14126lt_prog_compiler_static_F77= 14127 14128{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14129echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14130 14131 if test "$GCC" = yes; then 14132 lt_prog_compiler_wl_F77='-Wl,' 14133 lt_prog_compiler_static_F77='-static' 14134 14135 case $host_os in 14136 aix*) 14137 # All AIX code is PIC. 14138 if test "$host_cpu" = ia64; then 14139 # AIX 5 now supports IA64 processor 14140 lt_prog_compiler_static_F77='-Bstatic' 14141 fi 14142 ;; 14143 14144 amigaos*) 14145 # FIXME: we need at least 68020 code to build shared libraries, but 14146 # adding the `-m68020' flag to GCC prevents building anything better, 14147 # like `-m68040'. 14148 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14149 ;; 14150 14151 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14152 # PIC is the default for these OSes. 14153 ;; 14154 14155 mingw* | pw32* | os2*) 14156 # This hack is so that the source file can tell whether it is being 14157 # built for inclusion in a dll (and should export symbols for example). 14158 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14159 ;; 14160 14161 darwin* | rhapsody*) 14162 # PIC is the default on this platform 14163 # Common symbols not allowed in MH_DYLIB files 14164 lt_prog_compiler_pic_F77='-fno-common' 14165 ;; 14166 14167 interix3*) 14168 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14169 # Instead, we relocate shared libraries at runtime. 14170 ;; 14171 14172 msdosdjgpp*) 14173 # Just because we use GCC doesn't mean we suddenly get shared libraries 14174 # on systems that don't support them. 14175 lt_prog_compiler_can_build_shared_F77=no 14176 enable_shared=no 14177 ;; 14178 14179 sysv4*MP*) 14180 if test -d /usr/nec; then 14181 lt_prog_compiler_pic_F77=-Kconform_pic 14182 fi 14183 ;; 14184 14185 hpux*) 14186 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14187 # not for PA HP-UX. 14188 case $host_cpu in 14189 hppa*64*|ia64*) 14190 # +Z the default 14191 ;; 14192 *) 14193 lt_prog_compiler_pic_F77='-fPIC' 14194 ;; 14195 esac 14196 ;; 14197 14198 *) 14199 lt_prog_compiler_pic_F77='-fPIC' 14200 ;; 14201 esac 14202 else 14203 # PORTME Check for flag to pass linker flags through the system compiler. 14204 case $host_os in 14205 aix*) 14206 lt_prog_compiler_wl_F77='-Wl,' 14207 if test "$host_cpu" = ia64; then 14208 # AIX 5 now supports IA64 processor 14209 lt_prog_compiler_static_F77='-Bstatic' 14210 else 14211 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14212 fi 14213 ;; 14214 darwin*) 14215 # PIC is the default on this platform 14216 # Common symbols not allowed in MH_DYLIB files 14217 case $cc_basename in 14218 xlc*) 14219 lt_prog_compiler_pic_F77='-qnocommon' 14220 lt_prog_compiler_wl_F77='-Wl,' 14221 ;; 14222 esac 14223 ;; 14224 14225 mingw* | pw32* | os2*) 14226 # This hack is so that the source file can tell whether it is being 14227 # built for inclusion in a dll (and should export symbols for example). 14228 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14229 ;; 14230 14231 hpux9* | hpux10* | hpux11*) 14232 lt_prog_compiler_wl_F77='-Wl,' 14233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14234 # not for PA HP-UX. 14235 case $host_cpu in 14236 hppa*64*|ia64*) 14237 # +Z the default 14238 ;; 14239 *) 14240 lt_prog_compiler_pic_F77='+Z' 14241 ;; 14242 esac 14243 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14244 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14245 ;; 14246 14247 irix5* | irix6* | nonstopux*) 14248 lt_prog_compiler_wl_F77='-Wl,' 14249 # PIC (with -KPIC) is the default. 14250 lt_prog_compiler_static_F77='-non_shared' 14251 ;; 14252 14253 newsos6) 14254 lt_prog_compiler_pic_F77='-KPIC' 14255 lt_prog_compiler_static_F77='-Bstatic' 14256 ;; 14257 14258 linux* | k*bsd*-gnu) 14259 case $cc_basename in 14260 icc* | ecc*) 14261 lt_prog_compiler_wl_F77='-Wl,' 14262 lt_prog_compiler_pic_F77='-KPIC' 14263 lt_prog_compiler_static_F77='-static' 14264 ;; 14265 pgcc* | pgf77* | pgf90* | pgf95*) 14266 # Portland Group compilers (*not* the Pentium gcc compiler, 14267 # which looks to be a dead project) 14268 lt_prog_compiler_wl_F77='-Wl,' 14269 lt_prog_compiler_pic_F77='-fpic' 14270 lt_prog_compiler_static_F77='-Bstatic' 14271 ;; 14272 ccc*) 14273 lt_prog_compiler_wl_F77='-Wl,' 14274 # All Alpha code is PIC. 14275 lt_prog_compiler_static_F77='-non_shared' 14276 ;; 14277 esac 14278 ;; 14279 14280 osf3* | osf4* | osf5*) 14281 lt_prog_compiler_wl_F77='-Wl,' 14282 # All OSF/1 code is PIC. 14283 lt_prog_compiler_static_F77='-non_shared' 14284 ;; 14285 14286 solaris*) 14287 lt_prog_compiler_pic_F77='-KPIC' 14288 lt_prog_compiler_static_F77='-Bstatic' 14289 case $cc_basename in 14290 f77* | f90* | f95*) 14291 lt_prog_compiler_wl_F77='-Qoption ld ';; 14292 *) 14293 lt_prog_compiler_wl_F77='-Wl,';; 14294 esac 14295 ;; 14296 14297 sunos4*) 14298 lt_prog_compiler_wl_F77='-Qoption ld ' 14299 lt_prog_compiler_pic_F77='-PIC' 14300 lt_prog_compiler_static_F77='-Bstatic' 14301 ;; 14302 14303 sysv4 | sysv4.2uw2* | sysv4.3*) 14304 lt_prog_compiler_wl_F77='-Wl,' 14305 lt_prog_compiler_pic_F77='-KPIC' 14306 lt_prog_compiler_static_F77='-Bstatic' 14307 ;; 14308 14309 sysv4*MP*) 14310 if test -d /usr/nec ;then 14311 lt_prog_compiler_pic_F77='-Kconform_pic' 14312 lt_prog_compiler_static_F77='-Bstatic' 14313 fi 14314 ;; 14315 14316 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14317 lt_prog_compiler_wl_F77='-Wl,' 14318 lt_prog_compiler_pic_F77='-KPIC' 14319 lt_prog_compiler_static_F77='-Bstatic' 14320 ;; 14321 14322 unicos*) 14323 lt_prog_compiler_wl_F77='-Wl,' 14324 lt_prog_compiler_can_build_shared_F77=no 14325 ;; 14326 14327 uts4*) 14328 lt_prog_compiler_pic_F77='-pic' 14329 lt_prog_compiler_static_F77='-Bstatic' 14330 ;; 14331 14332 *) 14333 lt_prog_compiler_can_build_shared_F77=no 14334 ;; 14335 esac 14336 fi 14337 14338{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14339echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14340 14341# 14342# Check to make sure the PIC flag actually works. 14343# 14344if test -n "$lt_prog_compiler_pic_F77"; then 14345 14346{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14347echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14348if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14349 echo $ECHO_N "(cached) $ECHO_C" >&6 14350else 14351 lt_prog_compiler_pic_works_F77=no 14352 ac_outfile=conftest.$ac_objext 14353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14354 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14355 # Insert the option either (1) after the last *FLAGS variable, or 14356 # (2) before a word containing "conftest.", or (3) at the end. 14357 # Note that $ac_compile itself does not contain backslashes and begins 14358 # with a dollar sign (not a hyphen), so the echo should work correctly. 14359 # The option is referenced via a variable to avoid confusing sed. 14360 lt_compile=`echo "$ac_compile" | $SED \ 14361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14363 -e 's:$: $lt_compiler_flag:'` 14364 (eval echo "\"\$as_me:14364: $lt_compile\"" >&5) 14365 (eval "$lt_compile" 2>conftest.err) 14366 ac_status=$? 14367 cat conftest.err >&5 14368 echo "$as_me:14368: \$? = $ac_status" >&5 14369 if (exit $ac_status) && test -s "$ac_outfile"; then 14370 # The compiler can only warn and ignore the option if not recognized 14371 # So say no if there are warnings other than the usual output. 14372 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14375 lt_prog_compiler_pic_works_F77=yes 14376 fi 14377 fi 14378 $rm conftest* 14379 14380fi 14381{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14382echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14383 14384if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14385 case $lt_prog_compiler_pic_F77 in 14386 "" | " "*) ;; 14387 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14388 esac 14389else 14390 lt_prog_compiler_pic_F77= 14391 lt_prog_compiler_can_build_shared_F77=no 14392fi 14393 14394fi 14395case $host_os in 14396 # For platforms which do not support PIC, -DPIC is meaningless: 14397 *djgpp*) 14398 lt_prog_compiler_pic_F77= 14399 ;; 14400 *) 14401 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14402 ;; 14403esac 14404 14405# 14406# Check to make sure the static flag actually works. 14407# 14408wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14409{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14410echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14411if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14412 echo $ECHO_N "(cached) $ECHO_C" >&6 14413else 14414 lt_prog_compiler_static_works_F77=no 14415 save_LDFLAGS="$LDFLAGS" 14416 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14417 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14418 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14419 # The linker can only warn and ignore the option if not recognized 14420 # So say no if there are warnings 14421 if test -s conftest.err; then 14422 # Append any errors to the config.log. 14423 cat conftest.err 1>&5 14424 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14426 if diff conftest.exp conftest.er2 >/dev/null; then 14427 lt_prog_compiler_static_works_F77=yes 14428 fi 14429 else 14430 lt_prog_compiler_static_works_F77=yes 14431 fi 14432 fi 14433 $rm conftest* 14434 LDFLAGS="$save_LDFLAGS" 14435 14436fi 14437{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14438echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14439 14440if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14441 : 14442else 14443 lt_prog_compiler_static_F77= 14444fi 14445 14446 14447{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14448echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14449if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14450 echo $ECHO_N "(cached) $ECHO_C" >&6 14451else 14452 lt_cv_prog_compiler_c_o_F77=no 14453 $rm -r conftest 2>/dev/null 14454 mkdir conftest 14455 cd conftest 14456 mkdir out 14457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14458 14459 lt_compiler_flag="-o out/conftest2.$ac_objext" 14460 # Insert the option either (1) after the last *FLAGS variable, or 14461 # (2) before a word containing "conftest.", or (3) at the end. 14462 # Note that $ac_compile itself does not contain backslashes and begins 14463 # with a dollar sign (not a hyphen), so the echo should work correctly. 14464 lt_compile=`echo "$ac_compile" | $SED \ 14465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14467 -e 's:$: $lt_compiler_flag:'` 14468 (eval echo "\"\$as_me:14468: $lt_compile\"" >&5) 14469 (eval "$lt_compile" 2>out/conftest.err) 14470 ac_status=$? 14471 cat out/conftest.err >&5 14472 echo "$as_me:14472: \$? = $ac_status" >&5 14473 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14474 then 14475 # The compiler can only warn and ignore the option if not recognized 14476 # So say no if there are warnings 14477 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14478 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14479 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14480 lt_cv_prog_compiler_c_o_F77=yes 14481 fi 14482 fi 14483 chmod u+w . 2>&5 14484 $rm conftest* 14485 # SGI C++ compiler will create directory out/ii_files/ for 14486 # template instantiation 14487 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14488 $rm out/* && rmdir out 14489 cd .. 14490 rmdir conftest 14491 $rm conftest* 14492 14493fi 14494{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14495echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14496 14497 14498hard_links="nottested" 14499if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14500 # do not overwrite the value of need_locks provided by the user 14501 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14502echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14503 hard_links=yes 14504 $rm conftest* 14505 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14506 touch conftest.a 14507 ln conftest.a conftest.b 2>&5 || hard_links=no 14508 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14509 { echo "$as_me:$LINENO: result: $hard_links" >&5 14510echo "${ECHO_T}$hard_links" >&6; } 14511 if test "$hard_links" = no; then 14512 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14513echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14514 need_locks=warn 14515 fi 14516else 14517 need_locks=no 14518fi 14519 14520{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14521echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14522 14523 runpath_var= 14524 allow_undefined_flag_F77= 14525 enable_shared_with_static_runtimes_F77=no 14526 archive_cmds_F77= 14527 archive_expsym_cmds_F77= 14528 old_archive_From_new_cmds_F77= 14529 old_archive_from_expsyms_cmds_F77= 14530 export_dynamic_flag_spec_F77= 14531 whole_archive_flag_spec_F77= 14532 thread_safe_flag_spec_F77= 14533 hardcode_libdir_flag_spec_F77= 14534 hardcode_libdir_flag_spec_ld_F77= 14535 hardcode_libdir_separator_F77= 14536 hardcode_direct_F77=no 14537 hardcode_minus_L_F77=no 14538 hardcode_shlibpath_var_F77=unsupported 14539 link_all_deplibs_F77=unknown 14540 hardcode_automatic_F77=no 14541 module_cmds_F77= 14542 module_expsym_cmds_F77= 14543 always_export_symbols_F77=no 14544 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14545 # include_expsyms should be a list of space-separated symbols to be *always* 14546 # included in the symbol list 14547 include_expsyms_F77= 14548 # exclude_expsyms can be an extended regexp of symbols to exclude 14549 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14550 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14551 # as well as any symbol that contains `d'. 14552 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14553 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14554 # platforms (ab)use it in PIC code, but their linkers get confused if 14555 # the symbol is explicitly referenced. Since portable code cannot 14556 # rely on this symbol name, it's probably fine to never include it in 14557 # preloaded symbol tables. 14558 extract_expsyms_cmds= 14559 # Just being paranoid about ensuring that cc_basename is set. 14560 for cc_temp in $compiler""; do 14561 case $cc_temp in 14562 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14563 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14564 \-*) ;; 14565 *) break;; 14566 esac 14567done 14568cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14569 14570 case $host_os in 14571 cygwin* | mingw* | pw32*) 14572 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14573 # When not using gcc, we currently assume that we are using 14574 # Microsoft Visual C++. 14575 if test "$GCC" != yes; then 14576 with_gnu_ld=no 14577 fi 14578 ;; 14579 interix*) 14580 # we just hope/assume this is gcc and not c89 (= MSVC++) 14581 with_gnu_ld=yes 14582 ;; 14583 openbsd*) 14584 with_gnu_ld=no 14585 ;; 14586 esac 14587 14588 ld_shlibs_F77=yes 14589 if test "$with_gnu_ld" = yes; then 14590 # If archive_cmds runs LD, not CC, wlarc should be empty 14591 wlarc='${wl}' 14592 14593 # Set some defaults for GNU ld with shared library support. These 14594 # are reset later if shared libraries are not supported. Putting them 14595 # here allows them to be overridden if necessary. 14596 runpath_var=LD_RUN_PATH 14597 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14598 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14599 # ancient GNU ld didn't support --whole-archive et. al. 14600 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14601 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14602 else 14603 whole_archive_flag_spec_F77= 14604 fi 14605 supports_anon_versioning=no 14606 case `$LD -v 2>/dev/null` in 14607 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14608 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14609 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14610 *\ 2.11.*) ;; # other 2.11 versions 14611 *) supports_anon_versioning=yes ;; 14612 esac 14613 14614 # See if GNU ld supports shared libraries. 14615 case $host_os in 14616 aix3* | aix4* | aix5*) 14617 # On AIX/PPC, the GNU linker is very broken 14618 if test "$host_cpu" != ia64; then 14619 ld_shlibs_F77=no 14620 cat <<EOF 1>&2 14621 14622*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14623*** to be unable to reliably create shared libraries on AIX. 14624*** Therefore, libtool is disabling shared libraries support. If you 14625*** really care for shared libraries, you may want to modify your PATH 14626*** so that a non-GNU linker is found, and then restart. 14627 14628EOF 14629 fi 14630 ;; 14631 14632 amigaos*) 14633 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)' 14634 hardcode_libdir_flag_spec_F77='-L$libdir' 14635 hardcode_minus_L_F77=yes 14636 14637 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14638 # that the semantics of dynamic libraries on AmigaOS, at least up 14639 # to version 4, is to share data among multiple programs linked 14640 # with the same dynamic library. Since this doesn't match the 14641 # behavior of shared libraries on other platforms, we can't use 14642 # them. 14643 ld_shlibs_F77=no 14644 ;; 14645 14646 beos*) 14647 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14648 allow_undefined_flag_F77=unsupported 14649 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14650 # support --undefined. This deserves some investigation. FIXME 14651 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14652 else 14653 ld_shlibs_F77=no 14654 fi 14655 ;; 14656 14657 cygwin* | mingw* | pw32*) 14658 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14659 # as there is no search path for DLLs. 14660 hardcode_libdir_flag_spec_F77='-L$libdir' 14661 allow_undefined_flag_F77=unsupported 14662 always_export_symbols_F77=no 14663 enable_shared_with_static_runtimes_F77=yes 14664 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14665 14666 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14667 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14668 # If the export-symbols file already is a .def file (1st line 14669 # is EXPORTS), use it as is; otherwise, prepend... 14670 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14671 cp $export_symbols $output_objdir/$soname.def; 14672 else 14673 echo EXPORTS > $output_objdir/$soname.def; 14674 cat $export_symbols >> $output_objdir/$soname.def; 14675 fi~ 14676 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14677 else 14678 ld_shlibs_F77=no 14679 fi 14680 ;; 14681 14682 interix3*) 14683 hardcode_direct_F77=no 14684 hardcode_shlibpath_var_F77=no 14685 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14686 export_dynamic_flag_spec_F77='${wl}-E' 14687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14688 # Instead, shared libraries are loaded at an image base (0x10000000 by 14689 # default) and relocated if they conflict, which is a slow very memory 14690 # consuming and fragmenting process. To avoid this, we pick a random, 14691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14692 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14693 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' 14694 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' 14695 ;; 14696 14697 linux* | k*bsd*-gnu) 14698 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14699 tmp_addflag= 14700 case $cc_basename,$host_cpu in 14701 pgcc*) # Portland Group C compiler 14702 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' 14703 tmp_addflag=' $pic_flag' 14704 ;; 14705 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14706 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' 14707 tmp_addflag=' $pic_flag -Mnomain' ;; 14708 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14709 tmp_addflag=' -i_dynamic' ;; 14710 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14711 tmp_addflag=' -i_dynamic -nofor_main' ;; 14712 ifc* | ifort*) # Intel Fortran compiler 14713 tmp_addflag=' -nofor_main' ;; 14714 esac 14715 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14716 14717 if test $supports_anon_versioning = yes; then 14718 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14720 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14721 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14722 fi 14723 link_all_deplibs_F77=no 14724 else 14725 ld_shlibs_F77=no 14726 fi 14727 ;; 14728 14729 netbsd* | netbsdelf*-gnu) 14730 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14731 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14732 wlarc= 14733 else 14734 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14735 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14736 fi 14737 ;; 14738 14739 solaris*) 14740 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14741 ld_shlibs_F77=no 14742 cat <<EOF 1>&2 14743 14744*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14745*** create shared libraries on Solaris systems. Therefore, libtool 14746*** is disabling shared libraries support. We urge you to upgrade GNU 14747*** binutils to release 2.9.1 or newer. Another option is to modify 14748*** your PATH or compiler configuration so that the native linker is 14749*** used, and then restart. 14750 14751EOF 14752 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14753 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14754 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14755 else 14756 ld_shlibs_F77=no 14757 fi 14758 ;; 14759 14760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14761 case `$LD -v 2>&1` in 14762 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14763 ld_shlibs_F77=no 14764 cat <<_LT_EOF 1>&2 14765 14766*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14767*** reliably create shared libraries on SCO systems. Therefore, libtool 14768*** is disabling shared libraries support. We urge you to upgrade GNU 14769*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14770*** your PATH or compiler configuration so that the native linker is 14771*** used, and then restart. 14772 14773_LT_EOF 14774 ;; 14775 *) 14776 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14777 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14778 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14779 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14780 else 14781 ld_shlibs_F77=no 14782 fi 14783 ;; 14784 esac 14785 ;; 14786 14787 sunos4*) 14788 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14789 wlarc= 14790 hardcode_direct_F77=yes 14791 hardcode_shlibpath_var_F77=no 14792 ;; 14793 14794 *) 14795 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14796 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14797 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14798 else 14799 ld_shlibs_F77=no 14800 fi 14801 ;; 14802 esac 14803 14804 if test "$ld_shlibs_F77" = no; then 14805 runpath_var= 14806 hardcode_libdir_flag_spec_F77= 14807 export_dynamic_flag_spec_F77= 14808 whole_archive_flag_spec_F77= 14809 fi 14810 else 14811 # PORTME fill in a description of your system's linker (not GNU ld) 14812 case $host_os in 14813 aix3*) 14814 allow_undefined_flag_F77=unsupported 14815 always_export_symbols_F77=yes 14816 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' 14817 # Note: this linker hardcodes the directories in LIBPATH if there 14818 # are no directories specified by -L. 14819 hardcode_minus_L_F77=yes 14820 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14821 # Neither direct hardcoding nor static linking is supported with a 14822 # broken collect2. 14823 hardcode_direct_F77=unsupported 14824 fi 14825 ;; 14826 14827 aix4* | aix5*) 14828 if test "$host_cpu" = ia64; then 14829 # On IA64, the linker does run time linking by default, so we don't 14830 # have to do anything special. 14831 aix_use_runtimelinking=no 14832 exp_sym_flag='-Bexport' 14833 no_entry_flag="" 14834 else 14835 # If we're using GNU nm, then we don't want the "-C" option. 14836 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14837 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14838 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' 14839 else 14840 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' 14841 fi 14842 aix_use_runtimelinking=no 14843 14844 # Test if we are trying to use run time linking or normal 14845 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14846 # need to do runtime linking. 14847 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14848 for ld_flag in $LDFLAGS; do 14849 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14850 aix_use_runtimelinking=yes 14851 break 14852 fi 14853 done 14854 ;; 14855 esac 14856 14857 exp_sym_flag='-bexport' 14858 no_entry_flag='-bnoentry' 14859 fi 14860 14861 # When large executables or shared objects are built, AIX ld can 14862 # have problems creating the table of contents. If linking a library 14863 # or program results in "error TOC overflow" add -mminimal-toc to 14864 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14865 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14866 14867 archive_cmds_F77='' 14868 hardcode_direct_F77=yes 14869 hardcode_libdir_separator_F77=':' 14870 link_all_deplibs_F77=yes 14871 14872 if test "$GCC" = yes; then 14873 case $host_os in aix4.[012]|aix4.[012].*) 14874 # We only want to do this on AIX 4.2 and lower, the check 14875 # below for broken collect2 doesn't work under 4.3+ 14876 collect2name=`${CC} -print-prog-name=collect2` 14877 if test -f "$collect2name" && \ 14878 strings "$collect2name" | grep resolve_lib_name >/dev/null 14879 then 14880 # We have reworked collect2 14881 hardcode_direct_F77=yes 14882 else 14883 # We have old collect2 14884 hardcode_direct_F77=unsupported 14885 # It fails to find uninstalled libraries when the uninstalled 14886 # path is not listed in the libpath. Setting hardcode_minus_L 14887 # to unsupported forces relinking 14888 hardcode_minus_L_F77=yes 14889 hardcode_libdir_flag_spec_F77='-L$libdir' 14890 hardcode_libdir_separator_F77= 14891 fi 14892 ;; 14893 esac 14894 shared_flag='-shared' 14895 if test "$aix_use_runtimelinking" = yes; then 14896 shared_flag="$shared_flag "'${wl}-G' 14897 fi 14898 else 14899 # not using gcc 14900 if test "$host_cpu" = ia64; then 14901 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14902 # chokes on -Wl,-G. The following line is correct: 14903 shared_flag='-G' 14904 else 14905 if test "$aix_use_runtimelinking" = yes; then 14906 shared_flag='${wl}-G' 14907 else 14908 shared_flag='${wl}-bM:SRE' 14909 fi 14910 fi 14911 fi 14912 14913 # It seems that -bexpall does not export symbols beginning with 14914 # underscore (_), so it is better to generate a list of symbols to export. 14915 always_export_symbols_F77=yes 14916 if test "$aix_use_runtimelinking" = yes; then 14917 # Warning - without using the other runtime loading flags (-brtl), 14918 # -berok will link without error, but may produce a broken library. 14919 allow_undefined_flag_F77='-berok' 14920 # Determine the default libpath from the value encoded in an empty executable. 14921 cat >conftest.$ac_ext <<_ACEOF 14922 program main 14923 14924 end 14925_ACEOF 14926rm -f conftest.$ac_objext conftest$ac_exeext 14927if { (ac_try="$ac_link" 14928case "(($ac_try" in 14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14930 *) ac_try_echo=$ac_try;; 14931esac 14932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14933 (eval "$ac_link") 2>conftest.er1 14934 ac_status=$? 14935 grep -v '^ *+' conftest.er1 >conftest.err 14936 rm -f conftest.er1 14937 cat conftest.err >&5 14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14939 (exit $ac_status); } && 14940 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 14941 { (case "(($ac_try" in 14942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14943 *) ac_try_echo=$ac_try;; 14944esac 14945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14946 (eval "$ac_try") 2>&5 14947 ac_status=$? 14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14949 (exit $ac_status); }; } && 14950 { ac_try='test -s conftest$ac_exeext' 14951 { (case "(($ac_try" in 14952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14953 *) ac_try_echo=$ac_try;; 14954esac 14955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14956 (eval "$ac_try") 2>&5 14957 ac_status=$? 14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14959 (exit $ac_status); }; }; then 14960 14961aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14962}'` 14963# Check for a 64-bit object if we didn't find anything. 14964if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14965}'`; fi 14966else 14967 echo "$as_me: failed program was:" >&5 14968sed 's/^/| /' conftest.$ac_ext >&5 14969 14970 14971fi 14972 14973rm -f core conftest.err conftest.$ac_objext \ 14974 conftest$ac_exeext conftest.$ac_ext 14975if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14976 14977 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14978 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" 14979 else 14980 if test "$host_cpu" = ia64; then 14981 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14982 allow_undefined_flag_F77="-z nodefs" 14983 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" 14984 else 14985 # Determine the default libpath from the value encoded in an empty executable. 14986 cat >conftest.$ac_ext <<_ACEOF 14987 program main 14988 14989 end 14990_ACEOF 14991rm -f conftest.$ac_objext conftest$ac_exeext 14992if { (ac_try="$ac_link" 14993case "(($ac_try" in 14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14995 *) ac_try_echo=$ac_try;; 14996esac 14997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14998 (eval "$ac_link") 2>conftest.er1 14999 ac_status=$? 15000 grep -v '^ *+' conftest.er1 >conftest.err 15001 rm -f conftest.er1 15002 cat conftest.err >&5 15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15004 (exit $ac_status); } && 15005 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 15006 { (case "(($ac_try" in 15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15008 *) ac_try_echo=$ac_try;; 15009esac 15010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15011 (eval "$ac_try") 2>&5 15012 ac_status=$? 15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15014 (exit $ac_status); }; } && 15015 { ac_try='test -s conftest$ac_exeext' 15016 { (case "(($ac_try" in 15017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15018 *) ac_try_echo=$ac_try;; 15019esac 15020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15021 (eval "$ac_try") 2>&5 15022 ac_status=$? 15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15024 (exit $ac_status); }; }; then 15025 15026aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15027}'` 15028# Check for a 64-bit object if we didn't find anything. 15029if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15030}'`; fi 15031else 15032 echo "$as_me: failed program was:" >&5 15033sed 's/^/| /' conftest.$ac_ext >&5 15034 15035 15036fi 15037 15038rm -f core conftest.err conftest.$ac_objext \ 15039 conftest$ac_exeext conftest.$ac_ext 15040if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15041 15042 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15043 # Warning - without using the other run time loading flags, 15044 # -berok will link without error, but may produce a broken library. 15045 no_undefined_flag_F77=' ${wl}-bernotok' 15046 allow_undefined_flag_F77=' ${wl}-berok' 15047 # Exported symbols can be pulled into shared objects from archives 15048 whole_archive_flag_spec_F77='$convenience' 15049 archive_cmds_need_lc_F77=yes 15050 # This is similar to how AIX traditionally builds its shared libraries. 15051 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' 15052 fi 15053 fi 15054 ;; 15055 15056 amigaos*) 15057 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)' 15058 hardcode_libdir_flag_spec_F77='-L$libdir' 15059 hardcode_minus_L_F77=yes 15060 # see comment about different semantics on the GNU ld section 15061 ld_shlibs_F77=no 15062 ;; 15063 15064 bsdi[45]*) 15065 export_dynamic_flag_spec_F77=-rdynamic 15066 ;; 15067 15068 cygwin* | mingw* | pw32*) 15069 # When not using gcc, we currently assume that we are using 15070 # Microsoft Visual C++. 15071 # hardcode_libdir_flag_spec is actually meaningless, as there is 15072 # no search path for DLLs. 15073 hardcode_libdir_flag_spec_F77=' ' 15074 allow_undefined_flag_F77=unsupported 15075 # Tell ltmain to make .lib files, not .a files. 15076 libext=lib 15077 # Tell ltmain to make .dll files, not .so files. 15078 shrext_cmds=".dll" 15079 # FIXME: Setting linknames here is a bad hack. 15080 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15081 # The linker will automatically build a .lib file if we build a DLL. 15082 old_archive_From_new_cmds_F77='true' 15083 # FIXME: Should let the user specify the lib program. 15084 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15085 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15086 enable_shared_with_static_runtimes_F77=yes 15087 ;; 15088 15089 darwin* | rhapsody*) 15090 case $host_os in 15091 rhapsody* | darwin1.[012]) 15092 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15093 ;; 15094 *) # Darwin 1.3 on 15095 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15096 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15097 else 15098 case ${MACOSX_DEPLOYMENT_TARGET} in 15099 10.[012]) 15100 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15101 ;; 15102 10.*) 15103 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15104 ;; 15105 esac 15106 fi 15107 ;; 15108 esac 15109 archive_cmds_need_lc_F77=no 15110 hardcode_direct_F77=no 15111 hardcode_automatic_F77=yes 15112 hardcode_shlibpath_var_F77=unsupported 15113 whole_archive_flag_spec_F77='' 15114 link_all_deplibs_F77=yes 15115 if test "$GCC" = yes ; then 15116 output_verbose_link_cmd='echo' 15117 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15118 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15120 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15121 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}' 15122 else 15123 case $cc_basename in 15124 xlc*) 15125 output_verbose_link_cmd='echo' 15126 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15127 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15128 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15129 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15130 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}' 15131 ;; 15132 *) 15133 ld_shlibs_F77=no 15134 ;; 15135 esac 15136 fi 15137 ;; 15138 15139 dgux*) 15140 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15141 hardcode_libdir_flag_spec_F77='-L$libdir' 15142 hardcode_shlibpath_var_F77=no 15143 ;; 15144 15145 freebsd1*) 15146 ld_shlibs_F77=no 15147 ;; 15148 15149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15150 # support. Future versions do this automatically, but an explicit c++rt0.o 15151 # does not break anything, and helps significantly (at the cost of a little 15152 # extra space). 15153 freebsd2.2*) 15154 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15155 hardcode_libdir_flag_spec_F77='-R$libdir' 15156 hardcode_direct_F77=yes 15157 hardcode_shlibpath_var_F77=no 15158 ;; 15159 15160 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15161 freebsd2*) 15162 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15163 hardcode_direct_F77=yes 15164 hardcode_minus_L_F77=yes 15165 hardcode_shlibpath_var_F77=no 15166 ;; 15167 15168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15169 freebsd* | dragonfly*) 15170 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15171 hardcode_libdir_flag_spec_F77='-R$libdir' 15172 hardcode_direct_F77=yes 15173 hardcode_shlibpath_var_F77=no 15174 ;; 15175 15176 hpux9*) 15177 if test "$GCC" = yes; then 15178 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' 15179 else 15180 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' 15181 fi 15182 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15183 hardcode_libdir_separator_F77=: 15184 hardcode_direct_F77=yes 15185 15186 # hardcode_minus_L: Not really in the search PATH, 15187 # but as the default location of the library. 15188 hardcode_minus_L_F77=yes 15189 export_dynamic_flag_spec_F77='${wl}-E' 15190 ;; 15191 15192 hpux10*) 15193 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15194 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15195 else 15196 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15197 fi 15198 if test "$with_gnu_ld" = no; then 15199 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15200 hardcode_libdir_separator_F77=: 15201 15202 hardcode_direct_F77=yes 15203 export_dynamic_flag_spec_F77='${wl}-E' 15204 15205 # hardcode_minus_L: Not really in the search PATH, 15206 # but as the default location of the library. 15207 hardcode_minus_L_F77=yes 15208 fi 15209 ;; 15210 15211 hpux11*) 15212 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15213 case $host_cpu in 15214 hppa*64*) 15215 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15216 ;; 15217 ia64*) 15218 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15219 ;; 15220 *) 15221 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15222 ;; 15223 esac 15224 else 15225 case $host_cpu in 15226 hppa*64*) 15227 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15228 ;; 15229 ia64*) 15230 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15231 ;; 15232 *) 15233 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15234 ;; 15235 esac 15236 fi 15237 if test "$with_gnu_ld" = no; then 15238 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15239 hardcode_libdir_separator_F77=: 15240 15241 case $host_cpu in 15242 hppa*64*|ia64*) 15243 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15244 hardcode_direct_F77=no 15245 hardcode_shlibpath_var_F77=no 15246 ;; 15247 *) 15248 hardcode_direct_F77=yes 15249 export_dynamic_flag_spec_F77='${wl}-E' 15250 15251 # hardcode_minus_L: Not really in the search PATH, 15252 # but as the default location of the library. 15253 hardcode_minus_L_F77=yes 15254 ;; 15255 esac 15256 fi 15257 ;; 15258 15259 irix5* | irix6* | nonstopux*) 15260 if test "$GCC" = yes; then 15261 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' 15262 else 15263 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' 15264 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15265 fi 15266 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15267 hardcode_libdir_separator_F77=: 15268 link_all_deplibs_F77=yes 15269 ;; 15270 15271 netbsd* | netbsdelf*-gnu) 15272 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15273 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15274 else 15275 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15276 fi 15277 hardcode_libdir_flag_spec_F77='-R$libdir' 15278 hardcode_direct_F77=yes 15279 hardcode_shlibpath_var_F77=no 15280 ;; 15281 15282 newsos6) 15283 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15284 hardcode_direct_F77=yes 15285 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15286 hardcode_libdir_separator_F77=: 15287 hardcode_shlibpath_var_F77=no 15288 ;; 15289 15290 openbsd*) 15291 hardcode_direct_F77=yes 15292 hardcode_shlibpath_var_F77=no 15293 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15294 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15295 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15296 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15297 export_dynamic_flag_spec_F77='${wl}-E' 15298 else 15299 case $host_os in 15300 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15301 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15302 hardcode_libdir_flag_spec_F77='-R$libdir' 15303 ;; 15304 *) 15305 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15306 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15307 ;; 15308 esac 15309 fi 15310 ;; 15311 15312 os2*) 15313 hardcode_libdir_flag_spec_F77='-L$libdir' 15314 hardcode_minus_L_F77=yes 15315 allow_undefined_flag_F77=unsupported 15316 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' 15317 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15318 ;; 15319 15320 osf3*) 15321 if test "$GCC" = yes; then 15322 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15323 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' 15324 else 15325 allow_undefined_flag_F77=' -expect_unresolved \*' 15326 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' 15327 fi 15328 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15329 hardcode_libdir_separator_F77=: 15330 ;; 15331 15332 osf4* | osf5*) # as osf3* with the addition of -msym flag 15333 if test "$GCC" = yes; then 15334 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15335 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' 15336 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15337 else 15338 allow_undefined_flag_F77=' -expect_unresolved \*' 15339 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' 15340 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~ 15341 $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' 15342 15343 # Both c and cxx compiler support -rpath directly 15344 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15345 fi 15346 hardcode_libdir_separator_F77=: 15347 ;; 15348 15349 solaris*) 15350 no_undefined_flag_F77=' -z text' 15351 if test "$GCC" = yes; then 15352 wlarc='${wl}' 15353 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15354 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15355 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15356 else 15357 wlarc='' 15358 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15359 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15360 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15361 fi 15362 hardcode_libdir_flag_spec_F77='-R$libdir' 15363 hardcode_shlibpath_var_F77=no 15364 case $host_os in 15365 solaris2.[0-5] | solaris2.[0-5].*) ;; 15366 *) 15367 # The compiler driver will combine linker options so we 15368 # cannot just pass the convience library names through 15369 # without $wl, iff we do not link with $LD. 15370 # Luckily, gcc supports the same syntax we need for Sun Studio. 15371 # Supported since Solaris 2.6 (maybe 2.5.1?) 15372 case $wlarc in 15373 '') 15374 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15375 *) 15376 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 15377 esac ;; 15378 esac 15379 link_all_deplibs_F77=yes 15380 ;; 15381 15382 sunos4*) 15383 if test "x$host_vendor" = xsequent; then 15384 # Use $CC to link under sequent, because it throws in some extra .o 15385 # files that make .init and .fini sections work. 15386 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15387 else 15388 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15389 fi 15390 hardcode_libdir_flag_spec_F77='-L$libdir' 15391 hardcode_direct_F77=yes 15392 hardcode_minus_L_F77=yes 15393 hardcode_shlibpath_var_F77=no 15394 ;; 15395 15396 sysv4) 15397 case $host_vendor in 15398 sni) 15399 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15400 hardcode_direct_F77=yes # is this really true??? 15401 ;; 15402 siemens) 15403 ## LD is ld it makes a PLAMLIB 15404 ## CC just makes a GrossModule. 15405 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15406 reload_cmds_F77='$CC -r -o $output$reload_objs' 15407 hardcode_direct_F77=no 15408 ;; 15409 motorola) 15410 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15411 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15412 ;; 15413 esac 15414 runpath_var='LD_RUN_PATH' 15415 hardcode_shlibpath_var_F77=no 15416 ;; 15417 15418 sysv4.3*) 15419 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15420 hardcode_shlibpath_var_F77=no 15421 export_dynamic_flag_spec_F77='-Bexport' 15422 ;; 15423 15424 sysv4*MP*) 15425 if test -d /usr/nec; then 15426 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15427 hardcode_shlibpath_var_F77=no 15428 runpath_var=LD_RUN_PATH 15429 hardcode_runpath_var=yes 15430 ld_shlibs_F77=yes 15431 fi 15432 ;; 15433 15434 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15435 no_undefined_flag_F77='${wl}-z,text' 15436 archive_cmds_need_lc_F77=no 15437 hardcode_shlibpath_var_F77=no 15438 runpath_var='LD_RUN_PATH' 15439 15440 if test "$GCC" = yes; then 15441 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15442 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15443 else 15444 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15445 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15446 fi 15447 ;; 15448 15449 sysv5* | sco3.2v5* | sco5v6*) 15450 # Note: We can NOT use -z defs as we might desire, because we do not 15451 # link with -lc, and that would cause any symbols used from libc to 15452 # always be unresolved, which means just about no library would 15453 # ever link correctly. If we're not using GNU ld we use -z text 15454 # though, which does catch some bad symbols but isn't as heavy-handed 15455 # as -z defs. 15456 no_undefined_flag_F77='${wl}-z,text' 15457 allow_undefined_flag_F77='${wl}-z,nodefs' 15458 archive_cmds_need_lc_F77=no 15459 hardcode_shlibpath_var_F77=no 15460 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15461 hardcode_libdir_separator_F77=':' 15462 link_all_deplibs_F77=yes 15463 export_dynamic_flag_spec_F77='${wl}-Bexport' 15464 runpath_var='LD_RUN_PATH' 15465 15466 if test "$GCC" = yes; then 15467 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15468 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15469 else 15470 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15471 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15472 fi 15473 ;; 15474 15475 uts4*) 15476 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15477 hardcode_libdir_flag_spec_F77='-L$libdir' 15478 hardcode_shlibpath_var_F77=no 15479 ;; 15480 15481 *) 15482 ld_shlibs_F77=no 15483 ;; 15484 esac 15485 fi 15486 15487{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15488echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15489test "$ld_shlibs_F77" = no && can_build_shared=no 15490 15491# 15492# Do we need to explicitly link libc? 15493# 15494case "x$archive_cmds_need_lc_F77" in 15495x|xyes) 15496 # Assume -lc should be added 15497 archive_cmds_need_lc_F77=yes 15498 15499 if test "$enable_shared" = yes && test "$GCC" = yes; then 15500 case $archive_cmds_F77 in 15501 *'~'*) 15502 # FIXME: we may have to deal with multi-command sequences. 15503 ;; 15504 '$CC '*) 15505 # Test whether the compiler implicitly links with -lc since on some 15506 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15507 # to ld, don't add -lc before -lgcc. 15508 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15509echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15510 $rm conftest* 15511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15512 15513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15514 (eval $ac_compile) 2>&5 15515 ac_status=$? 15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15517 (exit $ac_status); } 2>conftest.err; then 15518 soname=conftest 15519 lib=conftest 15520 libobjs=conftest.$ac_objext 15521 deplibs= 15522 wl=$lt_prog_compiler_wl_F77 15523 pic_flag=$lt_prog_compiler_pic_F77 15524 compiler_flags=-v 15525 linker_flags=-v 15526 verstring= 15527 output_objdir=. 15528 libname=conftest 15529 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15530 allow_undefined_flag_F77= 15531 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15532 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15533 ac_status=$? 15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15535 (exit $ac_status); } 15536 then 15537 archive_cmds_need_lc_F77=no 15538 else 15539 archive_cmds_need_lc_F77=yes 15540 fi 15541 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15542 else 15543 cat conftest.err 1>&5 15544 fi 15545 $rm conftest* 15546 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15547echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15548 ;; 15549 esac 15550 fi 15551 ;; 15552esac 15553 15554{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15555echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15556library_names_spec= 15557libname_spec='lib$name' 15558soname_spec= 15559shrext_cmds=".so" 15560postinstall_cmds= 15561postuninstall_cmds= 15562finish_cmds= 15563finish_eval= 15564shlibpath_var= 15565shlibpath_overrides_runpath=unknown 15566version_type=none 15567dynamic_linker="$host_os ld.so" 15568sys_lib_dlsearch_path_spec="/lib /usr/lib" 15569if test "$GCC" = yes; then 15570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15571 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15572 # if the path contains ";" then we assume it to be the separator 15573 # otherwise default to the standard path separator (i.e. ":") - it is 15574 # assumed that no part of a normal pathname contains ";" but that should 15575 # okay in the real world where ";" in dirpaths is itself problematic. 15576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15577 else 15578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15579 fi 15580else 15581 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15582fi 15583need_lib_prefix=unknown 15584hardcode_into_libs=no 15585 15586# when you set need_version to no, make sure it does not cause -set_version 15587# flags to be left without arguments 15588need_version=unknown 15589 15590case $host_os in 15591aix3*) 15592 version_type=linux 15593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15594 shlibpath_var=LIBPATH 15595 15596 # AIX 3 has no versioning support, so we append a major version to the name. 15597 soname_spec='${libname}${release}${shared_ext}$major' 15598 ;; 15599 15600aix4* | aix5*) 15601 version_type=linux 15602 need_lib_prefix=no 15603 need_version=no 15604 hardcode_into_libs=yes 15605 if test "$host_cpu" = ia64; then 15606 # AIX 5 supports IA64 15607 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15608 shlibpath_var=LD_LIBRARY_PATH 15609 else 15610 # With GCC up to 2.95.x, collect2 would create an import file 15611 # for dependence libraries. The import file would start with 15612 # the line `#! .'. This would cause the generated library to 15613 # depend on `.', always an invalid library. This was fixed in 15614 # development snapshots of GCC prior to 3.0. 15615 case $host_os in 15616 aix4 | aix4.[01] | aix4.[01].*) 15617 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15618 echo ' yes ' 15619 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15620 : 15621 else 15622 can_build_shared=no 15623 fi 15624 ;; 15625 esac 15626 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15627 # soname into executable. Probably we can add versioning support to 15628 # collect2, so additional links can be useful in future. 15629 if test "$aix_use_runtimelinking" = yes; then 15630 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15631 # instead of lib<name>.a to let people know that these are not 15632 # typical AIX shared libraries. 15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15634 else 15635 # We preserve .a as extension for shared libraries through AIX4.2 15636 # and later when we are not doing run time linking. 15637 library_names_spec='${libname}${release}.a $libname.a' 15638 soname_spec='${libname}${release}${shared_ext}$major' 15639 fi 15640 shlibpath_var=LIBPATH 15641 fi 15642 ;; 15643 15644amigaos*) 15645 library_names_spec='$libname.ixlibrary $libname.a' 15646 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15647 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' 15648 ;; 15649 15650beos*) 15651 library_names_spec='${libname}${shared_ext}' 15652 dynamic_linker="$host_os ld.so" 15653 shlibpath_var=LIBRARY_PATH 15654 ;; 15655 15656bsdi[45]*) 15657 version_type=linux 15658 need_version=no 15659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15660 soname_spec='${libname}${release}${shared_ext}$major' 15661 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15662 shlibpath_var=LD_LIBRARY_PATH 15663 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15664 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15665 # the default ld.so.conf also contains /usr/contrib/lib and 15666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15667 # libtool to hard-code these into programs 15668 ;; 15669 15670cygwin* | mingw* | pw32*) 15671 version_type=windows 15672 shrext_cmds=".dll" 15673 need_version=no 15674 need_lib_prefix=no 15675 15676 case $GCC,$host_os in 15677 yes,cygwin* | yes,mingw* | yes,pw32*) 15678 library_names_spec='$libname.dll.a' 15679 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15680 postinstall_cmds='base_file=`basename \${file}`~ 15681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15682 dldir=$destdir/`dirname \$dlpath`~ 15683 test -d \$dldir || mkdir -p \$dldir~ 15684 $install_prog $dir/$dlname \$dldir/$dlname~ 15685 chmod a+x \$dldir/$dlname' 15686 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15687 dlpath=$dir/\$dldll~ 15688 $rm \$dlpath' 15689 shlibpath_overrides_runpath=yes 15690 15691 case $host_os in 15692 cygwin*) 15693 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15694 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15695 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15696 ;; 15697 mingw*) 15698 # MinGW DLLs use traditional 'lib' prefix 15699 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15700 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15701 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15702 # It is most probably a Windows format PATH printed by 15703 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15704 # path with ; separators, and with drive letters. We can handle the 15705 # drive letters (cygwin fileutils understands them), so leave them, 15706 # especially as we might pass files found there to a mingw objdump, 15707 # which wouldn't understand a cygwinified path. Ahh. 15708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15709 else 15710 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15711 fi 15712 ;; 15713 pw32*) 15714 # pw32 DLLs use 'pw' prefix rather than 'lib' 15715 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15716 ;; 15717 esac 15718 ;; 15719 15720 *) 15721 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15722 ;; 15723 esac 15724 dynamic_linker='Win32 ld.exe' 15725 # FIXME: first we should search . and the directory the executable is in 15726 shlibpath_var=PATH 15727 ;; 15728 15729darwin* | rhapsody*) 15730 dynamic_linker="$host_os dyld" 15731 version_type=darwin 15732 need_lib_prefix=no 15733 need_version=no 15734 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15735 soname_spec='${libname}${release}${major}$shared_ext' 15736 shlibpath_overrides_runpath=yes 15737 shlibpath_var=DYLD_LIBRARY_PATH 15738 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15739 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15740 if test "$GCC" = yes; then 15741 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15742 else 15743 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15744 fi 15745 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15746 ;; 15747 15748dgux*) 15749 version_type=linux 15750 need_lib_prefix=no 15751 need_version=no 15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15753 soname_spec='${libname}${release}${shared_ext}$major' 15754 shlibpath_var=LD_LIBRARY_PATH 15755 ;; 15756 15757freebsd1*) 15758 dynamic_linker=no 15759 ;; 15760 15761freebsd* | dragonfly*) 15762 # DragonFly does not have aout. When/if they implement a new 15763 # versioning mechanism, adjust this. 15764 if test -x /usr/bin/objformat; then 15765 objformat=`/usr/bin/objformat` 15766 else 15767 case $host_os in 15768 freebsd[123]*) objformat=aout ;; 15769 *) objformat=elf ;; 15770 esac 15771 fi 15772 version_type=freebsd-$objformat 15773 case $version_type in 15774 freebsd-elf*) 15775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15776 need_version=no 15777 need_lib_prefix=no 15778 ;; 15779 freebsd-*) 15780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15781 need_version=yes 15782 ;; 15783 esac 15784 shlibpath_var=LD_LIBRARY_PATH 15785 case $host_os in 15786 freebsd2*) 15787 shlibpath_overrides_runpath=yes 15788 ;; 15789 freebsd3.[01]* | freebsdelf3.[01]*) 15790 shlibpath_overrides_runpath=yes 15791 hardcode_into_libs=yes 15792 ;; 15793 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15794 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15795 shlibpath_overrides_runpath=no 15796 hardcode_into_libs=yes 15797 ;; 15798 freebsd*) # from 4.6 on 15799 shlibpath_overrides_runpath=yes 15800 hardcode_into_libs=yes 15801 ;; 15802 esac 15803 ;; 15804 15805gnu*) 15806 version_type=linux 15807 need_lib_prefix=no 15808 need_version=no 15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15810 soname_spec='${libname}${release}${shared_ext}$major' 15811 shlibpath_var=LD_LIBRARY_PATH 15812 hardcode_into_libs=yes 15813 ;; 15814 15815hpux9* | hpux10* | hpux11*) 15816 # Give a soname corresponding to the major version so that dld.sl refuses to 15817 # link against other versions. 15818 version_type=sunos 15819 need_lib_prefix=no 15820 need_version=no 15821 case $host_cpu in 15822 ia64*) 15823 shrext_cmds='.so' 15824 hardcode_into_libs=yes 15825 dynamic_linker="$host_os dld.so" 15826 shlibpath_var=LD_LIBRARY_PATH 15827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15829 soname_spec='${libname}${release}${shared_ext}$major' 15830 if test "X$HPUX_IA64_MODE" = X32; then 15831 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15832 else 15833 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15834 fi 15835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15836 ;; 15837 hppa*64*) 15838 shrext_cmds='.sl' 15839 hardcode_into_libs=yes 15840 dynamic_linker="$host_os dld.sl" 15841 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15844 soname_spec='${libname}${release}${shared_ext}$major' 15845 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15847 ;; 15848 *) 15849 shrext_cmds='.sl' 15850 dynamic_linker="$host_os dld.sl" 15851 shlibpath_var=SHLIB_PATH 15852 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15854 soname_spec='${libname}${release}${shared_ext}$major' 15855 ;; 15856 esac 15857 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15858 postinstall_cmds='chmod 555 $lib' 15859 ;; 15860 15861interix3*) 15862 version_type=linux 15863 need_lib_prefix=no 15864 need_version=no 15865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15866 soname_spec='${libname}${release}${shared_ext}$major' 15867 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15868 shlibpath_var=LD_LIBRARY_PATH 15869 shlibpath_overrides_runpath=no 15870 hardcode_into_libs=yes 15871 ;; 15872 15873irix5* | irix6* | nonstopux*) 15874 case $host_os in 15875 nonstopux*) version_type=nonstopux ;; 15876 *) 15877 if test "$lt_cv_prog_gnu_ld" = yes; then 15878 version_type=linux 15879 else 15880 version_type=irix 15881 fi ;; 15882 esac 15883 need_lib_prefix=no 15884 need_version=no 15885 soname_spec='${libname}${release}${shared_ext}$major' 15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15887 case $host_os in 15888 irix5* | nonstopux*) 15889 libsuff= shlibsuff= 15890 ;; 15891 *) 15892 case $LD in # libtool.m4 will add one of these switches to LD 15893 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15894 libsuff= shlibsuff= libmagic=32-bit;; 15895 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15896 libsuff=32 shlibsuff=N32 libmagic=N32;; 15897 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15898 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15899 *) libsuff= shlibsuff= libmagic=never-match;; 15900 esac 15901 ;; 15902 esac 15903 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15904 shlibpath_overrides_runpath=no 15905 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15906 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15907 hardcode_into_libs=yes 15908 ;; 15909 15910# No shared lib support for Linux oldld, aout, or coff. 15911linux*oldld* | linux*aout* | linux*coff*) 15912 dynamic_linker=no 15913 ;; 15914 15915# This must be Linux ELF. 15916linux* | k*bsd*-gnu) 15917 version_type=linux 15918 need_lib_prefix=no 15919 need_version=no 15920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15921 soname_spec='${libname}${release}${shared_ext}$major' 15922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15923 shlibpath_var=LD_LIBRARY_PATH 15924 shlibpath_overrides_runpath=no 15925 # This implies no fast_install, which is unacceptable. 15926 # Some rework will be needed to allow for fast_install 15927 # before this can be enabled. 15928 hardcode_into_libs=yes 15929 15930 # Append ld.so.conf contents to the search path 15931 if test -f /etc/ld.so.conf; then 15932 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15934 fi 15935 15936 # We used to test for /lib/ld.so.1 and disable shared libraries on 15937 # powerpc, because MkLinux only supported shared libraries with the 15938 # GNU dynamic linker. Since this was broken with cross compilers, 15939 # most powerpc-linux boxes support dynamic linking these days and 15940 # people can always --disable-shared, the test was removed, and we 15941 # assume the GNU/Linux dynamic linker is in use. 15942 dynamic_linker='GNU/Linux ld.so' 15943 ;; 15944 15945netbsdelf*-gnu) 15946 version_type=linux 15947 need_lib_prefix=no 15948 need_version=no 15949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15950 soname_spec='${libname}${release}${shared_ext}$major' 15951 shlibpath_var=LD_LIBRARY_PATH 15952 shlibpath_overrides_runpath=no 15953 hardcode_into_libs=yes 15954 dynamic_linker='NetBSD ld.elf_so' 15955 ;; 15956 15957netbsd*) 15958 version_type=sunos 15959 need_lib_prefix=no 15960 need_version=no 15961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15964 dynamic_linker='NetBSD (a.out) ld.so' 15965 else 15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15967 soname_spec='${libname}${release}${shared_ext}$major' 15968 dynamic_linker='NetBSD ld.elf_so' 15969 fi 15970 shlibpath_var=LD_LIBRARY_PATH 15971 shlibpath_overrides_runpath=yes 15972 hardcode_into_libs=yes 15973 ;; 15974 15975newsos6) 15976 version_type=linux 15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15978 shlibpath_var=LD_LIBRARY_PATH 15979 shlibpath_overrides_runpath=yes 15980 ;; 15981 15982nto-qnx*) 15983 version_type=linux 15984 need_lib_prefix=no 15985 need_version=no 15986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15987 soname_spec='${libname}${release}${shared_ext}$major' 15988 shlibpath_var=LD_LIBRARY_PATH 15989 shlibpath_overrides_runpath=yes 15990 ;; 15991 15992openbsd*) 15993 version_type=sunos 15994 sys_lib_dlsearch_path_spec="/usr/lib" 15995 need_lib_prefix=no 15996 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15997 case $host_os in 15998 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15999 *) need_version=no ;; 16000 esac 16001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16003 shlibpath_var=LD_LIBRARY_PATH 16004 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16005 case $host_os in 16006 openbsd2.[89] | openbsd2.[89].*) 16007 shlibpath_overrides_runpath=no 16008 ;; 16009 *) 16010 shlibpath_overrides_runpath=yes 16011 ;; 16012 esac 16013 else 16014 shlibpath_overrides_runpath=yes 16015 fi 16016 ;; 16017 16018os2*) 16019 libname_spec='$name' 16020 shrext_cmds=".dll" 16021 need_lib_prefix=no 16022 library_names_spec='$libname${shared_ext} $libname.a' 16023 dynamic_linker='OS/2 ld.exe' 16024 shlibpath_var=LIBPATH 16025 ;; 16026 16027osf3* | osf4* | osf5*) 16028 version_type=osf 16029 need_lib_prefix=no 16030 need_version=no 16031 soname_spec='${libname}${release}${shared_ext}$major' 16032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16033 shlibpath_var=LD_LIBRARY_PATH 16034 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16035 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16036 ;; 16037 16038solaris*) 16039 version_type=linux 16040 need_lib_prefix=no 16041 need_version=no 16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16043 soname_spec='${libname}${release}${shared_ext}$major' 16044 shlibpath_var=LD_LIBRARY_PATH 16045 shlibpath_overrides_runpath=yes 16046 hardcode_into_libs=yes 16047 # ldd complains unless libraries are executable 16048 postinstall_cmds='chmod +x $lib' 16049 ;; 16050 16051sunos4*) 16052 version_type=sunos 16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16054 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16055 shlibpath_var=LD_LIBRARY_PATH 16056 shlibpath_overrides_runpath=yes 16057 if test "$with_gnu_ld" = yes; then 16058 need_lib_prefix=no 16059 fi 16060 need_version=yes 16061 ;; 16062 16063sysv4 | sysv4.3*) 16064 version_type=linux 16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16066 soname_spec='${libname}${release}${shared_ext}$major' 16067 shlibpath_var=LD_LIBRARY_PATH 16068 case $host_vendor in 16069 sni) 16070 shlibpath_overrides_runpath=no 16071 need_lib_prefix=no 16072 export_dynamic_flag_spec='${wl}-Blargedynsym' 16073 runpath_var=LD_RUN_PATH 16074 ;; 16075 siemens) 16076 need_lib_prefix=no 16077 ;; 16078 motorola) 16079 need_lib_prefix=no 16080 need_version=no 16081 shlibpath_overrides_runpath=no 16082 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16083 ;; 16084 esac 16085 ;; 16086 16087sysv4*MP*) 16088 if test -d /usr/nec ;then 16089 version_type=linux 16090 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16091 soname_spec='$libname${shared_ext}.$major' 16092 shlibpath_var=LD_LIBRARY_PATH 16093 fi 16094 ;; 16095 16096sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16097 version_type=freebsd-elf 16098 need_lib_prefix=no 16099 need_version=no 16100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16101 soname_spec='${libname}${release}${shared_ext}$major' 16102 shlibpath_var=LD_LIBRARY_PATH 16103 hardcode_into_libs=yes 16104 if test "$with_gnu_ld" = yes; then 16105 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16106 shlibpath_overrides_runpath=no 16107 else 16108 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16109 shlibpath_overrides_runpath=yes 16110 case $host_os in 16111 sco3.2v5*) 16112 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16113 ;; 16114 esac 16115 fi 16116 sys_lib_dlsearch_path_spec='/usr/lib' 16117 ;; 16118 16119uts4*) 16120 version_type=linux 16121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16122 soname_spec='${libname}${release}${shared_ext}$major' 16123 shlibpath_var=LD_LIBRARY_PATH 16124 ;; 16125 16126*) 16127 dynamic_linker=no 16128 ;; 16129esac 16130{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16131echo "${ECHO_T}$dynamic_linker" >&6; } 16132test "$dynamic_linker" = no && can_build_shared=no 16133 16134variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16135if test "$GCC" = yes; then 16136 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16137fi 16138 16139{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16140echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16141hardcode_action_F77= 16142if test -n "$hardcode_libdir_flag_spec_F77" || \ 16143 test -n "$runpath_var_F77" || \ 16144 test "X$hardcode_automatic_F77" = "Xyes" ; then 16145 16146 # We can hardcode non-existant directories. 16147 if test "$hardcode_direct_F77" != no && 16148 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16149 # have to relink, otherwise we might link with an installed library 16150 # when we should be linking with a yet-to-be-installed one 16151 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16152 test "$hardcode_minus_L_F77" != no; then 16153 # Linking always hardcodes the temporary library directory. 16154 hardcode_action_F77=relink 16155 else 16156 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16157 hardcode_action_F77=immediate 16158 fi 16159else 16160 # We cannot hardcode anything, or else we can only hardcode existing 16161 # directories. 16162 hardcode_action_F77=unsupported 16163fi 16164{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16165echo "${ECHO_T}$hardcode_action_F77" >&6; } 16166 16167if test "$hardcode_action_F77" = relink; then 16168 # Fast installation is not supported 16169 enable_fast_install=no 16170elif test "$shlibpath_overrides_runpath" = yes || 16171 test "$enable_shared" = no; then 16172 # Fast installation is not necessary 16173 enable_fast_install=needless 16174fi 16175 16176 16177# The else clause should only fire when bootstrapping the 16178# libtool distribution, otherwise you forgot to ship ltmain.sh 16179# with your package, and you will get complaints that there are 16180# no rules to generate ltmain.sh. 16181if test -f "$ltmain"; then 16182 # See if we are running on zsh, and set the options which allow our commands through 16183 # without removal of \ escapes. 16184 if test -n "${ZSH_VERSION+set}" ; then 16185 setopt NO_GLOB_SUBST 16186 fi 16187 # Now quote all the things that may contain metacharacters while being 16188 # careful not to overquote the AC_SUBSTed values. We take copies of the 16189 # variables and quote the copies for generation of the libtool script. 16190 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16191 SED SHELL STRIP \ 16192 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16193 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16194 deplibs_check_method reload_flag reload_cmds need_locks \ 16195 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16196 lt_cv_sys_global_symbol_to_c_name_address \ 16197 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16198 old_postinstall_cmds old_postuninstall_cmds \ 16199 compiler_F77 \ 16200 CC_F77 \ 16201 LD_F77 \ 16202 lt_prog_compiler_wl_F77 \ 16203 lt_prog_compiler_pic_F77 \ 16204 lt_prog_compiler_static_F77 \ 16205 lt_prog_compiler_no_builtin_flag_F77 \ 16206 export_dynamic_flag_spec_F77 \ 16207 thread_safe_flag_spec_F77 \ 16208 whole_archive_flag_spec_F77 \ 16209 enable_shared_with_static_runtimes_F77 \ 16210 old_archive_cmds_F77 \ 16211 old_archive_from_new_cmds_F77 \ 16212 predep_objects_F77 \ 16213 postdep_objects_F77 \ 16214 predeps_F77 \ 16215 postdeps_F77 \ 16216 compiler_lib_search_path_F77 \ 16217 archive_cmds_F77 \ 16218 archive_expsym_cmds_F77 \ 16219 postinstall_cmds_F77 \ 16220 postuninstall_cmds_F77 \ 16221 old_archive_from_expsyms_cmds_F77 \ 16222 allow_undefined_flag_F77 \ 16223 no_undefined_flag_F77 \ 16224 export_symbols_cmds_F77 \ 16225 hardcode_libdir_flag_spec_F77 \ 16226 hardcode_libdir_flag_spec_ld_F77 \ 16227 hardcode_libdir_separator_F77 \ 16228 hardcode_automatic_F77 \ 16229 module_cmds_F77 \ 16230 module_expsym_cmds_F77 \ 16231 lt_cv_prog_compiler_c_o_F77 \ 16232 exclude_expsyms_F77 \ 16233 include_expsyms_F77; do 16234 16235 case $var in 16236 old_archive_cmds_F77 | \ 16237 old_archive_from_new_cmds_F77 | \ 16238 archive_cmds_F77 | \ 16239 archive_expsym_cmds_F77 | \ 16240 module_cmds_F77 | \ 16241 module_expsym_cmds_F77 | \ 16242 old_archive_from_expsyms_cmds_F77 | \ 16243 export_symbols_cmds_F77 | \ 16244 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16245 postinstall_cmds | postuninstall_cmds | \ 16246 old_postinstall_cmds | old_postuninstall_cmds | \ 16247 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16248 # Double-quote double-evaled strings. 16249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16250 ;; 16251 *) 16252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16253 ;; 16254 esac 16255 done 16256 16257 case $lt_echo in 16258 *'\$0 --fallback-echo"') 16259 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16260 ;; 16261 esac 16262 16263cfgfile="$ofile" 16264 16265 cat <<__EOF__ >> "$cfgfile" 16266# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16267 16268# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16269 16270# Shell to use when invoking shell scripts. 16271SHELL=$lt_SHELL 16272 16273# Whether or not to build shared libraries. 16274build_libtool_libs=$enable_shared 16275 16276# Whether or not to build static libraries. 16277build_old_libs=$enable_static 16278 16279# Whether or not to add -lc for building shared libraries. 16280build_libtool_need_lc=$archive_cmds_need_lc_F77 16281 16282# Whether or not to disallow shared libs when runtime libs are static 16283allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16284 16285# Whether or not to optimize for fast installation. 16286fast_install=$enable_fast_install 16287 16288# The host system. 16289host_alias=$host_alias 16290host=$host 16291host_os=$host_os 16292 16293# The build system. 16294build_alias=$build_alias 16295build=$build 16296build_os=$build_os 16297 16298# An echo program that does not interpret backslashes. 16299echo=$lt_echo 16300 16301# The archiver. 16302AR=$lt_AR 16303AR_FLAGS=$lt_AR_FLAGS 16304 16305# A C compiler. 16306LTCC=$lt_LTCC 16307 16308# LTCC compiler flags. 16309LTCFLAGS=$lt_LTCFLAGS 16310 16311# A language-specific compiler. 16312CC=$lt_compiler_F77 16313 16314# Is the compiler the GNU C compiler? 16315with_gcc=$GCC_F77 16316 16317# An ERE matcher. 16318EGREP=$lt_EGREP 16319 16320# The linker used to build libraries. 16321LD=$lt_LD_F77 16322 16323# Whether we need hard or soft links. 16324LN_S=$lt_LN_S 16325 16326# A BSD-compatible nm program. 16327NM=$lt_NM 16328 16329# A symbol stripping program 16330STRIP=$lt_STRIP 16331 16332# Used to examine libraries when file_magic_cmd begins "file" 16333MAGIC_CMD=$MAGIC_CMD 16334 16335# Used on cygwin: DLL creation program. 16336DLLTOOL="$DLLTOOL" 16337 16338# Used on cygwin: object dumper. 16339OBJDUMP="$OBJDUMP" 16340 16341# Used on cygwin: assembler. 16342AS="$AS" 16343 16344# The name of the directory that contains temporary libtool files. 16345objdir=$objdir 16346 16347# How to create reloadable object files. 16348reload_flag=$lt_reload_flag 16349reload_cmds=$lt_reload_cmds 16350 16351# How to pass a linker flag through the compiler. 16352wl=$lt_lt_prog_compiler_wl_F77 16353 16354# Object file suffix (normally "o"). 16355objext="$ac_objext" 16356 16357# Old archive suffix (normally "a"). 16358libext="$libext" 16359 16360# Shared library suffix (normally ".so"). 16361shrext_cmds='$shrext_cmds' 16362 16363# Executable file suffix (normally ""). 16364exeext="$exeext" 16365 16366# Additional compiler flags for building library objects. 16367pic_flag=$lt_lt_prog_compiler_pic_F77 16368pic_mode=$pic_mode 16369 16370# What is the maximum length of a command? 16371max_cmd_len=$lt_cv_sys_max_cmd_len 16372 16373# Does compiler simultaneously support -c and -o options? 16374compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16375 16376# Must we lock files when doing compilation? 16377need_locks=$lt_need_locks 16378 16379# Do we need the lib prefix for modules? 16380need_lib_prefix=$need_lib_prefix 16381 16382# Do we need a version for libraries? 16383need_version=$need_version 16384 16385# Whether dlopen is supported. 16386dlopen_support=$enable_dlopen 16387 16388# Whether dlopen of programs is supported. 16389dlopen_self=$enable_dlopen_self 16390 16391# Whether dlopen of statically linked programs is supported. 16392dlopen_self_static=$enable_dlopen_self_static 16393 16394# Compiler flag to prevent dynamic linking. 16395link_static_flag=$lt_lt_prog_compiler_static_F77 16396 16397# Compiler flag to turn off builtin functions. 16398no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16399 16400# Compiler flag to allow reflexive dlopens. 16401export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16402 16403# Compiler flag to generate shared objects directly from archives. 16404whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16405 16406# Compiler flag to generate thread-safe objects. 16407thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16408 16409# Library versioning type. 16410version_type=$version_type 16411 16412# Format of library name prefix. 16413libname_spec=$lt_libname_spec 16414 16415# List of archive names. First name is the real one, the rest are links. 16416# The last name is the one that the linker finds with -lNAME. 16417library_names_spec=$lt_library_names_spec 16418 16419# The coded name of the library, if different from the real name. 16420soname_spec=$lt_soname_spec 16421 16422# Commands used to build and install an old-style archive. 16423RANLIB=$lt_RANLIB 16424old_archive_cmds=$lt_old_archive_cmds_F77 16425old_postinstall_cmds=$lt_old_postinstall_cmds 16426old_postuninstall_cmds=$lt_old_postuninstall_cmds 16427 16428# Create an old-style archive from a shared archive. 16429old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16430 16431# Create a temporary old-style archive to link instead of a shared archive. 16432old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16433 16434# Commands used to build and install a shared archive. 16435archive_cmds=$lt_archive_cmds_F77 16436archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16437postinstall_cmds=$lt_postinstall_cmds 16438postuninstall_cmds=$lt_postuninstall_cmds 16439 16440# Commands used to build a loadable module (assumed same as above if empty) 16441module_cmds=$lt_module_cmds_F77 16442module_expsym_cmds=$lt_module_expsym_cmds_F77 16443 16444# Commands to strip libraries. 16445old_striplib=$lt_old_striplib 16446striplib=$lt_striplib 16447 16448# Dependencies to place before the objects being linked to create a 16449# shared library. 16450predep_objects=$lt_predep_objects_F77 16451 16452# Dependencies to place after the objects being linked to create a 16453# shared library. 16454postdep_objects=$lt_postdep_objects_F77 16455 16456# Dependencies to place before the objects being linked to create a 16457# shared library. 16458predeps=$lt_predeps_F77 16459 16460# Dependencies to place after the objects being linked to create a 16461# shared library. 16462postdeps=$lt_postdeps_F77 16463 16464# The library search path used internally by the compiler when linking 16465# a shared library. 16466compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16467 16468# Method to check whether dependent libraries are shared objects. 16469deplibs_check_method=$lt_deplibs_check_method 16470 16471# Command to use when deplibs_check_method == file_magic. 16472file_magic_cmd=$lt_file_magic_cmd 16473 16474# Flag that allows shared libraries with undefined symbols to be built. 16475allow_undefined_flag=$lt_allow_undefined_flag_F77 16476 16477# Flag that forces no undefined symbols. 16478no_undefined_flag=$lt_no_undefined_flag_F77 16479 16480# Commands used to finish a libtool library installation in a directory. 16481finish_cmds=$lt_finish_cmds 16482 16483# Same as above, but a single script fragment to be evaled but not shown. 16484finish_eval=$lt_finish_eval 16485 16486# Take the output of nm and produce a listing of raw symbols and C names. 16487global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16488 16489# Transform the output of nm in a proper C declaration 16490global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16491 16492# Transform the output of nm in a C name address pair 16493global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16494 16495# This is the shared library runtime path variable. 16496runpath_var=$runpath_var 16497 16498# This is the shared library path variable. 16499shlibpath_var=$shlibpath_var 16500 16501# Is shlibpath searched before the hard-coded library search path? 16502shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16503 16504# How to hardcode a shared library path into an executable. 16505hardcode_action=$hardcode_action_F77 16506 16507# Whether we should hardcode library paths into libraries. 16508hardcode_into_libs=$hardcode_into_libs 16509 16510# Flag to hardcode \$libdir into a binary during linking. 16511# This must work even if \$libdir does not exist. 16512hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16513 16514# If ld is used when linking, flag to hardcode \$libdir into 16515# a binary during linking. This must work even if \$libdir does 16516# not exist. 16517hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16518 16519# Whether we need a single -rpath flag with a separated argument. 16520hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16521 16522# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16523# resulting binary. 16524hardcode_direct=$hardcode_direct_F77 16525 16526# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16527# resulting binary. 16528hardcode_minus_L=$hardcode_minus_L_F77 16529 16530# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16531# the resulting binary. 16532hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16533 16534# Set to yes if building a shared library automatically hardcodes DIR into the library 16535# and all subsequent libraries and executables linked against it. 16536hardcode_automatic=$hardcode_automatic_F77 16537 16538# Variables whose values should be saved in libtool wrapper scripts and 16539# restored at relink time. 16540variables_saved_for_relink="$variables_saved_for_relink" 16541 16542# Whether libtool must link a program against all its dependency libraries. 16543link_all_deplibs=$link_all_deplibs_F77 16544 16545# Compile-time system search path for libraries 16546sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16547 16548# Run-time system search path for libraries 16549sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16550 16551# Fix the shell variable \$srcfile for the compiler. 16552fix_srcfile_path="$fix_srcfile_path_F77" 16553 16554# Set to yes if exported symbols are required. 16555always_export_symbols=$always_export_symbols_F77 16556 16557# The commands to list exported symbols. 16558export_symbols_cmds=$lt_export_symbols_cmds_F77 16559 16560# The commands to extract the exported symbol list from a shared archive. 16561extract_expsyms_cmds=$lt_extract_expsyms_cmds 16562 16563# Symbols that should not be listed in the preloaded symbols. 16564exclude_expsyms=$lt_exclude_expsyms_F77 16565 16566# Symbols that must always be exported. 16567include_expsyms=$lt_include_expsyms_F77 16568 16569# ### END LIBTOOL TAG CONFIG: $tagname 16570 16571__EOF__ 16572 16573 16574else 16575 # If there is no Makefile yet, we rely on a make rule to execute 16576 # `config.status --recheck' to rerun these tests and create the 16577 # libtool script then. 16578 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16579 if test -f "$ltmain_in"; then 16580 test -f Makefile && make "$ltmain" 16581 fi 16582fi 16583 16584 16585ac_ext=c 16586ac_cpp='$CPP $CPPFLAGS' 16587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16589ac_compiler_gnu=$ac_cv_c_compiler_gnu 16590 16591CC="$lt_save_CC" 16592 16593 else 16594 tagname="" 16595 fi 16596 ;; 16597 16598 GCJ) 16599 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16600 16601 16602# Source file extension for Java test sources. 16603ac_ext=java 16604 16605# Object file extension for compiled Java test sources. 16606objext=o 16607objext_GCJ=$objext 16608 16609# Code to be used in simple compile tests 16610lt_simple_compile_test_code="class foo {}\n" 16611 16612# Code to be used in simple link tests 16613lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16614 16615# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16616 16617# If no C compiler was specified, use CC. 16618LTCC=${LTCC-"$CC"} 16619 16620# If no C compiler flags were specified, use CFLAGS. 16621LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16622 16623# Allow CC to be a program name with arguments. 16624compiler=$CC 16625 16626 16627# save warnings/boilerplate of simple test code 16628ac_outfile=conftest.$ac_objext 16629printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16630eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16631_lt_compiler_boilerplate=`cat conftest.err` 16632$rm conftest* 16633 16634ac_outfile=conftest.$ac_objext 16635printf "$lt_simple_link_test_code" >conftest.$ac_ext 16636eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16637_lt_linker_boilerplate=`cat conftest.err` 16638$rm conftest* 16639 16640 16641# Allow CC to be a program name with arguments. 16642lt_save_CC="$CC" 16643CC=${GCJ-"gcj"} 16644compiler=$CC 16645compiler_GCJ=$CC 16646for cc_temp in $compiler""; do 16647 case $cc_temp in 16648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16650 \-*) ;; 16651 *) break;; 16652 esac 16653done 16654cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16655 16656 16657# GCJ did not exist at the time GCC didn't implicitly link libc in. 16658archive_cmds_need_lc_GCJ=no 16659 16660old_archive_cmds_GCJ=$old_archive_cmds 16661 16662 16663lt_prog_compiler_no_builtin_flag_GCJ= 16664 16665if test "$GCC" = yes; then 16666 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16667 16668 16669{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16670echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16671if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16672 echo $ECHO_N "(cached) $ECHO_C" >&6 16673else 16674 lt_cv_prog_compiler_rtti_exceptions=no 16675 ac_outfile=conftest.$ac_objext 16676 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16677 lt_compiler_flag="-fno-rtti -fno-exceptions" 16678 # Insert the option either (1) after the last *FLAGS variable, or 16679 # (2) before a word containing "conftest.", or (3) at the end. 16680 # Note that $ac_compile itself does not contain backslashes and begins 16681 # with a dollar sign (not a hyphen), so the echo should work correctly. 16682 # The option is referenced via a variable to avoid confusing sed. 16683 lt_compile=`echo "$ac_compile" | $SED \ 16684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16686 -e 's:$: $lt_compiler_flag:'` 16687 (eval echo "\"\$as_me:16687: $lt_compile\"" >&5) 16688 (eval "$lt_compile" 2>conftest.err) 16689 ac_status=$? 16690 cat conftest.err >&5 16691 echo "$as_me:16691: \$? = $ac_status" >&5 16692 if (exit $ac_status) && test -s "$ac_outfile"; then 16693 # The compiler can only warn and ignore the option if not recognized 16694 # So say no if there are warnings other than the usual output. 16695 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16697 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16698 lt_cv_prog_compiler_rtti_exceptions=yes 16699 fi 16700 fi 16701 $rm conftest* 16702 16703fi 16704{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16705echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16706 16707if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16708 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16709else 16710 : 16711fi 16712 16713fi 16714 16715lt_prog_compiler_wl_GCJ= 16716lt_prog_compiler_pic_GCJ= 16717lt_prog_compiler_static_GCJ= 16718 16719{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16720echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16721 16722 if test "$GCC" = yes; then 16723 lt_prog_compiler_wl_GCJ='-Wl,' 16724 lt_prog_compiler_static_GCJ='-static' 16725 16726 case $host_os in 16727 aix*) 16728 # All AIX code is PIC. 16729 if test "$host_cpu" = ia64; then 16730 # AIX 5 now supports IA64 processor 16731 lt_prog_compiler_static_GCJ='-Bstatic' 16732 fi 16733 ;; 16734 16735 amigaos*) 16736 # FIXME: we need at least 68020 code to build shared libraries, but 16737 # adding the `-m68020' flag to GCC prevents building anything better, 16738 # like `-m68040'. 16739 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16740 ;; 16741 16742 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16743 # PIC is the default for these OSes. 16744 ;; 16745 16746 mingw* | pw32* | os2*) 16747 # This hack is so that the source file can tell whether it is being 16748 # built for inclusion in a dll (and should export symbols for example). 16749 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16750 ;; 16751 16752 darwin* | rhapsody*) 16753 # PIC is the default on this platform 16754 # Common symbols not allowed in MH_DYLIB files 16755 lt_prog_compiler_pic_GCJ='-fno-common' 16756 ;; 16757 16758 interix3*) 16759 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16760 # Instead, we relocate shared libraries at runtime. 16761 ;; 16762 16763 msdosdjgpp*) 16764 # Just because we use GCC doesn't mean we suddenly get shared libraries 16765 # on systems that don't support them. 16766 lt_prog_compiler_can_build_shared_GCJ=no 16767 enable_shared=no 16768 ;; 16769 16770 sysv4*MP*) 16771 if test -d /usr/nec; then 16772 lt_prog_compiler_pic_GCJ=-Kconform_pic 16773 fi 16774 ;; 16775 16776 hpux*) 16777 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16778 # not for PA HP-UX. 16779 case $host_cpu in 16780 hppa*64*|ia64*) 16781 # +Z the default 16782 ;; 16783 *) 16784 lt_prog_compiler_pic_GCJ='-fPIC' 16785 ;; 16786 esac 16787 ;; 16788 16789 *) 16790 lt_prog_compiler_pic_GCJ='-fPIC' 16791 ;; 16792 esac 16793 else 16794 # PORTME Check for flag to pass linker flags through the system compiler. 16795 case $host_os in 16796 aix*) 16797 lt_prog_compiler_wl_GCJ='-Wl,' 16798 if test "$host_cpu" = ia64; then 16799 # AIX 5 now supports IA64 processor 16800 lt_prog_compiler_static_GCJ='-Bstatic' 16801 else 16802 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16803 fi 16804 ;; 16805 darwin*) 16806 # PIC is the default on this platform 16807 # Common symbols not allowed in MH_DYLIB files 16808 case $cc_basename in 16809 xlc*) 16810 lt_prog_compiler_pic_GCJ='-qnocommon' 16811 lt_prog_compiler_wl_GCJ='-Wl,' 16812 ;; 16813 esac 16814 ;; 16815 16816 mingw* | pw32* | os2*) 16817 # This hack is so that the source file can tell whether it is being 16818 # built for inclusion in a dll (and should export symbols for example). 16819 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16820 ;; 16821 16822 hpux9* | hpux10* | hpux11*) 16823 lt_prog_compiler_wl_GCJ='-Wl,' 16824 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16825 # not for PA HP-UX. 16826 case $host_cpu in 16827 hppa*64*|ia64*) 16828 # +Z the default 16829 ;; 16830 *) 16831 lt_prog_compiler_pic_GCJ='+Z' 16832 ;; 16833 esac 16834 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16835 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16836 ;; 16837 16838 irix5* | irix6* | nonstopux*) 16839 lt_prog_compiler_wl_GCJ='-Wl,' 16840 # PIC (with -KPIC) is the default. 16841 lt_prog_compiler_static_GCJ='-non_shared' 16842 ;; 16843 16844 newsos6) 16845 lt_prog_compiler_pic_GCJ='-KPIC' 16846 lt_prog_compiler_static_GCJ='-Bstatic' 16847 ;; 16848 16849 linux* | k*bsd*-gnu) 16850 case $cc_basename in 16851 icc* | ecc*) 16852 lt_prog_compiler_wl_GCJ='-Wl,' 16853 lt_prog_compiler_pic_GCJ='-KPIC' 16854 lt_prog_compiler_static_GCJ='-static' 16855 ;; 16856 pgcc* | pgf77* | pgf90* | pgf95*) 16857 # Portland Group compilers (*not* the Pentium gcc compiler, 16858 # which looks to be a dead project) 16859 lt_prog_compiler_wl_GCJ='-Wl,' 16860 lt_prog_compiler_pic_GCJ='-fpic' 16861 lt_prog_compiler_static_GCJ='-Bstatic' 16862 ;; 16863 ccc*) 16864 lt_prog_compiler_wl_GCJ='-Wl,' 16865 # All Alpha code is PIC. 16866 lt_prog_compiler_static_GCJ='-non_shared' 16867 ;; 16868 esac 16869 ;; 16870 16871 osf3* | osf4* | osf5*) 16872 lt_prog_compiler_wl_GCJ='-Wl,' 16873 # All OSF/1 code is PIC. 16874 lt_prog_compiler_static_GCJ='-non_shared' 16875 ;; 16876 16877 solaris*) 16878 lt_prog_compiler_pic_GCJ='-KPIC' 16879 lt_prog_compiler_static_GCJ='-Bstatic' 16880 case $cc_basename in 16881 f77* | f90* | f95*) 16882 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16883 *) 16884 lt_prog_compiler_wl_GCJ='-Wl,';; 16885 esac 16886 ;; 16887 16888 sunos4*) 16889 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16890 lt_prog_compiler_pic_GCJ='-PIC' 16891 lt_prog_compiler_static_GCJ='-Bstatic' 16892 ;; 16893 16894 sysv4 | sysv4.2uw2* | sysv4.3*) 16895 lt_prog_compiler_wl_GCJ='-Wl,' 16896 lt_prog_compiler_pic_GCJ='-KPIC' 16897 lt_prog_compiler_static_GCJ='-Bstatic' 16898 ;; 16899 16900 sysv4*MP*) 16901 if test -d /usr/nec ;then 16902 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16903 lt_prog_compiler_static_GCJ='-Bstatic' 16904 fi 16905 ;; 16906 16907 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16908 lt_prog_compiler_wl_GCJ='-Wl,' 16909 lt_prog_compiler_pic_GCJ='-KPIC' 16910 lt_prog_compiler_static_GCJ='-Bstatic' 16911 ;; 16912 16913 unicos*) 16914 lt_prog_compiler_wl_GCJ='-Wl,' 16915 lt_prog_compiler_can_build_shared_GCJ=no 16916 ;; 16917 16918 uts4*) 16919 lt_prog_compiler_pic_GCJ='-pic' 16920 lt_prog_compiler_static_GCJ='-Bstatic' 16921 ;; 16922 16923 *) 16924 lt_prog_compiler_can_build_shared_GCJ=no 16925 ;; 16926 esac 16927 fi 16928 16929{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16930echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16931 16932# 16933# Check to make sure the PIC flag actually works. 16934# 16935if test -n "$lt_prog_compiler_pic_GCJ"; then 16936 16937{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16938echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16939if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16940 echo $ECHO_N "(cached) $ECHO_C" >&6 16941else 16942 lt_prog_compiler_pic_works_GCJ=no 16943 ac_outfile=conftest.$ac_objext 16944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16945 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16946 # Insert the option either (1) after the last *FLAGS variable, or 16947 # (2) before a word containing "conftest.", or (3) at the end. 16948 # Note that $ac_compile itself does not contain backslashes and begins 16949 # with a dollar sign (not a hyphen), so the echo should work correctly. 16950 # The option is referenced via a variable to avoid confusing sed. 16951 lt_compile=`echo "$ac_compile" | $SED \ 16952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16954 -e 's:$: $lt_compiler_flag:'` 16955 (eval echo "\"\$as_me:16955: $lt_compile\"" >&5) 16956 (eval "$lt_compile" 2>conftest.err) 16957 ac_status=$? 16958 cat conftest.err >&5 16959 echo "$as_me:16959: \$? = $ac_status" >&5 16960 if (exit $ac_status) && test -s "$ac_outfile"; then 16961 # The compiler can only warn and ignore the option if not recognized 16962 # So say no if there are warnings other than the usual output. 16963 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16966 lt_prog_compiler_pic_works_GCJ=yes 16967 fi 16968 fi 16969 $rm conftest* 16970 16971fi 16972{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16973echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16974 16975if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16976 case $lt_prog_compiler_pic_GCJ in 16977 "" | " "*) ;; 16978 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16979 esac 16980else 16981 lt_prog_compiler_pic_GCJ= 16982 lt_prog_compiler_can_build_shared_GCJ=no 16983fi 16984 16985fi 16986case $host_os in 16987 # For platforms which do not support PIC, -DPIC is meaningless: 16988 *djgpp*) 16989 lt_prog_compiler_pic_GCJ= 16990 ;; 16991 *) 16992 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16993 ;; 16994esac 16995 16996# 16997# Check to make sure the static flag actually works. 16998# 16999wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17000{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17001echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17002if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17003 echo $ECHO_N "(cached) $ECHO_C" >&6 17004else 17005 lt_prog_compiler_static_works_GCJ=no 17006 save_LDFLAGS="$LDFLAGS" 17007 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17008 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17009 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17010 # The linker can only warn and ignore the option if not recognized 17011 # So say no if there are warnings 17012 if test -s conftest.err; then 17013 # Append any errors to the config.log. 17014 cat conftest.err 1>&5 17015 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17017 if diff conftest.exp conftest.er2 >/dev/null; then 17018 lt_prog_compiler_static_works_GCJ=yes 17019 fi 17020 else 17021 lt_prog_compiler_static_works_GCJ=yes 17022 fi 17023 fi 17024 $rm conftest* 17025 LDFLAGS="$save_LDFLAGS" 17026 17027fi 17028{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17029echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17030 17031if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17032 : 17033else 17034 lt_prog_compiler_static_GCJ= 17035fi 17036 17037 17038{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17039echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17040if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17041 echo $ECHO_N "(cached) $ECHO_C" >&6 17042else 17043 lt_cv_prog_compiler_c_o_GCJ=no 17044 $rm -r conftest 2>/dev/null 17045 mkdir conftest 17046 cd conftest 17047 mkdir out 17048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17049 17050 lt_compiler_flag="-o out/conftest2.$ac_objext" 17051 # Insert the option either (1) after the last *FLAGS variable, or 17052 # (2) before a word containing "conftest.", or (3) at the end. 17053 # Note that $ac_compile itself does not contain backslashes and begins 17054 # with a dollar sign (not a hyphen), so the echo should work correctly. 17055 lt_compile=`echo "$ac_compile" | $SED \ 17056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17058 -e 's:$: $lt_compiler_flag:'` 17059 (eval echo "\"\$as_me:17059: $lt_compile\"" >&5) 17060 (eval "$lt_compile" 2>out/conftest.err) 17061 ac_status=$? 17062 cat out/conftest.err >&5 17063 echo "$as_me:17063: \$? = $ac_status" >&5 17064 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17065 then 17066 # The compiler can only warn and ignore the option if not recognized 17067 # So say no if there are warnings 17068 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17071 lt_cv_prog_compiler_c_o_GCJ=yes 17072 fi 17073 fi 17074 chmod u+w . 2>&5 17075 $rm conftest* 17076 # SGI C++ compiler will create directory out/ii_files/ for 17077 # template instantiation 17078 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17079 $rm out/* && rmdir out 17080 cd .. 17081 rmdir conftest 17082 $rm conftest* 17083 17084fi 17085{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17086echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17087 17088 17089hard_links="nottested" 17090if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17091 # do not overwrite the value of need_locks provided by the user 17092 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17093echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17094 hard_links=yes 17095 $rm conftest* 17096 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17097 touch conftest.a 17098 ln conftest.a conftest.b 2>&5 || hard_links=no 17099 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17100 { echo "$as_me:$LINENO: result: $hard_links" >&5 17101echo "${ECHO_T}$hard_links" >&6; } 17102 if test "$hard_links" = no; then 17103 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17104echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17105 need_locks=warn 17106 fi 17107else 17108 need_locks=no 17109fi 17110 17111{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17112echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17113 17114 runpath_var= 17115 allow_undefined_flag_GCJ= 17116 enable_shared_with_static_runtimes_GCJ=no 17117 archive_cmds_GCJ= 17118 archive_expsym_cmds_GCJ= 17119 old_archive_From_new_cmds_GCJ= 17120 old_archive_from_expsyms_cmds_GCJ= 17121 export_dynamic_flag_spec_GCJ= 17122 whole_archive_flag_spec_GCJ= 17123 thread_safe_flag_spec_GCJ= 17124 hardcode_libdir_flag_spec_GCJ= 17125 hardcode_libdir_flag_spec_ld_GCJ= 17126 hardcode_libdir_separator_GCJ= 17127 hardcode_direct_GCJ=no 17128 hardcode_minus_L_GCJ=no 17129 hardcode_shlibpath_var_GCJ=unsupported 17130 link_all_deplibs_GCJ=unknown 17131 hardcode_automatic_GCJ=no 17132 module_cmds_GCJ= 17133 module_expsym_cmds_GCJ= 17134 always_export_symbols_GCJ=no 17135 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17136 # include_expsyms should be a list of space-separated symbols to be *always* 17137 # included in the symbol list 17138 include_expsyms_GCJ= 17139 # exclude_expsyms can be an extended regexp of symbols to exclude 17140 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17141 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17142 # as well as any symbol that contains `d'. 17143 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17144 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17145 # platforms (ab)use it in PIC code, but their linkers get confused if 17146 # the symbol is explicitly referenced. Since portable code cannot 17147 # rely on this symbol name, it's probably fine to never include it in 17148 # preloaded symbol tables. 17149 extract_expsyms_cmds= 17150 # Just being paranoid about ensuring that cc_basename is set. 17151 for cc_temp in $compiler""; do 17152 case $cc_temp in 17153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17155 \-*) ;; 17156 *) break;; 17157 esac 17158done 17159cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17160 17161 case $host_os in 17162 cygwin* | mingw* | pw32*) 17163 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17164 # When not using gcc, we currently assume that we are using 17165 # Microsoft Visual C++. 17166 if test "$GCC" != yes; then 17167 with_gnu_ld=no 17168 fi 17169 ;; 17170 interix*) 17171 # we just hope/assume this is gcc and not c89 (= MSVC++) 17172 with_gnu_ld=yes 17173 ;; 17174 openbsd*) 17175 with_gnu_ld=no 17176 ;; 17177 esac 17178 17179 ld_shlibs_GCJ=yes 17180 if test "$with_gnu_ld" = yes; then 17181 # If archive_cmds runs LD, not CC, wlarc should be empty 17182 wlarc='${wl}' 17183 17184 # Set some defaults for GNU ld with shared library support. These 17185 # are reset later if shared libraries are not supported. Putting them 17186 # here allows them to be overridden if necessary. 17187 runpath_var=LD_RUN_PATH 17188 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17189 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17190 # ancient GNU ld didn't support --whole-archive et. al. 17191 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17192 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17193 else 17194 whole_archive_flag_spec_GCJ= 17195 fi 17196 supports_anon_versioning=no 17197 case `$LD -v 2>/dev/null` in 17198 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17199 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17200 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17201 *\ 2.11.*) ;; # other 2.11 versions 17202 *) supports_anon_versioning=yes ;; 17203 esac 17204 17205 # See if GNU ld supports shared libraries. 17206 case $host_os in 17207 aix3* | aix4* | aix5*) 17208 # On AIX/PPC, the GNU linker is very broken 17209 if test "$host_cpu" != ia64; then 17210 ld_shlibs_GCJ=no 17211 cat <<EOF 1>&2 17212 17213*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17214*** to be unable to reliably create shared libraries on AIX. 17215*** Therefore, libtool is disabling shared libraries support. If you 17216*** really care for shared libraries, you may want to modify your PATH 17217*** so that a non-GNU linker is found, and then restart. 17218 17219EOF 17220 fi 17221 ;; 17222 17223 amigaos*) 17224 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)' 17225 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17226 hardcode_minus_L_GCJ=yes 17227 17228 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17229 # that the semantics of dynamic libraries on AmigaOS, at least up 17230 # to version 4, is to share data among multiple programs linked 17231 # with the same dynamic library. Since this doesn't match the 17232 # behavior of shared libraries on other platforms, we can't use 17233 # them. 17234 ld_shlibs_GCJ=no 17235 ;; 17236 17237 beos*) 17238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17239 allow_undefined_flag_GCJ=unsupported 17240 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17241 # support --undefined. This deserves some investigation. FIXME 17242 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17243 else 17244 ld_shlibs_GCJ=no 17245 fi 17246 ;; 17247 17248 cygwin* | mingw* | pw32*) 17249 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17250 # as there is no search path for DLLs. 17251 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17252 allow_undefined_flag_GCJ=unsupported 17253 always_export_symbols_GCJ=no 17254 enable_shared_with_static_runtimes_GCJ=yes 17255 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17256 17257 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17258 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17259 # If the export-symbols file already is a .def file (1st line 17260 # is EXPORTS), use it as is; otherwise, prepend... 17261 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17262 cp $export_symbols $output_objdir/$soname.def; 17263 else 17264 echo EXPORTS > $output_objdir/$soname.def; 17265 cat $export_symbols >> $output_objdir/$soname.def; 17266 fi~ 17267 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17268 else 17269 ld_shlibs_GCJ=no 17270 fi 17271 ;; 17272 17273 interix3*) 17274 hardcode_direct_GCJ=no 17275 hardcode_shlibpath_var_GCJ=no 17276 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17277 export_dynamic_flag_spec_GCJ='${wl}-E' 17278 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17279 # Instead, shared libraries are loaded at an image base (0x10000000 by 17280 # default) and relocated if they conflict, which is a slow very memory 17281 # consuming and fragmenting process. To avoid this, we pick a random, 17282 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17283 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17284 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' 17285 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' 17286 ;; 17287 17288 linux* | k*bsd*-gnu) 17289 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17290 tmp_addflag= 17291 case $cc_basename,$host_cpu in 17292 pgcc*) # Portland Group C compiler 17293 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' 17294 tmp_addflag=' $pic_flag' 17295 ;; 17296 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17297 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' 17298 tmp_addflag=' $pic_flag -Mnomain' ;; 17299 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17300 tmp_addflag=' -i_dynamic' ;; 17301 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17302 tmp_addflag=' -i_dynamic -nofor_main' ;; 17303 ifc* | ifort*) # Intel Fortran compiler 17304 tmp_addflag=' -nofor_main' ;; 17305 esac 17306 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17307 17308 if test $supports_anon_versioning = yes; then 17309 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17310 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17311 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17312 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17313 fi 17314 link_all_deplibs_GCJ=no 17315 else 17316 ld_shlibs_GCJ=no 17317 fi 17318 ;; 17319 17320 netbsd* | netbsdelf*-gnu) 17321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17322 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17323 wlarc= 17324 else 17325 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17326 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17327 fi 17328 ;; 17329 17330 solaris*) 17331 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17332 ld_shlibs_GCJ=no 17333 cat <<EOF 1>&2 17334 17335*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17336*** create shared libraries on Solaris systems. Therefore, libtool 17337*** is disabling shared libraries support. We urge you to upgrade GNU 17338*** binutils to release 2.9.1 or newer. Another option is to modify 17339*** your PATH or compiler configuration so that the native linker is 17340*** used, and then restart. 17341 17342EOF 17343 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17344 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17345 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17346 else 17347 ld_shlibs_GCJ=no 17348 fi 17349 ;; 17350 17351 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17352 case `$LD -v 2>&1` in 17353 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17354 ld_shlibs_GCJ=no 17355 cat <<_LT_EOF 1>&2 17356 17357*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17358*** reliably create shared libraries on SCO systems. Therefore, libtool 17359*** is disabling shared libraries support. We urge you to upgrade GNU 17360*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17361*** your PATH or compiler configuration so that the native linker is 17362*** used, and then restart. 17363 17364_LT_EOF 17365 ;; 17366 *) 17367 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17368 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17369 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17370 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17371 else 17372 ld_shlibs_GCJ=no 17373 fi 17374 ;; 17375 esac 17376 ;; 17377 17378 sunos4*) 17379 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17380 wlarc= 17381 hardcode_direct_GCJ=yes 17382 hardcode_shlibpath_var_GCJ=no 17383 ;; 17384 17385 *) 17386 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17387 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17388 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17389 else 17390 ld_shlibs_GCJ=no 17391 fi 17392 ;; 17393 esac 17394 17395 if test "$ld_shlibs_GCJ" = no; then 17396 runpath_var= 17397 hardcode_libdir_flag_spec_GCJ= 17398 export_dynamic_flag_spec_GCJ= 17399 whole_archive_flag_spec_GCJ= 17400 fi 17401 else 17402 # PORTME fill in a description of your system's linker (not GNU ld) 17403 case $host_os in 17404 aix3*) 17405 allow_undefined_flag_GCJ=unsupported 17406 always_export_symbols_GCJ=yes 17407 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' 17408 # Note: this linker hardcodes the directories in LIBPATH if there 17409 # are no directories specified by -L. 17410 hardcode_minus_L_GCJ=yes 17411 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17412 # Neither direct hardcoding nor static linking is supported with a 17413 # broken collect2. 17414 hardcode_direct_GCJ=unsupported 17415 fi 17416 ;; 17417 17418 aix4* | aix5*) 17419 if test "$host_cpu" = ia64; then 17420 # On IA64, the linker does run time linking by default, so we don't 17421 # have to do anything special. 17422 aix_use_runtimelinking=no 17423 exp_sym_flag='-Bexport' 17424 no_entry_flag="" 17425 else 17426 # If we're using GNU nm, then we don't want the "-C" option. 17427 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17428 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17429 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' 17430 else 17431 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' 17432 fi 17433 aix_use_runtimelinking=no 17434 17435 # Test if we are trying to use run time linking or normal 17436 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17437 # need to do runtime linking. 17438 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17439 for ld_flag in $LDFLAGS; do 17440 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17441 aix_use_runtimelinking=yes 17442 break 17443 fi 17444 done 17445 ;; 17446 esac 17447 17448 exp_sym_flag='-bexport' 17449 no_entry_flag='-bnoentry' 17450 fi 17451 17452 # When large executables or shared objects are built, AIX ld can 17453 # have problems creating the table of contents. If linking a library 17454 # or program results in "error TOC overflow" add -mminimal-toc to 17455 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17456 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17457 17458 archive_cmds_GCJ='' 17459 hardcode_direct_GCJ=yes 17460 hardcode_libdir_separator_GCJ=':' 17461 link_all_deplibs_GCJ=yes 17462 17463 if test "$GCC" = yes; then 17464 case $host_os in aix4.[012]|aix4.[012].*) 17465 # We only want to do this on AIX 4.2 and lower, the check 17466 # below for broken collect2 doesn't work under 4.3+ 17467 collect2name=`${CC} -print-prog-name=collect2` 17468 if test -f "$collect2name" && \ 17469 strings "$collect2name" | grep resolve_lib_name >/dev/null 17470 then 17471 # We have reworked collect2 17472 hardcode_direct_GCJ=yes 17473 else 17474 # We have old collect2 17475 hardcode_direct_GCJ=unsupported 17476 # It fails to find uninstalled libraries when the uninstalled 17477 # path is not listed in the libpath. Setting hardcode_minus_L 17478 # to unsupported forces relinking 17479 hardcode_minus_L_GCJ=yes 17480 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17481 hardcode_libdir_separator_GCJ= 17482 fi 17483 ;; 17484 esac 17485 shared_flag='-shared' 17486 if test "$aix_use_runtimelinking" = yes; then 17487 shared_flag="$shared_flag "'${wl}-G' 17488 fi 17489 else 17490 # not using gcc 17491 if test "$host_cpu" = ia64; then 17492 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17493 # chokes on -Wl,-G. The following line is correct: 17494 shared_flag='-G' 17495 else 17496 if test "$aix_use_runtimelinking" = yes; then 17497 shared_flag='${wl}-G' 17498 else 17499 shared_flag='${wl}-bM:SRE' 17500 fi 17501 fi 17502 fi 17503 17504 # It seems that -bexpall does not export symbols beginning with 17505 # underscore (_), so it is better to generate a list of symbols to export. 17506 always_export_symbols_GCJ=yes 17507 if test "$aix_use_runtimelinking" = yes; then 17508 # Warning - without using the other runtime loading flags (-brtl), 17509 # -berok will link without error, but may produce a broken library. 17510 allow_undefined_flag_GCJ='-berok' 17511 # Determine the default libpath from the value encoded in an empty executable. 17512 cat >conftest.$ac_ext <<_ACEOF 17513/* confdefs.h. */ 17514_ACEOF 17515cat confdefs.h >>conftest.$ac_ext 17516cat >>conftest.$ac_ext <<_ACEOF 17517/* end confdefs.h. */ 17518 17519int 17520main () 17521{ 17522 17523 ; 17524 return 0; 17525} 17526_ACEOF 17527rm -f conftest.$ac_objext conftest$ac_exeext 17528if { (ac_try="$ac_link" 17529case "(($ac_try" in 17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17531 *) ac_try_echo=$ac_try;; 17532esac 17533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17534 (eval "$ac_link") 2>conftest.er1 17535 ac_status=$? 17536 grep -v '^ *+' conftest.er1 >conftest.err 17537 rm -f conftest.er1 17538 cat conftest.err >&5 17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17540 (exit $ac_status); } && 17541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17542 { (case "(($ac_try" in 17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17544 *) ac_try_echo=$ac_try;; 17545esac 17546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17547 (eval "$ac_try") 2>&5 17548 ac_status=$? 17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17550 (exit $ac_status); }; } && 17551 { ac_try='test -s conftest$ac_exeext' 17552 { (case "(($ac_try" in 17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17554 *) ac_try_echo=$ac_try;; 17555esac 17556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17557 (eval "$ac_try") 2>&5 17558 ac_status=$? 17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17560 (exit $ac_status); }; }; then 17561 17562aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17563}'` 17564# Check for a 64-bit object if we didn't find anything. 17565if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17566}'`; fi 17567else 17568 echo "$as_me: failed program was:" >&5 17569sed 's/^/| /' conftest.$ac_ext >&5 17570 17571 17572fi 17573 17574rm -f core conftest.err conftest.$ac_objext \ 17575 conftest$ac_exeext conftest.$ac_ext 17576if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17577 17578 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17579 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" 17580 else 17581 if test "$host_cpu" = ia64; then 17582 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17583 allow_undefined_flag_GCJ="-z nodefs" 17584 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" 17585 else 17586 # Determine the default libpath from the value encoded in an empty executable. 17587 cat >conftest.$ac_ext <<_ACEOF 17588/* confdefs.h. */ 17589_ACEOF 17590cat confdefs.h >>conftest.$ac_ext 17591cat >>conftest.$ac_ext <<_ACEOF 17592/* end confdefs.h. */ 17593 17594int 17595main () 17596{ 17597 17598 ; 17599 return 0; 17600} 17601_ACEOF 17602rm -f conftest.$ac_objext conftest$ac_exeext 17603if { (ac_try="$ac_link" 17604case "(($ac_try" in 17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17606 *) ac_try_echo=$ac_try;; 17607esac 17608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17609 (eval "$ac_link") 2>conftest.er1 17610 ac_status=$? 17611 grep -v '^ *+' conftest.er1 >conftest.err 17612 rm -f conftest.er1 17613 cat conftest.err >&5 17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17615 (exit $ac_status); } && 17616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17617 { (case "(($ac_try" in 17618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17619 *) ac_try_echo=$ac_try;; 17620esac 17621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17622 (eval "$ac_try") 2>&5 17623 ac_status=$? 17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17625 (exit $ac_status); }; } && 17626 { ac_try='test -s conftest$ac_exeext' 17627 { (case "(($ac_try" in 17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17629 *) ac_try_echo=$ac_try;; 17630esac 17631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17632 (eval "$ac_try") 2>&5 17633 ac_status=$? 17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17635 (exit $ac_status); }; }; then 17636 17637aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17638}'` 17639# Check for a 64-bit object if we didn't find anything. 17640if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17641}'`; fi 17642else 17643 echo "$as_me: failed program was:" >&5 17644sed 's/^/| /' conftest.$ac_ext >&5 17645 17646 17647fi 17648 17649rm -f core conftest.err conftest.$ac_objext \ 17650 conftest$ac_exeext conftest.$ac_ext 17651if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17652 17653 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17654 # Warning - without using the other run time loading flags, 17655 # -berok will link without error, but may produce a broken library. 17656 no_undefined_flag_GCJ=' ${wl}-bernotok' 17657 allow_undefined_flag_GCJ=' ${wl}-berok' 17658 # Exported symbols can be pulled into shared objects from archives 17659 whole_archive_flag_spec_GCJ='$convenience' 17660 archive_cmds_need_lc_GCJ=yes 17661 # This is similar to how AIX traditionally builds its shared libraries. 17662 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' 17663 fi 17664 fi 17665 ;; 17666 17667 amigaos*) 17668 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)' 17669 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17670 hardcode_minus_L_GCJ=yes 17671 # see comment about different semantics on the GNU ld section 17672 ld_shlibs_GCJ=no 17673 ;; 17674 17675 bsdi[45]*) 17676 export_dynamic_flag_spec_GCJ=-rdynamic 17677 ;; 17678 17679 cygwin* | mingw* | pw32*) 17680 # When not using gcc, we currently assume that we are using 17681 # Microsoft Visual C++. 17682 # hardcode_libdir_flag_spec is actually meaningless, as there is 17683 # no search path for DLLs. 17684 hardcode_libdir_flag_spec_GCJ=' ' 17685 allow_undefined_flag_GCJ=unsupported 17686 # Tell ltmain to make .lib files, not .a files. 17687 libext=lib 17688 # Tell ltmain to make .dll files, not .so files. 17689 shrext_cmds=".dll" 17690 # FIXME: Setting linknames here is a bad hack. 17691 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17692 # The linker will automatically build a .lib file if we build a DLL. 17693 old_archive_From_new_cmds_GCJ='true' 17694 # FIXME: Should let the user specify the lib program. 17695 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17696 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17697 enable_shared_with_static_runtimes_GCJ=yes 17698 ;; 17699 17700 darwin* | rhapsody*) 17701 case $host_os in 17702 rhapsody* | darwin1.[012]) 17703 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17704 ;; 17705 *) # Darwin 1.3 on 17706 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17707 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17708 else 17709 case ${MACOSX_DEPLOYMENT_TARGET} in 17710 10.[012]) 17711 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17712 ;; 17713 10.*) 17714 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17715 ;; 17716 esac 17717 fi 17718 ;; 17719 esac 17720 archive_cmds_need_lc_GCJ=no 17721 hardcode_direct_GCJ=no 17722 hardcode_automatic_GCJ=yes 17723 hardcode_shlibpath_var_GCJ=unsupported 17724 whole_archive_flag_spec_GCJ='' 17725 link_all_deplibs_GCJ=yes 17726 if test "$GCC" = yes ; then 17727 output_verbose_link_cmd='echo' 17728 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17729 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17730 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17731 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17732 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}' 17733 else 17734 case $cc_basename in 17735 xlc*) 17736 output_verbose_link_cmd='echo' 17737 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17738 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17740 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17741 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}' 17742 ;; 17743 *) 17744 ld_shlibs_GCJ=no 17745 ;; 17746 esac 17747 fi 17748 ;; 17749 17750 dgux*) 17751 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17752 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17753 hardcode_shlibpath_var_GCJ=no 17754 ;; 17755 17756 freebsd1*) 17757 ld_shlibs_GCJ=no 17758 ;; 17759 17760 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17761 # support. Future versions do this automatically, but an explicit c++rt0.o 17762 # does not break anything, and helps significantly (at the cost of a little 17763 # extra space). 17764 freebsd2.2*) 17765 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17766 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17767 hardcode_direct_GCJ=yes 17768 hardcode_shlibpath_var_GCJ=no 17769 ;; 17770 17771 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17772 freebsd2*) 17773 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17774 hardcode_direct_GCJ=yes 17775 hardcode_minus_L_GCJ=yes 17776 hardcode_shlibpath_var_GCJ=no 17777 ;; 17778 17779 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17780 freebsd* | dragonfly*) 17781 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17782 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17783 hardcode_direct_GCJ=yes 17784 hardcode_shlibpath_var_GCJ=no 17785 ;; 17786 17787 hpux9*) 17788 if test "$GCC" = yes; then 17789 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' 17790 else 17791 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' 17792 fi 17793 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17794 hardcode_libdir_separator_GCJ=: 17795 hardcode_direct_GCJ=yes 17796 17797 # hardcode_minus_L: Not really in the search PATH, 17798 # but as the default location of the library. 17799 hardcode_minus_L_GCJ=yes 17800 export_dynamic_flag_spec_GCJ='${wl}-E' 17801 ;; 17802 17803 hpux10*) 17804 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17805 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17806 else 17807 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17808 fi 17809 if test "$with_gnu_ld" = no; then 17810 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17811 hardcode_libdir_separator_GCJ=: 17812 17813 hardcode_direct_GCJ=yes 17814 export_dynamic_flag_spec_GCJ='${wl}-E' 17815 17816 # hardcode_minus_L: Not really in the search PATH, 17817 # but as the default location of the library. 17818 hardcode_minus_L_GCJ=yes 17819 fi 17820 ;; 17821 17822 hpux11*) 17823 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17824 case $host_cpu in 17825 hppa*64*) 17826 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17827 ;; 17828 ia64*) 17829 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17830 ;; 17831 *) 17832 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17833 ;; 17834 esac 17835 else 17836 case $host_cpu in 17837 hppa*64*) 17838 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17839 ;; 17840 ia64*) 17841 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17842 ;; 17843 *) 17844 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17845 ;; 17846 esac 17847 fi 17848 if test "$with_gnu_ld" = no; then 17849 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17850 hardcode_libdir_separator_GCJ=: 17851 17852 case $host_cpu in 17853 hppa*64*|ia64*) 17854 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17855 hardcode_direct_GCJ=no 17856 hardcode_shlibpath_var_GCJ=no 17857 ;; 17858 *) 17859 hardcode_direct_GCJ=yes 17860 export_dynamic_flag_spec_GCJ='${wl}-E' 17861 17862 # hardcode_minus_L: Not really in the search PATH, 17863 # but as the default location of the library. 17864 hardcode_minus_L_GCJ=yes 17865 ;; 17866 esac 17867 fi 17868 ;; 17869 17870 irix5* | irix6* | nonstopux*) 17871 if test "$GCC" = yes; then 17872 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' 17873 else 17874 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' 17875 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17876 fi 17877 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17878 hardcode_libdir_separator_GCJ=: 17879 link_all_deplibs_GCJ=yes 17880 ;; 17881 17882 netbsd* | netbsdelf*-gnu) 17883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17884 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17885 else 17886 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17887 fi 17888 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17889 hardcode_direct_GCJ=yes 17890 hardcode_shlibpath_var_GCJ=no 17891 ;; 17892 17893 newsos6) 17894 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17895 hardcode_direct_GCJ=yes 17896 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17897 hardcode_libdir_separator_GCJ=: 17898 hardcode_shlibpath_var_GCJ=no 17899 ;; 17900 17901 openbsd*) 17902 hardcode_direct_GCJ=yes 17903 hardcode_shlibpath_var_GCJ=no 17904 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17905 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17906 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17907 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17908 export_dynamic_flag_spec_GCJ='${wl}-E' 17909 else 17910 case $host_os in 17911 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17912 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17913 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17914 ;; 17915 *) 17916 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17917 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17918 ;; 17919 esac 17920 fi 17921 ;; 17922 17923 os2*) 17924 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17925 hardcode_minus_L_GCJ=yes 17926 allow_undefined_flag_GCJ=unsupported 17927 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' 17928 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17929 ;; 17930 17931 osf3*) 17932 if test "$GCC" = yes; then 17933 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17934 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' 17935 else 17936 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17937 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' 17938 fi 17939 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17940 hardcode_libdir_separator_GCJ=: 17941 ;; 17942 17943 osf4* | osf5*) # as osf3* with the addition of -msym flag 17944 if test "$GCC" = yes; then 17945 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17946 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' 17947 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17948 else 17949 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17950 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' 17951 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~ 17952 $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' 17953 17954 # Both c and cxx compiler support -rpath directly 17955 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17956 fi 17957 hardcode_libdir_separator_GCJ=: 17958 ;; 17959 17960 solaris*) 17961 no_undefined_flag_GCJ=' -z text' 17962 if test "$GCC" = yes; then 17963 wlarc='${wl}' 17964 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17965 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17966 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17967 else 17968 wlarc='' 17969 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17970 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17971 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17972 fi 17973 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17974 hardcode_shlibpath_var_GCJ=no 17975 case $host_os in 17976 solaris2.[0-5] | solaris2.[0-5].*) ;; 17977 *) 17978 # The compiler driver will combine linker options so we 17979 # cannot just pass the convience library names through 17980 # without $wl, iff we do not link with $LD. 17981 # Luckily, gcc supports the same syntax we need for Sun Studio. 17982 # Supported since Solaris 2.6 (maybe 2.5.1?) 17983 case $wlarc in 17984 '') 17985 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17986 *) 17987 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17988 esac ;; 17989 esac 17990 link_all_deplibs_GCJ=yes 17991 ;; 17992 17993 sunos4*) 17994 if test "x$host_vendor" = xsequent; then 17995 # Use $CC to link under sequent, because it throws in some extra .o 17996 # files that make .init and .fini sections work. 17997 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17998 else 17999 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18000 fi 18001 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18002 hardcode_direct_GCJ=yes 18003 hardcode_minus_L_GCJ=yes 18004 hardcode_shlibpath_var_GCJ=no 18005 ;; 18006 18007 sysv4) 18008 case $host_vendor in 18009 sni) 18010 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18011 hardcode_direct_GCJ=yes # is this really true??? 18012 ;; 18013 siemens) 18014 ## LD is ld it makes a PLAMLIB 18015 ## CC just makes a GrossModule. 18016 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18017 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18018 hardcode_direct_GCJ=no 18019 ;; 18020 motorola) 18021 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18022 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18023 ;; 18024 esac 18025 runpath_var='LD_RUN_PATH' 18026 hardcode_shlibpath_var_GCJ=no 18027 ;; 18028 18029 sysv4.3*) 18030 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18031 hardcode_shlibpath_var_GCJ=no 18032 export_dynamic_flag_spec_GCJ='-Bexport' 18033 ;; 18034 18035 sysv4*MP*) 18036 if test -d /usr/nec; then 18037 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18038 hardcode_shlibpath_var_GCJ=no 18039 runpath_var=LD_RUN_PATH 18040 hardcode_runpath_var=yes 18041 ld_shlibs_GCJ=yes 18042 fi 18043 ;; 18044 18045 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18046 no_undefined_flag_GCJ='${wl}-z,text' 18047 archive_cmds_need_lc_GCJ=no 18048 hardcode_shlibpath_var_GCJ=no 18049 runpath_var='LD_RUN_PATH' 18050 18051 if test "$GCC" = yes; then 18052 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18053 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18054 else 18055 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18056 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18057 fi 18058 ;; 18059 18060 sysv5* | sco3.2v5* | sco5v6*) 18061 # Note: We can NOT use -z defs as we might desire, because we do not 18062 # link with -lc, and that would cause any symbols used from libc to 18063 # always be unresolved, which means just about no library would 18064 # ever link correctly. If we're not using GNU ld we use -z text 18065 # though, which does catch some bad symbols but isn't as heavy-handed 18066 # as -z defs. 18067 no_undefined_flag_GCJ='${wl}-z,text' 18068 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18069 archive_cmds_need_lc_GCJ=no 18070 hardcode_shlibpath_var_GCJ=no 18071 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18072 hardcode_libdir_separator_GCJ=':' 18073 link_all_deplibs_GCJ=yes 18074 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18075 runpath_var='LD_RUN_PATH' 18076 18077 if test "$GCC" = yes; then 18078 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18079 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18080 else 18081 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18082 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18083 fi 18084 ;; 18085 18086 uts4*) 18087 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18088 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18089 hardcode_shlibpath_var_GCJ=no 18090 ;; 18091 18092 *) 18093 ld_shlibs_GCJ=no 18094 ;; 18095 esac 18096 fi 18097 18098{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18099echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18100test "$ld_shlibs_GCJ" = no && can_build_shared=no 18101 18102# 18103# Do we need to explicitly link libc? 18104# 18105case "x$archive_cmds_need_lc_GCJ" in 18106x|xyes) 18107 # Assume -lc should be added 18108 archive_cmds_need_lc_GCJ=yes 18109 18110 if test "$enable_shared" = yes && test "$GCC" = yes; then 18111 case $archive_cmds_GCJ in 18112 *'~'*) 18113 # FIXME: we may have to deal with multi-command sequences. 18114 ;; 18115 '$CC '*) 18116 # Test whether the compiler implicitly links with -lc since on some 18117 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18118 # to ld, don't add -lc before -lgcc. 18119 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18120echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18121 $rm conftest* 18122 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18123 18124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18125 (eval $ac_compile) 2>&5 18126 ac_status=$? 18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18128 (exit $ac_status); } 2>conftest.err; then 18129 soname=conftest 18130 lib=conftest 18131 libobjs=conftest.$ac_objext 18132 deplibs= 18133 wl=$lt_prog_compiler_wl_GCJ 18134 pic_flag=$lt_prog_compiler_pic_GCJ 18135 compiler_flags=-v 18136 linker_flags=-v 18137 verstring= 18138 output_objdir=. 18139 libname=conftest 18140 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18141 allow_undefined_flag_GCJ= 18142 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18143 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18144 ac_status=$? 18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18146 (exit $ac_status); } 18147 then 18148 archive_cmds_need_lc_GCJ=no 18149 else 18150 archive_cmds_need_lc_GCJ=yes 18151 fi 18152 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18153 else 18154 cat conftest.err 1>&5 18155 fi 18156 $rm conftest* 18157 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18158echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18159 ;; 18160 esac 18161 fi 18162 ;; 18163esac 18164 18165{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18166echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18167library_names_spec= 18168libname_spec='lib$name' 18169soname_spec= 18170shrext_cmds=".so" 18171postinstall_cmds= 18172postuninstall_cmds= 18173finish_cmds= 18174finish_eval= 18175shlibpath_var= 18176shlibpath_overrides_runpath=unknown 18177version_type=none 18178dynamic_linker="$host_os ld.so" 18179sys_lib_dlsearch_path_spec="/lib /usr/lib" 18180if test "$GCC" = yes; then 18181 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18182 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18183 # if the path contains ";" then we assume it to be the separator 18184 # otherwise default to the standard path separator (i.e. ":") - it is 18185 # assumed that no part of a normal pathname contains ";" but that should 18186 # okay in the real world where ";" in dirpaths is itself problematic. 18187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18188 else 18189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18190 fi 18191else 18192 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18193fi 18194need_lib_prefix=unknown 18195hardcode_into_libs=no 18196 18197# when you set need_version to no, make sure it does not cause -set_version 18198# flags to be left without arguments 18199need_version=unknown 18200 18201case $host_os in 18202aix3*) 18203 version_type=linux 18204 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18205 shlibpath_var=LIBPATH 18206 18207 # AIX 3 has no versioning support, so we append a major version to the name. 18208 soname_spec='${libname}${release}${shared_ext}$major' 18209 ;; 18210 18211aix4* | aix5*) 18212 version_type=linux 18213 need_lib_prefix=no 18214 need_version=no 18215 hardcode_into_libs=yes 18216 if test "$host_cpu" = ia64; then 18217 # AIX 5 supports IA64 18218 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18219 shlibpath_var=LD_LIBRARY_PATH 18220 else 18221 # With GCC up to 2.95.x, collect2 would create an import file 18222 # for dependence libraries. The import file would start with 18223 # the line `#! .'. This would cause the generated library to 18224 # depend on `.', always an invalid library. This was fixed in 18225 # development snapshots of GCC prior to 3.0. 18226 case $host_os in 18227 aix4 | aix4.[01] | aix4.[01].*) 18228 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18229 echo ' yes ' 18230 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18231 : 18232 else 18233 can_build_shared=no 18234 fi 18235 ;; 18236 esac 18237 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18238 # soname into executable. Probably we can add versioning support to 18239 # collect2, so additional links can be useful in future. 18240 if test "$aix_use_runtimelinking" = yes; then 18241 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18242 # instead of lib<name>.a to let people know that these are not 18243 # typical AIX shared libraries. 18244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18245 else 18246 # We preserve .a as extension for shared libraries through AIX4.2 18247 # and later when we are not doing run time linking. 18248 library_names_spec='${libname}${release}.a $libname.a' 18249 soname_spec='${libname}${release}${shared_ext}$major' 18250 fi 18251 shlibpath_var=LIBPATH 18252 fi 18253 ;; 18254 18255amigaos*) 18256 library_names_spec='$libname.ixlibrary $libname.a' 18257 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18258 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' 18259 ;; 18260 18261beos*) 18262 library_names_spec='${libname}${shared_ext}' 18263 dynamic_linker="$host_os ld.so" 18264 shlibpath_var=LIBRARY_PATH 18265 ;; 18266 18267bsdi[45]*) 18268 version_type=linux 18269 need_version=no 18270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18271 soname_spec='${libname}${release}${shared_ext}$major' 18272 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18273 shlibpath_var=LD_LIBRARY_PATH 18274 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18275 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18276 # the default ld.so.conf also contains /usr/contrib/lib and 18277 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18278 # libtool to hard-code these into programs 18279 ;; 18280 18281cygwin* | mingw* | pw32*) 18282 version_type=windows 18283 shrext_cmds=".dll" 18284 need_version=no 18285 need_lib_prefix=no 18286 18287 case $GCC,$host_os in 18288 yes,cygwin* | yes,mingw* | yes,pw32*) 18289 library_names_spec='$libname.dll.a' 18290 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18291 postinstall_cmds='base_file=`basename \${file}`~ 18292 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18293 dldir=$destdir/`dirname \$dlpath`~ 18294 test -d \$dldir || mkdir -p \$dldir~ 18295 $install_prog $dir/$dlname \$dldir/$dlname~ 18296 chmod a+x \$dldir/$dlname' 18297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18298 dlpath=$dir/\$dldll~ 18299 $rm \$dlpath' 18300 shlibpath_overrides_runpath=yes 18301 18302 case $host_os in 18303 cygwin*) 18304 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18305 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18306 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18307 ;; 18308 mingw*) 18309 # MinGW DLLs use traditional 'lib' prefix 18310 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18311 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18312 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18313 # It is most probably a Windows format PATH printed by 18314 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18315 # path with ; separators, and with drive letters. We can handle the 18316 # drive letters (cygwin fileutils understands them), so leave them, 18317 # especially as we might pass files found there to a mingw objdump, 18318 # which wouldn't understand a cygwinified path. Ahh. 18319 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18320 else 18321 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18322 fi 18323 ;; 18324 pw32*) 18325 # pw32 DLLs use 'pw' prefix rather than 'lib' 18326 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18327 ;; 18328 esac 18329 ;; 18330 18331 *) 18332 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18333 ;; 18334 esac 18335 dynamic_linker='Win32 ld.exe' 18336 # FIXME: first we should search . and the directory the executable is in 18337 shlibpath_var=PATH 18338 ;; 18339 18340darwin* | rhapsody*) 18341 dynamic_linker="$host_os dyld" 18342 version_type=darwin 18343 need_lib_prefix=no 18344 need_version=no 18345 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18346 soname_spec='${libname}${release}${major}$shared_ext' 18347 shlibpath_overrides_runpath=yes 18348 shlibpath_var=DYLD_LIBRARY_PATH 18349 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18350 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18351 if test "$GCC" = yes; then 18352 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18353 else 18354 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18355 fi 18356 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18357 ;; 18358 18359dgux*) 18360 version_type=linux 18361 need_lib_prefix=no 18362 need_version=no 18363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18364 soname_spec='${libname}${release}${shared_ext}$major' 18365 shlibpath_var=LD_LIBRARY_PATH 18366 ;; 18367 18368freebsd1*) 18369 dynamic_linker=no 18370 ;; 18371 18372freebsd* | dragonfly*) 18373 # DragonFly does not have aout. When/if they implement a new 18374 # versioning mechanism, adjust this. 18375 if test -x /usr/bin/objformat; then 18376 objformat=`/usr/bin/objformat` 18377 else 18378 case $host_os in 18379 freebsd[123]*) objformat=aout ;; 18380 *) objformat=elf ;; 18381 esac 18382 fi 18383 version_type=freebsd-$objformat 18384 case $version_type in 18385 freebsd-elf*) 18386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18387 need_version=no 18388 need_lib_prefix=no 18389 ;; 18390 freebsd-*) 18391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18392 need_version=yes 18393 ;; 18394 esac 18395 shlibpath_var=LD_LIBRARY_PATH 18396 case $host_os in 18397 freebsd2*) 18398 shlibpath_overrides_runpath=yes 18399 ;; 18400 freebsd3.[01]* | freebsdelf3.[01]*) 18401 shlibpath_overrides_runpath=yes 18402 hardcode_into_libs=yes 18403 ;; 18404 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18405 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18406 shlibpath_overrides_runpath=no 18407 hardcode_into_libs=yes 18408 ;; 18409 freebsd*) # from 4.6 on 18410 shlibpath_overrides_runpath=yes 18411 hardcode_into_libs=yes 18412 ;; 18413 esac 18414 ;; 18415 18416gnu*) 18417 version_type=linux 18418 need_lib_prefix=no 18419 need_version=no 18420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18421 soname_spec='${libname}${release}${shared_ext}$major' 18422 shlibpath_var=LD_LIBRARY_PATH 18423 hardcode_into_libs=yes 18424 ;; 18425 18426hpux9* | hpux10* | hpux11*) 18427 # Give a soname corresponding to the major version so that dld.sl refuses to 18428 # link against other versions. 18429 version_type=sunos 18430 need_lib_prefix=no 18431 need_version=no 18432 case $host_cpu in 18433 ia64*) 18434 shrext_cmds='.so' 18435 hardcode_into_libs=yes 18436 dynamic_linker="$host_os dld.so" 18437 shlibpath_var=LD_LIBRARY_PATH 18438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18440 soname_spec='${libname}${release}${shared_ext}$major' 18441 if test "X$HPUX_IA64_MODE" = X32; then 18442 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18443 else 18444 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18445 fi 18446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18447 ;; 18448 hppa*64*) 18449 shrext_cmds='.sl' 18450 hardcode_into_libs=yes 18451 dynamic_linker="$host_os dld.sl" 18452 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18455 soname_spec='${libname}${release}${shared_ext}$major' 18456 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18458 ;; 18459 *) 18460 shrext_cmds='.sl' 18461 dynamic_linker="$host_os dld.sl" 18462 shlibpath_var=SHLIB_PATH 18463 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18465 soname_spec='${libname}${release}${shared_ext}$major' 18466 ;; 18467 esac 18468 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18469 postinstall_cmds='chmod 555 $lib' 18470 ;; 18471 18472interix3*) 18473 version_type=linux 18474 need_lib_prefix=no 18475 need_version=no 18476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18477 soname_spec='${libname}${release}${shared_ext}$major' 18478 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18479 shlibpath_var=LD_LIBRARY_PATH 18480 shlibpath_overrides_runpath=no 18481 hardcode_into_libs=yes 18482 ;; 18483 18484irix5* | irix6* | nonstopux*) 18485 case $host_os in 18486 nonstopux*) version_type=nonstopux ;; 18487 *) 18488 if test "$lt_cv_prog_gnu_ld" = yes; then 18489 version_type=linux 18490 else 18491 version_type=irix 18492 fi ;; 18493 esac 18494 need_lib_prefix=no 18495 need_version=no 18496 soname_spec='${libname}${release}${shared_ext}$major' 18497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18498 case $host_os in 18499 irix5* | nonstopux*) 18500 libsuff= shlibsuff= 18501 ;; 18502 *) 18503 case $LD in # libtool.m4 will add one of these switches to LD 18504 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18505 libsuff= shlibsuff= libmagic=32-bit;; 18506 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18507 libsuff=32 shlibsuff=N32 libmagic=N32;; 18508 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18509 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18510 *) libsuff= shlibsuff= libmagic=never-match;; 18511 esac 18512 ;; 18513 esac 18514 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18515 shlibpath_overrides_runpath=no 18516 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18517 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18518 hardcode_into_libs=yes 18519 ;; 18520 18521# No shared lib support for Linux oldld, aout, or coff. 18522linux*oldld* | linux*aout* | linux*coff*) 18523 dynamic_linker=no 18524 ;; 18525 18526# This must be Linux ELF. 18527linux* | k*bsd*-gnu) 18528 version_type=linux 18529 need_lib_prefix=no 18530 need_version=no 18531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18532 soname_spec='${libname}${release}${shared_ext}$major' 18533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18534 shlibpath_var=LD_LIBRARY_PATH 18535 shlibpath_overrides_runpath=no 18536 # This implies no fast_install, which is unacceptable. 18537 # Some rework will be needed to allow for fast_install 18538 # before this can be enabled. 18539 hardcode_into_libs=yes 18540 18541 # Append ld.so.conf contents to the search path 18542 if test -f /etc/ld.so.conf; then 18543 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18544 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18545 fi 18546 18547 # We used to test for /lib/ld.so.1 and disable shared libraries on 18548 # powerpc, because MkLinux only supported shared libraries with the 18549 # GNU dynamic linker. Since this was broken with cross compilers, 18550 # most powerpc-linux boxes support dynamic linking these days and 18551 # people can always --disable-shared, the test was removed, and we 18552 # assume the GNU/Linux dynamic linker is in use. 18553 dynamic_linker='GNU/Linux ld.so' 18554 ;; 18555 18556netbsdelf*-gnu) 18557 version_type=linux 18558 need_lib_prefix=no 18559 need_version=no 18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18561 soname_spec='${libname}${release}${shared_ext}$major' 18562 shlibpath_var=LD_LIBRARY_PATH 18563 shlibpath_overrides_runpath=no 18564 hardcode_into_libs=yes 18565 dynamic_linker='NetBSD ld.elf_so' 18566 ;; 18567 18568netbsd*) 18569 version_type=sunos 18570 need_lib_prefix=no 18571 need_version=no 18572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18575 dynamic_linker='NetBSD (a.out) ld.so' 18576 else 18577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18578 soname_spec='${libname}${release}${shared_ext}$major' 18579 dynamic_linker='NetBSD ld.elf_so' 18580 fi 18581 shlibpath_var=LD_LIBRARY_PATH 18582 shlibpath_overrides_runpath=yes 18583 hardcode_into_libs=yes 18584 ;; 18585 18586newsos6) 18587 version_type=linux 18588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18589 shlibpath_var=LD_LIBRARY_PATH 18590 shlibpath_overrides_runpath=yes 18591 ;; 18592 18593nto-qnx*) 18594 version_type=linux 18595 need_lib_prefix=no 18596 need_version=no 18597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18598 soname_spec='${libname}${release}${shared_ext}$major' 18599 shlibpath_var=LD_LIBRARY_PATH 18600 shlibpath_overrides_runpath=yes 18601 ;; 18602 18603openbsd*) 18604 version_type=sunos 18605 sys_lib_dlsearch_path_spec="/usr/lib" 18606 need_lib_prefix=no 18607 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18608 case $host_os in 18609 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18610 *) need_version=no ;; 18611 esac 18612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18614 shlibpath_var=LD_LIBRARY_PATH 18615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18616 case $host_os in 18617 openbsd2.[89] | openbsd2.[89].*) 18618 shlibpath_overrides_runpath=no 18619 ;; 18620 *) 18621 shlibpath_overrides_runpath=yes 18622 ;; 18623 esac 18624 else 18625 shlibpath_overrides_runpath=yes 18626 fi 18627 ;; 18628 18629os2*) 18630 libname_spec='$name' 18631 shrext_cmds=".dll" 18632 need_lib_prefix=no 18633 library_names_spec='$libname${shared_ext} $libname.a' 18634 dynamic_linker='OS/2 ld.exe' 18635 shlibpath_var=LIBPATH 18636 ;; 18637 18638osf3* | osf4* | osf5*) 18639 version_type=osf 18640 need_lib_prefix=no 18641 need_version=no 18642 soname_spec='${libname}${release}${shared_ext}$major' 18643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18644 shlibpath_var=LD_LIBRARY_PATH 18645 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18646 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18647 ;; 18648 18649solaris*) 18650 version_type=linux 18651 need_lib_prefix=no 18652 need_version=no 18653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18654 soname_spec='${libname}${release}${shared_ext}$major' 18655 shlibpath_var=LD_LIBRARY_PATH 18656 shlibpath_overrides_runpath=yes 18657 hardcode_into_libs=yes 18658 # ldd complains unless libraries are executable 18659 postinstall_cmds='chmod +x $lib' 18660 ;; 18661 18662sunos4*) 18663 version_type=sunos 18664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18665 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18666 shlibpath_var=LD_LIBRARY_PATH 18667 shlibpath_overrides_runpath=yes 18668 if test "$with_gnu_ld" = yes; then 18669 need_lib_prefix=no 18670 fi 18671 need_version=yes 18672 ;; 18673 18674sysv4 | sysv4.3*) 18675 version_type=linux 18676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18677 soname_spec='${libname}${release}${shared_ext}$major' 18678 shlibpath_var=LD_LIBRARY_PATH 18679 case $host_vendor in 18680 sni) 18681 shlibpath_overrides_runpath=no 18682 need_lib_prefix=no 18683 export_dynamic_flag_spec='${wl}-Blargedynsym' 18684 runpath_var=LD_RUN_PATH 18685 ;; 18686 siemens) 18687 need_lib_prefix=no 18688 ;; 18689 motorola) 18690 need_lib_prefix=no 18691 need_version=no 18692 shlibpath_overrides_runpath=no 18693 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18694 ;; 18695 esac 18696 ;; 18697 18698sysv4*MP*) 18699 if test -d /usr/nec ;then 18700 version_type=linux 18701 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18702 soname_spec='$libname${shared_ext}.$major' 18703 shlibpath_var=LD_LIBRARY_PATH 18704 fi 18705 ;; 18706 18707sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18708 version_type=freebsd-elf 18709 need_lib_prefix=no 18710 need_version=no 18711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18712 soname_spec='${libname}${release}${shared_ext}$major' 18713 shlibpath_var=LD_LIBRARY_PATH 18714 hardcode_into_libs=yes 18715 if test "$with_gnu_ld" = yes; then 18716 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18717 shlibpath_overrides_runpath=no 18718 else 18719 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18720 shlibpath_overrides_runpath=yes 18721 case $host_os in 18722 sco3.2v5*) 18723 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18724 ;; 18725 esac 18726 fi 18727 sys_lib_dlsearch_path_spec='/usr/lib' 18728 ;; 18729 18730uts4*) 18731 version_type=linux 18732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18733 soname_spec='${libname}${release}${shared_ext}$major' 18734 shlibpath_var=LD_LIBRARY_PATH 18735 ;; 18736 18737*) 18738 dynamic_linker=no 18739 ;; 18740esac 18741{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18742echo "${ECHO_T}$dynamic_linker" >&6; } 18743test "$dynamic_linker" = no && can_build_shared=no 18744 18745variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18746if test "$GCC" = yes; then 18747 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18748fi 18749 18750{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18751echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18752hardcode_action_GCJ= 18753if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18754 test -n "$runpath_var_GCJ" || \ 18755 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18756 18757 # We can hardcode non-existant directories. 18758 if test "$hardcode_direct_GCJ" != no && 18759 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18760 # have to relink, otherwise we might link with an installed library 18761 # when we should be linking with a yet-to-be-installed one 18762 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18763 test "$hardcode_minus_L_GCJ" != no; then 18764 # Linking always hardcodes the temporary library directory. 18765 hardcode_action_GCJ=relink 18766 else 18767 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18768 hardcode_action_GCJ=immediate 18769 fi 18770else 18771 # We cannot hardcode anything, or else we can only hardcode existing 18772 # directories. 18773 hardcode_action_GCJ=unsupported 18774fi 18775{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18776echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18777 18778if test "$hardcode_action_GCJ" = relink; then 18779 # Fast installation is not supported 18780 enable_fast_install=no 18781elif test "$shlibpath_overrides_runpath" = yes || 18782 test "$enable_shared" = no; then 18783 # Fast installation is not necessary 18784 enable_fast_install=needless 18785fi 18786 18787 18788# The else clause should only fire when bootstrapping the 18789# libtool distribution, otherwise you forgot to ship ltmain.sh 18790# with your package, and you will get complaints that there are 18791# no rules to generate ltmain.sh. 18792if test -f "$ltmain"; then 18793 # See if we are running on zsh, and set the options which allow our commands through 18794 # without removal of \ escapes. 18795 if test -n "${ZSH_VERSION+set}" ; then 18796 setopt NO_GLOB_SUBST 18797 fi 18798 # Now quote all the things that may contain metacharacters while being 18799 # careful not to overquote the AC_SUBSTed values. We take copies of the 18800 # variables and quote the copies for generation of the libtool script. 18801 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18802 SED SHELL STRIP \ 18803 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18804 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18805 deplibs_check_method reload_flag reload_cmds need_locks \ 18806 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18807 lt_cv_sys_global_symbol_to_c_name_address \ 18808 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18809 old_postinstall_cmds old_postuninstall_cmds \ 18810 compiler_GCJ \ 18811 CC_GCJ \ 18812 LD_GCJ \ 18813 lt_prog_compiler_wl_GCJ \ 18814 lt_prog_compiler_pic_GCJ \ 18815 lt_prog_compiler_static_GCJ \ 18816 lt_prog_compiler_no_builtin_flag_GCJ \ 18817 export_dynamic_flag_spec_GCJ \ 18818 thread_safe_flag_spec_GCJ \ 18819 whole_archive_flag_spec_GCJ \ 18820 enable_shared_with_static_runtimes_GCJ \ 18821 old_archive_cmds_GCJ \ 18822 old_archive_from_new_cmds_GCJ \ 18823 predep_objects_GCJ \ 18824 postdep_objects_GCJ \ 18825 predeps_GCJ \ 18826 postdeps_GCJ \ 18827 compiler_lib_search_path_GCJ \ 18828 archive_cmds_GCJ \ 18829 archive_expsym_cmds_GCJ \ 18830 postinstall_cmds_GCJ \ 18831 postuninstall_cmds_GCJ \ 18832 old_archive_from_expsyms_cmds_GCJ \ 18833 allow_undefined_flag_GCJ \ 18834 no_undefined_flag_GCJ \ 18835 export_symbols_cmds_GCJ \ 18836 hardcode_libdir_flag_spec_GCJ \ 18837 hardcode_libdir_flag_spec_ld_GCJ \ 18838 hardcode_libdir_separator_GCJ \ 18839 hardcode_automatic_GCJ \ 18840 module_cmds_GCJ \ 18841 module_expsym_cmds_GCJ \ 18842 lt_cv_prog_compiler_c_o_GCJ \ 18843 exclude_expsyms_GCJ \ 18844 include_expsyms_GCJ; do 18845 18846 case $var in 18847 old_archive_cmds_GCJ | \ 18848 old_archive_from_new_cmds_GCJ | \ 18849 archive_cmds_GCJ | \ 18850 archive_expsym_cmds_GCJ | \ 18851 module_cmds_GCJ | \ 18852 module_expsym_cmds_GCJ | \ 18853 old_archive_from_expsyms_cmds_GCJ | \ 18854 export_symbols_cmds_GCJ | \ 18855 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18856 postinstall_cmds | postuninstall_cmds | \ 18857 old_postinstall_cmds | old_postuninstall_cmds | \ 18858 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18859 # Double-quote double-evaled strings. 18860 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18861 ;; 18862 *) 18863 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18864 ;; 18865 esac 18866 done 18867 18868 case $lt_echo in 18869 *'\$0 --fallback-echo"') 18870 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18871 ;; 18872 esac 18873 18874cfgfile="$ofile" 18875 18876 cat <<__EOF__ >> "$cfgfile" 18877# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18878 18879# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18880 18881# Shell to use when invoking shell scripts. 18882SHELL=$lt_SHELL 18883 18884# Whether or not to build shared libraries. 18885build_libtool_libs=$enable_shared 18886 18887# Whether or not to build static libraries. 18888build_old_libs=$enable_static 18889 18890# Whether or not to add -lc for building shared libraries. 18891build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18892 18893# Whether or not to disallow shared libs when runtime libs are static 18894allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18895 18896# Whether or not to optimize for fast installation. 18897fast_install=$enable_fast_install 18898 18899# The host system. 18900host_alias=$host_alias 18901host=$host 18902host_os=$host_os 18903 18904# The build system. 18905build_alias=$build_alias 18906build=$build 18907build_os=$build_os 18908 18909# An echo program that does not interpret backslashes. 18910echo=$lt_echo 18911 18912# The archiver. 18913AR=$lt_AR 18914AR_FLAGS=$lt_AR_FLAGS 18915 18916# A C compiler. 18917LTCC=$lt_LTCC 18918 18919# LTCC compiler flags. 18920LTCFLAGS=$lt_LTCFLAGS 18921 18922# A language-specific compiler. 18923CC=$lt_compiler_GCJ 18924 18925# Is the compiler the GNU C compiler? 18926with_gcc=$GCC_GCJ 18927 18928# An ERE matcher. 18929EGREP=$lt_EGREP 18930 18931# The linker used to build libraries. 18932LD=$lt_LD_GCJ 18933 18934# Whether we need hard or soft links. 18935LN_S=$lt_LN_S 18936 18937# A BSD-compatible nm program. 18938NM=$lt_NM 18939 18940# A symbol stripping program 18941STRIP=$lt_STRIP 18942 18943# Used to examine libraries when file_magic_cmd begins "file" 18944MAGIC_CMD=$MAGIC_CMD 18945 18946# Used on cygwin: DLL creation program. 18947DLLTOOL="$DLLTOOL" 18948 18949# Used on cygwin: object dumper. 18950OBJDUMP="$OBJDUMP" 18951 18952# Used on cygwin: assembler. 18953AS="$AS" 18954 18955# The name of the directory that contains temporary libtool files. 18956objdir=$objdir 18957 18958# How to create reloadable object files. 18959reload_flag=$lt_reload_flag 18960reload_cmds=$lt_reload_cmds 18961 18962# How to pass a linker flag through the compiler. 18963wl=$lt_lt_prog_compiler_wl_GCJ 18964 18965# Object file suffix (normally "o"). 18966objext="$ac_objext" 18967 18968# Old archive suffix (normally "a"). 18969libext="$libext" 18970 18971# Shared library suffix (normally ".so"). 18972shrext_cmds='$shrext_cmds' 18973 18974# Executable file suffix (normally ""). 18975exeext="$exeext" 18976 18977# Additional compiler flags for building library objects. 18978pic_flag=$lt_lt_prog_compiler_pic_GCJ 18979pic_mode=$pic_mode 18980 18981# What is the maximum length of a command? 18982max_cmd_len=$lt_cv_sys_max_cmd_len 18983 18984# Does compiler simultaneously support -c and -o options? 18985compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18986 18987# Must we lock files when doing compilation? 18988need_locks=$lt_need_locks 18989 18990# Do we need the lib prefix for modules? 18991need_lib_prefix=$need_lib_prefix 18992 18993# Do we need a version for libraries? 18994need_version=$need_version 18995 18996# Whether dlopen is supported. 18997dlopen_support=$enable_dlopen 18998 18999# Whether dlopen of programs is supported. 19000dlopen_self=$enable_dlopen_self 19001 19002# Whether dlopen of statically linked programs is supported. 19003dlopen_self_static=$enable_dlopen_self_static 19004 19005# Compiler flag to prevent dynamic linking. 19006link_static_flag=$lt_lt_prog_compiler_static_GCJ 19007 19008# Compiler flag to turn off builtin functions. 19009no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19010 19011# Compiler flag to allow reflexive dlopens. 19012export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19013 19014# Compiler flag to generate shared objects directly from archives. 19015whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19016 19017# Compiler flag to generate thread-safe objects. 19018thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19019 19020# Library versioning type. 19021version_type=$version_type 19022 19023# Format of library name prefix. 19024libname_spec=$lt_libname_spec 19025 19026# List of archive names. First name is the real one, the rest are links. 19027# The last name is the one that the linker finds with -lNAME. 19028library_names_spec=$lt_library_names_spec 19029 19030# The coded name of the library, if different from the real name. 19031soname_spec=$lt_soname_spec 19032 19033# Commands used to build and install an old-style archive. 19034RANLIB=$lt_RANLIB 19035old_archive_cmds=$lt_old_archive_cmds_GCJ 19036old_postinstall_cmds=$lt_old_postinstall_cmds 19037old_postuninstall_cmds=$lt_old_postuninstall_cmds 19038 19039# Create an old-style archive from a shared archive. 19040old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19041 19042# Create a temporary old-style archive to link instead of a shared archive. 19043old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19044 19045# Commands used to build and install a shared archive. 19046archive_cmds=$lt_archive_cmds_GCJ 19047archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19048postinstall_cmds=$lt_postinstall_cmds 19049postuninstall_cmds=$lt_postuninstall_cmds 19050 19051# Commands used to build a loadable module (assumed same as above if empty) 19052module_cmds=$lt_module_cmds_GCJ 19053module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19054 19055# Commands to strip libraries. 19056old_striplib=$lt_old_striplib 19057striplib=$lt_striplib 19058 19059# Dependencies to place before the objects being linked to create a 19060# shared library. 19061predep_objects=$lt_predep_objects_GCJ 19062 19063# Dependencies to place after the objects being linked to create a 19064# shared library. 19065postdep_objects=$lt_postdep_objects_GCJ 19066 19067# Dependencies to place before the objects being linked to create a 19068# shared library. 19069predeps=$lt_predeps_GCJ 19070 19071# Dependencies to place after the objects being linked to create a 19072# shared library. 19073postdeps=$lt_postdeps_GCJ 19074 19075# The library search path used internally by the compiler when linking 19076# a shared library. 19077compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19078 19079# Method to check whether dependent libraries are shared objects. 19080deplibs_check_method=$lt_deplibs_check_method 19081 19082# Command to use when deplibs_check_method == file_magic. 19083file_magic_cmd=$lt_file_magic_cmd 19084 19085# Flag that allows shared libraries with undefined symbols to be built. 19086allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19087 19088# Flag that forces no undefined symbols. 19089no_undefined_flag=$lt_no_undefined_flag_GCJ 19090 19091# Commands used to finish a libtool library installation in a directory. 19092finish_cmds=$lt_finish_cmds 19093 19094# Same as above, but a single script fragment to be evaled but not shown. 19095finish_eval=$lt_finish_eval 19096 19097# Take the output of nm and produce a listing of raw symbols and C names. 19098global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19099 19100# Transform the output of nm in a proper C declaration 19101global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19102 19103# Transform the output of nm in a C name address pair 19104global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19105 19106# This is the shared library runtime path variable. 19107runpath_var=$runpath_var 19108 19109# This is the shared library path variable. 19110shlibpath_var=$shlibpath_var 19111 19112# Is shlibpath searched before the hard-coded library search path? 19113shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19114 19115# How to hardcode a shared library path into an executable. 19116hardcode_action=$hardcode_action_GCJ 19117 19118# Whether we should hardcode library paths into libraries. 19119hardcode_into_libs=$hardcode_into_libs 19120 19121# Flag to hardcode \$libdir into a binary during linking. 19122# This must work even if \$libdir does not exist. 19123hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19124 19125# If ld is used when linking, flag to hardcode \$libdir into 19126# a binary during linking. This must work even if \$libdir does 19127# not exist. 19128hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19129 19130# Whether we need a single -rpath flag with a separated argument. 19131hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19132 19133# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19134# resulting binary. 19135hardcode_direct=$hardcode_direct_GCJ 19136 19137# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19138# resulting binary. 19139hardcode_minus_L=$hardcode_minus_L_GCJ 19140 19141# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19142# the resulting binary. 19143hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19144 19145# Set to yes if building a shared library automatically hardcodes DIR into the library 19146# and all subsequent libraries and executables linked against it. 19147hardcode_automatic=$hardcode_automatic_GCJ 19148 19149# Variables whose values should be saved in libtool wrapper scripts and 19150# restored at relink time. 19151variables_saved_for_relink="$variables_saved_for_relink" 19152 19153# Whether libtool must link a program against all its dependency libraries. 19154link_all_deplibs=$link_all_deplibs_GCJ 19155 19156# Compile-time system search path for libraries 19157sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19158 19159# Run-time system search path for libraries 19160sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19161 19162# Fix the shell variable \$srcfile for the compiler. 19163fix_srcfile_path="$fix_srcfile_path_GCJ" 19164 19165# Set to yes if exported symbols are required. 19166always_export_symbols=$always_export_symbols_GCJ 19167 19168# The commands to list exported symbols. 19169export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19170 19171# The commands to extract the exported symbol list from a shared archive. 19172extract_expsyms_cmds=$lt_extract_expsyms_cmds 19173 19174# Symbols that should not be listed in the preloaded symbols. 19175exclude_expsyms=$lt_exclude_expsyms_GCJ 19176 19177# Symbols that must always be exported. 19178include_expsyms=$lt_include_expsyms_GCJ 19179 19180# ### END LIBTOOL TAG CONFIG: $tagname 19181 19182__EOF__ 19183 19184 19185else 19186 # If there is no Makefile yet, we rely on a make rule to execute 19187 # `config.status --recheck' to rerun these tests and create the 19188 # libtool script then. 19189 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19190 if test -f "$ltmain_in"; then 19191 test -f Makefile && make "$ltmain" 19192 fi 19193fi 19194 19195 19196ac_ext=c 19197ac_cpp='$CPP $CPPFLAGS' 19198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19200ac_compiler_gnu=$ac_cv_c_compiler_gnu 19201 19202CC="$lt_save_CC" 19203 19204 else 19205 tagname="" 19206 fi 19207 ;; 19208 19209 RC) 19210 19211 19212# Source file extension for RC test sources. 19213ac_ext=rc 19214 19215# Object file extension for compiled RC test sources. 19216objext=o 19217objext_RC=$objext 19218 19219# Code to be used in simple compile tests 19220lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19221 19222# Code to be used in simple link tests 19223lt_simple_link_test_code="$lt_simple_compile_test_code" 19224 19225# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19226 19227# If no C compiler was specified, use CC. 19228LTCC=${LTCC-"$CC"} 19229 19230# If no C compiler flags were specified, use CFLAGS. 19231LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19232 19233# Allow CC to be a program name with arguments. 19234compiler=$CC 19235 19236 19237# save warnings/boilerplate of simple test code 19238ac_outfile=conftest.$ac_objext 19239printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19240eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19241_lt_compiler_boilerplate=`cat conftest.err` 19242$rm conftest* 19243 19244ac_outfile=conftest.$ac_objext 19245printf "$lt_simple_link_test_code" >conftest.$ac_ext 19246eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19247_lt_linker_boilerplate=`cat conftest.err` 19248$rm conftest* 19249 19250 19251# Allow CC to be a program name with arguments. 19252lt_save_CC="$CC" 19253CC=${RC-"windres"} 19254compiler=$CC 19255compiler_RC=$CC 19256for cc_temp in $compiler""; do 19257 case $cc_temp in 19258 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19259 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19260 \-*) ;; 19261 *) break;; 19262 esac 19263done 19264cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19265 19266lt_cv_prog_compiler_c_o_RC=yes 19267 19268# The else clause should only fire when bootstrapping the 19269# libtool distribution, otherwise you forgot to ship ltmain.sh 19270# with your package, and you will get complaints that there are 19271# no rules to generate ltmain.sh. 19272if test -f "$ltmain"; then 19273 # See if we are running on zsh, and set the options which allow our commands through 19274 # without removal of \ escapes. 19275 if test -n "${ZSH_VERSION+set}" ; then 19276 setopt NO_GLOB_SUBST 19277 fi 19278 # Now quote all the things that may contain metacharacters while being 19279 # careful not to overquote the AC_SUBSTed values. We take copies of the 19280 # variables and quote the copies for generation of the libtool script. 19281 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19282 SED SHELL STRIP \ 19283 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19284 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19285 deplibs_check_method reload_flag reload_cmds need_locks \ 19286 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19287 lt_cv_sys_global_symbol_to_c_name_address \ 19288 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19289 old_postinstall_cmds old_postuninstall_cmds \ 19290 compiler_RC \ 19291 CC_RC \ 19292 LD_RC \ 19293 lt_prog_compiler_wl_RC \ 19294 lt_prog_compiler_pic_RC \ 19295 lt_prog_compiler_static_RC \ 19296 lt_prog_compiler_no_builtin_flag_RC \ 19297 export_dynamic_flag_spec_RC \ 19298 thread_safe_flag_spec_RC \ 19299 whole_archive_flag_spec_RC \ 19300 enable_shared_with_static_runtimes_RC \ 19301 old_archive_cmds_RC \ 19302 old_archive_from_new_cmds_RC \ 19303 predep_objects_RC \ 19304 postdep_objects_RC \ 19305 predeps_RC \ 19306 postdeps_RC \ 19307 compiler_lib_search_path_RC \ 19308 archive_cmds_RC \ 19309 archive_expsym_cmds_RC \ 19310 postinstall_cmds_RC \ 19311 postuninstall_cmds_RC \ 19312 old_archive_from_expsyms_cmds_RC \ 19313 allow_undefined_flag_RC \ 19314 no_undefined_flag_RC \ 19315 export_symbols_cmds_RC \ 19316 hardcode_libdir_flag_spec_RC \ 19317 hardcode_libdir_flag_spec_ld_RC \ 19318 hardcode_libdir_separator_RC \ 19319 hardcode_automatic_RC \ 19320 module_cmds_RC \ 19321 module_expsym_cmds_RC \ 19322 lt_cv_prog_compiler_c_o_RC \ 19323 exclude_expsyms_RC \ 19324 include_expsyms_RC; do 19325 19326 case $var in 19327 old_archive_cmds_RC | \ 19328 old_archive_from_new_cmds_RC | \ 19329 archive_cmds_RC | \ 19330 archive_expsym_cmds_RC | \ 19331 module_cmds_RC | \ 19332 module_expsym_cmds_RC | \ 19333 old_archive_from_expsyms_cmds_RC | \ 19334 export_symbols_cmds_RC | \ 19335 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19336 postinstall_cmds | postuninstall_cmds | \ 19337 old_postinstall_cmds | old_postuninstall_cmds | \ 19338 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19339 # Double-quote double-evaled strings. 19340 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19341 ;; 19342 *) 19343 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19344 ;; 19345 esac 19346 done 19347 19348 case $lt_echo in 19349 *'\$0 --fallback-echo"') 19350 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19351 ;; 19352 esac 19353 19354cfgfile="$ofile" 19355 19356 cat <<__EOF__ >> "$cfgfile" 19357# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19358 19359# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19360 19361# Shell to use when invoking shell scripts. 19362SHELL=$lt_SHELL 19363 19364# Whether or not to build shared libraries. 19365build_libtool_libs=$enable_shared 19366 19367# Whether or not to build static libraries. 19368build_old_libs=$enable_static 19369 19370# Whether or not to add -lc for building shared libraries. 19371build_libtool_need_lc=$archive_cmds_need_lc_RC 19372 19373# Whether or not to disallow shared libs when runtime libs are static 19374allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19375 19376# Whether or not to optimize for fast installation. 19377fast_install=$enable_fast_install 19378 19379# The host system. 19380host_alias=$host_alias 19381host=$host 19382host_os=$host_os 19383 19384# The build system. 19385build_alias=$build_alias 19386build=$build 19387build_os=$build_os 19388 19389# An echo program that does not interpret backslashes. 19390echo=$lt_echo 19391 19392# The archiver. 19393AR=$lt_AR 19394AR_FLAGS=$lt_AR_FLAGS 19395 19396# A C compiler. 19397LTCC=$lt_LTCC 19398 19399# LTCC compiler flags. 19400LTCFLAGS=$lt_LTCFLAGS 19401 19402# A language-specific compiler. 19403CC=$lt_compiler_RC 19404 19405# Is the compiler the GNU C compiler? 19406with_gcc=$GCC_RC 19407 19408# An ERE matcher. 19409EGREP=$lt_EGREP 19410 19411# The linker used to build libraries. 19412LD=$lt_LD_RC 19413 19414# Whether we need hard or soft links. 19415LN_S=$lt_LN_S 19416 19417# A BSD-compatible nm program. 19418NM=$lt_NM 19419 19420# A symbol stripping program 19421STRIP=$lt_STRIP 19422 19423# Used to examine libraries when file_magic_cmd begins "file" 19424MAGIC_CMD=$MAGIC_CMD 19425 19426# Used on cygwin: DLL creation program. 19427DLLTOOL="$DLLTOOL" 19428 19429# Used on cygwin: object dumper. 19430OBJDUMP="$OBJDUMP" 19431 19432# Used on cygwin: assembler. 19433AS="$AS" 19434 19435# The name of the directory that contains temporary libtool files. 19436objdir=$objdir 19437 19438# How to create reloadable object files. 19439reload_flag=$lt_reload_flag 19440reload_cmds=$lt_reload_cmds 19441 19442# How to pass a linker flag through the compiler. 19443wl=$lt_lt_prog_compiler_wl_RC 19444 19445# Object file suffix (normally "o"). 19446objext="$ac_objext" 19447 19448# Old archive suffix (normally "a"). 19449libext="$libext" 19450 19451# Shared library suffix (normally ".so"). 19452shrext_cmds='$shrext_cmds' 19453 19454# Executable file suffix (normally ""). 19455exeext="$exeext" 19456 19457# Additional compiler flags for building library objects. 19458pic_flag=$lt_lt_prog_compiler_pic_RC 19459pic_mode=$pic_mode 19460 19461# What is the maximum length of a command? 19462max_cmd_len=$lt_cv_sys_max_cmd_len 19463 19464# Does compiler simultaneously support -c and -o options? 19465compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19466 19467# Must we lock files when doing compilation? 19468need_locks=$lt_need_locks 19469 19470# Do we need the lib prefix for modules? 19471need_lib_prefix=$need_lib_prefix 19472 19473# Do we need a version for libraries? 19474need_version=$need_version 19475 19476# Whether dlopen is supported. 19477dlopen_support=$enable_dlopen 19478 19479# Whether dlopen of programs is supported. 19480dlopen_self=$enable_dlopen_self 19481 19482# Whether dlopen of statically linked programs is supported. 19483dlopen_self_static=$enable_dlopen_self_static 19484 19485# Compiler flag to prevent dynamic linking. 19486link_static_flag=$lt_lt_prog_compiler_static_RC 19487 19488# Compiler flag to turn off builtin functions. 19489no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19490 19491# Compiler flag to allow reflexive dlopens. 19492export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19493 19494# Compiler flag to generate shared objects directly from archives. 19495whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19496 19497# Compiler flag to generate thread-safe objects. 19498thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19499 19500# Library versioning type. 19501version_type=$version_type 19502 19503# Format of library name prefix. 19504libname_spec=$lt_libname_spec 19505 19506# List of archive names. First name is the real one, the rest are links. 19507# The last name is the one that the linker finds with -lNAME. 19508library_names_spec=$lt_library_names_spec 19509 19510# The coded name of the library, if different from the real name. 19511soname_spec=$lt_soname_spec 19512 19513# Commands used to build and install an old-style archive. 19514RANLIB=$lt_RANLIB 19515old_archive_cmds=$lt_old_archive_cmds_RC 19516old_postinstall_cmds=$lt_old_postinstall_cmds 19517old_postuninstall_cmds=$lt_old_postuninstall_cmds 19518 19519# Create an old-style archive from a shared archive. 19520old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19521 19522# Create a temporary old-style archive to link instead of a shared archive. 19523old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19524 19525# Commands used to build and install a shared archive. 19526archive_cmds=$lt_archive_cmds_RC 19527archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19528postinstall_cmds=$lt_postinstall_cmds 19529postuninstall_cmds=$lt_postuninstall_cmds 19530 19531# Commands used to build a loadable module (assumed same as above if empty) 19532module_cmds=$lt_module_cmds_RC 19533module_expsym_cmds=$lt_module_expsym_cmds_RC 19534 19535# Commands to strip libraries. 19536old_striplib=$lt_old_striplib 19537striplib=$lt_striplib 19538 19539# Dependencies to place before the objects being linked to create a 19540# shared library. 19541predep_objects=$lt_predep_objects_RC 19542 19543# Dependencies to place after the objects being linked to create a 19544# shared library. 19545postdep_objects=$lt_postdep_objects_RC 19546 19547# Dependencies to place before the objects being linked to create a 19548# shared library. 19549predeps=$lt_predeps_RC 19550 19551# Dependencies to place after the objects being linked to create a 19552# shared library. 19553postdeps=$lt_postdeps_RC 19554 19555# The library search path used internally by the compiler when linking 19556# a shared library. 19557compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19558 19559# Method to check whether dependent libraries are shared objects. 19560deplibs_check_method=$lt_deplibs_check_method 19561 19562# Command to use when deplibs_check_method == file_magic. 19563file_magic_cmd=$lt_file_magic_cmd 19564 19565# Flag that allows shared libraries with undefined symbols to be built. 19566allow_undefined_flag=$lt_allow_undefined_flag_RC 19567 19568# Flag that forces no undefined symbols. 19569no_undefined_flag=$lt_no_undefined_flag_RC 19570 19571# Commands used to finish a libtool library installation in a directory. 19572finish_cmds=$lt_finish_cmds 19573 19574# Same as above, but a single script fragment to be evaled but not shown. 19575finish_eval=$lt_finish_eval 19576 19577# Take the output of nm and produce a listing of raw symbols and C names. 19578global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19579 19580# Transform the output of nm in a proper C declaration 19581global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19582 19583# Transform the output of nm in a C name address pair 19584global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19585 19586# This is the shared library runtime path variable. 19587runpath_var=$runpath_var 19588 19589# This is the shared library path variable. 19590shlibpath_var=$shlibpath_var 19591 19592# Is shlibpath searched before the hard-coded library search path? 19593shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19594 19595# How to hardcode a shared library path into an executable. 19596hardcode_action=$hardcode_action_RC 19597 19598# Whether we should hardcode library paths into libraries. 19599hardcode_into_libs=$hardcode_into_libs 19600 19601# Flag to hardcode \$libdir into a binary during linking. 19602# This must work even if \$libdir does not exist. 19603hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19604 19605# If ld is used when linking, flag to hardcode \$libdir into 19606# a binary during linking. This must work even if \$libdir does 19607# not exist. 19608hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19609 19610# Whether we need a single -rpath flag with a separated argument. 19611hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19612 19613# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19614# resulting binary. 19615hardcode_direct=$hardcode_direct_RC 19616 19617# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19618# resulting binary. 19619hardcode_minus_L=$hardcode_minus_L_RC 19620 19621# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19622# the resulting binary. 19623hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19624 19625# Set to yes if building a shared library automatically hardcodes DIR into the library 19626# and all subsequent libraries and executables linked against it. 19627hardcode_automatic=$hardcode_automatic_RC 19628 19629# Variables whose values should be saved in libtool wrapper scripts and 19630# restored at relink time. 19631variables_saved_for_relink="$variables_saved_for_relink" 19632 19633# Whether libtool must link a program against all its dependency libraries. 19634link_all_deplibs=$link_all_deplibs_RC 19635 19636# Compile-time system search path for libraries 19637sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19638 19639# Run-time system search path for libraries 19640sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19641 19642# Fix the shell variable \$srcfile for the compiler. 19643fix_srcfile_path="$fix_srcfile_path_RC" 19644 19645# Set to yes if exported symbols are required. 19646always_export_symbols=$always_export_symbols_RC 19647 19648# The commands to list exported symbols. 19649export_symbols_cmds=$lt_export_symbols_cmds_RC 19650 19651# The commands to extract the exported symbol list from a shared archive. 19652extract_expsyms_cmds=$lt_extract_expsyms_cmds 19653 19654# Symbols that should not be listed in the preloaded symbols. 19655exclude_expsyms=$lt_exclude_expsyms_RC 19656 19657# Symbols that must always be exported. 19658include_expsyms=$lt_include_expsyms_RC 19659 19660# ### END LIBTOOL TAG CONFIG: $tagname 19661 19662__EOF__ 19663 19664 19665else 19666 # If there is no Makefile yet, we rely on a make rule to execute 19667 # `config.status --recheck' to rerun these tests and create the 19668 # libtool script then. 19669 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19670 if test -f "$ltmain_in"; then 19671 test -f Makefile && make "$ltmain" 19672 fi 19673fi 19674 19675 19676ac_ext=c 19677ac_cpp='$CPP $CPPFLAGS' 19678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19680ac_compiler_gnu=$ac_cv_c_compiler_gnu 19681 19682CC="$lt_save_CC" 19683 19684 ;; 19685 19686 *) 19687 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19688echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19689 { (exit 1); exit 1; }; } 19690 ;; 19691 esac 19692 19693 # Append the new tag name to the list of available tags. 19694 if test -n "$tagname" ; then 19695 available_tags="$available_tags $tagname" 19696 fi 19697 fi 19698 done 19699 IFS="$lt_save_ifs" 19700 19701 # Now substitute the updated list of available tags. 19702 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19703 mv "${ofile}T" "$ofile" 19704 chmod +x "$ofile" 19705 else 19706 rm -f "${ofile}T" 19707 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19708echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19709 { (exit 1); exit 1; }; } 19710 fi 19711fi 19712 19713 19714 19715# This can be used to rebuild libtool when needed 19716LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19717 19718# Always use our own libtool. 19719LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19720 19721# Prevent multiple expansion 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742ac_ext=c 19743ac_cpp='$CPP $CPPFLAGS' 19744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19746ac_compiler_gnu=$ac_cv_c_compiler_gnu 19747if test -n "$ac_tool_prefix"; then 19748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19749set dummy ${ac_tool_prefix}gcc; ac_word=$2 19750{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19752if test "${ac_cv_prog_CC+set}" = set; then 19753 echo $ECHO_N "(cached) $ECHO_C" >&6 19754else 19755 if test -n "$CC"; then 19756 ac_cv_prog_CC="$CC" # Let the user override the test. 19757else 19758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19759for as_dir in $PATH 19760do 19761 IFS=$as_save_IFS 19762 test -z "$as_dir" && as_dir=. 19763 for ac_exec_ext in '' $ac_executable_extensions; do 19764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19765 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19767 break 2 19768 fi 19769done 19770done 19771IFS=$as_save_IFS 19772 19773fi 19774fi 19775CC=$ac_cv_prog_CC 19776if test -n "$CC"; then 19777 { echo "$as_me:$LINENO: result: $CC" >&5 19778echo "${ECHO_T}$CC" >&6; } 19779else 19780 { echo "$as_me:$LINENO: result: no" >&5 19781echo "${ECHO_T}no" >&6; } 19782fi 19783 19784 19785fi 19786if test -z "$ac_cv_prog_CC"; then 19787 ac_ct_CC=$CC 19788 # Extract the first word of "gcc", so it can be a program name with args. 19789set dummy gcc; ac_word=$2 19790{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19792if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19793 echo $ECHO_N "(cached) $ECHO_C" >&6 19794else 19795 if test -n "$ac_ct_CC"; then 19796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19797else 19798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19799for as_dir in $PATH 19800do 19801 IFS=$as_save_IFS 19802 test -z "$as_dir" && as_dir=. 19803 for ac_exec_ext in '' $ac_executable_extensions; do 19804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19805 ac_cv_prog_ac_ct_CC="gcc" 19806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19807 break 2 19808 fi 19809done 19810done 19811IFS=$as_save_IFS 19812 19813fi 19814fi 19815ac_ct_CC=$ac_cv_prog_ac_ct_CC 19816if test -n "$ac_ct_CC"; then 19817 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19818echo "${ECHO_T}$ac_ct_CC" >&6; } 19819else 19820 { echo "$as_me:$LINENO: result: no" >&5 19821echo "${ECHO_T}no" >&6; } 19822fi 19823 19824 if test "x$ac_ct_CC" = x; then 19825 CC="" 19826 else 19827 case $cross_compiling:$ac_tool_warned in 19828yes:) 19829{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19830whose name does not start with the host triplet. If you think this 19831configuration is useful to you, please write to autoconf@gnu.org." >&5 19832echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19833whose name does not start with the host triplet. If you think this 19834configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19835ac_tool_warned=yes ;; 19836esac 19837 CC=$ac_ct_CC 19838 fi 19839else 19840 CC="$ac_cv_prog_CC" 19841fi 19842 19843if test -z "$CC"; then 19844 if test -n "$ac_tool_prefix"; then 19845 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19846set dummy ${ac_tool_prefix}cc; ac_word=$2 19847{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19849if test "${ac_cv_prog_CC+set}" = set; then 19850 echo $ECHO_N "(cached) $ECHO_C" >&6 19851else 19852 if test -n "$CC"; then 19853 ac_cv_prog_CC="$CC" # Let the user override the test. 19854else 19855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19856for as_dir in $PATH 19857do 19858 IFS=$as_save_IFS 19859 test -z "$as_dir" && as_dir=. 19860 for ac_exec_ext in '' $ac_executable_extensions; do 19861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19862 ac_cv_prog_CC="${ac_tool_prefix}cc" 19863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19864 break 2 19865 fi 19866done 19867done 19868IFS=$as_save_IFS 19869 19870fi 19871fi 19872CC=$ac_cv_prog_CC 19873if test -n "$CC"; then 19874 { echo "$as_me:$LINENO: result: $CC" >&5 19875echo "${ECHO_T}$CC" >&6; } 19876else 19877 { echo "$as_me:$LINENO: result: no" >&5 19878echo "${ECHO_T}no" >&6; } 19879fi 19880 19881 19882 fi 19883fi 19884if test -z "$CC"; then 19885 # Extract the first word of "cc", so it can be a program name with args. 19886set dummy cc; ac_word=$2 19887{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19889if test "${ac_cv_prog_CC+set}" = set; then 19890 echo $ECHO_N "(cached) $ECHO_C" >&6 19891else 19892 if test -n "$CC"; then 19893 ac_cv_prog_CC="$CC" # Let the user override the test. 19894else 19895 ac_prog_rejected=no 19896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19897for as_dir in $PATH 19898do 19899 IFS=$as_save_IFS 19900 test -z "$as_dir" && as_dir=. 19901 for ac_exec_ext in '' $ac_executable_extensions; do 19902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19903 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19904 ac_prog_rejected=yes 19905 continue 19906 fi 19907 ac_cv_prog_CC="cc" 19908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19909 break 2 19910 fi 19911done 19912done 19913IFS=$as_save_IFS 19914 19915if test $ac_prog_rejected = yes; then 19916 # We found a bogon in the path, so make sure we never use it. 19917 set dummy $ac_cv_prog_CC 19918 shift 19919 if test $# != 0; then 19920 # We chose a different compiler from the bogus one. 19921 # However, it has the same basename, so the bogon will be chosen 19922 # first if we set CC to just the basename; use the full file name. 19923 shift 19924 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19925 fi 19926fi 19927fi 19928fi 19929CC=$ac_cv_prog_CC 19930if test -n "$CC"; then 19931 { echo "$as_me:$LINENO: result: $CC" >&5 19932echo "${ECHO_T}$CC" >&6; } 19933else 19934 { echo "$as_me:$LINENO: result: no" >&5 19935echo "${ECHO_T}no" >&6; } 19936fi 19937 19938 19939fi 19940if test -z "$CC"; then 19941 if test -n "$ac_tool_prefix"; then 19942 for ac_prog in cl.exe 19943 do 19944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19945set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19946{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19948if test "${ac_cv_prog_CC+set}" = set; then 19949 echo $ECHO_N "(cached) $ECHO_C" >&6 19950else 19951 if test -n "$CC"; then 19952 ac_cv_prog_CC="$CC" # Let the user override the test. 19953else 19954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19955for as_dir in $PATH 19956do 19957 IFS=$as_save_IFS 19958 test -z "$as_dir" && as_dir=. 19959 for ac_exec_ext in '' $ac_executable_extensions; do 19960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19961 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19963 break 2 19964 fi 19965done 19966done 19967IFS=$as_save_IFS 19968 19969fi 19970fi 19971CC=$ac_cv_prog_CC 19972if test -n "$CC"; then 19973 { echo "$as_me:$LINENO: result: $CC" >&5 19974echo "${ECHO_T}$CC" >&6; } 19975else 19976 { echo "$as_me:$LINENO: result: no" >&5 19977echo "${ECHO_T}no" >&6; } 19978fi 19979 19980 19981 test -n "$CC" && break 19982 done 19983fi 19984if test -z "$CC"; then 19985 ac_ct_CC=$CC 19986 for ac_prog in cl.exe 19987do 19988 # Extract the first word of "$ac_prog", so it can be a program name with args. 19989set dummy $ac_prog; ac_word=$2 19990{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19993 echo $ECHO_N "(cached) $ECHO_C" >&6 19994else 19995 if test -n "$ac_ct_CC"; then 19996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19997else 19998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19999for as_dir in $PATH 20000do 20001 IFS=$as_save_IFS 20002 test -z "$as_dir" && as_dir=. 20003 for ac_exec_ext in '' $ac_executable_extensions; do 20004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20005 ac_cv_prog_ac_ct_CC="$ac_prog" 20006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20007 break 2 20008 fi 20009done 20010done 20011IFS=$as_save_IFS 20012 20013fi 20014fi 20015ac_ct_CC=$ac_cv_prog_ac_ct_CC 20016if test -n "$ac_ct_CC"; then 20017 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20018echo "${ECHO_T}$ac_ct_CC" >&6; } 20019else 20020 { echo "$as_me:$LINENO: result: no" >&5 20021echo "${ECHO_T}no" >&6; } 20022fi 20023 20024 20025 test -n "$ac_ct_CC" && break 20026done 20027 20028 if test "x$ac_ct_CC" = x; then 20029 CC="" 20030 else 20031 case $cross_compiling:$ac_tool_warned in 20032yes:) 20033{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20034whose name does not start with the host triplet. If you think this 20035configuration is useful to you, please write to autoconf@gnu.org." >&5 20036echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20037whose name does not start with the host triplet. If you think this 20038configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20039ac_tool_warned=yes ;; 20040esac 20041 CC=$ac_ct_CC 20042 fi 20043fi 20044 20045fi 20046 20047 20048test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20049See \`config.log' for more details." >&5 20050echo "$as_me: error: no acceptable C compiler found in \$PATH 20051See \`config.log' for more details." >&2;} 20052 { (exit 1); exit 1; }; } 20053 20054# Provide some information about the compiler. 20055echo "$as_me:$LINENO: checking for C compiler version" >&5 20056ac_compiler=`set X $ac_compile; echo $2` 20057{ (ac_try="$ac_compiler --version >&5" 20058case "(($ac_try" in 20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20060 *) ac_try_echo=$ac_try;; 20061esac 20062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20063 (eval "$ac_compiler --version >&5") 2>&5 20064 ac_status=$? 20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20066 (exit $ac_status); } 20067{ (ac_try="$ac_compiler -v >&5" 20068case "(($ac_try" in 20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20070 *) ac_try_echo=$ac_try;; 20071esac 20072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20073 (eval "$ac_compiler -v >&5") 2>&5 20074 ac_status=$? 20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20076 (exit $ac_status); } 20077{ (ac_try="$ac_compiler -V >&5" 20078case "(($ac_try" in 20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20080 *) ac_try_echo=$ac_try;; 20081esac 20082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20083 (eval "$ac_compiler -V >&5") 2>&5 20084 ac_status=$? 20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20086 (exit $ac_status); } 20087 20088{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 20089echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 20090if test "${ac_cv_c_compiler_gnu+set}" = set; then 20091 echo $ECHO_N "(cached) $ECHO_C" >&6 20092else 20093 cat >conftest.$ac_ext <<_ACEOF 20094/* confdefs.h. */ 20095_ACEOF 20096cat confdefs.h >>conftest.$ac_ext 20097cat >>conftest.$ac_ext <<_ACEOF 20098/* end confdefs.h. */ 20099 20100int 20101main () 20102{ 20103#ifndef __GNUC__ 20104 choke me 20105#endif 20106 20107 ; 20108 return 0; 20109} 20110_ACEOF 20111rm -f conftest.$ac_objext 20112if { (ac_try="$ac_compile" 20113case "(($ac_try" in 20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20115 *) ac_try_echo=$ac_try;; 20116esac 20117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20118 (eval "$ac_compile") 2>conftest.er1 20119 ac_status=$? 20120 grep -v '^ *+' conftest.er1 >conftest.err 20121 rm -f conftest.er1 20122 cat conftest.err >&5 20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20124 (exit $ac_status); } && 20125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20126 { (case "(($ac_try" in 20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20128 *) ac_try_echo=$ac_try;; 20129esac 20130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20131 (eval "$ac_try") 2>&5 20132 ac_status=$? 20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20134 (exit $ac_status); }; } && 20135 { ac_try='test -s conftest.$ac_objext' 20136 { (case "(($ac_try" in 20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20138 *) ac_try_echo=$ac_try;; 20139esac 20140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20141 (eval "$ac_try") 2>&5 20142 ac_status=$? 20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20144 (exit $ac_status); }; }; then 20145 ac_compiler_gnu=yes 20146else 20147 echo "$as_me: failed program was:" >&5 20148sed 's/^/| /' conftest.$ac_ext >&5 20149 20150 ac_compiler_gnu=no 20151fi 20152 20153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20154ac_cv_c_compiler_gnu=$ac_compiler_gnu 20155 20156fi 20157{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20158echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 20159GCC=`test $ac_compiler_gnu = yes && echo yes` 20160ac_test_CFLAGS=${CFLAGS+set} 20161ac_save_CFLAGS=$CFLAGS 20162{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20163echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 20164if test "${ac_cv_prog_cc_g+set}" = set; then 20165 echo $ECHO_N "(cached) $ECHO_C" >&6 20166else 20167 ac_save_c_werror_flag=$ac_c_werror_flag 20168 ac_c_werror_flag=yes 20169 ac_cv_prog_cc_g=no 20170 CFLAGS="-g" 20171 cat >conftest.$ac_ext <<_ACEOF 20172/* confdefs.h. */ 20173_ACEOF 20174cat confdefs.h >>conftest.$ac_ext 20175cat >>conftest.$ac_ext <<_ACEOF 20176/* end confdefs.h. */ 20177 20178int 20179main () 20180{ 20181 20182 ; 20183 return 0; 20184} 20185_ACEOF 20186rm -f conftest.$ac_objext 20187if { (ac_try="$ac_compile" 20188case "(($ac_try" in 20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20190 *) ac_try_echo=$ac_try;; 20191esac 20192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20193 (eval "$ac_compile") 2>conftest.er1 20194 ac_status=$? 20195 grep -v '^ *+' conftest.er1 >conftest.err 20196 rm -f conftest.er1 20197 cat conftest.err >&5 20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20199 (exit $ac_status); } && 20200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20201 { (case "(($ac_try" in 20202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20203 *) ac_try_echo=$ac_try;; 20204esac 20205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20206 (eval "$ac_try") 2>&5 20207 ac_status=$? 20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20209 (exit $ac_status); }; } && 20210 { ac_try='test -s conftest.$ac_objext' 20211 { (case "(($ac_try" in 20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20213 *) ac_try_echo=$ac_try;; 20214esac 20215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20216 (eval "$ac_try") 2>&5 20217 ac_status=$? 20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20219 (exit $ac_status); }; }; then 20220 ac_cv_prog_cc_g=yes 20221else 20222 echo "$as_me: failed program was:" >&5 20223sed 's/^/| /' conftest.$ac_ext >&5 20224 20225 CFLAGS="" 20226 cat >conftest.$ac_ext <<_ACEOF 20227/* confdefs.h. */ 20228_ACEOF 20229cat confdefs.h >>conftest.$ac_ext 20230cat >>conftest.$ac_ext <<_ACEOF 20231/* end confdefs.h. */ 20232 20233int 20234main () 20235{ 20236 20237 ; 20238 return 0; 20239} 20240_ACEOF 20241rm -f conftest.$ac_objext 20242if { (ac_try="$ac_compile" 20243case "(($ac_try" in 20244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20245 *) ac_try_echo=$ac_try;; 20246esac 20247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20248 (eval "$ac_compile") 2>conftest.er1 20249 ac_status=$? 20250 grep -v '^ *+' conftest.er1 >conftest.err 20251 rm -f conftest.er1 20252 cat conftest.err >&5 20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20254 (exit $ac_status); } && 20255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20256 { (case "(($ac_try" in 20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20258 *) ac_try_echo=$ac_try;; 20259esac 20260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20261 (eval "$ac_try") 2>&5 20262 ac_status=$? 20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20264 (exit $ac_status); }; } && 20265 { ac_try='test -s conftest.$ac_objext' 20266 { (case "(($ac_try" in 20267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20268 *) ac_try_echo=$ac_try;; 20269esac 20270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20271 (eval "$ac_try") 2>&5 20272 ac_status=$? 20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20274 (exit $ac_status); }; }; then 20275 : 20276else 20277 echo "$as_me: failed program was:" >&5 20278sed 's/^/| /' conftest.$ac_ext >&5 20279 20280 ac_c_werror_flag=$ac_save_c_werror_flag 20281 CFLAGS="-g" 20282 cat >conftest.$ac_ext <<_ACEOF 20283/* confdefs.h. */ 20284_ACEOF 20285cat confdefs.h >>conftest.$ac_ext 20286cat >>conftest.$ac_ext <<_ACEOF 20287/* end confdefs.h. */ 20288 20289int 20290main () 20291{ 20292 20293 ; 20294 return 0; 20295} 20296_ACEOF 20297rm -f conftest.$ac_objext 20298if { (ac_try="$ac_compile" 20299case "(($ac_try" in 20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20301 *) ac_try_echo=$ac_try;; 20302esac 20303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20304 (eval "$ac_compile") 2>conftest.er1 20305 ac_status=$? 20306 grep -v '^ *+' conftest.er1 >conftest.err 20307 rm -f conftest.er1 20308 cat conftest.err >&5 20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20310 (exit $ac_status); } && 20311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20312 { (case "(($ac_try" in 20313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20314 *) ac_try_echo=$ac_try;; 20315esac 20316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20317 (eval "$ac_try") 2>&5 20318 ac_status=$? 20319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20320 (exit $ac_status); }; } && 20321 { ac_try='test -s conftest.$ac_objext' 20322 { (case "(($ac_try" in 20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20324 *) ac_try_echo=$ac_try;; 20325esac 20326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20327 (eval "$ac_try") 2>&5 20328 ac_status=$? 20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20330 (exit $ac_status); }; }; then 20331 ac_cv_prog_cc_g=yes 20332else 20333 echo "$as_me: failed program was:" >&5 20334sed 's/^/| /' conftest.$ac_ext >&5 20335 20336 20337fi 20338 20339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20340fi 20341 20342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20343fi 20344 20345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20346 ac_c_werror_flag=$ac_save_c_werror_flag 20347fi 20348{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20349echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 20350if test "$ac_test_CFLAGS" = set; then 20351 CFLAGS=$ac_save_CFLAGS 20352elif test $ac_cv_prog_cc_g = yes; then 20353 if test "$GCC" = yes; then 20354 CFLAGS="-g -O2" 20355 else 20356 CFLAGS="-g" 20357 fi 20358else 20359 if test "$GCC" = yes; then 20360 CFLAGS="-O2" 20361 else 20362 CFLAGS= 20363 fi 20364fi 20365{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20366echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 20367if test "${ac_cv_prog_cc_c89+set}" = set; then 20368 echo $ECHO_N "(cached) $ECHO_C" >&6 20369else 20370 ac_cv_prog_cc_c89=no 20371ac_save_CC=$CC 20372cat >conftest.$ac_ext <<_ACEOF 20373/* confdefs.h. */ 20374_ACEOF 20375cat confdefs.h >>conftest.$ac_ext 20376cat >>conftest.$ac_ext <<_ACEOF 20377/* end confdefs.h. */ 20378#include <stdarg.h> 20379#include <stdio.h> 20380#include <sys/types.h> 20381#include <sys/stat.h> 20382/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20383struct buf { int x; }; 20384FILE * (*rcsopen) (struct buf *, struct stat *, int); 20385static char *e (p, i) 20386 char **p; 20387 int i; 20388{ 20389 return p[i]; 20390} 20391static char *f (char * (*g) (char **, int), char **p, ...) 20392{ 20393 char *s; 20394 va_list v; 20395 va_start (v,p); 20396 s = g (p, va_arg (v,int)); 20397 va_end (v); 20398 return s; 20399} 20400 20401/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20402 function prototypes and stuff, but not '\xHH' hex character constants. 20403 These don't provoke an error unfortunately, instead are silently treated 20404 as 'x'. The following induces an error, until -std is added to get 20405 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20406 array size at least. It's necessary to write '\x00'==0 to get something 20407 that's true only with -std. */ 20408int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20409 20410/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20411 inside strings and character constants. */ 20412#define FOO(x) 'x' 20413int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20414 20415int test (int i, double x); 20416struct s1 {int (*f) (int a);}; 20417struct s2 {int (*f) (double a);}; 20418int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20419int argc; 20420char **argv; 20421int 20422main () 20423{ 20424return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20425 ; 20426 return 0; 20427} 20428_ACEOF 20429for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20430 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20431do 20432 CC="$ac_save_CC $ac_arg" 20433 rm -f conftest.$ac_objext 20434if { (ac_try="$ac_compile" 20435case "(($ac_try" in 20436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20437 *) ac_try_echo=$ac_try;; 20438esac 20439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20440 (eval "$ac_compile") 2>conftest.er1 20441 ac_status=$? 20442 grep -v '^ *+' conftest.er1 >conftest.err 20443 rm -f conftest.er1 20444 cat conftest.err >&5 20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20446 (exit $ac_status); } && 20447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20448 { (case "(($ac_try" in 20449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20450 *) ac_try_echo=$ac_try;; 20451esac 20452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20453 (eval "$ac_try") 2>&5 20454 ac_status=$? 20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20456 (exit $ac_status); }; } && 20457 { ac_try='test -s conftest.$ac_objext' 20458 { (case "(($ac_try" in 20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20460 *) ac_try_echo=$ac_try;; 20461esac 20462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20463 (eval "$ac_try") 2>&5 20464 ac_status=$? 20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20466 (exit $ac_status); }; }; then 20467 ac_cv_prog_cc_c89=$ac_arg 20468else 20469 echo "$as_me: failed program was:" >&5 20470sed 's/^/| /' conftest.$ac_ext >&5 20471 20472 20473fi 20474 20475rm -f core conftest.err conftest.$ac_objext 20476 test "x$ac_cv_prog_cc_c89" != "xno" && break 20477done 20478rm -f conftest.$ac_ext 20479CC=$ac_save_CC 20480 20481fi 20482# AC_CACHE_VAL 20483case "x$ac_cv_prog_cc_c89" in 20484 x) 20485 { echo "$as_me:$LINENO: result: none needed" >&5 20486echo "${ECHO_T}none needed" >&6; } ;; 20487 xno) 20488 { echo "$as_me:$LINENO: result: unsupported" >&5 20489echo "${ECHO_T}unsupported" >&6; } ;; 20490 *) 20491 CC="$CC $ac_cv_prog_cc_c89" 20492 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20493echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 20494esac 20495 20496 20497ac_ext=c 20498ac_cpp='$CPP $CPPFLAGS' 20499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20501ac_compiler_gnu=$ac_cv_c_compiler_gnu 20502 20503depcc="$CC" am_compiler_list= 20504 20505{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20506echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 20507if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20508 echo $ECHO_N "(cached) $ECHO_C" >&6 20509else 20510 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20511 # We make a subdir and do the tests there. Otherwise we can end up 20512 # making bogus files that we don't know about and never remove. For 20513 # instance it was reported that on HP-UX the gcc test will end up 20514 # making a dummy file named `D' -- because `-MD' means `put the output 20515 # in D'. 20516 mkdir conftest.dir 20517 # Copy depcomp to subdir because otherwise we won't find it if we're 20518 # using a relative directory. 20519 cp "$am_depcomp" conftest.dir 20520 cd conftest.dir 20521 # We will build objects and dependencies in a subdirectory because 20522 # it helps to detect inapplicable dependency modes. For instance 20523 # both Tru64's cc and ICC support -MD to output dependencies as a 20524 # side effect of compilation, but ICC will put the dependencies in 20525 # the current directory while Tru64 will put them in the object 20526 # directory. 20527 mkdir sub 20528 20529 am_cv_CC_dependencies_compiler_type=none 20530 if test "$am_compiler_list" = ""; then 20531 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20532 fi 20533 for depmode in $am_compiler_list; do 20534 # Setup a source with many dependencies, because some compilers 20535 # like to wrap large dependency lists on column 80 (with \), and 20536 # we should not choose a depcomp mode which is confused by this. 20537 # 20538 # We need to recreate these files for each test, as the compiler may 20539 # overwrite some of them when testing with obscure command lines. 20540 # This happens at least with the AIX C compiler. 20541 : > sub/conftest.c 20542 for i in 1 2 3 4 5 6; do 20543 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20544 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20545 # Solaris 8's {/usr,}/bin/sh. 20546 touch sub/conftst$i.h 20547 done 20548 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20549 20550 case $depmode in 20551 nosideeffect) 20552 # after this tag, mechanisms are not by side-effect, so they'll 20553 # only be used when explicitly requested 20554 if test "x$enable_dependency_tracking" = xyes; then 20555 continue 20556 else 20557 break 20558 fi 20559 ;; 20560 none) break ;; 20561 esac 20562 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20563 # mode. It turns out that the SunPro C++ compiler does not properly 20564 # handle `-M -o', and we need to detect this. 20565 if depmode=$depmode \ 20566 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20567 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20568 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20569 >/dev/null 2>conftest.err && 20570 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20571 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20572 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20573 # icc doesn't choke on unknown options, it will just issue warnings 20574 # or remarks (even with -Werror). So we grep stderr for any message 20575 # that says an option was ignored or not supported. 20576 # When given -MP, icc 7.0 and 7.1 complain thusly: 20577 # icc: Command line warning: ignoring option '-M'; no argument required 20578 # The diagnosis changed in icc 8.0: 20579 # icc: Command line remark: option '-MP' not supported 20580 if (grep 'ignoring option' conftest.err || 20581 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20582 am_cv_CC_dependencies_compiler_type=$depmode 20583 break 20584 fi 20585 fi 20586 done 20587 20588 cd .. 20589 rm -rf conftest.dir 20590else 20591 am_cv_CC_dependencies_compiler_type=none 20592fi 20593 20594fi 20595{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20596echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 20597CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20598 20599 20600 20601if 20602 test "x$enable_dependency_tracking" != xno \ 20603 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20604 am__fastdepCC_TRUE= 20605 am__fastdepCC_FALSE='#' 20606else 20607 am__fastdepCC_TRUE='#' 20608 am__fastdepCC_FALSE= 20609fi 20610 20611 20612 20613 20614 20615 20616 20617# Check whether --with-xorg-module-dir was given. 20618if test "${with_xorg_module_dir+set}" = set; then 20619 withval=$with_xorg_module_dir; moduledir="$withval" 20620else 20621 moduledir="$libdir/xorg/modules" 20622fi 20623 20624 20625# Checks for extensions 20626 20627 SAVE_CFLAGS="$CFLAGS" 20628 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20629 cat >conftest.$ac_ext <<_ACEOF 20630/* confdefs.h. */ 20631_ACEOF 20632cat confdefs.h >>conftest.$ac_ext 20633cat >>conftest.$ac_ext <<_ACEOF 20634/* end confdefs.h. */ 20635 20636#include "xorg-server.h" 20637#if !defined RANDR 20638#error RANDR not defined 20639#endif 20640 20641int 20642main () 20643{ 20644 20645 ; 20646 return 0; 20647} 20648_ACEOF 20649rm -f conftest.$ac_objext 20650if { (ac_try="$ac_compile" 20651case "(($ac_try" in 20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20653 *) ac_try_echo=$ac_try;; 20654esac 20655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20656 (eval "$ac_compile") 2>conftest.er1 20657 ac_status=$? 20658 grep -v '^ *+' conftest.er1 >conftest.err 20659 rm -f conftest.er1 20660 cat conftest.err >&5 20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20662 (exit $ac_status); } && 20663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20664 { (case "(($ac_try" in 20665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20666 *) ac_try_echo=$ac_try;; 20667esac 20668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20669 (eval "$ac_try") 2>&5 20670 ac_status=$? 20671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20672 (exit $ac_status); }; } && 20673 { ac_try='test -s conftest.$ac_objext' 20674 { (case "(($ac_try" in 20675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20676 *) ac_try_echo=$ac_try;; 20677esac 20678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20679 (eval "$ac_try") 2>&5 20680 ac_status=$? 20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20682 (exit $ac_status); }; }; then 20683 _EXT_CHECK=yes 20684else 20685 echo "$as_me: failed program was:" >&5 20686sed 's/^/| /' conftest.$ac_ext >&5 20687 20688 _EXT_CHECK=no 20689fi 20690 20691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20692 CFLAGS="$SAVE_CFLAGS" 20693 { echo "$as_me:$LINENO: checking if RANDR is defined" >&5 20694echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; } 20695 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20696echo "${ECHO_T}$_EXT_CHECK" >&6; } 20697 if test "$_EXT_CHECK" != no; then 20698 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 20699 fi 20700 20701 20702 SAVE_CFLAGS="$CFLAGS" 20703 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20704 cat >conftest.$ac_ext <<_ACEOF 20705/* confdefs.h. */ 20706_ACEOF 20707cat confdefs.h >>conftest.$ac_ext 20708cat >>conftest.$ac_ext <<_ACEOF 20709/* end confdefs.h. */ 20710 20711#include "xorg-server.h" 20712#if !defined RENDER 20713#error RENDER not defined 20714#endif 20715 20716int 20717main () 20718{ 20719 20720 ; 20721 return 0; 20722} 20723_ACEOF 20724rm -f conftest.$ac_objext 20725if { (ac_try="$ac_compile" 20726case "(($ac_try" in 20727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20728 *) ac_try_echo=$ac_try;; 20729esac 20730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20731 (eval "$ac_compile") 2>conftest.er1 20732 ac_status=$? 20733 grep -v '^ *+' conftest.er1 >conftest.err 20734 rm -f conftest.er1 20735 cat conftest.err >&5 20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20737 (exit $ac_status); } && 20738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20739 { (case "(($ac_try" in 20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20741 *) ac_try_echo=$ac_try;; 20742esac 20743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20744 (eval "$ac_try") 2>&5 20745 ac_status=$? 20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20747 (exit $ac_status); }; } && 20748 { ac_try='test -s conftest.$ac_objext' 20749 { (case "(($ac_try" in 20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20751 *) ac_try_echo=$ac_try;; 20752esac 20753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20754 (eval "$ac_try") 2>&5 20755 ac_status=$? 20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20757 (exit $ac_status); }; }; then 20758 _EXT_CHECK=yes 20759else 20760 echo "$as_me: failed program was:" >&5 20761sed 's/^/| /' conftest.$ac_ext >&5 20762 20763 _EXT_CHECK=no 20764fi 20765 20766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20767 CFLAGS="$SAVE_CFLAGS" 20768 { echo "$as_me:$LINENO: checking if RENDER is defined" >&5 20769echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6; } 20770 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20771echo "${ECHO_T}$_EXT_CHECK" >&6; } 20772 if test "$_EXT_CHECK" != no; then 20773 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 20774 fi 20775 20776 20777 SAVE_CFLAGS="$CFLAGS" 20778 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 20779 cat >conftest.$ac_ext <<_ACEOF 20780/* confdefs.h. */ 20781_ACEOF 20782cat confdefs.h >>conftest.$ac_ext 20783cat >>conftest.$ac_ext <<_ACEOF 20784/* end confdefs.h. */ 20785 20786#include "xorg-server.h" 20787#if !defined DPMSExtension 20788#error DPMSExtension not defined 20789#endif 20790 20791int 20792main () 20793{ 20794 20795 ; 20796 return 0; 20797} 20798_ACEOF 20799rm -f conftest.$ac_objext 20800if { (ac_try="$ac_compile" 20801case "(($ac_try" in 20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20803 *) ac_try_echo=$ac_try;; 20804esac 20805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20806 (eval "$ac_compile") 2>conftest.er1 20807 ac_status=$? 20808 grep -v '^ *+' conftest.er1 >conftest.err 20809 rm -f conftest.er1 20810 cat conftest.err >&5 20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20812 (exit $ac_status); } && 20813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20814 { (case "(($ac_try" in 20815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20816 *) ac_try_echo=$ac_try;; 20817esac 20818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20819 (eval "$ac_try") 2>&5 20820 ac_status=$? 20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20822 (exit $ac_status); }; } && 20823 { ac_try='test -s conftest.$ac_objext' 20824 { (case "(($ac_try" in 20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20826 *) ac_try_echo=$ac_try;; 20827esac 20828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20829 (eval "$ac_try") 2>&5 20830 ac_status=$? 20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20832 (exit $ac_status); }; }; then 20833 _EXT_CHECK=yes 20834else 20835 echo "$as_me: failed program was:" >&5 20836sed 's/^/| /' conftest.$ac_ext >&5 20837 20838 _EXT_CHECK=no 20839fi 20840 20841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20842 CFLAGS="$SAVE_CFLAGS" 20843 { echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5 20844echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6; } 20845 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5 20846echo "${ECHO_T}$_EXT_CHECK" >&6; } 20847 if test "$_EXT_CHECK" != no; then 20848 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 20849 fi 20850 20851 20852# Checks for pkg-config packages 20853 20854 20855if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20856 if test -n "$ac_tool_prefix"; then 20857 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20858set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20859{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20861if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20862 echo $ECHO_N "(cached) $ECHO_C" >&6 20863else 20864 case $PKG_CONFIG in 20865 [\\/]* | ?:[\\/]*) 20866 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20867 ;; 20868 *) 20869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20870for as_dir in $PATH 20871do 20872 IFS=$as_save_IFS 20873 test -z "$as_dir" && as_dir=. 20874 for ac_exec_ext in '' $ac_executable_extensions; do 20875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20876 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20878 break 2 20879 fi 20880done 20881done 20882IFS=$as_save_IFS 20883 20884 ;; 20885esac 20886fi 20887PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20888if test -n "$PKG_CONFIG"; then 20889 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20890echo "${ECHO_T}$PKG_CONFIG" >&6; } 20891else 20892 { echo "$as_me:$LINENO: result: no" >&5 20893echo "${ECHO_T}no" >&6; } 20894fi 20895 20896 20897fi 20898if test -z "$ac_cv_path_PKG_CONFIG"; then 20899 ac_pt_PKG_CONFIG=$PKG_CONFIG 20900 # Extract the first word of "pkg-config", so it can be a program name with args. 20901set dummy pkg-config; ac_word=$2 20902{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20904if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20905 echo $ECHO_N "(cached) $ECHO_C" >&6 20906else 20907 case $ac_pt_PKG_CONFIG in 20908 [\\/]* | ?:[\\/]*) 20909 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20910 ;; 20911 *) 20912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20913for as_dir in $PATH 20914do 20915 IFS=$as_save_IFS 20916 test -z "$as_dir" && as_dir=. 20917 for ac_exec_ext in '' $ac_executable_extensions; do 20918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20919 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20921 break 2 20922 fi 20923done 20924done 20925IFS=$as_save_IFS 20926 20927 ;; 20928esac 20929fi 20930ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20931if test -n "$ac_pt_PKG_CONFIG"; then 20932 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 20933echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 20934else 20935 { echo "$as_me:$LINENO: result: no" >&5 20936echo "${ECHO_T}no" >&6; } 20937fi 20938 20939 if test "x$ac_pt_PKG_CONFIG" = x; then 20940 PKG_CONFIG="" 20941 else 20942 case $cross_compiling:$ac_tool_warned in 20943yes:) 20944{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20945whose name does not start with the host triplet. If you think this 20946configuration is useful to you, please write to autoconf@gnu.org." >&5 20947echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20948whose name does not start with the host triplet. If you think this 20949configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20950ac_tool_warned=yes ;; 20951esac 20952 PKG_CONFIG=$ac_pt_PKG_CONFIG 20953 fi 20954else 20955 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20956fi 20957 20958fi 20959if test -n "$PKG_CONFIG"; then 20960 _pkg_min_version=0.9.0 20961 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20962echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 20963 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20964 { echo "$as_me:$LINENO: result: yes" >&5 20965echo "${ECHO_T}yes" >&6; } 20966 else 20967 { echo "$as_me:$LINENO: result: no" >&5 20968echo "${ECHO_T}no" >&6; } 20969 PKG_CONFIG="" 20970 fi 20971 20972fi 20973 20974pkg_failed=no 20975{ echo "$as_me:$LINENO: checking for XORG" >&5 20976echo $ECHO_N "checking for XORG... $ECHO_C" >&6; } 20977 20978if test -n "$PKG_CONFIG"; then 20979 if test -n "$XORG_CFLAGS"; then 20980 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 20981 else 20982 if test -n "$PKG_CONFIG" && \ 20983 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 20984 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 20985 ac_status=$? 20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20987 (exit $ac_status); }; then 20988 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 20989else 20990 pkg_failed=yes 20991fi 20992 fi 20993else 20994 pkg_failed=untried 20995fi 20996if test -n "$PKG_CONFIG"; then 20997 if test -n "$XORG_LIBS"; then 20998 pkg_cv_XORG_LIBS="$XORG_LIBS" 20999 else 21000 if test -n "$PKG_CONFIG" && \ 21001 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5 21002 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 21003 ac_status=$? 21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21005 (exit $ac_status); }; then 21006 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 21007else 21008 pkg_failed=yes 21009fi 21010 fi 21011else 21012 pkg_failed=untried 21013fi 21014 21015 21016 21017if test $pkg_failed = yes; then 21018 21019if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21020 _pkg_short_errors_supported=yes 21021else 21022 _pkg_short_errors_supported=no 21023fi 21024 if test $_pkg_short_errors_supported = yes; then 21025 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"` 21026 else 21027 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"` 21028 fi 21029 # Put the nasty error message in config.log where it belongs 21030 echo "$XORG_PKG_ERRORS" >&5 21031 21032 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 21033 21034$XORG_PKG_ERRORS 21035 21036Consider adjusting the PKG_CONFIG_PATH environment variable if you 21037installed software in a non-standard prefix. 21038 21039Alternatively, you may set the environment variables XORG_CFLAGS 21040and XORG_LIBS to avoid the need to call pkg-config. 21041See the pkg-config man page for more details. 21042" >&5 21043echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 21044 21045$XORG_PKG_ERRORS 21046 21047Consider adjusting the PKG_CONFIG_PATH environment variable if you 21048installed software in a non-standard prefix. 21049 21050Alternatively, you may set the environment variables XORG_CFLAGS 21051and XORG_LIBS to avoid the need to call pkg-config. 21052See the pkg-config man page for more details. 21053" >&2;} 21054 { (exit 1); exit 1; }; } 21055elif test $pkg_failed = untried; then 21056 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21057is in your PATH or set the PKG_CONFIG environment variable to the full 21058path to pkg-config. 21059 21060Alternatively, you may set the environment variables XORG_CFLAGS 21061and XORG_LIBS to avoid the need to call pkg-config. 21062See the pkg-config man page for more details. 21063 21064To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 21065See \`config.log' for more details." >&5 21066echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21067is in your PATH or set the PKG_CONFIG environment variable to the full 21068path to pkg-config. 21069 21070Alternatively, you may set the environment variables XORG_CFLAGS 21071and XORG_LIBS to avoid the need to call pkg-config. 21072See the pkg-config man page for more details. 21073 21074To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 21075See \`config.log' for more details." >&2;} 21076 { (exit 1); exit 1; }; } 21077else 21078 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 21079 XORG_LIBS=$pkg_cv_XORG_LIBS 21080 { echo "$as_me:$LINENO: result: yes" >&5 21081echo "${ECHO_T}yes" >&6; } 21082 : 21083fi 21084sdkdir=$(pkg-config --variable=sdkdir xorg-server) 21085 21086# Checks for libraries. 21087 21088# Checks for header files. 21089{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 21090echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 21091if test "${ac_cv_header_stdc+set}" = set; then 21092 echo $ECHO_N "(cached) $ECHO_C" >&6 21093else 21094 cat >conftest.$ac_ext <<_ACEOF 21095/* confdefs.h. */ 21096_ACEOF 21097cat confdefs.h >>conftest.$ac_ext 21098cat >>conftest.$ac_ext <<_ACEOF 21099/* end confdefs.h. */ 21100#include <stdlib.h> 21101#include <stdarg.h> 21102#include <string.h> 21103#include <float.h> 21104 21105int 21106main () 21107{ 21108 21109 ; 21110 return 0; 21111} 21112_ACEOF 21113rm -f conftest.$ac_objext 21114if { (ac_try="$ac_compile" 21115case "(($ac_try" in 21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21117 *) ac_try_echo=$ac_try;; 21118esac 21119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21120 (eval "$ac_compile") 2>conftest.er1 21121 ac_status=$? 21122 grep -v '^ *+' conftest.er1 >conftest.err 21123 rm -f conftest.er1 21124 cat conftest.err >&5 21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21126 (exit $ac_status); } && 21127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21128 { (case "(($ac_try" in 21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21130 *) ac_try_echo=$ac_try;; 21131esac 21132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21133 (eval "$ac_try") 2>&5 21134 ac_status=$? 21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21136 (exit $ac_status); }; } && 21137 { ac_try='test -s conftest.$ac_objext' 21138 { (case "(($ac_try" in 21139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21140 *) ac_try_echo=$ac_try;; 21141esac 21142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21143 (eval "$ac_try") 2>&5 21144 ac_status=$? 21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21146 (exit $ac_status); }; }; then 21147 ac_cv_header_stdc=yes 21148else 21149 echo "$as_me: failed program was:" >&5 21150sed 's/^/| /' conftest.$ac_ext >&5 21151 21152 ac_cv_header_stdc=no 21153fi 21154 21155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21156 21157if test $ac_cv_header_stdc = yes; then 21158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21159 cat >conftest.$ac_ext <<_ACEOF 21160/* confdefs.h. */ 21161_ACEOF 21162cat confdefs.h >>conftest.$ac_ext 21163cat >>conftest.$ac_ext <<_ACEOF 21164/* end confdefs.h. */ 21165#include <string.h> 21166 21167_ACEOF 21168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21169 $EGREP "memchr" >/dev/null 2>&1; then 21170 : 21171else 21172 ac_cv_header_stdc=no 21173fi 21174rm -f conftest* 21175 21176fi 21177 21178if test $ac_cv_header_stdc = yes; then 21179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21180 cat >conftest.$ac_ext <<_ACEOF 21181/* confdefs.h. */ 21182_ACEOF 21183cat confdefs.h >>conftest.$ac_ext 21184cat >>conftest.$ac_ext <<_ACEOF 21185/* end confdefs.h. */ 21186#include <stdlib.h> 21187 21188_ACEOF 21189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21190 $EGREP "free" >/dev/null 2>&1; then 21191 : 21192else 21193 ac_cv_header_stdc=no 21194fi 21195rm -f conftest* 21196 21197fi 21198 21199if test $ac_cv_header_stdc = yes; then 21200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21201 if test "$cross_compiling" = yes; then 21202 : 21203else 21204 cat >conftest.$ac_ext <<_ACEOF 21205/* confdefs.h. */ 21206_ACEOF 21207cat confdefs.h >>conftest.$ac_ext 21208cat >>conftest.$ac_ext <<_ACEOF 21209/* end confdefs.h. */ 21210#include <ctype.h> 21211#include <stdlib.h> 21212#if ((' ' & 0x0FF) == 0x020) 21213# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21214# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21215#else 21216# define ISLOWER(c) \ 21217 (('a' <= (c) && (c) <= 'i') \ 21218 || ('j' <= (c) && (c) <= 'r') \ 21219 || ('s' <= (c) && (c) <= 'z')) 21220# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21221#endif 21222 21223#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21224int 21225main () 21226{ 21227 int i; 21228 for (i = 0; i < 256; i++) 21229 if (XOR (islower (i), ISLOWER (i)) 21230 || toupper (i) != TOUPPER (i)) 21231 return 2; 21232 return 0; 21233} 21234_ACEOF 21235rm -f conftest$ac_exeext 21236if { (ac_try="$ac_link" 21237case "(($ac_try" in 21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21239 *) ac_try_echo=$ac_try;; 21240esac 21241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21242 (eval "$ac_link") 2>&5 21243 ac_status=$? 21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21246 { (case "(($ac_try" in 21247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21248 *) ac_try_echo=$ac_try;; 21249esac 21250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21251 (eval "$ac_try") 2>&5 21252 ac_status=$? 21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21254 (exit $ac_status); }; }; then 21255 : 21256else 21257 echo "$as_me: program exited with status $ac_status" >&5 21258echo "$as_me: failed program was:" >&5 21259sed 's/^/| /' conftest.$ac_ext >&5 21260 21261( exit $ac_status ) 21262ac_cv_header_stdc=no 21263fi 21264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21265fi 21266 21267 21268fi 21269fi 21270{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21271echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 21272if test $ac_cv_header_stdc = yes; then 21273 21274cat >>confdefs.h <<\_ACEOF 21275#define STDC_HEADERS 1 21276_ACEOF 21277 21278fi 21279 21280 21281 21282for ac_header in elf.h elf_abi.h 21283do 21284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21286 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21289 echo $ECHO_N "(cached) $ECHO_C" >&6 21290fi 21291ac_res=`eval echo '${'$as_ac_Header'}'` 21292 { echo "$as_me:$LINENO: result: $ac_res" >&5 21293echo "${ECHO_T}$ac_res" >&6; } 21294else 21295 # Is the header compilable? 21296{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21297echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21298cat >conftest.$ac_ext <<_ACEOF 21299/* confdefs.h. */ 21300_ACEOF 21301cat confdefs.h >>conftest.$ac_ext 21302cat >>conftest.$ac_ext <<_ACEOF 21303/* end confdefs.h. */ 21304$ac_includes_default 21305#include <$ac_header> 21306_ACEOF 21307rm -f conftest.$ac_objext 21308if { (ac_try="$ac_compile" 21309case "(($ac_try" in 21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21311 *) ac_try_echo=$ac_try;; 21312esac 21313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21314 (eval "$ac_compile") 2>conftest.er1 21315 ac_status=$? 21316 grep -v '^ *+' conftest.er1 >conftest.err 21317 rm -f conftest.er1 21318 cat conftest.err >&5 21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21320 (exit $ac_status); } && 21321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21322 { (case "(($ac_try" in 21323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21324 *) ac_try_echo=$ac_try;; 21325esac 21326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21327 (eval "$ac_try") 2>&5 21328 ac_status=$? 21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21330 (exit $ac_status); }; } && 21331 { ac_try='test -s conftest.$ac_objext' 21332 { (case "(($ac_try" in 21333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21334 *) ac_try_echo=$ac_try;; 21335esac 21336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21337 (eval "$ac_try") 2>&5 21338 ac_status=$? 21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21340 (exit $ac_status); }; }; then 21341 ac_header_compiler=yes 21342else 21343 echo "$as_me: failed program was:" >&5 21344sed 's/^/| /' conftest.$ac_ext >&5 21345 21346 ac_header_compiler=no 21347fi 21348 21349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21350{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21351echo "${ECHO_T}$ac_header_compiler" >&6; } 21352 21353# Is the header present? 21354{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21355echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21356cat >conftest.$ac_ext <<_ACEOF 21357/* confdefs.h. */ 21358_ACEOF 21359cat confdefs.h >>conftest.$ac_ext 21360cat >>conftest.$ac_ext <<_ACEOF 21361/* end confdefs.h. */ 21362#include <$ac_header> 21363_ACEOF 21364if { (ac_try="$ac_cpp conftest.$ac_ext" 21365case "(($ac_try" in 21366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21367 *) ac_try_echo=$ac_try;; 21368esac 21369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21371 ac_status=$? 21372 grep -v '^ *+' conftest.er1 >conftest.err 21373 rm -f conftest.er1 21374 cat conftest.err >&5 21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21376 (exit $ac_status); } >/dev/null; then 21377 if test -s conftest.err; then 21378 ac_cpp_err=$ac_c_preproc_warn_flag 21379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21380 else 21381 ac_cpp_err= 21382 fi 21383else 21384 ac_cpp_err=yes 21385fi 21386if test -z "$ac_cpp_err"; then 21387 ac_header_preproc=yes 21388else 21389 echo "$as_me: failed program was:" >&5 21390sed 's/^/| /' conftest.$ac_ext >&5 21391 21392 ac_header_preproc=no 21393fi 21394 21395rm -f conftest.err conftest.$ac_ext 21396{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21397echo "${ECHO_T}$ac_header_preproc" >&6; } 21398 21399# So? What about this header? 21400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21401 yes:no: ) 21402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21403echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21405echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21406 ac_header_preproc=yes 21407 ;; 21408 no:yes:* ) 21409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21410echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21412echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21414echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21416echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21418echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21420echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21421 ( cat <<\_ASBOX 21422## ---------------------------------------------------------------------- ## 21423## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 21424## ---------------------------------------------------------------------- ## 21425_ASBOX 21426 ) | sed "s/^/$as_me: WARNING: /" >&2 21427 ;; 21428esac 21429{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21432 echo $ECHO_N "(cached) $ECHO_C" >&6 21433else 21434 eval "$as_ac_Header=\$ac_header_preproc" 21435fi 21436ac_res=`eval echo '${'$as_ac_Header'}'` 21437 { echo "$as_me:$LINENO: result: $ac_res" >&5 21438echo "${ECHO_T}$ac_res" >&6; } 21439 21440fi 21441if test `eval echo '${'$as_ac_Header'}'` = yes; then 21442 cat >>confdefs.h <<_ACEOF 21443#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21444_ACEOF 21445 21446fi 21447 21448done 21449 21450 21451 21452 21453 21454DRIVER_NAME=rendition 21455 21456 21457 21458 21459 21460if test x$APP_MAN_SUFFIX = x ; then 21461 APP_MAN_SUFFIX=1 21462fi 21463if test x$APP_MAN_DIR = x ; then 21464 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 21465fi 21466 21467if test x$LIB_MAN_SUFFIX = x ; then 21468 LIB_MAN_SUFFIX=3 21469fi 21470if test x$LIB_MAN_DIR = x ; then 21471 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 21472fi 21473 21474if test x$FILE_MAN_SUFFIX = x ; then 21475 case $host_os in 21476 solaris*) FILE_MAN_SUFFIX=4 ;; 21477 *) FILE_MAN_SUFFIX=5 ;; 21478 esac 21479fi 21480if test x$FILE_MAN_DIR = x ; then 21481 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 21482fi 21483 21484if test x$MISC_MAN_SUFFIX = x ; then 21485 case $host_os in 21486 solaris*) MISC_MAN_SUFFIX=5 ;; 21487 *) MISC_MAN_SUFFIX=7 ;; 21488 esac 21489fi 21490if test x$MISC_MAN_DIR = x ; then 21491 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 21492fi 21493 21494if test x$DRIVER_MAN_SUFFIX = x ; then 21495 case $host_os in 21496 solaris*) DRIVER_MAN_SUFFIX=7 ;; 21497 *) DRIVER_MAN_SUFFIX=4 ;; 21498 esac 21499fi 21500if test x$DRIVER_MAN_DIR = x ; then 21501 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 21502fi 21503 21504if test x$ADMIN_MAN_SUFFIX = x ; then 21505 case $host_os in 21506 solaris*) ADMIN_MAN_SUFFIX=1m ;; 21507 *) ADMIN_MAN_SUFFIX=8 ;; 21508 esac 21509fi 21510if test x$ADMIN_MAN_DIR = x ; then 21511 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 21512fi 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530# Check whether --with-release-version was given. 21531if test "${with_release_version+set}" = set; then 21532 withval=$with_release_version; RELEASE_VERSION="$withval" 21533else 21534 RELEASE_VERSION="" 21535fi 21536 21537 if test "x$RELEASE_VERSION" != "x"; then 21538 PACKAGE="$PACKAGE-$RELEASE_VERSION" 21539 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 21540 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 21541echo "$as_me: Building with package name set to $PACKAGE" >&6;} 21542 fi 21543 21544cat >>confdefs.h <<_ACEOF 21545#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\).*/\1/p'` 21546_ACEOF 21547 21548 PVM=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\)\.\([^\.]\+\).*/\2/p'` 21549 if test "x$PVM" = "x"; then 21550 PVM="0" 21551 fi 21552 21553cat >>confdefs.h <<_ACEOF 21554#define PACKAGE_VERSION_MINOR $PVM 21555_ACEOF 21556 21557 PVP=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\)\.\([^\.]\+\)\.\([^\.]\+\).*/\3/p'` 21558 if test "x$PVP" = "x"; then 21559 PVP="0" 21560 fi 21561 21562cat >>confdefs.h <<_ACEOF 21563#define PACKAGE_VERSION_PATCHLEVEL $PVP 21564_ACEOF 21565 21566 21567 21568 21569XORG_SGML_PATH=$prefix/share/sgml 21570HAVE_DEFS_ENT= 21571 21572as_ac_File=`echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh` 21573{ echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5 21574echo $ECHO_N "checking for $XORG_SGML_PATH/X11/defs.ent... $ECHO_C" >&6; } 21575if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 21576 echo $ECHO_N "(cached) $ECHO_C" >&6 21577else 21578 test "$cross_compiling" = yes && 21579 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 21580echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 21581 { (exit 1); exit 1; }; } 21582if test -r "$XORG_SGML_PATH/X11/defs.ent"; then 21583 eval "$as_ac_File=yes" 21584else 21585 eval "$as_ac_File=no" 21586fi 21587fi 21588ac_res=`eval echo '${'$as_ac_File'}'` 21589 { echo "$as_me:$LINENO: result: $ac_res" >&5 21590echo "${ECHO_T}$ac_res" >&6; } 21591if test `eval echo '${'$as_ac_File'}'` = yes; then 21592 HAVE_DEFS_ENT=yes 21593fi 21594 21595 21596# Extract the first word of "linuxdoc", so it can be a program name with args. 21597set dummy linuxdoc; ac_word=$2 21598{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21600if test "${ac_cv_path_LINUXDOC+set}" = set; then 21601 echo $ECHO_N "(cached) $ECHO_C" >&6 21602else 21603 case $LINUXDOC in 21604 [\\/]* | ?:[\\/]*) 21605 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path. 21606 ;; 21607 *) 21608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21609for as_dir in $PATH 21610do 21611 IFS=$as_save_IFS 21612 test -z "$as_dir" && as_dir=. 21613 for ac_exec_ext in '' $ac_executable_extensions; do 21614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 21615 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext" 21616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21617 break 2 21618 fi 21619done 21620done 21621IFS=$as_save_IFS 21622 21623 ;; 21624esac 21625fi 21626LINUXDOC=$ac_cv_path_LINUXDOC 21627if test -n "$LINUXDOC"; then 21628 { echo "$as_me:$LINENO: result: $LINUXDOC" >&5 21629echo "${ECHO_T}$LINUXDOC" >&6; } 21630else 21631 { echo "$as_me:$LINENO: result: no" >&5 21632echo "${ECHO_T}no" >&6; } 21633fi 21634 21635 21636# Extract the first word of "ps2pdf", so it can be a program name with args. 21637set dummy ps2pdf; ac_word=$2 21638{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21640if test "${ac_cv_path_PS2PDF+set}" = set; then 21641 echo $ECHO_N "(cached) $ECHO_C" >&6 21642else 21643 case $PS2PDF in 21644 [\\/]* | ?:[\\/]*) 21645 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 21646 ;; 21647 *) 21648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21649for as_dir in $PATH 21650do 21651 IFS=$as_save_IFS 21652 test -z "$as_dir" && as_dir=. 21653 for ac_exec_ext in '' $ac_executable_extensions; do 21654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 21655 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 21656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21657 break 2 21658 fi 21659done 21660done 21661IFS=$as_save_IFS 21662 21663 ;; 21664esac 21665fi 21666PS2PDF=$ac_cv_path_PS2PDF 21667if test -n "$PS2PDF"; then 21668 { echo "$as_me:$LINENO: result: $PS2PDF" >&5 21669echo "${ECHO_T}$PS2PDF" >&6; } 21670else 21671 { echo "$as_me:$LINENO: result: no" >&5 21672echo "${ECHO_T}no" >&6; } 21673fi 21674 21675 21676 21677{ echo "$as_me:$LINENO: checking Whether to build documentation" >&5 21678echo $ECHO_N "checking Whether to build documentation... $ECHO_C" >&6; } 21679 21680if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 21681 BUILDDOC=yes 21682else 21683 BUILDDOC=no 21684fi 21685 21686 21687 21688if test x$BUILDDOC = xyes; then 21689 BUILD_LINUXDOC_TRUE= 21690 BUILD_LINUXDOC_FALSE='#' 21691else 21692 BUILD_LINUXDOC_TRUE='#' 21693 BUILD_LINUXDOC_FALSE= 21694fi 21695 21696 21697{ echo "$as_me:$LINENO: result: $BUILDDOC" >&5 21698echo "${ECHO_T}$BUILDDOC" >&6; } 21699 21700{ echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5 21701echo $ECHO_N "checking Whether to build pdf documentation... $ECHO_C" >&6; } 21702 21703if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 21704 BUILDPDFDOC=yes 21705else 21706 BUILDPDFDOC=no 21707fi 21708 21709 21710 21711if test x$BUILDPDFDOC = xyes; then 21712 BUILD_PDFDOC_TRUE= 21713 BUILD_PDFDOC_FALSE='#' 21714else 21715 BUILD_PDFDOC_TRUE='#' 21716 BUILD_PDFDOC_FALSE= 21717fi 21718 21719 21720{ echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5 21721echo "${ECHO_T}$BUILDPDFDOC" >&6; } 21722 21723MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 21724MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 21725MAKE_PDF="$PS2PDF" 21726MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 21727 21728 21729 21730 21731 21732 21733 21734ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 21735 21736cat >confcache <<\_ACEOF 21737# This file is a shell script that caches the results of configure 21738# tests run on this system so they can be shared between configure 21739# scripts and configure runs, see configure's option --config-cache. 21740# It is not useful on other systems. If it contains results you don't 21741# want to keep, you may remove or edit it. 21742# 21743# config.status only pays attention to the cache file if you give it 21744# the --recheck option to rerun configure. 21745# 21746# `ac_cv_env_foo' variables (set or unset) will be overridden when 21747# loading this file, other *unset* `ac_cv_foo' will be assigned the 21748# following values. 21749 21750_ACEOF 21751 21752# The following way of writing the cache mishandles newlines in values, 21753# but we know of no workaround that is simple, portable, and efficient. 21754# So, we kill variables containing newlines. 21755# Ultrix sh set writes to stderr and can't be redirected directly, 21756# and sets the high bit in the cache file unless we assign to the vars. 21757( 21758 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21759 eval ac_val=\$$ac_var 21760 case $ac_val in #( 21761 *${as_nl}*) 21762 case $ac_var in #( 21763 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21764echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21765 esac 21766 case $ac_var in #( 21767 _ | IFS | as_nl) ;; #( 21768 *) $as_unset $ac_var ;; 21769 esac ;; 21770 esac 21771 done 21772 21773 (set) 2>&1 | 21774 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21775 *${as_nl}ac_space=\ *) 21776 # `set' does not quote correctly, so add quotes (double-quote 21777 # substitution turns \\\\ into \\, and sed turns \\ into \). 21778 sed -n \ 21779 "s/'/'\\\\''/g; 21780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21781 ;; #( 21782 *) 21783 # `set' quotes correctly as required by POSIX, so do not add quotes. 21784 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21785 ;; 21786 esac | 21787 sort 21788) | 21789 sed ' 21790 /^ac_cv_env_/b end 21791 t clear 21792 :clear 21793 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21794 t end 21795 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21796 :end' >>confcache 21797if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21798 if test -w "$cache_file"; then 21799 test "x$cache_file" != "x/dev/null" && 21800 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21801echo "$as_me: updating cache $cache_file" >&6;} 21802 cat confcache >$cache_file 21803 else 21804 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21805echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21806 fi 21807fi 21808rm -f confcache 21809 21810test "x$prefix" = xNONE && prefix=$ac_default_prefix 21811# Let make expand exec_prefix. 21812test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21813 21814DEFS=-DHAVE_CONFIG_H 21815 21816ac_libobjs= 21817ac_ltlibobjs= 21818for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21819 # 1. Remove the extension, and $U if already installed. 21820 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21821 ac_i=`echo "$ac_i" | sed "$ac_script"` 21822 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21823 # will be set to the directory where LIBOBJS objects are built. 21824 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21825 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21826done 21827LIBOBJS=$ac_libobjs 21828 21829LTLIBOBJS=$ac_ltlibobjs 21830 21831 21832if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21833 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21834Usually this means the macro was only invoked conditionally." >&5 21835echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21836Usually this means the macro was only invoked conditionally." >&2;} 21837 { (exit 1); exit 1; }; } 21838fi 21839if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21840 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21841Usually this means the macro was only invoked conditionally." >&5 21842echo "$as_me: error: conditional \"AMDEP\" was never defined. 21843Usually this means the macro was only invoked conditionally." >&2;} 21844 { (exit 1); exit 1; }; } 21845fi 21846if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21847 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21848Usually this means the macro was only invoked conditionally." >&5 21849echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21850Usually this means the macro was only invoked conditionally." >&2;} 21851 { (exit 1); exit 1; }; } 21852fi 21853if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21854 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21855Usually this means the macro was only invoked conditionally." >&5 21856echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21857Usually this means the macro was only invoked conditionally." >&2;} 21858 { (exit 1); exit 1; }; } 21859fi 21860if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21861 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21862Usually this means the macro was only invoked conditionally." >&5 21863echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21864Usually this means the macro was only invoked conditionally." >&2;} 21865 { (exit 1); exit 1; }; } 21866fi 21867if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then 21868 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined. 21869Usually this means the macro was only invoked conditionally." >&5 21870echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined. 21871Usually this means the macro was only invoked conditionally." >&2;} 21872 { (exit 1); exit 1; }; } 21873fi 21874if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then 21875 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined. 21876Usually this means the macro was only invoked conditionally." >&5 21877echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined. 21878Usually this means the macro was only invoked conditionally." >&2;} 21879 { (exit 1); exit 1; }; } 21880fi 21881 21882: ${CONFIG_STATUS=./config.status} 21883ac_clean_files_save=$ac_clean_files 21884ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21885{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21886echo "$as_me: creating $CONFIG_STATUS" >&6;} 21887cat >$CONFIG_STATUS <<_ACEOF 21888#! $SHELL 21889# Generated by $as_me. 21890# Run this file to recreate the current configuration. 21891# Compiler output produced by configure, useful for debugging 21892# configure, is in config.log if it exists. 21893 21894debug=false 21895ac_cs_recheck=false 21896ac_cs_silent=false 21897SHELL=\${CONFIG_SHELL-$SHELL} 21898_ACEOF 21899 21900cat >>$CONFIG_STATUS <<\_ACEOF 21901## --------------------- ## 21902## M4sh Initialization. ## 21903## --------------------- ## 21904 21905# Be Bourne compatible 21906if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21907 emulate sh 21908 NULLCMD=: 21909 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21910 # is contrary to our usage. Disable this feature. 21911 alias -g '${1+"$@"}'='"$@"' 21912 setopt NO_GLOB_SUBST 21913else 21914 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 21915fi 21916BIN_SH=xpg4; export BIN_SH # for Tru64 21917DUALCASE=1; export DUALCASE # for MKS sh 21918 21919 21920# PATH needs CR 21921# Avoid depending upon Character Ranges. 21922as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21923as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21924as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21925as_cr_digits='0123456789' 21926as_cr_alnum=$as_cr_Letters$as_cr_digits 21927 21928# The user is always right. 21929if test "${PATH_SEPARATOR+set}" != set; then 21930 echo "#! /bin/sh" >conf$$.sh 21931 echo "exit 0" >>conf$$.sh 21932 chmod +x conf$$.sh 21933 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21934 PATH_SEPARATOR=';' 21935 else 21936 PATH_SEPARATOR=: 21937 fi 21938 rm -f conf$$.sh 21939fi 21940 21941# Support unset when possible. 21942if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21943 as_unset=unset 21944else 21945 as_unset=false 21946fi 21947 21948 21949# IFS 21950# We need space, tab and new line, in precisely that order. Quoting is 21951# there to prevent editors from complaining about space-tab. 21952# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21953# splitting by setting IFS to empty value.) 21954as_nl=' 21955' 21956IFS=" "" $as_nl" 21957 21958# Find who we are. Look in the path if we contain no directory separator. 21959case $0 in 21960 *[\\/]* ) as_myself=$0 ;; 21961 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21962for as_dir in $PATH 21963do 21964 IFS=$as_save_IFS 21965 test -z "$as_dir" && as_dir=. 21966 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21967done 21968IFS=$as_save_IFS 21969 21970 ;; 21971esac 21972# We did not find ourselves, most probably we were run as `sh COMMAND' 21973# in which case we are not to be found in the path. 21974if test "x$as_myself" = x; then 21975 as_myself=$0 21976fi 21977if test ! -f "$as_myself"; then 21978 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21979 { (exit 1); exit 1; } 21980fi 21981 21982# Work around bugs in pre-3.0 UWIN ksh. 21983for as_var in ENV MAIL MAILPATH 21984do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21985done 21986PS1='$ ' 21987PS2='> ' 21988PS4='+ ' 21989 21990# NLS nuisances. 21991for as_var in \ 21992 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21993 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21994 LC_TELEPHONE LC_TIME 21995do 21996 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21997 eval $as_var=C; export $as_var 21998 else 21999 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22000 fi 22001done 22002 22003# Required to use basename. 22004if expr a : '\(a\)' >/dev/null 2>&1 && 22005 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22006 as_expr=expr 22007else 22008 as_expr=false 22009fi 22010 22011if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22012 as_basename=basename 22013else 22014 as_basename=false 22015fi 22016 22017 22018# Name of the executable. 22019as_me=`$as_basename -- "$0" || 22020$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22021 X"$0" : 'X\(//\)$' \| \ 22022 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22023echo X/"$0" | 22024 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22025 s//\1/ 22026 q 22027 } 22028 /^X\/\(\/\/\)$/{ 22029 s//\1/ 22030 q 22031 } 22032 /^X\/\(\/\).*/{ 22033 s//\1/ 22034 q 22035 } 22036 s/.*/./; q'` 22037 22038# CDPATH. 22039$as_unset CDPATH 22040 22041 22042 22043 as_lineno_1=$LINENO 22044 as_lineno_2=$LINENO 22045 test "x$as_lineno_1" != "x$as_lineno_2" && 22046 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22047 22048 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22049 # uniformly replaced by the line number. The first 'sed' inserts a 22050 # line-number line after each line using $LINENO; the second 'sed' 22051 # does the real work. The second script uses 'N' to pair each 22052 # line-number line with the line containing $LINENO, and appends 22053 # trailing '-' during substitution so that $LINENO is not a special 22054 # case at line end. 22055 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22056 # scripts with optimization help from Paolo Bonzini. Blame Lee 22057 # E. McMahon (1931-1989) for sed's syntax. :-) 22058 sed -n ' 22059 p 22060 /[$]LINENO/= 22061 ' <$as_myself | 22062 sed ' 22063 s/[$]LINENO.*/&-/ 22064 t lineno 22065 b 22066 :lineno 22067 N 22068 :loop 22069 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22070 t loop 22071 s/-\n.*// 22072 ' >$as_me.lineno && 22073 chmod +x "$as_me.lineno" || 22074 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22075 { (exit 1); exit 1; }; } 22076 22077 # Don't try to exec as it changes $[0], causing all sort of problems 22078 # (the dirname of $[0] is not the place where we might find the 22079 # original and so on. Autoconf is especially sensitive to this). 22080 . "./$as_me.lineno" 22081 # Exit status is that of the last command. 22082 exit 22083} 22084 22085 22086if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22087 as_dirname=dirname 22088else 22089 as_dirname=false 22090fi 22091 22092ECHO_C= ECHO_N= ECHO_T= 22093case `echo -n x` in 22094-n*) 22095 case `echo 'x\c'` in 22096 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22097 *) ECHO_C='\c';; 22098 esac;; 22099*) 22100 ECHO_N='-n';; 22101esac 22102 22103if expr a : '\(a\)' >/dev/null 2>&1 && 22104 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22105 as_expr=expr 22106else 22107 as_expr=false 22108fi 22109 22110rm -f conf$$ conf$$.exe conf$$.file 22111if test -d conf$$.dir; then 22112 rm -f conf$$.dir/conf$$.file 22113else 22114 rm -f conf$$.dir 22115 mkdir conf$$.dir 22116fi 22117echo >conf$$.file 22118if ln -s conf$$.file conf$$ 2>/dev/null; then 22119 as_ln_s='ln -s' 22120 # ... but there are two gotchas: 22121 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22122 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22123 # In both cases, we have to default to `cp -p'. 22124 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22125 as_ln_s='cp -p' 22126elif ln conf$$.file conf$$ 2>/dev/null; then 22127 as_ln_s=ln 22128else 22129 as_ln_s='cp -p' 22130fi 22131rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22132rmdir conf$$.dir 2>/dev/null 22133 22134if mkdir -p . 2>/dev/null; then 22135 as_mkdir_p=: 22136else 22137 test -d ./-p && rmdir ./-p 22138 as_mkdir_p=false 22139fi 22140 22141# Find out whether ``test -x'' works. Don't use a zero-byte file, as 22142# systems may use methods other than mode bits to determine executability. 22143cat >conf$$.file <<_ASEOF 22144#! /bin/sh 22145exit 0 22146_ASEOF 22147chmod +x conf$$.file 22148if test -x conf$$.file >/dev/null 2>&1; then 22149 as_executable_p="test -x" 22150else 22151 as_executable_p=: 22152fi 22153rm -f conf$$.file 22154 22155# Sed expression to map a string onto a valid CPP name. 22156as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22157 22158# Sed expression to map a string onto a valid variable name. 22159as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22160 22161 22162exec 6>&1 22163 22164# Save the log message, to keep $[0] and so on meaningful, and to 22165# report actual input values of CONFIG_FILES etc. instead of their 22166# values after options handling. 22167ac_log=" 22168This file was extended by xf86-video-rendition $as_me 4.1.3, which was 22169generated by GNU Autoconf 2.60. Invocation command line was 22170 22171 CONFIG_FILES = $CONFIG_FILES 22172 CONFIG_HEADERS = $CONFIG_HEADERS 22173 CONFIG_LINKS = $CONFIG_LINKS 22174 CONFIG_COMMANDS = $CONFIG_COMMANDS 22175 $ $0 $@ 22176 22177on `(hostname || uname -n) 2>/dev/null | sed 1q` 22178" 22179 22180_ACEOF 22181 22182cat >>$CONFIG_STATUS <<_ACEOF 22183# Files that config.status was made for. 22184config_files="$ac_config_files" 22185config_headers="$ac_config_headers" 22186config_commands="$ac_config_commands" 22187 22188_ACEOF 22189 22190cat >>$CONFIG_STATUS <<\_ACEOF 22191ac_cs_usage="\ 22192\`$as_me' instantiates files from templates according to the 22193current configuration. 22194 22195Usage: $0 [OPTIONS] [FILE]... 22196 22197 -h, --help print this help, then exit 22198 -V, --version print version number, then exit 22199 -q, --quiet do not print progress messages 22200 -d, --debug don't remove temporary files 22201 --recheck update $as_me by reconfiguring in the same conditions 22202 --file=FILE[:TEMPLATE] 22203 instantiate the configuration file FILE 22204 --header=FILE[:TEMPLATE] 22205 instantiate the configuration header FILE 22206 22207Configuration files: 22208$config_files 22209 22210Configuration headers: 22211$config_headers 22212 22213Configuration commands: 22214$config_commands 22215 22216Report bugs to <bug-autoconf@gnu.org>." 22217 22218_ACEOF 22219cat >>$CONFIG_STATUS <<_ACEOF 22220ac_cs_version="\\ 22221xf86-video-rendition config.status 4.1.3 22222configured by $0, generated by GNU Autoconf 2.60, 22223 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22224 22225Copyright (C) 2006 Free Software Foundation, Inc. 22226This config.status script is free software; the Free Software Foundation 22227gives unlimited permission to copy, distribute and modify it." 22228 22229ac_pwd='$ac_pwd' 22230srcdir='$srcdir' 22231INSTALL='$INSTALL' 22232_ACEOF 22233 22234cat >>$CONFIG_STATUS <<\_ACEOF 22235# If no file are specified by the user, then we need to provide default 22236# value. By we need to know if files were specified by the user. 22237ac_need_defaults=: 22238while test $# != 0 22239do 22240 case $1 in 22241 --*=*) 22242 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22243 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22244 ac_shift=: 22245 ;; 22246 *) 22247 ac_option=$1 22248 ac_optarg=$2 22249 ac_shift=shift 22250 ;; 22251 esac 22252 22253 case $ac_option in 22254 # Handling of the options. 22255 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22256 ac_cs_recheck=: ;; 22257 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22258 echo "$ac_cs_version"; exit ;; 22259 --debug | --debu | --deb | --de | --d | -d ) 22260 debug=: ;; 22261 --file | --fil | --fi | --f ) 22262 $ac_shift 22263 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22264 ac_need_defaults=false;; 22265 --header | --heade | --head | --hea ) 22266 $ac_shift 22267 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22268 ac_need_defaults=false;; 22269 --he | --h) 22270 # Conflict between --help and --header 22271 { echo "$as_me: error: ambiguous option: $1 22272Try \`$0 --help' for more information." >&2 22273 { (exit 1); exit 1; }; };; 22274 --help | --hel | -h ) 22275 echo "$ac_cs_usage"; exit ;; 22276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22277 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22278 ac_cs_silent=: ;; 22279 22280 # This is an error. 22281 -*) { echo "$as_me: error: unrecognized option: $1 22282Try \`$0 --help' for more information." >&2 22283 { (exit 1); exit 1; }; } ;; 22284 22285 *) ac_config_targets="$ac_config_targets $1" 22286 ac_need_defaults=false ;; 22287 22288 esac 22289 shift 22290done 22291 22292ac_configure_extra_args= 22293 22294if $ac_cs_silent; then 22295 exec 6>/dev/null 22296 ac_configure_extra_args="$ac_configure_extra_args --silent" 22297fi 22298 22299_ACEOF 22300cat >>$CONFIG_STATUS <<_ACEOF 22301if \$ac_cs_recheck; then 22302 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22303 CONFIG_SHELL=$SHELL 22304 export CONFIG_SHELL 22305 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22306fi 22307 22308_ACEOF 22309cat >>$CONFIG_STATUS <<\_ACEOF 22310exec 5>>config.log 22311{ 22312 echo 22313 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22314## Running $as_me. ## 22315_ASBOX 22316 echo "$ac_log" 22317} >&5 22318 22319_ACEOF 22320cat >>$CONFIG_STATUS <<_ACEOF 22321# 22322# INIT-COMMANDS 22323# 22324AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22325 22326_ACEOF 22327 22328cat >>$CONFIG_STATUS <<\_ACEOF 22329 22330# Handling of arguments. 22331for ac_config_target in $ac_config_targets 22332do 22333 case $ac_config_target in 22334 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22335 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22336 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22337 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22338 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22339 22340 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22341echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22342 { (exit 1); exit 1; }; };; 22343 esac 22344done 22345 22346 22347# If the user did not use the arguments to specify the items to instantiate, 22348# then the envvar interface is used. Set only those that are not. 22349# We use the long form for the default assignment because of an extremely 22350# bizarre bug on SunOS 4.1.3. 22351if $ac_need_defaults; then 22352 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22353 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22354 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22355fi 22356 22357# Have a temporary directory for convenience. Make it in the build tree 22358# simply because there is no reason against having it here, and in addition, 22359# creating and moving files from /tmp can sometimes cause problems. 22360# Hook for its removal unless debugging. 22361# Note that there is a small window in which the directory will not be cleaned: 22362# after its creation but before its name has been assigned to `$tmp'. 22363$debug || 22364{ 22365 tmp= 22366 trap 'exit_status=$? 22367 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22368' 0 22369 trap '{ (exit 1); exit 1; }' 1 2 13 15 22370} 22371# Create a (secure) tmp directory for tmp files. 22372 22373{ 22374 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22375 test -n "$tmp" && test -d "$tmp" 22376} || 22377{ 22378 tmp=./conf$$-$RANDOM 22379 (umask 077 && mkdir "$tmp") 22380} || 22381{ 22382 echo "$me: cannot create a temporary directory in ." >&2 22383 { (exit 1); exit 1; } 22384} 22385 22386# 22387# Set up the sed scripts for CONFIG_FILES section. 22388# 22389 22390# No need to generate the scripts if there are no CONFIG_FILES. 22391# This happens for instance when ./config.status config.h 22392if test -n "$CONFIG_FILES"; then 22393 22394_ACEOF 22395 22396 22397 22398ac_delim='%!_!# ' 22399for ac_last_try in false false false false false :; do 22400 cat >conf$$subs.sed <<_ACEOF 22401SHELL!$SHELL$ac_delim 22402PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22403PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22404PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22405PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22406PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22407PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22408exec_prefix!$exec_prefix$ac_delim 22409prefix!$prefix$ac_delim 22410program_transform_name!$program_transform_name$ac_delim 22411bindir!$bindir$ac_delim 22412sbindir!$sbindir$ac_delim 22413libexecdir!$libexecdir$ac_delim 22414datarootdir!$datarootdir$ac_delim 22415datadir!$datadir$ac_delim 22416sysconfdir!$sysconfdir$ac_delim 22417sharedstatedir!$sharedstatedir$ac_delim 22418localstatedir!$localstatedir$ac_delim 22419includedir!$includedir$ac_delim 22420oldincludedir!$oldincludedir$ac_delim 22421docdir!$docdir$ac_delim 22422infodir!$infodir$ac_delim 22423htmldir!$htmldir$ac_delim 22424dvidir!$dvidir$ac_delim 22425pdfdir!$pdfdir$ac_delim 22426psdir!$psdir$ac_delim 22427libdir!$libdir$ac_delim 22428localedir!$localedir$ac_delim 22429mandir!$mandir$ac_delim 22430DEFS!$DEFS$ac_delim 22431ECHO_C!$ECHO_C$ac_delim 22432ECHO_N!$ECHO_N$ac_delim 22433ECHO_T!$ECHO_T$ac_delim 22434LIBS!$LIBS$ac_delim 22435build_alias!$build_alias$ac_delim 22436host_alias!$host_alias$ac_delim 22437target_alias!$target_alias$ac_delim 22438INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22439INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22440INSTALL_DATA!$INSTALL_DATA$ac_delim 22441CYGPATH_W!$CYGPATH_W$ac_delim 22442PACKAGE!$PACKAGE$ac_delim 22443VERSION!$VERSION$ac_delim 22444ACLOCAL!$ACLOCAL$ac_delim 22445AUTOCONF!$AUTOCONF$ac_delim 22446AUTOMAKE!$AUTOMAKE$ac_delim 22447AUTOHEADER!$AUTOHEADER$ac_delim 22448MAKEINFO!$MAKEINFO$ac_delim 22449install_sh!$install_sh$ac_delim 22450STRIP!$STRIP$ac_delim 22451INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 22452mkdir_p!$mkdir_p$ac_delim 22453AWK!$AWK$ac_delim 22454SET_MAKE!$SET_MAKE$ac_delim 22455am__leading_dot!$am__leading_dot$ac_delim 22456AMTAR!$AMTAR$ac_delim 22457am__tar!$am__tar$ac_delim 22458am__untar!$am__untar$ac_delim 22459AMSHOWCMDSAT!$AMSHOWCMDSAT$ac_delim 22460AMDEPSHOWCMDSAT!$AMDEPSHOWCMDSAT$ac_delim 22461AMPRETTYECHO!$AMPRETTYECHO$ac_delim 22462AMCMDECHO!$AMCMDECHO$ac_delim 22463LT_QUIET!$LT_QUIET$ac_delim 22464MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 22465MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 22466MAINT!$MAINT$ac_delim 22467build!$build$ac_delim 22468build_cpu!$build_cpu$ac_delim 22469build_vendor!$build_vendor$ac_delim 22470build_os!$build_os$ac_delim 22471host!$host$ac_delim 22472host_cpu!$host_cpu$ac_delim 22473host_vendor!$host_vendor$ac_delim 22474host_os!$host_os$ac_delim 22475CC!$CC$ac_delim 22476CFLAGS!$CFLAGS$ac_delim 22477LDFLAGS!$LDFLAGS$ac_delim 22478CPPFLAGS!$CPPFLAGS$ac_delim 22479ac_ct_CC!$ac_ct_CC$ac_delim 22480EXEEXT!$EXEEXT$ac_delim 22481OBJEXT!$OBJEXT$ac_delim 22482DEPDIR!$DEPDIR$ac_delim 22483am__include!$am__include$ac_delim 22484am__quote!$am__quote$ac_delim 22485AMDEP_TRUE!$AMDEP_TRUE$ac_delim 22486AMDEP_FALSE!$AMDEP_FALSE$ac_delim 22487AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 22488CCDEPMODE!$CCDEPMODE$ac_delim 22489am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 22490am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 22491GREP!$GREP$ac_delim 22492EGREP!$EGREP$ac_delim 22493LN_S!$LN_S$ac_delim 22494ECHO!$ECHO$ac_delim 22495AR!$AR$ac_delim 22496RANLIB!$RANLIB$ac_delim 22497CPP!$CPP$ac_delim 22498_ACEOF 22499 22500 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22501 break 22502 elif $ac_last_try; then 22503 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22504echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22505 { (exit 1); exit 1; }; } 22506 else 22507 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22508 fi 22509done 22510 22511ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22512if test -n "$ac_eof"; then 22513 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22514 ac_eof=`expr $ac_eof + 1` 22515fi 22516 22517cat >>$CONFIG_STATUS <<_ACEOF 22518cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22519/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22520_ACEOF 22521sed ' 22522s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22523s/^/s,@/; s/!/@,|#_!!_#|/ 22524:n 22525t n 22526s/'"$ac_delim"'$/,g/; t 22527s/$/\\/; p 22528N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22529' >>$CONFIG_STATUS <conf$$subs.sed 22530rm -f conf$$subs.sed 22531cat >>$CONFIG_STATUS <<_ACEOF 22532CEOF$ac_eof 22533_ACEOF 22534 22535 22536ac_delim='%!_!# ' 22537for ac_last_try in false false false false false :; do 22538 cat >conf$$subs.sed <<_ACEOF 22539CXX!$CXX$ac_delim 22540CXXFLAGS!$CXXFLAGS$ac_delim 22541ac_ct_CXX!$ac_ct_CXX$ac_delim 22542CXXDEPMODE!$CXXDEPMODE$ac_delim 22543am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 22544am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 22545CXXCPP!$CXXCPP$ac_delim 22546F77!$F77$ac_delim 22547FFLAGS!$FFLAGS$ac_delim 22548ac_ct_F77!$ac_ct_F77$ac_delim 22549LIBTOOL!$LIBTOOL$ac_delim 22550PKG_CONFIG!$PKG_CONFIG$ac_delim 22551XORG_CFLAGS!$XORG_CFLAGS$ac_delim 22552XORG_LIBS!$XORG_LIBS$ac_delim 22553moduledir!$moduledir$ac_delim 22554DRIVER_NAME!$DRIVER_NAME$ac_delim 22555APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim 22556LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim 22557FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim 22558MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim 22559DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim 22560ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim 22561APP_MAN_DIR!$APP_MAN_DIR$ac_delim 22562LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim 22563FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim 22564MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim 22565DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim 22566ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim 22567LINUXDOC!$LINUXDOC$ac_delim 22568PS2PDF!$PS2PDF$ac_delim 22569BUILD_LINUXDOC_TRUE!$BUILD_LINUXDOC_TRUE$ac_delim 22570BUILD_LINUXDOC_FALSE!$BUILD_LINUXDOC_FALSE$ac_delim 22571BUILD_PDFDOC_TRUE!$BUILD_PDFDOC_TRUE$ac_delim 22572BUILD_PDFDOC_FALSE!$BUILD_PDFDOC_FALSE$ac_delim 22573MAKE_TEXT!$MAKE_TEXT$ac_delim 22574MAKE_PS!$MAKE_PS$ac_delim 22575MAKE_PDF!$MAKE_PDF$ac_delim 22576MAKE_HTML!$MAKE_HTML$ac_delim 22577LIBOBJS!$LIBOBJS$ac_delim 22578LTLIBOBJS!$LTLIBOBJS$ac_delim 22579_ACEOF 22580 22581 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 40; then 22582 break 22583 elif $ac_last_try; then 22584 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22585echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22586 { (exit 1); exit 1; }; } 22587 else 22588 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22589 fi 22590done 22591 22592ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22593if test -n "$ac_eof"; then 22594 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22595 ac_eof=`expr $ac_eof + 1` 22596fi 22597 22598cat >>$CONFIG_STATUS <<_ACEOF 22599cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22600/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22601_ACEOF 22602sed ' 22603s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22604s/^/s,@/; s/!/@,|#_!!_#|/ 22605:n 22606t n 22607s/'"$ac_delim"'$/,g/; t 22608s/$/\\/; p 22609N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22610' >>$CONFIG_STATUS <conf$$subs.sed 22611rm -f conf$$subs.sed 22612cat >>$CONFIG_STATUS <<_ACEOF 22613:end 22614s/|#_!!_#|//g 22615CEOF$ac_eof 22616_ACEOF 22617 22618 22619# VPATH may cause trouble with some makes, so we remove $(srcdir), 22620# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22621# trailing colons and then remove the whole line if VPATH becomes empty 22622# (actually we leave an empty line to preserve line numbers). 22623if test "x$srcdir" = x.; then 22624 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22625s/:*\$(srcdir):*/:/ 22626s/:*\${srcdir}:*/:/ 22627s/:*@srcdir@:*/:/ 22628s/^\([^=]*=[ ]*\):*/\1/ 22629s/:*$// 22630s/^[^=]*=[ ]*$// 22631}' 22632fi 22633 22634cat >>$CONFIG_STATUS <<\_ACEOF 22635fi # test -n "$CONFIG_FILES" 22636 22637 22638for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22639do 22640 case $ac_tag in 22641 :[FHLC]) ac_mode=$ac_tag; continue;; 22642 esac 22643 case $ac_mode$ac_tag in 22644 :[FHL]*:*);; 22645 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22646echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22647 { (exit 1); exit 1; }; };; 22648 :[FH]-) ac_tag=-:-;; 22649 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22650 esac 22651 ac_save_IFS=$IFS 22652 IFS=: 22653 set x $ac_tag 22654 IFS=$ac_save_IFS 22655 shift 22656 ac_file=$1 22657 shift 22658 22659 case $ac_mode in 22660 :L) ac_source=$1;; 22661 :[FH]) 22662 ac_file_inputs= 22663 for ac_f 22664 do 22665 case $ac_f in 22666 -) ac_f="$tmp/stdin";; 22667 *) # Look for the file first in the build tree, then in the source tree 22668 # (if the path is not absolute). The absolute path cannot be DOS-style, 22669 # because $ac_f cannot contain `:'. 22670 test -f "$ac_f" || 22671 case $ac_f in 22672 [\\/$]*) false;; 22673 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22674 esac || 22675 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22676echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22677 { (exit 1); exit 1; }; };; 22678 esac 22679 ac_file_inputs="$ac_file_inputs $ac_f" 22680 done 22681 22682 # Let's still pretend it is `configure' which instantiates (i.e., don't 22683 # use $as_me), people would be surprised to read: 22684 # /* config.h. Generated by config.status. */ 22685 configure_input="Generated from "`IFS=: 22686 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22687 if test x"$ac_file" != x-; then 22688 configure_input="$ac_file. $configure_input" 22689 { echo "$as_me:$LINENO: creating $ac_file" >&5 22690echo "$as_me: creating $ac_file" >&6;} 22691 fi 22692 22693 case $ac_tag in 22694 *:-:* | *:-) cat >"$tmp/stdin";; 22695 esac 22696 ;; 22697 esac 22698 22699 ac_dir=`$as_dirname -- "$ac_file" || 22700$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22701 X"$ac_file" : 'X\(//\)[^/]' \| \ 22702 X"$ac_file" : 'X\(//\)$' \| \ 22703 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22704echo X"$ac_file" | 22705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22706 s//\1/ 22707 q 22708 } 22709 /^X\(\/\/\)[^/].*/{ 22710 s//\1/ 22711 q 22712 } 22713 /^X\(\/\/\)$/{ 22714 s//\1/ 22715 q 22716 } 22717 /^X\(\/\).*/{ 22718 s//\1/ 22719 q 22720 } 22721 s/.*/./; q'` 22722 { as_dir="$ac_dir" 22723 case $as_dir in #( 22724 -*) as_dir=./$as_dir;; 22725 esac 22726 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22727 as_dirs= 22728 while :; do 22729 case $as_dir in #( 22730 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22731 *) as_qdir=$as_dir;; 22732 esac 22733 as_dirs="'$as_qdir' $as_dirs" 22734 as_dir=`$as_dirname -- "$as_dir" || 22735$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22736 X"$as_dir" : 'X\(//\)[^/]' \| \ 22737 X"$as_dir" : 'X\(//\)$' \| \ 22738 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22739echo X"$as_dir" | 22740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22741 s//\1/ 22742 q 22743 } 22744 /^X\(\/\/\)[^/].*/{ 22745 s//\1/ 22746 q 22747 } 22748 /^X\(\/\/\)$/{ 22749 s//\1/ 22750 q 22751 } 22752 /^X\(\/\).*/{ 22753 s//\1/ 22754 q 22755 } 22756 s/.*/./; q'` 22757 test -d "$as_dir" && break 22758 done 22759 test -z "$as_dirs" || eval "mkdir $as_dirs" 22760 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22761echo "$as_me: error: cannot create directory $as_dir" >&2;} 22762 { (exit 1); exit 1; }; }; } 22763 ac_builddir=. 22764 22765case "$ac_dir" in 22766.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22767*) 22768 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22769 # A ".." for each directory in $ac_dir_suffix. 22770 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22771 case $ac_top_builddir_sub in 22772 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22773 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22774 esac ;; 22775esac 22776ac_abs_top_builddir=$ac_pwd 22777ac_abs_builddir=$ac_pwd$ac_dir_suffix 22778# for backward compatibility: 22779ac_top_builddir=$ac_top_build_prefix 22780 22781case $srcdir in 22782 .) # We are building in place. 22783 ac_srcdir=. 22784 ac_top_srcdir=$ac_top_builddir_sub 22785 ac_abs_top_srcdir=$ac_pwd ;; 22786 [\\/]* | ?:[\\/]* ) # Absolute name. 22787 ac_srcdir=$srcdir$ac_dir_suffix; 22788 ac_top_srcdir=$srcdir 22789 ac_abs_top_srcdir=$srcdir ;; 22790 *) # Relative name. 22791 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22792 ac_top_srcdir=$ac_top_build_prefix$srcdir 22793 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22794esac 22795ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22796 22797 22798 case $ac_mode in 22799 :F) 22800 # 22801 # CONFIG_FILE 22802 # 22803 22804 case $INSTALL in 22805 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22806 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22807 esac 22808_ACEOF 22809 22810cat >>$CONFIG_STATUS <<\_ACEOF 22811# If the template does not know about datarootdir, expand it. 22812# FIXME: This hack should be removed a few years after 2.60. 22813ac_datarootdir_hack=; ac_datarootdir_seen= 22814 22815case `sed -n '/datarootdir/ { 22816 p 22817 q 22818} 22819/@datadir@/p 22820/@docdir@/p 22821/@infodir@/p 22822/@localedir@/p 22823/@mandir@/p 22824' $ac_file_inputs` in 22825*datarootdir*) ac_datarootdir_seen=yes;; 22826*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22827 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22828echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22829_ACEOF 22830cat >>$CONFIG_STATUS <<_ACEOF 22831 ac_datarootdir_hack=' 22832 s&@datadir@&$datadir&g 22833 s&@docdir@&$docdir&g 22834 s&@infodir@&$infodir&g 22835 s&@localedir@&$localedir&g 22836 s&@mandir@&$mandir&g 22837 s&\\\${datarootdir}&$datarootdir&g' ;; 22838esac 22839_ACEOF 22840 22841# Neutralize VPATH when `$srcdir' = `.'. 22842# Shell code in configure.ac might set extrasub. 22843# FIXME: do we really want to maintain this feature? 22844cat >>$CONFIG_STATUS <<_ACEOF 22845 sed "$ac_vpsub 22846$extrasub 22847_ACEOF 22848cat >>$CONFIG_STATUS <<\_ACEOF 22849:t 22850/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22851s&@configure_input@&$configure_input&;t t 22852s&@top_builddir@&$ac_top_builddir_sub&;t t 22853s&@srcdir@&$ac_srcdir&;t t 22854s&@abs_srcdir@&$ac_abs_srcdir&;t t 22855s&@top_srcdir@&$ac_top_srcdir&;t t 22856s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22857s&@builddir@&$ac_builddir&;t t 22858s&@abs_builddir@&$ac_abs_builddir&;t t 22859s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22860s&@INSTALL@&$ac_INSTALL&;t t 22861$ac_datarootdir_hack 22862" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22863 22864test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22865 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22866 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22867 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22868which seems to be undefined. Please make sure it is defined." >&5 22869echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22870which seems to be undefined. Please make sure it is defined." >&2;} 22871 22872 rm -f "$tmp/stdin" 22873 case $ac_file in 22874 -) cat "$tmp/out"; rm -f "$tmp/out";; 22875 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22876 esac 22877 ;; 22878 :H) 22879 # 22880 # CONFIG_HEADER 22881 # 22882_ACEOF 22883 22884# Transform confdefs.h into a sed script `conftest.defines', that 22885# substitutes the proper values into config.h.in to produce config.h. 22886rm -f conftest.defines conftest.tail 22887# First, append a space to every undef/define line, to ease matching. 22888echo 's/$/ /' >conftest.defines 22889# Then, protect against being on the right side of a sed subst, or in 22890# an unquoted here document, in config.status. If some macros were 22891# called several times there might be several #defines for the same 22892# symbol, which is useless. But do not sort them, since the last 22893# AC_DEFINE must be honored. 22894ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22895# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22896# NAME is the cpp macro being defined, VALUE is the value it is being given. 22897# PARAMS is the parameter list in the macro definition--in most cases, it's 22898# just an empty string. 22899ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22900ac_dB='\\)[ (].*,\\1define\\2' 22901ac_dC=' ' 22902ac_dD=' ,' 22903 22904uniq confdefs.h | 22905 sed -n ' 22906 t rset 22907 :rset 22908 s/^[ ]*#[ ]*define[ ][ ]*// 22909 t ok 22910 d 22911 :ok 22912 s/[\\&,]/\\&/g 22913 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22914 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22915 ' >>conftest.defines 22916 22917# Remove the space that was appended to ease matching. 22918# Then replace #undef with comments. This is necessary, for 22919# example, in the case of _POSIX_SOURCE, which is predefined and required 22920# on some systems where configure will not decide to define it. 22921# (The regexp can be short, since the line contains either #define or #undef.) 22922echo 's/ $// 22923s,^[ #]*u.*,/* & */,' >>conftest.defines 22924 22925# Break up conftest.defines: 22926ac_max_sed_lines=50 22927 22928# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22929# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22930# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22931# et cetera. 22932ac_in='$ac_file_inputs' 22933ac_out='"$tmp/out1"' 22934ac_nxt='"$tmp/out2"' 22935 22936while : 22937do 22938 # Write a here document: 22939 cat >>$CONFIG_STATUS <<_ACEOF 22940 # First, check the format of the line: 22941 cat >"\$tmp/defines.sed" <<\\CEOF 22942/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22943/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22944b 22945:def 22946_ACEOF 22947 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22948 echo 'CEOF 22949 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22950 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22951 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22952 grep . conftest.tail >/dev/null || break 22953 rm -f conftest.defines 22954 mv conftest.tail conftest.defines 22955done 22956rm -f conftest.defines conftest.tail 22957 22958echo "ac_result=$ac_in" >>$CONFIG_STATUS 22959cat >>$CONFIG_STATUS <<\_ACEOF 22960 if test x"$ac_file" != x-; then 22961 echo "/* $configure_input */" >"$tmp/config.h" 22962 cat "$ac_result" >>"$tmp/config.h" 22963 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22964 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22965echo "$as_me: $ac_file is unchanged" >&6;} 22966 else 22967 rm -f $ac_file 22968 mv "$tmp/config.h" $ac_file 22969 fi 22970 else 22971 echo "/* $configure_input */" 22972 cat "$ac_result" 22973 fi 22974 rm -f "$tmp/out12" 22975# Compute $ac_file's index in $config_headers. 22976_am_stamp_count=1 22977for _am_header in $config_headers :; do 22978 case $_am_header in 22979 $ac_file | $ac_file:* ) 22980 break ;; 22981 * ) 22982 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22983 esac 22984done 22985echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 22986$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22987 X$ac_file : 'X\(//\)[^/]' \| \ 22988 X$ac_file : 'X\(//\)$' \| \ 22989 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 22990echo X$ac_file | 22991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22992 s//\1/ 22993 q 22994 } 22995 /^X\(\/\/\)[^/].*/{ 22996 s//\1/ 22997 q 22998 } 22999 /^X\(\/\/\)$/{ 23000 s//\1/ 23001 q 23002 } 23003 /^X\(\/\).*/{ 23004 s//\1/ 23005 q 23006 } 23007 s/.*/./; q'`/stamp-h$_am_stamp_count 23008 ;; 23009 23010 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23011echo "$as_me: executing $ac_file commands" >&6;} 23012 ;; 23013 esac 23014 23015 23016 case $ac_file$ac_mode in 23017 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 23018 # Strip MF so we end up with the name of the file. 23019 mf=`echo "$mf" | sed -e 's/:.*$//'` 23020 # Check whether this is an Automake generated Makefile or not. 23021 # We used to match only the files named `Makefile.in', but 23022 # some people rename them; so instead we look at the file content. 23023 # Grep'ing the first line is not enough: some people post-process 23024 # each Makefile.in and add a new line on top of each file to say so. 23025 # So let's grep whole file. 23026 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 23027 dirpart=`$as_dirname -- "$mf" || 23028$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23029 X"$mf" : 'X\(//\)[^/]' \| \ 23030 X"$mf" : 'X\(//\)$' \| \ 23031 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23032echo X"$mf" | 23033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23034 s//\1/ 23035 q 23036 } 23037 /^X\(\/\/\)[^/].*/{ 23038 s//\1/ 23039 q 23040 } 23041 /^X\(\/\/\)$/{ 23042 s//\1/ 23043 q 23044 } 23045 /^X\(\/\).*/{ 23046 s//\1/ 23047 q 23048 } 23049 s/.*/./; q'` 23050 else 23051 continue 23052 fi 23053 # Extract the definition of DEPDIR, am__include, and am__quote 23054 # from the Makefile without running `make'. 23055 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23056 test -z "$DEPDIR" && continue 23057 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23058 test -z "am__include" && continue 23059 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23060 # When using ansi2knr, U may be empty or an underscore; expand it 23061 U=`sed -n 's/^U = //p' < "$mf"` 23062 # Find all dependency output files, they are included files with 23063 # $(DEPDIR) in their names. We invoke sed twice because it is the 23064 # simplest approach to changing $(DEPDIR) to its actual value in the 23065 # expansion. 23066 for file in `sed -n " 23067 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23068 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23069 # Make sure the directory exists. 23070 test -f "$dirpart/$file" && continue 23071 fdir=`$as_dirname -- "$file" || 23072$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23073 X"$file" : 'X\(//\)[^/]' \| \ 23074 X"$file" : 'X\(//\)$' \| \ 23075 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23076echo X"$file" | 23077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23078 s//\1/ 23079 q 23080 } 23081 /^X\(\/\/\)[^/].*/{ 23082 s//\1/ 23083 q 23084 } 23085 /^X\(\/\/\)$/{ 23086 s//\1/ 23087 q 23088 } 23089 /^X\(\/\).*/{ 23090 s//\1/ 23091 q 23092 } 23093 s/.*/./; q'` 23094 { as_dir=$dirpart/$fdir 23095 case $as_dir in #( 23096 -*) as_dir=./$as_dir;; 23097 esac 23098 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23099 as_dirs= 23100 while :; do 23101 case $as_dir in #( 23102 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23103 *) as_qdir=$as_dir;; 23104 esac 23105 as_dirs="'$as_qdir' $as_dirs" 23106 as_dir=`$as_dirname -- "$as_dir" || 23107$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23108 X"$as_dir" : 'X\(//\)[^/]' \| \ 23109 X"$as_dir" : 'X\(//\)$' \| \ 23110 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23111echo X"$as_dir" | 23112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23113 s//\1/ 23114 q 23115 } 23116 /^X\(\/\/\)[^/].*/{ 23117 s//\1/ 23118 q 23119 } 23120 /^X\(\/\/\)$/{ 23121 s//\1/ 23122 q 23123 } 23124 /^X\(\/\).*/{ 23125 s//\1/ 23126 q 23127 } 23128 s/.*/./; q'` 23129 test -d "$as_dir" && break 23130 done 23131 test -z "$as_dirs" || eval "mkdir $as_dirs" 23132 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23133echo "$as_me: error: cannot create directory $as_dir" >&2;} 23134 { (exit 1); exit 1; }; }; } 23135 # echo "creating $dirpart/$file" 23136 echo '# dummy' > "$dirpart/$file" 23137 done 23138done 23139 ;; 23140 23141 esac 23142done # for ac_tag 23143 23144 23145{ (exit 0); exit 0; } 23146_ACEOF 23147chmod +x $CONFIG_STATUS 23148ac_clean_files=$ac_clean_files_save 23149 23150 23151# configure is writing to config.log, and then calls config.status. 23152# config.status does its own redirection, appending to config.log. 23153# Unfortunately, on DOS this fails, as config.log is still kept open 23154# by configure, so config.status won't be able to write to it; its 23155# output is simply discarded. So we exec the FD to /dev/null, 23156# effectively closing config.log, so it can be properly (re)opened and 23157# appended to by config.status. When coming back to configure, we 23158# need to make the FD available again. 23159if test "$no_create" != yes; then 23160 ac_cs_success=: 23161 ac_config_status_args= 23162 test "$silent" = yes && 23163 ac_config_status_args="$ac_config_status_args --quiet" 23164 exec 5>/dev/null 23165 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23166 exec 5>>config.log 23167 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23168 # would make configure fail if this is the last instruction. 23169 $ac_cs_success || { (exit 1); exit 1; } 23170fi 23171 23172