configure revision ef981d24
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for libXScrnSaver 1.1.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be 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='libXScrnSaver' 730PACKAGE_TARNAME='libXScrnSaver' 731PACKAGE_VERSION='1.1.3' 732PACKAGE_STRING='libXScrnSaver 1.1.3' 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 876XSCRNSAVER_CFLAGS 877XSCRNSAVER_LIBS 878LINT 879LINT_FLAGS 880LINT_TRUE 881LINT_FALSE 882LINTLIB 883MAKE_LINT_LIB_TRUE 884MAKE_LINT_LIB_FALSE 885MALLOC_ZERO_CFLAGS 886XMALLOC_ZERO_CFLAGS 887XTMALLOC_ZERO_CFLAGS 888APP_MAN_SUFFIX 889LIB_MAN_SUFFIX 890FILE_MAN_SUFFIX 891MISC_MAN_SUFFIX 892DRIVER_MAN_SUFFIX 893ADMIN_MAN_SUFFIX 894APP_MAN_DIR 895LIB_MAN_DIR 896FILE_MAN_DIR 897MISC_MAN_DIR 898DRIVER_MAN_DIR 899ADMIN_MAN_DIR 900LIBOBJS 901LTLIBOBJS' 902ac_subst_files='' 903 ac_precious_vars='build_alias 904host_alias 905target_alias 906CC 907CFLAGS 908LDFLAGS 909LIBS 910CPPFLAGS 911CPP 912CXX 913CXXFLAGS 914CCC 915CXXCPP 916F77 917FFLAGS 918PKG_CONFIG 919XSCRNSAVER_CFLAGS 920XSCRNSAVER_LIBS' 921 922 923# Initialize some variables set by options. 924ac_init_help= 925ac_init_version=false 926# The variables have the same names as the options, with 927# dashes changed to underlines. 928cache_file=/dev/null 929exec_prefix=NONE 930no_create= 931no_recursion= 932prefix=NONE 933program_prefix=NONE 934program_suffix=NONE 935program_transform_name=s,x,x, 936silent= 937site= 938srcdir= 939verbose= 940x_includes=NONE 941x_libraries=NONE 942 943# Installation directory options. 944# These are left unexpanded so users can "make install exec_prefix=/foo" 945# and all the variables that are supposed to be based on exec_prefix 946# by default will actually change. 947# Use braces instead of parens because sh, perl, etc. also accept them. 948# (The list follows the same order as the GNU Coding Standards.) 949bindir='${exec_prefix}/bin' 950sbindir='${exec_prefix}/sbin' 951libexecdir='${exec_prefix}/libexec' 952datarootdir='${prefix}/share' 953datadir='${datarootdir}' 954sysconfdir='${prefix}/etc' 955sharedstatedir='${prefix}/com' 956localstatedir='${prefix}/var' 957includedir='${prefix}/include' 958oldincludedir='/usr/include' 959docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 960infodir='${datarootdir}/info' 961htmldir='${docdir}' 962dvidir='${docdir}' 963pdfdir='${docdir}' 964psdir='${docdir}' 965libdir='${exec_prefix}/lib' 966localedir='${datarootdir}/locale' 967mandir='${datarootdir}/man' 968 969ac_prev= 970ac_dashdash= 971for ac_option 972do 973 # If the previous option needs an argument, assign it. 974 if test -n "$ac_prev"; then 975 eval $ac_prev=\$ac_option 976 ac_prev= 977 continue 978 fi 979 980 case $ac_option in 981 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 982 *) ac_optarg=yes ;; 983 esac 984 985 # Accept the important Cygnus configure options, so we can diagnose typos. 986 987 case $ac_dashdash$ac_option in 988 --) 989 ac_dashdash=yes ;; 990 991 -bindir | --bindir | --bindi | --bind | --bin | --bi) 992 ac_prev=bindir ;; 993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 994 bindir=$ac_optarg ;; 995 996 -build | --build | --buil | --bui | --bu) 997 ac_prev=build_alias ;; 998 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 999 build_alias=$ac_optarg ;; 1000 1001 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1003 ac_prev=cache_file ;; 1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1006 cache_file=$ac_optarg ;; 1007 1008 --config-cache | -C) 1009 cache_file=config.cache ;; 1010 1011 -datadir | --datadir | --datadi | --datad) 1012 ac_prev=datadir ;; 1013 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1014 datadir=$ac_optarg ;; 1015 1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1017 | --dataroo | --dataro | --datar) 1018 ac_prev=datarootdir ;; 1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1021 datarootdir=$ac_optarg ;; 1022 1023 -disable-* | --disable-*) 1024 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1025 # Reject names that are not valid shell variable names. 1026 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1027 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1028 { (exit 1); exit 1; }; } 1029 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1030 eval enable_$ac_feature=no ;; 1031 1032 -docdir | --docdir | --docdi | --doc | --do) 1033 ac_prev=docdir ;; 1034 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1035 docdir=$ac_optarg ;; 1036 1037 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1038 ac_prev=dvidir ;; 1039 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1040 dvidir=$ac_optarg ;; 1041 1042 -enable-* | --enable-*) 1043 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1044 # Reject names that are not valid shell variable names. 1045 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1046 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1047 { (exit 1); exit 1; }; } 1048 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1049 eval enable_$ac_feature=\$ac_optarg ;; 1050 1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1053 | --exec | --exe | --ex) 1054 ac_prev=exec_prefix ;; 1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1057 | --exec=* | --exe=* | --ex=*) 1058 exec_prefix=$ac_optarg ;; 1059 1060 -gas | --gas | --ga | --g) 1061 # Obsolete; use --with-gas. 1062 with_gas=yes ;; 1063 1064 -help | --help | --hel | --he | -h) 1065 ac_init_help=long ;; 1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1067 ac_init_help=recursive ;; 1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1069 ac_init_help=short ;; 1070 1071 -host | --host | --hos | --ho) 1072 ac_prev=host_alias ;; 1073 -host=* | --host=* | --hos=* | --ho=*) 1074 host_alias=$ac_optarg ;; 1075 1076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1077 ac_prev=htmldir ;; 1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1079 | --ht=*) 1080 htmldir=$ac_optarg ;; 1081 1082 -includedir | --includedir | --includedi | --included | --include \ 1083 | --includ | --inclu | --incl | --inc) 1084 ac_prev=includedir ;; 1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1086 | --includ=* | --inclu=* | --incl=* | --inc=*) 1087 includedir=$ac_optarg ;; 1088 1089 -infodir | --infodir | --infodi | --infod | --info | --inf) 1090 ac_prev=infodir ;; 1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1092 infodir=$ac_optarg ;; 1093 1094 -libdir | --libdir | --libdi | --libd) 1095 ac_prev=libdir ;; 1096 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1097 libdir=$ac_optarg ;; 1098 1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1100 | --libexe | --libex | --libe) 1101 ac_prev=libexecdir ;; 1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1103 | --libexe=* | --libex=* | --libe=*) 1104 libexecdir=$ac_optarg ;; 1105 1106 -localedir | --localedir | --localedi | --localed | --locale) 1107 ac_prev=localedir ;; 1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1109 localedir=$ac_optarg ;; 1110 1111 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1112 | --localstate | --localstat | --localsta | --localst | --locals) 1113 ac_prev=localstatedir ;; 1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1116 localstatedir=$ac_optarg ;; 1117 1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1119 ac_prev=mandir ;; 1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1121 mandir=$ac_optarg ;; 1122 1123 -nfp | --nfp | --nf) 1124 # Obsolete; use --without-fp. 1125 with_fp=no ;; 1126 1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1128 | --no-cr | --no-c | -n) 1129 no_create=yes ;; 1130 1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1133 no_recursion=yes ;; 1134 1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1137 | --oldin | --oldi | --old | --ol | --o) 1138 ac_prev=oldincludedir ;; 1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1142 oldincludedir=$ac_optarg ;; 1143 1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1145 ac_prev=prefix ;; 1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1147 prefix=$ac_optarg ;; 1148 1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1150 | --program-pre | --program-pr | --program-p) 1151 ac_prev=program_prefix ;; 1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1154 program_prefix=$ac_optarg ;; 1155 1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1157 | --program-suf | --program-su | --program-s) 1158 ac_prev=program_suffix ;; 1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1161 program_suffix=$ac_optarg ;; 1162 1163 -program-transform-name | --program-transform-name \ 1164 | --program-transform-nam | --program-transform-na \ 1165 | --program-transform-n | --program-transform- \ 1166 | --program-transform | --program-transfor \ 1167 | --program-transfo | --program-transf \ 1168 | --program-trans | --program-tran \ 1169 | --progr-tra | --program-tr | --program-t) 1170 ac_prev=program_transform_name ;; 1171 -program-transform-name=* | --program-transform-name=* \ 1172 | --program-transform-nam=* | --program-transform-na=* \ 1173 | --program-transform-n=* | --program-transform-=* \ 1174 | --program-transform=* | --program-transfor=* \ 1175 | --program-transfo=* | --program-transf=* \ 1176 | --program-trans=* | --program-tran=* \ 1177 | --progr-tra=* | --program-tr=* | --program-t=*) 1178 program_transform_name=$ac_optarg ;; 1179 1180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1181 ac_prev=pdfdir ;; 1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1183 pdfdir=$ac_optarg ;; 1184 1185 -psdir | --psdir | --psdi | --psd | --ps) 1186 ac_prev=psdir ;; 1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1188 psdir=$ac_optarg ;; 1189 1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1191 | -silent | --silent | --silen | --sile | --sil) 1192 silent=yes ;; 1193 1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1195 ac_prev=sbindir ;; 1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1197 | --sbi=* | --sb=*) 1198 sbindir=$ac_optarg ;; 1199 1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1202 | --sharedst | --shareds | --shared | --share | --shar \ 1203 | --sha | --sh) 1204 ac_prev=sharedstatedir ;; 1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1208 | --sha=* | --sh=*) 1209 sharedstatedir=$ac_optarg ;; 1210 1211 -site | --site | --sit) 1212 ac_prev=site ;; 1213 -site=* | --site=* | --sit=*) 1214 site=$ac_optarg ;; 1215 1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1217 ac_prev=srcdir ;; 1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1219 srcdir=$ac_optarg ;; 1220 1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1222 | --syscon | --sysco | --sysc | --sys | --sy) 1223 ac_prev=sysconfdir ;; 1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1226 sysconfdir=$ac_optarg ;; 1227 1228 -target | --target | --targe | --targ | --tar | --ta | --t) 1229 ac_prev=target_alias ;; 1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1231 target_alias=$ac_optarg ;; 1232 1233 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1234 verbose=yes ;; 1235 1236 -version | --version | --versio | --versi | --vers | -V) 1237 ac_init_version=: ;; 1238 1239 -with-* | --with-*) 1240 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1241 # Reject names that are not valid shell variable names. 1242 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1243 { echo "$as_me: error: invalid package name: $ac_package" >&2 1244 { (exit 1); exit 1; }; } 1245 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1246 eval with_$ac_package=\$ac_optarg ;; 1247 1248 -without-* | --without-*) 1249 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1250 # Reject names that are not valid shell variable names. 1251 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1252 { echo "$as_me: error: invalid package name: $ac_package" >&2 1253 { (exit 1); exit 1; }; } 1254 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1255 eval with_$ac_package=no ;; 1256 1257 --x) 1258 # Obsolete; use --with-x. 1259 with_x=yes ;; 1260 1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1262 | --x-incl | --x-inc | --x-in | --x-i) 1263 ac_prev=x_includes ;; 1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1266 x_includes=$ac_optarg ;; 1267 1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1270 ac_prev=x_libraries ;; 1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1273 x_libraries=$ac_optarg ;; 1274 1275 -*) { echo "$as_me: error: unrecognized option: $ac_option 1276Try \`$0 --help' for more information." >&2 1277 { (exit 1); exit 1; }; } 1278 ;; 1279 1280 *=*) 1281 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1282 # Reject names that are not valid shell variable names. 1283 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1284 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1285 { (exit 1); exit 1; }; } 1286 eval $ac_envvar=\$ac_optarg 1287 export $ac_envvar ;; 1288 1289 *) 1290 # FIXME: should be removed in autoconf 3.0. 1291 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1293 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1294 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1295 ;; 1296 1297 esac 1298done 1299 1300if test -n "$ac_prev"; then 1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1302 { echo "$as_me: error: missing argument to $ac_option" >&2 1303 { (exit 1); exit 1; }; } 1304fi 1305 1306# Be sure to have absolute directory names. 1307for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1308 datadir sysconfdir sharedstatedir localstatedir includedir \ 1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1310 libdir localedir mandir 1311do 1312 eval ac_val=\$$ac_var 1313 case $ac_val in 1314 [\\/$]* | ?:[\\/]* ) continue;; 1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1316 esac 1317 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1318 { (exit 1); exit 1; }; } 1319done 1320 1321# There might be people who depend on the old broken behavior: `$host' 1322# used to hold the argument of --host etc. 1323# FIXME: To remove some day. 1324build=$build_alias 1325host=$host_alias 1326target=$target_alias 1327 1328# FIXME: To remove some day. 1329if test "x$host_alias" != x; then 1330 if test "x$build_alias" = x; then 1331 cross_compiling=maybe 1332 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1333 If a cross compiler is detected then cross compile mode will be used." >&2 1334 elif test "x$build_alias" != "x$host_alias"; then 1335 cross_compiling=yes 1336 fi 1337fi 1338 1339ac_tool_prefix= 1340test -n "$host_alias" && ac_tool_prefix=$host_alias- 1341 1342test "$silent" = yes && exec 6>/dev/null 1343 1344 1345ac_pwd=`pwd` && test -n "$ac_pwd" && 1346ac_ls_di=`ls -di .` && 1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1348 { echo "$as_me: error: Working directory cannot be determined" >&2 1349 { (exit 1); exit 1; }; } 1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1351 { echo "$as_me: error: pwd does not report name of working directory" >&2 1352 { (exit 1); exit 1; }; } 1353 1354 1355# Find the source files, if location was not specified. 1356if test -z "$srcdir"; then 1357 ac_srcdir_defaulted=yes 1358 # Try the directory containing this script, then the parent directory. 1359 ac_confdir=`$as_dirname -- "$0" || 1360$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1361 X"$0" : 'X\(//\)[^/]' \| \ 1362 X"$0" : 'X\(//\)$' \| \ 1363 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1364echo X"$0" | 1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1366 s//\1/ 1367 q 1368 } 1369 /^X\(\/\/\)[^/].*/{ 1370 s//\1/ 1371 q 1372 } 1373 /^X\(\/\/\)$/{ 1374 s//\1/ 1375 q 1376 } 1377 /^X\(\/\).*/{ 1378 s//\1/ 1379 q 1380 } 1381 s/.*/./; q'` 1382 srcdir=$ac_confdir 1383 if test ! -r "$srcdir/$ac_unique_file"; then 1384 srcdir=.. 1385 fi 1386else 1387 ac_srcdir_defaulted=no 1388fi 1389if test ! -r "$srcdir/$ac_unique_file"; then 1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1391 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1392 { (exit 1); exit 1; }; } 1393fi 1394ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1395ac_abs_confdir=`( 1396 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1397 { (exit 1); exit 1; }; } 1398 pwd)` 1399# When building in place, set srcdir=. 1400if test "$ac_abs_confdir" = "$ac_pwd"; then 1401 srcdir=. 1402fi 1403# Remove unnecessary trailing slashes from srcdir. 1404# Double slashes in file names in object file debugging info 1405# mess up M-x gdb in Emacs. 1406case $srcdir in 1407*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1408esac 1409for ac_var in $ac_precious_vars; do 1410 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1411 eval ac_env_${ac_var}_value=\$${ac_var} 1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1413 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1414done 1415 1416# 1417# Report the --help message. 1418# 1419if test "$ac_init_help" = "long"; then 1420 # Omit some internal or obsolete options to make the list less imposing. 1421 # This message is too long to be a string in the A/UX 3.1 sh. 1422 cat <<_ACEOF 1423\`configure' configures libXScrnSaver 1.1.3 to adapt to many kinds of systems. 1424 1425Usage: $0 [OPTION]... [VAR=VALUE]... 1426 1427To assign environment variables (e.g., CC, CFLAGS...), specify them as 1428VAR=VALUE. See below for descriptions of some of the useful variables. 1429 1430Defaults for the options are specified in brackets. 1431 1432Configuration: 1433 -h, --help display this help and exit 1434 --help=short display options specific to this package 1435 --help=recursive display the short help of all the included packages 1436 -V, --version display version information and exit 1437 -q, --quiet, --silent do not print \`checking...' messages 1438 --cache-file=FILE cache test results in FILE [disabled] 1439 -C, --config-cache alias for \`--cache-file=config.cache' 1440 -n, --no-create do not create output files 1441 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1442 1443Installation directories: 1444 --prefix=PREFIX install architecture-independent files in PREFIX 1445 [$ac_default_prefix] 1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1447 [PREFIX] 1448 1449By default, \`make install' will install all the files in 1450\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1451an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1452for instance \`--prefix=\$HOME'. 1453 1454For better control, use the options below. 1455 1456Fine tuning of the installation directories: 1457 --bindir=DIR user executables [EPREFIX/bin] 1458 --sbindir=DIR system admin executables [EPREFIX/sbin] 1459 --libexecdir=DIR program executables [EPREFIX/libexec] 1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1463 --libdir=DIR object code libraries [EPREFIX/lib] 1464 --includedir=DIR C header files [PREFIX/include] 1465 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1468 --infodir=DIR info documentation [DATAROOTDIR/info] 1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1470 --mandir=DIR man documentation [DATAROOTDIR/man] 1471 --docdir=DIR documentation root [DATAROOTDIR/doc/libXScrnSaver] 1472 --htmldir=DIR html documentation [DOCDIR] 1473 --dvidir=DIR dvi documentation [DOCDIR] 1474 --pdfdir=DIR pdf documentation [DOCDIR] 1475 --psdir=DIR ps documentation [DOCDIR] 1476_ACEOF 1477 1478 cat <<\_ACEOF 1479 1480Program names: 1481 --program-prefix=PREFIX prepend PREFIX to installed program names 1482 --program-suffix=SUFFIX append SUFFIX to installed program names 1483 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1484 1485System types: 1486 --build=BUILD configure for building on BUILD [guessed] 1487 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1488_ACEOF 1489fi 1490 1491if test -n "$ac_init_help"; then 1492 case $ac_init_help in 1493 short | recursive ) echo "Configuration of libXScrnSaver 1.1.3:";; 1494 esac 1495 cat <<\_ACEOF 1496 1497Optional Features: 1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1500 --enable-maintainer-mode enable make rules and dependencies not useful 1501 (and sometimes confusing) to the casual installer 1502 --disable-dependency-tracking speeds up one-time build 1503 --enable-dependency-tracking do not reject slow dependency extractors 1504 --enable-shared[=PKGS] build shared libraries [default=yes] 1505 --enable-static[=PKGS] build static libraries [default=yes] 1506 --enable-fast-install[=PKGS] 1507 optimize for fast installation [default=yes] 1508 --disable-libtool-lock avoid locking (might break parallel builds) 1509 --enable-lint-library Create lint library (default: disabled) 1510 --enable-malloc0returnsnull 1511 malloc(0) returns NULL (default: auto) 1512 1513Optional Packages: 1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1516 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1517 --with-pic try to use only PIC/non-PIC objects [default=use 1518 both] 1519 --with-tags[=TAGS] include additional configurations [automatic] 1520 --with-lint Use a lint-style source code checker (default: 1521 disabled) 1522 --with-release-version=STRING 1523 Use release version string in package name 1524 1525Some influential environment variables: 1526 CC C compiler command 1527 CFLAGS C compiler flags 1528 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1529 nonstandard directory <lib dir> 1530 LIBS libraries to pass to the linker, e.g. -l<library> 1531 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1532 you have headers in a nonstandard directory <include dir> 1533 CPP C preprocessor 1534 CXX C++ compiler command 1535 CXXFLAGS C++ compiler flags 1536 CXXCPP C++ preprocessor 1537 F77 Fortran 77 compiler command 1538 FFLAGS Fortran 77 compiler flags 1539 PKG_CONFIG path to pkg-config utility 1540 XSCRNSAVER_CFLAGS 1541 C compiler flags for XSCRNSAVER, overriding pkg-config 1542 XSCRNSAVER_LIBS 1543 linker flags for XSCRNSAVER, overriding pkg-config 1544 1545Use these variables to override the choices made by `configure' or to help 1546it to find libraries and programs with nonstandard names/locations. 1547 1548Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1549_ACEOF 1550ac_status=$? 1551fi 1552 1553if test "$ac_init_help" = "recursive"; then 1554 # If there are subdirs, report their specific --help. 1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1556 test -d "$ac_dir" || continue 1557 ac_builddir=. 1558 1559case "$ac_dir" in 1560.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1561*) 1562 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1563 # A ".." for each directory in $ac_dir_suffix. 1564 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1565 case $ac_top_builddir_sub in 1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1568 esac ;; 1569esac 1570ac_abs_top_builddir=$ac_pwd 1571ac_abs_builddir=$ac_pwd$ac_dir_suffix 1572# for backward compatibility: 1573ac_top_builddir=$ac_top_build_prefix 1574 1575case $srcdir in 1576 .) # We are building in place. 1577 ac_srcdir=. 1578 ac_top_srcdir=$ac_top_builddir_sub 1579 ac_abs_top_srcdir=$ac_pwd ;; 1580 [\\/]* | ?:[\\/]* ) # Absolute name. 1581 ac_srcdir=$srcdir$ac_dir_suffix; 1582 ac_top_srcdir=$srcdir 1583 ac_abs_top_srcdir=$srcdir ;; 1584 *) # Relative name. 1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1586 ac_top_srcdir=$ac_top_build_prefix$srcdir 1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1588esac 1589ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1590 1591 cd "$ac_dir" || { ac_status=$?; continue; } 1592 # Check for guested configure. 1593 if test -f "$ac_srcdir/configure.gnu"; then 1594 echo && 1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1596 elif test -f "$ac_srcdir/configure"; then 1597 echo && 1598 $SHELL "$ac_srcdir/configure" --help=recursive 1599 else 1600 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1601 fi || ac_status=$? 1602 cd "$ac_pwd" || { ac_status=$?; break; } 1603 done 1604fi 1605 1606test -n "$ac_init_help" && exit $ac_status 1607if $ac_init_version; then 1608 cat <<\_ACEOF 1609libXScrnSaver configure 1.1.3 1610generated by GNU Autoconf 2.61 1611 1612Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16132002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1614This configure script is free software; the Free Software Foundation 1615gives unlimited permission to copy, distribute and modify it. 1616_ACEOF 1617 exit 1618fi 1619cat >config.log <<_ACEOF 1620This file contains any messages produced by compilers while 1621running configure, to aid debugging if configure makes a mistake. 1622 1623It was created by libXScrnSaver $as_me 1.1.3, which was 1624generated by GNU Autoconf 2.61. Invocation command line was 1625 1626 $ $0 $@ 1627 1628_ACEOF 1629exec 5>>config.log 1630{ 1631cat <<_ASUNAME 1632## --------- ## 1633## Platform. ## 1634## --------- ## 1635 1636hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1637uname -m = `(uname -m) 2>/dev/null || echo unknown` 1638uname -r = `(uname -r) 2>/dev/null || echo unknown` 1639uname -s = `(uname -s) 2>/dev/null || echo unknown` 1640uname -v = `(uname -v) 2>/dev/null || echo unknown` 1641 1642/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1643/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1644 1645/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1646/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1647/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1648/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1649/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1650/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1651/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1652 1653_ASUNAME 1654 1655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1656for as_dir in $PATH 1657do 1658 IFS=$as_save_IFS 1659 test -z "$as_dir" && as_dir=. 1660 echo "PATH: $as_dir" 1661done 1662IFS=$as_save_IFS 1663 1664} >&5 1665 1666cat >&5 <<_ACEOF 1667 1668 1669## ----------- ## 1670## Core tests. ## 1671## ----------- ## 1672 1673_ACEOF 1674 1675 1676# Keep a trace of the command line. 1677# Strip out --no-create and --no-recursion so they do not pile up. 1678# Strip out --silent because we don't want to record it for future runs. 1679# Also quote any args containing shell meta-characters. 1680# Make two passes to allow for proper duplicate-argument suppression. 1681ac_configure_args= 1682ac_configure_args0= 1683ac_configure_args1= 1684ac_must_keep_next=false 1685for ac_pass in 1 2 1686do 1687 for ac_arg 1688 do 1689 case $ac_arg in 1690 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1692 | -silent | --silent | --silen | --sile | --sil) 1693 continue ;; 1694 *\'*) 1695 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1696 esac 1697 case $ac_pass in 1698 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1699 2) 1700 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1701 if test $ac_must_keep_next = true; then 1702 ac_must_keep_next=false # Got value, back to normal. 1703 else 1704 case $ac_arg in 1705 *=* | --config-cache | -C | -disable-* | --disable-* \ 1706 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1707 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1708 | -with-* | --with-* | -without-* | --without-* | --x) 1709 case "$ac_configure_args0 " in 1710 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1711 esac 1712 ;; 1713 -* ) ac_must_keep_next=true ;; 1714 esac 1715 fi 1716 ac_configure_args="$ac_configure_args '$ac_arg'" 1717 ;; 1718 esac 1719 done 1720done 1721$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1722$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1723 1724# When interrupted or exit'd, cleanup temporary files, and complete 1725# config.log. We remove comments because anyway the quotes in there 1726# would cause problems or look ugly. 1727# WARNING: Use '\'' to represent an apostrophe within the trap. 1728# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1729trap 'exit_status=$? 1730 # Save into config.log some information that might help in debugging. 1731 { 1732 echo 1733 1734 cat <<\_ASBOX 1735## ---------------- ## 1736## Cache variables. ## 1737## ---------------- ## 1738_ASBOX 1739 echo 1740 # The following way of writing the cache mishandles newlines in values, 1741( 1742 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1743 eval ac_val=\$$ac_var 1744 case $ac_val in #( 1745 *${as_nl}*) 1746 case $ac_var in #( 1747 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1748echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1749 esac 1750 case $ac_var in #( 1751 _ | IFS | as_nl) ;; #( 1752 *) $as_unset $ac_var ;; 1753 esac ;; 1754 esac 1755 done 1756 (set) 2>&1 | 1757 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1758 *${as_nl}ac_space=\ *) 1759 sed -n \ 1760 "s/'\''/'\''\\\\'\'''\''/g; 1761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1762 ;; #( 1763 *) 1764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1765 ;; 1766 esac | 1767 sort 1768) 1769 echo 1770 1771 cat <<\_ASBOX 1772## ----------------- ## 1773## Output variables. ## 1774## ----------------- ## 1775_ASBOX 1776 echo 1777 for ac_var in $ac_subst_vars 1778 do 1779 eval ac_val=\$$ac_var 1780 case $ac_val in 1781 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1782 esac 1783 echo "$ac_var='\''$ac_val'\''" 1784 done | sort 1785 echo 1786 1787 if test -n "$ac_subst_files"; then 1788 cat <<\_ASBOX 1789## ------------------- ## 1790## File substitutions. ## 1791## ------------------- ## 1792_ASBOX 1793 echo 1794 for ac_var in $ac_subst_files 1795 do 1796 eval ac_val=\$$ac_var 1797 case $ac_val in 1798 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1799 esac 1800 echo "$ac_var='\''$ac_val'\''" 1801 done | sort 1802 echo 1803 fi 1804 1805 if test -s confdefs.h; then 1806 cat <<\_ASBOX 1807## ----------- ## 1808## confdefs.h. ## 1809## ----------- ## 1810_ASBOX 1811 echo 1812 cat confdefs.h 1813 echo 1814 fi 1815 test "$ac_signal" != 0 && 1816 echo "$as_me: caught signal $ac_signal" 1817 echo "$as_me: exit $exit_status" 1818 } >&5 1819 rm -f core *.core core.conftest.* && 1820 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1821 exit $exit_status 1822' 0 1823for ac_signal in 1 2 13 15; do 1824 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1825done 1826ac_signal=0 1827 1828# confdefs.h avoids OS command line length limits that DEFS can exceed. 1829rm -f -r conftest* confdefs.h 1830 1831# Predefined preprocessor variables. 1832 1833cat >>confdefs.h <<_ACEOF 1834#define PACKAGE_NAME "$PACKAGE_NAME" 1835_ACEOF 1836 1837 1838cat >>confdefs.h <<_ACEOF 1839#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1840_ACEOF 1841 1842 1843cat >>confdefs.h <<_ACEOF 1844#define PACKAGE_VERSION "$PACKAGE_VERSION" 1845_ACEOF 1846 1847 1848cat >>confdefs.h <<_ACEOF 1849#define PACKAGE_STRING "$PACKAGE_STRING" 1850_ACEOF 1851 1852 1853cat >>confdefs.h <<_ACEOF 1854#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1855_ACEOF 1856 1857 1858# Let the site file select an alternate cache file if it wants to. 1859# Prefer explicitly selected file to automatically selected ones. 1860if test -n "$CONFIG_SITE"; then 1861 set x "$CONFIG_SITE" 1862elif test "x$prefix" != xNONE; then 1863 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1864else 1865 set x "$ac_default_prefix/share/config.site" \ 1866 "$ac_default_prefix/etc/config.site" 1867fi 1868shift 1869for ac_site_file 1870do 1871 if test -r "$ac_site_file"; then 1872 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1873echo "$as_me: loading site script $ac_site_file" >&6;} 1874 sed 's/^/| /' "$ac_site_file" >&5 1875 . "$ac_site_file" 1876 fi 1877done 1878 1879if test -r "$cache_file"; then 1880 # Some versions of bash will fail to source /dev/null (special 1881 # files actually), so we avoid doing that. 1882 if test -f "$cache_file"; then 1883 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1884echo "$as_me: loading cache $cache_file" >&6;} 1885 case $cache_file in 1886 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1887 *) . "./$cache_file";; 1888 esac 1889 fi 1890else 1891 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1892echo "$as_me: creating cache $cache_file" >&6;} 1893 >$cache_file 1894fi 1895 1896# Check that the precious variables saved in the cache have kept the same 1897# value. 1898ac_cache_corrupted=false 1899for ac_var in $ac_precious_vars; do 1900 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1901 eval ac_new_set=\$ac_env_${ac_var}_set 1902 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1903 eval ac_new_val=\$ac_env_${ac_var}_value 1904 case $ac_old_set,$ac_new_set in 1905 set,) 1906 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1907echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1908 ac_cache_corrupted=: ;; 1909 ,set) 1910 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1911echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1912 ac_cache_corrupted=: ;; 1913 ,);; 1914 *) 1915 if test "x$ac_old_val" != "x$ac_new_val"; then 1916 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1917echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1918 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1919echo "$as_me: former value: $ac_old_val" >&2;} 1920 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1921echo "$as_me: current value: $ac_new_val" >&2;} 1922 ac_cache_corrupted=: 1923 fi;; 1924 esac 1925 # Pass precious variables to config.status. 1926 if test "$ac_new_set" = set; then 1927 case $ac_new_val in 1928 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1929 *) ac_arg=$ac_var=$ac_new_val ;; 1930 esac 1931 case " $ac_configure_args " in 1932 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1933 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1934 esac 1935 fi 1936done 1937if $ac_cache_corrupted; then 1938 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1939echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1940 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1941echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1942 { (exit 1); exit 1; }; } 1943fi 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969ac_ext=c 1970ac_cpp='$CPP $CPPFLAGS' 1971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1973ac_compiler_gnu=$ac_cv_c_compiler_gnu 1974 1975 1976am__api_version='1.10' 1977 1978ac_aux_dir= 1979for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1980 if test -f "$ac_dir/install-sh"; then 1981 ac_aux_dir=$ac_dir 1982 ac_install_sh="$ac_aux_dir/install-sh -c" 1983 break 1984 elif test -f "$ac_dir/install.sh"; then 1985 ac_aux_dir=$ac_dir 1986 ac_install_sh="$ac_aux_dir/install.sh -c" 1987 break 1988 elif test -f "$ac_dir/shtool"; then 1989 ac_aux_dir=$ac_dir 1990 ac_install_sh="$ac_aux_dir/shtool install -c" 1991 break 1992 fi 1993done 1994if test -z "$ac_aux_dir"; then 1995 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1996echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1997 { (exit 1); exit 1; }; } 1998fi 1999 2000# These three variables are undocumented and unsupported, 2001# and are intended to be withdrawn in a future Autoconf release. 2002# They can cause serious problems if a builder's source tree is in a directory 2003# whose full name contains unusual characters. 2004ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2005ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2006ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2007 2008 2009# Find a good install program. We prefer a C program (faster), 2010# so one script is as good as another. But avoid the broken or 2011# incompatible versions: 2012# SysV /etc/install, /usr/sbin/install 2013# SunOS /usr/etc/install 2014# IRIX /sbin/install 2015# AIX /bin/install 2016# AmigaOS /C/install, which installs bootblocks on floppy discs 2017# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2018# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2019# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2020# OS/2's system install, which has a completely different semantic 2021# ./install, which can be erroneously created by make from ./install.sh. 2022{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2023echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2024if test -z "$INSTALL"; then 2025if test "${ac_cv_path_install+set}" = set; then 2026 echo $ECHO_N "(cached) $ECHO_C" >&6 2027else 2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2029for as_dir in $PATH 2030do 2031 IFS=$as_save_IFS 2032 test -z "$as_dir" && as_dir=. 2033 # Account for people who put trailing slashes in PATH elements. 2034case $as_dir/ in 2035 ./ | .// | /cC/* | \ 2036 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2037 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2038 /usr/ucb/* ) ;; 2039 *) 2040 # OSF1 and SCO ODT 3.0 have their own names for install. 2041 # Don't use installbsd from OSF since it installs stuff as root 2042 # by default. 2043 for ac_prog in ginstall scoinst install; do 2044 for ac_exec_ext in '' $ac_executable_extensions; do 2045 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2046 if test $ac_prog = install && 2047 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2048 # AIX install. It has an incompatible calling convention. 2049 : 2050 elif test $ac_prog = install && 2051 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2052 # program-specific install script used by HP pwplus--don't use. 2053 : 2054 else 2055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2056 break 3 2057 fi 2058 fi 2059 done 2060 done 2061 ;; 2062esac 2063done 2064IFS=$as_save_IFS 2065 2066 2067fi 2068 if test "${ac_cv_path_install+set}" = set; then 2069 INSTALL=$ac_cv_path_install 2070 else 2071 # As a last resort, use the slow shell script. Don't cache a 2072 # value for INSTALL within a source directory, because that will 2073 # break other packages using the cache if that directory is 2074 # removed, or if the value is a relative name. 2075 INSTALL=$ac_install_sh 2076 fi 2077fi 2078{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2079echo "${ECHO_T}$INSTALL" >&6; } 2080 2081# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2082# It thinks the first close brace ends the variable substitution. 2083test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2084 2085test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2086 2087test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2088 2089{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2090echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2091# Just in case 2092sleep 1 2093echo timestamp > conftest.file 2094# Do `set' in a subshell so we don't clobber the current shell's 2095# arguments. Must try -L first in case configure is actually a 2096# symlink; some systems play weird games with the mod time of symlinks 2097# (eg FreeBSD returns the mod time of the symlink's containing 2098# directory). 2099if ( 2100 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2101 if test "$*" = "X"; then 2102 # -L didn't work. 2103 set X `ls -t $srcdir/configure conftest.file` 2104 fi 2105 rm -f conftest.file 2106 if test "$*" != "X $srcdir/configure conftest.file" \ 2107 && test "$*" != "X conftest.file $srcdir/configure"; then 2108 2109 # If neither matched, then we have a broken ls. This can happen 2110 # if, for instance, CONFIG_SHELL is bash and it inherits a 2111 # broken ls alias from the environment. This has actually 2112 # happened. Such a system could not be considered "sane". 2113 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2114alias in your environment" >&5 2115echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2116alias in your environment" >&2;} 2117 { (exit 1); exit 1; }; } 2118 fi 2119 2120 test "$2" = conftest.file 2121 ) 2122then 2123 # Ok. 2124 : 2125else 2126 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2127Check your system clock" >&5 2128echo "$as_me: error: newly created file is older than distributed files! 2129Check your system clock" >&2;} 2130 { (exit 1); exit 1; }; } 2131fi 2132{ echo "$as_me:$LINENO: result: yes" >&5 2133echo "${ECHO_T}yes" >&6; } 2134test "$program_prefix" != NONE && 2135 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2136# Use a double $ so make ignores it. 2137test "$program_suffix" != NONE && 2138 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2139# Double any \ or $. echo might interpret backslashes. 2140# By default was `s,x,x', remove it if useless. 2141cat <<\_ACEOF >conftest.sed 2142s/[\\$]/&&/g;s/;s,x,x,$// 2143_ACEOF 2144program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2145rm -f conftest.sed 2146 2147# expand $ac_aux_dir to an absolute path 2148am_aux_dir=`cd $ac_aux_dir && pwd` 2149 2150test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2151# Use eval to expand $SHELL 2152if eval "$MISSING --run true"; then 2153 am_missing_run="$MISSING --run " 2154else 2155 am_missing_run= 2156 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2157echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2158fi 2159 2160{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2161echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2162if test -z "$MKDIR_P"; then 2163 if test "${ac_cv_path_mkdir+set}" = set; then 2164 echo $ECHO_N "(cached) $ECHO_C" >&6 2165else 2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2167for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2168do 2169 IFS=$as_save_IFS 2170 test -z "$as_dir" && as_dir=. 2171 for ac_prog in mkdir gmkdir; do 2172 for ac_exec_ext in '' $ac_executable_extensions; do 2173 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2174 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2175 'mkdir (GNU coreutils) '* | \ 2176 'mkdir (coreutils) '* | \ 2177 'mkdir (fileutils) '4.1*) 2178 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2179 break 3;; 2180 esac 2181 done 2182 done 2183done 2184IFS=$as_save_IFS 2185 2186fi 2187 2188 if test "${ac_cv_path_mkdir+set}" = set; then 2189 MKDIR_P="$ac_cv_path_mkdir -p" 2190 else 2191 # As a last resort, use the slow shell script. Don't cache a 2192 # value for MKDIR_P within a source directory, because that will 2193 # break other packages using the cache if that directory is 2194 # removed, or if the value is a relative name. 2195 test -d ./--version && rmdir ./--version 2196 MKDIR_P="$ac_install_sh -d" 2197 fi 2198fi 2199{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2200echo "${ECHO_T}$MKDIR_P" >&6; } 2201 2202mkdir_p="$MKDIR_P" 2203case $mkdir_p in 2204 [\\/$]* | ?:[\\/]*) ;; 2205 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2206esac 2207 2208for ac_prog in gawk mawk nawk awk 2209do 2210 # Extract the first word of "$ac_prog", so it can be a program name with args. 2211set dummy $ac_prog; ac_word=$2 2212{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2214if test "${ac_cv_prog_AWK+set}" = set; then 2215 echo $ECHO_N "(cached) $ECHO_C" >&6 2216else 2217 if test -n "$AWK"; then 2218 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2219else 2220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2221for as_dir in $PATH 2222do 2223 IFS=$as_save_IFS 2224 test -z "$as_dir" && as_dir=. 2225 for ac_exec_ext in '' $ac_executable_extensions; do 2226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2227 ac_cv_prog_AWK="$ac_prog" 2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2229 break 2 2230 fi 2231done 2232done 2233IFS=$as_save_IFS 2234 2235fi 2236fi 2237AWK=$ac_cv_prog_AWK 2238if test -n "$AWK"; then 2239 { echo "$as_me:$LINENO: result: $AWK" >&5 2240echo "${ECHO_T}$AWK" >&6; } 2241else 2242 { echo "$as_me:$LINENO: result: no" >&5 2243echo "${ECHO_T}no" >&6; } 2244fi 2245 2246 2247 test -n "$AWK" && break 2248done 2249 2250{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2251echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2252set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2253if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2254 echo $ECHO_N "(cached) $ECHO_C" >&6 2255else 2256 cat >conftest.make <<\_ACEOF 2257SHELL = /bin/sh 2258all: 2259 @echo '@@@%%%=$(MAKE)=@@@%%%' 2260_ACEOF 2261# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2262case `${MAKE-make} -f conftest.make 2>/dev/null` in 2263 *@@@%%%=?*=@@@%%%*) 2264 eval ac_cv_prog_make_${ac_make}_set=yes;; 2265 *) 2266 eval ac_cv_prog_make_${ac_make}_set=no;; 2267esac 2268rm -f conftest.make 2269fi 2270if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2271 { echo "$as_me:$LINENO: result: yes" >&5 2272echo "${ECHO_T}yes" >&6; } 2273 SET_MAKE= 2274else 2275 { echo "$as_me:$LINENO: result: no" >&5 2276echo "${ECHO_T}no" >&6; } 2277 SET_MAKE="MAKE=${MAKE-make}" 2278fi 2279 2280rm -rf .tst 2>/dev/null 2281mkdir .tst 2>/dev/null 2282if test -d .tst; then 2283 am__leading_dot=. 2284else 2285 am__leading_dot=_ 2286fi 2287rmdir .tst 2>/dev/null 2288 2289if test "`cd $srcdir && pwd`" != "`pwd`"; then 2290 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2291 # is not polluted with repeated "-I." 2292 am__isrc=' -I$(srcdir)' 2293 # test to see if srcdir already configured 2294 if test -f $srcdir/config.status; then 2295 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2296echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2297 { (exit 1); exit 1; }; } 2298 fi 2299fi 2300 2301# test whether we have cygpath 2302if test -z "$CYGPATH_W"; then 2303 if (cygpath --version) >/dev/null 2>/dev/null; then 2304 CYGPATH_W='cygpath -w' 2305 else 2306 CYGPATH_W=echo 2307 fi 2308fi 2309 2310 2311# Define the identity of the package. 2312 PACKAGE='libXScrnSaver' 2313 VERSION='1.1.3' 2314 2315 2316cat >>confdefs.h <<_ACEOF 2317#define PACKAGE "$PACKAGE" 2318_ACEOF 2319 2320 2321cat >>confdefs.h <<_ACEOF 2322#define VERSION "$VERSION" 2323_ACEOF 2324 2325# Some tools Automake needs. 2326 2327ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2328 2329 2330AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2331 2332 2333AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2334 2335 2336AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2337 2338 2339MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2340 2341install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2342 2343# Installed binaries are usually stripped using `strip' when the user 2344# run `make install-strip'. However `strip' might not be the right 2345# tool to use in cross-compilation environments, therefore Automake 2346# will honor the `STRIP' environment variable to overrule this program. 2347if test "$cross_compiling" != no; then 2348 if test -n "$ac_tool_prefix"; then 2349 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2350set dummy ${ac_tool_prefix}strip; ac_word=$2 2351{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2353if test "${ac_cv_prog_STRIP+set}" = set; then 2354 echo $ECHO_N "(cached) $ECHO_C" >&6 2355else 2356 if test -n "$STRIP"; then 2357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2358else 2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2360for as_dir in $PATH 2361do 2362 IFS=$as_save_IFS 2363 test -z "$as_dir" && as_dir=. 2364 for ac_exec_ext in '' $ac_executable_extensions; do 2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2366 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2368 break 2 2369 fi 2370done 2371done 2372IFS=$as_save_IFS 2373 2374fi 2375fi 2376STRIP=$ac_cv_prog_STRIP 2377if test -n "$STRIP"; then 2378 { echo "$as_me:$LINENO: result: $STRIP" >&5 2379echo "${ECHO_T}$STRIP" >&6; } 2380else 2381 { echo "$as_me:$LINENO: result: no" >&5 2382echo "${ECHO_T}no" >&6; } 2383fi 2384 2385 2386fi 2387if test -z "$ac_cv_prog_STRIP"; then 2388 ac_ct_STRIP=$STRIP 2389 # Extract the first word of "strip", so it can be a program name with args. 2390set dummy strip; ac_word=$2 2391{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2393if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2394 echo $ECHO_N "(cached) $ECHO_C" >&6 2395else 2396 if test -n "$ac_ct_STRIP"; then 2397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2398else 2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2400for as_dir in $PATH 2401do 2402 IFS=$as_save_IFS 2403 test -z "$as_dir" && as_dir=. 2404 for ac_exec_ext in '' $ac_executable_extensions; do 2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2406 ac_cv_prog_ac_ct_STRIP="strip" 2407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2408 break 2 2409 fi 2410done 2411done 2412IFS=$as_save_IFS 2413 2414fi 2415fi 2416ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2417if test -n "$ac_ct_STRIP"; then 2418 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2419echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2420else 2421 { echo "$as_me:$LINENO: result: no" >&5 2422echo "${ECHO_T}no" >&6; } 2423fi 2424 2425 if test "x$ac_ct_STRIP" = x; then 2426 STRIP=":" 2427 else 2428 case $cross_compiling:$ac_tool_warned in 2429yes:) 2430{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2431whose name does not start with the host triplet. If you think this 2432configuration is useful to you, please write to autoconf@gnu.org." >&5 2433echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2434whose name does not start with the host triplet. If you think this 2435configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2436ac_tool_warned=yes ;; 2437esac 2438 STRIP=$ac_ct_STRIP 2439 fi 2440else 2441 STRIP="$ac_cv_prog_STRIP" 2442fi 2443 2444fi 2445INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2446 2447# We need awk for the "check" target. The system "awk" is bad on 2448# some platforms. 2449# Always define AMTAR for backward compatibility. 2450 2451AMTAR=${AMTAR-"${am_missing_run}tar"} 2452 2453am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2454 2455 2456 2457 2458 2459{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2460echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2461 # Check whether --enable-maintainer-mode was given. 2462if test "${enable_maintainer_mode+set}" = set; then 2463 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2464else 2465 USE_MAINTAINER_MODE=no 2466fi 2467 2468 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2469echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2470 if test $USE_MAINTAINER_MODE = yes; then 2471 MAINTAINER_MODE_TRUE= 2472 MAINTAINER_MODE_FALSE='#' 2473else 2474 MAINTAINER_MODE_TRUE='#' 2475 MAINTAINER_MODE_FALSE= 2476fi 2477 2478 MAINT=$MAINTAINER_MODE_TRUE 2479 2480 2481 2482ac_config_headers="$ac_config_headers config.h" 2483 2484 2485# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro 2486 2487 2488 XORG_MACROS_needed_version=1.1 2489 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 2490 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 2491 { echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5 2492echo $ECHO_N "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... $ECHO_C" >&6; } 2493 XORG_MACROS_version=1.1.6 2494 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 2495 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 2496 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 2497 { { echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5 2498echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;} 2499 { (exit 1); exit 1; }; } 2500 fi 2501 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 2502 { { echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5 2503echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;} 2504 { (exit 1); exit 1; }; } 2505 fi 2506 { echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5 2507echo "${ECHO_T}yes, $XORG_MACROS_version" >&6; } 2508 2509 2510# Check for progs 2511ac_ext=c 2512ac_cpp='$CPP $CPPFLAGS' 2513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2515ac_compiler_gnu=$ac_cv_c_compiler_gnu 2516if test -n "$ac_tool_prefix"; then 2517 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2518set dummy ${ac_tool_prefix}gcc; ac_word=$2 2519{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2521if test "${ac_cv_prog_CC+set}" = set; then 2522 echo $ECHO_N "(cached) $ECHO_C" >&6 2523else 2524 if test -n "$CC"; then 2525 ac_cv_prog_CC="$CC" # Let the user override the test. 2526else 2527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2528for as_dir in $PATH 2529do 2530 IFS=$as_save_IFS 2531 test -z "$as_dir" && as_dir=. 2532 for ac_exec_ext in '' $ac_executable_extensions; do 2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2534 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2536 break 2 2537 fi 2538done 2539done 2540IFS=$as_save_IFS 2541 2542fi 2543fi 2544CC=$ac_cv_prog_CC 2545if test -n "$CC"; then 2546 { echo "$as_me:$LINENO: result: $CC" >&5 2547echo "${ECHO_T}$CC" >&6; } 2548else 2549 { echo "$as_me:$LINENO: result: no" >&5 2550echo "${ECHO_T}no" >&6; } 2551fi 2552 2553 2554fi 2555if test -z "$ac_cv_prog_CC"; then 2556 ac_ct_CC=$CC 2557 # Extract the first word of "gcc", so it can be a program name with args. 2558set dummy gcc; ac_word=$2 2559{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2561if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2562 echo $ECHO_N "(cached) $ECHO_C" >&6 2563else 2564 if test -n "$ac_ct_CC"; then 2565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2566else 2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2568for as_dir in $PATH 2569do 2570 IFS=$as_save_IFS 2571 test -z "$as_dir" && as_dir=. 2572 for ac_exec_ext in '' $ac_executable_extensions; do 2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2574 ac_cv_prog_ac_ct_CC="gcc" 2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2576 break 2 2577 fi 2578done 2579done 2580IFS=$as_save_IFS 2581 2582fi 2583fi 2584ac_ct_CC=$ac_cv_prog_ac_ct_CC 2585if test -n "$ac_ct_CC"; then 2586 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2587echo "${ECHO_T}$ac_ct_CC" >&6; } 2588else 2589 { echo "$as_me:$LINENO: result: no" >&5 2590echo "${ECHO_T}no" >&6; } 2591fi 2592 2593 if test "x$ac_ct_CC" = x; then 2594 CC="" 2595 else 2596 case $cross_compiling:$ac_tool_warned in 2597yes:) 2598{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2599whose name does not start with the host triplet. If you think this 2600configuration is useful to you, please write to autoconf@gnu.org." >&5 2601echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2602whose name does not start with the host triplet. If you think this 2603configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2604ac_tool_warned=yes ;; 2605esac 2606 CC=$ac_ct_CC 2607 fi 2608else 2609 CC="$ac_cv_prog_CC" 2610fi 2611 2612if test -z "$CC"; then 2613 if test -n "$ac_tool_prefix"; then 2614 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2615set dummy ${ac_tool_prefix}cc; ac_word=$2 2616{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2618if test "${ac_cv_prog_CC+set}" = set; then 2619 echo $ECHO_N "(cached) $ECHO_C" >&6 2620else 2621 if test -n "$CC"; then 2622 ac_cv_prog_CC="$CC" # Let the user override the test. 2623else 2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2625for as_dir in $PATH 2626do 2627 IFS=$as_save_IFS 2628 test -z "$as_dir" && as_dir=. 2629 for ac_exec_ext in '' $ac_executable_extensions; do 2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2631 ac_cv_prog_CC="${ac_tool_prefix}cc" 2632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2633 break 2 2634 fi 2635done 2636done 2637IFS=$as_save_IFS 2638 2639fi 2640fi 2641CC=$ac_cv_prog_CC 2642if test -n "$CC"; then 2643 { echo "$as_me:$LINENO: result: $CC" >&5 2644echo "${ECHO_T}$CC" >&6; } 2645else 2646 { echo "$as_me:$LINENO: result: no" >&5 2647echo "${ECHO_T}no" >&6; } 2648fi 2649 2650 2651 fi 2652fi 2653if test -z "$CC"; then 2654 # Extract the first word of "cc", so it can be a program name with args. 2655set dummy cc; ac_word=$2 2656{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2658if test "${ac_cv_prog_CC+set}" = set; then 2659 echo $ECHO_N "(cached) $ECHO_C" >&6 2660else 2661 if test -n "$CC"; then 2662 ac_cv_prog_CC="$CC" # Let the user override the test. 2663else 2664 ac_prog_rejected=no 2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2666for as_dir in $PATH 2667do 2668 IFS=$as_save_IFS 2669 test -z "$as_dir" && as_dir=. 2670 for ac_exec_ext in '' $ac_executable_extensions; do 2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2672 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2673 ac_prog_rejected=yes 2674 continue 2675 fi 2676 ac_cv_prog_CC="cc" 2677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2678 break 2 2679 fi 2680done 2681done 2682IFS=$as_save_IFS 2683 2684if test $ac_prog_rejected = yes; then 2685 # We found a bogon in the path, so make sure we never use it. 2686 set dummy $ac_cv_prog_CC 2687 shift 2688 if test $# != 0; then 2689 # We chose a different compiler from the bogus one. 2690 # However, it has the same basename, so the bogon will be chosen 2691 # first if we set CC to just the basename; use the full file name. 2692 shift 2693 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2694 fi 2695fi 2696fi 2697fi 2698CC=$ac_cv_prog_CC 2699if test -n "$CC"; then 2700 { echo "$as_me:$LINENO: result: $CC" >&5 2701echo "${ECHO_T}$CC" >&6; } 2702else 2703 { echo "$as_me:$LINENO: result: no" >&5 2704echo "${ECHO_T}no" >&6; } 2705fi 2706 2707 2708fi 2709if test -z "$CC"; then 2710 if test -n "$ac_tool_prefix"; then 2711 for ac_prog in cl.exe 2712 do 2713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2714set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2715{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2717if test "${ac_cv_prog_CC+set}" = set; then 2718 echo $ECHO_N "(cached) $ECHO_C" >&6 2719else 2720 if test -n "$CC"; then 2721 ac_cv_prog_CC="$CC" # Let the user override the test. 2722else 2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2724for as_dir in $PATH 2725do 2726 IFS=$as_save_IFS 2727 test -z "$as_dir" && as_dir=. 2728 for ac_exec_ext in '' $ac_executable_extensions; do 2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2730 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2732 break 2 2733 fi 2734done 2735done 2736IFS=$as_save_IFS 2737 2738fi 2739fi 2740CC=$ac_cv_prog_CC 2741if test -n "$CC"; then 2742 { echo "$as_me:$LINENO: result: $CC" >&5 2743echo "${ECHO_T}$CC" >&6; } 2744else 2745 { echo "$as_me:$LINENO: result: no" >&5 2746echo "${ECHO_T}no" >&6; } 2747fi 2748 2749 2750 test -n "$CC" && break 2751 done 2752fi 2753if test -z "$CC"; then 2754 ac_ct_CC=$CC 2755 for ac_prog in cl.exe 2756do 2757 # Extract the first word of "$ac_prog", so it can be a program name with args. 2758set dummy $ac_prog; ac_word=$2 2759{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2761if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2762 echo $ECHO_N "(cached) $ECHO_C" >&6 2763else 2764 if test -n "$ac_ct_CC"; then 2765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2766else 2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2768for as_dir in $PATH 2769do 2770 IFS=$as_save_IFS 2771 test -z "$as_dir" && as_dir=. 2772 for ac_exec_ext in '' $ac_executable_extensions; do 2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2774 ac_cv_prog_ac_ct_CC="$ac_prog" 2775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2776 break 2 2777 fi 2778done 2779done 2780IFS=$as_save_IFS 2781 2782fi 2783fi 2784ac_ct_CC=$ac_cv_prog_ac_ct_CC 2785if test -n "$ac_ct_CC"; then 2786 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2787echo "${ECHO_T}$ac_ct_CC" >&6; } 2788else 2789 { echo "$as_me:$LINENO: result: no" >&5 2790echo "${ECHO_T}no" >&6; } 2791fi 2792 2793 2794 test -n "$ac_ct_CC" && break 2795done 2796 2797 if test "x$ac_ct_CC" = x; then 2798 CC="" 2799 else 2800 case $cross_compiling:$ac_tool_warned in 2801yes:) 2802{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2803whose name does not start with the host triplet. If you think this 2804configuration is useful to you, please write to autoconf@gnu.org." >&5 2805echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2806whose name does not start with the host triplet. If you think this 2807configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2808ac_tool_warned=yes ;; 2809esac 2810 CC=$ac_ct_CC 2811 fi 2812fi 2813 2814fi 2815 2816 2817test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2818See \`config.log' for more details." >&5 2819echo "$as_me: error: no acceptable C compiler found in \$PATH 2820See \`config.log' for more details." >&2;} 2821 { (exit 1); exit 1; }; } 2822 2823# Provide some information about the compiler. 2824echo "$as_me:$LINENO: checking for C compiler version" >&5 2825ac_compiler=`set X $ac_compile; echo $2` 2826{ (ac_try="$ac_compiler --version >&5" 2827case "(($ac_try" in 2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2829 *) ac_try_echo=$ac_try;; 2830esac 2831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2832 (eval "$ac_compiler --version >&5") 2>&5 2833 ac_status=$? 2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2835 (exit $ac_status); } 2836{ (ac_try="$ac_compiler -v >&5" 2837case "(($ac_try" in 2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2839 *) ac_try_echo=$ac_try;; 2840esac 2841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2842 (eval "$ac_compiler -v >&5") 2>&5 2843 ac_status=$? 2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2845 (exit $ac_status); } 2846{ (ac_try="$ac_compiler -V >&5" 2847case "(($ac_try" in 2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2849 *) ac_try_echo=$ac_try;; 2850esac 2851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2852 (eval "$ac_compiler -V >&5") 2>&5 2853 ac_status=$? 2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2855 (exit $ac_status); } 2856 2857cat >conftest.$ac_ext <<_ACEOF 2858/* confdefs.h. */ 2859_ACEOF 2860cat confdefs.h >>conftest.$ac_ext 2861cat >>conftest.$ac_ext <<_ACEOF 2862/* end confdefs.h. */ 2863 2864int 2865main () 2866{ 2867 2868 ; 2869 return 0; 2870} 2871_ACEOF 2872ac_clean_files_save=$ac_clean_files 2873ac_clean_files="$ac_clean_files a.out a.exe b.out" 2874# Try to create an executable without -o first, disregard a.out. 2875# It will help us diagnose broken compilers, and finding out an intuition 2876# of exeext. 2877{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2878echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2879ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2880# 2881# List of possible output files, starting from the most likely. 2882# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2883# only as a last resort. b.out is created by i960 compilers. 2884ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2885# 2886# The IRIX 6 linker writes into existing files which may not be 2887# executable, retaining their permissions. Remove them first so a 2888# subsequent execution test works. 2889ac_rmfiles= 2890for ac_file in $ac_files 2891do 2892 case $ac_file in 2893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2894 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2895 esac 2896done 2897rm -f $ac_rmfiles 2898 2899if { (ac_try="$ac_link_default" 2900case "(($ac_try" in 2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2902 *) ac_try_echo=$ac_try;; 2903esac 2904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2905 (eval "$ac_link_default") 2>&5 2906 ac_status=$? 2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2908 (exit $ac_status); }; then 2909 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2910# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2911# in a Makefile. We should not override ac_cv_exeext if it was cached, 2912# so that the user can short-circuit this test for compilers unknown to 2913# Autoconf. 2914for ac_file in $ac_files '' 2915do 2916 test -f "$ac_file" || continue 2917 case $ac_file in 2918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2919 ;; 2920 [ab].out ) 2921 # We found the default executable, but exeext='' is most 2922 # certainly right. 2923 break;; 2924 *.* ) 2925 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2926 then :; else 2927 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2928 fi 2929 # We set ac_cv_exeext here because the later test for it is not 2930 # safe: cross compilers may not add the suffix if given an `-o' 2931 # argument, so we may need to know it at that point already. 2932 # Even if this section looks crufty: it has the advantage of 2933 # actually working. 2934 break;; 2935 * ) 2936 break;; 2937 esac 2938done 2939test "$ac_cv_exeext" = no && ac_cv_exeext= 2940 2941else 2942 ac_file='' 2943fi 2944 2945{ echo "$as_me:$LINENO: result: $ac_file" >&5 2946echo "${ECHO_T}$ac_file" >&6; } 2947if test -z "$ac_file"; then 2948 echo "$as_me: failed program was:" >&5 2949sed 's/^/| /' conftest.$ac_ext >&5 2950 2951{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2952See \`config.log' for more details." >&5 2953echo "$as_me: error: C compiler cannot create executables 2954See \`config.log' for more details." >&2;} 2955 { (exit 77); exit 77; }; } 2956fi 2957 2958ac_exeext=$ac_cv_exeext 2959 2960# Check that the compiler produces executables we can run. If not, either 2961# the compiler is broken, or we cross compile. 2962{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2963echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2964# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2965# If not cross compiling, check that we can run a simple program. 2966if test "$cross_compiling" != yes; then 2967 if { ac_try='./$ac_file' 2968 { (case "(($ac_try" in 2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2970 *) ac_try_echo=$ac_try;; 2971esac 2972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2973 (eval "$ac_try") 2>&5 2974 ac_status=$? 2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2976 (exit $ac_status); }; }; then 2977 cross_compiling=no 2978 else 2979 if test "$cross_compiling" = maybe; then 2980 cross_compiling=yes 2981 else 2982 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2983If you meant to cross compile, use \`--host'. 2984See \`config.log' for more details." >&5 2985echo "$as_me: error: cannot run C compiled programs. 2986If you meant to cross compile, use \`--host'. 2987See \`config.log' for more details." >&2;} 2988 { (exit 1); exit 1; }; } 2989 fi 2990 fi 2991fi 2992{ echo "$as_me:$LINENO: result: yes" >&5 2993echo "${ECHO_T}yes" >&6; } 2994 2995rm -f a.out a.exe conftest$ac_cv_exeext b.out 2996ac_clean_files=$ac_clean_files_save 2997# Check that the compiler produces executables we can run. If not, either 2998# the compiler is broken, or we cross compile. 2999{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3000echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3001{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3002echo "${ECHO_T}$cross_compiling" >&6; } 3003 3004{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3005echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3006if { (ac_try="$ac_link" 3007case "(($ac_try" in 3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3009 *) ac_try_echo=$ac_try;; 3010esac 3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3012 (eval "$ac_link") 2>&5 3013 ac_status=$? 3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3015 (exit $ac_status); }; then 3016 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3017# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3018# work properly (i.e., refer to `conftest.exe'), while it won't with 3019# `rm'. 3020for ac_file in conftest.exe conftest conftest.*; do 3021 test -f "$ac_file" || continue 3022 case $ac_file in 3023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3024 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3025 break;; 3026 * ) break;; 3027 esac 3028done 3029else 3030 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3031See \`config.log' for more details." >&5 3032echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3033See \`config.log' for more details." >&2;} 3034 { (exit 1); exit 1; }; } 3035fi 3036 3037rm -f conftest$ac_cv_exeext 3038{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3039echo "${ECHO_T}$ac_cv_exeext" >&6; } 3040 3041rm -f conftest.$ac_ext 3042EXEEXT=$ac_cv_exeext 3043ac_exeext=$EXEEXT 3044{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3045echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3046if test "${ac_cv_objext+set}" = set; then 3047 echo $ECHO_N "(cached) $ECHO_C" >&6 3048else 3049 cat >conftest.$ac_ext <<_ACEOF 3050/* confdefs.h. */ 3051_ACEOF 3052cat confdefs.h >>conftest.$ac_ext 3053cat >>conftest.$ac_ext <<_ACEOF 3054/* end confdefs.h. */ 3055 3056int 3057main () 3058{ 3059 3060 ; 3061 return 0; 3062} 3063_ACEOF 3064rm -f conftest.o conftest.obj 3065if { (ac_try="$ac_compile" 3066case "(($ac_try" in 3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3068 *) ac_try_echo=$ac_try;; 3069esac 3070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3071 (eval "$ac_compile") 2>&5 3072 ac_status=$? 3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3074 (exit $ac_status); }; then 3075 for ac_file in conftest.o conftest.obj conftest.*; do 3076 test -f "$ac_file" || continue; 3077 case $ac_file in 3078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3079 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3080 break;; 3081 esac 3082done 3083else 3084 echo "$as_me: failed program was:" >&5 3085sed 's/^/| /' conftest.$ac_ext >&5 3086 3087{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3088See \`config.log' for more details." >&5 3089echo "$as_me: error: cannot compute suffix of object files: cannot compile 3090See \`config.log' for more details." >&2;} 3091 { (exit 1); exit 1; }; } 3092fi 3093 3094rm -f conftest.$ac_cv_objext conftest.$ac_ext 3095fi 3096{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3097echo "${ECHO_T}$ac_cv_objext" >&6; } 3098OBJEXT=$ac_cv_objext 3099ac_objext=$OBJEXT 3100{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3101echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3102if test "${ac_cv_c_compiler_gnu+set}" = set; then 3103 echo $ECHO_N "(cached) $ECHO_C" >&6 3104else 3105 cat >conftest.$ac_ext <<_ACEOF 3106/* confdefs.h. */ 3107_ACEOF 3108cat confdefs.h >>conftest.$ac_ext 3109cat >>conftest.$ac_ext <<_ACEOF 3110/* end confdefs.h. */ 3111 3112int 3113main () 3114{ 3115#ifndef __GNUC__ 3116 choke me 3117#endif 3118 3119 ; 3120 return 0; 3121} 3122_ACEOF 3123rm -f conftest.$ac_objext 3124if { (ac_try="$ac_compile" 3125case "(($ac_try" in 3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3127 *) ac_try_echo=$ac_try;; 3128esac 3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3130 (eval "$ac_compile") 2>conftest.er1 3131 ac_status=$? 3132 grep -v '^ *+' conftest.er1 >conftest.err 3133 rm -f conftest.er1 3134 cat conftest.err >&5 3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3136 (exit $ac_status); } && { 3137 test -z "$ac_c_werror_flag" || 3138 test ! -s conftest.err 3139 } && test -s conftest.$ac_objext; then 3140 ac_compiler_gnu=yes 3141else 3142 echo "$as_me: failed program was:" >&5 3143sed 's/^/| /' conftest.$ac_ext >&5 3144 3145 ac_compiler_gnu=no 3146fi 3147 3148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3149ac_cv_c_compiler_gnu=$ac_compiler_gnu 3150 3151fi 3152{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3153echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3154GCC=`test $ac_compiler_gnu = yes && echo yes` 3155ac_test_CFLAGS=${CFLAGS+set} 3156ac_save_CFLAGS=$CFLAGS 3157{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3158echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3159if test "${ac_cv_prog_cc_g+set}" = set; then 3160 echo $ECHO_N "(cached) $ECHO_C" >&6 3161else 3162 ac_save_c_werror_flag=$ac_c_werror_flag 3163 ac_c_werror_flag=yes 3164 ac_cv_prog_cc_g=no 3165 CFLAGS="-g" 3166 cat >conftest.$ac_ext <<_ACEOF 3167/* confdefs.h. */ 3168_ACEOF 3169cat confdefs.h >>conftest.$ac_ext 3170cat >>conftest.$ac_ext <<_ACEOF 3171/* end confdefs.h. */ 3172 3173int 3174main () 3175{ 3176 3177 ; 3178 return 0; 3179} 3180_ACEOF 3181rm -f conftest.$ac_objext 3182if { (ac_try="$ac_compile" 3183case "(($ac_try" in 3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3185 *) ac_try_echo=$ac_try;; 3186esac 3187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3188 (eval "$ac_compile") 2>conftest.er1 3189 ac_status=$? 3190 grep -v '^ *+' conftest.er1 >conftest.err 3191 rm -f conftest.er1 3192 cat conftest.err >&5 3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3194 (exit $ac_status); } && { 3195 test -z "$ac_c_werror_flag" || 3196 test ! -s conftest.err 3197 } && test -s conftest.$ac_objext; then 3198 ac_cv_prog_cc_g=yes 3199else 3200 echo "$as_me: failed program was:" >&5 3201sed 's/^/| /' conftest.$ac_ext >&5 3202 3203 CFLAGS="" 3204 cat >conftest.$ac_ext <<_ACEOF 3205/* confdefs.h. */ 3206_ACEOF 3207cat confdefs.h >>conftest.$ac_ext 3208cat >>conftest.$ac_ext <<_ACEOF 3209/* end confdefs.h. */ 3210 3211int 3212main () 3213{ 3214 3215 ; 3216 return 0; 3217} 3218_ACEOF 3219rm -f conftest.$ac_objext 3220if { (ac_try="$ac_compile" 3221case "(($ac_try" in 3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3223 *) ac_try_echo=$ac_try;; 3224esac 3225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3226 (eval "$ac_compile") 2>conftest.er1 3227 ac_status=$? 3228 grep -v '^ *+' conftest.er1 >conftest.err 3229 rm -f conftest.er1 3230 cat conftest.err >&5 3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3232 (exit $ac_status); } && { 3233 test -z "$ac_c_werror_flag" || 3234 test ! -s conftest.err 3235 } && test -s conftest.$ac_objext; then 3236 : 3237else 3238 echo "$as_me: failed program was:" >&5 3239sed 's/^/| /' conftest.$ac_ext >&5 3240 3241 ac_c_werror_flag=$ac_save_c_werror_flag 3242 CFLAGS="-g" 3243 cat >conftest.$ac_ext <<_ACEOF 3244/* confdefs.h. */ 3245_ACEOF 3246cat confdefs.h >>conftest.$ac_ext 3247cat >>conftest.$ac_ext <<_ACEOF 3248/* end confdefs.h. */ 3249 3250int 3251main () 3252{ 3253 3254 ; 3255 return 0; 3256} 3257_ACEOF 3258rm -f conftest.$ac_objext 3259if { (ac_try="$ac_compile" 3260case "(($ac_try" in 3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3262 *) ac_try_echo=$ac_try;; 3263esac 3264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3265 (eval "$ac_compile") 2>conftest.er1 3266 ac_status=$? 3267 grep -v '^ *+' conftest.er1 >conftest.err 3268 rm -f conftest.er1 3269 cat conftest.err >&5 3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3271 (exit $ac_status); } && { 3272 test -z "$ac_c_werror_flag" || 3273 test ! -s conftest.err 3274 } && test -s conftest.$ac_objext; then 3275 ac_cv_prog_cc_g=yes 3276else 3277 echo "$as_me: failed program was:" >&5 3278sed 's/^/| /' conftest.$ac_ext >&5 3279 3280 3281fi 3282 3283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3284fi 3285 3286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3287fi 3288 3289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3290 ac_c_werror_flag=$ac_save_c_werror_flag 3291fi 3292{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3293echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3294if test "$ac_test_CFLAGS" = set; then 3295 CFLAGS=$ac_save_CFLAGS 3296elif test $ac_cv_prog_cc_g = yes; then 3297 if test "$GCC" = yes; then 3298 CFLAGS="-g -O2" 3299 else 3300 CFLAGS="-g" 3301 fi 3302else 3303 if test "$GCC" = yes; then 3304 CFLAGS="-O2" 3305 else 3306 CFLAGS= 3307 fi 3308fi 3309{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3310echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3311if test "${ac_cv_prog_cc_c89+set}" = set; then 3312 echo $ECHO_N "(cached) $ECHO_C" >&6 3313else 3314 ac_cv_prog_cc_c89=no 3315ac_save_CC=$CC 3316cat >conftest.$ac_ext <<_ACEOF 3317/* confdefs.h. */ 3318_ACEOF 3319cat confdefs.h >>conftest.$ac_ext 3320cat >>conftest.$ac_ext <<_ACEOF 3321/* end confdefs.h. */ 3322#include <stdarg.h> 3323#include <stdio.h> 3324#include <sys/types.h> 3325#include <sys/stat.h> 3326/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3327struct buf { int x; }; 3328FILE * (*rcsopen) (struct buf *, struct stat *, int); 3329static char *e (p, i) 3330 char **p; 3331 int i; 3332{ 3333 return p[i]; 3334} 3335static char *f (char * (*g) (char **, int), char **p, ...) 3336{ 3337 char *s; 3338 va_list v; 3339 va_start (v,p); 3340 s = g (p, va_arg (v,int)); 3341 va_end (v); 3342 return s; 3343} 3344 3345/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3346 function prototypes and stuff, but not '\xHH' hex character constants. 3347 These don't provoke an error unfortunately, instead are silently treated 3348 as 'x'. The following induces an error, until -std is added to get 3349 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3350 array size at least. It's necessary to write '\x00'==0 to get something 3351 that's true only with -std. */ 3352int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3353 3354/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3355 inside strings and character constants. */ 3356#define FOO(x) 'x' 3357int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3358 3359int test (int i, double x); 3360struct s1 {int (*f) (int a);}; 3361struct s2 {int (*f) (double a);}; 3362int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3363int argc; 3364char **argv; 3365int 3366main () 3367{ 3368return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3369 ; 3370 return 0; 3371} 3372_ACEOF 3373for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3374 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3375do 3376 CC="$ac_save_CC $ac_arg" 3377 rm -f conftest.$ac_objext 3378if { (ac_try="$ac_compile" 3379case "(($ac_try" in 3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3381 *) ac_try_echo=$ac_try;; 3382esac 3383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3384 (eval "$ac_compile") 2>conftest.er1 3385 ac_status=$? 3386 grep -v '^ *+' conftest.er1 >conftest.err 3387 rm -f conftest.er1 3388 cat conftest.err >&5 3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3390 (exit $ac_status); } && { 3391 test -z "$ac_c_werror_flag" || 3392 test ! -s conftest.err 3393 } && test -s conftest.$ac_objext; then 3394 ac_cv_prog_cc_c89=$ac_arg 3395else 3396 echo "$as_me: failed program was:" >&5 3397sed 's/^/| /' conftest.$ac_ext >&5 3398 3399 3400fi 3401 3402rm -f core conftest.err conftest.$ac_objext 3403 test "x$ac_cv_prog_cc_c89" != "xno" && break 3404done 3405rm -f conftest.$ac_ext 3406CC=$ac_save_CC 3407 3408fi 3409# AC_CACHE_VAL 3410case "x$ac_cv_prog_cc_c89" in 3411 x) 3412 { echo "$as_me:$LINENO: result: none needed" >&5 3413echo "${ECHO_T}none needed" >&6; } ;; 3414 xno) 3415 { echo "$as_me:$LINENO: result: unsupported" >&5 3416echo "${ECHO_T}unsupported" >&6; } ;; 3417 *) 3418 CC="$CC $ac_cv_prog_cc_c89" 3419 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3420echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3421esac 3422 3423 3424ac_ext=c 3425ac_cpp='$CPP $CPPFLAGS' 3426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3428ac_compiler_gnu=$ac_cv_c_compiler_gnu 3429DEPDIR="${am__leading_dot}deps" 3430 3431ac_config_commands="$ac_config_commands depfiles" 3432 3433 3434am_make=${MAKE-make} 3435cat > confinc << 'END' 3436am__doit: 3437 @echo done 3438.PHONY: am__doit 3439END 3440# If we don't find an include directive, just comment out the code. 3441{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3442echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3443am__include="#" 3444am__quote= 3445_am_result=none 3446# First try GNU make style include. 3447echo "include confinc" > confmf 3448# We grep out `Entering directory' and `Leaving directory' 3449# messages which can occur if `w' ends up in MAKEFLAGS. 3450# In particular we don't look at `^make:' because GNU make might 3451# be invoked under some other name (usually "gmake"), in which 3452# case it prints its new name instead of `make'. 3453if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3454 am__include=include 3455 am__quote= 3456 _am_result=GNU 3457fi 3458# Now try BSD make style include. 3459if test "$am__include" = "#"; then 3460 echo '.include "confinc"' > confmf 3461 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3462 am__include=.include 3463 am__quote="\"" 3464 _am_result=BSD 3465 fi 3466fi 3467 3468 3469{ echo "$as_me:$LINENO: result: $_am_result" >&5 3470echo "${ECHO_T}$_am_result" >&6; } 3471rm -f confinc confmf 3472 3473# Check whether --enable-dependency-tracking was given. 3474if test "${enable_dependency_tracking+set}" = set; then 3475 enableval=$enable_dependency_tracking; 3476fi 3477 3478if test "x$enable_dependency_tracking" != xno; then 3479 am_depcomp="$ac_aux_dir/depcomp" 3480 AMDEPBACKSLASH='\' 3481fi 3482 if test "x$enable_dependency_tracking" != xno; then 3483 AMDEP_TRUE= 3484 AMDEP_FALSE='#' 3485else 3486 AMDEP_TRUE='#' 3487 AMDEP_FALSE= 3488fi 3489 3490 3491 3492depcc="$CC" am_compiler_list= 3493 3494{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3495echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3496if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3497 echo $ECHO_N "(cached) $ECHO_C" >&6 3498else 3499 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3500 # We make a subdir and do the tests there. Otherwise we can end up 3501 # making bogus files that we don't know about and never remove. For 3502 # instance it was reported that on HP-UX the gcc test will end up 3503 # making a dummy file named `D' -- because `-MD' means `put the output 3504 # in D'. 3505 mkdir conftest.dir 3506 # Copy depcomp to subdir because otherwise we won't find it if we're 3507 # using a relative directory. 3508 cp "$am_depcomp" conftest.dir 3509 cd conftest.dir 3510 # We will build objects and dependencies in a subdirectory because 3511 # it helps to detect inapplicable dependency modes. For instance 3512 # both Tru64's cc and ICC support -MD to output dependencies as a 3513 # side effect of compilation, but ICC will put the dependencies in 3514 # the current directory while Tru64 will put them in the object 3515 # directory. 3516 mkdir sub 3517 3518 am_cv_CC_dependencies_compiler_type=none 3519 if test "$am_compiler_list" = ""; then 3520 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3521 fi 3522 for depmode in $am_compiler_list; do 3523 # Setup a source with many dependencies, because some compilers 3524 # like to wrap large dependency lists on column 80 (with \), and 3525 # we should not choose a depcomp mode which is confused by this. 3526 # 3527 # We need to recreate these files for each test, as the compiler may 3528 # overwrite some of them when testing with obscure command lines. 3529 # This happens at least with the AIX C compiler. 3530 : > sub/conftest.c 3531 for i in 1 2 3 4 5 6; do 3532 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3533 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3534 # Solaris 8's {/usr,}/bin/sh. 3535 touch sub/conftst$i.h 3536 done 3537 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3538 3539 case $depmode in 3540 nosideeffect) 3541 # after this tag, mechanisms are not by side-effect, so they'll 3542 # only be used when explicitly requested 3543 if test "x$enable_dependency_tracking" = xyes; then 3544 continue 3545 else 3546 break 3547 fi 3548 ;; 3549 none) break ;; 3550 esac 3551 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3552 # mode. It turns out that the SunPro C++ compiler does not properly 3553 # handle `-M -o', and we need to detect this. 3554 if depmode=$depmode \ 3555 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3556 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3557 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3558 >/dev/null 2>conftest.err && 3559 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3560 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3561 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3562 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3563 # icc doesn't choke on unknown options, it will just issue warnings 3564 # or remarks (even with -Werror). So we grep stderr for any message 3565 # that says an option was ignored or not supported. 3566 # When given -MP, icc 7.0 and 7.1 complain thusly: 3567 # icc: Command line warning: ignoring option '-M'; no argument required 3568 # The diagnosis changed in icc 8.0: 3569 # icc: Command line remark: option '-MP' not supported 3570 if (grep 'ignoring option' conftest.err || 3571 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3572 am_cv_CC_dependencies_compiler_type=$depmode 3573 break 3574 fi 3575 fi 3576 done 3577 3578 cd .. 3579 rm -rf conftest.dir 3580else 3581 am_cv_CC_dependencies_compiler_type=none 3582fi 3583 3584fi 3585{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3586echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3587CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3588 3589 if 3590 test "x$enable_dependency_tracking" != xno \ 3591 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3592 am__fastdepCC_TRUE= 3593 am__fastdepCC_FALSE='#' 3594else 3595 am__fastdepCC_TRUE='#' 3596 am__fastdepCC_FALSE= 3597fi 3598 3599 3600# Check whether --enable-shared was given. 3601if test "${enable_shared+set}" = set; then 3602 enableval=$enable_shared; p=${PACKAGE-default} 3603 case $enableval in 3604 yes) enable_shared=yes ;; 3605 no) enable_shared=no ;; 3606 *) 3607 enable_shared=no 3608 # Look at the argument we got. We use all the common list separators. 3609 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3610 for pkg in $enableval; do 3611 IFS="$lt_save_ifs" 3612 if test "X$pkg" = "X$p"; then 3613 enable_shared=yes 3614 fi 3615 done 3616 IFS="$lt_save_ifs" 3617 ;; 3618 esac 3619else 3620 enable_shared=yes 3621fi 3622 3623 3624# Check whether --enable-static was given. 3625if test "${enable_static+set}" = set; then 3626 enableval=$enable_static; p=${PACKAGE-default} 3627 case $enableval in 3628 yes) enable_static=yes ;; 3629 no) enable_static=no ;; 3630 *) 3631 enable_static=no 3632 # Look at the argument we got. We use all the common list separators. 3633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3634 for pkg in $enableval; do 3635 IFS="$lt_save_ifs" 3636 if test "X$pkg" = "X$p"; then 3637 enable_static=yes 3638 fi 3639 done 3640 IFS="$lt_save_ifs" 3641 ;; 3642 esac 3643else 3644 enable_static=yes 3645fi 3646 3647 3648# Check whether --enable-fast-install was given. 3649if test "${enable_fast_install+set}" = set; then 3650 enableval=$enable_fast_install; p=${PACKAGE-default} 3651 case $enableval in 3652 yes) enable_fast_install=yes ;; 3653 no) enable_fast_install=no ;; 3654 *) 3655 enable_fast_install=no 3656 # Look at the argument we got. We use all the common list separators. 3657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3658 for pkg in $enableval; do 3659 IFS="$lt_save_ifs" 3660 if test "X$pkg" = "X$p"; then 3661 enable_fast_install=yes 3662 fi 3663 done 3664 IFS="$lt_save_ifs" 3665 ;; 3666 esac 3667else 3668 enable_fast_install=yes 3669fi 3670 3671 3672# Make sure we can run config.sub. 3673$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3674 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3675echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3676 { (exit 1); exit 1; }; } 3677 3678{ echo "$as_me:$LINENO: checking build system type" >&5 3679echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3680if test "${ac_cv_build+set}" = set; then 3681 echo $ECHO_N "(cached) $ECHO_C" >&6 3682else 3683 ac_build_alias=$build_alias 3684test "x$ac_build_alias" = x && 3685 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3686test "x$ac_build_alias" = x && 3687 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3688echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3689 { (exit 1); exit 1; }; } 3690ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3691 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3692echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3693 { (exit 1); exit 1; }; } 3694 3695fi 3696{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3697echo "${ECHO_T}$ac_cv_build" >&6; } 3698case $ac_cv_build in 3699*-*-*) ;; 3700*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3701echo "$as_me: error: invalid value of canonical build" >&2;} 3702 { (exit 1); exit 1; }; };; 3703esac 3704build=$ac_cv_build 3705ac_save_IFS=$IFS; IFS='-' 3706set x $ac_cv_build 3707shift 3708build_cpu=$1 3709build_vendor=$2 3710shift; shift 3711# Remember, the first character of IFS is used to create $*, 3712# except with old shells: 3713build_os=$* 3714IFS=$ac_save_IFS 3715case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3716 3717 3718{ echo "$as_me:$LINENO: checking host system type" >&5 3719echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3720if test "${ac_cv_host+set}" = set; then 3721 echo $ECHO_N "(cached) $ECHO_C" >&6 3722else 3723 if test "x$host_alias" = x; then 3724 ac_cv_host=$ac_cv_build 3725else 3726 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3727 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3728echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3729 { (exit 1); exit 1; }; } 3730fi 3731 3732fi 3733{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3734echo "${ECHO_T}$ac_cv_host" >&6; } 3735case $ac_cv_host in 3736*-*-*) ;; 3737*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3738echo "$as_me: error: invalid value of canonical host" >&2;} 3739 { (exit 1); exit 1; }; };; 3740esac 3741host=$ac_cv_host 3742ac_save_IFS=$IFS; IFS='-' 3743set x $ac_cv_host 3744shift 3745host_cpu=$1 3746host_vendor=$2 3747shift; shift 3748# Remember, the first character of IFS is used to create $*, 3749# except with old shells: 3750host_os=$* 3751IFS=$ac_save_IFS 3752case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3753 3754 3755{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3756echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3757if test "${lt_cv_path_SED+set}" = set; then 3758 echo $ECHO_N "(cached) $ECHO_C" >&6 3759else 3760 # Loop through the user's path and test for sed and gsed. 3761# Then use that list of sed's as ones to test for truncation. 3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3763for as_dir in $PATH 3764do 3765 IFS=$as_save_IFS 3766 test -z "$as_dir" && as_dir=. 3767 for lt_ac_prog in sed gsed; do 3768 for ac_exec_ext in '' $ac_executable_extensions; do 3769 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3770 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3771 fi 3772 done 3773 done 3774done 3775lt_ac_max=0 3776lt_ac_count=0 3777# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3778# along with /bin/sed that truncates output. 3779for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3780 test ! -f $lt_ac_sed && continue 3781 cat /dev/null > conftest.in 3782 lt_ac_count=0 3783 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3784 # Check for GNU sed and select it if it is found. 3785 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3786 lt_cv_path_SED=$lt_ac_sed 3787 break 3788 fi 3789 while true; do 3790 cat conftest.in conftest.in >conftest.tmp 3791 mv conftest.tmp conftest.in 3792 cp conftest.in conftest.nl 3793 echo >>conftest.nl 3794 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3795 cmp -s conftest.out conftest.nl || break 3796 # 10000 chars as input seems more than enough 3797 test $lt_ac_count -gt 10 && break 3798 lt_ac_count=`expr $lt_ac_count + 1` 3799 if test $lt_ac_count -gt $lt_ac_max; then 3800 lt_ac_max=$lt_ac_count 3801 lt_cv_path_SED=$lt_ac_sed 3802 fi 3803 done 3804done 3805 3806fi 3807 3808SED=$lt_cv_path_SED 3809{ echo "$as_me:$LINENO: result: $SED" >&5 3810echo "${ECHO_T}$SED" >&6; } 3811 3812{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3813echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3814if test "${ac_cv_path_GREP+set}" = set; then 3815 echo $ECHO_N "(cached) $ECHO_C" >&6 3816else 3817 # Extract the first word of "grep ggrep" to use in msg output 3818if test -z "$GREP"; then 3819set dummy grep ggrep; ac_prog_name=$2 3820if test "${ac_cv_path_GREP+set}" = set; then 3821 echo $ECHO_N "(cached) $ECHO_C" >&6 3822else 3823 ac_path_GREP_found=false 3824# Loop through the user's path and test for each of PROGNAME-LIST 3825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3826for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3827do 3828 IFS=$as_save_IFS 3829 test -z "$as_dir" && as_dir=. 3830 for ac_prog in grep ggrep; do 3831 for ac_exec_ext in '' $ac_executable_extensions; do 3832 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3833 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3834 # Check for GNU ac_path_GREP and select it if it is found. 3835 # Check for GNU $ac_path_GREP 3836case `"$ac_path_GREP" --version 2>&1` in 3837*GNU*) 3838 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3839*) 3840 ac_count=0 3841 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3842 while : 3843 do 3844 cat "conftest.in" "conftest.in" >"conftest.tmp" 3845 mv "conftest.tmp" "conftest.in" 3846 cp "conftest.in" "conftest.nl" 3847 echo 'GREP' >> "conftest.nl" 3848 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3850 ac_count=`expr $ac_count + 1` 3851 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3852 # Best one so far, save it but keep looking for a better one 3853 ac_cv_path_GREP="$ac_path_GREP" 3854 ac_path_GREP_max=$ac_count 3855 fi 3856 # 10*(2^10) chars as input seems more than enough 3857 test $ac_count -gt 10 && break 3858 done 3859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3860esac 3861 3862 3863 $ac_path_GREP_found && break 3 3864 done 3865done 3866 3867done 3868IFS=$as_save_IFS 3869 3870 3871fi 3872 3873GREP="$ac_cv_path_GREP" 3874if test -z "$GREP"; then 3875 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3876echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3877 { (exit 1); exit 1; }; } 3878fi 3879 3880else 3881 ac_cv_path_GREP=$GREP 3882fi 3883 3884 3885fi 3886{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3887echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3888 GREP="$ac_cv_path_GREP" 3889 3890 3891{ echo "$as_me:$LINENO: checking for egrep" >&5 3892echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3893if test "${ac_cv_path_EGREP+set}" = set; then 3894 echo $ECHO_N "(cached) $ECHO_C" >&6 3895else 3896 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3897 then ac_cv_path_EGREP="$GREP -E" 3898 else 3899 # Extract the first word of "egrep" to use in msg output 3900if test -z "$EGREP"; then 3901set dummy egrep; ac_prog_name=$2 3902if test "${ac_cv_path_EGREP+set}" = set; then 3903 echo $ECHO_N "(cached) $ECHO_C" >&6 3904else 3905 ac_path_EGREP_found=false 3906# Loop through the user's path and test for each of PROGNAME-LIST 3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3908for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3909do 3910 IFS=$as_save_IFS 3911 test -z "$as_dir" && as_dir=. 3912 for ac_prog in egrep; do 3913 for ac_exec_ext in '' $ac_executable_extensions; do 3914 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3915 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3916 # Check for GNU ac_path_EGREP and select it if it is found. 3917 # Check for GNU $ac_path_EGREP 3918case `"$ac_path_EGREP" --version 2>&1` in 3919*GNU*) 3920 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3921*) 3922 ac_count=0 3923 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3924 while : 3925 do 3926 cat "conftest.in" "conftest.in" >"conftest.tmp" 3927 mv "conftest.tmp" "conftest.in" 3928 cp "conftest.in" "conftest.nl" 3929 echo 'EGREP' >> "conftest.nl" 3930 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3932 ac_count=`expr $ac_count + 1` 3933 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3934 # Best one so far, save it but keep looking for a better one 3935 ac_cv_path_EGREP="$ac_path_EGREP" 3936 ac_path_EGREP_max=$ac_count 3937 fi 3938 # 10*(2^10) chars as input seems more than enough 3939 test $ac_count -gt 10 && break 3940 done 3941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3942esac 3943 3944 3945 $ac_path_EGREP_found && break 3 3946 done 3947done 3948 3949done 3950IFS=$as_save_IFS 3951 3952 3953fi 3954 3955EGREP="$ac_cv_path_EGREP" 3956if test -z "$EGREP"; then 3957 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3958echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3959 { (exit 1); exit 1; }; } 3960fi 3961 3962else 3963 ac_cv_path_EGREP=$EGREP 3964fi 3965 3966 3967 fi 3968fi 3969{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3970echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3971 EGREP="$ac_cv_path_EGREP" 3972 3973 3974 3975# Check whether --with-gnu-ld was given. 3976if test "${with_gnu_ld+set}" = set; then 3977 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3978else 3979 with_gnu_ld=no 3980fi 3981 3982ac_prog=ld 3983if test "$GCC" = yes; then 3984 # Check if gcc -print-prog-name=ld gives a path. 3985 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3986echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3987 case $host in 3988 *-*-mingw*) 3989 # gcc leaves a trailing carriage return which upsets mingw 3990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3991 *) 3992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3993 esac 3994 case $ac_prog in 3995 # Accept absolute paths. 3996 [\\/]* | ?:[\\/]*) 3997 re_direlt='/[^/][^/]*/\.\./' 3998 # Canonicalize the pathname of ld 3999 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4000 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4001 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4002 done 4003 test -z "$LD" && LD="$ac_prog" 4004 ;; 4005 "") 4006 # If it fails, then pretend we aren't using GCC. 4007 ac_prog=ld 4008 ;; 4009 *) 4010 # If it is relative, then search for the first ld in PATH. 4011 with_gnu_ld=unknown 4012 ;; 4013 esac 4014elif test "$with_gnu_ld" = yes; then 4015 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4016echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4017else 4018 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4019echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4020fi 4021if test "${lt_cv_path_LD+set}" = set; then 4022 echo $ECHO_N "(cached) $ECHO_C" >&6 4023else 4024 if test -z "$LD"; then 4025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4026 for ac_dir in $PATH; do 4027 IFS="$lt_save_ifs" 4028 test -z "$ac_dir" && ac_dir=. 4029 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4030 lt_cv_path_LD="$ac_dir/$ac_prog" 4031 # Check to see if the program is GNU ld. I'd rather use --version, 4032 # but apparently some variants of GNU ld only accept -v. 4033 # Break only if it was the GNU/non-GNU ld that we prefer. 4034 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4035 *GNU* | *'with BFD'*) 4036 test "$with_gnu_ld" != no && break 4037 ;; 4038 *) 4039 test "$with_gnu_ld" != yes && break 4040 ;; 4041 esac 4042 fi 4043 done 4044 IFS="$lt_save_ifs" 4045else 4046 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4047fi 4048fi 4049 4050LD="$lt_cv_path_LD" 4051if test -n "$LD"; then 4052 { echo "$as_me:$LINENO: result: $LD" >&5 4053echo "${ECHO_T}$LD" >&6; } 4054else 4055 { echo "$as_me:$LINENO: result: no" >&5 4056echo "${ECHO_T}no" >&6; } 4057fi 4058test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4059echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4060 { (exit 1); exit 1; }; } 4061{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4062echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4063if test "${lt_cv_prog_gnu_ld+set}" = set; then 4064 echo $ECHO_N "(cached) $ECHO_C" >&6 4065else 4066 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4067case `$LD -v 2>&1 </dev/null` in 4068*GNU* | *'with BFD'*) 4069 lt_cv_prog_gnu_ld=yes 4070 ;; 4071*) 4072 lt_cv_prog_gnu_ld=no 4073 ;; 4074esac 4075fi 4076{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4077echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4078with_gnu_ld=$lt_cv_prog_gnu_ld 4079 4080 4081{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4082echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4083if test "${lt_cv_ld_reload_flag+set}" = set; then 4084 echo $ECHO_N "(cached) $ECHO_C" >&6 4085else 4086 lt_cv_ld_reload_flag='-r' 4087fi 4088{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4089echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4090reload_flag=$lt_cv_ld_reload_flag 4091case $reload_flag in 4092"" | " "*) ;; 4093*) reload_flag=" $reload_flag" ;; 4094esac 4095reload_cmds='$LD$reload_flag -o $output$reload_objs' 4096case $host_os in 4097 darwin*) 4098 if test "$GCC" = yes; then 4099 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4100 else 4101 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4102 fi 4103 ;; 4104esac 4105 4106{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4107echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4108if test "${lt_cv_path_NM+set}" = set; then 4109 echo $ECHO_N "(cached) $ECHO_C" >&6 4110else 4111 if test -n "$NM"; then 4112 # Let the user override the test. 4113 lt_cv_path_NM="$NM" 4114else 4115 lt_nm_to_check="${ac_tool_prefix}nm" 4116 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4117 lt_nm_to_check="$lt_nm_to_check nm" 4118 fi 4119 for lt_tmp_nm in $lt_nm_to_check; do 4120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4121 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4122 IFS="$lt_save_ifs" 4123 test -z "$ac_dir" && ac_dir=. 4124 tmp_nm="$ac_dir/$lt_tmp_nm" 4125 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4126 # Check to see if the nm accepts a BSD-compat flag. 4127 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4128 # nm: unknown option "B" ignored 4129 # Tru64's nm complains that /dev/null is an invalid object file 4130 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4131 */dev/null* | *'Invalid file or object type'*) 4132 lt_cv_path_NM="$tmp_nm -B" 4133 break 4134 ;; 4135 *) 4136 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4137 */dev/null*) 4138 lt_cv_path_NM="$tmp_nm -p" 4139 break 4140 ;; 4141 *) 4142 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4143 continue # so that we can try to find one that supports BSD flags 4144 ;; 4145 esac 4146 ;; 4147 esac 4148 fi 4149 done 4150 IFS="$lt_save_ifs" 4151 done 4152 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4153fi 4154fi 4155{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4156echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4157NM="$lt_cv_path_NM" 4158 4159{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4160echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4161LN_S=$as_ln_s 4162if test "$LN_S" = "ln -s"; then 4163 { echo "$as_me:$LINENO: result: yes" >&5 4164echo "${ECHO_T}yes" >&6; } 4165else 4166 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4167echo "${ECHO_T}no, using $LN_S" >&6; } 4168fi 4169 4170{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4171echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4172if test "${lt_cv_deplibs_check_method+set}" = set; then 4173 echo $ECHO_N "(cached) $ECHO_C" >&6 4174else 4175 lt_cv_file_magic_cmd='$MAGIC_CMD' 4176lt_cv_file_magic_test_file= 4177lt_cv_deplibs_check_method='unknown' 4178# Need to set the preceding variable on all platforms that support 4179# interlibrary dependencies. 4180# 'none' -- dependencies not supported. 4181# `unknown' -- same as none, but documents that we really don't know. 4182# 'pass_all' -- all dependencies passed with no checks. 4183# 'test_compile' -- check by making test program. 4184# 'file_magic [[regex]]' -- check by looking for files in library path 4185# which responds to the $file_magic_cmd with a given extended regex. 4186# If you have `file' or equivalent on your system and you're not sure 4187# whether `pass_all' will *always* work, you probably want this one. 4188 4189case $host_os in 4190aix4* | aix5*) 4191 lt_cv_deplibs_check_method=pass_all 4192 ;; 4193 4194beos*) 4195 lt_cv_deplibs_check_method=pass_all 4196 ;; 4197 4198bsdi[45]*) 4199 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4200 lt_cv_file_magic_cmd='/usr/bin/file -L' 4201 lt_cv_file_magic_test_file=/shlib/libc.so 4202 ;; 4203 4204cygwin*) 4205 # func_win32_libid is a shell function defined in ltmain.sh 4206 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4207 lt_cv_file_magic_cmd='func_win32_libid' 4208 ;; 4209 4210mingw* | pw32*) 4211 # Base MSYS/MinGW do not provide the 'file' command needed by 4212 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4213 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4214 lt_cv_file_magic_cmd='$OBJDUMP -f' 4215 ;; 4216 4217darwin* | rhapsody*) 4218 lt_cv_deplibs_check_method=pass_all 4219 ;; 4220 4221freebsd* | kfreebsd*-gnu | dragonfly*) 4222 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4223 case $host_cpu in 4224 i*86 ) 4225 # Not sure whether the presence of OpenBSD here was a mistake. 4226 # Let's accept both of them until this is cleared up. 4227 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4228 lt_cv_file_magic_cmd=/usr/bin/file 4229 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4230 ;; 4231 esac 4232 else 4233 lt_cv_deplibs_check_method=pass_all 4234 fi 4235 ;; 4236 4237gnu*) 4238 lt_cv_deplibs_check_method=pass_all 4239 ;; 4240 4241hpux10.20* | hpux11*) 4242 lt_cv_file_magic_cmd=/usr/bin/file 4243 case $host_cpu in 4244 ia64*) 4245 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4246 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4247 ;; 4248 hppa*64*) 4249 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]' 4250 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4251 ;; 4252 *) 4253 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4254 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4255 ;; 4256 esac 4257 ;; 4258 4259interix3*) 4260 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4262 ;; 4263 4264irix5* | irix6* | nonstopux*) 4265 case $LD in 4266 *-32|*"-32 ") libmagic=32-bit;; 4267 *-n32|*"-n32 ") libmagic=N32;; 4268 *-64|*"-64 ") libmagic=64-bit;; 4269 *) libmagic=never-match;; 4270 esac 4271 lt_cv_deplibs_check_method=pass_all 4272 ;; 4273 4274# This must be Linux ELF. 4275linux*) 4276 lt_cv_deplibs_check_method=pass_all 4277 ;; 4278 4279netbsd*) 4280 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4282 else 4283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4284 fi 4285 ;; 4286 4287newos6*) 4288 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4289 lt_cv_file_magic_cmd=/usr/bin/file 4290 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4291 ;; 4292 4293nto-qnx*) 4294 lt_cv_deplibs_check_method=unknown 4295 ;; 4296 4297openbsd*) 4298 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4300 else 4301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4302 fi 4303 ;; 4304 4305osf3* | osf4* | osf5*) 4306 lt_cv_deplibs_check_method=pass_all 4307 ;; 4308 4309solaris*) 4310 lt_cv_deplibs_check_method=pass_all 4311 ;; 4312 4313sysv4 | sysv4.3*) 4314 case $host_vendor in 4315 motorola) 4316 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]' 4317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4318 ;; 4319 ncr) 4320 lt_cv_deplibs_check_method=pass_all 4321 ;; 4322 sequent) 4323 lt_cv_file_magic_cmd='/bin/file' 4324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4325 ;; 4326 sni) 4327 lt_cv_file_magic_cmd='/bin/file' 4328 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4329 lt_cv_file_magic_test_file=/lib/libc.so 4330 ;; 4331 siemens) 4332 lt_cv_deplibs_check_method=pass_all 4333 ;; 4334 pc) 4335 lt_cv_deplibs_check_method=pass_all 4336 ;; 4337 esac 4338 ;; 4339 4340sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4341 lt_cv_deplibs_check_method=pass_all 4342 ;; 4343esac 4344 4345fi 4346{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4347echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4348file_magic_cmd=$lt_cv_file_magic_cmd 4349deplibs_check_method=$lt_cv_deplibs_check_method 4350test -z "$deplibs_check_method" && deplibs_check_method=unknown 4351 4352 4353 4354 4355# If no C compiler was specified, use CC. 4356LTCC=${LTCC-"$CC"} 4357 4358# If no C compiler flags were specified, use CFLAGS. 4359LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4360 4361# Allow CC to be a program name with arguments. 4362compiler=$CC 4363 4364 4365# Check whether --enable-libtool-lock was given. 4366if test "${enable_libtool_lock+set}" = set; then 4367 enableval=$enable_libtool_lock; 4368fi 4369 4370test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4371 4372# Some flags need to be propagated to the compiler or linker for good 4373# libtool support. 4374case $host in 4375ia64-*-hpux*) 4376 # Find out which ABI we are using. 4377 echo 'int i;' > conftest.$ac_ext 4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4379 (eval $ac_compile) 2>&5 4380 ac_status=$? 4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4382 (exit $ac_status); }; then 4383 case `/usr/bin/file conftest.$ac_objext` in 4384 *ELF-32*) 4385 HPUX_IA64_MODE="32" 4386 ;; 4387 *ELF-64*) 4388 HPUX_IA64_MODE="64" 4389 ;; 4390 esac 4391 fi 4392 rm -rf conftest* 4393 ;; 4394*-*-irix6*) 4395 # Find out which ABI we are using. 4396 echo '#line 4396 "configure"' > conftest.$ac_ext 4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4398 (eval $ac_compile) 2>&5 4399 ac_status=$? 4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4401 (exit $ac_status); }; then 4402 if test "$lt_cv_prog_gnu_ld" = yes; then 4403 case `/usr/bin/file conftest.$ac_objext` in 4404 *32-bit*) 4405 LD="${LD-ld} -melf32bsmip" 4406 ;; 4407 *N32*) 4408 LD="${LD-ld} -melf32bmipn32" 4409 ;; 4410 *64-bit*) 4411 LD="${LD-ld} -melf64bmip" 4412 ;; 4413 esac 4414 else 4415 case `/usr/bin/file conftest.$ac_objext` in 4416 *32-bit*) 4417 LD="${LD-ld} -32" 4418 ;; 4419 *N32*) 4420 LD="${LD-ld} -n32" 4421 ;; 4422 *64-bit*) 4423 LD="${LD-ld} -64" 4424 ;; 4425 esac 4426 fi 4427 fi 4428 rm -rf conftest* 4429 ;; 4430 4431x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4432 # Find out which ABI we are using. 4433 echo 'int i;' > conftest.$ac_ext 4434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4435 (eval $ac_compile) 2>&5 4436 ac_status=$? 4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4438 (exit $ac_status); }; then 4439 case `/usr/bin/file conftest.o` in 4440 *32-bit*) 4441 case $host in 4442 x86_64-*linux*) 4443 LD="${LD-ld} -m elf_i386" 4444 ;; 4445 ppc64-*linux*|powerpc64-*linux*) 4446 LD="${LD-ld} -m elf32ppclinux" 4447 ;; 4448 s390x-*linux*) 4449 LD="${LD-ld} -m elf_s390" 4450 ;; 4451 sparc64-*linux*) 4452 LD="${LD-ld} -m elf32_sparc" 4453 ;; 4454 esac 4455 ;; 4456 *64-bit*) 4457 case $host in 4458 x86_64-*linux*) 4459 LD="${LD-ld} -m elf_x86_64" 4460 ;; 4461 ppc*-*linux*|powerpc*-*linux*) 4462 LD="${LD-ld} -m elf64ppc" 4463 ;; 4464 s390*-*linux*) 4465 LD="${LD-ld} -m elf64_s390" 4466 ;; 4467 sparc*-*linux*) 4468 LD="${LD-ld} -m elf64_sparc" 4469 ;; 4470 esac 4471 ;; 4472 esac 4473 fi 4474 rm -rf conftest* 4475 ;; 4476 4477*-*-sco3.2v5*) 4478 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4479 SAVE_CFLAGS="$CFLAGS" 4480 CFLAGS="$CFLAGS -belf" 4481 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4482echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4483if test "${lt_cv_cc_needs_belf+set}" = set; then 4484 echo $ECHO_N "(cached) $ECHO_C" >&6 4485else 4486 ac_ext=c 4487ac_cpp='$CPP $CPPFLAGS' 4488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4490ac_compiler_gnu=$ac_cv_c_compiler_gnu 4491 4492 cat >conftest.$ac_ext <<_ACEOF 4493/* confdefs.h. */ 4494_ACEOF 4495cat confdefs.h >>conftest.$ac_ext 4496cat >>conftest.$ac_ext <<_ACEOF 4497/* end confdefs.h. */ 4498 4499int 4500main () 4501{ 4502 4503 ; 4504 return 0; 4505} 4506_ACEOF 4507rm -f conftest.$ac_objext conftest$ac_exeext 4508if { (ac_try="$ac_link" 4509case "(($ac_try" in 4510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4511 *) ac_try_echo=$ac_try;; 4512esac 4513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4514 (eval "$ac_link") 2>conftest.er1 4515 ac_status=$? 4516 grep -v '^ *+' conftest.er1 >conftest.err 4517 rm -f conftest.er1 4518 cat conftest.err >&5 4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4520 (exit $ac_status); } && { 4521 test -z "$ac_c_werror_flag" || 4522 test ! -s conftest.err 4523 } && test -s conftest$ac_exeext && 4524 $as_test_x conftest$ac_exeext; then 4525 lt_cv_cc_needs_belf=yes 4526else 4527 echo "$as_me: failed program was:" >&5 4528sed 's/^/| /' conftest.$ac_ext >&5 4529 4530 lt_cv_cc_needs_belf=no 4531fi 4532 4533rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4534 conftest$ac_exeext conftest.$ac_ext 4535 ac_ext=c 4536ac_cpp='$CPP $CPPFLAGS' 4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4539ac_compiler_gnu=$ac_cv_c_compiler_gnu 4540 4541fi 4542{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4543echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4544 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4545 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4546 CFLAGS="$SAVE_CFLAGS" 4547 fi 4548 ;; 4549sparc*-*solaris*) 4550 # Find out which ABI we are using. 4551 echo 'int i;' > conftest.$ac_ext 4552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4553 (eval $ac_compile) 2>&5 4554 ac_status=$? 4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4556 (exit $ac_status); }; then 4557 case `/usr/bin/file conftest.o` in 4558 *64-bit*) 4559 case $lt_cv_prog_gnu_ld in 4560 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4561 *) LD="${LD-ld} -64" ;; 4562 esac 4563 ;; 4564 esac 4565 fi 4566 rm -rf conftest* 4567 ;; 4568 4569 4570esac 4571 4572need_locks="$enable_libtool_lock" 4573 4574 4575ac_ext=c 4576ac_cpp='$CPP $CPPFLAGS' 4577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4579ac_compiler_gnu=$ac_cv_c_compiler_gnu 4580{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4581echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4582# On Suns, sometimes $CPP names a directory. 4583if test -n "$CPP" && test -d "$CPP"; then 4584 CPP= 4585fi 4586if test -z "$CPP"; then 4587 if test "${ac_cv_prog_CPP+set}" = set; then 4588 echo $ECHO_N "(cached) $ECHO_C" >&6 4589else 4590 # Double quotes because CPP needs to be expanded 4591 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4592 do 4593 ac_preproc_ok=false 4594for ac_c_preproc_warn_flag in '' yes 4595do 4596 # Use a header file that comes with gcc, so configuring glibc 4597 # with a fresh cross-compiler works. 4598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4599 # <limits.h> exists even on freestanding compilers. 4600 # On the NeXT, cc -E runs the code through the compiler's parser, 4601 # not just through cpp. "Syntax error" is here to catch this case. 4602 cat >conftest.$ac_ext <<_ACEOF 4603/* confdefs.h. */ 4604_ACEOF 4605cat confdefs.h >>conftest.$ac_ext 4606cat >>conftest.$ac_ext <<_ACEOF 4607/* end confdefs.h. */ 4608#ifdef __STDC__ 4609# include <limits.h> 4610#else 4611# include <assert.h> 4612#endif 4613 Syntax error 4614_ACEOF 4615if { (ac_try="$ac_cpp conftest.$ac_ext" 4616case "(($ac_try" in 4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4618 *) ac_try_echo=$ac_try;; 4619esac 4620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4622 ac_status=$? 4623 grep -v '^ *+' conftest.er1 >conftest.err 4624 rm -f conftest.er1 4625 cat conftest.err >&5 4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4627 (exit $ac_status); } >/dev/null && { 4628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4629 test ! -s conftest.err 4630 }; then 4631 : 4632else 4633 echo "$as_me: failed program was:" >&5 4634sed 's/^/| /' conftest.$ac_ext >&5 4635 4636 # Broken: fails on valid input. 4637continue 4638fi 4639 4640rm -f conftest.err conftest.$ac_ext 4641 4642 # OK, works on sane cases. Now check whether nonexistent headers 4643 # can be detected and how. 4644 cat >conftest.$ac_ext <<_ACEOF 4645/* confdefs.h. */ 4646_ACEOF 4647cat confdefs.h >>conftest.$ac_ext 4648cat >>conftest.$ac_ext <<_ACEOF 4649/* end confdefs.h. */ 4650#include <ac_nonexistent.h> 4651_ACEOF 4652if { (ac_try="$ac_cpp conftest.$ac_ext" 4653case "(($ac_try" in 4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4655 *) ac_try_echo=$ac_try;; 4656esac 4657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4659 ac_status=$? 4660 grep -v '^ *+' conftest.er1 >conftest.err 4661 rm -f conftest.er1 4662 cat conftest.err >&5 4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4664 (exit $ac_status); } >/dev/null && { 4665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4666 test ! -s conftest.err 4667 }; then 4668 # Broken: success on invalid input. 4669continue 4670else 4671 echo "$as_me: failed program was:" >&5 4672sed 's/^/| /' conftest.$ac_ext >&5 4673 4674 # Passes both tests. 4675ac_preproc_ok=: 4676break 4677fi 4678 4679rm -f conftest.err conftest.$ac_ext 4680 4681done 4682# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4683rm -f conftest.err conftest.$ac_ext 4684if $ac_preproc_ok; then 4685 break 4686fi 4687 4688 done 4689 ac_cv_prog_CPP=$CPP 4690 4691fi 4692 CPP=$ac_cv_prog_CPP 4693else 4694 ac_cv_prog_CPP=$CPP 4695fi 4696{ echo "$as_me:$LINENO: result: $CPP" >&5 4697echo "${ECHO_T}$CPP" >&6; } 4698ac_preproc_ok=false 4699for ac_c_preproc_warn_flag in '' yes 4700do 4701 # Use a header file that comes with gcc, so configuring glibc 4702 # with a fresh cross-compiler works. 4703 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4704 # <limits.h> exists even on freestanding compilers. 4705 # On the NeXT, cc -E runs the code through the compiler's parser, 4706 # not just through cpp. "Syntax error" is here to catch this case. 4707 cat >conftest.$ac_ext <<_ACEOF 4708/* confdefs.h. */ 4709_ACEOF 4710cat confdefs.h >>conftest.$ac_ext 4711cat >>conftest.$ac_ext <<_ACEOF 4712/* end confdefs.h. */ 4713#ifdef __STDC__ 4714# include <limits.h> 4715#else 4716# include <assert.h> 4717#endif 4718 Syntax error 4719_ACEOF 4720if { (ac_try="$ac_cpp conftest.$ac_ext" 4721case "(($ac_try" in 4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4723 *) ac_try_echo=$ac_try;; 4724esac 4725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4727 ac_status=$? 4728 grep -v '^ *+' conftest.er1 >conftest.err 4729 rm -f conftest.er1 4730 cat conftest.err >&5 4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4732 (exit $ac_status); } >/dev/null && { 4733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4734 test ! -s conftest.err 4735 }; then 4736 : 4737else 4738 echo "$as_me: failed program was:" >&5 4739sed 's/^/| /' conftest.$ac_ext >&5 4740 4741 # Broken: fails on valid input. 4742continue 4743fi 4744 4745rm -f conftest.err conftest.$ac_ext 4746 4747 # OK, works on sane cases. Now check whether nonexistent headers 4748 # can be detected and how. 4749 cat >conftest.$ac_ext <<_ACEOF 4750/* confdefs.h. */ 4751_ACEOF 4752cat confdefs.h >>conftest.$ac_ext 4753cat >>conftest.$ac_ext <<_ACEOF 4754/* end confdefs.h. */ 4755#include <ac_nonexistent.h> 4756_ACEOF 4757if { (ac_try="$ac_cpp conftest.$ac_ext" 4758case "(($ac_try" in 4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4760 *) ac_try_echo=$ac_try;; 4761esac 4762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4764 ac_status=$? 4765 grep -v '^ *+' conftest.er1 >conftest.err 4766 rm -f conftest.er1 4767 cat conftest.err >&5 4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4769 (exit $ac_status); } >/dev/null && { 4770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4771 test ! -s conftest.err 4772 }; then 4773 # Broken: success on invalid input. 4774continue 4775else 4776 echo "$as_me: failed program was:" >&5 4777sed 's/^/| /' conftest.$ac_ext >&5 4778 4779 # Passes both tests. 4780ac_preproc_ok=: 4781break 4782fi 4783 4784rm -f conftest.err conftest.$ac_ext 4785 4786done 4787# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4788rm -f conftest.err conftest.$ac_ext 4789if $ac_preproc_ok; then 4790 : 4791else 4792 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4793See \`config.log' for more details." >&5 4794echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4795See \`config.log' for more details." >&2;} 4796 { (exit 1); exit 1; }; } 4797fi 4798 4799ac_ext=c 4800ac_cpp='$CPP $CPPFLAGS' 4801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4803ac_compiler_gnu=$ac_cv_c_compiler_gnu 4804 4805 4806{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4807echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4808if test "${ac_cv_header_stdc+set}" = set; then 4809 echo $ECHO_N "(cached) $ECHO_C" >&6 4810else 4811 cat >conftest.$ac_ext <<_ACEOF 4812/* confdefs.h. */ 4813_ACEOF 4814cat confdefs.h >>conftest.$ac_ext 4815cat >>conftest.$ac_ext <<_ACEOF 4816/* end confdefs.h. */ 4817#include <stdlib.h> 4818#include <stdarg.h> 4819#include <string.h> 4820#include <float.h> 4821 4822int 4823main () 4824{ 4825 4826 ; 4827 return 0; 4828} 4829_ACEOF 4830rm -f conftest.$ac_objext 4831if { (ac_try="$ac_compile" 4832case "(($ac_try" in 4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4834 *) ac_try_echo=$ac_try;; 4835esac 4836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4837 (eval "$ac_compile") 2>conftest.er1 4838 ac_status=$? 4839 grep -v '^ *+' conftest.er1 >conftest.err 4840 rm -f conftest.er1 4841 cat conftest.err >&5 4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4843 (exit $ac_status); } && { 4844 test -z "$ac_c_werror_flag" || 4845 test ! -s conftest.err 4846 } && test -s conftest.$ac_objext; then 4847 ac_cv_header_stdc=yes 4848else 4849 echo "$as_me: failed program was:" >&5 4850sed 's/^/| /' conftest.$ac_ext >&5 4851 4852 ac_cv_header_stdc=no 4853fi 4854 4855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4856 4857if test $ac_cv_header_stdc = yes; then 4858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4859 cat >conftest.$ac_ext <<_ACEOF 4860/* confdefs.h. */ 4861_ACEOF 4862cat confdefs.h >>conftest.$ac_ext 4863cat >>conftest.$ac_ext <<_ACEOF 4864/* end confdefs.h. */ 4865#include <string.h> 4866 4867_ACEOF 4868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4869 $EGREP "memchr" >/dev/null 2>&1; then 4870 : 4871else 4872 ac_cv_header_stdc=no 4873fi 4874rm -f conftest* 4875 4876fi 4877 4878if test $ac_cv_header_stdc = yes; then 4879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4880 cat >conftest.$ac_ext <<_ACEOF 4881/* confdefs.h. */ 4882_ACEOF 4883cat confdefs.h >>conftest.$ac_ext 4884cat >>conftest.$ac_ext <<_ACEOF 4885/* end confdefs.h. */ 4886#include <stdlib.h> 4887 4888_ACEOF 4889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4890 $EGREP "free" >/dev/null 2>&1; then 4891 : 4892else 4893 ac_cv_header_stdc=no 4894fi 4895rm -f conftest* 4896 4897fi 4898 4899if test $ac_cv_header_stdc = yes; then 4900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4901 if test "$cross_compiling" = yes; then 4902 : 4903else 4904 cat >conftest.$ac_ext <<_ACEOF 4905/* confdefs.h. */ 4906_ACEOF 4907cat confdefs.h >>conftest.$ac_ext 4908cat >>conftest.$ac_ext <<_ACEOF 4909/* end confdefs.h. */ 4910#include <ctype.h> 4911#include <stdlib.h> 4912#if ((' ' & 0x0FF) == 0x020) 4913# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4914# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4915#else 4916# define ISLOWER(c) \ 4917 (('a' <= (c) && (c) <= 'i') \ 4918 || ('j' <= (c) && (c) <= 'r') \ 4919 || ('s' <= (c) && (c) <= 'z')) 4920# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4921#endif 4922 4923#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4924int 4925main () 4926{ 4927 int i; 4928 for (i = 0; i < 256; i++) 4929 if (XOR (islower (i), ISLOWER (i)) 4930 || toupper (i) != TOUPPER (i)) 4931 return 2; 4932 return 0; 4933} 4934_ACEOF 4935rm -f conftest$ac_exeext 4936if { (ac_try="$ac_link" 4937case "(($ac_try" in 4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4939 *) ac_try_echo=$ac_try;; 4940esac 4941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4942 (eval "$ac_link") 2>&5 4943 ac_status=$? 4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4946 { (case "(($ac_try" in 4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4948 *) ac_try_echo=$ac_try;; 4949esac 4950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4951 (eval "$ac_try") 2>&5 4952 ac_status=$? 4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4954 (exit $ac_status); }; }; then 4955 : 4956else 4957 echo "$as_me: program exited with status $ac_status" >&5 4958echo "$as_me: failed program was:" >&5 4959sed 's/^/| /' conftest.$ac_ext >&5 4960 4961( exit $ac_status ) 4962ac_cv_header_stdc=no 4963fi 4964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4965fi 4966 4967 4968fi 4969fi 4970{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4971echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4972if test $ac_cv_header_stdc = yes; then 4973 4974cat >>confdefs.h <<\_ACEOF 4975#define STDC_HEADERS 1 4976_ACEOF 4977 4978fi 4979 4980# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4991 inttypes.h stdint.h unistd.h 4992do 4993as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4994{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4997 echo $ECHO_N "(cached) $ECHO_C" >&6 4998else 4999 cat >conftest.$ac_ext <<_ACEOF 5000/* confdefs.h. */ 5001_ACEOF 5002cat confdefs.h >>conftest.$ac_ext 5003cat >>conftest.$ac_ext <<_ACEOF 5004/* end confdefs.h. */ 5005$ac_includes_default 5006 5007#include <$ac_header> 5008_ACEOF 5009rm -f conftest.$ac_objext 5010if { (ac_try="$ac_compile" 5011case "(($ac_try" in 5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5013 *) ac_try_echo=$ac_try;; 5014esac 5015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5016 (eval "$ac_compile") 2>conftest.er1 5017 ac_status=$? 5018 grep -v '^ *+' conftest.er1 >conftest.err 5019 rm -f conftest.er1 5020 cat conftest.err >&5 5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5022 (exit $ac_status); } && { 5023 test -z "$ac_c_werror_flag" || 5024 test ! -s conftest.err 5025 } && test -s conftest.$ac_objext; then 5026 eval "$as_ac_Header=yes" 5027else 5028 echo "$as_me: failed program was:" >&5 5029sed 's/^/| /' conftest.$ac_ext >&5 5030 5031 eval "$as_ac_Header=no" 5032fi 5033 5034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5035fi 5036ac_res=`eval echo '${'$as_ac_Header'}'` 5037 { echo "$as_me:$LINENO: result: $ac_res" >&5 5038echo "${ECHO_T}$ac_res" >&6; } 5039if test `eval echo '${'$as_ac_Header'}'` = yes; then 5040 cat >>confdefs.h <<_ACEOF 5041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5042_ACEOF 5043 5044fi 5045 5046done 5047 5048 5049 5050for ac_header in dlfcn.h 5051do 5052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5054 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5057 echo $ECHO_N "(cached) $ECHO_C" >&6 5058fi 5059ac_res=`eval echo '${'$as_ac_Header'}'` 5060 { echo "$as_me:$LINENO: result: $ac_res" >&5 5061echo "${ECHO_T}$ac_res" >&6; } 5062else 5063 # Is the header compilable? 5064{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5066cat >conftest.$ac_ext <<_ACEOF 5067/* confdefs.h. */ 5068_ACEOF 5069cat confdefs.h >>conftest.$ac_ext 5070cat >>conftest.$ac_ext <<_ACEOF 5071/* end confdefs.h. */ 5072$ac_includes_default 5073#include <$ac_header> 5074_ACEOF 5075rm -f conftest.$ac_objext 5076if { (ac_try="$ac_compile" 5077case "(($ac_try" in 5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5079 *) ac_try_echo=$ac_try;; 5080esac 5081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5082 (eval "$ac_compile") 2>conftest.er1 5083 ac_status=$? 5084 grep -v '^ *+' conftest.er1 >conftest.err 5085 rm -f conftest.er1 5086 cat conftest.err >&5 5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5088 (exit $ac_status); } && { 5089 test -z "$ac_c_werror_flag" || 5090 test ! -s conftest.err 5091 } && test -s conftest.$ac_objext; then 5092 ac_header_compiler=yes 5093else 5094 echo "$as_me: failed program was:" >&5 5095sed 's/^/| /' conftest.$ac_ext >&5 5096 5097 ac_header_compiler=no 5098fi 5099 5100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5101{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5102echo "${ECHO_T}$ac_header_compiler" >&6; } 5103 5104# Is the header present? 5105{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5106echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5107cat >conftest.$ac_ext <<_ACEOF 5108/* confdefs.h. */ 5109_ACEOF 5110cat confdefs.h >>conftest.$ac_ext 5111cat >>conftest.$ac_ext <<_ACEOF 5112/* end confdefs.h. */ 5113#include <$ac_header> 5114_ACEOF 5115if { (ac_try="$ac_cpp conftest.$ac_ext" 5116case "(($ac_try" in 5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5118 *) ac_try_echo=$ac_try;; 5119esac 5120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5122 ac_status=$? 5123 grep -v '^ *+' conftest.er1 >conftest.err 5124 rm -f conftest.er1 5125 cat conftest.err >&5 5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5127 (exit $ac_status); } >/dev/null && { 5128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5129 test ! -s conftest.err 5130 }; then 5131 ac_header_preproc=yes 5132else 5133 echo "$as_me: failed program was:" >&5 5134sed 's/^/| /' conftest.$ac_ext >&5 5135 5136 ac_header_preproc=no 5137fi 5138 5139rm -f conftest.err conftest.$ac_ext 5140{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5141echo "${ECHO_T}$ac_header_preproc" >&6; } 5142 5143# So? What about this header? 5144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5145 yes:no: ) 5146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5147echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5149echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5150 ac_header_preproc=yes 5151 ;; 5152 no:yes:* ) 5153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5154echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5156echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5158echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5160echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5164echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5165 ( cat <<\_ASBOX 5166## ---------------------------------------------------------------------- ## 5167## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5168## ---------------------------------------------------------------------- ## 5169_ASBOX 5170 ) | sed "s/^/$as_me: WARNING: /" >&2 5171 ;; 5172esac 5173{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5176 echo $ECHO_N "(cached) $ECHO_C" >&6 5177else 5178 eval "$as_ac_Header=\$ac_header_preproc" 5179fi 5180ac_res=`eval echo '${'$as_ac_Header'}'` 5181 { echo "$as_me:$LINENO: result: $ac_res" >&5 5182echo "${ECHO_T}$ac_res" >&6; } 5183 5184fi 5185if test `eval echo '${'$as_ac_Header'}'` = yes; then 5186 cat >>confdefs.h <<_ACEOF 5187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5188_ACEOF 5189 5190fi 5191 5192done 5193 5194ac_ext=cpp 5195ac_cpp='$CXXCPP $CPPFLAGS' 5196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5199if test -z "$CXX"; then 5200 if test -n "$CCC"; then 5201 CXX=$CCC 5202 else 5203 if test -n "$ac_tool_prefix"; then 5204 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5205 do 5206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5207set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5208{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5210if test "${ac_cv_prog_CXX+set}" = set; then 5211 echo $ECHO_N "(cached) $ECHO_C" >&6 5212else 5213 if test -n "$CXX"; then 5214 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5215else 5216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5217for as_dir in $PATH 5218do 5219 IFS=$as_save_IFS 5220 test -z "$as_dir" && as_dir=. 5221 for ac_exec_ext in '' $ac_executable_extensions; do 5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5223 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5225 break 2 5226 fi 5227done 5228done 5229IFS=$as_save_IFS 5230 5231fi 5232fi 5233CXX=$ac_cv_prog_CXX 5234if test -n "$CXX"; then 5235 { echo "$as_me:$LINENO: result: $CXX" >&5 5236echo "${ECHO_T}$CXX" >&6; } 5237else 5238 { echo "$as_me:$LINENO: result: no" >&5 5239echo "${ECHO_T}no" >&6; } 5240fi 5241 5242 5243 test -n "$CXX" && break 5244 done 5245fi 5246if test -z "$CXX"; then 5247 ac_ct_CXX=$CXX 5248 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5249do 5250 # Extract the first word of "$ac_prog", so it can be a program name with args. 5251set dummy $ac_prog; ac_word=$2 5252{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5254if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5255 echo $ECHO_N "(cached) $ECHO_C" >&6 5256else 5257 if test -n "$ac_ct_CXX"; then 5258 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5259else 5260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5261for as_dir in $PATH 5262do 5263 IFS=$as_save_IFS 5264 test -z "$as_dir" && as_dir=. 5265 for ac_exec_ext in '' $ac_executable_extensions; do 5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5267 ac_cv_prog_ac_ct_CXX="$ac_prog" 5268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5269 break 2 5270 fi 5271done 5272done 5273IFS=$as_save_IFS 5274 5275fi 5276fi 5277ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5278if test -n "$ac_ct_CXX"; then 5279 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5280echo "${ECHO_T}$ac_ct_CXX" >&6; } 5281else 5282 { echo "$as_me:$LINENO: result: no" >&5 5283echo "${ECHO_T}no" >&6; } 5284fi 5285 5286 5287 test -n "$ac_ct_CXX" && break 5288done 5289 5290 if test "x$ac_ct_CXX" = x; then 5291 CXX="g++" 5292 else 5293 case $cross_compiling:$ac_tool_warned in 5294yes:) 5295{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5296whose name does not start with the host triplet. If you think this 5297configuration is useful to you, please write to autoconf@gnu.org." >&5 5298echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5299whose name does not start with the host triplet. If you think this 5300configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5301ac_tool_warned=yes ;; 5302esac 5303 CXX=$ac_ct_CXX 5304 fi 5305fi 5306 5307 fi 5308fi 5309# Provide some information about the compiler. 5310echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5311ac_compiler=`set X $ac_compile; echo $2` 5312{ (ac_try="$ac_compiler --version >&5" 5313case "(($ac_try" in 5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5315 *) ac_try_echo=$ac_try;; 5316esac 5317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5318 (eval "$ac_compiler --version >&5") 2>&5 5319 ac_status=$? 5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5321 (exit $ac_status); } 5322{ (ac_try="$ac_compiler -v >&5" 5323case "(($ac_try" in 5324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5325 *) ac_try_echo=$ac_try;; 5326esac 5327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5328 (eval "$ac_compiler -v >&5") 2>&5 5329 ac_status=$? 5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5331 (exit $ac_status); } 5332{ (ac_try="$ac_compiler -V >&5" 5333case "(($ac_try" in 5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5335 *) ac_try_echo=$ac_try;; 5336esac 5337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5338 (eval "$ac_compiler -V >&5") 2>&5 5339 ac_status=$? 5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5341 (exit $ac_status); } 5342 5343{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5344echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5345if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5346 echo $ECHO_N "(cached) $ECHO_C" >&6 5347else 5348 cat >conftest.$ac_ext <<_ACEOF 5349/* confdefs.h. */ 5350_ACEOF 5351cat confdefs.h >>conftest.$ac_ext 5352cat >>conftest.$ac_ext <<_ACEOF 5353/* end confdefs.h. */ 5354 5355int 5356main () 5357{ 5358#ifndef __GNUC__ 5359 choke me 5360#endif 5361 5362 ; 5363 return 0; 5364} 5365_ACEOF 5366rm -f conftest.$ac_objext 5367if { (ac_try="$ac_compile" 5368case "(($ac_try" in 5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5370 *) ac_try_echo=$ac_try;; 5371esac 5372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5373 (eval "$ac_compile") 2>conftest.er1 5374 ac_status=$? 5375 grep -v '^ *+' conftest.er1 >conftest.err 5376 rm -f conftest.er1 5377 cat conftest.err >&5 5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5379 (exit $ac_status); } && { 5380 test -z "$ac_cxx_werror_flag" || 5381 test ! -s conftest.err 5382 } && test -s conftest.$ac_objext; then 5383 ac_compiler_gnu=yes 5384else 5385 echo "$as_me: failed program was:" >&5 5386sed 's/^/| /' conftest.$ac_ext >&5 5387 5388 ac_compiler_gnu=no 5389fi 5390 5391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5392ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5393 5394fi 5395{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5396echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5397GXX=`test $ac_compiler_gnu = yes && echo yes` 5398ac_test_CXXFLAGS=${CXXFLAGS+set} 5399ac_save_CXXFLAGS=$CXXFLAGS 5400{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5401echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5402if test "${ac_cv_prog_cxx_g+set}" = set; then 5403 echo $ECHO_N "(cached) $ECHO_C" >&6 5404else 5405 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5406 ac_cxx_werror_flag=yes 5407 ac_cv_prog_cxx_g=no 5408 CXXFLAGS="-g" 5409 cat >conftest.$ac_ext <<_ACEOF 5410/* confdefs.h. */ 5411_ACEOF 5412cat confdefs.h >>conftest.$ac_ext 5413cat >>conftest.$ac_ext <<_ACEOF 5414/* end confdefs.h. */ 5415 5416int 5417main () 5418{ 5419 5420 ; 5421 return 0; 5422} 5423_ACEOF 5424rm -f conftest.$ac_objext 5425if { (ac_try="$ac_compile" 5426case "(($ac_try" in 5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5428 *) ac_try_echo=$ac_try;; 5429esac 5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5431 (eval "$ac_compile") 2>conftest.er1 5432 ac_status=$? 5433 grep -v '^ *+' conftest.er1 >conftest.err 5434 rm -f conftest.er1 5435 cat conftest.err >&5 5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5437 (exit $ac_status); } && { 5438 test -z "$ac_cxx_werror_flag" || 5439 test ! -s conftest.err 5440 } && test -s conftest.$ac_objext; then 5441 ac_cv_prog_cxx_g=yes 5442else 5443 echo "$as_me: failed program was:" >&5 5444sed 's/^/| /' conftest.$ac_ext >&5 5445 5446 CXXFLAGS="" 5447 cat >conftest.$ac_ext <<_ACEOF 5448/* confdefs.h. */ 5449_ACEOF 5450cat confdefs.h >>conftest.$ac_ext 5451cat >>conftest.$ac_ext <<_ACEOF 5452/* end confdefs.h. */ 5453 5454int 5455main () 5456{ 5457 5458 ; 5459 return 0; 5460} 5461_ACEOF 5462rm -f conftest.$ac_objext 5463if { (ac_try="$ac_compile" 5464case "(($ac_try" in 5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5466 *) ac_try_echo=$ac_try;; 5467esac 5468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5469 (eval "$ac_compile") 2>conftest.er1 5470 ac_status=$? 5471 grep -v '^ *+' conftest.er1 >conftest.err 5472 rm -f conftest.er1 5473 cat conftest.err >&5 5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5475 (exit $ac_status); } && { 5476 test -z "$ac_cxx_werror_flag" || 5477 test ! -s conftest.err 5478 } && test -s conftest.$ac_objext; then 5479 : 5480else 5481 echo "$as_me: failed program was:" >&5 5482sed 's/^/| /' conftest.$ac_ext >&5 5483 5484 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5485 CXXFLAGS="-g" 5486 cat >conftest.$ac_ext <<_ACEOF 5487/* confdefs.h. */ 5488_ACEOF 5489cat confdefs.h >>conftest.$ac_ext 5490cat >>conftest.$ac_ext <<_ACEOF 5491/* end confdefs.h. */ 5492 5493int 5494main () 5495{ 5496 5497 ; 5498 return 0; 5499} 5500_ACEOF 5501rm -f conftest.$ac_objext 5502if { (ac_try="$ac_compile" 5503case "(($ac_try" in 5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5505 *) ac_try_echo=$ac_try;; 5506esac 5507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5508 (eval "$ac_compile") 2>conftest.er1 5509 ac_status=$? 5510 grep -v '^ *+' conftest.er1 >conftest.err 5511 rm -f conftest.er1 5512 cat conftest.err >&5 5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5514 (exit $ac_status); } && { 5515 test -z "$ac_cxx_werror_flag" || 5516 test ! -s conftest.err 5517 } && test -s conftest.$ac_objext; then 5518 ac_cv_prog_cxx_g=yes 5519else 5520 echo "$as_me: failed program was:" >&5 5521sed 's/^/| /' conftest.$ac_ext >&5 5522 5523 5524fi 5525 5526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5527fi 5528 5529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5530fi 5531 5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5533 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5534fi 5535{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5536echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5537if test "$ac_test_CXXFLAGS" = set; then 5538 CXXFLAGS=$ac_save_CXXFLAGS 5539elif test $ac_cv_prog_cxx_g = yes; then 5540 if test "$GXX" = yes; then 5541 CXXFLAGS="-g -O2" 5542 else 5543 CXXFLAGS="-g" 5544 fi 5545else 5546 if test "$GXX" = yes; then 5547 CXXFLAGS="-O2" 5548 else 5549 CXXFLAGS= 5550 fi 5551fi 5552ac_ext=cpp 5553ac_cpp='$CXXCPP $CPPFLAGS' 5554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5557 5558depcc="$CXX" am_compiler_list= 5559 5560{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5561echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5562if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5563 echo $ECHO_N "(cached) $ECHO_C" >&6 5564else 5565 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5566 # We make a subdir and do the tests there. Otherwise we can end up 5567 # making bogus files that we don't know about and never remove. For 5568 # instance it was reported that on HP-UX the gcc test will end up 5569 # making a dummy file named `D' -- because `-MD' means `put the output 5570 # in D'. 5571 mkdir conftest.dir 5572 # Copy depcomp to subdir because otherwise we won't find it if we're 5573 # using a relative directory. 5574 cp "$am_depcomp" conftest.dir 5575 cd conftest.dir 5576 # We will build objects and dependencies in a subdirectory because 5577 # it helps to detect inapplicable dependency modes. For instance 5578 # both Tru64's cc and ICC support -MD to output dependencies as a 5579 # side effect of compilation, but ICC will put the dependencies in 5580 # the current directory while Tru64 will put them in the object 5581 # directory. 5582 mkdir sub 5583 5584 am_cv_CXX_dependencies_compiler_type=none 5585 if test "$am_compiler_list" = ""; then 5586 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5587 fi 5588 for depmode in $am_compiler_list; do 5589 # Setup a source with many dependencies, because some compilers 5590 # like to wrap large dependency lists on column 80 (with \), and 5591 # we should not choose a depcomp mode which is confused by this. 5592 # 5593 # We need to recreate these files for each test, as the compiler may 5594 # overwrite some of them when testing with obscure command lines. 5595 # This happens at least with the AIX C compiler. 5596 : > sub/conftest.c 5597 for i in 1 2 3 4 5 6; do 5598 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5599 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5600 # Solaris 8's {/usr,}/bin/sh. 5601 touch sub/conftst$i.h 5602 done 5603 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5604 5605 case $depmode in 5606 nosideeffect) 5607 # after this tag, mechanisms are not by side-effect, so they'll 5608 # only be used when explicitly requested 5609 if test "x$enable_dependency_tracking" = xyes; then 5610 continue 5611 else 5612 break 5613 fi 5614 ;; 5615 none) break ;; 5616 esac 5617 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5618 # mode. It turns out that the SunPro C++ compiler does not properly 5619 # handle `-M -o', and we need to detect this. 5620 if depmode=$depmode \ 5621 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5622 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5623 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5624 >/dev/null 2>conftest.err && 5625 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5626 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5627 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5628 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5629 # icc doesn't choke on unknown options, it will just issue warnings 5630 # or remarks (even with -Werror). So we grep stderr for any message 5631 # that says an option was ignored or not supported. 5632 # When given -MP, icc 7.0 and 7.1 complain thusly: 5633 # icc: Command line warning: ignoring option '-M'; no argument required 5634 # The diagnosis changed in icc 8.0: 5635 # icc: Command line remark: option '-MP' not supported 5636 if (grep 'ignoring option' conftest.err || 5637 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5638 am_cv_CXX_dependencies_compiler_type=$depmode 5639 break 5640 fi 5641 fi 5642 done 5643 5644 cd .. 5645 rm -rf conftest.dir 5646else 5647 am_cv_CXX_dependencies_compiler_type=none 5648fi 5649 5650fi 5651{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5652echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5653CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5654 5655 if 5656 test "x$enable_dependency_tracking" != xno \ 5657 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5658 am__fastdepCXX_TRUE= 5659 am__fastdepCXX_FALSE='#' 5660else 5661 am__fastdepCXX_TRUE='#' 5662 am__fastdepCXX_FALSE= 5663fi 5664 5665 5666 5667 5668if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5669 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5670 (test "X$CXX" != "Xg++"))) ; then 5671 ac_ext=cpp 5672ac_cpp='$CXXCPP $CPPFLAGS' 5673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5676{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5677echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5678if test -z "$CXXCPP"; then 5679 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5680 echo $ECHO_N "(cached) $ECHO_C" >&6 5681else 5682 # Double quotes because CXXCPP needs to be expanded 5683 for CXXCPP in "$CXX -E" "/lib/cpp" 5684 do 5685 ac_preproc_ok=false 5686for ac_cxx_preproc_warn_flag in '' yes 5687do 5688 # Use a header file that comes with gcc, so configuring glibc 5689 # with a fresh cross-compiler works. 5690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5691 # <limits.h> exists even on freestanding compilers. 5692 # On the NeXT, cc -E runs the code through the compiler's parser, 5693 # not just through cpp. "Syntax error" is here to catch this case. 5694 cat >conftest.$ac_ext <<_ACEOF 5695/* confdefs.h. */ 5696_ACEOF 5697cat confdefs.h >>conftest.$ac_ext 5698cat >>conftest.$ac_ext <<_ACEOF 5699/* end confdefs.h. */ 5700#ifdef __STDC__ 5701# include <limits.h> 5702#else 5703# include <assert.h> 5704#endif 5705 Syntax error 5706_ACEOF 5707if { (ac_try="$ac_cpp conftest.$ac_ext" 5708case "(($ac_try" in 5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5710 *) ac_try_echo=$ac_try;; 5711esac 5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5714 ac_status=$? 5715 grep -v '^ *+' conftest.er1 >conftest.err 5716 rm -f conftest.er1 5717 cat conftest.err >&5 5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5719 (exit $ac_status); } >/dev/null && { 5720 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5721 test ! -s conftest.err 5722 }; then 5723 : 5724else 5725 echo "$as_me: failed program was:" >&5 5726sed 's/^/| /' conftest.$ac_ext >&5 5727 5728 # Broken: fails on valid input. 5729continue 5730fi 5731 5732rm -f conftest.err conftest.$ac_ext 5733 5734 # OK, works on sane cases. Now check whether nonexistent headers 5735 # can be detected and how. 5736 cat >conftest.$ac_ext <<_ACEOF 5737/* confdefs.h. */ 5738_ACEOF 5739cat confdefs.h >>conftest.$ac_ext 5740cat >>conftest.$ac_ext <<_ACEOF 5741/* end confdefs.h. */ 5742#include <ac_nonexistent.h> 5743_ACEOF 5744if { (ac_try="$ac_cpp conftest.$ac_ext" 5745case "(($ac_try" in 5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5747 *) ac_try_echo=$ac_try;; 5748esac 5749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5751 ac_status=$? 5752 grep -v '^ *+' conftest.er1 >conftest.err 5753 rm -f conftest.er1 5754 cat conftest.err >&5 5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5756 (exit $ac_status); } >/dev/null && { 5757 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5758 test ! -s conftest.err 5759 }; then 5760 # Broken: success on invalid input. 5761continue 5762else 5763 echo "$as_me: failed program was:" >&5 5764sed 's/^/| /' conftest.$ac_ext >&5 5765 5766 # Passes both tests. 5767ac_preproc_ok=: 5768break 5769fi 5770 5771rm -f conftest.err conftest.$ac_ext 5772 5773done 5774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5775rm -f conftest.err conftest.$ac_ext 5776if $ac_preproc_ok; then 5777 break 5778fi 5779 5780 done 5781 ac_cv_prog_CXXCPP=$CXXCPP 5782 5783fi 5784 CXXCPP=$ac_cv_prog_CXXCPP 5785else 5786 ac_cv_prog_CXXCPP=$CXXCPP 5787fi 5788{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5789echo "${ECHO_T}$CXXCPP" >&6; } 5790ac_preproc_ok=false 5791for ac_cxx_preproc_warn_flag in '' yes 5792do 5793 # Use a header file that comes with gcc, so configuring glibc 5794 # with a fresh cross-compiler works. 5795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5796 # <limits.h> exists even on freestanding compilers. 5797 # On the NeXT, cc -E runs the code through the compiler's parser, 5798 # not just through cpp. "Syntax error" is here to catch this case. 5799 cat >conftest.$ac_ext <<_ACEOF 5800/* confdefs.h. */ 5801_ACEOF 5802cat confdefs.h >>conftest.$ac_ext 5803cat >>conftest.$ac_ext <<_ACEOF 5804/* end confdefs.h. */ 5805#ifdef __STDC__ 5806# include <limits.h> 5807#else 5808# include <assert.h> 5809#endif 5810 Syntax error 5811_ACEOF 5812if { (ac_try="$ac_cpp conftest.$ac_ext" 5813case "(($ac_try" in 5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5815 *) ac_try_echo=$ac_try;; 5816esac 5817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5819 ac_status=$? 5820 grep -v '^ *+' conftest.er1 >conftest.err 5821 rm -f conftest.er1 5822 cat conftest.err >&5 5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5824 (exit $ac_status); } >/dev/null && { 5825 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5826 test ! -s conftest.err 5827 }; then 5828 : 5829else 5830 echo "$as_me: failed program was:" >&5 5831sed 's/^/| /' conftest.$ac_ext >&5 5832 5833 # Broken: fails on valid input. 5834continue 5835fi 5836 5837rm -f conftest.err conftest.$ac_ext 5838 5839 # OK, works on sane cases. Now check whether nonexistent headers 5840 # can be detected and how. 5841 cat >conftest.$ac_ext <<_ACEOF 5842/* confdefs.h. */ 5843_ACEOF 5844cat confdefs.h >>conftest.$ac_ext 5845cat >>conftest.$ac_ext <<_ACEOF 5846/* end confdefs.h. */ 5847#include <ac_nonexistent.h> 5848_ACEOF 5849if { (ac_try="$ac_cpp conftest.$ac_ext" 5850case "(($ac_try" in 5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5852 *) ac_try_echo=$ac_try;; 5853esac 5854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5856 ac_status=$? 5857 grep -v '^ *+' conftest.er1 >conftest.err 5858 rm -f conftest.er1 5859 cat conftest.err >&5 5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5861 (exit $ac_status); } >/dev/null && { 5862 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5863 test ! -s conftest.err 5864 }; then 5865 # Broken: success on invalid input. 5866continue 5867else 5868 echo "$as_me: failed program was:" >&5 5869sed 's/^/| /' conftest.$ac_ext >&5 5870 5871 # Passes both tests. 5872ac_preproc_ok=: 5873break 5874fi 5875 5876rm -f conftest.err conftest.$ac_ext 5877 5878done 5879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5880rm -f conftest.err conftest.$ac_ext 5881if $ac_preproc_ok; then 5882 : 5883else 5884 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5885See \`config.log' for more details." >&5 5886echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5887See \`config.log' for more details." >&2;} 5888 { (exit 1); exit 1; }; } 5889fi 5890 5891ac_ext=cpp 5892ac_cpp='$CXXCPP $CPPFLAGS' 5893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5896 5897fi 5898 5899 5900ac_ext=f 5901ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5902ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5903ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5904if test -n "$ac_tool_prefix"; then 5905 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 5906 do 5907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5908set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5909{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5911if test "${ac_cv_prog_F77+set}" = set; then 5912 echo $ECHO_N "(cached) $ECHO_C" >&6 5913else 5914 if test -n "$F77"; then 5915 ac_cv_prog_F77="$F77" # Let the user override the test. 5916else 5917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5918for as_dir in $PATH 5919do 5920 IFS=$as_save_IFS 5921 test -z "$as_dir" && as_dir=. 5922 for ac_exec_ext in '' $ac_executable_extensions; do 5923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5924 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5926 break 2 5927 fi 5928done 5929done 5930IFS=$as_save_IFS 5931 5932fi 5933fi 5934F77=$ac_cv_prog_F77 5935if test -n "$F77"; then 5936 { echo "$as_me:$LINENO: result: $F77" >&5 5937echo "${ECHO_T}$F77" >&6; } 5938else 5939 { echo "$as_me:$LINENO: result: no" >&5 5940echo "${ECHO_T}no" >&6; } 5941fi 5942 5943 5944 test -n "$F77" && break 5945 done 5946fi 5947if test -z "$F77"; then 5948 ac_ct_F77=$F77 5949 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 5950do 5951 # Extract the first word of "$ac_prog", so it can be a program name with args. 5952set dummy $ac_prog; ac_word=$2 5953{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5955if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5956 echo $ECHO_N "(cached) $ECHO_C" >&6 5957else 5958 if test -n "$ac_ct_F77"; then 5959 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5960else 5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5962for as_dir in $PATH 5963do 5964 IFS=$as_save_IFS 5965 test -z "$as_dir" && as_dir=. 5966 for ac_exec_ext in '' $ac_executable_extensions; do 5967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5968 ac_cv_prog_ac_ct_F77="$ac_prog" 5969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5970 break 2 5971 fi 5972done 5973done 5974IFS=$as_save_IFS 5975 5976fi 5977fi 5978ac_ct_F77=$ac_cv_prog_ac_ct_F77 5979if test -n "$ac_ct_F77"; then 5980 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5981echo "${ECHO_T}$ac_ct_F77" >&6; } 5982else 5983 { echo "$as_me:$LINENO: result: no" >&5 5984echo "${ECHO_T}no" >&6; } 5985fi 5986 5987 5988 test -n "$ac_ct_F77" && break 5989done 5990 5991 if test "x$ac_ct_F77" = x; then 5992 F77="" 5993 else 5994 case $cross_compiling:$ac_tool_warned in 5995yes:) 5996{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5997whose name does not start with the host triplet. If you think this 5998configuration is useful to you, please write to autoconf@gnu.org." >&5 5999echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6000whose name does not start with the host triplet. If you think this 6001configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6002ac_tool_warned=yes ;; 6003esac 6004 F77=$ac_ct_F77 6005 fi 6006fi 6007 6008 6009# Provide some information about the compiler. 6010echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6011ac_compiler=`set X $ac_compile; echo $2` 6012{ (ac_try="$ac_compiler --version >&5" 6013case "(($ac_try" in 6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6015 *) ac_try_echo=$ac_try;; 6016esac 6017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6018 (eval "$ac_compiler --version >&5") 2>&5 6019 ac_status=$? 6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6021 (exit $ac_status); } 6022{ (ac_try="$ac_compiler -v >&5" 6023case "(($ac_try" in 6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6025 *) ac_try_echo=$ac_try;; 6026esac 6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6028 (eval "$ac_compiler -v >&5") 2>&5 6029 ac_status=$? 6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6031 (exit $ac_status); } 6032{ (ac_try="$ac_compiler -V >&5" 6033case "(($ac_try" in 6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6035 *) ac_try_echo=$ac_try;; 6036esac 6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6038 (eval "$ac_compiler -V >&5") 2>&5 6039 ac_status=$? 6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6041 (exit $ac_status); } 6042rm -f a.out 6043 6044# If we don't use `.F' as extension, the preprocessor is not run on the 6045# input file. (Note that this only needs to work for GNU compilers.) 6046ac_save_ext=$ac_ext 6047ac_ext=F 6048{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6049echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6050if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6051 echo $ECHO_N "(cached) $ECHO_C" >&6 6052else 6053 cat >conftest.$ac_ext <<_ACEOF 6054 program main 6055#ifndef __GNUC__ 6056 choke me 6057#endif 6058 6059 end 6060_ACEOF 6061rm -f conftest.$ac_objext 6062if { (ac_try="$ac_compile" 6063case "(($ac_try" in 6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6065 *) ac_try_echo=$ac_try;; 6066esac 6067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6068 (eval "$ac_compile") 2>conftest.er1 6069 ac_status=$? 6070 grep -v '^ *+' conftest.er1 >conftest.err 6071 rm -f conftest.er1 6072 cat conftest.err >&5 6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6074 (exit $ac_status); } && { 6075 test -z "$ac_f77_werror_flag" || 6076 test ! -s conftest.err 6077 } && test -s conftest.$ac_objext; then 6078 ac_compiler_gnu=yes 6079else 6080 echo "$as_me: failed program was:" >&5 6081sed 's/^/| /' conftest.$ac_ext >&5 6082 6083 ac_compiler_gnu=no 6084fi 6085 6086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6087ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6088 6089fi 6090{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6091echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6092ac_ext=$ac_save_ext 6093ac_test_FFLAGS=${FFLAGS+set} 6094ac_save_FFLAGS=$FFLAGS 6095FFLAGS= 6096{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6097echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6098if test "${ac_cv_prog_f77_g+set}" = set; then 6099 echo $ECHO_N "(cached) $ECHO_C" >&6 6100else 6101 FFLAGS=-g 6102cat >conftest.$ac_ext <<_ACEOF 6103 program main 6104 6105 end 6106_ACEOF 6107rm -f conftest.$ac_objext 6108if { (ac_try="$ac_compile" 6109case "(($ac_try" in 6110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6111 *) ac_try_echo=$ac_try;; 6112esac 6113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6114 (eval "$ac_compile") 2>conftest.er1 6115 ac_status=$? 6116 grep -v '^ *+' conftest.er1 >conftest.err 6117 rm -f conftest.er1 6118 cat conftest.err >&5 6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6120 (exit $ac_status); } && { 6121 test -z "$ac_f77_werror_flag" || 6122 test ! -s conftest.err 6123 } && test -s conftest.$ac_objext; then 6124 ac_cv_prog_f77_g=yes 6125else 6126 echo "$as_me: failed program was:" >&5 6127sed 's/^/| /' conftest.$ac_ext >&5 6128 6129 ac_cv_prog_f77_g=no 6130fi 6131 6132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6133 6134fi 6135{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6136echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6137if test "$ac_test_FFLAGS" = set; then 6138 FFLAGS=$ac_save_FFLAGS 6139elif test $ac_cv_prog_f77_g = yes; then 6140 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6141 FFLAGS="-g -O2" 6142 else 6143 FFLAGS="-g" 6144 fi 6145else 6146 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6147 FFLAGS="-O2" 6148 else 6149 FFLAGS= 6150 fi 6151fi 6152 6153G77=`test $ac_compiler_gnu = yes && echo yes` 6154ac_ext=c 6155ac_cpp='$CPP $CPPFLAGS' 6156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6158ac_compiler_gnu=$ac_cv_c_compiler_gnu 6159 6160 6161 6162# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6163 6164# find the maximum length of command line arguments 6165{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6166echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6167if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6168 echo $ECHO_N "(cached) $ECHO_C" >&6 6169else 6170 i=0 6171 teststring="ABCD" 6172 6173 case $build_os in 6174 msdosdjgpp*) 6175 # On DJGPP, this test can blow up pretty badly due to problems in libc 6176 # (any single argument exceeding 2000 bytes causes a buffer overrun 6177 # during glob expansion). Even if it were fixed, the result of this 6178 # check would be larger than it should be. 6179 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6180 ;; 6181 6182 gnu*) 6183 # Under GNU Hurd, this test is not required because there is 6184 # no limit to the length of command line arguments. 6185 # Libtool will interpret -1 as no limit whatsoever 6186 lt_cv_sys_max_cmd_len=-1; 6187 ;; 6188 6189 cygwin* | mingw*) 6190 # On Win9x/ME, this test blows up -- it succeeds, but takes 6191 # about 5 minutes as the teststring grows exponentially. 6192 # Worse, since 9x/ME are not pre-emptively multitasking, 6193 # you end up with a "frozen" computer, even though with patience 6194 # the test eventually succeeds (with a max line length of 256k). 6195 # Instead, let's just punt: use the minimum linelength reported by 6196 # all of the supported platforms: 8192 (on NT/2K/XP). 6197 lt_cv_sys_max_cmd_len=8192; 6198 ;; 6199 6200 amigaos*) 6201 # On AmigaOS with pdksh, this test takes hours, literally. 6202 # So we just punt and use a minimum line length of 8192. 6203 lt_cv_sys_max_cmd_len=8192; 6204 ;; 6205 6206 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6207 # This has been around since 386BSD, at least. Likely further. 6208 if test -x /sbin/sysctl; then 6209 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6210 elif test -x /usr/sbin/sysctl; then 6211 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6212 else 6213 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6214 fi 6215 # And add a safety zone 6216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6218 ;; 6219 6220 interix*) 6221 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6222 lt_cv_sys_max_cmd_len=196608 6223 ;; 6224 6225 osf*) 6226 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6227 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6228 # nice to cause kernel panics so lets avoid the loop below. 6229 # First set a reasonable default. 6230 lt_cv_sys_max_cmd_len=16384 6231 # 6232 if test -x /sbin/sysconfig; then 6233 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6234 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6235 esac 6236 fi 6237 ;; 6238 sco3.2v5*) 6239 lt_cv_sys_max_cmd_len=102400 6240 ;; 6241 sysv5* | sco5v6* | sysv4.2uw2*) 6242 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6243 if test -n "$kargmax"; then 6244 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6245 else 6246 lt_cv_sys_max_cmd_len=32768 6247 fi 6248 ;; 6249 *) 6250 # If test is not a shell built-in, we'll probably end up computing a 6251 # maximum length that is only half of the actual maximum length, but 6252 # we can't tell. 6253 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6254 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6255 = "XX$teststring") >/dev/null 2>&1 && 6256 new_result=`expr "X$teststring" : ".*" 2>&1` && 6257 lt_cv_sys_max_cmd_len=$new_result && 6258 test $i != 17 # 1/2 MB should be enough 6259 do 6260 i=`expr $i + 1` 6261 teststring=$teststring$teststring 6262 done 6263 teststring= 6264 # Add a significant safety factor because C++ compilers can tack on massive 6265 # amounts of additional arguments before passing them to the linker. 6266 # It appears as though 1/2 is a usable value. 6267 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6268 ;; 6269 esac 6270 6271fi 6272 6273if test -n $lt_cv_sys_max_cmd_len ; then 6274 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6275echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6276else 6277 { echo "$as_me:$LINENO: result: none" >&5 6278echo "${ECHO_T}none" >&6; } 6279fi 6280 6281 6282 6283 6284# Check for command to grab the raw symbol name followed by C symbol from nm. 6285{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6286echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6287if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6288 echo $ECHO_N "(cached) $ECHO_C" >&6 6289else 6290 6291# These are sane defaults that work on at least a few old systems. 6292# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6293 6294# Character class describing NM global symbol codes. 6295symcode='[BCDEGRST]' 6296 6297# Regexp to match symbols that can be accessed directly from C. 6298sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6299 6300# Transform an extracted symbol line into a proper C declaration 6301lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6302 6303# Transform an extracted symbol line into symbol name and symbol address 6304lt_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'" 6305 6306# Define system-specific variables. 6307case $host_os in 6308aix*) 6309 symcode='[BCDT]' 6310 ;; 6311cygwin* | mingw* | pw32*) 6312 symcode='[ABCDGISTW]' 6313 ;; 6314hpux*) # Its linker distinguishes data from code symbols 6315 if test "$host_cpu" = ia64; then 6316 symcode='[ABCDEGRST]' 6317 fi 6318 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6319 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'" 6320 ;; 6321linux*) 6322 if test "$host_cpu" = ia64; then 6323 symcode='[ABCDGIRSTW]' 6324 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6325 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'" 6326 fi 6327 ;; 6328irix* | nonstopux*) 6329 symcode='[BCDEGRST]' 6330 ;; 6331osf*) 6332 symcode='[BCDEGQRST]' 6333 ;; 6334solaris*) 6335 symcode='[BDRT]' 6336 ;; 6337sco3.2v5*) 6338 symcode='[DT]' 6339 ;; 6340sysv4.2uw2*) 6341 symcode='[DT]' 6342 ;; 6343sysv5* | sco5v6* | unixware* | OpenUNIX*) 6344 symcode='[ABDT]' 6345 ;; 6346sysv4) 6347 symcode='[DFNSTU]' 6348 ;; 6349esac 6350 6351# Handle CRLF in mingw tool chain 6352opt_cr= 6353case $build_os in 6354mingw*) 6355 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6356 ;; 6357esac 6358 6359# If we're using GNU nm, then use its standard symbol codes. 6360case `$NM -V 2>&1` in 6361*GNU* | *'with BFD'*) 6362 symcode='[ABCDGIRSTW]' ;; 6363esac 6364 6365# Try without a prefix undercore, then with it. 6366for ac_symprfx in "" "_"; do 6367 6368 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6369 symxfrm="\\1 $ac_symprfx\\2 \\2" 6370 6371 # Write the raw and C identifiers. 6372 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6373 6374 # Check to see that the pipe works correctly. 6375 pipe_works=no 6376 6377 rm -f conftest* 6378 cat > conftest.$ac_ext <<EOF 6379#ifdef __cplusplus 6380extern "C" { 6381#endif 6382char nm_test_var; 6383void nm_test_func(){} 6384#ifdef __cplusplus 6385} 6386#endif 6387int main(){nm_test_var='a';nm_test_func();return(0);} 6388EOF 6389 6390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6391 (eval $ac_compile) 2>&5 6392 ac_status=$? 6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6394 (exit $ac_status); }; then 6395 # Now try to grab the symbols. 6396 nlist=conftest.nm 6397 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6398 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6399 ac_status=$? 6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6401 (exit $ac_status); } && test -s "$nlist"; then 6402 # Try sorting and uniquifying the output. 6403 if sort "$nlist" | uniq > "$nlist"T; then 6404 mv -f "$nlist"T "$nlist" 6405 else 6406 rm -f "$nlist"T 6407 fi 6408 6409 # Make sure that we snagged all the symbols we need. 6410 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6411 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6412 cat <<EOF > conftest.$ac_ext 6413#ifdef __cplusplus 6414extern "C" { 6415#endif 6416 6417EOF 6418 # Now generate the symbol file. 6419 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6420 6421 cat <<EOF >> conftest.$ac_ext 6422#if defined (__STDC__) && __STDC__ 6423# define lt_ptr_t void * 6424#else 6425# define lt_ptr_t char * 6426# define const 6427#endif 6428 6429/* The mapping between symbol names and symbols. */ 6430const struct { 6431 const char *name; 6432 lt_ptr_t address; 6433} 6434lt_preloaded_symbols[] = 6435{ 6436EOF 6437 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6438 cat <<\EOF >> conftest.$ac_ext 6439 {0, (lt_ptr_t) 0} 6440}; 6441 6442#ifdef __cplusplus 6443} 6444#endif 6445EOF 6446 # Now try linking the two files. 6447 mv conftest.$ac_objext conftstm.$ac_objext 6448 lt_save_LIBS="$LIBS" 6449 lt_save_CFLAGS="$CFLAGS" 6450 LIBS="conftstm.$ac_objext" 6451 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6453 (eval $ac_link) 2>&5 6454 ac_status=$? 6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6456 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6457 pipe_works=yes 6458 fi 6459 LIBS="$lt_save_LIBS" 6460 CFLAGS="$lt_save_CFLAGS" 6461 else 6462 echo "cannot find nm_test_func in $nlist" >&5 6463 fi 6464 else 6465 echo "cannot find nm_test_var in $nlist" >&5 6466 fi 6467 else 6468 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6469 fi 6470 else 6471 echo "$progname: failed program was:" >&5 6472 cat conftest.$ac_ext >&5 6473 fi 6474 rm -f conftest* conftst* 6475 6476 # Do not use the global_symbol_pipe unless it works. 6477 if test "$pipe_works" = yes; then 6478 break 6479 else 6480 lt_cv_sys_global_symbol_pipe= 6481 fi 6482done 6483 6484fi 6485 6486if test -z "$lt_cv_sys_global_symbol_pipe"; then 6487 lt_cv_sys_global_symbol_to_cdecl= 6488fi 6489if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6490 { echo "$as_me:$LINENO: result: failed" >&5 6491echo "${ECHO_T}failed" >&6; } 6492else 6493 { echo "$as_me:$LINENO: result: ok" >&5 6494echo "${ECHO_T}ok" >&6; } 6495fi 6496 6497{ echo "$as_me:$LINENO: checking for objdir" >&5 6498echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6499if test "${lt_cv_objdir+set}" = set; then 6500 echo $ECHO_N "(cached) $ECHO_C" >&6 6501else 6502 rm -f .libs 2>/dev/null 6503mkdir .libs 2>/dev/null 6504if test -d .libs; then 6505 lt_cv_objdir=.libs 6506else 6507 # MS-DOS does not allow filenames that begin with a dot. 6508 lt_cv_objdir=_libs 6509fi 6510rmdir .libs 2>/dev/null 6511fi 6512{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6513echo "${ECHO_T}$lt_cv_objdir" >&6; } 6514objdir=$lt_cv_objdir 6515 6516 6517 6518 6519 6520case $host_os in 6521aix3*) 6522 # AIX sometimes has problems with the GCC collect2 program. For some 6523 # reason, if we set the COLLECT_NAMES environment variable, the problems 6524 # vanish in a puff of smoke. 6525 if test "X${COLLECT_NAMES+set}" != Xset; then 6526 COLLECT_NAMES= 6527 export COLLECT_NAMES 6528 fi 6529 ;; 6530esac 6531 6532# Sed substitution that helps us do robust quoting. It backslashifies 6533# metacharacters that are still active within double-quoted strings. 6534Xsed='sed -e 1s/^X//' 6535sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6536 6537# Same as above, but do not quote variable references. 6538double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6539 6540# Sed substitution to delay expansion of an escaped shell variable in a 6541# double_quote_subst'ed string. 6542delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6543 6544# Sed substitution to avoid accidental globbing in evaled expressions 6545no_glob_subst='s/\*/\\\*/g' 6546 6547# Constants: 6548rm="rm -f" 6549 6550# Global variables: 6551default_ofile=libtool 6552can_build_shared=yes 6553 6554# All known linkers require a `.a' archive for static linking (except MSVC, 6555# which needs '.lib'). 6556libext=a 6557ltmain="$ac_aux_dir/ltmain.sh" 6558ofile="$default_ofile" 6559with_gnu_ld="$lt_cv_prog_gnu_ld" 6560 6561if test -n "$ac_tool_prefix"; then 6562 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6563set dummy ${ac_tool_prefix}ar; ac_word=$2 6564{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6566if test "${ac_cv_prog_AR+set}" = set; then 6567 echo $ECHO_N "(cached) $ECHO_C" >&6 6568else 6569 if test -n "$AR"; then 6570 ac_cv_prog_AR="$AR" # Let the user override the test. 6571else 6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6573for as_dir in $PATH 6574do 6575 IFS=$as_save_IFS 6576 test -z "$as_dir" && as_dir=. 6577 for ac_exec_ext in '' $ac_executable_extensions; do 6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6579 ac_cv_prog_AR="${ac_tool_prefix}ar" 6580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6581 break 2 6582 fi 6583done 6584done 6585IFS=$as_save_IFS 6586 6587fi 6588fi 6589AR=$ac_cv_prog_AR 6590if test -n "$AR"; then 6591 { echo "$as_me:$LINENO: result: $AR" >&5 6592echo "${ECHO_T}$AR" >&6; } 6593else 6594 { echo "$as_me:$LINENO: result: no" >&5 6595echo "${ECHO_T}no" >&6; } 6596fi 6597 6598 6599fi 6600if test -z "$ac_cv_prog_AR"; then 6601 ac_ct_AR=$AR 6602 # Extract the first word of "ar", so it can be a program name with args. 6603set dummy ar; ac_word=$2 6604{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6606if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6607 echo $ECHO_N "(cached) $ECHO_C" >&6 6608else 6609 if test -n "$ac_ct_AR"; then 6610 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6611else 6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6613for as_dir in $PATH 6614do 6615 IFS=$as_save_IFS 6616 test -z "$as_dir" && as_dir=. 6617 for ac_exec_ext in '' $ac_executable_extensions; do 6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6619 ac_cv_prog_ac_ct_AR="ar" 6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6621 break 2 6622 fi 6623done 6624done 6625IFS=$as_save_IFS 6626 6627fi 6628fi 6629ac_ct_AR=$ac_cv_prog_ac_ct_AR 6630if test -n "$ac_ct_AR"; then 6631 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6632echo "${ECHO_T}$ac_ct_AR" >&6; } 6633else 6634 { echo "$as_me:$LINENO: result: no" >&5 6635echo "${ECHO_T}no" >&6; } 6636fi 6637 6638 if test "x$ac_ct_AR" = x; then 6639 AR="false" 6640 else 6641 case $cross_compiling:$ac_tool_warned in 6642yes:) 6643{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6644whose name does not start with the host triplet. If you think this 6645configuration is useful to you, please write to autoconf@gnu.org." >&5 6646echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6647whose name does not start with the host triplet. If you think this 6648configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6649ac_tool_warned=yes ;; 6650esac 6651 AR=$ac_ct_AR 6652 fi 6653else 6654 AR="$ac_cv_prog_AR" 6655fi 6656 6657if test -n "$ac_tool_prefix"; then 6658 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6659set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6660{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6662if test "${ac_cv_prog_RANLIB+set}" = set; then 6663 echo $ECHO_N "(cached) $ECHO_C" >&6 6664else 6665 if test -n "$RANLIB"; then 6666 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6667else 6668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6669for as_dir in $PATH 6670do 6671 IFS=$as_save_IFS 6672 test -z "$as_dir" && as_dir=. 6673 for ac_exec_ext in '' $ac_executable_extensions; do 6674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6677 break 2 6678 fi 6679done 6680done 6681IFS=$as_save_IFS 6682 6683fi 6684fi 6685RANLIB=$ac_cv_prog_RANLIB 6686if test -n "$RANLIB"; then 6687 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6688echo "${ECHO_T}$RANLIB" >&6; } 6689else 6690 { echo "$as_me:$LINENO: result: no" >&5 6691echo "${ECHO_T}no" >&6; } 6692fi 6693 6694 6695fi 6696if test -z "$ac_cv_prog_RANLIB"; then 6697 ac_ct_RANLIB=$RANLIB 6698 # Extract the first word of "ranlib", so it can be a program name with args. 6699set dummy ranlib; ac_word=$2 6700{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6702if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6703 echo $ECHO_N "(cached) $ECHO_C" >&6 6704else 6705 if test -n "$ac_ct_RANLIB"; then 6706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6707else 6708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6709for as_dir in $PATH 6710do 6711 IFS=$as_save_IFS 6712 test -z "$as_dir" && as_dir=. 6713 for ac_exec_ext in '' $ac_executable_extensions; do 6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6715 ac_cv_prog_ac_ct_RANLIB="ranlib" 6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6717 break 2 6718 fi 6719done 6720done 6721IFS=$as_save_IFS 6722 6723fi 6724fi 6725ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6726if test -n "$ac_ct_RANLIB"; then 6727 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6728echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6729else 6730 { echo "$as_me:$LINENO: result: no" >&5 6731echo "${ECHO_T}no" >&6; } 6732fi 6733 6734 if test "x$ac_ct_RANLIB" = x; then 6735 RANLIB=":" 6736 else 6737 case $cross_compiling:$ac_tool_warned in 6738yes:) 6739{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6740whose name does not start with the host triplet. If you think this 6741configuration is useful to you, please write to autoconf@gnu.org." >&5 6742echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6743whose name does not start with the host triplet. If you think this 6744configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6745ac_tool_warned=yes ;; 6746esac 6747 RANLIB=$ac_ct_RANLIB 6748 fi 6749else 6750 RANLIB="$ac_cv_prog_RANLIB" 6751fi 6752 6753if test -n "$ac_tool_prefix"; then 6754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6755set dummy ${ac_tool_prefix}strip; ac_word=$2 6756{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6758if test "${ac_cv_prog_STRIP+set}" = set; then 6759 echo $ECHO_N "(cached) $ECHO_C" >&6 6760else 6761 if test -n "$STRIP"; then 6762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6763else 6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6765for as_dir in $PATH 6766do 6767 IFS=$as_save_IFS 6768 test -z "$as_dir" && as_dir=. 6769 for ac_exec_ext in '' $ac_executable_extensions; do 6770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6771 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6773 break 2 6774 fi 6775done 6776done 6777IFS=$as_save_IFS 6778 6779fi 6780fi 6781STRIP=$ac_cv_prog_STRIP 6782if test -n "$STRIP"; then 6783 { echo "$as_me:$LINENO: result: $STRIP" >&5 6784echo "${ECHO_T}$STRIP" >&6; } 6785else 6786 { echo "$as_me:$LINENO: result: no" >&5 6787echo "${ECHO_T}no" >&6; } 6788fi 6789 6790 6791fi 6792if test -z "$ac_cv_prog_STRIP"; then 6793 ac_ct_STRIP=$STRIP 6794 # Extract the first word of "strip", so it can be a program name with args. 6795set dummy strip; ac_word=$2 6796{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6798if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6799 echo $ECHO_N "(cached) $ECHO_C" >&6 6800else 6801 if test -n "$ac_ct_STRIP"; then 6802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6803else 6804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6805for as_dir in $PATH 6806do 6807 IFS=$as_save_IFS 6808 test -z "$as_dir" && as_dir=. 6809 for ac_exec_ext in '' $ac_executable_extensions; do 6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6811 ac_cv_prog_ac_ct_STRIP="strip" 6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6813 break 2 6814 fi 6815done 6816done 6817IFS=$as_save_IFS 6818 6819fi 6820fi 6821ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6822if test -n "$ac_ct_STRIP"; then 6823 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6824echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6825else 6826 { echo "$as_me:$LINENO: result: no" >&5 6827echo "${ECHO_T}no" >&6; } 6828fi 6829 6830 if test "x$ac_ct_STRIP" = x; then 6831 STRIP=":" 6832 else 6833 case $cross_compiling:$ac_tool_warned in 6834yes:) 6835{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6836whose name does not start with the host triplet. If you think this 6837configuration is useful to you, please write to autoconf@gnu.org." >&5 6838echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6839whose name does not start with the host triplet. If you think this 6840configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6841ac_tool_warned=yes ;; 6842esac 6843 STRIP=$ac_ct_STRIP 6844 fi 6845else 6846 STRIP="$ac_cv_prog_STRIP" 6847fi 6848 6849 6850old_CC="$CC" 6851old_CFLAGS="$CFLAGS" 6852 6853# Set sane defaults for various variables 6854test -z "$AR" && AR=ar 6855test -z "$AR_FLAGS" && AR_FLAGS=cru 6856test -z "$AS" && AS=as 6857test -z "$CC" && CC=cc 6858test -z "$LTCC" && LTCC=$CC 6859test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6860test -z "$DLLTOOL" && DLLTOOL=dlltool 6861test -z "$LD" && LD=ld 6862test -z "$LN_S" && LN_S="ln -s" 6863test -z "$MAGIC_CMD" && MAGIC_CMD=file 6864test -z "$NM" && NM=nm 6865test -z "$SED" && SED=sed 6866test -z "$OBJDUMP" && OBJDUMP=objdump 6867test -z "$RANLIB" && RANLIB=: 6868test -z "$STRIP" && STRIP=: 6869test -z "$ac_objext" && ac_objext=o 6870 6871# Determine commands to create old-style static archives. 6872old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6873old_postinstall_cmds='chmod 644 $oldlib' 6874old_postuninstall_cmds= 6875 6876if test -n "$RANLIB"; then 6877 case $host_os in 6878 openbsd*) 6879 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6880 ;; 6881 *) 6882 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6883 ;; 6884 esac 6885 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6886fi 6887 6888for cc_temp in $compiler""; do 6889 case $cc_temp in 6890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6892 \-*) ;; 6893 *) break;; 6894 esac 6895done 6896cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6897 6898 6899# Only perform the check for file, if the check method requires it 6900case $deplibs_check_method in 6901file_magic*) 6902 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6903 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6904echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6905if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6906 echo $ECHO_N "(cached) $ECHO_C" >&6 6907else 6908 case $MAGIC_CMD in 6909[\\/*] | ?:[\\/]*) 6910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6911 ;; 6912*) 6913 lt_save_MAGIC_CMD="$MAGIC_CMD" 6914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6915 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6916 for ac_dir in $ac_dummy; do 6917 IFS="$lt_save_ifs" 6918 test -z "$ac_dir" && ac_dir=. 6919 if test -f $ac_dir/${ac_tool_prefix}file; then 6920 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6921 if test -n "$file_magic_test_file"; then 6922 case $deplibs_check_method in 6923 "file_magic "*) 6924 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6927 $EGREP "$file_magic_regex" > /dev/null; then 6928 : 6929 else 6930 cat <<EOF 1>&2 6931 6932*** Warning: the command libtool uses to detect shared libraries, 6933*** $file_magic_cmd, produces output that libtool cannot recognize. 6934*** The result is that libtool may fail to recognize shared libraries 6935*** as such. This will affect the creation of libtool libraries that 6936*** depend on shared libraries, but programs linked with such libtool 6937*** libraries will work regardless of this problem. Nevertheless, you 6938*** may want to report the problem to your system manager and/or to 6939*** bug-libtool@gnu.org 6940 6941EOF 6942 fi ;; 6943 esac 6944 fi 6945 break 6946 fi 6947 done 6948 IFS="$lt_save_ifs" 6949 MAGIC_CMD="$lt_save_MAGIC_CMD" 6950 ;; 6951esac 6952fi 6953 6954MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6955if test -n "$MAGIC_CMD"; then 6956 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6957echo "${ECHO_T}$MAGIC_CMD" >&6; } 6958else 6959 { echo "$as_me:$LINENO: result: no" >&5 6960echo "${ECHO_T}no" >&6; } 6961fi 6962 6963if test -z "$lt_cv_path_MAGIC_CMD"; then 6964 if test -n "$ac_tool_prefix"; then 6965 { echo "$as_me:$LINENO: checking for file" >&5 6966echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6967if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6968 echo $ECHO_N "(cached) $ECHO_C" >&6 6969else 6970 case $MAGIC_CMD in 6971[\\/*] | ?:[\\/]*) 6972 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6973 ;; 6974*) 6975 lt_save_MAGIC_CMD="$MAGIC_CMD" 6976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6977 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6978 for ac_dir in $ac_dummy; do 6979 IFS="$lt_save_ifs" 6980 test -z "$ac_dir" && ac_dir=. 6981 if test -f $ac_dir/file; then 6982 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6983 if test -n "$file_magic_test_file"; then 6984 case $deplibs_check_method in 6985 "file_magic "*) 6986 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6987 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6988 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6989 $EGREP "$file_magic_regex" > /dev/null; then 6990 : 6991 else 6992 cat <<EOF 1>&2 6993 6994*** Warning: the command libtool uses to detect shared libraries, 6995*** $file_magic_cmd, produces output that libtool cannot recognize. 6996*** The result is that libtool may fail to recognize shared libraries 6997*** as such. This will affect the creation of libtool libraries that 6998*** depend on shared libraries, but programs linked with such libtool 6999*** libraries will work regardless of this problem. Nevertheless, you 7000*** may want to report the problem to your system manager and/or to 7001*** bug-libtool@gnu.org 7002 7003EOF 7004 fi ;; 7005 esac 7006 fi 7007 break 7008 fi 7009 done 7010 IFS="$lt_save_ifs" 7011 MAGIC_CMD="$lt_save_MAGIC_CMD" 7012 ;; 7013esac 7014fi 7015 7016MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7017if test -n "$MAGIC_CMD"; then 7018 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7019echo "${ECHO_T}$MAGIC_CMD" >&6; } 7020else 7021 { echo "$as_me:$LINENO: result: no" >&5 7022echo "${ECHO_T}no" >&6; } 7023fi 7024 7025 else 7026 MAGIC_CMD=: 7027 fi 7028fi 7029 7030 fi 7031 ;; 7032esac 7033 7034enable_dlopen=no 7035enable_win32_dll=no 7036 7037# Check whether --enable-libtool-lock was given. 7038if test "${enable_libtool_lock+set}" = set; then 7039 enableval=$enable_libtool_lock; 7040fi 7041 7042test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7043 7044 7045# Check whether --with-pic was given. 7046if test "${with_pic+set}" = set; then 7047 withval=$with_pic; pic_mode="$withval" 7048else 7049 pic_mode=default 7050fi 7051 7052test -z "$pic_mode" && pic_mode=default 7053 7054# Use C for the default configuration in the libtool script 7055tagname= 7056lt_save_CC="$CC" 7057ac_ext=c 7058ac_cpp='$CPP $CPPFLAGS' 7059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7061ac_compiler_gnu=$ac_cv_c_compiler_gnu 7062 7063 7064# Source file extension for C test sources. 7065ac_ext=c 7066 7067# Object file extension for compiled C test sources. 7068objext=o 7069objext=$objext 7070 7071# Code to be used in simple compile tests 7072lt_simple_compile_test_code="int some_variable = 0;\n" 7073 7074# Code to be used in simple link tests 7075lt_simple_link_test_code='int main(){return(0);}\n' 7076 7077 7078# If no C compiler was specified, use CC. 7079LTCC=${LTCC-"$CC"} 7080 7081# If no C compiler flags were specified, use CFLAGS. 7082LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7083 7084# Allow CC to be a program name with arguments. 7085compiler=$CC 7086 7087 7088# save warnings/boilerplate of simple test code 7089ac_outfile=conftest.$ac_objext 7090printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7091eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7092_lt_compiler_boilerplate=`cat conftest.err` 7093$rm conftest* 7094 7095ac_outfile=conftest.$ac_objext 7096printf "$lt_simple_link_test_code" >conftest.$ac_ext 7097eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7098_lt_linker_boilerplate=`cat conftest.err` 7099$rm conftest* 7100 7101 7102 7103lt_prog_compiler_no_builtin_flag= 7104 7105if test "$GCC" = yes; then 7106 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7107 7108 7109{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7110echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7111if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7112 echo $ECHO_N "(cached) $ECHO_C" >&6 7113else 7114 lt_cv_prog_compiler_rtti_exceptions=no 7115 ac_outfile=conftest.$ac_objext 7116 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7117 lt_compiler_flag="-fno-rtti -fno-exceptions" 7118 # Insert the option either (1) after the last *FLAGS variable, or 7119 # (2) before a word containing "conftest.", or (3) at the end. 7120 # Note that $ac_compile itself does not contain backslashes and begins 7121 # with a dollar sign (not a hyphen), so the echo should work correctly. 7122 # The option is referenced via a variable to avoid confusing sed. 7123 lt_compile=`echo "$ac_compile" | $SED \ 7124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7126 -e 's:$: $lt_compiler_flag:'` 7127 (eval echo "\"\$as_me:7127: $lt_compile\"" >&5) 7128 (eval "$lt_compile" 2>conftest.err) 7129 ac_status=$? 7130 cat conftest.err >&5 7131 echo "$as_me:7131: \$? = $ac_status" >&5 7132 if (exit $ac_status) && test -s "$ac_outfile"; then 7133 # The compiler can only warn and ignore the option if not recognized 7134 # So say no if there are warnings other than the usual output. 7135 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7137 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7138 lt_cv_prog_compiler_rtti_exceptions=yes 7139 fi 7140 fi 7141 $rm conftest* 7142 7143fi 7144{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7145echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7146 7147if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7148 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7149else 7150 : 7151fi 7152 7153fi 7154 7155lt_prog_compiler_wl= 7156lt_prog_compiler_pic= 7157lt_prog_compiler_static= 7158 7159{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7160echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7161 7162 if test "$GCC" = yes; then 7163 lt_prog_compiler_wl='-Wl,' 7164 lt_prog_compiler_static='-static' 7165 7166 case $host_os in 7167 aix*) 7168 # All AIX code is PIC. 7169 if test "$host_cpu" = ia64; then 7170 # AIX 5 now supports IA64 processor 7171 lt_prog_compiler_static='-Bstatic' 7172 fi 7173 ;; 7174 7175 amigaos*) 7176 # FIXME: we need at least 68020 code to build shared libraries, but 7177 # adding the `-m68020' flag to GCC prevents building anything better, 7178 # like `-m68040'. 7179 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7180 ;; 7181 7182 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7183 # PIC is the default for these OSes. 7184 ;; 7185 7186 mingw* | pw32* | os2*) 7187 # This hack is so that the source file can tell whether it is being 7188 # built for inclusion in a dll (and should export symbols for example). 7189 lt_prog_compiler_pic='-DDLL_EXPORT' 7190 ;; 7191 7192 darwin* | rhapsody*) 7193 # PIC is the default on this platform 7194 # Common symbols not allowed in MH_DYLIB files 7195 lt_prog_compiler_pic='-fno-common' 7196 ;; 7197 7198 interix3*) 7199 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7200 # Instead, we relocate shared libraries at runtime. 7201 ;; 7202 7203 msdosdjgpp*) 7204 # Just because we use GCC doesn't mean we suddenly get shared libraries 7205 # on systems that don't support them. 7206 lt_prog_compiler_can_build_shared=no 7207 enable_shared=no 7208 ;; 7209 7210 sysv4*MP*) 7211 if test -d /usr/nec; then 7212 lt_prog_compiler_pic=-Kconform_pic 7213 fi 7214 ;; 7215 7216 hpux*) 7217 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7218 # not for PA HP-UX. 7219 case $host_cpu in 7220 hppa*64*|ia64*) 7221 # +Z the default 7222 ;; 7223 *) 7224 lt_prog_compiler_pic='-fPIC' 7225 ;; 7226 esac 7227 ;; 7228 7229 *) 7230 lt_prog_compiler_pic='-fPIC' 7231 ;; 7232 esac 7233 else 7234 # PORTME Check for flag to pass linker flags through the system compiler. 7235 case $host_os in 7236 aix*) 7237 lt_prog_compiler_wl='-Wl,' 7238 if test "$host_cpu" = ia64; then 7239 # AIX 5 now supports IA64 processor 7240 lt_prog_compiler_static='-Bstatic' 7241 else 7242 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7243 fi 7244 ;; 7245 darwin*) 7246 # PIC is the default on this platform 7247 # Common symbols not allowed in MH_DYLIB files 7248 case $cc_basename in 7249 xlc*) 7250 lt_prog_compiler_pic='-qnocommon' 7251 lt_prog_compiler_wl='-Wl,' 7252 ;; 7253 esac 7254 ;; 7255 7256 mingw* | pw32* | os2*) 7257 # This hack is so that the source file can tell whether it is being 7258 # built for inclusion in a dll (and should export symbols for example). 7259 lt_prog_compiler_pic='-DDLL_EXPORT' 7260 ;; 7261 7262 hpux9* | hpux10* | hpux11*) 7263 lt_prog_compiler_wl='-Wl,' 7264 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7265 # not for PA HP-UX. 7266 case $host_cpu in 7267 hppa*64*|ia64*) 7268 # +Z the default 7269 ;; 7270 *) 7271 lt_prog_compiler_pic='+Z' 7272 ;; 7273 esac 7274 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7275 lt_prog_compiler_static='${wl}-a ${wl}archive' 7276 ;; 7277 7278 irix5* | irix6* | nonstopux*) 7279 lt_prog_compiler_wl='-Wl,' 7280 # PIC (with -KPIC) is the default. 7281 lt_prog_compiler_static='-non_shared' 7282 ;; 7283 7284 newsos6) 7285 lt_prog_compiler_pic='-KPIC' 7286 lt_prog_compiler_static='-Bstatic' 7287 ;; 7288 7289 linux*) 7290 case $cc_basename in 7291 icc* | ecc*) 7292 lt_prog_compiler_wl='-Wl,' 7293 lt_prog_compiler_pic='-KPIC' 7294 lt_prog_compiler_static='-static' 7295 ;; 7296 pgcc* | pgf77* | pgf90* | pgf95*) 7297 # Portland Group compilers (*not* the Pentium gcc compiler, 7298 # which looks to be a dead project) 7299 lt_prog_compiler_wl='-Wl,' 7300 lt_prog_compiler_pic='-fpic' 7301 lt_prog_compiler_static='-Bstatic' 7302 ;; 7303 ccc*) 7304 lt_prog_compiler_wl='-Wl,' 7305 # All Alpha code is PIC. 7306 lt_prog_compiler_static='-non_shared' 7307 ;; 7308 esac 7309 ;; 7310 7311 osf3* | osf4* | osf5*) 7312 lt_prog_compiler_wl='-Wl,' 7313 # All OSF/1 code is PIC. 7314 lt_prog_compiler_static='-non_shared' 7315 ;; 7316 7317 solaris*) 7318 lt_prog_compiler_pic='-KPIC' 7319 lt_prog_compiler_static='-Bstatic' 7320 case $cc_basename in 7321 f77* | f90* | f95*) 7322 lt_prog_compiler_wl='-Qoption ld ';; 7323 *) 7324 lt_prog_compiler_wl='-Wl,';; 7325 esac 7326 ;; 7327 7328 sunos4*) 7329 lt_prog_compiler_wl='-Qoption ld ' 7330 lt_prog_compiler_pic='-PIC' 7331 lt_prog_compiler_static='-Bstatic' 7332 ;; 7333 7334 sysv4 | sysv4.2uw2* | sysv4.3*) 7335 lt_prog_compiler_wl='-Wl,' 7336 lt_prog_compiler_pic='-KPIC' 7337 lt_prog_compiler_static='-Bstatic' 7338 ;; 7339 7340 sysv4*MP*) 7341 if test -d /usr/nec ;then 7342 lt_prog_compiler_pic='-Kconform_pic' 7343 lt_prog_compiler_static='-Bstatic' 7344 fi 7345 ;; 7346 7347 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7348 lt_prog_compiler_wl='-Wl,' 7349 lt_prog_compiler_pic='-KPIC' 7350 lt_prog_compiler_static='-Bstatic' 7351 ;; 7352 7353 unicos*) 7354 lt_prog_compiler_wl='-Wl,' 7355 lt_prog_compiler_can_build_shared=no 7356 ;; 7357 7358 uts4*) 7359 lt_prog_compiler_pic='-pic' 7360 lt_prog_compiler_static='-Bstatic' 7361 ;; 7362 7363 *) 7364 lt_prog_compiler_can_build_shared=no 7365 ;; 7366 esac 7367 fi 7368 7369{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7370echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7371 7372# 7373# Check to make sure the PIC flag actually works. 7374# 7375if test -n "$lt_prog_compiler_pic"; then 7376 7377{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7378echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7379if test "${lt_prog_compiler_pic_works+set}" = set; then 7380 echo $ECHO_N "(cached) $ECHO_C" >&6 7381else 7382 lt_prog_compiler_pic_works=no 7383 ac_outfile=conftest.$ac_objext 7384 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7385 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7386 # Insert the option either (1) after the last *FLAGS variable, or 7387 # (2) before a word containing "conftest.", or (3) at the end. 7388 # Note that $ac_compile itself does not contain backslashes and begins 7389 # with a dollar sign (not a hyphen), so the echo should work correctly. 7390 # The option is referenced via a variable to avoid confusing sed. 7391 lt_compile=`echo "$ac_compile" | $SED \ 7392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7394 -e 's:$: $lt_compiler_flag:'` 7395 (eval echo "\"\$as_me:7395: $lt_compile\"" >&5) 7396 (eval "$lt_compile" 2>conftest.err) 7397 ac_status=$? 7398 cat conftest.err >&5 7399 echo "$as_me:7399: \$? = $ac_status" >&5 7400 if (exit $ac_status) && test -s "$ac_outfile"; then 7401 # The compiler can only warn and ignore the option if not recognized 7402 # So say no if there are warnings other than the usual output. 7403 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7405 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7406 lt_prog_compiler_pic_works=yes 7407 fi 7408 fi 7409 $rm conftest* 7410 7411fi 7412{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7413echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7414 7415if test x"$lt_prog_compiler_pic_works" = xyes; then 7416 case $lt_prog_compiler_pic in 7417 "" | " "*) ;; 7418 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7419 esac 7420else 7421 lt_prog_compiler_pic= 7422 lt_prog_compiler_can_build_shared=no 7423fi 7424 7425fi 7426case $host_os in 7427 # For platforms which do not support PIC, -DPIC is meaningless: 7428 *djgpp*) 7429 lt_prog_compiler_pic= 7430 ;; 7431 *) 7432 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7433 ;; 7434esac 7435 7436# 7437# Check to make sure the static flag actually works. 7438# 7439wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7440{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7441echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7442if test "${lt_prog_compiler_static_works+set}" = set; then 7443 echo $ECHO_N "(cached) $ECHO_C" >&6 7444else 7445 lt_prog_compiler_static_works=no 7446 save_LDFLAGS="$LDFLAGS" 7447 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7448 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7449 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7450 # The linker can only warn and ignore the option if not recognized 7451 # So say no if there are warnings 7452 if test -s conftest.err; then 7453 # Append any errors to the config.log. 7454 cat conftest.err 1>&5 7455 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7456 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7457 if diff conftest.exp conftest.er2 >/dev/null; then 7458 lt_prog_compiler_static_works=yes 7459 fi 7460 else 7461 lt_prog_compiler_static_works=yes 7462 fi 7463 fi 7464 $rm conftest* 7465 LDFLAGS="$save_LDFLAGS" 7466 7467fi 7468{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7469echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7470 7471if test x"$lt_prog_compiler_static_works" = xyes; then 7472 : 7473else 7474 lt_prog_compiler_static= 7475fi 7476 7477 7478{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7479echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7480if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7481 echo $ECHO_N "(cached) $ECHO_C" >&6 7482else 7483 lt_cv_prog_compiler_c_o=no 7484 $rm -r conftest 2>/dev/null 7485 mkdir conftest 7486 cd conftest 7487 mkdir out 7488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7489 7490 lt_compiler_flag="-o out/conftest2.$ac_objext" 7491 # Insert the option either (1) after the last *FLAGS variable, or 7492 # (2) before a word containing "conftest.", or (3) at the end. 7493 # Note that $ac_compile itself does not contain backslashes and begins 7494 # with a dollar sign (not a hyphen), so the echo should work correctly. 7495 lt_compile=`echo "$ac_compile" | $SED \ 7496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7498 -e 's:$: $lt_compiler_flag:'` 7499 (eval echo "\"\$as_me:7499: $lt_compile\"" >&5) 7500 (eval "$lt_compile" 2>out/conftest.err) 7501 ac_status=$? 7502 cat out/conftest.err >&5 7503 echo "$as_me:7503: \$? = $ac_status" >&5 7504 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7505 then 7506 # The compiler can only warn and ignore the option if not recognized 7507 # So say no if there are warnings 7508 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7509 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7510 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7511 lt_cv_prog_compiler_c_o=yes 7512 fi 7513 fi 7514 chmod u+w . 2>&5 7515 $rm conftest* 7516 # SGI C++ compiler will create directory out/ii_files/ for 7517 # template instantiation 7518 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7519 $rm out/* && rmdir out 7520 cd .. 7521 rmdir conftest 7522 $rm conftest* 7523 7524fi 7525{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7526echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7527 7528 7529hard_links="nottested" 7530if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7531 # do not overwrite the value of need_locks provided by the user 7532 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7533echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7534 hard_links=yes 7535 $rm conftest* 7536 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7537 touch conftest.a 7538 ln conftest.a conftest.b 2>&5 || hard_links=no 7539 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7540 { echo "$as_me:$LINENO: result: $hard_links" >&5 7541echo "${ECHO_T}$hard_links" >&6; } 7542 if test "$hard_links" = no; then 7543 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7544echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7545 need_locks=warn 7546 fi 7547else 7548 need_locks=no 7549fi 7550 7551{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7552echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7553 7554 runpath_var= 7555 allow_undefined_flag= 7556 enable_shared_with_static_runtimes=no 7557 archive_cmds= 7558 archive_expsym_cmds= 7559 old_archive_From_new_cmds= 7560 old_archive_from_expsyms_cmds= 7561 export_dynamic_flag_spec= 7562 whole_archive_flag_spec= 7563 thread_safe_flag_spec= 7564 hardcode_libdir_flag_spec= 7565 hardcode_libdir_flag_spec_ld= 7566 hardcode_libdir_separator= 7567 hardcode_direct=no 7568 hardcode_minus_L=no 7569 hardcode_shlibpath_var=unsupported 7570 link_all_deplibs=unknown 7571 hardcode_automatic=no 7572 module_cmds= 7573 module_expsym_cmds= 7574 always_export_symbols=no 7575 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7576 # include_expsyms should be a list of space-separated symbols to be *always* 7577 # included in the symbol list 7578 include_expsyms= 7579 # exclude_expsyms can be an extended regexp of symbols to exclude 7580 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7581 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7582 # as well as any symbol that contains `d'. 7583 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7585 # platforms (ab)use it in PIC code, but their linkers get confused if 7586 # the symbol is explicitly referenced. Since portable code cannot 7587 # rely on this symbol name, it's probably fine to never include it in 7588 # preloaded symbol tables. 7589 extract_expsyms_cmds= 7590 # Just being paranoid about ensuring that cc_basename is set. 7591 for cc_temp in $compiler""; do 7592 case $cc_temp in 7593 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7594 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7595 \-*) ;; 7596 *) break;; 7597 esac 7598done 7599cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7600 7601 case $host_os in 7602 cygwin* | mingw* | pw32*) 7603 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7604 # When not using gcc, we currently assume that we are using 7605 # Microsoft Visual C++. 7606 if test "$GCC" != yes; then 7607 with_gnu_ld=no 7608 fi 7609 ;; 7610 interix*) 7611 # we just hope/assume this is gcc and not c89 (= MSVC++) 7612 with_gnu_ld=yes 7613 ;; 7614 openbsd*) 7615 with_gnu_ld=no 7616 ;; 7617 esac 7618 7619 ld_shlibs=yes 7620 if test "$with_gnu_ld" = yes; then 7621 # If archive_cmds runs LD, not CC, wlarc should be empty 7622 wlarc='${wl}' 7623 7624 # Set some defaults for GNU ld with shared library support. These 7625 # are reset later if shared libraries are not supported. Putting them 7626 # here allows them to be overridden if necessary. 7627 runpath_var=LD_RUN_PATH 7628 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7629 export_dynamic_flag_spec='${wl}--export-dynamic' 7630 # ancient GNU ld didn't support --whole-archive et. al. 7631 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7632 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7633 else 7634 whole_archive_flag_spec= 7635 fi 7636 supports_anon_versioning=no 7637 case `$LD -v 2>/dev/null` in 7638 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7639 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7640 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7641 *\ 2.11.*) ;; # other 2.11 versions 7642 *) supports_anon_versioning=yes ;; 7643 esac 7644 7645 # See if GNU ld supports shared libraries. 7646 case $host_os in 7647 aix3* | aix4* | aix5*) 7648 # On AIX/PPC, the GNU linker is very broken 7649 if test "$host_cpu" != ia64; then 7650 ld_shlibs=no 7651 cat <<EOF 1>&2 7652 7653*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7654*** to be unable to reliably create shared libraries on AIX. 7655*** Therefore, libtool is disabling shared libraries support. If you 7656*** really care for shared libraries, you may want to modify your PATH 7657*** so that a non-GNU linker is found, and then restart. 7658 7659EOF 7660 fi 7661 ;; 7662 7663 amigaos*) 7664 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)' 7665 hardcode_libdir_flag_spec='-L$libdir' 7666 hardcode_minus_L=yes 7667 7668 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7669 # that the semantics of dynamic libraries on AmigaOS, at least up 7670 # to version 4, is to share data among multiple programs linked 7671 # with the same dynamic library. Since this doesn't match the 7672 # behavior of shared libraries on other platforms, we can't use 7673 # them. 7674 ld_shlibs=no 7675 ;; 7676 7677 beos*) 7678 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7679 allow_undefined_flag=unsupported 7680 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7681 # support --undefined. This deserves some investigation. FIXME 7682 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7683 else 7684 ld_shlibs=no 7685 fi 7686 ;; 7687 7688 cygwin* | mingw* | pw32*) 7689 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7690 # as there is no search path for DLLs. 7691 hardcode_libdir_flag_spec='-L$libdir' 7692 allow_undefined_flag=unsupported 7693 always_export_symbols=no 7694 enable_shared_with_static_runtimes=yes 7695 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7696 7697 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7699 # If the export-symbols file already is a .def file (1st line 7700 # is EXPORTS), use it as is; otherwise, prepend... 7701 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7702 cp $export_symbols $output_objdir/$soname.def; 7703 else 7704 echo EXPORTS > $output_objdir/$soname.def; 7705 cat $export_symbols >> $output_objdir/$soname.def; 7706 fi~ 7707 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7708 else 7709 ld_shlibs=no 7710 fi 7711 ;; 7712 7713 interix3*) 7714 hardcode_direct=no 7715 hardcode_shlibpath_var=no 7716 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7717 export_dynamic_flag_spec='${wl}-E' 7718 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7719 # Instead, shared libraries are loaded at an image base (0x10000000 by 7720 # default) and relocated if they conflict, which is a slow very memory 7721 # consuming and fragmenting process. To avoid this, we pick a random, 7722 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7723 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7725 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' 7726 ;; 7727 7728 linux*) 7729 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7730 tmp_addflag= 7731 case $cc_basename,$host_cpu in 7732 pgcc*) # Portland Group C compiler 7733 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' 7734 tmp_addflag=' $pic_flag' 7735 ;; 7736 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7737 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' 7738 tmp_addflag=' $pic_flag -Mnomain' ;; 7739 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7740 tmp_addflag=' -i_dynamic' ;; 7741 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7742 tmp_addflag=' -i_dynamic -nofor_main' ;; 7743 ifc* | ifort*) # Intel Fortran compiler 7744 tmp_addflag=' -nofor_main' ;; 7745 esac 7746 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7747 7748 if test $supports_anon_versioning = yes; then 7749 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7750 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7751 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7752 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7753 fi 7754 else 7755 ld_shlibs=no 7756 fi 7757 ;; 7758 7759 netbsd*) 7760 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7761 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7762 wlarc= 7763 else 7764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7765 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7766 fi 7767 ;; 7768 7769 solaris*) 7770 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7771 ld_shlibs=no 7772 cat <<EOF 1>&2 7773 7774*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7775*** create shared libraries on Solaris systems. Therefore, libtool 7776*** is disabling shared libraries support. We urge you to upgrade GNU 7777*** binutils to release 2.9.1 or newer. Another option is to modify 7778*** your PATH or compiler configuration so that the native linker is 7779*** used, and then restart. 7780 7781EOF 7782 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7785 else 7786 ld_shlibs=no 7787 fi 7788 ;; 7789 7790 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7791 case `$LD -v 2>&1` in 7792 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7793 ld_shlibs=no 7794 cat <<_LT_EOF 1>&2 7795 7796*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7797*** reliably create shared libraries on SCO systems. Therefore, libtool 7798*** is disabling shared libraries support. We urge you to upgrade GNU 7799*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7800*** your PATH or compiler configuration so that the native linker is 7801*** used, and then restart. 7802 7803_LT_EOF 7804 ;; 7805 *) 7806 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7807 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7809 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7810 else 7811 ld_shlibs=no 7812 fi 7813 ;; 7814 esac 7815 ;; 7816 7817 sunos4*) 7818 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7819 wlarc= 7820 hardcode_direct=yes 7821 hardcode_shlibpath_var=no 7822 ;; 7823 7824 *) 7825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7828 else 7829 ld_shlibs=no 7830 fi 7831 ;; 7832 esac 7833 7834 if test "$ld_shlibs" = no; then 7835 runpath_var= 7836 hardcode_libdir_flag_spec= 7837 export_dynamic_flag_spec= 7838 whole_archive_flag_spec= 7839 fi 7840 else 7841 # PORTME fill in a description of your system's linker (not GNU ld) 7842 case $host_os in 7843 aix3*) 7844 allow_undefined_flag=unsupported 7845 always_export_symbols=yes 7846 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' 7847 # Note: this linker hardcodes the directories in LIBPATH if there 7848 # are no directories specified by -L. 7849 hardcode_minus_L=yes 7850 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7851 # Neither direct hardcoding nor static linking is supported with a 7852 # broken collect2. 7853 hardcode_direct=unsupported 7854 fi 7855 ;; 7856 7857 aix4* | aix5*) 7858 if test "$host_cpu" = ia64; then 7859 # On IA64, the linker does run time linking by default, so we don't 7860 # have to do anything special. 7861 aix_use_runtimelinking=no 7862 exp_sym_flag='-Bexport' 7863 no_entry_flag="" 7864 else 7865 # If we're using GNU nm, then we don't want the "-C" option. 7866 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7867 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7868 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' 7869 else 7870 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' 7871 fi 7872 aix_use_runtimelinking=no 7873 7874 # Test if we are trying to use run time linking or normal 7875 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7876 # need to do runtime linking. 7877 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7878 for ld_flag in $LDFLAGS; do 7879 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7880 aix_use_runtimelinking=yes 7881 break 7882 fi 7883 done 7884 ;; 7885 esac 7886 7887 exp_sym_flag='-bexport' 7888 no_entry_flag='-bnoentry' 7889 fi 7890 7891 # When large executables or shared objects are built, AIX ld can 7892 # have problems creating the table of contents. If linking a library 7893 # or program results in "error TOC overflow" add -mminimal-toc to 7894 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7895 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7896 7897 archive_cmds='' 7898 hardcode_direct=yes 7899 hardcode_libdir_separator=':' 7900 link_all_deplibs=yes 7901 7902 if test "$GCC" = yes; then 7903 case $host_os in aix4.[012]|aix4.[012].*) 7904 # We only want to do this on AIX 4.2 and lower, the check 7905 # below for broken collect2 doesn't work under 4.3+ 7906 collect2name=`${CC} -print-prog-name=collect2` 7907 if test -f "$collect2name" && \ 7908 strings "$collect2name" | grep resolve_lib_name >/dev/null 7909 then 7910 # We have reworked collect2 7911 hardcode_direct=yes 7912 else 7913 # We have old collect2 7914 hardcode_direct=unsupported 7915 # It fails to find uninstalled libraries when the uninstalled 7916 # path is not listed in the libpath. Setting hardcode_minus_L 7917 # to unsupported forces relinking 7918 hardcode_minus_L=yes 7919 hardcode_libdir_flag_spec='-L$libdir' 7920 hardcode_libdir_separator= 7921 fi 7922 ;; 7923 esac 7924 shared_flag='-shared' 7925 if test "$aix_use_runtimelinking" = yes; then 7926 shared_flag="$shared_flag "'${wl}-G' 7927 fi 7928 else 7929 # not using gcc 7930 if test "$host_cpu" = ia64; then 7931 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7932 # chokes on -Wl,-G. The following line is correct: 7933 shared_flag='-G' 7934 else 7935 if test "$aix_use_runtimelinking" = yes; then 7936 shared_flag='${wl}-G' 7937 else 7938 shared_flag='${wl}-bM:SRE' 7939 fi 7940 fi 7941 fi 7942 7943 # It seems that -bexpall does not export symbols beginning with 7944 # underscore (_), so it is better to generate a list of symbols to export. 7945 always_export_symbols=yes 7946 if test "$aix_use_runtimelinking" = yes; then 7947 # Warning - without using the other runtime loading flags (-brtl), 7948 # -berok will link without error, but may produce a broken library. 7949 allow_undefined_flag='-berok' 7950 # Determine the default libpath from the value encoded in an empty executable. 7951 cat >conftest.$ac_ext <<_ACEOF 7952/* confdefs.h. */ 7953_ACEOF 7954cat confdefs.h >>conftest.$ac_ext 7955cat >>conftest.$ac_ext <<_ACEOF 7956/* end confdefs.h. */ 7957 7958int 7959main () 7960{ 7961 7962 ; 7963 return 0; 7964} 7965_ACEOF 7966rm -f conftest.$ac_objext conftest$ac_exeext 7967if { (ac_try="$ac_link" 7968case "(($ac_try" in 7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7970 *) ac_try_echo=$ac_try;; 7971esac 7972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7973 (eval "$ac_link") 2>conftest.er1 7974 ac_status=$? 7975 grep -v '^ *+' conftest.er1 >conftest.err 7976 rm -f conftest.er1 7977 cat conftest.err >&5 7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7979 (exit $ac_status); } && { 7980 test -z "$ac_c_werror_flag" || 7981 test ! -s conftest.err 7982 } && test -s conftest$ac_exeext && 7983 $as_test_x conftest$ac_exeext; then 7984 7985aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7986}'` 7987# Check for a 64-bit object if we didn't find anything. 7988if 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; } 7989}'`; fi 7990else 7991 echo "$as_me: failed program was:" >&5 7992sed 's/^/| /' conftest.$ac_ext >&5 7993 7994 7995fi 7996 7997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7998 conftest$ac_exeext conftest.$ac_ext 7999if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8000 8001 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8002 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" 8003 else 8004 if test "$host_cpu" = ia64; then 8005 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8006 allow_undefined_flag="-z nodefs" 8007 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" 8008 else 8009 # Determine the default libpath from the value encoded in an empty executable. 8010 cat >conftest.$ac_ext <<_ACEOF 8011/* confdefs.h. */ 8012_ACEOF 8013cat confdefs.h >>conftest.$ac_ext 8014cat >>conftest.$ac_ext <<_ACEOF 8015/* end confdefs.h. */ 8016 8017int 8018main () 8019{ 8020 8021 ; 8022 return 0; 8023} 8024_ACEOF 8025rm -f conftest.$ac_objext conftest$ac_exeext 8026if { (ac_try="$ac_link" 8027case "(($ac_try" in 8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8029 *) ac_try_echo=$ac_try;; 8030esac 8031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8032 (eval "$ac_link") 2>conftest.er1 8033 ac_status=$? 8034 grep -v '^ *+' conftest.er1 >conftest.err 8035 rm -f conftest.er1 8036 cat conftest.err >&5 8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8038 (exit $ac_status); } && { 8039 test -z "$ac_c_werror_flag" || 8040 test ! -s conftest.err 8041 } && test -s conftest$ac_exeext && 8042 $as_test_x conftest$ac_exeext; then 8043 8044aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8045}'` 8046# Check for a 64-bit object if we didn't find anything. 8047if 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; } 8048}'`; fi 8049else 8050 echo "$as_me: failed program was:" >&5 8051sed 's/^/| /' conftest.$ac_ext >&5 8052 8053 8054fi 8055 8056rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8057 conftest$ac_exeext conftest.$ac_ext 8058if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8059 8060 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8061 # Warning - without using the other run time loading flags, 8062 # -berok will link without error, but may produce a broken library. 8063 no_undefined_flag=' ${wl}-bernotok' 8064 allow_undefined_flag=' ${wl}-berok' 8065 # Exported symbols can be pulled into shared objects from archives 8066 whole_archive_flag_spec='$convenience' 8067 archive_cmds_need_lc=yes 8068 # This is similar to how AIX traditionally builds its shared libraries. 8069 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' 8070 fi 8071 fi 8072 ;; 8073 8074 amigaos*) 8075 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)' 8076 hardcode_libdir_flag_spec='-L$libdir' 8077 hardcode_minus_L=yes 8078 # see comment about different semantics on the GNU ld section 8079 ld_shlibs=no 8080 ;; 8081 8082 bsdi[45]*) 8083 export_dynamic_flag_spec=-rdynamic 8084 ;; 8085 8086 cygwin* | mingw* | pw32*) 8087 # When not using gcc, we currently assume that we are using 8088 # Microsoft Visual C++. 8089 # hardcode_libdir_flag_spec is actually meaningless, as there is 8090 # no search path for DLLs. 8091 hardcode_libdir_flag_spec=' ' 8092 allow_undefined_flag=unsupported 8093 # Tell ltmain to make .lib files, not .a files. 8094 libext=lib 8095 # Tell ltmain to make .dll files, not .so files. 8096 shrext_cmds=".dll" 8097 # FIXME: Setting linknames here is a bad hack. 8098 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8099 # The linker will automatically build a .lib file if we build a DLL. 8100 old_archive_From_new_cmds='true' 8101 # FIXME: Should let the user specify the lib program. 8102 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8103 fix_srcfile_path='`cygpath -w "$srcfile"`' 8104 enable_shared_with_static_runtimes=yes 8105 ;; 8106 8107 darwin* | rhapsody*) 8108 case $host_os in 8109 rhapsody* | darwin1.[012]) 8110 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8111 ;; 8112 *) # Darwin 1.3 on 8113 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8114 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8115 else 8116 case ${MACOSX_DEPLOYMENT_TARGET} in 8117 10.[012]) 8118 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8119 ;; 8120 10.*) 8121 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8122 ;; 8123 esac 8124 fi 8125 ;; 8126 esac 8127 archive_cmds_need_lc=no 8128 hardcode_direct=no 8129 hardcode_automatic=yes 8130 hardcode_shlibpath_var=unsupported 8131 whole_archive_flag_spec='' 8132 link_all_deplibs=yes 8133 if test "$GCC" = yes ; then 8134 output_verbose_link_cmd='echo' 8135 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8136 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8137 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8138 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}' 8139 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}' 8140 else 8141 case $cc_basename in 8142 xlc*) 8143 output_verbose_link_cmd='echo' 8144 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8145 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8146 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8147 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}' 8148 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}' 8149 ;; 8150 *) 8151 ld_shlibs=no 8152 ;; 8153 esac 8154 fi 8155 ;; 8156 8157 dgux*) 8158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8159 hardcode_libdir_flag_spec='-L$libdir' 8160 hardcode_shlibpath_var=no 8161 ;; 8162 8163 freebsd1*) 8164 ld_shlibs=no 8165 ;; 8166 8167 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8168 # support. Future versions do this automatically, but an explicit c++rt0.o 8169 # does not break anything, and helps significantly (at the cost of a little 8170 # extra space). 8171 freebsd2.2*) 8172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8173 hardcode_libdir_flag_spec='-R$libdir' 8174 hardcode_direct=yes 8175 hardcode_shlibpath_var=no 8176 ;; 8177 8178 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8179 freebsd2*) 8180 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8181 hardcode_direct=yes 8182 hardcode_minus_L=yes 8183 hardcode_shlibpath_var=no 8184 ;; 8185 8186 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8187 freebsd* | kfreebsd*-gnu | dragonfly*) 8188 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8189 hardcode_libdir_flag_spec='-R$libdir' 8190 hardcode_direct=yes 8191 hardcode_shlibpath_var=no 8192 ;; 8193 8194 hpux9*) 8195 if test "$GCC" = yes; then 8196 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' 8197 else 8198 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' 8199 fi 8200 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8201 hardcode_libdir_separator=: 8202 hardcode_direct=yes 8203 8204 # hardcode_minus_L: Not really in the search PATH, 8205 # but as the default location of the library. 8206 hardcode_minus_L=yes 8207 export_dynamic_flag_spec='${wl}-E' 8208 ;; 8209 8210 hpux10*) 8211 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8212 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8213 else 8214 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8215 fi 8216 if test "$with_gnu_ld" = no; then 8217 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8218 hardcode_libdir_separator=: 8219 8220 hardcode_direct=yes 8221 export_dynamic_flag_spec='${wl}-E' 8222 8223 # hardcode_minus_L: Not really in the search PATH, 8224 # but as the default location of the library. 8225 hardcode_minus_L=yes 8226 fi 8227 ;; 8228 8229 hpux11*) 8230 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8231 case $host_cpu in 8232 hppa*64*) 8233 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8234 ;; 8235 ia64*) 8236 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8237 ;; 8238 *) 8239 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8240 ;; 8241 esac 8242 else 8243 case $host_cpu in 8244 hppa*64*) 8245 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8246 ;; 8247 ia64*) 8248 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8249 ;; 8250 *) 8251 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8252 ;; 8253 esac 8254 fi 8255 if test "$with_gnu_ld" = no; then 8256 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8257 hardcode_libdir_separator=: 8258 8259 case $host_cpu in 8260 hppa*64*|ia64*) 8261 hardcode_libdir_flag_spec_ld='+b $libdir' 8262 hardcode_direct=no 8263 hardcode_shlibpath_var=no 8264 ;; 8265 *) 8266 hardcode_direct=yes 8267 export_dynamic_flag_spec='${wl}-E' 8268 8269 # hardcode_minus_L: Not really in the search PATH, 8270 # but as the default location of the library. 8271 hardcode_minus_L=yes 8272 ;; 8273 esac 8274 fi 8275 ;; 8276 8277 irix5* | irix6* | nonstopux*) 8278 if test "$GCC" = yes; then 8279 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' 8280 else 8281 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' 8282 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8283 fi 8284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8285 hardcode_libdir_separator=: 8286 link_all_deplibs=yes 8287 ;; 8288 8289 netbsd*) 8290 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8292 else 8293 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8294 fi 8295 hardcode_libdir_flag_spec='-R$libdir' 8296 hardcode_direct=yes 8297 hardcode_shlibpath_var=no 8298 ;; 8299 8300 newsos6) 8301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8302 hardcode_direct=yes 8303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8304 hardcode_libdir_separator=: 8305 hardcode_shlibpath_var=no 8306 ;; 8307 8308 openbsd*) 8309 hardcode_direct=yes 8310 hardcode_shlibpath_var=no 8311 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8312 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8313 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8314 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8315 export_dynamic_flag_spec='${wl}-E' 8316 else 8317 case $host_os in 8318 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8319 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8320 hardcode_libdir_flag_spec='-R$libdir' 8321 ;; 8322 *) 8323 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8324 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8325 ;; 8326 esac 8327 fi 8328 ;; 8329 8330 os2*) 8331 hardcode_libdir_flag_spec='-L$libdir' 8332 hardcode_minus_L=yes 8333 allow_undefined_flag=unsupported 8334 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' 8335 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8336 ;; 8337 8338 osf3*) 8339 if test "$GCC" = yes; then 8340 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8341 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' 8342 else 8343 allow_undefined_flag=' -expect_unresolved \*' 8344 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' 8345 fi 8346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8347 hardcode_libdir_separator=: 8348 ;; 8349 8350 osf4* | osf5*) # as osf3* with the addition of -msym flag 8351 if test "$GCC" = yes; then 8352 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8353 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' 8354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8355 else 8356 allow_undefined_flag=' -expect_unresolved \*' 8357 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' 8358 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8359 $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' 8360 8361 # Both c and cxx compiler support -rpath directly 8362 hardcode_libdir_flag_spec='-rpath $libdir' 8363 fi 8364 hardcode_libdir_separator=: 8365 ;; 8366 8367 solaris*) 8368 no_undefined_flag=' -z text' 8369 if test "$GCC" = yes; then 8370 wlarc='${wl}' 8371 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8372 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8373 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8374 else 8375 wlarc='' 8376 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8377 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8378 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8379 fi 8380 hardcode_libdir_flag_spec='-R$libdir' 8381 hardcode_shlibpath_var=no 8382 case $host_os in 8383 solaris2.[0-5] | solaris2.[0-5].*) ;; 8384 *) 8385 # The compiler driver will combine linker options so we 8386 # cannot just pass the convience library names through 8387 # without $wl, iff we do not link with $LD. 8388 # Luckily, gcc supports the same syntax we need for Sun Studio. 8389 # Supported since Solaris 2.6 (maybe 2.5.1?) 8390 case $wlarc in 8391 '') 8392 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8393 *) 8394 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' ;; 8395 esac ;; 8396 esac 8397 link_all_deplibs=yes 8398 ;; 8399 8400 sunos4*) 8401 if test "x$host_vendor" = xsequent; then 8402 # Use $CC to link under sequent, because it throws in some extra .o 8403 # files that make .init and .fini sections work. 8404 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8405 else 8406 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8407 fi 8408 hardcode_libdir_flag_spec='-L$libdir' 8409 hardcode_direct=yes 8410 hardcode_minus_L=yes 8411 hardcode_shlibpath_var=no 8412 ;; 8413 8414 sysv4) 8415 case $host_vendor in 8416 sni) 8417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8418 hardcode_direct=yes # is this really true??? 8419 ;; 8420 siemens) 8421 ## LD is ld it makes a PLAMLIB 8422 ## CC just makes a GrossModule. 8423 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8424 reload_cmds='$CC -r -o $output$reload_objs' 8425 hardcode_direct=no 8426 ;; 8427 motorola) 8428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8429 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8430 ;; 8431 esac 8432 runpath_var='LD_RUN_PATH' 8433 hardcode_shlibpath_var=no 8434 ;; 8435 8436 sysv4.3*) 8437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8438 hardcode_shlibpath_var=no 8439 export_dynamic_flag_spec='-Bexport' 8440 ;; 8441 8442 sysv4*MP*) 8443 if test -d /usr/nec; then 8444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8445 hardcode_shlibpath_var=no 8446 runpath_var=LD_RUN_PATH 8447 hardcode_runpath_var=yes 8448 ld_shlibs=yes 8449 fi 8450 ;; 8451 8452 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8453 no_undefined_flag='${wl}-z,text' 8454 archive_cmds_need_lc=no 8455 hardcode_shlibpath_var=no 8456 runpath_var='LD_RUN_PATH' 8457 8458 if test "$GCC" = yes; then 8459 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8460 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8461 else 8462 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8463 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8464 fi 8465 ;; 8466 8467 sysv5* | sco3.2v5* | sco5v6*) 8468 # Note: We can NOT use -z defs as we might desire, because we do not 8469 # link with -lc, and that would cause any symbols used from libc to 8470 # always be unresolved, which means just about no library would 8471 # ever link correctly. If we're not using GNU ld we use -z text 8472 # though, which does catch some bad symbols but isn't as heavy-handed 8473 # as -z defs. 8474 no_undefined_flag='${wl}-z,text' 8475 allow_undefined_flag='${wl}-z,nodefs' 8476 archive_cmds_need_lc=no 8477 hardcode_shlibpath_var=no 8478 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8479 hardcode_libdir_separator=':' 8480 link_all_deplibs=yes 8481 export_dynamic_flag_spec='${wl}-Bexport' 8482 runpath_var='LD_RUN_PATH' 8483 8484 if test "$GCC" = yes; then 8485 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8486 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8487 else 8488 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8489 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8490 fi 8491 ;; 8492 8493 uts4*) 8494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8495 hardcode_libdir_flag_spec='-L$libdir' 8496 hardcode_shlibpath_var=no 8497 ;; 8498 8499 *) 8500 ld_shlibs=no 8501 ;; 8502 esac 8503 fi 8504 8505{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8506echo "${ECHO_T}$ld_shlibs" >&6; } 8507test "$ld_shlibs" = no && can_build_shared=no 8508 8509# 8510# Do we need to explicitly link libc? 8511# 8512case "x$archive_cmds_need_lc" in 8513x|xyes) 8514 # Assume -lc should be added 8515 archive_cmds_need_lc=yes 8516 8517 if test "$enable_shared" = yes && test "$GCC" = yes; then 8518 case $archive_cmds in 8519 *'~'*) 8520 # FIXME: we may have to deal with multi-command sequences. 8521 ;; 8522 '$CC '*) 8523 # Test whether the compiler implicitly links with -lc since on some 8524 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8525 # to ld, don't add -lc before -lgcc. 8526 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8527echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8528 $rm conftest* 8529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8530 8531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8532 (eval $ac_compile) 2>&5 8533 ac_status=$? 8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8535 (exit $ac_status); } 2>conftest.err; then 8536 soname=conftest 8537 lib=conftest 8538 libobjs=conftest.$ac_objext 8539 deplibs= 8540 wl=$lt_prog_compiler_wl 8541 pic_flag=$lt_prog_compiler_pic 8542 compiler_flags=-v 8543 linker_flags=-v 8544 verstring= 8545 output_objdir=. 8546 libname=conftest 8547 lt_save_allow_undefined_flag=$allow_undefined_flag 8548 allow_undefined_flag= 8549 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8550 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8551 ac_status=$? 8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8553 (exit $ac_status); } 8554 then 8555 archive_cmds_need_lc=no 8556 else 8557 archive_cmds_need_lc=yes 8558 fi 8559 allow_undefined_flag=$lt_save_allow_undefined_flag 8560 else 8561 cat conftest.err 1>&5 8562 fi 8563 $rm conftest* 8564 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8565echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8566 ;; 8567 esac 8568 fi 8569 ;; 8570esac 8571 8572{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8573echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8574library_names_spec= 8575libname_spec='lib$name' 8576soname_spec= 8577shrext_cmds=".so" 8578postinstall_cmds= 8579postuninstall_cmds= 8580finish_cmds= 8581finish_eval= 8582shlibpath_var= 8583shlibpath_overrides_runpath=unknown 8584version_type=none 8585dynamic_linker="$host_os ld.so" 8586sys_lib_dlsearch_path_spec="/lib /usr/lib" 8587if test "$GCC" = yes; then 8588 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8589 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8590 # if the path contains ";" then we assume it to be the separator 8591 # otherwise default to the standard path separator (i.e. ":") - it is 8592 # assumed that no part of a normal pathname contains ";" but that should 8593 # okay in the real world where ";" in dirpaths is itself problematic. 8594 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8595 else 8596 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8597 fi 8598else 8599 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8600fi 8601need_lib_prefix=unknown 8602hardcode_into_libs=no 8603 8604# when you set need_version to no, make sure it does not cause -set_version 8605# flags to be left without arguments 8606need_version=unknown 8607 8608case $host_os in 8609aix3*) 8610 version_type=linux 8611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8612 shlibpath_var=LIBPATH 8613 8614 # AIX 3 has no versioning support, so we append a major version to the name. 8615 soname_spec='${libname}${release}${shared_ext}$major' 8616 ;; 8617 8618aix4* | aix5*) 8619 version_type=linux 8620 need_lib_prefix=no 8621 need_version=no 8622 hardcode_into_libs=yes 8623 if test "$host_cpu" = ia64; then 8624 # AIX 5 supports IA64 8625 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8626 shlibpath_var=LD_LIBRARY_PATH 8627 else 8628 # With GCC up to 2.95.x, collect2 would create an import file 8629 # for dependence libraries. The import file would start with 8630 # the line `#! .'. This would cause the generated library to 8631 # depend on `.', always an invalid library. This was fixed in 8632 # development snapshots of GCC prior to 3.0. 8633 case $host_os in 8634 aix4 | aix4.[01] | aix4.[01].*) 8635 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8636 echo ' yes ' 8637 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8638 : 8639 else 8640 can_build_shared=no 8641 fi 8642 ;; 8643 esac 8644 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8645 # soname into executable. Probably we can add versioning support to 8646 # collect2, so additional links can be useful in future. 8647 if test "$aix_use_runtimelinking" = yes; then 8648 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8649 # instead of lib<name>.a to let people know that these are not 8650 # typical AIX shared libraries. 8651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8652 else 8653 # We preserve .a as extension for shared libraries through AIX4.2 8654 # and later when we are not doing run time linking. 8655 library_names_spec='${libname}${release}.a $libname.a' 8656 soname_spec='${libname}${release}${shared_ext}$major' 8657 fi 8658 shlibpath_var=LIBPATH 8659 fi 8660 ;; 8661 8662amigaos*) 8663 library_names_spec='$libname.ixlibrary $libname.a' 8664 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8665 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' 8666 ;; 8667 8668beos*) 8669 library_names_spec='${libname}${shared_ext}' 8670 dynamic_linker="$host_os ld.so" 8671 shlibpath_var=LIBRARY_PATH 8672 ;; 8673 8674bsdi[45]*) 8675 version_type=linux 8676 need_version=no 8677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8678 soname_spec='${libname}${release}${shared_ext}$major' 8679 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8680 shlibpath_var=LD_LIBRARY_PATH 8681 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8682 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8683 # the default ld.so.conf also contains /usr/contrib/lib and 8684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8685 # libtool to hard-code these into programs 8686 ;; 8687 8688cygwin* | mingw* | pw32*) 8689 version_type=windows 8690 shrext_cmds=".dll" 8691 need_version=no 8692 need_lib_prefix=no 8693 8694 case $GCC,$host_os in 8695 yes,cygwin* | yes,mingw* | yes,pw32*) 8696 library_names_spec='$libname.dll.a' 8697 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8698 postinstall_cmds='base_file=`basename \${file}`~ 8699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8700 dldir=$destdir/`dirname \$dlpath`~ 8701 test -d \$dldir || mkdir -p \$dldir~ 8702 $install_prog $dir/$dlname \$dldir/$dlname~ 8703 chmod a+x \$dldir/$dlname' 8704 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8705 dlpath=$dir/\$dldll~ 8706 $rm \$dlpath' 8707 shlibpath_overrides_runpath=yes 8708 8709 case $host_os in 8710 cygwin*) 8711 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8712 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8713 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8714 ;; 8715 mingw*) 8716 # MinGW DLLs use traditional 'lib' prefix 8717 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8718 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8719 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8720 # It is most probably a Windows format PATH printed by 8721 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8722 # path with ; separators, and with drive letters. We can handle the 8723 # drive letters (cygwin fileutils understands them), so leave them, 8724 # especially as we might pass files found there to a mingw objdump, 8725 # which wouldn't understand a cygwinified path. Ahh. 8726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8727 else 8728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8729 fi 8730 ;; 8731 pw32*) 8732 # pw32 DLLs use 'pw' prefix rather than 'lib' 8733 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8734 ;; 8735 esac 8736 ;; 8737 8738 *) 8739 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8740 ;; 8741 esac 8742 dynamic_linker='Win32 ld.exe' 8743 # FIXME: first we should search . and the directory the executable is in 8744 shlibpath_var=PATH 8745 ;; 8746 8747darwin* | rhapsody*) 8748 dynamic_linker="$host_os dyld" 8749 version_type=darwin 8750 need_lib_prefix=no 8751 need_version=no 8752 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8753 soname_spec='${libname}${release}${major}$shared_ext' 8754 shlibpath_overrides_runpath=yes 8755 shlibpath_var=DYLD_LIBRARY_PATH 8756 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8757 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8758 if test "$GCC" = yes; then 8759 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"` 8760 else 8761 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8762 fi 8763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8764 ;; 8765 8766dgux*) 8767 version_type=linux 8768 need_lib_prefix=no 8769 need_version=no 8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8771 soname_spec='${libname}${release}${shared_ext}$major' 8772 shlibpath_var=LD_LIBRARY_PATH 8773 ;; 8774 8775freebsd1*) 8776 dynamic_linker=no 8777 ;; 8778 8779kfreebsd*-gnu) 8780 version_type=linux 8781 need_lib_prefix=no 8782 need_version=no 8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8784 soname_spec='${libname}${release}${shared_ext}$major' 8785 shlibpath_var=LD_LIBRARY_PATH 8786 shlibpath_overrides_runpath=no 8787 hardcode_into_libs=yes 8788 dynamic_linker='GNU ld.so' 8789 ;; 8790 8791freebsd* | dragonfly*) 8792 # DragonFly does not have aout. When/if they implement a new 8793 # versioning mechanism, adjust this. 8794 if test -x /usr/bin/objformat; then 8795 objformat=`/usr/bin/objformat` 8796 else 8797 case $host_os in 8798 freebsd[123]*) objformat=aout ;; 8799 *) objformat=elf ;; 8800 esac 8801 fi 8802 version_type=freebsd-$objformat 8803 case $version_type in 8804 freebsd-elf*) 8805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8806 need_version=no 8807 need_lib_prefix=no 8808 ;; 8809 freebsd-*) 8810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8811 need_version=yes 8812 ;; 8813 esac 8814 shlibpath_var=LD_LIBRARY_PATH 8815 case $host_os in 8816 freebsd2*) 8817 shlibpath_overrides_runpath=yes 8818 ;; 8819 freebsd3.[01]* | freebsdelf3.[01]*) 8820 shlibpath_overrides_runpath=yes 8821 hardcode_into_libs=yes 8822 ;; 8823 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8824 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8825 shlibpath_overrides_runpath=no 8826 hardcode_into_libs=yes 8827 ;; 8828 freebsd*) # from 4.6 on 8829 shlibpath_overrides_runpath=yes 8830 hardcode_into_libs=yes 8831 ;; 8832 esac 8833 ;; 8834 8835gnu*) 8836 version_type=linux 8837 need_lib_prefix=no 8838 need_version=no 8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8840 soname_spec='${libname}${release}${shared_ext}$major' 8841 shlibpath_var=LD_LIBRARY_PATH 8842 hardcode_into_libs=yes 8843 ;; 8844 8845hpux9* | hpux10* | hpux11*) 8846 # Give a soname corresponding to the major version so that dld.sl refuses to 8847 # link against other versions. 8848 version_type=sunos 8849 need_lib_prefix=no 8850 need_version=no 8851 case $host_cpu in 8852 ia64*) 8853 shrext_cmds='.so' 8854 hardcode_into_libs=yes 8855 dynamic_linker="$host_os dld.so" 8856 shlibpath_var=LD_LIBRARY_PATH 8857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8859 soname_spec='${libname}${release}${shared_ext}$major' 8860 if test "X$HPUX_IA64_MODE" = X32; then 8861 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8862 else 8863 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8864 fi 8865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8866 ;; 8867 hppa*64*) 8868 shrext_cmds='.sl' 8869 hardcode_into_libs=yes 8870 dynamic_linker="$host_os dld.sl" 8871 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8874 soname_spec='${libname}${release}${shared_ext}$major' 8875 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8877 ;; 8878 *) 8879 shrext_cmds='.sl' 8880 dynamic_linker="$host_os dld.sl" 8881 shlibpath_var=SHLIB_PATH 8882 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8884 soname_spec='${libname}${release}${shared_ext}$major' 8885 ;; 8886 esac 8887 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8888 postinstall_cmds='chmod 555 $lib' 8889 ;; 8890 8891interix3*) 8892 version_type=linux 8893 need_lib_prefix=no 8894 need_version=no 8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8896 soname_spec='${libname}${release}${shared_ext}$major' 8897 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8898 shlibpath_var=LD_LIBRARY_PATH 8899 shlibpath_overrides_runpath=no 8900 hardcode_into_libs=yes 8901 ;; 8902 8903irix5* | irix6* | nonstopux*) 8904 case $host_os in 8905 nonstopux*) version_type=nonstopux ;; 8906 *) 8907 if test "$lt_cv_prog_gnu_ld" = yes; then 8908 version_type=linux 8909 else 8910 version_type=irix 8911 fi ;; 8912 esac 8913 need_lib_prefix=no 8914 need_version=no 8915 soname_spec='${libname}${release}${shared_ext}$major' 8916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8917 case $host_os in 8918 irix5* | nonstopux*) 8919 libsuff= shlibsuff= 8920 ;; 8921 *) 8922 case $LD in # libtool.m4 will add one of these switches to LD 8923 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8924 libsuff= shlibsuff= libmagic=32-bit;; 8925 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8926 libsuff=32 shlibsuff=N32 libmagic=N32;; 8927 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8928 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8929 *) libsuff= shlibsuff= libmagic=never-match;; 8930 esac 8931 ;; 8932 esac 8933 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8934 shlibpath_overrides_runpath=no 8935 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8936 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8937 hardcode_into_libs=yes 8938 ;; 8939 8940# No shared lib support for Linux oldld, aout, or coff. 8941linux*oldld* | linux*aout* | linux*coff*) 8942 dynamic_linker=no 8943 ;; 8944 8945# This must be Linux ELF. 8946linux*) 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8953 shlibpath_var=LD_LIBRARY_PATH 8954 shlibpath_overrides_runpath=no 8955 # This implies no fast_install, which is unacceptable. 8956 # Some rework will be needed to allow for fast_install 8957 # before this can be enabled. 8958 hardcode_into_libs=yes 8959 8960 # Append ld.so.conf contents to the search path 8961 if test -f /etc/ld.so.conf; then 8962 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' ' '` 8963 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8964 fi 8965 8966 # We used to test for /lib/ld.so.1 and disable shared libraries on 8967 # powerpc, because MkLinux only supported shared libraries with the 8968 # GNU dynamic linker. Since this was broken with cross compilers, 8969 # most powerpc-linux boxes support dynamic linking these days and 8970 # people can always --disable-shared, the test was removed, and we 8971 # assume the GNU/Linux dynamic linker is in use. 8972 dynamic_linker='GNU/Linux ld.so' 8973 ;; 8974 8975knetbsd*-gnu) 8976 version_type=linux 8977 need_lib_prefix=no 8978 need_version=no 8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8980 soname_spec='${libname}${release}${shared_ext}$major' 8981 shlibpath_var=LD_LIBRARY_PATH 8982 shlibpath_overrides_runpath=no 8983 hardcode_into_libs=yes 8984 dynamic_linker='GNU ld.so' 8985 ;; 8986 8987netbsd*) 8988 version_type=sunos 8989 need_lib_prefix=no 8990 need_version=no 8991 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8994 dynamic_linker='NetBSD (a.out) ld.so' 8995 else 8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8997 soname_spec='${libname}${release}${shared_ext}$major' 8998 dynamic_linker='NetBSD ld.elf_so' 8999 fi 9000 shlibpath_var=LD_LIBRARY_PATH 9001 shlibpath_overrides_runpath=yes 9002 hardcode_into_libs=yes 9003 ;; 9004 9005newsos6) 9006 version_type=linux 9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9008 shlibpath_var=LD_LIBRARY_PATH 9009 shlibpath_overrides_runpath=yes 9010 ;; 9011 9012nto-qnx*) 9013 version_type=linux 9014 need_lib_prefix=no 9015 need_version=no 9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9017 soname_spec='${libname}${release}${shared_ext}$major' 9018 shlibpath_var=LD_LIBRARY_PATH 9019 shlibpath_overrides_runpath=yes 9020 ;; 9021 9022openbsd*) 9023 version_type=sunos 9024 sys_lib_dlsearch_path_spec="/usr/lib" 9025 need_lib_prefix=no 9026 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9027 case $host_os in 9028 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9029 *) need_version=no ;; 9030 esac 9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9033 shlibpath_var=LD_LIBRARY_PATH 9034 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9035 case $host_os in 9036 openbsd2.[89] | openbsd2.[89].*) 9037 shlibpath_overrides_runpath=no 9038 ;; 9039 *) 9040 shlibpath_overrides_runpath=yes 9041 ;; 9042 esac 9043 else 9044 shlibpath_overrides_runpath=yes 9045 fi 9046 ;; 9047 9048os2*) 9049 libname_spec='$name' 9050 shrext_cmds=".dll" 9051 need_lib_prefix=no 9052 library_names_spec='$libname${shared_ext} $libname.a' 9053 dynamic_linker='OS/2 ld.exe' 9054 shlibpath_var=LIBPATH 9055 ;; 9056 9057osf3* | osf4* | osf5*) 9058 version_type=osf 9059 need_lib_prefix=no 9060 need_version=no 9061 soname_spec='${libname}${release}${shared_ext}$major' 9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9063 shlibpath_var=LD_LIBRARY_PATH 9064 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9065 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9066 ;; 9067 9068solaris*) 9069 version_type=linux 9070 need_lib_prefix=no 9071 need_version=no 9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9073 soname_spec='${libname}${release}${shared_ext}$major' 9074 shlibpath_var=LD_LIBRARY_PATH 9075 shlibpath_overrides_runpath=yes 9076 hardcode_into_libs=yes 9077 # ldd complains unless libraries are executable 9078 postinstall_cmds='chmod +x $lib' 9079 ;; 9080 9081sunos4*) 9082 version_type=sunos 9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9084 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9085 shlibpath_var=LD_LIBRARY_PATH 9086 shlibpath_overrides_runpath=yes 9087 if test "$with_gnu_ld" = yes; then 9088 need_lib_prefix=no 9089 fi 9090 need_version=yes 9091 ;; 9092 9093sysv4 | sysv4.3*) 9094 version_type=linux 9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9096 soname_spec='${libname}${release}${shared_ext}$major' 9097 shlibpath_var=LD_LIBRARY_PATH 9098 case $host_vendor in 9099 sni) 9100 shlibpath_overrides_runpath=no 9101 need_lib_prefix=no 9102 export_dynamic_flag_spec='${wl}-Blargedynsym' 9103 runpath_var=LD_RUN_PATH 9104 ;; 9105 siemens) 9106 need_lib_prefix=no 9107 ;; 9108 motorola) 9109 need_lib_prefix=no 9110 need_version=no 9111 shlibpath_overrides_runpath=no 9112 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9113 ;; 9114 esac 9115 ;; 9116 9117sysv4*MP*) 9118 if test -d /usr/nec ;then 9119 version_type=linux 9120 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9121 soname_spec='$libname${shared_ext}.$major' 9122 shlibpath_var=LD_LIBRARY_PATH 9123 fi 9124 ;; 9125 9126sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9127 version_type=freebsd-elf 9128 need_lib_prefix=no 9129 need_version=no 9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9131 soname_spec='${libname}${release}${shared_ext}$major' 9132 shlibpath_var=LD_LIBRARY_PATH 9133 hardcode_into_libs=yes 9134 if test "$with_gnu_ld" = yes; then 9135 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9136 shlibpath_overrides_runpath=no 9137 else 9138 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9139 shlibpath_overrides_runpath=yes 9140 case $host_os in 9141 sco3.2v5*) 9142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9143 ;; 9144 esac 9145 fi 9146 sys_lib_dlsearch_path_spec='/usr/lib' 9147 ;; 9148 9149uts4*) 9150 version_type=linux 9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9152 soname_spec='${libname}${release}${shared_ext}$major' 9153 shlibpath_var=LD_LIBRARY_PATH 9154 ;; 9155 9156*) 9157 dynamic_linker=no 9158 ;; 9159esac 9160{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9161echo "${ECHO_T}$dynamic_linker" >&6; } 9162test "$dynamic_linker" = no && can_build_shared=no 9163 9164variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9165if test "$GCC" = yes; then 9166 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9167fi 9168 9169{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9170echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9171hardcode_action= 9172if test -n "$hardcode_libdir_flag_spec" || \ 9173 test -n "$runpath_var" || \ 9174 test "X$hardcode_automatic" = "Xyes" ; then 9175 9176 # We can hardcode non-existant directories. 9177 if test "$hardcode_direct" != no && 9178 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9179 # have to relink, otherwise we might link with an installed library 9180 # when we should be linking with a yet-to-be-installed one 9181 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9182 test "$hardcode_minus_L" != no; then 9183 # Linking always hardcodes the temporary library directory. 9184 hardcode_action=relink 9185 else 9186 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9187 hardcode_action=immediate 9188 fi 9189else 9190 # We cannot hardcode anything, or else we can only hardcode existing 9191 # directories. 9192 hardcode_action=unsupported 9193fi 9194{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9195echo "${ECHO_T}$hardcode_action" >&6; } 9196 9197if test "$hardcode_action" = relink; then 9198 # Fast installation is not supported 9199 enable_fast_install=no 9200elif test "$shlibpath_overrides_runpath" = yes || 9201 test "$enable_shared" = no; then 9202 # Fast installation is not necessary 9203 enable_fast_install=needless 9204fi 9205 9206striplib= 9207old_striplib= 9208{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9209echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9210if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9212 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9213 { echo "$as_me:$LINENO: result: yes" >&5 9214echo "${ECHO_T}yes" >&6; } 9215else 9216# FIXME - insert some real tests, host_os isn't really good enough 9217 case $host_os in 9218 darwin*) 9219 if test -n "$STRIP" ; then 9220 striplib="$STRIP -x" 9221 { echo "$as_me:$LINENO: result: yes" >&5 9222echo "${ECHO_T}yes" >&6; } 9223 else 9224 { echo "$as_me:$LINENO: result: no" >&5 9225echo "${ECHO_T}no" >&6; } 9226fi 9227 ;; 9228 *) 9229 { echo "$as_me:$LINENO: result: no" >&5 9230echo "${ECHO_T}no" >&6; } 9231 ;; 9232 esac 9233fi 9234 9235if test "x$enable_dlopen" != xyes; then 9236 enable_dlopen=unknown 9237 enable_dlopen_self=unknown 9238 enable_dlopen_self_static=unknown 9239else 9240 lt_cv_dlopen=no 9241 lt_cv_dlopen_libs= 9242 9243 case $host_os in 9244 beos*) 9245 lt_cv_dlopen="load_add_on" 9246 lt_cv_dlopen_libs= 9247 lt_cv_dlopen_self=yes 9248 ;; 9249 9250 mingw* | pw32*) 9251 lt_cv_dlopen="LoadLibrary" 9252 lt_cv_dlopen_libs= 9253 ;; 9254 9255 cygwin*) 9256 lt_cv_dlopen="dlopen" 9257 lt_cv_dlopen_libs= 9258 ;; 9259 9260 darwin*) 9261 # if libdl is installed we need to link against it 9262 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9263echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9264if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9265 echo $ECHO_N "(cached) $ECHO_C" >&6 9266else 9267 ac_check_lib_save_LIBS=$LIBS 9268LIBS="-ldl $LIBS" 9269cat >conftest.$ac_ext <<_ACEOF 9270/* confdefs.h. */ 9271_ACEOF 9272cat confdefs.h >>conftest.$ac_ext 9273cat >>conftest.$ac_ext <<_ACEOF 9274/* end confdefs.h. */ 9275 9276/* Override any GCC internal prototype to avoid an error. 9277 Use char because int might match the return type of a GCC 9278 builtin and then its argument prototype would still apply. */ 9279#ifdef __cplusplus 9280extern "C" 9281#endif 9282char dlopen (); 9283int 9284main () 9285{ 9286return dlopen (); 9287 ; 9288 return 0; 9289} 9290_ACEOF 9291rm -f conftest.$ac_objext conftest$ac_exeext 9292if { (ac_try="$ac_link" 9293case "(($ac_try" in 9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9295 *) ac_try_echo=$ac_try;; 9296esac 9297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9298 (eval "$ac_link") 2>conftest.er1 9299 ac_status=$? 9300 grep -v '^ *+' conftest.er1 >conftest.err 9301 rm -f conftest.er1 9302 cat conftest.err >&5 9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9304 (exit $ac_status); } && { 9305 test -z "$ac_c_werror_flag" || 9306 test ! -s conftest.err 9307 } && test -s conftest$ac_exeext && 9308 $as_test_x conftest$ac_exeext; then 9309 ac_cv_lib_dl_dlopen=yes 9310else 9311 echo "$as_me: failed program was:" >&5 9312sed 's/^/| /' conftest.$ac_ext >&5 9313 9314 ac_cv_lib_dl_dlopen=no 9315fi 9316 9317rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9318 conftest$ac_exeext conftest.$ac_ext 9319LIBS=$ac_check_lib_save_LIBS 9320fi 9321{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9322echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9323if test $ac_cv_lib_dl_dlopen = yes; then 9324 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9325else 9326 9327 lt_cv_dlopen="dyld" 9328 lt_cv_dlopen_libs= 9329 lt_cv_dlopen_self=yes 9330 9331fi 9332 9333 ;; 9334 9335 *) 9336 { echo "$as_me:$LINENO: checking for shl_load" >&5 9337echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9338if test "${ac_cv_func_shl_load+set}" = set; then 9339 echo $ECHO_N "(cached) $ECHO_C" >&6 9340else 9341 cat >conftest.$ac_ext <<_ACEOF 9342/* confdefs.h. */ 9343_ACEOF 9344cat confdefs.h >>conftest.$ac_ext 9345cat >>conftest.$ac_ext <<_ACEOF 9346/* end confdefs.h. */ 9347/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9348 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9349#define shl_load innocuous_shl_load 9350 9351/* System header to define __stub macros and hopefully few prototypes, 9352 which can conflict with char shl_load (); below. 9353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9354 <limits.h> exists even on freestanding compilers. */ 9355 9356#ifdef __STDC__ 9357# include <limits.h> 9358#else 9359# include <assert.h> 9360#endif 9361 9362#undef shl_load 9363 9364/* Override any GCC internal prototype to avoid an error. 9365 Use char because int might match the return type of a GCC 9366 builtin and then its argument prototype would still apply. */ 9367#ifdef __cplusplus 9368extern "C" 9369#endif 9370char shl_load (); 9371/* The GNU C library defines this for functions which it implements 9372 to always fail with ENOSYS. Some functions are actually named 9373 something starting with __ and the normal name is an alias. */ 9374#if defined __stub_shl_load || defined __stub___shl_load 9375choke me 9376#endif 9377 9378int 9379main () 9380{ 9381return shl_load (); 9382 ; 9383 return 0; 9384} 9385_ACEOF 9386rm -f conftest.$ac_objext conftest$ac_exeext 9387if { (ac_try="$ac_link" 9388case "(($ac_try" in 9389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9390 *) ac_try_echo=$ac_try;; 9391esac 9392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9393 (eval "$ac_link") 2>conftest.er1 9394 ac_status=$? 9395 grep -v '^ *+' conftest.er1 >conftest.err 9396 rm -f conftest.er1 9397 cat conftest.err >&5 9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9399 (exit $ac_status); } && { 9400 test -z "$ac_c_werror_flag" || 9401 test ! -s conftest.err 9402 } && test -s conftest$ac_exeext && 9403 $as_test_x conftest$ac_exeext; then 9404 ac_cv_func_shl_load=yes 9405else 9406 echo "$as_me: failed program was:" >&5 9407sed 's/^/| /' conftest.$ac_ext >&5 9408 9409 ac_cv_func_shl_load=no 9410fi 9411 9412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9413 conftest$ac_exeext conftest.$ac_ext 9414fi 9415{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9416echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9417if test $ac_cv_func_shl_load = yes; then 9418 lt_cv_dlopen="shl_load" 9419else 9420 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9421echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9422if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9423 echo $ECHO_N "(cached) $ECHO_C" >&6 9424else 9425 ac_check_lib_save_LIBS=$LIBS 9426LIBS="-ldld $LIBS" 9427cat >conftest.$ac_ext <<_ACEOF 9428/* confdefs.h. */ 9429_ACEOF 9430cat confdefs.h >>conftest.$ac_ext 9431cat >>conftest.$ac_ext <<_ACEOF 9432/* end confdefs.h. */ 9433 9434/* Override any GCC internal prototype to avoid an error. 9435 Use char because int might match the return type of a GCC 9436 builtin and then its argument prototype would still apply. */ 9437#ifdef __cplusplus 9438extern "C" 9439#endif 9440char shl_load (); 9441int 9442main () 9443{ 9444return shl_load (); 9445 ; 9446 return 0; 9447} 9448_ACEOF 9449rm -f conftest.$ac_objext conftest$ac_exeext 9450if { (ac_try="$ac_link" 9451case "(($ac_try" in 9452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9453 *) ac_try_echo=$ac_try;; 9454esac 9455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9456 (eval "$ac_link") 2>conftest.er1 9457 ac_status=$? 9458 grep -v '^ *+' conftest.er1 >conftest.err 9459 rm -f conftest.er1 9460 cat conftest.err >&5 9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9462 (exit $ac_status); } && { 9463 test -z "$ac_c_werror_flag" || 9464 test ! -s conftest.err 9465 } && test -s conftest$ac_exeext && 9466 $as_test_x conftest$ac_exeext; then 9467 ac_cv_lib_dld_shl_load=yes 9468else 9469 echo "$as_me: failed program was:" >&5 9470sed 's/^/| /' conftest.$ac_ext >&5 9471 9472 ac_cv_lib_dld_shl_load=no 9473fi 9474 9475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9476 conftest$ac_exeext conftest.$ac_ext 9477LIBS=$ac_check_lib_save_LIBS 9478fi 9479{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9480echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9481if test $ac_cv_lib_dld_shl_load = yes; then 9482 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9483else 9484 { echo "$as_me:$LINENO: checking for dlopen" >&5 9485echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9486if test "${ac_cv_func_dlopen+set}" = set; then 9487 echo $ECHO_N "(cached) $ECHO_C" >&6 9488else 9489 cat >conftest.$ac_ext <<_ACEOF 9490/* confdefs.h. */ 9491_ACEOF 9492cat confdefs.h >>conftest.$ac_ext 9493cat >>conftest.$ac_ext <<_ACEOF 9494/* end confdefs.h. */ 9495/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9496 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9497#define dlopen innocuous_dlopen 9498 9499/* System header to define __stub macros and hopefully few prototypes, 9500 which can conflict with char dlopen (); below. 9501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9502 <limits.h> exists even on freestanding compilers. */ 9503 9504#ifdef __STDC__ 9505# include <limits.h> 9506#else 9507# include <assert.h> 9508#endif 9509 9510#undef dlopen 9511 9512/* Override any GCC internal prototype to avoid an error. 9513 Use char because int might match the return type of a GCC 9514 builtin and then its argument prototype would still apply. */ 9515#ifdef __cplusplus 9516extern "C" 9517#endif 9518char dlopen (); 9519/* The GNU C library defines this for functions which it implements 9520 to always fail with ENOSYS. Some functions are actually named 9521 something starting with __ and the normal name is an alias. */ 9522#if defined __stub_dlopen || defined __stub___dlopen 9523choke me 9524#endif 9525 9526int 9527main () 9528{ 9529return dlopen (); 9530 ; 9531 return 0; 9532} 9533_ACEOF 9534rm -f conftest.$ac_objext conftest$ac_exeext 9535if { (ac_try="$ac_link" 9536case "(($ac_try" in 9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9538 *) ac_try_echo=$ac_try;; 9539esac 9540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9541 (eval "$ac_link") 2>conftest.er1 9542 ac_status=$? 9543 grep -v '^ *+' conftest.er1 >conftest.err 9544 rm -f conftest.er1 9545 cat conftest.err >&5 9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9547 (exit $ac_status); } && { 9548 test -z "$ac_c_werror_flag" || 9549 test ! -s conftest.err 9550 } && test -s conftest$ac_exeext && 9551 $as_test_x conftest$ac_exeext; then 9552 ac_cv_func_dlopen=yes 9553else 9554 echo "$as_me: failed program was:" >&5 9555sed 's/^/| /' conftest.$ac_ext >&5 9556 9557 ac_cv_func_dlopen=no 9558fi 9559 9560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9561 conftest$ac_exeext conftest.$ac_ext 9562fi 9563{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9564echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9565if test $ac_cv_func_dlopen = yes; then 9566 lt_cv_dlopen="dlopen" 9567else 9568 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9569echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9570if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9571 echo $ECHO_N "(cached) $ECHO_C" >&6 9572else 9573 ac_check_lib_save_LIBS=$LIBS 9574LIBS="-ldl $LIBS" 9575cat >conftest.$ac_ext <<_ACEOF 9576/* confdefs.h. */ 9577_ACEOF 9578cat confdefs.h >>conftest.$ac_ext 9579cat >>conftest.$ac_ext <<_ACEOF 9580/* end confdefs.h. */ 9581 9582/* Override any GCC internal prototype to avoid an error. 9583 Use char because int might match the return type of a GCC 9584 builtin and then its argument prototype would still apply. */ 9585#ifdef __cplusplus 9586extern "C" 9587#endif 9588char dlopen (); 9589int 9590main () 9591{ 9592return dlopen (); 9593 ; 9594 return 0; 9595} 9596_ACEOF 9597rm -f conftest.$ac_objext conftest$ac_exeext 9598if { (ac_try="$ac_link" 9599case "(($ac_try" in 9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9601 *) ac_try_echo=$ac_try;; 9602esac 9603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9604 (eval "$ac_link") 2>conftest.er1 9605 ac_status=$? 9606 grep -v '^ *+' conftest.er1 >conftest.err 9607 rm -f conftest.er1 9608 cat conftest.err >&5 9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9610 (exit $ac_status); } && { 9611 test -z "$ac_c_werror_flag" || 9612 test ! -s conftest.err 9613 } && test -s conftest$ac_exeext && 9614 $as_test_x conftest$ac_exeext; then 9615 ac_cv_lib_dl_dlopen=yes 9616else 9617 echo "$as_me: failed program was:" >&5 9618sed 's/^/| /' conftest.$ac_ext >&5 9619 9620 ac_cv_lib_dl_dlopen=no 9621fi 9622 9623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9624 conftest$ac_exeext conftest.$ac_ext 9625LIBS=$ac_check_lib_save_LIBS 9626fi 9627{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9628echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9629if test $ac_cv_lib_dl_dlopen = yes; then 9630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9631else 9632 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9633echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9634if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9635 echo $ECHO_N "(cached) $ECHO_C" >&6 9636else 9637 ac_check_lib_save_LIBS=$LIBS 9638LIBS="-lsvld $LIBS" 9639cat >conftest.$ac_ext <<_ACEOF 9640/* confdefs.h. */ 9641_ACEOF 9642cat confdefs.h >>conftest.$ac_ext 9643cat >>conftest.$ac_ext <<_ACEOF 9644/* end confdefs.h. */ 9645 9646/* Override any GCC internal prototype to avoid an error. 9647 Use char because int might match the return type of a GCC 9648 builtin and then its argument prototype would still apply. */ 9649#ifdef __cplusplus 9650extern "C" 9651#endif 9652char dlopen (); 9653int 9654main () 9655{ 9656return dlopen (); 9657 ; 9658 return 0; 9659} 9660_ACEOF 9661rm -f conftest.$ac_objext conftest$ac_exeext 9662if { (ac_try="$ac_link" 9663case "(($ac_try" in 9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9665 *) ac_try_echo=$ac_try;; 9666esac 9667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9668 (eval "$ac_link") 2>conftest.er1 9669 ac_status=$? 9670 grep -v '^ *+' conftest.er1 >conftest.err 9671 rm -f conftest.er1 9672 cat conftest.err >&5 9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9674 (exit $ac_status); } && { 9675 test -z "$ac_c_werror_flag" || 9676 test ! -s conftest.err 9677 } && test -s conftest$ac_exeext && 9678 $as_test_x conftest$ac_exeext; then 9679 ac_cv_lib_svld_dlopen=yes 9680else 9681 echo "$as_me: failed program was:" >&5 9682sed 's/^/| /' conftest.$ac_ext >&5 9683 9684 ac_cv_lib_svld_dlopen=no 9685fi 9686 9687rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9688 conftest$ac_exeext conftest.$ac_ext 9689LIBS=$ac_check_lib_save_LIBS 9690fi 9691{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9692echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9693if test $ac_cv_lib_svld_dlopen = yes; then 9694 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9695else 9696 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9697echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9698if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9699 echo $ECHO_N "(cached) $ECHO_C" >&6 9700else 9701 ac_check_lib_save_LIBS=$LIBS 9702LIBS="-ldld $LIBS" 9703cat >conftest.$ac_ext <<_ACEOF 9704/* confdefs.h. */ 9705_ACEOF 9706cat confdefs.h >>conftest.$ac_ext 9707cat >>conftest.$ac_ext <<_ACEOF 9708/* end confdefs.h. */ 9709 9710/* Override any GCC internal prototype to avoid an error. 9711 Use char because int might match the return type of a GCC 9712 builtin and then its argument prototype would still apply. */ 9713#ifdef __cplusplus 9714extern "C" 9715#endif 9716char dld_link (); 9717int 9718main () 9719{ 9720return dld_link (); 9721 ; 9722 return 0; 9723} 9724_ACEOF 9725rm -f conftest.$ac_objext conftest$ac_exeext 9726if { (ac_try="$ac_link" 9727case "(($ac_try" in 9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9729 *) ac_try_echo=$ac_try;; 9730esac 9731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9732 (eval "$ac_link") 2>conftest.er1 9733 ac_status=$? 9734 grep -v '^ *+' conftest.er1 >conftest.err 9735 rm -f conftest.er1 9736 cat conftest.err >&5 9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9738 (exit $ac_status); } && { 9739 test -z "$ac_c_werror_flag" || 9740 test ! -s conftest.err 9741 } && test -s conftest$ac_exeext && 9742 $as_test_x conftest$ac_exeext; then 9743 ac_cv_lib_dld_dld_link=yes 9744else 9745 echo "$as_me: failed program was:" >&5 9746sed 's/^/| /' conftest.$ac_ext >&5 9747 9748 ac_cv_lib_dld_dld_link=no 9749fi 9750 9751rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9752 conftest$ac_exeext conftest.$ac_ext 9753LIBS=$ac_check_lib_save_LIBS 9754fi 9755{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9756echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9757if test $ac_cv_lib_dld_dld_link = yes; then 9758 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9759fi 9760 9761 9762fi 9763 9764 9765fi 9766 9767 9768fi 9769 9770 9771fi 9772 9773 9774fi 9775 9776 ;; 9777 esac 9778 9779 if test "x$lt_cv_dlopen" != xno; then 9780 enable_dlopen=yes 9781 else 9782 enable_dlopen=no 9783 fi 9784 9785 case $lt_cv_dlopen in 9786 dlopen) 9787 save_CPPFLAGS="$CPPFLAGS" 9788 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9789 9790 save_LDFLAGS="$LDFLAGS" 9791 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9792 9793 save_LIBS="$LIBS" 9794 LIBS="$lt_cv_dlopen_libs $LIBS" 9795 9796 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9797echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9798if test "${lt_cv_dlopen_self+set}" = set; then 9799 echo $ECHO_N "(cached) $ECHO_C" >&6 9800else 9801 if test "$cross_compiling" = yes; then : 9802 lt_cv_dlopen_self=cross 9803else 9804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9805 lt_status=$lt_dlunknown 9806 cat > conftest.$ac_ext <<EOF 9807#line 9807 "configure" 9808#include "confdefs.h" 9809 9810#if HAVE_DLFCN_H 9811#include <dlfcn.h> 9812#endif 9813 9814#include <stdio.h> 9815 9816#ifdef RTLD_GLOBAL 9817# define LT_DLGLOBAL RTLD_GLOBAL 9818#else 9819# ifdef DL_GLOBAL 9820# define LT_DLGLOBAL DL_GLOBAL 9821# else 9822# define LT_DLGLOBAL 0 9823# endif 9824#endif 9825 9826/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9827 find out it does not work in some platform. */ 9828#ifndef LT_DLLAZY_OR_NOW 9829# ifdef RTLD_LAZY 9830# define LT_DLLAZY_OR_NOW RTLD_LAZY 9831# else 9832# ifdef DL_LAZY 9833# define LT_DLLAZY_OR_NOW DL_LAZY 9834# else 9835# ifdef RTLD_NOW 9836# define LT_DLLAZY_OR_NOW RTLD_NOW 9837# else 9838# ifdef DL_NOW 9839# define LT_DLLAZY_OR_NOW DL_NOW 9840# else 9841# define LT_DLLAZY_OR_NOW 0 9842# endif 9843# endif 9844# endif 9845# endif 9846#endif 9847 9848#ifdef __cplusplus 9849extern "C" void exit (int); 9850#endif 9851 9852void fnord() { int i=42;} 9853int main () 9854{ 9855 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9856 int status = $lt_dlunknown; 9857 9858 if (self) 9859 { 9860 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9861 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9862 /* dlclose (self); */ 9863 } 9864 else 9865 puts (dlerror ()); 9866 9867 exit (status); 9868} 9869EOF 9870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9871 (eval $ac_link) 2>&5 9872 ac_status=$? 9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9874 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9875 (./conftest; exit; ) >&5 2>/dev/null 9876 lt_status=$? 9877 case x$lt_status in 9878 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9879 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9880 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9881 esac 9882 else : 9883 # compilation failed 9884 lt_cv_dlopen_self=no 9885 fi 9886fi 9887rm -fr conftest* 9888 9889 9890fi 9891{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9892echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9893 9894 if test "x$lt_cv_dlopen_self" = xyes; then 9895 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9896 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9897echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9898if test "${lt_cv_dlopen_self_static+set}" = set; then 9899 echo $ECHO_N "(cached) $ECHO_C" >&6 9900else 9901 if test "$cross_compiling" = yes; then : 9902 lt_cv_dlopen_self_static=cross 9903else 9904 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9905 lt_status=$lt_dlunknown 9906 cat > conftest.$ac_ext <<EOF 9907#line 9907 "configure" 9908#include "confdefs.h" 9909 9910#if HAVE_DLFCN_H 9911#include <dlfcn.h> 9912#endif 9913 9914#include <stdio.h> 9915 9916#ifdef RTLD_GLOBAL 9917# define LT_DLGLOBAL RTLD_GLOBAL 9918#else 9919# ifdef DL_GLOBAL 9920# define LT_DLGLOBAL DL_GLOBAL 9921# else 9922# define LT_DLGLOBAL 0 9923# endif 9924#endif 9925 9926/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9927 find out it does not work in some platform. */ 9928#ifndef LT_DLLAZY_OR_NOW 9929# ifdef RTLD_LAZY 9930# define LT_DLLAZY_OR_NOW RTLD_LAZY 9931# else 9932# ifdef DL_LAZY 9933# define LT_DLLAZY_OR_NOW DL_LAZY 9934# else 9935# ifdef RTLD_NOW 9936# define LT_DLLAZY_OR_NOW RTLD_NOW 9937# else 9938# ifdef DL_NOW 9939# define LT_DLLAZY_OR_NOW DL_NOW 9940# else 9941# define LT_DLLAZY_OR_NOW 0 9942# endif 9943# endif 9944# endif 9945# endif 9946#endif 9947 9948#ifdef __cplusplus 9949extern "C" void exit (int); 9950#endif 9951 9952void fnord() { int i=42;} 9953int main () 9954{ 9955 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9956 int status = $lt_dlunknown; 9957 9958 if (self) 9959 { 9960 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9961 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9962 /* dlclose (self); */ 9963 } 9964 else 9965 puts (dlerror ()); 9966 9967 exit (status); 9968} 9969EOF 9970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9971 (eval $ac_link) 2>&5 9972 ac_status=$? 9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9974 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9975 (./conftest; exit; ) >&5 2>/dev/null 9976 lt_status=$? 9977 case x$lt_status in 9978 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9979 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9980 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9981 esac 9982 else : 9983 # compilation failed 9984 lt_cv_dlopen_self_static=no 9985 fi 9986fi 9987rm -fr conftest* 9988 9989 9990fi 9991{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9992echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9993 fi 9994 9995 CPPFLAGS="$save_CPPFLAGS" 9996 LDFLAGS="$save_LDFLAGS" 9997 LIBS="$save_LIBS" 9998 ;; 9999 esac 10000 10001 case $lt_cv_dlopen_self in 10002 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10003 *) enable_dlopen_self=unknown ;; 10004 esac 10005 10006 case $lt_cv_dlopen_self_static in 10007 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10008 *) enable_dlopen_self_static=unknown ;; 10009 esac 10010fi 10011 10012 10013# Report which library types will actually be built 10014{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10015echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10016{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10017echo "${ECHO_T}$can_build_shared" >&6; } 10018 10019{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10020echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10021test "$can_build_shared" = "no" && enable_shared=no 10022 10023# On AIX, shared libraries and static libraries use the same namespace, and 10024# are all built from PIC. 10025case $host_os in 10026aix3*) 10027 test "$enable_shared" = yes && enable_static=no 10028 if test -n "$RANLIB"; then 10029 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10030 postinstall_cmds='$RANLIB $lib' 10031 fi 10032 ;; 10033 10034aix4* | aix5*) 10035 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10036 test "$enable_shared" = yes && enable_static=no 10037 fi 10038 ;; 10039esac 10040{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10041echo "${ECHO_T}$enable_shared" >&6; } 10042 10043{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10044echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10045# Make sure either enable_shared or enable_static is yes. 10046test "$enable_shared" = yes || enable_static=yes 10047{ echo "$as_me:$LINENO: result: $enable_static" >&5 10048echo "${ECHO_T}$enable_static" >&6; } 10049 10050# The else clause should only fire when bootstrapping the 10051# libtool distribution, otherwise you forgot to ship ltmain.sh 10052# with your package, and you will get complaints that there are 10053# no rules to generate ltmain.sh. 10054if test -f "$ltmain"; then 10055 # See if we are running on zsh, and set the options which allow our commands through 10056 # without removal of \ escapes. 10057 if test -n "${ZSH_VERSION+set}" ; then 10058 setopt NO_GLOB_SUBST 10059 fi 10060 # Now quote all the things that may contain metacharacters while being 10061 # careful not to overquote the AC_SUBSTed values. We take copies of the 10062 # variables and quote the copies for generation of the libtool script. 10063 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10064 SED SHELL STRIP \ 10065 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10066 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10067 deplibs_check_method reload_flag reload_cmds need_locks \ 10068 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10069 lt_cv_sys_global_symbol_to_c_name_address \ 10070 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10071 old_postinstall_cmds old_postuninstall_cmds \ 10072 compiler \ 10073 CC \ 10074 LD \ 10075 lt_prog_compiler_wl \ 10076 lt_prog_compiler_pic \ 10077 lt_prog_compiler_static \ 10078 lt_prog_compiler_no_builtin_flag \ 10079 export_dynamic_flag_spec \ 10080 thread_safe_flag_spec \ 10081 whole_archive_flag_spec \ 10082 enable_shared_with_static_runtimes \ 10083 old_archive_cmds \ 10084 old_archive_from_new_cmds \ 10085 predep_objects \ 10086 postdep_objects \ 10087 predeps \ 10088 postdeps \ 10089 compiler_lib_search_path \ 10090 archive_cmds \ 10091 archive_expsym_cmds \ 10092 postinstall_cmds \ 10093 postuninstall_cmds \ 10094 old_archive_from_expsyms_cmds \ 10095 allow_undefined_flag \ 10096 no_undefined_flag \ 10097 export_symbols_cmds \ 10098 hardcode_libdir_flag_spec \ 10099 hardcode_libdir_flag_spec_ld \ 10100 hardcode_libdir_separator \ 10101 hardcode_automatic \ 10102 module_cmds \ 10103 module_expsym_cmds \ 10104 lt_cv_prog_compiler_c_o \ 10105 exclude_expsyms \ 10106 include_expsyms; do 10107 10108 case $var in 10109 old_archive_cmds | \ 10110 old_archive_from_new_cmds | \ 10111 archive_cmds | \ 10112 archive_expsym_cmds | \ 10113 module_cmds | \ 10114 module_expsym_cmds | \ 10115 old_archive_from_expsyms_cmds | \ 10116 export_symbols_cmds | \ 10117 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10118 postinstall_cmds | postuninstall_cmds | \ 10119 old_postinstall_cmds | old_postuninstall_cmds | \ 10120 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10121 # Double-quote double-evaled strings. 10122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10123 ;; 10124 *) 10125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10126 ;; 10127 esac 10128 done 10129 10130 case $lt_echo in 10131 *'\$0 --fallback-echo"') 10132 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10133 ;; 10134 esac 10135 10136cfgfile="${ofile}T" 10137 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10138 $rm -f "$cfgfile" 10139 { echo "$as_me:$LINENO: creating $ofile" >&5 10140echo "$as_me: creating $ofile" >&6;} 10141 10142 cat <<__EOF__ >> "$cfgfile" 10143#! $SHELL 10144 10145# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10146# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10147# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10148# 10149# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10150# Free Software Foundation, Inc. 10151# 10152# This file is part of GNU Libtool: 10153# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10154# 10155# This program is free software; you can redistribute it and/or modify 10156# it under the terms of the GNU General Public License as published by 10157# the Free Software Foundation; either version 2 of the License, or 10158# (at your option) any later version. 10159# 10160# This program is distributed in the hope that it will be useful, but 10161# WITHOUT ANY WARRANTY; without even the implied warranty of 10162# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10163# General Public License for more details. 10164# 10165# You should have received a copy of the GNU General Public License 10166# along with this program; if not, write to the Free Software 10167# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10168# 10169# As a special exception to the GNU General Public License, if you 10170# distribute this file as part of a program that contains a 10171# configuration script generated by Autoconf, you may include it under 10172# the same distribution terms that you use for the rest of that program. 10173 10174# A sed program that does not truncate output. 10175SED=$lt_SED 10176 10177# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10178Xsed="$SED -e 1s/^X//" 10179 10180# The HP-UX ksh and POSIX shell print the target directory to stdout 10181# if CDPATH is set. 10182(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10183 10184# The names of the tagged configurations supported by this script. 10185available_tags= 10186 10187# ### BEGIN LIBTOOL CONFIG 10188 10189# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10190 10191# Shell to use when invoking shell scripts. 10192SHELL=$lt_SHELL 10193 10194# Whether or not to build shared libraries. 10195build_libtool_libs=$enable_shared 10196 10197# Whether or not to build static libraries. 10198build_old_libs=$enable_static 10199 10200# Whether or not to add -lc for building shared libraries. 10201build_libtool_need_lc=$archive_cmds_need_lc 10202 10203# Whether or not to disallow shared libs when runtime libs are static 10204allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10205 10206# Whether or not to optimize for fast installation. 10207fast_install=$enable_fast_install 10208 10209# The host system. 10210host_alias=$host_alias 10211host=$host 10212host_os=$host_os 10213 10214# The build system. 10215build_alias=$build_alias 10216build=$build 10217build_os=$build_os 10218 10219# An echo program that does not interpret backslashes. 10220echo=$lt_echo 10221 10222# The archiver. 10223AR=$lt_AR 10224AR_FLAGS=$lt_AR_FLAGS 10225 10226# A C compiler. 10227LTCC=$lt_LTCC 10228 10229# LTCC compiler flags. 10230LTCFLAGS=$lt_LTCFLAGS 10231 10232# A language-specific compiler. 10233CC=$lt_compiler 10234 10235# Is the compiler the GNU C compiler? 10236with_gcc=$GCC 10237 10238# An ERE matcher. 10239EGREP=$lt_EGREP 10240 10241# The linker used to build libraries. 10242LD=$lt_LD 10243 10244# Whether we need hard or soft links. 10245LN_S=$lt_LN_S 10246 10247# A BSD-compatible nm program. 10248NM=$lt_NM 10249 10250# A symbol stripping program 10251STRIP=$lt_STRIP 10252 10253# Used to examine libraries when file_magic_cmd begins "file" 10254MAGIC_CMD=$MAGIC_CMD 10255 10256# Used on cygwin: DLL creation program. 10257DLLTOOL="$DLLTOOL" 10258 10259# Used on cygwin: object dumper. 10260OBJDUMP="$OBJDUMP" 10261 10262# Used on cygwin: assembler. 10263AS="$AS" 10264 10265# The name of the directory that contains temporary libtool files. 10266objdir=$objdir 10267 10268# How to create reloadable object files. 10269reload_flag=$lt_reload_flag 10270reload_cmds=$lt_reload_cmds 10271 10272# How to pass a linker flag through the compiler. 10273wl=$lt_lt_prog_compiler_wl 10274 10275# Object file suffix (normally "o"). 10276objext="$ac_objext" 10277 10278# Old archive suffix (normally "a"). 10279libext="$libext" 10280 10281# Shared library suffix (normally ".so"). 10282shrext_cmds='$shrext_cmds' 10283 10284# Executable file suffix (normally ""). 10285exeext="$exeext" 10286 10287# Additional compiler flags for building library objects. 10288pic_flag=$lt_lt_prog_compiler_pic 10289pic_mode=$pic_mode 10290 10291# What is the maximum length of a command? 10292max_cmd_len=$lt_cv_sys_max_cmd_len 10293 10294# Does compiler simultaneously support -c and -o options? 10295compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10296 10297# Must we lock files when doing compilation? 10298need_locks=$lt_need_locks 10299 10300# Do we need the lib prefix for modules? 10301need_lib_prefix=$need_lib_prefix 10302 10303# Do we need a version for libraries? 10304need_version=$need_version 10305 10306# Whether dlopen is supported. 10307dlopen_support=$enable_dlopen 10308 10309# Whether dlopen of programs is supported. 10310dlopen_self=$enable_dlopen_self 10311 10312# Whether dlopen of statically linked programs is supported. 10313dlopen_self_static=$enable_dlopen_self_static 10314 10315# Compiler flag to prevent dynamic linking. 10316link_static_flag=$lt_lt_prog_compiler_static 10317 10318# Compiler flag to turn off builtin functions. 10319no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10320 10321# Compiler flag to allow reflexive dlopens. 10322export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10323 10324# Compiler flag to generate shared objects directly from archives. 10325whole_archive_flag_spec=$lt_whole_archive_flag_spec 10326 10327# Compiler flag to generate thread-safe objects. 10328thread_safe_flag_spec=$lt_thread_safe_flag_spec 10329 10330# Library versioning type. 10331version_type=$version_type 10332 10333# Format of library name prefix. 10334libname_spec=$lt_libname_spec 10335 10336# List of archive names. First name is the real one, the rest are links. 10337# The last name is the one that the linker finds with -lNAME. 10338library_names_spec=$lt_library_names_spec 10339 10340# The coded name of the library, if different from the real name. 10341soname_spec=$lt_soname_spec 10342 10343# Commands used to build and install an old-style archive. 10344RANLIB=$lt_RANLIB 10345old_archive_cmds=$lt_old_archive_cmds 10346old_postinstall_cmds=$lt_old_postinstall_cmds 10347old_postuninstall_cmds=$lt_old_postuninstall_cmds 10348 10349# Create an old-style archive from a shared archive. 10350old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10351 10352# Create a temporary old-style archive to link instead of a shared archive. 10353old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10354 10355# Commands used to build and install a shared archive. 10356archive_cmds=$lt_archive_cmds 10357archive_expsym_cmds=$lt_archive_expsym_cmds 10358postinstall_cmds=$lt_postinstall_cmds 10359postuninstall_cmds=$lt_postuninstall_cmds 10360 10361# Commands used to build a loadable module (assumed same as above if empty) 10362module_cmds=$lt_module_cmds 10363module_expsym_cmds=$lt_module_expsym_cmds 10364 10365# Commands to strip libraries. 10366old_striplib=$lt_old_striplib 10367striplib=$lt_striplib 10368 10369# Dependencies to place before the objects being linked to create a 10370# shared library. 10371predep_objects=$lt_predep_objects 10372 10373# Dependencies to place after the objects being linked to create a 10374# shared library. 10375postdep_objects=$lt_postdep_objects 10376 10377# Dependencies to place before the objects being linked to create a 10378# shared library. 10379predeps=$lt_predeps 10380 10381# Dependencies to place after the objects being linked to create a 10382# shared library. 10383postdeps=$lt_postdeps 10384 10385# The library search path used internally by the compiler when linking 10386# a shared library. 10387compiler_lib_search_path=$lt_compiler_lib_search_path 10388 10389# Method to check whether dependent libraries are shared objects. 10390deplibs_check_method=$lt_deplibs_check_method 10391 10392# Command to use when deplibs_check_method == file_magic. 10393file_magic_cmd=$lt_file_magic_cmd 10394 10395# Flag that allows shared libraries with undefined symbols to be built. 10396allow_undefined_flag=$lt_allow_undefined_flag 10397 10398# Flag that forces no undefined symbols. 10399no_undefined_flag=$lt_no_undefined_flag 10400 10401# Commands used to finish a libtool library installation in a directory. 10402finish_cmds=$lt_finish_cmds 10403 10404# Same as above, but a single script fragment to be evaled but not shown. 10405finish_eval=$lt_finish_eval 10406 10407# Take the output of nm and produce a listing of raw symbols and C names. 10408global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10409 10410# Transform the output of nm in a proper C declaration 10411global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10412 10413# Transform the output of nm in a C name address pair 10414global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10415 10416# This is the shared library runtime path variable. 10417runpath_var=$runpath_var 10418 10419# This is the shared library path variable. 10420shlibpath_var=$shlibpath_var 10421 10422# Is shlibpath searched before the hard-coded library search path? 10423shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10424 10425# How to hardcode a shared library path into an executable. 10426hardcode_action=$hardcode_action 10427 10428# Whether we should hardcode library paths into libraries. 10429hardcode_into_libs=$hardcode_into_libs 10430 10431# Flag to hardcode \$libdir into a binary during linking. 10432# This must work even if \$libdir does not exist. 10433hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10434 10435# If ld is used when linking, flag to hardcode \$libdir into 10436# a binary during linking. This must work even if \$libdir does 10437# not exist. 10438hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10439 10440# Whether we need a single -rpath flag with a separated argument. 10441hardcode_libdir_separator=$lt_hardcode_libdir_separator 10442 10443# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10444# resulting binary. 10445hardcode_direct=$hardcode_direct 10446 10447# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10448# resulting binary. 10449hardcode_minus_L=$hardcode_minus_L 10450 10451# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10452# the resulting binary. 10453hardcode_shlibpath_var=$hardcode_shlibpath_var 10454 10455# Set to yes if building a shared library automatically hardcodes DIR into the library 10456# and all subsequent libraries and executables linked against it. 10457hardcode_automatic=$hardcode_automatic 10458 10459# Variables whose values should be saved in libtool wrapper scripts and 10460# restored at relink time. 10461variables_saved_for_relink="$variables_saved_for_relink" 10462 10463# Whether libtool must link a program against all its dependency libraries. 10464link_all_deplibs=$link_all_deplibs 10465 10466# Compile-time system search path for libraries 10467sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10468 10469# Run-time system search path for libraries 10470sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10471 10472# Fix the shell variable \$srcfile for the compiler. 10473fix_srcfile_path="$fix_srcfile_path" 10474 10475# Set to yes if exported symbols are required. 10476always_export_symbols=$always_export_symbols 10477 10478# The commands to list exported symbols. 10479export_symbols_cmds=$lt_export_symbols_cmds 10480 10481# The commands to extract the exported symbol list from a shared archive. 10482extract_expsyms_cmds=$lt_extract_expsyms_cmds 10483 10484# Symbols that should not be listed in the preloaded symbols. 10485exclude_expsyms=$lt_exclude_expsyms 10486 10487# Symbols that must always be exported. 10488include_expsyms=$lt_include_expsyms 10489 10490# ### END LIBTOOL CONFIG 10491 10492__EOF__ 10493 10494 10495 case $host_os in 10496 aix3*) 10497 cat <<\EOF >> "$cfgfile" 10498 10499# AIX sometimes has problems with the GCC collect2 program. For some 10500# reason, if we set the COLLECT_NAMES environment variable, the problems 10501# vanish in a puff of smoke. 10502if test "X${COLLECT_NAMES+set}" != Xset; then 10503 COLLECT_NAMES= 10504 export COLLECT_NAMES 10505fi 10506EOF 10507 ;; 10508 esac 10509 10510 # We use sed instead of cat because bash on DJGPP gets confused if 10511 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10512 # text mode, it properly converts lines to CR/LF. This bash problem 10513 # is reportedly fixed, but why not run on old versions too? 10514 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10515 10516 mv -f "$cfgfile" "$ofile" || \ 10517 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10518 chmod +x "$ofile" 10519 10520else 10521 # If there is no Makefile yet, we rely on a make rule to execute 10522 # `config.status --recheck' to rerun these tests and create the 10523 # libtool script then. 10524 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10525 if test -f "$ltmain_in"; then 10526 test -f Makefile && make "$ltmain" 10527 fi 10528fi 10529 10530 10531ac_ext=c 10532ac_cpp='$CPP $CPPFLAGS' 10533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10535ac_compiler_gnu=$ac_cv_c_compiler_gnu 10536 10537CC="$lt_save_CC" 10538 10539 10540# Check whether --with-tags was given. 10541if test "${with_tags+set}" = set; then 10542 withval=$with_tags; tagnames="$withval" 10543fi 10544 10545 10546if test -f "$ltmain" && test -n "$tagnames"; then 10547 if test ! -f "${ofile}"; then 10548 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10549echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10550 fi 10551 10552 if test -z "$LTCC"; then 10553 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10554 if test -z "$LTCC"; then 10555 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10556echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10557 else 10558 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10559echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10560 fi 10561 fi 10562 if test -z "$LTCFLAGS"; then 10563 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10564 fi 10565 10566 # Extract list of available tagged configurations in $ofile. 10567 # Note that this assumes the entire list is on one line. 10568 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10569 10570 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10571 for tagname in $tagnames; do 10572 IFS="$lt_save_ifs" 10573 # Check whether tagname contains only valid characters 10574 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10575 "") ;; 10576 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10577echo "$as_me: error: invalid tag name: $tagname" >&2;} 10578 { (exit 1); exit 1; }; } 10579 ;; 10580 esac 10581 10582 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10583 then 10584 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10585echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10586 { (exit 1); exit 1; }; } 10587 fi 10588 10589 # Update the list of available tags. 10590 if test -n "$tagname"; then 10591 echo appending configuration tag \"$tagname\" to $ofile 10592 10593 case $tagname in 10594 CXX) 10595 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10596 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10597 (test "X$CXX" != "Xg++"))) ; then 10598 ac_ext=cpp 10599ac_cpp='$CXXCPP $CPPFLAGS' 10600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10603 10604 10605 10606 10607archive_cmds_need_lc_CXX=no 10608allow_undefined_flag_CXX= 10609always_export_symbols_CXX=no 10610archive_expsym_cmds_CXX= 10611export_dynamic_flag_spec_CXX= 10612hardcode_direct_CXX=no 10613hardcode_libdir_flag_spec_CXX= 10614hardcode_libdir_flag_spec_ld_CXX= 10615hardcode_libdir_separator_CXX= 10616hardcode_minus_L_CXX=no 10617hardcode_shlibpath_var_CXX=unsupported 10618hardcode_automatic_CXX=no 10619module_cmds_CXX= 10620module_expsym_cmds_CXX= 10621link_all_deplibs_CXX=unknown 10622old_archive_cmds_CXX=$old_archive_cmds 10623no_undefined_flag_CXX= 10624whole_archive_flag_spec_CXX= 10625enable_shared_with_static_runtimes_CXX=no 10626 10627# Dependencies to place before and after the object being linked: 10628predep_objects_CXX= 10629postdep_objects_CXX= 10630predeps_CXX= 10631postdeps_CXX= 10632compiler_lib_search_path_CXX= 10633 10634# Source file extension for C++ test sources. 10635ac_ext=cpp 10636 10637# Object file extension for compiled C++ test sources. 10638objext=o 10639objext_CXX=$objext 10640 10641# Code to be used in simple compile tests 10642lt_simple_compile_test_code="int some_variable = 0;\n" 10643 10644# Code to be used in simple link tests 10645lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10646 10647# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10648 10649# If no C compiler was specified, use CC. 10650LTCC=${LTCC-"$CC"} 10651 10652# If no C compiler flags were specified, use CFLAGS. 10653LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10654 10655# Allow CC to be a program name with arguments. 10656compiler=$CC 10657 10658 10659# save warnings/boilerplate of simple test code 10660ac_outfile=conftest.$ac_objext 10661printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10662eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10663_lt_compiler_boilerplate=`cat conftest.err` 10664$rm conftest* 10665 10666ac_outfile=conftest.$ac_objext 10667printf "$lt_simple_link_test_code" >conftest.$ac_ext 10668eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10669_lt_linker_boilerplate=`cat conftest.err` 10670$rm conftest* 10671 10672 10673# Allow CC to be a program name with arguments. 10674lt_save_CC=$CC 10675lt_save_LD=$LD 10676lt_save_GCC=$GCC 10677GCC=$GXX 10678lt_save_with_gnu_ld=$with_gnu_ld 10679lt_save_path_LD=$lt_cv_path_LD 10680if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10681 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10682else 10683 $as_unset lt_cv_prog_gnu_ld 10684fi 10685if test -n "${lt_cv_path_LDCXX+set}"; then 10686 lt_cv_path_LD=$lt_cv_path_LDCXX 10687else 10688 $as_unset lt_cv_path_LD 10689fi 10690test -z "${LDCXX+set}" || LD=$LDCXX 10691CC=${CXX-"c++"} 10692compiler=$CC 10693compiler_CXX=$CC 10694for cc_temp in $compiler""; do 10695 case $cc_temp in 10696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10698 \-*) ;; 10699 *) break;; 10700 esac 10701done 10702cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10703 10704 10705# We don't want -fno-exception wen compiling C++ code, so set the 10706# no_builtin_flag separately 10707if test "$GXX" = yes; then 10708 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10709else 10710 lt_prog_compiler_no_builtin_flag_CXX= 10711fi 10712 10713if test "$GXX" = yes; then 10714 # Set up default GNU C++ configuration 10715 10716 10717# Check whether --with-gnu-ld was given. 10718if test "${with_gnu_ld+set}" = set; then 10719 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10720else 10721 with_gnu_ld=no 10722fi 10723 10724ac_prog=ld 10725if test "$GCC" = yes; then 10726 # Check if gcc -print-prog-name=ld gives a path. 10727 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10728echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10729 case $host in 10730 *-*-mingw*) 10731 # gcc leaves a trailing carriage return which upsets mingw 10732 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10733 *) 10734 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10735 esac 10736 case $ac_prog in 10737 # Accept absolute paths. 10738 [\\/]* | ?:[\\/]*) 10739 re_direlt='/[^/][^/]*/\.\./' 10740 # Canonicalize the pathname of ld 10741 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10742 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10743 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10744 done 10745 test -z "$LD" && LD="$ac_prog" 10746 ;; 10747 "") 10748 # If it fails, then pretend we aren't using GCC. 10749 ac_prog=ld 10750 ;; 10751 *) 10752 # If it is relative, then search for the first ld in PATH. 10753 with_gnu_ld=unknown 10754 ;; 10755 esac 10756elif test "$with_gnu_ld" = yes; then 10757 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10758echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10759else 10760 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10761echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10762fi 10763if test "${lt_cv_path_LD+set}" = set; then 10764 echo $ECHO_N "(cached) $ECHO_C" >&6 10765else 10766 if test -z "$LD"; then 10767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10768 for ac_dir in $PATH; do 10769 IFS="$lt_save_ifs" 10770 test -z "$ac_dir" && ac_dir=. 10771 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10772 lt_cv_path_LD="$ac_dir/$ac_prog" 10773 # Check to see if the program is GNU ld. I'd rather use --version, 10774 # but apparently some variants of GNU ld only accept -v. 10775 # Break only if it was the GNU/non-GNU ld that we prefer. 10776 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10777 *GNU* | *'with BFD'*) 10778 test "$with_gnu_ld" != no && break 10779 ;; 10780 *) 10781 test "$with_gnu_ld" != yes && break 10782 ;; 10783 esac 10784 fi 10785 done 10786 IFS="$lt_save_ifs" 10787else 10788 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10789fi 10790fi 10791 10792LD="$lt_cv_path_LD" 10793if test -n "$LD"; then 10794 { echo "$as_me:$LINENO: result: $LD" >&5 10795echo "${ECHO_T}$LD" >&6; } 10796else 10797 { echo "$as_me:$LINENO: result: no" >&5 10798echo "${ECHO_T}no" >&6; } 10799fi 10800test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10801echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10802 { (exit 1); exit 1; }; } 10803{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10804echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10805if test "${lt_cv_prog_gnu_ld+set}" = set; then 10806 echo $ECHO_N "(cached) $ECHO_C" >&6 10807else 10808 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10809case `$LD -v 2>&1 </dev/null` in 10810*GNU* | *'with BFD'*) 10811 lt_cv_prog_gnu_ld=yes 10812 ;; 10813*) 10814 lt_cv_prog_gnu_ld=no 10815 ;; 10816esac 10817fi 10818{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10819echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10820with_gnu_ld=$lt_cv_prog_gnu_ld 10821 10822 10823 10824 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10825 # archiving commands below assume that GNU ld is being used. 10826 if test "$with_gnu_ld" = yes; then 10827 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10828 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' 10829 10830 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10831 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10832 10833 # If archive_cmds runs LD, not CC, wlarc should be empty 10834 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10835 # investigate it a little bit more. (MM) 10836 wlarc='${wl}' 10837 10838 # ancient GNU ld didn't support --whole-archive et. al. 10839 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10840 grep 'no-whole-archive' > /dev/null; then 10841 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10842 else 10843 whole_archive_flag_spec_CXX= 10844 fi 10845 else 10846 with_gnu_ld=no 10847 wlarc= 10848 10849 # A generic and very simple default shared library creation 10850 # command for GNU C++ for the case where it uses the native 10851 # linker, instead of GNU ld. If possible, this setting should 10852 # overridden to take advantage of the native linker features on 10853 # the platform it is being used on. 10854 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10855 fi 10856 10857 # Commands to make compiler produce verbose output that lists 10858 # what "hidden" libraries, object files and flags are used when 10859 # linking a shared library. 10860 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10861 10862else 10863 GXX=no 10864 with_gnu_ld=no 10865 wlarc= 10866fi 10867 10868# PORTME: fill in a description of your system's C++ link characteristics 10869{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10870echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10871ld_shlibs_CXX=yes 10872case $host_os in 10873 aix3*) 10874 # FIXME: insert proper C++ library support 10875 ld_shlibs_CXX=no 10876 ;; 10877 aix4* | aix5*) 10878 if test "$host_cpu" = ia64; then 10879 # On IA64, the linker does run time linking by default, so we don't 10880 # have to do anything special. 10881 aix_use_runtimelinking=no 10882 exp_sym_flag='-Bexport' 10883 no_entry_flag="" 10884 else 10885 aix_use_runtimelinking=no 10886 10887 # Test if we are trying to use run time linking or normal 10888 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10889 # need to do runtime linking. 10890 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10891 for ld_flag in $LDFLAGS; do 10892 case $ld_flag in 10893 *-brtl*) 10894 aix_use_runtimelinking=yes 10895 break 10896 ;; 10897 esac 10898 done 10899 ;; 10900 esac 10901 10902 exp_sym_flag='-bexport' 10903 no_entry_flag='-bnoentry' 10904 fi 10905 10906 # When large executables or shared objects are built, AIX ld can 10907 # have problems creating the table of contents. If linking a library 10908 # or program results in "error TOC overflow" add -mminimal-toc to 10909 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10910 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10911 10912 archive_cmds_CXX='' 10913 hardcode_direct_CXX=yes 10914 hardcode_libdir_separator_CXX=':' 10915 link_all_deplibs_CXX=yes 10916 10917 if test "$GXX" = yes; then 10918 case $host_os in aix4.[012]|aix4.[012].*) 10919 # We only want to do this on AIX 4.2 and lower, the check 10920 # below for broken collect2 doesn't work under 4.3+ 10921 collect2name=`${CC} -print-prog-name=collect2` 10922 if test -f "$collect2name" && \ 10923 strings "$collect2name" | grep resolve_lib_name >/dev/null 10924 then 10925 # We have reworked collect2 10926 hardcode_direct_CXX=yes 10927 else 10928 # We have old collect2 10929 hardcode_direct_CXX=unsupported 10930 # It fails to find uninstalled libraries when the uninstalled 10931 # path is not listed in the libpath. Setting hardcode_minus_L 10932 # to unsupported forces relinking 10933 hardcode_minus_L_CXX=yes 10934 hardcode_libdir_flag_spec_CXX='-L$libdir' 10935 hardcode_libdir_separator_CXX= 10936 fi 10937 ;; 10938 esac 10939 shared_flag='-shared' 10940 if test "$aix_use_runtimelinking" = yes; then 10941 shared_flag="$shared_flag "'${wl}-G' 10942 fi 10943 else 10944 # not using gcc 10945 if test "$host_cpu" = ia64; then 10946 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10947 # chokes on -Wl,-G. The following line is correct: 10948 shared_flag='-G' 10949 else 10950 if test "$aix_use_runtimelinking" = yes; then 10951 shared_flag='${wl}-G' 10952 else 10953 shared_flag='${wl}-bM:SRE' 10954 fi 10955 fi 10956 fi 10957 10958 # It seems that -bexpall does not export symbols beginning with 10959 # underscore (_), so it is better to generate a list of symbols to export. 10960 always_export_symbols_CXX=yes 10961 if test "$aix_use_runtimelinking" = yes; then 10962 # Warning - without using the other runtime loading flags (-brtl), 10963 # -berok will link without error, but may produce a broken library. 10964 allow_undefined_flag_CXX='-berok' 10965 # Determine the default libpath from the value encoded in an empty executable. 10966 cat >conftest.$ac_ext <<_ACEOF 10967/* confdefs.h. */ 10968_ACEOF 10969cat confdefs.h >>conftest.$ac_ext 10970cat >>conftest.$ac_ext <<_ACEOF 10971/* end confdefs.h. */ 10972 10973int 10974main () 10975{ 10976 10977 ; 10978 return 0; 10979} 10980_ACEOF 10981rm -f conftest.$ac_objext conftest$ac_exeext 10982if { (ac_try="$ac_link" 10983case "(($ac_try" in 10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10985 *) ac_try_echo=$ac_try;; 10986esac 10987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10988 (eval "$ac_link") 2>conftest.er1 10989 ac_status=$? 10990 grep -v '^ *+' conftest.er1 >conftest.err 10991 rm -f conftest.er1 10992 cat conftest.err >&5 10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10994 (exit $ac_status); } && { 10995 test -z "$ac_cxx_werror_flag" || 10996 test ! -s conftest.err 10997 } && test -s conftest$ac_exeext && 10998 $as_test_x conftest$ac_exeext; then 10999 11000aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11001}'` 11002# Check for a 64-bit object if we didn't find anything. 11003if 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; } 11004}'`; fi 11005else 11006 echo "$as_me: failed program was:" >&5 11007sed 's/^/| /' conftest.$ac_ext >&5 11008 11009 11010fi 11011 11012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11013 conftest$ac_exeext conftest.$ac_ext 11014if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11015 11016 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11017 11018 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" 11019 else 11020 if test "$host_cpu" = ia64; then 11021 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11022 allow_undefined_flag_CXX="-z nodefs" 11023 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" 11024 else 11025 # Determine the default libpath from the value encoded in an empty executable. 11026 cat >conftest.$ac_ext <<_ACEOF 11027/* confdefs.h. */ 11028_ACEOF 11029cat confdefs.h >>conftest.$ac_ext 11030cat >>conftest.$ac_ext <<_ACEOF 11031/* end confdefs.h. */ 11032 11033int 11034main () 11035{ 11036 11037 ; 11038 return 0; 11039} 11040_ACEOF 11041rm -f conftest.$ac_objext conftest$ac_exeext 11042if { (ac_try="$ac_link" 11043case "(($ac_try" in 11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11045 *) ac_try_echo=$ac_try;; 11046esac 11047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11048 (eval "$ac_link") 2>conftest.er1 11049 ac_status=$? 11050 grep -v '^ *+' conftest.er1 >conftest.err 11051 rm -f conftest.er1 11052 cat conftest.err >&5 11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11054 (exit $ac_status); } && { 11055 test -z "$ac_cxx_werror_flag" || 11056 test ! -s conftest.err 11057 } && test -s conftest$ac_exeext && 11058 $as_test_x conftest$ac_exeext; then 11059 11060aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11061}'` 11062# Check for a 64-bit object if we didn't find anything. 11063if 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; } 11064}'`; fi 11065else 11066 echo "$as_me: failed program was:" >&5 11067sed 's/^/| /' conftest.$ac_ext >&5 11068 11069 11070fi 11071 11072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11073 conftest$ac_exeext conftest.$ac_ext 11074if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11075 11076 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11077 # Warning - without using the other run time loading flags, 11078 # -berok will link without error, but may produce a broken library. 11079 no_undefined_flag_CXX=' ${wl}-bernotok' 11080 allow_undefined_flag_CXX=' ${wl}-berok' 11081 # Exported symbols can be pulled into shared objects from archives 11082 whole_archive_flag_spec_CXX='$convenience' 11083 archive_cmds_need_lc_CXX=yes 11084 # This is similar to how AIX traditionally builds its shared libraries. 11085 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' 11086 fi 11087 fi 11088 ;; 11089 11090 beos*) 11091 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11092 allow_undefined_flag_CXX=unsupported 11093 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11094 # support --undefined. This deserves some investigation. FIXME 11095 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11096 else 11097 ld_shlibs_CXX=no 11098 fi 11099 ;; 11100 11101 chorus*) 11102 case $cc_basename in 11103 *) 11104 # FIXME: insert proper C++ library support 11105 ld_shlibs_CXX=no 11106 ;; 11107 esac 11108 ;; 11109 11110 cygwin* | mingw* | pw32*) 11111 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11112 # as there is no search path for DLLs. 11113 hardcode_libdir_flag_spec_CXX='-L$libdir' 11114 allow_undefined_flag_CXX=unsupported 11115 always_export_symbols_CXX=no 11116 enable_shared_with_static_runtimes_CXX=yes 11117 11118 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11119 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' 11120 # If the export-symbols file already is a .def file (1st line 11121 # is EXPORTS), use it as is; otherwise, prepend... 11122 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11123 cp $export_symbols $output_objdir/$soname.def; 11124 else 11125 echo EXPORTS > $output_objdir/$soname.def; 11126 cat $export_symbols >> $output_objdir/$soname.def; 11127 fi~ 11128 $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' 11129 else 11130 ld_shlibs_CXX=no 11131 fi 11132 ;; 11133 darwin* | rhapsody*) 11134 case $host_os in 11135 rhapsody* | darwin1.[012]) 11136 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11137 ;; 11138 *) # Darwin 1.3 on 11139 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11140 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11141 else 11142 case ${MACOSX_DEPLOYMENT_TARGET} in 11143 10.[012]) 11144 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11145 ;; 11146 10.*) 11147 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11148 ;; 11149 esac 11150 fi 11151 ;; 11152 esac 11153 archive_cmds_need_lc_CXX=no 11154 hardcode_direct_CXX=no 11155 hardcode_automatic_CXX=yes 11156 hardcode_shlibpath_var_CXX=unsupported 11157 whole_archive_flag_spec_CXX='' 11158 link_all_deplibs_CXX=yes 11159 11160 if test "$GXX" = yes ; then 11161 lt_int_apple_cc_single_mod=no 11162 output_verbose_link_cmd='echo' 11163 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11164 lt_int_apple_cc_single_mod=yes 11165 fi 11166 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11167 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11168 else 11169 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' 11170 fi 11171 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11172 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11173 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11174 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}' 11175 else 11176 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}' 11177 fi 11178 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}' 11179 else 11180 case $cc_basename in 11181 xlc*) 11182 output_verbose_link_cmd='echo' 11183 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' 11184 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11185 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11186 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}' 11187 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}' 11188 ;; 11189 *) 11190 ld_shlibs_CXX=no 11191 ;; 11192 esac 11193 fi 11194 ;; 11195 11196 dgux*) 11197 case $cc_basename in 11198 ec++*) 11199 # FIXME: insert proper C++ library support 11200 ld_shlibs_CXX=no 11201 ;; 11202 ghcx*) 11203 # Green Hills C++ Compiler 11204 # FIXME: insert proper C++ library support 11205 ld_shlibs_CXX=no 11206 ;; 11207 *) 11208 # FIXME: insert proper C++ library support 11209 ld_shlibs_CXX=no 11210 ;; 11211 esac 11212 ;; 11213 freebsd[12]*) 11214 # C++ shared libraries reported to be fairly broken before switch to ELF 11215 ld_shlibs_CXX=no 11216 ;; 11217 freebsd-elf*) 11218 archive_cmds_need_lc_CXX=no 11219 ;; 11220 freebsd* | kfreebsd*-gnu | dragonfly*) 11221 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11222 # conventions 11223 ld_shlibs_CXX=yes 11224 ;; 11225 gnu*) 11226 ;; 11227 hpux9*) 11228 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11229 hardcode_libdir_separator_CXX=: 11230 export_dynamic_flag_spec_CXX='${wl}-E' 11231 hardcode_direct_CXX=yes 11232 hardcode_minus_L_CXX=yes # Not in the search PATH, 11233 # but as the default 11234 # location of the library. 11235 11236 case $cc_basename in 11237 CC*) 11238 # FIXME: insert proper C++ library support 11239 ld_shlibs_CXX=no 11240 ;; 11241 aCC*) 11242 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' 11243 # Commands to make compiler produce verbose output that lists 11244 # what "hidden" libraries, object files and flags are used when 11245 # linking a shared library. 11246 # 11247 # There doesn't appear to be a way to prevent this compiler from 11248 # explicitly linking system object files so we need to strip them 11249 # from the output so that they don't get included in the library 11250 # dependencies. 11251 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' 11252 ;; 11253 *) 11254 if test "$GXX" = yes; then 11255 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' 11256 else 11257 # FIXME: insert proper C++ library support 11258 ld_shlibs_CXX=no 11259 fi 11260 ;; 11261 esac 11262 ;; 11263 hpux10*|hpux11*) 11264 if test $with_gnu_ld = no; then 11265 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11266 hardcode_libdir_separator_CXX=: 11267 11268 case $host_cpu in 11269 hppa*64*|ia64*) 11270 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11271 ;; 11272 *) 11273 export_dynamic_flag_spec_CXX='${wl}-E' 11274 ;; 11275 esac 11276 fi 11277 case $host_cpu in 11278 hppa*64*|ia64*) 11279 hardcode_direct_CXX=no 11280 hardcode_shlibpath_var_CXX=no 11281 ;; 11282 *) 11283 hardcode_direct_CXX=yes 11284 hardcode_minus_L_CXX=yes # Not in the search PATH, 11285 # but as the default 11286 # location of the library. 11287 ;; 11288 esac 11289 11290 case $cc_basename in 11291 CC*) 11292 # FIXME: insert proper C++ library support 11293 ld_shlibs_CXX=no 11294 ;; 11295 aCC*) 11296 case $host_cpu in 11297 hppa*64*) 11298 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11299 ;; 11300 ia64*) 11301 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11302 ;; 11303 *) 11304 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11305 ;; 11306 esac 11307 # Commands to make compiler produce verbose output that lists 11308 # what "hidden" libraries, object files and flags are used when 11309 # linking a shared library. 11310 # 11311 # There doesn't appear to be a way to prevent this compiler from 11312 # explicitly linking system object files so we need to strip them 11313 # from the output so that they don't get included in the library 11314 # dependencies. 11315 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' 11316 ;; 11317 *) 11318 if test "$GXX" = yes; then 11319 if test $with_gnu_ld = no; then 11320 case $host_cpu in 11321 hppa*64*) 11322 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11323 ;; 11324 ia64*) 11325 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11326 ;; 11327 *) 11328 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' 11329 ;; 11330 esac 11331 fi 11332 else 11333 # FIXME: insert proper C++ library support 11334 ld_shlibs_CXX=no 11335 fi 11336 ;; 11337 esac 11338 ;; 11339 interix3*) 11340 hardcode_direct_CXX=no 11341 hardcode_shlibpath_var_CXX=no 11342 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11343 export_dynamic_flag_spec_CXX='${wl}-E' 11344 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11345 # Instead, shared libraries are loaded at an image base (0x10000000 by 11346 # default) and relocated if they conflict, which is a slow very memory 11347 # consuming and fragmenting process. To avoid this, we pick a random, 11348 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11349 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11350 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' 11351 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' 11352 ;; 11353 irix5* | irix6*) 11354 case $cc_basename in 11355 CC*) 11356 # SGI C++ 11357 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' 11358 11359 # Archives containing C++ object files must be created using 11360 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11361 # necessary to make sure instantiated templates are included 11362 # in the archive. 11363 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11364 ;; 11365 *) 11366 if test "$GXX" = yes; then 11367 if test "$with_gnu_ld" = no; then 11368 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' 11369 else 11370 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' 11371 fi 11372 fi 11373 link_all_deplibs_CXX=yes 11374 ;; 11375 esac 11376 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11377 hardcode_libdir_separator_CXX=: 11378 ;; 11379 linux*) 11380 case $cc_basename in 11381 KCC*) 11382 # Kuck and Associates, Inc. (KAI) C++ Compiler 11383 11384 # KCC will only create a shared library if the output file 11385 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11386 # to its proper name (with version) after linking. 11387 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' 11388 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' 11389 # Commands to make compiler produce verbose output that lists 11390 # what "hidden" libraries, object files and flags are used when 11391 # linking a shared library. 11392 # 11393 # There doesn't appear to be a way to prevent this compiler from 11394 # explicitly linking system object files so we need to strip them 11395 # from the output so that they don't get included in the library 11396 # dependencies. 11397 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' 11398 11399 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11400 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11401 11402 # Archives containing C++ object files must be created using 11403 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11404 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11405 ;; 11406 icpc*) 11407 # Intel C++ 11408 with_gnu_ld=yes 11409 # version 8.0 and above of icpc choke on multiply defined symbols 11410 # if we add $predep_objects and $postdep_objects, however 7.1 and 11411 # earlier do not add the objects themselves. 11412 case `$CC -V 2>&1` in 11413 *"Version 7."*) 11414 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11415 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' 11416 ;; 11417 *) # Version 8.0 or newer 11418 tmp_idyn= 11419 case $host_cpu in 11420 ia64*) tmp_idyn=' -i_dynamic';; 11421 esac 11422 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11423 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' 11424 ;; 11425 esac 11426 archive_cmds_need_lc_CXX=no 11427 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11428 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11429 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11430 ;; 11431 pgCC*) 11432 # Portland Group C++ compiler 11433 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11434 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' 11435 11436 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11437 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11438 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' 11439 ;; 11440 cxx*) 11441 # Compaq C++ 11442 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11443 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' 11444 11445 runpath_var=LD_RUN_PATH 11446 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11447 hardcode_libdir_separator_CXX=: 11448 11449 # Commands to make compiler produce verbose output that lists 11450 # what "hidden" libraries, object files and flags are used when 11451 # linking a shared library. 11452 # 11453 # There doesn't appear to be a way to prevent this compiler from 11454 # explicitly linking system object files so we need to strip them 11455 # from the output so that they don't get included in the library 11456 # dependencies. 11457 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' 11458 ;; 11459 esac 11460 ;; 11461 lynxos*) 11462 # FIXME: insert proper C++ library support 11463 ld_shlibs_CXX=no 11464 ;; 11465 m88k*) 11466 # FIXME: insert proper C++ library support 11467 ld_shlibs_CXX=no 11468 ;; 11469 mvs*) 11470 case $cc_basename in 11471 cxx*) 11472 # FIXME: insert proper C++ library support 11473 ld_shlibs_CXX=no 11474 ;; 11475 *) 11476 # FIXME: insert proper C++ library support 11477 ld_shlibs_CXX=no 11478 ;; 11479 esac 11480 ;; 11481 netbsd*) 11482 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11483 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11484 wlarc= 11485 hardcode_libdir_flag_spec_CXX='-R$libdir' 11486 hardcode_direct_CXX=yes 11487 hardcode_shlibpath_var_CXX=no 11488 fi 11489 # Workaround some broken pre-1.5 toolchains 11490 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11491 ;; 11492 openbsd2*) 11493 # C++ shared libraries are fairly broken 11494 ld_shlibs_CXX=no 11495 ;; 11496 openbsd*) 11497 hardcode_direct_CXX=yes 11498 hardcode_shlibpath_var_CXX=no 11499 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11500 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11502 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11503 export_dynamic_flag_spec_CXX='${wl}-E' 11504 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11505 fi 11506 output_verbose_link_cmd='echo' 11507 ;; 11508 osf3*) 11509 case $cc_basename in 11510 KCC*) 11511 # Kuck and Associates, Inc. (KAI) C++ Compiler 11512 11513 # KCC will only create a shared library if the output file 11514 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11515 # to its proper name (with version) after linking. 11516 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' 11517 11518 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11519 hardcode_libdir_separator_CXX=: 11520 11521 # Archives containing C++ object files must be created using 11522 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11523 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11524 11525 ;; 11526 RCC*) 11527 # Rational C++ 2.4.1 11528 # FIXME: insert proper C++ library support 11529 ld_shlibs_CXX=no 11530 ;; 11531 cxx*) 11532 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11533 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' 11534 11535 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11536 hardcode_libdir_separator_CXX=: 11537 11538 # Commands to make compiler produce verbose output that lists 11539 # what "hidden" libraries, object files and flags are used when 11540 # linking a shared library. 11541 # 11542 # There doesn't appear to be a way to prevent this compiler from 11543 # explicitly linking system object files so we need to strip them 11544 # from the output so that they don't get included in the library 11545 # dependencies. 11546 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' 11547 ;; 11548 *) 11549 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11550 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11551 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' 11552 11553 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11554 hardcode_libdir_separator_CXX=: 11555 11556 # Commands to make compiler produce verbose output that lists 11557 # what "hidden" libraries, object files and flags are used when 11558 # linking a shared library. 11559 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11560 11561 else 11562 # FIXME: insert proper C++ library support 11563 ld_shlibs_CXX=no 11564 fi 11565 ;; 11566 esac 11567 ;; 11568 osf4* | osf5*) 11569 case $cc_basename in 11570 KCC*) 11571 # Kuck and Associates, Inc. (KAI) C++ Compiler 11572 11573 # KCC will only create a shared library if the output file 11574 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11575 # to its proper name (with version) after linking. 11576 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' 11577 11578 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11579 hardcode_libdir_separator_CXX=: 11580 11581 # Archives containing C++ object files must be created using 11582 # the KAI C++ compiler. 11583 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11584 ;; 11585 RCC*) 11586 # Rational C++ 2.4.1 11587 # FIXME: insert proper C++ library support 11588 ld_shlibs_CXX=no 11589 ;; 11590 cxx*) 11591 allow_undefined_flag_CXX=' -expect_unresolved \*' 11592 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' 11593 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11594 echo "-hidden">> $lib.exp~ 11595 $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~ 11596 $rm $lib.exp' 11597 11598 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11599 hardcode_libdir_separator_CXX=: 11600 11601 # Commands to make compiler produce verbose output that lists 11602 # what "hidden" libraries, object files and flags are used when 11603 # linking a shared library. 11604 # 11605 # There doesn't appear to be a way to prevent this compiler from 11606 # explicitly linking system object files so we need to strip them 11607 # from the output so that they don't get included in the library 11608 # dependencies. 11609 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' 11610 ;; 11611 *) 11612 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11613 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11614 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' 11615 11616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11617 hardcode_libdir_separator_CXX=: 11618 11619 # Commands to make compiler produce verbose output that lists 11620 # what "hidden" libraries, object files and flags are used when 11621 # linking a shared library. 11622 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11623 11624 else 11625 # FIXME: insert proper C++ library support 11626 ld_shlibs_CXX=no 11627 fi 11628 ;; 11629 esac 11630 ;; 11631 psos*) 11632 # FIXME: insert proper C++ library support 11633 ld_shlibs_CXX=no 11634 ;; 11635 sunos4*) 11636 case $cc_basename in 11637 CC*) 11638 # Sun C++ 4.x 11639 # FIXME: insert proper C++ library support 11640 ld_shlibs_CXX=no 11641 ;; 11642 lcc*) 11643 # Lucid 11644 # FIXME: insert proper C++ library support 11645 ld_shlibs_CXX=no 11646 ;; 11647 *) 11648 # FIXME: insert proper C++ library support 11649 ld_shlibs_CXX=no 11650 ;; 11651 esac 11652 ;; 11653 solaris*) 11654 case $cc_basename in 11655 CC*) 11656 # Sun C++ 4.2, 5.x and Centerline C++ 11657 archive_cmds_need_lc_CXX=yes 11658 no_undefined_flag_CXX=' -zdefs' 11659 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11660 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11661 $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' 11662 11663 hardcode_libdir_flag_spec_CXX='-R$libdir' 11664 hardcode_shlibpath_var_CXX=no 11665 case $host_os in 11666 solaris2.[0-5] | solaris2.[0-5].*) ;; 11667 *) 11668 # The C++ compiler is used as linker so we must use $wl 11669 # flag to pass the commands to the underlying system 11670 # linker. We must also pass each convience library through 11671 # to the system linker between allextract/defaultextract. 11672 # The C++ compiler will combine linker options so we 11673 # cannot just pass the convience library names through 11674 # without $wl. 11675 # Supported since Solaris 2.6 (maybe 2.5.1?) 11676 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' 11677 ;; 11678 esac 11679 link_all_deplibs_CXX=yes 11680 11681 output_verbose_link_cmd='echo' 11682 11683 # Archives containing C++ object files must be created using 11684 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11685 # necessary to make sure instantiated templates are included 11686 # in the archive. 11687 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11688 ;; 11689 gcx*) 11690 # Green Hills C++ Compiler 11691 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11692 11693 # The C++ compiler must be used to create the archive. 11694 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11695 ;; 11696 *) 11697 # GNU C++ compiler with Solaris linker 11698 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11699 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11700 if $CC --version | grep -v '^2\.7' > /dev/null; then 11701 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11702 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11703 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11704 11705 # Commands to make compiler produce verbose output that lists 11706 # what "hidden" libraries, object files and flags are used when 11707 # linking a shared library. 11708 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11709 else 11710 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11711 # platform. 11712 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11713 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11714 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11715 11716 # Commands to make compiler produce verbose output that lists 11717 # what "hidden" libraries, object files and flags are used when 11718 # linking a shared library. 11719 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11720 fi 11721 11722 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11723 fi 11724 ;; 11725 esac 11726 ;; 11727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11728 no_undefined_flag_CXX='${wl}-z,text' 11729 archive_cmds_need_lc_CXX=no 11730 hardcode_shlibpath_var_CXX=no 11731 runpath_var='LD_RUN_PATH' 11732 11733 case $cc_basename in 11734 CC*) 11735 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11736 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11737 ;; 11738 *) 11739 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11740 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11741 ;; 11742 esac 11743 ;; 11744 sysv5* | sco3.2v5* | sco5v6*) 11745 # Note: We can NOT use -z defs as we might desire, because we do not 11746 # link with -lc, and that would cause any symbols used from libc to 11747 # always be unresolved, which means just about no library would 11748 # ever link correctly. If we're not using GNU ld we use -z text 11749 # though, which does catch some bad symbols but isn't as heavy-handed 11750 # as -z defs. 11751 # For security reasons, it is highly recommended that you always 11752 # use absolute paths for naming shared libraries, and exclude the 11753 # DT_RUNPATH tag from executables and libraries. But doing so 11754 # requires that you compile everything twice, which is a pain. 11755 # So that behaviour is only enabled if SCOABSPATH is set to a 11756 # non-empty value in the environment. Most likely only useful for 11757 # creating official distributions of packages. 11758 # This is a hack until libtool officially supports absolute path 11759 # names for shared libraries. 11760 no_undefined_flag_CXX='${wl}-z,text' 11761 allow_undefined_flag_CXX='${wl}-z,nodefs' 11762 archive_cmds_need_lc_CXX=no 11763 hardcode_shlibpath_var_CXX=no 11764 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11765 hardcode_libdir_separator_CXX=':' 11766 link_all_deplibs_CXX=yes 11767 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11768 runpath_var='LD_RUN_PATH' 11769 11770 case $cc_basename in 11771 CC*) 11772 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11773 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11774 ;; 11775 *) 11776 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11777 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11778 ;; 11779 esac 11780 ;; 11781 tandem*) 11782 case $cc_basename in 11783 NCC*) 11784 # NonStop-UX NCC 3.20 11785 # FIXME: insert proper C++ library support 11786 ld_shlibs_CXX=no 11787 ;; 11788 *) 11789 # FIXME: insert proper C++ library support 11790 ld_shlibs_CXX=no 11791 ;; 11792 esac 11793 ;; 11794 vxworks*) 11795 # FIXME: insert proper C++ library support 11796 ld_shlibs_CXX=no 11797 ;; 11798 *) 11799 # FIXME: insert proper C++ library support 11800 ld_shlibs_CXX=no 11801 ;; 11802esac 11803{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11804echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11805test "$ld_shlibs_CXX" = no && can_build_shared=no 11806 11807GCC_CXX="$GXX" 11808LD_CXX="$LD" 11809 11810 11811cat > conftest.$ac_ext <<EOF 11812class Foo 11813{ 11814public: 11815 Foo (void) { a = 0; } 11816private: 11817 int a; 11818}; 11819EOF 11820 11821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11822 (eval $ac_compile) 2>&5 11823 ac_status=$? 11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11825 (exit $ac_status); }; then 11826 # Parse the compiler output and extract the necessary 11827 # objects, libraries and library flags. 11828 11829 # Sentinel used to keep track of whether or not we are before 11830 # the conftest object file. 11831 pre_test_object_deps_done=no 11832 11833 # The `*' in the case matches for architectures that use `case' in 11834 # $output_verbose_cmd can trigger glob expansion during the loop 11835 # eval without this substitution. 11836 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11837 11838 for p in `eval $output_verbose_link_cmd`; do 11839 case $p in 11840 11841 -L* | -R* | -l*) 11842 # Some compilers place space between "-{L,R}" and the path. 11843 # Remove the space. 11844 if test $p = "-L" \ 11845 || test $p = "-R"; then 11846 prev=$p 11847 continue 11848 else 11849 prev= 11850 fi 11851 11852 if test "$pre_test_object_deps_done" = no; then 11853 case $p in 11854 -L* | -R*) 11855 # Internal compiler library paths should come after those 11856 # provided the user. The postdeps already come after the 11857 # user supplied libs so there is no need to process them. 11858 if test -z "$compiler_lib_search_path_CXX"; then 11859 compiler_lib_search_path_CXX="${prev}${p}" 11860 else 11861 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11862 fi 11863 ;; 11864 # The "-l" case would never come before the object being 11865 # linked, so don't bother handling this case. 11866 esac 11867 else 11868 if test -z "$postdeps_CXX"; then 11869 postdeps_CXX="${prev}${p}" 11870 else 11871 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11872 fi 11873 fi 11874 ;; 11875 11876 *.$objext) 11877 # This assumes that the test object file only shows up 11878 # once in the compiler output. 11879 if test "$p" = "conftest.$objext"; then 11880 pre_test_object_deps_done=yes 11881 continue 11882 fi 11883 11884 if test "$pre_test_object_deps_done" = no; then 11885 if test -z "$predep_objects_CXX"; then 11886 predep_objects_CXX="$p" 11887 else 11888 predep_objects_CXX="$predep_objects_CXX $p" 11889 fi 11890 else 11891 if test -z "$postdep_objects_CXX"; then 11892 postdep_objects_CXX="$p" 11893 else 11894 postdep_objects_CXX="$postdep_objects_CXX $p" 11895 fi 11896 fi 11897 ;; 11898 11899 *) ;; # Ignore the rest. 11900 11901 esac 11902 done 11903 11904 # Clean up. 11905 rm -f a.out a.exe 11906else 11907 echo "libtool.m4: error: problem compiling CXX test program" 11908fi 11909 11910$rm -f confest.$objext 11911 11912# PORTME: override above test on systems where it is broken 11913case $host_os in 11914interix3*) 11915 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11916 # hack all around it, let's just trust "g++" to DTRT. 11917 predep_objects_CXX= 11918 postdep_objects_CXX= 11919 postdeps_CXX= 11920 ;; 11921 11922solaris*) 11923 case $cc_basename in 11924 CC*) 11925 # Adding this requires a known-good setup of shared libraries for 11926 # Sun compiler versions before 5.6, else PIC objects from an old 11927 # archive will be linked into the output, leading to subtle bugs. 11928 postdeps_CXX='-lCstd -lCrun' 11929 ;; 11930 esac 11931 ;; 11932esac 11933 11934 11935case " $postdeps_CXX " in 11936*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11937esac 11938 11939lt_prog_compiler_wl_CXX= 11940lt_prog_compiler_pic_CXX= 11941lt_prog_compiler_static_CXX= 11942 11943{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11944echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11945 11946 # C++ specific cases for pic, static, wl, etc. 11947 if test "$GXX" = yes; then 11948 lt_prog_compiler_wl_CXX='-Wl,' 11949 lt_prog_compiler_static_CXX='-static' 11950 11951 case $host_os in 11952 aix*) 11953 # All AIX code is PIC. 11954 if test "$host_cpu" = ia64; then 11955 # AIX 5 now supports IA64 processor 11956 lt_prog_compiler_static_CXX='-Bstatic' 11957 fi 11958 ;; 11959 amigaos*) 11960 # FIXME: we need at least 68020 code to build shared libraries, but 11961 # adding the `-m68020' flag to GCC prevents building anything better, 11962 # like `-m68040'. 11963 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11964 ;; 11965 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11966 # PIC is the default for these OSes. 11967 ;; 11968 mingw* | os2* | pw32*) 11969 # This hack is so that the source file can tell whether it is being 11970 # built for inclusion in a dll (and should export symbols for example). 11971 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11972 ;; 11973 darwin* | rhapsody*) 11974 # PIC is the default on this platform 11975 # Common symbols not allowed in MH_DYLIB files 11976 lt_prog_compiler_pic_CXX='-fno-common' 11977 ;; 11978 *djgpp*) 11979 # DJGPP does not support shared libraries at all 11980 lt_prog_compiler_pic_CXX= 11981 ;; 11982 interix3*) 11983 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11984 # Instead, we relocate shared libraries at runtime. 11985 ;; 11986 sysv4*MP*) 11987 if test -d /usr/nec; then 11988 lt_prog_compiler_pic_CXX=-Kconform_pic 11989 fi 11990 ;; 11991 hpux*) 11992 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11993 # not for PA HP-UX. 11994 case $host_cpu in 11995 hppa*64*|ia64*) 11996 ;; 11997 *) 11998 lt_prog_compiler_pic_CXX='-fPIC' 11999 ;; 12000 esac 12001 ;; 12002 *) 12003 lt_prog_compiler_pic_CXX='-fPIC' 12004 ;; 12005 esac 12006 else 12007 case $host_os in 12008 aix4* | aix5*) 12009 # All AIX code is PIC. 12010 if test "$host_cpu" = ia64; then 12011 # AIX 5 now supports IA64 processor 12012 lt_prog_compiler_static_CXX='-Bstatic' 12013 else 12014 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12015 fi 12016 ;; 12017 chorus*) 12018 case $cc_basename in 12019 cxch68*) 12020 # Green Hills C++ Compiler 12021 # _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" 12022 ;; 12023 esac 12024 ;; 12025 darwin*) 12026 # PIC is the default on this platform 12027 # Common symbols not allowed in MH_DYLIB files 12028 case $cc_basename in 12029 xlc*) 12030 lt_prog_compiler_pic_CXX='-qnocommon' 12031 lt_prog_compiler_wl_CXX='-Wl,' 12032 ;; 12033 esac 12034 ;; 12035 dgux*) 12036 case $cc_basename in 12037 ec++*) 12038 lt_prog_compiler_pic_CXX='-KPIC' 12039 ;; 12040 ghcx*) 12041 # Green Hills C++ Compiler 12042 lt_prog_compiler_pic_CXX='-pic' 12043 ;; 12044 *) 12045 ;; 12046 esac 12047 ;; 12048 freebsd* | kfreebsd*-gnu | dragonfly*) 12049 # FreeBSD uses GNU C++ 12050 ;; 12051 hpux9* | hpux10* | hpux11*) 12052 case $cc_basename in 12053 CC*) 12054 lt_prog_compiler_wl_CXX='-Wl,' 12055 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12056 if test "$host_cpu" != ia64; then 12057 lt_prog_compiler_pic_CXX='+Z' 12058 fi 12059 ;; 12060 aCC*) 12061 lt_prog_compiler_wl_CXX='-Wl,' 12062 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12063 case $host_cpu in 12064 hppa*64*|ia64*) 12065 # +Z the default 12066 ;; 12067 *) 12068 lt_prog_compiler_pic_CXX='+Z' 12069 ;; 12070 esac 12071 ;; 12072 *) 12073 ;; 12074 esac 12075 ;; 12076 interix*) 12077 # This is c89, which is MS Visual C++ (no shared libs) 12078 # Anyone wants to do a port? 12079 ;; 12080 irix5* | irix6* | nonstopux*) 12081 case $cc_basename in 12082 CC*) 12083 lt_prog_compiler_wl_CXX='-Wl,' 12084 lt_prog_compiler_static_CXX='-non_shared' 12085 # CC pic flag -KPIC is the default. 12086 ;; 12087 *) 12088 ;; 12089 esac 12090 ;; 12091 linux*) 12092 case $cc_basename in 12093 KCC*) 12094 # KAI C++ Compiler 12095 lt_prog_compiler_wl_CXX='--backend -Wl,' 12096 lt_prog_compiler_pic_CXX='-fPIC' 12097 ;; 12098 icpc* | ecpc*) 12099 # Intel C++ 12100 lt_prog_compiler_wl_CXX='-Wl,' 12101 lt_prog_compiler_pic_CXX='-KPIC' 12102 lt_prog_compiler_static_CXX='-static' 12103 ;; 12104 pgCC*) 12105 # Portland Group C++ compiler. 12106 lt_prog_compiler_wl_CXX='-Wl,' 12107 lt_prog_compiler_pic_CXX='-fpic' 12108 lt_prog_compiler_static_CXX='-Bstatic' 12109 ;; 12110 cxx*) 12111 # Compaq C++ 12112 # Make sure the PIC flag is empty. It appears that all Alpha 12113 # Linux and Compaq Tru64 Unix objects are PIC. 12114 lt_prog_compiler_pic_CXX= 12115 lt_prog_compiler_static_CXX='-non_shared' 12116 ;; 12117 *) 12118 ;; 12119 esac 12120 ;; 12121 lynxos*) 12122 ;; 12123 m88k*) 12124 ;; 12125 mvs*) 12126 case $cc_basename in 12127 cxx*) 12128 lt_prog_compiler_pic_CXX='-W c,exportall' 12129 ;; 12130 *) 12131 ;; 12132 esac 12133 ;; 12134 netbsd*) 12135 ;; 12136 osf3* | osf4* | osf5*) 12137 case $cc_basename in 12138 KCC*) 12139 lt_prog_compiler_wl_CXX='--backend -Wl,' 12140 ;; 12141 RCC*) 12142 # Rational C++ 2.4.1 12143 lt_prog_compiler_pic_CXX='-pic' 12144 ;; 12145 cxx*) 12146 # Digital/Compaq C++ 12147 lt_prog_compiler_wl_CXX='-Wl,' 12148 # Make sure the PIC flag is empty. It appears that all Alpha 12149 # Linux and Compaq Tru64 Unix objects are PIC. 12150 lt_prog_compiler_pic_CXX= 12151 lt_prog_compiler_static_CXX='-non_shared' 12152 ;; 12153 *) 12154 ;; 12155 esac 12156 ;; 12157 psos*) 12158 ;; 12159 solaris*) 12160 case $cc_basename in 12161 CC*) 12162 # Sun C++ 4.2, 5.x and Centerline C++ 12163 lt_prog_compiler_pic_CXX='-KPIC' 12164 lt_prog_compiler_static_CXX='-Bstatic' 12165 lt_prog_compiler_wl_CXX='-Qoption ld ' 12166 ;; 12167 gcx*) 12168 # Green Hills C++ Compiler 12169 lt_prog_compiler_pic_CXX='-PIC' 12170 ;; 12171 *) 12172 ;; 12173 esac 12174 ;; 12175 sunos4*) 12176 case $cc_basename in 12177 CC*) 12178 # Sun C++ 4.x 12179 lt_prog_compiler_pic_CXX='-pic' 12180 lt_prog_compiler_static_CXX='-Bstatic' 12181 ;; 12182 lcc*) 12183 # Lucid 12184 lt_prog_compiler_pic_CXX='-pic' 12185 ;; 12186 *) 12187 ;; 12188 esac 12189 ;; 12190 tandem*) 12191 case $cc_basename in 12192 NCC*) 12193 # NonStop-UX NCC 3.20 12194 lt_prog_compiler_pic_CXX='-KPIC' 12195 ;; 12196 *) 12197 ;; 12198 esac 12199 ;; 12200 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12201 case $cc_basename in 12202 CC*) 12203 lt_prog_compiler_wl_CXX='-Wl,' 12204 lt_prog_compiler_pic_CXX='-KPIC' 12205 lt_prog_compiler_static_CXX='-Bstatic' 12206 ;; 12207 esac 12208 ;; 12209 vxworks*) 12210 ;; 12211 *) 12212 lt_prog_compiler_can_build_shared_CXX=no 12213 ;; 12214 esac 12215 fi 12216 12217{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12218echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12219 12220# 12221# Check to make sure the PIC flag actually works. 12222# 12223if test -n "$lt_prog_compiler_pic_CXX"; then 12224 12225{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12226echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12227if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12228 echo $ECHO_N "(cached) $ECHO_C" >&6 12229else 12230 lt_prog_compiler_pic_works_CXX=no 12231 ac_outfile=conftest.$ac_objext 12232 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12233 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12234 # Insert the option either (1) after the last *FLAGS variable, or 12235 # (2) before a word containing "conftest.", or (3) at the end. 12236 # Note that $ac_compile itself does not contain backslashes and begins 12237 # with a dollar sign (not a hyphen), so the echo should work correctly. 12238 # The option is referenced via a variable to avoid confusing sed. 12239 lt_compile=`echo "$ac_compile" | $SED \ 12240 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12241 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12242 -e 's:$: $lt_compiler_flag:'` 12243 (eval echo "\"\$as_me:12243: $lt_compile\"" >&5) 12244 (eval "$lt_compile" 2>conftest.err) 12245 ac_status=$? 12246 cat conftest.err >&5 12247 echo "$as_me:12247: \$? = $ac_status" >&5 12248 if (exit $ac_status) && test -s "$ac_outfile"; then 12249 # The compiler can only warn and ignore the option if not recognized 12250 # So say no if there are warnings other than the usual output. 12251 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12253 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12254 lt_prog_compiler_pic_works_CXX=yes 12255 fi 12256 fi 12257 $rm conftest* 12258 12259fi 12260{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12261echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12262 12263if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12264 case $lt_prog_compiler_pic_CXX in 12265 "" | " "*) ;; 12266 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12267 esac 12268else 12269 lt_prog_compiler_pic_CXX= 12270 lt_prog_compiler_can_build_shared_CXX=no 12271fi 12272 12273fi 12274case $host_os in 12275 # For platforms which do not support PIC, -DPIC is meaningless: 12276 *djgpp*) 12277 lt_prog_compiler_pic_CXX= 12278 ;; 12279 *) 12280 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12281 ;; 12282esac 12283 12284# 12285# Check to make sure the static flag actually works. 12286# 12287wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12288{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12289echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12290if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12291 echo $ECHO_N "(cached) $ECHO_C" >&6 12292else 12293 lt_prog_compiler_static_works_CXX=no 12294 save_LDFLAGS="$LDFLAGS" 12295 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12296 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12298 # The linker can only warn and ignore the option if not recognized 12299 # So say no if there are warnings 12300 if test -s conftest.err; then 12301 # Append any errors to the config.log. 12302 cat conftest.err 1>&5 12303 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12305 if diff conftest.exp conftest.er2 >/dev/null; then 12306 lt_prog_compiler_static_works_CXX=yes 12307 fi 12308 else 12309 lt_prog_compiler_static_works_CXX=yes 12310 fi 12311 fi 12312 $rm conftest* 12313 LDFLAGS="$save_LDFLAGS" 12314 12315fi 12316{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12317echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12318 12319if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12320 : 12321else 12322 lt_prog_compiler_static_CXX= 12323fi 12324 12325 12326{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12327echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12328if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12329 echo $ECHO_N "(cached) $ECHO_C" >&6 12330else 12331 lt_cv_prog_compiler_c_o_CXX=no 12332 $rm -r conftest 2>/dev/null 12333 mkdir conftest 12334 cd conftest 12335 mkdir out 12336 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12337 12338 lt_compiler_flag="-o out/conftest2.$ac_objext" 12339 # Insert the option either (1) after the last *FLAGS variable, or 12340 # (2) before a word containing "conftest.", or (3) at the end. 12341 # Note that $ac_compile itself does not contain backslashes and begins 12342 # with a dollar sign (not a hyphen), so the echo should work correctly. 12343 lt_compile=`echo "$ac_compile" | $SED \ 12344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12346 -e 's:$: $lt_compiler_flag:'` 12347 (eval echo "\"\$as_me:12347: $lt_compile\"" >&5) 12348 (eval "$lt_compile" 2>out/conftest.err) 12349 ac_status=$? 12350 cat out/conftest.err >&5 12351 echo "$as_me:12351: \$? = $ac_status" >&5 12352 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12353 then 12354 # The compiler can only warn and ignore the option if not recognized 12355 # So say no if there are warnings 12356 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12359 lt_cv_prog_compiler_c_o_CXX=yes 12360 fi 12361 fi 12362 chmod u+w . 2>&5 12363 $rm conftest* 12364 # SGI C++ compiler will create directory out/ii_files/ for 12365 # template instantiation 12366 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12367 $rm out/* && rmdir out 12368 cd .. 12369 rmdir conftest 12370 $rm conftest* 12371 12372fi 12373{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12374echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12375 12376 12377hard_links="nottested" 12378if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12379 # do not overwrite the value of need_locks provided by the user 12380 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12381echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12382 hard_links=yes 12383 $rm conftest* 12384 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12385 touch conftest.a 12386 ln conftest.a conftest.b 2>&5 || hard_links=no 12387 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12388 { echo "$as_me:$LINENO: result: $hard_links" >&5 12389echo "${ECHO_T}$hard_links" >&6; } 12390 if test "$hard_links" = no; then 12391 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12392echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12393 need_locks=warn 12394 fi 12395else 12396 need_locks=no 12397fi 12398 12399{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12400echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12401 12402 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12403 case $host_os in 12404 aix4* | aix5*) 12405 # If we're using GNU nm, then we don't want the "-C" option. 12406 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12407 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12408 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' 12409 else 12410 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' 12411 fi 12412 ;; 12413 pw32*) 12414 export_symbols_cmds_CXX="$ltdll_cmds" 12415 ;; 12416 cygwin* | mingw*) 12417 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' 12418 ;; 12419 *) 12420 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12421 ;; 12422 esac 12423 12424{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12425echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12426test "$ld_shlibs_CXX" = no && can_build_shared=no 12427 12428# 12429# Do we need to explicitly link libc? 12430# 12431case "x$archive_cmds_need_lc_CXX" in 12432x|xyes) 12433 # Assume -lc should be added 12434 archive_cmds_need_lc_CXX=yes 12435 12436 if test "$enable_shared" = yes && test "$GCC" = yes; then 12437 case $archive_cmds_CXX in 12438 *'~'*) 12439 # FIXME: we may have to deal with multi-command sequences. 12440 ;; 12441 '$CC '*) 12442 # Test whether the compiler implicitly links with -lc since on some 12443 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12444 # to ld, don't add -lc before -lgcc. 12445 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12446echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12447 $rm conftest* 12448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12449 12450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12451 (eval $ac_compile) 2>&5 12452 ac_status=$? 12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12454 (exit $ac_status); } 2>conftest.err; then 12455 soname=conftest 12456 lib=conftest 12457 libobjs=conftest.$ac_objext 12458 deplibs= 12459 wl=$lt_prog_compiler_wl_CXX 12460 pic_flag=$lt_prog_compiler_pic_CXX 12461 compiler_flags=-v 12462 linker_flags=-v 12463 verstring= 12464 output_objdir=. 12465 libname=conftest 12466 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12467 allow_undefined_flag_CXX= 12468 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12469 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12470 ac_status=$? 12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12472 (exit $ac_status); } 12473 then 12474 archive_cmds_need_lc_CXX=no 12475 else 12476 archive_cmds_need_lc_CXX=yes 12477 fi 12478 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12479 else 12480 cat conftest.err 1>&5 12481 fi 12482 $rm conftest* 12483 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12484echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12485 ;; 12486 esac 12487 fi 12488 ;; 12489esac 12490 12491{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12492echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12493library_names_spec= 12494libname_spec='lib$name' 12495soname_spec= 12496shrext_cmds=".so" 12497postinstall_cmds= 12498postuninstall_cmds= 12499finish_cmds= 12500finish_eval= 12501shlibpath_var= 12502shlibpath_overrides_runpath=unknown 12503version_type=none 12504dynamic_linker="$host_os ld.so" 12505sys_lib_dlsearch_path_spec="/lib /usr/lib" 12506if test "$GCC" = yes; then 12507 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12508 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12509 # if the path contains ";" then we assume it to be the separator 12510 # otherwise default to the standard path separator (i.e. ":") - it is 12511 # assumed that no part of a normal pathname contains ";" but that should 12512 # okay in the real world where ";" in dirpaths is itself problematic. 12513 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12514 else 12515 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12516 fi 12517else 12518 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12519fi 12520need_lib_prefix=unknown 12521hardcode_into_libs=no 12522 12523# when you set need_version to no, make sure it does not cause -set_version 12524# flags to be left without arguments 12525need_version=unknown 12526 12527case $host_os in 12528aix3*) 12529 version_type=linux 12530 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12531 shlibpath_var=LIBPATH 12532 12533 # AIX 3 has no versioning support, so we append a major version to the name. 12534 soname_spec='${libname}${release}${shared_ext}$major' 12535 ;; 12536 12537aix4* | aix5*) 12538 version_type=linux 12539 need_lib_prefix=no 12540 need_version=no 12541 hardcode_into_libs=yes 12542 if test "$host_cpu" = ia64; then 12543 # AIX 5 supports IA64 12544 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12545 shlibpath_var=LD_LIBRARY_PATH 12546 else 12547 # With GCC up to 2.95.x, collect2 would create an import file 12548 # for dependence libraries. The import file would start with 12549 # the line `#! .'. This would cause the generated library to 12550 # depend on `.', always an invalid library. This was fixed in 12551 # development snapshots of GCC prior to 3.0. 12552 case $host_os in 12553 aix4 | aix4.[01] | aix4.[01].*) 12554 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12555 echo ' yes ' 12556 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12557 : 12558 else 12559 can_build_shared=no 12560 fi 12561 ;; 12562 esac 12563 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12564 # soname into executable. Probably we can add versioning support to 12565 # collect2, so additional links can be useful in future. 12566 if test "$aix_use_runtimelinking" = yes; then 12567 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12568 # instead of lib<name>.a to let people know that these are not 12569 # typical AIX shared libraries. 12570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12571 else 12572 # We preserve .a as extension for shared libraries through AIX4.2 12573 # and later when we are not doing run time linking. 12574 library_names_spec='${libname}${release}.a $libname.a' 12575 soname_spec='${libname}${release}${shared_ext}$major' 12576 fi 12577 shlibpath_var=LIBPATH 12578 fi 12579 ;; 12580 12581amigaos*) 12582 library_names_spec='$libname.ixlibrary $libname.a' 12583 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12584 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' 12585 ;; 12586 12587beos*) 12588 library_names_spec='${libname}${shared_ext}' 12589 dynamic_linker="$host_os ld.so" 12590 shlibpath_var=LIBRARY_PATH 12591 ;; 12592 12593bsdi[45]*) 12594 version_type=linux 12595 need_version=no 12596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12597 soname_spec='${libname}${release}${shared_ext}$major' 12598 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12599 shlibpath_var=LD_LIBRARY_PATH 12600 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12601 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12602 # the default ld.so.conf also contains /usr/contrib/lib and 12603 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12604 # libtool to hard-code these into programs 12605 ;; 12606 12607cygwin* | mingw* | pw32*) 12608 version_type=windows 12609 shrext_cmds=".dll" 12610 need_version=no 12611 need_lib_prefix=no 12612 12613 case $GCC,$host_os in 12614 yes,cygwin* | yes,mingw* | yes,pw32*) 12615 library_names_spec='$libname.dll.a' 12616 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12617 postinstall_cmds='base_file=`basename \${file}`~ 12618 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12619 dldir=$destdir/`dirname \$dlpath`~ 12620 test -d \$dldir || mkdir -p \$dldir~ 12621 $install_prog $dir/$dlname \$dldir/$dlname~ 12622 chmod a+x \$dldir/$dlname' 12623 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12624 dlpath=$dir/\$dldll~ 12625 $rm \$dlpath' 12626 shlibpath_overrides_runpath=yes 12627 12628 case $host_os in 12629 cygwin*) 12630 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12631 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12632 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12633 ;; 12634 mingw*) 12635 # MinGW DLLs use traditional 'lib' prefix 12636 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12637 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12638 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12639 # It is most probably a Windows format PATH printed by 12640 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12641 # path with ; separators, and with drive letters. We can handle the 12642 # drive letters (cygwin fileutils understands them), so leave them, 12643 # especially as we might pass files found there to a mingw objdump, 12644 # which wouldn't understand a cygwinified path. Ahh. 12645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12646 else 12647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12648 fi 12649 ;; 12650 pw32*) 12651 # pw32 DLLs use 'pw' prefix rather than 'lib' 12652 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12653 ;; 12654 esac 12655 ;; 12656 12657 *) 12658 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12659 ;; 12660 esac 12661 dynamic_linker='Win32 ld.exe' 12662 # FIXME: first we should search . and the directory the executable is in 12663 shlibpath_var=PATH 12664 ;; 12665 12666darwin* | rhapsody*) 12667 dynamic_linker="$host_os dyld" 12668 version_type=darwin 12669 need_lib_prefix=no 12670 need_version=no 12671 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12672 soname_spec='${libname}${release}${major}$shared_ext' 12673 shlibpath_overrides_runpath=yes 12674 shlibpath_var=DYLD_LIBRARY_PATH 12675 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12676 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12677 if test "$GCC" = yes; then 12678 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"` 12679 else 12680 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12681 fi 12682 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12683 ;; 12684 12685dgux*) 12686 version_type=linux 12687 need_lib_prefix=no 12688 need_version=no 12689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12690 soname_spec='${libname}${release}${shared_ext}$major' 12691 shlibpath_var=LD_LIBRARY_PATH 12692 ;; 12693 12694freebsd1*) 12695 dynamic_linker=no 12696 ;; 12697 12698kfreebsd*-gnu) 12699 version_type=linux 12700 need_lib_prefix=no 12701 need_version=no 12702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12703 soname_spec='${libname}${release}${shared_ext}$major' 12704 shlibpath_var=LD_LIBRARY_PATH 12705 shlibpath_overrides_runpath=no 12706 hardcode_into_libs=yes 12707 dynamic_linker='GNU ld.so' 12708 ;; 12709 12710freebsd* | dragonfly*) 12711 # DragonFly does not have aout. When/if they implement a new 12712 # versioning mechanism, adjust this. 12713 if test -x /usr/bin/objformat; then 12714 objformat=`/usr/bin/objformat` 12715 else 12716 case $host_os in 12717 freebsd[123]*) objformat=aout ;; 12718 *) objformat=elf ;; 12719 esac 12720 fi 12721 version_type=freebsd-$objformat 12722 case $version_type in 12723 freebsd-elf*) 12724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12725 need_version=no 12726 need_lib_prefix=no 12727 ;; 12728 freebsd-*) 12729 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12730 need_version=yes 12731 ;; 12732 esac 12733 shlibpath_var=LD_LIBRARY_PATH 12734 case $host_os in 12735 freebsd2*) 12736 shlibpath_overrides_runpath=yes 12737 ;; 12738 freebsd3.[01]* | freebsdelf3.[01]*) 12739 shlibpath_overrides_runpath=yes 12740 hardcode_into_libs=yes 12741 ;; 12742 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12743 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12744 shlibpath_overrides_runpath=no 12745 hardcode_into_libs=yes 12746 ;; 12747 freebsd*) # from 4.6 on 12748 shlibpath_overrides_runpath=yes 12749 hardcode_into_libs=yes 12750 ;; 12751 esac 12752 ;; 12753 12754gnu*) 12755 version_type=linux 12756 need_lib_prefix=no 12757 need_version=no 12758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12759 soname_spec='${libname}${release}${shared_ext}$major' 12760 shlibpath_var=LD_LIBRARY_PATH 12761 hardcode_into_libs=yes 12762 ;; 12763 12764hpux9* | hpux10* | hpux11*) 12765 # Give a soname corresponding to the major version so that dld.sl refuses to 12766 # link against other versions. 12767 version_type=sunos 12768 need_lib_prefix=no 12769 need_version=no 12770 case $host_cpu in 12771 ia64*) 12772 shrext_cmds='.so' 12773 hardcode_into_libs=yes 12774 dynamic_linker="$host_os dld.so" 12775 shlibpath_var=LD_LIBRARY_PATH 12776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12778 soname_spec='${libname}${release}${shared_ext}$major' 12779 if test "X$HPUX_IA64_MODE" = X32; then 12780 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12781 else 12782 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12783 fi 12784 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12785 ;; 12786 hppa*64*) 12787 shrext_cmds='.sl' 12788 hardcode_into_libs=yes 12789 dynamic_linker="$host_os dld.sl" 12790 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12793 soname_spec='${libname}${release}${shared_ext}$major' 12794 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12796 ;; 12797 *) 12798 shrext_cmds='.sl' 12799 dynamic_linker="$host_os dld.sl" 12800 shlibpath_var=SHLIB_PATH 12801 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12803 soname_spec='${libname}${release}${shared_ext}$major' 12804 ;; 12805 esac 12806 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12807 postinstall_cmds='chmod 555 $lib' 12808 ;; 12809 12810interix3*) 12811 version_type=linux 12812 need_lib_prefix=no 12813 need_version=no 12814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12815 soname_spec='${libname}${release}${shared_ext}$major' 12816 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12817 shlibpath_var=LD_LIBRARY_PATH 12818 shlibpath_overrides_runpath=no 12819 hardcode_into_libs=yes 12820 ;; 12821 12822irix5* | irix6* | nonstopux*) 12823 case $host_os in 12824 nonstopux*) version_type=nonstopux ;; 12825 *) 12826 if test "$lt_cv_prog_gnu_ld" = yes; then 12827 version_type=linux 12828 else 12829 version_type=irix 12830 fi ;; 12831 esac 12832 need_lib_prefix=no 12833 need_version=no 12834 soname_spec='${libname}${release}${shared_ext}$major' 12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12836 case $host_os in 12837 irix5* | nonstopux*) 12838 libsuff= shlibsuff= 12839 ;; 12840 *) 12841 case $LD in # libtool.m4 will add one of these switches to LD 12842 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12843 libsuff= shlibsuff= libmagic=32-bit;; 12844 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12845 libsuff=32 shlibsuff=N32 libmagic=N32;; 12846 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12847 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12848 *) libsuff= shlibsuff= libmagic=never-match;; 12849 esac 12850 ;; 12851 esac 12852 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12853 shlibpath_overrides_runpath=no 12854 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12855 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12856 hardcode_into_libs=yes 12857 ;; 12858 12859# No shared lib support for Linux oldld, aout, or coff. 12860linux*oldld* | linux*aout* | linux*coff*) 12861 dynamic_linker=no 12862 ;; 12863 12864# This must be Linux ELF. 12865linux*) 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12872 shlibpath_var=LD_LIBRARY_PATH 12873 shlibpath_overrides_runpath=no 12874 # This implies no fast_install, which is unacceptable. 12875 # Some rework will be needed to allow for fast_install 12876 # before this can be enabled. 12877 hardcode_into_libs=yes 12878 12879 # Append ld.so.conf contents to the search path 12880 if test -f /etc/ld.so.conf; then 12881 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' ' '` 12882 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12883 fi 12884 12885 # We used to test for /lib/ld.so.1 and disable shared libraries on 12886 # powerpc, because MkLinux only supported shared libraries with the 12887 # GNU dynamic linker. Since this was broken with cross compilers, 12888 # most powerpc-linux boxes support dynamic linking these days and 12889 # people can always --disable-shared, the test was removed, and we 12890 # assume the GNU/Linux dynamic linker is in use. 12891 dynamic_linker='GNU/Linux ld.so' 12892 ;; 12893 12894knetbsd*-gnu) 12895 version_type=linux 12896 need_lib_prefix=no 12897 need_version=no 12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12899 soname_spec='${libname}${release}${shared_ext}$major' 12900 shlibpath_var=LD_LIBRARY_PATH 12901 shlibpath_overrides_runpath=no 12902 hardcode_into_libs=yes 12903 dynamic_linker='GNU ld.so' 12904 ;; 12905 12906netbsd*) 12907 version_type=sunos 12908 need_lib_prefix=no 12909 need_version=no 12910 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12913 dynamic_linker='NetBSD (a.out) ld.so' 12914 else 12915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12916 soname_spec='${libname}${release}${shared_ext}$major' 12917 dynamic_linker='NetBSD ld.elf_so' 12918 fi 12919 shlibpath_var=LD_LIBRARY_PATH 12920 shlibpath_overrides_runpath=yes 12921 hardcode_into_libs=yes 12922 ;; 12923 12924newsos6) 12925 version_type=linux 12926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12927 shlibpath_var=LD_LIBRARY_PATH 12928 shlibpath_overrides_runpath=yes 12929 ;; 12930 12931nto-qnx*) 12932 version_type=linux 12933 need_lib_prefix=no 12934 need_version=no 12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12936 soname_spec='${libname}${release}${shared_ext}$major' 12937 shlibpath_var=LD_LIBRARY_PATH 12938 shlibpath_overrides_runpath=yes 12939 ;; 12940 12941openbsd*) 12942 version_type=sunos 12943 sys_lib_dlsearch_path_spec="/usr/lib" 12944 need_lib_prefix=no 12945 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12946 case $host_os in 12947 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12948 *) need_version=no ;; 12949 esac 12950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12952 shlibpath_var=LD_LIBRARY_PATH 12953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12954 case $host_os in 12955 openbsd2.[89] | openbsd2.[89].*) 12956 shlibpath_overrides_runpath=no 12957 ;; 12958 *) 12959 shlibpath_overrides_runpath=yes 12960 ;; 12961 esac 12962 else 12963 shlibpath_overrides_runpath=yes 12964 fi 12965 ;; 12966 12967os2*) 12968 libname_spec='$name' 12969 shrext_cmds=".dll" 12970 need_lib_prefix=no 12971 library_names_spec='$libname${shared_ext} $libname.a' 12972 dynamic_linker='OS/2 ld.exe' 12973 shlibpath_var=LIBPATH 12974 ;; 12975 12976osf3* | osf4* | osf5*) 12977 version_type=osf 12978 need_lib_prefix=no 12979 need_version=no 12980 soname_spec='${libname}${release}${shared_ext}$major' 12981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12982 shlibpath_var=LD_LIBRARY_PATH 12983 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12984 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12985 ;; 12986 12987solaris*) 12988 version_type=linux 12989 need_lib_prefix=no 12990 need_version=no 12991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12992 soname_spec='${libname}${release}${shared_ext}$major' 12993 shlibpath_var=LD_LIBRARY_PATH 12994 shlibpath_overrides_runpath=yes 12995 hardcode_into_libs=yes 12996 # ldd complains unless libraries are executable 12997 postinstall_cmds='chmod +x $lib' 12998 ;; 12999 13000sunos4*) 13001 version_type=sunos 13002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13003 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13004 shlibpath_var=LD_LIBRARY_PATH 13005 shlibpath_overrides_runpath=yes 13006 if test "$with_gnu_ld" = yes; then 13007 need_lib_prefix=no 13008 fi 13009 need_version=yes 13010 ;; 13011 13012sysv4 | sysv4.3*) 13013 version_type=linux 13014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13015 soname_spec='${libname}${release}${shared_ext}$major' 13016 shlibpath_var=LD_LIBRARY_PATH 13017 case $host_vendor in 13018 sni) 13019 shlibpath_overrides_runpath=no 13020 need_lib_prefix=no 13021 export_dynamic_flag_spec='${wl}-Blargedynsym' 13022 runpath_var=LD_RUN_PATH 13023 ;; 13024 siemens) 13025 need_lib_prefix=no 13026 ;; 13027 motorola) 13028 need_lib_prefix=no 13029 need_version=no 13030 shlibpath_overrides_runpath=no 13031 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13032 ;; 13033 esac 13034 ;; 13035 13036sysv4*MP*) 13037 if test -d /usr/nec ;then 13038 version_type=linux 13039 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13040 soname_spec='$libname${shared_ext}.$major' 13041 shlibpath_var=LD_LIBRARY_PATH 13042 fi 13043 ;; 13044 13045sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13046 version_type=freebsd-elf 13047 need_lib_prefix=no 13048 need_version=no 13049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13050 soname_spec='${libname}${release}${shared_ext}$major' 13051 shlibpath_var=LD_LIBRARY_PATH 13052 hardcode_into_libs=yes 13053 if test "$with_gnu_ld" = yes; then 13054 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13055 shlibpath_overrides_runpath=no 13056 else 13057 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13058 shlibpath_overrides_runpath=yes 13059 case $host_os in 13060 sco3.2v5*) 13061 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13062 ;; 13063 esac 13064 fi 13065 sys_lib_dlsearch_path_spec='/usr/lib' 13066 ;; 13067 13068uts4*) 13069 version_type=linux 13070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13071 soname_spec='${libname}${release}${shared_ext}$major' 13072 shlibpath_var=LD_LIBRARY_PATH 13073 ;; 13074 13075*) 13076 dynamic_linker=no 13077 ;; 13078esac 13079{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13080echo "${ECHO_T}$dynamic_linker" >&6; } 13081test "$dynamic_linker" = no && can_build_shared=no 13082 13083variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13084if test "$GCC" = yes; then 13085 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13086fi 13087 13088{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13089echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13090hardcode_action_CXX= 13091if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13092 test -n "$runpath_var_CXX" || \ 13093 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13094 13095 # We can hardcode non-existant directories. 13096 if test "$hardcode_direct_CXX" != no && 13097 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13098 # have to relink, otherwise we might link with an installed library 13099 # when we should be linking with a yet-to-be-installed one 13100 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13101 test "$hardcode_minus_L_CXX" != no; then 13102 # Linking always hardcodes the temporary library directory. 13103 hardcode_action_CXX=relink 13104 else 13105 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13106 hardcode_action_CXX=immediate 13107 fi 13108else 13109 # We cannot hardcode anything, or else we can only hardcode existing 13110 # directories. 13111 hardcode_action_CXX=unsupported 13112fi 13113{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13114echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13115 13116if test "$hardcode_action_CXX" = relink; then 13117 # Fast installation is not supported 13118 enable_fast_install=no 13119elif test "$shlibpath_overrides_runpath" = yes || 13120 test "$enable_shared" = no; then 13121 # Fast installation is not necessary 13122 enable_fast_install=needless 13123fi 13124 13125 13126# The else clause should only fire when bootstrapping the 13127# libtool distribution, otherwise you forgot to ship ltmain.sh 13128# with your package, and you will get complaints that there are 13129# no rules to generate ltmain.sh. 13130if test -f "$ltmain"; then 13131 # See if we are running on zsh, and set the options which allow our commands through 13132 # without removal of \ escapes. 13133 if test -n "${ZSH_VERSION+set}" ; then 13134 setopt NO_GLOB_SUBST 13135 fi 13136 # Now quote all the things that may contain metacharacters while being 13137 # careful not to overquote the AC_SUBSTed values. We take copies of the 13138 # variables and quote the copies for generation of the libtool script. 13139 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13140 SED SHELL STRIP \ 13141 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13142 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13143 deplibs_check_method reload_flag reload_cmds need_locks \ 13144 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13145 lt_cv_sys_global_symbol_to_c_name_address \ 13146 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13147 old_postinstall_cmds old_postuninstall_cmds \ 13148 compiler_CXX \ 13149 CC_CXX \ 13150 LD_CXX \ 13151 lt_prog_compiler_wl_CXX \ 13152 lt_prog_compiler_pic_CXX \ 13153 lt_prog_compiler_static_CXX \ 13154 lt_prog_compiler_no_builtin_flag_CXX \ 13155 export_dynamic_flag_spec_CXX \ 13156 thread_safe_flag_spec_CXX \ 13157 whole_archive_flag_spec_CXX \ 13158 enable_shared_with_static_runtimes_CXX \ 13159 old_archive_cmds_CXX \ 13160 old_archive_from_new_cmds_CXX \ 13161 predep_objects_CXX \ 13162 postdep_objects_CXX \ 13163 predeps_CXX \ 13164 postdeps_CXX \ 13165 compiler_lib_search_path_CXX \ 13166 archive_cmds_CXX \ 13167 archive_expsym_cmds_CXX \ 13168 postinstall_cmds_CXX \ 13169 postuninstall_cmds_CXX \ 13170 old_archive_from_expsyms_cmds_CXX \ 13171 allow_undefined_flag_CXX \ 13172 no_undefined_flag_CXX \ 13173 export_symbols_cmds_CXX \ 13174 hardcode_libdir_flag_spec_CXX \ 13175 hardcode_libdir_flag_spec_ld_CXX \ 13176 hardcode_libdir_separator_CXX \ 13177 hardcode_automatic_CXX \ 13178 module_cmds_CXX \ 13179 module_expsym_cmds_CXX \ 13180 lt_cv_prog_compiler_c_o_CXX \ 13181 exclude_expsyms_CXX \ 13182 include_expsyms_CXX; do 13183 13184 case $var in 13185 old_archive_cmds_CXX | \ 13186 old_archive_from_new_cmds_CXX | \ 13187 archive_cmds_CXX | \ 13188 archive_expsym_cmds_CXX | \ 13189 module_cmds_CXX | \ 13190 module_expsym_cmds_CXX | \ 13191 old_archive_from_expsyms_cmds_CXX | \ 13192 export_symbols_cmds_CXX | \ 13193 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13194 postinstall_cmds | postuninstall_cmds | \ 13195 old_postinstall_cmds | old_postuninstall_cmds | \ 13196 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13197 # Double-quote double-evaled strings. 13198 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13199 ;; 13200 *) 13201 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13202 ;; 13203 esac 13204 done 13205 13206 case $lt_echo in 13207 *'\$0 --fallback-echo"') 13208 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13209 ;; 13210 esac 13211 13212cfgfile="$ofile" 13213 13214 cat <<__EOF__ >> "$cfgfile" 13215# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13216 13217# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13218 13219# Shell to use when invoking shell scripts. 13220SHELL=$lt_SHELL 13221 13222# Whether or not to build shared libraries. 13223build_libtool_libs=$enable_shared 13224 13225# Whether or not to build static libraries. 13226build_old_libs=$enable_static 13227 13228# Whether or not to add -lc for building shared libraries. 13229build_libtool_need_lc=$archive_cmds_need_lc_CXX 13230 13231# Whether or not to disallow shared libs when runtime libs are static 13232allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13233 13234# Whether or not to optimize for fast installation. 13235fast_install=$enable_fast_install 13236 13237# The host system. 13238host_alias=$host_alias 13239host=$host 13240host_os=$host_os 13241 13242# The build system. 13243build_alias=$build_alias 13244build=$build 13245build_os=$build_os 13246 13247# An echo program that does not interpret backslashes. 13248echo=$lt_echo 13249 13250# The archiver. 13251AR=$lt_AR 13252AR_FLAGS=$lt_AR_FLAGS 13253 13254# A C compiler. 13255LTCC=$lt_LTCC 13256 13257# LTCC compiler flags. 13258LTCFLAGS=$lt_LTCFLAGS 13259 13260# A language-specific compiler. 13261CC=$lt_compiler_CXX 13262 13263# Is the compiler the GNU C compiler? 13264with_gcc=$GCC_CXX 13265 13266# An ERE matcher. 13267EGREP=$lt_EGREP 13268 13269# The linker used to build libraries. 13270LD=$lt_LD_CXX 13271 13272# Whether we need hard or soft links. 13273LN_S=$lt_LN_S 13274 13275# A BSD-compatible nm program. 13276NM=$lt_NM 13277 13278# A symbol stripping program 13279STRIP=$lt_STRIP 13280 13281# Used to examine libraries when file_magic_cmd begins "file" 13282MAGIC_CMD=$MAGIC_CMD 13283 13284# Used on cygwin: DLL creation program. 13285DLLTOOL="$DLLTOOL" 13286 13287# Used on cygwin: object dumper. 13288OBJDUMP="$OBJDUMP" 13289 13290# Used on cygwin: assembler. 13291AS="$AS" 13292 13293# The name of the directory that contains temporary libtool files. 13294objdir=$objdir 13295 13296# How to create reloadable object files. 13297reload_flag=$lt_reload_flag 13298reload_cmds=$lt_reload_cmds 13299 13300# How to pass a linker flag through the compiler. 13301wl=$lt_lt_prog_compiler_wl_CXX 13302 13303# Object file suffix (normally "o"). 13304objext="$ac_objext" 13305 13306# Old archive suffix (normally "a"). 13307libext="$libext" 13308 13309# Shared library suffix (normally ".so"). 13310shrext_cmds='$shrext_cmds' 13311 13312# Executable file suffix (normally ""). 13313exeext="$exeext" 13314 13315# Additional compiler flags for building library objects. 13316pic_flag=$lt_lt_prog_compiler_pic_CXX 13317pic_mode=$pic_mode 13318 13319# What is the maximum length of a command? 13320max_cmd_len=$lt_cv_sys_max_cmd_len 13321 13322# Does compiler simultaneously support -c and -o options? 13323compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13324 13325# Must we lock files when doing compilation? 13326need_locks=$lt_need_locks 13327 13328# Do we need the lib prefix for modules? 13329need_lib_prefix=$need_lib_prefix 13330 13331# Do we need a version for libraries? 13332need_version=$need_version 13333 13334# Whether dlopen is supported. 13335dlopen_support=$enable_dlopen 13336 13337# Whether dlopen of programs is supported. 13338dlopen_self=$enable_dlopen_self 13339 13340# Whether dlopen of statically linked programs is supported. 13341dlopen_self_static=$enable_dlopen_self_static 13342 13343# Compiler flag to prevent dynamic linking. 13344link_static_flag=$lt_lt_prog_compiler_static_CXX 13345 13346# Compiler flag to turn off builtin functions. 13347no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13348 13349# Compiler flag to allow reflexive dlopens. 13350export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13351 13352# Compiler flag to generate shared objects directly from archives. 13353whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13354 13355# Compiler flag to generate thread-safe objects. 13356thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13357 13358# Library versioning type. 13359version_type=$version_type 13360 13361# Format of library name prefix. 13362libname_spec=$lt_libname_spec 13363 13364# List of archive names. First name is the real one, the rest are links. 13365# The last name is the one that the linker finds with -lNAME. 13366library_names_spec=$lt_library_names_spec 13367 13368# The coded name of the library, if different from the real name. 13369soname_spec=$lt_soname_spec 13370 13371# Commands used to build and install an old-style archive. 13372RANLIB=$lt_RANLIB 13373old_archive_cmds=$lt_old_archive_cmds_CXX 13374old_postinstall_cmds=$lt_old_postinstall_cmds 13375old_postuninstall_cmds=$lt_old_postuninstall_cmds 13376 13377# Create an old-style archive from a shared archive. 13378old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13379 13380# Create a temporary old-style archive to link instead of a shared archive. 13381old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13382 13383# Commands used to build and install a shared archive. 13384archive_cmds=$lt_archive_cmds_CXX 13385archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13386postinstall_cmds=$lt_postinstall_cmds 13387postuninstall_cmds=$lt_postuninstall_cmds 13388 13389# Commands used to build a loadable module (assumed same as above if empty) 13390module_cmds=$lt_module_cmds_CXX 13391module_expsym_cmds=$lt_module_expsym_cmds_CXX 13392 13393# Commands to strip libraries. 13394old_striplib=$lt_old_striplib 13395striplib=$lt_striplib 13396 13397# Dependencies to place before the objects being linked to create a 13398# shared library. 13399predep_objects=$lt_predep_objects_CXX 13400 13401# Dependencies to place after the objects being linked to create a 13402# shared library. 13403postdep_objects=$lt_postdep_objects_CXX 13404 13405# Dependencies to place before the objects being linked to create a 13406# shared library. 13407predeps=$lt_predeps_CXX 13408 13409# Dependencies to place after the objects being linked to create a 13410# shared library. 13411postdeps=$lt_postdeps_CXX 13412 13413# The library search path used internally by the compiler when linking 13414# a shared library. 13415compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13416 13417# Method to check whether dependent libraries are shared objects. 13418deplibs_check_method=$lt_deplibs_check_method 13419 13420# Command to use when deplibs_check_method == file_magic. 13421file_magic_cmd=$lt_file_magic_cmd 13422 13423# Flag that allows shared libraries with undefined symbols to be built. 13424allow_undefined_flag=$lt_allow_undefined_flag_CXX 13425 13426# Flag that forces no undefined symbols. 13427no_undefined_flag=$lt_no_undefined_flag_CXX 13428 13429# Commands used to finish a libtool library installation in a directory. 13430finish_cmds=$lt_finish_cmds 13431 13432# Same as above, but a single script fragment to be evaled but not shown. 13433finish_eval=$lt_finish_eval 13434 13435# Take the output of nm and produce a listing of raw symbols and C names. 13436global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13437 13438# Transform the output of nm in a proper C declaration 13439global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13440 13441# Transform the output of nm in a C name address pair 13442global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13443 13444# This is the shared library runtime path variable. 13445runpath_var=$runpath_var 13446 13447# This is the shared library path variable. 13448shlibpath_var=$shlibpath_var 13449 13450# Is shlibpath searched before the hard-coded library search path? 13451shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13452 13453# How to hardcode a shared library path into an executable. 13454hardcode_action=$hardcode_action_CXX 13455 13456# Whether we should hardcode library paths into libraries. 13457hardcode_into_libs=$hardcode_into_libs 13458 13459# Flag to hardcode \$libdir into a binary during linking. 13460# This must work even if \$libdir does not exist. 13461hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13462 13463# If ld is used when linking, flag to hardcode \$libdir into 13464# a binary during linking. This must work even if \$libdir does 13465# not exist. 13466hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13467 13468# Whether we need a single -rpath flag with a separated argument. 13469hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13470 13471# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13472# resulting binary. 13473hardcode_direct=$hardcode_direct_CXX 13474 13475# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13476# resulting binary. 13477hardcode_minus_L=$hardcode_minus_L_CXX 13478 13479# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13480# the resulting binary. 13481hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13482 13483# Set to yes if building a shared library automatically hardcodes DIR into the library 13484# and all subsequent libraries and executables linked against it. 13485hardcode_automatic=$hardcode_automatic_CXX 13486 13487# Variables whose values should be saved in libtool wrapper scripts and 13488# restored at relink time. 13489variables_saved_for_relink="$variables_saved_for_relink" 13490 13491# Whether libtool must link a program against all its dependency libraries. 13492link_all_deplibs=$link_all_deplibs_CXX 13493 13494# Compile-time system search path for libraries 13495sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13496 13497# Run-time system search path for libraries 13498sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13499 13500# Fix the shell variable \$srcfile for the compiler. 13501fix_srcfile_path="$fix_srcfile_path_CXX" 13502 13503# Set to yes if exported symbols are required. 13504always_export_symbols=$always_export_symbols_CXX 13505 13506# The commands to list exported symbols. 13507export_symbols_cmds=$lt_export_symbols_cmds_CXX 13508 13509# The commands to extract the exported symbol list from a shared archive. 13510extract_expsyms_cmds=$lt_extract_expsyms_cmds 13511 13512# Symbols that should not be listed in the preloaded symbols. 13513exclude_expsyms=$lt_exclude_expsyms_CXX 13514 13515# Symbols that must always be exported. 13516include_expsyms=$lt_include_expsyms_CXX 13517 13518# ### END LIBTOOL TAG CONFIG: $tagname 13519 13520__EOF__ 13521 13522 13523else 13524 # If there is no Makefile yet, we rely on a make rule to execute 13525 # `config.status --recheck' to rerun these tests and create the 13526 # libtool script then. 13527 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13528 if test -f "$ltmain_in"; then 13529 test -f Makefile && make "$ltmain" 13530 fi 13531fi 13532 13533 13534ac_ext=c 13535ac_cpp='$CPP $CPPFLAGS' 13536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13538ac_compiler_gnu=$ac_cv_c_compiler_gnu 13539 13540CC=$lt_save_CC 13541LDCXX=$LD 13542LD=$lt_save_LD 13543GCC=$lt_save_GCC 13544with_gnu_ldcxx=$with_gnu_ld 13545with_gnu_ld=$lt_save_with_gnu_ld 13546lt_cv_path_LDCXX=$lt_cv_path_LD 13547lt_cv_path_LD=$lt_save_path_LD 13548lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13549lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13550 13551 else 13552 tagname="" 13553 fi 13554 ;; 13555 13556 F77) 13557 if test -n "$F77" && test "X$F77" != "Xno"; then 13558 13559ac_ext=f 13560ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13561ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13562ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13563 13564 13565archive_cmds_need_lc_F77=no 13566allow_undefined_flag_F77= 13567always_export_symbols_F77=no 13568archive_expsym_cmds_F77= 13569export_dynamic_flag_spec_F77= 13570hardcode_direct_F77=no 13571hardcode_libdir_flag_spec_F77= 13572hardcode_libdir_flag_spec_ld_F77= 13573hardcode_libdir_separator_F77= 13574hardcode_minus_L_F77=no 13575hardcode_automatic_F77=no 13576module_cmds_F77= 13577module_expsym_cmds_F77= 13578link_all_deplibs_F77=unknown 13579old_archive_cmds_F77=$old_archive_cmds 13580no_undefined_flag_F77= 13581whole_archive_flag_spec_F77= 13582enable_shared_with_static_runtimes_F77=no 13583 13584# Source file extension for f77 test sources. 13585ac_ext=f 13586 13587# Object file extension for compiled f77 test sources. 13588objext=o 13589objext_F77=$objext 13590 13591# Code to be used in simple compile tests 13592lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13593 13594# Code to be used in simple link tests 13595lt_simple_link_test_code=" program t\n end\n" 13596 13597# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13598 13599# If no C compiler was specified, use CC. 13600LTCC=${LTCC-"$CC"} 13601 13602# If no C compiler flags were specified, use CFLAGS. 13603LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13604 13605# Allow CC to be a program name with arguments. 13606compiler=$CC 13607 13608 13609# save warnings/boilerplate of simple test code 13610ac_outfile=conftest.$ac_objext 13611printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13612eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13613_lt_compiler_boilerplate=`cat conftest.err` 13614$rm conftest* 13615 13616ac_outfile=conftest.$ac_objext 13617printf "$lt_simple_link_test_code" >conftest.$ac_ext 13618eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13619_lt_linker_boilerplate=`cat conftest.err` 13620$rm conftest* 13621 13622 13623# Allow CC to be a program name with arguments. 13624lt_save_CC="$CC" 13625CC=${F77-"f77"} 13626compiler=$CC 13627compiler_F77=$CC 13628for cc_temp in $compiler""; do 13629 case $cc_temp in 13630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13632 \-*) ;; 13633 *) break;; 13634 esac 13635done 13636cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13637 13638 13639{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13640echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13641{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13642echo "${ECHO_T}$can_build_shared" >&6; } 13643 13644{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13645echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13646test "$can_build_shared" = "no" && enable_shared=no 13647 13648# On AIX, shared libraries and static libraries use the same namespace, and 13649# are all built from PIC. 13650case $host_os in 13651aix3*) 13652 test "$enable_shared" = yes && enable_static=no 13653 if test -n "$RANLIB"; then 13654 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13655 postinstall_cmds='$RANLIB $lib' 13656 fi 13657 ;; 13658aix4* | aix5*) 13659 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13660 test "$enable_shared" = yes && enable_static=no 13661 fi 13662 ;; 13663esac 13664{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13665echo "${ECHO_T}$enable_shared" >&6; } 13666 13667{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13668echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13669# Make sure either enable_shared or enable_static is yes. 13670test "$enable_shared" = yes || enable_static=yes 13671{ echo "$as_me:$LINENO: result: $enable_static" >&5 13672echo "${ECHO_T}$enable_static" >&6; } 13673 13674GCC_F77="$G77" 13675LD_F77="$LD" 13676 13677lt_prog_compiler_wl_F77= 13678lt_prog_compiler_pic_F77= 13679lt_prog_compiler_static_F77= 13680 13681{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13682echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13683 13684 if test "$GCC" = yes; then 13685 lt_prog_compiler_wl_F77='-Wl,' 13686 lt_prog_compiler_static_F77='-static' 13687 13688 case $host_os in 13689 aix*) 13690 # All AIX code is PIC. 13691 if test "$host_cpu" = ia64; then 13692 # AIX 5 now supports IA64 processor 13693 lt_prog_compiler_static_F77='-Bstatic' 13694 fi 13695 ;; 13696 13697 amigaos*) 13698 # FIXME: we need at least 68020 code to build shared libraries, but 13699 # adding the `-m68020' flag to GCC prevents building anything better, 13700 # like `-m68040'. 13701 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13702 ;; 13703 13704 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13705 # PIC is the default for these OSes. 13706 ;; 13707 13708 mingw* | pw32* | os2*) 13709 # This hack is so that the source file can tell whether it is being 13710 # built for inclusion in a dll (and should export symbols for example). 13711 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13712 ;; 13713 13714 darwin* | rhapsody*) 13715 # PIC is the default on this platform 13716 # Common symbols not allowed in MH_DYLIB files 13717 lt_prog_compiler_pic_F77='-fno-common' 13718 ;; 13719 13720 interix3*) 13721 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13722 # Instead, we relocate shared libraries at runtime. 13723 ;; 13724 13725 msdosdjgpp*) 13726 # Just because we use GCC doesn't mean we suddenly get shared libraries 13727 # on systems that don't support them. 13728 lt_prog_compiler_can_build_shared_F77=no 13729 enable_shared=no 13730 ;; 13731 13732 sysv4*MP*) 13733 if test -d /usr/nec; then 13734 lt_prog_compiler_pic_F77=-Kconform_pic 13735 fi 13736 ;; 13737 13738 hpux*) 13739 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13740 # not for PA HP-UX. 13741 case $host_cpu in 13742 hppa*64*|ia64*) 13743 # +Z the default 13744 ;; 13745 *) 13746 lt_prog_compiler_pic_F77='-fPIC' 13747 ;; 13748 esac 13749 ;; 13750 13751 *) 13752 lt_prog_compiler_pic_F77='-fPIC' 13753 ;; 13754 esac 13755 else 13756 # PORTME Check for flag to pass linker flags through the system compiler. 13757 case $host_os in 13758 aix*) 13759 lt_prog_compiler_wl_F77='-Wl,' 13760 if test "$host_cpu" = ia64; then 13761 # AIX 5 now supports IA64 processor 13762 lt_prog_compiler_static_F77='-Bstatic' 13763 else 13764 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13765 fi 13766 ;; 13767 darwin*) 13768 # PIC is the default on this platform 13769 # Common symbols not allowed in MH_DYLIB files 13770 case $cc_basename in 13771 xlc*) 13772 lt_prog_compiler_pic_F77='-qnocommon' 13773 lt_prog_compiler_wl_F77='-Wl,' 13774 ;; 13775 esac 13776 ;; 13777 13778 mingw* | pw32* | os2*) 13779 # This hack is so that the source file can tell whether it is being 13780 # built for inclusion in a dll (and should export symbols for example). 13781 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13782 ;; 13783 13784 hpux9* | hpux10* | hpux11*) 13785 lt_prog_compiler_wl_F77='-Wl,' 13786 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13787 # not for PA HP-UX. 13788 case $host_cpu in 13789 hppa*64*|ia64*) 13790 # +Z the default 13791 ;; 13792 *) 13793 lt_prog_compiler_pic_F77='+Z' 13794 ;; 13795 esac 13796 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13797 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13798 ;; 13799 13800 irix5* | irix6* | nonstopux*) 13801 lt_prog_compiler_wl_F77='-Wl,' 13802 # PIC (with -KPIC) is the default. 13803 lt_prog_compiler_static_F77='-non_shared' 13804 ;; 13805 13806 newsos6) 13807 lt_prog_compiler_pic_F77='-KPIC' 13808 lt_prog_compiler_static_F77='-Bstatic' 13809 ;; 13810 13811 linux*) 13812 case $cc_basename in 13813 icc* | ecc*) 13814 lt_prog_compiler_wl_F77='-Wl,' 13815 lt_prog_compiler_pic_F77='-KPIC' 13816 lt_prog_compiler_static_F77='-static' 13817 ;; 13818 pgcc* | pgf77* | pgf90* | pgf95*) 13819 # Portland Group compilers (*not* the Pentium gcc compiler, 13820 # which looks to be a dead project) 13821 lt_prog_compiler_wl_F77='-Wl,' 13822 lt_prog_compiler_pic_F77='-fpic' 13823 lt_prog_compiler_static_F77='-Bstatic' 13824 ;; 13825 ccc*) 13826 lt_prog_compiler_wl_F77='-Wl,' 13827 # All Alpha code is PIC. 13828 lt_prog_compiler_static_F77='-non_shared' 13829 ;; 13830 esac 13831 ;; 13832 13833 osf3* | osf4* | osf5*) 13834 lt_prog_compiler_wl_F77='-Wl,' 13835 # All OSF/1 code is PIC. 13836 lt_prog_compiler_static_F77='-non_shared' 13837 ;; 13838 13839 solaris*) 13840 lt_prog_compiler_pic_F77='-KPIC' 13841 lt_prog_compiler_static_F77='-Bstatic' 13842 case $cc_basename in 13843 f77* | f90* | f95*) 13844 lt_prog_compiler_wl_F77='-Qoption ld ';; 13845 *) 13846 lt_prog_compiler_wl_F77='-Wl,';; 13847 esac 13848 ;; 13849 13850 sunos4*) 13851 lt_prog_compiler_wl_F77='-Qoption ld ' 13852 lt_prog_compiler_pic_F77='-PIC' 13853 lt_prog_compiler_static_F77='-Bstatic' 13854 ;; 13855 13856 sysv4 | sysv4.2uw2* | sysv4.3*) 13857 lt_prog_compiler_wl_F77='-Wl,' 13858 lt_prog_compiler_pic_F77='-KPIC' 13859 lt_prog_compiler_static_F77='-Bstatic' 13860 ;; 13861 13862 sysv4*MP*) 13863 if test -d /usr/nec ;then 13864 lt_prog_compiler_pic_F77='-Kconform_pic' 13865 lt_prog_compiler_static_F77='-Bstatic' 13866 fi 13867 ;; 13868 13869 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13870 lt_prog_compiler_wl_F77='-Wl,' 13871 lt_prog_compiler_pic_F77='-KPIC' 13872 lt_prog_compiler_static_F77='-Bstatic' 13873 ;; 13874 13875 unicos*) 13876 lt_prog_compiler_wl_F77='-Wl,' 13877 lt_prog_compiler_can_build_shared_F77=no 13878 ;; 13879 13880 uts4*) 13881 lt_prog_compiler_pic_F77='-pic' 13882 lt_prog_compiler_static_F77='-Bstatic' 13883 ;; 13884 13885 *) 13886 lt_prog_compiler_can_build_shared_F77=no 13887 ;; 13888 esac 13889 fi 13890 13891{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13892echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13893 13894# 13895# Check to make sure the PIC flag actually works. 13896# 13897if test -n "$lt_prog_compiler_pic_F77"; then 13898 13899{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13900echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13901if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13902 echo $ECHO_N "(cached) $ECHO_C" >&6 13903else 13904 lt_prog_compiler_pic_works_F77=no 13905 ac_outfile=conftest.$ac_objext 13906 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13907 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13908 # Insert the option either (1) after the last *FLAGS variable, or 13909 # (2) before a word containing "conftest.", or (3) at the end. 13910 # Note that $ac_compile itself does not contain backslashes and begins 13911 # with a dollar sign (not a hyphen), so the echo should work correctly. 13912 # The option is referenced via a variable to avoid confusing sed. 13913 lt_compile=`echo "$ac_compile" | $SED \ 13914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13916 -e 's:$: $lt_compiler_flag:'` 13917 (eval echo "\"\$as_me:13917: $lt_compile\"" >&5) 13918 (eval "$lt_compile" 2>conftest.err) 13919 ac_status=$? 13920 cat conftest.err >&5 13921 echo "$as_me:13921: \$? = $ac_status" >&5 13922 if (exit $ac_status) && test -s "$ac_outfile"; then 13923 # The compiler can only warn and ignore the option if not recognized 13924 # So say no if there are warnings other than the usual output. 13925 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13927 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13928 lt_prog_compiler_pic_works_F77=yes 13929 fi 13930 fi 13931 $rm conftest* 13932 13933fi 13934{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13935echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13936 13937if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13938 case $lt_prog_compiler_pic_F77 in 13939 "" | " "*) ;; 13940 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13941 esac 13942else 13943 lt_prog_compiler_pic_F77= 13944 lt_prog_compiler_can_build_shared_F77=no 13945fi 13946 13947fi 13948case $host_os in 13949 # For platforms which do not support PIC, -DPIC is meaningless: 13950 *djgpp*) 13951 lt_prog_compiler_pic_F77= 13952 ;; 13953 *) 13954 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13955 ;; 13956esac 13957 13958# 13959# Check to make sure the static flag actually works. 13960# 13961wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13962{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13963echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13964if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13965 echo $ECHO_N "(cached) $ECHO_C" >&6 13966else 13967 lt_prog_compiler_static_works_F77=no 13968 save_LDFLAGS="$LDFLAGS" 13969 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13970 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13971 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13972 # The linker can only warn and ignore the option if not recognized 13973 # So say no if there are warnings 13974 if test -s conftest.err; then 13975 # Append any errors to the config.log. 13976 cat conftest.err 1>&5 13977 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13978 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13979 if diff conftest.exp conftest.er2 >/dev/null; then 13980 lt_prog_compiler_static_works_F77=yes 13981 fi 13982 else 13983 lt_prog_compiler_static_works_F77=yes 13984 fi 13985 fi 13986 $rm conftest* 13987 LDFLAGS="$save_LDFLAGS" 13988 13989fi 13990{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13991echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 13992 13993if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13994 : 13995else 13996 lt_prog_compiler_static_F77= 13997fi 13998 13999 14000{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14001echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14002if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14003 echo $ECHO_N "(cached) $ECHO_C" >&6 14004else 14005 lt_cv_prog_compiler_c_o_F77=no 14006 $rm -r conftest 2>/dev/null 14007 mkdir conftest 14008 cd conftest 14009 mkdir out 14010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14011 14012 lt_compiler_flag="-o out/conftest2.$ac_objext" 14013 # Insert the option either (1) after the last *FLAGS variable, or 14014 # (2) before a word containing "conftest.", or (3) at the end. 14015 # Note that $ac_compile itself does not contain backslashes and begins 14016 # with a dollar sign (not a hyphen), so the echo should work correctly. 14017 lt_compile=`echo "$ac_compile" | $SED \ 14018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14020 -e 's:$: $lt_compiler_flag:'` 14021 (eval echo "\"\$as_me:14021: $lt_compile\"" >&5) 14022 (eval "$lt_compile" 2>out/conftest.err) 14023 ac_status=$? 14024 cat out/conftest.err >&5 14025 echo "$as_me:14025: \$? = $ac_status" >&5 14026 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14027 then 14028 # The compiler can only warn and ignore the option if not recognized 14029 # So say no if there are warnings 14030 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14031 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14032 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14033 lt_cv_prog_compiler_c_o_F77=yes 14034 fi 14035 fi 14036 chmod u+w . 2>&5 14037 $rm conftest* 14038 # SGI C++ compiler will create directory out/ii_files/ for 14039 # template instantiation 14040 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14041 $rm out/* && rmdir out 14042 cd .. 14043 rmdir conftest 14044 $rm conftest* 14045 14046fi 14047{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14048echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14049 14050 14051hard_links="nottested" 14052if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14053 # do not overwrite the value of need_locks provided by the user 14054 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14055echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14056 hard_links=yes 14057 $rm conftest* 14058 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14059 touch conftest.a 14060 ln conftest.a conftest.b 2>&5 || hard_links=no 14061 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14062 { echo "$as_me:$LINENO: result: $hard_links" >&5 14063echo "${ECHO_T}$hard_links" >&6; } 14064 if test "$hard_links" = no; then 14065 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14066echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14067 need_locks=warn 14068 fi 14069else 14070 need_locks=no 14071fi 14072 14073{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14074echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14075 14076 runpath_var= 14077 allow_undefined_flag_F77= 14078 enable_shared_with_static_runtimes_F77=no 14079 archive_cmds_F77= 14080 archive_expsym_cmds_F77= 14081 old_archive_From_new_cmds_F77= 14082 old_archive_from_expsyms_cmds_F77= 14083 export_dynamic_flag_spec_F77= 14084 whole_archive_flag_spec_F77= 14085 thread_safe_flag_spec_F77= 14086 hardcode_libdir_flag_spec_F77= 14087 hardcode_libdir_flag_spec_ld_F77= 14088 hardcode_libdir_separator_F77= 14089 hardcode_direct_F77=no 14090 hardcode_minus_L_F77=no 14091 hardcode_shlibpath_var_F77=unsupported 14092 link_all_deplibs_F77=unknown 14093 hardcode_automatic_F77=no 14094 module_cmds_F77= 14095 module_expsym_cmds_F77= 14096 always_export_symbols_F77=no 14097 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14098 # include_expsyms should be a list of space-separated symbols to be *always* 14099 # included in the symbol list 14100 include_expsyms_F77= 14101 # exclude_expsyms can be an extended regexp of symbols to exclude 14102 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14103 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14104 # as well as any symbol that contains `d'. 14105 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14106 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14107 # platforms (ab)use it in PIC code, but their linkers get confused if 14108 # the symbol is explicitly referenced. Since portable code cannot 14109 # rely on this symbol name, it's probably fine to never include it in 14110 # preloaded symbol tables. 14111 extract_expsyms_cmds= 14112 # Just being paranoid about ensuring that cc_basename is set. 14113 for cc_temp in $compiler""; do 14114 case $cc_temp in 14115 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14116 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14117 \-*) ;; 14118 *) break;; 14119 esac 14120done 14121cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14122 14123 case $host_os in 14124 cygwin* | mingw* | pw32*) 14125 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14126 # When not using gcc, we currently assume that we are using 14127 # Microsoft Visual C++. 14128 if test "$GCC" != yes; then 14129 with_gnu_ld=no 14130 fi 14131 ;; 14132 interix*) 14133 # we just hope/assume this is gcc and not c89 (= MSVC++) 14134 with_gnu_ld=yes 14135 ;; 14136 openbsd*) 14137 with_gnu_ld=no 14138 ;; 14139 esac 14140 14141 ld_shlibs_F77=yes 14142 if test "$with_gnu_ld" = yes; then 14143 # If archive_cmds runs LD, not CC, wlarc should be empty 14144 wlarc='${wl}' 14145 14146 # Set some defaults for GNU ld with shared library support. These 14147 # are reset later if shared libraries are not supported. Putting them 14148 # here allows them to be overridden if necessary. 14149 runpath_var=LD_RUN_PATH 14150 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14151 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14152 # ancient GNU ld didn't support --whole-archive et. al. 14153 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14154 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14155 else 14156 whole_archive_flag_spec_F77= 14157 fi 14158 supports_anon_versioning=no 14159 case `$LD -v 2>/dev/null` in 14160 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14161 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14162 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14163 *\ 2.11.*) ;; # other 2.11 versions 14164 *) supports_anon_versioning=yes ;; 14165 esac 14166 14167 # See if GNU ld supports shared libraries. 14168 case $host_os in 14169 aix3* | aix4* | aix5*) 14170 # On AIX/PPC, the GNU linker is very broken 14171 if test "$host_cpu" != ia64; then 14172 ld_shlibs_F77=no 14173 cat <<EOF 1>&2 14174 14175*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14176*** to be unable to reliably create shared libraries on AIX. 14177*** Therefore, libtool is disabling shared libraries support. If you 14178*** really care for shared libraries, you may want to modify your PATH 14179*** so that a non-GNU linker is found, and then restart. 14180 14181EOF 14182 fi 14183 ;; 14184 14185 amigaos*) 14186 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)' 14187 hardcode_libdir_flag_spec_F77='-L$libdir' 14188 hardcode_minus_L_F77=yes 14189 14190 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14191 # that the semantics of dynamic libraries on AmigaOS, at least up 14192 # to version 4, is to share data among multiple programs linked 14193 # with the same dynamic library. Since this doesn't match the 14194 # behavior of shared libraries on other platforms, we can't use 14195 # them. 14196 ld_shlibs_F77=no 14197 ;; 14198 14199 beos*) 14200 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14201 allow_undefined_flag_F77=unsupported 14202 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14203 # support --undefined. This deserves some investigation. FIXME 14204 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14205 else 14206 ld_shlibs_F77=no 14207 fi 14208 ;; 14209 14210 cygwin* | mingw* | pw32*) 14211 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14212 # as there is no search path for DLLs. 14213 hardcode_libdir_flag_spec_F77='-L$libdir' 14214 allow_undefined_flag_F77=unsupported 14215 always_export_symbols_F77=no 14216 enable_shared_with_static_runtimes_F77=yes 14217 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14218 14219 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14220 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14221 # If the export-symbols file already is a .def file (1st line 14222 # is EXPORTS), use it as is; otherwise, prepend... 14223 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14224 cp $export_symbols $output_objdir/$soname.def; 14225 else 14226 echo EXPORTS > $output_objdir/$soname.def; 14227 cat $export_symbols >> $output_objdir/$soname.def; 14228 fi~ 14229 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14230 else 14231 ld_shlibs_F77=no 14232 fi 14233 ;; 14234 14235 interix3*) 14236 hardcode_direct_F77=no 14237 hardcode_shlibpath_var_F77=no 14238 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14239 export_dynamic_flag_spec_F77='${wl}-E' 14240 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14241 # Instead, shared libraries are loaded at an image base (0x10000000 by 14242 # default) and relocated if they conflict, which is a slow very memory 14243 # consuming and fragmenting process. To avoid this, we pick a random, 14244 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14245 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14246 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' 14247 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' 14248 ;; 14249 14250 linux*) 14251 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14252 tmp_addflag= 14253 case $cc_basename,$host_cpu in 14254 pgcc*) # Portland Group C compiler 14255 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' 14256 tmp_addflag=' $pic_flag' 14257 ;; 14258 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14259 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' 14260 tmp_addflag=' $pic_flag -Mnomain' ;; 14261 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14262 tmp_addflag=' -i_dynamic' ;; 14263 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14264 tmp_addflag=' -i_dynamic -nofor_main' ;; 14265 ifc* | ifort*) # Intel Fortran compiler 14266 tmp_addflag=' -nofor_main' ;; 14267 esac 14268 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14269 14270 if test $supports_anon_versioning = yes; then 14271 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14272 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14273 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14274 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14275 fi 14276 else 14277 ld_shlibs_F77=no 14278 fi 14279 ;; 14280 14281 netbsd*) 14282 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14283 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14284 wlarc= 14285 else 14286 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14287 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14288 fi 14289 ;; 14290 14291 solaris*) 14292 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14293 ld_shlibs_F77=no 14294 cat <<EOF 1>&2 14295 14296*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14297*** create shared libraries on Solaris systems. Therefore, libtool 14298*** is disabling shared libraries support. We urge you to upgrade GNU 14299*** binutils to release 2.9.1 or newer. Another option is to modify 14300*** your PATH or compiler configuration so that the native linker is 14301*** used, and then restart. 14302 14303EOF 14304 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14305 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14306 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14307 else 14308 ld_shlibs_F77=no 14309 fi 14310 ;; 14311 14312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14313 case `$LD -v 2>&1` in 14314 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14315 ld_shlibs_F77=no 14316 cat <<_LT_EOF 1>&2 14317 14318*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14319*** reliably create shared libraries on SCO systems. Therefore, libtool 14320*** is disabling shared libraries support. We urge you to upgrade GNU 14321*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14322*** your PATH or compiler configuration so that the native linker is 14323*** used, and then restart. 14324 14325_LT_EOF 14326 ;; 14327 *) 14328 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14329 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14330 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14331 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14332 else 14333 ld_shlibs_F77=no 14334 fi 14335 ;; 14336 esac 14337 ;; 14338 14339 sunos4*) 14340 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14341 wlarc= 14342 hardcode_direct_F77=yes 14343 hardcode_shlibpath_var_F77=no 14344 ;; 14345 14346 *) 14347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14348 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14349 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14350 else 14351 ld_shlibs_F77=no 14352 fi 14353 ;; 14354 esac 14355 14356 if test "$ld_shlibs_F77" = no; then 14357 runpath_var= 14358 hardcode_libdir_flag_spec_F77= 14359 export_dynamic_flag_spec_F77= 14360 whole_archive_flag_spec_F77= 14361 fi 14362 else 14363 # PORTME fill in a description of your system's linker (not GNU ld) 14364 case $host_os in 14365 aix3*) 14366 allow_undefined_flag_F77=unsupported 14367 always_export_symbols_F77=yes 14368 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' 14369 # Note: this linker hardcodes the directories in LIBPATH if there 14370 # are no directories specified by -L. 14371 hardcode_minus_L_F77=yes 14372 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14373 # Neither direct hardcoding nor static linking is supported with a 14374 # broken collect2. 14375 hardcode_direct_F77=unsupported 14376 fi 14377 ;; 14378 14379 aix4* | aix5*) 14380 if test "$host_cpu" = ia64; then 14381 # On IA64, the linker does run time linking by default, so we don't 14382 # have to do anything special. 14383 aix_use_runtimelinking=no 14384 exp_sym_flag='-Bexport' 14385 no_entry_flag="" 14386 else 14387 # If we're using GNU nm, then we don't want the "-C" option. 14388 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14389 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14390 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' 14391 else 14392 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' 14393 fi 14394 aix_use_runtimelinking=no 14395 14396 # Test if we are trying to use run time linking or normal 14397 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14398 # need to do runtime linking. 14399 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14400 for ld_flag in $LDFLAGS; do 14401 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14402 aix_use_runtimelinking=yes 14403 break 14404 fi 14405 done 14406 ;; 14407 esac 14408 14409 exp_sym_flag='-bexport' 14410 no_entry_flag='-bnoentry' 14411 fi 14412 14413 # When large executables or shared objects are built, AIX ld can 14414 # have problems creating the table of contents. If linking a library 14415 # or program results in "error TOC overflow" add -mminimal-toc to 14416 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14417 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14418 14419 archive_cmds_F77='' 14420 hardcode_direct_F77=yes 14421 hardcode_libdir_separator_F77=':' 14422 link_all_deplibs_F77=yes 14423 14424 if test "$GCC" = yes; then 14425 case $host_os in aix4.[012]|aix4.[012].*) 14426 # We only want to do this on AIX 4.2 and lower, the check 14427 # below for broken collect2 doesn't work under 4.3+ 14428 collect2name=`${CC} -print-prog-name=collect2` 14429 if test -f "$collect2name" && \ 14430 strings "$collect2name" | grep resolve_lib_name >/dev/null 14431 then 14432 # We have reworked collect2 14433 hardcode_direct_F77=yes 14434 else 14435 # We have old collect2 14436 hardcode_direct_F77=unsupported 14437 # It fails to find uninstalled libraries when the uninstalled 14438 # path is not listed in the libpath. Setting hardcode_minus_L 14439 # to unsupported forces relinking 14440 hardcode_minus_L_F77=yes 14441 hardcode_libdir_flag_spec_F77='-L$libdir' 14442 hardcode_libdir_separator_F77= 14443 fi 14444 ;; 14445 esac 14446 shared_flag='-shared' 14447 if test "$aix_use_runtimelinking" = yes; then 14448 shared_flag="$shared_flag "'${wl}-G' 14449 fi 14450 else 14451 # not using gcc 14452 if test "$host_cpu" = ia64; then 14453 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14454 # chokes on -Wl,-G. The following line is correct: 14455 shared_flag='-G' 14456 else 14457 if test "$aix_use_runtimelinking" = yes; then 14458 shared_flag='${wl}-G' 14459 else 14460 shared_flag='${wl}-bM:SRE' 14461 fi 14462 fi 14463 fi 14464 14465 # It seems that -bexpall does not export symbols beginning with 14466 # underscore (_), so it is better to generate a list of symbols to export. 14467 always_export_symbols_F77=yes 14468 if test "$aix_use_runtimelinking" = yes; then 14469 # Warning - without using the other runtime loading flags (-brtl), 14470 # -berok will link without error, but may produce a broken library. 14471 allow_undefined_flag_F77='-berok' 14472 # Determine the default libpath from the value encoded in an empty executable. 14473 cat >conftest.$ac_ext <<_ACEOF 14474 program main 14475 14476 end 14477_ACEOF 14478rm -f conftest.$ac_objext conftest$ac_exeext 14479if { (ac_try="$ac_link" 14480case "(($ac_try" in 14481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14482 *) ac_try_echo=$ac_try;; 14483esac 14484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14485 (eval "$ac_link") 2>conftest.er1 14486 ac_status=$? 14487 grep -v '^ *+' conftest.er1 >conftest.err 14488 rm -f conftest.er1 14489 cat conftest.err >&5 14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14491 (exit $ac_status); } && { 14492 test -z "$ac_f77_werror_flag" || 14493 test ! -s conftest.err 14494 } && test -s conftest$ac_exeext && 14495 $as_test_x conftest$ac_exeext; then 14496 14497aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14498}'` 14499# Check for a 64-bit object if we didn't find anything. 14500if 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; } 14501}'`; fi 14502else 14503 echo "$as_me: failed program was:" >&5 14504sed 's/^/| /' conftest.$ac_ext >&5 14505 14506 14507fi 14508 14509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14510 conftest$ac_exeext conftest.$ac_ext 14511if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14512 14513 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14514 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" 14515 else 14516 if test "$host_cpu" = ia64; then 14517 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14518 allow_undefined_flag_F77="-z nodefs" 14519 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" 14520 else 14521 # Determine the default libpath from the value encoded in an empty executable. 14522 cat >conftest.$ac_ext <<_ACEOF 14523 program main 14524 14525 end 14526_ACEOF 14527rm -f conftest.$ac_objext conftest$ac_exeext 14528if { (ac_try="$ac_link" 14529case "(($ac_try" in 14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14531 *) ac_try_echo=$ac_try;; 14532esac 14533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14534 (eval "$ac_link") 2>conftest.er1 14535 ac_status=$? 14536 grep -v '^ *+' conftest.er1 >conftest.err 14537 rm -f conftest.er1 14538 cat conftest.err >&5 14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14540 (exit $ac_status); } && { 14541 test -z "$ac_f77_werror_flag" || 14542 test ! -s conftest.err 14543 } && test -s conftest$ac_exeext && 14544 $as_test_x conftest$ac_exeext; then 14545 14546aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14547}'` 14548# Check for a 64-bit object if we didn't find anything. 14549if 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; } 14550}'`; fi 14551else 14552 echo "$as_me: failed program was:" >&5 14553sed 's/^/| /' conftest.$ac_ext >&5 14554 14555 14556fi 14557 14558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14559 conftest$ac_exeext conftest.$ac_ext 14560if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14561 14562 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14563 # Warning - without using the other run time loading flags, 14564 # -berok will link without error, but may produce a broken library. 14565 no_undefined_flag_F77=' ${wl}-bernotok' 14566 allow_undefined_flag_F77=' ${wl}-berok' 14567 # Exported symbols can be pulled into shared objects from archives 14568 whole_archive_flag_spec_F77='$convenience' 14569 archive_cmds_need_lc_F77=yes 14570 # This is similar to how AIX traditionally builds its shared libraries. 14571 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' 14572 fi 14573 fi 14574 ;; 14575 14576 amigaos*) 14577 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)' 14578 hardcode_libdir_flag_spec_F77='-L$libdir' 14579 hardcode_minus_L_F77=yes 14580 # see comment about different semantics on the GNU ld section 14581 ld_shlibs_F77=no 14582 ;; 14583 14584 bsdi[45]*) 14585 export_dynamic_flag_spec_F77=-rdynamic 14586 ;; 14587 14588 cygwin* | mingw* | pw32*) 14589 # When not using gcc, we currently assume that we are using 14590 # Microsoft Visual C++. 14591 # hardcode_libdir_flag_spec is actually meaningless, as there is 14592 # no search path for DLLs. 14593 hardcode_libdir_flag_spec_F77=' ' 14594 allow_undefined_flag_F77=unsupported 14595 # Tell ltmain to make .lib files, not .a files. 14596 libext=lib 14597 # Tell ltmain to make .dll files, not .so files. 14598 shrext_cmds=".dll" 14599 # FIXME: Setting linknames here is a bad hack. 14600 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14601 # The linker will automatically build a .lib file if we build a DLL. 14602 old_archive_From_new_cmds_F77='true' 14603 # FIXME: Should let the user specify the lib program. 14604 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14605 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14606 enable_shared_with_static_runtimes_F77=yes 14607 ;; 14608 14609 darwin* | rhapsody*) 14610 case $host_os in 14611 rhapsody* | darwin1.[012]) 14612 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14613 ;; 14614 *) # Darwin 1.3 on 14615 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14616 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14617 else 14618 case ${MACOSX_DEPLOYMENT_TARGET} in 14619 10.[012]) 14620 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14621 ;; 14622 10.*) 14623 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14624 ;; 14625 esac 14626 fi 14627 ;; 14628 esac 14629 archive_cmds_need_lc_F77=no 14630 hardcode_direct_F77=no 14631 hardcode_automatic_F77=yes 14632 hardcode_shlibpath_var_F77=unsupported 14633 whole_archive_flag_spec_F77='' 14634 link_all_deplibs_F77=yes 14635 if test "$GCC" = yes ; then 14636 output_verbose_link_cmd='echo' 14637 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14638 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14639 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14640 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}' 14641 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}' 14642 else 14643 case $cc_basename in 14644 xlc*) 14645 output_verbose_link_cmd='echo' 14646 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14647 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14648 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14649 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}' 14650 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}' 14651 ;; 14652 *) 14653 ld_shlibs_F77=no 14654 ;; 14655 esac 14656 fi 14657 ;; 14658 14659 dgux*) 14660 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14661 hardcode_libdir_flag_spec_F77='-L$libdir' 14662 hardcode_shlibpath_var_F77=no 14663 ;; 14664 14665 freebsd1*) 14666 ld_shlibs_F77=no 14667 ;; 14668 14669 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14670 # support. Future versions do this automatically, but an explicit c++rt0.o 14671 # does not break anything, and helps significantly (at the cost of a little 14672 # extra space). 14673 freebsd2.2*) 14674 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14675 hardcode_libdir_flag_spec_F77='-R$libdir' 14676 hardcode_direct_F77=yes 14677 hardcode_shlibpath_var_F77=no 14678 ;; 14679 14680 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14681 freebsd2*) 14682 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14683 hardcode_direct_F77=yes 14684 hardcode_minus_L_F77=yes 14685 hardcode_shlibpath_var_F77=no 14686 ;; 14687 14688 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14689 freebsd* | kfreebsd*-gnu | dragonfly*) 14690 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14691 hardcode_libdir_flag_spec_F77='-R$libdir' 14692 hardcode_direct_F77=yes 14693 hardcode_shlibpath_var_F77=no 14694 ;; 14695 14696 hpux9*) 14697 if test "$GCC" = yes; then 14698 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' 14699 else 14700 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' 14701 fi 14702 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14703 hardcode_libdir_separator_F77=: 14704 hardcode_direct_F77=yes 14705 14706 # hardcode_minus_L: Not really in the search PATH, 14707 # but as the default location of the library. 14708 hardcode_minus_L_F77=yes 14709 export_dynamic_flag_spec_F77='${wl}-E' 14710 ;; 14711 14712 hpux10*) 14713 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14714 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14715 else 14716 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14717 fi 14718 if test "$with_gnu_ld" = no; then 14719 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14720 hardcode_libdir_separator_F77=: 14721 14722 hardcode_direct_F77=yes 14723 export_dynamic_flag_spec_F77='${wl}-E' 14724 14725 # hardcode_minus_L: Not really in the search PATH, 14726 # but as the default location of the library. 14727 hardcode_minus_L_F77=yes 14728 fi 14729 ;; 14730 14731 hpux11*) 14732 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14733 case $host_cpu in 14734 hppa*64*) 14735 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14736 ;; 14737 ia64*) 14738 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14739 ;; 14740 *) 14741 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14742 ;; 14743 esac 14744 else 14745 case $host_cpu in 14746 hppa*64*) 14747 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14748 ;; 14749 ia64*) 14750 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14751 ;; 14752 *) 14753 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14754 ;; 14755 esac 14756 fi 14757 if test "$with_gnu_ld" = no; then 14758 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14759 hardcode_libdir_separator_F77=: 14760 14761 case $host_cpu in 14762 hppa*64*|ia64*) 14763 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14764 hardcode_direct_F77=no 14765 hardcode_shlibpath_var_F77=no 14766 ;; 14767 *) 14768 hardcode_direct_F77=yes 14769 export_dynamic_flag_spec_F77='${wl}-E' 14770 14771 # hardcode_minus_L: Not really in the search PATH, 14772 # but as the default location of the library. 14773 hardcode_minus_L_F77=yes 14774 ;; 14775 esac 14776 fi 14777 ;; 14778 14779 irix5* | irix6* | nonstopux*) 14780 if test "$GCC" = yes; then 14781 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' 14782 else 14783 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' 14784 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14785 fi 14786 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14787 hardcode_libdir_separator_F77=: 14788 link_all_deplibs_F77=yes 14789 ;; 14790 14791 netbsd*) 14792 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14793 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14794 else 14795 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14796 fi 14797 hardcode_libdir_flag_spec_F77='-R$libdir' 14798 hardcode_direct_F77=yes 14799 hardcode_shlibpath_var_F77=no 14800 ;; 14801 14802 newsos6) 14803 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14804 hardcode_direct_F77=yes 14805 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14806 hardcode_libdir_separator_F77=: 14807 hardcode_shlibpath_var_F77=no 14808 ;; 14809 14810 openbsd*) 14811 hardcode_direct_F77=yes 14812 hardcode_shlibpath_var_F77=no 14813 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14814 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14815 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14816 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14817 export_dynamic_flag_spec_F77='${wl}-E' 14818 else 14819 case $host_os in 14820 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14821 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14822 hardcode_libdir_flag_spec_F77='-R$libdir' 14823 ;; 14824 *) 14825 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14826 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14827 ;; 14828 esac 14829 fi 14830 ;; 14831 14832 os2*) 14833 hardcode_libdir_flag_spec_F77='-L$libdir' 14834 hardcode_minus_L_F77=yes 14835 allow_undefined_flag_F77=unsupported 14836 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' 14837 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14838 ;; 14839 14840 osf3*) 14841 if test "$GCC" = yes; then 14842 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14843 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' 14844 else 14845 allow_undefined_flag_F77=' -expect_unresolved \*' 14846 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' 14847 fi 14848 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14849 hardcode_libdir_separator_F77=: 14850 ;; 14851 14852 osf4* | osf5*) # as osf3* with the addition of -msym flag 14853 if test "$GCC" = yes; then 14854 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14855 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' 14856 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14857 else 14858 allow_undefined_flag_F77=' -expect_unresolved \*' 14859 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' 14860 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~ 14861 $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' 14862 14863 # Both c and cxx compiler support -rpath directly 14864 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14865 fi 14866 hardcode_libdir_separator_F77=: 14867 ;; 14868 14869 solaris*) 14870 no_undefined_flag_F77=' -z text' 14871 if test "$GCC" = yes; then 14872 wlarc='${wl}' 14873 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14874 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14875 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14876 else 14877 wlarc='' 14878 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14879 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14880 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14881 fi 14882 hardcode_libdir_flag_spec_F77='-R$libdir' 14883 hardcode_shlibpath_var_F77=no 14884 case $host_os in 14885 solaris2.[0-5] | solaris2.[0-5].*) ;; 14886 *) 14887 # The compiler driver will combine linker options so we 14888 # cannot just pass the convience library names through 14889 # without $wl, iff we do not link with $LD. 14890 # Luckily, gcc supports the same syntax we need for Sun Studio. 14891 # Supported since Solaris 2.6 (maybe 2.5.1?) 14892 case $wlarc in 14893 '') 14894 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14895 *) 14896 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' ;; 14897 esac ;; 14898 esac 14899 link_all_deplibs_F77=yes 14900 ;; 14901 14902 sunos4*) 14903 if test "x$host_vendor" = xsequent; then 14904 # Use $CC to link under sequent, because it throws in some extra .o 14905 # files that make .init and .fini sections work. 14906 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14907 else 14908 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14909 fi 14910 hardcode_libdir_flag_spec_F77='-L$libdir' 14911 hardcode_direct_F77=yes 14912 hardcode_minus_L_F77=yes 14913 hardcode_shlibpath_var_F77=no 14914 ;; 14915 14916 sysv4) 14917 case $host_vendor in 14918 sni) 14919 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14920 hardcode_direct_F77=yes # is this really true??? 14921 ;; 14922 siemens) 14923 ## LD is ld it makes a PLAMLIB 14924 ## CC just makes a GrossModule. 14925 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14926 reload_cmds_F77='$CC -r -o $output$reload_objs' 14927 hardcode_direct_F77=no 14928 ;; 14929 motorola) 14930 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14931 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14932 ;; 14933 esac 14934 runpath_var='LD_RUN_PATH' 14935 hardcode_shlibpath_var_F77=no 14936 ;; 14937 14938 sysv4.3*) 14939 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14940 hardcode_shlibpath_var_F77=no 14941 export_dynamic_flag_spec_F77='-Bexport' 14942 ;; 14943 14944 sysv4*MP*) 14945 if test -d /usr/nec; then 14946 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14947 hardcode_shlibpath_var_F77=no 14948 runpath_var=LD_RUN_PATH 14949 hardcode_runpath_var=yes 14950 ld_shlibs_F77=yes 14951 fi 14952 ;; 14953 14954 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14955 no_undefined_flag_F77='${wl}-z,text' 14956 archive_cmds_need_lc_F77=no 14957 hardcode_shlibpath_var_F77=no 14958 runpath_var='LD_RUN_PATH' 14959 14960 if test "$GCC" = yes; then 14961 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14962 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14963 else 14964 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14965 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14966 fi 14967 ;; 14968 14969 sysv5* | sco3.2v5* | sco5v6*) 14970 # Note: We can NOT use -z defs as we might desire, because we do not 14971 # link with -lc, and that would cause any symbols used from libc to 14972 # always be unresolved, which means just about no library would 14973 # ever link correctly. If we're not using GNU ld we use -z text 14974 # though, which does catch some bad symbols but isn't as heavy-handed 14975 # as -z defs. 14976 no_undefined_flag_F77='${wl}-z,text' 14977 allow_undefined_flag_F77='${wl}-z,nodefs' 14978 archive_cmds_need_lc_F77=no 14979 hardcode_shlibpath_var_F77=no 14980 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14981 hardcode_libdir_separator_F77=':' 14982 link_all_deplibs_F77=yes 14983 export_dynamic_flag_spec_F77='${wl}-Bexport' 14984 runpath_var='LD_RUN_PATH' 14985 14986 if test "$GCC" = yes; then 14987 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14988 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14989 else 14990 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14991 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14992 fi 14993 ;; 14994 14995 uts4*) 14996 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14997 hardcode_libdir_flag_spec_F77='-L$libdir' 14998 hardcode_shlibpath_var_F77=no 14999 ;; 15000 15001 *) 15002 ld_shlibs_F77=no 15003 ;; 15004 esac 15005 fi 15006 15007{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15008echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15009test "$ld_shlibs_F77" = no && can_build_shared=no 15010 15011# 15012# Do we need to explicitly link libc? 15013# 15014case "x$archive_cmds_need_lc_F77" in 15015x|xyes) 15016 # Assume -lc should be added 15017 archive_cmds_need_lc_F77=yes 15018 15019 if test "$enable_shared" = yes && test "$GCC" = yes; then 15020 case $archive_cmds_F77 in 15021 *'~'*) 15022 # FIXME: we may have to deal with multi-command sequences. 15023 ;; 15024 '$CC '*) 15025 # Test whether the compiler implicitly links with -lc since on some 15026 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15027 # to ld, don't add -lc before -lgcc. 15028 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15029echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15030 $rm conftest* 15031 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15032 15033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15034 (eval $ac_compile) 2>&5 15035 ac_status=$? 15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15037 (exit $ac_status); } 2>conftest.err; then 15038 soname=conftest 15039 lib=conftest 15040 libobjs=conftest.$ac_objext 15041 deplibs= 15042 wl=$lt_prog_compiler_wl_F77 15043 pic_flag=$lt_prog_compiler_pic_F77 15044 compiler_flags=-v 15045 linker_flags=-v 15046 verstring= 15047 output_objdir=. 15048 libname=conftest 15049 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15050 allow_undefined_flag_F77= 15051 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15052 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15053 ac_status=$? 15054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15055 (exit $ac_status); } 15056 then 15057 archive_cmds_need_lc_F77=no 15058 else 15059 archive_cmds_need_lc_F77=yes 15060 fi 15061 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15062 else 15063 cat conftest.err 1>&5 15064 fi 15065 $rm conftest* 15066 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15067echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15068 ;; 15069 esac 15070 fi 15071 ;; 15072esac 15073 15074{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15075echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15076library_names_spec= 15077libname_spec='lib$name' 15078soname_spec= 15079shrext_cmds=".so" 15080postinstall_cmds= 15081postuninstall_cmds= 15082finish_cmds= 15083finish_eval= 15084shlibpath_var= 15085shlibpath_overrides_runpath=unknown 15086version_type=none 15087dynamic_linker="$host_os ld.so" 15088sys_lib_dlsearch_path_spec="/lib /usr/lib" 15089if test "$GCC" = yes; then 15090 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15091 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15092 # if the path contains ";" then we assume it to be the separator 15093 # otherwise default to the standard path separator (i.e. ":") - it is 15094 # assumed that no part of a normal pathname contains ";" but that should 15095 # okay in the real world where ";" in dirpaths is itself problematic. 15096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15097 else 15098 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15099 fi 15100else 15101 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15102fi 15103need_lib_prefix=unknown 15104hardcode_into_libs=no 15105 15106# when you set need_version to no, make sure it does not cause -set_version 15107# flags to be left without arguments 15108need_version=unknown 15109 15110case $host_os in 15111aix3*) 15112 version_type=linux 15113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15114 shlibpath_var=LIBPATH 15115 15116 # AIX 3 has no versioning support, so we append a major version to the name. 15117 soname_spec='${libname}${release}${shared_ext}$major' 15118 ;; 15119 15120aix4* | aix5*) 15121 version_type=linux 15122 need_lib_prefix=no 15123 need_version=no 15124 hardcode_into_libs=yes 15125 if test "$host_cpu" = ia64; then 15126 # AIX 5 supports IA64 15127 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15128 shlibpath_var=LD_LIBRARY_PATH 15129 else 15130 # With GCC up to 2.95.x, collect2 would create an import file 15131 # for dependence libraries. The import file would start with 15132 # the line `#! .'. This would cause the generated library to 15133 # depend on `.', always an invalid library. This was fixed in 15134 # development snapshots of GCC prior to 3.0. 15135 case $host_os in 15136 aix4 | aix4.[01] | aix4.[01].*) 15137 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15138 echo ' yes ' 15139 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15140 : 15141 else 15142 can_build_shared=no 15143 fi 15144 ;; 15145 esac 15146 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15147 # soname into executable. Probably we can add versioning support to 15148 # collect2, so additional links can be useful in future. 15149 if test "$aix_use_runtimelinking" = yes; then 15150 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15151 # instead of lib<name>.a to let people know that these are not 15152 # typical AIX shared libraries. 15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15154 else 15155 # We preserve .a as extension for shared libraries through AIX4.2 15156 # and later when we are not doing run time linking. 15157 library_names_spec='${libname}${release}.a $libname.a' 15158 soname_spec='${libname}${release}${shared_ext}$major' 15159 fi 15160 shlibpath_var=LIBPATH 15161 fi 15162 ;; 15163 15164amigaos*) 15165 library_names_spec='$libname.ixlibrary $libname.a' 15166 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15167 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' 15168 ;; 15169 15170beos*) 15171 library_names_spec='${libname}${shared_ext}' 15172 dynamic_linker="$host_os ld.so" 15173 shlibpath_var=LIBRARY_PATH 15174 ;; 15175 15176bsdi[45]*) 15177 version_type=linux 15178 need_version=no 15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15180 soname_spec='${libname}${release}${shared_ext}$major' 15181 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15182 shlibpath_var=LD_LIBRARY_PATH 15183 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15184 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15185 # the default ld.so.conf also contains /usr/contrib/lib and 15186 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15187 # libtool to hard-code these into programs 15188 ;; 15189 15190cygwin* | mingw* | pw32*) 15191 version_type=windows 15192 shrext_cmds=".dll" 15193 need_version=no 15194 need_lib_prefix=no 15195 15196 case $GCC,$host_os in 15197 yes,cygwin* | yes,mingw* | yes,pw32*) 15198 library_names_spec='$libname.dll.a' 15199 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15200 postinstall_cmds='base_file=`basename \${file}`~ 15201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15202 dldir=$destdir/`dirname \$dlpath`~ 15203 test -d \$dldir || mkdir -p \$dldir~ 15204 $install_prog $dir/$dlname \$dldir/$dlname~ 15205 chmod a+x \$dldir/$dlname' 15206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15207 dlpath=$dir/\$dldll~ 15208 $rm \$dlpath' 15209 shlibpath_overrides_runpath=yes 15210 15211 case $host_os in 15212 cygwin*) 15213 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15214 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15215 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15216 ;; 15217 mingw*) 15218 # MinGW DLLs use traditional 'lib' prefix 15219 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15220 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15221 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15222 # It is most probably a Windows format PATH printed by 15223 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15224 # path with ; separators, and with drive letters. We can handle the 15225 # drive letters (cygwin fileutils understands them), so leave them, 15226 # especially as we might pass files found there to a mingw objdump, 15227 # which wouldn't understand a cygwinified path. Ahh. 15228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15229 else 15230 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15231 fi 15232 ;; 15233 pw32*) 15234 # pw32 DLLs use 'pw' prefix rather than 'lib' 15235 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15236 ;; 15237 esac 15238 ;; 15239 15240 *) 15241 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15242 ;; 15243 esac 15244 dynamic_linker='Win32 ld.exe' 15245 # FIXME: first we should search . and the directory the executable is in 15246 shlibpath_var=PATH 15247 ;; 15248 15249darwin* | rhapsody*) 15250 dynamic_linker="$host_os dyld" 15251 version_type=darwin 15252 need_lib_prefix=no 15253 need_version=no 15254 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15255 soname_spec='${libname}${release}${major}$shared_ext' 15256 shlibpath_overrides_runpath=yes 15257 shlibpath_var=DYLD_LIBRARY_PATH 15258 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15259 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15260 if test "$GCC" = yes; then 15261 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"` 15262 else 15263 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15264 fi 15265 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15266 ;; 15267 15268dgux*) 15269 version_type=linux 15270 need_lib_prefix=no 15271 need_version=no 15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15273 soname_spec='${libname}${release}${shared_ext}$major' 15274 shlibpath_var=LD_LIBRARY_PATH 15275 ;; 15276 15277freebsd1*) 15278 dynamic_linker=no 15279 ;; 15280 15281kfreebsd*-gnu) 15282 version_type=linux 15283 need_lib_prefix=no 15284 need_version=no 15285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15286 soname_spec='${libname}${release}${shared_ext}$major' 15287 shlibpath_var=LD_LIBRARY_PATH 15288 shlibpath_overrides_runpath=no 15289 hardcode_into_libs=yes 15290 dynamic_linker='GNU ld.so' 15291 ;; 15292 15293freebsd* | dragonfly*) 15294 # DragonFly does not have aout. When/if they implement a new 15295 # versioning mechanism, adjust this. 15296 if test -x /usr/bin/objformat; then 15297 objformat=`/usr/bin/objformat` 15298 else 15299 case $host_os in 15300 freebsd[123]*) objformat=aout ;; 15301 *) objformat=elf ;; 15302 esac 15303 fi 15304 version_type=freebsd-$objformat 15305 case $version_type in 15306 freebsd-elf*) 15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15308 need_version=no 15309 need_lib_prefix=no 15310 ;; 15311 freebsd-*) 15312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15313 need_version=yes 15314 ;; 15315 esac 15316 shlibpath_var=LD_LIBRARY_PATH 15317 case $host_os in 15318 freebsd2*) 15319 shlibpath_overrides_runpath=yes 15320 ;; 15321 freebsd3.[01]* | freebsdelf3.[01]*) 15322 shlibpath_overrides_runpath=yes 15323 hardcode_into_libs=yes 15324 ;; 15325 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15326 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15327 shlibpath_overrides_runpath=no 15328 hardcode_into_libs=yes 15329 ;; 15330 freebsd*) # from 4.6 on 15331 shlibpath_overrides_runpath=yes 15332 hardcode_into_libs=yes 15333 ;; 15334 esac 15335 ;; 15336 15337gnu*) 15338 version_type=linux 15339 need_lib_prefix=no 15340 need_version=no 15341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15342 soname_spec='${libname}${release}${shared_ext}$major' 15343 shlibpath_var=LD_LIBRARY_PATH 15344 hardcode_into_libs=yes 15345 ;; 15346 15347hpux9* | hpux10* | hpux11*) 15348 # Give a soname corresponding to the major version so that dld.sl refuses to 15349 # link against other versions. 15350 version_type=sunos 15351 need_lib_prefix=no 15352 need_version=no 15353 case $host_cpu in 15354 ia64*) 15355 shrext_cmds='.so' 15356 hardcode_into_libs=yes 15357 dynamic_linker="$host_os dld.so" 15358 shlibpath_var=LD_LIBRARY_PATH 15359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15361 soname_spec='${libname}${release}${shared_ext}$major' 15362 if test "X$HPUX_IA64_MODE" = X32; then 15363 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15364 else 15365 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15366 fi 15367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15368 ;; 15369 hppa*64*) 15370 shrext_cmds='.sl' 15371 hardcode_into_libs=yes 15372 dynamic_linker="$host_os dld.sl" 15373 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15376 soname_spec='${libname}${release}${shared_ext}$major' 15377 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15379 ;; 15380 *) 15381 shrext_cmds='.sl' 15382 dynamic_linker="$host_os dld.sl" 15383 shlibpath_var=SHLIB_PATH 15384 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15386 soname_spec='${libname}${release}${shared_ext}$major' 15387 ;; 15388 esac 15389 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15390 postinstall_cmds='chmod 555 $lib' 15391 ;; 15392 15393interix3*) 15394 version_type=linux 15395 need_lib_prefix=no 15396 need_version=no 15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15398 soname_spec='${libname}${release}${shared_ext}$major' 15399 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15400 shlibpath_var=LD_LIBRARY_PATH 15401 shlibpath_overrides_runpath=no 15402 hardcode_into_libs=yes 15403 ;; 15404 15405irix5* | irix6* | nonstopux*) 15406 case $host_os in 15407 nonstopux*) version_type=nonstopux ;; 15408 *) 15409 if test "$lt_cv_prog_gnu_ld" = yes; then 15410 version_type=linux 15411 else 15412 version_type=irix 15413 fi ;; 15414 esac 15415 need_lib_prefix=no 15416 need_version=no 15417 soname_spec='${libname}${release}${shared_ext}$major' 15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15419 case $host_os in 15420 irix5* | nonstopux*) 15421 libsuff= shlibsuff= 15422 ;; 15423 *) 15424 case $LD in # libtool.m4 will add one of these switches to LD 15425 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15426 libsuff= shlibsuff= libmagic=32-bit;; 15427 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15428 libsuff=32 shlibsuff=N32 libmagic=N32;; 15429 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15430 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15431 *) libsuff= shlibsuff= libmagic=never-match;; 15432 esac 15433 ;; 15434 esac 15435 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15436 shlibpath_overrides_runpath=no 15437 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15438 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15439 hardcode_into_libs=yes 15440 ;; 15441 15442# No shared lib support for Linux oldld, aout, or coff. 15443linux*oldld* | linux*aout* | linux*coff*) 15444 dynamic_linker=no 15445 ;; 15446 15447# This must be Linux ELF. 15448linux*) 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15455 shlibpath_var=LD_LIBRARY_PATH 15456 shlibpath_overrides_runpath=no 15457 # This implies no fast_install, which is unacceptable. 15458 # Some rework will be needed to allow for fast_install 15459 # before this can be enabled. 15460 hardcode_into_libs=yes 15461 15462 # Append ld.so.conf contents to the search path 15463 if test -f /etc/ld.so.conf; then 15464 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' ' '` 15465 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15466 fi 15467 15468 # We used to test for /lib/ld.so.1 and disable shared libraries on 15469 # powerpc, because MkLinux only supported shared libraries with the 15470 # GNU dynamic linker. Since this was broken with cross compilers, 15471 # most powerpc-linux boxes support dynamic linking these days and 15472 # people can always --disable-shared, the test was removed, and we 15473 # assume the GNU/Linux dynamic linker is in use. 15474 dynamic_linker='GNU/Linux ld.so' 15475 ;; 15476 15477knetbsd*-gnu) 15478 version_type=linux 15479 need_lib_prefix=no 15480 need_version=no 15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15482 soname_spec='${libname}${release}${shared_ext}$major' 15483 shlibpath_var=LD_LIBRARY_PATH 15484 shlibpath_overrides_runpath=no 15485 hardcode_into_libs=yes 15486 dynamic_linker='GNU ld.so' 15487 ;; 15488 15489netbsd*) 15490 version_type=sunos 15491 need_lib_prefix=no 15492 need_version=no 15493 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15496 dynamic_linker='NetBSD (a.out) ld.so' 15497 else 15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15499 soname_spec='${libname}${release}${shared_ext}$major' 15500 dynamic_linker='NetBSD ld.elf_so' 15501 fi 15502 shlibpath_var=LD_LIBRARY_PATH 15503 shlibpath_overrides_runpath=yes 15504 hardcode_into_libs=yes 15505 ;; 15506 15507newsos6) 15508 version_type=linux 15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15510 shlibpath_var=LD_LIBRARY_PATH 15511 shlibpath_overrides_runpath=yes 15512 ;; 15513 15514nto-qnx*) 15515 version_type=linux 15516 need_lib_prefix=no 15517 need_version=no 15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15519 soname_spec='${libname}${release}${shared_ext}$major' 15520 shlibpath_var=LD_LIBRARY_PATH 15521 shlibpath_overrides_runpath=yes 15522 ;; 15523 15524openbsd*) 15525 version_type=sunos 15526 sys_lib_dlsearch_path_spec="/usr/lib" 15527 need_lib_prefix=no 15528 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15529 case $host_os in 15530 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15531 *) need_version=no ;; 15532 esac 15533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15535 shlibpath_var=LD_LIBRARY_PATH 15536 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15537 case $host_os in 15538 openbsd2.[89] | openbsd2.[89].*) 15539 shlibpath_overrides_runpath=no 15540 ;; 15541 *) 15542 shlibpath_overrides_runpath=yes 15543 ;; 15544 esac 15545 else 15546 shlibpath_overrides_runpath=yes 15547 fi 15548 ;; 15549 15550os2*) 15551 libname_spec='$name' 15552 shrext_cmds=".dll" 15553 need_lib_prefix=no 15554 library_names_spec='$libname${shared_ext} $libname.a' 15555 dynamic_linker='OS/2 ld.exe' 15556 shlibpath_var=LIBPATH 15557 ;; 15558 15559osf3* | osf4* | osf5*) 15560 version_type=osf 15561 need_lib_prefix=no 15562 need_version=no 15563 soname_spec='${libname}${release}${shared_ext}$major' 15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15565 shlibpath_var=LD_LIBRARY_PATH 15566 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15567 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15568 ;; 15569 15570solaris*) 15571 version_type=linux 15572 need_lib_prefix=no 15573 need_version=no 15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15575 soname_spec='${libname}${release}${shared_ext}$major' 15576 shlibpath_var=LD_LIBRARY_PATH 15577 shlibpath_overrides_runpath=yes 15578 hardcode_into_libs=yes 15579 # ldd complains unless libraries are executable 15580 postinstall_cmds='chmod +x $lib' 15581 ;; 15582 15583sunos4*) 15584 version_type=sunos 15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15587 shlibpath_var=LD_LIBRARY_PATH 15588 shlibpath_overrides_runpath=yes 15589 if test "$with_gnu_ld" = yes; then 15590 need_lib_prefix=no 15591 fi 15592 need_version=yes 15593 ;; 15594 15595sysv4 | sysv4.3*) 15596 version_type=linux 15597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15598 soname_spec='${libname}${release}${shared_ext}$major' 15599 shlibpath_var=LD_LIBRARY_PATH 15600 case $host_vendor in 15601 sni) 15602 shlibpath_overrides_runpath=no 15603 need_lib_prefix=no 15604 export_dynamic_flag_spec='${wl}-Blargedynsym' 15605 runpath_var=LD_RUN_PATH 15606 ;; 15607 siemens) 15608 need_lib_prefix=no 15609 ;; 15610 motorola) 15611 need_lib_prefix=no 15612 need_version=no 15613 shlibpath_overrides_runpath=no 15614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15615 ;; 15616 esac 15617 ;; 15618 15619sysv4*MP*) 15620 if test -d /usr/nec ;then 15621 version_type=linux 15622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15623 soname_spec='$libname${shared_ext}.$major' 15624 shlibpath_var=LD_LIBRARY_PATH 15625 fi 15626 ;; 15627 15628sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15629 version_type=freebsd-elf 15630 need_lib_prefix=no 15631 need_version=no 15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15633 soname_spec='${libname}${release}${shared_ext}$major' 15634 shlibpath_var=LD_LIBRARY_PATH 15635 hardcode_into_libs=yes 15636 if test "$with_gnu_ld" = yes; then 15637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15638 shlibpath_overrides_runpath=no 15639 else 15640 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15641 shlibpath_overrides_runpath=yes 15642 case $host_os in 15643 sco3.2v5*) 15644 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15645 ;; 15646 esac 15647 fi 15648 sys_lib_dlsearch_path_spec='/usr/lib' 15649 ;; 15650 15651uts4*) 15652 version_type=linux 15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15654 soname_spec='${libname}${release}${shared_ext}$major' 15655 shlibpath_var=LD_LIBRARY_PATH 15656 ;; 15657 15658*) 15659 dynamic_linker=no 15660 ;; 15661esac 15662{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15663echo "${ECHO_T}$dynamic_linker" >&6; } 15664test "$dynamic_linker" = no && can_build_shared=no 15665 15666variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15667if test "$GCC" = yes; then 15668 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15669fi 15670 15671{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15672echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15673hardcode_action_F77= 15674if test -n "$hardcode_libdir_flag_spec_F77" || \ 15675 test -n "$runpath_var_F77" || \ 15676 test "X$hardcode_automatic_F77" = "Xyes" ; then 15677 15678 # We can hardcode non-existant directories. 15679 if test "$hardcode_direct_F77" != no && 15680 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15681 # have to relink, otherwise we might link with an installed library 15682 # when we should be linking with a yet-to-be-installed one 15683 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15684 test "$hardcode_minus_L_F77" != no; then 15685 # Linking always hardcodes the temporary library directory. 15686 hardcode_action_F77=relink 15687 else 15688 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15689 hardcode_action_F77=immediate 15690 fi 15691else 15692 # We cannot hardcode anything, or else we can only hardcode existing 15693 # directories. 15694 hardcode_action_F77=unsupported 15695fi 15696{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15697echo "${ECHO_T}$hardcode_action_F77" >&6; } 15698 15699if test "$hardcode_action_F77" = relink; then 15700 # Fast installation is not supported 15701 enable_fast_install=no 15702elif test "$shlibpath_overrides_runpath" = yes || 15703 test "$enable_shared" = no; then 15704 # Fast installation is not necessary 15705 enable_fast_install=needless 15706fi 15707 15708 15709# The else clause should only fire when bootstrapping the 15710# libtool distribution, otherwise you forgot to ship ltmain.sh 15711# with your package, and you will get complaints that there are 15712# no rules to generate ltmain.sh. 15713if test -f "$ltmain"; then 15714 # See if we are running on zsh, and set the options which allow our commands through 15715 # without removal of \ escapes. 15716 if test -n "${ZSH_VERSION+set}" ; then 15717 setopt NO_GLOB_SUBST 15718 fi 15719 # Now quote all the things that may contain metacharacters while being 15720 # careful not to overquote the AC_SUBSTed values. We take copies of the 15721 # variables and quote the copies for generation of the libtool script. 15722 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15723 SED SHELL STRIP \ 15724 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15725 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15726 deplibs_check_method reload_flag reload_cmds need_locks \ 15727 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15728 lt_cv_sys_global_symbol_to_c_name_address \ 15729 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15730 old_postinstall_cmds old_postuninstall_cmds \ 15731 compiler_F77 \ 15732 CC_F77 \ 15733 LD_F77 \ 15734 lt_prog_compiler_wl_F77 \ 15735 lt_prog_compiler_pic_F77 \ 15736 lt_prog_compiler_static_F77 \ 15737 lt_prog_compiler_no_builtin_flag_F77 \ 15738 export_dynamic_flag_spec_F77 \ 15739 thread_safe_flag_spec_F77 \ 15740 whole_archive_flag_spec_F77 \ 15741 enable_shared_with_static_runtimes_F77 \ 15742 old_archive_cmds_F77 \ 15743 old_archive_from_new_cmds_F77 \ 15744 predep_objects_F77 \ 15745 postdep_objects_F77 \ 15746 predeps_F77 \ 15747 postdeps_F77 \ 15748 compiler_lib_search_path_F77 \ 15749 archive_cmds_F77 \ 15750 archive_expsym_cmds_F77 \ 15751 postinstall_cmds_F77 \ 15752 postuninstall_cmds_F77 \ 15753 old_archive_from_expsyms_cmds_F77 \ 15754 allow_undefined_flag_F77 \ 15755 no_undefined_flag_F77 \ 15756 export_symbols_cmds_F77 \ 15757 hardcode_libdir_flag_spec_F77 \ 15758 hardcode_libdir_flag_spec_ld_F77 \ 15759 hardcode_libdir_separator_F77 \ 15760 hardcode_automatic_F77 \ 15761 module_cmds_F77 \ 15762 module_expsym_cmds_F77 \ 15763 lt_cv_prog_compiler_c_o_F77 \ 15764 exclude_expsyms_F77 \ 15765 include_expsyms_F77; do 15766 15767 case $var in 15768 old_archive_cmds_F77 | \ 15769 old_archive_from_new_cmds_F77 | \ 15770 archive_cmds_F77 | \ 15771 archive_expsym_cmds_F77 | \ 15772 module_cmds_F77 | \ 15773 module_expsym_cmds_F77 | \ 15774 old_archive_from_expsyms_cmds_F77 | \ 15775 export_symbols_cmds_F77 | \ 15776 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15777 postinstall_cmds | postuninstall_cmds | \ 15778 old_postinstall_cmds | old_postuninstall_cmds | \ 15779 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15780 # Double-quote double-evaled strings. 15781 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15782 ;; 15783 *) 15784 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15785 ;; 15786 esac 15787 done 15788 15789 case $lt_echo in 15790 *'\$0 --fallback-echo"') 15791 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15792 ;; 15793 esac 15794 15795cfgfile="$ofile" 15796 15797 cat <<__EOF__ >> "$cfgfile" 15798# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15799 15800# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15801 15802# Shell to use when invoking shell scripts. 15803SHELL=$lt_SHELL 15804 15805# Whether or not to build shared libraries. 15806build_libtool_libs=$enable_shared 15807 15808# Whether or not to build static libraries. 15809build_old_libs=$enable_static 15810 15811# Whether or not to add -lc for building shared libraries. 15812build_libtool_need_lc=$archive_cmds_need_lc_F77 15813 15814# Whether or not to disallow shared libs when runtime libs are static 15815allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15816 15817# Whether or not to optimize for fast installation. 15818fast_install=$enable_fast_install 15819 15820# The host system. 15821host_alias=$host_alias 15822host=$host 15823host_os=$host_os 15824 15825# The build system. 15826build_alias=$build_alias 15827build=$build 15828build_os=$build_os 15829 15830# An echo program that does not interpret backslashes. 15831echo=$lt_echo 15832 15833# The archiver. 15834AR=$lt_AR 15835AR_FLAGS=$lt_AR_FLAGS 15836 15837# A C compiler. 15838LTCC=$lt_LTCC 15839 15840# LTCC compiler flags. 15841LTCFLAGS=$lt_LTCFLAGS 15842 15843# A language-specific compiler. 15844CC=$lt_compiler_F77 15845 15846# Is the compiler the GNU C compiler? 15847with_gcc=$GCC_F77 15848 15849# An ERE matcher. 15850EGREP=$lt_EGREP 15851 15852# The linker used to build libraries. 15853LD=$lt_LD_F77 15854 15855# Whether we need hard or soft links. 15856LN_S=$lt_LN_S 15857 15858# A BSD-compatible nm program. 15859NM=$lt_NM 15860 15861# A symbol stripping program 15862STRIP=$lt_STRIP 15863 15864# Used to examine libraries when file_magic_cmd begins "file" 15865MAGIC_CMD=$MAGIC_CMD 15866 15867# Used on cygwin: DLL creation program. 15868DLLTOOL="$DLLTOOL" 15869 15870# Used on cygwin: object dumper. 15871OBJDUMP="$OBJDUMP" 15872 15873# Used on cygwin: assembler. 15874AS="$AS" 15875 15876# The name of the directory that contains temporary libtool files. 15877objdir=$objdir 15878 15879# How to create reloadable object files. 15880reload_flag=$lt_reload_flag 15881reload_cmds=$lt_reload_cmds 15882 15883# How to pass a linker flag through the compiler. 15884wl=$lt_lt_prog_compiler_wl_F77 15885 15886# Object file suffix (normally "o"). 15887objext="$ac_objext" 15888 15889# Old archive suffix (normally "a"). 15890libext="$libext" 15891 15892# Shared library suffix (normally ".so"). 15893shrext_cmds='$shrext_cmds' 15894 15895# Executable file suffix (normally ""). 15896exeext="$exeext" 15897 15898# Additional compiler flags for building library objects. 15899pic_flag=$lt_lt_prog_compiler_pic_F77 15900pic_mode=$pic_mode 15901 15902# What is the maximum length of a command? 15903max_cmd_len=$lt_cv_sys_max_cmd_len 15904 15905# Does compiler simultaneously support -c and -o options? 15906compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15907 15908# Must we lock files when doing compilation? 15909need_locks=$lt_need_locks 15910 15911# Do we need the lib prefix for modules? 15912need_lib_prefix=$need_lib_prefix 15913 15914# Do we need a version for libraries? 15915need_version=$need_version 15916 15917# Whether dlopen is supported. 15918dlopen_support=$enable_dlopen 15919 15920# Whether dlopen of programs is supported. 15921dlopen_self=$enable_dlopen_self 15922 15923# Whether dlopen of statically linked programs is supported. 15924dlopen_self_static=$enable_dlopen_self_static 15925 15926# Compiler flag to prevent dynamic linking. 15927link_static_flag=$lt_lt_prog_compiler_static_F77 15928 15929# Compiler flag to turn off builtin functions. 15930no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15931 15932# Compiler flag to allow reflexive dlopens. 15933export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15934 15935# Compiler flag to generate shared objects directly from archives. 15936whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15937 15938# Compiler flag to generate thread-safe objects. 15939thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15940 15941# Library versioning type. 15942version_type=$version_type 15943 15944# Format of library name prefix. 15945libname_spec=$lt_libname_spec 15946 15947# List of archive names. First name is the real one, the rest are links. 15948# The last name is the one that the linker finds with -lNAME. 15949library_names_spec=$lt_library_names_spec 15950 15951# The coded name of the library, if different from the real name. 15952soname_spec=$lt_soname_spec 15953 15954# Commands used to build and install an old-style archive. 15955RANLIB=$lt_RANLIB 15956old_archive_cmds=$lt_old_archive_cmds_F77 15957old_postinstall_cmds=$lt_old_postinstall_cmds 15958old_postuninstall_cmds=$lt_old_postuninstall_cmds 15959 15960# Create an old-style archive from a shared archive. 15961old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15962 15963# Create a temporary old-style archive to link instead of a shared archive. 15964old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15965 15966# Commands used to build and install a shared archive. 15967archive_cmds=$lt_archive_cmds_F77 15968archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15969postinstall_cmds=$lt_postinstall_cmds 15970postuninstall_cmds=$lt_postuninstall_cmds 15971 15972# Commands used to build a loadable module (assumed same as above if empty) 15973module_cmds=$lt_module_cmds_F77 15974module_expsym_cmds=$lt_module_expsym_cmds_F77 15975 15976# Commands to strip libraries. 15977old_striplib=$lt_old_striplib 15978striplib=$lt_striplib 15979 15980# Dependencies to place before the objects being linked to create a 15981# shared library. 15982predep_objects=$lt_predep_objects_F77 15983 15984# Dependencies to place after the objects being linked to create a 15985# shared library. 15986postdep_objects=$lt_postdep_objects_F77 15987 15988# Dependencies to place before the objects being linked to create a 15989# shared library. 15990predeps=$lt_predeps_F77 15991 15992# Dependencies to place after the objects being linked to create a 15993# shared library. 15994postdeps=$lt_postdeps_F77 15995 15996# The library search path used internally by the compiler when linking 15997# a shared library. 15998compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15999 16000# Method to check whether dependent libraries are shared objects. 16001deplibs_check_method=$lt_deplibs_check_method 16002 16003# Command to use when deplibs_check_method == file_magic. 16004file_magic_cmd=$lt_file_magic_cmd 16005 16006# Flag that allows shared libraries with undefined symbols to be built. 16007allow_undefined_flag=$lt_allow_undefined_flag_F77 16008 16009# Flag that forces no undefined symbols. 16010no_undefined_flag=$lt_no_undefined_flag_F77 16011 16012# Commands used to finish a libtool library installation in a directory. 16013finish_cmds=$lt_finish_cmds 16014 16015# Same as above, but a single script fragment to be evaled but not shown. 16016finish_eval=$lt_finish_eval 16017 16018# Take the output of nm and produce a listing of raw symbols and C names. 16019global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16020 16021# Transform the output of nm in a proper C declaration 16022global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16023 16024# Transform the output of nm in a C name address pair 16025global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16026 16027# This is the shared library runtime path variable. 16028runpath_var=$runpath_var 16029 16030# This is the shared library path variable. 16031shlibpath_var=$shlibpath_var 16032 16033# Is shlibpath searched before the hard-coded library search path? 16034shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16035 16036# How to hardcode a shared library path into an executable. 16037hardcode_action=$hardcode_action_F77 16038 16039# Whether we should hardcode library paths into libraries. 16040hardcode_into_libs=$hardcode_into_libs 16041 16042# Flag to hardcode \$libdir into a binary during linking. 16043# This must work even if \$libdir does not exist. 16044hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16045 16046# If ld is used when linking, flag to hardcode \$libdir into 16047# a binary during linking. This must work even if \$libdir does 16048# not exist. 16049hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16050 16051# Whether we need a single -rpath flag with a separated argument. 16052hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16053 16054# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16055# resulting binary. 16056hardcode_direct=$hardcode_direct_F77 16057 16058# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16059# resulting binary. 16060hardcode_minus_L=$hardcode_minus_L_F77 16061 16062# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16063# the resulting binary. 16064hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16065 16066# Set to yes if building a shared library automatically hardcodes DIR into the library 16067# and all subsequent libraries and executables linked against it. 16068hardcode_automatic=$hardcode_automatic_F77 16069 16070# Variables whose values should be saved in libtool wrapper scripts and 16071# restored at relink time. 16072variables_saved_for_relink="$variables_saved_for_relink" 16073 16074# Whether libtool must link a program against all its dependency libraries. 16075link_all_deplibs=$link_all_deplibs_F77 16076 16077# Compile-time system search path for libraries 16078sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16079 16080# Run-time system search path for libraries 16081sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16082 16083# Fix the shell variable \$srcfile for the compiler. 16084fix_srcfile_path="$fix_srcfile_path_F77" 16085 16086# Set to yes if exported symbols are required. 16087always_export_symbols=$always_export_symbols_F77 16088 16089# The commands to list exported symbols. 16090export_symbols_cmds=$lt_export_symbols_cmds_F77 16091 16092# The commands to extract the exported symbol list from a shared archive. 16093extract_expsyms_cmds=$lt_extract_expsyms_cmds 16094 16095# Symbols that should not be listed in the preloaded symbols. 16096exclude_expsyms=$lt_exclude_expsyms_F77 16097 16098# Symbols that must always be exported. 16099include_expsyms=$lt_include_expsyms_F77 16100 16101# ### END LIBTOOL TAG CONFIG: $tagname 16102 16103__EOF__ 16104 16105 16106else 16107 # If there is no Makefile yet, we rely on a make rule to execute 16108 # `config.status --recheck' to rerun these tests and create the 16109 # libtool script then. 16110 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16111 if test -f "$ltmain_in"; then 16112 test -f Makefile && make "$ltmain" 16113 fi 16114fi 16115 16116 16117ac_ext=c 16118ac_cpp='$CPP $CPPFLAGS' 16119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16121ac_compiler_gnu=$ac_cv_c_compiler_gnu 16122 16123CC="$lt_save_CC" 16124 16125 else 16126 tagname="" 16127 fi 16128 ;; 16129 16130 GCJ) 16131 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16132 16133 16134# Source file extension for Java test sources. 16135ac_ext=java 16136 16137# Object file extension for compiled Java test sources. 16138objext=o 16139objext_GCJ=$objext 16140 16141# Code to be used in simple compile tests 16142lt_simple_compile_test_code="class foo {}\n" 16143 16144# Code to be used in simple link tests 16145lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16146 16147# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16148 16149# If no C compiler was specified, use CC. 16150LTCC=${LTCC-"$CC"} 16151 16152# If no C compiler flags were specified, use CFLAGS. 16153LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16154 16155# Allow CC to be a program name with arguments. 16156compiler=$CC 16157 16158 16159# save warnings/boilerplate of simple test code 16160ac_outfile=conftest.$ac_objext 16161printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16162eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16163_lt_compiler_boilerplate=`cat conftest.err` 16164$rm conftest* 16165 16166ac_outfile=conftest.$ac_objext 16167printf "$lt_simple_link_test_code" >conftest.$ac_ext 16168eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16169_lt_linker_boilerplate=`cat conftest.err` 16170$rm conftest* 16171 16172 16173# Allow CC to be a program name with arguments. 16174lt_save_CC="$CC" 16175CC=${GCJ-"gcj"} 16176compiler=$CC 16177compiler_GCJ=$CC 16178for cc_temp in $compiler""; do 16179 case $cc_temp in 16180 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16181 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16182 \-*) ;; 16183 *) break;; 16184 esac 16185done 16186cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16187 16188 16189# GCJ did not exist at the time GCC didn't implicitly link libc in. 16190archive_cmds_need_lc_GCJ=no 16191 16192old_archive_cmds_GCJ=$old_archive_cmds 16193 16194 16195lt_prog_compiler_no_builtin_flag_GCJ= 16196 16197if test "$GCC" = yes; then 16198 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16199 16200 16201{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16202echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16203if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16204 echo $ECHO_N "(cached) $ECHO_C" >&6 16205else 16206 lt_cv_prog_compiler_rtti_exceptions=no 16207 ac_outfile=conftest.$ac_objext 16208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16209 lt_compiler_flag="-fno-rtti -fno-exceptions" 16210 # Insert the option either (1) after the last *FLAGS variable, or 16211 # (2) before a word containing "conftest.", or (3) at the end. 16212 # Note that $ac_compile itself does not contain backslashes and begins 16213 # with a dollar sign (not a hyphen), so the echo should work correctly. 16214 # The option is referenced via a variable to avoid confusing sed. 16215 lt_compile=`echo "$ac_compile" | $SED \ 16216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16218 -e 's:$: $lt_compiler_flag:'` 16219 (eval echo "\"\$as_me:16219: $lt_compile\"" >&5) 16220 (eval "$lt_compile" 2>conftest.err) 16221 ac_status=$? 16222 cat conftest.err >&5 16223 echo "$as_me:16223: \$? = $ac_status" >&5 16224 if (exit $ac_status) && test -s "$ac_outfile"; then 16225 # The compiler can only warn and ignore the option if not recognized 16226 # So say no if there are warnings other than the usual output. 16227 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16230 lt_cv_prog_compiler_rtti_exceptions=yes 16231 fi 16232 fi 16233 $rm conftest* 16234 16235fi 16236{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16237echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16238 16239if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16240 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16241else 16242 : 16243fi 16244 16245fi 16246 16247lt_prog_compiler_wl_GCJ= 16248lt_prog_compiler_pic_GCJ= 16249lt_prog_compiler_static_GCJ= 16250 16251{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16252echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16253 16254 if test "$GCC" = yes; then 16255 lt_prog_compiler_wl_GCJ='-Wl,' 16256 lt_prog_compiler_static_GCJ='-static' 16257 16258 case $host_os in 16259 aix*) 16260 # All AIX code is PIC. 16261 if test "$host_cpu" = ia64; then 16262 # AIX 5 now supports IA64 processor 16263 lt_prog_compiler_static_GCJ='-Bstatic' 16264 fi 16265 ;; 16266 16267 amigaos*) 16268 # FIXME: we need at least 68020 code to build shared libraries, but 16269 # adding the `-m68020' flag to GCC prevents building anything better, 16270 # like `-m68040'. 16271 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16272 ;; 16273 16274 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16275 # PIC is the default for these OSes. 16276 ;; 16277 16278 mingw* | pw32* | os2*) 16279 # This hack is so that the source file can tell whether it is being 16280 # built for inclusion in a dll (and should export symbols for example). 16281 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16282 ;; 16283 16284 darwin* | rhapsody*) 16285 # PIC is the default on this platform 16286 # Common symbols not allowed in MH_DYLIB files 16287 lt_prog_compiler_pic_GCJ='-fno-common' 16288 ;; 16289 16290 interix3*) 16291 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16292 # Instead, we relocate shared libraries at runtime. 16293 ;; 16294 16295 msdosdjgpp*) 16296 # Just because we use GCC doesn't mean we suddenly get shared libraries 16297 # on systems that don't support them. 16298 lt_prog_compiler_can_build_shared_GCJ=no 16299 enable_shared=no 16300 ;; 16301 16302 sysv4*MP*) 16303 if test -d /usr/nec; then 16304 lt_prog_compiler_pic_GCJ=-Kconform_pic 16305 fi 16306 ;; 16307 16308 hpux*) 16309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16310 # not for PA HP-UX. 16311 case $host_cpu in 16312 hppa*64*|ia64*) 16313 # +Z the default 16314 ;; 16315 *) 16316 lt_prog_compiler_pic_GCJ='-fPIC' 16317 ;; 16318 esac 16319 ;; 16320 16321 *) 16322 lt_prog_compiler_pic_GCJ='-fPIC' 16323 ;; 16324 esac 16325 else 16326 # PORTME Check for flag to pass linker flags through the system compiler. 16327 case $host_os in 16328 aix*) 16329 lt_prog_compiler_wl_GCJ='-Wl,' 16330 if test "$host_cpu" = ia64; then 16331 # AIX 5 now supports IA64 processor 16332 lt_prog_compiler_static_GCJ='-Bstatic' 16333 else 16334 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16335 fi 16336 ;; 16337 darwin*) 16338 # PIC is the default on this platform 16339 # Common symbols not allowed in MH_DYLIB files 16340 case $cc_basename in 16341 xlc*) 16342 lt_prog_compiler_pic_GCJ='-qnocommon' 16343 lt_prog_compiler_wl_GCJ='-Wl,' 16344 ;; 16345 esac 16346 ;; 16347 16348 mingw* | pw32* | os2*) 16349 # This hack is so that the source file can tell whether it is being 16350 # built for inclusion in a dll (and should export symbols for example). 16351 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16352 ;; 16353 16354 hpux9* | hpux10* | hpux11*) 16355 lt_prog_compiler_wl_GCJ='-Wl,' 16356 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16357 # not for PA HP-UX. 16358 case $host_cpu in 16359 hppa*64*|ia64*) 16360 # +Z the default 16361 ;; 16362 *) 16363 lt_prog_compiler_pic_GCJ='+Z' 16364 ;; 16365 esac 16366 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16367 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16368 ;; 16369 16370 irix5* | irix6* | nonstopux*) 16371 lt_prog_compiler_wl_GCJ='-Wl,' 16372 # PIC (with -KPIC) is the default. 16373 lt_prog_compiler_static_GCJ='-non_shared' 16374 ;; 16375 16376 newsos6) 16377 lt_prog_compiler_pic_GCJ='-KPIC' 16378 lt_prog_compiler_static_GCJ='-Bstatic' 16379 ;; 16380 16381 linux*) 16382 case $cc_basename in 16383 icc* | ecc*) 16384 lt_prog_compiler_wl_GCJ='-Wl,' 16385 lt_prog_compiler_pic_GCJ='-KPIC' 16386 lt_prog_compiler_static_GCJ='-static' 16387 ;; 16388 pgcc* | pgf77* | pgf90* | pgf95*) 16389 # Portland Group compilers (*not* the Pentium gcc compiler, 16390 # which looks to be a dead project) 16391 lt_prog_compiler_wl_GCJ='-Wl,' 16392 lt_prog_compiler_pic_GCJ='-fpic' 16393 lt_prog_compiler_static_GCJ='-Bstatic' 16394 ;; 16395 ccc*) 16396 lt_prog_compiler_wl_GCJ='-Wl,' 16397 # All Alpha code is PIC. 16398 lt_prog_compiler_static_GCJ='-non_shared' 16399 ;; 16400 esac 16401 ;; 16402 16403 osf3* | osf4* | osf5*) 16404 lt_prog_compiler_wl_GCJ='-Wl,' 16405 # All OSF/1 code is PIC. 16406 lt_prog_compiler_static_GCJ='-non_shared' 16407 ;; 16408 16409 solaris*) 16410 lt_prog_compiler_pic_GCJ='-KPIC' 16411 lt_prog_compiler_static_GCJ='-Bstatic' 16412 case $cc_basename in 16413 f77* | f90* | f95*) 16414 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16415 *) 16416 lt_prog_compiler_wl_GCJ='-Wl,';; 16417 esac 16418 ;; 16419 16420 sunos4*) 16421 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16422 lt_prog_compiler_pic_GCJ='-PIC' 16423 lt_prog_compiler_static_GCJ='-Bstatic' 16424 ;; 16425 16426 sysv4 | sysv4.2uw2* | sysv4.3*) 16427 lt_prog_compiler_wl_GCJ='-Wl,' 16428 lt_prog_compiler_pic_GCJ='-KPIC' 16429 lt_prog_compiler_static_GCJ='-Bstatic' 16430 ;; 16431 16432 sysv4*MP*) 16433 if test -d /usr/nec ;then 16434 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16435 lt_prog_compiler_static_GCJ='-Bstatic' 16436 fi 16437 ;; 16438 16439 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16440 lt_prog_compiler_wl_GCJ='-Wl,' 16441 lt_prog_compiler_pic_GCJ='-KPIC' 16442 lt_prog_compiler_static_GCJ='-Bstatic' 16443 ;; 16444 16445 unicos*) 16446 lt_prog_compiler_wl_GCJ='-Wl,' 16447 lt_prog_compiler_can_build_shared_GCJ=no 16448 ;; 16449 16450 uts4*) 16451 lt_prog_compiler_pic_GCJ='-pic' 16452 lt_prog_compiler_static_GCJ='-Bstatic' 16453 ;; 16454 16455 *) 16456 lt_prog_compiler_can_build_shared_GCJ=no 16457 ;; 16458 esac 16459 fi 16460 16461{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16462echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16463 16464# 16465# Check to make sure the PIC flag actually works. 16466# 16467if test -n "$lt_prog_compiler_pic_GCJ"; then 16468 16469{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16470echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16471if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16472 echo $ECHO_N "(cached) $ECHO_C" >&6 16473else 16474 lt_prog_compiler_pic_works_GCJ=no 16475 ac_outfile=conftest.$ac_objext 16476 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16477 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16478 # Insert the option either (1) after the last *FLAGS variable, or 16479 # (2) before a word containing "conftest.", or (3) at the end. 16480 # Note that $ac_compile itself does not contain backslashes and begins 16481 # with a dollar sign (not a hyphen), so the echo should work correctly. 16482 # The option is referenced via a variable to avoid confusing sed. 16483 lt_compile=`echo "$ac_compile" | $SED \ 16484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16486 -e 's:$: $lt_compiler_flag:'` 16487 (eval echo "\"\$as_me:16487: $lt_compile\"" >&5) 16488 (eval "$lt_compile" 2>conftest.err) 16489 ac_status=$? 16490 cat conftest.err >&5 16491 echo "$as_me:16491: \$? = $ac_status" >&5 16492 if (exit $ac_status) && test -s "$ac_outfile"; then 16493 # The compiler can only warn and ignore the option if not recognized 16494 # So say no if there are warnings other than the usual output. 16495 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16496 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16497 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16498 lt_prog_compiler_pic_works_GCJ=yes 16499 fi 16500 fi 16501 $rm conftest* 16502 16503fi 16504{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16505echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16506 16507if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16508 case $lt_prog_compiler_pic_GCJ in 16509 "" | " "*) ;; 16510 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16511 esac 16512else 16513 lt_prog_compiler_pic_GCJ= 16514 lt_prog_compiler_can_build_shared_GCJ=no 16515fi 16516 16517fi 16518case $host_os in 16519 # For platforms which do not support PIC, -DPIC is meaningless: 16520 *djgpp*) 16521 lt_prog_compiler_pic_GCJ= 16522 ;; 16523 *) 16524 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16525 ;; 16526esac 16527 16528# 16529# Check to make sure the static flag actually works. 16530# 16531wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16532{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16533echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16534if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16535 echo $ECHO_N "(cached) $ECHO_C" >&6 16536else 16537 lt_prog_compiler_static_works_GCJ=no 16538 save_LDFLAGS="$LDFLAGS" 16539 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16540 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16541 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16542 # The linker can only warn and ignore the option if not recognized 16543 # So say no if there are warnings 16544 if test -s conftest.err; then 16545 # Append any errors to the config.log. 16546 cat conftest.err 1>&5 16547 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16548 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16549 if diff conftest.exp conftest.er2 >/dev/null; then 16550 lt_prog_compiler_static_works_GCJ=yes 16551 fi 16552 else 16553 lt_prog_compiler_static_works_GCJ=yes 16554 fi 16555 fi 16556 $rm conftest* 16557 LDFLAGS="$save_LDFLAGS" 16558 16559fi 16560{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16561echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16562 16563if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16564 : 16565else 16566 lt_prog_compiler_static_GCJ= 16567fi 16568 16569 16570{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16571echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16572if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16573 echo $ECHO_N "(cached) $ECHO_C" >&6 16574else 16575 lt_cv_prog_compiler_c_o_GCJ=no 16576 $rm -r conftest 2>/dev/null 16577 mkdir conftest 16578 cd conftest 16579 mkdir out 16580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16581 16582 lt_compiler_flag="-o out/conftest2.$ac_objext" 16583 # Insert the option either (1) after the last *FLAGS variable, or 16584 # (2) before a word containing "conftest.", or (3) at the end. 16585 # Note that $ac_compile itself does not contain backslashes and begins 16586 # with a dollar sign (not a hyphen), so the echo should work correctly. 16587 lt_compile=`echo "$ac_compile" | $SED \ 16588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16590 -e 's:$: $lt_compiler_flag:'` 16591 (eval echo "\"\$as_me:16591: $lt_compile\"" >&5) 16592 (eval "$lt_compile" 2>out/conftest.err) 16593 ac_status=$? 16594 cat out/conftest.err >&5 16595 echo "$as_me:16595: \$? = $ac_status" >&5 16596 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16597 then 16598 # The compiler can only warn and ignore the option if not recognized 16599 # So say no if there are warnings 16600 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16603 lt_cv_prog_compiler_c_o_GCJ=yes 16604 fi 16605 fi 16606 chmod u+w . 2>&5 16607 $rm conftest* 16608 # SGI C++ compiler will create directory out/ii_files/ for 16609 # template instantiation 16610 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16611 $rm out/* && rmdir out 16612 cd .. 16613 rmdir conftest 16614 $rm conftest* 16615 16616fi 16617{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16618echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16619 16620 16621hard_links="nottested" 16622if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16623 # do not overwrite the value of need_locks provided by the user 16624 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16625echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16626 hard_links=yes 16627 $rm conftest* 16628 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16629 touch conftest.a 16630 ln conftest.a conftest.b 2>&5 || hard_links=no 16631 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16632 { echo "$as_me:$LINENO: result: $hard_links" >&5 16633echo "${ECHO_T}$hard_links" >&6; } 16634 if test "$hard_links" = no; then 16635 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16636echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16637 need_locks=warn 16638 fi 16639else 16640 need_locks=no 16641fi 16642 16643{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16644echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16645 16646 runpath_var= 16647 allow_undefined_flag_GCJ= 16648 enable_shared_with_static_runtimes_GCJ=no 16649 archive_cmds_GCJ= 16650 archive_expsym_cmds_GCJ= 16651 old_archive_From_new_cmds_GCJ= 16652 old_archive_from_expsyms_cmds_GCJ= 16653 export_dynamic_flag_spec_GCJ= 16654 whole_archive_flag_spec_GCJ= 16655 thread_safe_flag_spec_GCJ= 16656 hardcode_libdir_flag_spec_GCJ= 16657 hardcode_libdir_flag_spec_ld_GCJ= 16658 hardcode_libdir_separator_GCJ= 16659 hardcode_direct_GCJ=no 16660 hardcode_minus_L_GCJ=no 16661 hardcode_shlibpath_var_GCJ=unsupported 16662 link_all_deplibs_GCJ=unknown 16663 hardcode_automatic_GCJ=no 16664 module_cmds_GCJ= 16665 module_expsym_cmds_GCJ= 16666 always_export_symbols_GCJ=no 16667 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16668 # include_expsyms should be a list of space-separated symbols to be *always* 16669 # included in the symbol list 16670 include_expsyms_GCJ= 16671 # exclude_expsyms can be an extended regexp of symbols to exclude 16672 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16673 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16674 # as well as any symbol that contains `d'. 16675 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16676 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16677 # platforms (ab)use it in PIC code, but their linkers get confused if 16678 # the symbol is explicitly referenced. Since portable code cannot 16679 # rely on this symbol name, it's probably fine to never include it in 16680 # preloaded symbol tables. 16681 extract_expsyms_cmds= 16682 # Just being paranoid about ensuring that cc_basename is set. 16683 for cc_temp in $compiler""; do 16684 case $cc_temp in 16685 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16686 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16687 \-*) ;; 16688 *) break;; 16689 esac 16690done 16691cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16692 16693 case $host_os in 16694 cygwin* | mingw* | pw32*) 16695 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16696 # When not using gcc, we currently assume that we are using 16697 # Microsoft Visual C++. 16698 if test "$GCC" != yes; then 16699 with_gnu_ld=no 16700 fi 16701 ;; 16702 interix*) 16703 # we just hope/assume this is gcc and not c89 (= MSVC++) 16704 with_gnu_ld=yes 16705 ;; 16706 openbsd*) 16707 with_gnu_ld=no 16708 ;; 16709 esac 16710 16711 ld_shlibs_GCJ=yes 16712 if test "$with_gnu_ld" = yes; then 16713 # If archive_cmds runs LD, not CC, wlarc should be empty 16714 wlarc='${wl}' 16715 16716 # Set some defaults for GNU ld with shared library support. These 16717 # are reset later if shared libraries are not supported. Putting them 16718 # here allows them to be overridden if necessary. 16719 runpath_var=LD_RUN_PATH 16720 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16721 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16722 # ancient GNU ld didn't support --whole-archive et. al. 16723 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16724 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16725 else 16726 whole_archive_flag_spec_GCJ= 16727 fi 16728 supports_anon_versioning=no 16729 case `$LD -v 2>/dev/null` in 16730 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16731 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16732 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16733 *\ 2.11.*) ;; # other 2.11 versions 16734 *) supports_anon_versioning=yes ;; 16735 esac 16736 16737 # See if GNU ld supports shared libraries. 16738 case $host_os in 16739 aix3* | aix4* | aix5*) 16740 # On AIX/PPC, the GNU linker is very broken 16741 if test "$host_cpu" != ia64; then 16742 ld_shlibs_GCJ=no 16743 cat <<EOF 1>&2 16744 16745*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16746*** to be unable to reliably create shared libraries on AIX. 16747*** Therefore, libtool is disabling shared libraries support. If you 16748*** really care for shared libraries, you may want to modify your PATH 16749*** so that a non-GNU linker is found, and then restart. 16750 16751EOF 16752 fi 16753 ;; 16754 16755 amigaos*) 16756 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)' 16757 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16758 hardcode_minus_L_GCJ=yes 16759 16760 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16761 # that the semantics of dynamic libraries on AmigaOS, at least up 16762 # to version 4, is to share data among multiple programs linked 16763 # with the same dynamic library. Since this doesn't match the 16764 # behavior of shared libraries on other platforms, we can't use 16765 # them. 16766 ld_shlibs_GCJ=no 16767 ;; 16768 16769 beos*) 16770 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16771 allow_undefined_flag_GCJ=unsupported 16772 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16773 # support --undefined. This deserves some investigation. FIXME 16774 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16775 else 16776 ld_shlibs_GCJ=no 16777 fi 16778 ;; 16779 16780 cygwin* | mingw* | pw32*) 16781 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16782 # as there is no search path for DLLs. 16783 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16784 allow_undefined_flag_GCJ=unsupported 16785 always_export_symbols_GCJ=no 16786 enable_shared_with_static_runtimes_GCJ=yes 16787 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16788 16789 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16790 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16791 # If the export-symbols file already is a .def file (1st line 16792 # is EXPORTS), use it as is; otherwise, prepend... 16793 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16794 cp $export_symbols $output_objdir/$soname.def; 16795 else 16796 echo EXPORTS > $output_objdir/$soname.def; 16797 cat $export_symbols >> $output_objdir/$soname.def; 16798 fi~ 16799 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16800 else 16801 ld_shlibs_GCJ=no 16802 fi 16803 ;; 16804 16805 interix3*) 16806 hardcode_direct_GCJ=no 16807 hardcode_shlibpath_var_GCJ=no 16808 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16809 export_dynamic_flag_spec_GCJ='${wl}-E' 16810 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16811 # Instead, shared libraries are loaded at an image base (0x10000000 by 16812 # default) and relocated if they conflict, which is a slow very memory 16813 # consuming and fragmenting process. To avoid this, we pick a random, 16814 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16815 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16816 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' 16817 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' 16818 ;; 16819 16820 linux*) 16821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16822 tmp_addflag= 16823 case $cc_basename,$host_cpu in 16824 pgcc*) # Portland Group C compiler 16825 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' 16826 tmp_addflag=' $pic_flag' 16827 ;; 16828 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16829 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' 16830 tmp_addflag=' $pic_flag -Mnomain' ;; 16831 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16832 tmp_addflag=' -i_dynamic' ;; 16833 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16834 tmp_addflag=' -i_dynamic -nofor_main' ;; 16835 ifc* | ifort*) # Intel Fortran compiler 16836 tmp_addflag=' -nofor_main' ;; 16837 esac 16838 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16839 16840 if test $supports_anon_versioning = yes; then 16841 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16842 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16843 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16844 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16845 fi 16846 else 16847 ld_shlibs_GCJ=no 16848 fi 16849 ;; 16850 16851 netbsd*) 16852 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16853 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16854 wlarc= 16855 else 16856 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16857 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16858 fi 16859 ;; 16860 16861 solaris*) 16862 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16863 ld_shlibs_GCJ=no 16864 cat <<EOF 1>&2 16865 16866*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16867*** create shared libraries on Solaris systems. Therefore, libtool 16868*** is disabling shared libraries support. We urge you to upgrade GNU 16869*** binutils to release 2.9.1 or newer. Another option is to modify 16870*** your PATH or compiler configuration so that the native linker is 16871*** used, and then restart. 16872 16873EOF 16874 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16875 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16876 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16877 else 16878 ld_shlibs_GCJ=no 16879 fi 16880 ;; 16881 16882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16883 case `$LD -v 2>&1` in 16884 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16885 ld_shlibs_GCJ=no 16886 cat <<_LT_EOF 1>&2 16887 16888*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16889*** reliably create shared libraries on SCO systems. Therefore, libtool 16890*** is disabling shared libraries support. We urge you to upgrade GNU 16891*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16892*** your PATH or compiler configuration so that the native linker is 16893*** used, and then restart. 16894 16895_LT_EOF 16896 ;; 16897 *) 16898 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16899 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16900 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16901 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16902 else 16903 ld_shlibs_GCJ=no 16904 fi 16905 ;; 16906 esac 16907 ;; 16908 16909 sunos4*) 16910 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16911 wlarc= 16912 hardcode_direct_GCJ=yes 16913 hardcode_shlibpath_var_GCJ=no 16914 ;; 16915 16916 *) 16917 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16918 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16919 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16920 else 16921 ld_shlibs_GCJ=no 16922 fi 16923 ;; 16924 esac 16925 16926 if test "$ld_shlibs_GCJ" = no; then 16927 runpath_var= 16928 hardcode_libdir_flag_spec_GCJ= 16929 export_dynamic_flag_spec_GCJ= 16930 whole_archive_flag_spec_GCJ= 16931 fi 16932 else 16933 # PORTME fill in a description of your system's linker (not GNU ld) 16934 case $host_os in 16935 aix3*) 16936 allow_undefined_flag_GCJ=unsupported 16937 always_export_symbols_GCJ=yes 16938 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' 16939 # Note: this linker hardcodes the directories in LIBPATH if there 16940 # are no directories specified by -L. 16941 hardcode_minus_L_GCJ=yes 16942 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16943 # Neither direct hardcoding nor static linking is supported with a 16944 # broken collect2. 16945 hardcode_direct_GCJ=unsupported 16946 fi 16947 ;; 16948 16949 aix4* | aix5*) 16950 if test "$host_cpu" = ia64; then 16951 # On IA64, the linker does run time linking by default, so we don't 16952 # have to do anything special. 16953 aix_use_runtimelinking=no 16954 exp_sym_flag='-Bexport' 16955 no_entry_flag="" 16956 else 16957 # If we're using GNU nm, then we don't want the "-C" option. 16958 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16959 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16960 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' 16961 else 16962 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' 16963 fi 16964 aix_use_runtimelinking=no 16965 16966 # Test if we are trying to use run time linking or normal 16967 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16968 # need to do runtime linking. 16969 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16970 for ld_flag in $LDFLAGS; do 16971 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16972 aix_use_runtimelinking=yes 16973 break 16974 fi 16975 done 16976 ;; 16977 esac 16978 16979 exp_sym_flag='-bexport' 16980 no_entry_flag='-bnoentry' 16981 fi 16982 16983 # When large executables or shared objects are built, AIX ld can 16984 # have problems creating the table of contents. If linking a library 16985 # or program results in "error TOC overflow" add -mminimal-toc to 16986 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16987 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16988 16989 archive_cmds_GCJ='' 16990 hardcode_direct_GCJ=yes 16991 hardcode_libdir_separator_GCJ=':' 16992 link_all_deplibs_GCJ=yes 16993 16994 if test "$GCC" = yes; then 16995 case $host_os in aix4.[012]|aix4.[012].*) 16996 # We only want to do this on AIX 4.2 and lower, the check 16997 # below for broken collect2 doesn't work under 4.3+ 16998 collect2name=`${CC} -print-prog-name=collect2` 16999 if test -f "$collect2name" && \ 17000 strings "$collect2name" | grep resolve_lib_name >/dev/null 17001 then 17002 # We have reworked collect2 17003 hardcode_direct_GCJ=yes 17004 else 17005 # We have old collect2 17006 hardcode_direct_GCJ=unsupported 17007 # It fails to find uninstalled libraries when the uninstalled 17008 # path is not listed in the libpath. Setting hardcode_minus_L 17009 # to unsupported forces relinking 17010 hardcode_minus_L_GCJ=yes 17011 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17012 hardcode_libdir_separator_GCJ= 17013 fi 17014 ;; 17015 esac 17016 shared_flag='-shared' 17017 if test "$aix_use_runtimelinking" = yes; then 17018 shared_flag="$shared_flag "'${wl}-G' 17019 fi 17020 else 17021 # not using gcc 17022 if test "$host_cpu" = ia64; then 17023 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17024 # chokes on -Wl,-G. The following line is correct: 17025 shared_flag='-G' 17026 else 17027 if test "$aix_use_runtimelinking" = yes; then 17028 shared_flag='${wl}-G' 17029 else 17030 shared_flag='${wl}-bM:SRE' 17031 fi 17032 fi 17033 fi 17034 17035 # It seems that -bexpall does not export symbols beginning with 17036 # underscore (_), so it is better to generate a list of symbols to export. 17037 always_export_symbols_GCJ=yes 17038 if test "$aix_use_runtimelinking" = yes; then 17039 # Warning - without using the other runtime loading flags (-brtl), 17040 # -berok will link without error, but may produce a broken library. 17041 allow_undefined_flag_GCJ='-berok' 17042 # Determine the default libpath from the value encoded in an empty executable. 17043 cat >conftest.$ac_ext <<_ACEOF 17044/* confdefs.h. */ 17045_ACEOF 17046cat confdefs.h >>conftest.$ac_ext 17047cat >>conftest.$ac_ext <<_ACEOF 17048/* end confdefs.h. */ 17049 17050int 17051main () 17052{ 17053 17054 ; 17055 return 0; 17056} 17057_ACEOF 17058rm -f conftest.$ac_objext conftest$ac_exeext 17059if { (ac_try="$ac_link" 17060case "(($ac_try" in 17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17062 *) ac_try_echo=$ac_try;; 17063esac 17064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17065 (eval "$ac_link") 2>conftest.er1 17066 ac_status=$? 17067 grep -v '^ *+' conftest.er1 >conftest.err 17068 rm -f conftest.er1 17069 cat conftest.err >&5 17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17071 (exit $ac_status); } && { 17072 test -z "$ac_c_werror_flag" || 17073 test ! -s conftest.err 17074 } && test -s conftest$ac_exeext && 17075 $as_test_x conftest$ac_exeext; then 17076 17077aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17078}'` 17079# Check for a 64-bit object if we didn't find anything. 17080if 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; } 17081}'`; fi 17082else 17083 echo "$as_me: failed program was:" >&5 17084sed 's/^/| /' conftest.$ac_ext >&5 17085 17086 17087fi 17088 17089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17090 conftest$ac_exeext conftest.$ac_ext 17091if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17092 17093 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17094 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" 17095 else 17096 if test "$host_cpu" = ia64; then 17097 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17098 allow_undefined_flag_GCJ="-z nodefs" 17099 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" 17100 else 17101 # Determine the default libpath from the value encoded in an empty executable. 17102 cat >conftest.$ac_ext <<_ACEOF 17103/* confdefs.h. */ 17104_ACEOF 17105cat confdefs.h >>conftest.$ac_ext 17106cat >>conftest.$ac_ext <<_ACEOF 17107/* end confdefs.h. */ 17108 17109int 17110main () 17111{ 17112 17113 ; 17114 return 0; 17115} 17116_ACEOF 17117rm -f conftest.$ac_objext conftest$ac_exeext 17118if { (ac_try="$ac_link" 17119case "(($ac_try" in 17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17121 *) ac_try_echo=$ac_try;; 17122esac 17123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17124 (eval "$ac_link") 2>conftest.er1 17125 ac_status=$? 17126 grep -v '^ *+' conftest.er1 >conftest.err 17127 rm -f conftest.er1 17128 cat conftest.err >&5 17129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17130 (exit $ac_status); } && { 17131 test -z "$ac_c_werror_flag" || 17132 test ! -s conftest.err 17133 } && test -s conftest$ac_exeext && 17134 $as_test_x conftest$ac_exeext; then 17135 17136aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17137}'` 17138# Check for a 64-bit object if we didn't find anything. 17139if 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; } 17140}'`; fi 17141else 17142 echo "$as_me: failed program was:" >&5 17143sed 's/^/| /' conftest.$ac_ext >&5 17144 17145 17146fi 17147 17148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17149 conftest$ac_exeext conftest.$ac_ext 17150if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17151 17152 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17153 # Warning - without using the other run time loading flags, 17154 # -berok will link without error, but may produce a broken library. 17155 no_undefined_flag_GCJ=' ${wl}-bernotok' 17156 allow_undefined_flag_GCJ=' ${wl}-berok' 17157 # Exported symbols can be pulled into shared objects from archives 17158 whole_archive_flag_spec_GCJ='$convenience' 17159 archive_cmds_need_lc_GCJ=yes 17160 # This is similar to how AIX traditionally builds its shared libraries. 17161 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' 17162 fi 17163 fi 17164 ;; 17165 17166 amigaos*) 17167 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)' 17168 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17169 hardcode_minus_L_GCJ=yes 17170 # see comment about different semantics on the GNU ld section 17171 ld_shlibs_GCJ=no 17172 ;; 17173 17174 bsdi[45]*) 17175 export_dynamic_flag_spec_GCJ=-rdynamic 17176 ;; 17177 17178 cygwin* | mingw* | pw32*) 17179 # When not using gcc, we currently assume that we are using 17180 # Microsoft Visual C++. 17181 # hardcode_libdir_flag_spec is actually meaningless, as there is 17182 # no search path for DLLs. 17183 hardcode_libdir_flag_spec_GCJ=' ' 17184 allow_undefined_flag_GCJ=unsupported 17185 # Tell ltmain to make .lib files, not .a files. 17186 libext=lib 17187 # Tell ltmain to make .dll files, not .so files. 17188 shrext_cmds=".dll" 17189 # FIXME: Setting linknames here is a bad hack. 17190 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17191 # The linker will automatically build a .lib file if we build a DLL. 17192 old_archive_From_new_cmds_GCJ='true' 17193 # FIXME: Should let the user specify the lib program. 17194 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17195 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17196 enable_shared_with_static_runtimes_GCJ=yes 17197 ;; 17198 17199 darwin* | rhapsody*) 17200 case $host_os in 17201 rhapsody* | darwin1.[012]) 17202 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17203 ;; 17204 *) # Darwin 1.3 on 17205 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17206 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17207 else 17208 case ${MACOSX_DEPLOYMENT_TARGET} in 17209 10.[012]) 17210 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17211 ;; 17212 10.*) 17213 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17214 ;; 17215 esac 17216 fi 17217 ;; 17218 esac 17219 archive_cmds_need_lc_GCJ=no 17220 hardcode_direct_GCJ=no 17221 hardcode_automatic_GCJ=yes 17222 hardcode_shlibpath_var_GCJ=unsupported 17223 whole_archive_flag_spec_GCJ='' 17224 link_all_deplibs_GCJ=yes 17225 if test "$GCC" = yes ; then 17226 output_verbose_link_cmd='echo' 17227 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17228 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17229 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17230 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}' 17231 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}' 17232 else 17233 case $cc_basename in 17234 xlc*) 17235 output_verbose_link_cmd='echo' 17236 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17237 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17238 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17239 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}' 17240 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}' 17241 ;; 17242 *) 17243 ld_shlibs_GCJ=no 17244 ;; 17245 esac 17246 fi 17247 ;; 17248 17249 dgux*) 17250 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17251 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17252 hardcode_shlibpath_var_GCJ=no 17253 ;; 17254 17255 freebsd1*) 17256 ld_shlibs_GCJ=no 17257 ;; 17258 17259 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17260 # support. Future versions do this automatically, but an explicit c++rt0.o 17261 # does not break anything, and helps significantly (at the cost of a little 17262 # extra space). 17263 freebsd2.2*) 17264 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17265 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17266 hardcode_direct_GCJ=yes 17267 hardcode_shlibpath_var_GCJ=no 17268 ;; 17269 17270 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17271 freebsd2*) 17272 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17273 hardcode_direct_GCJ=yes 17274 hardcode_minus_L_GCJ=yes 17275 hardcode_shlibpath_var_GCJ=no 17276 ;; 17277 17278 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17279 freebsd* | kfreebsd*-gnu | dragonfly*) 17280 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17281 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17282 hardcode_direct_GCJ=yes 17283 hardcode_shlibpath_var_GCJ=no 17284 ;; 17285 17286 hpux9*) 17287 if test "$GCC" = yes; then 17288 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' 17289 else 17290 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' 17291 fi 17292 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17293 hardcode_libdir_separator_GCJ=: 17294 hardcode_direct_GCJ=yes 17295 17296 # hardcode_minus_L: Not really in the search PATH, 17297 # but as the default location of the library. 17298 hardcode_minus_L_GCJ=yes 17299 export_dynamic_flag_spec_GCJ='${wl}-E' 17300 ;; 17301 17302 hpux10*) 17303 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17304 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17305 else 17306 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17307 fi 17308 if test "$with_gnu_ld" = no; then 17309 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17310 hardcode_libdir_separator_GCJ=: 17311 17312 hardcode_direct_GCJ=yes 17313 export_dynamic_flag_spec_GCJ='${wl}-E' 17314 17315 # hardcode_minus_L: Not really in the search PATH, 17316 # but as the default location of the library. 17317 hardcode_minus_L_GCJ=yes 17318 fi 17319 ;; 17320 17321 hpux11*) 17322 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17323 case $host_cpu in 17324 hppa*64*) 17325 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17326 ;; 17327 ia64*) 17328 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17329 ;; 17330 *) 17331 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17332 ;; 17333 esac 17334 else 17335 case $host_cpu in 17336 hppa*64*) 17337 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17338 ;; 17339 ia64*) 17340 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17341 ;; 17342 *) 17343 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17344 ;; 17345 esac 17346 fi 17347 if test "$with_gnu_ld" = no; then 17348 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17349 hardcode_libdir_separator_GCJ=: 17350 17351 case $host_cpu in 17352 hppa*64*|ia64*) 17353 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17354 hardcode_direct_GCJ=no 17355 hardcode_shlibpath_var_GCJ=no 17356 ;; 17357 *) 17358 hardcode_direct_GCJ=yes 17359 export_dynamic_flag_spec_GCJ='${wl}-E' 17360 17361 # hardcode_minus_L: Not really in the search PATH, 17362 # but as the default location of the library. 17363 hardcode_minus_L_GCJ=yes 17364 ;; 17365 esac 17366 fi 17367 ;; 17368 17369 irix5* | irix6* | nonstopux*) 17370 if test "$GCC" = yes; then 17371 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' 17372 else 17373 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' 17374 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17375 fi 17376 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17377 hardcode_libdir_separator_GCJ=: 17378 link_all_deplibs_GCJ=yes 17379 ;; 17380 17381 netbsd*) 17382 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17383 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17384 else 17385 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17386 fi 17387 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17388 hardcode_direct_GCJ=yes 17389 hardcode_shlibpath_var_GCJ=no 17390 ;; 17391 17392 newsos6) 17393 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17394 hardcode_direct_GCJ=yes 17395 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17396 hardcode_libdir_separator_GCJ=: 17397 hardcode_shlibpath_var_GCJ=no 17398 ;; 17399 17400 openbsd*) 17401 hardcode_direct_GCJ=yes 17402 hardcode_shlibpath_var_GCJ=no 17403 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17404 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17405 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17406 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17407 export_dynamic_flag_spec_GCJ='${wl}-E' 17408 else 17409 case $host_os in 17410 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17411 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17412 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17413 ;; 17414 *) 17415 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17416 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17417 ;; 17418 esac 17419 fi 17420 ;; 17421 17422 os2*) 17423 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17424 hardcode_minus_L_GCJ=yes 17425 allow_undefined_flag_GCJ=unsupported 17426 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' 17427 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17428 ;; 17429 17430 osf3*) 17431 if test "$GCC" = yes; then 17432 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17433 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' 17434 else 17435 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17436 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' 17437 fi 17438 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17439 hardcode_libdir_separator_GCJ=: 17440 ;; 17441 17442 osf4* | osf5*) # as osf3* with the addition of -msym flag 17443 if test "$GCC" = yes; then 17444 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17445 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' 17446 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17447 else 17448 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17449 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' 17450 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~ 17451 $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' 17452 17453 # Both c and cxx compiler support -rpath directly 17454 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17455 fi 17456 hardcode_libdir_separator_GCJ=: 17457 ;; 17458 17459 solaris*) 17460 no_undefined_flag_GCJ=' -z text' 17461 if test "$GCC" = yes; then 17462 wlarc='${wl}' 17463 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17464 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17465 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17466 else 17467 wlarc='' 17468 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17469 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17470 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17471 fi 17472 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17473 hardcode_shlibpath_var_GCJ=no 17474 case $host_os in 17475 solaris2.[0-5] | solaris2.[0-5].*) ;; 17476 *) 17477 # The compiler driver will combine linker options so we 17478 # cannot just pass the convience library names through 17479 # without $wl, iff we do not link with $LD. 17480 # Luckily, gcc supports the same syntax we need for Sun Studio. 17481 # Supported since Solaris 2.6 (maybe 2.5.1?) 17482 case $wlarc in 17483 '') 17484 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17485 *) 17486 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' ;; 17487 esac ;; 17488 esac 17489 link_all_deplibs_GCJ=yes 17490 ;; 17491 17492 sunos4*) 17493 if test "x$host_vendor" = xsequent; then 17494 # Use $CC to link under sequent, because it throws in some extra .o 17495 # files that make .init and .fini sections work. 17496 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17497 else 17498 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17499 fi 17500 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17501 hardcode_direct_GCJ=yes 17502 hardcode_minus_L_GCJ=yes 17503 hardcode_shlibpath_var_GCJ=no 17504 ;; 17505 17506 sysv4) 17507 case $host_vendor in 17508 sni) 17509 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17510 hardcode_direct_GCJ=yes # is this really true??? 17511 ;; 17512 siemens) 17513 ## LD is ld it makes a PLAMLIB 17514 ## CC just makes a GrossModule. 17515 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17516 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17517 hardcode_direct_GCJ=no 17518 ;; 17519 motorola) 17520 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17521 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17522 ;; 17523 esac 17524 runpath_var='LD_RUN_PATH' 17525 hardcode_shlibpath_var_GCJ=no 17526 ;; 17527 17528 sysv4.3*) 17529 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17530 hardcode_shlibpath_var_GCJ=no 17531 export_dynamic_flag_spec_GCJ='-Bexport' 17532 ;; 17533 17534 sysv4*MP*) 17535 if test -d /usr/nec; then 17536 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17537 hardcode_shlibpath_var_GCJ=no 17538 runpath_var=LD_RUN_PATH 17539 hardcode_runpath_var=yes 17540 ld_shlibs_GCJ=yes 17541 fi 17542 ;; 17543 17544 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17545 no_undefined_flag_GCJ='${wl}-z,text' 17546 archive_cmds_need_lc_GCJ=no 17547 hardcode_shlibpath_var_GCJ=no 17548 runpath_var='LD_RUN_PATH' 17549 17550 if test "$GCC" = yes; then 17551 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17552 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17553 else 17554 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17555 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17556 fi 17557 ;; 17558 17559 sysv5* | sco3.2v5* | sco5v6*) 17560 # Note: We can NOT use -z defs as we might desire, because we do not 17561 # link with -lc, and that would cause any symbols used from libc to 17562 # always be unresolved, which means just about no library would 17563 # ever link correctly. If we're not using GNU ld we use -z text 17564 # though, which does catch some bad symbols but isn't as heavy-handed 17565 # as -z defs. 17566 no_undefined_flag_GCJ='${wl}-z,text' 17567 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17568 archive_cmds_need_lc_GCJ=no 17569 hardcode_shlibpath_var_GCJ=no 17570 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17571 hardcode_libdir_separator_GCJ=':' 17572 link_all_deplibs_GCJ=yes 17573 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17574 runpath_var='LD_RUN_PATH' 17575 17576 if test "$GCC" = yes; then 17577 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17578 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17579 else 17580 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17581 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17582 fi 17583 ;; 17584 17585 uts4*) 17586 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17587 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17588 hardcode_shlibpath_var_GCJ=no 17589 ;; 17590 17591 *) 17592 ld_shlibs_GCJ=no 17593 ;; 17594 esac 17595 fi 17596 17597{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17598echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17599test "$ld_shlibs_GCJ" = no && can_build_shared=no 17600 17601# 17602# Do we need to explicitly link libc? 17603# 17604case "x$archive_cmds_need_lc_GCJ" in 17605x|xyes) 17606 # Assume -lc should be added 17607 archive_cmds_need_lc_GCJ=yes 17608 17609 if test "$enable_shared" = yes && test "$GCC" = yes; then 17610 case $archive_cmds_GCJ in 17611 *'~'*) 17612 # FIXME: we may have to deal with multi-command sequences. 17613 ;; 17614 '$CC '*) 17615 # Test whether the compiler implicitly links with -lc since on some 17616 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17617 # to ld, don't add -lc before -lgcc. 17618 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17619echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17620 $rm conftest* 17621 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17622 17623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17624 (eval $ac_compile) 2>&5 17625 ac_status=$? 17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17627 (exit $ac_status); } 2>conftest.err; then 17628 soname=conftest 17629 lib=conftest 17630 libobjs=conftest.$ac_objext 17631 deplibs= 17632 wl=$lt_prog_compiler_wl_GCJ 17633 pic_flag=$lt_prog_compiler_pic_GCJ 17634 compiler_flags=-v 17635 linker_flags=-v 17636 verstring= 17637 output_objdir=. 17638 libname=conftest 17639 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17640 allow_undefined_flag_GCJ= 17641 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17642 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17643 ac_status=$? 17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17645 (exit $ac_status); } 17646 then 17647 archive_cmds_need_lc_GCJ=no 17648 else 17649 archive_cmds_need_lc_GCJ=yes 17650 fi 17651 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17652 else 17653 cat conftest.err 1>&5 17654 fi 17655 $rm conftest* 17656 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17657echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17658 ;; 17659 esac 17660 fi 17661 ;; 17662esac 17663 17664{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17665echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17666library_names_spec= 17667libname_spec='lib$name' 17668soname_spec= 17669shrext_cmds=".so" 17670postinstall_cmds= 17671postuninstall_cmds= 17672finish_cmds= 17673finish_eval= 17674shlibpath_var= 17675shlibpath_overrides_runpath=unknown 17676version_type=none 17677dynamic_linker="$host_os ld.so" 17678sys_lib_dlsearch_path_spec="/lib /usr/lib" 17679if test "$GCC" = yes; then 17680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17681 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17682 # if the path contains ";" then we assume it to be the separator 17683 # otherwise default to the standard path separator (i.e. ":") - it is 17684 # assumed that no part of a normal pathname contains ";" but that should 17685 # okay in the real world where ";" in dirpaths is itself problematic. 17686 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17687 else 17688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17689 fi 17690else 17691 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17692fi 17693need_lib_prefix=unknown 17694hardcode_into_libs=no 17695 17696# when you set need_version to no, make sure it does not cause -set_version 17697# flags to be left without arguments 17698need_version=unknown 17699 17700case $host_os in 17701aix3*) 17702 version_type=linux 17703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17704 shlibpath_var=LIBPATH 17705 17706 # AIX 3 has no versioning support, so we append a major version to the name. 17707 soname_spec='${libname}${release}${shared_ext}$major' 17708 ;; 17709 17710aix4* | aix5*) 17711 version_type=linux 17712 need_lib_prefix=no 17713 need_version=no 17714 hardcode_into_libs=yes 17715 if test "$host_cpu" = ia64; then 17716 # AIX 5 supports IA64 17717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17718 shlibpath_var=LD_LIBRARY_PATH 17719 else 17720 # With GCC up to 2.95.x, collect2 would create an import file 17721 # for dependence libraries. The import file would start with 17722 # the line `#! .'. This would cause the generated library to 17723 # depend on `.', always an invalid library. This was fixed in 17724 # development snapshots of GCC prior to 3.0. 17725 case $host_os in 17726 aix4 | aix4.[01] | aix4.[01].*) 17727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17728 echo ' yes ' 17729 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17730 : 17731 else 17732 can_build_shared=no 17733 fi 17734 ;; 17735 esac 17736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17737 # soname into executable. Probably we can add versioning support to 17738 # collect2, so additional links can be useful in future. 17739 if test "$aix_use_runtimelinking" = yes; then 17740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17741 # instead of lib<name>.a to let people know that these are not 17742 # typical AIX shared libraries. 17743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17744 else 17745 # We preserve .a as extension for shared libraries through AIX4.2 17746 # and later when we are not doing run time linking. 17747 library_names_spec='${libname}${release}.a $libname.a' 17748 soname_spec='${libname}${release}${shared_ext}$major' 17749 fi 17750 shlibpath_var=LIBPATH 17751 fi 17752 ;; 17753 17754amigaos*) 17755 library_names_spec='$libname.ixlibrary $libname.a' 17756 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17757 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' 17758 ;; 17759 17760beos*) 17761 library_names_spec='${libname}${shared_ext}' 17762 dynamic_linker="$host_os ld.so" 17763 shlibpath_var=LIBRARY_PATH 17764 ;; 17765 17766bsdi[45]*) 17767 version_type=linux 17768 need_version=no 17769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17770 soname_spec='${libname}${release}${shared_ext}$major' 17771 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17772 shlibpath_var=LD_LIBRARY_PATH 17773 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17774 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17775 # the default ld.so.conf also contains /usr/contrib/lib and 17776 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17777 # libtool to hard-code these into programs 17778 ;; 17779 17780cygwin* | mingw* | pw32*) 17781 version_type=windows 17782 shrext_cmds=".dll" 17783 need_version=no 17784 need_lib_prefix=no 17785 17786 case $GCC,$host_os in 17787 yes,cygwin* | yes,mingw* | yes,pw32*) 17788 library_names_spec='$libname.dll.a' 17789 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17790 postinstall_cmds='base_file=`basename \${file}`~ 17791 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17792 dldir=$destdir/`dirname \$dlpath`~ 17793 test -d \$dldir || mkdir -p \$dldir~ 17794 $install_prog $dir/$dlname \$dldir/$dlname~ 17795 chmod a+x \$dldir/$dlname' 17796 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17797 dlpath=$dir/\$dldll~ 17798 $rm \$dlpath' 17799 shlibpath_overrides_runpath=yes 17800 17801 case $host_os in 17802 cygwin*) 17803 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17804 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17805 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17806 ;; 17807 mingw*) 17808 # MinGW DLLs use traditional 'lib' prefix 17809 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17810 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17811 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17812 # It is most probably a Windows format PATH printed by 17813 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17814 # path with ; separators, and with drive letters. We can handle the 17815 # drive letters (cygwin fileutils understands them), so leave them, 17816 # especially as we might pass files found there to a mingw objdump, 17817 # which wouldn't understand a cygwinified path. Ahh. 17818 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17819 else 17820 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17821 fi 17822 ;; 17823 pw32*) 17824 # pw32 DLLs use 'pw' prefix rather than 'lib' 17825 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17826 ;; 17827 esac 17828 ;; 17829 17830 *) 17831 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17832 ;; 17833 esac 17834 dynamic_linker='Win32 ld.exe' 17835 # FIXME: first we should search . and the directory the executable is in 17836 shlibpath_var=PATH 17837 ;; 17838 17839darwin* | rhapsody*) 17840 dynamic_linker="$host_os dyld" 17841 version_type=darwin 17842 need_lib_prefix=no 17843 need_version=no 17844 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17845 soname_spec='${libname}${release}${major}$shared_ext' 17846 shlibpath_overrides_runpath=yes 17847 shlibpath_var=DYLD_LIBRARY_PATH 17848 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17849 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17850 if test "$GCC" = yes; then 17851 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"` 17852 else 17853 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17854 fi 17855 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17856 ;; 17857 17858dgux*) 17859 version_type=linux 17860 need_lib_prefix=no 17861 need_version=no 17862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17863 soname_spec='${libname}${release}${shared_ext}$major' 17864 shlibpath_var=LD_LIBRARY_PATH 17865 ;; 17866 17867freebsd1*) 17868 dynamic_linker=no 17869 ;; 17870 17871kfreebsd*-gnu) 17872 version_type=linux 17873 need_lib_prefix=no 17874 need_version=no 17875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17876 soname_spec='${libname}${release}${shared_ext}$major' 17877 shlibpath_var=LD_LIBRARY_PATH 17878 shlibpath_overrides_runpath=no 17879 hardcode_into_libs=yes 17880 dynamic_linker='GNU ld.so' 17881 ;; 17882 17883freebsd* | dragonfly*) 17884 # DragonFly does not have aout. When/if they implement a new 17885 # versioning mechanism, adjust this. 17886 if test -x /usr/bin/objformat; then 17887 objformat=`/usr/bin/objformat` 17888 else 17889 case $host_os in 17890 freebsd[123]*) objformat=aout ;; 17891 *) objformat=elf ;; 17892 esac 17893 fi 17894 version_type=freebsd-$objformat 17895 case $version_type in 17896 freebsd-elf*) 17897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17898 need_version=no 17899 need_lib_prefix=no 17900 ;; 17901 freebsd-*) 17902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17903 need_version=yes 17904 ;; 17905 esac 17906 shlibpath_var=LD_LIBRARY_PATH 17907 case $host_os in 17908 freebsd2*) 17909 shlibpath_overrides_runpath=yes 17910 ;; 17911 freebsd3.[01]* | freebsdelf3.[01]*) 17912 shlibpath_overrides_runpath=yes 17913 hardcode_into_libs=yes 17914 ;; 17915 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17916 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17917 shlibpath_overrides_runpath=no 17918 hardcode_into_libs=yes 17919 ;; 17920 freebsd*) # from 4.6 on 17921 shlibpath_overrides_runpath=yes 17922 hardcode_into_libs=yes 17923 ;; 17924 esac 17925 ;; 17926 17927gnu*) 17928 version_type=linux 17929 need_lib_prefix=no 17930 need_version=no 17931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17932 soname_spec='${libname}${release}${shared_ext}$major' 17933 shlibpath_var=LD_LIBRARY_PATH 17934 hardcode_into_libs=yes 17935 ;; 17936 17937hpux9* | hpux10* | hpux11*) 17938 # Give a soname corresponding to the major version so that dld.sl refuses to 17939 # link against other versions. 17940 version_type=sunos 17941 need_lib_prefix=no 17942 need_version=no 17943 case $host_cpu in 17944 ia64*) 17945 shrext_cmds='.so' 17946 hardcode_into_libs=yes 17947 dynamic_linker="$host_os dld.so" 17948 shlibpath_var=LD_LIBRARY_PATH 17949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17951 soname_spec='${libname}${release}${shared_ext}$major' 17952 if test "X$HPUX_IA64_MODE" = X32; then 17953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17954 else 17955 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17956 fi 17957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17958 ;; 17959 hppa*64*) 17960 shrext_cmds='.sl' 17961 hardcode_into_libs=yes 17962 dynamic_linker="$host_os dld.sl" 17963 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17966 soname_spec='${libname}${release}${shared_ext}$major' 17967 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17969 ;; 17970 *) 17971 shrext_cmds='.sl' 17972 dynamic_linker="$host_os dld.sl" 17973 shlibpath_var=SHLIB_PATH 17974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17976 soname_spec='${libname}${release}${shared_ext}$major' 17977 ;; 17978 esac 17979 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17980 postinstall_cmds='chmod 555 $lib' 17981 ;; 17982 17983interix3*) 17984 version_type=linux 17985 need_lib_prefix=no 17986 need_version=no 17987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17988 soname_spec='${libname}${release}${shared_ext}$major' 17989 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17990 shlibpath_var=LD_LIBRARY_PATH 17991 shlibpath_overrides_runpath=no 17992 hardcode_into_libs=yes 17993 ;; 17994 17995irix5* | irix6* | nonstopux*) 17996 case $host_os in 17997 nonstopux*) version_type=nonstopux ;; 17998 *) 17999 if test "$lt_cv_prog_gnu_ld" = yes; then 18000 version_type=linux 18001 else 18002 version_type=irix 18003 fi ;; 18004 esac 18005 need_lib_prefix=no 18006 need_version=no 18007 soname_spec='${libname}${release}${shared_ext}$major' 18008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18009 case $host_os in 18010 irix5* | nonstopux*) 18011 libsuff= shlibsuff= 18012 ;; 18013 *) 18014 case $LD in # libtool.m4 will add one of these switches to LD 18015 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18016 libsuff= shlibsuff= libmagic=32-bit;; 18017 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18018 libsuff=32 shlibsuff=N32 libmagic=N32;; 18019 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18020 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18021 *) libsuff= shlibsuff= libmagic=never-match;; 18022 esac 18023 ;; 18024 esac 18025 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18026 shlibpath_overrides_runpath=no 18027 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18028 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18029 hardcode_into_libs=yes 18030 ;; 18031 18032# No shared lib support for Linux oldld, aout, or coff. 18033linux*oldld* | linux*aout* | linux*coff*) 18034 dynamic_linker=no 18035 ;; 18036 18037# This must be Linux ELF. 18038linux*) 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18045 shlibpath_var=LD_LIBRARY_PATH 18046 shlibpath_overrides_runpath=no 18047 # This implies no fast_install, which is unacceptable. 18048 # Some rework will be needed to allow for fast_install 18049 # before this can be enabled. 18050 hardcode_into_libs=yes 18051 18052 # Append ld.so.conf contents to the search path 18053 if test -f /etc/ld.so.conf; then 18054 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' ' '` 18055 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18056 fi 18057 18058 # We used to test for /lib/ld.so.1 and disable shared libraries on 18059 # powerpc, because MkLinux only supported shared libraries with the 18060 # GNU dynamic linker. Since this was broken with cross compilers, 18061 # most powerpc-linux boxes support dynamic linking these days and 18062 # people can always --disable-shared, the test was removed, and we 18063 # assume the GNU/Linux dynamic linker is in use. 18064 dynamic_linker='GNU/Linux ld.so' 18065 ;; 18066 18067knetbsd*-gnu) 18068 version_type=linux 18069 need_lib_prefix=no 18070 need_version=no 18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18072 soname_spec='${libname}${release}${shared_ext}$major' 18073 shlibpath_var=LD_LIBRARY_PATH 18074 shlibpath_overrides_runpath=no 18075 hardcode_into_libs=yes 18076 dynamic_linker='GNU ld.so' 18077 ;; 18078 18079netbsd*) 18080 version_type=sunos 18081 need_lib_prefix=no 18082 need_version=no 18083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18086 dynamic_linker='NetBSD (a.out) ld.so' 18087 else 18088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18089 soname_spec='${libname}${release}${shared_ext}$major' 18090 dynamic_linker='NetBSD ld.elf_so' 18091 fi 18092 shlibpath_var=LD_LIBRARY_PATH 18093 shlibpath_overrides_runpath=yes 18094 hardcode_into_libs=yes 18095 ;; 18096 18097newsos6) 18098 version_type=linux 18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18100 shlibpath_var=LD_LIBRARY_PATH 18101 shlibpath_overrides_runpath=yes 18102 ;; 18103 18104nto-qnx*) 18105 version_type=linux 18106 need_lib_prefix=no 18107 need_version=no 18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18109 soname_spec='${libname}${release}${shared_ext}$major' 18110 shlibpath_var=LD_LIBRARY_PATH 18111 shlibpath_overrides_runpath=yes 18112 ;; 18113 18114openbsd*) 18115 version_type=sunos 18116 sys_lib_dlsearch_path_spec="/usr/lib" 18117 need_lib_prefix=no 18118 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18119 case $host_os in 18120 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18121 *) need_version=no ;; 18122 esac 18123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18125 shlibpath_var=LD_LIBRARY_PATH 18126 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18127 case $host_os in 18128 openbsd2.[89] | openbsd2.[89].*) 18129 shlibpath_overrides_runpath=no 18130 ;; 18131 *) 18132 shlibpath_overrides_runpath=yes 18133 ;; 18134 esac 18135 else 18136 shlibpath_overrides_runpath=yes 18137 fi 18138 ;; 18139 18140os2*) 18141 libname_spec='$name' 18142 shrext_cmds=".dll" 18143 need_lib_prefix=no 18144 library_names_spec='$libname${shared_ext} $libname.a' 18145 dynamic_linker='OS/2 ld.exe' 18146 shlibpath_var=LIBPATH 18147 ;; 18148 18149osf3* | osf4* | osf5*) 18150 version_type=osf 18151 need_lib_prefix=no 18152 need_version=no 18153 soname_spec='${libname}${release}${shared_ext}$major' 18154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18155 shlibpath_var=LD_LIBRARY_PATH 18156 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18157 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18158 ;; 18159 18160solaris*) 18161 version_type=linux 18162 need_lib_prefix=no 18163 need_version=no 18164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18165 soname_spec='${libname}${release}${shared_ext}$major' 18166 shlibpath_var=LD_LIBRARY_PATH 18167 shlibpath_overrides_runpath=yes 18168 hardcode_into_libs=yes 18169 # ldd complains unless libraries are executable 18170 postinstall_cmds='chmod +x $lib' 18171 ;; 18172 18173sunos4*) 18174 version_type=sunos 18175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18176 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18177 shlibpath_var=LD_LIBRARY_PATH 18178 shlibpath_overrides_runpath=yes 18179 if test "$with_gnu_ld" = yes; then 18180 need_lib_prefix=no 18181 fi 18182 need_version=yes 18183 ;; 18184 18185sysv4 | sysv4.3*) 18186 version_type=linux 18187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18188 soname_spec='${libname}${release}${shared_ext}$major' 18189 shlibpath_var=LD_LIBRARY_PATH 18190 case $host_vendor in 18191 sni) 18192 shlibpath_overrides_runpath=no 18193 need_lib_prefix=no 18194 export_dynamic_flag_spec='${wl}-Blargedynsym' 18195 runpath_var=LD_RUN_PATH 18196 ;; 18197 siemens) 18198 need_lib_prefix=no 18199 ;; 18200 motorola) 18201 need_lib_prefix=no 18202 need_version=no 18203 shlibpath_overrides_runpath=no 18204 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18205 ;; 18206 esac 18207 ;; 18208 18209sysv4*MP*) 18210 if test -d /usr/nec ;then 18211 version_type=linux 18212 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18213 soname_spec='$libname${shared_ext}.$major' 18214 shlibpath_var=LD_LIBRARY_PATH 18215 fi 18216 ;; 18217 18218sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18219 version_type=freebsd-elf 18220 need_lib_prefix=no 18221 need_version=no 18222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18223 soname_spec='${libname}${release}${shared_ext}$major' 18224 shlibpath_var=LD_LIBRARY_PATH 18225 hardcode_into_libs=yes 18226 if test "$with_gnu_ld" = yes; then 18227 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18228 shlibpath_overrides_runpath=no 18229 else 18230 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18231 shlibpath_overrides_runpath=yes 18232 case $host_os in 18233 sco3.2v5*) 18234 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18235 ;; 18236 esac 18237 fi 18238 sys_lib_dlsearch_path_spec='/usr/lib' 18239 ;; 18240 18241uts4*) 18242 version_type=linux 18243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18244 soname_spec='${libname}${release}${shared_ext}$major' 18245 shlibpath_var=LD_LIBRARY_PATH 18246 ;; 18247 18248*) 18249 dynamic_linker=no 18250 ;; 18251esac 18252{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18253echo "${ECHO_T}$dynamic_linker" >&6; } 18254test "$dynamic_linker" = no && can_build_shared=no 18255 18256variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18257if test "$GCC" = yes; then 18258 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18259fi 18260 18261{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18262echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18263hardcode_action_GCJ= 18264if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18265 test -n "$runpath_var_GCJ" || \ 18266 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18267 18268 # We can hardcode non-existant directories. 18269 if test "$hardcode_direct_GCJ" != no && 18270 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18271 # have to relink, otherwise we might link with an installed library 18272 # when we should be linking with a yet-to-be-installed one 18273 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18274 test "$hardcode_minus_L_GCJ" != no; then 18275 # Linking always hardcodes the temporary library directory. 18276 hardcode_action_GCJ=relink 18277 else 18278 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18279 hardcode_action_GCJ=immediate 18280 fi 18281else 18282 # We cannot hardcode anything, or else we can only hardcode existing 18283 # directories. 18284 hardcode_action_GCJ=unsupported 18285fi 18286{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18287echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18288 18289if test "$hardcode_action_GCJ" = relink; then 18290 # Fast installation is not supported 18291 enable_fast_install=no 18292elif test "$shlibpath_overrides_runpath" = yes || 18293 test "$enable_shared" = no; then 18294 # Fast installation is not necessary 18295 enable_fast_install=needless 18296fi 18297 18298 18299# The else clause should only fire when bootstrapping the 18300# libtool distribution, otherwise you forgot to ship ltmain.sh 18301# with your package, and you will get complaints that there are 18302# no rules to generate ltmain.sh. 18303if test -f "$ltmain"; then 18304 # See if we are running on zsh, and set the options which allow our commands through 18305 # without removal of \ escapes. 18306 if test -n "${ZSH_VERSION+set}" ; then 18307 setopt NO_GLOB_SUBST 18308 fi 18309 # Now quote all the things that may contain metacharacters while being 18310 # careful not to overquote the AC_SUBSTed values. We take copies of the 18311 # variables and quote the copies for generation of the libtool script. 18312 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18313 SED SHELL STRIP \ 18314 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18315 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18316 deplibs_check_method reload_flag reload_cmds need_locks \ 18317 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18318 lt_cv_sys_global_symbol_to_c_name_address \ 18319 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18320 old_postinstall_cmds old_postuninstall_cmds \ 18321 compiler_GCJ \ 18322 CC_GCJ \ 18323 LD_GCJ \ 18324 lt_prog_compiler_wl_GCJ \ 18325 lt_prog_compiler_pic_GCJ \ 18326 lt_prog_compiler_static_GCJ \ 18327 lt_prog_compiler_no_builtin_flag_GCJ \ 18328 export_dynamic_flag_spec_GCJ \ 18329 thread_safe_flag_spec_GCJ \ 18330 whole_archive_flag_spec_GCJ \ 18331 enable_shared_with_static_runtimes_GCJ \ 18332 old_archive_cmds_GCJ \ 18333 old_archive_from_new_cmds_GCJ \ 18334 predep_objects_GCJ \ 18335 postdep_objects_GCJ \ 18336 predeps_GCJ \ 18337 postdeps_GCJ \ 18338 compiler_lib_search_path_GCJ \ 18339 archive_cmds_GCJ \ 18340 archive_expsym_cmds_GCJ \ 18341 postinstall_cmds_GCJ \ 18342 postuninstall_cmds_GCJ \ 18343 old_archive_from_expsyms_cmds_GCJ \ 18344 allow_undefined_flag_GCJ \ 18345 no_undefined_flag_GCJ \ 18346 export_symbols_cmds_GCJ \ 18347 hardcode_libdir_flag_spec_GCJ \ 18348 hardcode_libdir_flag_spec_ld_GCJ \ 18349 hardcode_libdir_separator_GCJ \ 18350 hardcode_automatic_GCJ \ 18351 module_cmds_GCJ \ 18352 module_expsym_cmds_GCJ \ 18353 lt_cv_prog_compiler_c_o_GCJ \ 18354 exclude_expsyms_GCJ \ 18355 include_expsyms_GCJ; do 18356 18357 case $var in 18358 old_archive_cmds_GCJ | \ 18359 old_archive_from_new_cmds_GCJ | \ 18360 archive_cmds_GCJ | \ 18361 archive_expsym_cmds_GCJ | \ 18362 module_cmds_GCJ | \ 18363 module_expsym_cmds_GCJ | \ 18364 old_archive_from_expsyms_cmds_GCJ | \ 18365 export_symbols_cmds_GCJ | \ 18366 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18367 postinstall_cmds | postuninstall_cmds | \ 18368 old_postinstall_cmds | old_postuninstall_cmds | \ 18369 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18370 # Double-quote double-evaled strings. 18371 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18372 ;; 18373 *) 18374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18375 ;; 18376 esac 18377 done 18378 18379 case $lt_echo in 18380 *'\$0 --fallback-echo"') 18381 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18382 ;; 18383 esac 18384 18385cfgfile="$ofile" 18386 18387 cat <<__EOF__ >> "$cfgfile" 18388# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18389 18390# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18391 18392# Shell to use when invoking shell scripts. 18393SHELL=$lt_SHELL 18394 18395# Whether or not to build shared libraries. 18396build_libtool_libs=$enable_shared 18397 18398# Whether or not to build static libraries. 18399build_old_libs=$enable_static 18400 18401# Whether or not to add -lc for building shared libraries. 18402build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18403 18404# Whether or not to disallow shared libs when runtime libs are static 18405allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18406 18407# Whether or not to optimize for fast installation. 18408fast_install=$enable_fast_install 18409 18410# The host system. 18411host_alias=$host_alias 18412host=$host 18413host_os=$host_os 18414 18415# The build system. 18416build_alias=$build_alias 18417build=$build 18418build_os=$build_os 18419 18420# An echo program that does not interpret backslashes. 18421echo=$lt_echo 18422 18423# The archiver. 18424AR=$lt_AR 18425AR_FLAGS=$lt_AR_FLAGS 18426 18427# A C compiler. 18428LTCC=$lt_LTCC 18429 18430# LTCC compiler flags. 18431LTCFLAGS=$lt_LTCFLAGS 18432 18433# A language-specific compiler. 18434CC=$lt_compiler_GCJ 18435 18436# Is the compiler the GNU C compiler? 18437with_gcc=$GCC_GCJ 18438 18439# An ERE matcher. 18440EGREP=$lt_EGREP 18441 18442# The linker used to build libraries. 18443LD=$lt_LD_GCJ 18444 18445# Whether we need hard or soft links. 18446LN_S=$lt_LN_S 18447 18448# A BSD-compatible nm program. 18449NM=$lt_NM 18450 18451# A symbol stripping program 18452STRIP=$lt_STRIP 18453 18454# Used to examine libraries when file_magic_cmd begins "file" 18455MAGIC_CMD=$MAGIC_CMD 18456 18457# Used on cygwin: DLL creation program. 18458DLLTOOL="$DLLTOOL" 18459 18460# Used on cygwin: object dumper. 18461OBJDUMP="$OBJDUMP" 18462 18463# Used on cygwin: assembler. 18464AS="$AS" 18465 18466# The name of the directory that contains temporary libtool files. 18467objdir=$objdir 18468 18469# How to create reloadable object files. 18470reload_flag=$lt_reload_flag 18471reload_cmds=$lt_reload_cmds 18472 18473# How to pass a linker flag through the compiler. 18474wl=$lt_lt_prog_compiler_wl_GCJ 18475 18476# Object file suffix (normally "o"). 18477objext="$ac_objext" 18478 18479# Old archive suffix (normally "a"). 18480libext="$libext" 18481 18482# Shared library suffix (normally ".so"). 18483shrext_cmds='$shrext_cmds' 18484 18485# Executable file suffix (normally ""). 18486exeext="$exeext" 18487 18488# Additional compiler flags for building library objects. 18489pic_flag=$lt_lt_prog_compiler_pic_GCJ 18490pic_mode=$pic_mode 18491 18492# What is the maximum length of a command? 18493max_cmd_len=$lt_cv_sys_max_cmd_len 18494 18495# Does compiler simultaneously support -c and -o options? 18496compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18497 18498# Must we lock files when doing compilation? 18499need_locks=$lt_need_locks 18500 18501# Do we need the lib prefix for modules? 18502need_lib_prefix=$need_lib_prefix 18503 18504# Do we need a version for libraries? 18505need_version=$need_version 18506 18507# Whether dlopen is supported. 18508dlopen_support=$enable_dlopen 18509 18510# Whether dlopen of programs is supported. 18511dlopen_self=$enable_dlopen_self 18512 18513# Whether dlopen of statically linked programs is supported. 18514dlopen_self_static=$enable_dlopen_self_static 18515 18516# Compiler flag to prevent dynamic linking. 18517link_static_flag=$lt_lt_prog_compiler_static_GCJ 18518 18519# Compiler flag to turn off builtin functions. 18520no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18521 18522# Compiler flag to allow reflexive dlopens. 18523export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18524 18525# Compiler flag to generate shared objects directly from archives. 18526whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18527 18528# Compiler flag to generate thread-safe objects. 18529thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18530 18531# Library versioning type. 18532version_type=$version_type 18533 18534# Format of library name prefix. 18535libname_spec=$lt_libname_spec 18536 18537# List of archive names. First name is the real one, the rest are links. 18538# The last name is the one that the linker finds with -lNAME. 18539library_names_spec=$lt_library_names_spec 18540 18541# The coded name of the library, if different from the real name. 18542soname_spec=$lt_soname_spec 18543 18544# Commands used to build and install an old-style archive. 18545RANLIB=$lt_RANLIB 18546old_archive_cmds=$lt_old_archive_cmds_GCJ 18547old_postinstall_cmds=$lt_old_postinstall_cmds 18548old_postuninstall_cmds=$lt_old_postuninstall_cmds 18549 18550# Create an old-style archive from a shared archive. 18551old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18552 18553# Create a temporary old-style archive to link instead of a shared archive. 18554old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18555 18556# Commands used to build and install a shared archive. 18557archive_cmds=$lt_archive_cmds_GCJ 18558archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18559postinstall_cmds=$lt_postinstall_cmds 18560postuninstall_cmds=$lt_postuninstall_cmds 18561 18562# Commands used to build a loadable module (assumed same as above if empty) 18563module_cmds=$lt_module_cmds_GCJ 18564module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18565 18566# Commands to strip libraries. 18567old_striplib=$lt_old_striplib 18568striplib=$lt_striplib 18569 18570# Dependencies to place before the objects being linked to create a 18571# shared library. 18572predep_objects=$lt_predep_objects_GCJ 18573 18574# Dependencies to place after the objects being linked to create a 18575# shared library. 18576postdep_objects=$lt_postdep_objects_GCJ 18577 18578# Dependencies to place before the objects being linked to create a 18579# shared library. 18580predeps=$lt_predeps_GCJ 18581 18582# Dependencies to place after the objects being linked to create a 18583# shared library. 18584postdeps=$lt_postdeps_GCJ 18585 18586# The library search path used internally by the compiler when linking 18587# a shared library. 18588compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18589 18590# Method to check whether dependent libraries are shared objects. 18591deplibs_check_method=$lt_deplibs_check_method 18592 18593# Command to use when deplibs_check_method == file_magic. 18594file_magic_cmd=$lt_file_magic_cmd 18595 18596# Flag that allows shared libraries with undefined symbols to be built. 18597allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18598 18599# Flag that forces no undefined symbols. 18600no_undefined_flag=$lt_no_undefined_flag_GCJ 18601 18602# Commands used to finish a libtool library installation in a directory. 18603finish_cmds=$lt_finish_cmds 18604 18605# Same as above, but a single script fragment to be evaled but not shown. 18606finish_eval=$lt_finish_eval 18607 18608# Take the output of nm and produce a listing of raw symbols and C names. 18609global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18610 18611# Transform the output of nm in a proper C declaration 18612global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18613 18614# Transform the output of nm in a C name address pair 18615global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18616 18617# This is the shared library runtime path variable. 18618runpath_var=$runpath_var 18619 18620# This is the shared library path variable. 18621shlibpath_var=$shlibpath_var 18622 18623# Is shlibpath searched before the hard-coded library search path? 18624shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18625 18626# How to hardcode a shared library path into an executable. 18627hardcode_action=$hardcode_action_GCJ 18628 18629# Whether we should hardcode library paths into libraries. 18630hardcode_into_libs=$hardcode_into_libs 18631 18632# Flag to hardcode \$libdir into a binary during linking. 18633# This must work even if \$libdir does not exist. 18634hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18635 18636# If ld is used when linking, flag to hardcode \$libdir into 18637# a binary during linking. This must work even if \$libdir does 18638# not exist. 18639hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18640 18641# Whether we need a single -rpath flag with a separated argument. 18642hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18643 18644# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18645# resulting binary. 18646hardcode_direct=$hardcode_direct_GCJ 18647 18648# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18649# resulting binary. 18650hardcode_minus_L=$hardcode_minus_L_GCJ 18651 18652# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18653# the resulting binary. 18654hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18655 18656# Set to yes if building a shared library automatically hardcodes DIR into the library 18657# and all subsequent libraries and executables linked against it. 18658hardcode_automatic=$hardcode_automatic_GCJ 18659 18660# Variables whose values should be saved in libtool wrapper scripts and 18661# restored at relink time. 18662variables_saved_for_relink="$variables_saved_for_relink" 18663 18664# Whether libtool must link a program against all its dependency libraries. 18665link_all_deplibs=$link_all_deplibs_GCJ 18666 18667# Compile-time system search path for libraries 18668sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18669 18670# Run-time system search path for libraries 18671sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18672 18673# Fix the shell variable \$srcfile for the compiler. 18674fix_srcfile_path="$fix_srcfile_path_GCJ" 18675 18676# Set to yes if exported symbols are required. 18677always_export_symbols=$always_export_symbols_GCJ 18678 18679# The commands to list exported symbols. 18680export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18681 18682# The commands to extract the exported symbol list from a shared archive. 18683extract_expsyms_cmds=$lt_extract_expsyms_cmds 18684 18685# Symbols that should not be listed in the preloaded symbols. 18686exclude_expsyms=$lt_exclude_expsyms_GCJ 18687 18688# Symbols that must always be exported. 18689include_expsyms=$lt_include_expsyms_GCJ 18690 18691# ### END LIBTOOL TAG CONFIG: $tagname 18692 18693__EOF__ 18694 18695 18696else 18697 # If there is no Makefile yet, we rely on a make rule to execute 18698 # `config.status --recheck' to rerun these tests and create the 18699 # libtool script then. 18700 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18701 if test -f "$ltmain_in"; then 18702 test -f Makefile && make "$ltmain" 18703 fi 18704fi 18705 18706 18707ac_ext=c 18708ac_cpp='$CPP $CPPFLAGS' 18709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18711ac_compiler_gnu=$ac_cv_c_compiler_gnu 18712 18713CC="$lt_save_CC" 18714 18715 else 18716 tagname="" 18717 fi 18718 ;; 18719 18720 RC) 18721 18722 18723# Source file extension for RC test sources. 18724ac_ext=rc 18725 18726# Object file extension for compiled RC test sources. 18727objext=o 18728objext_RC=$objext 18729 18730# Code to be used in simple compile tests 18731lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18732 18733# Code to be used in simple link tests 18734lt_simple_link_test_code="$lt_simple_compile_test_code" 18735 18736# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18737 18738# If no C compiler was specified, use CC. 18739LTCC=${LTCC-"$CC"} 18740 18741# If no C compiler flags were specified, use CFLAGS. 18742LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18743 18744# Allow CC to be a program name with arguments. 18745compiler=$CC 18746 18747 18748# save warnings/boilerplate of simple test code 18749ac_outfile=conftest.$ac_objext 18750printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18751eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18752_lt_compiler_boilerplate=`cat conftest.err` 18753$rm conftest* 18754 18755ac_outfile=conftest.$ac_objext 18756printf "$lt_simple_link_test_code" >conftest.$ac_ext 18757eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18758_lt_linker_boilerplate=`cat conftest.err` 18759$rm conftest* 18760 18761 18762# Allow CC to be a program name with arguments. 18763lt_save_CC="$CC" 18764CC=${RC-"windres"} 18765compiler=$CC 18766compiler_RC=$CC 18767for cc_temp in $compiler""; do 18768 case $cc_temp in 18769 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18770 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18771 \-*) ;; 18772 *) break;; 18773 esac 18774done 18775cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18776 18777lt_cv_prog_compiler_c_o_RC=yes 18778 18779# The else clause should only fire when bootstrapping the 18780# libtool distribution, otherwise you forgot to ship ltmain.sh 18781# with your package, and you will get complaints that there are 18782# no rules to generate ltmain.sh. 18783if test -f "$ltmain"; then 18784 # See if we are running on zsh, and set the options which allow our commands through 18785 # without removal of \ escapes. 18786 if test -n "${ZSH_VERSION+set}" ; then 18787 setopt NO_GLOB_SUBST 18788 fi 18789 # Now quote all the things that may contain metacharacters while being 18790 # careful not to overquote the AC_SUBSTed values. We take copies of the 18791 # variables and quote the copies for generation of the libtool script. 18792 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18793 SED SHELL STRIP \ 18794 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18795 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18796 deplibs_check_method reload_flag reload_cmds need_locks \ 18797 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18798 lt_cv_sys_global_symbol_to_c_name_address \ 18799 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18800 old_postinstall_cmds old_postuninstall_cmds \ 18801 compiler_RC \ 18802 CC_RC \ 18803 LD_RC \ 18804 lt_prog_compiler_wl_RC \ 18805 lt_prog_compiler_pic_RC \ 18806 lt_prog_compiler_static_RC \ 18807 lt_prog_compiler_no_builtin_flag_RC \ 18808 export_dynamic_flag_spec_RC \ 18809 thread_safe_flag_spec_RC \ 18810 whole_archive_flag_spec_RC \ 18811 enable_shared_with_static_runtimes_RC \ 18812 old_archive_cmds_RC \ 18813 old_archive_from_new_cmds_RC \ 18814 predep_objects_RC \ 18815 postdep_objects_RC \ 18816 predeps_RC \ 18817 postdeps_RC \ 18818 compiler_lib_search_path_RC \ 18819 archive_cmds_RC \ 18820 archive_expsym_cmds_RC \ 18821 postinstall_cmds_RC \ 18822 postuninstall_cmds_RC \ 18823 old_archive_from_expsyms_cmds_RC \ 18824 allow_undefined_flag_RC \ 18825 no_undefined_flag_RC \ 18826 export_symbols_cmds_RC \ 18827 hardcode_libdir_flag_spec_RC \ 18828 hardcode_libdir_flag_spec_ld_RC \ 18829 hardcode_libdir_separator_RC \ 18830 hardcode_automatic_RC \ 18831 module_cmds_RC \ 18832 module_expsym_cmds_RC \ 18833 lt_cv_prog_compiler_c_o_RC \ 18834 exclude_expsyms_RC \ 18835 include_expsyms_RC; do 18836 18837 case $var in 18838 old_archive_cmds_RC | \ 18839 old_archive_from_new_cmds_RC | \ 18840 archive_cmds_RC | \ 18841 archive_expsym_cmds_RC | \ 18842 module_cmds_RC | \ 18843 module_expsym_cmds_RC | \ 18844 old_archive_from_expsyms_cmds_RC | \ 18845 export_symbols_cmds_RC | \ 18846 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18847 postinstall_cmds | postuninstall_cmds | \ 18848 old_postinstall_cmds | old_postuninstall_cmds | \ 18849 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18850 # Double-quote double-evaled strings. 18851 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18852 ;; 18853 *) 18854 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18855 ;; 18856 esac 18857 done 18858 18859 case $lt_echo in 18860 *'\$0 --fallback-echo"') 18861 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18862 ;; 18863 esac 18864 18865cfgfile="$ofile" 18866 18867 cat <<__EOF__ >> "$cfgfile" 18868# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18869 18870# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18871 18872# Shell to use when invoking shell scripts. 18873SHELL=$lt_SHELL 18874 18875# Whether or not to build shared libraries. 18876build_libtool_libs=$enable_shared 18877 18878# Whether or not to build static libraries. 18879build_old_libs=$enable_static 18880 18881# Whether or not to add -lc for building shared libraries. 18882build_libtool_need_lc=$archive_cmds_need_lc_RC 18883 18884# Whether or not to disallow shared libs when runtime libs are static 18885allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18886 18887# Whether or not to optimize for fast installation. 18888fast_install=$enable_fast_install 18889 18890# The host system. 18891host_alias=$host_alias 18892host=$host 18893host_os=$host_os 18894 18895# The build system. 18896build_alias=$build_alias 18897build=$build 18898build_os=$build_os 18899 18900# An echo program that does not interpret backslashes. 18901echo=$lt_echo 18902 18903# The archiver. 18904AR=$lt_AR 18905AR_FLAGS=$lt_AR_FLAGS 18906 18907# A C compiler. 18908LTCC=$lt_LTCC 18909 18910# LTCC compiler flags. 18911LTCFLAGS=$lt_LTCFLAGS 18912 18913# A language-specific compiler. 18914CC=$lt_compiler_RC 18915 18916# Is the compiler the GNU C compiler? 18917with_gcc=$GCC_RC 18918 18919# An ERE matcher. 18920EGREP=$lt_EGREP 18921 18922# The linker used to build libraries. 18923LD=$lt_LD_RC 18924 18925# Whether we need hard or soft links. 18926LN_S=$lt_LN_S 18927 18928# A BSD-compatible nm program. 18929NM=$lt_NM 18930 18931# A symbol stripping program 18932STRIP=$lt_STRIP 18933 18934# Used to examine libraries when file_magic_cmd begins "file" 18935MAGIC_CMD=$MAGIC_CMD 18936 18937# Used on cygwin: DLL creation program. 18938DLLTOOL="$DLLTOOL" 18939 18940# Used on cygwin: object dumper. 18941OBJDUMP="$OBJDUMP" 18942 18943# Used on cygwin: assembler. 18944AS="$AS" 18945 18946# The name of the directory that contains temporary libtool files. 18947objdir=$objdir 18948 18949# How to create reloadable object files. 18950reload_flag=$lt_reload_flag 18951reload_cmds=$lt_reload_cmds 18952 18953# How to pass a linker flag through the compiler. 18954wl=$lt_lt_prog_compiler_wl_RC 18955 18956# Object file suffix (normally "o"). 18957objext="$ac_objext" 18958 18959# Old archive suffix (normally "a"). 18960libext="$libext" 18961 18962# Shared library suffix (normally ".so"). 18963shrext_cmds='$shrext_cmds' 18964 18965# Executable file suffix (normally ""). 18966exeext="$exeext" 18967 18968# Additional compiler flags for building library objects. 18969pic_flag=$lt_lt_prog_compiler_pic_RC 18970pic_mode=$pic_mode 18971 18972# What is the maximum length of a command? 18973max_cmd_len=$lt_cv_sys_max_cmd_len 18974 18975# Does compiler simultaneously support -c and -o options? 18976compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18977 18978# Must we lock files when doing compilation? 18979need_locks=$lt_need_locks 18980 18981# Do we need the lib prefix for modules? 18982need_lib_prefix=$need_lib_prefix 18983 18984# Do we need a version for libraries? 18985need_version=$need_version 18986 18987# Whether dlopen is supported. 18988dlopen_support=$enable_dlopen 18989 18990# Whether dlopen of programs is supported. 18991dlopen_self=$enable_dlopen_self 18992 18993# Whether dlopen of statically linked programs is supported. 18994dlopen_self_static=$enable_dlopen_self_static 18995 18996# Compiler flag to prevent dynamic linking. 18997link_static_flag=$lt_lt_prog_compiler_static_RC 18998 18999# Compiler flag to turn off builtin functions. 19000no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19001 19002# Compiler flag to allow reflexive dlopens. 19003export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19004 19005# Compiler flag to generate shared objects directly from archives. 19006whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19007 19008# Compiler flag to generate thread-safe objects. 19009thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19010 19011# Library versioning type. 19012version_type=$version_type 19013 19014# Format of library name prefix. 19015libname_spec=$lt_libname_spec 19016 19017# List of archive names. First name is the real one, the rest are links. 19018# The last name is the one that the linker finds with -lNAME. 19019library_names_spec=$lt_library_names_spec 19020 19021# The coded name of the library, if different from the real name. 19022soname_spec=$lt_soname_spec 19023 19024# Commands used to build and install an old-style archive. 19025RANLIB=$lt_RANLIB 19026old_archive_cmds=$lt_old_archive_cmds_RC 19027old_postinstall_cmds=$lt_old_postinstall_cmds 19028old_postuninstall_cmds=$lt_old_postuninstall_cmds 19029 19030# Create an old-style archive from a shared archive. 19031old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19032 19033# Create a temporary old-style archive to link instead of a shared archive. 19034old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19035 19036# Commands used to build and install a shared archive. 19037archive_cmds=$lt_archive_cmds_RC 19038archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19039postinstall_cmds=$lt_postinstall_cmds 19040postuninstall_cmds=$lt_postuninstall_cmds 19041 19042# Commands used to build a loadable module (assumed same as above if empty) 19043module_cmds=$lt_module_cmds_RC 19044module_expsym_cmds=$lt_module_expsym_cmds_RC 19045 19046# Commands to strip libraries. 19047old_striplib=$lt_old_striplib 19048striplib=$lt_striplib 19049 19050# Dependencies to place before the objects being linked to create a 19051# shared library. 19052predep_objects=$lt_predep_objects_RC 19053 19054# Dependencies to place after the objects being linked to create a 19055# shared library. 19056postdep_objects=$lt_postdep_objects_RC 19057 19058# Dependencies to place before the objects being linked to create a 19059# shared library. 19060predeps=$lt_predeps_RC 19061 19062# Dependencies to place after the objects being linked to create a 19063# shared library. 19064postdeps=$lt_postdeps_RC 19065 19066# The library search path used internally by the compiler when linking 19067# a shared library. 19068compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19069 19070# Method to check whether dependent libraries are shared objects. 19071deplibs_check_method=$lt_deplibs_check_method 19072 19073# Command to use when deplibs_check_method == file_magic. 19074file_magic_cmd=$lt_file_magic_cmd 19075 19076# Flag that allows shared libraries with undefined symbols to be built. 19077allow_undefined_flag=$lt_allow_undefined_flag_RC 19078 19079# Flag that forces no undefined symbols. 19080no_undefined_flag=$lt_no_undefined_flag_RC 19081 19082# Commands used to finish a libtool library installation in a directory. 19083finish_cmds=$lt_finish_cmds 19084 19085# Same as above, but a single script fragment to be evaled but not shown. 19086finish_eval=$lt_finish_eval 19087 19088# Take the output of nm and produce a listing of raw symbols and C names. 19089global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19090 19091# Transform the output of nm in a proper C declaration 19092global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19093 19094# Transform the output of nm in a C name address pair 19095global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19096 19097# This is the shared library runtime path variable. 19098runpath_var=$runpath_var 19099 19100# This is the shared library path variable. 19101shlibpath_var=$shlibpath_var 19102 19103# Is shlibpath searched before the hard-coded library search path? 19104shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19105 19106# How to hardcode a shared library path into an executable. 19107hardcode_action=$hardcode_action_RC 19108 19109# Whether we should hardcode library paths into libraries. 19110hardcode_into_libs=$hardcode_into_libs 19111 19112# Flag to hardcode \$libdir into a binary during linking. 19113# This must work even if \$libdir does not exist. 19114hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19115 19116# If ld is used when linking, flag to hardcode \$libdir into 19117# a binary during linking. This must work even if \$libdir does 19118# not exist. 19119hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19120 19121# Whether we need a single -rpath flag with a separated argument. 19122hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19123 19124# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19125# resulting binary. 19126hardcode_direct=$hardcode_direct_RC 19127 19128# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19129# resulting binary. 19130hardcode_minus_L=$hardcode_minus_L_RC 19131 19132# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19133# the resulting binary. 19134hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19135 19136# Set to yes if building a shared library automatically hardcodes DIR into the library 19137# and all subsequent libraries and executables linked against it. 19138hardcode_automatic=$hardcode_automatic_RC 19139 19140# Variables whose values should be saved in libtool wrapper scripts and 19141# restored at relink time. 19142variables_saved_for_relink="$variables_saved_for_relink" 19143 19144# Whether libtool must link a program against all its dependency libraries. 19145link_all_deplibs=$link_all_deplibs_RC 19146 19147# Compile-time system search path for libraries 19148sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19149 19150# Run-time system search path for libraries 19151sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19152 19153# Fix the shell variable \$srcfile for the compiler. 19154fix_srcfile_path="$fix_srcfile_path_RC" 19155 19156# Set to yes if exported symbols are required. 19157always_export_symbols=$always_export_symbols_RC 19158 19159# The commands to list exported symbols. 19160export_symbols_cmds=$lt_export_symbols_cmds_RC 19161 19162# The commands to extract the exported symbol list from a shared archive. 19163extract_expsyms_cmds=$lt_extract_expsyms_cmds 19164 19165# Symbols that should not be listed in the preloaded symbols. 19166exclude_expsyms=$lt_exclude_expsyms_RC 19167 19168# Symbols that must always be exported. 19169include_expsyms=$lt_include_expsyms_RC 19170 19171# ### END LIBTOOL TAG CONFIG: $tagname 19172 19173__EOF__ 19174 19175 19176else 19177 # If there is no Makefile yet, we rely on a make rule to execute 19178 # `config.status --recheck' to rerun these tests and create the 19179 # libtool script then. 19180 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19181 if test -f "$ltmain_in"; then 19182 test -f Makefile && make "$ltmain" 19183 fi 19184fi 19185 19186 19187ac_ext=c 19188ac_cpp='$CPP $CPPFLAGS' 19189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19191ac_compiler_gnu=$ac_cv_c_compiler_gnu 19192 19193CC="$lt_save_CC" 19194 19195 ;; 19196 19197 *) 19198 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19199echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19200 { (exit 1); exit 1; }; } 19201 ;; 19202 esac 19203 19204 # Append the new tag name to the list of available tags. 19205 if test -n "$tagname" ; then 19206 available_tags="$available_tags $tagname" 19207 fi 19208 fi 19209 done 19210 IFS="$lt_save_ifs" 19211 19212 # Now substitute the updated list of available tags. 19213 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19214 mv "${ofile}T" "$ofile" 19215 chmod +x "$ofile" 19216 else 19217 rm -f "${ofile}T" 19218 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19219echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19220 { (exit 1); exit 1; }; } 19221 fi 19222fi 19223 19224 19225 19226# This can be used to rebuild libtool when needed 19227LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19228 19229# Always use our own libtool. 19230LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19231 19232# Prevent multiple expansion 19233 19234 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254# Check for dependencies 19255 19256 19257if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19258 if test -n "$ac_tool_prefix"; then 19259 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19260set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19261{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19263if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19264 echo $ECHO_N "(cached) $ECHO_C" >&6 19265else 19266 case $PKG_CONFIG in 19267 [\\/]* | ?:[\\/]*) 19268 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19269 ;; 19270 *) 19271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19272for as_dir in $PATH 19273do 19274 IFS=$as_save_IFS 19275 test -z "$as_dir" && as_dir=. 19276 for ac_exec_ext in '' $ac_executable_extensions; do 19277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19278 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19280 break 2 19281 fi 19282done 19283done 19284IFS=$as_save_IFS 19285 19286 ;; 19287esac 19288fi 19289PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19290if test -n "$PKG_CONFIG"; then 19291 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19292echo "${ECHO_T}$PKG_CONFIG" >&6; } 19293else 19294 { echo "$as_me:$LINENO: result: no" >&5 19295echo "${ECHO_T}no" >&6; } 19296fi 19297 19298 19299fi 19300if test -z "$ac_cv_path_PKG_CONFIG"; then 19301 ac_pt_PKG_CONFIG=$PKG_CONFIG 19302 # Extract the first word of "pkg-config", so it can be a program name with args. 19303set dummy pkg-config; ac_word=$2 19304{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19306if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19307 echo $ECHO_N "(cached) $ECHO_C" >&6 19308else 19309 case $ac_pt_PKG_CONFIG in 19310 [\\/]* | ?:[\\/]*) 19311 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19312 ;; 19313 *) 19314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19315for as_dir in $PATH 19316do 19317 IFS=$as_save_IFS 19318 test -z "$as_dir" && as_dir=. 19319 for ac_exec_ext in '' $ac_executable_extensions; do 19320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19321 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19323 break 2 19324 fi 19325done 19326done 19327IFS=$as_save_IFS 19328 19329 ;; 19330esac 19331fi 19332ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19333if test -n "$ac_pt_PKG_CONFIG"; then 19334 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19335echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 19336else 19337 { echo "$as_me:$LINENO: result: no" >&5 19338echo "${ECHO_T}no" >&6; } 19339fi 19340 19341 if test "x$ac_pt_PKG_CONFIG" = x; then 19342 PKG_CONFIG="" 19343 else 19344 case $cross_compiling:$ac_tool_warned in 19345yes:) 19346{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19347whose name does not start with the host triplet. If you think this 19348configuration is useful to you, please write to autoconf@gnu.org." >&5 19349echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19350whose name does not start with the host triplet. If you think this 19351configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19352ac_tool_warned=yes ;; 19353esac 19354 PKG_CONFIG=$ac_pt_PKG_CONFIG 19355 fi 19356else 19357 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19358fi 19359 19360fi 19361if test -n "$PKG_CONFIG"; then 19362 _pkg_min_version=0.9.0 19363 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19364echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 19365 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19366 { echo "$as_me:$LINENO: result: yes" >&5 19367echo "${ECHO_T}yes" >&6; } 19368 else 19369 { echo "$as_me:$LINENO: result: no" >&5 19370echo "${ECHO_T}no" >&6; } 19371 PKG_CONFIG="" 19372 fi 19373 19374fi 19375 19376pkg_failed=no 19377{ echo "$as_me:$LINENO: checking for XSCRNSAVER" >&5 19378echo $ECHO_N "checking for XSCRNSAVER... $ECHO_C" >&6; } 19379 19380if test -n "$PKG_CONFIG"; then 19381 if test -n "$PKG_CONFIG" && \ 19382 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.1\"") >&5 19383 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.1") 2>&5 19384 ac_status=$? 19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19386 (exit $ac_status); }; then 19387 pkg_cv_XSCRNSAVER_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto scrnsaverproto >= 1.1" 2>/dev/null` 19388else 19389 pkg_failed=yes 19390fi 19391else 19392 pkg_failed=untried 19393fi 19394if test -n "$PKG_CONFIG"; then 19395 if test -n "$PKG_CONFIG" && \ 19396 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto scrnsaverproto >= 1.1\"") >&5 19397 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto scrnsaverproto >= 1.1") 2>&5 19398 ac_status=$? 19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19400 (exit $ac_status); }; then 19401 pkg_cv_XSCRNSAVER_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto scrnsaverproto >= 1.1" 2>/dev/null` 19402else 19403 pkg_failed=yes 19404fi 19405else 19406 pkg_failed=untried 19407fi 19408 19409if test $pkg_failed = yes; then 19410 XSCRNSAVER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xext xextproto scrnsaverproto >= 1.1"` 19411 # Put the nasty error message in config.log where it belongs 19412 echo "$XSCRNSAVER_PKG_ERRORS" 1>&5 19413 19414 { { echo "$as_me:$LINENO: error: Package requirements (x11 xext xextproto scrnsaverproto >= 1.1) were not met. 19415Consider adjusting the PKG_CONFIG_PATH environment variable if you 19416installed software in a non-standard prefix. 19417 19418Alternatively you may set the XSCRNSAVER_CFLAGS and XSCRNSAVER_LIBS environment variables 19419to avoid the need to call pkg-config. See the pkg-config man page for 19420more details." >&5 19421echo "$as_me: error: Package requirements (x11 xext xextproto scrnsaverproto >= 1.1) were not met. 19422Consider adjusting the PKG_CONFIG_PATH environment variable if you 19423installed software in a non-standard prefix. 19424 19425Alternatively you may set the XSCRNSAVER_CFLAGS and XSCRNSAVER_LIBS environment variables 19426to avoid the need to call pkg-config. See the pkg-config man page for 19427more details." >&2;} 19428 { (exit 1); exit 1; }; } 19429elif test $pkg_failed = untried; then 19430 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 19431is in your PATH or set the PKG_CONFIG environment variable to the full 19432path to pkg-config. 19433 19434Alternatively you may set the XSCRNSAVER_CFLAGS and XSCRNSAVER_LIBS environment variables 19435to avoid the need to call pkg-config. See the pkg-config man page for 19436more details. 19437 19438To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19439See \`config.log' for more details." >&5 19440echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 19441is in your PATH or set the PKG_CONFIG environment variable to the full 19442path to pkg-config. 19443 19444Alternatively you may set the XSCRNSAVER_CFLAGS and XSCRNSAVER_LIBS environment variables 19445to avoid the need to call pkg-config. See the pkg-config man page for 19446more details. 19447 19448To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19449See \`config.log' for more details." >&2;} 19450 { (exit 1); exit 1; }; } 19451else 19452 XSCRNSAVER_CFLAGS=$pkg_cv_XSCRNSAVER_CFLAGS 19453 XSCRNSAVER_LIBS=$pkg_cv_XSCRNSAVER_LIBS 19454 { echo "$as_me:$LINENO: result: yes" >&5 19455echo "${ECHO_T}yes" >&6; } 19456 : 19457fi 19458 19459 19460 19461 19462 19463 19464# Allow checking code with lint, sparse, etc. 19465 19466# Check whether --with-lint was given. 19467if test "${with_lint+set}" = set; then 19468 withval=$with_lint; use_lint=$withval 19469else 19470 use_lint=no 19471fi 19472 19473if test "x$use_lint" = "xyes" ; then 19474 LINT="lint" 19475else 19476 LINT="$use_lint" 19477fi 19478if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 19479 case $LINT in 19480 lint|*/lint) 19481 case $host_os in 19482 solaris*) 19483 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 19484 ;; 19485 esac 19486 ;; 19487 esac 19488fi 19489 19490 19491 19492 if test x$LINT != xno; then 19493 LINT_TRUE= 19494 LINT_FALSE='#' 19495else 19496 LINT_TRUE='#' 19497 LINT_FALSE= 19498fi 19499 19500 19501 19502 19503 19504# Build lint "library" for more indepth checks of programs calling this library 19505# Check whether --enable-lint-library was given. 19506if test "${enable_lint_library+set}" = set; then 19507 enableval=$enable_lint_library; make_lint_lib=$enableval 19508else 19509 make_lint_lib=no 19510fi 19511 19512if test "x$make_lint_lib" != "xno" ; then 19513 if test "x$LINT" = "xno" ; then 19514 { { echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5 19515echo "$as_me: error: Cannot make lint library without --with-lint" >&2;} 19516 { (exit 1); exit 1; }; } 19517 fi 19518 if test "x$make_lint_lib" = "xyes" ; then 19519 LINTLIB=llib-lXss.ln 19520 else 19521 LINTLIB=$make_lint_lib 19522 fi 19523fi 19524 19525 if test x$make_lint_lib != xno; then 19526 MAKE_LINT_LIB_TRUE= 19527 MAKE_LINT_LIB_FALSE='#' 19528else 19529 MAKE_LINT_LIB_TRUE='#' 19530 MAKE_LINT_LIB_FALSE= 19531fi 19532 19533 19534 19535 19536 19537# Check whether --enable-malloc0returnsnull was given. 19538if test "${enable_malloc0returnsnull+set}" = set; then 19539 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 19540else 19541 MALLOC_ZERO_RETURNS_NULL=auto 19542fi 19543 19544 19545{ echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5 19546echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6; } 19547if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 19548 if test "$cross_compiling" = yes; then 19549 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 19550See \`config.log' for more details." >&5 19551echo "$as_me: error: cannot run test program while cross compiling 19552See \`config.log' for more details." >&2;} 19553 { (exit 1); exit 1; }; } 19554else 19555 cat >conftest.$ac_ext <<_ACEOF 19556 19557char *malloc(); 19558char *realloc(); 19559char *calloc(); 19560main() { 19561 char *m0, *r0, *c0, *p; 19562 m0 = malloc(0); 19563 p = malloc(10); 19564 r0 = realloc(p,0); 19565 c0 = calloc(0); 19566 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 19567} 19568_ACEOF 19569rm -f conftest$ac_exeext 19570if { (ac_try="$ac_link" 19571case "(($ac_try" in 19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19573 *) ac_try_echo=$ac_try;; 19574esac 19575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19576 (eval "$ac_link") 2>&5 19577 ac_status=$? 19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19580 { (case "(($ac_try" in 19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19582 *) ac_try_echo=$ac_try;; 19583esac 19584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19585 (eval "$ac_try") 2>&5 19586 ac_status=$? 19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19588 (exit $ac_status); }; }; then 19589 MALLOC_ZERO_RETURNS_NULL=yes 19590else 19591 echo "$as_me: program exited with status $ac_status" >&5 19592echo "$as_me: failed program was:" >&5 19593sed 's/^/| /' conftest.$ac_ext >&5 19594 19595( exit $ac_status ) 19596MALLOC_ZERO_RETURNS_NULL=no 19597fi 19598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19599fi 19600 19601 19602fi 19603{ echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5 19604echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6; } 19605 19606if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 19607 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 19608 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 19609 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 19610else 19611 MALLOC_ZERO_CFLAGS="" 19612 XMALLOC_ZERO_CFLAGS="" 19613 XTMALLOC_ZERO_CFLAGS="" 19614fi 19615 19616 19617 19618 19619 19620 19621 19622 19623if test x$APP_MAN_SUFFIX = x ; then 19624 APP_MAN_SUFFIX=1 19625fi 19626if test x$APP_MAN_DIR = x ; then 19627 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19628fi 19629 19630if test x$LIB_MAN_SUFFIX = x ; then 19631 LIB_MAN_SUFFIX=3 19632fi 19633if test x$LIB_MAN_DIR = x ; then 19634 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19635fi 19636 19637if test x$FILE_MAN_SUFFIX = x ; then 19638 case $host_os in 19639 solaris*) FILE_MAN_SUFFIX=4 ;; 19640 *) FILE_MAN_SUFFIX=5 ;; 19641 esac 19642fi 19643if test x$FILE_MAN_DIR = x ; then 19644 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19645fi 19646 19647if test x$MISC_MAN_SUFFIX = x ; then 19648 case $host_os in 19649 solaris*) MISC_MAN_SUFFIX=5 ;; 19650 *) MISC_MAN_SUFFIX=7 ;; 19651 esac 19652fi 19653if test x$MISC_MAN_DIR = x ; then 19654 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19655fi 19656 19657if test x$DRIVER_MAN_SUFFIX = x ; then 19658 case $host_os in 19659 solaris*) DRIVER_MAN_SUFFIX=7 ;; 19660 *) DRIVER_MAN_SUFFIX=4 ;; 19661 esac 19662fi 19663if test x$DRIVER_MAN_DIR = x ; then 19664 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19665fi 19666 19667if test x$ADMIN_MAN_SUFFIX = x ; then 19668 case $host_os in 19669 solaris*) ADMIN_MAN_SUFFIX=1m ;; 19670 *) ADMIN_MAN_SUFFIX=8 ;; 19671 esac 19672fi 19673if test x$ADMIN_MAN_DIR = x ; then 19674 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19675fi 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693# Check whether --with-release-version was given. 19694if test "${with_release_version+set}" = set; then 19695 withval=$with_release_version; RELEASE_VERSION="$withval" 19696else 19697 RELEASE_VERSION="" 19698fi 19699 19700 if test "x$RELEASE_VERSION" != "x"; then 19701 PACKAGE="$PACKAGE-$RELEASE_VERSION" 19702 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 19703 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 19704echo "$as_me: Building with package name set to $PACKAGE" >&6;} 19705 fi 19706 19707cat >>confdefs.h <<_ACEOF 19708#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19709_ACEOF 19710 19711 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19712 if test "x$PVM" = "x"; then 19713 PVM="0" 19714 fi 19715 19716cat >>confdefs.h <<_ACEOF 19717#define PACKAGE_VERSION_MINOR $PVM 19718_ACEOF 19719 19720 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19721 if test "x$PVP" = "x"; then 19722 PVP="0" 19723 fi 19724 19725cat >>confdefs.h <<_ACEOF 19726#define PACKAGE_VERSION_PATCHLEVEL $PVP 19727_ACEOF 19728 19729 19730 19731ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xscrnsaver.pc" 19732 19733cat >confcache <<\_ACEOF 19734# This file is a shell script that caches the results of configure 19735# tests run on this system so they can be shared between configure 19736# scripts and configure runs, see configure's option --config-cache. 19737# It is not useful on other systems. If it contains results you don't 19738# want to keep, you may remove or edit it. 19739# 19740# config.status only pays attention to the cache file if you give it 19741# the --recheck option to rerun configure. 19742# 19743# `ac_cv_env_foo' variables (set or unset) will be overridden when 19744# loading this file, other *unset* `ac_cv_foo' will be assigned the 19745# following values. 19746 19747_ACEOF 19748 19749# The following way of writing the cache mishandles newlines in values, 19750# but we know of no workaround that is simple, portable, and efficient. 19751# So, we kill variables containing newlines. 19752# Ultrix sh set writes to stderr and can't be redirected directly, 19753# and sets the high bit in the cache file unless we assign to the vars. 19754( 19755 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19756 eval ac_val=\$$ac_var 19757 case $ac_val in #( 19758 *${as_nl}*) 19759 case $ac_var in #( 19760 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 19761echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 19762 esac 19763 case $ac_var in #( 19764 _ | IFS | as_nl) ;; #( 19765 *) $as_unset $ac_var ;; 19766 esac ;; 19767 esac 19768 done 19769 19770 (set) 2>&1 | 19771 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19772 *${as_nl}ac_space=\ *) 19773 # `set' does not quote correctly, so add quotes (double-quote 19774 # substitution turns \\\\ into \\, and sed turns \\ into \). 19775 sed -n \ 19776 "s/'/'\\\\''/g; 19777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19778 ;; #( 19779 *) 19780 # `set' quotes correctly as required by POSIX, so do not add quotes. 19781 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19782 ;; 19783 esac | 19784 sort 19785) | 19786 sed ' 19787 /^ac_cv_env_/b end 19788 t clear 19789 :clear 19790 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19791 t end 19792 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19793 :end' >>confcache 19794if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19795 if test -w "$cache_file"; then 19796 test "x$cache_file" != "x/dev/null" && 19797 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 19798echo "$as_me: updating cache $cache_file" >&6;} 19799 cat confcache >$cache_file 19800 else 19801 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 19802echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19803 fi 19804fi 19805rm -f confcache 19806 19807test "x$prefix" = xNONE && prefix=$ac_default_prefix 19808# Let make expand exec_prefix. 19809test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19810 19811DEFS=-DHAVE_CONFIG_H 19812 19813ac_libobjs= 19814ac_ltlibobjs= 19815for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19816 # 1. Remove the extension, and $U if already installed. 19817 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19818 ac_i=`echo "$ac_i" | sed "$ac_script"` 19819 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19820 # will be set to the directory where LIBOBJS objects are built. 19821 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19822 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 19823done 19824LIBOBJS=$ac_libobjs 19825 19826LTLIBOBJS=$ac_ltlibobjs 19827 19828 19829if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19830 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 19831Usually this means the macro was only invoked conditionally." >&5 19832echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 19833Usually this means the macro was only invoked conditionally." >&2;} 19834 { (exit 1); exit 1; }; } 19835fi 19836if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19837 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 19838Usually this means the macro was only invoked conditionally." >&5 19839echo "$as_me: error: conditional \"AMDEP\" was never defined. 19840Usually this means the macro was only invoked conditionally." >&2;} 19841 { (exit 1); exit 1; }; } 19842fi 19843if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19844 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 19845Usually this means the macro was only invoked conditionally." >&5 19846echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 19847Usually this means the macro was only invoked conditionally." >&2;} 19848 { (exit 1); exit 1; }; } 19849fi 19850if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19851 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 19852Usually this means the macro was only invoked conditionally." >&5 19853echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 19854Usually this means the macro was only invoked conditionally." >&2;} 19855 { (exit 1); exit 1; }; } 19856fi 19857if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 19858 { { echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined. 19859Usually this means the macro was only invoked conditionally." >&5 19860echo "$as_me: error: conditional \"LINT\" was never defined. 19861Usually this means the macro was only invoked conditionally." >&2;} 19862 { (exit 1); exit 1; }; } 19863fi 19864if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 19865 { { echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined. 19866Usually this means the macro was only invoked conditionally." >&5 19867echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined. 19868Usually this means the macro was only invoked conditionally." >&2;} 19869 { (exit 1); exit 1; }; } 19870fi 19871 19872: ${CONFIG_STATUS=./config.status} 19873ac_clean_files_save=$ac_clean_files 19874ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19875{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19876echo "$as_me: creating $CONFIG_STATUS" >&6;} 19877cat >$CONFIG_STATUS <<_ACEOF 19878#! $SHELL 19879# Generated by $as_me. 19880# Run this file to recreate the current configuration. 19881# Compiler output produced by configure, useful for debugging 19882# configure, is in config.log if it exists. 19883 19884debug=false 19885ac_cs_recheck=false 19886ac_cs_silent=false 19887SHELL=\${CONFIG_SHELL-$SHELL} 19888_ACEOF 19889 19890cat >>$CONFIG_STATUS <<\_ACEOF 19891## --------------------- ## 19892## M4sh Initialization. ## 19893## --------------------- ## 19894 19895# Be more Bourne compatible 19896DUALCASE=1; export DUALCASE # for MKS sh 19897if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19898 emulate sh 19899 NULLCMD=: 19900 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19901 # is contrary to our usage. Disable this feature. 19902 alias -g '${1+"$@"}'='"$@"' 19903 setopt NO_GLOB_SUBST 19904else 19905 case `(set -o) 2>/dev/null` in 19906 *posix*) set -o posix ;; 19907esac 19908 19909fi 19910 19911 19912 19913 19914# PATH needs CR 19915# Avoid depending upon Character Ranges. 19916as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19917as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19918as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19919as_cr_digits='0123456789' 19920as_cr_alnum=$as_cr_Letters$as_cr_digits 19921 19922# The user is always right. 19923if test "${PATH_SEPARATOR+set}" != set; then 19924 echo "#! /bin/sh" >conf$$.sh 19925 echo "exit 0" >>conf$$.sh 19926 chmod +x conf$$.sh 19927 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19928 PATH_SEPARATOR=';' 19929 else 19930 PATH_SEPARATOR=: 19931 fi 19932 rm -f conf$$.sh 19933fi 19934 19935# Support unset when possible. 19936if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19937 as_unset=unset 19938else 19939 as_unset=false 19940fi 19941 19942 19943# IFS 19944# We need space, tab and new line, in precisely that order. Quoting is 19945# there to prevent editors from complaining about space-tab. 19946# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19947# splitting by setting IFS to empty value.) 19948as_nl=' 19949' 19950IFS=" "" $as_nl" 19951 19952# Find who we are. Look in the path if we contain no directory separator. 19953case $0 in 19954 *[\\/]* ) as_myself=$0 ;; 19955 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19956for as_dir in $PATH 19957do 19958 IFS=$as_save_IFS 19959 test -z "$as_dir" && as_dir=. 19960 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19961done 19962IFS=$as_save_IFS 19963 19964 ;; 19965esac 19966# We did not find ourselves, most probably we were run as `sh COMMAND' 19967# in which case we are not to be found in the path. 19968if test "x$as_myself" = x; then 19969 as_myself=$0 19970fi 19971if test ! -f "$as_myself"; then 19972 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19973 { (exit 1); exit 1; } 19974fi 19975 19976# Work around bugs in pre-3.0 UWIN ksh. 19977for as_var in ENV MAIL MAILPATH 19978do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 19979done 19980PS1='$ ' 19981PS2='> ' 19982PS4='+ ' 19983 19984# NLS nuisances. 19985for as_var in \ 19986 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 19987 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 19988 LC_TELEPHONE LC_TIME 19989do 19990 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 19991 eval $as_var=C; export $as_var 19992 else 19993 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 19994 fi 19995done 19996 19997# Required to use basename. 19998if expr a : '\(a\)' >/dev/null 2>&1 && 19999 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20000 as_expr=expr 20001else 20002 as_expr=false 20003fi 20004 20005if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20006 as_basename=basename 20007else 20008 as_basename=false 20009fi 20010 20011 20012# Name of the executable. 20013as_me=`$as_basename -- "$0" || 20014$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20015 X"$0" : 'X\(//\)$' \| \ 20016 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20017echo X/"$0" | 20018 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20019 s//\1/ 20020 q 20021 } 20022 /^X\/\(\/\/\)$/{ 20023 s//\1/ 20024 q 20025 } 20026 /^X\/\(\/\).*/{ 20027 s//\1/ 20028 q 20029 } 20030 s/.*/./; q'` 20031 20032# CDPATH. 20033$as_unset CDPATH 20034 20035 20036 20037 as_lineno_1=$LINENO 20038 as_lineno_2=$LINENO 20039 test "x$as_lineno_1" != "x$as_lineno_2" && 20040 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 20041 20042 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20043 # uniformly replaced by the line number. The first 'sed' inserts a 20044 # line-number line after each line using $LINENO; the second 'sed' 20045 # does the real work. The second script uses 'N' to pair each 20046 # line-number line with the line containing $LINENO, and appends 20047 # trailing '-' during substitution so that $LINENO is not a special 20048 # case at line end. 20049 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20050 # scripts with optimization help from Paolo Bonzini. Blame Lee 20051 # E. McMahon (1931-1989) for sed's syntax. :-) 20052 sed -n ' 20053 p 20054 /[$]LINENO/= 20055 ' <$as_myself | 20056 sed ' 20057 s/[$]LINENO.*/&-/ 20058 t lineno 20059 b 20060 :lineno 20061 N 20062 :loop 20063 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 20064 t loop 20065 s/-\n.*// 20066 ' >$as_me.lineno && 20067 chmod +x "$as_me.lineno" || 20068 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 20069 { (exit 1); exit 1; }; } 20070 20071 # Don't try to exec as it changes $[0], causing all sort of problems 20072 # (the dirname of $[0] is not the place where we might find the 20073 # original and so on. Autoconf is especially sensitive to this). 20074 . "./$as_me.lineno" 20075 # Exit status is that of the last command. 20076 exit 20077} 20078 20079 20080if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20081 as_dirname=dirname 20082else 20083 as_dirname=false 20084fi 20085 20086ECHO_C= ECHO_N= ECHO_T= 20087case `echo -n x` in 20088-n*) 20089 case `echo 'x\c'` in 20090 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20091 *) ECHO_C='\c';; 20092 esac;; 20093*) 20094 ECHO_N='-n';; 20095esac 20096 20097if expr a : '\(a\)' >/dev/null 2>&1 && 20098 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20099 as_expr=expr 20100else 20101 as_expr=false 20102fi 20103 20104rm -f conf$$ conf$$.exe conf$$.file 20105if test -d conf$$.dir; then 20106 rm -f conf$$.dir/conf$$.file 20107else 20108 rm -f conf$$.dir 20109 mkdir conf$$.dir 20110fi 20111echo >conf$$.file 20112if ln -s conf$$.file conf$$ 2>/dev/null; then 20113 as_ln_s='ln -s' 20114 # ... but there are two gotchas: 20115 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20116 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20117 # In both cases, we have to default to `cp -p'. 20118 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20119 as_ln_s='cp -p' 20120elif ln conf$$.file conf$$ 2>/dev/null; then 20121 as_ln_s=ln 20122else 20123 as_ln_s='cp -p' 20124fi 20125rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20126rmdir conf$$.dir 2>/dev/null 20127 20128if mkdir -p . 2>/dev/null; then 20129 as_mkdir_p=: 20130else 20131 test -d ./-p && rmdir ./-p 20132 as_mkdir_p=false 20133fi 20134 20135if test -x / >/dev/null 2>&1; then 20136 as_test_x='test -x' 20137else 20138 if ls -dL / >/dev/null 2>&1; then 20139 as_ls_L_option=L 20140 else 20141 as_ls_L_option= 20142 fi 20143 as_test_x=' 20144 eval sh -c '\'' 20145 if test -d "$1"; then 20146 test -d "$1/."; 20147 else 20148 case $1 in 20149 -*)set "./$1";; 20150 esac; 20151 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 20152 ???[sx]*):;;*)false;;esac;fi 20153 '\'' sh 20154 ' 20155fi 20156as_executable_p=$as_test_x 20157 20158# Sed expression to map a string onto a valid CPP name. 20159as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20160 20161# Sed expression to map a string onto a valid variable name. 20162as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20163 20164 20165exec 6>&1 20166 20167# Save the log message, to keep $[0] and so on meaningful, and to 20168# report actual input values of CONFIG_FILES etc. instead of their 20169# values after options handling. 20170ac_log=" 20171This file was extended by libXScrnSaver $as_me 1.1.3, which was 20172generated by GNU Autoconf 2.61. Invocation command line was 20173 20174 CONFIG_FILES = $CONFIG_FILES 20175 CONFIG_HEADERS = $CONFIG_HEADERS 20176 CONFIG_LINKS = $CONFIG_LINKS 20177 CONFIG_COMMANDS = $CONFIG_COMMANDS 20178 $ $0 $@ 20179 20180on `(hostname || uname -n) 2>/dev/null | sed 1q` 20181" 20182 20183_ACEOF 20184 20185cat >>$CONFIG_STATUS <<_ACEOF 20186# Files that config.status was made for. 20187config_files="$ac_config_files" 20188config_headers="$ac_config_headers" 20189config_commands="$ac_config_commands" 20190 20191_ACEOF 20192 20193cat >>$CONFIG_STATUS <<\_ACEOF 20194ac_cs_usage="\ 20195\`$as_me' instantiates files from templates according to the 20196current configuration. 20197 20198Usage: $0 [OPTIONS] [FILE]... 20199 20200 -h, --help print this help, then exit 20201 -V, --version print version number and configuration settings, then exit 20202 -q, --quiet do not print progress messages 20203 -d, --debug don't remove temporary files 20204 --recheck update $as_me by reconfiguring in the same conditions 20205 --file=FILE[:TEMPLATE] 20206 instantiate the configuration file FILE 20207 --header=FILE[:TEMPLATE] 20208 instantiate the configuration header FILE 20209 20210Configuration files: 20211$config_files 20212 20213Configuration headers: 20214$config_headers 20215 20216Configuration commands: 20217$config_commands 20218 20219Report bugs to <bug-autoconf@gnu.org>." 20220 20221_ACEOF 20222cat >>$CONFIG_STATUS <<_ACEOF 20223ac_cs_version="\\ 20224libXScrnSaver config.status 1.1.3 20225configured by $0, generated by GNU Autoconf 2.61, 20226 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 20227 20228Copyright (C) 2006 Free Software Foundation, Inc. 20229This config.status script is free software; the Free Software Foundation 20230gives unlimited permission to copy, distribute and modify it." 20231 20232ac_pwd='$ac_pwd' 20233srcdir='$srcdir' 20234INSTALL='$INSTALL' 20235MKDIR_P='$MKDIR_P' 20236_ACEOF 20237 20238cat >>$CONFIG_STATUS <<\_ACEOF 20239# If no file are specified by the user, then we need to provide default 20240# value. By we need to know if files were specified by the user. 20241ac_need_defaults=: 20242while test $# != 0 20243do 20244 case $1 in 20245 --*=*) 20246 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20247 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20248 ac_shift=: 20249 ;; 20250 *) 20251 ac_option=$1 20252 ac_optarg=$2 20253 ac_shift=shift 20254 ;; 20255 esac 20256 20257 case $ac_option in 20258 # Handling of the options. 20259 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20260 ac_cs_recheck=: ;; 20261 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20262 echo "$ac_cs_version"; exit ;; 20263 --debug | --debu | --deb | --de | --d | -d ) 20264 debug=: ;; 20265 --file | --fil | --fi | --f ) 20266 $ac_shift 20267 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20268 ac_need_defaults=false;; 20269 --header | --heade | --head | --hea ) 20270 $ac_shift 20271 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20272 ac_need_defaults=false;; 20273 --he | --h) 20274 # Conflict between --help and --header 20275 { echo "$as_me: error: ambiguous option: $1 20276Try \`$0 --help' for more information." >&2 20277 { (exit 1); exit 1; }; };; 20278 --help | --hel | -h ) 20279 echo "$ac_cs_usage"; exit ;; 20280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20281 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20282 ac_cs_silent=: ;; 20283 20284 # This is an error. 20285 -*) { echo "$as_me: error: unrecognized option: $1 20286Try \`$0 --help' for more information." >&2 20287 { (exit 1); exit 1; }; } ;; 20288 20289 *) ac_config_targets="$ac_config_targets $1" 20290 ac_need_defaults=false ;; 20291 20292 esac 20293 shift 20294done 20295 20296ac_configure_extra_args= 20297 20298if $ac_cs_silent; then 20299 exec 6>/dev/null 20300 ac_configure_extra_args="$ac_configure_extra_args --silent" 20301fi 20302 20303_ACEOF 20304cat >>$CONFIG_STATUS <<_ACEOF 20305if \$ac_cs_recheck; then 20306 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20307 CONFIG_SHELL=$SHELL 20308 export CONFIG_SHELL 20309 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20310fi 20311 20312_ACEOF 20313cat >>$CONFIG_STATUS <<\_ACEOF 20314exec 5>>config.log 20315{ 20316 echo 20317 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20318## Running $as_me. ## 20319_ASBOX 20320 echo "$ac_log" 20321} >&5 20322 20323_ACEOF 20324cat >>$CONFIG_STATUS <<_ACEOF 20325# 20326# INIT-COMMANDS 20327# 20328AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20329 20330_ACEOF 20331 20332cat >>$CONFIG_STATUS <<\_ACEOF 20333 20334# Handling of arguments. 20335for ac_config_target in $ac_config_targets 20336do 20337 case $ac_config_target in 20338 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20339 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20340 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20341 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20342 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20343 "xscrnsaver.pc") CONFIG_FILES="$CONFIG_FILES xscrnsaver.pc" ;; 20344 20345 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20346echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20347 { (exit 1); exit 1; }; };; 20348 esac 20349done 20350 20351 20352# If the user did not use the arguments to specify the items to instantiate, 20353# then the envvar interface is used. Set only those that are not. 20354# We use the long form for the default assignment because of an extremely 20355# bizarre bug on SunOS 4.1.3. 20356if $ac_need_defaults; then 20357 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20358 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20359 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20360fi 20361 20362# Have a temporary directory for convenience. Make it in the build tree 20363# simply because there is no reason against having it here, and in addition, 20364# creating and moving files from /tmp can sometimes cause problems. 20365# Hook for its removal unless debugging. 20366# Note that there is a small window in which the directory will not be cleaned: 20367# after its creation but before its name has been assigned to `$tmp'. 20368$debug || 20369{ 20370 tmp= 20371 trap 'exit_status=$? 20372 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 20373' 0 20374 trap '{ (exit 1); exit 1; }' 1 2 13 15 20375} 20376# Create a (secure) tmp directory for tmp files. 20377 20378{ 20379 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20380 test -n "$tmp" && test -d "$tmp" 20381} || 20382{ 20383 tmp=./conf$$-$RANDOM 20384 (umask 077 && mkdir "$tmp") 20385} || 20386{ 20387 echo "$me: cannot create a temporary directory in ." >&2 20388 { (exit 1); exit 1; } 20389} 20390 20391# 20392# Set up the sed scripts for CONFIG_FILES section. 20393# 20394 20395# No need to generate the scripts if there are no CONFIG_FILES. 20396# This happens for instance when ./config.status config.h 20397if test -n "$CONFIG_FILES"; then 20398 20399_ACEOF 20400 20401 20402 20403ac_delim='%!_!# ' 20404for ac_last_try in false false false false false :; do 20405 cat >conf$$subs.sed <<_ACEOF 20406SHELL!$SHELL$ac_delim 20407PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 20408PACKAGE_NAME!$PACKAGE_NAME$ac_delim 20409PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 20410PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 20411PACKAGE_STRING!$PACKAGE_STRING$ac_delim 20412PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 20413exec_prefix!$exec_prefix$ac_delim 20414prefix!$prefix$ac_delim 20415program_transform_name!$program_transform_name$ac_delim 20416bindir!$bindir$ac_delim 20417sbindir!$sbindir$ac_delim 20418libexecdir!$libexecdir$ac_delim 20419datarootdir!$datarootdir$ac_delim 20420datadir!$datadir$ac_delim 20421sysconfdir!$sysconfdir$ac_delim 20422sharedstatedir!$sharedstatedir$ac_delim 20423localstatedir!$localstatedir$ac_delim 20424includedir!$includedir$ac_delim 20425oldincludedir!$oldincludedir$ac_delim 20426docdir!$docdir$ac_delim 20427infodir!$infodir$ac_delim 20428htmldir!$htmldir$ac_delim 20429dvidir!$dvidir$ac_delim 20430pdfdir!$pdfdir$ac_delim 20431psdir!$psdir$ac_delim 20432libdir!$libdir$ac_delim 20433localedir!$localedir$ac_delim 20434mandir!$mandir$ac_delim 20435DEFS!$DEFS$ac_delim 20436ECHO_C!$ECHO_C$ac_delim 20437ECHO_N!$ECHO_N$ac_delim 20438ECHO_T!$ECHO_T$ac_delim 20439LIBS!$LIBS$ac_delim 20440build_alias!$build_alias$ac_delim 20441host_alias!$host_alias$ac_delim 20442target_alias!$target_alias$ac_delim 20443INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 20444INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 20445INSTALL_DATA!$INSTALL_DATA$ac_delim 20446am__isrc!$am__isrc$ac_delim 20447CYGPATH_W!$CYGPATH_W$ac_delim 20448PACKAGE!$PACKAGE$ac_delim 20449VERSION!$VERSION$ac_delim 20450ACLOCAL!$ACLOCAL$ac_delim 20451AUTOCONF!$AUTOCONF$ac_delim 20452AUTOMAKE!$AUTOMAKE$ac_delim 20453AUTOHEADER!$AUTOHEADER$ac_delim 20454MAKEINFO!$MAKEINFO$ac_delim 20455install_sh!$install_sh$ac_delim 20456STRIP!$STRIP$ac_delim 20457INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 20458mkdir_p!$mkdir_p$ac_delim 20459AWK!$AWK$ac_delim 20460SET_MAKE!$SET_MAKE$ac_delim 20461am__leading_dot!$am__leading_dot$ac_delim 20462AMTAR!$AMTAR$ac_delim 20463am__tar!$am__tar$ac_delim 20464am__untar!$am__untar$ac_delim 20465MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 20466MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 20467MAINT!$MAINT$ac_delim 20468CC!$CC$ac_delim 20469CFLAGS!$CFLAGS$ac_delim 20470LDFLAGS!$LDFLAGS$ac_delim 20471CPPFLAGS!$CPPFLAGS$ac_delim 20472ac_ct_CC!$ac_ct_CC$ac_delim 20473EXEEXT!$EXEEXT$ac_delim 20474OBJEXT!$OBJEXT$ac_delim 20475DEPDIR!$DEPDIR$ac_delim 20476am__include!$am__include$ac_delim 20477am__quote!$am__quote$ac_delim 20478AMDEP_TRUE!$AMDEP_TRUE$ac_delim 20479AMDEP_FALSE!$AMDEP_FALSE$ac_delim 20480AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 20481CCDEPMODE!$CCDEPMODE$ac_delim 20482am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 20483am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 20484build!$build$ac_delim 20485build_cpu!$build_cpu$ac_delim 20486build_vendor!$build_vendor$ac_delim 20487build_os!$build_os$ac_delim 20488host!$host$ac_delim 20489host_cpu!$host_cpu$ac_delim 20490host_vendor!$host_vendor$ac_delim 20491host_os!$host_os$ac_delim 20492GREP!$GREP$ac_delim 20493EGREP!$EGREP$ac_delim 20494LN_S!$LN_S$ac_delim 20495ECHO!$ECHO$ac_delim 20496AR!$AR$ac_delim 20497RANLIB!$RANLIB$ac_delim 20498CPP!$CPP$ac_delim 20499CXX!$CXX$ac_delim 20500CXXFLAGS!$CXXFLAGS$ac_delim 20501ac_ct_CXX!$ac_ct_CXX$ac_delim 20502CXXDEPMODE!$CXXDEPMODE$ac_delim 20503_ACEOF 20504 20505 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 20506 break 20507 elif $ac_last_try; then 20508 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20509echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20510 { (exit 1); exit 1; }; } 20511 else 20512 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20513 fi 20514done 20515 20516ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20517if test -n "$ac_eof"; then 20518 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20519 ac_eof=`expr $ac_eof + 1` 20520fi 20521 20522cat >>$CONFIG_STATUS <<_ACEOF 20523cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 20524/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20525_ACEOF 20526sed ' 20527s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20528s/^/s,@/; s/!/@,|#_!!_#|/ 20529:n 20530t n 20531s/'"$ac_delim"'$/,g/; t 20532s/$/\\/; p 20533N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20534' >>$CONFIG_STATUS <conf$$subs.sed 20535rm -f conf$$subs.sed 20536cat >>$CONFIG_STATUS <<_ACEOF 20537CEOF$ac_eof 20538_ACEOF 20539 20540 20541ac_delim='%!_!# ' 20542for ac_last_try in false false false false false :; do 20543 cat >conf$$subs.sed <<_ACEOF 20544am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 20545am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 20546CXXCPP!$CXXCPP$ac_delim 20547F77!$F77$ac_delim 20548FFLAGS!$FFLAGS$ac_delim 20549ac_ct_F77!$ac_ct_F77$ac_delim 20550LIBTOOL!$LIBTOOL$ac_delim 20551PKG_CONFIG!$PKG_CONFIG$ac_delim 20552XSCRNSAVER_CFLAGS!$XSCRNSAVER_CFLAGS$ac_delim 20553XSCRNSAVER_LIBS!$XSCRNSAVER_LIBS$ac_delim 20554LINT!$LINT$ac_delim 20555LINT_FLAGS!$LINT_FLAGS$ac_delim 20556LINT_TRUE!$LINT_TRUE$ac_delim 20557LINT_FALSE!$LINT_FALSE$ac_delim 20558LINTLIB!$LINTLIB$ac_delim 20559MAKE_LINT_LIB_TRUE!$MAKE_LINT_LIB_TRUE$ac_delim 20560MAKE_LINT_LIB_FALSE!$MAKE_LINT_LIB_FALSE$ac_delim 20561MALLOC_ZERO_CFLAGS!$MALLOC_ZERO_CFLAGS$ac_delim 20562XMALLOC_ZERO_CFLAGS!$XMALLOC_ZERO_CFLAGS$ac_delim 20563XTMALLOC_ZERO_CFLAGS!$XTMALLOC_ZERO_CFLAGS$ac_delim 20564APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim 20565LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim 20566FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim 20567MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim 20568DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim 20569ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim 20570APP_MAN_DIR!$APP_MAN_DIR$ac_delim 20571LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim 20572FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim 20573MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim 20574DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim 20575ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim 20576LIBOBJS!$LIBOBJS$ac_delim 20577LTLIBOBJS!$LTLIBOBJS$ac_delim 20578_ACEOF 20579 20580 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 34; then 20581 break 20582 elif $ac_last_try; then 20583 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20584echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20585 { (exit 1); exit 1; }; } 20586 else 20587 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20588 fi 20589done 20590 20591ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20592if test -n "$ac_eof"; then 20593 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20594 ac_eof=`expr $ac_eof + 1` 20595fi 20596 20597cat >>$CONFIG_STATUS <<_ACEOF 20598cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 20599/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 20600_ACEOF 20601sed ' 20602s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20603s/^/s,@/; s/!/@,|#_!!_#|/ 20604:n 20605t n 20606s/'"$ac_delim"'$/,g/; t 20607s/$/\\/; p 20608N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20609' >>$CONFIG_STATUS <conf$$subs.sed 20610rm -f conf$$subs.sed 20611cat >>$CONFIG_STATUS <<_ACEOF 20612:end 20613s/|#_!!_#|//g 20614CEOF$ac_eof 20615_ACEOF 20616 20617 20618# VPATH may cause trouble with some makes, so we remove $(srcdir), 20619# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20620# trailing colons and then remove the whole line if VPATH becomes empty 20621# (actually we leave an empty line to preserve line numbers). 20622if test "x$srcdir" = x.; then 20623 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20624s/:*\$(srcdir):*/:/ 20625s/:*\${srcdir}:*/:/ 20626s/:*@srcdir@:*/:/ 20627s/^\([^=]*=[ ]*\):*/\1/ 20628s/:*$// 20629s/^[^=]*=[ ]*$// 20630}' 20631fi 20632 20633cat >>$CONFIG_STATUS <<\_ACEOF 20634fi # test -n "$CONFIG_FILES" 20635 20636 20637for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 20638do 20639 case $ac_tag in 20640 :[FHLC]) ac_mode=$ac_tag; continue;; 20641 esac 20642 case $ac_mode$ac_tag in 20643 :[FHL]*:*);; 20644 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 20645echo "$as_me: error: Invalid tag $ac_tag." >&2;} 20646 { (exit 1); exit 1; }; };; 20647 :[FH]-) ac_tag=-:-;; 20648 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20649 esac 20650 ac_save_IFS=$IFS 20651 IFS=: 20652 set x $ac_tag 20653 IFS=$ac_save_IFS 20654 shift 20655 ac_file=$1 20656 shift 20657 20658 case $ac_mode in 20659 :L) ac_source=$1;; 20660 :[FH]) 20661 ac_file_inputs= 20662 for ac_f 20663 do 20664 case $ac_f in 20665 -) ac_f="$tmp/stdin";; 20666 *) # Look for the file first in the build tree, then in the source tree 20667 # (if the path is not absolute). The absolute path cannot be DOS-style, 20668 # because $ac_f cannot contain `:'. 20669 test -f "$ac_f" || 20670 case $ac_f in 20671 [\\/$]*) false;; 20672 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20673 esac || 20674 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 20675echo "$as_me: error: cannot find input file: $ac_f" >&2;} 20676 { (exit 1); exit 1; }; };; 20677 esac 20678 ac_file_inputs="$ac_file_inputs $ac_f" 20679 done 20680 20681 # Let's still pretend it is `configure' which instantiates (i.e., don't 20682 # use $as_me), people would be surprised to read: 20683 # /* config.h. Generated by config.status. */ 20684 configure_input="Generated from "`IFS=: 20685 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 20686 if test x"$ac_file" != x-; then 20687 configure_input="$ac_file. $configure_input" 20688 { echo "$as_me:$LINENO: creating $ac_file" >&5 20689echo "$as_me: creating $ac_file" >&6;} 20690 fi 20691 20692 case $ac_tag in 20693 *:-:* | *:-) cat >"$tmp/stdin";; 20694 esac 20695 ;; 20696 esac 20697 20698 ac_dir=`$as_dirname -- "$ac_file" || 20699$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20700 X"$ac_file" : 'X\(//\)[^/]' \| \ 20701 X"$ac_file" : 'X\(//\)$' \| \ 20702 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20703echo X"$ac_file" | 20704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20705 s//\1/ 20706 q 20707 } 20708 /^X\(\/\/\)[^/].*/{ 20709 s//\1/ 20710 q 20711 } 20712 /^X\(\/\/\)$/{ 20713 s//\1/ 20714 q 20715 } 20716 /^X\(\/\).*/{ 20717 s//\1/ 20718 q 20719 } 20720 s/.*/./; q'` 20721 { as_dir="$ac_dir" 20722 case $as_dir in #( 20723 -*) as_dir=./$as_dir;; 20724 esac 20725 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20726 as_dirs= 20727 while :; do 20728 case $as_dir in #( 20729 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 20730 *) as_qdir=$as_dir;; 20731 esac 20732 as_dirs="'$as_qdir' $as_dirs" 20733 as_dir=`$as_dirname -- "$as_dir" || 20734$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20735 X"$as_dir" : 'X\(//\)[^/]' \| \ 20736 X"$as_dir" : 'X\(//\)$' \| \ 20737 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20738echo X"$as_dir" | 20739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20740 s//\1/ 20741 q 20742 } 20743 /^X\(\/\/\)[^/].*/{ 20744 s//\1/ 20745 q 20746 } 20747 /^X\(\/\/\)$/{ 20748 s//\1/ 20749 q 20750 } 20751 /^X\(\/\).*/{ 20752 s//\1/ 20753 q 20754 } 20755 s/.*/./; q'` 20756 test -d "$as_dir" && break 20757 done 20758 test -z "$as_dirs" || eval "mkdir $as_dirs" 20759 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 20760echo "$as_me: error: cannot create directory $as_dir" >&2;} 20761 { (exit 1); exit 1; }; }; } 20762 ac_builddir=. 20763 20764case "$ac_dir" in 20765.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20766*) 20767 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20768 # A ".." for each directory in $ac_dir_suffix. 20769 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 20770 case $ac_top_builddir_sub in 20771 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20772 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20773 esac ;; 20774esac 20775ac_abs_top_builddir=$ac_pwd 20776ac_abs_builddir=$ac_pwd$ac_dir_suffix 20777# for backward compatibility: 20778ac_top_builddir=$ac_top_build_prefix 20779 20780case $srcdir in 20781 .) # We are building in place. 20782 ac_srcdir=. 20783 ac_top_srcdir=$ac_top_builddir_sub 20784 ac_abs_top_srcdir=$ac_pwd ;; 20785 [\\/]* | ?:[\\/]* ) # Absolute name. 20786 ac_srcdir=$srcdir$ac_dir_suffix; 20787 ac_top_srcdir=$srcdir 20788 ac_abs_top_srcdir=$srcdir ;; 20789 *) # Relative name. 20790 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20791 ac_top_srcdir=$ac_top_build_prefix$srcdir 20792 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20793esac 20794ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20795 20796 20797 case $ac_mode in 20798 :F) 20799 # 20800 # CONFIG_FILE 20801 # 20802 20803 case $INSTALL in 20804 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20805 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20806 esac 20807 ac_MKDIR_P=$MKDIR_P 20808 case $MKDIR_P in 20809 [\\/$]* | ?:[\\/]* ) ;; 20810 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20811 esac 20812_ACEOF 20813 20814cat >>$CONFIG_STATUS <<\_ACEOF 20815# If the template does not know about datarootdir, expand it. 20816# FIXME: This hack should be removed a few years after 2.60. 20817ac_datarootdir_hack=; ac_datarootdir_seen= 20818 20819case `sed -n '/datarootdir/ { 20820 p 20821 q 20822} 20823/@datadir@/p 20824/@docdir@/p 20825/@infodir@/p 20826/@localedir@/p 20827/@mandir@/p 20828' $ac_file_inputs` in 20829*datarootdir*) ac_datarootdir_seen=yes;; 20830*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20831 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20832echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20833_ACEOF 20834cat >>$CONFIG_STATUS <<_ACEOF 20835 ac_datarootdir_hack=' 20836 s&@datadir@&$datadir&g 20837 s&@docdir@&$docdir&g 20838 s&@infodir@&$infodir&g 20839 s&@localedir@&$localedir&g 20840 s&@mandir@&$mandir&g 20841 s&\\\${datarootdir}&$datarootdir&g' ;; 20842esac 20843_ACEOF 20844 20845# Neutralize VPATH when `$srcdir' = `.'. 20846# Shell code in configure.ac might set extrasub. 20847# FIXME: do we really want to maintain this feature? 20848cat >>$CONFIG_STATUS <<_ACEOF 20849 sed "$ac_vpsub 20850$extrasub 20851_ACEOF 20852cat >>$CONFIG_STATUS <<\_ACEOF 20853:t 20854/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20855s&@configure_input@&$configure_input&;t t 20856s&@top_builddir@&$ac_top_builddir_sub&;t t 20857s&@srcdir@&$ac_srcdir&;t t 20858s&@abs_srcdir@&$ac_abs_srcdir&;t t 20859s&@top_srcdir@&$ac_top_srcdir&;t t 20860s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20861s&@builddir@&$ac_builddir&;t t 20862s&@abs_builddir@&$ac_abs_builddir&;t t 20863s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20864s&@INSTALL@&$ac_INSTALL&;t t 20865s&@MKDIR_P@&$ac_MKDIR_P&;t t 20866$ac_datarootdir_hack 20867" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 20868 20869test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20870 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 20871 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 20872 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20873which seems to be undefined. Please make sure it is defined." >&5 20874echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20875which seems to be undefined. Please make sure it is defined." >&2;} 20876 20877 rm -f "$tmp/stdin" 20878 case $ac_file in 20879 -) cat "$tmp/out"; rm -f "$tmp/out";; 20880 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 20881 esac 20882 ;; 20883 :H) 20884 # 20885 # CONFIG_HEADER 20886 # 20887_ACEOF 20888 20889# Transform confdefs.h into a sed script `conftest.defines', that 20890# substitutes the proper values into config.h.in to produce config.h. 20891rm -f conftest.defines conftest.tail 20892# First, append a space to every undef/define line, to ease matching. 20893echo 's/$/ /' >conftest.defines 20894# Then, protect against being on the right side of a sed subst, or in 20895# an unquoted here document, in config.status. If some macros were 20896# called several times there might be several #defines for the same 20897# symbol, which is useless. But do not sort them, since the last 20898# AC_DEFINE must be honored. 20899ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20900# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 20901# NAME is the cpp macro being defined, VALUE is the value it is being given. 20902# PARAMS is the parameter list in the macro definition--in most cases, it's 20903# just an empty string. 20904ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 20905ac_dB='\\)[ (].*,\\1define\\2' 20906ac_dC=' ' 20907ac_dD=' ,' 20908 20909uniq confdefs.h | 20910 sed -n ' 20911 t rset 20912 :rset 20913 s/^[ ]*#[ ]*define[ ][ ]*// 20914 t ok 20915 d 20916 :ok 20917 s/[\\&,]/\\&/g 20918 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 20919 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 20920 ' >>conftest.defines 20921 20922# Remove the space that was appended to ease matching. 20923# Then replace #undef with comments. This is necessary, for 20924# example, in the case of _POSIX_SOURCE, which is predefined and required 20925# on some systems where configure will not decide to define it. 20926# (The regexp can be short, since the line contains either #define or #undef.) 20927echo 's/ $// 20928s,^[ #]*u.*,/* & */,' >>conftest.defines 20929 20930# Break up conftest.defines: 20931ac_max_sed_lines=50 20932 20933# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 20934# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 20935# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 20936# et cetera. 20937ac_in='$ac_file_inputs' 20938ac_out='"$tmp/out1"' 20939ac_nxt='"$tmp/out2"' 20940 20941while : 20942do 20943 # Write a here document: 20944 cat >>$CONFIG_STATUS <<_ACEOF 20945 # First, check the format of the line: 20946 cat >"\$tmp/defines.sed" <<\\CEOF 20947/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 20948/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 20949b 20950:def 20951_ACEOF 20952 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 20953 echo 'CEOF 20954 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 20955 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 20956 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 20957 grep . conftest.tail >/dev/null || break 20958 rm -f conftest.defines 20959 mv conftest.tail conftest.defines 20960done 20961rm -f conftest.defines conftest.tail 20962 20963echo "ac_result=$ac_in" >>$CONFIG_STATUS 20964cat >>$CONFIG_STATUS <<\_ACEOF 20965 if test x"$ac_file" != x-; then 20966 echo "/* $configure_input */" >"$tmp/config.h" 20967 cat "$ac_result" >>"$tmp/config.h" 20968 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 20969 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 20970echo "$as_me: $ac_file is unchanged" >&6;} 20971 else 20972 rm -f $ac_file 20973 mv "$tmp/config.h" $ac_file 20974 fi 20975 else 20976 echo "/* $configure_input */" 20977 cat "$ac_result" 20978 fi 20979 rm -f "$tmp/out12" 20980# Compute $ac_file's index in $config_headers. 20981_am_stamp_count=1 20982for _am_header in $config_headers :; do 20983 case $_am_header in 20984 $ac_file | $ac_file:* ) 20985 break ;; 20986 * ) 20987 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20988 esac 20989done 20990echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 20991$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20992 X$ac_file : 'X\(//\)[^/]' \| \ 20993 X$ac_file : 'X\(//\)$' \| \ 20994 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 20995echo X$ac_file | 20996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20997 s//\1/ 20998 q 20999 } 21000 /^X\(\/\/\)[^/].*/{ 21001 s//\1/ 21002 q 21003 } 21004 /^X\(\/\/\)$/{ 21005 s//\1/ 21006 q 21007 } 21008 /^X\(\/\).*/{ 21009 s//\1/ 21010 q 21011 } 21012 s/.*/./; q'`/stamp-h$_am_stamp_count 21013 ;; 21014 21015 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 21016echo "$as_me: executing $ac_file commands" >&6;} 21017 ;; 21018 esac 21019 21020 21021 case $ac_file$ac_mode in 21022 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21023 # Strip MF so we end up with the name of the file. 21024 mf=`echo "$mf" | sed -e 's/:.*$//'` 21025 # Check whether this is an Automake generated Makefile or not. 21026 # We used to match only the files named `Makefile.in', but 21027 # some people rename them; so instead we look at the file content. 21028 # Grep'ing the first line is not enough: some people post-process 21029 # each Makefile.in and add a new line on top of each file to say so. 21030 # Grep'ing the whole file is not good either: AIX grep has a line 21031 # limit of 2048, but all sed's we know have understand at least 4000. 21032 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 21033 dirpart=`$as_dirname -- "$mf" || 21034$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21035 X"$mf" : 'X\(//\)[^/]' \| \ 21036 X"$mf" : 'X\(//\)$' \| \ 21037 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21038echo X"$mf" | 21039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21040 s//\1/ 21041 q 21042 } 21043 /^X\(\/\/\)[^/].*/{ 21044 s//\1/ 21045 q 21046 } 21047 /^X\(\/\/\)$/{ 21048 s//\1/ 21049 q 21050 } 21051 /^X\(\/\).*/{ 21052 s//\1/ 21053 q 21054 } 21055 s/.*/./; q'` 21056 else 21057 continue 21058 fi 21059 # Extract the definition of DEPDIR, am__include, and am__quote 21060 # from the Makefile without running `make'. 21061 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21062 test -z "$DEPDIR" && continue 21063 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21064 test -z "am__include" && continue 21065 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21066 # When using ansi2knr, U may be empty or an underscore; expand it 21067 U=`sed -n 's/^U = //p' < "$mf"` 21068 # Find all dependency output files, they are included files with 21069 # $(DEPDIR) in their names. We invoke sed twice because it is the 21070 # simplest approach to changing $(DEPDIR) to its actual value in the 21071 # expansion. 21072 for file in `sed -n " 21073 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21074 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21075 # Make sure the directory exists. 21076 test -f "$dirpart/$file" && continue 21077 fdir=`$as_dirname -- "$file" || 21078$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21079 X"$file" : 'X\(//\)[^/]' \| \ 21080 X"$file" : 'X\(//\)$' \| \ 21081 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21082echo X"$file" | 21083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21084 s//\1/ 21085 q 21086 } 21087 /^X\(\/\/\)[^/].*/{ 21088 s//\1/ 21089 q 21090 } 21091 /^X\(\/\/\)$/{ 21092 s//\1/ 21093 q 21094 } 21095 /^X\(\/\).*/{ 21096 s//\1/ 21097 q 21098 } 21099 s/.*/./; q'` 21100 { as_dir=$dirpart/$fdir 21101 case $as_dir in #( 21102 -*) as_dir=./$as_dir;; 21103 esac 21104 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21105 as_dirs= 21106 while :; do 21107 case $as_dir in #( 21108 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21109 *) as_qdir=$as_dir;; 21110 esac 21111 as_dirs="'$as_qdir' $as_dirs" 21112 as_dir=`$as_dirname -- "$as_dir" || 21113$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21114 X"$as_dir" : 'X\(//\)[^/]' \| \ 21115 X"$as_dir" : 'X\(//\)$' \| \ 21116 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21117echo X"$as_dir" | 21118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21119 s//\1/ 21120 q 21121 } 21122 /^X\(\/\/\)[^/].*/{ 21123 s//\1/ 21124 q 21125 } 21126 /^X\(\/\/\)$/{ 21127 s//\1/ 21128 q 21129 } 21130 /^X\(\/\).*/{ 21131 s//\1/ 21132 q 21133 } 21134 s/.*/./; q'` 21135 test -d "$as_dir" && break 21136 done 21137 test -z "$as_dirs" || eval "mkdir $as_dirs" 21138 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21139echo "$as_me: error: cannot create directory $as_dir" >&2;} 21140 { (exit 1); exit 1; }; }; } 21141 # echo "creating $dirpart/$file" 21142 echo '# dummy' > "$dirpart/$file" 21143 done 21144done 21145 ;; 21146 21147 esac 21148done # for ac_tag 21149 21150 21151{ (exit 0); exit 0; } 21152_ACEOF 21153chmod +x $CONFIG_STATUS 21154ac_clean_files=$ac_clean_files_save 21155 21156 21157# configure is writing to config.log, and then calls config.status. 21158# config.status does its own redirection, appending to config.log. 21159# Unfortunately, on DOS this fails, as config.log is still kept open 21160# by configure, so config.status won't be able to write to it; its 21161# output is simply discarded. So we exec the FD to /dev/null, 21162# effectively closing config.log, so it can be properly (re)opened and 21163# appended to by config.status. When coming back to configure, we 21164# need to make the FD available again. 21165if test "$no_create" != yes; then 21166 ac_cs_success=: 21167 ac_config_status_args= 21168 test "$silent" = yes && 21169 ac_config_status_args="$ac_config_status_args --quiet" 21170 exec 5>/dev/null 21171 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21172 exec 5>>config.log 21173 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21174 # would make configure fail if this is the last instruction. 21175 $ac_cs_success || { (exit 1); exit 1; } 21176fi 21177 21178