configure revision b042e37f
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for libXrandr 1.2.2. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554 555# Check that we are running under the correct shell. 556SHELL=${CONFIG_SHELL-/bin/sh} 557 558case X$ECHO in 559X*--fallback-echo) 560 # Remove one level of quotation (which was required for Make). 561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 562 ;; 563esac 564 565echo=${ECHO-echo} 566if test "X$1" = X--no-reexec; then 567 # Discard the --no-reexec flag, and continue. 568 shift 569elif test "X$1" = X--fallback-echo; then 570 # Avoid inline document here, it may be left over 571 : 572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 573 # Yippee, $echo works! 574 : 575else 576 # Restart under the correct shell. 577 exec $SHELL "$0" --no-reexec ${1+"$@"} 578fi 579 580if test "X$1" = X--fallback-echo; then 581 # used as fallback echo 582 shift 583 cat <<EOF 584$* 585EOF 586 exit 0 587fi 588 589# The HP-UX ksh and POSIX shell print the target directory to stdout 590# if CDPATH is set. 591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 592 593if test -z "$ECHO"; then 594if test "X${echo_test_string+set}" != Xset; then 595# find a string as large as possible, as long as the shell can cope with it 596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 598 if (echo_test_string=`eval $cmd`) 2>/dev/null && 599 echo_test_string=`eval $cmd` && 600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 601 then 602 break 603 fi 604 done 605fi 606 607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 : 611else 612 # The Solaris, AIX, and Digital Unix default echo programs unquote 613 # backslashes. This makes it impossible to quote backslashes using 614 # echo "$something" | sed 's/\\/\\\\/g' 615 # 616 # So, first we look for a working echo in the user's PATH. 617 618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 619 for dir in $PATH /usr/ucb; do 620 IFS="$lt_save_ifs" 621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 624 test "X$echo_testing_string" = "X$echo_test_string"; then 625 echo="$dir/echo" 626 break 627 fi 628 done 629 IFS="$lt_save_ifs" 630 631 if test "X$echo" = Xecho; then 632 # We didn't find a better echo, so look for alternatives. 633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 # This shell has a builtin print -r that does the trick. 637 echo='print -r' 638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 639 test "X$CONFIG_SHELL" != X/bin/ksh; then 640 # If we have ksh, try running configure again with it. 641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 642 export ORIGINAL_CONFIG_SHELL 643 CONFIG_SHELL=/bin/ksh 644 export CONFIG_SHELL 645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 646 else 647 # Try using printf. 648 echo='printf %s\n' 649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 # Cool, printf works 653 : 654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 655 test "X$echo_testing_string" = 'X\t' && 656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 659 export CONFIG_SHELL 660 SHELL="$CONFIG_SHELL" 661 export SHELL 662 echo="$CONFIG_SHELL $0 --fallback-echo" 663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 664 test "X$echo_testing_string" = 'X\t' && 665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 666 test "X$echo_testing_string" = "X$echo_test_string"; then 667 echo="$CONFIG_SHELL $0 --fallback-echo" 668 else 669 # maybe with a smaller string... 670 prev=: 671 672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 674 then 675 break 676 fi 677 prev="$cmd" 678 done 679 680 if test "$prev" != 'sed 50q "$0"'; then 681 echo_test_string=`eval $prev` 682 export echo_test_string 683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 684 else 685 # Oops. We lost completely, so just stick with echo. 686 echo=echo 687 fi 688 fi 689 fi 690 fi 691fi 692fi 693 694# Copy echo and quote the copy suitably for passing to libtool from 695# the Makefile, instead of quoting the original, which is used later. 696ECHO=$echo 697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 699fi 700 701 702 703 704tagnames=${tagnames+${tagnames},}CXX 705 706tagnames=${tagnames+${tagnames},}F77 707 708exec 7<&0 </dev/null 6>&1 709 710# Name of the host. 711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 712# so uname gets run too. 713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 714 715# 716# Initializations. 717# 718ac_default_prefix=/usr/local 719ac_clean_files= 720ac_config_libobj_dir=. 721LIBOBJS= 722cross_compiling=no 723subdirs= 724MFLAGS= 725MAKEFLAGS= 726SHELL=${CONFIG_SHELL-/bin/sh} 727 728# Identity of this package. 729PACKAGE_NAME='libXrandr' 730PACKAGE_TARNAME='libXrandr' 731PACKAGE_VERSION='1.2.2' 732PACKAGE_STRING='libXrandr 1.2.2' 733PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 734 735# Factoring default headers for most tests. 736ac_includes_default="\ 737#include <stdio.h> 738#ifdef HAVE_SYS_TYPES_H 739# include <sys/types.h> 740#endif 741#ifdef HAVE_SYS_STAT_H 742# include <sys/stat.h> 743#endif 744#ifdef STDC_HEADERS 745# include <stdlib.h> 746# include <stddef.h> 747#else 748# ifdef HAVE_STDLIB_H 749# include <stdlib.h> 750# endif 751#endif 752#ifdef HAVE_STRING_H 753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 754# include <memory.h> 755# endif 756# include <string.h> 757#endif 758#ifdef HAVE_STRINGS_H 759# include <strings.h> 760#endif 761#ifdef HAVE_INTTYPES_H 762# include <inttypes.h> 763#endif 764#ifdef HAVE_STDINT_H 765# include <stdint.h> 766#endif 767#ifdef HAVE_UNISTD_H 768# include <unistd.h> 769#endif" 770 771ac_subst_vars='SHELL 772PATH_SEPARATOR 773PACKAGE_NAME 774PACKAGE_TARNAME 775PACKAGE_VERSION 776PACKAGE_STRING 777PACKAGE_BUGREPORT 778exec_prefix 779prefix 780program_transform_name 781bindir 782sbindir 783libexecdir 784datarootdir 785datadir 786sysconfdir 787sharedstatedir 788localstatedir 789includedir 790oldincludedir 791docdir 792infodir 793htmldir 794dvidir 795pdfdir 796psdir 797libdir 798localedir 799mandir 800DEFS 801ECHO_C 802ECHO_N 803ECHO_T 804LIBS 805build_alias 806host_alias 807target_alias 808INSTALL_PROGRAM 809INSTALL_SCRIPT 810INSTALL_DATA 811am__isrc 812CYGPATH_W 813PACKAGE 814VERSION 815ACLOCAL 816AUTOCONF 817AUTOMAKE 818AUTOHEADER 819MAKEINFO 820install_sh 821STRIP 822INSTALL_STRIP_PROGRAM 823mkdir_p 824AWK 825SET_MAKE 826am__leading_dot 827AMTAR 828am__tar 829am__untar 830MAINTAINER_MODE_TRUE 831MAINTAINER_MODE_FALSE 832MAINT 833CC 834CFLAGS 835LDFLAGS 836CPPFLAGS 837ac_ct_CC 838EXEEXT 839OBJEXT 840DEPDIR 841am__include 842am__quote 843AMDEP_TRUE 844AMDEP_FALSE 845AMDEPBACKSLASH 846CCDEPMODE 847am__fastdepCC_TRUE 848am__fastdepCC_FALSE 849build 850build_cpu 851build_vendor 852build_os 853host 854host_cpu 855host_vendor 856host_os 857GREP 858EGREP 859LN_S 860ECHO 861AR 862RANLIB 863CPP 864CXX 865CXXFLAGS 866ac_ct_CXX 867CXXDEPMODE 868am__fastdepCXX_TRUE 869am__fastdepCXX_FALSE 870CXXCPP 871F77 872FFLAGS 873ac_ct_F77 874LIBTOOL 875PKG_CONFIG 876X_CFLAGS 877X_LIBS 878RANDR_VERSION 879RANDR_CFLAGS 880RANDR_LIBS 881MALLOC_ZERO_CFLAGS 882XMALLOC_ZERO_CFLAGS 883XTMALLOC_ZERO_CFLAGS 884APP_MAN_SUFFIX 885LIB_MAN_SUFFIX 886FILE_MAN_SUFFIX 887MISC_MAN_SUFFIX 888DRIVER_MAN_SUFFIX 889ADMIN_MAN_SUFFIX 890APP_MAN_DIR 891LIB_MAN_DIR 892FILE_MAN_DIR 893MISC_MAN_DIR 894DRIVER_MAN_DIR 895ADMIN_MAN_DIR 896LIBOBJS 897LTLIBOBJS' 898ac_subst_files='' 899 ac_precious_vars='build_alias 900host_alias 901target_alias 902CC 903CFLAGS 904LDFLAGS 905LIBS 906CPPFLAGS 907CPP 908CXX 909CXXFLAGS 910CCC 911CXXCPP 912F77 913FFLAGS 914PKG_CONFIG 915X_CFLAGS 916X_LIBS 917RANDR_CFLAGS 918RANDR_LIBS' 919 920 921# Initialize some variables set by options. 922ac_init_help= 923ac_init_version=false 924# The variables have the same names as the options, with 925# dashes changed to underlines. 926cache_file=/dev/null 927exec_prefix=NONE 928no_create= 929no_recursion= 930prefix=NONE 931program_prefix=NONE 932program_suffix=NONE 933program_transform_name=s,x,x, 934silent= 935site= 936srcdir= 937verbose= 938x_includes=NONE 939x_libraries=NONE 940 941# Installation directory options. 942# These are left unexpanded so users can "make install exec_prefix=/foo" 943# and all the variables that are supposed to be based on exec_prefix 944# by default will actually change. 945# Use braces instead of parens because sh, perl, etc. also accept them. 946# (The list follows the same order as the GNU Coding Standards.) 947bindir='${exec_prefix}/bin' 948sbindir='${exec_prefix}/sbin' 949libexecdir='${exec_prefix}/libexec' 950datarootdir='${prefix}/share' 951datadir='${datarootdir}' 952sysconfdir='${prefix}/etc' 953sharedstatedir='${prefix}/com' 954localstatedir='${prefix}/var' 955includedir='${prefix}/include' 956oldincludedir='/usr/include' 957docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 958infodir='${datarootdir}/info' 959htmldir='${docdir}' 960dvidir='${docdir}' 961pdfdir='${docdir}' 962psdir='${docdir}' 963libdir='${exec_prefix}/lib' 964localedir='${datarootdir}/locale' 965mandir='${datarootdir}/man' 966 967ac_prev= 968ac_dashdash= 969for ac_option 970do 971 # If the previous option needs an argument, assign it. 972 if test -n "$ac_prev"; then 973 eval $ac_prev=\$ac_option 974 ac_prev= 975 continue 976 fi 977 978 case $ac_option in 979 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 980 *) ac_optarg=yes ;; 981 esac 982 983 # Accept the important Cygnus configure options, so we can diagnose typos. 984 985 case $ac_dashdash$ac_option in 986 --) 987 ac_dashdash=yes ;; 988 989 -bindir | --bindir | --bindi | --bind | --bin | --bi) 990 ac_prev=bindir ;; 991 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 992 bindir=$ac_optarg ;; 993 994 -build | --build | --buil | --bui | --bu) 995 ac_prev=build_alias ;; 996 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 997 build_alias=$ac_optarg ;; 998 999 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1001 ac_prev=cache_file ;; 1002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1004 cache_file=$ac_optarg ;; 1005 1006 --config-cache | -C) 1007 cache_file=config.cache ;; 1008 1009 -datadir | --datadir | --datadi | --datad) 1010 ac_prev=datadir ;; 1011 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1012 datadir=$ac_optarg ;; 1013 1014 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1015 | --dataroo | --dataro | --datar) 1016 ac_prev=datarootdir ;; 1017 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1018 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1019 datarootdir=$ac_optarg ;; 1020 1021 -disable-* | --disable-*) 1022 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1023 # Reject names that are not valid shell variable names. 1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1026 { (exit 1); exit 1; }; } 1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1028 eval enable_$ac_feature=no ;; 1029 1030 -docdir | --docdir | --docdi | --doc | --do) 1031 ac_prev=docdir ;; 1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1033 docdir=$ac_optarg ;; 1034 1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1036 ac_prev=dvidir ;; 1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1038 dvidir=$ac_optarg ;; 1039 1040 -enable-* | --enable-*) 1041 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1042 # Reject names that are not valid shell variable names. 1043 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1044 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1045 { (exit 1); exit 1; }; } 1046 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1047 eval enable_$ac_feature=\$ac_optarg ;; 1048 1049 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1050 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1051 | --exec | --exe | --ex) 1052 ac_prev=exec_prefix ;; 1053 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1054 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1055 | --exec=* | --exe=* | --ex=*) 1056 exec_prefix=$ac_optarg ;; 1057 1058 -gas | --gas | --ga | --g) 1059 # Obsolete; use --with-gas. 1060 with_gas=yes ;; 1061 1062 -help | --help | --hel | --he | -h) 1063 ac_init_help=long ;; 1064 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1065 ac_init_help=recursive ;; 1066 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1067 ac_init_help=short ;; 1068 1069 -host | --host | --hos | --ho) 1070 ac_prev=host_alias ;; 1071 -host=* | --host=* | --hos=* | --ho=*) 1072 host_alias=$ac_optarg ;; 1073 1074 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1075 ac_prev=htmldir ;; 1076 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1077 | --ht=*) 1078 htmldir=$ac_optarg ;; 1079 1080 -includedir | --includedir | --includedi | --included | --include \ 1081 | --includ | --inclu | --incl | --inc) 1082 ac_prev=includedir ;; 1083 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1084 | --includ=* | --inclu=* | --incl=* | --inc=*) 1085 includedir=$ac_optarg ;; 1086 1087 -infodir | --infodir | --infodi | --infod | --info | --inf) 1088 ac_prev=infodir ;; 1089 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1090 infodir=$ac_optarg ;; 1091 1092 -libdir | --libdir | --libdi | --libd) 1093 ac_prev=libdir ;; 1094 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1095 libdir=$ac_optarg ;; 1096 1097 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1098 | --libexe | --libex | --libe) 1099 ac_prev=libexecdir ;; 1100 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1101 | --libexe=* | --libex=* | --libe=*) 1102 libexecdir=$ac_optarg ;; 1103 1104 -localedir | --localedir | --localedi | --localed | --locale) 1105 ac_prev=localedir ;; 1106 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1107 localedir=$ac_optarg ;; 1108 1109 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1110 | --localstate | --localstat | --localsta | --localst | --locals) 1111 ac_prev=localstatedir ;; 1112 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1113 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1114 localstatedir=$ac_optarg ;; 1115 1116 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1117 ac_prev=mandir ;; 1118 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1119 mandir=$ac_optarg ;; 1120 1121 -nfp | --nfp | --nf) 1122 # Obsolete; use --without-fp. 1123 with_fp=no ;; 1124 1125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1126 | --no-cr | --no-c | -n) 1127 no_create=yes ;; 1128 1129 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1130 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1131 no_recursion=yes ;; 1132 1133 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1134 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1135 | --oldin | --oldi | --old | --ol | --o) 1136 ac_prev=oldincludedir ;; 1137 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1138 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1139 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1140 oldincludedir=$ac_optarg ;; 1141 1142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1143 ac_prev=prefix ;; 1144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1145 prefix=$ac_optarg ;; 1146 1147 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1148 | --program-pre | --program-pr | --program-p) 1149 ac_prev=program_prefix ;; 1150 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1151 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1152 program_prefix=$ac_optarg ;; 1153 1154 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1155 | --program-suf | --program-su | --program-s) 1156 ac_prev=program_suffix ;; 1157 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1158 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1159 program_suffix=$ac_optarg ;; 1160 1161 -program-transform-name | --program-transform-name \ 1162 | --program-transform-nam | --program-transform-na \ 1163 | --program-transform-n | --program-transform- \ 1164 | --program-transform | --program-transfor \ 1165 | --program-transfo | --program-transf \ 1166 | --program-trans | --program-tran \ 1167 | --progr-tra | --program-tr | --program-t) 1168 ac_prev=program_transform_name ;; 1169 -program-transform-name=* | --program-transform-name=* \ 1170 | --program-transform-nam=* | --program-transform-na=* \ 1171 | --program-transform-n=* | --program-transform-=* \ 1172 | --program-transform=* | --program-transfor=* \ 1173 | --program-transfo=* | --program-transf=* \ 1174 | --program-trans=* | --program-tran=* \ 1175 | --progr-tra=* | --program-tr=* | --program-t=*) 1176 program_transform_name=$ac_optarg ;; 1177 1178 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1179 ac_prev=pdfdir ;; 1180 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1181 pdfdir=$ac_optarg ;; 1182 1183 -psdir | --psdir | --psdi | --psd | --ps) 1184 ac_prev=psdir ;; 1185 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1186 psdir=$ac_optarg ;; 1187 1188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1189 | -silent | --silent | --silen | --sile | --sil) 1190 silent=yes ;; 1191 1192 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1193 ac_prev=sbindir ;; 1194 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1195 | --sbi=* | --sb=*) 1196 sbindir=$ac_optarg ;; 1197 1198 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1199 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1200 | --sharedst | --shareds | --shared | --share | --shar \ 1201 | --sha | --sh) 1202 ac_prev=sharedstatedir ;; 1203 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1204 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1205 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1206 | --sha=* | --sh=*) 1207 sharedstatedir=$ac_optarg ;; 1208 1209 -site | --site | --sit) 1210 ac_prev=site ;; 1211 -site=* | --site=* | --sit=*) 1212 site=$ac_optarg ;; 1213 1214 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1215 ac_prev=srcdir ;; 1216 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1217 srcdir=$ac_optarg ;; 1218 1219 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1220 | --syscon | --sysco | --sysc | --sys | --sy) 1221 ac_prev=sysconfdir ;; 1222 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1223 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1224 sysconfdir=$ac_optarg ;; 1225 1226 -target | --target | --targe | --targ | --tar | --ta | --t) 1227 ac_prev=target_alias ;; 1228 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1229 target_alias=$ac_optarg ;; 1230 1231 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1232 verbose=yes ;; 1233 1234 -version | --version | --versio | --versi | --vers | -V) 1235 ac_init_version=: ;; 1236 1237 -with-* | --with-*) 1238 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1239 # Reject names that are not valid shell variable names. 1240 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1241 { echo "$as_me: error: invalid package name: $ac_package" >&2 1242 { (exit 1); exit 1; }; } 1243 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1244 eval with_$ac_package=\$ac_optarg ;; 1245 1246 -without-* | --without-*) 1247 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1248 # Reject names that are not valid shell variable names. 1249 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1250 { echo "$as_me: error: invalid package name: $ac_package" >&2 1251 { (exit 1); exit 1; }; } 1252 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1253 eval with_$ac_package=no ;; 1254 1255 --x) 1256 # Obsolete; use --with-x. 1257 with_x=yes ;; 1258 1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1260 | --x-incl | --x-inc | --x-in | --x-i) 1261 ac_prev=x_includes ;; 1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1264 x_includes=$ac_optarg ;; 1265 1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1268 ac_prev=x_libraries ;; 1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1271 x_libraries=$ac_optarg ;; 1272 1273 -*) { echo "$as_me: error: unrecognized option: $ac_option 1274Try \`$0 --help' for more information." >&2 1275 { (exit 1); exit 1; }; } 1276 ;; 1277 1278 *=*) 1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1280 # Reject names that are not valid shell variable names. 1281 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1282 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1283 { (exit 1); exit 1; }; } 1284 eval $ac_envvar=\$ac_optarg 1285 export $ac_envvar ;; 1286 1287 *) 1288 # FIXME: should be removed in autoconf 3.0. 1289 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1291 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1292 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1293 ;; 1294 1295 esac 1296done 1297 1298if test -n "$ac_prev"; then 1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1300 { echo "$as_me: error: missing argument to $ac_option" >&2 1301 { (exit 1); exit 1; }; } 1302fi 1303 1304# Be sure to have absolute directory names. 1305for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1306 datadir sysconfdir sharedstatedir localstatedir includedir \ 1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1308 libdir localedir mandir 1309do 1310 eval ac_val=\$$ac_var 1311 case $ac_val in 1312 [\\/$]* | ?:[\\/]* ) continue;; 1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1314 esac 1315 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1316 { (exit 1); exit 1; }; } 1317done 1318 1319# There might be people who depend on the old broken behavior: `$host' 1320# used to hold the argument of --host etc. 1321# FIXME: To remove some day. 1322build=$build_alias 1323host=$host_alias 1324target=$target_alias 1325 1326# FIXME: To remove some day. 1327if test "x$host_alias" != x; then 1328 if test "x$build_alias" = x; then 1329 cross_compiling=maybe 1330 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1331 If a cross compiler is detected then cross compile mode will be used." >&2 1332 elif test "x$build_alias" != "x$host_alias"; then 1333 cross_compiling=yes 1334 fi 1335fi 1336 1337ac_tool_prefix= 1338test -n "$host_alias" && ac_tool_prefix=$host_alias- 1339 1340test "$silent" = yes && exec 6>/dev/null 1341 1342 1343ac_pwd=`pwd` && test -n "$ac_pwd" && 1344ac_ls_di=`ls -di .` && 1345ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1346 { echo "$as_me: error: Working directory cannot be determined" >&2 1347 { (exit 1); exit 1; }; } 1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1349 { echo "$as_me: error: pwd does not report name of working directory" >&2 1350 { (exit 1); exit 1; }; } 1351 1352 1353# Find the source files, if location was not specified. 1354if test -z "$srcdir"; then 1355 ac_srcdir_defaulted=yes 1356 # Try the directory containing this script, then the parent directory. 1357 ac_confdir=`$as_dirname -- "$0" || 1358$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1359 X"$0" : 'X\(//\)[^/]' \| \ 1360 X"$0" : 'X\(//\)$' \| \ 1361 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1362echo X"$0" | 1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1364 s//\1/ 1365 q 1366 } 1367 /^X\(\/\/\)[^/].*/{ 1368 s//\1/ 1369 q 1370 } 1371 /^X\(\/\/\)$/{ 1372 s//\1/ 1373 q 1374 } 1375 /^X\(\/\).*/{ 1376 s//\1/ 1377 q 1378 } 1379 s/.*/./; q'` 1380 srcdir=$ac_confdir 1381 if test ! -r "$srcdir/$ac_unique_file"; then 1382 srcdir=.. 1383 fi 1384else 1385 ac_srcdir_defaulted=no 1386fi 1387if test ! -r "$srcdir/$ac_unique_file"; then 1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1389 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1390 { (exit 1); exit 1; }; } 1391fi 1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1393ac_abs_confdir=`( 1394 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1395 { (exit 1); exit 1; }; } 1396 pwd)` 1397# When building in place, set srcdir=. 1398if test "$ac_abs_confdir" = "$ac_pwd"; then 1399 srcdir=. 1400fi 1401# Remove unnecessary trailing slashes from srcdir. 1402# Double slashes in file names in object file debugging info 1403# mess up M-x gdb in Emacs. 1404case $srcdir in 1405*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1406esac 1407for ac_var in $ac_precious_vars; do 1408 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1409 eval ac_env_${ac_var}_value=\$${ac_var} 1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1411 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1412done 1413 1414# 1415# Report the --help message. 1416# 1417if test "$ac_init_help" = "long"; then 1418 # Omit some internal or obsolete options to make the list less imposing. 1419 # This message is too long to be a string in the A/UX 3.1 sh. 1420 cat <<_ACEOF 1421\`configure' configures libXrandr 1.2.2 to adapt to many kinds of systems. 1422 1423Usage: $0 [OPTION]... [VAR=VALUE]... 1424 1425To assign environment variables (e.g., CC, CFLAGS...), specify them as 1426VAR=VALUE. See below for descriptions of some of the useful variables. 1427 1428Defaults for the options are specified in brackets. 1429 1430Configuration: 1431 -h, --help display this help and exit 1432 --help=short display options specific to this package 1433 --help=recursive display the short help of all the included packages 1434 -V, --version display version information and exit 1435 -q, --quiet, --silent do not print \`checking...' messages 1436 --cache-file=FILE cache test results in FILE [disabled] 1437 -C, --config-cache alias for \`--cache-file=config.cache' 1438 -n, --no-create do not create output files 1439 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1440 1441Installation directories: 1442 --prefix=PREFIX install architecture-independent files in PREFIX 1443 [$ac_default_prefix] 1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1445 [PREFIX] 1446 1447By default, \`make install' will install all the files in 1448\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1449an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1450for instance \`--prefix=\$HOME'. 1451 1452For better control, use the options below. 1453 1454Fine tuning of the installation directories: 1455 --bindir=DIR user executables [EPREFIX/bin] 1456 --sbindir=DIR system admin executables [EPREFIX/sbin] 1457 --libexecdir=DIR program executables [EPREFIX/libexec] 1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1461 --libdir=DIR object code libraries [EPREFIX/lib] 1462 --includedir=DIR C header files [PREFIX/include] 1463 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1466 --infodir=DIR info documentation [DATAROOTDIR/info] 1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1468 --mandir=DIR man documentation [DATAROOTDIR/man] 1469 --docdir=DIR documentation root [DATAROOTDIR/doc/libXrandr] 1470 --htmldir=DIR html documentation [DOCDIR] 1471 --dvidir=DIR dvi documentation [DOCDIR] 1472 --pdfdir=DIR pdf documentation [DOCDIR] 1473 --psdir=DIR ps documentation [DOCDIR] 1474_ACEOF 1475 1476 cat <<\_ACEOF 1477 1478Program names: 1479 --program-prefix=PREFIX prepend PREFIX to installed program names 1480 --program-suffix=SUFFIX append SUFFIX to installed program names 1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1482 1483System types: 1484 --build=BUILD configure for building on BUILD [guessed] 1485 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1486_ACEOF 1487fi 1488 1489if test -n "$ac_init_help"; then 1490 case $ac_init_help in 1491 short | recursive ) echo "Configuration of libXrandr 1.2.2:";; 1492 esac 1493 cat <<\_ACEOF 1494 1495Optional Features: 1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1498 --enable-maintainer-mode enable make rules and dependencies not useful 1499 (and sometimes confusing) to the casual installer 1500 --disable-dependency-tracking speeds up one-time build 1501 --enable-dependency-tracking do not reject slow dependency extractors 1502 --enable-shared[=PKGS] build shared libraries [default=yes] 1503 --enable-static[=PKGS] build static libraries [default=yes] 1504 --enable-fast-install[=PKGS] 1505 optimize for fast installation [default=yes] 1506 --disable-libtool-lock avoid locking (might break parallel builds) 1507 --enable-malloc0returnsnull 1508 malloc(0) returns NULL (default: auto) 1509 1510Optional Packages: 1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1513 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1514 --with-pic try to use only PIC/non-PIC objects [default=use 1515 both] 1516 --with-tags[=TAGS] include additional configurations [automatic] 1517 --with-release-version=STRING 1518 Use release version string in package name 1519 1520Some influential environment variables: 1521 CC C compiler command 1522 CFLAGS C compiler flags 1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1524 nonstandard directory <lib dir> 1525 LIBS libraries to pass to the linker, e.g. -l<library> 1526 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1527 you have headers in a nonstandard directory <include dir> 1528 CPP C preprocessor 1529 CXX C++ compiler command 1530 CXXFLAGS C++ compiler flags 1531 CXXCPP C++ preprocessor 1532 F77 Fortran 77 compiler command 1533 FFLAGS Fortran 77 compiler flags 1534 PKG_CONFIG path to pkg-config utility 1535 X_CFLAGS C compiler flags for X, overriding pkg-config 1536 X_LIBS linker flags for X, overriding pkg-config 1537 RANDR_CFLAGS 1538 C compiler flags for RANDR, overriding pkg-config 1539 RANDR_LIBS linker flags for RANDR, overriding pkg-config 1540 1541Use these variables to override the choices made by `configure' or to help 1542it to find libraries and programs with nonstandard names/locations. 1543 1544Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1545_ACEOF 1546ac_status=$? 1547fi 1548 1549if test "$ac_init_help" = "recursive"; then 1550 # If there are subdirs, report their specific --help. 1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1552 test -d "$ac_dir" || continue 1553 ac_builddir=. 1554 1555case "$ac_dir" in 1556.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1557*) 1558 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1559 # A ".." for each directory in $ac_dir_suffix. 1560 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1561 case $ac_top_builddir_sub in 1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1564 esac ;; 1565esac 1566ac_abs_top_builddir=$ac_pwd 1567ac_abs_builddir=$ac_pwd$ac_dir_suffix 1568# for backward compatibility: 1569ac_top_builddir=$ac_top_build_prefix 1570 1571case $srcdir in 1572 .) # We are building in place. 1573 ac_srcdir=. 1574 ac_top_srcdir=$ac_top_builddir_sub 1575 ac_abs_top_srcdir=$ac_pwd ;; 1576 [\\/]* | ?:[\\/]* ) # Absolute name. 1577 ac_srcdir=$srcdir$ac_dir_suffix; 1578 ac_top_srcdir=$srcdir 1579 ac_abs_top_srcdir=$srcdir ;; 1580 *) # Relative name. 1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1582 ac_top_srcdir=$ac_top_build_prefix$srcdir 1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1584esac 1585ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1586 1587 cd "$ac_dir" || { ac_status=$?; continue; } 1588 # Check for guested configure. 1589 if test -f "$ac_srcdir/configure.gnu"; then 1590 echo && 1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1592 elif test -f "$ac_srcdir/configure"; then 1593 echo && 1594 $SHELL "$ac_srcdir/configure" --help=recursive 1595 else 1596 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1597 fi || ac_status=$? 1598 cd "$ac_pwd" || { ac_status=$?; break; } 1599 done 1600fi 1601 1602test -n "$ac_init_help" && exit $ac_status 1603if $ac_init_version; then 1604 cat <<\_ACEOF 1605libXrandr configure 1.2.2 1606generated by GNU Autoconf 2.61 1607 1608Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16092002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1610This configure script is free software; the Free Software Foundation 1611gives unlimited permission to copy, distribute and modify it. 1612_ACEOF 1613 exit 1614fi 1615cat >config.log <<_ACEOF 1616This file contains any messages produced by compilers while 1617running configure, to aid debugging if configure makes a mistake. 1618 1619It was created by libXrandr $as_me 1.2.2, which was 1620generated by GNU Autoconf 2.61. Invocation command line was 1621 1622 $ $0 $@ 1623 1624_ACEOF 1625exec 5>>config.log 1626{ 1627cat <<_ASUNAME 1628## --------- ## 1629## Platform. ## 1630## --------- ## 1631 1632hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1633uname -m = `(uname -m) 2>/dev/null || echo unknown` 1634uname -r = `(uname -r) 2>/dev/null || echo unknown` 1635uname -s = `(uname -s) 2>/dev/null || echo unknown` 1636uname -v = `(uname -v) 2>/dev/null || echo unknown` 1637 1638/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1639/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1640 1641/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1642/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1643/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1644/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1645/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1646/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1647/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1648 1649_ASUNAME 1650 1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1652for as_dir in $PATH 1653do 1654 IFS=$as_save_IFS 1655 test -z "$as_dir" && as_dir=. 1656 echo "PATH: $as_dir" 1657done 1658IFS=$as_save_IFS 1659 1660} >&5 1661 1662cat >&5 <<_ACEOF 1663 1664 1665## ----------- ## 1666## Core tests. ## 1667## ----------- ## 1668 1669_ACEOF 1670 1671 1672# Keep a trace of the command line. 1673# Strip out --no-create and --no-recursion so they do not pile up. 1674# Strip out --silent because we don't want to record it for future runs. 1675# Also quote any args containing shell meta-characters. 1676# Make two passes to allow for proper duplicate-argument suppression. 1677ac_configure_args= 1678ac_configure_args0= 1679ac_configure_args1= 1680ac_must_keep_next=false 1681for ac_pass in 1 2 1682do 1683 for ac_arg 1684 do 1685 case $ac_arg in 1686 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1688 | -silent | --silent | --silen | --sile | --sil) 1689 continue ;; 1690 *\'*) 1691 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1692 esac 1693 case $ac_pass in 1694 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1695 2) 1696 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1697 if test $ac_must_keep_next = true; then 1698 ac_must_keep_next=false # Got value, back to normal. 1699 else 1700 case $ac_arg in 1701 *=* | --config-cache | -C | -disable-* | --disable-* \ 1702 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1703 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1704 | -with-* | --with-* | -without-* | --without-* | --x) 1705 case "$ac_configure_args0 " in 1706 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1707 esac 1708 ;; 1709 -* ) ac_must_keep_next=true ;; 1710 esac 1711 fi 1712 ac_configure_args="$ac_configure_args '$ac_arg'" 1713 ;; 1714 esac 1715 done 1716done 1717$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1718$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1719 1720# When interrupted or exit'd, cleanup temporary files, and complete 1721# config.log. We remove comments because anyway the quotes in there 1722# would cause problems or look ugly. 1723# WARNING: Use '\'' to represent an apostrophe within the trap. 1724# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1725trap 'exit_status=$? 1726 # Save into config.log some information that might help in debugging. 1727 { 1728 echo 1729 1730 cat <<\_ASBOX 1731## ---------------- ## 1732## Cache variables. ## 1733## ---------------- ## 1734_ASBOX 1735 echo 1736 # The following way of writing the cache mishandles newlines in values, 1737( 1738 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1739 eval ac_val=\$$ac_var 1740 case $ac_val in #( 1741 *${as_nl}*) 1742 case $ac_var in #( 1743 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1744echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1745 esac 1746 case $ac_var in #( 1747 _ | IFS | as_nl) ;; #( 1748 *) $as_unset $ac_var ;; 1749 esac ;; 1750 esac 1751 done 1752 (set) 2>&1 | 1753 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1754 *${as_nl}ac_space=\ *) 1755 sed -n \ 1756 "s/'\''/'\''\\\\'\'''\''/g; 1757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1758 ;; #( 1759 *) 1760 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1761 ;; 1762 esac | 1763 sort 1764) 1765 echo 1766 1767 cat <<\_ASBOX 1768## ----------------- ## 1769## Output variables. ## 1770## ----------------- ## 1771_ASBOX 1772 echo 1773 for ac_var in $ac_subst_vars 1774 do 1775 eval ac_val=\$$ac_var 1776 case $ac_val in 1777 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1778 esac 1779 echo "$ac_var='\''$ac_val'\''" 1780 done | sort 1781 echo 1782 1783 if test -n "$ac_subst_files"; then 1784 cat <<\_ASBOX 1785## ------------------- ## 1786## File substitutions. ## 1787## ------------------- ## 1788_ASBOX 1789 echo 1790 for ac_var in $ac_subst_files 1791 do 1792 eval ac_val=\$$ac_var 1793 case $ac_val in 1794 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1795 esac 1796 echo "$ac_var='\''$ac_val'\''" 1797 done | sort 1798 echo 1799 fi 1800 1801 if test -s confdefs.h; then 1802 cat <<\_ASBOX 1803## ----------- ## 1804## confdefs.h. ## 1805## ----------- ## 1806_ASBOX 1807 echo 1808 cat confdefs.h 1809 echo 1810 fi 1811 test "$ac_signal" != 0 && 1812 echo "$as_me: caught signal $ac_signal" 1813 echo "$as_me: exit $exit_status" 1814 } >&5 1815 rm -f core *.core core.conftest.* && 1816 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1817 exit $exit_status 1818' 0 1819for ac_signal in 1 2 13 15; do 1820 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1821done 1822ac_signal=0 1823 1824# confdefs.h avoids OS command line length limits that DEFS can exceed. 1825rm -f -r conftest* confdefs.h 1826 1827# Predefined preprocessor variables. 1828 1829cat >>confdefs.h <<_ACEOF 1830#define PACKAGE_NAME "$PACKAGE_NAME" 1831_ACEOF 1832 1833 1834cat >>confdefs.h <<_ACEOF 1835#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1836_ACEOF 1837 1838 1839cat >>confdefs.h <<_ACEOF 1840#define PACKAGE_VERSION "$PACKAGE_VERSION" 1841_ACEOF 1842 1843 1844cat >>confdefs.h <<_ACEOF 1845#define PACKAGE_STRING "$PACKAGE_STRING" 1846_ACEOF 1847 1848 1849cat >>confdefs.h <<_ACEOF 1850#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1851_ACEOF 1852 1853 1854# Let the site file select an alternate cache file if it wants to. 1855# Prefer explicitly selected file to automatically selected ones. 1856if test -n "$CONFIG_SITE"; then 1857 set x "$CONFIG_SITE" 1858elif test "x$prefix" != xNONE; then 1859 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1860else 1861 set x "$ac_default_prefix/share/config.site" \ 1862 "$ac_default_prefix/etc/config.site" 1863fi 1864shift 1865for ac_site_file 1866do 1867 if test -r "$ac_site_file"; then 1868 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1869echo "$as_me: loading site script $ac_site_file" >&6;} 1870 sed 's/^/| /' "$ac_site_file" >&5 1871 . "$ac_site_file" 1872 fi 1873done 1874 1875if test -r "$cache_file"; then 1876 # Some versions of bash will fail to source /dev/null (special 1877 # files actually), so we avoid doing that. 1878 if test -f "$cache_file"; then 1879 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1880echo "$as_me: loading cache $cache_file" >&6;} 1881 case $cache_file in 1882 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1883 *) . "./$cache_file";; 1884 esac 1885 fi 1886else 1887 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1888echo "$as_me: creating cache $cache_file" >&6;} 1889 >$cache_file 1890fi 1891 1892# Check that the precious variables saved in the cache have kept the same 1893# value. 1894ac_cache_corrupted=false 1895for ac_var in $ac_precious_vars; do 1896 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1897 eval ac_new_set=\$ac_env_${ac_var}_set 1898 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1899 eval ac_new_val=\$ac_env_${ac_var}_value 1900 case $ac_old_set,$ac_new_set in 1901 set,) 1902 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1903echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1904 ac_cache_corrupted=: ;; 1905 ,set) 1906 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1907echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1908 ac_cache_corrupted=: ;; 1909 ,);; 1910 *) 1911 if test "x$ac_old_val" != "x$ac_new_val"; then 1912 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1913echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1914 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1915echo "$as_me: former value: $ac_old_val" >&2;} 1916 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1917echo "$as_me: current value: $ac_new_val" >&2;} 1918 ac_cache_corrupted=: 1919 fi;; 1920 esac 1921 # Pass precious variables to config.status. 1922 if test "$ac_new_set" = set; then 1923 case $ac_new_val in 1924 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1925 *) ac_arg=$ac_var=$ac_new_val ;; 1926 esac 1927 case " $ac_configure_args " in 1928 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1929 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1930 esac 1931 fi 1932done 1933if $ac_cache_corrupted; then 1934 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1935echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1936 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1937echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1938 { (exit 1); exit 1; }; } 1939fi 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965ac_ext=c 1966ac_cpp='$CPP $CPPFLAGS' 1967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1969ac_compiler_gnu=$ac_cv_c_compiler_gnu 1970 1971 1972ac_aux_dir= 1973for ac_dir in . "$srcdir"/.; do 1974 if 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/install.sh"; then 1979 ac_aux_dir=$ac_dir 1980 ac_install_sh="$ac_aux_dir/install.sh -c" 1981 break 1982 elif test -f "$ac_dir/shtool"; then 1983 ac_aux_dir=$ac_dir 1984 ac_install_sh="$ac_aux_dir/shtool install -c" 1985 break 1986 fi 1987done 1988if test -z "$ac_aux_dir"; then 1989 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 1990echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 1991 { (exit 1); exit 1; }; } 1992fi 1993 1994# These three variables are undocumented and unsupported, 1995# and are intended to be withdrawn in a future Autoconf release. 1996# They can cause serious problems if a builder's source tree is in a directory 1997# whose full name contains unusual characters. 1998ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1999ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2000ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2001 2002 2003am__api_version='1.10' 2004 2005# Find a good install program. We prefer a C program (faster), 2006# so one script is as good as another. But avoid the broken or 2007# incompatible versions: 2008# SysV /etc/install, /usr/sbin/install 2009# SunOS /usr/etc/install 2010# IRIX /sbin/install 2011# AIX /bin/install 2012# AmigaOS /C/install, which installs bootblocks on floppy discs 2013# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2014# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2015# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2016# OS/2's system install, which has a completely different semantic 2017# ./install, which can be erroneously created by make from ./install.sh. 2018{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2019echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2020if test -z "$INSTALL"; then 2021if test "${ac_cv_path_install+set}" = set; then 2022 echo $ECHO_N "(cached) $ECHO_C" >&6 2023else 2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2025for as_dir in $PATH 2026do 2027 IFS=$as_save_IFS 2028 test -z "$as_dir" && as_dir=. 2029 # Account for people who put trailing slashes in PATH elements. 2030case $as_dir/ in 2031 ./ | .// | /cC/* | \ 2032 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2033 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2034 /usr/ucb/* ) ;; 2035 *) 2036 # OSF1 and SCO ODT 3.0 have their own names for install. 2037 # Don't use installbsd from OSF since it installs stuff as root 2038 # by default. 2039 for ac_prog in ginstall scoinst install; do 2040 for ac_exec_ext in '' $ac_executable_extensions; do 2041 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2042 if test $ac_prog = install && 2043 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2044 # AIX install. It has an incompatible calling convention. 2045 : 2046 elif test $ac_prog = install && 2047 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2048 # program-specific install script used by HP pwplus--don't use. 2049 : 2050 else 2051 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2052 break 3 2053 fi 2054 fi 2055 done 2056 done 2057 ;; 2058esac 2059done 2060IFS=$as_save_IFS 2061 2062 2063fi 2064 if test "${ac_cv_path_install+set}" = set; then 2065 INSTALL=$ac_cv_path_install 2066 else 2067 # As a last resort, use the slow shell script. Don't cache a 2068 # value for INSTALL within a source directory, because that will 2069 # break other packages using the cache if that directory is 2070 # removed, or if the value is a relative name. 2071 INSTALL=$ac_install_sh 2072 fi 2073fi 2074{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2075echo "${ECHO_T}$INSTALL" >&6; } 2076 2077# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2078# It thinks the first close brace ends the variable substitution. 2079test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2080 2081test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2082 2083test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2084 2085{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2086echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2087# Just in case 2088sleep 1 2089echo timestamp > conftest.file 2090# Do `set' in a subshell so we don't clobber the current shell's 2091# arguments. Must try -L first in case configure is actually a 2092# symlink; some systems play weird games with the mod time of symlinks 2093# (eg FreeBSD returns the mod time of the symlink's containing 2094# directory). 2095if ( 2096 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2097 if test "$*" = "X"; then 2098 # -L didn't work. 2099 set X `ls -t $srcdir/configure conftest.file` 2100 fi 2101 rm -f conftest.file 2102 if test "$*" != "X $srcdir/configure conftest.file" \ 2103 && test "$*" != "X conftest.file $srcdir/configure"; then 2104 2105 # If neither matched, then we have a broken ls. This can happen 2106 # if, for instance, CONFIG_SHELL is bash and it inherits a 2107 # broken ls alias from the environment. This has actually 2108 # happened. Such a system could not be considered "sane". 2109 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2110alias in your environment" >&5 2111echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2112alias in your environment" >&2;} 2113 { (exit 1); exit 1; }; } 2114 fi 2115 2116 test "$2" = conftest.file 2117 ) 2118then 2119 # Ok. 2120 : 2121else 2122 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2123Check your system clock" >&5 2124echo "$as_me: error: newly created file is older than distributed files! 2125Check your system clock" >&2;} 2126 { (exit 1); exit 1; }; } 2127fi 2128{ echo "$as_me:$LINENO: result: yes" >&5 2129echo "${ECHO_T}yes" >&6; } 2130test "$program_prefix" != NONE && 2131 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2132# Use a double $ so make ignores it. 2133test "$program_suffix" != NONE && 2134 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2135# Double any \ or $. echo might interpret backslashes. 2136# By default was `s,x,x', remove it if useless. 2137cat <<\_ACEOF >conftest.sed 2138s/[\\$]/&&/g;s/;s,x,x,$// 2139_ACEOF 2140program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2141rm -f conftest.sed 2142 2143# expand $ac_aux_dir to an absolute path 2144am_aux_dir=`cd $ac_aux_dir && pwd` 2145 2146test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2147# Use eval to expand $SHELL 2148if eval "$MISSING --run true"; then 2149 am_missing_run="$MISSING --run " 2150else 2151 am_missing_run= 2152 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2153echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2154fi 2155 2156{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2157echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2158if test -z "$MKDIR_P"; then 2159 if test "${ac_cv_path_mkdir+set}" = set; then 2160 echo $ECHO_N "(cached) $ECHO_C" >&6 2161else 2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2163for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2164do 2165 IFS=$as_save_IFS 2166 test -z "$as_dir" && as_dir=. 2167 for ac_prog in mkdir gmkdir; do 2168 for ac_exec_ext in '' $ac_executable_extensions; do 2169 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2170 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2171 'mkdir (GNU coreutils) '* | \ 2172 'mkdir (coreutils) '* | \ 2173 'mkdir (fileutils) '4.1*) 2174 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2175 break 3;; 2176 esac 2177 done 2178 done 2179done 2180IFS=$as_save_IFS 2181 2182fi 2183 2184 if test "${ac_cv_path_mkdir+set}" = set; then 2185 MKDIR_P="$ac_cv_path_mkdir -p" 2186 else 2187 # As a last resort, use the slow shell script. Don't cache a 2188 # value for MKDIR_P within a source directory, because that will 2189 # break other packages using the cache if that directory is 2190 # removed, or if the value is a relative name. 2191 test -d ./--version && rmdir ./--version 2192 MKDIR_P="$ac_install_sh -d" 2193 fi 2194fi 2195{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2196echo "${ECHO_T}$MKDIR_P" >&6; } 2197 2198mkdir_p="$MKDIR_P" 2199case $mkdir_p in 2200 [\\/$]* | ?:[\\/]*) ;; 2201 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2202esac 2203 2204for ac_prog in gawk mawk nawk awk 2205do 2206 # Extract the first word of "$ac_prog", so it can be a program name with args. 2207set dummy $ac_prog; ac_word=$2 2208{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2210if test "${ac_cv_prog_AWK+set}" = set; then 2211 echo $ECHO_N "(cached) $ECHO_C" >&6 2212else 2213 if test -n "$AWK"; then 2214 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2215else 2216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2217for as_dir in $PATH 2218do 2219 IFS=$as_save_IFS 2220 test -z "$as_dir" && as_dir=. 2221 for ac_exec_ext in '' $ac_executable_extensions; do 2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2223 ac_cv_prog_AWK="$ac_prog" 2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2225 break 2 2226 fi 2227done 2228done 2229IFS=$as_save_IFS 2230 2231fi 2232fi 2233AWK=$ac_cv_prog_AWK 2234if test -n "$AWK"; then 2235 { echo "$as_me:$LINENO: result: $AWK" >&5 2236echo "${ECHO_T}$AWK" >&6; } 2237else 2238 { echo "$as_me:$LINENO: result: no" >&5 2239echo "${ECHO_T}no" >&6; } 2240fi 2241 2242 2243 test -n "$AWK" && break 2244done 2245 2246{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2247echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2248set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2249if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2250 echo $ECHO_N "(cached) $ECHO_C" >&6 2251else 2252 cat >conftest.make <<\_ACEOF 2253SHELL = /bin/sh 2254all: 2255 @echo '@@@%%%=$(MAKE)=@@@%%%' 2256_ACEOF 2257# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2258case `${MAKE-make} -f conftest.make 2>/dev/null` in 2259 *@@@%%%=?*=@@@%%%*) 2260 eval ac_cv_prog_make_${ac_make}_set=yes;; 2261 *) 2262 eval ac_cv_prog_make_${ac_make}_set=no;; 2263esac 2264rm -f conftest.make 2265fi 2266if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2267 { echo "$as_me:$LINENO: result: yes" >&5 2268echo "${ECHO_T}yes" >&6; } 2269 SET_MAKE= 2270else 2271 { echo "$as_me:$LINENO: result: no" >&5 2272echo "${ECHO_T}no" >&6; } 2273 SET_MAKE="MAKE=${MAKE-make}" 2274fi 2275 2276rm -rf .tst 2>/dev/null 2277mkdir .tst 2>/dev/null 2278if test -d .tst; then 2279 am__leading_dot=. 2280else 2281 am__leading_dot=_ 2282fi 2283rmdir .tst 2>/dev/null 2284 2285if test "`cd $srcdir && pwd`" != "`pwd`"; then 2286 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2287 # is not polluted with repeated "-I." 2288 am__isrc=' -I$(srcdir)' 2289 # test to see if srcdir already configured 2290 if test -f $srcdir/config.status; then 2291 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2292echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2293 { (exit 1); exit 1; }; } 2294 fi 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='libXrandr' 2309 VERSION='1.2.2' 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-"\$(SHELL) $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_test_x "$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_test_x "$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="\$(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{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2456echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2457 # Check whether --enable-maintainer-mode was given. 2458if test "${enable_maintainer_mode+set}" = set; then 2459 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2460else 2461 USE_MAINTAINER_MODE=no 2462fi 2463 2464 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2465echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2466 if test $USE_MAINTAINER_MODE = yes; then 2467 MAINTAINER_MODE_TRUE= 2468 MAINTAINER_MODE_FALSE='#' 2469else 2470 MAINTAINER_MODE_TRUE='#' 2471 MAINTAINER_MODE_FALSE= 2472fi 2473 2474 MAINT=$MAINTAINER_MODE_TRUE 2475 2476 2477 2478ac_config_headers="$ac_config_headers config.h" 2479 2480 2481# Check for progs 2482ac_ext=c 2483ac_cpp='$CPP $CPPFLAGS' 2484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2486ac_compiler_gnu=$ac_cv_c_compiler_gnu 2487if test -n "$ac_tool_prefix"; then 2488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2489set dummy ${ac_tool_prefix}gcc; ac_word=$2 2490{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2492if test "${ac_cv_prog_CC+set}" = set; then 2493 echo $ECHO_N "(cached) $ECHO_C" >&6 2494else 2495 if test -n "$CC"; then 2496 ac_cv_prog_CC="$CC" # Let the user override the test. 2497else 2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2499for as_dir in $PATH 2500do 2501 IFS=$as_save_IFS 2502 test -z "$as_dir" && as_dir=. 2503 for ac_exec_ext in '' $ac_executable_extensions; do 2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2505 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2507 break 2 2508 fi 2509done 2510done 2511IFS=$as_save_IFS 2512 2513fi 2514fi 2515CC=$ac_cv_prog_CC 2516if test -n "$CC"; then 2517 { echo "$as_me:$LINENO: result: $CC" >&5 2518echo "${ECHO_T}$CC" >&6; } 2519else 2520 { echo "$as_me:$LINENO: result: no" >&5 2521echo "${ECHO_T}no" >&6; } 2522fi 2523 2524 2525fi 2526if test -z "$ac_cv_prog_CC"; then 2527 ac_ct_CC=$CC 2528 # Extract the first word of "gcc", so it can be a program name with args. 2529set dummy gcc; ac_word=$2 2530{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2532if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2533 echo $ECHO_N "(cached) $ECHO_C" >&6 2534else 2535 if test -n "$ac_ct_CC"; then 2536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2537else 2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2539for as_dir in $PATH 2540do 2541 IFS=$as_save_IFS 2542 test -z "$as_dir" && as_dir=. 2543 for ac_exec_ext in '' $ac_executable_extensions; do 2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2545 ac_cv_prog_ac_ct_CC="gcc" 2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2547 break 2 2548 fi 2549done 2550done 2551IFS=$as_save_IFS 2552 2553fi 2554fi 2555ac_ct_CC=$ac_cv_prog_ac_ct_CC 2556if test -n "$ac_ct_CC"; then 2557 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2558echo "${ECHO_T}$ac_ct_CC" >&6; } 2559else 2560 { echo "$as_me:$LINENO: result: no" >&5 2561echo "${ECHO_T}no" >&6; } 2562fi 2563 2564 if test "x$ac_ct_CC" = x; then 2565 CC="" 2566 else 2567 case $cross_compiling:$ac_tool_warned in 2568yes:) 2569{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2570whose name does not start with the host triplet. If you think this 2571configuration is useful to you, please write to autoconf@gnu.org." >&5 2572echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2573whose name does not start with the host triplet. If you think this 2574configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2575ac_tool_warned=yes ;; 2576esac 2577 CC=$ac_ct_CC 2578 fi 2579else 2580 CC="$ac_cv_prog_CC" 2581fi 2582 2583if test -z "$CC"; then 2584 if test -n "$ac_tool_prefix"; then 2585 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2586set dummy ${ac_tool_prefix}cc; ac_word=$2 2587{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2589if test "${ac_cv_prog_CC+set}" = set; then 2590 echo $ECHO_N "(cached) $ECHO_C" >&6 2591else 2592 if test -n "$CC"; then 2593 ac_cv_prog_CC="$CC" # Let the user override the test. 2594else 2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2596for as_dir in $PATH 2597do 2598 IFS=$as_save_IFS 2599 test -z "$as_dir" && as_dir=. 2600 for ac_exec_ext in '' $ac_executable_extensions; do 2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2602 ac_cv_prog_CC="${ac_tool_prefix}cc" 2603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2604 break 2 2605 fi 2606done 2607done 2608IFS=$as_save_IFS 2609 2610fi 2611fi 2612CC=$ac_cv_prog_CC 2613if test -n "$CC"; then 2614 { echo "$as_me:$LINENO: result: $CC" >&5 2615echo "${ECHO_T}$CC" >&6; } 2616else 2617 { echo "$as_me:$LINENO: result: no" >&5 2618echo "${ECHO_T}no" >&6; } 2619fi 2620 2621 2622 fi 2623fi 2624if test -z "$CC"; then 2625 # Extract the first word of "cc", so it can be a program name with args. 2626set dummy cc; ac_word=$2 2627{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2629if test "${ac_cv_prog_CC+set}" = set; then 2630 echo $ECHO_N "(cached) $ECHO_C" >&6 2631else 2632 if test -n "$CC"; then 2633 ac_cv_prog_CC="$CC" # Let the user override the test. 2634else 2635 ac_prog_rejected=no 2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2637for as_dir in $PATH 2638do 2639 IFS=$as_save_IFS 2640 test -z "$as_dir" && as_dir=. 2641 for ac_exec_ext in '' $ac_executable_extensions; do 2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2643 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2644 ac_prog_rejected=yes 2645 continue 2646 fi 2647 ac_cv_prog_CC="cc" 2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2649 break 2 2650 fi 2651done 2652done 2653IFS=$as_save_IFS 2654 2655if test $ac_prog_rejected = yes; then 2656 # We found a bogon in the path, so make sure we never use it. 2657 set dummy $ac_cv_prog_CC 2658 shift 2659 if test $# != 0; then 2660 # We chose a different compiler from the bogus one. 2661 # However, it has the same basename, so the bogon will be chosen 2662 # first if we set CC to just the basename; use the full file name. 2663 shift 2664 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2665 fi 2666fi 2667fi 2668fi 2669CC=$ac_cv_prog_CC 2670if test -n "$CC"; then 2671 { echo "$as_me:$LINENO: result: $CC" >&5 2672echo "${ECHO_T}$CC" >&6; } 2673else 2674 { echo "$as_me:$LINENO: result: no" >&5 2675echo "${ECHO_T}no" >&6; } 2676fi 2677 2678 2679fi 2680if test -z "$CC"; then 2681 if test -n "$ac_tool_prefix"; then 2682 for ac_prog in cl.exe 2683 do 2684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2685set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2686{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2688if test "${ac_cv_prog_CC+set}" = set; then 2689 echo $ECHO_N "(cached) $ECHO_C" >&6 2690else 2691 if test -n "$CC"; then 2692 ac_cv_prog_CC="$CC" # Let the user override the test. 2693else 2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2695for as_dir in $PATH 2696do 2697 IFS=$as_save_IFS 2698 test -z "$as_dir" && as_dir=. 2699 for ac_exec_ext in '' $ac_executable_extensions; do 2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2701 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2703 break 2 2704 fi 2705done 2706done 2707IFS=$as_save_IFS 2708 2709fi 2710fi 2711CC=$ac_cv_prog_CC 2712if test -n "$CC"; then 2713 { echo "$as_me:$LINENO: result: $CC" >&5 2714echo "${ECHO_T}$CC" >&6; } 2715else 2716 { echo "$as_me:$LINENO: result: no" >&5 2717echo "${ECHO_T}no" >&6; } 2718fi 2719 2720 2721 test -n "$CC" && break 2722 done 2723fi 2724if test -z "$CC"; then 2725 ac_ct_CC=$CC 2726 for ac_prog in cl.exe 2727do 2728 # Extract the first word of "$ac_prog", so it can be a program name with args. 2729set dummy $ac_prog; ac_word=$2 2730{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2732if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2733 echo $ECHO_N "(cached) $ECHO_C" >&6 2734else 2735 if test -n "$ac_ct_CC"; then 2736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2737else 2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2739for as_dir in $PATH 2740do 2741 IFS=$as_save_IFS 2742 test -z "$as_dir" && as_dir=. 2743 for ac_exec_ext in '' $ac_executable_extensions; do 2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2745 ac_cv_prog_ac_ct_CC="$ac_prog" 2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2747 break 2 2748 fi 2749done 2750done 2751IFS=$as_save_IFS 2752 2753fi 2754fi 2755ac_ct_CC=$ac_cv_prog_ac_ct_CC 2756if test -n "$ac_ct_CC"; then 2757 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2758echo "${ECHO_T}$ac_ct_CC" >&6; } 2759else 2760 { echo "$as_me:$LINENO: result: no" >&5 2761echo "${ECHO_T}no" >&6; } 2762fi 2763 2764 2765 test -n "$ac_ct_CC" && break 2766done 2767 2768 if test "x$ac_ct_CC" = x; then 2769 CC="" 2770 else 2771 case $cross_compiling:$ac_tool_warned in 2772yes:) 2773{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2774whose name does not start with the host triplet. If you think this 2775configuration is useful to you, please write to autoconf@gnu.org." >&5 2776echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2777whose name does not start with the host triplet. If you think this 2778configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2779ac_tool_warned=yes ;; 2780esac 2781 CC=$ac_ct_CC 2782 fi 2783fi 2784 2785fi 2786 2787 2788test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2789See \`config.log' for more details." >&5 2790echo "$as_me: error: no acceptable C compiler found in \$PATH 2791See \`config.log' for more details." >&2;} 2792 { (exit 1); exit 1; }; } 2793 2794# Provide some information about the compiler. 2795echo "$as_me:$LINENO: checking for C compiler version" >&5 2796ac_compiler=`set X $ac_compile; echo $2` 2797{ (ac_try="$ac_compiler --version >&5" 2798case "(($ac_try" in 2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2800 *) ac_try_echo=$ac_try;; 2801esac 2802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2803 (eval "$ac_compiler --version >&5") 2>&5 2804 ac_status=$? 2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2806 (exit $ac_status); } 2807{ (ac_try="$ac_compiler -v >&5" 2808case "(($ac_try" in 2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2810 *) ac_try_echo=$ac_try;; 2811esac 2812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2813 (eval "$ac_compiler -v >&5") 2>&5 2814 ac_status=$? 2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2816 (exit $ac_status); } 2817{ (ac_try="$ac_compiler -V >&5" 2818case "(($ac_try" in 2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2820 *) ac_try_echo=$ac_try;; 2821esac 2822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2823 (eval "$ac_compiler -V >&5") 2>&5 2824 ac_status=$? 2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2826 (exit $ac_status); } 2827 2828cat >conftest.$ac_ext <<_ACEOF 2829/* confdefs.h. */ 2830_ACEOF 2831cat confdefs.h >>conftest.$ac_ext 2832cat >>conftest.$ac_ext <<_ACEOF 2833/* end confdefs.h. */ 2834 2835int 2836main () 2837{ 2838 2839 ; 2840 return 0; 2841} 2842_ACEOF 2843ac_clean_files_save=$ac_clean_files 2844ac_clean_files="$ac_clean_files a.out a.exe b.out" 2845# Try to create an executable without -o first, disregard a.out. 2846# It will help us diagnose broken compilers, and finding out an intuition 2847# of exeext. 2848{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2849echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2850ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2851# 2852# List of possible output files, starting from the most likely. 2853# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2854# only as a last resort. b.out is created by i960 compilers. 2855ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2856# 2857# The IRIX 6 linker writes into existing files which may not be 2858# executable, retaining their permissions. Remove them first so a 2859# subsequent execution test works. 2860ac_rmfiles= 2861for ac_file in $ac_files 2862do 2863 case $ac_file in 2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2865 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2866 esac 2867done 2868rm -f $ac_rmfiles 2869 2870if { (ac_try="$ac_link_default" 2871case "(($ac_try" in 2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2873 *) ac_try_echo=$ac_try;; 2874esac 2875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2876 (eval "$ac_link_default") 2>&5 2877 ac_status=$? 2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2879 (exit $ac_status); }; then 2880 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2881# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2882# in a Makefile. We should not override ac_cv_exeext if it was cached, 2883# so that the user can short-circuit this test for compilers unknown to 2884# Autoconf. 2885for ac_file in $ac_files '' 2886do 2887 test -f "$ac_file" || continue 2888 case $ac_file in 2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2890 ;; 2891 [ab].out ) 2892 # We found the default executable, but exeext='' is most 2893 # certainly right. 2894 break;; 2895 *.* ) 2896 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2897 then :; else 2898 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2899 fi 2900 # We set ac_cv_exeext here because the later test for it is not 2901 # safe: cross compilers may not add the suffix if given an `-o' 2902 # argument, so we may need to know it at that point already. 2903 # Even if this section looks crufty: it has the advantage of 2904 # actually working. 2905 break;; 2906 * ) 2907 break;; 2908 esac 2909done 2910test "$ac_cv_exeext" = no && ac_cv_exeext= 2911 2912else 2913 ac_file='' 2914fi 2915 2916{ echo "$as_me:$LINENO: result: $ac_file" >&5 2917echo "${ECHO_T}$ac_file" >&6; } 2918if test -z "$ac_file"; then 2919 echo "$as_me: failed program was:" >&5 2920sed 's/^/| /' conftest.$ac_ext >&5 2921 2922{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2923See \`config.log' for more details." >&5 2924echo "$as_me: error: C compiler cannot create executables 2925See \`config.log' for more details." >&2;} 2926 { (exit 77); exit 77; }; } 2927fi 2928 2929ac_exeext=$ac_cv_exeext 2930 2931# Check that the compiler produces executables we can run. If not, either 2932# the compiler is broken, or we cross compile. 2933{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2934echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2935# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2936# If not cross compiling, check that we can run a simple program. 2937if test "$cross_compiling" != yes; then 2938 if { ac_try='./$ac_file' 2939 { (case "(($ac_try" in 2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2941 *) ac_try_echo=$ac_try;; 2942esac 2943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2944 (eval "$ac_try") 2>&5 2945 ac_status=$? 2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2947 (exit $ac_status); }; }; then 2948 cross_compiling=no 2949 else 2950 if test "$cross_compiling" = maybe; then 2951 cross_compiling=yes 2952 else 2953 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2954If you meant to cross compile, use \`--host'. 2955See \`config.log' for more details." >&5 2956echo "$as_me: error: cannot run C compiled programs. 2957If you meant to cross compile, use \`--host'. 2958See \`config.log' for more details." >&2;} 2959 { (exit 1); exit 1; }; } 2960 fi 2961 fi 2962fi 2963{ echo "$as_me:$LINENO: result: yes" >&5 2964echo "${ECHO_T}yes" >&6; } 2965 2966rm -f a.out a.exe conftest$ac_cv_exeext b.out 2967ac_clean_files=$ac_clean_files_save 2968# Check that the compiler produces executables we can run. If not, either 2969# the compiler is broken, or we cross compile. 2970{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2971echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2972{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2973echo "${ECHO_T}$cross_compiling" >&6; } 2974 2975{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2976echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2977if { (ac_try="$ac_link" 2978case "(($ac_try" in 2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2980 *) ac_try_echo=$ac_try;; 2981esac 2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2983 (eval "$ac_link") 2>&5 2984 ac_status=$? 2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2986 (exit $ac_status); }; then 2987 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2988# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2989# work properly (i.e., refer to `conftest.exe'), while it won't with 2990# `rm'. 2991for ac_file in conftest.exe conftest conftest.*; do 2992 test -f "$ac_file" || continue 2993 case $ac_file in 2994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2995 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2996 break;; 2997 * ) break;; 2998 esac 2999done 3000else 3001 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3002See \`config.log' for more details." >&5 3003echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3004See \`config.log' for more details." >&2;} 3005 { (exit 1); exit 1; }; } 3006fi 3007 3008rm -f conftest$ac_cv_exeext 3009{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3010echo "${ECHO_T}$ac_cv_exeext" >&6; } 3011 3012rm -f conftest.$ac_ext 3013EXEEXT=$ac_cv_exeext 3014ac_exeext=$EXEEXT 3015{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3016echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3017if test "${ac_cv_objext+set}" = set; then 3018 echo $ECHO_N "(cached) $ECHO_C" >&6 3019else 3020 cat >conftest.$ac_ext <<_ACEOF 3021/* confdefs.h. */ 3022_ACEOF 3023cat confdefs.h >>conftest.$ac_ext 3024cat >>conftest.$ac_ext <<_ACEOF 3025/* end confdefs.h. */ 3026 3027int 3028main () 3029{ 3030 3031 ; 3032 return 0; 3033} 3034_ACEOF 3035rm -f conftest.o conftest.obj 3036if { (ac_try="$ac_compile" 3037case "(($ac_try" in 3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3039 *) ac_try_echo=$ac_try;; 3040esac 3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3042 (eval "$ac_compile") 2>&5 3043 ac_status=$? 3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3045 (exit $ac_status); }; then 3046 for ac_file in conftest.o conftest.obj conftest.*; do 3047 test -f "$ac_file" || continue; 3048 case $ac_file in 3049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3051 break;; 3052 esac 3053done 3054else 3055 echo "$as_me: failed program was:" >&5 3056sed 's/^/| /' conftest.$ac_ext >&5 3057 3058{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3059See \`config.log' for more details." >&5 3060echo "$as_me: error: cannot compute suffix of object files: cannot compile 3061See \`config.log' for more details." >&2;} 3062 { (exit 1); exit 1; }; } 3063fi 3064 3065rm -f conftest.$ac_cv_objext conftest.$ac_ext 3066fi 3067{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3068echo "${ECHO_T}$ac_cv_objext" >&6; } 3069OBJEXT=$ac_cv_objext 3070ac_objext=$OBJEXT 3071{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3072echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3073if test "${ac_cv_c_compiler_gnu+set}" = set; then 3074 echo $ECHO_N "(cached) $ECHO_C" >&6 3075else 3076 cat >conftest.$ac_ext <<_ACEOF 3077/* confdefs.h. */ 3078_ACEOF 3079cat confdefs.h >>conftest.$ac_ext 3080cat >>conftest.$ac_ext <<_ACEOF 3081/* end confdefs.h. */ 3082 3083int 3084main () 3085{ 3086#ifndef __GNUC__ 3087 choke me 3088#endif 3089 3090 ; 3091 return 0; 3092} 3093_ACEOF 3094rm -f conftest.$ac_objext 3095if { (ac_try="$ac_compile" 3096case "(($ac_try" in 3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3098 *) ac_try_echo=$ac_try;; 3099esac 3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3101 (eval "$ac_compile") 2>conftest.er1 3102 ac_status=$? 3103 grep -v '^ *+' conftest.er1 >conftest.err 3104 rm -f conftest.er1 3105 cat conftest.err >&5 3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3107 (exit $ac_status); } && { 3108 test -z "$ac_c_werror_flag" || 3109 test ! -s conftest.err 3110 } && test -s conftest.$ac_objext; then 3111 ac_compiler_gnu=yes 3112else 3113 echo "$as_me: failed program was:" >&5 3114sed 's/^/| /' conftest.$ac_ext >&5 3115 3116 ac_compiler_gnu=no 3117fi 3118 3119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3120ac_cv_c_compiler_gnu=$ac_compiler_gnu 3121 3122fi 3123{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3124echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3125GCC=`test $ac_compiler_gnu = yes && echo yes` 3126ac_test_CFLAGS=${CFLAGS+set} 3127ac_save_CFLAGS=$CFLAGS 3128{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3129echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3130if test "${ac_cv_prog_cc_g+set}" = set; then 3131 echo $ECHO_N "(cached) $ECHO_C" >&6 3132else 3133 ac_save_c_werror_flag=$ac_c_werror_flag 3134 ac_c_werror_flag=yes 3135 ac_cv_prog_cc_g=no 3136 CFLAGS="-g" 3137 cat >conftest.$ac_ext <<_ACEOF 3138/* confdefs.h. */ 3139_ACEOF 3140cat confdefs.h >>conftest.$ac_ext 3141cat >>conftest.$ac_ext <<_ACEOF 3142/* end confdefs.h. */ 3143 3144int 3145main () 3146{ 3147 3148 ; 3149 return 0; 3150} 3151_ACEOF 3152rm -f conftest.$ac_objext 3153if { (ac_try="$ac_compile" 3154case "(($ac_try" in 3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3156 *) ac_try_echo=$ac_try;; 3157esac 3158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3159 (eval "$ac_compile") 2>conftest.er1 3160 ac_status=$? 3161 grep -v '^ *+' conftest.er1 >conftest.err 3162 rm -f conftest.er1 3163 cat conftest.err >&5 3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3165 (exit $ac_status); } && { 3166 test -z "$ac_c_werror_flag" || 3167 test ! -s conftest.err 3168 } && test -s conftest.$ac_objext; then 3169 ac_cv_prog_cc_g=yes 3170else 3171 echo "$as_me: failed program was:" >&5 3172sed 's/^/| /' conftest.$ac_ext >&5 3173 3174 CFLAGS="" 3175 cat >conftest.$ac_ext <<_ACEOF 3176/* confdefs.h. */ 3177_ACEOF 3178cat confdefs.h >>conftest.$ac_ext 3179cat >>conftest.$ac_ext <<_ACEOF 3180/* end confdefs.h. */ 3181 3182int 3183main () 3184{ 3185 3186 ; 3187 return 0; 3188} 3189_ACEOF 3190rm -f conftest.$ac_objext 3191if { (ac_try="$ac_compile" 3192case "(($ac_try" in 3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3194 *) ac_try_echo=$ac_try;; 3195esac 3196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3197 (eval "$ac_compile") 2>conftest.er1 3198 ac_status=$? 3199 grep -v '^ *+' conftest.er1 >conftest.err 3200 rm -f conftest.er1 3201 cat conftest.err >&5 3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3203 (exit $ac_status); } && { 3204 test -z "$ac_c_werror_flag" || 3205 test ! -s conftest.err 3206 } && test -s conftest.$ac_objext; then 3207 : 3208else 3209 echo "$as_me: failed program was:" >&5 3210sed 's/^/| /' conftest.$ac_ext >&5 3211 3212 ac_c_werror_flag=$ac_save_c_werror_flag 3213 CFLAGS="-g" 3214 cat >conftest.$ac_ext <<_ACEOF 3215/* confdefs.h. */ 3216_ACEOF 3217cat confdefs.h >>conftest.$ac_ext 3218cat >>conftest.$ac_ext <<_ACEOF 3219/* end confdefs.h. */ 3220 3221int 3222main () 3223{ 3224 3225 ; 3226 return 0; 3227} 3228_ACEOF 3229rm -f conftest.$ac_objext 3230if { (ac_try="$ac_compile" 3231case "(($ac_try" in 3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3233 *) ac_try_echo=$ac_try;; 3234esac 3235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3236 (eval "$ac_compile") 2>conftest.er1 3237 ac_status=$? 3238 grep -v '^ *+' conftest.er1 >conftest.err 3239 rm -f conftest.er1 3240 cat conftest.err >&5 3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3242 (exit $ac_status); } && { 3243 test -z "$ac_c_werror_flag" || 3244 test ! -s conftest.err 3245 } && test -s conftest.$ac_objext; then 3246 ac_cv_prog_cc_g=yes 3247else 3248 echo "$as_me: failed program was:" >&5 3249sed 's/^/| /' conftest.$ac_ext >&5 3250 3251 3252fi 3253 3254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3255fi 3256 3257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3258fi 3259 3260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3261 ac_c_werror_flag=$ac_save_c_werror_flag 3262fi 3263{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3264echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3265if test "$ac_test_CFLAGS" = set; then 3266 CFLAGS=$ac_save_CFLAGS 3267elif test $ac_cv_prog_cc_g = yes; then 3268 if test "$GCC" = yes; then 3269 CFLAGS="-g -O2" 3270 else 3271 CFLAGS="-g" 3272 fi 3273else 3274 if test "$GCC" = yes; then 3275 CFLAGS="-O2" 3276 else 3277 CFLAGS= 3278 fi 3279fi 3280{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3281echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3282if test "${ac_cv_prog_cc_c89+set}" = set; then 3283 echo $ECHO_N "(cached) $ECHO_C" >&6 3284else 3285 ac_cv_prog_cc_c89=no 3286ac_save_CC=$CC 3287cat >conftest.$ac_ext <<_ACEOF 3288/* confdefs.h. */ 3289_ACEOF 3290cat confdefs.h >>conftest.$ac_ext 3291cat >>conftest.$ac_ext <<_ACEOF 3292/* end confdefs.h. */ 3293#include <stdarg.h> 3294#include <stdio.h> 3295#include <sys/types.h> 3296#include <sys/stat.h> 3297/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3298struct buf { int x; }; 3299FILE * (*rcsopen) (struct buf *, struct stat *, int); 3300static char *e (p, i) 3301 char **p; 3302 int i; 3303{ 3304 return p[i]; 3305} 3306static char *f (char * (*g) (char **, int), char **p, ...) 3307{ 3308 char *s; 3309 va_list v; 3310 va_start (v,p); 3311 s = g (p, va_arg (v,int)); 3312 va_end (v); 3313 return s; 3314} 3315 3316/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3317 function prototypes and stuff, but not '\xHH' hex character constants. 3318 These don't provoke an error unfortunately, instead are silently treated 3319 as 'x'. The following induces an error, until -std is added to get 3320 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3321 array size at least. It's necessary to write '\x00'==0 to get something 3322 that's true only with -std. */ 3323int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3324 3325/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3326 inside strings and character constants. */ 3327#define FOO(x) 'x' 3328int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3329 3330int test (int i, double x); 3331struct s1 {int (*f) (int a);}; 3332struct s2 {int (*f) (double a);}; 3333int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3334int argc; 3335char **argv; 3336int 3337main () 3338{ 3339return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3340 ; 3341 return 0; 3342} 3343_ACEOF 3344for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3345 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3346do 3347 CC="$ac_save_CC $ac_arg" 3348 rm -f conftest.$ac_objext 3349if { (ac_try="$ac_compile" 3350case "(($ac_try" in 3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3352 *) ac_try_echo=$ac_try;; 3353esac 3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3355 (eval "$ac_compile") 2>conftest.er1 3356 ac_status=$? 3357 grep -v '^ *+' conftest.er1 >conftest.err 3358 rm -f conftest.er1 3359 cat conftest.err >&5 3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3361 (exit $ac_status); } && { 3362 test -z "$ac_c_werror_flag" || 3363 test ! -s conftest.err 3364 } && test -s conftest.$ac_objext; then 3365 ac_cv_prog_cc_c89=$ac_arg 3366else 3367 echo "$as_me: failed program was:" >&5 3368sed 's/^/| /' conftest.$ac_ext >&5 3369 3370 3371fi 3372 3373rm -f core conftest.err conftest.$ac_objext 3374 test "x$ac_cv_prog_cc_c89" != "xno" && break 3375done 3376rm -f conftest.$ac_ext 3377CC=$ac_save_CC 3378 3379fi 3380# AC_CACHE_VAL 3381case "x$ac_cv_prog_cc_c89" in 3382 x) 3383 { echo "$as_me:$LINENO: result: none needed" >&5 3384echo "${ECHO_T}none needed" >&6; } ;; 3385 xno) 3386 { echo "$as_me:$LINENO: result: unsupported" >&5 3387echo "${ECHO_T}unsupported" >&6; } ;; 3388 *) 3389 CC="$CC $ac_cv_prog_cc_c89" 3390 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3391echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3392esac 3393 3394 3395ac_ext=c 3396ac_cpp='$CPP $CPPFLAGS' 3397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3399ac_compiler_gnu=$ac_cv_c_compiler_gnu 3400DEPDIR="${am__leading_dot}deps" 3401 3402ac_config_commands="$ac_config_commands depfiles" 3403 3404 3405am_make=${MAKE-make} 3406cat > confinc << 'END' 3407am__doit: 3408 @echo done 3409.PHONY: am__doit 3410END 3411# If we don't find an include directive, just comment out the code. 3412{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3413echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3414am__include="#" 3415am__quote= 3416_am_result=none 3417# First try GNU make style include. 3418echo "include confinc" > confmf 3419# We grep out `Entering directory' and `Leaving directory' 3420# messages which can occur if `w' ends up in MAKEFLAGS. 3421# In particular we don't look at `^make:' because GNU make might 3422# be invoked under some other name (usually "gmake"), in which 3423# case it prints its new name instead of `make'. 3424if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3425 am__include=include 3426 am__quote= 3427 _am_result=GNU 3428fi 3429# Now try BSD make style include. 3430if test "$am__include" = "#"; then 3431 echo '.include "confinc"' > confmf 3432 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3433 am__include=.include 3434 am__quote="\"" 3435 _am_result=BSD 3436 fi 3437fi 3438 3439 3440{ echo "$as_me:$LINENO: result: $_am_result" >&5 3441echo "${ECHO_T}$_am_result" >&6; } 3442rm -f confinc confmf 3443 3444# Check whether --enable-dependency-tracking was given. 3445if test "${enable_dependency_tracking+set}" = set; then 3446 enableval=$enable_dependency_tracking; 3447fi 3448 3449if test "x$enable_dependency_tracking" != xno; then 3450 am_depcomp="$ac_aux_dir/depcomp" 3451 AMDEPBACKSLASH='\' 3452fi 3453 if test "x$enable_dependency_tracking" != xno; then 3454 AMDEP_TRUE= 3455 AMDEP_FALSE='#' 3456else 3457 AMDEP_TRUE='#' 3458 AMDEP_FALSE= 3459fi 3460 3461 3462 3463depcc="$CC" am_compiler_list= 3464 3465{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3466echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3467if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3468 echo $ECHO_N "(cached) $ECHO_C" >&6 3469else 3470 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3471 # We make a subdir and do the tests there. Otherwise we can end up 3472 # making bogus files that we don't know about and never remove. For 3473 # instance it was reported that on HP-UX the gcc test will end up 3474 # making a dummy file named `D' -- because `-MD' means `put the output 3475 # in D'. 3476 mkdir conftest.dir 3477 # Copy depcomp to subdir because otherwise we won't find it if we're 3478 # using a relative directory. 3479 cp "$am_depcomp" conftest.dir 3480 cd conftest.dir 3481 # We will build objects and dependencies in a subdirectory because 3482 # it helps to detect inapplicable dependency modes. For instance 3483 # both Tru64's cc and ICC support -MD to output dependencies as a 3484 # side effect of compilation, but ICC will put the dependencies in 3485 # the current directory while Tru64 will put them in the object 3486 # directory. 3487 mkdir sub 3488 3489 am_cv_CC_dependencies_compiler_type=none 3490 if test "$am_compiler_list" = ""; then 3491 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3492 fi 3493 for depmode in $am_compiler_list; do 3494 # Setup a source with many dependencies, because some compilers 3495 # like to wrap large dependency lists on column 80 (with \), and 3496 # we should not choose a depcomp mode which is confused by this. 3497 # 3498 # We need to recreate these files for each test, as the compiler may 3499 # overwrite some of them when testing with obscure command lines. 3500 # This happens at least with the AIX C compiler. 3501 : > sub/conftest.c 3502 for i in 1 2 3 4 5 6; do 3503 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3504 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3505 # Solaris 8's {/usr,}/bin/sh. 3506 touch sub/conftst$i.h 3507 done 3508 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3509 3510 case $depmode in 3511 nosideeffect) 3512 # after this tag, mechanisms are not by side-effect, so they'll 3513 # only be used when explicitly requested 3514 if test "x$enable_dependency_tracking" = xyes; then 3515 continue 3516 else 3517 break 3518 fi 3519 ;; 3520 none) break ;; 3521 esac 3522 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3523 # mode. It turns out that the SunPro C++ compiler does not properly 3524 # handle `-M -o', and we need to detect this. 3525 if depmode=$depmode \ 3526 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3527 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3528 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3529 >/dev/null 2>conftest.err && 3530 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3531 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3532 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3533 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3534 # icc doesn't choke on unknown options, it will just issue warnings 3535 # or remarks (even with -Werror). So we grep stderr for any message 3536 # that says an option was ignored or not supported. 3537 # When given -MP, icc 7.0 and 7.1 complain thusly: 3538 # icc: Command line warning: ignoring option '-M'; no argument required 3539 # The diagnosis changed in icc 8.0: 3540 # icc: Command line remark: option '-MP' not supported 3541 if (grep 'ignoring option' conftest.err || 3542 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3543 am_cv_CC_dependencies_compiler_type=$depmode 3544 break 3545 fi 3546 fi 3547 done 3548 3549 cd .. 3550 rm -rf conftest.dir 3551else 3552 am_cv_CC_dependencies_compiler_type=none 3553fi 3554 3555fi 3556{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3557echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3558CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3559 3560 if 3561 test "x$enable_dependency_tracking" != xno \ 3562 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3563 am__fastdepCC_TRUE= 3564 am__fastdepCC_FALSE='#' 3565else 3566 am__fastdepCC_TRUE='#' 3567 am__fastdepCC_FALSE= 3568fi 3569 3570 3571# Check whether --enable-shared was given. 3572if test "${enable_shared+set}" = set; then 3573 enableval=$enable_shared; p=${PACKAGE-default} 3574 case $enableval in 3575 yes) enable_shared=yes ;; 3576 no) enable_shared=no ;; 3577 *) 3578 enable_shared=no 3579 # Look at the argument we got. We use all the common list separators. 3580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3581 for pkg in $enableval; do 3582 IFS="$lt_save_ifs" 3583 if test "X$pkg" = "X$p"; then 3584 enable_shared=yes 3585 fi 3586 done 3587 IFS="$lt_save_ifs" 3588 ;; 3589 esac 3590else 3591 enable_shared=yes 3592fi 3593 3594 3595# Check whether --enable-static was given. 3596if test "${enable_static+set}" = set; then 3597 enableval=$enable_static; p=${PACKAGE-default} 3598 case $enableval in 3599 yes) enable_static=yes ;; 3600 no) enable_static=no ;; 3601 *) 3602 enable_static=no 3603 # Look at the argument we got. We use all the common list separators. 3604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3605 for pkg in $enableval; do 3606 IFS="$lt_save_ifs" 3607 if test "X$pkg" = "X$p"; then 3608 enable_static=yes 3609 fi 3610 done 3611 IFS="$lt_save_ifs" 3612 ;; 3613 esac 3614else 3615 enable_static=yes 3616fi 3617 3618 3619# Check whether --enable-fast-install was given. 3620if test "${enable_fast_install+set}" = set; then 3621 enableval=$enable_fast_install; p=${PACKAGE-default} 3622 case $enableval in 3623 yes) enable_fast_install=yes ;; 3624 no) enable_fast_install=no ;; 3625 *) 3626 enable_fast_install=no 3627 # Look at the argument we got. We use all the common list separators. 3628 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3629 for pkg in $enableval; do 3630 IFS="$lt_save_ifs" 3631 if test "X$pkg" = "X$p"; then 3632 enable_fast_install=yes 3633 fi 3634 done 3635 IFS="$lt_save_ifs" 3636 ;; 3637 esac 3638else 3639 enable_fast_install=yes 3640fi 3641 3642 3643# Make sure we can run config.sub. 3644$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3645 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3646echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3647 { (exit 1); exit 1; }; } 3648 3649{ echo "$as_me:$LINENO: checking build system type" >&5 3650echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3651if test "${ac_cv_build+set}" = set; then 3652 echo $ECHO_N "(cached) $ECHO_C" >&6 3653else 3654 ac_build_alias=$build_alias 3655test "x$ac_build_alias" = x && 3656 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3657test "x$ac_build_alias" = x && 3658 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3659echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3660 { (exit 1); exit 1; }; } 3661ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3662 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3663echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3664 { (exit 1); exit 1; }; } 3665 3666fi 3667{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3668echo "${ECHO_T}$ac_cv_build" >&6; } 3669case $ac_cv_build in 3670*-*-*) ;; 3671*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3672echo "$as_me: error: invalid value of canonical build" >&2;} 3673 { (exit 1); exit 1; }; };; 3674esac 3675build=$ac_cv_build 3676ac_save_IFS=$IFS; IFS='-' 3677set x $ac_cv_build 3678shift 3679build_cpu=$1 3680build_vendor=$2 3681shift; shift 3682# Remember, the first character of IFS is used to create $*, 3683# except with old shells: 3684build_os=$* 3685IFS=$ac_save_IFS 3686case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3687 3688 3689{ echo "$as_me:$LINENO: checking host system type" >&5 3690echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3691if test "${ac_cv_host+set}" = set; then 3692 echo $ECHO_N "(cached) $ECHO_C" >&6 3693else 3694 if test "x$host_alias" = x; then 3695 ac_cv_host=$ac_cv_build 3696else 3697 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3698 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3699echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3700 { (exit 1); exit 1; }; } 3701fi 3702 3703fi 3704{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3705echo "${ECHO_T}$ac_cv_host" >&6; } 3706case $ac_cv_host in 3707*-*-*) ;; 3708*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3709echo "$as_me: error: invalid value of canonical host" >&2;} 3710 { (exit 1); exit 1; }; };; 3711esac 3712host=$ac_cv_host 3713ac_save_IFS=$IFS; IFS='-' 3714set x $ac_cv_host 3715shift 3716host_cpu=$1 3717host_vendor=$2 3718shift; shift 3719# Remember, the first character of IFS is used to create $*, 3720# except with old shells: 3721host_os=$* 3722IFS=$ac_save_IFS 3723case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3724 3725 3726{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3727echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3728if test "${lt_cv_path_SED+set}" = set; then 3729 echo $ECHO_N "(cached) $ECHO_C" >&6 3730else 3731 # Loop through the user's path and test for sed and gsed. 3732# Then use that list of sed's as ones to test for truncation. 3733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3734for as_dir in $PATH 3735do 3736 IFS=$as_save_IFS 3737 test -z "$as_dir" && as_dir=. 3738 for lt_ac_prog in sed gsed; do 3739 for ac_exec_ext in '' $ac_executable_extensions; do 3740 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3741 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3742 fi 3743 done 3744 done 3745done 3746lt_ac_max=0 3747lt_ac_count=0 3748# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3749# along with /bin/sed that truncates output. 3750for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3751 test ! -f $lt_ac_sed && continue 3752 cat /dev/null > conftest.in 3753 lt_ac_count=0 3754 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3755 # Check for GNU sed and select it if it is found. 3756 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3757 lt_cv_path_SED=$lt_ac_sed 3758 break 3759 fi 3760 while true; do 3761 cat conftest.in conftest.in >conftest.tmp 3762 mv conftest.tmp conftest.in 3763 cp conftest.in conftest.nl 3764 echo >>conftest.nl 3765 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3766 cmp -s conftest.out conftest.nl || break 3767 # 10000 chars as input seems more than enough 3768 test $lt_ac_count -gt 10 && break 3769 lt_ac_count=`expr $lt_ac_count + 1` 3770 if test $lt_ac_count -gt $lt_ac_max; then 3771 lt_ac_max=$lt_ac_count 3772 lt_cv_path_SED=$lt_ac_sed 3773 fi 3774 done 3775done 3776 3777fi 3778 3779SED=$lt_cv_path_SED 3780{ echo "$as_me:$LINENO: result: $SED" >&5 3781echo "${ECHO_T}$SED" >&6; } 3782 3783{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3784echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3785if test "${ac_cv_path_GREP+set}" = set; then 3786 echo $ECHO_N "(cached) $ECHO_C" >&6 3787else 3788 # Extract the first word of "grep ggrep" to use in msg output 3789if test -z "$GREP"; then 3790set dummy grep ggrep; ac_prog_name=$2 3791if test "${ac_cv_path_GREP+set}" = set; then 3792 echo $ECHO_N "(cached) $ECHO_C" >&6 3793else 3794 ac_path_GREP_found=false 3795# Loop through the user's path and test for each of PROGNAME-LIST 3796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3797for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3798do 3799 IFS=$as_save_IFS 3800 test -z "$as_dir" && as_dir=. 3801 for ac_prog in grep ggrep; do 3802 for ac_exec_ext in '' $ac_executable_extensions; do 3803 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3804 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3805 # Check for GNU ac_path_GREP and select it if it is found. 3806 # Check for GNU $ac_path_GREP 3807case `"$ac_path_GREP" --version 2>&1` in 3808*GNU*) 3809 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3810*) 3811 ac_count=0 3812 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3813 while : 3814 do 3815 cat "conftest.in" "conftest.in" >"conftest.tmp" 3816 mv "conftest.tmp" "conftest.in" 3817 cp "conftest.in" "conftest.nl" 3818 echo 'GREP' >> "conftest.nl" 3819 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3821 ac_count=`expr $ac_count + 1` 3822 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3823 # Best one so far, save it but keep looking for a better one 3824 ac_cv_path_GREP="$ac_path_GREP" 3825 ac_path_GREP_max=$ac_count 3826 fi 3827 # 10*(2^10) chars as input seems more than enough 3828 test $ac_count -gt 10 && break 3829 done 3830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3831esac 3832 3833 3834 $ac_path_GREP_found && break 3 3835 done 3836done 3837 3838done 3839IFS=$as_save_IFS 3840 3841 3842fi 3843 3844GREP="$ac_cv_path_GREP" 3845if test -z "$GREP"; then 3846 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3847echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3848 { (exit 1); exit 1; }; } 3849fi 3850 3851else 3852 ac_cv_path_GREP=$GREP 3853fi 3854 3855 3856fi 3857{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3858echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3859 GREP="$ac_cv_path_GREP" 3860 3861 3862{ echo "$as_me:$LINENO: checking for egrep" >&5 3863echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3864if test "${ac_cv_path_EGREP+set}" = set; then 3865 echo $ECHO_N "(cached) $ECHO_C" >&6 3866else 3867 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3868 then ac_cv_path_EGREP="$GREP -E" 3869 else 3870 # Extract the first word of "egrep" to use in msg output 3871if test -z "$EGREP"; then 3872set dummy egrep; ac_prog_name=$2 3873if test "${ac_cv_path_EGREP+set}" = set; then 3874 echo $ECHO_N "(cached) $ECHO_C" >&6 3875else 3876 ac_path_EGREP_found=false 3877# Loop through the user's path and test for each of PROGNAME-LIST 3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3879for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3880do 3881 IFS=$as_save_IFS 3882 test -z "$as_dir" && as_dir=. 3883 for ac_prog in egrep; do 3884 for ac_exec_ext in '' $ac_executable_extensions; do 3885 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3886 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3887 # Check for GNU ac_path_EGREP and select it if it is found. 3888 # Check for GNU $ac_path_EGREP 3889case `"$ac_path_EGREP" --version 2>&1` in 3890*GNU*) 3891 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3892*) 3893 ac_count=0 3894 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3895 while : 3896 do 3897 cat "conftest.in" "conftest.in" >"conftest.tmp" 3898 mv "conftest.tmp" "conftest.in" 3899 cp "conftest.in" "conftest.nl" 3900 echo 'EGREP' >> "conftest.nl" 3901 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3903 ac_count=`expr $ac_count + 1` 3904 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3905 # Best one so far, save it but keep looking for a better one 3906 ac_cv_path_EGREP="$ac_path_EGREP" 3907 ac_path_EGREP_max=$ac_count 3908 fi 3909 # 10*(2^10) chars as input seems more than enough 3910 test $ac_count -gt 10 && break 3911 done 3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3913esac 3914 3915 3916 $ac_path_EGREP_found && break 3 3917 done 3918done 3919 3920done 3921IFS=$as_save_IFS 3922 3923 3924fi 3925 3926EGREP="$ac_cv_path_EGREP" 3927if test -z "$EGREP"; then 3928 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3929echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3930 { (exit 1); exit 1; }; } 3931fi 3932 3933else 3934 ac_cv_path_EGREP=$EGREP 3935fi 3936 3937 3938 fi 3939fi 3940{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3941echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3942 EGREP="$ac_cv_path_EGREP" 3943 3944 3945 3946# Check whether --with-gnu-ld was given. 3947if test "${with_gnu_ld+set}" = set; then 3948 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3949else 3950 with_gnu_ld=no 3951fi 3952 3953ac_prog=ld 3954if test "$GCC" = yes; then 3955 # Check if gcc -print-prog-name=ld gives a path. 3956 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3957echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3958 case $host in 3959 *-*-mingw*) 3960 # gcc leaves a trailing carriage return which upsets mingw 3961 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3962 *) 3963 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3964 esac 3965 case $ac_prog in 3966 # Accept absolute paths. 3967 [\\/]* | ?:[\\/]*) 3968 re_direlt='/[^/][^/]*/\.\./' 3969 # Canonicalize the pathname of ld 3970 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3971 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3972 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3973 done 3974 test -z "$LD" && LD="$ac_prog" 3975 ;; 3976 "") 3977 # If it fails, then pretend we aren't using GCC. 3978 ac_prog=ld 3979 ;; 3980 *) 3981 # If it is relative, then search for the first ld in PATH. 3982 with_gnu_ld=unknown 3983 ;; 3984 esac 3985elif test "$with_gnu_ld" = yes; then 3986 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3987echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3988else 3989 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3990echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3991fi 3992if test "${lt_cv_path_LD+set}" = set; then 3993 echo $ECHO_N "(cached) $ECHO_C" >&6 3994else 3995 if test -z "$LD"; then 3996 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3997 for ac_dir in $PATH; do 3998 IFS="$lt_save_ifs" 3999 test -z "$ac_dir" && ac_dir=. 4000 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4001 lt_cv_path_LD="$ac_dir/$ac_prog" 4002 # Check to see if the program is GNU ld. I'd rather use --version, 4003 # but apparently some variants of GNU ld only accept -v. 4004 # Break only if it was the GNU/non-GNU ld that we prefer. 4005 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4006 *GNU* | *'with BFD'*) 4007 test "$with_gnu_ld" != no && break 4008 ;; 4009 *) 4010 test "$with_gnu_ld" != yes && break 4011 ;; 4012 esac 4013 fi 4014 done 4015 IFS="$lt_save_ifs" 4016else 4017 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4018fi 4019fi 4020 4021LD="$lt_cv_path_LD" 4022if test -n "$LD"; then 4023 { echo "$as_me:$LINENO: result: $LD" >&5 4024echo "${ECHO_T}$LD" >&6; } 4025else 4026 { echo "$as_me:$LINENO: result: no" >&5 4027echo "${ECHO_T}no" >&6; } 4028fi 4029test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4030echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4031 { (exit 1); exit 1; }; } 4032{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4033echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4034if test "${lt_cv_prog_gnu_ld+set}" = set; then 4035 echo $ECHO_N "(cached) $ECHO_C" >&6 4036else 4037 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4038case `$LD -v 2>&1 </dev/null` in 4039*GNU* | *'with BFD'*) 4040 lt_cv_prog_gnu_ld=yes 4041 ;; 4042*) 4043 lt_cv_prog_gnu_ld=no 4044 ;; 4045esac 4046fi 4047{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4048echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4049with_gnu_ld=$lt_cv_prog_gnu_ld 4050 4051 4052{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4053echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4054if test "${lt_cv_ld_reload_flag+set}" = set; then 4055 echo $ECHO_N "(cached) $ECHO_C" >&6 4056else 4057 lt_cv_ld_reload_flag='-r' 4058fi 4059{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4060echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4061reload_flag=$lt_cv_ld_reload_flag 4062case $reload_flag in 4063"" | " "*) ;; 4064*) reload_flag=" $reload_flag" ;; 4065esac 4066reload_cmds='$LD$reload_flag -o $output$reload_objs' 4067case $host_os in 4068 darwin*) 4069 if test "$GCC" = yes; then 4070 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4071 else 4072 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4073 fi 4074 ;; 4075esac 4076 4077{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4078echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4079if test "${lt_cv_path_NM+set}" = set; then 4080 echo $ECHO_N "(cached) $ECHO_C" >&6 4081else 4082 if test -n "$NM"; then 4083 # Let the user override the test. 4084 lt_cv_path_NM="$NM" 4085else 4086 lt_nm_to_check="${ac_tool_prefix}nm" 4087 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4088 lt_nm_to_check="$lt_nm_to_check nm" 4089 fi 4090 for lt_tmp_nm in $lt_nm_to_check; do 4091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4092 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4093 IFS="$lt_save_ifs" 4094 test -z "$ac_dir" && ac_dir=. 4095 tmp_nm="$ac_dir/$lt_tmp_nm" 4096 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4097 # Check to see if the nm accepts a BSD-compat flag. 4098 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4099 # nm: unknown option "B" ignored 4100 # Tru64's nm complains that /dev/null is an invalid object file 4101 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4102 */dev/null* | *'Invalid file or object type'*) 4103 lt_cv_path_NM="$tmp_nm -B" 4104 break 4105 ;; 4106 *) 4107 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4108 */dev/null*) 4109 lt_cv_path_NM="$tmp_nm -p" 4110 break 4111 ;; 4112 *) 4113 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4114 continue # so that we can try to find one that supports BSD flags 4115 ;; 4116 esac 4117 ;; 4118 esac 4119 fi 4120 done 4121 IFS="$lt_save_ifs" 4122 done 4123 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4124fi 4125fi 4126{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4127echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4128NM="$lt_cv_path_NM" 4129 4130{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4131echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4132LN_S=$as_ln_s 4133if test "$LN_S" = "ln -s"; then 4134 { echo "$as_me:$LINENO: result: yes" >&5 4135echo "${ECHO_T}yes" >&6; } 4136else 4137 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4138echo "${ECHO_T}no, using $LN_S" >&6; } 4139fi 4140 4141{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4142echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4143if test "${lt_cv_deplibs_check_method+set}" = set; then 4144 echo $ECHO_N "(cached) $ECHO_C" >&6 4145else 4146 lt_cv_file_magic_cmd='$MAGIC_CMD' 4147lt_cv_file_magic_test_file= 4148lt_cv_deplibs_check_method='unknown' 4149# Need to set the preceding variable on all platforms that support 4150# interlibrary dependencies. 4151# 'none' -- dependencies not supported. 4152# `unknown' -- same as none, but documents that we really don't know. 4153# 'pass_all' -- all dependencies passed with no checks. 4154# 'test_compile' -- check by making test program. 4155# 'file_magic [[regex]]' -- check by looking for files in library path 4156# which responds to the $file_magic_cmd with a given extended regex. 4157# If you have `file' or equivalent on your system and you're not sure 4158# whether `pass_all' will *always* work, you probably want this one. 4159 4160case $host_os in 4161aix4* | aix5*) 4162 lt_cv_deplibs_check_method=pass_all 4163 ;; 4164 4165beos*) 4166 lt_cv_deplibs_check_method=pass_all 4167 ;; 4168 4169bsdi[45]*) 4170 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4171 lt_cv_file_magic_cmd='/usr/bin/file -L' 4172 lt_cv_file_magic_test_file=/shlib/libc.so 4173 ;; 4174 4175cygwin*) 4176 # func_win32_libid is a shell function defined in ltmain.sh 4177 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4178 lt_cv_file_magic_cmd='func_win32_libid' 4179 ;; 4180 4181mingw* | pw32*) 4182 # Base MSYS/MinGW do not provide the 'file' command needed by 4183 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4184 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4185 lt_cv_file_magic_cmd='$OBJDUMP -f' 4186 ;; 4187 4188darwin* | rhapsody*) 4189 lt_cv_deplibs_check_method=pass_all 4190 ;; 4191 4192freebsd* | kfreebsd*-gnu | dragonfly*) 4193 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4194 case $host_cpu in 4195 i*86 ) 4196 # Not sure whether the presence of OpenBSD here was a mistake. 4197 # Let's accept both of them until this is cleared up. 4198 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4199 lt_cv_file_magic_cmd=/usr/bin/file 4200 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4201 ;; 4202 esac 4203 else 4204 lt_cv_deplibs_check_method=pass_all 4205 fi 4206 ;; 4207 4208gnu*) 4209 lt_cv_deplibs_check_method=pass_all 4210 ;; 4211 4212hpux10.20* | hpux11*) 4213 lt_cv_file_magic_cmd=/usr/bin/file 4214 case $host_cpu in 4215 ia64*) 4216 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4217 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4218 ;; 4219 hppa*64*) 4220 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]' 4221 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4222 ;; 4223 *) 4224 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4225 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4226 ;; 4227 esac 4228 ;; 4229 4230interix3*) 4231 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4233 ;; 4234 4235irix5* | irix6* | nonstopux*) 4236 case $LD in 4237 *-32|*"-32 ") libmagic=32-bit;; 4238 *-n32|*"-n32 ") libmagic=N32;; 4239 *-64|*"-64 ") libmagic=64-bit;; 4240 *) libmagic=never-match;; 4241 esac 4242 lt_cv_deplibs_check_method=pass_all 4243 ;; 4244 4245# This must be Linux ELF. 4246linux*) 4247 lt_cv_deplibs_check_method=pass_all 4248 ;; 4249 4250netbsd*) 4251 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4253 else 4254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4255 fi 4256 ;; 4257 4258newos6*) 4259 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4260 lt_cv_file_magic_cmd=/usr/bin/file 4261 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4262 ;; 4263 4264nto-qnx*) 4265 lt_cv_deplibs_check_method=unknown 4266 ;; 4267 4268openbsd*) 4269 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4271 else 4272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4273 fi 4274 ;; 4275 4276osf3* | osf4* | osf5*) 4277 lt_cv_deplibs_check_method=pass_all 4278 ;; 4279 4280solaris*) 4281 lt_cv_deplibs_check_method=pass_all 4282 ;; 4283 4284sysv4 | sysv4.3*) 4285 case $host_vendor in 4286 motorola) 4287 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]' 4288 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4289 ;; 4290 ncr) 4291 lt_cv_deplibs_check_method=pass_all 4292 ;; 4293 sequent) 4294 lt_cv_file_magic_cmd='/bin/file' 4295 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4296 ;; 4297 sni) 4298 lt_cv_file_magic_cmd='/bin/file' 4299 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4300 lt_cv_file_magic_test_file=/lib/libc.so 4301 ;; 4302 siemens) 4303 lt_cv_deplibs_check_method=pass_all 4304 ;; 4305 pc) 4306 lt_cv_deplibs_check_method=pass_all 4307 ;; 4308 esac 4309 ;; 4310 4311sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4312 lt_cv_deplibs_check_method=pass_all 4313 ;; 4314esac 4315 4316fi 4317{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4318echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4319file_magic_cmd=$lt_cv_file_magic_cmd 4320deplibs_check_method=$lt_cv_deplibs_check_method 4321test -z "$deplibs_check_method" && deplibs_check_method=unknown 4322 4323 4324 4325 4326# If no C compiler was specified, use CC. 4327LTCC=${LTCC-"$CC"} 4328 4329# If no C compiler flags were specified, use CFLAGS. 4330LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4331 4332# Allow CC to be a program name with arguments. 4333compiler=$CC 4334 4335 4336# Check whether --enable-libtool-lock was given. 4337if test "${enable_libtool_lock+set}" = set; then 4338 enableval=$enable_libtool_lock; 4339fi 4340 4341test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4342 4343# Some flags need to be propagated to the compiler or linker for good 4344# libtool support. 4345case $host in 4346ia64-*-hpux*) 4347 # Find out which ABI we are using. 4348 echo 'int i;' > conftest.$ac_ext 4349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4350 (eval $ac_compile) 2>&5 4351 ac_status=$? 4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4353 (exit $ac_status); }; then 4354 case `/usr/bin/file conftest.$ac_objext` in 4355 *ELF-32*) 4356 HPUX_IA64_MODE="32" 4357 ;; 4358 *ELF-64*) 4359 HPUX_IA64_MODE="64" 4360 ;; 4361 esac 4362 fi 4363 rm -rf conftest* 4364 ;; 4365*-*-irix6*) 4366 # Find out which ABI we are using. 4367 echo '#line 4367 "configure"' > conftest.$ac_ext 4368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4369 (eval $ac_compile) 2>&5 4370 ac_status=$? 4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4372 (exit $ac_status); }; then 4373 if test "$lt_cv_prog_gnu_ld" = yes; then 4374 case `/usr/bin/file conftest.$ac_objext` in 4375 *32-bit*) 4376 LD="${LD-ld} -melf32bsmip" 4377 ;; 4378 *N32*) 4379 LD="${LD-ld} -melf32bmipn32" 4380 ;; 4381 *64-bit*) 4382 LD="${LD-ld} -melf64bmip" 4383 ;; 4384 esac 4385 else 4386 case `/usr/bin/file conftest.$ac_objext` in 4387 *32-bit*) 4388 LD="${LD-ld} -32" 4389 ;; 4390 *N32*) 4391 LD="${LD-ld} -n32" 4392 ;; 4393 *64-bit*) 4394 LD="${LD-ld} -64" 4395 ;; 4396 esac 4397 fi 4398 fi 4399 rm -rf conftest* 4400 ;; 4401 4402x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4403 # Find out which ABI we are using. 4404 echo 'int i;' > conftest.$ac_ext 4405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4406 (eval $ac_compile) 2>&5 4407 ac_status=$? 4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4409 (exit $ac_status); }; then 4410 case `/usr/bin/file conftest.o` in 4411 *32-bit*) 4412 case $host in 4413 x86_64-*linux*) 4414 LD="${LD-ld} -m elf_i386" 4415 ;; 4416 ppc64-*linux*|powerpc64-*linux*) 4417 LD="${LD-ld} -m elf32ppclinux" 4418 ;; 4419 s390x-*linux*) 4420 LD="${LD-ld} -m elf_s390" 4421 ;; 4422 sparc64-*linux*) 4423 LD="${LD-ld} -m elf32_sparc" 4424 ;; 4425 esac 4426 ;; 4427 *64-bit*) 4428 case $host in 4429 x86_64-*linux*) 4430 LD="${LD-ld} -m elf_x86_64" 4431 ;; 4432 ppc*-*linux*|powerpc*-*linux*) 4433 LD="${LD-ld} -m elf64ppc" 4434 ;; 4435 s390*-*linux*) 4436 LD="${LD-ld} -m elf64_s390" 4437 ;; 4438 sparc*-*linux*) 4439 LD="${LD-ld} -m elf64_sparc" 4440 ;; 4441 esac 4442 ;; 4443 esac 4444 fi 4445 rm -rf conftest* 4446 ;; 4447 4448*-*-sco3.2v5*) 4449 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4450 SAVE_CFLAGS="$CFLAGS" 4451 CFLAGS="$CFLAGS -belf" 4452 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4453echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4454if test "${lt_cv_cc_needs_belf+set}" = set; then 4455 echo $ECHO_N "(cached) $ECHO_C" >&6 4456else 4457 ac_ext=c 4458ac_cpp='$CPP $CPPFLAGS' 4459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4461ac_compiler_gnu=$ac_cv_c_compiler_gnu 4462 4463 cat >conftest.$ac_ext <<_ACEOF 4464/* confdefs.h. */ 4465_ACEOF 4466cat confdefs.h >>conftest.$ac_ext 4467cat >>conftest.$ac_ext <<_ACEOF 4468/* end confdefs.h. */ 4469 4470int 4471main () 4472{ 4473 4474 ; 4475 return 0; 4476} 4477_ACEOF 4478rm -f conftest.$ac_objext conftest$ac_exeext 4479if { (ac_try="$ac_link" 4480case "(($ac_try" in 4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4482 *) ac_try_echo=$ac_try;; 4483esac 4484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4485 (eval "$ac_link") 2>conftest.er1 4486 ac_status=$? 4487 grep -v '^ *+' conftest.er1 >conftest.err 4488 rm -f conftest.er1 4489 cat conftest.err >&5 4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4491 (exit $ac_status); } && { 4492 test -z "$ac_c_werror_flag" || 4493 test ! -s conftest.err 4494 } && test -s conftest$ac_exeext && 4495 $as_test_x conftest$ac_exeext; then 4496 lt_cv_cc_needs_belf=yes 4497else 4498 echo "$as_me: failed program was:" >&5 4499sed 's/^/| /' conftest.$ac_ext >&5 4500 4501 lt_cv_cc_needs_belf=no 4502fi 4503 4504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4505 conftest$ac_exeext conftest.$ac_ext 4506 ac_ext=c 4507ac_cpp='$CPP $CPPFLAGS' 4508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4510ac_compiler_gnu=$ac_cv_c_compiler_gnu 4511 4512fi 4513{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4514echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4515 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4516 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4517 CFLAGS="$SAVE_CFLAGS" 4518 fi 4519 ;; 4520sparc*-*solaris*) 4521 # Find out which ABI we are using. 4522 echo 'int i;' > conftest.$ac_ext 4523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4524 (eval $ac_compile) 2>&5 4525 ac_status=$? 4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4527 (exit $ac_status); }; then 4528 case `/usr/bin/file conftest.o` in 4529 *64-bit*) 4530 case $lt_cv_prog_gnu_ld in 4531 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4532 *) LD="${LD-ld} -64" ;; 4533 esac 4534 ;; 4535 esac 4536 fi 4537 rm -rf conftest* 4538 ;; 4539 4540 4541esac 4542 4543need_locks="$enable_libtool_lock" 4544 4545 4546ac_ext=c 4547ac_cpp='$CPP $CPPFLAGS' 4548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4550ac_compiler_gnu=$ac_cv_c_compiler_gnu 4551{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4552echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4553# On Suns, sometimes $CPP names a directory. 4554if test -n "$CPP" && test -d "$CPP"; then 4555 CPP= 4556fi 4557if test -z "$CPP"; then 4558 if test "${ac_cv_prog_CPP+set}" = set; then 4559 echo $ECHO_N "(cached) $ECHO_C" >&6 4560else 4561 # Double quotes because CPP needs to be expanded 4562 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4563 do 4564 ac_preproc_ok=false 4565for ac_c_preproc_warn_flag in '' yes 4566do 4567 # Use a header file that comes with gcc, so configuring glibc 4568 # with a fresh cross-compiler works. 4569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4570 # <limits.h> exists even on freestanding compilers. 4571 # On the NeXT, cc -E runs the code through the compiler's parser, 4572 # not just through cpp. "Syntax error" is here to catch this case. 4573 cat >conftest.$ac_ext <<_ACEOF 4574/* confdefs.h. */ 4575_ACEOF 4576cat confdefs.h >>conftest.$ac_ext 4577cat >>conftest.$ac_ext <<_ACEOF 4578/* end confdefs.h. */ 4579#ifdef __STDC__ 4580# include <limits.h> 4581#else 4582# include <assert.h> 4583#endif 4584 Syntax error 4585_ACEOF 4586if { (ac_try="$ac_cpp conftest.$ac_ext" 4587case "(($ac_try" in 4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4589 *) ac_try_echo=$ac_try;; 4590esac 4591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4593 ac_status=$? 4594 grep -v '^ *+' conftest.er1 >conftest.err 4595 rm -f conftest.er1 4596 cat conftest.err >&5 4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4598 (exit $ac_status); } >/dev/null && { 4599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4600 test ! -s conftest.err 4601 }; then 4602 : 4603else 4604 echo "$as_me: failed program was:" >&5 4605sed 's/^/| /' conftest.$ac_ext >&5 4606 4607 # Broken: fails on valid input. 4608continue 4609fi 4610 4611rm -f conftest.err conftest.$ac_ext 4612 4613 # OK, works on sane cases. Now check whether nonexistent headers 4614 # can be detected and how. 4615 cat >conftest.$ac_ext <<_ACEOF 4616/* confdefs.h. */ 4617_ACEOF 4618cat confdefs.h >>conftest.$ac_ext 4619cat >>conftest.$ac_ext <<_ACEOF 4620/* end confdefs.h. */ 4621#include <ac_nonexistent.h> 4622_ACEOF 4623if { (ac_try="$ac_cpp conftest.$ac_ext" 4624case "(($ac_try" in 4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4626 *) ac_try_echo=$ac_try;; 4627esac 4628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4630 ac_status=$? 4631 grep -v '^ *+' conftest.er1 >conftest.err 4632 rm -f conftest.er1 4633 cat conftest.err >&5 4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4635 (exit $ac_status); } >/dev/null && { 4636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4637 test ! -s conftest.err 4638 }; then 4639 # Broken: success on invalid input. 4640continue 4641else 4642 echo "$as_me: failed program was:" >&5 4643sed 's/^/| /' conftest.$ac_ext >&5 4644 4645 # Passes both tests. 4646ac_preproc_ok=: 4647break 4648fi 4649 4650rm -f conftest.err conftest.$ac_ext 4651 4652done 4653# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4654rm -f conftest.err conftest.$ac_ext 4655if $ac_preproc_ok; then 4656 break 4657fi 4658 4659 done 4660 ac_cv_prog_CPP=$CPP 4661 4662fi 4663 CPP=$ac_cv_prog_CPP 4664else 4665 ac_cv_prog_CPP=$CPP 4666fi 4667{ echo "$as_me:$LINENO: result: $CPP" >&5 4668echo "${ECHO_T}$CPP" >&6; } 4669ac_preproc_ok=false 4670for ac_c_preproc_warn_flag in '' yes 4671do 4672 # Use a header file that comes with gcc, so configuring glibc 4673 # with a fresh cross-compiler works. 4674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4675 # <limits.h> exists even on freestanding compilers. 4676 # On the NeXT, cc -E runs the code through the compiler's parser, 4677 # not just through cpp. "Syntax error" is here to catch this case. 4678 cat >conftest.$ac_ext <<_ACEOF 4679/* confdefs.h. */ 4680_ACEOF 4681cat confdefs.h >>conftest.$ac_ext 4682cat >>conftest.$ac_ext <<_ACEOF 4683/* end confdefs.h. */ 4684#ifdef __STDC__ 4685# include <limits.h> 4686#else 4687# include <assert.h> 4688#endif 4689 Syntax error 4690_ACEOF 4691if { (ac_try="$ac_cpp conftest.$ac_ext" 4692case "(($ac_try" in 4693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4694 *) ac_try_echo=$ac_try;; 4695esac 4696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4698 ac_status=$? 4699 grep -v '^ *+' conftest.er1 >conftest.err 4700 rm -f conftest.er1 4701 cat conftest.err >&5 4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4703 (exit $ac_status); } >/dev/null && { 4704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4705 test ! -s conftest.err 4706 }; then 4707 : 4708else 4709 echo "$as_me: failed program was:" >&5 4710sed 's/^/| /' conftest.$ac_ext >&5 4711 4712 # Broken: fails on valid input. 4713continue 4714fi 4715 4716rm -f conftest.err conftest.$ac_ext 4717 4718 # OK, works on sane cases. Now check whether nonexistent headers 4719 # can be detected and how. 4720 cat >conftest.$ac_ext <<_ACEOF 4721/* confdefs.h. */ 4722_ACEOF 4723cat confdefs.h >>conftest.$ac_ext 4724cat >>conftest.$ac_ext <<_ACEOF 4725/* end confdefs.h. */ 4726#include <ac_nonexistent.h> 4727_ACEOF 4728if { (ac_try="$ac_cpp conftest.$ac_ext" 4729case "(($ac_try" in 4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4731 *) ac_try_echo=$ac_try;; 4732esac 4733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4735 ac_status=$? 4736 grep -v '^ *+' conftest.er1 >conftest.err 4737 rm -f conftest.er1 4738 cat conftest.err >&5 4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4740 (exit $ac_status); } >/dev/null && { 4741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4742 test ! -s conftest.err 4743 }; then 4744 # Broken: success on invalid input. 4745continue 4746else 4747 echo "$as_me: failed program was:" >&5 4748sed 's/^/| /' conftest.$ac_ext >&5 4749 4750 # Passes both tests. 4751ac_preproc_ok=: 4752break 4753fi 4754 4755rm -f conftest.err conftest.$ac_ext 4756 4757done 4758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4759rm -f conftest.err conftest.$ac_ext 4760if $ac_preproc_ok; then 4761 : 4762else 4763 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4764See \`config.log' for more details." >&5 4765echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4766See \`config.log' for more details." >&2;} 4767 { (exit 1); exit 1; }; } 4768fi 4769 4770ac_ext=c 4771ac_cpp='$CPP $CPPFLAGS' 4772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4774ac_compiler_gnu=$ac_cv_c_compiler_gnu 4775 4776 4777{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4778echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4779if test "${ac_cv_header_stdc+set}" = set; then 4780 echo $ECHO_N "(cached) $ECHO_C" >&6 4781else 4782 cat >conftest.$ac_ext <<_ACEOF 4783/* confdefs.h. */ 4784_ACEOF 4785cat confdefs.h >>conftest.$ac_ext 4786cat >>conftest.$ac_ext <<_ACEOF 4787/* end confdefs.h. */ 4788#include <stdlib.h> 4789#include <stdarg.h> 4790#include <string.h> 4791#include <float.h> 4792 4793int 4794main () 4795{ 4796 4797 ; 4798 return 0; 4799} 4800_ACEOF 4801rm -f conftest.$ac_objext 4802if { (ac_try="$ac_compile" 4803case "(($ac_try" in 4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4805 *) ac_try_echo=$ac_try;; 4806esac 4807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4808 (eval "$ac_compile") 2>conftest.er1 4809 ac_status=$? 4810 grep -v '^ *+' conftest.er1 >conftest.err 4811 rm -f conftest.er1 4812 cat conftest.err >&5 4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4814 (exit $ac_status); } && { 4815 test -z "$ac_c_werror_flag" || 4816 test ! -s conftest.err 4817 } && test -s conftest.$ac_objext; then 4818 ac_cv_header_stdc=yes 4819else 4820 echo "$as_me: failed program was:" >&5 4821sed 's/^/| /' conftest.$ac_ext >&5 4822 4823 ac_cv_header_stdc=no 4824fi 4825 4826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4827 4828if test $ac_cv_header_stdc = yes; then 4829 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4830 cat >conftest.$ac_ext <<_ACEOF 4831/* confdefs.h. */ 4832_ACEOF 4833cat confdefs.h >>conftest.$ac_ext 4834cat >>conftest.$ac_ext <<_ACEOF 4835/* end confdefs.h. */ 4836#include <string.h> 4837 4838_ACEOF 4839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4840 $EGREP "memchr" >/dev/null 2>&1; then 4841 : 4842else 4843 ac_cv_header_stdc=no 4844fi 4845rm -f conftest* 4846 4847fi 4848 4849if test $ac_cv_header_stdc = yes; then 4850 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4851 cat >conftest.$ac_ext <<_ACEOF 4852/* confdefs.h. */ 4853_ACEOF 4854cat confdefs.h >>conftest.$ac_ext 4855cat >>conftest.$ac_ext <<_ACEOF 4856/* end confdefs.h. */ 4857#include <stdlib.h> 4858 4859_ACEOF 4860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4861 $EGREP "free" >/dev/null 2>&1; then 4862 : 4863else 4864 ac_cv_header_stdc=no 4865fi 4866rm -f conftest* 4867 4868fi 4869 4870if test $ac_cv_header_stdc = yes; then 4871 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4872 if test "$cross_compiling" = yes; then 4873 : 4874else 4875 cat >conftest.$ac_ext <<_ACEOF 4876/* confdefs.h. */ 4877_ACEOF 4878cat confdefs.h >>conftest.$ac_ext 4879cat >>conftest.$ac_ext <<_ACEOF 4880/* end confdefs.h. */ 4881#include <ctype.h> 4882#include <stdlib.h> 4883#if ((' ' & 0x0FF) == 0x020) 4884# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4885# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4886#else 4887# define ISLOWER(c) \ 4888 (('a' <= (c) && (c) <= 'i') \ 4889 || ('j' <= (c) && (c) <= 'r') \ 4890 || ('s' <= (c) && (c) <= 'z')) 4891# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4892#endif 4893 4894#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4895int 4896main () 4897{ 4898 int i; 4899 for (i = 0; i < 256; i++) 4900 if (XOR (islower (i), ISLOWER (i)) 4901 || toupper (i) != TOUPPER (i)) 4902 return 2; 4903 return 0; 4904} 4905_ACEOF 4906rm -f conftest$ac_exeext 4907if { (ac_try="$ac_link" 4908case "(($ac_try" in 4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4910 *) ac_try_echo=$ac_try;; 4911esac 4912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4913 (eval "$ac_link") 2>&5 4914 ac_status=$? 4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4917 { (case "(($ac_try" in 4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4919 *) ac_try_echo=$ac_try;; 4920esac 4921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4922 (eval "$ac_try") 2>&5 4923 ac_status=$? 4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4925 (exit $ac_status); }; }; then 4926 : 4927else 4928 echo "$as_me: program exited with status $ac_status" >&5 4929echo "$as_me: failed program was:" >&5 4930sed 's/^/| /' conftest.$ac_ext >&5 4931 4932( exit $ac_status ) 4933ac_cv_header_stdc=no 4934fi 4935rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4936fi 4937 4938 4939fi 4940fi 4941{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4942echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4943if test $ac_cv_header_stdc = yes; then 4944 4945cat >>confdefs.h <<\_ACEOF 4946#define STDC_HEADERS 1 4947_ACEOF 4948 4949fi 4950 4951# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4962 inttypes.h stdint.h unistd.h 4963do 4964as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4965{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4967if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4968 echo $ECHO_N "(cached) $ECHO_C" >&6 4969else 4970 cat >conftest.$ac_ext <<_ACEOF 4971/* confdefs.h. */ 4972_ACEOF 4973cat confdefs.h >>conftest.$ac_ext 4974cat >>conftest.$ac_ext <<_ACEOF 4975/* end confdefs.h. */ 4976$ac_includes_default 4977 4978#include <$ac_header> 4979_ACEOF 4980rm -f conftest.$ac_objext 4981if { (ac_try="$ac_compile" 4982case "(($ac_try" in 4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4984 *) ac_try_echo=$ac_try;; 4985esac 4986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4987 (eval "$ac_compile") 2>conftest.er1 4988 ac_status=$? 4989 grep -v '^ *+' conftest.er1 >conftest.err 4990 rm -f conftest.er1 4991 cat conftest.err >&5 4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4993 (exit $ac_status); } && { 4994 test -z "$ac_c_werror_flag" || 4995 test ! -s conftest.err 4996 } && test -s conftest.$ac_objext; then 4997 eval "$as_ac_Header=yes" 4998else 4999 echo "$as_me: failed program was:" >&5 5000sed 's/^/| /' conftest.$ac_ext >&5 5001 5002 eval "$as_ac_Header=no" 5003fi 5004 5005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5006fi 5007ac_res=`eval echo '${'$as_ac_Header'}'` 5008 { echo "$as_me:$LINENO: result: $ac_res" >&5 5009echo "${ECHO_T}$ac_res" >&6; } 5010if test `eval echo '${'$as_ac_Header'}'` = yes; then 5011 cat >>confdefs.h <<_ACEOF 5012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5013_ACEOF 5014 5015fi 5016 5017done 5018 5019 5020 5021for ac_header in dlfcn.h 5022do 5023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5025 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5028 echo $ECHO_N "(cached) $ECHO_C" >&6 5029fi 5030ac_res=`eval echo '${'$as_ac_Header'}'` 5031 { echo "$as_me:$LINENO: result: $ac_res" >&5 5032echo "${ECHO_T}$ac_res" >&6; } 5033else 5034 # Is the header compilable? 5035{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5037cat >conftest.$ac_ext <<_ACEOF 5038/* confdefs.h. */ 5039_ACEOF 5040cat confdefs.h >>conftest.$ac_ext 5041cat >>conftest.$ac_ext <<_ACEOF 5042/* end confdefs.h. */ 5043$ac_includes_default 5044#include <$ac_header> 5045_ACEOF 5046rm -f conftest.$ac_objext 5047if { (ac_try="$ac_compile" 5048case "(($ac_try" in 5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5050 *) ac_try_echo=$ac_try;; 5051esac 5052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5053 (eval "$ac_compile") 2>conftest.er1 5054 ac_status=$? 5055 grep -v '^ *+' conftest.er1 >conftest.err 5056 rm -f conftest.er1 5057 cat conftest.err >&5 5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5059 (exit $ac_status); } && { 5060 test -z "$ac_c_werror_flag" || 5061 test ! -s conftest.err 5062 } && test -s conftest.$ac_objext; then 5063 ac_header_compiler=yes 5064else 5065 echo "$as_me: failed program was:" >&5 5066sed 's/^/| /' conftest.$ac_ext >&5 5067 5068 ac_header_compiler=no 5069fi 5070 5071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5072{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5073echo "${ECHO_T}$ac_header_compiler" >&6; } 5074 5075# Is the header present? 5076{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5077echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5078cat >conftest.$ac_ext <<_ACEOF 5079/* confdefs.h. */ 5080_ACEOF 5081cat confdefs.h >>conftest.$ac_ext 5082cat >>conftest.$ac_ext <<_ACEOF 5083/* end confdefs.h. */ 5084#include <$ac_header> 5085_ACEOF 5086if { (ac_try="$ac_cpp conftest.$ac_ext" 5087case "(($ac_try" in 5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5089 *) ac_try_echo=$ac_try;; 5090esac 5091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5093 ac_status=$? 5094 grep -v '^ *+' conftest.er1 >conftest.err 5095 rm -f conftest.er1 5096 cat conftest.err >&5 5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5098 (exit $ac_status); } >/dev/null && { 5099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5100 test ! -s conftest.err 5101 }; then 5102 ac_header_preproc=yes 5103else 5104 echo "$as_me: failed program was:" >&5 5105sed 's/^/| /' conftest.$ac_ext >&5 5106 5107 ac_header_preproc=no 5108fi 5109 5110rm -f conftest.err conftest.$ac_ext 5111{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5112echo "${ECHO_T}$ac_header_preproc" >&6; } 5113 5114# So? What about this header? 5115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5116 yes:no: ) 5117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5121 ac_header_preproc=yes 5122 ;; 5123 no:yes:* ) 5124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5127echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5131echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5136 ( cat <<\_ASBOX 5137## ---------------------------------------------------------------------- ## 5138## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5139## ---------------------------------------------------------------------- ## 5140_ASBOX 5141 ) | sed "s/^/$as_me: WARNING: /" >&2 5142 ;; 5143esac 5144{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5146if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5147 echo $ECHO_N "(cached) $ECHO_C" >&6 5148else 5149 eval "$as_ac_Header=\$ac_header_preproc" 5150fi 5151ac_res=`eval echo '${'$as_ac_Header'}'` 5152 { echo "$as_me:$LINENO: result: $ac_res" >&5 5153echo "${ECHO_T}$ac_res" >&6; } 5154 5155fi 5156if test `eval echo '${'$as_ac_Header'}'` = yes; then 5157 cat >>confdefs.h <<_ACEOF 5158#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5159_ACEOF 5160 5161fi 5162 5163done 5164 5165ac_ext=cpp 5166ac_cpp='$CXXCPP $CPPFLAGS' 5167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5170if test -z "$CXX"; then 5171 if test -n "$CCC"; then 5172 CXX=$CCC 5173 else 5174 if test -n "$ac_tool_prefix"; then 5175 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5176 do 5177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5178set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5179{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5181if test "${ac_cv_prog_CXX+set}" = set; then 5182 echo $ECHO_N "(cached) $ECHO_C" >&6 5183else 5184 if test -n "$CXX"; then 5185 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5186else 5187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5188for as_dir in $PATH 5189do 5190 IFS=$as_save_IFS 5191 test -z "$as_dir" && as_dir=. 5192 for ac_exec_ext in '' $ac_executable_extensions; do 5193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5194 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5196 break 2 5197 fi 5198done 5199done 5200IFS=$as_save_IFS 5201 5202fi 5203fi 5204CXX=$ac_cv_prog_CXX 5205if test -n "$CXX"; then 5206 { echo "$as_me:$LINENO: result: $CXX" >&5 5207echo "${ECHO_T}$CXX" >&6; } 5208else 5209 { echo "$as_me:$LINENO: result: no" >&5 5210echo "${ECHO_T}no" >&6; } 5211fi 5212 5213 5214 test -n "$CXX" && break 5215 done 5216fi 5217if test -z "$CXX"; then 5218 ac_ct_CXX=$CXX 5219 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5220do 5221 # Extract the first word of "$ac_prog", so it can be a program name with args. 5222set dummy $ac_prog; ac_word=$2 5223{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5225if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5226 echo $ECHO_N "(cached) $ECHO_C" >&6 5227else 5228 if test -n "$ac_ct_CXX"; then 5229 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5230else 5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5232for as_dir in $PATH 5233do 5234 IFS=$as_save_IFS 5235 test -z "$as_dir" && as_dir=. 5236 for ac_exec_ext in '' $ac_executable_extensions; do 5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5238 ac_cv_prog_ac_ct_CXX="$ac_prog" 5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5240 break 2 5241 fi 5242done 5243done 5244IFS=$as_save_IFS 5245 5246fi 5247fi 5248ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5249if test -n "$ac_ct_CXX"; then 5250 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5251echo "${ECHO_T}$ac_ct_CXX" >&6; } 5252else 5253 { echo "$as_me:$LINENO: result: no" >&5 5254echo "${ECHO_T}no" >&6; } 5255fi 5256 5257 5258 test -n "$ac_ct_CXX" && break 5259done 5260 5261 if test "x$ac_ct_CXX" = x; then 5262 CXX="g++" 5263 else 5264 case $cross_compiling:$ac_tool_warned in 5265yes:) 5266{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5267whose name does not start with the host triplet. If you think this 5268configuration is useful to you, please write to autoconf@gnu.org." >&5 5269echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5270whose name does not start with the host triplet. If you think this 5271configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5272ac_tool_warned=yes ;; 5273esac 5274 CXX=$ac_ct_CXX 5275 fi 5276fi 5277 5278 fi 5279fi 5280# Provide some information about the compiler. 5281echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5282ac_compiler=`set X $ac_compile; echo $2` 5283{ (ac_try="$ac_compiler --version >&5" 5284case "(($ac_try" in 5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5286 *) ac_try_echo=$ac_try;; 5287esac 5288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5289 (eval "$ac_compiler --version >&5") 2>&5 5290 ac_status=$? 5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5292 (exit $ac_status); } 5293{ (ac_try="$ac_compiler -v >&5" 5294case "(($ac_try" in 5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5296 *) ac_try_echo=$ac_try;; 5297esac 5298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5299 (eval "$ac_compiler -v >&5") 2>&5 5300 ac_status=$? 5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5302 (exit $ac_status); } 5303{ (ac_try="$ac_compiler -V >&5" 5304case "(($ac_try" in 5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5306 *) ac_try_echo=$ac_try;; 5307esac 5308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5309 (eval "$ac_compiler -V >&5") 2>&5 5310 ac_status=$? 5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5312 (exit $ac_status); } 5313 5314{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5315echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5316if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5317 echo $ECHO_N "(cached) $ECHO_C" >&6 5318else 5319 cat >conftest.$ac_ext <<_ACEOF 5320/* confdefs.h. */ 5321_ACEOF 5322cat confdefs.h >>conftest.$ac_ext 5323cat >>conftest.$ac_ext <<_ACEOF 5324/* end confdefs.h. */ 5325 5326int 5327main () 5328{ 5329#ifndef __GNUC__ 5330 choke me 5331#endif 5332 5333 ; 5334 return 0; 5335} 5336_ACEOF 5337rm -f conftest.$ac_objext 5338if { (ac_try="$ac_compile" 5339case "(($ac_try" in 5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5341 *) ac_try_echo=$ac_try;; 5342esac 5343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5344 (eval "$ac_compile") 2>conftest.er1 5345 ac_status=$? 5346 grep -v '^ *+' conftest.er1 >conftest.err 5347 rm -f conftest.er1 5348 cat conftest.err >&5 5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5350 (exit $ac_status); } && { 5351 test -z "$ac_cxx_werror_flag" || 5352 test ! -s conftest.err 5353 } && test -s conftest.$ac_objext; then 5354 ac_compiler_gnu=yes 5355else 5356 echo "$as_me: failed program was:" >&5 5357sed 's/^/| /' conftest.$ac_ext >&5 5358 5359 ac_compiler_gnu=no 5360fi 5361 5362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5363ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5364 5365fi 5366{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5367echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5368GXX=`test $ac_compiler_gnu = yes && echo yes` 5369ac_test_CXXFLAGS=${CXXFLAGS+set} 5370ac_save_CXXFLAGS=$CXXFLAGS 5371{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5372echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5373if test "${ac_cv_prog_cxx_g+set}" = set; then 5374 echo $ECHO_N "(cached) $ECHO_C" >&6 5375else 5376 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5377 ac_cxx_werror_flag=yes 5378 ac_cv_prog_cxx_g=no 5379 CXXFLAGS="-g" 5380 cat >conftest.$ac_ext <<_ACEOF 5381/* confdefs.h. */ 5382_ACEOF 5383cat confdefs.h >>conftest.$ac_ext 5384cat >>conftest.$ac_ext <<_ACEOF 5385/* end confdefs.h. */ 5386 5387int 5388main () 5389{ 5390 5391 ; 5392 return 0; 5393} 5394_ACEOF 5395rm -f conftest.$ac_objext 5396if { (ac_try="$ac_compile" 5397case "(($ac_try" in 5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5399 *) ac_try_echo=$ac_try;; 5400esac 5401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5402 (eval "$ac_compile") 2>conftest.er1 5403 ac_status=$? 5404 grep -v '^ *+' conftest.er1 >conftest.err 5405 rm -f conftest.er1 5406 cat conftest.err >&5 5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5408 (exit $ac_status); } && { 5409 test -z "$ac_cxx_werror_flag" || 5410 test ! -s conftest.err 5411 } && test -s conftest.$ac_objext; then 5412 ac_cv_prog_cxx_g=yes 5413else 5414 echo "$as_me: failed program was:" >&5 5415sed 's/^/| /' conftest.$ac_ext >&5 5416 5417 CXXFLAGS="" 5418 cat >conftest.$ac_ext <<_ACEOF 5419/* confdefs.h. */ 5420_ACEOF 5421cat confdefs.h >>conftest.$ac_ext 5422cat >>conftest.$ac_ext <<_ACEOF 5423/* end confdefs.h. */ 5424 5425int 5426main () 5427{ 5428 5429 ; 5430 return 0; 5431} 5432_ACEOF 5433rm -f conftest.$ac_objext 5434if { (ac_try="$ac_compile" 5435case "(($ac_try" in 5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5437 *) ac_try_echo=$ac_try;; 5438esac 5439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5440 (eval "$ac_compile") 2>conftest.er1 5441 ac_status=$? 5442 grep -v '^ *+' conftest.er1 >conftest.err 5443 rm -f conftest.er1 5444 cat conftest.err >&5 5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5446 (exit $ac_status); } && { 5447 test -z "$ac_cxx_werror_flag" || 5448 test ! -s conftest.err 5449 } && test -s conftest.$ac_objext; then 5450 : 5451else 5452 echo "$as_me: failed program was:" >&5 5453sed 's/^/| /' conftest.$ac_ext >&5 5454 5455 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5456 CXXFLAGS="-g" 5457 cat >conftest.$ac_ext <<_ACEOF 5458/* confdefs.h. */ 5459_ACEOF 5460cat confdefs.h >>conftest.$ac_ext 5461cat >>conftest.$ac_ext <<_ACEOF 5462/* end confdefs.h. */ 5463 5464int 5465main () 5466{ 5467 5468 ; 5469 return 0; 5470} 5471_ACEOF 5472rm -f conftest.$ac_objext 5473if { (ac_try="$ac_compile" 5474case "(($ac_try" in 5475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5476 *) ac_try_echo=$ac_try;; 5477esac 5478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5479 (eval "$ac_compile") 2>conftest.er1 5480 ac_status=$? 5481 grep -v '^ *+' conftest.er1 >conftest.err 5482 rm -f conftest.er1 5483 cat conftest.err >&5 5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5485 (exit $ac_status); } && { 5486 test -z "$ac_cxx_werror_flag" || 5487 test ! -s conftest.err 5488 } && test -s conftest.$ac_objext; then 5489 ac_cv_prog_cxx_g=yes 5490else 5491 echo "$as_me: failed program was:" >&5 5492sed 's/^/| /' conftest.$ac_ext >&5 5493 5494 5495fi 5496 5497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5498fi 5499 5500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5501fi 5502 5503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5504 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5505fi 5506{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5507echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5508if test "$ac_test_CXXFLAGS" = set; then 5509 CXXFLAGS=$ac_save_CXXFLAGS 5510elif test $ac_cv_prog_cxx_g = yes; then 5511 if test "$GXX" = yes; then 5512 CXXFLAGS="-g -O2" 5513 else 5514 CXXFLAGS="-g" 5515 fi 5516else 5517 if test "$GXX" = yes; then 5518 CXXFLAGS="-O2" 5519 else 5520 CXXFLAGS= 5521 fi 5522fi 5523ac_ext=cpp 5524ac_cpp='$CXXCPP $CPPFLAGS' 5525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5528 5529depcc="$CXX" am_compiler_list= 5530 5531{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5532echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5533if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5534 echo $ECHO_N "(cached) $ECHO_C" >&6 5535else 5536 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5537 # We make a subdir and do the tests there. Otherwise we can end up 5538 # making bogus files that we don't know about and never remove. For 5539 # instance it was reported that on HP-UX the gcc test will end up 5540 # making a dummy file named `D' -- because `-MD' means `put the output 5541 # in D'. 5542 mkdir conftest.dir 5543 # Copy depcomp to subdir because otherwise we won't find it if we're 5544 # using a relative directory. 5545 cp "$am_depcomp" conftest.dir 5546 cd conftest.dir 5547 # We will build objects and dependencies in a subdirectory because 5548 # it helps to detect inapplicable dependency modes. For instance 5549 # both Tru64's cc and ICC support -MD to output dependencies as a 5550 # side effect of compilation, but ICC will put the dependencies in 5551 # the current directory while Tru64 will put them in the object 5552 # directory. 5553 mkdir sub 5554 5555 am_cv_CXX_dependencies_compiler_type=none 5556 if test "$am_compiler_list" = ""; then 5557 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5558 fi 5559 for depmode in $am_compiler_list; do 5560 # Setup a source with many dependencies, because some compilers 5561 # like to wrap large dependency lists on column 80 (with \), and 5562 # we should not choose a depcomp mode which is confused by this. 5563 # 5564 # We need to recreate these files for each test, as the compiler may 5565 # overwrite some of them when testing with obscure command lines. 5566 # This happens at least with the AIX C compiler. 5567 : > sub/conftest.c 5568 for i in 1 2 3 4 5 6; do 5569 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5570 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5571 # Solaris 8's {/usr,}/bin/sh. 5572 touch sub/conftst$i.h 5573 done 5574 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5575 5576 case $depmode in 5577 nosideeffect) 5578 # after this tag, mechanisms are not by side-effect, so they'll 5579 # only be used when explicitly requested 5580 if test "x$enable_dependency_tracking" = xyes; then 5581 continue 5582 else 5583 break 5584 fi 5585 ;; 5586 none) break ;; 5587 esac 5588 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5589 # mode. It turns out that the SunPro C++ compiler does not properly 5590 # handle `-M -o', and we need to detect this. 5591 if depmode=$depmode \ 5592 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5593 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5594 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5595 >/dev/null 2>conftest.err && 5596 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5597 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5598 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5599 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5600 # icc doesn't choke on unknown options, it will just issue warnings 5601 # or remarks (even with -Werror). So we grep stderr for any message 5602 # that says an option was ignored or not supported. 5603 # When given -MP, icc 7.0 and 7.1 complain thusly: 5604 # icc: Command line warning: ignoring option '-M'; no argument required 5605 # The diagnosis changed in icc 8.0: 5606 # icc: Command line remark: option '-MP' not supported 5607 if (grep 'ignoring option' conftest.err || 5608 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5609 am_cv_CXX_dependencies_compiler_type=$depmode 5610 break 5611 fi 5612 fi 5613 done 5614 5615 cd .. 5616 rm -rf conftest.dir 5617else 5618 am_cv_CXX_dependencies_compiler_type=none 5619fi 5620 5621fi 5622{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5623echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5624CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5625 5626 if 5627 test "x$enable_dependency_tracking" != xno \ 5628 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5629 am__fastdepCXX_TRUE= 5630 am__fastdepCXX_FALSE='#' 5631else 5632 am__fastdepCXX_TRUE='#' 5633 am__fastdepCXX_FALSE= 5634fi 5635 5636 5637 5638 5639if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5640 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5641 (test "X$CXX" != "Xg++"))) ; then 5642 ac_ext=cpp 5643ac_cpp='$CXXCPP $CPPFLAGS' 5644ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5645ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5646ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5647{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5648echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5649if test -z "$CXXCPP"; then 5650 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5651 echo $ECHO_N "(cached) $ECHO_C" >&6 5652else 5653 # Double quotes because CXXCPP needs to be expanded 5654 for CXXCPP in "$CXX -E" "/lib/cpp" 5655 do 5656 ac_preproc_ok=false 5657for ac_cxx_preproc_warn_flag in '' yes 5658do 5659 # Use a header file that comes with gcc, so configuring glibc 5660 # with a fresh cross-compiler works. 5661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5662 # <limits.h> exists even on freestanding compilers. 5663 # On the NeXT, cc -E runs the code through the compiler's parser, 5664 # not just through cpp. "Syntax error" is here to catch this case. 5665 cat >conftest.$ac_ext <<_ACEOF 5666/* confdefs.h. */ 5667_ACEOF 5668cat confdefs.h >>conftest.$ac_ext 5669cat >>conftest.$ac_ext <<_ACEOF 5670/* end confdefs.h. */ 5671#ifdef __STDC__ 5672# include <limits.h> 5673#else 5674# include <assert.h> 5675#endif 5676 Syntax error 5677_ACEOF 5678if { (ac_try="$ac_cpp conftest.$ac_ext" 5679case "(($ac_try" in 5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5681 *) ac_try_echo=$ac_try;; 5682esac 5683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5685 ac_status=$? 5686 grep -v '^ *+' conftest.er1 >conftest.err 5687 rm -f conftest.er1 5688 cat conftest.err >&5 5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5690 (exit $ac_status); } >/dev/null && { 5691 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5692 test ! -s conftest.err 5693 }; then 5694 : 5695else 5696 echo "$as_me: failed program was:" >&5 5697sed 's/^/| /' conftest.$ac_ext >&5 5698 5699 # Broken: fails on valid input. 5700continue 5701fi 5702 5703rm -f conftest.err conftest.$ac_ext 5704 5705 # OK, works on sane cases. Now check whether nonexistent headers 5706 # can be detected and how. 5707 cat >conftest.$ac_ext <<_ACEOF 5708/* confdefs.h. */ 5709_ACEOF 5710cat confdefs.h >>conftest.$ac_ext 5711cat >>conftest.$ac_ext <<_ACEOF 5712/* end confdefs.h. */ 5713#include <ac_nonexistent.h> 5714_ACEOF 5715if { (ac_try="$ac_cpp conftest.$ac_ext" 5716case "(($ac_try" in 5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5718 *) ac_try_echo=$ac_try;; 5719esac 5720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5722 ac_status=$? 5723 grep -v '^ *+' conftest.er1 >conftest.err 5724 rm -f conftest.er1 5725 cat conftest.err >&5 5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5727 (exit $ac_status); } >/dev/null && { 5728 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5729 test ! -s conftest.err 5730 }; then 5731 # Broken: success on invalid input. 5732continue 5733else 5734 echo "$as_me: failed program was:" >&5 5735sed 's/^/| /' conftest.$ac_ext >&5 5736 5737 # Passes both tests. 5738ac_preproc_ok=: 5739break 5740fi 5741 5742rm -f conftest.err conftest.$ac_ext 5743 5744done 5745# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5746rm -f conftest.err conftest.$ac_ext 5747if $ac_preproc_ok; then 5748 break 5749fi 5750 5751 done 5752 ac_cv_prog_CXXCPP=$CXXCPP 5753 5754fi 5755 CXXCPP=$ac_cv_prog_CXXCPP 5756else 5757 ac_cv_prog_CXXCPP=$CXXCPP 5758fi 5759{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5760echo "${ECHO_T}$CXXCPP" >&6; } 5761ac_preproc_ok=false 5762for ac_cxx_preproc_warn_flag in '' yes 5763do 5764 # Use a header file that comes with gcc, so configuring glibc 5765 # with a fresh cross-compiler works. 5766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5767 # <limits.h> exists even on freestanding compilers. 5768 # On the NeXT, cc -E runs the code through the compiler's parser, 5769 # not just through cpp. "Syntax error" is here to catch this case. 5770 cat >conftest.$ac_ext <<_ACEOF 5771/* confdefs.h. */ 5772_ACEOF 5773cat confdefs.h >>conftest.$ac_ext 5774cat >>conftest.$ac_ext <<_ACEOF 5775/* end confdefs.h. */ 5776#ifdef __STDC__ 5777# include <limits.h> 5778#else 5779# include <assert.h> 5780#endif 5781 Syntax error 5782_ACEOF 5783if { (ac_try="$ac_cpp conftest.$ac_ext" 5784case "(($ac_try" in 5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5786 *) ac_try_echo=$ac_try;; 5787esac 5788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5790 ac_status=$? 5791 grep -v '^ *+' conftest.er1 >conftest.err 5792 rm -f conftest.er1 5793 cat conftest.err >&5 5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5795 (exit $ac_status); } >/dev/null && { 5796 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5797 test ! -s conftest.err 5798 }; then 5799 : 5800else 5801 echo "$as_me: failed program was:" >&5 5802sed 's/^/| /' conftest.$ac_ext >&5 5803 5804 # Broken: fails on valid input. 5805continue 5806fi 5807 5808rm -f conftest.err conftest.$ac_ext 5809 5810 # OK, works on sane cases. Now check whether nonexistent headers 5811 # can be detected and how. 5812 cat >conftest.$ac_ext <<_ACEOF 5813/* confdefs.h. */ 5814_ACEOF 5815cat confdefs.h >>conftest.$ac_ext 5816cat >>conftest.$ac_ext <<_ACEOF 5817/* end confdefs.h. */ 5818#include <ac_nonexistent.h> 5819_ACEOF 5820if { (ac_try="$ac_cpp conftest.$ac_ext" 5821case "(($ac_try" in 5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5823 *) ac_try_echo=$ac_try;; 5824esac 5825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5827 ac_status=$? 5828 grep -v '^ *+' conftest.er1 >conftest.err 5829 rm -f conftest.er1 5830 cat conftest.err >&5 5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5832 (exit $ac_status); } >/dev/null && { 5833 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5834 test ! -s conftest.err 5835 }; then 5836 # Broken: success on invalid input. 5837continue 5838else 5839 echo "$as_me: failed program was:" >&5 5840sed 's/^/| /' conftest.$ac_ext >&5 5841 5842 # Passes both tests. 5843ac_preproc_ok=: 5844break 5845fi 5846 5847rm -f conftest.err conftest.$ac_ext 5848 5849done 5850# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5851rm -f conftest.err conftest.$ac_ext 5852if $ac_preproc_ok; then 5853 : 5854else 5855 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5856See \`config.log' for more details." >&5 5857echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5858See \`config.log' for more details." >&2;} 5859 { (exit 1); exit 1; }; } 5860fi 5861 5862ac_ext=cpp 5863ac_cpp='$CXXCPP $CPPFLAGS' 5864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5867 5868fi 5869 5870 5871ac_ext=f 5872ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5873ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5874ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5875if test -n "$ac_tool_prefix"; then 5876 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5877 do 5878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5879set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5880{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5882if test "${ac_cv_prog_F77+set}" = set; then 5883 echo $ECHO_N "(cached) $ECHO_C" >&6 5884else 5885 if test -n "$F77"; then 5886 ac_cv_prog_F77="$F77" # Let the user override the test. 5887else 5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5889for as_dir in $PATH 5890do 5891 IFS=$as_save_IFS 5892 test -z "$as_dir" && as_dir=. 5893 for ac_exec_ext in '' $ac_executable_extensions; do 5894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5895 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5897 break 2 5898 fi 5899done 5900done 5901IFS=$as_save_IFS 5902 5903fi 5904fi 5905F77=$ac_cv_prog_F77 5906if test -n "$F77"; then 5907 { echo "$as_me:$LINENO: result: $F77" >&5 5908echo "${ECHO_T}$F77" >&6; } 5909else 5910 { echo "$as_me:$LINENO: result: no" >&5 5911echo "${ECHO_T}no" >&6; } 5912fi 5913 5914 5915 test -n "$F77" && break 5916 done 5917fi 5918if test -z "$F77"; then 5919 ac_ct_F77=$F77 5920 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5921do 5922 # Extract the first word of "$ac_prog", so it can be a program name with args. 5923set dummy $ac_prog; ac_word=$2 5924{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5926if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5927 echo $ECHO_N "(cached) $ECHO_C" >&6 5928else 5929 if test -n "$ac_ct_F77"; then 5930 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5931else 5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5933for as_dir in $PATH 5934do 5935 IFS=$as_save_IFS 5936 test -z "$as_dir" && as_dir=. 5937 for ac_exec_ext in '' $ac_executable_extensions; do 5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5939 ac_cv_prog_ac_ct_F77="$ac_prog" 5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5941 break 2 5942 fi 5943done 5944done 5945IFS=$as_save_IFS 5946 5947fi 5948fi 5949ac_ct_F77=$ac_cv_prog_ac_ct_F77 5950if test -n "$ac_ct_F77"; then 5951 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5952echo "${ECHO_T}$ac_ct_F77" >&6; } 5953else 5954 { echo "$as_me:$LINENO: result: no" >&5 5955echo "${ECHO_T}no" >&6; } 5956fi 5957 5958 5959 test -n "$ac_ct_F77" && break 5960done 5961 5962 if test "x$ac_ct_F77" = x; then 5963 F77="" 5964 else 5965 case $cross_compiling:$ac_tool_warned in 5966yes:) 5967{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5968whose name does not start with the host triplet. If you think this 5969configuration is useful to you, please write to autoconf@gnu.org." >&5 5970echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5971whose name does not start with the host triplet. If you think this 5972configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5973ac_tool_warned=yes ;; 5974esac 5975 F77=$ac_ct_F77 5976 fi 5977fi 5978 5979 5980# Provide some information about the compiler. 5981echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5982ac_compiler=`set X $ac_compile; echo $2` 5983{ (ac_try="$ac_compiler --version >&5" 5984case "(($ac_try" in 5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5986 *) ac_try_echo=$ac_try;; 5987esac 5988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5989 (eval "$ac_compiler --version >&5") 2>&5 5990 ac_status=$? 5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5992 (exit $ac_status); } 5993{ (ac_try="$ac_compiler -v >&5" 5994case "(($ac_try" in 5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5996 *) ac_try_echo=$ac_try;; 5997esac 5998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5999 (eval "$ac_compiler -v >&5") 2>&5 6000 ac_status=$? 6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6002 (exit $ac_status); } 6003{ (ac_try="$ac_compiler -V >&5" 6004case "(($ac_try" in 6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6006 *) ac_try_echo=$ac_try;; 6007esac 6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6009 (eval "$ac_compiler -V >&5") 2>&5 6010 ac_status=$? 6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6012 (exit $ac_status); } 6013rm -f a.out 6014 6015# If we don't use `.F' as extension, the preprocessor is not run on the 6016# input file. (Note that this only needs to work for GNU compilers.) 6017ac_save_ext=$ac_ext 6018ac_ext=F 6019{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6020echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6021if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6022 echo $ECHO_N "(cached) $ECHO_C" >&6 6023else 6024 cat >conftest.$ac_ext <<_ACEOF 6025 program main 6026#ifndef __GNUC__ 6027 choke me 6028#endif 6029 6030 end 6031_ACEOF 6032rm -f conftest.$ac_objext 6033if { (ac_try="$ac_compile" 6034case "(($ac_try" in 6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6036 *) ac_try_echo=$ac_try;; 6037esac 6038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6039 (eval "$ac_compile") 2>conftest.er1 6040 ac_status=$? 6041 grep -v '^ *+' conftest.er1 >conftest.err 6042 rm -f conftest.er1 6043 cat conftest.err >&5 6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6045 (exit $ac_status); } && { 6046 test -z "$ac_f77_werror_flag" || 6047 test ! -s conftest.err 6048 } && test -s conftest.$ac_objext; then 6049 ac_compiler_gnu=yes 6050else 6051 echo "$as_me: failed program was:" >&5 6052sed 's/^/| /' conftest.$ac_ext >&5 6053 6054 ac_compiler_gnu=no 6055fi 6056 6057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6058ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6059 6060fi 6061{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6062echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6063ac_ext=$ac_save_ext 6064ac_test_FFLAGS=${FFLAGS+set} 6065ac_save_FFLAGS=$FFLAGS 6066FFLAGS= 6067{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6068echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6069if test "${ac_cv_prog_f77_g+set}" = set; then 6070 echo $ECHO_N "(cached) $ECHO_C" >&6 6071else 6072 FFLAGS=-g 6073cat >conftest.$ac_ext <<_ACEOF 6074 program main 6075 6076 end 6077_ACEOF 6078rm -f conftest.$ac_objext 6079if { (ac_try="$ac_compile" 6080case "(($ac_try" in 6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6082 *) ac_try_echo=$ac_try;; 6083esac 6084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6085 (eval "$ac_compile") 2>conftest.er1 6086 ac_status=$? 6087 grep -v '^ *+' conftest.er1 >conftest.err 6088 rm -f conftest.er1 6089 cat conftest.err >&5 6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6091 (exit $ac_status); } && { 6092 test -z "$ac_f77_werror_flag" || 6093 test ! -s conftest.err 6094 } && test -s conftest.$ac_objext; then 6095 ac_cv_prog_f77_g=yes 6096else 6097 echo "$as_me: failed program was:" >&5 6098sed 's/^/| /' conftest.$ac_ext >&5 6099 6100 ac_cv_prog_f77_g=no 6101fi 6102 6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6104 6105fi 6106{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6107echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6108if test "$ac_test_FFLAGS" = set; then 6109 FFLAGS=$ac_save_FFLAGS 6110elif test $ac_cv_prog_f77_g = yes; then 6111 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6112 FFLAGS="-g -O2" 6113 else 6114 FFLAGS="-g" 6115 fi 6116else 6117 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6118 FFLAGS="-O2" 6119 else 6120 FFLAGS= 6121 fi 6122fi 6123 6124G77=`test $ac_compiler_gnu = yes && echo yes` 6125ac_ext=c 6126ac_cpp='$CPP $CPPFLAGS' 6127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6129ac_compiler_gnu=$ac_cv_c_compiler_gnu 6130 6131 6132 6133# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6134 6135# find the maximum length of command line arguments 6136{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6137echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6138if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6139 echo $ECHO_N "(cached) $ECHO_C" >&6 6140else 6141 i=0 6142 teststring="ABCD" 6143 6144 case $build_os in 6145 msdosdjgpp*) 6146 # On DJGPP, this test can blow up pretty badly due to problems in libc 6147 # (any single argument exceeding 2000 bytes causes a buffer overrun 6148 # during glob expansion). Even if it were fixed, the result of this 6149 # check would be larger than it should be. 6150 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6151 ;; 6152 6153 gnu*) 6154 # Under GNU Hurd, this test is not required because there is 6155 # no limit to the length of command line arguments. 6156 # Libtool will interpret -1 as no limit whatsoever 6157 lt_cv_sys_max_cmd_len=-1; 6158 ;; 6159 6160 cygwin* | mingw*) 6161 # On Win9x/ME, this test blows up -- it succeeds, but takes 6162 # about 5 minutes as the teststring grows exponentially. 6163 # Worse, since 9x/ME are not pre-emptively multitasking, 6164 # you end up with a "frozen" computer, even though with patience 6165 # the test eventually succeeds (with a max line length of 256k). 6166 # Instead, let's just punt: use the minimum linelength reported by 6167 # all of the supported platforms: 8192 (on NT/2K/XP). 6168 lt_cv_sys_max_cmd_len=8192; 6169 ;; 6170 6171 amigaos*) 6172 # On AmigaOS with pdksh, this test takes hours, literally. 6173 # So we just punt and use a minimum line length of 8192. 6174 lt_cv_sys_max_cmd_len=8192; 6175 ;; 6176 6177 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6178 # This has been around since 386BSD, at least. Likely further. 6179 if test -x /sbin/sysctl; then 6180 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6181 elif test -x /usr/sbin/sysctl; then 6182 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6183 else 6184 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6185 fi 6186 # And add a safety zone 6187 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6189 ;; 6190 6191 interix*) 6192 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6193 lt_cv_sys_max_cmd_len=196608 6194 ;; 6195 6196 osf*) 6197 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6198 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6199 # nice to cause kernel panics so lets avoid the loop below. 6200 # First set a reasonable default. 6201 lt_cv_sys_max_cmd_len=16384 6202 # 6203 if test -x /sbin/sysconfig; then 6204 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6205 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6206 esac 6207 fi 6208 ;; 6209 sco3.2v5*) 6210 lt_cv_sys_max_cmd_len=102400 6211 ;; 6212 sysv5* | sco5v6* | sysv4.2uw2*) 6213 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6214 if test -n "$kargmax"; then 6215 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6216 else 6217 lt_cv_sys_max_cmd_len=32768 6218 fi 6219 ;; 6220 *) 6221 # If test is not a shell built-in, we'll probably end up computing a 6222 # maximum length that is only half of the actual maximum length, but 6223 # we can't tell. 6224 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6225 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6226 = "XX$teststring") >/dev/null 2>&1 && 6227 new_result=`expr "X$teststring" : ".*" 2>&1` && 6228 lt_cv_sys_max_cmd_len=$new_result && 6229 test $i != 17 # 1/2 MB should be enough 6230 do 6231 i=`expr $i + 1` 6232 teststring=$teststring$teststring 6233 done 6234 teststring= 6235 # Add a significant safety factor because C++ compilers can tack on massive 6236 # amounts of additional arguments before passing them to the linker. 6237 # It appears as though 1/2 is a usable value. 6238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6239 ;; 6240 esac 6241 6242fi 6243 6244if test -n $lt_cv_sys_max_cmd_len ; then 6245 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6246echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6247else 6248 { echo "$as_me:$LINENO: result: none" >&5 6249echo "${ECHO_T}none" >&6; } 6250fi 6251 6252 6253 6254 6255# Check for command to grab the raw symbol name followed by C symbol from nm. 6256{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6257echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6258if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6259 echo $ECHO_N "(cached) $ECHO_C" >&6 6260else 6261 6262# These are sane defaults that work on at least a few old systems. 6263# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6264 6265# Character class describing NM global symbol codes. 6266symcode='[BCDEGRST]' 6267 6268# Regexp to match symbols that can be accessed directly from C. 6269sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6270 6271# Transform an extracted symbol line into a proper C declaration 6272lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6273 6274# Transform an extracted symbol line into symbol name and symbol address 6275lt_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'" 6276 6277# Define system-specific variables. 6278case $host_os in 6279aix*) 6280 symcode='[BCDT]' 6281 ;; 6282cygwin* | mingw* | pw32*) 6283 symcode='[ABCDGISTW]' 6284 ;; 6285hpux*) # Its linker distinguishes data from code symbols 6286 if test "$host_cpu" = ia64; then 6287 symcode='[ABCDEGRST]' 6288 fi 6289 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6290 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'" 6291 ;; 6292linux*) 6293 if test "$host_cpu" = ia64; then 6294 symcode='[ABCDGIRSTW]' 6295 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6296 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'" 6297 fi 6298 ;; 6299irix* | nonstopux*) 6300 symcode='[BCDEGRST]' 6301 ;; 6302osf*) 6303 symcode='[BCDEGQRST]' 6304 ;; 6305solaris*) 6306 symcode='[BDRT]' 6307 ;; 6308sco3.2v5*) 6309 symcode='[DT]' 6310 ;; 6311sysv4.2uw2*) 6312 symcode='[DT]' 6313 ;; 6314sysv5* | sco5v6* | unixware* | OpenUNIX*) 6315 symcode='[ABDT]' 6316 ;; 6317sysv4) 6318 symcode='[DFNSTU]' 6319 ;; 6320esac 6321 6322# Handle CRLF in mingw tool chain 6323opt_cr= 6324case $build_os in 6325mingw*) 6326 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6327 ;; 6328esac 6329 6330# If we're using GNU nm, then use its standard symbol codes. 6331case `$NM -V 2>&1` in 6332*GNU* | *'with BFD'*) 6333 symcode='[ABCDGIRSTW]' ;; 6334esac 6335 6336# Try without a prefix undercore, then with it. 6337for ac_symprfx in "" "_"; do 6338 6339 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6340 symxfrm="\\1 $ac_symprfx\\2 \\2" 6341 6342 # Write the raw and C identifiers. 6343 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6344 6345 # Check to see that the pipe works correctly. 6346 pipe_works=no 6347 6348 rm -f conftest* 6349 cat > conftest.$ac_ext <<EOF 6350#ifdef __cplusplus 6351extern "C" { 6352#endif 6353char nm_test_var; 6354void nm_test_func(){} 6355#ifdef __cplusplus 6356} 6357#endif 6358int main(){nm_test_var='a';nm_test_func();return(0);} 6359EOF 6360 6361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6362 (eval $ac_compile) 2>&5 6363 ac_status=$? 6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6365 (exit $ac_status); }; then 6366 # Now try to grab the symbols. 6367 nlist=conftest.nm 6368 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6369 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6370 ac_status=$? 6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6372 (exit $ac_status); } && test -s "$nlist"; then 6373 # Try sorting and uniquifying the output. 6374 if sort "$nlist" | uniq > "$nlist"T; then 6375 mv -f "$nlist"T "$nlist" 6376 else 6377 rm -f "$nlist"T 6378 fi 6379 6380 # Make sure that we snagged all the symbols we need. 6381 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6382 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6383 cat <<EOF > conftest.$ac_ext 6384#ifdef __cplusplus 6385extern "C" { 6386#endif 6387 6388EOF 6389 # Now generate the symbol file. 6390 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6391 6392 cat <<EOF >> conftest.$ac_ext 6393#if defined (__STDC__) && __STDC__ 6394# define lt_ptr_t void * 6395#else 6396# define lt_ptr_t char * 6397# define const 6398#endif 6399 6400/* The mapping between symbol names and symbols. */ 6401const struct { 6402 const char *name; 6403 lt_ptr_t address; 6404} 6405lt_preloaded_symbols[] = 6406{ 6407EOF 6408 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6409 cat <<\EOF >> conftest.$ac_ext 6410 {0, (lt_ptr_t) 0} 6411}; 6412 6413#ifdef __cplusplus 6414} 6415#endif 6416EOF 6417 # Now try linking the two files. 6418 mv conftest.$ac_objext conftstm.$ac_objext 6419 lt_save_LIBS="$LIBS" 6420 lt_save_CFLAGS="$CFLAGS" 6421 LIBS="conftstm.$ac_objext" 6422 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6424 (eval $ac_link) 2>&5 6425 ac_status=$? 6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6427 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6428 pipe_works=yes 6429 fi 6430 LIBS="$lt_save_LIBS" 6431 CFLAGS="$lt_save_CFLAGS" 6432 else 6433 echo "cannot find nm_test_func in $nlist" >&5 6434 fi 6435 else 6436 echo "cannot find nm_test_var in $nlist" >&5 6437 fi 6438 else 6439 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6440 fi 6441 else 6442 echo "$progname: failed program was:" >&5 6443 cat conftest.$ac_ext >&5 6444 fi 6445 rm -f conftest* conftst* 6446 6447 # Do not use the global_symbol_pipe unless it works. 6448 if test "$pipe_works" = yes; then 6449 break 6450 else 6451 lt_cv_sys_global_symbol_pipe= 6452 fi 6453done 6454 6455fi 6456 6457if test -z "$lt_cv_sys_global_symbol_pipe"; then 6458 lt_cv_sys_global_symbol_to_cdecl= 6459fi 6460if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6461 { echo "$as_me:$LINENO: result: failed" >&5 6462echo "${ECHO_T}failed" >&6; } 6463else 6464 { echo "$as_me:$LINENO: result: ok" >&5 6465echo "${ECHO_T}ok" >&6; } 6466fi 6467 6468{ echo "$as_me:$LINENO: checking for objdir" >&5 6469echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6470if test "${lt_cv_objdir+set}" = set; then 6471 echo $ECHO_N "(cached) $ECHO_C" >&6 6472else 6473 rm -f .libs 2>/dev/null 6474mkdir .libs 2>/dev/null 6475if test -d .libs; then 6476 lt_cv_objdir=.libs 6477else 6478 # MS-DOS does not allow filenames that begin with a dot. 6479 lt_cv_objdir=_libs 6480fi 6481rmdir .libs 2>/dev/null 6482fi 6483{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6484echo "${ECHO_T}$lt_cv_objdir" >&6; } 6485objdir=$lt_cv_objdir 6486 6487 6488 6489 6490 6491case $host_os in 6492aix3*) 6493 # AIX sometimes has problems with the GCC collect2 program. For some 6494 # reason, if we set the COLLECT_NAMES environment variable, the problems 6495 # vanish in a puff of smoke. 6496 if test "X${COLLECT_NAMES+set}" != Xset; then 6497 COLLECT_NAMES= 6498 export COLLECT_NAMES 6499 fi 6500 ;; 6501esac 6502 6503# Sed substitution that helps us do robust quoting. It backslashifies 6504# metacharacters that are still active within double-quoted strings. 6505Xsed='sed -e 1s/^X//' 6506sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6507 6508# Same as above, but do not quote variable references. 6509double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6510 6511# Sed substitution to delay expansion of an escaped shell variable in a 6512# double_quote_subst'ed string. 6513delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6514 6515# Sed substitution to avoid accidental globbing in evaled expressions 6516no_glob_subst='s/\*/\\\*/g' 6517 6518# Constants: 6519rm="rm -f" 6520 6521# Global variables: 6522default_ofile=libtool 6523can_build_shared=yes 6524 6525# All known linkers require a `.a' archive for static linking (except MSVC, 6526# which needs '.lib'). 6527libext=a 6528ltmain="$ac_aux_dir/ltmain.sh" 6529ofile="$default_ofile" 6530with_gnu_ld="$lt_cv_prog_gnu_ld" 6531 6532if test -n "$ac_tool_prefix"; then 6533 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6534set dummy ${ac_tool_prefix}ar; ac_word=$2 6535{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6537if test "${ac_cv_prog_AR+set}" = set; then 6538 echo $ECHO_N "(cached) $ECHO_C" >&6 6539else 6540 if test -n "$AR"; then 6541 ac_cv_prog_AR="$AR" # Let the user override the test. 6542else 6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6544for as_dir in $PATH 6545do 6546 IFS=$as_save_IFS 6547 test -z "$as_dir" && as_dir=. 6548 for ac_exec_ext in '' $ac_executable_extensions; do 6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6550 ac_cv_prog_AR="${ac_tool_prefix}ar" 6551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6552 break 2 6553 fi 6554done 6555done 6556IFS=$as_save_IFS 6557 6558fi 6559fi 6560AR=$ac_cv_prog_AR 6561if test -n "$AR"; then 6562 { echo "$as_me:$LINENO: result: $AR" >&5 6563echo "${ECHO_T}$AR" >&6; } 6564else 6565 { echo "$as_me:$LINENO: result: no" >&5 6566echo "${ECHO_T}no" >&6; } 6567fi 6568 6569 6570fi 6571if test -z "$ac_cv_prog_AR"; then 6572 ac_ct_AR=$AR 6573 # Extract the first word of "ar", so it can be a program name with args. 6574set dummy ar; ac_word=$2 6575{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6577if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6578 echo $ECHO_N "(cached) $ECHO_C" >&6 6579else 6580 if test -n "$ac_ct_AR"; then 6581 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6582else 6583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6584for as_dir in $PATH 6585do 6586 IFS=$as_save_IFS 6587 test -z "$as_dir" && as_dir=. 6588 for ac_exec_ext in '' $ac_executable_extensions; do 6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6590 ac_cv_prog_ac_ct_AR="ar" 6591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6592 break 2 6593 fi 6594done 6595done 6596IFS=$as_save_IFS 6597 6598fi 6599fi 6600ac_ct_AR=$ac_cv_prog_ac_ct_AR 6601if test -n "$ac_ct_AR"; then 6602 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6603echo "${ECHO_T}$ac_ct_AR" >&6; } 6604else 6605 { echo "$as_me:$LINENO: result: no" >&5 6606echo "${ECHO_T}no" >&6; } 6607fi 6608 6609 if test "x$ac_ct_AR" = x; then 6610 AR="false" 6611 else 6612 case $cross_compiling:$ac_tool_warned in 6613yes:) 6614{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6615whose name does not start with the host triplet. If you think this 6616configuration is useful to you, please write to autoconf@gnu.org." >&5 6617echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6618whose name does not start with the host triplet. If you think this 6619configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6620ac_tool_warned=yes ;; 6621esac 6622 AR=$ac_ct_AR 6623 fi 6624else 6625 AR="$ac_cv_prog_AR" 6626fi 6627 6628if test -n "$ac_tool_prefix"; then 6629 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6630set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6631{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6633if test "${ac_cv_prog_RANLIB+set}" = set; then 6634 echo $ECHO_N "(cached) $ECHO_C" >&6 6635else 6636 if test -n "$RANLIB"; then 6637 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6638else 6639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6640for as_dir in $PATH 6641do 6642 IFS=$as_save_IFS 6643 test -z "$as_dir" && as_dir=. 6644 for ac_exec_ext in '' $ac_executable_extensions; do 6645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6646 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6648 break 2 6649 fi 6650done 6651done 6652IFS=$as_save_IFS 6653 6654fi 6655fi 6656RANLIB=$ac_cv_prog_RANLIB 6657if test -n "$RANLIB"; then 6658 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6659echo "${ECHO_T}$RANLIB" >&6; } 6660else 6661 { echo "$as_me:$LINENO: result: no" >&5 6662echo "${ECHO_T}no" >&6; } 6663fi 6664 6665 6666fi 6667if test -z "$ac_cv_prog_RANLIB"; then 6668 ac_ct_RANLIB=$RANLIB 6669 # Extract the first word of "ranlib", so it can be a program name with args. 6670set dummy ranlib; ac_word=$2 6671{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6673if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6674 echo $ECHO_N "(cached) $ECHO_C" >&6 6675else 6676 if test -n "$ac_ct_RANLIB"; then 6677 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6678else 6679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6680for as_dir in $PATH 6681do 6682 IFS=$as_save_IFS 6683 test -z "$as_dir" && as_dir=. 6684 for ac_exec_ext in '' $ac_executable_extensions; do 6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6686 ac_cv_prog_ac_ct_RANLIB="ranlib" 6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6688 break 2 6689 fi 6690done 6691done 6692IFS=$as_save_IFS 6693 6694fi 6695fi 6696ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6697if test -n "$ac_ct_RANLIB"; then 6698 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6699echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6700else 6701 { echo "$as_me:$LINENO: result: no" >&5 6702echo "${ECHO_T}no" >&6; } 6703fi 6704 6705 if test "x$ac_ct_RANLIB" = x; then 6706 RANLIB=":" 6707 else 6708 case $cross_compiling:$ac_tool_warned in 6709yes:) 6710{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6711whose name does not start with the host triplet. If you think this 6712configuration is useful to you, please write to autoconf@gnu.org." >&5 6713echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6714whose name does not start with the host triplet. If you think this 6715configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6716ac_tool_warned=yes ;; 6717esac 6718 RANLIB=$ac_ct_RANLIB 6719 fi 6720else 6721 RANLIB="$ac_cv_prog_RANLIB" 6722fi 6723 6724if test -n "$ac_tool_prefix"; then 6725 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6726set dummy ${ac_tool_prefix}strip; ac_word=$2 6727{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6729if test "${ac_cv_prog_STRIP+set}" = set; then 6730 echo $ECHO_N "(cached) $ECHO_C" >&6 6731else 6732 if test -n "$STRIP"; then 6733 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6734else 6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6736for as_dir in $PATH 6737do 6738 IFS=$as_save_IFS 6739 test -z "$as_dir" && as_dir=. 6740 for ac_exec_ext in '' $ac_executable_extensions; do 6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6742 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6744 break 2 6745 fi 6746done 6747done 6748IFS=$as_save_IFS 6749 6750fi 6751fi 6752STRIP=$ac_cv_prog_STRIP 6753if test -n "$STRIP"; then 6754 { echo "$as_me:$LINENO: result: $STRIP" >&5 6755echo "${ECHO_T}$STRIP" >&6; } 6756else 6757 { echo "$as_me:$LINENO: result: no" >&5 6758echo "${ECHO_T}no" >&6; } 6759fi 6760 6761 6762fi 6763if test -z "$ac_cv_prog_STRIP"; then 6764 ac_ct_STRIP=$STRIP 6765 # Extract the first word of "strip", so it can be a program name with args. 6766set dummy strip; ac_word=$2 6767{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6769if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6770 echo $ECHO_N "(cached) $ECHO_C" >&6 6771else 6772 if test -n "$ac_ct_STRIP"; then 6773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6774else 6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6776for as_dir in $PATH 6777do 6778 IFS=$as_save_IFS 6779 test -z "$as_dir" && as_dir=. 6780 for ac_exec_ext in '' $ac_executable_extensions; do 6781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6782 ac_cv_prog_ac_ct_STRIP="strip" 6783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6784 break 2 6785 fi 6786done 6787done 6788IFS=$as_save_IFS 6789 6790fi 6791fi 6792ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6793if test -n "$ac_ct_STRIP"; then 6794 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6795echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6796else 6797 { echo "$as_me:$LINENO: result: no" >&5 6798echo "${ECHO_T}no" >&6; } 6799fi 6800 6801 if test "x$ac_ct_STRIP" = x; then 6802 STRIP=":" 6803 else 6804 case $cross_compiling:$ac_tool_warned in 6805yes:) 6806{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6807whose name does not start with the host triplet. If you think this 6808configuration is useful to you, please write to autoconf@gnu.org." >&5 6809echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6810whose name does not start with the host triplet. If you think this 6811configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6812ac_tool_warned=yes ;; 6813esac 6814 STRIP=$ac_ct_STRIP 6815 fi 6816else 6817 STRIP="$ac_cv_prog_STRIP" 6818fi 6819 6820 6821old_CC="$CC" 6822old_CFLAGS="$CFLAGS" 6823 6824# Set sane defaults for various variables 6825test -z "$AR" && AR=ar 6826test -z "$AR_FLAGS" && AR_FLAGS=cru 6827test -z "$AS" && AS=as 6828test -z "$CC" && CC=cc 6829test -z "$LTCC" && LTCC=$CC 6830test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6831test -z "$DLLTOOL" && DLLTOOL=dlltool 6832test -z "$LD" && LD=ld 6833test -z "$LN_S" && LN_S="ln -s" 6834test -z "$MAGIC_CMD" && MAGIC_CMD=file 6835test -z "$NM" && NM=nm 6836test -z "$SED" && SED=sed 6837test -z "$OBJDUMP" && OBJDUMP=objdump 6838test -z "$RANLIB" && RANLIB=: 6839test -z "$STRIP" && STRIP=: 6840test -z "$ac_objext" && ac_objext=o 6841 6842# Determine commands to create old-style static archives. 6843old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6844old_postinstall_cmds='chmod 644 $oldlib' 6845old_postuninstall_cmds= 6846 6847if test -n "$RANLIB"; then 6848 case $host_os in 6849 openbsd*) 6850 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6851 ;; 6852 *) 6853 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6854 ;; 6855 esac 6856 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6857fi 6858 6859for cc_temp in $compiler""; do 6860 case $cc_temp in 6861 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6862 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6863 \-*) ;; 6864 *) break;; 6865 esac 6866done 6867cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6868 6869 6870# Only perform the check for file, if the check method requires it 6871case $deplibs_check_method in 6872file_magic*) 6873 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6874 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6875echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6876if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6877 echo $ECHO_N "(cached) $ECHO_C" >&6 6878else 6879 case $MAGIC_CMD in 6880[\\/*] | ?:[\\/]*) 6881 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6882 ;; 6883*) 6884 lt_save_MAGIC_CMD="$MAGIC_CMD" 6885 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6886 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6887 for ac_dir in $ac_dummy; do 6888 IFS="$lt_save_ifs" 6889 test -z "$ac_dir" && ac_dir=. 6890 if test -f $ac_dir/${ac_tool_prefix}file; then 6891 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6892 if test -n "$file_magic_test_file"; then 6893 case $deplibs_check_method in 6894 "file_magic "*) 6895 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6896 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6897 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6898 $EGREP "$file_magic_regex" > /dev/null; then 6899 : 6900 else 6901 cat <<EOF 1>&2 6902 6903*** Warning: the command libtool uses to detect shared libraries, 6904*** $file_magic_cmd, produces output that libtool cannot recognize. 6905*** The result is that libtool may fail to recognize shared libraries 6906*** as such. This will affect the creation of libtool libraries that 6907*** depend on shared libraries, but programs linked with such libtool 6908*** libraries will work regardless of this problem. Nevertheless, you 6909*** may want to report the problem to your system manager and/or to 6910*** bug-libtool@gnu.org 6911 6912EOF 6913 fi ;; 6914 esac 6915 fi 6916 break 6917 fi 6918 done 6919 IFS="$lt_save_ifs" 6920 MAGIC_CMD="$lt_save_MAGIC_CMD" 6921 ;; 6922esac 6923fi 6924 6925MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6926if test -n "$MAGIC_CMD"; then 6927 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6928echo "${ECHO_T}$MAGIC_CMD" >&6; } 6929else 6930 { echo "$as_me:$LINENO: result: no" >&5 6931echo "${ECHO_T}no" >&6; } 6932fi 6933 6934if test -z "$lt_cv_path_MAGIC_CMD"; then 6935 if test -n "$ac_tool_prefix"; then 6936 { echo "$as_me:$LINENO: checking for file" >&5 6937echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6938if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6939 echo $ECHO_N "(cached) $ECHO_C" >&6 6940else 6941 case $MAGIC_CMD in 6942[\\/*] | ?:[\\/]*) 6943 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6944 ;; 6945*) 6946 lt_save_MAGIC_CMD="$MAGIC_CMD" 6947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6948 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6949 for ac_dir in $ac_dummy; do 6950 IFS="$lt_save_ifs" 6951 test -z "$ac_dir" && ac_dir=. 6952 if test -f $ac_dir/file; then 6953 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6954 if test -n "$file_magic_test_file"; then 6955 case $deplibs_check_method in 6956 "file_magic "*) 6957 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6959 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6960 $EGREP "$file_magic_regex" > /dev/null; then 6961 : 6962 else 6963 cat <<EOF 1>&2 6964 6965*** Warning: the command libtool uses to detect shared libraries, 6966*** $file_magic_cmd, produces output that libtool cannot recognize. 6967*** The result is that libtool may fail to recognize shared libraries 6968*** as such. This will affect the creation of libtool libraries that 6969*** depend on shared libraries, but programs linked with such libtool 6970*** libraries will work regardless of this problem. Nevertheless, you 6971*** may want to report the problem to your system manager and/or to 6972*** bug-libtool@gnu.org 6973 6974EOF 6975 fi ;; 6976 esac 6977 fi 6978 break 6979 fi 6980 done 6981 IFS="$lt_save_ifs" 6982 MAGIC_CMD="$lt_save_MAGIC_CMD" 6983 ;; 6984esac 6985fi 6986 6987MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6988if test -n "$MAGIC_CMD"; then 6989 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6990echo "${ECHO_T}$MAGIC_CMD" >&6; } 6991else 6992 { echo "$as_me:$LINENO: result: no" >&5 6993echo "${ECHO_T}no" >&6; } 6994fi 6995 6996 else 6997 MAGIC_CMD=: 6998 fi 6999fi 7000 7001 fi 7002 ;; 7003esac 7004 7005enable_dlopen=no 7006enable_win32_dll=no 7007 7008# Check whether --enable-libtool-lock was given. 7009if test "${enable_libtool_lock+set}" = set; then 7010 enableval=$enable_libtool_lock; 7011fi 7012 7013test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7014 7015 7016# Check whether --with-pic was given. 7017if test "${with_pic+set}" = set; then 7018 withval=$with_pic; pic_mode="$withval" 7019else 7020 pic_mode=default 7021fi 7022 7023test -z "$pic_mode" && pic_mode=default 7024 7025# Use C for the default configuration in the libtool script 7026tagname= 7027lt_save_CC="$CC" 7028ac_ext=c 7029ac_cpp='$CPP $CPPFLAGS' 7030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7032ac_compiler_gnu=$ac_cv_c_compiler_gnu 7033 7034 7035# Source file extension for C test sources. 7036ac_ext=c 7037 7038# Object file extension for compiled C test sources. 7039objext=o 7040objext=$objext 7041 7042# Code to be used in simple compile tests 7043lt_simple_compile_test_code="int some_variable = 0;\n" 7044 7045# Code to be used in simple link tests 7046lt_simple_link_test_code='int main(){return(0);}\n' 7047 7048 7049# If no C compiler was specified, use CC. 7050LTCC=${LTCC-"$CC"} 7051 7052# If no C compiler flags were specified, use CFLAGS. 7053LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7054 7055# Allow CC to be a program name with arguments. 7056compiler=$CC 7057 7058 7059# save warnings/boilerplate of simple test code 7060ac_outfile=conftest.$ac_objext 7061printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7062eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7063_lt_compiler_boilerplate=`cat conftest.err` 7064$rm conftest* 7065 7066ac_outfile=conftest.$ac_objext 7067printf "$lt_simple_link_test_code" >conftest.$ac_ext 7068eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7069_lt_linker_boilerplate=`cat conftest.err` 7070$rm conftest* 7071 7072 7073 7074lt_prog_compiler_no_builtin_flag= 7075 7076if test "$GCC" = yes; then 7077 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7078 7079 7080{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7081echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7082if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7083 echo $ECHO_N "(cached) $ECHO_C" >&6 7084else 7085 lt_cv_prog_compiler_rtti_exceptions=no 7086 ac_outfile=conftest.$ac_objext 7087 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7088 lt_compiler_flag="-fno-rtti -fno-exceptions" 7089 # Insert the option either (1) after the last *FLAGS variable, or 7090 # (2) before a word containing "conftest.", or (3) at the end. 7091 # Note that $ac_compile itself does not contain backslashes and begins 7092 # with a dollar sign (not a hyphen), so the echo should work correctly. 7093 # The option is referenced via a variable to avoid confusing sed. 7094 lt_compile=`echo "$ac_compile" | $SED \ 7095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7097 -e 's:$: $lt_compiler_flag:'` 7098 (eval echo "\"\$as_me:7098: $lt_compile\"" >&5) 7099 (eval "$lt_compile" 2>conftest.err) 7100 ac_status=$? 7101 cat conftest.err >&5 7102 echo "$as_me:7102: \$? = $ac_status" >&5 7103 if (exit $ac_status) && test -s "$ac_outfile"; then 7104 # The compiler can only warn and ignore the option if not recognized 7105 # So say no if there are warnings other than the usual output. 7106 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7108 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7109 lt_cv_prog_compiler_rtti_exceptions=yes 7110 fi 7111 fi 7112 $rm conftest* 7113 7114fi 7115{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7116echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7117 7118if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7119 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7120else 7121 : 7122fi 7123 7124fi 7125 7126lt_prog_compiler_wl= 7127lt_prog_compiler_pic= 7128lt_prog_compiler_static= 7129 7130{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7131echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7132 7133 if test "$GCC" = yes; then 7134 lt_prog_compiler_wl='-Wl,' 7135 lt_prog_compiler_static='-static' 7136 7137 case $host_os in 7138 aix*) 7139 # All AIX code is PIC. 7140 if test "$host_cpu" = ia64; then 7141 # AIX 5 now supports IA64 processor 7142 lt_prog_compiler_static='-Bstatic' 7143 fi 7144 ;; 7145 7146 amigaos*) 7147 # FIXME: we need at least 68020 code to build shared libraries, but 7148 # adding the `-m68020' flag to GCC prevents building anything better, 7149 # like `-m68040'. 7150 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7151 ;; 7152 7153 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7154 # PIC is the default for these OSes. 7155 ;; 7156 7157 mingw* | pw32* | os2*) 7158 # This hack is so that the source file can tell whether it is being 7159 # built for inclusion in a dll (and should export symbols for example). 7160 lt_prog_compiler_pic='-DDLL_EXPORT' 7161 ;; 7162 7163 darwin* | rhapsody*) 7164 # PIC is the default on this platform 7165 # Common symbols not allowed in MH_DYLIB files 7166 lt_prog_compiler_pic='-fno-common' 7167 ;; 7168 7169 interix3*) 7170 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7171 # Instead, we relocate shared libraries at runtime. 7172 ;; 7173 7174 msdosdjgpp*) 7175 # Just because we use GCC doesn't mean we suddenly get shared libraries 7176 # on systems that don't support them. 7177 lt_prog_compiler_can_build_shared=no 7178 enable_shared=no 7179 ;; 7180 7181 sysv4*MP*) 7182 if test -d /usr/nec; then 7183 lt_prog_compiler_pic=-Kconform_pic 7184 fi 7185 ;; 7186 7187 hpux*) 7188 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7189 # not for PA HP-UX. 7190 case $host_cpu in 7191 hppa*64*|ia64*) 7192 # +Z the default 7193 ;; 7194 *) 7195 lt_prog_compiler_pic='-fPIC' 7196 ;; 7197 esac 7198 ;; 7199 7200 *) 7201 lt_prog_compiler_pic='-fPIC' 7202 ;; 7203 esac 7204 else 7205 # PORTME Check for flag to pass linker flags through the system compiler. 7206 case $host_os in 7207 aix*) 7208 lt_prog_compiler_wl='-Wl,' 7209 if test "$host_cpu" = ia64; then 7210 # AIX 5 now supports IA64 processor 7211 lt_prog_compiler_static='-Bstatic' 7212 else 7213 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7214 fi 7215 ;; 7216 darwin*) 7217 # PIC is the default on this platform 7218 # Common symbols not allowed in MH_DYLIB files 7219 case $cc_basename in 7220 xlc*) 7221 lt_prog_compiler_pic='-qnocommon' 7222 lt_prog_compiler_wl='-Wl,' 7223 ;; 7224 esac 7225 ;; 7226 7227 mingw* | pw32* | os2*) 7228 # This hack is so that the source file can tell whether it is being 7229 # built for inclusion in a dll (and should export symbols for example). 7230 lt_prog_compiler_pic='-DDLL_EXPORT' 7231 ;; 7232 7233 hpux9* | hpux10* | hpux11*) 7234 lt_prog_compiler_wl='-Wl,' 7235 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7236 # not for PA HP-UX. 7237 case $host_cpu in 7238 hppa*64*|ia64*) 7239 # +Z the default 7240 ;; 7241 *) 7242 lt_prog_compiler_pic='+Z' 7243 ;; 7244 esac 7245 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7246 lt_prog_compiler_static='${wl}-a ${wl}archive' 7247 ;; 7248 7249 irix5* | irix6* | nonstopux*) 7250 lt_prog_compiler_wl='-Wl,' 7251 # PIC (with -KPIC) is the default. 7252 lt_prog_compiler_static='-non_shared' 7253 ;; 7254 7255 newsos6) 7256 lt_prog_compiler_pic='-KPIC' 7257 lt_prog_compiler_static='-Bstatic' 7258 ;; 7259 7260 linux*) 7261 case $cc_basename in 7262 icc* | ecc*) 7263 lt_prog_compiler_wl='-Wl,' 7264 lt_prog_compiler_pic='-KPIC' 7265 lt_prog_compiler_static='-static' 7266 ;; 7267 pgcc* | pgf77* | pgf90* | pgf95*) 7268 # Portland Group compilers (*not* the Pentium gcc compiler, 7269 # which looks to be a dead project) 7270 lt_prog_compiler_wl='-Wl,' 7271 lt_prog_compiler_pic='-fpic' 7272 lt_prog_compiler_static='-Bstatic' 7273 ;; 7274 ccc*) 7275 lt_prog_compiler_wl='-Wl,' 7276 # All Alpha code is PIC. 7277 lt_prog_compiler_static='-non_shared' 7278 ;; 7279 esac 7280 ;; 7281 7282 osf3* | osf4* | osf5*) 7283 lt_prog_compiler_wl='-Wl,' 7284 # All OSF/1 code is PIC. 7285 lt_prog_compiler_static='-non_shared' 7286 ;; 7287 7288 solaris*) 7289 lt_prog_compiler_pic='-KPIC' 7290 lt_prog_compiler_static='-Bstatic' 7291 case $cc_basename in 7292 f77* | f90* | f95*) 7293 lt_prog_compiler_wl='-Qoption ld ';; 7294 *) 7295 lt_prog_compiler_wl='-Wl,';; 7296 esac 7297 ;; 7298 7299 sunos4*) 7300 lt_prog_compiler_wl='-Qoption ld ' 7301 lt_prog_compiler_pic='-PIC' 7302 lt_prog_compiler_static='-Bstatic' 7303 ;; 7304 7305 sysv4 | sysv4.2uw2* | sysv4.3*) 7306 lt_prog_compiler_wl='-Wl,' 7307 lt_prog_compiler_pic='-KPIC' 7308 lt_prog_compiler_static='-Bstatic' 7309 ;; 7310 7311 sysv4*MP*) 7312 if test -d /usr/nec ;then 7313 lt_prog_compiler_pic='-Kconform_pic' 7314 lt_prog_compiler_static='-Bstatic' 7315 fi 7316 ;; 7317 7318 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7319 lt_prog_compiler_wl='-Wl,' 7320 lt_prog_compiler_pic='-KPIC' 7321 lt_prog_compiler_static='-Bstatic' 7322 ;; 7323 7324 unicos*) 7325 lt_prog_compiler_wl='-Wl,' 7326 lt_prog_compiler_can_build_shared=no 7327 ;; 7328 7329 uts4*) 7330 lt_prog_compiler_pic='-pic' 7331 lt_prog_compiler_static='-Bstatic' 7332 ;; 7333 7334 *) 7335 lt_prog_compiler_can_build_shared=no 7336 ;; 7337 esac 7338 fi 7339 7340{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7341echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7342 7343# 7344# Check to make sure the PIC flag actually works. 7345# 7346if test -n "$lt_prog_compiler_pic"; then 7347 7348{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7349echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7350if test "${lt_prog_compiler_pic_works+set}" = set; then 7351 echo $ECHO_N "(cached) $ECHO_C" >&6 7352else 7353 lt_prog_compiler_pic_works=no 7354 ac_outfile=conftest.$ac_objext 7355 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7356 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7357 # Insert the option either (1) after the last *FLAGS variable, or 7358 # (2) before a word containing "conftest.", or (3) at the end. 7359 # Note that $ac_compile itself does not contain backslashes and begins 7360 # with a dollar sign (not a hyphen), so the echo should work correctly. 7361 # The option is referenced via a variable to avoid confusing sed. 7362 lt_compile=`echo "$ac_compile" | $SED \ 7363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7365 -e 's:$: $lt_compiler_flag:'` 7366 (eval echo "\"\$as_me:7366: $lt_compile\"" >&5) 7367 (eval "$lt_compile" 2>conftest.err) 7368 ac_status=$? 7369 cat conftest.err >&5 7370 echo "$as_me:7370: \$? = $ac_status" >&5 7371 if (exit $ac_status) && test -s "$ac_outfile"; then 7372 # The compiler can only warn and ignore the option if not recognized 7373 # So say no if there are warnings other than the usual output. 7374 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7376 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7377 lt_prog_compiler_pic_works=yes 7378 fi 7379 fi 7380 $rm conftest* 7381 7382fi 7383{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7384echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7385 7386if test x"$lt_prog_compiler_pic_works" = xyes; then 7387 case $lt_prog_compiler_pic in 7388 "" | " "*) ;; 7389 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7390 esac 7391else 7392 lt_prog_compiler_pic= 7393 lt_prog_compiler_can_build_shared=no 7394fi 7395 7396fi 7397case $host_os in 7398 # For platforms which do not support PIC, -DPIC is meaningless: 7399 *djgpp*) 7400 lt_prog_compiler_pic= 7401 ;; 7402 *) 7403 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7404 ;; 7405esac 7406 7407# 7408# Check to make sure the static flag actually works. 7409# 7410wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7411{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7412echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7413if test "${lt_prog_compiler_static_works+set}" = set; then 7414 echo $ECHO_N "(cached) $ECHO_C" >&6 7415else 7416 lt_prog_compiler_static_works=no 7417 save_LDFLAGS="$LDFLAGS" 7418 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7419 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7420 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7421 # The linker can only warn and ignore the option if not recognized 7422 # So say no if there are warnings 7423 if test -s conftest.err; then 7424 # Append any errors to the config.log. 7425 cat conftest.err 1>&5 7426 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7428 if diff conftest.exp conftest.er2 >/dev/null; then 7429 lt_prog_compiler_static_works=yes 7430 fi 7431 else 7432 lt_prog_compiler_static_works=yes 7433 fi 7434 fi 7435 $rm conftest* 7436 LDFLAGS="$save_LDFLAGS" 7437 7438fi 7439{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7440echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7441 7442if test x"$lt_prog_compiler_static_works" = xyes; then 7443 : 7444else 7445 lt_prog_compiler_static= 7446fi 7447 7448 7449{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7450echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7451if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7452 echo $ECHO_N "(cached) $ECHO_C" >&6 7453else 7454 lt_cv_prog_compiler_c_o=no 7455 $rm -r conftest 2>/dev/null 7456 mkdir conftest 7457 cd conftest 7458 mkdir out 7459 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7460 7461 lt_compiler_flag="-o out/conftest2.$ac_objext" 7462 # Insert the option either (1) after the last *FLAGS variable, or 7463 # (2) before a word containing "conftest.", or (3) at the end. 7464 # Note that $ac_compile itself does not contain backslashes and begins 7465 # with a dollar sign (not a hyphen), so the echo should work correctly. 7466 lt_compile=`echo "$ac_compile" | $SED \ 7467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7469 -e 's:$: $lt_compiler_flag:'` 7470 (eval echo "\"\$as_me:7470: $lt_compile\"" >&5) 7471 (eval "$lt_compile" 2>out/conftest.err) 7472 ac_status=$? 7473 cat out/conftest.err >&5 7474 echo "$as_me:7474: \$? = $ac_status" >&5 7475 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7476 then 7477 # The compiler can only warn and ignore the option if not recognized 7478 # So say no if there are warnings 7479 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7480 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7481 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7482 lt_cv_prog_compiler_c_o=yes 7483 fi 7484 fi 7485 chmod u+w . 2>&5 7486 $rm conftest* 7487 # SGI C++ compiler will create directory out/ii_files/ for 7488 # template instantiation 7489 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7490 $rm out/* && rmdir out 7491 cd .. 7492 rmdir conftest 7493 $rm conftest* 7494 7495fi 7496{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7497echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7498 7499 7500hard_links="nottested" 7501if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7502 # do not overwrite the value of need_locks provided by the user 7503 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7504echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7505 hard_links=yes 7506 $rm conftest* 7507 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7508 touch conftest.a 7509 ln conftest.a conftest.b 2>&5 || hard_links=no 7510 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7511 { echo "$as_me:$LINENO: result: $hard_links" >&5 7512echo "${ECHO_T}$hard_links" >&6; } 7513 if test "$hard_links" = no; then 7514 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7515echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7516 need_locks=warn 7517 fi 7518else 7519 need_locks=no 7520fi 7521 7522{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7523echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7524 7525 runpath_var= 7526 allow_undefined_flag= 7527 enable_shared_with_static_runtimes=no 7528 archive_cmds= 7529 archive_expsym_cmds= 7530 old_archive_From_new_cmds= 7531 old_archive_from_expsyms_cmds= 7532 export_dynamic_flag_spec= 7533 whole_archive_flag_spec= 7534 thread_safe_flag_spec= 7535 hardcode_libdir_flag_spec= 7536 hardcode_libdir_flag_spec_ld= 7537 hardcode_libdir_separator= 7538 hardcode_direct=no 7539 hardcode_minus_L=no 7540 hardcode_shlibpath_var=unsupported 7541 link_all_deplibs=unknown 7542 hardcode_automatic=no 7543 module_cmds= 7544 module_expsym_cmds= 7545 always_export_symbols=no 7546 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7547 # include_expsyms should be a list of space-separated symbols to be *always* 7548 # included in the symbol list 7549 include_expsyms= 7550 # exclude_expsyms can be an extended regexp of symbols to exclude 7551 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7552 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7553 # as well as any symbol that contains `d'. 7554 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7555 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7556 # platforms (ab)use it in PIC code, but their linkers get confused if 7557 # the symbol is explicitly referenced. Since portable code cannot 7558 # rely on this symbol name, it's probably fine to never include it in 7559 # preloaded symbol tables. 7560 extract_expsyms_cmds= 7561 # Just being paranoid about ensuring that cc_basename is set. 7562 for cc_temp in $compiler""; do 7563 case $cc_temp in 7564 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7565 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7566 \-*) ;; 7567 *) break;; 7568 esac 7569done 7570cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7571 7572 case $host_os in 7573 cygwin* | mingw* | pw32*) 7574 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7575 # When not using gcc, we currently assume that we are using 7576 # Microsoft Visual C++. 7577 if test "$GCC" != yes; then 7578 with_gnu_ld=no 7579 fi 7580 ;; 7581 interix*) 7582 # we just hope/assume this is gcc and not c89 (= MSVC++) 7583 with_gnu_ld=yes 7584 ;; 7585 openbsd*) 7586 with_gnu_ld=no 7587 ;; 7588 esac 7589 7590 ld_shlibs=yes 7591 if test "$with_gnu_ld" = yes; then 7592 # If archive_cmds runs LD, not CC, wlarc should be empty 7593 wlarc='${wl}' 7594 7595 # Set some defaults for GNU ld with shared library support. These 7596 # are reset later if shared libraries are not supported. Putting them 7597 # here allows them to be overridden if necessary. 7598 runpath_var=LD_RUN_PATH 7599 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7600 export_dynamic_flag_spec='${wl}--export-dynamic' 7601 # ancient GNU ld didn't support --whole-archive et. al. 7602 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7603 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7604 else 7605 whole_archive_flag_spec= 7606 fi 7607 supports_anon_versioning=no 7608 case `$LD -v 2>/dev/null` in 7609 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7610 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7611 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7612 *\ 2.11.*) ;; # other 2.11 versions 7613 *) supports_anon_versioning=yes ;; 7614 esac 7615 7616 # See if GNU ld supports shared libraries. 7617 case $host_os in 7618 aix3* | aix4* | aix5*) 7619 # On AIX/PPC, the GNU linker is very broken 7620 if test "$host_cpu" != ia64; then 7621 ld_shlibs=no 7622 cat <<EOF 1>&2 7623 7624*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7625*** to be unable to reliably create shared libraries on AIX. 7626*** Therefore, libtool is disabling shared libraries support. If you 7627*** really care for shared libraries, you may want to modify your PATH 7628*** so that a non-GNU linker is found, and then restart. 7629 7630EOF 7631 fi 7632 ;; 7633 7634 amigaos*) 7635 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)' 7636 hardcode_libdir_flag_spec='-L$libdir' 7637 hardcode_minus_L=yes 7638 7639 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7640 # that the semantics of dynamic libraries on AmigaOS, at least up 7641 # to version 4, is to share data among multiple programs linked 7642 # with the same dynamic library. Since this doesn't match the 7643 # behavior of shared libraries on other platforms, we can't use 7644 # them. 7645 ld_shlibs=no 7646 ;; 7647 7648 beos*) 7649 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7650 allow_undefined_flag=unsupported 7651 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7652 # support --undefined. This deserves some investigation. FIXME 7653 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7654 else 7655 ld_shlibs=no 7656 fi 7657 ;; 7658 7659 cygwin* | mingw* | pw32*) 7660 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7661 # as there is no search path for DLLs. 7662 hardcode_libdir_flag_spec='-L$libdir' 7663 allow_undefined_flag=unsupported 7664 always_export_symbols=no 7665 enable_shared_with_static_runtimes=yes 7666 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7667 7668 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7670 # If the export-symbols file already is a .def file (1st line 7671 # is EXPORTS), use it as is; otherwise, prepend... 7672 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7673 cp $export_symbols $output_objdir/$soname.def; 7674 else 7675 echo EXPORTS > $output_objdir/$soname.def; 7676 cat $export_symbols >> $output_objdir/$soname.def; 7677 fi~ 7678 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7679 else 7680 ld_shlibs=no 7681 fi 7682 ;; 7683 7684 interix3*) 7685 hardcode_direct=no 7686 hardcode_shlibpath_var=no 7687 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7688 export_dynamic_flag_spec='${wl}-E' 7689 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7690 # Instead, shared libraries are loaded at an image base (0x10000000 by 7691 # default) and relocated if they conflict, which is a slow very memory 7692 # consuming and fragmenting process. To avoid this, we pick a random, 7693 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7694 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7695 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7696 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' 7697 ;; 7698 7699 linux*) 7700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7701 tmp_addflag= 7702 case $cc_basename,$host_cpu in 7703 pgcc*) # Portland Group C compiler 7704 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' 7705 tmp_addflag=' $pic_flag' 7706 ;; 7707 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7708 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' 7709 tmp_addflag=' $pic_flag -Mnomain' ;; 7710 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7711 tmp_addflag=' -i_dynamic' ;; 7712 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7713 tmp_addflag=' -i_dynamic -nofor_main' ;; 7714 ifc* | ifort*) # Intel Fortran compiler 7715 tmp_addflag=' -nofor_main' ;; 7716 esac 7717 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7718 7719 if test $supports_anon_versioning = yes; then 7720 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7721 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7722 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7723 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7724 fi 7725 else 7726 ld_shlibs=no 7727 fi 7728 ;; 7729 7730 netbsd*) 7731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7732 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7733 wlarc= 7734 else 7735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7736 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7737 fi 7738 ;; 7739 7740 solaris*) 7741 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7742 ld_shlibs=no 7743 cat <<EOF 1>&2 7744 7745*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7746*** create shared libraries on Solaris systems. Therefore, libtool 7747*** is disabling shared libraries support. We urge you to upgrade GNU 7748*** binutils to release 2.9.1 or newer. Another option is to modify 7749*** your PATH or compiler configuration so that the native linker is 7750*** used, and then restart. 7751 7752EOF 7753 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7755 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7756 else 7757 ld_shlibs=no 7758 fi 7759 ;; 7760 7761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7762 case `$LD -v 2>&1` in 7763 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7764 ld_shlibs=no 7765 cat <<_LT_EOF 1>&2 7766 7767*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7768*** reliably create shared libraries on SCO systems. Therefore, libtool 7769*** is disabling shared libraries support. We urge you to upgrade GNU 7770*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7771*** your PATH or compiler configuration so that the native linker is 7772*** used, and then restart. 7773 7774_LT_EOF 7775 ;; 7776 *) 7777 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7778 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7781 else 7782 ld_shlibs=no 7783 fi 7784 ;; 7785 esac 7786 ;; 7787 7788 sunos4*) 7789 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7790 wlarc= 7791 hardcode_direct=yes 7792 hardcode_shlibpath_var=no 7793 ;; 7794 7795 *) 7796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7798 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7799 else 7800 ld_shlibs=no 7801 fi 7802 ;; 7803 esac 7804 7805 if test "$ld_shlibs" = no; then 7806 runpath_var= 7807 hardcode_libdir_flag_spec= 7808 export_dynamic_flag_spec= 7809 whole_archive_flag_spec= 7810 fi 7811 else 7812 # PORTME fill in a description of your system's linker (not GNU ld) 7813 case $host_os in 7814 aix3*) 7815 allow_undefined_flag=unsupported 7816 always_export_symbols=yes 7817 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' 7818 # Note: this linker hardcodes the directories in LIBPATH if there 7819 # are no directories specified by -L. 7820 hardcode_minus_L=yes 7821 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7822 # Neither direct hardcoding nor static linking is supported with a 7823 # broken collect2. 7824 hardcode_direct=unsupported 7825 fi 7826 ;; 7827 7828 aix4* | aix5*) 7829 if test "$host_cpu" = ia64; then 7830 # On IA64, the linker does run time linking by default, so we don't 7831 # have to do anything special. 7832 aix_use_runtimelinking=no 7833 exp_sym_flag='-Bexport' 7834 no_entry_flag="" 7835 else 7836 # If we're using GNU nm, then we don't want the "-C" option. 7837 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7838 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7839 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' 7840 else 7841 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' 7842 fi 7843 aix_use_runtimelinking=no 7844 7845 # Test if we are trying to use run time linking or normal 7846 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7847 # need to do runtime linking. 7848 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7849 for ld_flag in $LDFLAGS; do 7850 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7851 aix_use_runtimelinking=yes 7852 break 7853 fi 7854 done 7855 ;; 7856 esac 7857 7858 exp_sym_flag='-bexport' 7859 no_entry_flag='-bnoentry' 7860 fi 7861 7862 # When large executables or shared objects are built, AIX ld can 7863 # have problems creating the table of contents. If linking a library 7864 # or program results in "error TOC overflow" add -mminimal-toc to 7865 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7866 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7867 7868 archive_cmds='' 7869 hardcode_direct=yes 7870 hardcode_libdir_separator=':' 7871 link_all_deplibs=yes 7872 7873 if test "$GCC" = yes; then 7874 case $host_os in aix4.[012]|aix4.[012].*) 7875 # We only want to do this on AIX 4.2 and lower, the check 7876 # below for broken collect2 doesn't work under 4.3+ 7877 collect2name=`${CC} -print-prog-name=collect2` 7878 if test -f "$collect2name" && \ 7879 strings "$collect2name" | grep resolve_lib_name >/dev/null 7880 then 7881 # We have reworked collect2 7882 hardcode_direct=yes 7883 else 7884 # We have old collect2 7885 hardcode_direct=unsupported 7886 # It fails to find uninstalled libraries when the uninstalled 7887 # path is not listed in the libpath. Setting hardcode_minus_L 7888 # to unsupported forces relinking 7889 hardcode_minus_L=yes 7890 hardcode_libdir_flag_spec='-L$libdir' 7891 hardcode_libdir_separator= 7892 fi 7893 ;; 7894 esac 7895 shared_flag='-shared' 7896 if test "$aix_use_runtimelinking" = yes; then 7897 shared_flag="$shared_flag "'${wl}-G' 7898 fi 7899 else 7900 # not using gcc 7901 if test "$host_cpu" = ia64; then 7902 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7903 # chokes on -Wl,-G. The following line is correct: 7904 shared_flag='-G' 7905 else 7906 if test "$aix_use_runtimelinking" = yes; then 7907 shared_flag='${wl}-G' 7908 else 7909 shared_flag='${wl}-bM:SRE' 7910 fi 7911 fi 7912 fi 7913 7914 # It seems that -bexpall does not export symbols beginning with 7915 # underscore (_), so it is better to generate a list of symbols to export. 7916 always_export_symbols=yes 7917 if test "$aix_use_runtimelinking" = yes; then 7918 # Warning - without using the other runtime loading flags (-brtl), 7919 # -berok will link without error, but may produce a broken library. 7920 allow_undefined_flag='-berok' 7921 # Determine the default libpath from the value encoded in an empty executable. 7922 cat >conftest.$ac_ext <<_ACEOF 7923/* confdefs.h. */ 7924_ACEOF 7925cat confdefs.h >>conftest.$ac_ext 7926cat >>conftest.$ac_ext <<_ACEOF 7927/* end confdefs.h. */ 7928 7929int 7930main () 7931{ 7932 7933 ; 7934 return 0; 7935} 7936_ACEOF 7937rm -f conftest.$ac_objext conftest$ac_exeext 7938if { (ac_try="$ac_link" 7939case "(($ac_try" in 7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7941 *) ac_try_echo=$ac_try;; 7942esac 7943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7944 (eval "$ac_link") 2>conftest.er1 7945 ac_status=$? 7946 grep -v '^ *+' conftest.er1 >conftest.err 7947 rm -f conftest.er1 7948 cat conftest.err >&5 7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7950 (exit $ac_status); } && { 7951 test -z "$ac_c_werror_flag" || 7952 test ! -s conftest.err 7953 } && test -s conftest$ac_exeext && 7954 $as_test_x conftest$ac_exeext; then 7955 7956aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7957}'` 7958# Check for a 64-bit object if we didn't find anything. 7959if 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; } 7960}'`; fi 7961else 7962 echo "$as_me: failed program was:" >&5 7963sed 's/^/| /' conftest.$ac_ext >&5 7964 7965 7966fi 7967 7968rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7969 conftest$ac_exeext conftest.$ac_ext 7970if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7971 7972 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7973 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" 7974 else 7975 if test "$host_cpu" = ia64; then 7976 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7977 allow_undefined_flag="-z nodefs" 7978 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" 7979 else 7980 # Determine the default libpath from the value encoded in an empty executable. 7981 cat >conftest.$ac_ext <<_ACEOF 7982/* confdefs.h. */ 7983_ACEOF 7984cat confdefs.h >>conftest.$ac_ext 7985cat >>conftest.$ac_ext <<_ACEOF 7986/* end confdefs.h. */ 7987 7988int 7989main () 7990{ 7991 7992 ; 7993 return 0; 7994} 7995_ACEOF 7996rm -f conftest.$ac_objext conftest$ac_exeext 7997if { (ac_try="$ac_link" 7998case "(($ac_try" in 7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8000 *) ac_try_echo=$ac_try;; 8001esac 8002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8003 (eval "$ac_link") 2>conftest.er1 8004 ac_status=$? 8005 grep -v '^ *+' conftest.er1 >conftest.err 8006 rm -f conftest.er1 8007 cat conftest.err >&5 8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8009 (exit $ac_status); } && { 8010 test -z "$ac_c_werror_flag" || 8011 test ! -s conftest.err 8012 } && test -s conftest$ac_exeext && 8013 $as_test_x conftest$ac_exeext; then 8014 8015aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8016}'` 8017# Check for a 64-bit object if we didn't find anything. 8018if 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; } 8019}'`; fi 8020else 8021 echo "$as_me: failed program was:" >&5 8022sed 's/^/| /' conftest.$ac_ext >&5 8023 8024 8025fi 8026 8027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8028 conftest$ac_exeext conftest.$ac_ext 8029if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8030 8031 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8032 # Warning - without using the other run time loading flags, 8033 # -berok will link without error, but may produce a broken library. 8034 no_undefined_flag=' ${wl}-bernotok' 8035 allow_undefined_flag=' ${wl}-berok' 8036 # Exported symbols can be pulled into shared objects from archives 8037 whole_archive_flag_spec='$convenience' 8038 archive_cmds_need_lc=yes 8039 # This is similar to how AIX traditionally builds its shared libraries. 8040 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' 8041 fi 8042 fi 8043 ;; 8044 8045 amigaos*) 8046 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)' 8047 hardcode_libdir_flag_spec='-L$libdir' 8048 hardcode_minus_L=yes 8049 # see comment about different semantics on the GNU ld section 8050 ld_shlibs=no 8051 ;; 8052 8053 bsdi[45]*) 8054 export_dynamic_flag_spec=-rdynamic 8055 ;; 8056 8057 cygwin* | mingw* | pw32*) 8058 # When not using gcc, we currently assume that we are using 8059 # Microsoft Visual C++. 8060 # hardcode_libdir_flag_spec is actually meaningless, as there is 8061 # no search path for DLLs. 8062 hardcode_libdir_flag_spec=' ' 8063 allow_undefined_flag=unsupported 8064 # Tell ltmain to make .lib files, not .a files. 8065 libext=lib 8066 # Tell ltmain to make .dll files, not .so files. 8067 shrext_cmds=".dll" 8068 # FIXME: Setting linknames here is a bad hack. 8069 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8070 # The linker will automatically build a .lib file if we build a DLL. 8071 old_archive_From_new_cmds='true' 8072 # FIXME: Should let the user specify the lib program. 8073 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8074 fix_srcfile_path='`cygpath -w "$srcfile"`' 8075 enable_shared_with_static_runtimes=yes 8076 ;; 8077 8078 darwin* | rhapsody*) 8079 case $host_os in 8080 rhapsody* | darwin1.[012]) 8081 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8082 ;; 8083 *) # Darwin 1.3 on 8084 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8085 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8086 else 8087 case ${MACOSX_DEPLOYMENT_TARGET} in 8088 10.[012]) 8089 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8090 ;; 8091 10.*) 8092 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8093 ;; 8094 esac 8095 fi 8096 ;; 8097 esac 8098 archive_cmds_need_lc=no 8099 hardcode_direct=no 8100 hardcode_automatic=yes 8101 hardcode_shlibpath_var=unsupported 8102 whole_archive_flag_spec='' 8103 link_all_deplibs=yes 8104 if test "$GCC" = yes ; then 8105 output_verbose_link_cmd='echo' 8106 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8107 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8108 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8109 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}' 8110 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}' 8111 else 8112 case $cc_basename in 8113 xlc*) 8114 output_verbose_link_cmd='echo' 8115 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8116 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8117 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8118 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}' 8119 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}' 8120 ;; 8121 *) 8122 ld_shlibs=no 8123 ;; 8124 esac 8125 fi 8126 ;; 8127 8128 dgux*) 8129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8130 hardcode_libdir_flag_spec='-L$libdir' 8131 hardcode_shlibpath_var=no 8132 ;; 8133 8134 freebsd1*) 8135 ld_shlibs=no 8136 ;; 8137 8138 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8139 # support. Future versions do this automatically, but an explicit c++rt0.o 8140 # does not break anything, and helps significantly (at the cost of a little 8141 # extra space). 8142 freebsd2.2*) 8143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8144 hardcode_libdir_flag_spec='-R$libdir' 8145 hardcode_direct=yes 8146 hardcode_shlibpath_var=no 8147 ;; 8148 8149 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8150 freebsd2*) 8151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8152 hardcode_direct=yes 8153 hardcode_minus_L=yes 8154 hardcode_shlibpath_var=no 8155 ;; 8156 8157 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8158 freebsd* | kfreebsd*-gnu | dragonfly*) 8159 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8160 hardcode_libdir_flag_spec='-R$libdir' 8161 hardcode_direct=yes 8162 hardcode_shlibpath_var=no 8163 ;; 8164 8165 hpux9*) 8166 if test "$GCC" = yes; then 8167 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' 8168 else 8169 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' 8170 fi 8171 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8172 hardcode_libdir_separator=: 8173 hardcode_direct=yes 8174 8175 # hardcode_minus_L: Not really in the search PATH, 8176 # but as the default location of the library. 8177 hardcode_minus_L=yes 8178 export_dynamic_flag_spec='${wl}-E' 8179 ;; 8180 8181 hpux10*) 8182 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8183 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8184 else 8185 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8186 fi 8187 if test "$with_gnu_ld" = no; then 8188 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8189 hardcode_libdir_separator=: 8190 8191 hardcode_direct=yes 8192 export_dynamic_flag_spec='${wl}-E' 8193 8194 # hardcode_minus_L: Not really in the search PATH, 8195 # but as the default location of the library. 8196 hardcode_minus_L=yes 8197 fi 8198 ;; 8199 8200 hpux11*) 8201 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8202 case $host_cpu in 8203 hppa*64*) 8204 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8205 ;; 8206 ia64*) 8207 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8208 ;; 8209 *) 8210 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8211 ;; 8212 esac 8213 else 8214 case $host_cpu in 8215 hppa*64*) 8216 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8217 ;; 8218 ia64*) 8219 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8220 ;; 8221 *) 8222 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8223 ;; 8224 esac 8225 fi 8226 if test "$with_gnu_ld" = no; then 8227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8228 hardcode_libdir_separator=: 8229 8230 case $host_cpu in 8231 hppa*64*|ia64*) 8232 hardcode_libdir_flag_spec_ld='+b $libdir' 8233 hardcode_direct=no 8234 hardcode_shlibpath_var=no 8235 ;; 8236 *) 8237 hardcode_direct=yes 8238 export_dynamic_flag_spec='${wl}-E' 8239 8240 # hardcode_minus_L: Not really in the search PATH, 8241 # but as the default location of the library. 8242 hardcode_minus_L=yes 8243 ;; 8244 esac 8245 fi 8246 ;; 8247 8248 irix5* | irix6* | nonstopux*) 8249 if test "$GCC" = yes; then 8250 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' 8251 else 8252 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' 8253 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8254 fi 8255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8256 hardcode_libdir_separator=: 8257 link_all_deplibs=yes 8258 ;; 8259 8260 netbsd*) 8261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8263 else 8264 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8265 fi 8266 hardcode_libdir_flag_spec='-R$libdir' 8267 hardcode_direct=yes 8268 hardcode_shlibpath_var=no 8269 ;; 8270 8271 newsos6) 8272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8273 hardcode_direct=yes 8274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8275 hardcode_libdir_separator=: 8276 hardcode_shlibpath_var=no 8277 ;; 8278 8279 openbsd*) 8280 hardcode_direct=yes 8281 hardcode_shlibpath_var=no 8282 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8283 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8284 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8285 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8286 export_dynamic_flag_spec='${wl}-E' 8287 else 8288 case $host_os in 8289 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8290 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8291 hardcode_libdir_flag_spec='-R$libdir' 8292 ;; 8293 *) 8294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8295 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8296 ;; 8297 esac 8298 fi 8299 ;; 8300 8301 os2*) 8302 hardcode_libdir_flag_spec='-L$libdir' 8303 hardcode_minus_L=yes 8304 allow_undefined_flag=unsupported 8305 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' 8306 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8307 ;; 8308 8309 osf3*) 8310 if test "$GCC" = yes; then 8311 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8312 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' 8313 else 8314 allow_undefined_flag=' -expect_unresolved \*' 8315 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' 8316 fi 8317 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8318 hardcode_libdir_separator=: 8319 ;; 8320 8321 osf4* | osf5*) # as osf3* with the addition of -msym flag 8322 if test "$GCC" = yes; then 8323 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8324 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' 8325 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8326 else 8327 allow_undefined_flag=' -expect_unresolved \*' 8328 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' 8329 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8330 $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' 8331 8332 # Both c and cxx compiler support -rpath directly 8333 hardcode_libdir_flag_spec='-rpath $libdir' 8334 fi 8335 hardcode_libdir_separator=: 8336 ;; 8337 8338 solaris*) 8339 no_undefined_flag=' -z text' 8340 if test "$GCC" = yes; then 8341 wlarc='${wl}' 8342 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8343 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8344 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8345 else 8346 wlarc='' 8347 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8348 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8349 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8350 fi 8351 hardcode_libdir_flag_spec='-R$libdir' 8352 hardcode_shlibpath_var=no 8353 case $host_os in 8354 solaris2.[0-5] | solaris2.[0-5].*) ;; 8355 *) 8356 # The compiler driver will combine linker options so we 8357 # cannot just pass the convience library names through 8358 # without $wl, iff we do not link with $LD. 8359 # Luckily, gcc supports the same syntax we need for Sun Studio. 8360 # Supported since Solaris 2.6 (maybe 2.5.1?) 8361 case $wlarc in 8362 '') 8363 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8364 *) 8365 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' ;; 8366 esac ;; 8367 esac 8368 link_all_deplibs=yes 8369 ;; 8370 8371 sunos4*) 8372 if test "x$host_vendor" = xsequent; then 8373 # Use $CC to link under sequent, because it throws in some extra .o 8374 # files that make .init and .fini sections work. 8375 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8376 else 8377 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8378 fi 8379 hardcode_libdir_flag_spec='-L$libdir' 8380 hardcode_direct=yes 8381 hardcode_minus_L=yes 8382 hardcode_shlibpath_var=no 8383 ;; 8384 8385 sysv4) 8386 case $host_vendor in 8387 sni) 8388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8389 hardcode_direct=yes # is this really true??? 8390 ;; 8391 siemens) 8392 ## LD is ld it makes a PLAMLIB 8393 ## CC just makes a GrossModule. 8394 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8395 reload_cmds='$CC -r -o $output$reload_objs' 8396 hardcode_direct=no 8397 ;; 8398 motorola) 8399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8400 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8401 ;; 8402 esac 8403 runpath_var='LD_RUN_PATH' 8404 hardcode_shlibpath_var=no 8405 ;; 8406 8407 sysv4.3*) 8408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8409 hardcode_shlibpath_var=no 8410 export_dynamic_flag_spec='-Bexport' 8411 ;; 8412 8413 sysv4*MP*) 8414 if test -d /usr/nec; then 8415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8416 hardcode_shlibpath_var=no 8417 runpath_var=LD_RUN_PATH 8418 hardcode_runpath_var=yes 8419 ld_shlibs=yes 8420 fi 8421 ;; 8422 8423 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8424 no_undefined_flag='${wl}-z,text' 8425 archive_cmds_need_lc=no 8426 hardcode_shlibpath_var=no 8427 runpath_var='LD_RUN_PATH' 8428 8429 if test "$GCC" = yes; then 8430 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8431 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8432 else 8433 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8434 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8435 fi 8436 ;; 8437 8438 sysv5* | sco3.2v5* | sco5v6*) 8439 # Note: We can NOT use -z defs as we might desire, because we do not 8440 # link with -lc, and that would cause any symbols used from libc to 8441 # always be unresolved, which means just about no library would 8442 # ever link correctly. If we're not using GNU ld we use -z text 8443 # though, which does catch some bad symbols but isn't as heavy-handed 8444 # as -z defs. 8445 no_undefined_flag='${wl}-z,text' 8446 allow_undefined_flag='${wl}-z,nodefs' 8447 archive_cmds_need_lc=no 8448 hardcode_shlibpath_var=no 8449 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8450 hardcode_libdir_separator=':' 8451 link_all_deplibs=yes 8452 export_dynamic_flag_spec='${wl}-Bexport' 8453 runpath_var='LD_RUN_PATH' 8454 8455 if test "$GCC" = yes; then 8456 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8457 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8458 else 8459 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8460 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8461 fi 8462 ;; 8463 8464 uts4*) 8465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8466 hardcode_libdir_flag_spec='-L$libdir' 8467 hardcode_shlibpath_var=no 8468 ;; 8469 8470 *) 8471 ld_shlibs=no 8472 ;; 8473 esac 8474 fi 8475 8476{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8477echo "${ECHO_T}$ld_shlibs" >&6; } 8478test "$ld_shlibs" = no && can_build_shared=no 8479 8480# 8481# Do we need to explicitly link libc? 8482# 8483case "x$archive_cmds_need_lc" in 8484x|xyes) 8485 # Assume -lc should be added 8486 archive_cmds_need_lc=yes 8487 8488 if test "$enable_shared" = yes && test "$GCC" = yes; then 8489 case $archive_cmds in 8490 *'~'*) 8491 # FIXME: we may have to deal with multi-command sequences. 8492 ;; 8493 '$CC '*) 8494 # Test whether the compiler implicitly links with -lc since on some 8495 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8496 # to ld, don't add -lc before -lgcc. 8497 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8498echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8499 $rm conftest* 8500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8501 8502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8503 (eval $ac_compile) 2>&5 8504 ac_status=$? 8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8506 (exit $ac_status); } 2>conftest.err; then 8507 soname=conftest 8508 lib=conftest 8509 libobjs=conftest.$ac_objext 8510 deplibs= 8511 wl=$lt_prog_compiler_wl 8512 pic_flag=$lt_prog_compiler_pic 8513 compiler_flags=-v 8514 linker_flags=-v 8515 verstring= 8516 output_objdir=. 8517 libname=conftest 8518 lt_save_allow_undefined_flag=$allow_undefined_flag 8519 allow_undefined_flag= 8520 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8521 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8522 ac_status=$? 8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8524 (exit $ac_status); } 8525 then 8526 archive_cmds_need_lc=no 8527 else 8528 archive_cmds_need_lc=yes 8529 fi 8530 allow_undefined_flag=$lt_save_allow_undefined_flag 8531 else 8532 cat conftest.err 1>&5 8533 fi 8534 $rm conftest* 8535 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8536echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8537 ;; 8538 esac 8539 fi 8540 ;; 8541esac 8542 8543{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8544echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8545library_names_spec= 8546libname_spec='lib$name' 8547soname_spec= 8548shrext_cmds=".so" 8549postinstall_cmds= 8550postuninstall_cmds= 8551finish_cmds= 8552finish_eval= 8553shlibpath_var= 8554shlibpath_overrides_runpath=unknown 8555version_type=none 8556dynamic_linker="$host_os ld.so" 8557sys_lib_dlsearch_path_spec="/lib /usr/lib" 8558if test "$GCC" = yes; then 8559 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8560 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8561 # if the path contains ";" then we assume it to be the separator 8562 # otherwise default to the standard path separator (i.e. ":") - it is 8563 # assumed that no part of a normal pathname contains ";" but that should 8564 # okay in the real world where ";" in dirpaths is itself problematic. 8565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8566 else 8567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8568 fi 8569else 8570 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8571fi 8572need_lib_prefix=unknown 8573hardcode_into_libs=no 8574 8575# when you set need_version to no, make sure it does not cause -set_version 8576# flags to be left without arguments 8577need_version=unknown 8578 8579case $host_os in 8580aix3*) 8581 version_type=linux 8582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8583 shlibpath_var=LIBPATH 8584 8585 # AIX 3 has no versioning support, so we append a major version to the name. 8586 soname_spec='${libname}${release}${shared_ext}$major' 8587 ;; 8588 8589aix4* | aix5*) 8590 version_type=linux 8591 need_lib_prefix=no 8592 need_version=no 8593 hardcode_into_libs=yes 8594 if test "$host_cpu" = ia64; then 8595 # AIX 5 supports IA64 8596 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8597 shlibpath_var=LD_LIBRARY_PATH 8598 else 8599 # With GCC up to 2.95.x, collect2 would create an import file 8600 # for dependence libraries. The import file would start with 8601 # the line `#! .'. This would cause the generated library to 8602 # depend on `.', always an invalid library. This was fixed in 8603 # development snapshots of GCC prior to 3.0. 8604 case $host_os in 8605 aix4 | aix4.[01] | aix4.[01].*) 8606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8607 echo ' yes ' 8608 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8609 : 8610 else 8611 can_build_shared=no 8612 fi 8613 ;; 8614 esac 8615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8616 # soname into executable. Probably we can add versioning support to 8617 # collect2, so additional links can be useful in future. 8618 if test "$aix_use_runtimelinking" = yes; then 8619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8620 # instead of lib<name>.a to let people know that these are not 8621 # typical AIX shared libraries. 8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8623 else 8624 # We preserve .a as extension for shared libraries through AIX4.2 8625 # and later when we are not doing run time linking. 8626 library_names_spec='${libname}${release}.a $libname.a' 8627 soname_spec='${libname}${release}${shared_ext}$major' 8628 fi 8629 shlibpath_var=LIBPATH 8630 fi 8631 ;; 8632 8633amigaos*) 8634 library_names_spec='$libname.ixlibrary $libname.a' 8635 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8636 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' 8637 ;; 8638 8639beos*) 8640 library_names_spec='${libname}${shared_ext}' 8641 dynamic_linker="$host_os ld.so" 8642 shlibpath_var=LIBRARY_PATH 8643 ;; 8644 8645bsdi[45]*) 8646 version_type=linux 8647 need_version=no 8648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8649 soname_spec='${libname}${release}${shared_ext}$major' 8650 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8651 shlibpath_var=LD_LIBRARY_PATH 8652 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8653 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8654 # the default ld.so.conf also contains /usr/contrib/lib and 8655 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8656 # libtool to hard-code these into programs 8657 ;; 8658 8659cygwin* | mingw* | pw32*) 8660 version_type=windows 8661 shrext_cmds=".dll" 8662 need_version=no 8663 need_lib_prefix=no 8664 8665 case $GCC,$host_os in 8666 yes,cygwin* | yes,mingw* | yes,pw32*) 8667 library_names_spec='$libname.dll.a' 8668 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8669 postinstall_cmds='base_file=`basename \${file}`~ 8670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8671 dldir=$destdir/`dirname \$dlpath`~ 8672 test -d \$dldir || mkdir -p \$dldir~ 8673 $install_prog $dir/$dlname \$dldir/$dlname~ 8674 chmod a+x \$dldir/$dlname' 8675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8676 dlpath=$dir/\$dldll~ 8677 $rm \$dlpath' 8678 shlibpath_overrides_runpath=yes 8679 8680 case $host_os in 8681 cygwin*) 8682 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8683 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8684 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8685 ;; 8686 mingw*) 8687 # MinGW DLLs use traditional 'lib' prefix 8688 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8689 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8690 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8691 # It is most probably a Windows format PATH printed by 8692 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8693 # path with ; separators, and with drive letters. We can handle the 8694 # drive letters (cygwin fileutils understands them), so leave them, 8695 # especially as we might pass files found there to a mingw objdump, 8696 # which wouldn't understand a cygwinified path. Ahh. 8697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8698 else 8699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8700 fi 8701 ;; 8702 pw32*) 8703 # pw32 DLLs use 'pw' prefix rather than 'lib' 8704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8705 ;; 8706 esac 8707 ;; 8708 8709 *) 8710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8711 ;; 8712 esac 8713 dynamic_linker='Win32 ld.exe' 8714 # FIXME: first we should search . and the directory the executable is in 8715 shlibpath_var=PATH 8716 ;; 8717 8718darwin* | rhapsody*) 8719 dynamic_linker="$host_os dyld" 8720 version_type=darwin 8721 need_lib_prefix=no 8722 need_version=no 8723 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8724 soname_spec='${libname}${release}${major}$shared_ext' 8725 shlibpath_overrides_runpath=yes 8726 shlibpath_var=DYLD_LIBRARY_PATH 8727 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8728 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8729 if test "$GCC" = yes; then 8730 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"` 8731 else 8732 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8733 fi 8734 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8735 ;; 8736 8737dgux*) 8738 version_type=linux 8739 need_lib_prefix=no 8740 need_version=no 8741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8742 soname_spec='${libname}${release}${shared_ext}$major' 8743 shlibpath_var=LD_LIBRARY_PATH 8744 ;; 8745 8746freebsd1*) 8747 dynamic_linker=no 8748 ;; 8749 8750kfreebsd*-gnu) 8751 version_type=linux 8752 need_lib_prefix=no 8753 need_version=no 8754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8755 soname_spec='${libname}${release}${shared_ext}$major' 8756 shlibpath_var=LD_LIBRARY_PATH 8757 shlibpath_overrides_runpath=no 8758 hardcode_into_libs=yes 8759 dynamic_linker='GNU ld.so' 8760 ;; 8761 8762freebsd* | dragonfly*) 8763 # DragonFly does not have aout. When/if they implement a new 8764 # versioning mechanism, adjust this. 8765 if test -x /usr/bin/objformat; then 8766 objformat=`/usr/bin/objformat` 8767 else 8768 case $host_os in 8769 freebsd[123]*) objformat=aout ;; 8770 *) objformat=elf ;; 8771 esac 8772 fi 8773 version_type=freebsd-$objformat 8774 case $version_type in 8775 freebsd-elf*) 8776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8777 need_version=no 8778 need_lib_prefix=no 8779 ;; 8780 freebsd-*) 8781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8782 need_version=yes 8783 ;; 8784 esac 8785 shlibpath_var=LD_LIBRARY_PATH 8786 case $host_os in 8787 freebsd2*) 8788 shlibpath_overrides_runpath=yes 8789 ;; 8790 freebsd3.[01]* | freebsdelf3.[01]*) 8791 shlibpath_overrides_runpath=yes 8792 hardcode_into_libs=yes 8793 ;; 8794 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8795 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8796 shlibpath_overrides_runpath=no 8797 hardcode_into_libs=yes 8798 ;; 8799 freebsd*) # from 4.6 on 8800 shlibpath_overrides_runpath=yes 8801 hardcode_into_libs=yes 8802 ;; 8803 esac 8804 ;; 8805 8806gnu*) 8807 version_type=linux 8808 need_lib_prefix=no 8809 need_version=no 8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8811 soname_spec='${libname}${release}${shared_ext}$major' 8812 shlibpath_var=LD_LIBRARY_PATH 8813 hardcode_into_libs=yes 8814 ;; 8815 8816hpux9* | hpux10* | hpux11*) 8817 # Give a soname corresponding to the major version so that dld.sl refuses to 8818 # link against other versions. 8819 version_type=sunos 8820 need_lib_prefix=no 8821 need_version=no 8822 case $host_cpu in 8823 ia64*) 8824 shrext_cmds='.so' 8825 hardcode_into_libs=yes 8826 dynamic_linker="$host_os dld.so" 8827 shlibpath_var=LD_LIBRARY_PATH 8828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8830 soname_spec='${libname}${release}${shared_ext}$major' 8831 if test "X$HPUX_IA64_MODE" = X32; then 8832 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8833 else 8834 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8835 fi 8836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8837 ;; 8838 hppa*64*) 8839 shrext_cmds='.sl' 8840 hardcode_into_libs=yes 8841 dynamic_linker="$host_os dld.sl" 8842 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8845 soname_spec='${libname}${release}${shared_ext}$major' 8846 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8848 ;; 8849 *) 8850 shrext_cmds='.sl' 8851 dynamic_linker="$host_os dld.sl" 8852 shlibpath_var=SHLIB_PATH 8853 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8855 soname_spec='${libname}${release}${shared_ext}$major' 8856 ;; 8857 esac 8858 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8859 postinstall_cmds='chmod 555 $lib' 8860 ;; 8861 8862interix3*) 8863 version_type=linux 8864 need_lib_prefix=no 8865 need_version=no 8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8867 soname_spec='${libname}${release}${shared_ext}$major' 8868 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8869 shlibpath_var=LD_LIBRARY_PATH 8870 shlibpath_overrides_runpath=no 8871 hardcode_into_libs=yes 8872 ;; 8873 8874irix5* | irix6* | nonstopux*) 8875 case $host_os in 8876 nonstopux*) version_type=nonstopux ;; 8877 *) 8878 if test "$lt_cv_prog_gnu_ld" = yes; then 8879 version_type=linux 8880 else 8881 version_type=irix 8882 fi ;; 8883 esac 8884 need_lib_prefix=no 8885 need_version=no 8886 soname_spec='${libname}${release}${shared_ext}$major' 8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8888 case $host_os in 8889 irix5* | nonstopux*) 8890 libsuff= shlibsuff= 8891 ;; 8892 *) 8893 case $LD in # libtool.m4 will add one of these switches to LD 8894 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8895 libsuff= shlibsuff= libmagic=32-bit;; 8896 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8897 libsuff=32 shlibsuff=N32 libmagic=N32;; 8898 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8899 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8900 *) libsuff= shlibsuff= libmagic=never-match;; 8901 esac 8902 ;; 8903 esac 8904 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8905 shlibpath_overrides_runpath=no 8906 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8907 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8908 hardcode_into_libs=yes 8909 ;; 8910 8911# No shared lib support for Linux oldld, aout, or coff. 8912linux*oldld* | linux*aout* | linux*coff*) 8913 dynamic_linker=no 8914 ;; 8915 8916# This must be Linux ELF. 8917linux*) 8918 version_type=linux 8919 need_lib_prefix=no 8920 need_version=no 8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8922 soname_spec='${libname}${release}${shared_ext}$major' 8923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8924 shlibpath_var=LD_LIBRARY_PATH 8925 shlibpath_overrides_runpath=no 8926 # This implies no fast_install, which is unacceptable. 8927 # Some rework will be needed to allow for fast_install 8928 # before this can be enabled. 8929 hardcode_into_libs=yes 8930 8931 # Append ld.so.conf contents to the search path 8932 if test -f /etc/ld.so.conf; then 8933 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' ' '` 8934 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8935 fi 8936 8937 # We used to test for /lib/ld.so.1 and disable shared libraries on 8938 # powerpc, because MkLinux only supported shared libraries with the 8939 # GNU dynamic linker. Since this was broken with cross compilers, 8940 # most powerpc-linux boxes support dynamic linking these days and 8941 # people can always --disable-shared, the test was removed, and we 8942 # assume the GNU/Linux dynamic linker is in use. 8943 dynamic_linker='GNU/Linux ld.so' 8944 ;; 8945 8946knetbsd*-gnu) 8947 version_type=linux 8948 need_lib_prefix=no 8949 need_version=no 8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8951 soname_spec='${libname}${release}${shared_ext}$major' 8952 shlibpath_var=LD_LIBRARY_PATH 8953 shlibpath_overrides_runpath=no 8954 hardcode_into_libs=yes 8955 dynamic_linker='GNU ld.so' 8956 ;; 8957 8958netbsd*) 8959 version_type=sunos 8960 need_lib_prefix=no 8961 need_version=no 8962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8965 dynamic_linker='NetBSD (a.out) ld.so' 8966 else 8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8968 soname_spec='${libname}${release}${shared_ext}$major' 8969 dynamic_linker='NetBSD ld.elf_so' 8970 fi 8971 shlibpath_var=LD_LIBRARY_PATH 8972 shlibpath_overrides_runpath=yes 8973 hardcode_into_libs=yes 8974 ;; 8975 8976newsos6) 8977 version_type=linux 8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8979 shlibpath_var=LD_LIBRARY_PATH 8980 shlibpath_overrides_runpath=yes 8981 ;; 8982 8983nto-qnx*) 8984 version_type=linux 8985 need_lib_prefix=no 8986 need_version=no 8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8988 soname_spec='${libname}${release}${shared_ext}$major' 8989 shlibpath_var=LD_LIBRARY_PATH 8990 shlibpath_overrides_runpath=yes 8991 ;; 8992 8993openbsd*) 8994 version_type=sunos 8995 sys_lib_dlsearch_path_spec="/usr/lib" 8996 need_lib_prefix=no 8997 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8998 case $host_os in 8999 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9000 *) need_version=no ;; 9001 esac 9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9004 shlibpath_var=LD_LIBRARY_PATH 9005 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9006 case $host_os in 9007 openbsd2.[89] | openbsd2.[89].*) 9008 shlibpath_overrides_runpath=no 9009 ;; 9010 *) 9011 shlibpath_overrides_runpath=yes 9012 ;; 9013 esac 9014 else 9015 shlibpath_overrides_runpath=yes 9016 fi 9017 ;; 9018 9019os2*) 9020 libname_spec='$name' 9021 shrext_cmds=".dll" 9022 need_lib_prefix=no 9023 library_names_spec='$libname${shared_ext} $libname.a' 9024 dynamic_linker='OS/2 ld.exe' 9025 shlibpath_var=LIBPATH 9026 ;; 9027 9028osf3* | osf4* | osf5*) 9029 version_type=osf 9030 need_lib_prefix=no 9031 need_version=no 9032 soname_spec='${libname}${release}${shared_ext}$major' 9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9034 shlibpath_var=LD_LIBRARY_PATH 9035 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9036 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9037 ;; 9038 9039solaris*) 9040 version_type=linux 9041 need_lib_prefix=no 9042 need_version=no 9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9044 soname_spec='${libname}${release}${shared_ext}$major' 9045 shlibpath_var=LD_LIBRARY_PATH 9046 shlibpath_overrides_runpath=yes 9047 hardcode_into_libs=yes 9048 # ldd complains unless libraries are executable 9049 postinstall_cmds='chmod +x $lib' 9050 ;; 9051 9052sunos4*) 9053 version_type=sunos 9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9055 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9056 shlibpath_var=LD_LIBRARY_PATH 9057 shlibpath_overrides_runpath=yes 9058 if test "$with_gnu_ld" = yes; then 9059 need_lib_prefix=no 9060 fi 9061 need_version=yes 9062 ;; 9063 9064sysv4 | sysv4.3*) 9065 version_type=linux 9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9067 soname_spec='${libname}${release}${shared_ext}$major' 9068 shlibpath_var=LD_LIBRARY_PATH 9069 case $host_vendor in 9070 sni) 9071 shlibpath_overrides_runpath=no 9072 need_lib_prefix=no 9073 export_dynamic_flag_spec='${wl}-Blargedynsym' 9074 runpath_var=LD_RUN_PATH 9075 ;; 9076 siemens) 9077 need_lib_prefix=no 9078 ;; 9079 motorola) 9080 need_lib_prefix=no 9081 need_version=no 9082 shlibpath_overrides_runpath=no 9083 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9084 ;; 9085 esac 9086 ;; 9087 9088sysv4*MP*) 9089 if test -d /usr/nec ;then 9090 version_type=linux 9091 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9092 soname_spec='$libname${shared_ext}.$major' 9093 shlibpath_var=LD_LIBRARY_PATH 9094 fi 9095 ;; 9096 9097sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9098 version_type=freebsd-elf 9099 need_lib_prefix=no 9100 need_version=no 9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9102 soname_spec='${libname}${release}${shared_ext}$major' 9103 shlibpath_var=LD_LIBRARY_PATH 9104 hardcode_into_libs=yes 9105 if test "$with_gnu_ld" = yes; then 9106 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9107 shlibpath_overrides_runpath=no 9108 else 9109 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9110 shlibpath_overrides_runpath=yes 9111 case $host_os in 9112 sco3.2v5*) 9113 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9114 ;; 9115 esac 9116 fi 9117 sys_lib_dlsearch_path_spec='/usr/lib' 9118 ;; 9119 9120uts4*) 9121 version_type=linux 9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9123 soname_spec='${libname}${release}${shared_ext}$major' 9124 shlibpath_var=LD_LIBRARY_PATH 9125 ;; 9126 9127*) 9128 dynamic_linker=no 9129 ;; 9130esac 9131{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9132echo "${ECHO_T}$dynamic_linker" >&6; } 9133test "$dynamic_linker" = no && can_build_shared=no 9134 9135variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9136if test "$GCC" = yes; then 9137 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9138fi 9139 9140{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9141echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9142hardcode_action= 9143if test -n "$hardcode_libdir_flag_spec" || \ 9144 test -n "$runpath_var" || \ 9145 test "X$hardcode_automatic" = "Xyes" ; then 9146 9147 # We can hardcode non-existant directories. 9148 if test "$hardcode_direct" != no && 9149 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9150 # have to relink, otherwise we might link with an installed library 9151 # when we should be linking with a yet-to-be-installed one 9152 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9153 test "$hardcode_minus_L" != no; then 9154 # Linking always hardcodes the temporary library directory. 9155 hardcode_action=relink 9156 else 9157 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9158 hardcode_action=immediate 9159 fi 9160else 9161 # We cannot hardcode anything, or else we can only hardcode existing 9162 # directories. 9163 hardcode_action=unsupported 9164fi 9165{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9166echo "${ECHO_T}$hardcode_action" >&6; } 9167 9168if test "$hardcode_action" = relink; then 9169 # Fast installation is not supported 9170 enable_fast_install=no 9171elif test "$shlibpath_overrides_runpath" = yes || 9172 test "$enable_shared" = no; then 9173 # Fast installation is not necessary 9174 enable_fast_install=needless 9175fi 9176 9177striplib= 9178old_striplib= 9179{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9180echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9181if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9182 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9183 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9184 { echo "$as_me:$LINENO: result: yes" >&5 9185echo "${ECHO_T}yes" >&6; } 9186else 9187# FIXME - insert some real tests, host_os isn't really good enough 9188 case $host_os in 9189 darwin*) 9190 if test -n "$STRIP" ; then 9191 striplib="$STRIP -x" 9192 { echo "$as_me:$LINENO: result: yes" >&5 9193echo "${ECHO_T}yes" >&6; } 9194 else 9195 { echo "$as_me:$LINENO: result: no" >&5 9196echo "${ECHO_T}no" >&6; } 9197fi 9198 ;; 9199 *) 9200 { echo "$as_me:$LINENO: result: no" >&5 9201echo "${ECHO_T}no" >&6; } 9202 ;; 9203 esac 9204fi 9205 9206if test "x$enable_dlopen" != xyes; then 9207 enable_dlopen=unknown 9208 enable_dlopen_self=unknown 9209 enable_dlopen_self_static=unknown 9210else 9211 lt_cv_dlopen=no 9212 lt_cv_dlopen_libs= 9213 9214 case $host_os in 9215 beos*) 9216 lt_cv_dlopen="load_add_on" 9217 lt_cv_dlopen_libs= 9218 lt_cv_dlopen_self=yes 9219 ;; 9220 9221 mingw* | pw32*) 9222 lt_cv_dlopen="LoadLibrary" 9223 lt_cv_dlopen_libs= 9224 ;; 9225 9226 cygwin*) 9227 lt_cv_dlopen="dlopen" 9228 lt_cv_dlopen_libs= 9229 ;; 9230 9231 darwin*) 9232 # if libdl is installed we need to link against it 9233 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9234echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9235if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9236 echo $ECHO_N "(cached) $ECHO_C" >&6 9237else 9238 ac_check_lib_save_LIBS=$LIBS 9239LIBS="-ldl $LIBS" 9240cat >conftest.$ac_ext <<_ACEOF 9241/* confdefs.h. */ 9242_ACEOF 9243cat confdefs.h >>conftest.$ac_ext 9244cat >>conftest.$ac_ext <<_ACEOF 9245/* end confdefs.h. */ 9246 9247/* Override any GCC internal prototype to avoid an error. 9248 Use char because int might match the return type of a GCC 9249 builtin and then its argument prototype would still apply. */ 9250#ifdef __cplusplus 9251extern "C" 9252#endif 9253char dlopen (); 9254int 9255main () 9256{ 9257return dlopen (); 9258 ; 9259 return 0; 9260} 9261_ACEOF 9262rm -f conftest.$ac_objext conftest$ac_exeext 9263if { (ac_try="$ac_link" 9264case "(($ac_try" in 9265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9266 *) ac_try_echo=$ac_try;; 9267esac 9268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9269 (eval "$ac_link") 2>conftest.er1 9270 ac_status=$? 9271 grep -v '^ *+' conftest.er1 >conftest.err 9272 rm -f conftest.er1 9273 cat conftest.err >&5 9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9275 (exit $ac_status); } && { 9276 test -z "$ac_c_werror_flag" || 9277 test ! -s conftest.err 9278 } && test -s conftest$ac_exeext && 9279 $as_test_x conftest$ac_exeext; then 9280 ac_cv_lib_dl_dlopen=yes 9281else 9282 echo "$as_me: failed program was:" >&5 9283sed 's/^/| /' conftest.$ac_ext >&5 9284 9285 ac_cv_lib_dl_dlopen=no 9286fi 9287 9288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9289 conftest$ac_exeext conftest.$ac_ext 9290LIBS=$ac_check_lib_save_LIBS 9291fi 9292{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9293echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9294if test $ac_cv_lib_dl_dlopen = yes; then 9295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9296else 9297 9298 lt_cv_dlopen="dyld" 9299 lt_cv_dlopen_libs= 9300 lt_cv_dlopen_self=yes 9301 9302fi 9303 9304 ;; 9305 9306 *) 9307 { echo "$as_me:$LINENO: checking for shl_load" >&5 9308echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9309if test "${ac_cv_func_shl_load+set}" = set; then 9310 echo $ECHO_N "(cached) $ECHO_C" >&6 9311else 9312 cat >conftest.$ac_ext <<_ACEOF 9313/* confdefs.h. */ 9314_ACEOF 9315cat confdefs.h >>conftest.$ac_ext 9316cat >>conftest.$ac_ext <<_ACEOF 9317/* end confdefs.h. */ 9318/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9319 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9320#define shl_load innocuous_shl_load 9321 9322/* System header to define __stub macros and hopefully few prototypes, 9323 which can conflict with char shl_load (); below. 9324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9325 <limits.h> exists even on freestanding compilers. */ 9326 9327#ifdef __STDC__ 9328# include <limits.h> 9329#else 9330# include <assert.h> 9331#endif 9332 9333#undef shl_load 9334 9335/* Override any GCC internal prototype to avoid an error. 9336 Use char because int might match the return type of a GCC 9337 builtin and then its argument prototype would still apply. */ 9338#ifdef __cplusplus 9339extern "C" 9340#endif 9341char shl_load (); 9342/* The GNU C library defines this for functions which it implements 9343 to always fail with ENOSYS. Some functions are actually named 9344 something starting with __ and the normal name is an alias. */ 9345#if defined __stub_shl_load || defined __stub___shl_load 9346choke me 9347#endif 9348 9349int 9350main () 9351{ 9352return shl_load (); 9353 ; 9354 return 0; 9355} 9356_ACEOF 9357rm -f conftest.$ac_objext conftest$ac_exeext 9358if { (ac_try="$ac_link" 9359case "(($ac_try" in 9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9361 *) ac_try_echo=$ac_try;; 9362esac 9363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9364 (eval "$ac_link") 2>conftest.er1 9365 ac_status=$? 9366 grep -v '^ *+' conftest.er1 >conftest.err 9367 rm -f conftest.er1 9368 cat conftest.err >&5 9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9370 (exit $ac_status); } && { 9371 test -z "$ac_c_werror_flag" || 9372 test ! -s conftest.err 9373 } && test -s conftest$ac_exeext && 9374 $as_test_x conftest$ac_exeext; then 9375 ac_cv_func_shl_load=yes 9376else 9377 echo "$as_me: failed program was:" >&5 9378sed 's/^/| /' conftest.$ac_ext >&5 9379 9380 ac_cv_func_shl_load=no 9381fi 9382 9383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9384 conftest$ac_exeext conftest.$ac_ext 9385fi 9386{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9387echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9388if test $ac_cv_func_shl_load = yes; then 9389 lt_cv_dlopen="shl_load" 9390else 9391 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9392echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9393if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9394 echo $ECHO_N "(cached) $ECHO_C" >&6 9395else 9396 ac_check_lib_save_LIBS=$LIBS 9397LIBS="-ldld $LIBS" 9398cat >conftest.$ac_ext <<_ACEOF 9399/* confdefs.h. */ 9400_ACEOF 9401cat confdefs.h >>conftest.$ac_ext 9402cat >>conftest.$ac_ext <<_ACEOF 9403/* end confdefs.h. */ 9404 9405/* Override any GCC internal prototype to avoid an error. 9406 Use char because int might match the return type of a GCC 9407 builtin and then its argument prototype would still apply. */ 9408#ifdef __cplusplus 9409extern "C" 9410#endif 9411char shl_load (); 9412int 9413main () 9414{ 9415return shl_load (); 9416 ; 9417 return 0; 9418} 9419_ACEOF 9420rm -f conftest.$ac_objext conftest$ac_exeext 9421if { (ac_try="$ac_link" 9422case "(($ac_try" in 9423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9424 *) ac_try_echo=$ac_try;; 9425esac 9426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9427 (eval "$ac_link") 2>conftest.er1 9428 ac_status=$? 9429 grep -v '^ *+' conftest.er1 >conftest.err 9430 rm -f conftest.er1 9431 cat conftest.err >&5 9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9433 (exit $ac_status); } && { 9434 test -z "$ac_c_werror_flag" || 9435 test ! -s conftest.err 9436 } && test -s conftest$ac_exeext && 9437 $as_test_x conftest$ac_exeext; then 9438 ac_cv_lib_dld_shl_load=yes 9439else 9440 echo "$as_me: failed program was:" >&5 9441sed 's/^/| /' conftest.$ac_ext >&5 9442 9443 ac_cv_lib_dld_shl_load=no 9444fi 9445 9446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9447 conftest$ac_exeext conftest.$ac_ext 9448LIBS=$ac_check_lib_save_LIBS 9449fi 9450{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9451echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9452if test $ac_cv_lib_dld_shl_load = yes; then 9453 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9454else 9455 { echo "$as_me:$LINENO: checking for dlopen" >&5 9456echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9457if test "${ac_cv_func_dlopen+set}" = set; then 9458 echo $ECHO_N "(cached) $ECHO_C" >&6 9459else 9460 cat >conftest.$ac_ext <<_ACEOF 9461/* confdefs.h. */ 9462_ACEOF 9463cat confdefs.h >>conftest.$ac_ext 9464cat >>conftest.$ac_ext <<_ACEOF 9465/* end confdefs.h. */ 9466/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9467 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9468#define dlopen innocuous_dlopen 9469 9470/* System header to define __stub macros and hopefully few prototypes, 9471 which can conflict with char dlopen (); below. 9472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9473 <limits.h> exists even on freestanding compilers. */ 9474 9475#ifdef __STDC__ 9476# include <limits.h> 9477#else 9478# include <assert.h> 9479#endif 9480 9481#undef dlopen 9482 9483/* Override any GCC internal prototype to avoid an error. 9484 Use char because int might match the return type of a GCC 9485 builtin and then its argument prototype would still apply. */ 9486#ifdef __cplusplus 9487extern "C" 9488#endif 9489char dlopen (); 9490/* The GNU C library defines this for functions which it implements 9491 to always fail with ENOSYS. Some functions are actually named 9492 something starting with __ and the normal name is an alias. */ 9493#if defined __stub_dlopen || defined __stub___dlopen 9494choke me 9495#endif 9496 9497int 9498main () 9499{ 9500return dlopen (); 9501 ; 9502 return 0; 9503} 9504_ACEOF 9505rm -f conftest.$ac_objext conftest$ac_exeext 9506if { (ac_try="$ac_link" 9507case "(($ac_try" in 9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9509 *) ac_try_echo=$ac_try;; 9510esac 9511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9512 (eval "$ac_link") 2>conftest.er1 9513 ac_status=$? 9514 grep -v '^ *+' conftest.er1 >conftest.err 9515 rm -f conftest.er1 9516 cat conftest.err >&5 9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9518 (exit $ac_status); } && { 9519 test -z "$ac_c_werror_flag" || 9520 test ! -s conftest.err 9521 } && test -s conftest$ac_exeext && 9522 $as_test_x conftest$ac_exeext; then 9523 ac_cv_func_dlopen=yes 9524else 9525 echo "$as_me: failed program was:" >&5 9526sed 's/^/| /' conftest.$ac_ext >&5 9527 9528 ac_cv_func_dlopen=no 9529fi 9530 9531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9532 conftest$ac_exeext conftest.$ac_ext 9533fi 9534{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9535echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9536if test $ac_cv_func_dlopen = yes; then 9537 lt_cv_dlopen="dlopen" 9538else 9539 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9540echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9541if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9542 echo $ECHO_N "(cached) $ECHO_C" >&6 9543else 9544 ac_check_lib_save_LIBS=$LIBS 9545LIBS="-ldl $LIBS" 9546cat >conftest.$ac_ext <<_ACEOF 9547/* confdefs.h. */ 9548_ACEOF 9549cat confdefs.h >>conftest.$ac_ext 9550cat >>conftest.$ac_ext <<_ACEOF 9551/* end confdefs.h. */ 9552 9553/* Override any GCC internal prototype to avoid an error. 9554 Use char because int might match the return type of a GCC 9555 builtin and then its argument prototype would still apply. */ 9556#ifdef __cplusplus 9557extern "C" 9558#endif 9559char dlopen (); 9560int 9561main () 9562{ 9563return dlopen (); 9564 ; 9565 return 0; 9566} 9567_ACEOF 9568rm -f conftest.$ac_objext conftest$ac_exeext 9569if { (ac_try="$ac_link" 9570case "(($ac_try" in 9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9572 *) ac_try_echo=$ac_try;; 9573esac 9574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9575 (eval "$ac_link") 2>conftest.er1 9576 ac_status=$? 9577 grep -v '^ *+' conftest.er1 >conftest.err 9578 rm -f conftest.er1 9579 cat conftest.err >&5 9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9581 (exit $ac_status); } && { 9582 test -z "$ac_c_werror_flag" || 9583 test ! -s conftest.err 9584 } && test -s conftest$ac_exeext && 9585 $as_test_x conftest$ac_exeext; then 9586 ac_cv_lib_dl_dlopen=yes 9587else 9588 echo "$as_me: failed program was:" >&5 9589sed 's/^/| /' conftest.$ac_ext >&5 9590 9591 ac_cv_lib_dl_dlopen=no 9592fi 9593 9594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9595 conftest$ac_exeext conftest.$ac_ext 9596LIBS=$ac_check_lib_save_LIBS 9597fi 9598{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9599echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9600if test $ac_cv_lib_dl_dlopen = yes; then 9601 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9602else 9603 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9604echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9605if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9606 echo $ECHO_N "(cached) $ECHO_C" >&6 9607else 9608 ac_check_lib_save_LIBS=$LIBS 9609LIBS="-lsvld $LIBS" 9610cat >conftest.$ac_ext <<_ACEOF 9611/* confdefs.h. */ 9612_ACEOF 9613cat confdefs.h >>conftest.$ac_ext 9614cat >>conftest.$ac_ext <<_ACEOF 9615/* end confdefs.h. */ 9616 9617/* Override any GCC internal prototype to avoid an error. 9618 Use char because int might match the return type of a GCC 9619 builtin and then its argument prototype would still apply. */ 9620#ifdef __cplusplus 9621extern "C" 9622#endif 9623char dlopen (); 9624int 9625main () 9626{ 9627return dlopen (); 9628 ; 9629 return 0; 9630} 9631_ACEOF 9632rm -f conftest.$ac_objext conftest$ac_exeext 9633if { (ac_try="$ac_link" 9634case "(($ac_try" in 9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9636 *) ac_try_echo=$ac_try;; 9637esac 9638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9639 (eval "$ac_link") 2>conftest.er1 9640 ac_status=$? 9641 grep -v '^ *+' conftest.er1 >conftest.err 9642 rm -f conftest.er1 9643 cat conftest.err >&5 9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9645 (exit $ac_status); } && { 9646 test -z "$ac_c_werror_flag" || 9647 test ! -s conftest.err 9648 } && test -s conftest$ac_exeext && 9649 $as_test_x conftest$ac_exeext; then 9650 ac_cv_lib_svld_dlopen=yes 9651else 9652 echo "$as_me: failed program was:" >&5 9653sed 's/^/| /' conftest.$ac_ext >&5 9654 9655 ac_cv_lib_svld_dlopen=no 9656fi 9657 9658rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9659 conftest$ac_exeext conftest.$ac_ext 9660LIBS=$ac_check_lib_save_LIBS 9661fi 9662{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9663echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9664if test $ac_cv_lib_svld_dlopen = yes; then 9665 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9666else 9667 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9668echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9669if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9670 echo $ECHO_N "(cached) $ECHO_C" >&6 9671else 9672 ac_check_lib_save_LIBS=$LIBS 9673LIBS="-ldld $LIBS" 9674cat >conftest.$ac_ext <<_ACEOF 9675/* confdefs.h. */ 9676_ACEOF 9677cat confdefs.h >>conftest.$ac_ext 9678cat >>conftest.$ac_ext <<_ACEOF 9679/* end confdefs.h. */ 9680 9681/* Override any GCC internal prototype to avoid an error. 9682 Use char because int might match the return type of a GCC 9683 builtin and then its argument prototype would still apply. */ 9684#ifdef __cplusplus 9685extern "C" 9686#endif 9687char dld_link (); 9688int 9689main () 9690{ 9691return dld_link (); 9692 ; 9693 return 0; 9694} 9695_ACEOF 9696rm -f conftest.$ac_objext conftest$ac_exeext 9697if { (ac_try="$ac_link" 9698case "(($ac_try" in 9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9700 *) ac_try_echo=$ac_try;; 9701esac 9702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9703 (eval "$ac_link") 2>conftest.er1 9704 ac_status=$? 9705 grep -v '^ *+' conftest.er1 >conftest.err 9706 rm -f conftest.er1 9707 cat conftest.err >&5 9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9709 (exit $ac_status); } && { 9710 test -z "$ac_c_werror_flag" || 9711 test ! -s conftest.err 9712 } && test -s conftest$ac_exeext && 9713 $as_test_x conftest$ac_exeext; then 9714 ac_cv_lib_dld_dld_link=yes 9715else 9716 echo "$as_me: failed program was:" >&5 9717sed 's/^/| /' conftest.$ac_ext >&5 9718 9719 ac_cv_lib_dld_dld_link=no 9720fi 9721 9722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9723 conftest$ac_exeext conftest.$ac_ext 9724LIBS=$ac_check_lib_save_LIBS 9725fi 9726{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9727echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9728if test $ac_cv_lib_dld_dld_link = yes; then 9729 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9730fi 9731 9732 9733fi 9734 9735 9736fi 9737 9738 9739fi 9740 9741 9742fi 9743 9744 9745fi 9746 9747 ;; 9748 esac 9749 9750 if test "x$lt_cv_dlopen" != xno; then 9751 enable_dlopen=yes 9752 else 9753 enable_dlopen=no 9754 fi 9755 9756 case $lt_cv_dlopen in 9757 dlopen) 9758 save_CPPFLAGS="$CPPFLAGS" 9759 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9760 9761 save_LDFLAGS="$LDFLAGS" 9762 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9763 9764 save_LIBS="$LIBS" 9765 LIBS="$lt_cv_dlopen_libs $LIBS" 9766 9767 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9768echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9769if test "${lt_cv_dlopen_self+set}" = set; then 9770 echo $ECHO_N "(cached) $ECHO_C" >&6 9771else 9772 if test "$cross_compiling" = yes; then : 9773 lt_cv_dlopen_self=cross 9774else 9775 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9776 lt_status=$lt_dlunknown 9777 cat > conftest.$ac_ext <<EOF 9778#line 9778 "configure" 9779#include "confdefs.h" 9780 9781#if HAVE_DLFCN_H 9782#include <dlfcn.h> 9783#endif 9784 9785#include <stdio.h> 9786 9787#ifdef RTLD_GLOBAL 9788# define LT_DLGLOBAL RTLD_GLOBAL 9789#else 9790# ifdef DL_GLOBAL 9791# define LT_DLGLOBAL DL_GLOBAL 9792# else 9793# define LT_DLGLOBAL 0 9794# endif 9795#endif 9796 9797/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9798 find out it does not work in some platform. */ 9799#ifndef LT_DLLAZY_OR_NOW 9800# ifdef RTLD_LAZY 9801# define LT_DLLAZY_OR_NOW RTLD_LAZY 9802# else 9803# ifdef DL_LAZY 9804# define LT_DLLAZY_OR_NOW DL_LAZY 9805# else 9806# ifdef RTLD_NOW 9807# define LT_DLLAZY_OR_NOW RTLD_NOW 9808# else 9809# ifdef DL_NOW 9810# define LT_DLLAZY_OR_NOW DL_NOW 9811# else 9812# define LT_DLLAZY_OR_NOW 0 9813# endif 9814# endif 9815# endif 9816# endif 9817#endif 9818 9819#ifdef __cplusplus 9820extern "C" void exit (int); 9821#endif 9822 9823void fnord() { int i=42;} 9824int main () 9825{ 9826 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9827 int status = $lt_dlunknown; 9828 9829 if (self) 9830 { 9831 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9832 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9833 /* dlclose (self); */ 9834 } 9835 else 9836 puts (dlerror ()); 9837 9838 exit (status); 9839} 9840EOF 9841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9842 (eval $ac_link) 2>&5 9843 ac_status=$? 9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9845 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9846 (./conftest; exit; ) >&5 2>/dev/null 9847 lt_status=$? 9848 case x$lt_status in 9849 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9850 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9851 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9852 esac 9853 else : 9854 # compilation failed 9855 lt_cv_dlopen_self=no 9856 fi 9857fi 9858rm -fr conftest* 9859 9860 9861fi 9862{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9863echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9864 9865 if test "x$lt_cv_dlopen_self" = xyes; then 9866 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9867 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9868echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9869if test "${lt_cv_dlopen_self_static+set}" = set; then 9870 echo $ECHO_N "(cached) $ECHO_C" >&6 9871else 9872 if test "$cross_compiling" = yes; then : 9873 lt_cv_dlopen_self_static=cross 9874else 9875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9876 lt_status=$lt_dlunknown 9877 cat > conftest.$ac_ext <<EOF 9878#line 9878 "configure" 9879#include "confdefs.h" 9880 9881#if HAVE_DLFCN_H 9882#include <dlfcn.h> 9883#endif 9884 9885#include <stdio.h> 9886 9887#ifdef RTLD_GLOBAL 9888# define LT_DLGLOBAL RTLD_GLOBAL 9889#else 9890# ifdef DL_GLOBAL 9891# define LT_DLGLOBAL DL_GLOBAL 9892# else 9893# define LT_DLGLOBAL 0 9894# endif 9895#endif 9896 9897/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9898 find out it does not work in some platform. */ 9899#ifndef LT_DLLAZY_OR_NOW 9900# ifdef RTLD_LAZY 9901# define LT_DLLAZY_OR_NOW RTLD_LAZY 9902# else 9903# ifdef DL_LAZY 9904# define LT_DLLAZY_OR_NOW DL_LAZY 9905# else 9906# ifdef RTLD_NOW 9907# define LT_DLLAZY_OR_NOW RTLD_NOW 9908# else 9909# ifdef DL_NOW 9910# define LT_DLLAZY_OR_NOW DL_NOW 9911# else 9912# define LT_DLLAZY_OR_NOW 0 9913# endif 9914# endif 9915# endif 9916# endif 9917#endif 9918 9919#ifdef __cplusplus 9920extern "C" void exit (int); 9921#endif 9922 9923void fnord() { int i=42;} 9924int main () 9925{ 9926 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9927 int status = $lt_dlunknown; 9928 9929 if (self) 9930 { 9931 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9932 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9933 /* dlclose (self); */ 9934 } 9935 else 9936 puts (dlerror ()); 9937 9938 exit (status); 9939} 9940EOF 9941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9942 (eval $ac_link) 2>&5 9943 ac_status=$? 9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9945 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9946 (./conftest; exit; ) >&5 2>/dev/null 9947 lt_status=$? 9948 case x$lt_status in 9949 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9950 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9951 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9952 esac 9953 else : 9954 # compilation failed 9955 lt_cv_dlopen_self_static=no 9956 fi 9957fi 9958rm -fr conftest* 9959 9960 9961fi 9962{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9963echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9964 fi 9965 9966 CPPFLAGS="$save_CPPFLAGS" 9967 LDFLAGS="$save_LDFLAGS" 9968 LIBS="$save_LIBS" 9969 ;; 9970 esac 9971 9972 case $lt_cv_dlopen_self in 9973 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9974 *) enable_dlopen_self=unknown ;; 9975 esac 9976 9977 case $lt_cv_dlopen_self_static in 9978 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9979 *) enable_dlopen_self_static=unknown ;; 9980 esac 9981fi 9982 9983 9984# Report which library types will actually be built 9985{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9986echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 9987{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 9988echo "${ECHO_T}$can_build_shared" >&6; } 9989 9990{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9991echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 9992test "$can_build_shared" = "no" && enable_shared=no 9993 9994# On AIX, shared libraries and static libraries use the same namespace, and 9995# are all built from PIC. 9996case $host_os in 9997aix3*) 9998 test "$enable_shared" = yes && enable_static=no 9999 if test -n "$RANLIB"; then 10000 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10001 postinstall_cmds='$RANLIB $lib' 10002 fi 10003 ;; 10004 10005aix4* | aix5*) 10006 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10007 test "$enable_shared" = yes && enable_static=no 10008 fi 10009 ;; 10010esac 10011{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10012echo "${ECHO_T}$enable_shared" >&6; } 10013 10014{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10015echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10016# Make sure either enable_shared or enable_static is yes. 10017test "$enable_shared" = yes || enable_static=yes 10018{ echo "$as_me:$LINENO: result: $enable_static" >&5 10019echo "${ECHO_T}$enable_static" >&6; } 10020 10021# The else clause should only fire when bootstrapping the 10022# libtool distribution, otherwise you forgot to ship ltmain.sh 10023# with your package, and you will get complaints that there are 10024# no rules to generate ltmain.sh. 10025if test -f "$ltmain"; then 10026 # See if we are running on zsh, and set the options which allow our commands through 10027 # without removal of \ escapes. 10028 if test -n "${ZSH_VERSION+set}" ; then 10029 setopt NO_GLOB_SUBST 10030 fi 10031 # Now quote all the things that may contain metacharacters while being 10032 # careful not to overquote the AC_SUBSTed values. We take copies of the 10033 # variables and quote the copies for generation of the libtool script. 10034 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10035 SED SHELL STRIP \ 10036 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10037 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10038 deplibs_check_method reload_flag reload_cmds need_locks \ 10039 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10040 lt_cv_sys_global_symbol_to_c_name_address \ 10041 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10042 old_postinstall_cmds old_postuninstall_cmds \ 10043 compiler \ 10044 CC \ 10045 LD \ 10046 lt_prog_compiler_wl \ 10047 lt_prog_compiler_pic \ 10048 lt_prog_compiler_static \ 10049 lt_prog_compiler_no_builtin_flag \ 10050 export_dynamic_flag_spec \ 10051 thread_safe_flag_spec \ 10052 whole_archive_flag_spec \ 10053 enable_shared_with_static_runtimes \ 10054 old_archive_cmds \ 10055 old_archive_from_new_cmds \ 10056 predep_objects \ 10057 postdep_objects \ 10058 predeps \ 10059 postdeps \ 10060 compiler_lib_search_path \ 10061 archive_cmds \ 10062 archive_expsym_cmds \ 10063 postinstall_cmds \ 10064 postuninstall_cmds \ 10065 old_archive_from_expsyms_cmds \ 10066 allow_undefined_flag \ 10067 no_undefined_flag \ 10068 export_symbols_cmds \ 10069 hardcode_libdir_flag_spec \ 10070 hardcode_libdir_flag_spec_ld \ 10071 hardcode_libdir_separator \ 10072 hardcode_automatic \ 10073 module_cmds \ 10074 module_expsym_cmds \ 10075 lt_cv_prog_compiler_c_o \ 10076 exclude_expsyms \ 10077 include_expsyms; do 10078 10079 case $var in 10080 old_archive_cmds | \ 10081 old_archive_from_new_cmds | \ 10082 archive_cmds | \ 10083 archive_expsym_cmds | \ 10084 module_cmds | \ 10085 module_expsym_cmds | \ 10086 old_archive_from_expsyms_cmds | \ 10087 export_symbols_cmds | \ 10088 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10089 postinstall_cmds | postuninstall_cmds | \ 10090 old_postinstall_cmds | old_postuninstall_cmds | \ 10091 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10092 # Double-quote double-evaled strings. 10093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10094 ;; 10095 *) 10096 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10097 ;; 10098 esac 10099 done 10100 10101 case $lt_echo in 10102 *'\$0 --fallback-echo"') 10103 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10104 ;; 10105 esac 10106 10107cfgfile="${ofile}T" 10108 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10109 $rm -f "$cfgfile" 10110 { echo "$as_me:$LINENO: creating $ofile" >&5 10111echo "$as_me: creating $ofile" >&6;} 10112 10113 cat <<__EOF__ >> "$cfgfile" 10114#! $SHELL 10115 10116# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10117# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10118# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10119# 10120# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10121# Free Software Foundation, Inc. 10122# 10123# This file is part of GNU Libtool: 10124# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10125# 10126# This program is free software; you can redistribute it and/or modify 10127# it under the terms of the GNU General Public License as published by 10128# the Free Software Foundation; either version 2 of the License, or 10129# (at your option) any later version. 10130# 10131# This program is distributed in the hope that it will be useful, but 10132# WITHOUT ANY WARRANTY; without even the implied warranty of 10133# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10134# General Public License for more details. 10135# 10136# You should have received a copy of the GNU General Public License 10137# along with this program; if not, write to the Free Software 10138# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10139# 10140# As a special exception to the GNU General Public License, if you 10141# distribute this file as part of a program that contains a 10142# configuration script generated by Autoconf, you may include it under 10143# the same distribution terms that you use for the rest of that program. 10144 10145# A sed program that does not truncate output. 10146SED=$lt_SED 10147 10148# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10149Xsed="$SED -e 1s/^X//" 10150 10151# The HP-UX ksh and POSIX shell print the target directory to stdout 10152# if CDPATH is set. 10153(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10154 10155# The names of the tagged configurations supported by this script. 10156available_tags= 10157 10158# ### BEGIN LIBTOOL CONFIG 10159 10160# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10161 10162# Shell to use when invoking shell scripts. 10163SHELL=$lt_SHELL 10164 10165# Whether or not to build shared libraries. 10166build_libtool_libs=$enable_shared 10167 10168# Whether or not to build static libraries. 10169build_old_libs=$enable_static 10170 10171# Whether or not to add -lc for building shared libraries. 10172build_libtool_need_lc=$archive_cmds_need_lc 10173 10174# Whether or not to disallow shared libs when runtime libs are static 10175allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10176 10177# Whether or not to optimize for fast installation. 10178fast_install=$enable_fast_install 10179 10180# The host system. 10181host_alias=$host_alias 10182host=$host 10183host_os=$host_os 10184 10185# The build system. 10186build_alias=$build_alias 10187build=$build 10188build_os=$build_os 10189 10190# An echo program that does not interpret backslashes. 10191echo=$lt_echo 10192 10193# The archiver. 10194AR=$lt_AR 10195AR_FLAGS=$lt_AR_FLAGS 10196 10197# A C compiler. 10198LTCC=$lt_LTCC 10199 10200# LTCC compiler flags. 10201LTCFLAGS=$lt_LTCFLAGS 10202 10203# A language-specific compiler. 10204CC=$lt_compiler 10205 10206# Is the compiler the GNU C compiler? 10207with_gcc=$GCC 10208 10209# An ERE matcher. 10210EGREP=$lt_EGREP 10211 10212# The linker used to build libraries. 10213LD=$lt_LD 10214 10215# Whether we need hard or soft links. 10216LN_S=$lt_LN_S 10217 10218# A BSD-compatible nm program. 10219NM=$lt_NM 10220 10221# A symbol stripping program 10222STRIP=$lt_STRIP 10223 10224# Used to examine libraries when file_magic_cmd begins "file" 10225MAGIC_CMD=$MAGIC_CMD 10226 10227# Used on cygwin: DLL creation program. 10228DLLTOOL="$DLLTOOL" 10229 10230# Used on cygwin: object dumper. 10231OBJDUMP="$OBJDUMP" 10232 10233# Used on cygwin: assembler. 10234AS="$AS" 10235 10236# The name of the directory that contains temporary libtool files. 10237objdir=$objdir 10238 10239# How to create reloadable object files. 10240reload_flag=$lt_reload_flag 10241reload_cmds=$lt_reload_cmds 10242 10243# How to pass a linker flag through the compiler. 10244wl=$lt_lt_prog_compiler_wl 10245 10246# Object file suffix (normally "o"). 10247objext="$ac_objext" 10248 10249# Old archive suffix (normally "a"). 10250libext="$libext" 10251 10252# Shared library suffix (normally ".so"). 10253shrext_cmds='$shrext_cmds' 10254 10255# Executable file suffix (normally ""). 10256exeext="$exeext" 10257 10258# Additional compiler flags for building library objects. 10259pic_flag=$lt_lt_prog_compiler_pic 10260pic_mode=$pic_mode 10261 10262# What is the maximum length of a command? 10263max_cmd_len=$lt_cv_sys_max_cmd_len 10264 10265# Does compiler simultaneously support -c and -o options? 10266compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10267 10268# Must we lock files when doing compilation? 10269need_locks=$lt_need_locks 10270 10271# Do we need the lib prefix for modules? 10272need_lib_prefix=$need_lib_prefix 10273 10274# Do we need a version for libraries? 10275need_version=$need_version 10276 10277# Whether dlopen is supported. 10278dlopen_support=$enable_dlopen 10279 10280# Whether dlopen of programs is supported. 10281dlopen_self=$enable_dlopen_self 10282 10283# Whether dlopen of statically linked programs is supported. 10284dlopen_self_static=$enable_dlopen_self_static 10285 10286# Compiler flag to prevent dynamic linking. 10287link_static_flag=$lt_lt_prog_compiler_static 10288 10289# Compiler flag to turn off builtin functions. 10290no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10291 10292# Compiler flag to allow reflexive dlopens. 10293export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10294 10295# Compiler flag to generate shared objects directly from archives. 10296whole_archive_flag_spec=$lt_whole_archive_flag_spec 10297 10298# Compiler flag to generate thread-safe objects. 10299thread_safe_flag_spec=$lt_thread_safe_flag_spec 10300 10301# Library versioning type. 10302version_type=$version_type 10303 10304# Format of library name prefix. 10305libname_spec=$lt_libname_spec 10306 10307# List of archive names. First name is the real one, the rest are links. 10308# The last name is the one that the linker finds with -lNAME. 10309library_names_spec=$lt_library_names_spec 10310 10311# The coded name of the library, if different from the real name. 10312soname_spec=$lt_soname_spec 10313 10314# Commands used to build and install an old-style archive. 10315RANLIB=$lt_RANLIB 10316old_archive_cmds=$lt_old_archive_cmds 10317old_postinstall_cmds=$lt_old_postinstall_cmds 10318old_postuninstall_cmds=$lt_old_postuninstall_cmds 10319 10320# Create an old-style archive from a shared archive. 10321old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10322 10323# Create a temporary old-style archive to link instead of a shared archive. 10324old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10325 10326# Commands used to build and install a shared archive. 10327archive_cmds=$lt_archive_cmds 10328archive_expsym_cmds=$lt_archive_expsym_cmds 10329postinstall_cmds=$lt_postinstall_cmds 10330postuninstall_cmds=$lt_postuninstall_cmds 10331 10332# Commands used to build a loadable module (assumed same as above if empty) 10333module_cmds=$lt_module_cmds 10334module_expsym_cmds=$lt_module_expsym_cmds 10335 10336# Commands to strip libraries. 10337old_striplib=$lt_old_striplib 10338striplib=$lt_striplib 10339 10340# Dependencies to place before the objects being linked to create a 10341# shared library. 10342predep_objects=$lt_predep_objects 10343 10344# Dependencies to place after the objects being linked to create a 10345# shared library. 10346postdep_objects=$lt_postdep_objects 10347 10348# Dependencies to place before the objects being linked to create a 10349# shared library. 10350predeps=$lt_predeps 10351 10352# Dependencies to place after the objects being linked to create a 10353# shared library. 10354postdeps=$lt_postdeps 10355 10356# The library search path used internally by the compiler when linking 10357# a shared library. 10358compiler_lib_search_path=$lt_compiler_lib_search_path 10359 10360# Method to check whether dependent libraries are shared objects. 10361deplibs_check_method=$lt_deplibs_check_method 10362 10363# Command to use when deplibs_check_method == file_magic. 10364file_magic_cmd=$lt_file_magic_cmd 10365 10366# Flag that allows shared libraries with undefined symbols to be built. 10367allow_undefined_flag=$lt_allow_undefined_flag 10368 10369# Flag that forces no undefined symbols. 10370no_undefined_flag=$lt_no_undefined_flag 10371 10372# Commands used to finish a libtool library installation in a directory. 10373finish_cmds=$lt_finish_cmds 10374 10375# Same as above, but a single script fragment to be evaled but not shown. 10376finish_eval=$lt_finish_eval 10377 10378# Take the output of nm and produce a listing of raw symbols and C names. 10379global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10380 10381# Transform the output of nm in a proper C declaration 10382global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10383 10384# Transform the output of nm in a C name address pair 10385global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10386 10387# This is the shared library runtime path variable. 10388runpath_var=$runpath_var 10389 10390# This is the shared library path variable. 10391shlibpath_var=$shlibpath_var 10392 10393# Is shlibpath searched before the hard-coded library search path? 10394shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10395 10396# How to hardcode a shared library path into an executable. 10397hardcode_action=$hardcode_action 10398 10399# Whether we should hardcode library paths into libraries. 10400hardcode_into_libs=$hardcode_into_libs 10401 10402# Flag to hardcode \$libdir into a binary during linking. 10403# This must work even if \$libdir does not exist. 10404hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10405 10406# If ld is used when linking, flag to hardcode \$libdir into 10407# a binary during linking. This must work even if \$libdir does 10408# not exist. 10409hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10410 10411# Whether we need a single -rpath flag with a separated argument. 10412hardcode_libdir_separator=$lt_hardcode_libdir_separator 10413 10414# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10415# resulting binary. 10416hardcode_direct=$hardcode_direct 10417 10418# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10419# resulting binary. 10420hardcode_minus_L=$hardcode_minus_L 10421 10422# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10423# the resulting binary. 10424hardcode_shlibpath_var=$hardcode_shlibpath_var 10425 10426# Set to yes if building a shared library automatically hardcodes DIR into the library 10427# and all subsequent libraries and executables linked against it. 10428hardcode_automatic=$hardcode_automatic 10429 10430# Variables whose values should be saved in libtool wrapper scripts and 10431# restored at relink time. 10432variables_saved_for_relink="$variables_saved_for_relink" 10433 10434# Whether libtool must link a program against all its dependency libraries. 10435link_all_deplibs=$link_all_deplibs 10436 10437# Compile-time system search path for libraries 10438sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10439 10440# Run-time system search path for libraries 10441sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10442 10443# Fix the shell variable \$srcfile for the compiler. 10444fix_srcfile_path="$fix_srcfile_path" 10445 10446# Set to yes if exported symbols are required. 10447always_export_symbols=$always_export_symbols 10448 10449# The commands to list exported symbols. 10450export_symbols_cmds=$lt_export_symbols_cmds 10451 10452# The commands to extract the exported symbol list from a shared archive. 10453extract_expsyms_cmds=$lt_extract_expsyms_cmds 10454 10455# Symbols that should not be listed in the preloaded symbols. 10456exclude_expsyms=$lt_exclude_expsyms 10457 10458# Symbols that must always be exported. 10459include_expsyms=$lt_include_expsyms 10460 10461# ### END LIBTOOL CONFIG 10462 10463__EOF__ 10464 10465 10466 case $host_os in 10467 aix3*) 10468 cat <<\EOF >> "$cfgfile" 10469 10470# AIX sometimes has problems with the GCC collect2 program. For some 10471# reason, if we set the COLLECT_NAMES environment variable, the problems 10472# vanish in a puff of smoke. 10473if test "X${COLLECT_NAMES+set}" != Xset; then 10474 COLLECT_NAMES= 10475 export COLLECT_NAMES 10476fi 10477EOF 10478 ;; 10479 esac 10480 10481 # We use sed instead of cat because bash on DJGPP gets confused if 10482 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10483 # text mode, it properly converts lines to CR/LF. This bash problem 10484 # is reportedly fixed, but why not run on old versions too? 10485 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10486 10487 mv -f "$cfgfile" "$ofile" || \ 10488 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10489 chmod +x "$ofile" 10490 10491else 10492 # If there is no Makefile yet, we rely on a make rule to execute 10493 # `config.status --recheck' to rerun these tests and create the 10494 # libtool script then. 10495 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10496 if test -f "$ltmain_in"; then 10497 test -f Makefile && make "$ltmain" 10498 fi 10499fi 10500 10501 10502ac_ext=c 10503ac_cpp='$CPP $CPPFLAGS' 10504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10506ac_compiler_gnu=$ac_cv_c_compiler_gnu 10507 10508CC="$lt_save_CC" 10509 10510 10511# Check whether --with-tags was given. 10512if test "${with_tags+set}" = set; then 10513 withval=$with_tags; tagnames="$withval" 10514fi 10515 10516 10517if test -f "$ltmain" && test -n "$tagnames"; then 10518 if test ! -f "${ofile}"; then 10519 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10520echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10521 fi 10522 10523 if test -z "$LTCC"; then 10524 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10525 if test -z "$LTCC"; then 10526 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10527echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10528 else 10529 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10530echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10531 fi 10532 fi 10533 if test -z "$LTCFLAGS"; then 10534 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10535 fi 10536 10537 # Extract list of available tagged configurations in $ofile. 10538 # Note that this assumes the entire list is on one line. 10539 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10540 10541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10542 for tagname in $tagnames; do 10543 IFS="$lt_save_ifs" 10544 # Check whether tagname contains only valid characters 10545 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10546 "") ;; 10547 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10548echo "$as_me: error: invalid tag name: $tagname" >&2;} 10549 { (exit 1); exit 1; }; } 10550 ;; 10551 esac 10552 10553 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10554 then 10555 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10556echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10557 { (exit 1); exit 1; }; } 10558 fi 10559 10560 # Update the list of available tags. 10561 if test -n "$tagname"; then 10562 echo appending configuration tag \"$tagname\" to $ofile 10563 10564 case $tagname in 10565 CXX) 10566 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10567 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10568 (test "X$CXX" != "Xg++"))) ; then 10569 ac_ext=cpp 10570ac_cpp='$CXXCPP $CPPFLAGS' 10571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10574 10575 10576 10577 10578archive_cmds_need_lc_CXX=no 10579allow_undefined_flag_CXX= 10580always_export_symbols_CXX=no 10581archive_expsym_cmds_CXX= 10582export_dynamic_flag_spec_CXX= 10583hardcode_direct_CXX=no 10584hardcode_libdir_flag_spec_CXX= 10585hardcode_libdir_flag_spec_ld_CXX= 10586hardcode_libdir_separator_CXX= 10587hardcode_minus_L_CXX=no 10588hardcode_shlibpath_var_CXX=unsupported 10589hardcode_automatic_CXX=no 10590module_cmds_CXX= 10591module_expsym_cmds_CXX= 10592link_all_deplibs_CXX=unknown 10593old_archive_cmds_CXX=$old_archive_cmds 10594no_undefined_flag_CXX= 10595whole_archive_flag_spec_CXX= 10596enable_shared_with_static_runtimes_CXX=no 10597 10598# Dependencies to place before and after the object being linked: 10599predep_objects_CXX= 10600postdep_objects_CXX= 10601predeps_CXX= 10602postdeps_CXX= 10603compiler_lib_search_path_CXX= 10604 10605# Source file extension for C++ test sources. 10606ac_ext=cpp 10607 10608# Object file extension for compiled C++ test sources. 10609objext=o 10610objext_CXX=$objext 10611 10612# Code to be used in simple compile tests 10613lt_simple_compile_test_code="int some_variable = 0;\n" 10614 10615# Code to be used in simple link tests 10616lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10617 10618# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10619 10620# If no C compiler was specified, use CC. 10621LTCC=${LTCC-"$CC"} 10622 10623# If no C compiler flags were specified, use CFLAGS. 10624LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10625 10626# Allow CC to be a program name with arguments. 10627compiler=$CC 10628 10629 10630# save warnings/boilerplate of simple test code 10631ac_outfile=conftest.$ac_objext 10632printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10633eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10634_lt_compiler_boilerplate=`cat conftest.err` 10635$rm conftest* 10636 10637ac_outfile=conftest.$ac_objext 10638printf "$lt_simple_link_test_code" >conftest.$ac_ext 10639eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10640_lt_linker_boilerplate=`cat conftest.err` 10641$rm conftest* 10642 10643 10644# Allow CC to be a program name with arguments. 10645lt_save_CC=$CC 10646lt_save_LD=$LD 10647lt_save_GCC=$GCC 10648GCC=$GXX 10649lt_save_with_gnu_ld=$with_gnu_ld 10650lt_save_path_LD=$lt_cv_path_LD 10651if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10652 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10653else 10654 $as_unset lt_cv_prog_gnu_ld 10655fi 10656if test -n "${lt_cv_path_LDCXX+set}"; then 10657 lt_cv_path_LD=$lt_cv_path_LDCXX 10658else 10659 $as_unset lt_cv_path_LD 10660fi 10661test -z "${LDCXX+set}" || LD=$LDCXX 10662CC=${CXX-"c++"} 10663compiler=$CC 10664compiler_CXX=$CC 10665for cc_temp in $compiler""; do 10666 case $cc_temp in 10667 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10668 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10669 \-*) ;; 10670 *) break;; 10671 esac 10672done 10673cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10674 10675 10676# We don't want -fno-exception wen compiling C++ code, so set the 10677# no_builtin_flag separately 10678if test "$GXX" = yes; then 10679 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10680else 10681 lt_prog_compiler_no_builtin_flag_CXX= 10682fi 10683 10684if test "$GXX" = yes; then 10685 # Set up default GNU C++ configuration 10686 10687 10688# Check whether --with-gnu-ld was given. 10689if test "${with_gnu_ld+set}" = set; then 10690 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10691else 10692 with_gnu_ld=no 10693fi 10694 10695ac_prog=ld 10696if test "$GCC" = yes; then 10697 # Check if gcc -print-prog-name=ld gives a path. 10698 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10699echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10700 case $host in 10701 *-*-mingw*) 10702 # gcc leaves a trailing carriage return which upsets mingw 10703 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10704 *) 10705 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10706 esac 10707 case $ac_prog in 10708 # Accept absolute paths. 10709 [\\/]* | ?:[\\/]*) 10710 re_direlt='/[^/][^/]*/\.\./' 10711 # Canonicalize the pathname of ld 10712 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10713 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10714 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10715 done 10716 test -z "$LD" && LD="$ac_prog" 10717 ;; 10718 "") 10719 # If it fails, then pretend we aren't using GCC. 10720 ac_prog=ld 10721 ;; 10722 *) 10723 # If it is relative, then search for the first ld in PATH. 10724 with_gnu_ld=unknown 10725 ;; 10726 esac 10727elif test "$with_gnu_ld" = yes; then 10728 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10729echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10730else 10731 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10732echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10733fi 10734if test "${lt_cv_path_LD+set}" = set; then 10735 echo $ECHO_N "(cached) $ECHO_C" >&6 10736else 10737 if test -z "$LD"; then 10738 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10739 for ac_dir in $PATH; do 10740 IFS="$lt_save_ifs" 10741 test -z "$ac_dir" && ac_dir=. 10742 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10743 lt_cv_path_LD="$ac_dir/$ac_prog" 10744 # Check to see if the program is GNU ld. I'd rather use --version, 10745 # but apparently some variants of GNU ld only accept -v. 10746 # Break only if it was the GNU/non-GNU ld that we prefer. 10747 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10748 *GNU* | *'with BFD'*) 10749 test "$with_gnu_ld" != no && break 10750 ;; 10751 *) 10752 test "$with_gnu_ld" != yes && break 10753 ;; 10754 esac 10755 fi 10756 done 10757 IFS="$lt_save_ifs" 10758else 10759 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10760fi 10761fi 10762 10763LD="$lt_cv_path_LD" 10764if test -n "$LD"; then 10765 { echo "$as_me:$LINENO: result: $LD" >&5 10766echo "${ECHO_T}$LD" >&6; } 10767else 10768 { echo "$as_me:$LINENO: result: no" >&5 10769echo "${ECHO_T}no" >&6; } 10770fi 10771test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10772echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10773 { (exit 1); exit 1; }; } 10774{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10775echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10776if test "${lt_cv_prog_gnu_ld+set}" = set; then 10777 echo $ECHO_N "(cached) $ECHO_C" >&6 10778else 10779 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10780case `$LD -v 2>&1 </dev/null` in 10781*GNU* | *'with BFD'*) 10782 lt_cv_prog_gnu_ld=yes 10783 ;; 10784*) 10785 lt_cv_prog_gnu_ld=no 10786 ;; 10787esac 10788fi 10789{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10790echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10791with_gnu_ld=$lt_cv_prog_gnu_ld 10792 10793 10794 10795 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10796 # archiving commands below assume that GNU ld is being used. 10797 if test "$with_gnu_ld" = yes; then 10798 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10799 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' 10800 10801 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10802 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10803 10804 # If archive_cmds runs LD, not CC, wlarc should be empty 10805 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10806 # investigate it a little bit more. (MM) 10807 wlarc='${wl}' 10808 10809 # ancient GNU ld didn't support --whole-archive et. al. 10810 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10811 grep 'no-whole-archive' > /dev/null; then 10812 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10813 else 10814 whole_archive_flag_spec_CXX= 10815 fi 10816 else 10817 with_gnu_ld=no 10818 wlarc= 10819 10820 # A generic and very simple default shared library creation 10821 # command for GNU C++ for the case where it uses the native 10822 # linker, instead of GNU ld. If possible, this setting should 10823 # overridden to take advantage of the native linker features on 10824 # the platform it is being used on. 10825 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10826 fi 10827 10828 # Commands to make compiler produce verbose output that lists 10829 # what "hidden" libraries, object files and flags are used when 10830 # linking a shared library. 10831 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10832 10833else 10834 GXX=no 10835 with_gnu_ld=no 10836 wlarc= 10837fi 10838 10839# PORTME: fill in a description of your system's C++ link characteristics 10840{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10841echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10842ld_shlibs_CXX=yes 10843case $host_os in 10844 aix3*) 10845 # FIXME: insert proper C++ library support 10846 ld_shlibs_CXX=no 10847 ;; 10848 aix4* | aix5*) 10849 if test "$host_cpu" = ia64; then 10850 # On IA64, the linker does run time linking by default, so we don't 10851 # have to do anything special. 10852 aix_use_runtimelinking=no 10853 exp_sym_flag='-Bexport' 10854 no_entry_flag="" 10855 else 10856 aix_use_runtimelinking=no 10857 10858 # Test if we are trying to use run time linking or normal 10859 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10860 # need to do runtime linking. 10861 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10862 for ld_flag in $LDFLAGS; do 10863 case $ld_flag in 10864 *-brtl*) 10865 aix_use_runtimelinking=yes 10866 break 10867 ;; 10868 esac 10869 done 10870 ;; 10871 esac 10872 10873 exp_sym_flag='-bexport' 10874 no_entry_flag='-bnoentry' 10875 fi 10876 10877 # When large executables or shared objects are built, AIX ld can 10878 # have problems creating the table of contents. If linking a library 10879 # or program results in "error TOC overflow" add -mminimal-toc to 10880 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10881 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10882 10883 archive_cmds_CXX='' 10884 hardcode_direct_CXX=yes 10885 hardcode_libdir_separator_CXX=':' 10886 link_all_deplibs_CXX=yes 10887 10888 if test "$GXX" = yes; then 10889 case $host_os in aix4.[012]|aix4.[012].*) 10890 # We only want to do this on AIX 4.2 and lower, the check 10891 # below for broken collect2 doesn't work under 4.3+ 10892 collect2name=`${CC} -print-prog-name=collect2` 10893 if test -f "$collect2name" && \ 10894 strings "$collect2name" | grep resolve_lib_name >/dev/null 10895 then 10896 # We have reworked collect2 10897 hardcode_direct_CXX=yes 10898 else 10899 # We have old collect2 10900 hardcode_direct_CXX=unsupported 10901 # It fails to find uninstalled libraries when the uninstalled 10902 # path is not listed in the libpath. Setting hardcode_minus_L 10903 # to unsupported forces relinking 10904 hardcode_minus_L_CXX=yes 10905 hardcode_libdir_flag_spec_CXX='-L$libdir' 10906 hardcode_libdir_separator_CXX= 10907 fi 10908 ;; 10909 esac 10910 shared_flag='-shared' 10911 if test "$aix_use_runtimelinking" = yes; then 10912 shared_flag="$shared_flag "'${wl}-G' 10913 fi 10914 else 10915 # not using gcc 10916 if test "$host_cpu" = ia64; then 10917 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10918 # chokes on -Wl,-G. The following line is correct: 10919 shared_flag='-G' 10920 else 10921 if test "$aix_use_runtimelinking" = yes; then 10922 shared_flag='${wl}-G' 10923 else 10924 shared_flag='${wl}-bM:SRE' 10925 fi 10926 fi 10927 fi 10928 10929 # It seems that -bexpall does not export symbols beginning with 10930 # underscore (_), so it is better to generate a list of symbols to export. 10931 always_export_symbols_CXX=yes 10932 if test "$aix_use_runtimelinking" = yes; then 10933 # Warning - without using the other runtime loading flags (-brtl), 10934 # -berok will link without error, but may produce a broken library. 10935 allow_undefined_flag_CXX='-berok' 10936 # Determine the default libpath from the value encoded in an empty executable. 10937 cat >conftest.$ac_ext <<_ACEOF 10938/* confdefs.h. */ 10939_ACEOF 10940cat confdefs.h >>conftest.$ac_ext 10941cat >>conftest.$ac_ext <<_ACEOF 10942/* end confdefs.h. */ 10943 10944int 10945main () 10946{ 10947 10948 ; 10949 return 0; 10950} 10951_ACEOF 10952rm -f conftest.$ac_objext conftest$ac_exeext 10953if { (ac_try="$ac_link" 10954case "(($ac_try" in 10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10956 *) ac_try_echo=$ac_try;; 10957esac 10958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10959 (eval "$ac_link") 2>conftest.er1 10960 ac_status=$? 10961 grep -v '^ *+' conftest.er1 >conftest.err 10962 rm -f conftest.er1 10963 cat conftest.err >&5 10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10965 (exit $ac_status); } && { 10966 test -z "$ac_cxx_werror_flag" || 10967 test ! -s conftest.err 10968 } && test -s conftest$ac_exeext && 10969 $as_test_x conftest$ac_exeext; then 10970 10971aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10972}'` 10973# Check for a 64-bit object if we didn't find anything. 10974if 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; } 10975}'`; fi 10976else 10977 echo "$as_me: failed program was:" >&5 10978sed 's/^/| /' conftest.$ac_ext >&5 10979 10980 10981fi 10982 10983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10984 conftest$ac_exeext conftest.$ac_ext 10985if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10986 10987 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10988 10989 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" 10990 else 10991 if test "$host_cpu" = ia64; then 10992 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10993 allow_undefined_flag_CXX="-z nodefs" 10994 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" 10995 else 10996 # Determine the default libpath from the value encoded in an empty executable. 10997 cat >conftest.$ac_ext <<_ACEOF 10998/* confdefs.h. */ 10999_ACEOF 11000cat confdefs.h >>conftest.$ac_ext 11001cat >>conftest.$ac_ext <<_ACEOF 11002/* end confdefs.h. */ 11003 11004int 11005main () 11006{ 11007 11008 ; 11009 return 0; 11010} 11011_ACEOF 11012rm -f conftest.$ac_objext conftest$ac_exeext 11013if { (ac_try="$ac_link" 11014case "(($ac_try" in 11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11016 *) ac_try_echo=$ac_try;; 11017esac 11018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11019 (eval "$ac_link") 2>conftest.er1 11020 ac_status=$? 11021 grep -v '^ *+' conftest.er1 >conftest.err 11022 rm -f conftest.er1 11023 cat conftest.err >&5 11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11025 (exit $ac_status); } && { 11026 test -z "$ac_cxx_werror_flag" || 11027 test ! -s conftest.err 11028 } && test -s conftest$ac_exeext && 11029 $as_test_x conftest$ac_exeext; then 11030 11031aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11032}'` 11033# Check for a 64-bit object if we didn't find anything. 11034if 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; } 11035}'`; fi 11036else 11037 echo "$as_me: failed program was:" >&5 11038sed 's/^/| /' conftest.$ac_ext >&5 11039 11040 11041fi 11042 11043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11044 conftest$ac_exeext conftest.$ac_ext 11045if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11046 11047 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11048 # Warning - without using the other run time loading flags, 11049 # -berok will link without error, but may produce a broken library. 11050 no_undefined_flag_CXX=' ${wl}-bernotok' 11051 allow_undefined_flag_CXX=' ${wl}-berok' 11052 # Exported symbols can be pulled into shared objects from archives 11053 whole_archive_flag_spec_CXX='$convenience' 11054 archive_cmds_need_lc_CXX=yes 11055 # This is similar to how AIX traditionally builds its shared libraries. 11056 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' 11057 fi 11058 fi 11059 ;; 11060 11061 beos*) 11062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11063 allow_undefined_flag_CXX=unsupported 11064 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11065 # support --undefined. This deserves some investigation. FIXME 11066 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11067 else 11068 ld_shlibs_CXX=no 11069 fi 11070 ;; 11071 11072 chorus*) 11073 case $cc_basename in 11074 *) 11075 # FIXME: insert proper C++ library support 11076 ld_shlibs_CXX=no 11077 ;; 11078 esac 11079 ;; 11080 11081 cygwin* | mingw* | pw32*) 11082 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11083 # as there is no search path for DLLs. 11084 hardcode_libdir_flag_spec_CXX='-L$libdir' 11085 allow_undefined_flag_CXX=unsupported 11086 always_export_symbols_CXX=no 11087 enable_shared_with_static_runtimes_CXX=yes 11088 11089 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11090 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' 11091 # If the export-symbols file already is a .def file (1st line 11092 # is EXPORTS), use it as is; otherwise, prepend... 11093 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11094 cp $export_symbols $output_objdir/$soname.def; 11095 else 11096 echo EXPORTS > $output_objdir/$soname.def; 11097 cat $export_symbols >> $output_objdir/$soname.def; 11098 fi~ 11099 $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' 11100 else 11101 ld_shlibs_CXX=no 11102 fi 11103 ;; 11104 darwin* | rhapsody*) 11105 case $host_os in 11106 rhapsody* | darwin1.[012]) 11107 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11108 ;; 11109 *) # Darwin 1.3 on 11110 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11111 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11112 else 11113 case ${MACOSX_DEPLOYMENT_TARGET} in 11114 10.[012]) 11115 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11116 ;; 11117 10.*) 11118 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11119 ;; 11120 esac 11121 fi 11122 ;; 11123 esac 11124 archive_cmds_need_lc_CXX=no 11125 hardcode_direct_CXX=no 11126 hardcode_automatic_CXX=yes 11127 hardcode_shlibpath_var_CXX=unsupported 11128 whole_archive_flag_spec_CXX='' 11129 link_all_deplibs_CXX=yes 11130 11131 if test "$GXX" = yes ; then 11132 lt_int_apple_cc_single_mod=no 11133 output_verbose_link_cmd='echo' 11134 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11135 lt_int_apple_cc_single_mod=yes 11136 fi 11137 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11138 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11139 else 11140 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' 11141 fi 11142 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11143 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11144 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11145 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}' 11146 else 11147 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}' 11148 fi 11149 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}' 11150 else 11151 case $cc_basename in 11152 xlc*) 11153 output_verbose_link_cmd='echo' 11154 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' 11155 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11156 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11157 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}' 11158 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}' 11159 ;; 11160 *) 11161 ld_shlibs_CXX=no 11162 ;; 11163 esac 11164 fi 11165 ;; 11166 11167 dgux*) 11168 case $cc_basename in 11169 ec++*) 11170 # FIXME: insert proper C++ library support 11171 ld_shlibs_CXX=no 11172 ;; 11173 ghcx*) 11174 # Green Hills C++ Compiler 11175 # FIXME: insert proper C++ library support 11176 ld_shlibs_CXX=no 11177 ;; 11178 *) 11179 # FIXME: insert proper C++ library support 11180 ld_shlibs_CXX=no 11181 ;; 11182 esac 11183 ;; 11184 freebsd[12]*) 11185 # C++ shared libraries reported to be fairly broken before switch to ELF 11186 ld_shlibs_CXX=no 11187 ;; 11188 freebsd-elf*) 11189 archive_cmds_need_lc_CXX=no 11190 ;; 11191 freebsd* | kfreebsd*-gnu | dragonfly*) 11192 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11193 # conventions 11194 ld_shlibs_CXX=yes 11195 ;; 11196 gnu*) 11197 ;; 11198 hpux9*) 11199 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11200 hardcode_libdir_separator_CXX=: 11201 export_dynamic_flag_spec_CXX='${wl}-E' 11202 hardcode_direct_CXX=yes 11203 hardcode_minus_L_CXX=yes # Not in the search PATH, 11204 # but as the default 11205 # location of the library. 11206 11207 case $cc_basename in 11208 CC*) 11209 # FIXME: insert proper C++ library support 11210 ld_shlibs_CXX=no 11211 ;; 11212 aCC*) 11213 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' 11214 # Commands to make compiler produce verbose output that lists 11215 # what "hidden" libraries, object files and flags are used when 11216 # linking a shared library. 11217 # 11218 # There doesn't appear to be a way to prevent this compiler from 11219 # explicitly linking system object files so we need to strip them 11220 # from the output so that they don't get included in the library 11221 # dependencies. 11222 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' 11223 ;; 11224 *) 11225 if test "$GXX" = yes; then 11226 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' 11227 else 11228 # FIXME: insert proper C++ library support 11229 ld_shlibs_CXX=no 11230 fi 11231 ;; 11232 esac 11233 ;; 11234 hpux10*|hpux11*) 11235 if test $with_gnu_ld = no; then 11236 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11237 hardcode_libdir_separator_CXX=: 11238 11239 case $host_cpu in 11240 hppa*64*|ia64*) 11241 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11242 ;; 11243 *) 11244 export_dynamic_flag_spec_CXX='${wl}-E' 11245 ;; 11246 esac 11247 fi 11248 case $host_cpu in 11249 hppa*64*|ia64*) 11250 hardcode_direct_CXX=no 11251 hardcode_shlibpath_var_CXX=no 11252 ;; 11253 *) 11254 hardcode_direct_CXX=yes 11255 hardcode_minus_L_CXX=yes # Not in the search PATH, 11256 # but as the default 11257 # location of the library. 11258 ;; 11259 esac 11260 11261 case $cc_basename in 11262 CC*) 11263 # FIXME: insert proper C++ library support 11264 ld_shlibs_CXX=no 11265 ;; 11266 aCC*) 11267 case $host_cpu in 11268 hppa*64*) 11269 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11270 ;; 11271 ia64*) 11272 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11273 ;; 11274 *) 11275 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11276 ;; 11277 esac 11278 # Commands to make compiler produce verbose output that lists 11279 # what "hidden" libraries, object files and flags are used when 11280 # linking a shared library. 11281 # 11282 # There doesn't appear to be a way to prevent this compiler from 11283 # explicitly linking system object files so we need to strip them 11284 # from the output so that they don't get included in the library 11285 # dependencies. 11286 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' 11287 ;; 11288 *) 11289 if test "$GXX" = yes; then 11290 if test $with_gnu_ld = no; then 11291 case $host_cpu in 11292 hppa*64*) 11293 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11294 ;; 11295 ia64*) 11296 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11297 ;; 11298 *) 11299 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' 11300 ;; 11301 esac 11302 fi 11303 else 11304 # FIXME: insert proper C++ library support 11305 ld_shlibs_CXX=no 11306 fi 11307 ;; 11308 esac 11309 ;; 11310 interix3*) 11311 hardcode_direct_CXX=no 11312 hardcode_shlibpath_var_CXX=no 11313 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11314 export_dynamic_flag_spec_CXX='${wl}-E' 11315 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11316 # Instead, shared libraries are loaded at an image base (0x10000000 by 11317 # default) and relocated if they conflict, which is a slow very memory 11318 # consuming and fragmenting process. To avoid this, we pick a random, 11319 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11320 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11321 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' 11322 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' 11323 ;; 11324 irix5* | irix6*) 11325 case $cc_basename in 11326 CC*) 11327 # SGI C++ 11328 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' 11329 11330 # Archives containing C++ object files must be created using 11331 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11332 # necessary to make sure instantiated templates are included 11333 # in the archive. 11334 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11335 ;; 11336 *) 11337 if test "$GXX" = yes; then 11338 if test "$with_gnu_ld" = no; then 11339 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' 11340 else 11341 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' 11342 fi 11343 fi 11344 link_all_deplibs_CXX=yes 11345 ;; 11346 esac 11347 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11348 hardcode_libdir_separator_CXX=: 11349 ;; 11350 linux*) 11351 case $cc_basename in 11352 KCC*) 11353 # Kuck and Associates, Inc. (KAI) C++ Compiler 11354 11355 # KCC will only create a shared library if the output file 11356 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11357 # to its proper name (with version) after linking. 11358 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' 11359 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' 11360 # Commands to make compiler produce verbose output that lists 11361 # what "hidden" libraries, object files and flags are used when 11362 # linking a shared library. 11363 # 11364 # There doesn't appear to be a way to prevent this compiler from 11365 # explicitly linking system object files so we need to strip them 11366 # from the output so that they don't get included in the library 11367 # dependencies. 11368 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' 11369 11370 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11371 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11372 11373 # Archives containing C++ object files must be created using 11374 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11375 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11376 ;; 11377 icpc*) 11378 # Intel C++ 11379 with_gnu_ld=yes 11380 # version 8.0 and above of icpc choke on multiply defined symbols 11381 # if we add $predep_objects and $postdep_objects, however 7.1 and 11382 # earlier do not add the objects themselves. 11383 case `$CC -V 2>&1` in 11384 *"Version 7."*) 11385 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11386 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' 11387 ;; 11388 *) # Version 8.0 or newer 11389 tmp_idyn= 11390 case $host_cpu in 11391 ia64*) tmp_idyn=' -i_dynamic';; 11392 esac 11393 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11394 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' 11395 ;; 11396 esac 11397 archive_cmds_need_lc_CXX=no 11398 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11399 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11400 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11401 ;; 11402 pgCC*) 11403 # Portland Group C++ compiler 11404 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11405 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' 11406 11407 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11408 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11409 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' 11410 ;; 11411 cxx*) 11412 # Compaq C++ 11413 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11414 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' 11415 11416 runpath_var=LD_RUN_PATH 11417 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11418 hardcode_libdir_separator_CXX=: 11419 11420 # Commands to make compiler produce verbose output that lists 11421 # what "hidden" libraries, object files and flags are used when 11422 # linking a shared library. 11423 # 11424 # There doesn't appear to be a way to prevent this compiler from 11425 # explicitly linking system object files so we need to strip them 11426 # from the output so that they don't get included in the library 11427 # dependencies. 11428 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' 11429 ;; 11430 esac 11431 ;; 11432 lynxos*) 11433 # FIXME: insert proper C++ library support 11434 ld_shlibs_CXX=no 11435 ;; 11436 m88k*) 11437 # FIXME: insert proper C++ library support 11438 ld_shlibs_CXX=no 11439 ;; 11440 mvs*) 11441 case $cc_basename in 11442 cxx*) 11443 # FIXME: insert proper C++ library support 11444 ld_shlibs_CXX=no 11445 ;; 11446 *) 11447 # FIXME: insert proper C++ library support 11448 ld_shlibs_CXX=no 11449 ;; 11450 esac 11451 ;; 11452 netbsd*) 11453 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11454 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11455 wlarc= 11456 hardcode_libdir_flag_spec_CXX='-R$libdir' 11457 hardcode_direct_CXX=yes 11458 hardcode_shlibpath_var_CXX=no 11459 fi 11460 # Workaround some broken pre-1.5 toolchains 11461 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11462 ;; 11463 openbsd2*) 11464 # C++ shared libraries are fairly broken 11465 ld_shlibs_CXX=no 11466 ;; 11467 openbsd*) 11468 hardcode_direct_CXX=yes 11469 hardcode_shlibpath_var_CXX=no 11470 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11472 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11473 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11474 export_dynamic_flag_spec_CXX='${wl}-E' 11475 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11476 fi 11477 output_verbose_link_cmd='echo' 11478 ;; 11479 osf3*) 11480 case $cc_basename in 11481 KCC*) 11482 # Kuck and Associates, Inc. (KAI) C++ Compiler 11483 11484 # KCC will only create a shared library if the output file 11485 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11486 # to its proper name (with version) after linking. 11487 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' 11488 11489 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11490 hardcode_libdir_separator_CXX=: 11491 11492 # Archives containing C++ object files must be created using 11493 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11494 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11495 11496 ;; 11497 RCC*) 11498 # Rational C++ 2.4.1 11499 # FIXME: insert proper C++ library support 11500 ld_shlibs_CXX=no 11501 ;; 11502 cxx*) 11503 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11504 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' 11505 11506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11507 hardcode_libdir_separator_CXX=: 11508 11509 # Commands to make compiler produce verbose output that lists 11510 # what "hidden" libraries, object files and flags are used when 11511 # linking a shared library. 11512 # 11513 # There doesn't appear to be a way to prevent this compiler from 11514 # explicitly linking system object files so we need to strip them 11515 # from the output so that they don't get included in the library 11516 # dependencies. 11517 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' 11518 ;; 11519 *) 11520 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11521 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11522 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' 11523 11524 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11525 hardcode_libdir_separator_CXX=: 11526 11527 # Commands to make compiler produce verbose output that lists 11528 # what "hidden" libraries, object files and flags are used when 11529 # linking a shared library. 11530 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11531 11532 else 11533 # FIXME: insert proper C++ library support 11534 ld_shlibs_CXX=no 11535 fi 11536 ;; 11537 esac 11538 ;; 11539 osf4* | osf5*) 11540 case $cc_basename in 11541 KCC*) 11542 # Kuck and Associates, Inc. (KAI) C++ Compiler 11543 11544 # KCC will only create a shared library if the output file 11545 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11546 # to its proper name (with version) after linking. 11547 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' 11548 11549 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11550 hardcode_libdir_separator_CXX=: 11551 11552 # Archives containing C++ object files must be created using 11553 # the KAI C++ compiler. 11554 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11555 ;; 11556 RCC*) 11557 # Rational C++ 2.4.1 11558 # FIXME: insert proper C++ library support 11559 ld_shlibs_CXX=no 11560 ;; 11561 cxx*) 11562 allow_undefined_flag_CXX=' -expect_unresolved \*' 11563 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' 11564 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11565 echo "-hidden">> $lib.exp~ 11566 $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~ 11567 $rm $lib.exp' 11568 11569 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11570 hardcode_libdir_separator_CXX=: 11571 11572 # Commands to make compiler produce verbose output that lists 11573 # what "hidden" libraries, object files and flags are used when 11574 # linking a shared library. 11575 # 11576 # There doesn't appear to be a way to prevent this compiler from 11577 # explicitly linking system object files so we need to strip them 11578 # from the output so that they don't get included in the library 11579 # dependencies. 11580 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' 11581 ;; 11582 *) 11583 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11584 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11585 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' 11586 11587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11588 hardcode_libdir_separator_CXX=: 11589 11590 # Commands to make compiler produce verbose output that lists 11591 # what "hidden" libraries, object files and flags are used when 11592 # linking a shared library. 11593 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11594 11595 else 11596 # FIXME: insert proper C++ library support 11597 ld_shlibs_CXX=no 11598 fi 11599 ;; 11600 esac 11601 ;; 11602 psos*) 11603 # FIXME: insert proper C++ library support 11604 ld_shlibs_CXX=no 11605 ;; 11606 sunos4*) 11607 case $cc_basename in 11608 CC*) 11609 # Sun C++ 4.x 11610 # FIXME: insert proper C++ library support 11611 ld_shlibs_CXX=no 11612 ;; 11613 lcc*) 11614 # Lucid 11615 # FIXME: insert proper C++ library support 11616 ld_shlibs_CXX=no 11617 ;; 11618 *) 11619 # FIXME: insert proper C++ library support 11620 ld_shlibs_CXX=no 11621 ;; 11622 esac 11623 ;; 11624 solaris*) 11625 case $cc_basename in 11626 CC*) 11627 # Sun C++ 4.2, 5.x and Centerline C++ 11628 archive_cmds_need_lc_CXX=yes 11629 no_undefined_flag_CXX=' -zdefs' 11630 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11631 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11632 $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' 11633 11634 hardcode_libdir_flag_spec_CXX='-R$libdir' 11635 hardcode_shlibpath_var_CXX=no 11636 case $host_os in 11637 solaris2.[0-5] | solaris2.[0-5].*) ;; 11638 *) 11639 # The C++ compiler is used as linker so we must use $wl 11640 # flag to pass the commands to the underlying system 11641 # linker. We must also pass each convience library through 11642 # to the system linker between allextract/defaultextract. 11643 # The C++ compiler will combine linker options so we 11644 # cannot just pass the convience library names through 11645 # without $wl. 11646 # Supported since Solaris 2.6 (maybe 2.5.1?) 11647 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' 11648 ;; 11649 esac 11650 link_all_deplibs_CXX=yes 11651 11652 output_verbose_link_cmd='echo' 11653 11654 # Archives containing C++ object files must be created using 11655 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11656 # necessary to make sure instantiated templates are included 11657 # in the archive. 11658 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11659 ;; 11660 gcx*) 11661 # Green Hills C++ Compiler 11662 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11663 11664 # The C++ compiler must be used to create the archive. 11665 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11666 ;; 11667 *) 11668 # GNU C++ compiler with Solaris linker 11669 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11670 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11671 if $CC --version | grep -v '^2\.7' > /dev/null; then 11672 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11673 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11674 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11675 11676 # Commands to make compiler produce verbose output that lists 11677 # what "hidden" libraries, object files and flags are used when 11678 # linking a shared library. 11679 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11680 else 11681 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11682 # platform. 11683 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11684 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11685 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11686 11687 # Commands to make compiler produce verbose output that lists 11688 # what "hidden" libraries, object files and flags are used when 11689 # linking a shared library. 11690 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11691 fi 11692 11693 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11694 fi 11695 ;; 11696 esac 11697 ;; 11698 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11699 no_undefined_flag_CXX='${wl}-z,text' 11700 archive_cmds_need_lc_CXX=no 11701 hardcode_shlibpath_var_CXX=no 11702 runpath_var='LD_RUN_PATH' 11703 11704 case $cc_basename in 11705 CC*) 11706 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11707 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11708 ;; 11709 *) 11710 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11711 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11712 ;; 11713 esac 11714 ;; 11715 sysv5* | sco3.2v5* | sco5v6*) 11716 # Note: We can NOT use -z defs as we might desire, because we do not 11717 # link with -lc, and that would cause any symbols used from libc to 11718 # always be unresolved, which means just about no library would 11719 # ever link correctly. If we're not using GNU ld we use -z text 11720 # though, which does catch some bad symbols but isn't as heavy-handed 11721 # as -z defs. 11722 # For security reasons, it is highly recommended that you always 11723 # use absolute paths for naming shared libraries, and exclude the 11724 # DT_RUNPATH tag from executables and libraries. But doing so 11725 # requires that you compile everything twice, which is a pain. 11726 # So that behaviour is only enabled if SCOABSPATH is set to a 11727 # non-empty value in the environment. Most likely only useful for 11728 # creating official distributions of packages. 11729 # This is a hack until libtool officially supports absolute path 11730 # names for shared libraries. 11731 no_undefined_flag_CXX='${wl}-z,text' 11732 allow_undefined_flag_CXX='${wl}-z,nodefs' 11733 archive_cmds_need_lc_CXX=no 11734 hardcode_shlibpath_var_CXX=no 11735 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11736 hardcode_libdir_separator_CXX=':' 11737 link_all_deplibs_CXX=yes 11738 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11739 runpath_var='LD_RUN_PATH' 11740 11741 case $cc_basename in 11742 CC*) 11743 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11744 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11745 ;; 11746 *) 11747 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11748 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11749 ;; 11750 esac 11751 ;; 11752 tandem*) 11753 case $cc_basename in 11754 NCC*) 11755 # NonStop-UX NCC 3.20 11756 # FIXME: insert proper C++ library support 11757 ld_shlibs_CXX=no 11758 ;; 11759 *) 11760 # FIXME: insert proper C++ library support 11761 ld_shlibs_CXX=no 11762 ;; 11763 esac 11764 ;; 11765 vxworks*) 11766 # FIXME: insert proper C++ library support 11767 ld_shlibs_CXX=no 11768 ;; 11769 *) 11770 # FIXME: insert proper C++ library support 11771 ld_shlibs_CXX=no 11772 ;; 11773esac 11774{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11775echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11776test "$ld_shlibs_CXX" = no && can_build_shared=no 11777 11778GCC_CXX="$GXX" 11779LD_CXX="$LD" 11780 11781 11782cat > conftest.$ac_ext <<EOF 11783class Foo 11784{ 11785public: 11786 Foo (void) { a = 0; } 11787private: 11788 int a; 11789}; 11790EOF 11791 11792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11793 (eval $ac_compile) 2>&5 11794 ac_status=$? 11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11796 (exit $ac_status); }; then 11797 # Parse the compiler output and extract the necessary 11798 # objects, libraries and library flags. 11799 11800 # Sentinel used to keep track of whether or not we are before 11801 # the conftest object file. 11802 pre_test_object_deps_done=no 11803 11804 # The `*' in the case matches for architectures that use `case' in 11805 # $output_verbose_cmd can trigger glob expansion during the loop 11806 # eval without this substitution. 11807 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11808 11809 for p in `eval $output_verbose_link_cmd`; do 11810 case $p in 11811 11812 -L* | -R* | -l*) 11813 # Some compilers place space between "-{L,R}" and the path. 11814 # Remove the space. 11815 if test $p = "-L" \ 11816 || test $p = "-R"; then 11817 prev=$p 11818 continue 11819 else 11820 prev= 11821 fi 11822 11823 if test "$pre_test_object_deps_done" = no; then 11824 case $p in 11825 -L* | -R*) 11826 # Internal compiler library paths should come after those 11827 # provided the user. The postdeps already come after the 11828 # user supplied libs so there is no need to process them. 11829 if test -z "$compiler_lib_search_path_CXX"; then 11830 compiler_lib_search_path_CXX="${prev}${p}" 11831 else 11832 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11833 fi 11834 ;; 11835 # The "-l" case would never come before the object being 11836 # linked, so don't bother handling this case. 11837 esac 11838 else 11839 if test -z "$postdeps_CXX"; then 11840 postdeps_CXX="${prev}${p}" 11841 else 11842 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11843 fi 11844 fi 11845 ;; 11846 11847 *.$objext) 11848 # This assumes that the test object file only shows up 11849 # once in the compiler output. 11850 if test "$p" = "conftest.$objext"; then 11851 pre_test_object_deps_done=yes 11852 continue 11853 fi 11854 11855 if test "$pre_test_object_deps_done" = no; then 11856 if test -z "$predep_objects_CXX"; then 11857 predep_objects_CXX="$p" 11858 else 11859 predep_objects_CXX="$predep_objects_CXX $p" 11860 fi 11861 else 11862 if test -z "$postdep_objects_CXX"; then 11863 postdep_objects_CXX="$p" 11864 else 11865 postdep_objects_CXX="$postdep_objects_CXX $p" 11866 fi 11867 fi 11868 ;; 11869 11870 *) ;; # Ignore the rest. 11871 11872 esac 11873 done 11874 11875 # Clean up. 11876 rm -f a.out a.exe 11877else 11878 echo "libtool.m4: error: problem compiling CXX test program" 11879fi 11880 11881$rm -f confest.$objext 11882 11883# PORTME: override above test on systems where it is broken 11884case $host_os in 11885interix3*) 11886 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11887 # hack all around it, let's just trust "g++" to DTRT. 11888 predep_objects_CXX= 11889 postdep_objects_CXX= 11890 postdeps_CXX= 11891 ;; 11892 11893solaris*) 11894 case $cc_basename in 11895 CC*) 11896 # Adding this requires a known-good setup of shared libraries for 11897 # Sun compiler versions before 5.6, else PIC objects from an old 11898 # archive will be linked into the output, leading to subtle bugs. 11899 postdeps_CXX='-lCstd -lCrun' 11900 ;; 11901 esac 11902 ;; 11903esac 11904 11905 11906case " $postdeps_CXX " in 11907*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11908esac 11909 11910lt_prog_compiler_wl_CXX= 11911lt_prog_compiler_pic_CXX= 11912lt_prog_compiler_static_CXX= 11913 11914{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11915echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11916 11917 # C++ specific cases for pic, static, wl, etc. 11918 if test "$GXX" = yes; then 11919 lt_prog_compiler_wl_CXX='-Wl,' 11920 lt_prog_compiler_static_CXX='-static' 11921 11922 case $host_os in 11923 aix*) 11924 # All AIX code is PIC. 11925 if test "$host_cpu" = ia64; then 11926 # AIX 5 now supports IA64 processor 11927 lt_prog_compiler_static_CXX='-Bstatic' 11928 fi 11929 ;; 11930 amigaos*) 11931 # FIXME: we need at least 68020 code to build shared libraries, but 11932 # adding the `-m68020' flag to GCC prevents building anything better, 11933 # like `-m68040'. 11934 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11935 ;; 11936 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11937 # PIC is the default for these OSes. 11938 ;; 11939 mingw* | os2* | pw32*) 11940 # This hack is so that the source file can tell whether it is being 11941 # built for inclusion in a dll (and should export symbols for example). 11942 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11943 ;; 11944 darwin* | rhapsody*) 11945 # PIC is the default on this platform 11946 # Common symbols not allowed in MH_DYLIB files 11947 lt_prog_compiler_pic_CXX='-fno-common' 11948 ;; 11949 *djgpp*) 11950 # DJGPP does not support shared libraries at all 11951 lt_prog_compiler_pic_CXX= 11952 ;; 11953 interix3*) 11954 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11955 # Instead, we relocate shared libraries at runtime. 11956 ;; 11957 sysv4*MP*) 11958 if test -d /usr/nec; then 11959 lt_prog_compiler_pic_CXX=-Kconform_pic 11960 fi 11961 ;; 11962 hpux*) 11963 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11964 # not for PA HP-UX. 11965 case $host_cpu in 11966 hppa*64*|ia64*) 11967 ;; 11968 *) 11969 lt_prog_compiler_pic_CXX='-fPIC' 11970 ;; 11971 esac 11972 ;; 11973 *) 11974 lt_prog_compiler_pic_CXX='-fPIC' 11975 ;; 11976 esac 11977 else 11978 case $host_os in 11979 aix4* | aix5*) 11980 # All AIX code is PIC. 11981 if test "$host_cpu" = ia64; then 11982 # AIX 5 now supports IA64 processor 11983 lt_prog_compiler_static_CXX='-Bstatic' 11984 else 11985 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11986 fi 11987 ;; 11988 chorus*) 11989 case $cc_basename in 11990 cxch68*) 11991 # Green Hills C++ Compiler 11992 # _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" 11993 ;; 11994 esac 11995 ;; 11996 darwin*) 11997 # PIC is the default on this platform 11998 # Common symbols not allowed in MH_DYLIB files 11999 case $cc_basename in 12000 xlc*) 12001 lt_prog_compiler_pic_CXX='-qnocommon' 12002 lt_prog_compiler_wl_CXX='-Wl,' 12003 ;; 12004 esac 12005 ;; 12006 dgux*) 12007 case $cc_basename in 12008 ec++*) 12009 lt_prog_compiler_pic_CXX='-KPIC' 12010 ;; 12011 ghcx*) 12012 # Green Hills C++ Compiler 12013 lt_prog_compiler_pic_CXX='-pic' 12014 ;; 12015 *) 12016 ;; 12017 esac 12018 ;; 12019 freebsd* | kfreebsd*-gnu | dragonfly*) 12020 # FreeBSD uses GNU C++ 12021 ;; 12022 hpux9* | hpux10* | hpux11*) 12023 case $cc_basename in 12024 CC*) 12025 lt_prog_compiler_wl_CXX='-Wl,' 12026 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12027 if test "$host_cpu" != ia64; then 12028 lt_prog_compiler_pic_CXX='+Z' 12029 fi 12030 ;; 12031 aCC*) 12032 lt_prog_compiler_wl_CXX='-Wl,' 12033 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12034 case $host_cpu in 12035 hppa*64*|ia64*) 12036 # +Z the default 12037 ;; 12038 *) 12039 lt_prog_compiler_pic_CXX='+Z' 12040 ;; 12041 esac 12042 ;; 12043 *) 12044 ;; 12045 esac 12046 ;; 12047 interix*) 12048 # This is c89, which is MS Visual C++ (no shared libs) 12049 # Anyone wants to do a port? 12050 ;; 12051 irix5* | irix6* | nonstopux*) 12052 case $cc_basename in 12053 CC*) 12054 lt_prog_compiler_wl_CXX='-Wl,' 12055 lt_prog_compiler_static_CXX='-non_shared' 12056 # CC pic flag -KPIC is the default. 12057 ;; 12058 *) 12059 ;; 12060 esac 12061 ;; 12062 linux*) 12063 case $cc_basename in 12064 KCC*) 12065 # KAI C++ Compiler 12066 lt_prog_compiler_wl_CXX='--backend -Wl,' 12067 lt_prog_compiler_pic_CXX='-fPIC' 12068 ;; 12069 icpc* | ecpc*) 12070 # Intel C++ 12071 lt_prog_compiler_wl_CXX='-Wl,' 12072 lt_prog_compiler_pic_CXX='-KPIC' 12073 lt_prog_compiler_static_CXX='-static' 12074 ;; 12075 pgCC*) 12076 # Portland Group C++ compiler. 12077 lt_prog_compiler_wl_CXX='-Wl,' 12078 lt_prog_compiler_pic_CXX='-fpic' 12079 lt_prog_compiler_static_CXX='-Bstatic' 12080 ;; 12081 cxx*) 12082 # Compaq C++ 12083 # Make sure the PIC flag is empty. It appears that all Alpha 12084 # Linux and Compaq Tru64 Unix objects are PIC. 12085 lt_prog_compiler_pic_CXX= 12086 lt_prog_compiler_static_CXX='-non_shared' 12087 ;; 12088 *) 12089 ;; 12090 esac 12091 ;; 12092 lynxos*) 12093 ;; 12094 m88k*) 12095 ;; 12096 mvs*) 12097 case $cc_basename in 12098 cxx*) 12099 lt_prog_compiler_pic_CXX='-W c,exportall' 12100 ;; 12101 *) 12102 ;; 12103 esac 12104 ;; 12105 netbsd*) 12106 ;; 12107 osf3* | osf4* | osf5*) 12108 case $cc_basename in 12109 KCC*) 12110 lt_prog_compiler_wl_CXX='--backend -Wl,' 12111 ;; 12112 RCC*) 12113 # Rational C++ 2.4.1 12114 lt_prog_compiler_pic_CXX='-pic' 12115 ;; 12116 cxx*) 12117 # Digital/Compaq C++ 12118 lt_prog_compiler_wl_CXX='-Wl,' 12119 # Make sure the PIC flag is empty. It appears that all Alpha 12120 # Linux and Compaq Tru64 Unix objects are PIC. 12121 lt_prog_compiler_pic_CXX= 12122 lt_prog_compiler_static_CXX='-non_shared' 12123 ;; 12124 *) 12125 ;; 12126 esac 12127 ;; 12128 psos*) 12129 ;; 12130 solaris*) 12131 case $cc_basename in 12132 CC*) 12133 # Sun C++ 4.2, 5.x and Centerline C++ 12134 lt_prog_compiler_pic_CXX='-KPIC' 12135 lt_prog_compiler_static_CXX='-Bstatic' 12136 lt_prog_compiler_wl_CXX='-Qoption ld ' 12137 ;; 12138 gcx*) 12139 # Green Hills C++ Compiler 12140 lt_prog_compiler_pic_CXX='-PIC' 12141 ;; 12142 *) 12143 ;; 12144 esac 12145 ;; 12146 sunos4*) 12147 case $cc_basename in 12148 CC*) 12149 # Sun C++ 4.x 12150 lt_prog_compiler_pic_CXX='-pic' 12151 lt_prog_compiler_static_CXX='-Bstatic' 12152 ;; 12153 lcc*) 12154 # Lucid 12155 lt_prog_compiler_pic_CXX='-pic' 12156 ;; 12157 *) 12158 ;; 12159 esac 12160 ;; 12161 tandem*) 12162 case $cc_basename in 12163 NCC*) 12164 # NonStop-UX NCC 3.20 12165 lt_prog_compiler_pic_CXX='-KPIC' 12166 ;; 12167 *) 12168 ;; 12169 esac 12170 ;; 12171 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12172 case $cc_basename in 12173 CC*) 12174 lt_prog_compiler_wl_CXX='-Wl,' 12175 lt_prog_compiler_pic_CXX='-KPIC' 12176 lt_prog_compiler_static_CXX='-Bstatic' 12177 ;; 12178 esac 12179 ;; 12180 vxworks*) 12181 ;; 12182 *) 12183 lt_prog_compiler_can_build_shared_CXX=no 12184 ;; 12185 esac 12186 fi 12187 12188{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12189echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12190 12191# 12192# Check to make sure the PIC flag actually works. 12193# 12194if test -n "$lt_prog_compiler_pic_CXX"; then 12195 12196{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12197echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12198if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12199 echo $ECHO_N "(cached) $ECHO_C" >&6 12200else 12201 lt_prog_compiler_pic_works_CXX=no 12202 ac_outfile=conftest.$ac_objext 12203 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12204 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12205 # Insert the option either (1) after the last *FLAGS variable, or 12206 # (2) before a word containing "conftest.", or (3) at the end. 12207 # Note that $ac_compile itself does not contain backslashes and begins 12208 # with a dollar sign (not a hyphen), so the echo should work correctly. 12209 # The option is referenced via a variable to avoid confusing sed. 12210 lt_compile=`echo "$ac_compile" | $SED \ 12211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12213 -e 's:$: $lt_compiler_flag:'` 12214 (eval echo "\"\$as_me:12214: $lt_compile\"" >&5) 12215 (eval "$lt_compile" 2>conftest.err) 12216 ac_status=$? 12217 cat conftest.err >&5 12218 echo "$as_me:12218: \$? = $ac_status" >&5 12219 if (exit $ac_status) && test -s "$ac_outfile"; then 12220 # The compiler can only warn and ignore the option if not recognized 12221 # So say no if there are warnings other than the usual output. 12222 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12224 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12225 lt_prog_compiler_pic_works_CXX=yes 12226 fi 12227 fi 12228 $rm conftest* 12229 12230fi 12231{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12232echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12233 12234if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12235 case $lt_prog_compiler_pic_CXX in 12236 "" | " "*) ;; 12237 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12238 esac 12239else 12240 lt_prog_compiler_pic_CXX= 12241 lt_prog_compiler_can_build_shared_CXX=no 12242fi 12243 12244fi 12245case $host_os in 12246 # For platforms which do not support PIC, -DPIC is meaningless: 12247 *djgpp*) 12248 lt_prog_compiler_pic_CXX= 12249 ;; 12250 *) 12251 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12252 ;; 12253esac 12254 12255# 12256# Check to make sure the static flag actually works. 12257# 12258wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12259{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12260echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12261if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12262 echo $ECHO_N "(cached) $ECHO_C" >&6 12263else 12264 lt_prog_compiler_static_works_CXX=no 12265 save_LDFLAGS="$LDFLAGS" 12266 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12267 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12268 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12269 # The linker can only warn and ignore the option if not recognized 12270 # So say no if there are warnings 12271 if test -s conftest.err; then 12272 # Append any errors to the config.log. 12273 cat conftest.err 1>&5 12274 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12275 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12276 if diff conftest.exp conftest.er2 >/dev/null; then 12277 lt_prog_compiler_static_works_CXX=yes 12278 fi 12279 else 12280 lt_prog_compiler_static_works_CXX=yes 12281 fi 12282 fi 12283 $rm conftest* 12284 LDFLAGS="$save_LDFLAGS" 12285 12286fi 12287{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12288echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12289 12290if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12291 : 12292else 12293 lt_prog_compiler_static_CXX= 12294fi 12295 12296 12297{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12298echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12299if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12300 echo $ECHO_N "(cached) $ECHO_C" >&6 12301else 12302 lt_cv_prog_compiler_c_o_CXX=no 12303 $rm -r conftest 2>/dev/null 12304 mkdir conftest 12305 cd conftest 12306 mkdir out 12307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12308 12309 lt_compiler_flag="-o out/conftest2.$ac_objext" 12310 # Insert the option either (1) after the last *FLAGS variable, or 12311 # (2) before a word containing "conftest.", or (3) at the end. 12312 # Note that $ac_compile itself does not contain backslashes and begins 12313 # with a dollar sign (not a hyphen), so the echo should work correctly. 12314 lt_compile=`echo "$ac_compile" | $SED \ 12315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12317 -e 's:$: $lt_compiler_flag:'` 12318 (eval echo "\"\$as_me:12318: $lt_compile\"" >&5) 12319 (eval "$lt_compile" 2>out/conftest.err) 12320 ac_status=$? 12321 cat out/conftest.err >&5 12322 echo "$as_me:12322: \$? = $ac_status" >&5 12323 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12324 then 12325 # The compiler can only warn and ignore the option if not recognized 12326 # So say no if there are warnings 12327 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12328 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12329 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12330 lt_cv_prog_compiler_c_o_CXX=yes 12331 fi 12332 fi 12333 chmod u+w . 2>&5 12334 $rm conftest* 12335 # SGI C++ compiler will create directory out/ii_files/ for 12336 # template instantiation 12337 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12338 $rm out/* && rmdir out 12339 cd .. 12340 rmdir conftest 12341 $rm conftest* 12342 12343fi 12344{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12345echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12346 12347 12348hard_links="nottested" 12349if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12350 # do not overwrite the value of need_locks provided by the user 12351 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12352echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12353 hard_links=yes 12354 $rm conftest* 12355 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12356 touch conftest.a 12357 ln conftest.a conftest.b 2>&5 || hard_links=no 12358 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12359 { echo "$as_me:$LINENO: result: $hard_links" >&5 12360echo "${ECHO_T}$hard_links" >&6; } 12361 if test "$hard_links" = no; then 12362 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12363echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12364 need_locks=warn 12365 fi 12366else 12367 need_locks=no 12368fi 12369 12370{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12371echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12372 12373 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12374 case $host_os in 12375 aix4* | aix5*) 12376 # If we're using GNU nm, then we don't want the "-C" option. 12377 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12378 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12379 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' 12380 else 12381 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' 12382 fi 12383 ;; 12384 pw32*) 12385 export_symbols_cmds_CXX="$ltdll_cmds" 12386 ;; 12387 cygwin* | mingw*) 12388 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' 12389 ;; 12390 *) 12391 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12392 ;; 12393 esac 12394 12395{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12396echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12397test "$ld_shlibs_CXX" = no && can_build_shared=no 12398 12399# 12400# Do we need to explicitly link libc? 12401# 12402case "x$archive_cmds_need_lc_CXX" in 12403x|xyes) 12404 # Assume -lc should be added 12405 archive_cmds_need_lc_CXX=yes 12406 12407 if test "$enable_shared" = yes && test "$GCC" = yes; then 12408 case $archive_cmds_CXX in 12409 *'~'*) 12410 # FIXME: we may have to deal with multi-command sequences. 12411 ;; 12412 '$CC '*) 12413 # Test whether the compiler implicitly links with -lc since on some 12414 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12415 # to ld, don't add -lc before -lgcc. 12416 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12417echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12418 $rm conftest* 12419 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12420 12421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12422 (eval $ac_compile) 2>&5 12423 ac_status=$? 12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12425 (exit $ac_status); } 2>conftest.err; then 12426 soname=conftest 12427 lib=conftest 12428 libobjs=conftest.$ac_objext 12429 deplibs= 12430 wl=$lt_prog_compiler_wl_CXX 12431 pic_flag=$lt_prog_compiler_pic_CXX 12432 compiler_flags=-v 12433 linker_flags=-v 12434 verstring= 12435 output_objdir=. 12436 libname=conftest 12437 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12438 allow_undefined_flag_CXX= 12439 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12440 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12441 ac_status=$? 12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12443 (exit $ac_status); } 12444 then 12445 archive_cmds_need_lc_CXX=no 12446 else 12447 archive_cmds_need_lc_CXX=yes 12448 fi 12449 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12450 else 12451 cat conftest.err 1>&5 12452 fi 12453 $rm conftest* 12454 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12455echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12456 ;; 12457 esac 12458 fi 12459 ;; 12460esac 12461 12462{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12463echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12464library_names_spec= 12465libname_spec='lib$name' 12466soname_spec= 12467shrext_cmds=".so" 12468postinstall_cmds= 12469postuninstall_cmds= 12470finish_cmds= 12471finish_eval= 12472shlibpath_var= 12473shlibpath_overrides_runpath=unknown 12474version_type=none 12475dynamic_linker="$host_os ld.so" 12476sys_lib_dlsearch_path_spec="/lib /usr/lib" 12477if test "$GCC" = yes; then 12478 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12479 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12480 # if the path contains ";" then we assume it to be the separator 12481 # otherwise default to the standard path separator (i.e. ":") - it is 12482 # assumed that no part of a normal pathname contains ";" but that should 12483 # okay in the real world where ";" in dirpaths is itself problematic. 12484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12485 else 12486 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12487 fi 12488else 12489 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12490fi 12491need_lib_prefix=unknown 12492hardcode_into_libs=no 12493 12494# when you set need_version to no, make sure it does not cause -set_version 12495# flags to be left without arguments 12496need_version=unknown 12497 12498case $host_os in 12499aix3*) 12500 version_type=linux 12501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12502 shlibpath_var=LIBPATH 12503 12504 # AIX 3 has no versioning support, so we append a major version to the name. 12505 soname_spec='${libname}${release}${shared_ext}$major' 12506 ;; 12507 12508aix4* | aix5*) 12509 version_type=linux 12510 need_lib_prefix=no 12511 need_version=no 12512 hardcode_into_libs=yes 12513 if test "$host_cpu" = ia64; then 12514 # AIX 5 supports IA64 12515 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12516 shlibpath_var=LD_LIBRARY_PATH 12517 else 12518 # With GCC up to 2.95.x, collect2 would create an import file 12519 # for dependence libraries. The import file would start with 12520 # the line `#! .'. This would cause the generated library to 12521 # depend on `.', always an invalid library. This was fixed in 12522 # development snapshots of GCC prior to 3.0. 12523 case $host_os in 12524 aix4 | aix4.[01] | aix4.[01].*) 12525 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12526 echo ' yes ' 12527 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12528 : 12529 else 12530 can_build_shared=no 12531 fi 12532 ;; 12533 esac 12534 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12535 # soname into executable. Probably we can add versioning support to 12536 # collect2, so additional links can be useful in future. 12537 if test "$aix_use_runtimelinking" = yes; then 12538 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12539 # instead of lib<name>.a to let people know that these are not 12540 # typical AIX shared libraries. 12541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12542 else 12543 # We preserve .a as extension for shared libraries through AIX4.2 12544 # and later when we are not doing run time linking. 12545 library_names_spec='${libname}${release}.a $libname.a' 12546 soname_spec='${libname}${release}${shared_ext}$major' 12547 fi 12548 shlibpath_var=LIBPATH 12549 fi 12550 ;; 12551 12552amigaos*) 12553 library_names_spec='$libname.ixlibrary $libname.a' 12554 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12555 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' 12556 ;; 12557 12558beos*) 12559 library_names_spec='${libname}${shared_ext}' 12560 dynamic_linker="$host_os ld.so" 12561 shlibpath_var=LIBRARY_PATH 12562 ;; 12563 12564bsdi[45]*) 12565 version_type=linux 12566 need_version=no 12567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12568 soname_spec='${libname}${release}${shared_ext}$major' 12569 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12570 shlibpath_var=LD_LIBRARY_PATH 12571 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12572 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12573 # the default ld.so.conf also contains /usr/contrib/lib and 12574 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12575 # libtool to hard-code these into programs 12576 ;; 12577 12578cygwin* | mingw* | pw32*) 12579 version_type=windows 12580 shrext_cmds=".dll" 12581 need_version=no 12582 need_lib_prefix=no 12583 12584 case $GCC,$host_os in 12585 yes,cygwin* | yes,mingw* | yes,pw32*) 12586 library_names_spec='$libname.dll.a' 12587 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12588 postinstall_cmds='base_file=`basename \${file}`~ 12589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12590 dldir=$destdir/`dirname \$dlpath`~ 12591 test -d \$dldir || mkdir -p \$dldir~ 12592 $install_prog $dir/$dlname \$dldir/$dlname~ 12593 chmod a+x \$dldir/$dlname' 12594 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12595 dlpath=$dir/\$dldll~ 12596 $rm \$dlpath' 12597 shlibpath_overrides_runpath=yes 12598 12599 case $host_os in 12600 cygwin*) 12601 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12602 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12603 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12604 ;; 12605 mingw*) 12606 # MinGW DLLs use traditional 'lib' prefix 12607 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12608 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12609 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12610 # It is most probably a Windows format PATH printed by 12611 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12612 # path with ; separators, and with drive letters. We can handle the 12613 # drive letters (cygwin fileutils understands them), so leave them, 12614 # especially as we might pass files found there to a mingw objdump, 12615 # which wouldn't understand a cygwinified path. Ahh. 12616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12617 else 12618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12619 fi 12620 ;; 12621 pw32*) 12622 # pw32 DLLs use 'pw' prefix rather than 'lib' 12623 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12624 ;; 12625 esac 12626 ;; 12627 12628 *) 12629 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12630 ;; 12631 esac 12632 dynamic_linker='Win32 ld.exe' 12633 # FIXME: first we should search . and the directory the executable is in 12634 shlibpath_var=PATH 12635 ;; 12636 12637darwin* | rhapsody*) 12638 dynamic_linker="$host_os dyld" 12639 version_type=darwin 12640 need_lib_prefix=no 12641 need_version=no 12642 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12643 soname_spec='${libname}${release}${major}$shared_ext' 12644 shlibpath_overrides_runpath=yes 12645 shlibpath_var=DYLD_LIBRARY_PATH 12646 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12647 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12648 if test "$GCC" = yes; then 12649 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"` 12650 else 12651 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12652 fi 12653 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12654 ;; 12655 12656dgux*) 12657 version_type=linux 12658 need_lib_prefix=no 12659 need_version=no 12660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12661 soname_spec='${libname}${release}${shared_ext}$major' 12662 shlibpath_var=LD_LIBRARY_PATH 12663 ;; 12664 12665freebsd1*) 12666 dynamic_linker=no 12667 ;; 12668 12669kfreebsd*-gnu) 12670 version_type=linux 12671 need_lib_prefix=no 12672 need_version=no 12673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12674 soname_spec='${libname}${release}${shared_ext}$major' 12675 shlibpath_var=LD_LIBRARY_PATH 12676 shlibpath_overrides_runpath=no 12677 hardcode_into_libs=yes 12678 dynamic_linker='GNU ld.so' 12679 ;; 12680 12681freebsd* | dragonfly*) 12682 # DragonFly does not have aout. When/if they implement a new 12683 # versioning mechanism, adjust this. 12684 if test -x /usr/bin/objformat; then 12685 objformat=`/usr/bin/objformat` 12686 else 12687 case $host_os in 12688 freebsd[123]*) objformat=aout ;; 12689 *) objformat=elf ;; 12690 esac 12691 fi 12692 version_type=freebsd-$objformat 12693 case $version_type in 12694 freebsd-elf*) 12695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12696 need_version=no 12697 need_lib_prefix=no 12698 ;; 12699 freebsd-*) 12700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12701 need_version=yes 12702 ;; 12703 esac 12704 shlibpath_var=LD_LIBRARY_PATH 12705 case $host_os in 12706 freebsd2*) 12707 shlibpath_overrides_runpath=yes 12708 ;; 12709 freebsd3.[01]* | freebsdelf3.[01]*) 12710 shlibpath_overrides_runpath=yes 12711 hardcode_into_libs=yes 12712 ;; 12713 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12714 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12715 shlibpath_overrides_runpath=no 12716 hardcode_into_libs=yes 12717 ;; 12718 freebsd*) # from 4.6 on 12719 shlibpath_overrides_runpath=yes 12720 hardcode_into_libs=yes 12721 ;; 12722 esac 12723 ;; 12724 12725gnu*) 12726 version_type=linux 12727 need_lib_prefix=no 12728 need_version=no 12729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12730 soname_spec='${libname}${release}${shared_ext}$major' 12731 shlibpath_var=LD_LIBRARY_PATH 12732 hardcode_into_libs=yes 12733 ;; 12734 12735hpux9* | hpux10* | hpux11*) 12736 # Give a soname corresponding to the major version so that dld.sl refuses to 12737 # link against other versions. 12738 version_type=sunos 12739 need_lib_prefix=no 12740 need_version=no 12741 case $host_cpu in 12742 ia64*) 12743 shrext_cmds='.so' 12744 hardcode_into_libs=yes 12745 dynamic_linker="$host_os dld.so" 12746 shlibpath_var=LD_LIBRARY_PATH 12747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12749 soname_spec='${libname}${release}${shared_ext}$major' 12750 if test "X$HPUX_IA64_MODE" = X32; then 12751 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12752 else 12753 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12754 fi 12755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12756 ;; 12757 hppa*64*) 12758 shrext_cmds='.sl' 12759 hardcode_into_libs=yes 12760 dynamic_linker="$host_os dld.sl" 12761 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12764 soname_spec='${libname}${release}${shared_ext}$major' 12765 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12767 ;; 12768 *) 12769 shrext_cmds='.sl' 12770 dynamic_linker="$host_os dld.sl" 12771 shlibpath_var=SHLIB_PATH 12772 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12774 soname_spec='${libname}${release}${shared_ext}$major' 12775 ;; 12776 esac 12777 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12778 postinstall_cmds='chmod 555 $lib' 12779 ;; 12780 12781interix3*) 12782 version_type=linux 12783 need_lib_prefix=no 12784 need_version=no 12785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12786 soname_spec='${libname}${release}${shared_ext}$major' 12787 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12788 shlibpath_var=LD_LIBRARY_PATH 12789 shlibpath_overrides_runpath=no 12790 hardcode_into_libs=yes 12791 ;; 12792 12793irix5* | irix6* | nonstopux*) 12794 case $host_os in 12795 nonstopux*) version_type=nonstopux ;; 12796 *) 12797 if test "$lt_cv_prog_gnu_ld" = yes; then 12798 version_type=linux 12799 else 12800 version_type=irix 12801 fi ;; 12802 esac 12803 need_lib_prefix=no 12804 need_version=no 12805 soname_spec='${libname}${release}${shared_ext}$major' 12806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12807 case $host_os in 12808 irix5* | nonstopux*) 12809 libsuff= shlibsuff= 12810 ;; 12811 *) 12812 case $LD in # libtool.m4 will add one of these switches to LD 12813 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12814 libsuff= shlibsuff= libmagic=32-bit;; 12815 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12816 libsuff=32 shlibsuff=N32 libmagic=N32;; 12817 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12818 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12819 *) libsuff= shlibsuff= libmagic=never-match;; 12820 esac 12821 ;; 12822 esac 12823 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12824 shlibpath_overrides_runpath=no 12825 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12826 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12827 hardcode_into_libs=yes 12828 ;; 12829 12830# No shared lib support for Linux oldld, aout, or coff. 12831linux*oldld* | linux*aout* | linux*coff*) 12832 dynamic_linker=no 12833 ;; 12834 12835# This must be Linux ELF. 12836linux*) 12837 version_type=linux 12838 need_lib_prefix=no 12839 need_version=no 12840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12841 soname_spec='${libname}${release}${shared_ext}$major' 12842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12843 shlibpath_var=LD_LIBRARY_PATH 12844 shlibpath_overrides_runpath=no 12845 # This implies no fast_install, which is unacceptable. 12846 # Some rework will be needed to allow for fast_install 12847 # before this can be enabled. 12848 hardcode_into_libs=yes 12849 12850 # Append ld.so.conf contents to the search path 12851 if test -f /etc/ld.so.conf; then 12852 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' ' '` 12853 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12854 fi 12855 12856 # We used to test for /lib/ld.so.1 and disable shared libraries on 12857 # powerpc, because MkLinux only supported shared libraries with the 12858 # GNU dynamic linker. Since this was broken with cross compilers, 12859 # most powerpc-linux boxes support dynamic linking these days and 12860 # people can always --disable-shared, the test was removed, and we 12861 # assume the GNU/Linux dynamic linker is in use. 12862 dynamic_linker='GNU/Linux ld.so' 12863 ;; 12864 12865knetbsd*-gnu) 12866 version_type=linux 12867 need_lib_prefix=no 12868 need_version=no 12869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12870 soname_spec='${libname}${release}${shared_ext}$major' 12871 shlibpath_var=LD_LIBRARY_PATH 12872 shlibpath_overrides_runpath=no 12873 hardcode_into_libs=yes 12874 dynamic_linker='GNU ld.so' 12875 ;; 12876 12877netbsd*) 12878 version_type=sunos 12879 need_lib_prefix=no 12880 need_version=no 12881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12884 dynamic_linker='NetBSD (a.out) ld.so' 12885 else 12886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12887 soname_spec='${libname}${release}${shared_ext}$major' 12888 dynamic_linker='NetBSD ld.elf_so' 12889 fi 12890 shlibpath_var=LD_LIBRARY_PATH 12891 shlibpath_overrides_runpath=yes 12892 hardcode_into_libs=yes 12893 ;; 12894 12895newsos6) 12896 version_type=linux 12897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12898 shlibpath_var=LD_LIBRARY_PATH 12899 shlibpath_overrides_runpath=yes 12900 ;; 12901 12902nto-qnx*) 12903 version_type=linux 12904 need_lib_prefix=no 12905 need_version=no 12906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12907 soname_spec='${libname}${release}${shared_ext}$major' 12908 shlibpath_var=LD_LIBRARY_PATH 12909 shlibpath_overrides_runpath=yes 12910 ;; 12911 12912openbsd*) 12913 version_type=sunos 12914 sys_lib_dlsearch_path_spec="/usr/lib" 12915 need_lib_prefix=no 12916 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12917 case $host_os in 12918 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12919 *) need_version=no ;; 12920 esac 12921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12923 shlibpath_var=LD_LIBRARY_PATH 12924 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12925 case $host_os in 12926 openbsd2.[89] | openbsd2.[89].*) 12927 shlibpath_overrides_runpath=no 12928 ;; 12929 *) 12930 shlibpath_overrides_runpath=yes 12931 ;; 12932 esac 12933 else 12934 shlibpath_overrides_runpath=yes 12935 fi 12936 ;; 12937 12938os2*) 12939 libname_spec='$name' 12940 shrext_cmds=".dll" 12941 need_lib_prefix=no 12942 library_names_spec='$libname${shared_ext} $libname.a' 12943 dynamic_linker='OS/2 ld.exe' 12944 shlibpath_var=LIBPATH 12945 ;; 12946 12947osf3* | osf4* | osf5*) 12948 version_type=osf 12949 need_lib_prefix=no 12950 need_version=no 12951 soname_spec='${libname}${release}${shared_ext}$major' 12952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12953 shlibpath_var=LD_LIBRARY_PATH 12954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12956 ;; 12957 12958solaris*) 12959 version_type=linux 12960 need_lib_prefix=no 12961 need_version=no 12962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12963 soname_spec='${libname}${release}${shared_ext}$major' 12964 shlibpath_var=LD_LIBRARY_PATH 12965 shlibpath_overrides_runpath=yes 12966 hardcode_into_libs=yes 12967 # ldd complains unless libraries are executable 12968 postinstall_cmds='chmod +x $lib' 12969 ;; 12970 12971sunos4*) 12972 version_type=sunos 12973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12974 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12975 shlibpath_var=LD_LIBRARY_PATH 12976 shlibpath_overrides_runpath=yes 12977 if test "$with_gnu_ld" = yes; then 12978 need_lib_prefix=no 12979 fi 12980 need_version=yes 12981 ;; 12982 12983sysv4 | sysv4.3*) 12984 version_type=linux 12985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12986 soname_spec='${libname}${release}${shared_ext}$major' 12987 shlibpath_var=LD_LIBRARY_PATH 12988 case $host_vendor in 12989 sni) 12990 shlibpath_overrides_runpath=no 12991 need_lib_prefix=no 12992 export_dynamic_flag_spec='${wl}-Blargedynsym' 12993 runpath_var=LD_RUN_PATH 12994 ;; 12995 siemens) 12996 need_lib_prefix=no 12997 ;; 12998 motorola) 12999 need_lib_prefix=no 13000 need_version=no 13001 shlibpath_overrides_runpath=no 13002 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13003 ;; 13004 esac 13005 ;; 13006 13007sysv4*MP*) 13008 if test -d /usr/nec ;then 13009 version_type=linux 13010 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13011 soname_spec='$libname${shared_ext}.$major' 13012 shlibpath_var=LD_LIBRARY_PATH 13013 fi 13014 ;; 13015 13016sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13017 version_type=freebsd-elf 13018 need_lib_prefix=no 13019 need_version=no 13020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13021 soname_spec='${libname}${release}${shared_ext}$major' 13022 shlibpath_var=LD_LIBRARY_PATH 13023 hardcode_into_libs=yes 13024 if test "$with_gnu_ld" = yes; then 13025 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13026 shlibpath_overrides_runpath=no 13027 else 13028 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13029 shlibpath_overrides_runpath=yes 13030 case $host_os in 13031 sco3.2v5*) 13032 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13033 ;; 13034 esac 13035 fi 13036 sys_lib_dlsearch_path_spec='/usr/lib' 13037 ;; 13038 13039uts4*) 13040 version_type=linux 13041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13042 soname_spec='${libname}${release}${shared_ext}$major' 13043 shlibpath_var=LD_LIBRARY_PATH 13044 ;; 13045 13046*) 13047 dynamic_linker=no 13048 ;; 13049esac 13050{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13051echo "${ECHO_T}$dynamic_linker" >&6; } 13052test "$dynamic_linker" = no && can_build_shared=no 13053 13054variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13055if test "$GCC" = yes; then 13056 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13057fi 13058 13059{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13060echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13061hardcode_action_CXX= 13062if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13063 test -n "$runpath_var_CXX" || \ 13064 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13065 13066 # We can hardcode non-existant directories. 13067 if test "$hardcode_direct_CXX" != no && 13068 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13069 # have to relink, otherwise we might link with an installed library 13070 # when we should be linking with a yet-to-be-installed one 13071 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13072 test "$hardcode_minus_L_CXX" != no; then 13073 # Linking always hardcodes the temporary library directory. 13074 hardcode_action_CXX=relink 13075 else 13076 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13077 hardcode_action_CXX=immediate 13078 fi 13079else 13080 # We cannot hardcode anything, or else we can only hardcode existing 13081 # directories. 13082 hardcode_action_CXX=unsupported 13083fi 13084{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13085echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13086 13087if test "$hardcode_action_CXX" = relink; then 13088 # Fast installation is not supported 13089 enable_fast_install=no 13090elif test "$shlibpath_overrides_runpath" = yes || 13091 test "$enable_shared" = no; then 13092 # Fast installation is not necessary 13093 enable_fast_install=needless 13094fi 13095 13096 13097# The else clause should only fire when bootstrapping the 13098# libtool distribution, otherwise you forgot to ship ltmain.sh 13099# with your package, and you will get complaints that there are 13100# no rules to generate ltmain.sh. 13101if test -f "$ltmain"; then 13102 # See if we are running on zsh, and set the options which allow our commands through 13103 # without removal of \ escapes. 13104 if test -n "${ZSH_VERSION+set}" ; then 13105 setopt NO_GLOB_SUBST 13106 fi 13107 # Now quote all the things that may contain metacharacters while being 13108 # careful not to overquote the AC_SUBSTed values. We take copies of the 13109 # variables and quote the copies for generation of the libtool script. 13110 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13111 SED SHELL STRIP \ 13112 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13113 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13114 deplibs_check_method reload_flag reload_cmds need_locks \ 13115 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13116 lt_cv_sys_global_symbol_to_c_name_address \ 13117 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13118 old_postinstall_cmds old_postuninstall_cmds \ 13119 compiler_CXX \ 13120 CC_CXX \ 13121 LD_CXX \ 13122 lt_prog_compiler_wl_CXX \ 13123 lt_prog_compiler_pic_CXX \ 13124 lt_prog_compiler_static_CXX \ 13125 lt_prog_compiler_no_builtin_flag_CXX \ 13126 export_dynamic_flag_spec_CXX \ 13127 thread_safe_flag_spec_CXX \ 13128 whole_archive_flag_spec_CXX \ 13129 enable_shared_with_static_runtimes_CXX \ 13130 old_archive_cmds_CXX \ 13131 old_archive_from_new_cmds_CXX \ 13132 predep_objects_CXX \ 13133 postdep_objects_CXX \ 13134 predeps_CXX \ 13135 postdeps_CXX \ 13136 compiler_lib_search_path_CXX \ 13137 archive_cmds_CXX \ 13138 archive_expsym_cmds_CXX \ 13139 postinstall_cmds_CXX \ 13140 postuninstall_cmds_CXX \ 13141 old_archive_from_expsyms_cmds_CXX \ 13142 allow_undefined_flag_CXX \ 13143 no_undefined_flag_CXX \ 13144 export_symbols_cmds_CXX \ 13145 hardcode_libdir_flag_spec_CXX \ 13146 hardcode_libdir_flag_spec_ld_CXX \ 13147 hardcode_libdir_separator_CXX \ 13148 hardcode_automatic_CXX \ 13149 module_cmds_CXX \ 13150 module_expsym_cmds_CXX \ 13151 lt_cv_prog_compiler_c_o_CXX \ 13152 exclude_expsyms_CXX \ 13153 include_expsyms_CXX; do 13154 13155 case $var in 13156 old_archive_cmds_CXX | \ 13157 old_archive_from_new_cmds_CXX | \ 13158 archive_cmds_CXX | \ 13159 archive_expsym_cmds_CXX | \ 13160 module_cmds_CXX | \ 13161 module_expsym_cmds_CXX | \ 13162 old_archive_from_expsyms_cmds_CXX | \ 13163 export_symbols_cmds_CXX | \ 13164 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13165 postinstall_cmds | postuninstall_cmds | \ 13166 old_postinstall_cmds | old_postuninstall_cmds | \ 13167 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13168 # Double-quote double-evaled strings. 13169 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13170 ;; 13171 *) 13172 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13173 ;; 13174 esac 13175 done 13176 13177 case $lt_echo in 13178 *'\$0 --fallback-echo"') 13179 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13180 ;; 13181 esac 13182 13183cfgfile="$ofile" 13184 13185 cat <<__EOF__ >> "$cfgfile" 13186# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13187 13188# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13189 13190# Shell to use when invoking shell scripts. 13191SHELL=$lt_SHELL 13192 13193# Whether or not to build shared libraries. 13194build_libtool_libs=$enable_shared 13195 13196# Whether or not to build static libraries. 13197build_old_libs=$enable_static 13198 13199# Whether or not to add -lc for building shared libraries. 13200build_libtool_need_lc=$archive_cmds_need_lc_CXX 13201 13202# Whether or not to disallow shared libs when runtime libs are static 13203allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13204 13205# Whether or not to optimize for fast installation. 13206fast_install=$enable_fast_install 13207 13208# The host system. 13209host_alias=$host_alias 13210host=$host 13211host_os=$host_os 13212 13213# The build system. 13214build_alias=$build_alias 13215build=$build 13216build_os=$build_os 13217 13218# An echo program that does not interpret backslashes. 13219echo=$lt_echo 13220 13221# The archiver. 13222AR=$lt_AR 13223AR_FLAGS=$lt_AR_FLAGS 13224 13225# A C compiler. 13226LTCC=$lt_LTCC 13227 13228# LTCC compiler flags. 13229LTCFLAGS=$lt_LTCFLAGS 13230 13231# A language-specific compiler. 13232CC=$lt_compiler_CXX 13233 13234# Is the compiler the GNU C compiler? 13235with_gcc=$GCC_CXX 13236 13237# An ERE matcher. 13238EGREP=$lt_EGREP 13239 13240# The linker used to build libraries. 13241LD=$lt_LD_CXX 13242 13243# Whether we need hard or soft links. 13244LN_S=$lt_LN_S 13245 13246# A BSD-compatible nm program. 13247NM=$lt_NM 13248 13249# A symbol stripping program 13250STRIP=$lt_STRIP 13251 13252# Used to examine libraries when file_magic_cmd begins "file" 13253MAGIC_CMD=$MAGIC_CMD 13254 13255# Used on cygwin: DLL creation program. 13256DLLTOOL="$DLLTOOL" 13257 13258# Used on cygwin: object dumper. 13259OBJDUMP="$OBJDUMP" 13260 13261# Used on cygwin: assembler. 13262AS="$AS" 13263 13264# The name of the directory that contains temporary libtool files. 13265objdir=$objdir 13266 13267# How to create reloadable object files. 13268reload_flag=$lt_reload_flag 13269reload_cmds=$lt_reload_cmds 13270 13271# How to pass a linker flag through the compiler. 13272wl=$lt_lt_prog_compiler_wl_CXX 13273 13274# Object file suffix (normally "o"). 13275objext="$ac_objext" 13276 13277# Old archive suffix (normally "a"). 13278libext="$libext" 13279 13280# Shared library suffix (normally ".so"). 13281shrext_cmds='$shrext_cmds' 13282 13283# Executable file suffix (normally ""). 13284exeext="$exeext" 13285 13286# Additional compiler flags for building library objects. 13287pic_flag=$lt_lt_prog_compiler_pic_CXX 13288pic_mode=$pic_mode 13289 13290# What is the maximum length of a command? 13291max_cmd_len=$lt_cv_sys_max_cmd_len 13292 13293# Does compiler simultaneously support -c and -o options? 13294compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13295 13296# Must we lock files when doing compilation? 13297need_locks=$lt_need_locks 13298 13299# Do we need the lib prefix for modules? 13300need_lib_prefix=$need_lib_prefix 13301 13302# Do we need a version for libraries? 13303need_version=$need_version 13304 13305# Whether dlopen is supported. 13306dlopen_support=$enable_dlopen 13307 13308# Whether dlopen of programs is supported. 13309dlopen_self=$enable_dlopen_self 13310 13311# Whether dlopen of statically linked programs is supported. 13312dlopen_self_static=$enable_dlopen_self_static 13313 13314# Compiler flag to prevent dynamic linking. 13315link_static_flag=$lt_lt_prog_compiler_static_CXX 13316 13317# Compiler flag to turn off builtin functions. 13318no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13319 13320# Compiler flag to allow reflexive dlopens. 13321export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13322 13323# Compiler flag to generate shared objects directly from archives. 13324whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13325 13326# Compiler flag to generate thread-safe objects. 13327thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13328 13329# Library versioning type. 13330version_type=$version_type 13331 13332# Format of library name prefix. 13333libname_spec=$lt_libname_spec 13334 13335# List of archive names. First name is the real one, the rest are links. 13336# The last name is the one that the linker finds with -lNAME. 13337library_names_spec=$lt_library_names_spec 13338 13339# The coded name of the library, if different from the real name. 13340soname_spec=$lt_soname_spec 13341 13342# Commands used to build and install an old-style archive. 13343RANLIB=$lt_RANLIB 13344old_archive_cmds=$lt_old_archive_cmds_CXX 13345old_postinstall_cmds=$lt_old_postinstall_cmds 13346old_postuninstall_cmds=$lt_old_postuninstall_cmds 13347 13348# Create an old-style archive from a shared archive. 13349old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13350 13351# Create a temporary old-style archive to link instead of a shared archive. 13352old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13353 13354# Commands used to build and install a shared archive. 13355archive_cmds=$lt_archive_cmds_CXX 13356archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13357postinstall_cmds=$lt_postinstall_cmds 13358postuninstall_cmds=$lt_postuninstall_cmds 13359 13360# Commands used to build a loadable module (assumed same as above if empty) 13361module_cmds=$lt_module_cmds_CXX 13362module_expsym_cmds=$lt_module_expsym_cmds_CXX 13363 13364# Commands to strip libraries. 13365old_striplib=$lt_old_striplib 13366striplib=$lt_striplib 13367 13368# Dependencies to place before the objects being linked to create a 13369# shared library. 13370predep_objects=$lt_predep_objects_CXX 13371 13372# Dependencies to place after the objects being linked to create a 13373# shared library. 13374postdep_objects=$lt_postdep_objects_CXX 13375 13376# Dependencies to place before the objects being linked to create a 13377# shared library. 13378predeps=$lt_predeps_CXX 13379 13380# Dependencies to place after the objects being linked to create a 13381# shared library. 13382postdeps=$lt_postdeps_CXX 13383 13384# The library search path used internally by the compiler when linking 13385# a shared library. 13386compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13387 13388# Method to check whether dependent libraries are shared objects. 13389deplibs_check_method=$lt_deplibs_check_method 13390 13391# Command to use when deplibs_check_method == file_magic. 13392file_magic_cmd=$lt_file_magic_cmd 13393 13394# Flag that allows shared libraries with undefined symbols to be built. 13395allow_undefined_flag=$lt_allow_undefined_flag_CXX 13396 13397# Flag that forces no undefined symbols. 13398no_undefined_flag=$lt_no_undefined_flag_CXX 13399 13400# Commands used to finish a libtool library installation in a directory. 13401finish_cmds=$lt_finish_cmds 13402 13403# Same as above, but a single script fragment to be evaled but not shown. 13404finish_eval=$lt_finish_eval 13405 13406# Take the output of nm and produce a listing of raw symbols and C names. 13407global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13408 13409# Transform the output of nm in a proper C declaration 13410global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13411 13412# Transform the output of nm in a C name address pair 13413global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13414 13415# This is the shared library runtime path variable. 13416runpath_var=$runpath_var 13417 13418# This is the shared library path variable. 13419shlibpath_var=$shlibpath_var 13420 13421# Is shlibpath searched before the hard-coded library search path? 13422shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13423 13424# How to hardcode a shared library path into an executable. 13425hardcode_action=$hardcode_action_CXX 13426 13427# Whether we should hardcode library paths into libraries. 13428hardcode_into_libs=$hardcode_into_libs 13429 13430# Flag to hardcode \$libdir into a binary during linking. 13431# This must work even if \$libdir does not exist. 13432hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13433 13434# If ld is used when linking, flag to hardcode \$libdir into 13435# a binary during linking. This must work even if \$libdir does 13436# not exist. 13437hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13438 13439# Whether we need a single -rpath flag with a separated argument. 13440hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13441 13442# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13443# resulting binary. 13444hardcode_direct=$hardcode_direct_CXX 13445 13446# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13447# resulting binary. 13448hardcode_minus_L=$hardcode_minus_L_CXX 13449 13450# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13451# the resulting binary. 13452hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13453 13454# Set to yes if building a shared library automatically hardcodes DIR into the library 13455# and all subsequent libraries and executables linked against it. 13456hardcode_automatic=$hardcode_automatic_CXX 13457 13458# Variables whose values should be saved in libtool wrapper scripts and 13459# restored at relink time. 13460variables_saved_for_relink="$variables_saved_for_relink" 13461 13462# Whether libtool must link a program against all its dependency libraries. 13463link_all_deplibs=$link_all_deplibs_CXX 13464 13465# Compile-time system search path for libraries 13466sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13467 13468# Run-time system search path for libraries 13469sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13470 13471# Fix the shell variable \$srcfile for the compiler. 13472fix_srcfile_path="$fix_srcfile_path_CXX" 13473 13474# Set to yes if exported symbols are required. 13475always_export_symbols=$always_export_symbols_CXX 13476 13477# The commands to list exported symbols. 13478export_symbols_cmds=$lt_export_symbols_cmds_CXX 13479 13480# The commands to extract the exported symbol list from a shared archive. 13481extract_expsyms_cmds=$lt_extract_expsyms_cmds 13482 13483# Symbols that should not be listed in the preloaded symbols. 13484exclude_expsyms=$lt_exclude_expsyms_CXX 13485 13486# Symbols that must always be exported. 13487include_expsyms=$lt_include_expsyms_CXX 13488 13489# ### END LIBTOOL TAG CONFIG: $tagname 13490 13491__EOF__ 13492 13493 13494else 13495 # If there is no Makefile yet, we rely on a make rule to execute 13496 # `config.status --recheck' to rerun these tests and create the 13497 # libtool script then. 13498 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13499 if test -f "$ltmain_in"; then 13500 test -f Makefile && make "$ltmain" 13501 fi 13502fi 13503 13504 13505ac_ext=c 13506ac_cpp='$CPP $CPPFLAGS' 13507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13509ac_compiler_gnu=$ac_cv_c_compiler_gnu 13510 13511CC=$lt_save_CC 13512LDCXX=$LD 13513LD=$lt_save_LD 13514GCC=$lt_save_GCC 13515with_gnu_ldcxx=$with_gnu_ld 13516with_gnu_ld=$lt_save_with_gnu_ld 13517lt_cv_path_LDCXX=$lt_cv_path_LD 13518lt_cv_path_LD=$lt_save_path_LD 13519lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13520lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13521 13522 else 13523 tagname="" 13524 fi 13525 ;; 13526 13527 F77) 13528 if test -n "$F77" && test "X$F77" != "Xno"; then 13529 13530ac_ext=f 13531ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13532ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13533ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13534 13535 13536archive_cmds_need_lc_F77=no 13537allow_undefined_flag_F77= 13538always_export_symbols_F77=no 13539archive_expsym_cmds_F77= 13540export_dynamic_flag_spec_F77= 13541hardcode_direct_F77=no 13542hardcode_libdir_flag_spec_F77= 13543hardcode_libdir_flag_spec_ld_F77= 13544hardcode_libdir_separator_F77= 13545hardcode_minus_L_F77=no 13546hardcode_automatic_F77=no 13547module_cmds_F77= 13548module_expsym_cmds_F77= 13549link_all_deplibs_F77=unknown 13550old_archive_cmds_F77=$old_archive_cmds 13551no_undefined_flag_F77= 13552whole_archive_flag_spec_F77= 13553enable_shared_with_static_runtimes_F77=no 13554 13555# Source file extension for f77 test sources. 13556ac_ext=f 13557 13558# Object file extension for compiled f77 test sources. 13559objext=o 13560objext_F77=$objext 13561 13562# Code to be used in simple compile tests 13563lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13564 13565# Code to be used in simple link tests 13566lt_simple_link_test_code=" program t\n end\n" 13567 13568# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13569 13570# If no C compiler was specified, use CC. 13571LTCC=${LTCC-"$CC"} 13572 13573# If no C compiler flags were specified, use CFLAGS. 13574LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13575 13576# Allow CC to be a program name with arguments. 13577compiler=$CC 13578 13579 13580# save warnings/boilerplate of simple test code 13581ac_outfile=conftest.$ac_objext 13582printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13583eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13584_lt_compiler_boilerplate=`cat conftest.err` 13585$rm conftest* 13586 13587ac_outfile=conftest.$ac_objext 13588printf "$lt_simple_link_test_code" >conftest.$ac_ext 13589eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13590_lt_linker_boilerplate=`cat conftest.err` 13591$rm conftest* 13592 13593 13594# Allow CC to be a program name with arguments. 13595lt_save_CC="$CC" 13596CC=${F77-"f77"} 13597compiler=$CC 13598compiler_F77=$CC 13599for cc_temp in $compiler""; do 13600 case $cc_temp in 13601 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13602 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13603 \-*) ;; 13604 *) break;; 13605 esac 13606done 13607cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13608 13609 13610{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13611echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13612{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13613echo "${ECHO_T}$can_build_shared" >&6; } 13614 13615{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13616echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13617test "$can_build_shared" = "no" && enable_shared=no 13618 13619# On AIX, shared libraries and static libraries use the same namespace, and 13620# are all built from PIC. 13621case $host_os in 13622aix3*) 13623 test "$enable_shared" = yes && enable_static=no 13624 if test -n "$RANLIB"; then 13625 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13626 postinstall_cmds='$RANLIB $lib' 13627 fi 13628 ;; 13629aix4* | aix5*) 13630 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13631 test "$enable_shared" = yes && enable_static=no 13632 fi 13633 ;; 13634esac 13635{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13636echo "${ECHO_T}$enable_shared" >&6; } 13637 13638{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13639echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13640# Make sure either enable_shared or enable_static is yes. 13641test "$enable_shared" = yes || enable_static=yes 13642{ echo "$as_me:$LINENO: result: $enable_static" >&5 13643echo "${ECHO_T}$enable_static" >&6; } 13644 13645GCC_F77="$G77" 13646LD_F77="$LD" 13647 13648lt_prog_compiler_wl_F77= 13649lt_prog_compiler_pic_F77= 13650lt_prog_compiler_static_F77= 13651 13652{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13653echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13654 13655 if test "$GCC" = yes; then 13656 lt_prog_compiler_wl_F77='-Wl,' 13657 lt_prog_compiler_static_F77='-static' 13658 13659 case $host_os in 13660 aix*) 13661 # All AIX code is PIC. 13662 if test "$host_cpu" = ia64; then 13663 # AIX 5 now supports IA64 processor 13664 lt_prog_compiler_static_F77='-Bstatic' 13665 fi 13666 ;; 13667 13668 amigaos*) 13669 # FIXME: we need at least 68020 code to build shared libraries, but 13670 # adding the `-m68020' flag to GCC prevents building anything better, 13671 # like `-m68040'. 13672 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13673 ;; 13674 13675 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13676 # PIC is the default for these OSes. 13677 ;; 13678 13679 mingw* | pw32* | os2*) 13680 # This hack is so that the source file can tell whether it is being 13681 # built for inclusion in a dll (and should export symbols for example). 13682 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13683 ;; 13684 13685 darwin* | rhapsody*) 13686 # PIC is the default on this platform 13687 # Common symbols not allowed in MH_DYLIB files 13688 lt_prog_compiler_pic_F77='-fno-common' 13689 ;; 13690 13691 interix3*) 13692 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13693 # Instead, we relocate shared libraries at runtime. 13694 ;; 13695 13696 msdosdjgpp*) 13697 # Just because we use GCC doesn't mean we suddenly get shared libraries 13698 # on systems that don't support them. 13699 lt_prog_compiler_can_build_shared_F77=no 13700 enable_shared=no 13701 ;; 13702 13703 sysv4*MP*) 13704 if test -d /usr/nec; then 13705 lt_prog_compiler_pic_F77=-Kconform_pic 13706 fi 13707 ;; 13708 13709 hpux*) 13710 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13711 # not for PA HP-UX. 13712 case $host_cpu in 13713 hppa*64*|ia64*) 13714 # +Z the default 13715 ;; 13716 *) 13717 lt_prog_compiler_pic_F77='-fPIC' 13718 ;; 13719 esac 13720 ;; 13721 13722 *) 13723 lt_prog_compiler_pic_F77='-fPIC' 13724 ;; 13725 esac 13726 else 13727 # PORTME Check for flag to pass linker flags through the system compiler. 13728 case $host_os in 13729 aix*) 13730 lt_prog_compiler_wl_F77='-Wl,' 13731 if test "$host_cpu" = ia64; then 13732 # AIX 5 now supports IA64 processor 13733 lt_prog_compiler_static_F77='-Bstatic' 13734 else 13735 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13736 fi 13737 ;; 13738 darwin*) 13739 # PIC is the default on this platform 13740 # Common symbols not allowed in MH_DYLIB files 13741 case $cc_basename in 13742 xlc*) 13743 lt_prog_compiler_pic_F77='-qnocommon' 13744 lt_prog_compiler_wl_F77='-Wl,' 13745 ;; 13746 esac 13747 ;; 13748 13749 mingw* | pw32* | os2*) 13750 # This hack is so that the source file can tell whether it is being 13751 # built for inclusion in a dll (and should export symbols for example). 13752 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13753 ;; 13754 13755 hpux9* | hpux10* | hpux11*) 13756 lt_prog_compiler_wl_F77='-Wl,' 13757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13758 # not for PA HP-UX. 13759 case $host_cpu in 13760 hppa*64*|ia64*) 13761 # +Z the default 13762 ;; 13763 *) 13764 lt_prog_compiler_pic_F77='+Z' 13765 ;; 13766 esac 13767 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13768 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13769 ;; 13770 13771 irix5* | irix6* | nonstopux*) 13772 lt_prog_compiler_wl_F77='-Wl,' 13773 # PIC (with -KPIC) is the default. 13774 lt_prog_compiler_static_F77='-non_shared' 13775 ;; 13776 13777 newsos6) 13778 lt_prog_compiler_pic_F77='-KPIC' 13779 lt_prog_compiler_static_F77='-Bstatic' 13780 ;; 13781 13782 linux*) 13783 case $cc_basename in 13784 icc* | ecc*) 13785 lt_prog_compiler_wl_F77='-Wl,' 13786 lt_prog_compiler_pic_F77='-KPIC' 13787 lt_prog_compiler_static_F77='-static' 13788 ;; 13789 pgcc* | pgf77* | pgf90* | pgf95*) 13790 # Portland Group compilers (*not* the Pentium gcc compiler, 13791 # which looks to be a dead project) 13792 lt_prog_compiler_wl_F77='-Wl,' 13793 lt_prog_compiler_pic_F77='-fpic' 13794 lt_prog_compiler_static_F77='-Bstatic' 13795 ;; 13796 ccc*) 13797 lt_prog_compiler_wl_F77='-Wl,' 13798 # All Alpha code is PIC. 13799 lt_prog_compiler_static_F77='-non_shared' 13800 ;; 13801 esac 13802 ;; 13803 13804 osf3* | osf4* | osf5*) 13805 lt_prog_compiler_wl_F77='-Wl,' 13806 # All OSF/1 code is PIC. 13807 lt_prog_compiler_static_F77='-non_shared' 13808 ;; 13809 13810 solaris*) 13811 lt_prog_compiler_pic_F77='-KPIC' 13812 lt_prog_compiler_static_F77='-Bstatic' 13813 case $cc_basename in 13814 f77* | f90* | f95*) 13815 lt_prog_compiler_wl_F77='-Qoption ld ';; 13816 *) 13817 lt_prog_compiler_wl_F77='-Wl,';; 13818 esac 13819 ;; 13820 13821 sunos4*) 13822 lt_prog_compiler_wl_F77='-Qoption ld ' 13823 lt_prog_compiler_pic_F77='-PIC' 13824 lt_prog_compiler_static_F77='-Bstatic' 13825 ;; 13826 13827 sysv4 | sysv4.2uw2* | sysv4.3*) 13828 lt_prog_compiler_wl_F77='-Wl,' 13829 lt_prog_compiler_pic_F77='-KPIC' 13830 lt_prog_compiler_static_F77='-Bstatic' 13831 ;; 13832 13833 sysv4*MP*) 13834 if test -d /usr/nec ;then 13835 lt_prog_compiler_pic_F77='-Kconform_pic' 13836 lt_prog_compiler_static_F77='-Bstatic' 13837 fi 13838 ;; 13839 13840 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13841 lt_prog_compiler_wl_F77='-Wl,' 13842 lt_prog_compiler_pic_F77='-KPIC' 13843 lt_prog_compiler_static_F77='-Bstatic' 13844 ;; 13845 13846 unicos*) 13847 lt_prog_compiler_wl_F77='-Wl,' 13848 lt_prog_compiler_can_build_shared_F77=no 13849 ;; 13850 13851 uts4*) 13852 lt_prog_compiler_pic_F77='-pic' 13853 lt_prog_compiler_static_F77='-Bstatic' 13854 ;; 13855 13856 *) 13857 lt_prog_compiler_can_build_shared_F77=no 13858 ;; 13859 esac 13860 fi 13861 13862{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13863echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13864 13865# 13866# Check to make sure the PIC flag actually works. 13867# 13868if test -n "$lt_prog_compiler_pic_F77"; then 13869 13870{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13871echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13872if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13873 echo $ECHO_N "(cached) $ECHO_C" >&6 13874else 13875 lt_prog_compiler_pic_works_F77=no 13876 ac_outfile=conftest.$ac_objext 13877 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13878 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13879 # Insert the option either (1) after the last *FLAGS variable, or 13880 # (2) before a word containing "conftest.", or (3) at the end. 13881 # Note that $ac_compile itself does not contain backslashes and begins 13882 # with a dollar sign (not a hyphen), so the echo should work correctly. 13883 # The option is referenced via a variable to avoid confusing sed. 13884 lt_compile=`echo "$ac_compile" | $SED \ 13885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13887 -e 's:$: $lt_compiler_flag:'` 13888 (eval echo "\"\$as_me:13888: $lt_compile\"" >&5) 13889 (eval "$lt_compile" 2>conftest.err) 13890 ac_status=$? 13891 cat conftest.err >&5 13892 echo "$as_me:13892: \$? = $ac_status" >&5 13893 if (exit $ac_status) && test -s "$ac_outfile"; then 13894 # The compiler can only warn and ignore the option if not recognized 13895 # So say no if there are warnings other than the usual output. 13896 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13899 lt_prog_compiler_pic_works_F77=yes 13900 fi 13901 fi 13902 $rm conftest* 13903 13904fi 13905{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13906echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13907 13908if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13909 case $lt_prog_compiler_pic_F77 in 13910 "" | " "*) ;; 13911 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13912 esac 13913else 13914 lt_prog_compiler_pic_F77= 13915 lt_prog_compiler_can_build_shared_F77=no 13916fi 13917 13918fi 13919case $host_os in 13920 # For platforms which do not support PIC, -DPIC is meaningless: 13921 *djgpp*) 13922 lt_prog_compiler_pic_F77= 13923 ;; 13924 *) 13925 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13926 ;; 13927esac 13928 13929# 13930# Check to make sure the static flag actually works. 13931# 13932wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13933{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13934echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13935if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13936 echo $ECHO_N "(cached) $ECHO_C" >&6 13937else 13938 lt_prog_compiler_static_works_F77=no 13939 save_LDFLAGS="$LDFLAGS" 13940 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13941 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13942 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13943 # The linker can only warn and ignore the option if not recognized 13944 # So say no if there are warnings 13945 if test -s conftest.err; then 13946 # Append any errors to the config.log. 13947 cat conftest.err 1>&5 13948 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13950 if diff conftest.exp conftest.er2 >/dev/null; then 13951 lt_prog_compiler_static_works_F77=yes 13952 fi 13953 else 13954 lt_prog_compiler_static_works_F77=yes 13955 fi 13956 fi 13957 $rm conftest* 13958 LDFLAGS="$save_LDFLAGS" 13959 13960fi 13961{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13962echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 13963 13964if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13965 : 13966else 13967 lt_prog_compiler_static_F77= 13968fi 13969 13970 13971{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13972echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13973if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13974 echo $ECHO_N "(cached) $ECHO_C" >&6 13975else 13976 lt_cv_prog_compiler_c_o_F77=no 13977 $rm -r conftest 2>/dev/null 13978 mkdir conftest 13979 cd conftest 13980 mkdir out 13981 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13982 13983 lt_compiler_flag="-o out/conftest2.$ac_objext" 13984 # Insert the option either (1) after the last *FLAGS variable, or 13985 # (2) before a word containing "conftest.", or (3) at the end. 13986 # Note that $ac_compile itself does not contain backslashes and begins 13987 # with a dollar sign (not a hyphen), so the echo should work correctly. 13988 lt_compile=`echo "$ac_compile" | $SED \ 13989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13991 -e 's:$: $lt_compiler_flag:'` 13992 (eval echo "\"\$as_me:13992: $lt_compile\"" >&5) 13993 (eval "$lt_compile" 2>out/conftest.err) 13994 ac_status=$? 13995 cat out/conftest.err >&5 13996 echo "$as_me:13996: \$? = $ac_status" >&5 13997 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13998 then 13999 # The compiler can only warn and ignore the option if not recognized 14000 # So say no if there are warnings 14001 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14002 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14003 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14004 lt_cv_prog_compiler_c_o_F77=yes 14005 fi 14006 fi 14007 chmod u+w . 2>&5 14008 $rm conftest* 14009 # SGI C++ compiler will create directory out/ii_files/ for 14010 # template instantiation 14011 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14012 $rm out/* && rmdir out 14013 cd .. 14014 rmdir conftest 14015 $rm conftest* 14016 14017fi 14018{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14019echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14020 14021 14022hard_links="nottested" 14023if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14024 # do not overwrite the value of need_locks provided by the user 14025 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14026echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14027 hard_links=yes 14028 $rm conftest* 14029 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14030 touch conftest.a 14031 ln conftest.a conftest.b 2>&5 || hard_links=no 14032 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14033 { echo "$as_me:$LINENO: result: $hard_links" >&5 14034echo "${ECHO_T}$hard_links" >&6; } 14035 if test "$hard_links" = no; then 14036 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14037echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14038 need_locks=warn 14039 fi 14040else 14041 need_locks=no 14042fi 14043 14044{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14045echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14046 14047 runpath_var= 14048 allow_undefined_flag_F77= 14049 enable_shared_with_static_runtimes_F77=no 14050 archive_cmds_F77= 14051 archive_expsym_cmds_F77= 14052 old_archive_From_new_cmds_F77= 14053 old_archive_from_expsyms_cmds_F77= 14054 export_dynamic_flag_spec_F77= 14055 whole_archive_flag_spec_F77= 14056 thread_safe_flag_spec_F77= 14057 hardcode_libdir_flag_spec_F77= 14058 hardcode_libdir_flag_spec_ld_F77= 14059 hardcode_libdir_separator_F77= 14060 hardcode_direct_F77=no 14061 hardcode_minus_L_F77=no 14062 hardcode_shlibpath_var_F77=unsupported 14063 link_all_deplibs_F77=unknown 14064 hardcode_automatic_F77=no 14065 module_cmds_F77= 14066 module_expsym_cmds_F77= 14067 always_export_symbols_F77=no 14068 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14069 # include_expsyms should be a list of space-separated symbols to be *always* 14070 # included in the symbol list 14071 include_expsyms_F77= 14072 # exclude_expsyms can be an extended regexp of symbols to exclude 14073 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14074 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14075 # as well as any symbol that contains `d'. 14076 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14077 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14078 # platforms (ab)use it in PIC code, but their linkers get confused if 14079 # the symbol is explicitly referenced. Since portable code cannot 14080 # rely on this symbol name, it's probably fine to never include it in 14081 # preloaded symbol tables. 14082 extract_expsyms_cmds= 14083 # Just being paranoid about ensuring that cc_basename is set. 14084 for cc_temp in $compiler""; do 14085 case $cc_temp in 14086 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14087 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14088 \-*) ;; 14089 *) break;; 14090 esac 14091done 14092cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14093 14094 case $host_os in 14095 cygwin* | mingw* | pw32*) 14096 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14097 # When not using gcc, we currently assume that we are using 14098 # Microsoft Visual C++. 14099 if test "$GCC" != yes; then 14100 with_gnu_ld=no 14101 fi 14102 ;; 14103 interix*) 14104 # we just hope/assume this is gcc and not c89 (= MSVC++) 14105 with_gnu_ld=yes 14106 ;; 14107 openbsd*) 14108 with_gnu_ld=no 14109 ;; 14110 esac 14111 14112 ld_shlibs_F77=yes 14113 if test "$with_gnu_ld" = yes; then 14114 # If archive_cmds runs LD, not CC, wlarc should be empty 14115 wlarc='${wl}' 14116 14117 # Set some defaults for GNU ld with shared library support. These 14118 # are reset later if shared libraries are not supported. Putting them 14119 # here allows them to be overridden if necessary. 14120 runpath_var=LD_RUN_PATH 14121 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14122 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14123 # ancient GNU ld didn't support --whole-archive et. al. 14124 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14125 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14126 else 14127 whole_archive_flag_spec_F77= 14128 fi 14129 supports_anon_versioning=no 14130 case `$LD -v 2>/dev/null` in 14131 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14132 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14133 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14134 *\ 2.11.*) ;; # other 2.11 versions 14135 *) supports_anon_versioning=yes ;; 14136 esac 14137 14138 # See if GNU ld supports shared libraries. 14139 case $host_os in 14140 aix3* | aix4* | aix5*) 14141 # On AIX/PPC, the GNU linker is very broken 14142 if test "$host_cpu" != ia64; then 14143 ld_shlibs_F77=no 14144 cat <<EOF 1>&2 14145 14146*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14147*** to be unable to reliably create shared libraries on AIX. 14148*** Therefore, libtool is disabling shared libraries support. If you 14149*** really care for shared libraries, you may want to modify your PATH 14150*** so that a non-GNU linker is found, and then restart. 14151 14152EOF 14153 fi 14154 ;; 14155 14156 amigaos*) 14157 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)' 14158 hardcode_libdir_flag_spec_F77='-L$libdir' 14159 hardcode_minus_L_F77=yes 14160 14161 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14162 # that the semantics of dynamic libraries on AmigaOS, at least up 14163 # to version 4, is to share data among multiple programs linked 14164 # with the same dynamic library. Since this doesn't match the 14165 # behavior of shared libraries on other platforms, we can't use 14166 # them. 14167 ld_shlibs_F77=no 14168 ;; 14169 14170 beos*) 14171 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14172 allow_undefined_flag_F77=unsupported 14173 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14174 # support --undefined. This deserves some investigation. FIXME 14175 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14176 else 14177 ld_shlibs_F77=no 14178 fi 14179 ;; 14180 14181 cygwin* | mingw* | pw32*) 14182 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14183 # as there is no search path for DLLs. 14184 hardcode_libdir_flag_spec_F77='-L$libdir' 14185 allow_undefined_flag_F77=unsupported 14186 always_export_symbols_F77=no 14187 enable_shared_with_static_runtimes_F77=yes 14188 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14189 14190 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14191 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14192 # If the export-symbols file already is a .def file (1st line 14193 # is EXPORTS), use it as is; otherwise, prepend... 14194 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14195 cp $export_symbols $output_objdir/$soname.def; 14196 else 14197 echo EXPORTS > $output_objdir/$soname.def; 14198 cat $export_symbols >> $output_objdir/$soname.def; 14199 fi~ 14200 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14201 else 14202 ld_shlibs_F77=no 14203 fi 14204 ;; 14205 14206 interix3*) 14207 hardcode_direct_F77=no 14208 hardcode_shlibpath_var_F77=no 14209 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14210 export_dynamic_flag_spec_F77='${wl}-E' 14211 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14212 # Instead, shared libraries are loaded at an image base (0x10000000 by 14213 # default) and relocated if they conflict, which is a slow very memory 14214 # consuming and fragmenting process. To avoid this, we pick a random, 14215 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14216 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14217 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' 14218 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' 14219 ;; 14220 14221 linux*) 14222 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14223 tmp_addflag= 14224 case $cc_basename,$host_cpu in 14225 pgcc*) # Portland Group C compiler 14226 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' 14227 tmp_addflag=' $pic_flag' 14228 ;; 14229 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14230 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' 14231 tmp_addflag=' $pic_flag -Mnomain' ;; 14232 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14233 tmp_addflag=' -i_dynamic' ;; 14234 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14235 tmp_addflag=' -i_dynamic -nofor_main' ;; 14236 ifc* | ifort*) # Intel Fortran compiler 14237 tmp_addflag=' -nofor_main' ;; 14238 esac 14239 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14240 14241 if test $supports_anon_versioning = yes; then 14242 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14243 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14244 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14245 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14246 fi 14247 else 14248 ld_shlibs_F77=no 14249 fi 14250 ;; 14251 14252 netbsd*) 14253 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14254 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14255 wlarc= 14256 else 14257 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14258 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14259 fi 14260 ;; 14261 14262 solaris*) 14263 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14264 ld_shlibs_F77=no 14265 cat <<EOF 1>&2 14266 14267*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14268*** create shared libraries on Solaris systems. Therefore, libtool 14269*** is disabling shared libraries support. We urge you to upgrade GNU 14270*** binutils to release 2.9.1 or newer. Another option is to modify 14271*** your PATH or compiler configuration so that the native linker is 14272*** used, and then restart. 14273 14274EOF 14275 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14276 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14277 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14278 else 14279 ld_shlibs_F77=no 14280 fi 14281 ;; 14282 14283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14284 case `$LD -v 2>&1` in 14285 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14286 ld_shlibs_F77=no 14287 cat <<_LT_EOF 1>&2 14288 14289*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14290*** reliably create shared libraries on SCO systems. Therefore, libtool 14291*** is disabling shared libraries support. We urge you to upgrade GNU 14292*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14293*** your PATH or compiler configuration so that the native linker is 14294*** used, and then restart. 14295 14296_LT_EOF 14297 ;; 14298 *) 14299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14300 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14301 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14302 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14303 else 14304 ld_shlibs_F77=no 14305 fi 14306 ;; 14307 esac 14308 ;; 14309 14310 sunos4*) 14311 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14312 wlarc= 14313 hardcode_direct_F77=yes 14314 hardcode_shlibpath_var_F77=no 14315 ;; 14316 14317 *) 14318 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14319 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14320 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14321 else 14322 ld_shlibs_F77=no 14323 fi 14324 ;; 14325 esac 14326 14327 if test "$ld_shlibs_F77" = no; then 14328 runpath_var= 14329 hardcode_libdir_flag_spec_F77= 14330 export_dynamic_flag_spec_F77= 14331 whole_archive_flag_spec_F77= 14332 fi 14333 else 14334 # PORTME fill in a description of your system's linker (not GNU ld) 14335 case $host_os in 14336 aix3*) 14337 allow_undefined_flag_F77=unsupported 14338 always_export_symbols_F77=yes 14339 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' 14340 # Note: this linker hardcodes the directories in LIBPATH if there 14341 # are no directories specified by -L. 14342 hardcode_minus_L_F77=yes 14343 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14344 # Neither direct hardcoding nor static linking is supported with a 14345 # broken collect2. 14346 hardcode_direct_F77=unsupported 14347 fi 14348 ;; 14349 14350 aix4* | aix5*) 14351 if test "$host_cpu" = ia64; then 14352 # On IA64, the linker does run time linking by default, so we don't 14353 # have to do anything special. 14354 aix_use_runtimelinking=no 14355 exp_sym_flag='-Bexport' 14356 no_entry_flag="" 14357 else 14358 # If we're using GNU nm, then we don't want the "-C" option. 14359 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14360 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14361 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' 14362 else 14363 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' 14364 fi 14365 aix_use_runtimelinking=no 14366 14367 # Test if we are trying to use run time linking or normal 14368 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14369 # need to do runtime linking. 14370 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14371 for ld_flag in $LDFLAGS; do 14372 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14373 aix_use_runtimelinking=yes 14374 break 14375 fi 14376 done 14377 ;; 14378 esac 14379 14380 exp_sym_flag='-bexport' 14381 no_entry_flag='-bnoentry' 14382 fi 14383 14384 # When large executables or shared objects are built, AIX ld can 14385 # have problems creating the table of contents. If linking a library 14386 # or program results in "error TOC overflow" add -mminimal-toc to 14387 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14388 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14389 14390 archive_cmds_F77='' 14391 hardcode_direct_F77=yes 14392 hardcode_libdir_separator_F77=':' 14393 link_all_deplibs_F77=yes 14394 14395 if test "$GCC" = yes; then 14396 case $host_os in aix4.[012]|aix4.[012].*) 14397 # We only want to do this on AIX 4.2 and lower, the check 14398 # below for broken collect2 doesn't work under 4.3+ 14399 collect2name=`${CC} -print-prog-name=collect2` 14400 if test -f "$collect2name" && \ 14401 strings "$collect2name" | grep resolve_lib_name >/dev/null 14402 then 14403 # We have reworked collect2 14404 hardcode_direct_F77=yes 14405 else 14406 # We have old collect2 14407 hardcode_direct_F77=unsupported 14408 # It fails to find uninstalled libraries when the uninstalled 14409 # path is not listed in the libpath. Setting hardcode_minus_L 14410 # to unsupported forces relinking 14411 hardcode_minus_L_F77=yes 14412 hardcode_libdir_flag_spec_F77='-L$libdir' 14413 hardcode_libdir_separator_F77= 14414 fi 14415 ;; 14416 esac 14417 shared_flag='-shared' 14418 if test "$aix_use_runtimelinking" = yes; then 14419 shared_flag="$shared_flag "'${wl}-G' 14420 fi 14421 else 14422 # not using gcc 14423 if test "$host_cpu" = ia64; then 14424 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14425 # chokes on -Wl,-G. The following line is correct: 14426 shared_flag='-G' 14427 else 14428 if test "$aix_use_runtimelinking" = yes; then 14429 shared_flag='${wl}-G' 14430 else 14431 shared_flag='${wl}-bM:SRE' 14432 fi 14433 fi 14434 fi 14435 14436 # It seems that -bexpall does not export symbols beginning with 14437 # underscore (_), so it is better to generate a list of symbols to export. 14438 always_export_symbols_F77=yes 14439 if test "$aix_use_runtimelinking" = yes; then 14440 # Warning - without using the other runtime loading flags (-brtl), 14441 # -berok will link without error, but may produce a broken library. 14442 allow_undefined_flag_F77='-berok' 14443 # Determine the default libpath from the value encoded in an empty executable. 14444 cat >conftest.$ac_ext <<_ACEOF 14445 program main 14446 14447 end 14448_ACEOF 14449rm -f conftest.$ac_objext conftest$ac_exeext 14450if { (ac_try="$ac_link" 14451case "(($ac_try" in 14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14453 *) ac_try_echo=$ac_try;; 14454esac 14455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14456 (eval "$ac_link") 2>conftest.er1 14457 ac_status=$? 14458 grep -v '^ *+' conftest.er1 >conftest.err 14459 rm -f conftest.er1 14460 cat conftest.err >&5 14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14462 (exit $ac_status); } && { 14463 test -z "$ac_f77_werror_flag" || 14464 test ! -s conftest.err 14465 } && test -s conftest$ac_exeext && 14466 $as_test_x conftest$ac_exeext; then 14467 14468aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14469}'` 14470# Check for a 64-bit object if we didn't find anything. 14471if 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; } 14472}'`; fi 14473else 14474 echo "$as_me: failed program was:" >&5 14475sed 's/^/| /' conftest.$ac_ext >&5 14476 14477 14478fi 14479 14480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14481 conftest$ac_exeext conftest.$ac_ext 14482if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14483 14484 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14485 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" 14486 else 14487 if test "$host_cpu" = ia64; then 14488 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14489 allow_undefined_flag_F77="-z nodefs" 14490 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" 14491 else 14492 # Determine the default libpath from the value encoded in an empty executable. 14493 cat >conftest.$ac_ext <<_ACEOF 14494 program main 14495 14496 end 14497_ACEOF 14498rm -f conftest.$ac_objext conftest$ac_exeext 14499if { (ac_try="$ac_link" 14500case "(($ac_try" in 14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14502 *) ac_try_echo=$ac_try;; 14503esac 14504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14505 (eval "$ac_link") 2>conftest.er1 14506 ac_status=$? 14507 grep -v '^ *+' conftest.er1 >conftest.err 14508 rm -f conftest.er1 14509 cat conftest.err >&5 14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14511 (exit $ac_status); } && { 14512 test -z "$ac_f77_werror_flag" || 14513 test ! -s conftest.err 14514 } && test -s conftest$ac_exeext && 14515 $as_test_x conftest$ac_exeext; then 14516 14517aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14518}'` 14519# Check for a 64-bit object if we didn't find anything. 14520if 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; } 14521}'`; fi 14522else 14523 echo "$as_me: failed program was:" >&5 14524sed 's/^/| /' conftest.$ac_ext >&5 14525 14526 14527fi 14528 14529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14530 conftest$ac_exeext conftest.$ac_ext 14531if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14532 14533 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14534 # Warning - without using the other run time loading flags, 14535 # -berok will link without error, but may produce a broken library. 14536 no_undefined_flag_F77=' ${wl}-bernotok' 14537 allow_undefined_flag_F77=' ${wl}-berok' 14538 # Exported symbols can be pulled into shared objects from archives 14539 whole_archive_flag_spec_F77='$convenience' 14540 archive_cmds_need_lc_F77=yes 14541 # This is similar to how AIX traditionally builds its shared libraries. 14542 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' 14543 fi 14544 fi 14545 ;; 14546 14547 amigaos*) 14548 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)' 14549 hardcode_libdir_flag_spec_F77='-L$libdir' 14550 hardcode_minus_L_F77=yes 14551 # see comment about different semantics on the GNU ld section 14552 ld_shlibs_F77=no 14553 ;; 14554 14555 bsdi[45]*) 14556 export_dynamic_flag_spec_F77=-rdynamic 14557 ;; 14558 14559 cygwin* | mingw* | pw32*) 14560 # When not using gcc, we currently assume that we are using 14561 # Microsoft Visual C++. 14562 # hardcode_libdir_flag_spec is actually meaningless, as there is 14563 # no search path for DLLs. 14564 hardcode_libdir_flag_spec_F77=' ' 14565 allow_undefined_flag_F77=unsupported 14566 # Tell ltmain to make .lib files, not .a files. 14567 libext=lib 14568 # Tell ltmain to make .dll files, not .so files. 14569 shrext_cmds=".dll" 14570 # FIXME: Setting linknames here is a bad hack. 14571 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14572 # The linker will automatically build a .lib file if we build a DLL. 14573 old_archive_From_new_cmds_F77='true' 14574 # FIXME: Should let the user specify the lib program. 14575 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14576 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14577 enable_shared_with_static_runtimes_F77=yes 14578 ;; 14579 14580 darwin* | rhapsody*) 14581 case $host_os in 14582 rhapsody* | darwin1.[012]) 14583 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14584 ;; 14585 *) # Darwin 1.3 on 14586 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14587 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14588 else 14589 case ${MACOSX_DEPLOYMENT_TARGET} in 14590 10.[012]) 14591 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14592 ;; 14593 10.*) 14594 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14595 ;; 14596 esac 14597 fi 14598 ;; 14599 esac 14600 archive_cmds_need_lc_F77=no 14601 hardcode_direct_F77=no 14602 hardcode_automatic_F77=yes 14603 hardcode_shlibpath_var_F77=unsupported 14604 whole_archive_flag_spec_F77='' 14605 link_all_deplibs_F77=yes 14606 if test "$GCC" = yes ; then 14607 output_verbose_link_cmd='echo' 14608 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14609 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14610 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14611 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}' 14612 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}' 14613 else 14614 case $cc_basename in 14615 xlc*) 14616 output_verbose_link_cmd='echo' 14617 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14618 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14619 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14620 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}' 14621 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}' 14622 ;; 14623 *) 14624 ld_shlibs_F77=no 14625 ;; 14626 esac 14627 fi 14628 ;; 14629 14630 dgux*) 14631 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14632 hardcode_libdir_flag_spec_F77='-L$libdir' 14633 hardcode_shlibpath_var_F77=no 14634 ;; 14635 14636 freebsd1*) 14637 ld_shlibs_F77=no 14638 ;; 14639 14640 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14641 # support. Future versions do this automatically, but an explicit c++rt0.o 14642 # does not break anything, and helps significantly (at the cost of a little 14643 # extra space). 14644 freebsd2.2*) 14645 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14646 hardcode_libdir_flag_spec_F77='-R$libdir' 14647 hardcode_direct_F77=yes 14648 hardcode_shlibpath_var_F77=no 14649 ;; 14650 14651 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14652 freebsd2*) 14653 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14654 hardcode_direct_F77=yes 14655 hardcode_minus_L_F77=yes 14656 hardcode_shlibpath_var_F77=no 14657 ;; 14658 14659 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14660 freebsd* | kfreebsd*-gnu | dragonfly*) 14661 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14662 hardcode_libdir_flag_spec_F77='-R$libdir' 14663 hardcode_direct_F77=yes 14664 hardcode_shlibpath_var_F77=no 14665 ;; 14666 14667 hpux9*) 14668 if test "$GCC" = yes; then 14669 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' 14670 else 14671 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' 14672 fi 14673 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14674 hardcode_libdir_separator_F77=: 14675 hardcode_direct_F77=yes 14676 14677 # hardcode_minus_L: Not really in the search PATH, 14678 # but as the default location of the library. 14679 hardcode_minus_L_F77=yes 14680 export_dynamic_flag_spec_F77='${wl}-E' 14681 ;; 14682 14683 hpux10*) 14684 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14685 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14686 else 14687 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14688 fi 14689 if test "$with_gnu_ld" = no; then 14690 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14691 hardcode_libdir_separator_F77=: 14692 14693 hardcode_direct_F77=yes 14694 export_dynamic_flag_spec_F77='${wl}-E' 14695 14696 # hardcode_minus_L: Not really in the search PATH, 14697 # but as the default location of the library. 14698 hardcode_minus_L_F77=yes 14699 fi 14700 ;; 14701 14702 hpux11*) 14703 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14704 case $host_cpu in 14705 hppa*64*) 14706 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14707 ;; 14708 ia64*) 14709 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14710 ;; 14711 *) 14712 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14713 ;; 14714 esac 14715 else 14716 case $host_cpu in 14717 hppa*64*) 14718 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14719 ;; 14720 ia64*) 14721 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14722 ;; 14723 *) 14724 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14725 ;; 14726 esac 14727 fi 14728 if test "$with_gnu_ld" = no; then 14729 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14730 hardcode_libdir_separator_F77=: 14731 14732 case $host_cpu in 14733 hppa*64*|ia64*) 14734 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14735 hardcode_direct_F77=no 14736 hardcode_shlibpath_var_F77=no 14737 ;; 14738 *) 14739 hardcode_direct_F77=yes 14740 export_dynamic_flag_spec_F77='${wl}-E' 14741 14742 # hardcode_minus_L: Not really in the search PATH, 14743 # but as the default location of the library. 14744 hardcode_minus_L_F77=yes 14745 ;; 14746 esac 14747 fi 14748 ;; 14749 14750 irix5* | irix6* | nonstopux*) 14751 if test "$GCC" = yes; then 14752 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' 14753 else 14754 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' 14755 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14756 fi 14757 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14758 hardcode_libdir_separator_F77=: 14759 link_all_deplibs_F77=yes 14760 ;; 14761 14762 netbsd*) 14763 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14764 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14765 else 14766 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14767 fi 14768 hardcode_libdir_flag_spec_F77='-R$libdir' 14769 hardcode_direct_F77=yes 14770 hardcode_shlibpath_var_F77=no 14771 ;; 14772 14773 newsos6) 14774 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14775 hardcode_direct_F77=yes 14776 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14777 hardcode_libdir_separator_F77=: 14778 hardcode_shlibpath_var_F77=no 14779 ;; 14780 14781 openbsd*) 14782 hardcode_direct_F77=yes 14783 hardcode_shlibpath_var_F77=no 14784 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14785 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14786 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14787 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14788 export_dynamic_flag_spec_F77='${wl}-E' 14789 else 14790 case $host_os in 14791 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14792 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14793 hardcode_libdir_flag_spec_F77='-R$libdir' 14794 ;; 14795 *) 14796 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14797 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14798 ;; 14799 esac 14800 fi 14801 ;; 14802 14803 os2*) 14804 hardcode_libdir_flag_spec_F77='-L$libdir' 14805 hardcode_minus_L_F77=yes 14806 allow_undefined_flag_F77=unsupported 14807 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' 14808 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14809 ;; 14810 14811 osf3*) 14812 if test "$GCC" = yes; then 14813 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14814 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' 14815 else 14816 allow_undefined_flag_F77=' -expect_unresolved \*' 14817 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' 14818 fi 14819 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14820 hardcode_libdir_separator_F77=: 14821 ;; 14822 14823 osf4* | osf5*) # as osf3* with the addition of -msym flag 14824 if test "$GCC" = yes; then 14825 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14826 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' 14827 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14828 else 14829 allow_undefined_flag_F77=' -expect_unresolved \*' 14830 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' 14831 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~ 14832 $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' 14833 14834 # Both c and cxx compiler support -rpath directly 14835 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14836 fi 14837 hardcode_libdir_separator_F77=: 14838 ;; 14839 14840 solaris*) 14841 no_undefined_flag_F77=' -z text' 14842 if test "$GCC" = yes; then 14843 wlarc='${wl}' 14844 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14845 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14846 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14847 else 14848 wlarc='' 14849 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14850 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14851 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14852 fi 14853 hardcode_libdir_flag_spec_F77='-R$libdir' 14854 hardcode_shlibpath_var_F77=no 14855 case $host_os in 14856 solaris2.[0-5] | solaris2.[0-5].*) ;; 14857 *) 14858 # The compiler driver will combine linker options so we 14859 # cannot just pass the convience library names through 14860 # without $wl, iff we do not link with $LD. 14861 # Luckily, gcc supports the same syntax we need for Sun Studio. 14862 # Supported since Solaris 2.6 (maybe 2.5.1?) 14863 case $wlarc in 14864 '') 14865 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14866 *) 14867 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' ;; 14868 esac ;; 14869 esac 14870 link_all_deplibs_F77=yes 14871 ;; 14872 14873 sunos4*) 14874 if test "x$host_vendor" = xsequent; then 14875 # Use $CC to link under sequent, because it throws in some extra .o 14876 # files that make .init and .fini sections work. 14877 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14878 else 14879 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14880 fi 14881 hardcode_libdir_flag_spec_F77='-L$libdir' 14882 hardcode_direct_F77=yes 14883 hardcode_minus_L_F77=yes 14884 hardcode_shlibpath_var_F77=no 14885 ;; 14886 14887 sysv4) 14888 case $host_vendor in 14889 sni) 14890 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14891 hardcode_direct_F77=yes # is this really true??? 14892 ;; 14893 siemens) 14894 ## LD is ld it makes a PLAMLIB 14895 ## CC just makes a GrossModule. 14896 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14897 reload_cmds_F77='$CC -r -o $output$reload_objs' 14898 hardcode_direct_F77=no 14899 ;; 14900 motorola) 14901 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14902 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14903 ;; 14904 esac 14905 runpath_var='LD_RUN_PATH' 14906 hardcode_shlibpath_var_F77=no 14907 ;; 14908 14909 sysv4.3*) 14910 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14911 hardcode_shlibpath_var_F77=no 14912 export_dynamic_flag_spec_F77='-Bexport' 14913 ;; 14914 14915 sysv4*MP*) 14916 if test -d /usr/nec; then 14917 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14918 hardcode_shlibpath_var_F77=no 14919 runpath_var=LD_RUN_PATH 14920 hardcode_runpath_var=yes 14921 ld_shlibs_F77=yes 14922 fi 14923 ;; 14924 14925 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14926 no_undefined_flag_F77='${wl}-z,text' 14927 archive_cmds_need_lc_F77=no 14928 hardcode_shlibpath_var_F77=no 14929 runpath_var='LD_RUN_PATH' 14930 14931 if test "$GCC" = yes; then 14932 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14933 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14934 else 14935 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14936 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14937 fi 14938 ;; 14939 14940 sysv5* | sco3.2v5* | sco5v6*) 14941 # Note: We can NOT use -z defs as we might desire, because we do not 14942 # link with -lc, and that would cause any symbols used from libc to 14943 # always be unresolved, which means just about no library would 14944 # ever link correctly. If we're not using GNU ld we use -z text 14945 # though, which does catch some bad symbols but isn't as heavy-handed 14946 # as -z defs. 14947 no_undefined_flag_F77='${wl}-z,text' 14948 allow_undefined_flag_F77='${wl}-z,nodefs' 14949 archive_cmds_need_lc_F77=no 14950 hardcode_shlibpath_var_F77=no 14951 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14952 hardcode_libdir_separator_F77=':' 14953 link_all_deplibs_F77=yes 14954 export_dynamic_flag_spec_F77='${wl}-Bexport' 14955 runpath_var='LD_RUN_PATH' 14956 14957 if test "$GCC" = yes; then 14958 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14959 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14960 else 14961 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14962 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14963 fi 14964 ;; 14965 14966 uts4*) 14967 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14968 hardcode_libdir_flag_spec_F77='-L$libdir' 14969 hardcode_shlibpath_var_F77=no 14970 ;; 14971 14972 *) 14973 ld_shlibs_F77=no 14974 ;; 14975 esac 14976 fi 14977 14978{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14979echo "${ECHO_T}$ld_shlibs_F77" >&6; } 14980test "$ld_shlibs_F77" = no && can_build_shared=no 14981 14982# 14983# Do we need to explicitly link libc? 14984# 14985case "x$archive_cmds_need_lc_F77" in 14986x|xyes) 14987 # Assume -lc should be added 14988 archive_cmds_need_lc_F77=yes 14989 14990 if test "$enable_shared" = yes && test "$GCC" = yes; then 14991 case $archive_cmds_F77 in 14992 *'~'*) 14993 # FIXME: we may have to deal with multi-command sequences. 14994 ;; 14995 '$CC '*) 14996 # Test whether the compiler implicitly links with -lc since on some 14997 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14998 # to ld, don't add -lc before -lgcc. 14999 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15000echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15001 $rm conftest* 15002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15003 15004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15005 (eval $ac_compile) 2>&5 15006 ac_status=$? 15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15008 (exit $ac_status); } 2>conftest.err; then 15009 soname=conftest 15010 lib=conftest 15011 libobjs=conftest.$ac_objext 15012 deplibs= 15013 wl=$lt_prog_compiler_wl_F77 15014 pic_flag=$lt_prog_compiler_pic_F77 15015 compiler_flags=-v 15016 linker_flags=-v 15017 verstring= 15018 output_objdir=. 15019 libname=conftest 15020 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15021 allow_undefined_flag_F77= 15022 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15023 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15024 ac_status=$? 15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15026 (exit $ac_status); } 15027 then 15028 archive_cmds_need_lc_F77=no 15029 else 15030 archive_cmds_need_lc_F77=yes 15031 fi 15032 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15033 else 15034 cat conftest.err 1>&5 15035 fi 15036 $rm conftest* 15037 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15038echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15039 ;; 15040 esac 15041 fi 15042 ;; 15043esac 15044 15045{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15046echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15047library_names_spec= 15048libname_spec='lib$name' 15049soname_spec= 15050shrext_cmds=".so" 15051postinstall_cmds= 15052postuninstall_cmds= 15053finish_cmds= 15054finish_eval= 15055shlibpath_var= 15056shlibpath_overrides_runpath=unknown 15057version_type=none 15058dynamic_linker="$host_os ld.so" 15059sys_lib_dlsearch_path_spec="/lib /usr/lib" 15060if test "$GCC" = yes; then 15061 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15062 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15063 # if the path contains ";" then we assume it to be the separator 15064 # otherwise default to the standard path separator (i.e. ":") - it is 15065 # assumed that no part of a normal pathname contains ";" but that should 15066 # okay in the real world where ";" in dirpaths is itself problematic. 15067 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15068 else 15069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15070 fi 15071else 15072 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15073fi 15074need_lib_prefix=unknown 15075hardcode_into_libs=no 15076 15077# when you set need_version to no, make sure it does not cause -set_version 15078# flags to be left without arguments 15079need_version=unknown 15080 15081case $host_os in 15082aix3*) 15083 version_type=linux 15084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15085 shlibpath_var=LIBPATH 15086 15087 # AIX 3 has no versioning support, so we append a major version to the name. 15088 soname_spec='${libname}${release}${shared_ext}$major' 15089 ;; 15090 15091aix4* | aix5*) 15092 version_type=linux 15093 need_lib_prefix=no 15094 need_version=no 15095 hardcode_into_libs=yes 15096 if test "$host_cpu" = ia64; then 15097 # AIX 5 supports IA64 15098 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15099 shlibpath_var=LD_LIBRARY_PATH 15100 else 15101 # With GCC up to 2.95.x, collect2 would create an import file 15102 # for dependence libraries. The import file would start with 15103 # the line `#! .'. This would cause the generated library to 15104 # depend on `.', always an invalid library. This was fixed in 15105 # development snapshots of GCC prior to 3.0. 15106 case $host_os in 15107 aix4 | aix4.[01] | aix4.[01].*) 15108 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15109 echo ' yes ' 15110 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15111 : 15112 else 15113 can_build_shared=no 15114 fi 15115 ;; 15116 esac 15117 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15118 # soname into executable. Probably we can add versioning support to 15119 # collect2, so additional links can be useful in future. 15120 if test "$aix_use_runtimelinking" = yes; then 15121 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15122 # instead of lib<name>.a to let people know that these are not 15123 # typical AIX shared libraries. 15124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15125 else 15126 # We preserve .a as extension for shared libraries through AIX4.2 15127 # and later when we are not doing run time linking. 15128 library_names_spec='${libname}${release}.a $libname.a' 15129 soname_spec='${libname}${release}${shared_ext}$major' 15130 fi 15131 shlibpath_var=LIBPATH 15132 fi 15133 ;; 15134 15135amigaos*) 15136 library_names_spec='$libname.ixlibrary $libname.a' 15137 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15138 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' 15139 ;; 15140 15141beos*) 15142 library_names_spec='${libname}${shared_ext}' 15143 dynamic_linker="$host_os ld.so" 15144 shlibpath_var=LIBRARY_PATH 15145 ;; 15146 15147bsdi[45]*) 15148 version_type=linux 15149 need_version=no 15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15151 soname_spec='${libname}${release}${shared_ext}$major' 15152 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15153 shlibpath_var=LD_LIBRARY_PATH 15154 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15155 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15156 # the default ld.so.conf also contains /usr/contrib/lib and 15157 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15158 # libtool to hard-code these into programs 15159 ;; 15160 15161cygwin* | mingw* | pw32*) 15162 version_type=windows 15163 shrext_cmds=".dll" 15164 need_version=no 15165 need_lib_prefix=no 15166 15167 case $GCC,$host_os in 15168 yes,cygwin* | yes,mingw* | yes,pw32*) 15169 library_names_spec='$libname.dll.a' 15170 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15171 postinstall_cmds='base_file=`basename \${file}`~ 15172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15173 dldir=$destdir/`dirname \$dlpath`~ 15174 test -d \$dldir || mkdir -p \$dldir~ 15175 $install_prog $dir/$dlname \$dldir/$dlname~ 15176 chmod a+x \$dldir/$dlname' 15177 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15178 dlpath=$dir/\$dldll~ 15179 $rm \$dlpath' 15180 shlibpath_overrides_runpath=yes 15181 15182 case $host_os in 15183 cygwin*) 15184 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15185 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15186 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15187 ;; 15188 mingw*) 15189 # MinGW DLLs use traditional 'lib' prefix 15190 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15191 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15192 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15193 # It is most probably a Windows format PATH printed by 15194 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15195 # path with ; separators, and with drive letters. We can handle the 15196 # drive letters (cygwin fileutils understands them), so leave them, 15197 # especially as we might pass files found there to a mingw objdump, 15198 # which wouldn't understand a cygwinified path. Ahh. 15199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15200 else 15201 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15202 fi 15203 ;; 15204 pw32*) 15205 # pw32 DLLs use 'pw' prefix rather than 'lib' 15206 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15207 ;; 15208 esac 15209 ;; 15210 15211 *) 15212 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15213 ;; 15214 esac 15215 dynamic_linker='Win32 ld.exe' 15216 # FIXME: first we should search . and the directory the executable is in 15217 shlibpath_var=PATH 15218 ;; 15219 15220darwin* | rhapsody*) 15221 dynamic_linker="$host_os dyld" 15222 version_type=darwin 15223 need_lib_prefix=no 15224 need_version=no 15225 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15226 soname_spec='${libname}${release}${major}$shared_ext' 15227 shlibpath_overrides_runpath=yes 15228 shlibpath_var=DYLD_LIBRARY_PATH 15229 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15230 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15231 if test "$GCC" = yes; then 15232 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"` 15233 else 15234 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15235 fi 15236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15237 ;; 15238 15239dgux*) 15240 version_type=linux 15241 need_lib_prefix=no 15242 need_version=no 15243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15244 soname_spec='${libname}${release}${shared_ext}$major' 15245 shlibpath_var=LD_LIBRARY_PATH 15246 ;; 15247 15248freebsd1*) 15249 dynamic_linker=no 15250 ;; 15251 15252kfreebsd*-gnu) 15253 version_type=linux 15254 need_lib_prefix=no 15255 need_version=no 15256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15257 soname_spec='${libname}${release}${shared_ext}$major' 15258 shlibpath_var=LD_LIBRARY_PATH 15259 shlibpath_overrides_runpath=no 15260 hardcode_into_libs=yes 15261 dynamic_linker='GNU ld.so' 15262 ;; 15263 15264freebsd* | dragonfly*) 15265 # DragonFly does not have aout. When/if they implement a new 15266 # versioning mechanism, adjust this. 15267 if test -x /usr/bin/objformat; then 15268 objformat=`/usr/bin/objformat` 15269 else 15270 case $host_os in 15271 freebsd[123]*) objformat=aout ;; 15272 *) objformat=elf ;; 15273 esac 15274 fi 15275 version_type=freebsd-$objformat 15276 case $version_type in 15277 freebsd-elf*) 15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15279 need_version=no 15280 need_lib_prefix=no 15281 ;; 15282 freebsd-*) 15283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15284 need_version=yes 15285 ;; 15286 esac 15287 shlibpath_var=LD_LIBRARY_PATH 15288 case $host_os in 15289 freebsd2*) 15290 shlibpath_overrides_runpath=yes 15291 ;; 15292 freebsd3.[01]* | freebsdelf3.[01]*) 15293 shlibpath_overrides_runpath=yes 15294 hardcode_into_libs=yes 15295 ;; 15296 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15297 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15298 shlibpath_overrides_runpath=no 15299 hardcode_into_libs=yes 15300 ;; 15301 freebsd*) # from 4.6 on 15302 shlibpath_overrides_runpath=yes 15303 hardcode_into_libs=yes 15304 ;; 15305 esac 15306 ;; 15307 15308gnu*) 15309 version_type=linux 15310 need_lib_prefix=no 15311 need_version=no 15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15313 soname_spec='${libname}${release}${shared_ext}$major' 15314 shlibpath_var=LD_LIBRARY_PATH 15315 hardcode_into_libs=yes 15316 ;; 15317 15318hpux9* | hpux10* | hpux11*) 15319 # Give a soname corresponding to the major version so that dld.sl refuses to 15320 # link against other versions. 15321 version_type=sunos 15322 need_lib_prefix=no 15323 need_version=no 15324 case $host_cpu in 15325 ia64*) 15326 shrext_cmds='.so' 15327 hardcode_into_libs=yes 15328 dynamic_linker="$host_os dld.so" 15329 shlibpath_var=LD_LIBRARY_PATH 15330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15332 soname_spec='${libname}${release}${shared_ext}$major' 15333 if test "X$HPUX_IA64_MODE" = X32; then 15334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15335 else 15336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15337 fi 15338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15339 ;; 15340 hppa*64*) 15341 shrext_cmds='.sl' 15342 hardcode_into_libs=yes 15343 dynamic_linker="$host_os dld.sl" 15344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15347 soname_spec='${libname}${release}${shared_ext}$major' 15348 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15350 ;; 15351 *) 15352 shrext_cmds='.sl' 15353 dynamic_linker="$host_os dld.sl" 15354 shlibpath_var=SHLIB_PATH 15355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15357 soname_spec='${libname}${release}${shared_ext}$major' 15358 ;; 15359 esac 15360 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15361 postinstall_cmds='chmod 555 $lib' 15362 ;; 15363 15364interix3*) 15365 version_type=linux 15366 need_lib_prefix=no 15367 need_version=no 15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15369 soname_spec='${libname}${release}${shared_ext}$major' 15370 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15371 shlibpath_var=LD_LIBRARY_PATH 15372 shlibpath_overrides_runpath=no 15373 hardcode_into_libs=yes 15374 ;; 15375 15376irix5* | irix6* | nonstopux*) 15377 case $host_os in 15378 nonstopux*) version_type=nonstopux ;; 15379 *) 15380 if test "$lt_cv_prog_gnu_ld" = yes; then 15381 version_type=linux 15382 else 15383 version_type=irix 15384 fi ;; 15385 esac 15386 need_lib_prefix=no 15387 need_version=no 15388 soname_spec='${libname}${release}${shared_ext}$major' 15389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15390 case $host_os in 15391 irix5* | nonstopux*) 15392 libsuff= shlibsuff= 15393 ;; 15394 *) 15395 case $LD in # libtool.m4 will add one of these switches to LD 15396 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15397 libsuff= shlibsuff= libmagic=32-bit;; 15398 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15399 libsuff=32 shlibsuff=N32 libmagic=N32;; 15400 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15401 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15402 *) libsuff= shlibsuff= libmagic=never-match;; 15403 esac 15404 ;; 15405 esac 15406 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15407 shlibpath_overrides_runpath=no 15408 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15409 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15410 hardcode_into_libs=yes 15411 ;; 15412 15413# No shared lib support for Linux oldld, aout, or coff. 15414linux*oldld* | linux*aout* | linux*coff*) 15415 dynamic_linker=no 15416 ;; 15417 15418# This must be Linux ELF. 15419linux*) 15420 version_type=linux 15421 need_lib_prefix=no 15422 need_version=no 15423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15424 soname_spec='${libname}${release}${shared_ext}$major' 15425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15426 shlibpath_var=LD_LIBRARY_PATH 15427 shlibpath_overrides_runpath=no 15428 # This implies no fast_install, which is unacceptable. 15429 # Some rework will be needed to allow for fast_install 15430 # before this can be enabled. 15431 hardcode_into_libs=yes 15432 15433 # Append ld.so.conf contents to the search path 15434 if test -f /etc/ld.so.conf; then 15435 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' ' '` 15436 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15437 fi 15438 15439 # We used to test for /lib/ld.so.1 and disable shared libraries on 15440 # powerpc, because MkLinux only supported shared libraries with the 15441 # GNU dynamic linker. Since this was broken with cross compilers, 15442 # most powerpc-linux boxes support dynamic linking these days and 15443 # people can always --disable-shared, the test was removed, and we 15444 # assume the GNU/Linux dynamic linker is in use. 15445 dynamic_linker='GNU/Linux ld.so' 15446 ;; 15447 15448knetbsd*-gnu) 15449 version_type=linux 15450 need_lib_prefix=no 15451 need_version=no 15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15453 soname_spec='${libname}${release}${shared_ext}$major' 15454 shlibpath_var=LD_LIBRARY_PATH 15455 shlibpath_overrides_runpath=no 15456 hardcode_into_libs=yes 15457 dynamic_linker='GNU ld.so' 15458 ;; 15459 15460netbsd*) 15461 version_type=sunos 15462 need_lib_prefix=no 15463 need_version=no 15464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15467 dynamic_linker='NetBSD (a.out) ld.so' 15468 else 15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15470 soname_spec='${libname}${release}${shared_ext}$major' 15471 dynamic_linker='NetBSD ld.elf_so' 15472 fi 15473 shlibpath_var=LD_LIBRARY_PATH 15474 shlibpath_overrides_runpath=yes 15475 hardcode_into_libs=yes 15476 ;; 15477 15478newsos6) 15479 version_type=linux 15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15481 shlibpath_var=LD_LIBRARY_PATH 15482 shlibpath_overrides_runpath=yes 15483 ;; 15484 15485nto-qnx*) 15486 version_type=linux 15487 need_lib_prefix=no 15488 need_version=no 15489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15490 soname_spec='${libname}${release}${shared_ext}$major' 15491 shlibpath_var=LD_LIBRARY_PATH 15492 shlibpath_overrides_runpath=yes 15493 ;; 15494 15495openbsd*) 15496 version_type=sunos 15497 sys_lib_dlsearch_path_spec="/usr/lib" 15498 need_lib_prefix=no 15499 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15500 case $host_os in 15501 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15502 *) need_version=no ;; 15503 esac 15504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15506 shlibpath_var=LD_LIBRARY_PATH 15507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15508 case $host_os in 15509 openbsd2.[89] | openbsd2.[89].*) 15510 shlibpath_overrides_runpath=no 15511 ;; 15512 *) 15513 shlibpath_overrides_runpath=yes 15514 ;; 15515 esac 15516 else 15517 shlibpath_overrides_runpath=yes 15518 fi 15519 ;; 15520 15521os2*) 15522 libname_spec='$name' 15523 shrext_cmds=".dll" 15524 need_lib_prefix=no 15525 library_names_spec='$libname${shared_ext} $libname.a' 15526 dynamic_linker='OS/2 ld.exe' 15527 shlibpath_var=LIBPATH 15528 ;; 15529 15530osf3* | osf4* | osf5*) 15531 version_type=osf 15532 need_lib_prefix=no 15533 need_version=no 15534 soname_spec='${libname}${release}${shared_ext}$major' 15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15536 shlibpath_var=LD_LIBRARY_PATH 15537 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15538 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15539 ;; 15540 15541solaris*) 15542 version_type=linux 15543 need_lib_prefix=no 15544 need_version=no 15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15546 soname_spec='${libname}${release}${shared_ext}$major' 15547 shlibpath_var=LD_LIBRARY_PATH 15548 shlibpath_overrides_runpath=yes 15549 hardcode_into_libs=yes 15550 # ldd complains unless libraries are executable 15551 postinstall_cmds='chmod +x $lib' 15552 ;; 15553 15554sunos4*) 15555 version_type=sunos 15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15557 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15558 shlibpath_var=LD_LIBRARY_PATH 15559 shlibpath_overrides_runpath=yes 15560 if test "$with_gnu_ld" = yes; then 15561 need_lib_prefix=no 15562 fi 15563 need_version=yes 15564 ;; 15565 15566sysv4 | sysv4.3*) 15567 version_type=linux 15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15569 soname_spec='${libname}${release}${shared_ext}$major' 15570 shlibpath_var=LD_LIBRARY_PATH 15571 case $host_vendor in 15572 sni) 15573 shlibpath_overrides_runpath=no 15574 need_lib_prefix=no 15575 export_dynamic_flag_spec='${wl}-Blargedynsym' 15576 runpath_var=LD_RUN_PATH 15577 ;; 15578 siemens) 15579 need_lib_prefix=no 15580 ;; 15581 motorola) 15582 need_lib_prefix=no 15583 need_version=no 15584 shlibpath_overrides_runpath=no 15585 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15586 ;; 15587 esac 15588 ;; 15589 15590sysv4*MP*) 15591 if test -d /usr/nec ;then 15592 version_type=linux 15593 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15594 soname_spec='$libname${shared_ext}.$major' 15595 shlibpath_var=LD_LIBRARY_PATH 15596 fi 15597 ;; 15598 15599sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15600 version_type=freebsd-elf 15601 need_lib_prefix=no 15602 need_version=no 15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15604 soname_spec='${libname}${release}${shared_ext}$major' 15605 shlibpath_var=LD_LIBRARY_PATH 15606 hardcode_into_libs=yes 15607 if test "$with_gnu_ld" = yes; then 15608 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15609 shlibpath_overrides_runpath=no 15610 else 15611 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15612 shlibpath_overrides_runpath=yes 15613 case $host_os in 15614 sco3.2v5*) 15615 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15616 ;; 15617 esac 15618 fi 15619 sys_lib_dlsearch_path_spec='/usr/lib' 15620 ;; 15621 15622uts4*) 15623 version_type=linux 15624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15625 soname_spec='${libname}${release}${shared_ext}$major' 15626 shlibpath_var=LD_LIBRARY_PATH 15627 ;; 15628 15629*) 15630 dynamic_linker=no 15631 ;; 15632esac 15633{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15634echo "${ECHO_T}$dynamic_linker" >&6; } 15635test "$dynamic_linker" = no && can_build_shared=no 15636 15637variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15638if test "$GCC" = yes; then 15639 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15640fi 15641 15642{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15643echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15644hardcode_action_F77= 15645if test -n "$hardcode_libdir_flag_spec_F77" || \ 15646 test -n "$runpath_var_F77" || \ 15647 test "X$hardcode_automatic_F77" = "Xyes" ; then 15648 15649 # We can hardcode non-existant directories. 15650 if test "$hardcode_direct_F77" != no && 15651 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15652 # have to relink, otherwise we might link with an installed library 15653 # when we should be linking with a yet-to-be-installed one 15654 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15655 test "$hardcode_minus_L_F77" != no; then 15656 # Linking always hardcodes the temporary library directory. 15657 hardcode_action_F77=relink 15658 else 15659 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15660 hardcode_action_F77=immediate 15661 fi 15662else 15663 # We cannot hardcode anything, or else we can only hardcode existing 15664 # directories. 15665 hardcode_action_F77=unsupported 15666fi 15667{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15668echo "${ECHO_T}$hardcode_action_F77" >&6; } 15669 15670if test "$hardcode_action_F77" = relink; then 15671 # Fast installation is not supported 15672 enable_fast_install=no 15673elif test "$shlibpath_overrides_runpath" = yes || 15674 test "$enable_shared" = no; then 15675 # Fast installation is not necessary 15676 enable_fast_install=needless 15677fi 15678 15679 15680# The else clause should only fire when bootstrapping the 15681# libtool distribution, otherwise you forgot to ship ltmain.sh 15682# with your package, and you will get complaints that there are 15683# no rules to generate ltmain.sh. 15684if test -f "$ltmain"; then 15685 # See if we are running on zsh, and set the options which allow our commands through 15686 # without removal of \ escapes. 15687 if test -n "${ZSH_VERSION+set}" ; then 15688 setopt NO_GLOB_SUBST 15689 fi 15690 # Now quote all the things that may contain metacharacters while being 15691 # careful not to overquote the AC_SUBSTed values. We take copies of the 15692 # variables and quote the copies for generation of the libtool script. 15693 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15694 SED SHELL STRIP \ 15695 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15696 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15697 deplibs_check_method reload_flag reload_cmds need_locks \ 15698 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15699 lt_cv_sys_global_symbol_to_c_name_address \ 15700 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15701 old_postinstall_cmds old_postuninstall_cmds \ 15702 compiler_F77 \ 15703 CC_F77 \ 15704 LD_F77 \ 15705 lt_prog_compiler_wl_F77 \ 15706 lt_prog_compiler_pic_F77 \ 15707 lt_prog_compiler_static_F77 \ 15708 lt_prog_compiler_no_builtin_flag_F77 \ 15709 export_dynamic_flag_spec_F77 \ 15710 thread_safe_flag_spec_F77 \ 15711 whole_archive_flag_spec_F77 \ 15712 enable_shared_with_static_runtimes_F77 \ 15713 old_archive_cmds_F77 \ 15714 old_archive_from_new_cmds_F77 \ 15715 predep_objects_F77 \ 15716 postdep_objects_F77 \ 15717 predeps_F77 \ 15718 postdeps_F77 \ 15719 compiler_lib_search_path_F77 \ 15720 archive_cmds_F77 \ 15721 archive_expsym_cmds_F77 \ 15722 postinstall_cmds_F77 \ 15723 postuninstall_cmds_F77 \ 15724 old_archive_from_expsyms_cmds_F77 \ 15725 allow_undefined_flag_F77 \ 15726 no_undefined_flag_F77 \ 15727 export_symbols_cmds_F77 \ 15728 hardcode_libdir_flag_spec_F77 \ 15729 hardcode_libdir_flag_spec_ld_F77 \ 15730 hardcode_libdir_separator_F77 \ 15731 hardcode_automatic_F77 \ 15732 module_cmds_F77 \ 15733 module_expsym_cmds_F77 \ 15734 lt_cv_prog_compiler_c_o_F77 \ 15735 exclude_expsyms_F77 \ 15736 include_expsyms_F77; do 15737 15738 case $var in 15739 old_archive_cmds_F77 | \ 15740 old_archive_from_new_cmds_F77 | \ 15741 archive_cmds_F77 | \ 15742 archive_expsym_cmds_F77 | \ 15743 module_cmds_F77 | \ 15744 module_expsym_cmds_F77 | \ 15745 old_archive_from_expsyms_cmds_F77 | \ 15746 export_symbols_cmds_F77 | \ 15747 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15748 postinstall_cmds | postuninstall_cmds | \ 15749 old_postinstall_cmds | old_postuninstall_cmds | \ 15750 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15751 # Double-quote double-evaled strings. 15752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15753 ;; 15754 *) 15755 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15756 ;; 15757 esac 15758 done 15759 15760 case $lt_echo in 15761 *'\$0 --fallback-echo"') 15762 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15763 ;; 15764 esac 15765 15766cfgfile="$ofile" 15767 15768 cat <<__EOF__ >> "$cfgfile" 15769# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15770 15771# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15772 15773# Shell to use when invoking shell scripts. 15774SHELL=$lt_SHELL 15775 15776# Whether or not to build shared libraries. 15777build_libtool_libs=$enable_shared 15778 15779# Whether or not to build static libraries. 15780build_old_libs=$enable_static 15781 15782# Whether or not to add -lc for building shared libraries. 15783build_libtool_need_lc=$archive_cmds_need_lc_F77 15784 15785# Whether or not to disallow shared libs when runtime libs are static 15786allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15787 15788# Whether or not to optimize for fast installation. 15789fast_install=$enable_fast_install 15790 15791# The host system. 15792host_alias=$host_alias 15793host=$host 15794host_os=$host_os 15795 15796# The build system. 15797build_alias=$build_alias 15798build=$build 15799build_os=$build_os 15800 15801# An echo program that does not interpret backslashes. 15802echo=$lt_echo 15803 15804# The archiver. 15805AR=$lt_AR 15806AR_FLAGS=$lt_AR_FLAGS 15807 15808# A C compiler. 15809LTCC=$lt_LTCC 15810 15811# LTCC compiler flags. 15812LTCFLAGS=$lt_LTCFLAGS 15813 15814# A language-specific compiler. 15815CC=$lt_compiler_F77 15816 15817# Is the compiler the GNU C compiler? 15818with_gcc=$GCC_F77 15819 15820# An ERE matcher. 15821EGREP=$lt_EGREP 15822 15823# The linker used to build libraries. 15824LD=$lt_LD_F77 15825 15826# Whether we need hard or soft links. 15827LN_S=$lt_LN_S 15828 15829# A BSD-compatible nm program. 15830NM=$lt_NM 15831 15832# A symbol stripping program 15833STRIP=$lt_STRIP 15834 15835# Used to examine libraries when file_magic_cmd begins "file" 15836MAGIC_CMD=$MAGIC_CMD 15837 15838# Used on cygwin: DLL creation program. 15839DLLTOOL="$DLLTOOL" 15840 15841# Used on cygwin: object dumper. 15842OBJDUMP="$OBJDUMP" 15843 15844# Used on cygwin: assembler. 15845AS="$AS" 15846 15847# The name of the directory that contains temporary libtool files. 15848objdir=$objdir 15849 15850# How to create reloadable object files. 15851reload_flag=$lt_reload_flag 15852reload_cmds=$lt_reload_cmds 15853 15854# How to pass a linker flag through the compiler. 15855wl=$lt_lt_prog_compiler_wl_F77 15856 15857# Object file suffix (normally "o"). 15858objext="$ac_objext" 15859 15860# Old archive suffix (normally "a"). 15861libext="$libext" 15862 15863# Shared library suffix (normally ".so"). 15864shrext_cmds='$shrext_cmds' 15865 15866# Executable file suffix (normally ""). 15867exeext="$exeext" 15868 15869# Additional compiler flags for building library objects. 15870pic_flag=$lt_lt_prog_compiler_pic_F77 15871pic_mode=$pic_mode 15872 15873# What is the maximum length of a command? 15874max_cmd_len=$lt_cv_sys_max_cmd_len 15875 15876# Does compiler simultaneously support -c and -o options? 15877compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15878 15879# Must we lock files when doing compilation? 15880need_locks=$lt_need_locks 15881 15882# Do we need the lib prefix for modules? 15883need_lib_prefix=$need_lib_prefix 15884 15885# Do we need a version for libraries? 15886need_version=$need_version 15887 15888# Whether dlopen is supported. 15889dlopen_support=$enable_dlopen 15890 15891# Whether dlopen of programs is supported. 15892dlopen_self=$enable_dlopen_self 15893 15894# Whether dlopen of statically linked programs is supported. 15895dlopen_self_static=$enable_dlopen_self_static 15896 15897# Compiler flag to prevent dynamic linking. 15898link_static_flag=$lt_lt_prog_compiler_static_F77 15899 15900# Compiler flag to turn off builtin functions. 15901no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15902 15903# Compiler flag to allow reflexive dlopens. 15904export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15905 15906# Compiler flag to generate shared objects directly from archives. 15907whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15908 15909# Compiler flag to generate thread-safe objects. 15910thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15911 15912# Library versioning type. 15913version_type=$version_type 15914 15915# Format of library name prefix. 15916libname_spec=$lt_libname_spec 15917 15918# List of archive names. First name is the real one, the rest are links. 15919# The last name is the one that the linker finds with -lNAME. 15920library_names_spec=$lt_library_names_spec 15921 15922# The coded name of the library, if different from the real name. 15923soname_spec=$lt_soname_spec 15924 15925# Commands used to build and install an old-style archive. 15926RANLIB=$lt_RANLIB 15927old_archive_cmds=$lt_old_archive_cmds_F77 15928old_postinstall_cmds=$lt_old_postinstall_cmds 15929old_postuninstall_cmds=$lt_old_postuninstall_cmds 15930 15931# Create an old-style archive from a shared archive. 15932old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15933 15934# Create a temporary old-style archive to link instead of a shared archive. 15935old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15936 15937# Commands used to build and install a shared archive. 15938archive_cmds=$lt_archive_cmds_F77 15939archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15940postinstall_cmds=$lt_postinstall_cmds 15941postuninstall_cmds=$lt_postuninstall_cmds 15942 15943# Commands used to build a loadable module (assumed same as above if empty) 15944module_cmds=$lt_module_cmds_F77 15945module_expsym_cmds=$lt_module_expsym_cmds_F77 15946 15947# Commands to strip libraries. 15948old_striplib=$lt_old_striplib 15949striplib=$lt_striplib 15950 15951# Dependencies to place before the objects being linked to create a 15952# shared library. 15953predep_objects=$lt_predep_objects_F77 15954 15955# Dependencies to place after the objects being linked to create a 15956# shared library. 15957postdep_objects=$lt_postdep_objects_F77 15958 15959# Dependencies to place before the objects being linked to create a 15960# shared library. 15961predeps=$lt_predeps_F77 15962 15963# Dependencies to place after the objects being linked to create a 15964# shared library. 15965postdeps=$lt_postdeps_F77 15966 15967# The library search path used internally by the compiler when linking 15968# a shared library. 15969compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15970 15971# Method to check whether dependent libraries are shared objects. 15972deplibs_check_method=$lt_deplibs_check_method 15973 15974# Command to use when deplibs_check_method == file_magic. 15975file_magic_cmd=$lt_file_magic_cmd 15976 15977# Flag that allows shared libraries with undefined symbols to be built. 15978allow_undefined_flag=$lt_allow_undefined_flag_F77 15979 15980# Flag that forces no undefined symbols. 15981no_undefined_flag=$lt_no_undefined_flag_F77 15982 15983# Commands used to finish a libtool library installation in a directory. 15984finish_cmds=$lt_finish_cmds 15985 15986# Same as above, but a single script fragment to be evaled but not shown. 15987finish_eval=$lt_finish_eval 15988 15989# Take the output of nm and produce a listing of raw symbols and C names. 15990global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15991 15992# Transform the output of nm in a proper C declaration 15993global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15994 15995# Transform the output of nm in a C name address pair 15996global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15997 15998# This is the shared library runtime path variable. 15999runpath_var=$runpath_var 16000 16001# This is the shared library path variable. 16002shlibpath_var=$shlibpath_var 16003 16004# Is shlibpath searched before the hard-coded library search path? 16005shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16006 16007# How to hardcode a shared library path into an executable. 16008hardcode_action=$hardcode_action_F77 16009 16010# Whether we should hardcode library paths into libraries. 16011hardcode_into_libs=$hardcode_into_libs 16012 16013# Flag to hardcode \$libdir into a binary during linking. 16014# This must work even if \$libdir does not exist. 16015hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16016 16017# If ld is used when linking, flag to hardcode \$libdir into 16018# a binary during linking. This must work even if \$libdir does 16019# not exist. 16020hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16021 16022# Whether we need a single -rpath flag with a separated argument. 16023hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16024 16025# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16026# resulting binary. 16027hardcode_direct=$hardcode_direct_F77 16028 16029# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16030# resulting binary. 16031hardcode_minus_L=$hardcode_minus_L_F77 16032 16033# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16034# the resulting binary. 16035hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16036 16037# Set to yes if building a shared library automatically hardcodes DIR into the library 16038# and all subsequent libraries and executables linked against it. 16039hardcode_automatic=$hardcode_automatic_F77 16040 16041# Variables whose values should be saved in libtool wrapper scripts and 16042# restored at relink time. 16043variables_saved_for_relink="$variables_saved_for_relink" 16044 16045# Whether libtool must link a program against all its dependency libraries. 16046link_all_deplibs=$link_all_deplibs_F77 16047 16048# Compile-time system search path for libraries 16049sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16050 16051# Run-time system search path for libraries 16052sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16053 16054# Fix the shell variable \$srcfile for the compiler. 16055fix_srcfile_path="$fix_srcfile_path_F77" 16056 16057# Set to yes if exported symbols are required. 16058always_export_symbols=$always_export_symbols_F77 16059 16060# The commands to list exported symbols. 16061export_symbols_cmds=$lt_export_symbols_cmds_F77 16062 16063# The commands to extract the exported symbol list from a shared archive. 16064extract_expsyms_cmds=$lt_extract_expsyms_cmds 16065 16066# Symbols that should not be listed in the preloaded symbols. 16067exclude_expsyms=$lt_exclude_expsyms_F77 16068 16069# Symbols that must always be exported. 16070include_expsyms=$lt_include_expsyms_F77 16071 16072# ### END LIBTOOL TAG CONFIG: $tagname 16073 16074__EOF__ 16075 16076 16077else 16078 # If there is no Makefile yet, we rely on a make rule to execute 16079 # `config.status --recheck' to rerun these tests and create the 16080 # libtool script then. 16081 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16082 if test -f "$ltmain_in"; then 16083 test -f Makefile && make "$ltmain" 16084 fi 16085fi 16086 16087 16088ac_ext=c 16089ac_cpp='$CPP $CPPFLAGS' 16090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16092ac_compiler_gnu=$ac_cv_c_compiler_gnu 16093 16094CC="$lt_save_CC" 16095 16096 else 16097 tagname="" 16098 fi 16099 ;; 16100 16101 GCJ) 16102 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16103 16104 16105# Source file extension for Java test sources. 16106ac_ext=java 16107 16108# Object file extension for compiled Java test sources. 16109objext=o 16110objext_GCJ=$objext 16111 16112# Code to be used in simple compile tests 16113lt_simple_compile_test_code="class foo {}\n" 16114 16115# Code to be used in simple link tests 16116lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16117 16118# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16119 16120# If no C compiler was specified, use CC. 16121LTCC=${LTCC-"$CC"} 16122 16123# If no C compiler flags were specified, use CFLAGS. 16124LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16125 16126# Allow CC to be a program name with arguments. 16127compiler=$CC 16128 16129 16130# save warnings/boilerplate of simple test code 16131ac_outfile=conftest.$ac_objext 16132printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16133eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16134_lt_compiler_boilerplate=`cat conftest.err` 16135$rm conftest* 16136 16137ac_outfile=conftest.$ac_objext 16138printf "$lt_simple_link_test_code" >conftest.$ac_ext 16139eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16140_lt_linker_boilerplate=`cat conftest.err` 16141$rm conftest* 16142 16143 16144# Allow CC to be a program name with arguments. 16145lt_save_CC="$CC" 16146CC=${GCJ-"gcj"} 16147compiler=$CC 16148compiler_GCJ=$CC 16149for cc_temp in $compiler""; do 16150 case $cc_temp in 16151 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16152 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16153 \-*) ;; 16154 *) break;; 16155 esac 16156done 16157cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16158 16159 16160# GCJ did not exist at the time GCC didn't implicitly link libc in. 16161archive_cmds_need_lc_GCJ=no 16162 16163old_archive_cmds_GCJ=$old_archive_cmds 16164 16165 16166lt_prog_compiler_no_builtin_flag_GCJ= 16167 16168if test "$GCC" = yes; then 16169 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16170 16171 16172{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16173echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16174if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16175 echo $ECHO_N "(cached) $ECHO_C" >&6 16176else 16177 lt_cv_prog_compiler_rtti_exceptions=no 16178 ac_outfile=conftest.$ac_objext 16179 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16180 lt_compiler_flag="-fno-rtti -fno-exceptions" 16181 # Insert the option either (1) after the last *FLAGS variable, or 16182 # (2) before a word containing "conftest.", or (3) at the end. 16183 # Note that $ac_compile itself does not contain backslashes and begins 16184 # with a dollar sign (not a hyphen), so the echo should work correctly. 16185 # The option is referenced via a variable to avoid confusing sed. 16186 lt_compile=`echo "$ac_compile" | $SED \ 16187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16189 -e 's:$: $lt_compiler_flag:'` 16190 (eval echo "\"\$as_me:16190: $lt_compile\"" >&5) 16191 (eval "$lt_compile" 2>conftest.err) 16192 ac_status=$? 16193 cat conftest.err >&5 16194 echo "$as_me:16194: \$? = $ac_status" >&5 16195 if (exit $ac_status) && test -s "$ac_outfile"; then 16196 # The compiler can only warn and ignore the option if not recognized 16197 # So say no if there are warnings other than the usual output. 16198 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16200 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16201 lt_cv_prog_compiler_rtti_exceptions=yes 16202 fi 16203 fi 16204 $rm conftest* 16205 16206fi 16207{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16208echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16209 16210if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16211 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16212else 16213 : 16214fi 16215 16216fi 16217 16218lt_prog_compiler_wl_GCJ= 16219lt_prog_compiler_pic_GCJ= 16220lt_prog_compiler_static_GCJ= 16221 16222{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16223echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16224 16225 if test "$GCC" = yes; then 16226 lt_prog_compiler_wl_GCJ='-Wl,' 16227 lt_prog_compiler_static_GCJ='-static' 16228 16229 case $host_os in 16230 aix*) 16231 # All AIX code is PIC. 16232 if test "$host_cpu" = ia64; then 16233 # AIX 5 now supports IA64 processor 16234 lt_prog_compiler_static_GCJ='-Bstatic' 16235 fi 16236 ;; 16237 16238 amigaos*) 16239 # FIXME: we need at least 68020 code to build shared libraries, but 16240 # adding the `-m68020' flag to GCC prevents building anything better, 16241 # like `-m68040'. 16242 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16243 ;; 16244 16245 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16246 # PIC is the default for these OSes. 16247 ;; 16248 16249 mingw* | pw32* | os2*) 16250 # This hack is so that the source file can tell whether it is being 16251 # built for inclusion in a dll (and should export symbols for example). 16252 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16253 ;; 16254 16255 darwin* | rhapsody*) 16256 # PIC is the default on this platform 16257 # Common symbols not allowed in MH_DYLIB files 16258 lt_prog_compiler_pic_GCJ='-fno-common' 16259 ;; 16260 16261 interix3*) 16262 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16263 # Instead, we relocate shared libraries at runtime. 16264 ;; 16265 16266 msdosdjgpp*) 16267 # Just because we use GCC doesn't mean we suddenly get shared libraries 16268 # on systems that don't support them. 16269 lt_prog_compiler_can_build_shared_GCJ=no 16270 enable_shared=no 16271 ;; 16272 16273 sysv4*MP*) 16274 if test -d /usr/nec; then 16275 lt_prog_compiler_pic_GCJ=-Kconform_pic 16276 fi 16277 ;; 16278 16279 hpux*) 16280 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16281 # not for PA HP-UX. 16282 case $host_cpu in 16283 hppa*64*|ia64*) 16284 # +Z the default 16285 ;; 16286 *) 16287 lt_prog_compiler_pic_GCJ='-fPIC' 16288 ;; 16289 esac 16290 ;; 16291 16292 *) 16293 lt_prog_compiler_pic_GCJ='-fPIC' 16294 ;; 16295 esac 16296 else 16297 # PORTME Check for flag to pass linker flags through the system compiler. 16298 case $host_os in 16299 aix*) 16300 lt_prog_compiler_wl_GCJ='-Wl,' 16301 if test "$host_cpu" = ia64; then 16302 # AIX 5 now supports IA64 processor 16303 lt_prog_compiler_static_GCJ='-Bstatic' 16304 else 16305 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16306 fi 16307 ;; 16308 darwin*) 16309 # PIC is the default on this platform 16310 # Common symbols not allowed in MH_DYLIB files 16311 case $cc_basename in 16312 xlc*) 16313 lt_prog_compiler_pic_GCJ='-qnocommon' 16314 lt_prog_compiler_wl_GCJ='-Wl,' 16315 ;; 16316 esac 16317 ;; 16318 16319 mingw* | pw32* | os2*) 16320 # This hack is so that the source file can tell whether it is being 16321 # built for inclusion in a dll (and should export symbols for example). 16322 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16323 ;; 16324 16325 hpux9* | hpux10* | hpux11*) 16326 lt_prog_compiler_wl_GCJ='-Wl,' 16327 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16328 # not for PA HP-UX. 16329 case $host_cpu in 16330 hppa*64*|ia64*) 16331 # +Z the default 16332 ;; 16333 *) 16334 lt_prog_compiler_pic_GCJ='+Z' 16335 ;; 16336 esac 16337 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16338 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16339 ;; 16340 16341 irix5* | irix6* | nonstopux*) 16342 lt_prog_compiler_wl_GCJ='-Wl,' 16343 # PIC (with -KPIC) is the default. 16344 lt_prog_compiler_static_GCJ='-non_shared' 16345 ;; 16346 16347 newsos6) 16348 lt_prog_compiler_pic_GCJ='-KPIC' 16349 lt_prog_compiler_static_GCJ='-Bstatic' 16350 ;; 16351 16352 linux*) 16353 case $cc_basename in 16354 icc* | ecc*) 16355 lt_prog_compiler_wl_GCJ='-Wl,' 16356 lt_prog_compiler_pic_GCJ='-KPIC' 16357 lt_prog_compiler_static_GCJ='-static' 16358 ;; 16359 pgcc* | pgf77* | pgf90* | pgf95*) 16360 # Portland Group compilers (*not* the Pentium gcc compiler, 16361 # which looks to be a dead project) 16362 lt_prog_compiler_wl_GCJ='-Wl,' 16363 lt_prog_compiler_pic_GCJ='-fpic' 16364 lt_prog_compiler_static_GCJ='-Bstatic' 16365 ;; 16366 ccc*) 16367 lt_prog_compiler_wl_GCJ='-Wl,' 16368 # All Alpha code is PIC. 16369 lt_prog_compiler_static_GCJ='-non_shared' 16370 ;; 16371 esac 16372 ;; 16373 16374 osf3* | osf4* | osf5*) 16375 lt_prog_compiler_wl_GCJ='-Wl,' 16376 # All OSF/1 code is PIC. 16377 lt_prog_compiler_static_GCJ='-non_shared' 16378 ;; 16379 16380 solaris*) 16381 lt_prog_compiler_pic_GCJ='-KPIC' 16382 lt_prog_compiler_static_GCJ='-Bstatic' 16383 case $cc_basename in 16384 f77* | f90* | f95*) 16385 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16386 *) 16387 lt_prog_compiler_wl_GCJ='-Wl,';; 16388 esac 16389 ;; 16390 16391 sunos4*) 16392 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16393 lt_prog_compiler_pic_GCJ='-PIC' 16394 lt_prog_compiler_static_GCJ='-Bstatic' 16395 ;; 16396 16397 sysv4 | sysv4.2uw2* | sysv4.3*) 16398 lt_prog_compiler_wl_GCJ='-Wl,' 16399 lt_prog_compiler_pic_GCJ='-KPIC' 16400 lt_prog_compiler_static_GCJ='-Bstatic' 16401 ;; 16402 16403 sysv4*MP*) 16404 if test -d /usr/nec ;then 16405 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16406 lt_prog_compiler_static_GCJ='-Bstatic' 16407 fi 16408 ;; 16409 16410 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16411 lt_prog_compiler_wl_GCJ='-Wl,' 16412 lt_prog_compiler_pic_GCJ='-KPIC' 16413 lt_prog_compiler_static_GCJ='-Bstatic' 16414 ;; 16415 16416 unicos*) 16417 lt_prog_compiler_wl_GCJ='-Wl,' 16418 lt_prog_compiler_can_build_shared_GCJ=no 16419 ;; 16420 16421 uts4*) 16422 lt_prog_compiler_pic_GCJ='-pic' 16423 lt_prog_compiler_static_GCJ='-Bstatic' 16424 ;; 16425 16426 *) 16427 lt_prog_compiler_can_build_shared_GCJ=no 16428 ;; 16429 esac 16430 fi 16431 16432{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16433echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16434 16435# 16436# Check to make sure the PIC flag actually works. 16437# 16438if test -n "$lt_prog_compiler_pic_GCJ"; then 16439 16440{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16441echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16442if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16443 echo $ECHO_N "(cached) $ECHO_C" >&6 16444else 16445 lt_prog_compiler_pic_works_GCJ=no 16446 ac_outfile=conftest.$ac_objext 16447 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16448 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16449 # Insert the option either (1) after the last *FLAGS variable, or 16450 # (2) before a word containing "conftest.", or (3) at the end. 16451 # Note that $ac_compile itself does not contain backslashes and begins 16452 # with a dollar sign (not a hyphen), so the echo should work correctly. 16453 # The option is referenced via a variable to avoid confusing sed. 16454 lt_compile=`echo "$ac_compile" | $SED \ 16455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16457 -e 's:$: $lt_compiler_flag:'` 16458 (eval echo "\"\$as_me:16458: $lt_compile\"" >&5) 16459 (eval "$lt_compile" 2>conftest.err) 16460 ac_status=$? 16461 cat conftest.err >&5 16462 echo "$as_me:16462: \$? = $ac_status" >&5 16463 if (exit $ac_status) && test -s "$ac_outfile"; then 16464 # The compiler can only warn and ignore the option if not recognized 16465 # So say no if there are warnings other than the usual output. 16466 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16469 lt_prog_compiler_pic_works_GCJ=yes 16470 fi 16471 fi 16472 $rm conftest* 16473 16474fi 16475{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16476echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16477 16478if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16479 case $lt_prog_compiler_pic_GCJ in 16480 "" | " "*) ;; 16481 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16482 esac 16483else 16484 lt_prog_compiler_pic_GCJ= 16485 lt_prog_compiler_can_build_shared_GCJ=no 16486fi 16487 16488fi 16489case $host_os in 16490 # For platforms which do not support PIC, -DPIC is meaningless: 16491 *djgpp*) 16492 lt_prog_compiler_pic_GCJ= 16493 ;; 16494 *) 16495 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16496 ;; 16497esac 16498 16499# 16500# Check to make sure the static flag actually works. 16501# 16502wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16503{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16504echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16505if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16506 echo $ECHO_N "(cached) $ECHO_C" >&6 16507else 16508 lt_prog_compiler_static_works_GCJ=no 16509 save_LDFLAGS="$LDFLAGS" 16510 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16511 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16513 # The linker can only warn and ignore the option if not recognized 16514 # So say no if there are warnings 16515 if test -s conftest.err; then 16516 # Append any errors to the config.log. 16517 cat conftest.err 1>&5 16518 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16520 if diff conftest.exp conftest.er2 >/dev/null; then 16521 lt_prog_compiler_static_works_GCJ=yes 16522 fi 16523 else 16524 lt_prog_compiler_static_works_GCJ=yes 16525 fi 16526 fi 16527 $rm conftest* 16528 LDFLAGS="$save_LDFLAGS" 16529 16530fi 16531{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16532echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16533 16534if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16535 : 16536else 16537 lt_prog_compiler_static_GCJ= 16538fi 16539 16540 16541{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16542echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16543if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16544 echo $ECHO_N "(cached) $ECHO_C" >&6 16545else 16546 lt_cv_prog_compiler_c_o_GCJ=no 16547 $rm -r conftest 2>/dev/null 16548 mkdir conftest 16549 cd conftest 16550 mkdir out 16551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16552 16553 lt_compiler_flag="-o out/conftest2.$ac_objext" 16554 # Insert the option either (1) after the last *FLAGS variable, or 16555 # (2) before a word containing "conftest.", or (3) at the end. 16556 # Note that $ac_compile itself does not contain backslashes and begins 16557 # with a dollar sign (not a hyphen), so the echo should work correctly. 16558 lt_compile=`echo "$ac_compile" | $SED \ 16559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16561 -e 's:$: $lt_compiler_flag:'` 16562 (eval echo "\"\$as_me:16562: $lt_compile\"" >&5) 16563 (eval "$lt_compile" 2>out/conftest.err) 16564 ac_status=$? 16565 cat out/conftest.err >&5 16566 echo "$as_me:16566: \$? = $ac_status" >&5 16567 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16568 then 16569 # The compiler can only warn and ignore the option if not recognized 16570 # So say no if there are warnings 16571 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16574 lt_cv_prog_compiler_c_o_GCJ=yes 16575 fi 16576 fi 16577 chmod u+w . 2>&5 16578 $rm conftest* 16579 # SGI C++ compiler will create directory out/ii_files/ for 16580 # template instantiation 16581 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16582 $rm out/* && rmdir out 16583 cd .. 16584 rmdir conftest 16585 $rm conftest* 16586 16587fi 16588{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16589echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16590 16591 16592hard_links="nottested" 16593if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16594 # do not overwrite the value of need_locks provided by the user 16595 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16596echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16597 hard_links=yes 16598 $rm conftest* 16599 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16600 touch conftest.a 16601 ln conftest.a conftest.b 2>&5 || hard_links=no 16602 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16603 { echo "$as_me:$LINENO: result: $hard_links" >&5 16604echo "${ECHO_T}$hard_links" >&6; } 16605 if test "$hard_links" = no; then 16606 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16607echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16608 need_locks=warn 16609 fi 16610else 16611 need_locks=no 16612fi 16613 16614{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16615echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16616 16617 runpath_var= 16618 allow_undefined_flag_GCJ= 16619 enable_shared_with_static_runtimes_GCJ=no 16620 archive_cmds_GCJ= 16621 archive_expsym_cmds_GCJ= 16622 old_archive_From_new_cmds_GCJ= 16623 old_archive_from_expsyms_cmds_GCJ= 16624 export_dynamic_flag_spec_GCJ= 16625 whole_archive_flag_spec_GCJ= 16626 thread_safe_flag_spec_GCJ= 16627 hardcode_libdir_flag_spec_GCJ= 16628 hardcode_libdir_flag_spec_ld_GCJ= 16629 hardcode_libdir_separator_GCJ= 16630 hardcode_direct_GCJ=no 16631 hardcode_minus_L_GCJ=no 16632 hardcode_shlibpath_var_GCJ=unsupported 16633 link_all_deplibs_GCJ=unknown 16634 hardcode_automatic_GCJ=no 16635 module_cmds_GCJ= 16636 module_expsym_cmds_GCJ= 16637 always_export_symbols_GCJ=no 16638 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16639 # include_expsyms should be a list of space-separated symbols to be *always* 16640 # included in the symbol list 16641 include_expsyms_GCJ= 16642 # exclude_expsyms can be an extended regexp of symbols to exclude 16643 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16644 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16645 # as well as any symbol that contains `d'. 16646 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16647 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16648 # platforms (ab)use it in PIC code, but their linkers get confused if 16649 # the symbol is explicitly referenced. Since portable code cannot 16650 # rely on this symbol name, it's probably fine to never include it in 16651 # preloaded symbol tables. 16652 extract_expsyms_cmds= 16653 # Just being paranoid about ensuring that cc_basename is set. 16654 for cc_temp in $compiler""; do 16655 case $cc_temp in 16656 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16657 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16658 \-*) ;; 16659 *) break;; 16660 esac 16661done 16662cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16663 16664 case $host_os in 16665 cygwin* | mingw* | pw32*) 16666 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16667 # When not using gcc, we currently assume that we are using 16668 # Microsoft Visual C++. 16669 if test "$GCC" != yes; then 16670 with_gnu_ld=no 16671 fi 16672 ;; 16673 interix*) 16674 # we just hope/assume this is gcc and not c89 (= MSVC++) 16675 with_gnu_ld=yes 16676 ;; 16677 openbsd*) 16678 with_gnu_ld=no 16679 ;; 16680 esac 16681 16682 ld_shlibs_GCJ=yes 16683 if test "$with_gnu_ld" = yes; then 16684 # If archive_cmds runs LD, not CC, wlarc should be empty 16685 wlarc='${wl}' 16686 16687 # Set some defaults for GNU ld with shared library support. These 16688 # are reset later if shared libraries are not supported. Putting them 16689 # here allows them to be overridden if necessary. 16690 runpath_var=LD_RUN_PATH 16691 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16692 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16693 # ancient GNU ld didn't support --whole-archive et. al. 16694 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16695 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16696 else 16697 whole_archive_flag_spec_GCJ= 16698 fi 16699 supports_anon_versioning=no 16700 case `$LD -v 2>/dev/null` in 16701 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16702 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16703 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16704 *\ 2.11.*) ;; # other 2.11 versions 16705 *) supports_anon_versioning=yes ;; 16706 esac 16707 16708 # See if GNU ld supports shared libraries. 16709 case $host_os in 16710 aix3* | aix4* | aix5*) 16711 # On AIX/PPC, the GNU linker is very broken 16712 if test "$host_cpu" != ia64; then 16713 ld_shlibs_GCJ=no 16714 cat <<EOF 1>&2 16715 16716*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16717*** to be unable to reliably create shared libraries on AIX. 16718*** Therefore, libtool is disabling shared libraries support. If you 16719*** really care for shared libraries, you may want to modify your PATH 16720*** so that a non-GNU linker is found, and then restart. 16721 16722EOF 16723 fi 16724 ;; 16725 16726 amigaos*) 16727 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)' 16728 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16729 hardcode_minus_L_GCJ=yes 16730 16731 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16732 # that the semantics of dynamic libraries on AmigaOS, at least up 16733 # to version 4, is to share data among multiple programs linked 16734 # with the same dynamic library. Since this doesn't match the 16735 # behavior of shared libraries on other platforms, we can't use 16736 # them. 16737 ld_shlibs_GCJ=no 16738 ;; 16739 16740 beos*) 16741 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16742 allow_undefined_flag_GCJ=unsupported 16743 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16744 # support --undefined. This deserves some investigation. FIXME 16745 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16746 else 16747 ld_shlibs_GCJ=no 16748 fi 16749 ;; 16750 16751 cygwin* | mingw* | pw32*) 16752 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16753 # as there is no search path for DLLs. 16754 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16755 allow_undefined_flag_GCJ=unsupported 16756 always_export_symbols_GCJ=no 16757 enable_shared_with_static_runtimes_GCJ=yes 16758 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16759 16760 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16761 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16762 # If the export-symbols file already is a .def file (1st line 16763 # is EXPORTS), use it as is; otherwise, prepend... 16764 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16765 cp $export_symbols $output_objdir/$soname.def; 16766 else 16767 echo EXPORTS > $output_objdir/$soname.def; 16768 cat $export_symbols >> $output_objdir/$soname.def; 16769 fi~ 16770 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16771 else 16772 ld_shlibs_GCJ=no 16773 fi 16774 ;; 16775 16776 interix3*) 16777 hardcode_direct_GCJ=no 16778 hardcode_shlibpath_var_GCJ=no 16779 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16780 export_dynamic_flag_spec_GCJ='${wl}-E' 16781 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16782 # Instead, shared libraries are loaded at an image base (0x10000000 by 16783 # default) and relocated if they conflict, which is a slow very memory 16784 # consuming and fragmenting process. To avoid this, we pick a random, 16785 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16786 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16787 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' 16788 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' 16789 ;; 16790 16791 linux*) 16792 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16793 tmp_addflag= 16794 case $cc_basename,$host_cpu in 16795 pgcc*) # Portland Group C compiler 16796 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' 16797 tmp_addflag=' $pic_flag' 16798 ;; 16799 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16800 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' 16801 tmp_addflag=' $pic_flag -Mnomain' ;; 16802 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16803 tmp_addflag=' -i_dynamic' ;; 16804 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16805 tmp_addflag=' -i_dynamic -nofor_main' ;; 16806 ifc* | ifort*) # Intel Fortran compiler 16807 tmp_addflag=' -nofor_main' ;; 16808 esac 16809 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16810 16811 if test $supports_anon_versioning = yes; then 16812 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16813 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16814 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16815 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16816 fi 16817 else 16818 ld_shlibs_GCJ=no 16819 fi 16820 ;; 16821 16822 netbsd*) 16823 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16824 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16825 wlarc= 16826 else 16827 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16828 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16829 fi 16830 ;; 16831 16832 solaris*) 16833 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16834 ld_shlibs_GCJ=no 16835 cat <<EOF 1>&2 16836 16837*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16838*** create shared libraries on Solaris systems. Therefore, libtool 16839*** is disabling shared libraries support. We urge you to upgrade GNU 16840*** binutils to release 2.9.1 or newer. Another option is to modify 16841*** your PATH or compiler configuration so that the native linker is 16842*** used, and then restart. 16843 16844EOF 16845 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16846 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16847 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16848 else 16849 ld_shlibs_GCJ=no 16850 fi 16851 ;; 16852 16853 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16854 case `$LD -v 2>&1` in 16855 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16856 ld_shlibs_GCJ=no 16857 cat <<_LT_EOF 1>&2 16858 16859*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16860*** reliably create shared libraries on SCO systems. Therefore, libtool 16861*** is disabling shared libraries support. We urge you to upgrade GNU 16862*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16863*** your PATH or compiler configuration so that the native linker is 16864*** used, and then restart. 16865 16866_LT_EOF 16867 ;; 16868 *) 16869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16870 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16871 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16872 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16873 else 16874 ld_shlibs_GCJ=no 16875 fi 16876 ;; 16877 esac 16878 ;; 16879 16880 sunos4*) 16881 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16882 wlarc= 16883 hardcode_direct_GCJ=yes 16884 hardcode_shlibpath_var_GCJ=no 16885 ;; 16886 16887 *) 16888 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16889 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16890 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16891 else 16892 ld_shlibs_GCJ=no 16893 fi 16894 ;; 16895 esac 16896 16897 if test "$ld_shlibs_GCJ" = no; then 16898 runpath_var= 16899 hardcode_libdir_flag_spec_GCJ= 16900 export_dynamic_flag_spec_GCJ= 16901 whole_archive_flag_spec_GCJ= 16902 fi 16903 else 16904 # PORTME fill in a description of your system's linker (not GNU ld) 16905 case $host_os in 16906 aix3*) 16907 allow_undefined_flag_GCJ=unsupported 16908 always_export_symbols_GCJ=yes 16909 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' 16910 # Note: this linker hardcodes the directories in LIBPATH if there 16911 # are no directories specified by -L. 16912 hardcode_minus_L_GCJ=yes 16913 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16914 # Neither direct hardcoding nor static linking is supported with a 16915 # broken collect2. 16916 hardcode_direct_GCJ=unsupported 16917 fi 16918 ;; 16919 16920 aix4* | aix5*) 16921 if test "$host_cpu" = ia64; then 16922 # On IA64, the linker does run time linking by default, so we don't 16923 # have to do anything special. 16924 aix_use_runtimelinking=no 16925 exp_sym_flag='-Bexport' 16926 no_entry_flag="" 16927 else 16928 # If we're using GNU nm, then we don't want the "-C" option. 16929 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16930 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16931 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' 16932 else 16933 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' 16934 fi 16935 aix_use_runtimelinking=no 16936 16937 # Test if we are trying to use run time linking or normal 16938 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16939 # need to do runtime linking. 16940 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16941 for ld_flag in $LDFLAGS; do 16942 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16943 aix_use_runtimelinking=yes 16944 break 16945 fi 16946 done 16947 ;; 16948 esac 16949 16950 exp_sym_flag='-bexport' 16951 no_entry_flag='-bnoentry' 16952 fi 16953 16954 # When large executables or shared objects are built, AIX ld can 16955 # have problems creating the table of contents. If linking a library 16956 # or program results in "error TOC overflow" add -mminimal-toc to 16957 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16958 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16959 16960 archive_cmds_GCJ='' 16961 hardcode_direct_GCJ=yes 16962 hardcode_libdir_separator_GCJ=':' 16963 link_all_deplibs_GCJ=yes 16964 16965 if test "$GCC" = yes; then 16966 case $host_os in aix4.[012]|aix4.[012].*) 16967 # We only want to do this on AIX 4.2 and lower, the check 16968 # below for broken collect2 doesn't work under 4.3+ 16969 collect2name=`${CC} -print-prog-name=collect2` 16970 if test -f "$collect2name" && \ 16971 strings "$collect2name" | grep resolve_lib_name >/dev/null 16972 then 16973 # We have reworked collect2 16974 hardcode_direct_GCJ=yes 16975 else 16976 # We have old collect2 16977 hardcode_direct_GCJ=unsupported 16978 # It fails to find uninstalled libraries when the uninstalled 16979 # path is not listed in the libpath. Setting hardcode_minus_L 16980 # to unsupported forces relinking 16981 hardcode_minus_L_GCJ=yes 16982 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16983 hardcode_libdir_separator_GCJ= 16984 fi 16985 ;; 16986 esac 16987 shared_flag='-shared' 16988 if test "$aix_use_runtimelinking" = yes; then 16989 shared_flag="$shared_flag "'${wl}-G' 16990 fi 16991 else 16992 # not using gcc 16993 if test "$host_cpu" = ia64; then 16994 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16995 # chokes on -Wl,-G. The following line is correct: 16996 shared_flag='-G' 16997 else 16998 if test "$aix_use_runtimelinking" = yes; then 16999 shared_flag='${wl}-G' 17000 else 17001 shared_flag='${wl}-bM:SRE' 17002 fi 17003 fi 17004 fi 17005 17006 # It seems that -bexpall does not export symbols beginning with 17007 # underscore (_), so it is better to generate a list of symbols to export. 17008 always_export_symbols_GCJ=yes 17009 if test "$aix_use_runtimelinking" = yes; then 17010 # Warning - without using the other runtime loading flags (-brtl), 17011 # -berok will link without error, but may produce a broken library. 17012 allow_undefined_flag_GCJ='-berok' 17013 # Determine the default libpath from the value encoded in an empty executable. 17014 cat >conftest.$ac_ext <<_ACEOF 17015/* confdefs.h. */ 17016_ACEOF 17017cat confdefs.h >>conftest.$ac_ext 17018cat >>conftest.$ac_ext <<_ACEOF 17019/* end confdefs.h. */ 17020 17021int 17022main () 17023{ 17024 17025 ; 17026 return 0; 17027} 17028_ACEOF 17029rm -f conftest.$ac_objext conftest$ac_exeext 17030if { (ac_try="$ac_link" 17031case "(($ac_try" in 17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17033 *) ac_try_echo=$ac_try;; 17034esac 17035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17036 (eval "$ac_link") 2>conftest.er1 17037 ac_status=$? 17038 grep -v '^ *+' conftest.er1 >conftest.err 17039 rm -f conftest.er1 17040 cat conftest.err >&5 17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17042 (exit $ac_status); } && { 17043 test -z "$ac_c_werror_flag" || 17044 test ! -s conftest.err 17045 } && test -s conftest$ac_exeext && 17046 $as_test_x conftest$ac_exeext; then 17047 17048aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17049}'` 17050# Check for a 64-bit object if we didn't find anything. 17051if 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; } 17052}'`; fi 17053else 17054 echo "$as_me: failed program was:" >&5 17055sed 's/^/| /' conftest.$ac_ext >&5 17056 17057 17058fi 17059 17060rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17061 conftest$ac_exeext conftest.$ac_ext 17062if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17063 17064 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17065 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" 17066 else 17067 if test "$host_cpu" = ia64; then 17068 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17069 allow_undefined_flag_GCJ="-z nodefs" 17070 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" 17071 else 17072 # Determine the default libpath from the value encoded in an empty executable. 17073 cat >conftest.$ac_ext <<_ACEOF 17074/* confdefs.h. */ 17075_ACEOF 17076cat confdefs.h >>conftest.$ac_ext 17077cat >>conftest.$ac_ext <<_ACEOF 17078/* end confdefs.h. */ 17079 17080int 17081main () 17082{ 17083 17084 ; 17085 return 0; 17086} 17087_ACEOF 17088rm -f conftest.$ac_objext conftest$ac_exeext 17089if { (ac_try="$ac_link" 17090case "(($ac_try" in 17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17092 *) ac_try_echo=$ac_try;; 17093esac 17094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17095 (eval "$ac_link") 2>conftest.er1 17096 ac_status=$? 17097 grep -v '^ *+' conftest.er1 >conftest.err 17098 rm -f conftest.er1 17099 cat conftest.err >&5 17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17101 (exit $ac_status); } && { 17102 test -z "$ac_c_werror_flag" || 17103 test ! -s conftest.err 17104 } && test -s conftest$ac_exeext && 17105 $as_test_x conftest$ac_exeext; then 17106 17107aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17108}'` 17109# Check for a 64-bit object if we didn't find anything. 17110if 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; } 17111}'`; fi 17112else 17113 echo "$as_me: failed program was:" >&5 17114sed 's/^/| /' conftest.$ac_ext >&5 17115 17116 17117fi 17118 17119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17120 conftest$ac_exeext conftest.$ac_ext 17121if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17122 17123 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17124 # Warning - without using the other run time loading flags, 17125 # -berok will link without error, but may produce a broken library. 17126 no_undefined_flag_GCJ=' ${wl}-bernotok' 17127 allow_undefined_flag_GCJ=' ${wl}-berok' 17128 # Exported symbols can be pulled into shared objects from archives 17129 whole_archive_flag_spec_GCJ='$convenience' 17130 archive_cmds_need_lc_GCJ=yes 17131 # This is similar to how AIX traditionally builds its shared libraries. 17132 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' 17133 fi 17134 fi 17135 ;; 17136 17137 amigaos*) 17138 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)' 17139 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17140 hardcode_minus_L_GCJ=yes 17141 # see comment about different semantics on the GNU ld section 17142 ld_shlibs_GCJ=no 17143 ;; 17144 17145 bsdi[45]*) 17146 export_dynamic_flag_spec_GCJ=-rdynamic 17147 ;; 17148 17149 cygwin* | mingw* | pw32*) 17150 # When not using gcc, we currently assume that we are using 17151 # Microsoft Visual C++. 17152 # hardcode_libdir_flag_spec is actually meaningless, as there is 17153 # no search path for DLLs. 17154 hardcode_libdir_flag_spec_GCJ=' ' 17155 allow_undefined_flag_GCJ=unsupported 17156 # Tell ltmain to make .lib files, not .a files. 17157 libext=lib 17158 # Tell ltmain to make .dll files, not .so files. 17159 shrext_cmds=".dll" 17160 # FIXME: Setting linknames here is a bad hack. 17161 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17162 # The linker will automatically build a .lib file if we build a DLL. 17163 old_archive_From_new_cmds_GCJ='true' 17164 # FIXME: Should let the user specify the lib program. 17165 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17166 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17167 enable_shared_with_static_runtimes_GCJ=yes 17168 ;; 17169 17170 darwin* | rhapsody*) 17171 case $host_os in 17172 rhapsody* | darwin1.[012]) 17173 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17174 ;; 17175 *) # Darwin 1.3 on 17176 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17177 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17178 else 17179 case ${MACOSX_DEPLOYMENT_TARGET} in 17180 10.[012]) 17181 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17182 ;; 17183 10.*) 17184 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17185 ;; 17186 esac 17187 fi 17188 ;; 17189 esac 17190 archive_cmds_need_lc_GCJ=no 17191 hardcode_direct_GCJ=no 17192 hardcode_automatic_GCJ=yes 17193 hardcode_shlibpath_var_GCJ=unsupported 17194 whole_archive_flag_spec_GCJ='' 17195 link_all_deplibs_GCJ=yes 17196 if test "$GCC" = yes ; then 17197 output_verbose_link_cmd='echo' 17198 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17199 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17200 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17201 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}' 17202 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}' 17203 else 17204 case $cc_basename in 17205 xlc*) 17206 output_verbose_link_cmd='echo' 17207 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17208 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17209 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17210 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}' 17211 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}' 17212 ;; 17213 *) 17214 ld_shlibs_GCJ=no 17215 ;; 17216 esac 17217 fi 17218 ;; 17219 17220 dgux*) 17221 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17222 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17223 hardcode_shlibpath_var_GCJ=no 17224 ;; 17225 17226 freebsd1*) 17227 ld_shlibs_GCJ=no 17228 ;; 17229 17230 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17231 # support. Future versions do this automatically, but an explicit c++rt0.o 17232 # does not break anything, and helps significantly (at the cost of a little 17233 # extra space). 17234 freebsd2.2*) 17235 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17236 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17237 hardcode_direct_GCJ=yes 17238 hardcode_shlibpath_var_GCJ=no 17239 ;; 17240 17241 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17242 freebsd2*) 17243 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17244 hardcode_direct_GCJ=yes 17245 hardcode_minus_L_GCJ=yes 17246 hardcode_shlibpath_var_GCJ=no 17247 ;; 17248 17249 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17250 freebsd* | kfreebsd*-gnu | dragonfly*) 17251 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17252 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17253 hardcode_direct_GCJ=yes 17254 hardcode_shlibpath_var_GCJ=no 17255 ;; 17256 17257 hpux9*) 17258 if test "$GCC" = yes; then 17259 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' 17260 else 17261 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' 17262 fi 17263 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17264 hardcode_libdir_separator_GCJ=: 17265 hardcode_direct_GCJ=yes 17266 17267 # hardcode_minus_L: Not really in the search PATH, 17268 # but as the default location of the library. 17269 hardcode_minus_L_GCJ=yes 17270 export_dynamic_flag_spec_GCJ='${wl}-E' 17271 ;; 17272 17273 hpux10*) 17274 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17275 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17276 else 17277 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17278 fi 17279 if test "$with_gnu_ld" = no; then 17280 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17281 hardcode_libdir_separator_GCJ=: 17282 17283 hardcode_direct_GCJ=yes 17284 export_dynamic_flag_spec_GCJ='${wl}-E' 17285 17286 # hardcode_minus_L: Not really in the search PATH, 17287 # but as the default location of the library. 17288 hardcode_minus_L_GCJ=yes 17289 fi 17290 ;; 17291 17292 hpux11*) 17293 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17294 case $host_cpu in 17295 hppa*64*) 17296 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17297 ;; 17298 ia64*) 17299 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17300 ;; 17301 *) 17302 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17303 ;; 17304 esac 17305 else 17306 case $host_cpu in 17307 hppa*64*) 17308 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17309 ;; 17310 ia64*) 17311 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17312 ;; 17313 *) 17314 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17315 ;; 17316 esac 17317 fi 17318 if test "$with_gnu_ld" = no; then 17319 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17320 hardcode_libdir_separator_GCJ=: 17321 17322 case $host_cpu in 17323 hppa*64*|ia64*) 17324 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17325 hardcode_direct_GCJ=no 17326 hardcode_shlibpath_var_GCJ=no 17327 ;; 17328 *) 17329 hardcode_direct_GCJ=yes 17330 export_dynamic_flag_spec_GCJ='${wl}-E' 17331 17332 # hardcode_minus_L: Not really in the search PATH, 17333 # but as the default location of the library. 17334 hardcode_minus_L_GCJ=yes 17335 ;; 17336 esac 17337 fi 17338 ;; 17339 17340 irix5* | irix6* | nonstopux*) 17341 if test "$GCC" = yes; then 17342 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' 17343 else 17344 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' 17345 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17346 fi 17347 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17348 hardcode_libdir_separator_GCJ=: 17349 link_all_deplibs_GCJ=yes 17350 ;; 17351 17352 netbsd*) 17353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17354 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17355 else 17356 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17357 fi 17358 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17359 hardcode_direct_GCJ=yes 17360 hardcode_shlibpath_var_GCJ=no 17361 ;; 17362 17363 newsos6) 17364 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17365 hardcode_direct_GCJ=yes 17366 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17367 hardcode_libdir_separator_GCJ=: 17368 hardcode_shlibpath_var_GCJ=no 17369 ;; 17370 17371 openbsd*) 17372 hardcode_direct_GCJ=yes 17373 hardcode_shlibpath_var_GCJ=no 17374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17375 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17376 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17377 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17378 export_dynamic_flag_spec_GCJ='${wl}-E' 17379 else 17380 case $host_os in 17381 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17382 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17383 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17384 ;; 17385 *) 17386 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17387 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17388 ;; 17389 esac 17390 fi 17391 ;; 17392 17393 os2*) 17394 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17395 hardcode_minus_L_GCJ=yes 17396 allow_undefined_flag_GCJ=unsupported 17397 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' 17398 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17399 ;; 17400 17401 osf3*) 17402 if test "$GCC" = yes; then 17403 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17404 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' 17405 else 17406 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17407 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' 17408 fi 17409 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17410 hardcode_libdir_separator_GCJ=: 17411 ;; 17412 17413 osf4* | osf5*) # as osf3* with the addition of -msym flag 17414 if test "$GCC" = yes; then 17415 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17416 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' 17417 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17418 else 17419 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17420 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' 17421 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~ 17422 $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' 17423 17424 # Both c and cxx compiler support -rpath directly 17425 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17426 fi 17427 hardcode_libdir_separator_GCJ=: 17428 ;; 17429 17430 solaris*) 17431 no_undefined_flag_GCJ=' -z text' 17432 if test "$GCC" = yes; then 17433 wlarc='${wl}' 17434 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17435 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17436 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17437 else 17438 wlarc='' 17439 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17440 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17441 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17442 fi 17443 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17444 hardcode_shlibpath_var_GCJ=no 17445 case $host_os in 17446 solaris2.[0-5] | solaris2.[0-5].*) ;; 17447 *) 17448 # The compiler driver will combine linker options so we 17449 # cannot just pass the convience library names through 17450 # without $wl, iff we do not link with $LD. 17451 # Luckily, gcc supports the same syntax we need for Sun Studio. 17452 # Supported since Solaris 2.6 (maybe 2.5.1?) 17453 case $wlarc in 17454 '') 17455 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17456 *) 17457 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' ;; 17458 esac ;; 17459 esac 17460 link_all_deplibs_GCJ=yes 17461 ;; 17462 17463 sunos4*) 17464 if test "x$host_vendor" = xsequent; then 17465 # Use $CC to link under sequent, because it throws in some extra .o 17466 # files that make .init and .fini sections work. 17467 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17468 else 17469 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17470 fi 17471 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17472 hardcode_direct_GCJ=yes 17473 hardcode_minus_L_GCJ=yes 17474 hardcode_shlibpath_var_GCJ=no 17475 ;; 17476 17477 sysv4) 17478 case $host_vendor in 17479 sni) 17480 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17481 hardcode_direct_GCJ=yes # is this really true??? 17482 ;; 17483 siemens) 17484 ## LD is ld it makes a PLAMLIB 17485 ## CC just makes a GrossModule. 17486 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17487 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17488 hardcode_direct_GCJ=no 17489 ;; 17490 motorola) 17491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17492 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17493 ;; 17494 esac 17495 runpath_var='LD_RUN_PATH' 17496 hardcode_shlibpath_var_GCJ=no 17497 ;; 17498 17499 sysv4.3*) 17500 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17501 hardcode_shlibpath_var_GCJ=no 17502 export_dynamic_flag_spec_GCJ='-Bexport' 17503 ;; 17504 17505 sysv4*MP*) 17506 if test -d /usr/nec; then 17507 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17508 hardcode_shlibpath_var_GCJ=no 17509 runpath_var=LD_RUN_PATH 17510 hardcode_runpath_var=yes 17511 ld_shlibs_GCJ=yes 17512 fi 17513 ;; 17514 17515 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17516 no_undefined_flag_GCJ='${wl}-z,text' 17517 archive_cmds_need_lc_GCJ=no 17518 hardcode_shlibpath_var_GCJ=no 17519 runpath_var='LD_RUN_PATH' 17520 17521 if test "$GCC" = yes; then 17522 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17523 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17524 else 17525 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17526 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17527 fi 17528 ;; 17529 17530 sysv5* | sco3.2v5* | sco5v6*) 17531 # Note: We can NOT use -z defs as we might desire, because we do not 17532 # link with -lc, and that would cause any symbols used from libc to 17533 # always be unresolved, which means just about no library would 17534 # ever link correctly. If we're not using GNU ld we use -z text 17535 # though, which does catch some bad symbols but isn't as heavy-handed 17536 # as -z defs. 17537 no_undefined_flag_GCJ='${wl}-z,text' 17538 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17539 archive_cmds_need_lc_GCJ=no 17540 hardcode_shlibpath_var_GCJ=no 17541 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17542 hardcode_libdir_separator_GCJ=':' 17543 link_all_deplibs_GCJ=yes 17544 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17545 runpath_var='LD_RUN_PATH' 17546 17547 if test "$GCC" = yes; then 17548 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17549 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17550 else 17551 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17552 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17553 fi 17554 ;; 17555 17556 uts4*) 17557 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17558 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17559 hardcode_shlibpath_var_GCJ=no 17560 ;; 17561 17562 *) 17563 ld_shlibs_GCJ=no 17564 ;; 17565 esac 17566 fi 17567 17568{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17569echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17570test "$ld_shlibs_GCJ" = no && can_build_shared=no 17571 17572# 17573# Do we need to explicitly link libc? 17574# 17575case "x$archive_cmds_need_lc_GCJ" in 17576x|xyes) 17577 # Assume -lc should be added 17578 archive_cmds_need_lc_GCJ=yes 17579 17580 if test "$enable_shared" = yes && test "$GCC" = yes; then 17581 case $archive_cmds_GCJ in 17582 *'~'*) 17583 # FIXME: we may have to deal with multi-command sequences. 17584 ;; 17585 '$CC '*) 17586 # Test whether the compiler implicitly links with -lc since on some 17587 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17588 # to ld, don't add -lc before -lgcc. 17589 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17590echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17591 $rm conftest* 17592 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17593 17594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17595 (eval $ac_compile) 2>&5 17596 ac_status=$? 17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17598 (exit $ac_status); } 2>conftest.err; then 17599 soname=conftest 17600 lib=conftest 17601 libobjs=conftest.$ac_objext 17602 deplibs= 17603 wl=$lt_prog_compiler_wl_GCJ 17604 pic_flag=$lt_prog_compiler_pic_GCJ 17605 compiler_flags=-v 17606 linker_flags=-v 17607 verstring= 17608 output_objdir=. 17609 libname=conftest 17610 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17611 allow_undefined_flag_GCJ= 17612 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17613 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17614 ac_status=$? 17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17616 (exit $ac_status); } 17617 then 17618 archive_cmds_need_lc_GCJ=no 17619 else 17620 archive_cmds_need_lc_GCJ=yes 17621 fi 17622 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17623 else 17624 cat conftest.err 1>&5 17625 fi 17626 $rm conftest* 17627 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17628echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17629 ;; 17630 esac 17631 fi 17632 ;; 17633esac 17634 17635{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17636echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17637library_names_spec= 17638libname_spec='lib$name' 17639soname_spec= 17640shrext_cmds=".so" 17641postinstall_cmds= 17642postuninstall_cmds= 17643finish_cmds= 17644finish_eval= 17645shlibpath_var= 17646shlibpath_overrides_runpath=unknown 17647version_type=none 17648dynamic_linker="$host_os ld.so" 17649sys_lib_dlsearch_path_spec="/lib /usr/lib" 17650if test "$GCC" = yes; then 17651 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17652 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17653 # if the path contains ";" then we assume it to be the separator 17654 # otherwise default to the standard path separator (i.e. ":") - it is 17655 # assumed that no part of a normal pathname contains ";" but that should 17656 # okay in the real world where ";" in dirpaths is itself problematic. 17657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17658 else 17659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17660 fi 17661else 17662 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17663fi 17664need_lib_prefix=unknown 17665hardcode_into_libs=no 17666 17667# when you set need_version to no, make sure it does not cause -set_version 17668# flags to be left without arguments 17669need_version=unknown 17670 17671case $host_os in 17672aix3*) 17673 version_type=linux 17674 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17675 shlibpath_var=LIBPATH 17676 17677 # AIX 3 has no versioning support, so we append a major version to the name. 17678 soname_spec='${libname}${release}${shared_ext}$major' 17679 ;; 17680 17681aix4* | aix5*) 17682 version_type=linux 17683 need_lib_prefix=no 17684 need_version=no 17685 hardcode_into_libs=yes 17686 if test "$host_cpu" = ia64; then 17687 # AIX 5 supports IA64 17688 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17689 shlibpath_var=LD_LIBRARY_PATH 17690 else 17691 # With GCC up to 2.95.x, collect2 would create an import file 17692 # for dependence libraries. The import file would start with 17693 # the line `#! .'. This would cause the generated library to 17694 # depend on `.', always an invalid library. This was fixed in 17695 # development snapshots of GCC prior to 3.0. 17696 case $host_os in 17697 aix4 | aix4.[01] | aix4.[01].*) 17698 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17699 echo ' yes ' 17700 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17701 : 17702 else 17703 can_build_shared=no 17704 fi 17705 ;; 17706 esac 17707 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17708 # soname into executable. Probably we can add versioning support to 17709 # collect2, so additional links can be useful in future. 17710 if test "$aix_use_runtimelinking" = yes; then 17711 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17712 # instead of lib<name>.a to let people know that these are not 17713 # typical AIX shared libraries. 17714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17715 else 17716 # We preserve .a as extension for shared libraries through AIX4.2 17717 # and later when we are not doing run time linking. 17718 library_names_spec='${libname}${release}.a $libname.a' 17719 soname_spec='${libname}${release}${shared_ext}$major' 17720 fi 17721 shlibpath_var=LIBPATH 17722 fi 17723 ;; 17724 17725amigaos*) 17726 library_names_spec='$libname.ixlibrary $libname.a' 17727 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17728 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' 17729 ;; 17730 17731beos*) 17732 library_names_spec='${libname}${shared_ext}' 17733 dynamic_linker="$host_os ld.so" 17734 shlibpath_var=LIBRARY_PATH 17735 ;; 17736 17737bsdi[45]*) 17738 version_type=linux 17739 need_version=no 17740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17741 soname_spec='${libname}${release}${shared_ext}$major' 17742 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17743 shlibpath_var=LD_LIBRARY_PATH 17744 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17745 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17746 # the default ld.so.conf also contains /usr/contrib/lib and 17747 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17748 # libtool to hard-code these into programs 17749 ;; 17750 17751cygwin* | mingw* | pw32*) 17752 version_type=windows 17753 shrext_cmds=".dll" 17754 need_version=no 17755 need_lib_prefix=no 17756 17757 case $GCC,$host_os in 17758 yes,cygwin* | yes,mingw* | yes,pw32*) 17759 library_names_spec='$libname.dll.a' 17760 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17761 postinstall_cmds='base_file=`basename \${file}`~ 17762 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17763 dldir=$destdir/`dirname \$dlpath`~ 17764 test -d \$dldir || mkdir -p \$dldir~ 17765 $install_prog $dir/$dlname \$dldir/$dlname~ 17766 chmod a+x \$dldir/$dlname' 17767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17768 dlpath=$dir/\$dldll~ 17769 $rm \$dlpath' 17770 shlibpath_overrides_runpath=yes 17771 17772 case $host_os in 17773 cygwin*) 17774 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17775 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17776 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17777 ;; 17778 mingw*) 17779 # MinGW DLLs use traditional 'lib' prefix 17780 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17781 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17782 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17783 # It is most probably a Windows format PATH printed by 17784 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17785 # path with ; separators, and with drive letters. We can handle the 17786 # drive letters (cygwin fileutils understands them), so leave them, 17787 # especially as we might pass files found there to a mingw objdump, 17788 # which wouldn't understand a cygwinified path. Ahh. 17789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17790 else 17791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17792 fi 17793 ;; 17794 pw32*) 17795 # pw32 DLLs use 'pw' prefix rather than 'lib' 17796 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17797 ;; 17798 esac 17799 ;; 17800 17801 *) 17802 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17803 ;; 17804 esac 17805 dynamic_linker='Win32 ld.exe' 17806 # FIXME: first we should search . and the directory the executable is in 17807 shlibpath_var=PATH 17808 ;; 17809 17810darwin* | rhapsody*) 17811 dynamic_linker="$host_os dyld" 17812 version_type=darwin 17813 need_lib_prefix=no 17814 need_version=no 17815 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17816 soname_spec='${libname}${release}${major}$shared_ext' 17817 shlibpath_overrides_runpath=yes 17818 shlibpath_var=DYLD_LIBRARY_PATH 17819 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17820 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17821 if test "$GCC" = yes; then 17822 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"` 17823 else 17824 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17825 fi 17826 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17827 ;; 17828 17829dgux*) 17830 version_type=linux 17831 need_lib_prefix=no 17832 need_version=no 17833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17834 soname_spec='${libname}${release}${shared_ext}$major' 17835 shlibpath_var=LD_LIBRARY_PATH 17836 ;; 17837 17838freebsd1*) 17839 dynamic_linker=no 17840 ;; 17841 17842kfreebsd*-gnu) 17843 version_type=linux 17844 need_lib_prefix=no 17845 need_version=no 17846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17847 soname_spec='${libname}${release}${shared_ext}$major' 17848 shlibpath_var=LD_LIBRARY_PATH 17849 shlibpath_overrides_runpath=no 17850 hardcode_into_libs=yes 17851 dynamic_linker='GNU ld.so' 17852 ;; 17853 17854freebsd* | dragonfly*) 17855 # DragonFly does not have aout. When/if they implement a new 17856 # versioning mechanism, adjust this. 17857 if test -x /usr/bin/objformat; then 17858 objformat=`/usr/bin/objformat` 17859 else 17860 case $host_os in 17861 freebsd[123]*) objformat=aout ;; 17862 *) objformat=elf ;; 17863 esac 17864 fi 17865 version_type=freebsd-$objformat 17866 case $version_type in 17867 freebsd-elf*) 17868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17869 need_version=no 17870 need_lib_prefix=no 17871 ;; 17872 freebsd-*) 17873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17874 need_version=yes 17875 ;; 17876 esac 17877 shlibpath_var=LD_LIBRARY_PATH 17878 case $host_os in 17879 freebsd2*) 17880 shlibpath_overrides_runpath=yes 17881 ;; 17882 freebsd3.[01]* | freebsdelf3.[01]*) 17883 shlibpath_overrides_runpath=yes 17884 hardcode_into_libs=yes 17885 ;; 17886 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17887 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17888 shlibpath_overrides_runpath=no 17889 hardcode_into_libs=yes 17890 ;; 17891 freebsd*) # from 4.6 on 17892 shlibpath_overrides_runpath=yes 17893 hardcode_into_libs=yes 17894 ;; 17895 esac 17896 ;; 17897 17898gnu*) 17899 version_type=linux 17900 need_lib_prefix=no 17901 need_version=no 17902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17903 soname_spec='${libname}${release}${shared_ext}$major' 17904 shlibpath_var=LD_LIBRARY_PATH 17905 hardcode_into_libs=yes 17906 ;; 17907 17908hpux9* | hpux10* | hpux11*) 17909 # Give a soname corresponding to the major version so that dld.sl refuses to 17910 # link against other versions. 17911 version_type=sunos 17912 need_lib_prefix=no 17913 need_version=no 17914 case $host_cpu in 17915 ia64*) 17916 shrext_cmds='.so' 17917 hardcode_into_libs=yes 17918 dynamic_linker="$host_os dld.so" 17919 shlibpath_var=LD_LIBRARY_PATH 17920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17922 soname_spec='${libname}${release}${shared_ext}$major' 17923 if test "X$HPUX_IA64_MODE" = X32; then 17924 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17925 else 17926 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17927 fi 17928 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17929 ;; 17930 hppa*64*) 17931 shrext_cmds='.sl' 17932 hardcode_into_libs=yes 17933 dynamic_linker="$host_os dld.sl" 17934 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17937 soname_spec='${libname}${release}${shared_ext}$major' 17938 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17940 ;; 17941 *) 17942 shrext_cmds='.sl' 17943 dynamic_linker="$host_os dld.sl" 17944 shlibpath_var=SHLIB_PATH 17945 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17947 soname_spec='${libname}${release}${shared_ext}$major' 17948 ;; 17949 esac 17950 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17951 postinstall_cmds='chmod 555 $lib' 17952 ;; 17953 17954interix3*) 17955 version_type=linux 17956 need_lib_prefix=no 17957 need_version=no 17958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17959 soname_spec='${libname}${release}${shared_ext}$major' 17960 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17961 shlibpath_var=LD_LIBRARY_PATH 17962 shlibpath_overrides_runpath=no 17963 hardcode_into_libs=yes 17964 ;; 17965 17966irix5* | irix6* | nonstopux*) 17967 case $host_os in 17968 nonstopux*) version_type=nonstopux ;; 17969 *) 17970 if test "$lt_cv_prog_gnu_ld" = yes; then 17971 version_type=linux 17972 else 17973 version_type=irix 17974 fi ;; 17975 esac 17976 need_lib_prefix=no 17977 need_version=no 17978 soname_spec='${libname}${release}${shared_ext}$major' 17979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17980 case $host_os in 17981 irix5* | nonstopux*) 17982 libsuff= shlibsuff= 17983 ;; 17984 *) 17985 case $LD in # libtool.m4 will add one of these switches to LD 17986 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17987 libsuff= shlibsuff= libmagic=32-bit;; 17988 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17989 libsuff=32 shlibsuff=N32 libmagic=N32;; 17990 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17991 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17992 *) libsuff= shlibsuff= libmagic=never-match;; 17993 esac 17994 ;; 17995 esac 17996 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17997 shlibpath_overrides_runpath=no 17998 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17999 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18000 hardcode_into_libs=yes 18001 ;; 18002 18003# No shared lib support for Linux oldld, aout, or coff. 18004linux*oldld* | linux*aout* | linux*coff*) 18005 dynamic_linker=no 18006 ;; 18007 18008# This must be Linux ELF. 18009linux*) 18010 version_type=linux 18011 need_lib_prefix=no 18012 need_version=no 18013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18014 soname_spec='${libname}${release}${shared_ext}$major' 18015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18016 shlibpath_var=LD_LIBRARY_PATH 18017 shlibpath_overrides_runpath=no 18018 # This implies no fast_install, which is unacceptable. 18019 # Some rework will be needed to allow for fast_install 18020 # before this can be enabled. 18021 hardcode_into_libs=yes 18022 18023 # Append ld.so.conf contents to the search path 18024 if test -f /etc/ld.so.conf; then 18025 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' ' '` 18026 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18027 fi 18028 18029 # We used to test for /lib/ld.so.1 and disable shared libraries on 18030 # powerpc, because MkLinux only supported shared libraries with the 18031 # GNU dynamic linker. Since this was broken with cross compilers, 18032 # most powerpc-linux boxes support dynamic linking these days and 18033 # people can always --disable-shared, the test was removed, and we 18034 # assume the GNU/Linux dynamic linker is in use. 18035 dynamic_linker='GNU/Linux ld.so' 18036 ;; 18037 18038knetbsd*-gnu) 18039 version_type=linux 18040 need_lib_prefix=no 18041 need_version=no 18042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18043 soname_spec='${libname}${release}${shared_ext}$major' 18044 shlibpath_var=LD_LIBRARY_PATH 18045 shlibpath_overrides_runpath=no 18046 hardcode_into_libs=yes 18047 dynamic_linker='GNU ld.so' 18048 ;; 18049 18050netbsd*) 18051 version_type=sunos 18052 need_lib_prefix=no 18053 need_version=no 18054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18057 dynamic_linker='NetBSD (a.out) ld.so' 18058 else 18059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18060 soname_spec='${libname}${release}${shared_ext}$major' 18061 dynamic_linker='NetBSD ld.elf_so' 18062 fi 18063 shlibpath_var=LD_LIBRARY_PATH 18064 shlibpath_overrides_runpath=yes 18065 hardcode_into_libs=yes 18066 ;; 18067 18068newsos6) 18069 version_type=linux 18070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18071 shlibpath_var=LD_LIBRARY_PATH 18072 shlibpath_overrides_runpath=yes 18073 ;; 18074 18075nto-qnx*) 18076 version_type=linux 18077 need_lib_prefix=no 18078 need_version=no 18079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18080 soname_spec='${libname}${release}${shared_ext}$major' 18081 shlibpath_var=LD_LIBRARY_PATH 18082 shlibpath_overrides_runpath=yes 18083 ;; 18084 18085openbsd*) 18086 version_type=sunos 18087 sys_lib_dlsearch_path_spec="/usr/lib" 18088 need_lib_prefix=no 18089 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18090 case $host_os in 18091 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18092 *) need_version=no ;; 18093 esac 18094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18096 shlibpath_var=LD_LIBRARY_PATH 18097 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18098 case $host_os in 18099 openbsd2.[89] | openbsd2.[89].*) 18100 shlibpath_overrides_runpath=no 18101 ;; 18102 *) 18103 shlibpath_overrides_runpath=yes 18104 ;; 18105 esac 18106 else 18107 shlibpath_overrides_runpath=yes 18108 fi 18109 ;; 18110 18111os2*) 18112 libname_spec='$name' 18113 shrext_cmds=".dll" 18114 need_lib_prefix=no 18115 library_names_spec='$libname${shared_ext} $libname.a' 18116 dynamic_linker='OS/2 ld.exe' 18117 shlibpath_var=LIBPATH 18118 ;; 18119 18120osf3* | osf4* | osf5*) 18121 version_type=osf 18122 need_lib_prefix=no 18123 need_version=no 18124 soname_spec='${libname}${release}${shared_ext}$major' 18125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18126 shlibpath_var=LD_LIBRARY_PATH 18127 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18128 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18129 ;; 18130 18131solaris*) 18132 version_type=linux 18133 need_lib_prefix=no 18134 need_version=no 18135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18136 soname_spec='${libname}${release}${shared_ext}$major' 18137 shlibpath_var=LD_LIBRARY_PATH 18138 shlibpath_overrides_runpath=yes 18139 hardcode_into_libs=yes 18140 # ldd complains unless libraries are executable 18141 postinstall_cmds='chmod +x $lib' 18142 ;; 18143 18144sunos4*) 18145 version_type=sunos 18146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18147 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18148 shlibpath_var=LD_LIBRARY_PATH 18149 shlibpath_overrides_runpath=yes 18150 if test "$with_gnu_ld" = yes; then 18151 need_lib_prefix=no 18152 fi 18153 need_version=yes 18154 ;; 18155 18156sysv4 | sysv4.3*) 18157 version_type=linux 18158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18159 soname_spec='${libname}${release}${shared_ext}$major' 18160 shlibpath_var=LD_LIBRARY_PATH 18161 case $host_vendor in 18162 sni) 18163 shlibpath_overrides_runpath=no 18164 need_lib_prefix=no 18165 export_dynamic_flag_spec='${wl}-Blargedynsym' 18166 runpath_var=LD_RUN_PATH 18167 ;; 18168 siemens) 18169 need_lib_prefix=no 18170 ;; 18171 motorola) 18172 need_lib_prefix=no 18173 need_version=no 18174 shlibpath_overrides_runpath=no 18175 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18176 ;; 18177 esac 18178 ;; 18179 18180sysv4*MP*) 18181 if test -d /usr/nec ;then 18182 version_type=linux 18183 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18184 soname_spec='$libname${shared_ext}.$major' 18185 shlibpath_var=LD_LIBRARY_PATH 18186 fi 18187 ;; 18188 18189sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18190 version_type=freebsd-elf 18191 need_lib_prefix=no 18192 need_version=no 18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18194 soname_spec='${libname}${release}${shared_ext}$major' 18195 shlibpath_var=LD_LIBRARY_PATH 18196 hardcode_into_libs=yes 18197 if test "$with_gnu_ld" = yes; then 18198 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18199 shlibpath_overrides_runpath=no 18200 else 18201 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18202 shlibpath_overrides_runpath=yes 18203 case $host_os in 18204 sco3.2v5*) 18205 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18206 ;; 18207 esac 18208 fi 18209 sys_lib_dlsearch_path_spec='/usr/lib' 18210 ;; 18211 18212uts4*) 18213 version_type=linux 18214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18215 soname_spec='${libname}${release}${shared_ext}$major' 18216 shlibpath_var=LD_LIBRARY_PATH 18217 ;; 18218 18219*) 18220 dynamic_linker=no 18221 ;; 18222esac 18223{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18224echo "${ECHO_T}$dynamic_linker" >&6; } 18225test "$dynamic_linker" = no && can_build_shared=no 18226 18227variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18228if test "$GCC" = yes; then 18229 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18230fi 18231 18232{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18233echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18234hardcode_action_GCJ= 18235if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18236 test -n "$runpath_var_GCJ" || \ 18237 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18238 18239 # We can hardcode non-existant directories. 18240 if test "$hardcode_direct_GCJ" != no && 18241 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18242 # have to relink, otherwise we might link with an installed library 18243 # when we should be linking with a yet-to-be-installed one 18244 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18245 test "$hardcode_minus_L_GCJ" != no; then 18246 # Linking always hardcodes the temporary library directory. 18247 hardcode_action_GCJ=relink 18248 else 18249 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18250 hardcode_action_GCJ=immediate 18251 fi 18252else 18253 # We cannot hardcode anything, or else we can only hardcode existing 18254 # directories. 18255 hardcode_action_GCJ=unsupported 18256fi 18257{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18258echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18259 18260if test "$hardcode_action_GCJ" = relink; then 18261 # Fast installation is not supported 18262 enable_fast_install=no 18263elif test "$shlibpath_overrides_runpath" = yes || 18264 test "$enable_shared" = no; then 18265 # Fast installation is not necessary 18266 enable_fast_install=needless 18267fi 18268 18269 18270# The else clause should only fire when bootstrapping the 18271# libtool distribution, otherwise you forgot to ship ltmain.sh 18272# with your package, and you will get complaints that there are 18273# no rules to generate ltmain.sh. 18274if test -f "$ltmain"; then 18275 # See if we are running on zsh, and set the options which allow our commands through 18276 # without removal of \ escapes. 18277 if test -n "${ZSH_VERSION+set}" ; then 18278 setopt NO_GLOB_SUBST 18279 fi 18280 # Now quote all the things that may contain metacharacters while being 18281 # careful not to overquote the AC_SUBSTed values. We take copies of the 18282 # variables and quote the copies for generation of the libtool script. 18283 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18284 SED SHELL STRIP \ 18285 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18286 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18287 deplibs_check_method reload_flag reload_cmds need_locks \ 18288 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18289 lt_cv_sys_global_symbol_to_c_name_address \ 18290 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18291 old_postinstall_cmds old_postuninstall_cmds \ 18292 compiler_GCJ \ 18293 CC_GCJ \ 18294 LD_GCJ \ 18295 lt_prog_compiler_wl_GCJ \ 18296 lt_prog_compiler_pic_GCJ \ 18297 lt_prog_compiler_static_GCJ \ 18298 lt_prog_compiler_no_builtin_flag_GCJ \ 18299 export_dynamic_flag_spec_GCJ \ 18300 thread_safe_flag_spec_GCJ \ 18301 whole_archive_flag_spec_GCJ \ 18302 enable_shared_with_static_runtimes_GCJ \ 18303 old_archive_cmds_GCJ \ 18304 old_archive_from_new_cmds_GCJ \ 18305 predep_objects_GCJ \ 18306 postdep_objects_GCJ \ 18307 predeps_GCJ \ 18308 postdeps_GCJ \ 18309 compiler_lib_search_path_GCJ \ 18310 archive_cmds_GCJ \ 18311 archive_expsym_cmds_GCJ \ 18312 postinstall_cmds_GCJ \ 18313 postuninstall_cmds_GCJ \ 18314 old_archive_from_expsyms_cmds_GCJ \ 18315 allow_undefined_flag_GCJ \ 18316 no_undefined_flag_GCJ \ 18317 export_symbols_cmds_GCJ \ 18318 hardcode_libdir_flag_spec_GCJ \ 18319 hardcode_libdir_flag_spec_ld_GCJ \ 18320 hardcode_libdir_separator_GCJ \ 18321 hardcode_automatic_GCJ \ 18322 module_cmds_GCJ \ 18323 module_expsym_cmds_GCJ \ 18324 lt_cv_prog_compiler_c_o_GCJ \ 18325 exclude_expsyms_GCJ \ 18326 include_expsyms_GCJ; do 18327 18328 case $var in 18329 old_archive_cmds_GCJ | \ 18330 old_archive_from_new_cmds_GCJ | \ 18331 archive_cmds_GCJ | \ 18332 archive_expsym_cmds_GCJ | \ 18333 module_cmds_GCJ | \ 18334 module_expsym_cmds_GCJ | \ 18335 old_archive_from_expsyms_cmds_GCJ | \ 18336 export_symbols_cmds_GCJ | \ 18337 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18338 postinstall_cmds | postuninstall_cmds | \ 18339 old_postinstall_cmds | old_postuninstall_cmds | \ 18340 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18341 # Double-quote double-evaled strings. 18342 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18343 ;; 18344 *) 18345 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18346 ;; 18347 esac 18348 done 18349 18350 case $lt_echo in 18351 *'\$0 --fallback-echo"') 18352 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18353 ;; 18354 esac 18355 18356cfgfile="$ofile" 18357 18358 cat <<__EOF__ >> "$cfgfile" 18359# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18360 18361# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18362 18363# Shell to use when invoking shell scripts. 18364SHELL=$lt_SHELL 18365 18366# Whether or not to build shared libraries. 18367build_libtool_libs=$enable_shared 18368 18369# Whether or not to build static libraries. 18370build_old_libs=$enable_static 18371 18372# Whether or not to add -lc for building shared libraries. 18373build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18374 18375# Whether or not to disallow shared libs when runtime libs are static 18376allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18377 18378# Whether or not to optimize for fast installation. 18379fast_install=$enable_fast_install 18380 18381# The host system. 18382host_alias=$host_alias 18383host=$host 18384host_os=$host_os 18385 18386# The build system. 18387build_alias=$build_alias 18388build=$build 18389build_os=$build_os 18390 18391# An echo program that does not interpret backslashes. 18392echo=$lt_echo 18393 18394# The archiver. 18395AR=$lt_AR 18396AR_FLAGS=$lt_AR_FLAGS 18397 18398# A C compiler. 18399LTCC=$lt_LTCC 18400 18401# LTCC compiler flags. 18402LTCFLAGS=$lt_LTCFLAGS 18403 18404# A language-specific compiler. 18405CC=$lt_compiler_GCJ 18406 18407# Is the compiler the GNU C compiler? 18408with_gcc=$GCC_GCJ 18409 18410# An ERE matcher. 18411EGREP=$lt_EGREP 18412 18413# The linker used to build libraries. 18414LD=$lt_LD_GCJ 18415 18416# Whether we need hard or soft links. 18417LN_S=$lt_LN_S 18418 18419# A BSD-compatible nm program. 18420NM=$lt_NM 18421 18422# A symbol stripping program 18423STRIP=$lt_STRIP 18424 18425# Used to examine libraries when file_magic_cmd begins "file" 18426MAGIC_CMD=$MAGIC_CMD 18427 18428# Used on cygwin: DLL creation program. 18429DLLTOOL="$DLLTOOL" 18430 18431# Used on cygwin: object dumper. 18432OBJDUMP="$OBJDUMP" 18433 18434# Used on cygwin: assembler. 18435AS="$AS" 18436 18437# The name of the directory that contains temporary libtool files. 18438objdir=$objdir 18439 18440# How to create reloadable object files. 18441reload_flag=$lt_reload_flag 18442reload_cmds=$lt_reload_cmds 18443 18444# How to pass a linker flag through the compiler. 18445wl=$lt_lt_prog_compiler_wl_GCJ 18446 18447# Object file suffix (normally "o"). 18448objext="$ac_objext" 18449 18450# Old archive suffix (normally "a"). 18451libext="$libext" 18452 18453# Shared library suffix (normally ".so"). 18454shrext_cmds='$shrext_cmds' 18455 18456# Executable file suffix (normally ""). 18457exeext="$exeext" 18458 18459# Additional compiler flags for building library objects. 18460pic_flag=$lt_lt_prog_compiler_pic_GCJ 18461pic_mode=$pic_mode 18462 18463# What is the maximum length of a command? 18464max_cmd_len=$lt_cv_sys_max_cmd_len 18465 18466# Does compiler simultaneously support -c and -o options? 18467compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18468 18469# Must we lock files when doing compilation? 18470need_locks=$lt_need_locks 18471 18472# Do we need the lib prefix for modules? 18473need_lib_prefix=$need_lib_prefix 18474 18475# Do we need a version for libraries? 18476need_version=$need_version 18477 18478# Whether dlopen is supported. 18479dlopen_support=$enable_dlopen 18480 18481# Whether dlopen of programs is supported. 18482dlopen_self=$enable_dlopen_self 18483 18484# Whether dlopen of statically linked programs is supported. 18485dlopen_self_static=$enable_dlopen_self_static 18486 18487# Compiler flag to prevent dynamic linking. 18488link_static_flag=$lt_lt_prog_compiler_static_GCJ 18489 18490# Compiler flag to turn off builtin functions. 18491no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18492 18493# Compiler flag to allow reflexive dlopens. 18494export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18495 18496# Compiler flag to generate shared objects directly from archives. 18497whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18498 18499# Compiler flag to generate thread-safe objects. 18500thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18501 18502# Library versioning type. 18503version_type=$version_type 18504 18505# Format of library name prefix. 18506libname_spec=$lt_libname_spec 18507 18508# List of archive names. First name is the real one, the rest are links. 18509# The last name is the one that the linker finds with -lNAME. 18510library_names_spec=$lt_library_names_spec 18511 18512# The coded name of the library, if different from the real name. 18513soname_spec=$lt_soname_spec 18514 18515# Commands used to build and install an old-style archive. 18516RANLIB=$lt_RANLIB 18517old_archive_cmds=$lt_old_archive_cmds_GCJ 18518old_postinstall_cmds=$lt_old_postinstall_cmds 18519old_postuninstall_cmds=$lt_old_postuninstall_cmds 18520 18521# Create an old-style archive from a shared archive. 18522old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18523 18524# Create a temporary old-style archive to link instead of a shared archive. 18525old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18526 18527# Commands used to build and install a shared archive. 18528archive_cmds=$lt_archive_cmds_GCJ 18529archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18530postinstall_cmds=$lt_postinstall_cmds 18531postuninstall_cmds=$lt_postuninstall_cmds 18532 18533# Commands used to build a loadable module (assumed same as above if empty) 18534module_cmds=$lt_module_cmds_GCJ 18535module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18536 18537# Commands to strip libraries. 18538old_striplib=$lt_old_striplib 18539striplib=$lt_striplib 18540 18541# Dependencies to place before the objects being linked to create a 18542# shared library. 18543predep_objects=$lt_predep_objects_GCJ 18544 18545# Dependencies to place after the objects being linked to create a 18546# shared library. 18547postdep_objects=$lt_postdep_objects_GCJ 18548 18549# Dependencies to place before the objects being linked to create a 18550# shared library. 18551predeps=$lt_predeps_GCJ 18552 18553# Dependencies to place after the objects being linked to create a 18554# shared library. 18555postdeps=$lt_postdeps_GCJ 18556 18557# The library search path used internally by the compiler when linking 18558# a shared library. 18559compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18560 18561# Method to check whether dependent libraries are shared objects. 18562deplibs_check_method=$lt_deplibs_check_method 18563 18564# Command to use when deplibs_check_method == file_magic. 18565file_magic_cmd=$lt_file_magic_cmd 18566 18567# Flag that allows shared libraries with undefined symbols to be built. 18568allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18569 18570# Flag that forces no undefined symbols. 18571no_undefined_flag=$lt_no_undefined_flag_GCJ 18572 18573# Commands used to finish a libtool library installation in a directory. 18574finish_cmds=$lt_finish_cmds 18575 18576# Same as above, but a single script fragment to be evaled but not shown. 18577finish_eval=$lt_finish_eval 18578 18579# Take the output of nm and produce a listing of raw symbols and C names. 18580global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18581 18582# Transform the output of nm in a proper C declaration 18583global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18584 18585# Transform the output of nm in a C name address pair 18586global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18587 18588# This is the shared library runtime path variable. 18589runpath_var=$runpath_var 18590 18591# This is the shared library path variable. 18592shlibpath_var=$shlibpath_var 18593 18594# Is shlibpath searched before the hard-coded library search path? 18595shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18596 18597# How to hardcode a shared library path into an executable. 18598hardcode_action=$hardcode_action_GCJ 18599 18600# Whether we should hardcode library paths into libraries. 18601hardcode_into_libs=$hardcode_into_libs 18602 18603# Flag to hardcode \$libdir into a binary during linking. 18604# This must work even if \$libdir does not exist. 18605hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18606 18607# If ld is used when linking, flag to hardcode \$libdir into 18608# a binary during linking. This must work even if \$libdir does 18609# not exist. 18610hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18611 18612# Whether we need a single -rpath flag with a separated argument. 18613hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18614 18615# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18616# resulting binary. 18617hardcode_direct=$hardcode_direct_GCJ 18618 18619# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18620# resulting binary. 18621hardcode_minus_L=$hardcode_minus_L_GCJ 18622 18623# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18624# the resulting binary. 18625hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18626 18627# Set to yes if building a shared library automatically hardcodes DIR into the library 18628# and all subsequent libraries and executables linked against it. 18629hardcode_automatic=$hardcode_automatic_GCJ 18630 18631# Variables whose values should be saved in libtool wrapper scripts and 18632# restored at relink time. 18633variables_saved_for_relink="$variables_saved_for_relink" 18634 18635# Whether libtool must link a program against all its dependency libraries. 18636link_all_deplibs=$link_all_deplibs_GCJ 18637 18638# Compile-time system search path for libraries 18639sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18640 18641# Run-time system search path for libraries 18642sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18643 18644# Fix the shell variable \$srcfile for the compiler. 18645fix_srcfile_path="$fix_srcfile_path_GCJ" 18646 18647# Set to yes if exported symbols are required. 18648always_export_symbols=$always_export_symbols_GCJ 18649 18650# The commands to list exported symbols. 18651export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18652 18653# The commands to extract the exported symbol list from a shared archive. 18654extract_expsyms_cmds=$lt_extract_expsyms_cmds 18655 18656# Symbols that should not be listed in the preloaded symbols. 18657exclude_expsyms=$lt_exclude_expsyms_GCJ 18658 18659# Symbols that must always be exported. 18660include_expsyms=$lt_include_expsyms_GCJ 18661 18662# ### END LIBTOOL TAG CONFIG: $tagname 18663 18664__EOF__ 18665 18666 18667else 18668 # If there is no Makefile yet, we rely on a make rule to execute 18669 # `config.status --recheck' to rerun these tests and create the 18670 # libtool script then. 18671 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18672 if test -f "$ltmain_in"; then 18673 test -f Makefile && make "$ltmain" 18674 fi 18675fi 18676 18677 18678ac_ext=c 18679ac_cpp='$CPP $CPPFLAGS' 18680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18682ac_compiler_gnu=$ac_cv_c_compiler_gnu 18683 18684CC="$lt_save_CC" 18685 18686 else 18687 tagname="" 18688 fi 18689 ;; 18690 18691 RC) 18692 18693 18694# Source file extension for RC test sources. 18695ac_ext=rc 18696 18697# Object file extension for compiled RC test sources. 18698objext=o 18699objext_RC=$objext 18700 18701# Code to be used in simple compile tests 18702lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18703 18704# Code to be used in simple link tests 18705lt_simple_link_test_code="$lt_simple_compile_test_code" 18706 18707# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18708 18709# If no C compiler was specified, use CC. 18710LTCC=${LTCC-"$CC"} 18711 18712# If no C compiler flags were specified, use CFLAGS. 18713LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18714 18715# Allow CC to be a program name with arguments. 18716compiler=$CC 18717 18718 18719# save warnings/boilerplate of simple test code 18720ac_outfile=conftest.$ac_objext 18721printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18722eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18723_lt_compiler_boilerplate=`cat conftest.err` 18724$rm conftest* 18725 18726ac_outfile=conftest.$ac_objext 18727printf "$lt_simple_link_test_code" >conftest.$ac_ext 18728eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18729_lt_linker_boilerplate=`cat conftest.err` 18730$rm conftest* 18731 18732 18733# Allow CC to be a program name with arguments. 18734lt_save_CC="$CC" 18735CC=${RC-"windres"} 18736compiler=$CC 18737compiler_RC=$CC 18738for cc_temp in $compiler""; do 18739 case $cc_temp in 18740 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18741 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18742 \-*) ;; 18743 *) break;; 18744 esac 18745done 18746cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18747 18748lt_cv_prog_compiler_c_o_RC=yes 18749 18750# The else clause should only fire when bootstrapping the 18751# libtool distribution, otherwise you forgot to ship ltmain.sh 18752# with your package, and you will get complaints that there are 18753# no rules to generate ltmain.sh. 18754if test -f "$ltmain"; then 18755 # See if we are running on zsh, and set the options which allow our commands through 18756 # without removal of \ escapes. 18757 if test -n "${ZSH_VERSION+set}" ; then 18758 setopt NO_GLOB_SUBST 18759 fi 18760 # Now quote all the things that may contain metacharacters while being 18761 # careful not to overquote the AC_SUBSTed values. We take copies of the 18762 # variables and quote the copies for generation of the libtool script. 18763 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18764 SED SHELL STRIP \ 18765 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18766 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18767 deplibs_check_method reload_flag reload_cmds need_locks \ 18768 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18769 lt_cv_sys_global_symbol_to_c_name_address \ 18770 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18771 old_postinstall_cmds old_postuninstall_cmds \ 18772 compiler_RC \ 18773 CC_RC \ 18774 LD_RC \ 18775 lt_prog_compiler_wl_RC \ 18776 lt_prog_compiler_pic_RC \ 18777 lt_prog_compiler_static_RC \ 18778 lt_prog_compiler_no_builtin_flag_RC \ 18779 export_dynamic_flag_spec_RC \ 18780 thread_safe_flag_spec_RC \ 18781 whole_archive_flag_spec_RC \ 18782 enable_shared_with_static_runtimes_RC \ 18783 old_archive_cmds_RC \ 18784 old_archive_from_new_cmds_RC \ 18785 predep_objects_RC \ 18786 postdep_objects_RC \ 18787 predeps_RC \ 18788 postdeps_RC \ 18789 compiler_lib_search_path_RC \ 18790 archive_cmds_RC \ 18791 archive_expsym_cmds_RC \ 18792 postinstall_cmds_RC \ 18793 postuninstall_cmds_RC \ 18794 old_archive_from_expsyms_cmds_RC \ 18795 allow_undefined_flag_RC \ 18796 no_undefined_flag_RC \ 18797 export_symbols_cmds_RC \ 18798 hardcode_libdir_flag_spec_RC \ 18799 hardcode_libdir_flag_spec_ld_RC \ 18800 hardcode_libdir_separator_RC \ 18801 hardcode_automatic_RC \ 18802 module_cmds_RC \ 18803 module_expsym_cmds_RC \ 18804 lt_cv_prog_compiler_c_o_RC \ 18805 exclude_expsyms_RC \ 18806 include_expsyms_RC; do 18807 18808 case $var in 18809 old_archive_cmds_RC | \ 18810 old_archive_from_new_cmds_RC | \ 18811 archive_cmds_RC | \ 18812 archive_expsym_cmds_RC | \ 18813 module_cmds_RC | \ 18814 module_expsym_cmds_RC | \ 18815 old_archive_from_expsyms_cmds_RC | \ 18816 export_symbols_cmds_RC | \ 18817 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18818 postinstall_cmds | postuninstall_cmds | \ 18819 old_postinstall_cmds | old_postuninstall_cmds | \ 18820 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18821 # Double-quote double-evaled strings. 18822 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18823 ;; 18824 *) 18825 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18826 ;; 18827 esac 18828 done 18829 18830 case $lt_echo in 18831 *'\$0 --fallback-echo"') 18832 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18833 ;; 18834 esac 18835 18836cfgfile="$ofile" 18837 18838 cat <<__EOF__ >> "$cfgfile" 18839# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18840 18841# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18842 18843# Shell to use when invoking shell scripts. 18844SHELL=$lt_SHELL 18845 18846# Whether or not to build shared libraries. 18847build_libtool_libs=$enable_shared 18848 18849# Whether or not to build static libraries. 18850build_old_libs=$enable_static 18851 18852# Whether or not to add -lc for building shared libraries. 18853build_libtool_need_lc=$archive_cmds_need_lc_RC 18854 18855# Whether or not to disallow shared libs when runtime libs are static 18856allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18857 18858# Whether or not to optimize for fast installation. 18859fast_install=$enable_fast_install 18860 18861# The host system. 18862host_alias=$host_alias 18863host=$host 18864host_os=$host_os 18865 18866# The build system. 18867build_alias=$build_alias 18868build=$build 18869build_os=$build_os 18870 18871# An echo program that does not interpret backslashes. 18872echo=$lt_echo 18873 18874# The archiver. 18875AR=$lt_AR 18876AR_FLAGS=$lt_AR_FLAGS 18877 18878# A C compiler. 18879LTCC=$lt_LTCC 18880 18881# LTCC compiler flags. 18882LTCFLAGS=$lt_LTCFLAGS 18883 18884# A language-specific compiler. 18885CC=$lt_compiler_RC 18886 18887# Is the compiler the GNU C compiler? 18888with_gcc=$GCC_RC 18889 18890# An ERE matcher. 18891EGREP=$lt_EGREP 18892 18893# The linker used to build libraries. 18894LD=$lt_LD_RC 18895 18896# Whether we need hard or soft links. 18897LN_S=$lt_LN_S 18898 18899# A BSD-compatible nm program. 18900NM=$lt_NM 18901 18902# A symbol stripping program 18903STRIP=$lt_STRIP 18904 18905# Used to examine libraries when file_magic_cmd begins "file" 18906MAGIC_CMD=$MAGIC_CMD 18907 18908# Used on cygwin: DLL creation program. 18909DLLTOOL="$DLLTOOL" 18910 18911# Used on cygwin: object dumper. 18912OBJDUMP="$OBJDUMP" 18913 18914# Used on cygwin: assembler. 18915AS="$AS" 18916 18917# The name of the directory that contains temporary libtool files. 18918objdir=$objdir 18919 18920# How to create reloadable object files. 18921reload_flag=$lt_reload_flag 18922reload_cmds=$lt_reload_cmds 18923 18924# How to pass a linker flag through the compiler. 18925wl=$lt_lt_prog_compiler_wl_RC 18926 18927# Object file suffix (normally "o"). 18928objext="$ac_objext" 18929 18930# Old archive suffix (normally "a"). 18931libext="$libext" 18932 18933# Shared library suffix (normally ".so"). 18934shrext_cmds='$shrext_cmds' 18935 18936# Executable file suffix (normally ""). 18937exeext="$exeext" 18938 18939# Additional compiler flags for building library objects. 18940pic_flag=$lt_lt_prog_compiler_pic_RC 18941pic_mode=$pic_mode 18942 18943# What is the maximum length of a command? 18944max_cmd_len=$lt_cv_sys_max_cmd_len 18945 18946# Does compiler simultaneously support -c and -o options? 18947compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18948 18949# Must we lock files when doing compilation? 18950need_locks=$lt_need_locks 18951 18952# Do we need the lib prefix for modules? 18953need_lib_prefix=$need_lib_prefix 18954 18955# Do we need a version for libraries? 18956need_version=$need_version 18957 18958# Whether dlopen is supported. 18959dlopen_support=$enable_dlopen 18960 18961# Whether dlopen of programs is supported. 18962dlopen_self=$enable_dlopen_self 18963 18964# Whether dlopen of statically linked programs is supported. 18965dlopen_self_static=$enable_dlopen_self_static 18966 18967# Compiler flag to prevent dynamic linking. 18968link_static_flag=$lt_lt_prog_compiler_static_RC 18969 18970# Compiler flag to turn off builtin functions. 18971no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18972 18973# Compiler flag to allow reflexive dlopens. 18974export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18975 18976# Compiler flag to generate shared objects directly from archives. 18977whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18978 18979# Compiler flag to generate thread-safe objects. 18980thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18981 18982# Library versioning type. 18983version_type=$version_type 18984 18985# Format of library name prefix. 18986libname_spec=$lt_libname_spec 18987 18988# List of archive names. First name is the real one, the rest are links. 18989# The last name is the one that the linker finds with -lNAME. 18990library_names_spec=$lt_library_names_spec 18991 18992# The coded name of the library, if different from the real name. 18993soname_spec=$lt_soname_spec 18994 18995# Commands used to build and install an old-style archive. 18996RANLIB=$lt_RANLIB 18997old_archive_cmds=$lt_old_archive_cmds_RC 18998old_postinstall_cmds=$lt_old_postinstall_cmds 18999old_postuninstall_cmds=$lt_old_postuninstall_cmds 19000 19001# Create an old-style archive from a shared archive. 19002old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19003 19004# Create a temporary old-style archive to link instead of a shared archive. 19005old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19006 19007# Commands used to build and install a shared archive. 19008archive_cmds=$lt_archive_cmds_RC 19009archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19010postinstall_cmds=$lt_postinstall_cmds 19011postuninstall_cmds=$lt_postuninstall_cmds 19012 19013# Commands used to build a loadable module (assumed same as above if empty) 19014module_cmds=$lt_module_cmds_RC 19015module_expsym_cmds=$lt_module_expsym_cmds_RC 19016 19017# Commands to strip libraries. 19018old_striplib=$lt_old_striplib 19019striplib=$lt_striplib 19020 19021# Dependencies to place before the objects being linked to create a 19022# shared library. 19023predep_objects=$lt_predep_objects_RC 19024 19025# Dependencies to place after the objects being linked to create a 19026# shared library. 19027postdep_objects=$lt_postdep_objects_RC 19028 19029# Dependencies to place before the objects being linked to create a 19030# shared library. 19031predeps=$lt_predeps_RC 19032 19033# Dependencies to place after the objects being linked to create a 19034# shared library. 19035postdeps=$lt_postdeps_RC 19036 19037# The library search path used internally by the compiler when linking 19038# a shared library. 19039compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19040 19041# Method to check whether dependent libraries are shared objects. 19042deplibs_check_method=$lt_deplibs_check_method 19043 19044# Command to use when deplibs_check_method == file_magic. 19045file_magic_cmd=$lt_file_magic_cmd 19046 19047# Flag that allows shared libraries with undefined symbols to be built. 19048allow_undefined_flag=$lt_allow_undefined_flag_RC 19049 19050# Flag that forces no undefined symbols. 19051no_undefined_flag=$lt_no_undefined_flag_RC 19052 19053# Commands used to finish a libtool library installation in a directory. 19054finish_cmds=$lt_finish_cmds 19055 19056# Same as above, but a single script fragment to be evaled but not shown. 19057finish_eval=$lt_finish_eval 19058 19059# Take the output of nm and produce a listing of raw symbols and C names. 19060global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19061 19062# Transform the output of nm in a proper C declaration 19063global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19064 19065# Transform the output of nm in a C name address pair 19066global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19067 19068# This is the shared library runtime path variable. 19069runpath_var=$runpath_var 19070 19071# This is the shared library path variable. 19072shlibpath_var=$shlibpath_var 19073 19074# Is shlibpath searched before the hard-coded library search path? 19075shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19076 19077# How to hardcode a shared library path into an executable. 19078hardcode_action=$hardcode_action_RC 19079 19080# Whether we should hardcode library paths into libraries. 19081hardcode_into_libs=$hardcode_into_libs 19082 19083# Flag to hardcode \$libdir into a binary during linking. 19084# This must work even if \$libdir does not exist. 19085hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19086 19087# If ld is used when linking, flag to hardcode \$libdir into 19088# a binary during linking. This must work even if \$libdir does 19089# not exist. 19090hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19091 19092# Whether we need a single -rpath flag with a separated argument. 19093hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19094 19095# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19096# resulting binary. 19097hardcode_direct=$hardcode_direct_RC 19098 19099# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19100# resulting binary. 19101hardcode_minus_L=$hardcode_minus_L_RC 19102 19103# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19104# the resulting binary. 19105hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19106 19107# Set to yes if building a shared library automatically hardcodes DIR into the library 19108# and all subsequent libraries and executables linked against it. 19109hardcode_automatic=$hardcode_automatic_RC 19110 19111# Variables whose values should be saved in libtool wrapper scripts and 19112# restored at relink time. 19113variables_saved_for_relink="$variables_saved_for_relink" 19114 19115# Whether libtool must link a program against all its dependency libraries. 19116link_all_deplibs=$link_all_deplibs_RC 19117 19118# Compile-time system search path for libraries 19119sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19120 19121# Run-time system search path for libraries 19122sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19123 19124# Fix the shell variable \$srcfile for the compiler. 19125fix_srcfile_path="$fix_srcfile_path_RC" 19126 19127# Set to yes if exported symbols are required. 19128always_export_symbols=$always_export_symbols_RC 19129 19130# The commands to list exported symbols. 19131export_symbols_cmds=$lt_export_symbols_cmds_RC 19132 19133# The commands to extract the exported symbol list from a shared archive. 19134extract_expsyms_cmds=$lt_extract_expsyms_cmds 19135 19136# Symbols that should not be listed in the preloaded symbols. 19137exclude_expsyms=$lt_exclude_expsyms_RC 19138 19139# Symbols that must always be exported. 19140include_expsyms=$lt_include_expsyms_RC 19141 19142# ### END LIBTOOL TAG CONFIG: $tagname 19143 19144__EOF__ 19145 19146 19147else 19148 # If there is no Makefile yet, we rely on a make rule to execute 19149 # `config.status --recheck' to rerun these tests and create the 19150 # libtool script then. 19151 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19152 if test -f "$ltmain_in"; then 19153 test -f Makefile && make "$ltmain" 19154 fi 19155fi 19156 19157 19158ac_ext=c 19159ac_cpp='$CPP $CPPFLAGS' 19160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19162ac_compiler_gnu=$ac_cv_c_compiler_gnu 19163 19164CC="$lt_save_CC" 19165 19166 ;; 19167 19168 *) 19169 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19170echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19171 { (exit 1); exit 1; }; } 19172 ;; 19173 esac 19174 19175 # Append the new tag name to the list of available tags. 19176 if test -n "$tagname" ; then 19177 available_tags="$available_tags $tagname" 19178 fi 19179 fi 19180 done 19181 IFS="$lt_save_ifs" 19182 19183 # Now substitute the updated list of available tags. 19184 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19185 mv "${ofile}T" "$ofile" 19186 chmod +x "$ofile" 19187 else 19188 rm -f "${ofile}T" 19189 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19190echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19191 { (exit 1); exit 1; }; } 19192 fi 19193fi 19194 19195 19196 19197# This can be used to rebuild libtool when needed 19198LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19199 19200# Always use our own libtool. 19201LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19202 19203# Prevent multiple expansion 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225# Check for X 19226 19227 19228if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19229 if test -n "$ac_tool_prefix"; then 19230 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19231set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19232{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19234if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19235 echo $ECHO_N "(cached) $ECHO_C" >&6 19236else 19237 case $PKG_CONFIG in 19238 [\\/]* | ?:[\\/]*) 19239 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19240 ;; 19241 *) 19242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19243for as_dir in $PATH 19244do 19245 IFS=$as_save_IFS 19246 test -z "$as_dir" && as_dir=. 19247 for ac_exec_ext in '' $ac_executable_extensions; do 19248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19249 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19251 break 2 19252 fi 19253done 19254done 19255IFS=$as_save_IFS 19256 19257 ;; 19258esac 19259fi 19260PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19261if test -n "$PKG_CONFIG"; then 19262 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19263echo "${ECHO_T}$PKG_CONFIG" >&6; } 19264else 19265 { echo "$as_me:$LINENO: result: no" >&5 19266echo "${ECHO_T}no" >&6; } 19267fi 19268 19269 19270fi 19271if test -z "$ac_cv_path_PKG_CONFIG"; then 19272 ac_pt_PKG_CONFIG=$PKG_CONFIG 19273 # Extract the first word of "pkg-config", so it can be a program name with args. 19274set dummy pkg-config; ac_word=$2 19275{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19277if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19278 echo $ECHO_N "(cached) $ECHO_C" >&6 19279else 19280 case $ac_pt_PKG_CONFIG in 19281 [\\/]* | ?:[\\/]*) 19282 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19283 ;; 19284 *) 19285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19286for as_dir in $PATH 19287do 19288 IFS=$as_save_IFS 19289 test -z "$as_dir" && as_dir=. 19290 for ac_exec_ext in '' $ac_executable_extensions; do 19291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19292 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19294 break 2 19295 fi 19296done 19297done 19298IFS=$as_save_IFS 19299 19300 ;; 19301esac 19302fi 19303ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19304if test -n "$ac_pt_PKG_CONFIG"; then 19305 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19306echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 19307else 19308 { echo "$as_me:$LINENO: result: no" >&5 19309echo "${ECHO_T}no" >&6; } 19310fi 19311 19312 if test "x$ac_pt_PKG_CONFIG" = x; then 19313 PKG_CONFIG="" 19314 else 19315 case $cross_compiling:$ac_tool_warned in 19316yes:) 19317{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19318whose name does not start with the host triplet. If you think this 19319configuration is useful to you, please write to autoconf@gnu.org." >&5 19320echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19321whose name does not start with the host triplet. If you think this 19322configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19323ac_tool_warned=yes ;; 19324esac 19325 PKG_CONFIG=$ac_pt_PKG_CONFIG 19326 fi 19327else 19328 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19329fi 19330 19331fi 19332if test -n "$PKG_CONFIG"; then 19333 _pkg_min_version=0.9.0 19334 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19335echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 19336 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19337 { echo "$as_me:$LINENO: result: yes" >&5 19338echo "${ECHO_T}yes" >&6; } 19339 else 19340 { echo "$as_me:$LINENO: result: no" >&5 19341echo "${ECHO_T}no" >&6; } 19342 PKG_CONFIG="" 19343 fi 19344 19345fi 19346 19347pkg_failed=no 19348{ echo "$as_me:$LINENO: checking for X" >&5 19349echo $ECHO_N "checking for X... $ECHO_C" >&6; } 19350 19351if test -n "$PKG_CONFIG"; then 19352 if test -n "$X_CFLAGS"; then 19353 pkg_cv_X_CFLAGS="$X_CFLAGS" 19354 else 19355 if test -n "$PKG_CONFIG" && \ 19356 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5 19357 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 19358 ac_status=$? 19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19360 (exit $ac_status); }; then 19361 pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 19362else 19363 pkg_failed=yes 19364fi 19365 fi 19366else 19367 pkg_failed=untried 19368fi 19369if test -n "$PKG_CONFIG"; then 19370 if test -n "$X_LIBS"; then 19371 pkg_cv_X_LIBS="$X_LIBS" 19372 else 19373 if test -n "$PKG_CONFIG" && \ 19374 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5 19375 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 19376 ac_status=$? 19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19378 (exit $ac_status); }; then 19379 pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 19380else 19381 pkg_failed=yes 19382fi 19383 fi 19384else 19385 pkg_failed=untried 19386fi 19387 19388 19389 19390if test $pkg_failed = yes; then 19391 19392if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19393 _pkg_short_errors_supported=yes 19394else 19395 _pkg_short_errors_supported=no 19396fi 19397 if test $_pkg_short_errors_supported = yes; then 19398 X_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11"` 19399 else 19400 X_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"` 19401 fi 19402 # Put the nasty error message in config.log where it belongs 19403 echo "$X_PKG_ERRORS" >&5 19404 19405 { { echo "$as_me:$LINENO: error: Package requirements (x11) were not met: 19406 19407$X_PKG_ERRORS 19408 19409Consider adjusting the PKG_CONFIG_PATH environment variable if you 19410installed software in a non-standard prefix. 19411 19412Alternatively, you may set the environment variables X_CFLAGS 19413and X_LIBS to avoid the need to call pkg-config. 19414See the pkg-config man page for more details. 19415" >&5 19416echo "$as_me: error: Package requirements (x11) were not met: 19417 19418$X_PKG_ERRORS 19419 19420Consider adjusting the PKG_CONFIG_PATH environment variable if you 19421installed software in a non-standard prefix. 19422 19423Alternatively, you may set the environment variables X_CFLAGS 19424and X_LIBS to avoid the need to call pkg-config. 19425See the pkg-config man page for more details. 19426" >&2;} 19427 { (exit 1); exit 1; }; } 19428elif test $pkg_failed = untried; then 19429 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 19430is in your PATH or set the PKG_CONFIG environment variable to the full 19431path to pkg-config. 19432 19433Alternatively, you may set the environment variables X_CFLAGS 19434and X_LIBS to avoid the need to call pkg-config. 19435See the pkg-config man page for more details. 19436 19437To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19438See \`config.log' for more details." >&5 19439echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 19440is in your PATH or set the PKG_CONFIG environment variable to the full 19441path to pkg-config. 19442 19443Alternatively, you may set the environment variables X_CFLAGS 19444and X_LIBS to avoid the need to call pkg-config. 19445See the pkg-config man page for more details. 19446 19447To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19448See \`config.log' for more details." >&2;} 19449 { (exit 1); exit 1; }; } 19450else 19451 X_CFLAGS=$pkg_cv_X_CFLAGS 19452 X_LIBS=$pkg_cv_X_LIBS 19453 { echo "$as_me:$LINENO: result: yes" >&5 19454echo "${ECHO_T}yes" >&6; } 19455 : 19456fi 19457 19458 19459 19460# Check randr configuration, strip extra digits from package version to 19461# find the required protocol version 19462 19463RANDR_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` 19464 19465 19466pkg_failed=no 19467{ echo "$as_me:$LINENO: checking for RANDR" >&5 19468echo $ECHO_N "checking for RANDR... $ECHO_C" >&6; } 19469 19470if test -n "$PKG_CONFIG"; then 19471 if test -n "$RANDR_CFLAGS"; then 19472 pkg_cv_RANDR_CFLAGS="$RANDR_CFLAGS" 19473 else 19474 if test -n "$PKG_CONFIG" && \ 19475 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\"") >&5 19476 ($PKG_CONFIG --exists --print-errors "randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5 19477 ac_status=$? 19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19479 (exit $ac_status); }; then 19480 pkg_cv_RANDR_CFLAGS=`$PKG_CONFIG --cflags "randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null` 19481else 19482 pkg_failed=yes 19483fi 19484 fi 19485else 19486 pkg_failed=untried 19487fi 19488if test -n "$PKG_CONFIG"; then 19489 if test -n "$RANDR_LIBS"; then 19490 pkg_cv_RANDR_LIBS="$RANDR_LIBS" 19491 else 19492 if test -n "$PKG_CONFIG" && \ 19493 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\"") >&5 19494 ($PKG_CONFIG --exists --print-errors "randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5 19495 ac_status=$? 19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19497 (exit $ac_status); }; then 19498 pkg_cv_RANDR_LIBS=`$PKG_CONFIG --libs "randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null` 19499else 19500 pkg_failed=yes 19501fi 19502 fi 19503else 19504 pkg_failed=untried 19505fi 19506 19507 19508 19509if test $pkg_failed = yes; then 19510 19511if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19512 _pkg_short_errors_supported=yes 19513else 19514 _pkg_short_errors_supported=no 19515fi 19516 if test $_pkg_short_errors_supported = yes; then 19517 RANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "randrproto >= $RANDR_VERSION xext xextproto xrender renderproto"` 19518 else 19519 RANDR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "randrproto >= $RANDR_VERSION xext xextproto xrender renderproto"` 19520 fi 19521 # Put the nasty error message in config.log where it belongs 19522 echo "$RANDR_PKG_ERRORS" >&5 19523 19524 { { echo "$as_me:$LINENO: error: Package requirements (randrproto >= $RANDR_VERSION xext xextproto xrender renderproto) were not met: 19525 19526$RANDR_PKG_ERRORS 19527 19528Consider adjusting the PKG_CONFIG_PATH environment variable if you 19529installed software in a non-standard prefix. 19530 19531Alternatively, you may set the environment variables RANDR_CFLAGS 19532and RANDR_LIBS to avoid the need to call pkg-config. 19533See the pkg-config man page for more details. 19534" >&5 19535echo "$as_me: error: Package requirements (randrproto >= $RANDR_VERSION xext xextproto xrender renderproto) were not met: 19536 19537$RANDR_PKG_ERRORS 19538 19539Consider adjusting the PKG_CONFIG_PATH environment variable if you 19540installed software in a non-standard prefix. 19541 19542Alternatively, you may set the environment variables RANDR_CFLAGS 19543and RANDR_LIBS to avoid the need to call pkg-config. 19544See the pkg-config man page for more details. 19545" >&2;} 19546 { (exit 1); exit 1; }; } 19547elif test $pkg_failed = untried; then 19548 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 19549is in your PATH or set the PKG_CONFIG environment variable to the full 19550path to pkg-config. 19551 19552Alternatively, you may set the environment variables RANDR_CFLAGS 19553and RANDR_LIBS to avoid the need to call pkg-config. 19554See the pkg-config man page for more details. 19555 19556To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19557See \`config.log' for more details." >&5 19558echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 19559is in your PATH or set the PKG_CONFIG environment variable to the full 19560path to pkg-config. 19561 19562Alternatively, you may set the environment variables RANDR_CFLAGS 19563and RANDR_LIBS to avoid the need to call pkg-config. 19564See the pkg-config man page for more details. 19565 19566To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19567See \`config.log' for more details." >&2;} 19568 { (exit 1); exit 1; }; } 19569else 19570 RANDR_CFLAGS=$pkg_cv_RANDR_CFLAGS 19571 RANDR_LIBS=$pkg_cv_RANDR_LIBS 19572 { echo "$as_me:$LINENO: result: yes" >&5 19573echo "${ECHO_T}yes" >&6; } 19574 : 19575fi 19576 19577 19578 19579 19580# Check whether --enable-malloc0returnsnull was given. 19581if test "${enable_malloc0returnsnull+set}" = set; then 19582 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 19583else 19584 MALLOC_ZERO_RETURNS_NULL=auto 19585fi 19586 19587 19588{ echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5 19589echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6; } 19590if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 19591 if test "$cross_compiling" = yes; then 19592 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 19593See \`config.log' for more details." >&5 19594echo "$as_me: error: cannot run test program while cross compiling 19595See \`config.log' for more details." >&2;} 19596 { (exit 1); exit 1; }; } 19597else 19598 cat >conftest.$ac_ext <<_ACEOF 19599 19600char *malloc(); 19601char *realloc(); 19602char *calloc(); 19603main() { 19604 char *m0, *r0, *c0, *p; 19605 m0 = malloc(0); 19606 p = malloc(10); 19607 r0 = realloc(p,0); 19608 c0 = calloc(0); 19609 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 19610} 19611_ACEOF 19612rm -f conftest$ac_exeext 19613if { (ac_try="$ac_link" 19614case "(($ac_try" in 19615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19616 *) ac_try_echo=$ac_try;; 19617esac 19618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19619 (eval "$ac_link") 2>&5 19620 ac_status=$? 19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19623 { (case "(($ac_try" in 19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19625 *) ac_try_echo=$ac_try;; 19626esac 19627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19628 (eval "$ac_try") 2>&5 19629 ac_status=$? 19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19631 (exit $ac_status); }; }; then 19632 MALLOC_ZERO_RETURNS_NULL=yes 19633else 19634 echo "$as_me: program exited with status $ac_status" >&5 19635echo "$as_me: failed program was:" >&5 19636sed 's/^/| /' conftest.$ac_ext >&5 19637 19638( exit $ac_status ) 19639MALLOC_ZERO_RETURNS_NULL=no 19640fi 19641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19642fi 19643 19644 19645fi 19646{ echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5 19647echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6; } 19648 19649if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 19650 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 19651 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 19652 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 19653else 19654 MALLOC_ZERO_CFLAGS="" 19655 XMALLOC_ZERO_CFLAGS="" 19656 XTMALLOC_ZERO_CFLAGS="" 19657fi 19658 19659 19660 19661 19662 19663 19664 19665 19666if test x$APP_MAN_SUFFIX = x ; then 19667 APP_MAN_SUFFIX=1 19668fi 19669if test x$APP_MAN_DIR = x ; then 19670 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19671fi 19672 19673if test x$LIB_MAN_SUFFIX = x ; then 19674 LIB_MAN_SUFFIX=3 19675fi 19676if test x$LIB_MAN_DIR = x ; then 19677 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19678fi 19679 19680if test x$FILE_MAN_SUFFIX = x ; then 19681 case $host_os in 19682 solaris*) FILE_MAN_SUFFIX=4 ;; 19683 *) FILE_MAN_SUFFIX=5 ;; 19684 esac 19685fi 19686if test x$FILE_MAN_DIR = x ; then 19687 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19688fi 19689 19690if test x$MISC_MAN_SUFFIX = x ; then 19691 case $host_os in 19692 solaris*) MISC_MAN_SUFFIX=5 ;; 19693 *) MISC_MAN_SUFFIX=7 ;; 19694 esac 19695fi 19696if test x$MISC_MAN_DIR = x ; then 19697 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19698fi 19699 19700if test x$DRIVER_MAN_SUFFIX = x ; then 19701 case $host_os in 19702 solaris*) DRIVER_MAN_SUFFIX=7 ;; 19703 *) DRIVER_MAN_SUFFIX=4 ;; 19704 esac 19705fi 19706if test x$DRIVER_MAN_DIR = x ; then 19707 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19708fi 19709 19710if test x$ADMIN_MAN_SUFFIX = x ; then 19711 case $host_os in 19712 solaris*) ADMIN_MAN_SUFFIX=1m ;; 19713 *) ADMIN_MAN_SUFFIX=8 ;; 19714 esac 19715fi 19716if test x$ADMIN_MAN_DIR = x ; then 19717 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19718fi 19719 19720 19721 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736# Check whether --with-release-version was given. 19737if test "${with_release_version+set}" = set; then 19738 withval=$with_release_version; RELEASE_VERSION="$withval" 19739else 19740 RELEASE_VERSION="" 19741fi 19742 19743 if test "x$RELEASE_VERSION" != "x"; then 19744 PACKAGE="$PACKAGE-$RELEASE_VERSION" 19745 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 19746 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 19747echo "$as_me: Building with package name set to $PACKAGE" >&6;} 19748 fi 19749 19750cat >>confdefs.h <<_ACEOF 19751#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19752_ACEOF 19753 19754 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2` 19755 if test "x$PVM" = "x"; then 19756 PVM="0" 19757 fi 19758 19759cat >>confdefs.h <<_ACEOF 19760#define PACKAGE_VERSION_MINOR $PVM 19761_ACEOF 19762 19763 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3` 19764 if test "x$PVP" = "x"; then 19765 PVP="0" 19766 fi 19767 19768cat >>confdefs.h <<_ACEOF 19769#define PACKAGE_VERSION_PATCHLEVEL $PVP 19770_ACEOF 19771 19772 19773 19774ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xrandr.pc" 19775 19776cat >confcache <<\_ACEOF 19777# This file is a shell script that caches the results of configure 19778# tests run on this system so they can be shared between configure 19779# scripts and configure runs, see configure's option --config-cache. 19780# It is not useful on other systems. If it contains results you don't 19781# want to keep, you may remove or edit it. 19782# 19783# config.status only pays attention to the cache file if you give it 19784# the --recheck option to rerun configure. 19785# 19786# `ac_cv_env_foo' variables (set or unset) will be overridden when 19787# loading this file, other *unset* `ac_cv_foo' will be assigned the 19788# following values. 19789 19790_ACEOF 19791 19792# The following way of writing the cache mishandles newlines in values, 19793# but we know of no workaround that is simple, portable, and efficient. 19794# So, we kill variables containing newlines. 19795# Ultrix sh set writes to stderr and can't be redirected directly, 19796# and sets the high bit in the cache file unless we assign to the vars. 19797( 19798 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19799 eval ac_val=\$$ac_var 19800 case $ac_val in #( 19801 *${as_nl}*) 19802 case $ac_var in #( 19803 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 19804echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 19805 esac 19806 case $ac_var in #( 19807 _ | IFS | as_nl) ;; #( 19808 *) $as_unset $ac_var ;; 19809 esac ;; 19810 esac 19811 done 19812 19813 (set) 2>&1 | 19814 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19815 *${as_nl}ac_space=\ *) 19816 # `set' does not quote correctly, so add quotes (double-quote 19817 # substitution turns \\\\ into \\, and sed turns \\ into \). 19818 sed -n \ 19819 "s/'/'\\\\''/g; 19820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19821 ;; #( 19822 *) 19823 # `set' quotes correctly as required by POSIX, so do not add quotes. 19824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19825 ;; 19826 esac | 19827 sort 19828) | 19829 sed ' 19830 /^ac_cv_env_/b end 19831 t clear 19832 :clear 19833 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19834 t end 19835 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19836 :end' >>confcache 19837if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19838 if test -w "$cache_file"; then 19839 test "x$cache_file" != "x/dev/null" && 19840 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 19841echo "$as_me: updating cache $cache_file" >&6;} 19842 cat confcache >$cache_file 19843 else 19844 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 19845echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19846 fi 19847fi 19848rm -f confcache 19849 19850test "x$prefix" = xNONE && prefix=$ac_default_prefix 19851# Let make expand exec_prefix. 19852test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19853 19854DEFS=-DHAVE_CONFIG_H 19855 19856ac_libobjs= 19857ac_ltlibobjs= 19858for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19859 # 1. Remove the extension, and $U if already installed. 19860 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19861 ac_i=`echo "$ac_i" | sed "$ac_script"` 19862 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19863 # will be set to the directory where LIBOBJS objects are built. 19864 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19865 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 19866done 19867LIBOBJS=$ac_libobjs 19868 19869LTLIBOBJS=$ac_ltlibobjs 19870 19871 19872if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19873 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 19874Usually this means the macro was only invoked conditionally." >&5 19875echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 19876Usually this means the macro was only invoked conditionally." >&2;} 19877 { (exit 1); exit 1; }; } 19878fi 19879if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19880 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 19881Usually this means the macro was only invoked conditionally." >&5 19882echo "$as_me: error: conditional \"AMDEP\" was never defined. 19883Usually this means the macro was only invoked conditionally." >&2;} 19884 { (exit 1); exit 1; }; } 19885fi 19886if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19887 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 19888Usually this means the macro was only invoked conditionally." >&5 19889echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 19890Usually this means the macro was only invoked conditionally." >&2;} 19891 { (exit 1); exit 1; }; } 19892fi 19893if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19894 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 19895Usually this means the macro was only invoked conditionally." >&5 19896echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 19897Usually this means the macro was only invoked conditionally." >&2;} 19898 { (exit 1); exit 1; }; } 19899fi 19900 19901: ${CONFIG_STATUS=./config.status} 19902ac_clean_files_save=$ac_clean_files 19903ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19904{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19905echo "$as_me: creating $CONFIG_STATUS" >&6;} 19906cat >$CONFIG_STATUS <<_ACEOF 19907#! $SHELL 19908# Generated by $as_me. 19909# Run this file to recreate the current configuration. 19910# Compiler output produced by configure, useful for debugging 19911# configure, is in config.log if it exists. 19912 19913debug=false 19914ac_cs_recheck=false 19915ac_cs_silent=false 19916SHELL=\${CONFIG_SHELL-$SHELL} 19917_ACEOF 19918 19919cat >>$CONFIG_STATUS <<\_ACEOF 19920## --------------------- ## 19921## M4sh Initialization. ## 19922## --------------------- ## 19923 19924# Be more Bourne compatible 19925DUALCASE=1; export DUALCASE # for MKS sh 19926if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19927 emulate sh 19928 NULLCMD=: 19929 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19930 # is contrary to our usage. Disable this feature. 19931 alias -g '${1+"$@"}'='"$@"' 19932 setopt NO_GLOB_SUBST 19933else 19934 case `(set -o) 2>/dev/null` in 19935 *posix*) set -o posix ;; 19936esac 19937 19938fi 19939 19940 19941 19942 19943# PATH needs CR 19944# Avoid depending upon Character Ranges. 19945as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19946as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19947as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19948as_cr_digits='0123456789' 19949as_cr_alnum=$as_cr_Letters$as_cr_digits 19950 19951# The user is always right. 19952if test "${PATH_SEPARATOR+set}" != set; then 19953 echo "#! /bin/sh" >conf$$.sh 19954 echo "exit 0" >>conf$$.sh 19955 chmod +x conf$$.sh 19956 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19957 PATH_SEPARATOR=';' 19958 else 19959 PATH_SEPARATOR=: 19960 fi 19961 rm -f conf$$.sh 19962fi 19963 19964# Support unset when possible. 19965if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19966 as_unset=unset 19967else 19968 as_unset=false 19969fi 19970 19971 19972# IFS 19973# We need space, tab and new line, in precisely that order. Quoting is 19974# there to prevent editors from complaining about space-tab. 19975# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19976# splitting by setting IFS to empty value.) 19977as_nl=' 19978' 19979IFS=" "" $as_nl" 19980 19981# Find who we are. Look in the path if we contain no directory separator. 19982case $0 in 19983 *[\\/]* ) as_myself=$0 ;; 19984 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19985for as_dir in $PATH 19986do 19987 IFS=$as_save_IFS 19988 test -z "$as_dir" && as_dir=. 19989 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19990done 19991IFS=$as_save_IFS 19992 19993 ;; 19994esac 19995# We did not find ourselves, most probably we were run as `sh COMMAND' 19996# in which case we are not to be found in the path. 19997if test "x$as_myself" = x; then 19998 as_myself=$0 19999fi 20000if test ! -f "$as_myself"; then 20001 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20002 { (exit 1); exit 1; } 20003fi 20004 20005# Work around bugs in pre-3.0 UWIN ksh. 20006for as_var in ENV MAIL MAILPATH 20007do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20008done 20009PS1='$ ' 20010PS2='> ' 20011PS4='+ ' 20012 20013# NLS nuisances. 20014for as_var in \ 20015 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20016 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20017 LC_TELEPHONE LC_TIME 20018do 20019 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20020 eval $as_var=C; export $as_var 20021 else 20022 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20023 fi 20024done 20025 20026# Required to use basename. 20027if expr a : '\(a\)' >/dev/null 2>&1 && 20028 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20029 as_expr=expr 20030else 20031 as_expr=false 20032fi 20033 20034if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20035 as_basename=basename 20036else 20037 as_basename=false 20038fi 20039 20040 20041# Name of the executable. 20042as_me=`$as_basename -- "$0" || 20043$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20044 X"$0" : 'X\(//\)$' \| \ 20045 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20046echo X/"$0" | 20047 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20048 s//\1/ 20049 q 20050 } 20051 /^X\/\(\/\/\)$/{ 20052 s//\1/ 20053 q 20054 } 20055 /^X\/\(\/\).*/{ 20056 s//\1/ 20057 q 20058 } 20059 s/.*/./; q'` 20060 20061# CDPATH. 20062$as_unset CDPATH 20063 20064 20065 20066 as_lineno_1=$LINENO 20067 as_lineno_2=$LINENO 20068 test "x$as_lineno_1" != "x$as_lineno_2" && 20069 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 20070 20071 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20072 # uniformly replaced by the line number. The first 'sed' inserts a 20073 # line-number line after each line using $LINENO; the second 'sed' 20074 # does the real work. The second script uses 'N' to pair each 20075 # line-number line with the line containing $LINENO, and appends 20076 # trailing '-' during substitution so that $LINENO is not a special 20077 # case at line end. 20078 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20079 # scripts with optimization help from Paolo Bonzini. Blame Lee 20080 # E. McMahon (1931-1989) for sed's syntax. :-) 20081 sed -n ' 20082 p 20083 /[$]LINENO/= 20084 ' <$as_myself | 20085 sed ' 20086 s/[$]LINENO.*/&-/ 20087 t lineno 20088 b 20089 :lineno 20090 N 20091 :loop 20092 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 20093 t loop 20094 s/-\n.*// 20095 ' >$as_me.lineno && 20096 chmod +x "$as_me.lineno" || 20097 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 20098 { (exit 1); exit 1; }; } 20099 20100 # Don't try to exec as it changes $[0], causing all sort of problems 20101 # (the dirname of $[0] is not the place where we might find the 20102 # original and so on. Autoconf is especially sensitive to this). 20103 . "./$as_me.lineno" 20104 # Exit status is that of the last command. 20105 exit 20106} 20107 20108 20109if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20110 as_dirname=dirname 20111else 20112 as_dirname=false 20113fi 20114 20115ECHO_C= ECHO_N= ECHO_T= 20116case `echo -n x` in 20117-n*) 20118 case `echo 'x\c'` in 20119 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20120 *) ECHO_C='\c';; 20121 esac;; 20122*) 20123 ECHO_N='-n';; 20124esac 20125 20126if expr a : '\(a\)' >/dev/null 2>&1 && 20127 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20128 as_expr=expr 20129else 20130 as_expr=false 20131fi 20132 20133rm -f conf$$ conf$$.exe conf$$.file 20134if test -d conf$$.dir; then 20135 rm -f conf$$.dir/conf$$.file 20136else 20137 rm -f conf$$.dir 20138 mkdir conf$$.dir 20139fi 20140echo >conf$$.file 20141if ln -s conf$$.file conf$$ 2>/dev/null; then 20142 as_ln_s='ln -s' 20143 # ... but there are two gotchas: 20144 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20145 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20146 # In both cases, we have to default to `cp -p'. 20147 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20148 as_ln_s='cp -p' 20149elif ln conf$$.file conf$$ 2>/dev/null; then 20150 as_ln_s=ln 20151else 20152 as_ln_s='cp -p' 20153fi 20154rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20155rmdir conf$$.dir 2>/dev/null 20156 20157if mkdir -p . 2>/dev/null; then 20158 as_mkdir_p=: 20159else 20160 test -d ./-p && rmdir ./-p 20161 as_mkdir_p=false 20162fi 20163 20164if test -x / >/dev/null 2>&1; then 20165 as_test_x='test -x' 20166else 20167 if ls -dL / >/dev/null 2>&1; then 20168 as_ls_L_option=L 20169 else 20170 as_ls_L_option= 20171 fi 20172 as_test_x=' 20173 eval sh -c '\'' 20174 if test -d "$1"; then 20175 test -d "$1/."; 20176 else 20177 case $1 in 20178 -*)set "./$1";; 20179 esac; 20180 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 20181 ???[sx]*):;;*)false;;esac;fi 20182 '\'' sh 20183 ' 20184fi 20185as_executable_p=$as_test_x 20186 20187# Sed expression to map a string onto a valid CPP name. 20188as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20189 20190# Sed expression to map a string onto a valid variable name. 20191as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20192 20193 20194exec 6>&1 20195 20196# Save the log message, to keep $[0] and so on meaningful, and to 20197# report actual input values of CONFIG_FILES etc. instead of their 20198# values after options handling. 20199ac_log=" 20200This file was extended by libXrandr $as_me 1.2.2, which was 20201generated by GNU Autoconf 2.61. Invocation command line was 20202 20203 CONFIG_FILES = $CONFIG_FILES 20204 CONFIG_HEADERS = $CONFIG_HEADERS 20205 CONFIG_LINKS = $CONFIG_LINKS 20206 CONFIG_COMMANDS = $CONFIG_COMMANDS 20207 $ $0 $@ 20208 20209on `(hostname || uname -n) 2>/dev/null | sed 1q` 20210" 20211 20212_ACEOF 20213 20214cat >>$CONFIG_STATUS <<_ACEOF 20215# Files that config.status was made for. 20216config_files="$ac_config_files" 20217config_headers="$ac_config_headers" 20218config_commands="$ac_config_commands" 20219 20220_ACEOF 20221 20222cat >>$CONFIG_STATUS <<\_ACEOF 20223ac_cs_usage="\ 20224\`$as_me' instantiates files from templates according to the 20225current configuration. 20226 20227Usage: $0 [OPTIONS] [FILE]... 20228 20229 -h, --help print this help, then exit 20230 -V, --version print version number and configuration settings, then exit 20231 -q, --quiet do not print progress messages 20232 -d, --debug don't remove temporary files 20233 --recheck update $as_me by reconfiguring in the same conditions 20234 --file=FILE[:TEMPLATE] 20235 instantiate the configuration file FILE 20236 --header=FILE[:TEMPLATE] 20237 instantiate the configuration header FILE 20238 20239Configuration files: 20240$config_files 20241 20242Configuration headers: 20243$config_headers 20244 20245Configuration commands: 20246$config_commands 20247 20248Report bugs to <bug-autoconf@gnu.org>." 20249 20250_ACEOF 20251cat >>$CONFIG_STATUS <<_ACEOF 20252ac_cs_version="\\ 20253libXrandr config.status 1.2.2 20254configured by $0, generated by GNU Autoconf 2.61, 20255 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 20256 20257Copyright (C) 2006 Free Software Foundation, Inc. 20258This config.status script is free software; the Free Software Foundation 20259gives unlimited permission to copy, distribute and modify it." 20260 20261ac_pwd='$ac_pwd' 20262srcdir='$srcdir' 20263INSTALL='$INSTALL' 20264MKDIR_P='$MKDIR_P' 20265_ACEOF 20266 20267cat >>$CONFIG_STATUS <<\_ACEOF 20268# If no file are specified by the user, then we need to provide default 20269# value. By we need to know if files were specified by the user. 20270ac_need_defaults=: 20271while test $# != 0 20272do 20273 case $1 in 20274 --*=*) 20275 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20276 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20277 ac_shift=: 20278 ;; 20279 *) 20280 ac_option=$1 20281 ac_optarg=$2 20282 ac_shift=shift 20283 ;; 20284 esac 20285 20286 case $ac_option in 20287 # Handling of the options. 20288 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20289 ac_cs_recheck=: ;; 20290 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20291 echo "$ac_cs_version"; exit ;; 20292 --debug | --debu | --deb | --de | --d | -d ) 20293 debug=: ;; 20294 --file | --fil | --fi | --f ) 20295 $ac_shift 20296 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20297 ac_need_defaults=false;; 20298 --header | --heade | --head | --hea ) 20299 $ac_shift 20300 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20301 ac_need_defaults=false;; 20302 --he | --h) 20303 # Conflict between --help and --header 20304 { echo "$as_me: error: ambiguous option: $1 20305Try \`$0 --help' for more information." >&2 20306 { (exit 1); exit 1; }; };; 20307 --help | --hel | -h ) 20308 echo "$ac_cs_usage"; exit ;; 20309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20310 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20311 ac_cs_silent=: ;; 20312 20313 # This is an error. 20314 -*) { echo "$as_me: error: unrecognized option: $1 20315Try \`$0 --help' for more information." >&2 20316 { (exit 1); exit 1; }; } ;; 20317 20318 *) ac_config_targets="$ac_config_targets $1" 20319 ac_need_defaults=false ;; 20320 20321 esac 20322 shift 20323done 20324 20325ac_configure_extra_args= 20326 20327if $ac_cs_silent; then 20328 exec 6>/dev/null 20329 ac_configure_extra_args="$ac_configure_extra_args --silent" 20330fi 20331 20332_ACEOF 20333cat >>$CONFIG_STATUS <<_ACEOF 20334if \$ac_cs_recheck; then 20335 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20336 CONFIG_SHELL=$SHELL 20337 export CONFIG_SHELL 20338 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20339fi 20340 20341_ACEOF 20342cat >>$CONFIG_STATUS <<\_ACEOF 20343exec 5>>config.log 20344{ 20345 echo 20346 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20347## Running $as_me. ## 20348_ASBOX 20349 echo "$ac_log" 20350} >&5 20351 20352_ACEOF 20353cat >>$CONFIG_STATUS <<_ACEOF 20354# 20355# INIT-COMMANDS 20356# 20357AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20358 20359_ACEOF 20360 20361cat >>$CONFIG_STATUS <<\_ACEOF 20362 20363# Handling of arguments. 20364for ac_config_target in $ac_config_targets 20365do 20366 case $ac_config_target in 20367 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20368 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20369 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20370 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20371 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20372 "xrandr.pc") CONFIG_FILES="$CONFIG_FILES xrandr.pc" ;; 20373 20374 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20375echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20376 { (exit 1); exit 1; }; };; 20377 esac 20378done 20379 20380 20381# If the user did not use the arguments to specify the items to instantiate, 20382# then the envvar interface is used. Set only those that are not. 20383# We use the long form for the default assignment because of an extremely 20384# bizarre bug on SunOS 4.1.3. 20385if $ac_need_defaults; then 20386 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20387 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20388 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20389fi 20390 20391# Have a temporary directory for convenience. Make it in the build tree 20392# simply because there is no reason against having it here, and in addition, 20393# creating and moving files from /tmp can sometimes cause problems. 20394# Hook for its removal unless debugging. 20395# Note that there is a small window in which the directory will not be cleaned: 20396# after its creation but before its name has been assigned to `$tmp'. 20397$debug || 20398{ 20399 tmp= 20400 trap 'exit_status=$? 20401 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 20402' 0 20403 trap '{ (exit 1); exit 1; }' 1 2 13 15 20404} 20405# Create a (secure) tmp directory for tmp files. 20406 20407{ 20408 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20409 test -n "$tmp" && test -d "$tmp" 20410} || 20411{ 20412 tmp=./conf$$-$RANDOM 20413 (umask 077 && mkdir "$tmp") 20414} || 20415{ 20416 echo "$me: cannot create a temporary directory in ." >&2 20417 { (exit 1); exit 1; } 20418} 20419 20420# 20421# Set up the sed scripts for CONFIG_FILES section. 20422# 20423 20424# No need to generate the scripts if there are no CONFIG_FILES. 20425# This happens for instance when ./config.status config.h 20426if test -n "$CONFIG_FILES"; then 20427 20428_ACEOF 20429 20430 20431 20432ac_delim='%!_!# ' 20433for ac_last_try in false false false false false :; do 20434 cat >conf$$subs.sed <<_ACEOF 20435SHELL!$SHELL$ac_delim 20436PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 20437PACKAGE_NAME!$PACKAGE_NAME$ac_delim 20438PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 20439PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 20440PACKAGE_STRING!$PACKAGE_STRING$ac_delim 20441PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 20442exec_prefix!$exec_prefix$ac_delim 20443prefix!$prefix$ac_delim 20444program_transform_name!$program_transform_name$ac_delim 20445bindir!$bindir$ac_delim 20446sbindir!$sbindir$ac_delim 20447libexecdir!$libexecdir$ac_delim 20448datarootdir!$datarootdir$ac_delim 20449datadir!$datadir$ac_delim 20450sysconfdir!$sysconfdir$ac_delim 20451sharedstatedir!$sharedstatedir$ac_delim 20452localstatedir!$localstatedir$ac_delim 20453includedir!$includedir$ac_delim 20454oldincludedir!$oldincludedir$ac_delim 20455docdir!$docdir$ac_delim 20456infodir!$infodir$ac_delim 20457htmldir!$htmldir$ac_delim 20458dvidir!$dvidir$ac_delim 20459pdfdir!$pdfdir$ac_delim 20460psdir!$psdir$ac_delim 20461libdir!$libdir$ac_delim 20462localedir!$localedir$ac_delim 20463mandir!$mandir$ac_delim 20464DEFS!$DEFS$ac_delim 20465ECHO_C!$ECHO_C$ac_delim 20466ECHO_N!$ECHO_N$ac_delim 20467ECHO_T!$ECHO_T$ac_delim 20468LIBS!$LIBS$ac_delim 20469build_alias!$build_alias$ac_delim 20470host_alias!$host_alias$ac_delim 20471target_alias!$target_alias$ac_delim 20472INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 20473INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 20474INSTALL_DATA!$INSTALL_DATA$ac_delim 20475am__isrc!$am__isrc$ac_delim 20476CYGPATH_W!$CYGPATH_W$ac_delim 20477PACKAGE!$PACKAGE$ac_delim 20478VERSION!$VERSION$ac_delim 20479ACLOCAL!$ACLOCAL$ac_delim 20480AUTOCONF!$AUTOCONF$ac_delim 20481AUTOMAKE!$AUTOMAKE$ac_delim 20482AUTOHEADER!$AUTOHEADER$ac_delim 20483MAKEINFO!$MAKEINFO$ac_delim 20484install_sh!$install_sh$ac_delim 20485STRIP!$STRIP$ac_delim 20486INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 20487mkdir_p!$mkdir_p$ac_delim 20488AWK!$AWK$ac_delim 20489SET_MAKE!$SET_MAKE$ac_delim 20490am__leading_dot!$am__leading_dot$ac_delim 20491AMTAR!$AMTAR$ac_delim 20492am__tar!$am__tar$ac_delim 20493am__untar!$am__untar$ac_delim 20494MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 20495MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 20496MAINT!$MAINT$ac_delim 20497CC!$CC$ac_delim 20498CFLAGS!$CFLAGS$ac_delim 20499LDFLAGS!$LDFLAGS$ac_delim 20500CPPFLAGS!$CPPFLAGS$ac_delim 20501ac_ct_CC!$ac_ct_CC$ac_delim 20502EXEEXT!$EXEEXT$ac_delim 20503OBJEXT!$OBJEXT$ac_delim 20504DEPDIR!$DEPDIR$ac_delim 20505am__include!$am__include$ac_delim 20506am__quote!$am__quote$ac_delim 20507AMDEP_TRUE!$AMDEP_TRUE$ac_delim 20508AMDEP_FALSE!$AMDEP_FALSE$ac_delim 20509AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 20510CCDEPMODE!$CCDEPMODE$ac_delim 20511am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 20512am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 20513build!$build$ac_delim 20514build_cpu!$build_cpu$ac_delim 20515build_vendor!$build_vendor$ac_delim 20516build_os!$build_os$ac_delim 20517host!$host$ac_delim 20518host_cpu!$host_cpu$ac_delim 20519host_vendor!$host_vendor$ac_delim 20520host_os!$host_os$ac_delim 20521GREP!$GREP$ac_delim 20522EGREP!$EGREP$ac_delim 20523LN_S!$LN_S$ac_delim 20524ECHO!$ECHO$ac_delim 20525AR!$AR$ac_delim 20526RANLIB!$RANLIB$ac_delim 20527CPP!$CPP$ac_delim 20528CXX!$CXX$ac_delim 20529CXXFLAGS!$CXXFLAGS$ac_delim 20530ac_ct_CXX!$ac_ct_CXX$ac_delim 20531CXXDEPMODE!$CXXDEPMODE$ac_delim 20532_ACEOF 20533 20534 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 20535 break 20536 elif $ac_last_try; then 20537 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20538echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20539 { (exit 1); exit 1; }; } 20540 else 20541 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20542 fi 20543done 20544 20545ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20546if test -n "$ac_eof"; then 20547 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20548 ac_eof=`expr $ac_eof + 1` 20549fi 20550 20551cat >>$CONFIG_STATUS <<_ACEOF 20552cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 20553/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20554_ACEOF 20555sed ' 20556s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20557s/^/s,@/; s/!/@,|#_!!_#|/ 20558:n 20559t n 20560s/'"$ac_delim"'$/,g/; t 20561s/$/\\/; p 20562N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20563' >>$CONFIG_STATUS <conf$$subs.sed 20564rm -f conf$$subs.sed 20565cat >>$CONFIG_STATUS <<_ACEOF 20566CEOF$ac_eof 20567_ACEOF 20568 20569 20570ac_delim='%!_!# ' 20571for ac_last_try in false false false false false :; do 20572 cat >conf$$subs.sed <<_ACEOF 20573am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 20574am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 20575CXXCPP!$CXXCPP$ac_delim 20576F77!$F77$ac_delim 20577FFLAGS!$FFLAGS$ac_delim 20578ac_ct_F77!$ac_ct_F77$ac_delim 20579LIBTOOL!$LIBTOOL$ac_delim 20580PKG_CONFIG!$PKG_CONFIG$ac_delim 20581X_CFLAGS!$X_CFLAGS$ac_delim 20582X_LIBS!$X_LIBS$ac_delim 20583RANDR_VERSION!$RANDR_VERSION$ac_delim 20584RANDR_CFLAGS!$RANDR_CFLAGS$ac_delim 20585RANDR_LIBS!$RANDR_LIBS$ac_delim 20586MALLOC_ZERO_CFLAGS!$MALLOC_ZERO_CFLAGS$ac_delim 20587XMALLOC_ZERO_CFLAGS!$XMALLOC_ZERO_CFLAGS$ac_delim 20588XTMALLOC_ZERO_CFLAGS!$XTMALLOC_ZERO_CFLAGS$ac_delim 20589APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim 20590LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim 20591FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim 20592MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim 20593DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim 20594ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim 20595APP_MAN_DIR!$APP_MAN_DIR$ac_delim 20596LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim 20597FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim 20598MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim 20599DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim 20600ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim 20601LIBOBJS!$LIBOBJS$ac_delim 20602LTLIBOBJS!$LTLIBOBJS$ac_delim 20603_ACEOF 20604 20605 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then 20606 break 20607 elif $ac_last_try; then 20608 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20609echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20610 { (exit 1); exit 1; }; } 20611 else 20612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20613 fi 20614done 20615 20616ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20617if test -n "$ac_eof"; then 20618 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20619 ac_eof=`expr $ac_eof + 1` 20620fi 20621 20622cat >>$CONFIG_STATUS <<_ACEOF 20623cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 20624/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 20625_ACEOF 20626sed ' 20627s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20628s/^/s,@/; s/!/@,|#_!!_#|/ 20629:n 20630t n 20631s/'"$ac_delim"'$/,g/; t 20632s/$/\\/; p 20633N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20634' >>$CONFIG_STATUS <conf$$subs.sed 20635rm -f conf$$subs.sed 20636cat >>$CONFIG_STATUS <<_ACEOF 20637:end 20638s/|#_!!_#|//g 20639CEOF$ac_eof 20640_ACEOF 20641 20642 20643# VPATH may cause trouble with some makes, so we remove $(srcdir), 20644# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20645# trailing colons and then remove the whole line if VPATH becomes empty 20646# (actually we leave an empty line to preserve line numbers). 20647if test "x$srcdir" = x.; then 20648 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20649s/:*\$(srcdir):*/:/ 20650s/:*\${srcdir}:*/:/ 20651s/:*@srcdir@:*/:/ 20652s/^\([^=]*=[ ]*\):*/\1/ 20653s/:*$// 20654s/^[^=]*=[ ]*$// 20655}' 20656fi 20657 20658cat >>$CONFIG_STATUS <<\_ACEOF 20659fi # test -n "$CONFIG_FILES" 20660 20661 20662for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 20663do 20664 case $ac_tag in 20665 :[FHLC]) ac_mode=$ac_tag; continue;; 20666 esac 20667 case $ac_mode$ac_tag in 20668 :[FHL]*:*);; 20669 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 20670echo "$as_me: error: Invalid tag $ac_tag." >&2;} 20671 { (exit 1); exit 1; }; };; 20672 :[FH]-) ac_tag=-:-;; 20673 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20674 esac 20675 ac_save_IFS=$IFS 20676 IFS=: 20677 set x $ac_tag 20678 IFS=$ac_save_IFS 20679 shift 20680 ac_file=$1 20681 shift 20682 20683 case $ac_mode in 20684 :L) ac_source=$1;; 20685 :[FH]) 20686 ac_file_inputs= 20687 for ac_f 20688 do 20689 case $ac_f in 20690 -) ac_f="$tmp/stdin";; 20691 *) # Look for the file first in the build tree, then in the source tree 20692 # (if the path is not absolute). The absolute path cannot be DOS-style, 20693 # because $ac_f cannot contain `:'. 20694 test -f "$ac_f" || 20695 case $ac_f in 20696 [\\/$]*) false;; 20697 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20698 esac || 20699 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 20700echo "$as_me: error: cannot find input file: $ac_f" >&2;} 20701 { (exit 1); exit 1; }; };; 20702 esac 20703 ac_file_inputs="$ac_file_inputs $ac_f" 20704 done 20705 20706 # Let's still pretend it is `configure' which instantiates (i.e., don't 20707 # use $as_me), people would be surprised to read: 20708 # /* config.h. Generated by config.status. */ 20709 configure_input="Generated from "`IFS=: 20710 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 20711 if test x"$ac_file" != x-; then 20712 configure_input="$ac_file. $configure_input" 20713 { echo "$as_me:$LINENO: creating $ac_file" >&5 20714echo "$as_me: creating $ac_file" >&6;} 20715 fi 20716 20717 case $ac_tag in 20718 *:-:* | *:-) cat >"$tmp/stdin";; 20719 esac 20720 ;; 20721 esac 20722 20723 ac_dir=`$as_dirname -- "$ac_file" || 20724$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20725 X"$ac_file" : 'X\(//\)[^/]' \| \ 20726 X"$ac_file" : 'X\(//\)$' \| \ 20727 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20728echo X"$ac_file" | 20729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20730 s//\1/ 20731 q 20732 } 20733 /^X\(\/\/\)[^/].*/{ 20734 s//\1/ 20735 q 20736 } 20737 /^X\(\/\/\)$/{ 20738 s//\1/ 20739 q 20740 } 20741 /^X\(\/\).*/{ 20742 s//\1/ 20743 q 20744 } 20745 s/.*/./; q'` 20746 { as_dir="$ac_dir" 20747 case $as_dir in #( 20748 -*) as_dir=./$as_dir;; 20749 esac 20750 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20751 as_dirs= 20752 while :; do 20753 case $as_dir in #( 20754 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 20755 *) as_qdir=$as_dir;; 20756 esac 20757 as_dirs="'$as_qdir' $as_dirs" 20758 as_dir=`$as_dirname -- "$as_dir" || 20759$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20760 X"$as_dir" : 'X\(//\)[^/]' \| \ 20761 X"$as_dir" : 'X\(//\)$' \| \ 20762 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20763echo X"$as_dir" | 20764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20765 s//\1/ 20766 q 20767 } 20768 /^X\(\/\/\)[^/].*/{ 20769 s//\1/ 20770 q 20771 } 20772 /^X\(\/\/\)$/{ 20773 s//\1/ 20774 q 20775 } 20776 /^X\(\/\).*/{ 20777 s//\1/ 20778 q 20779 } 20780 s/.*/./; q'` 20781 test -d "$as_dir" && break 20782 done 20783 test -z "$as_dirs" || eval "mkdir $as_dirs" 20784 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 20785echo "$as_me: error: cannot create directory $as_dir" >&2;} 20786 { (exit 1); exit 1; }; }; } 20787 ac_builddir=. 20788 20789case "$ac_dir" in 20790.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20791*) 20792 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20793 # A ".." for each directory in $ac_dir_suffix. 20794 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 20795 case $ac_top_builddir_sub in 20796 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20797 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20798 esac ;; 20799esac 20800ac_abs_top_builddir=$ac_pwd 20801ac_abs_builddir=$ac_pwd$ac_dir_suffix 20802# for backward compatibility: 20803ac_top_builddir=$ac_top_build_prefix 20804 20805case $srcdir in 20806 .) # We are building in place. 20807 ac_srcdir=. 20808 ac_top_srcdir=$ac_top_builddir_sub 20809 ac_abs_top_srcdir=$ac_pwd ;; 20810 [\\/]* | ?:[\\/]* ) # Absolute name. 20811 ac_srcdir=$srcdir$ac_dir_suffix; 20812 ac_top_srcdir=$srcdir 20813 ac_abs_top_srcdir=$srcdir ;; 20814 *) # Relative name. 20815 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20816 ac_top_srcdir=$ac_top_build_prefix$srcdir 20817 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20818esac 20819ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20820 20821 20822 case $ac_mode in 20823 :F) 20824 # 20825 # CONFIG_FILE 20826 # 20827 20828 case $INSTALL in 20829 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20830 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20831 esac 20832 ac_MKDIR_P=$MKDIR_P 20833 case $MKDIR_P in 20834 [\\/$]* | ?:[\\/]* ) ;; 20835 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20836 esac 20837_ACEOF 20838 20839cat >>$CONFIG_STATUS <<\_ACEOF 20840# If the template does not know about datarootdir, expand it. 20841# FIXME: This hack should be removed a few years after 2.60. 20842ac_datarootdir_hack=; ac_datarootdir_seen= 20843 20844case `sed -n '/datarootdir/ { 20845 p 20846 q 20847} 20848/@datadir@/p 20849/@docdir@/p 20850/@infodir@/p 20851/@localedir@/p 20852/@mandir@/p 20853' $ac_file_inputs` in 20854*datarootdir*) ac_datarootdir_seen=yes;; 20855*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20856 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20857echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20858_ACEOF 20859cat >>$CONFIG_STATUS <<_ACEOF 20860 ac_datarootdir_hack=' 20861 s&@datadir@&$datadir&g 20862 s&@docdir@&$docdir&g 20863 s&@infodir@&$infodir&g 20864 s&@localedir@&$localedir&g 20865 s&@mandir@&$mandir&g 20866 s&\\\${datarootdir}&$datarootdir&g' ;; 20867esac 20868_ACEOF 20869 20870# Neutralize VPATH when `$srcdir' = `.'. 20871# Shell code in configure.ac might set extrasub. 20872# FIXME: do we really want to maintain this feature? 20873cat >>$CONFIG_STATUS <<_ACEOF 20874 sed "$ac_vpsub 20875$extrasub 20876_ACEOF 20877cat >>$CONFIG_STATUS <<\_ACEOF 20878:t 20879/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20880s&@configure_input@&$configure_input&;t t 20881s&@top_builddir@&$ac_top_builddir_sub&;t t 20882s&@srcdir@&$ac_srcdir&;t t 20883s&@abs_srcdir@&$ac_abs_srcdir&;t t 20884s&@top_srcdir@&$ac_top_srcdir&;t t 20885s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20886s&@builddir@&$ac_builddir&;t t 20887s&@abs_builddir@&$ac_abs_builddir&;t t 20888s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20889s&@INSTALL@&$ac_INSTALL&;t t 20890s&@MKDIR_P@&$ac_MKDIR_P&;t t 20891$ac_datarootdir_hack 20892" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 20893 20894test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20895 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 20896 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 20897 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20898which seems to be undefined. Please make sure it is defined." >&5 20899echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20900which seems to be undefined. Please make sure it is defined." >&2;} 20901 20902 rm -f "$tmp/stdin" 20903 case $ac_file in 20904 -) cat "$tmp/out"; rm -f "$tmp/out";; 20905 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 20906 esac 20907 ;; 20908 :H) 20909 # 20910 # CONFIG_HEADER 20911 # 20912_ACEOF 20913 20914# Transform confdefs.h into a sed script `conftest.defines', that 20915# substitutes the proper values into config.h.in to produce config.h. 20916rm -f conftest.defines conftest.tail 20917# First, append a space to every undef/define line, to ease matching. 20918echo 's/$/ /' >conftest.defines 20919# Then, protect against being on the right side of a sed subst, or in 20920# an unquoted here document, in config.status. If some macros were 20921# called several times there might be several #defines for the same 20922# symbol, which is useless. But do not sort them, since the last 20923# AC_DEFINE must be honored. 20924ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20925# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 20926# NAME is the cpp macro being defined, VALUE is the value it is being given. 20927# PARAMS is the parameter list in the macro definition--in most cases, it's 20928# just an empty string. 20929ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 20930ac_dB='\\)[ (].*,\\1define\\2' 20931ac_dC=' ' 20932ac_dD=' ,' 20933 20934uniq confdefs.h | 20935 sed -n ' 20936 t rset 20937 :rset 20938 s/^[ ]*#[ ]*define[ ][ ]*// 20939 t ok 20940 d 20941 :ok 20942 s/[\\&,]/\\&/g 20943 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 20944 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 20945 ' >>conftest.defines 20946 20947# Remove the space that was appended to ease matching. 20948# Then replace #undef with comments. This is necessary, for 20949# example, in the case of _POSIX_SOURCE, which is predefined and required 20950# on some systems where configure will not decide to define it. 20951# (The regexp can be short, since the line contains either #define or #undef.) 20952echo 's/ $// 20953s,^[ #]*u.*,/* & */,' >>conftest.defines 20954 20955# Break up conftest.defines: 20956ac_max_sed_lines=50 20957 20958# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 20959# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 20960# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 20961# et cetera. 20962ac_in='$ac_file_inputs' 20963ac_out='"$tmp/out1"' 20964ac_nxt='"$tmp/out2"' 20965 20966while : 20967do 20968 # Write a here document: 20969 cat >>$CONFIG_STATUS <<_ACEOF 20970 # First, check the format of the line: 20971 cat >"\$tmp/defines.sed" <<\\CEOF 20972/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 20973/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 20974b 20975:def 20976_ACEOF 20977 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 20978 echo 'CEOF 20979 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 20980 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 20981 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 20982 grep . conftest.tail >/dev/null || break 20983 rm -f conftest.defines 20984 mv conftest.tail conftest.defines 20985done 20986rm -f conftest.defines conftest.tail 20987 20988echo "ac_result=$ac_in" >>$CONFIG_STATUS 20989cat >>$CONFIG_STATUS <<\_ACEOF 20990 if test x"$ac_file" != x-; then 20991 echo "/* $configure_input */" >"$tmp/config.h" 20992 cat "$ac_result" >>"$tmp/config.h" 20993 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 20994 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 20995echo "$as_me: $ac_file is unchanged" >&6;} 20996 else 20997 rm -f $ac_file 20998 mv "$tmp/config.h" $ac_file 20999 fi 21000 else 21001 echo "/* $configure_input */" 21002 cat "$ac_result" 21003 fi 21004 rm -f "$tmp/out12" 21005# Compute $ac_file's index in $config_headers. 21006_am_stamp_count=1 21007for _am_header in $config_headers :; do 21008 case $_am_header in 21009 $ac_file | $ac_file:* ) 21010 break ;; 21011 * ) 21012 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21013 esac 21014done 21015echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 21016$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21017 X$ac_file : 'X\(//\)[^/]' \| \ 21018 X$ac_file : 'X\(//\)$' \| \ 21019 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 21020echo X$ac_file | 21021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21022 s//\1/ 21023 q 21024 } 21025 /^X\(\/\/\)[^/].*/{ 21026 s//\1/ 21027 q 21028 } 21029 /^X\(\/\/\)$/{ 21030 s//\1/ 21031 q 21032 } 21033 /^X\(\/\).*/{ 21034 s//\1/ 21035 q 21036 } 21037 s/.*/./; q'`/stamp-h$_am_stamp_count 21038 ;; 21039 21040 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 21041echo "$as_me: executing $ac_file commands" >&6;} 21042 ;; 21043 esac 21044 21045 21046 case $ac_file$ac_mode in 21047 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21048 # Strip MF so we end up with the name of the file. 21049 mf=`echo "$mf" | sed -e 's/:.*$//'` 21050 # Check whether this is an Automake generated Makefile or not. 21051 # We used to match only the files named `Makefile.in', but 21052 # some people rename them; so instead we look at the file content. 21053 # Grep'ing the first line is not enough: some people post-process 21054 # each Makefile.in and add a new line on top of each file to say so. 21055 # Grep'ing the whole file is not good either: AIX grep has a line 21056 # limit of 2048, but all sed's we know have understand at least 4000. 21057 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 21058 dirpart=`$as_dirname -- "$mf" || 21059$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21060 X"$mf" : 'X\(//\)[^/]' \| \ 21061 X"$mf" : 'X\(//\)$' \| \ 21062 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21063echo X"$mf" | 21064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21065 s//\1/ 21066 q 21067 } 21068 /^X\(\/\/\)[^/].*/{ 21069 s//\1/ 21070 q 21071 } 21072 /^X\(\/\/\)$/{ 21073 s//\1/ 21074 q 21075 } 21076 /^X\(\/\).*/{ 21077 s//\1/ 21078 q 21079 } 21080 s/.*/./; q'` 21081 else 21082 continue 21083 fi 21084 # Extract the definition of DEPDIR, am__include, and am__quote 21085 # from the Makefile without running `make'. 21086 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21087 test -z "$DEPDIR" && continue 21088 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21089 test -z "am__include" && continue 21090 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21091 # When using ansi2knr, U may be empty or an underscore; expand it 21092 U=`sed -n 's/^U = //p' < "$mf"` 21093 # Find all dependency output files, they are included files with 21094 # $(DEPDIR) in their names. We invoke sed twice because it is the 21095 # simplest approach to changing $(DEPDIR) to its actual value in the 21096 # expansion. 21097 for file in `sed -n " 21098 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21099 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21100 # Make sure the directory exists. 21101 test -f "$dirpart/$file" && continue 21102 fdir=`$as_dirname -- "$file" || 21103$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21104 X"$file" : 'X\(//\)[^/]' \| \ 21105 X"$file" : 'X\(//\)$' \| \ 21106 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21107echo X"$file" | 21108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21109 s//\1/ 21110 q 21111 } 21112 /^X\(\/\/\)[^/].*/{ 21113 s//\1/ 21114 q 21115 } 21116 /^X\(\/\/\)$/{ 21117 s//\1/ 21118 q 21119 } 21120 /^X\(\/\).*/{ 21121 s//\1/ 21122 q 21123 } 21124 s/.*/./; q'` 21125 { as_dir=$dirpart/$fdir 21126 case $as_dir in #( 21127 -*) as_dir=./$as_dir;; 21128 esac 21129 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21130 as_dirs= 21131 while :; do 21132 case $as_dir in #( 21133 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21134 *) as_qdir=$as_dir;; 21135 esac 21136 as_dirs="'$as_qdir' $as_dirs" 21137 as_dir=`$as_dirname -- "$as_dir" || 21138$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21139 X"$as_dir" : 'X\(//\)[^/]' \| \ 21140 X"$as_dir" : 'X\(//\)$' \| \ 21141 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21142echo X"$as_dir" | 21143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21144 s//\1/ 21145 q 21146 } 21147 /^X\(\/\/\)[^/].*/{ 21148 s//\1/ 21149 q 21150 } 21151 /^X\(\/\/\)$/{ 21152 s//\1/ 21153 q 21154 } 21155 /^X\(\/\).*/{ 21156 s//\1/ 21157 q 21158 } 21159 s/.*/./; q'` 21160 test -d "$as_dir" && break 21161 done 21162 test -z "$as_dirs" || eval "mkdir $as_dirs" 21163 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21164echo "$as_me: error: cannot create directory $as_dir" >&2;} 21165 { (exit 1); exit 1; }; }; } 21166 # echo "creating $dirpart/$file" 21167 echo '# dummy' > "$dirpart/$file" 21168 done 21169done 21170 ;; 21171 21172 esac 21173done # for ac_tag 21174 21175 21176{ (exit 0); exit 0; } 21177_ACEOF 21178chmod +x $CONFIG_STATUS 21179ac_clean_files=$ac_clean_files_save 21180 21181 21182# configure is writing to config.log, and then calls config.status. 21183# config.status does its own redirection, appending to config.log. 21184# Unfortunately, on DOS this fails, as config.log is still kept open 21185# by configure, so config.status won't be able to write to it; its 21186# output is simply discarded. So we exec the FD to /dev/null, 21187# effectively closing config.log, so it can be properly (re)opened and 21188# appended to by config.status. When coming back to configure, we 21189# need to make the FD available again. 21190if test "$no_create" != yes; then 21191 ac_cs_success=: 21192 ac_config_status_args= 21193 test "$silent" = yes && 21194 ac_config_status_args="$ac_config_status_args --quiet" 21195 exec 5>/dev/null 21196 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21197 exec 5>>config.log 21198 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21199 # would make configure fail if this is the last instruction. 21200 $ac_cs_success || { (exit 1); exit 1; } 21201fi 21202 21203