configure revision 7914d74b
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for libXcursor 1.1.9. 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='libXcursor' 730PACKAGE_TARNAME='libXcursor' 731PACKAGE_VERSION='1.1.9' 732PACKAGE_STRING='libXcursor 1.1.9' 733PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 734 735ac_unique_file="Makefile.am" 736# Factoring default headers for most tests. 737ac_includes_default="\ 738#include <stdio.h> 739#ifdef HAVE_SYS_TYPES_H 740# include <sys/types.h> 741#endif 742#ifdef HAVE_SYS_STAT_H 743# include <sys/stat.h> 744#endif 745#ifdef STDC_HEADERS 746# include <stdlib.h> 747# include <stddef.h> 748#else 749# ifdef HAVE_STDLIB_H 750# include <stdlib.h> 751# endif 752#endif 753#ifdef HAVE_STRING_H 754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 755# include <memory.h> 756# endif 757# include <string.h> 758#endif 759#ifdef HAVE_STRINGS_H 760# include <strings.h> 761#endif 762#ifdef HAVE_INTTYPES_H 763# include <inttypes.h> 764#endif 765#ifdef HAVE_STDINT_H 766# include <stdint.h> 767#endif 768#ifdef HAVE_UNISTD_H 769# include <unistd.h> 770#endif" 771 772ac_subst_vars='SHELL 773PATH_SEPARATOR 774PACKAGE_NAME 775PACKAGE_TARNAME 776PACKAGE_VERSION 777PACKAGE_STRING 778PACKAGE_BUGREPORT 779exec_prefix 780prefix 781program_transform_name 782bindir 783sbindir 784libexecdir 785datarootdir 786datadir 787sysconfdir 788sharedstatedir 789localstatedir 790includedir 791oldincludedir 792docdir 793infodir 794htmldir 795dvidir 796pdfdir 797psdir 798libdir 799localedir 800mandir 801DEFS 802ECHO_C 803ECHO_N 804ECHO_T 805LIBS 806build_alias 807host_alias 808target_alias 809INSTALL_PROGRAM 810INSTALL_SCRIPT 811INSTALL_DATA 812am__isrc 813CYGPATH_W 814PACKAGE 815VERSION 816ACLOCAL 817AUTOCONF 818AUTOMAKE 819AUTOHEADER 820MAKEINFO 821install_sh 822STRIP 823INSTALL_STRIP_PROGRAM 824mkdir_p 825AWK 826SET_MAKE 827am__leading_dot 828AMTAR 829am__tar 830am__untar 831MAINTAINER_MODE_TRUE 832MAINTAINER_MODE_FALSE 833MAINT 834CC 835CFLAGS 836LDFLAGS 837CPPFLAGS 838ac_ct_CC 839EXEEXT 840OBJEXT 841DEPDIR 842am__include 843am__quote 844AMDEP_TRUE 845AMDEP_FALSE 846AMDEPBACKSLASH 847CCDEPMODE 848am__fastdepCC_TRUE 849am__fastdepCC_FALSE 850build 851build_cpu 852build_vendor 853build_os 854host 855host_cpu 856host_vendor 857host_os 858GREP 859EGREP 860LN_S 861ECHO 862AR 863RANLIB 864CPP 865CXX 866CXXFLAGS 867ac_ct_CXX 868CXXDEPMODE 869am__fastdepCXX_TRUE 870am__fastdepCXX_FALSE 871CXXCPP 872F77 873FFLAGS 874ac_ct_F77 875LIBTOOL 876ICONDIR 877XCURSORPATH 878XCURSORPATH_LIST 879PKG_CONFIG 880XCURSOR_CFLAGS 881XCURSOR_LIBS 882APP_MAN_SUFFIX 883LIB_MAN_SUFFIX 884FILE_MAN_SUFFIX 885MISC_MAN_SUFFIX 886DRIVER_MAN_SUFFIX 887ADMIN_MAN_SUFFIX 888APP_MAN_DIR 889LIB_MAN_DIR 890FILE_MAN_DIR 891MISC_MAN_DIR 892DRIVER_MAN_DIR 893ADMIN_MAN_DIR 894LINT 895LINT_FLAGS 896LINT_TRUE 897LINT_FALSE 898LIBOBJS 899LTLIBOBJS' 900ac_subst_files='' 901 ac_precious_vars='build_alias 902host_alias 903target_alias 904CC 905CFLAGS 906LDFLAGS 907LIBS 908CPPFLAGS 909CPP 910CXX 911CXXFLAGS 912CCC 913CXXCPP 914F77 915FFLAGS 916PKG_CONFIG 917XCURSOR_CFLAGS 918XCURSOR_LIBS' 919 920 921# Initialize some variables set by options. 922ac_init_help= 923ac_init_version=false 924# The variables have the same names as the options, with 925# dashes changed to underlines. 926cache_file=/dev/null 927exec_prefix=NONE 928no_create= 929no_recursion= 930prefix=NONE 931program_prefix=NONE 932program_suffix=NONE 933program_transform_name=s,x,x, 934silent= 935site= 936srcdir= 937verbose= 938x_includes=NONE 939x_libraries=NONE 940 941# Installation directory options. 942# These are left unexpanded so users can "make install exec_prefix=/foo" 943# and all the variables that are supposed to be based on exec_prefix 944# by default will actually change. 945# Use braces instead of parens because sh, perl, etc. also accept them. 946# (The list follows the same order as the GNU Coding Standards.) 947bindir='${exec_prefix}/bin' 948sbindir='${exec_prefix}/sbin' 949libexecdir='${exec_prefix}/libexec' 950datarootdir='${prefix}/share' 951datadir='${datarootdir}' 952sysconfdir='${prefix}/etc' 953sharedstatedir='${prefix}/com' 954localstatedir='${prefix}/var' 955includedir='${prefix}/include' 956oldincludedir='/usr/include' 957docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 958infodir='${datarootdir}/info' 959htmldir='${docdir}' 960dvidir='${docdir}' 961pdfdir='${docdir}' 962psdir='${docdir}' 963libdir='${exec_prefix}/lib' 964localedir='${datarootdir}/locale' 965mandir='${datarootdir}/man' 966 967ac_prev= 968ac_dashdash= 969for ac_option 970do 971 # If the previous option needs an argument, assign it. 972 if test -n "$ac_prev"; then 973 eval $ac_prev=\$ac_option 974 ac_prev= 975 continue 976 fi 977 978 case $ac_option in 979 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 980 *) ac_optarg=yes ;; 981 esac 982 983 # Accept the important Cygnus configure options, so we can diagnose typos. 984 985 case $ac_dashdash$ac_option in 986 --) 987 ac_dashdash=yes ;; 988 989 -bindir | --bindir | --bindi | --bind | --bin | --bi) 990 ac_prev=bindir ;; 991 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 992 bindir=$ac_optarg ;; 993 994 -build | --build | --buil | --bui | --bu) 995 ac_prev=build_alias ;; 996 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 997 build_alias=$ac_optarg ;; 998 999 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1001 ac_prev=cache_file ;; 1002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1004 cache_file=$ac_optarg ;; 1005 1006 --config-cache | -C) 1007 cache_file=config.cache ;; 1008 1009 -datadir | --datadir | --datadi | --datad) 1010 ac_prev=datadir ;; 1011 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1012 datadir=$ac_optarg ;; 1013 1014 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1015 | --dataroo | --dataro | --datar) 1016 ac_prev=datarootdir ;; 1017 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1018 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1019 datarootdir=$ac_optarg ;; 1020 1021 -disable-* | --disable-*) 1022 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1023 # Reject names that are not valid shell variable names. 1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1026 { (exit 1); exit 1; }; } 1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1028 eval enable_$ac_feature=no ;; 1029 1030 -docdir | --docdir | --docdi | --doc | --do) 1031 ac_prev=docdir ;; 1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1033 docdir=$ac_optarg ;; 1034 1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1036 ac_prev=dvidir ;; 1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1038 dvidir=$ac_optarg ;; 1039 1040 -enable-* | --enable-*) 1041 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1042 # Reject names that are not valid shell variable names. 1043 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1044 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1045 { (exit 1); exit 1; }; } 1046 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1047 eval enable_$ac_feature=\$ac_optarg ;; 1048 1049 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1050 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1051 | --exec | --exe | --ex) 1052 ac_prev=exec_prefix ;; 1053 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1054 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1055 | --exec=* | --exe=* | --ex=*) 1056 exec_prefix=$ac_optarg ;; 1057 1058 -gas | --gas | --ga | --g) 1059 # Obsolete; use --with-gas. 1060 with_gas=yes ;; 1061 1062 -help | --help | --hel | --he | -h) 1063 ac_init_help=long ;; 1064 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1065 ac_init_help=recursive ;; 1066 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1067 ac_init_help=short ;; 1068 1069 -host | --host | --hos | --ho) 1070 ac_prev=host_alias ;; 1071 -host=* | --host=* | --hos=* | --ho=*) 1072 host_alias=$ac_optarg ;; 1073 1074 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1075 ac_prev=htmldir ;; 1076 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1077 | --ht=*) 1078 htmldir=$ac_optarg ;; 1079 1080 -includedir | --includedir | --includedi | --included | --include \ 1081 | --includ | --inclu | --incl | --inc) 1082 ac_prev=includedir ;; 1083 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1084 | --includ=* | --inclu=* | --incl=* | --inc=*) 1085 includedir=$ac_optarg ;; 1086 1087 -infodir | --infodir | --infodi | --infod | --info | --inf) 1088 ac_prev=infodir ;; 1089 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1090 infodir=$ac_optarg ;; 1091 1092 -libdir | --libdir | --libdi | --libd) 1093 ac_prev=libdir ;; 1094 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1095 libdir=$ac_optarg ;; 1096 1097 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1098 | --libexe | --libex | --libe) 1099 ac_prev=libexecdir ;; 1100 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1101 | --libexe=* | --libex=* | --libe=*) 1102 libexecdir=$ac_optarg ;; 1103 1104 -localedir | --localedir | --localedi | --localed | --locale) 1105 ac_prev=localedir ;; 1106 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1107 localedir=$ac_optarg ;; 1108 1109 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1110 | --localstate | --localstat | --localsta | --localst | --locals) 1111 ac_prev=localstatedir ;; 1112 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1113 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1114 localstatedir=$ac_optarg ;; 1115 1116 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1117 ac_prev=mandir ;; 1118 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1119 mandir=$ac_optarg ;; 1120 1121 -nfp | --nfp | --nf) 1122 # Obsolete; use --without-fp. 1123 with_fp=no ;; 1124 1125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1126 | --no-cr | --no-c | -n) 1127 no_create=yes ;; 1128 1129 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1130 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1131 no_recursion=yes ;; 1132 1133 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1134 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1135 | --oldin | --oldi | --old | --ol | --o) 1136 ac_prev=oldincludedir ;; 1137 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1138 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1139 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1140 oldincludedir=$ac_optarg ;; 1141 1142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1143 ac_prev=prefix ;; 1144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1145 prefix=$ac_optarg ;; 1146 1147 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1148 | --program-pre | --program-pr | --program-p) 1149 ac_prev=program_prefix ;; 1150 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1151 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1152 program_prefix=$ac_optarg ;; 1153 1154 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1155 | --program-suf | --program-su | --program-s) 1156 ac_prev=program_suffix ;; 1157 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1158 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1159 program_suffix=$ac_optarg ;; 1160 1161 -program-transform-name | --program-transform-name \ 1162 | --program-transform-nam | --program-transform-na \ 1163 | --program-transform-n | --program-transform- \ 1164 | --program-transform | --program-transfor \ 1165 | --program-transfo | --program-transf \ 1166 | --program-trans | --program-tran \ 1167 | --progr-tra | --program-tr | --program-t) 1168 ac_prev=program_transform_name ;; 1169 -program-transform-name=* | --program-transform-name=* \ 1170 | --program-transform-nam=* | --program-transform-na=* \ 1171 | --program-transform-n=* | --program-transform-=* \ 1172 | --program-transform=* | --program-transfor=* \ 1173 | --program-transfo=* | --program-transf=* \ 1174 | --program-trans=* | --program-tran=* \ 1175 | --progr-tra=* | --program-tr=* | --program-t=*) 1176 program_transform_name=$ac_optarg ;; 1177 1178 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1179 ac_prev=pdfdir ;; 1180 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1181 pdfdir=$ac_optarg ;; 1182 1183 -psdir | --psdir | --psdi | --psd | --ps) 1184 ac_prev=psdir ;; 1185 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1186 psdir=$ac_optarg ;; 1187 1188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1189 | -silent | --silent | --silen | --sile | --sil) 1190 silent=yes ;; 1191 1192 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1193 ac_prev=sbindir ;; 1194 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1195 | --sbi=* | --sb=*) 1196 sbindir=$ac_optarg ;; 1197 1198 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1199 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1200 | --sharedst | --shareds | --shared | --share | --shar \ 1201 | --sha | --sh) 1202 ac_prev=sharedstatedir ;; 1203 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1204 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1205 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1206 | --sha=* | --sh=*) 1207 sharedstatedir=$ac_optarg ;; 1208 1209 -site | --site | --sit) 1210 ac_prev=site ;; 1211 -site=* | --site=* | --sit=*) 1212 site=$ac_optarg ;; 1213 1214 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1215 ac_prev=srcdir ;; 1216 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1217 srcdir=$ac_optarg ;; 1218 1219 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1220 | --syscon | --sysco | --sysc | --sys | --sy) 1221 ac_prev=sysconfdir ;; 1222 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1223 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1224 sysconfdir=$ac_optarg ;; 1225 1226 -target | --target | --targe | --targ | --tar | --ta | --t) 1227 ac_prev=target_alias ;; 1228 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1229 target_alias=$ac_optarg ;; 1230 1231 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1232 verbose=yes ;; 1233 1234 -version | --version | --versio | --versi | --vers | -V) 1235 ac_init_version=: ;; 1236 1237 -with-* | --with-*) 1238 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1239 # Reject names that are not valid shell variable names. 1240 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1241 { echo "$as_me: error: invalid package name: $ac_package" >&2 1242 { (exit 1); exit 1; }; } 1243 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1244 eval with_$ac_package=\$ac_optarg ;; 1245 1246 -without-* | --without-*) 1247 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1248 # Reject names that are not valid shell variable names. 1249 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1250 { echo "$as_me: error: invalid package name: $ac_package" >&2 1251 { (exit 1); exit 1; }; } 1252 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1253 eval with_$ac_package=no ;; 1254 1255 --x) 1256 # Obsolete; use --with-x. 1257 with_x=yes ;; 1258 1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1260 | --x-incl | --x-inc | --x-in | --x-i) 1261 ac_prev=x_includes ;; 1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1264 x_includes=$ac_optarg ;; 1265 1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1268 ac_prev=x_libraries ;; 1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1271 x_libraries=$ac_optarg ;; 1272 1273 -*) { echo "$as_me: error: unrecognized option: $ac_option 1274Try \`$0 --help' for more information." >&2 1275 { (exit 1); exit 1; }; } 1276 ;; 1277 1278 *=*) 1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1280 # Reject names that are not valid shell variable names. 1281 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1282 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1283 { (exit 1); exit 1; }; } 1284 eval $ac_envvar=\$ac_optarg 1285 export $ac_envvar ;; 1286 1287 *) 1288 # FIXME: should be removed in autoconf 3.0. 1289 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1291 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1292 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1293 ;; 1294 1295 esac 1296done 1297 1298if test -n "$ac_prev"; then 1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1300 { echo "$as_me: error: missing argument to $ac_option" >&2 1301 { (exit 1); exit 1; }; } 1302fi 1303 1304# Be sure to have absolute directory names. 1305for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1306 datadir sysconfdir sharedstatedir localstatedir includedir \ 1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1308 libdir localedir mandir 1309do 1310 eval ac_val=\$$ac_var 1311 case $ac_val in 1312 [\\/$]* | ?:[\\/]* ) continue;; 1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1314 esac 1315 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1316 { (exit 1); exit 1; }; } 1317done 1318 1319# There might be people who depend on the old broken behavior: `$host' 1320# used to hold the argument of --host etc. 1321# FIXME: To remove some day. 1322build=$build_alias 1323host=$host_alias 1324target=$target_alias 1325 1326# FIXME: To remove some day. 1327if test "x$host_alias" != x; then 1328 if test "x$build_alias" = x; then 1329 cross_compiling=maybe 1330 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1331 If a cross compiler is detected then cross compile mode will be used." >&2 1332 elif test "x$build_alias" != "x$host_alias"; then 1333 cross_compiling=yes 1334 fi 1335fi 1336 1337ac_tool_prefix= 1338test -n "$host_alias" && ac_tool_prefix=$host_alias- 1339 1340test "$silent" = yes && exec 6>/dev/null 1341 1342 1343ac_pwd=`pwd` && test -n "$ac_pwd" && 1344ac_ls_di=`ls -di .` && 1345ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1346 { echo "$as_me: error: Working directory cannot be determined" >&2 1347 { (exit 1); exit 1; }; } 1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1349 { echo "$as_me: error: pwd does not report name of working directory" >&2 1350 { (exit 1); exit 1; }; } 1351 1352 1353# Find the source files, if location was not specified. 1354if test -z "$srcdir"; then 1355 ac_srcdir_defaulted=yes 1356 # Try the directory containing this script, then the parent directory. 1357 ac_confdir=`$as_dirname -- "$0" || 1358$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1359 X"$0" : 'X\(//\)[^/]' \| \ 1360 X"$0" : 'X\(//\)$' \| \ 1361 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1362echo X"$0" | 1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1364 s//\1/ 1365 q 1366 } 1367 /^X\(\/\/\)[^/].*/{ 1368 s//\1/ 1369 q 1370 } 1371 /^X\(\/\/\)$/{ 1372 s//\1/ 1373 q 1374 } 1375 /^X\(\/\).*/{ 1376 s//\1/ 1377 q 1378 } 1379 s/.*/./; q'` 1380 srcdir=$ac_confdir 1381 if test ! -r "$srcdir/$ac_unique_file"; then 1382 srcdir=.. 1383 fi 1384else 1385 ac_srcdir_defaulted=no 1386fi 1387if test ! -r "$srcdir/$ac_unique_file"; then 1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1389 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1390 { (exit 1); exit 1; }; } 1391fi 1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1393ac_abs_confdir=`( 1394 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1395 { (exit 1); exit 1; }; } 1396 pwd)` 1397# When building in place, set srcdir=. 1398if test "$ac_abs_confdir" = "$ac_pwd"; then 1399 srcdir=. 1400fi 1401# Remove unnecessary trailing slashes from srcdir. 1402# Double slashes in file names in object file debugging info 1403# mess up M-x gdb in Emacs. 1404case $srcdir in 1405*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1406esac 1407for ac_var in $ac_precious_vars; do 1408 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1409 eval ac_env_${ac_var}_value=\$${ac_var} 1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1411 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1412done 1413 1414# 1415# Report the --help message. 1416# 1417if test "$ac_init_help" = "long"; then 1418 # Omit some internal or obsolete options to make the list less imposing. 1419 # This message is too long to be a string in the A/UX 3.1 sh. 1420 cat <<_ACEOF 1421\`configure' configures libXcursor 1.1.9 to adapt to many kinds of systems. 1422 1423Usage: $0 [OPTION]... [VAR=VALUE]... 1424 1425To assign environment variables (e.g., CC, CFLAGS...), specify them as 1426VAR=VALUE. See below for descriptions of some of the useful variables. 1427 1428Defaults for the options are specified in brackets. 1429 1430Configuration: 1431 -h, --help display this help and exit 1432 --help=short display options specific to this package 1433 --help=recursive display the short help of all the included packages 1434 -V, --version display version information and exit 1435 -q, --quiet, --silent do not print \`checking...' messages 1436 --cache-file=FILE cache test results in FILE [disabled] 1437 -C, --config-cache alias for \`--cache-file=config.cache' 1438 -n, --no-create do not create output files 1439 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1440 1441Installation directories: 1442 --prefix=PREFIX install architecture-independent files in PREFIX 1443 [$ac_default_prefix] 1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1445 [PREFIX] 1446 1447By default, \`make install' will install all the files in 1448\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1449an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1450for instance \`--prefix=\$HOME'. 1451 1452For better control, use the options below. 1453 1454Fine tuning of the installation directories: 1455 --bindir=DIR user executables [EPREFIX/bin] 1456 --sbindir=DIR system admin executables [EPREFIX/sbin] 1457 --libexecdir=DIR program executables [EPREFIX/libexec] 1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1461 --libdir=DIR object code libraries [EPREFIX/lib] 1462 --includedir=DIR C header files [PREFIX/include] 1463 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1466 --infodir=DIR info documentation [DATAROOTDIR/info] 1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1468 --mandir=DIR man documentation [DATAROOTDIR/man] 1469 --docdir=DIR documentation root [DATAROOTDIR/doc/libXcursor] 1470 --htmldir=DIR html documentation [DOCDIR] 1471 --dvidir=DIR dvi documentation [DOCDIR] 1472 --pdfdir=DIR pdf documentation [DOCDIR] 1473 --psdir=DIR ps documentation [DOCDIR] 1474_ACEOF 1475 1476 cat <<\_ACEOF 1477 1478Program names: 1479 --program-prefix=PREFIX prepend PREFIX to installed program names 1480 --program-suffix=SUFFIX append SUFFIX to installed program names 1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1482 1483System types: 1484 --build=BUILD configure for building on BUILD [guessed] 1485 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1486_ACEOF 1487fi 1488 1489if test -n "$ac_init_help"; then 1490 case $ac_init_help in 1491 short | recursive ) echo "Configuration of libXcursor 1.1.9:";; 1492 esac 1493 cat <<\_ACEOF 1494 1495Optional Features: 1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1498 --enable-maintainer-mode enable make rules and dependencies not useful 1499 (and sometimes confusing) to the casual installer 1500 --disable-dependency-tracking speeds up one-time build 1501 --enable-dependency-tracking do not reject slow dependency extractors 1502 --enable-shared[=PKGS] build shared libraries [default=yes] 1503 --enable-static[=PKGS] build static libraries [default=yes] 1504 --enable-fast-install[=PKGS] 1505 optimize for fast installation [default=yes] 1506 --disable-libtool-lock avoid locking (might break parallel builds) 1507 1508Optional Packages: 1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1512 --with-pic try to use only PIC/non-PIC objects [default=use 1513 both] 1514 --with-tags[=TAGS] include additional configurations [automatic] 1515 --with-icondir=<path> Set default icon directory (default: 1516 ${datadir}/icons) 1517 --with-cursorpath=<paths> 1518 Set default search path for cursors 1519 --with-release-version=STRING 1520 Use release version string in package name 1521 --with-lint Use a lint-style source code checker (default: 1522 disabled) 1523 1524Some influential environment variables: 1525 CC C compiler command 1526 CFLAGS C compiler flags 1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1528 nonstandard directory <lib dir> 1529 LIBS libraries to pass to the linker, e.g. -l<library> 1530 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1531 you have headers in a nonstandard directory <include dir> 1532 CPP C preprocessor 1533 CXX C++ compiler command 1534 CXXFLAGS C++ compiler flags 1535 CXXCPP C++ preprocessor 1536 F77 Fortran 77 compiler command 1537 FFLAGS Fortran 77 compiler flags 1538 PKG_CONFIG path to pkg-config utility 1539 XCURSOR_CFLAGS 1540 C compiler flags for XCURSOR, overriding pkg-config 1541 XCURSOR_LIBS 1542 linker flags for XCURSOR, overriding pkg-config 1543 1544Use these variables to override the choices made by `configure' or to help 1545it to find libraries and programs with nonstandard names/locations. 1546 1547Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1548_ACEOF 1549ac_status=$? 1550fi 1551 1552if test "$ac_init_help" = "recursive"; then 1553 # If there are subdirs, report their specific --help. 1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1555 test -d "$ac_dir" || continue 1556 ac_builddir=. 1557 1558case "$ac_dir" in 1559.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1560*) 1561 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1562 # A ".." for each directory in $ac_dir_suffix. 1563 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1564 case $ac_top_builddir_sub in 1565 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1566 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1567 esac ;; 1568esac 1569ac_abs_top_builddir=$ac_pwd 1570ac_abs_builddir=$ac_pwd$ac_dir_suffix 1571# for backward compatibility: 1572ac_top_builddir=$ac_top_build_prefix 1573 1574case $srcdir in 1575 .) # We are building in place. 1576 ac_srcdir=. 1577 ac_top_srcdir=$ac_top_builddir_sub 1578 ac_abs_top_srcdir=$ac_pwd ;; 1579 [\\/]* | ?:[\\/]* ) # Absolute name. 1580 ac_srcdir=$srcdir$ac_dir_suffix; 1581 ac_top_srcdir=$srcdir 1582 ac_abs_top_srcdir=$srcdir ;; 1583 *) # Relative name. 1584 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1585 ac_top_srcdir=$ac_top_build_prefix$srcdir 1586 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1587esac 1588ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1589 1590 cd "$ac_dir" || { ac_status=$?; continue; } 1591 # Check for guested configure. 1592 if test -f "$ac_srcdir/configure.gnu"; then 1593 echo && 1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1595 elif test -f "$ac_srcdir/configure"; then 1596 echo && 1597 $SHELL "$ac_srcdir/configure" --help=recursive 1598 else 1599 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1600 fi || ac_status=$? 1601 cd "$ac_pwd" || { ac_status=$?; break; } 1602 done 1603fi 1604 1605test -n "$ac_init_help" && exit $ac_status 1606if $ac_init_version; then 1607 cat <<\_ACEOF 1608libXcursor configure 1.1.9 1609generated by GNU Autoconf 2.61 1610 1611Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16122002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1613This configure script is free software; the Free Software Foundation 1614gives unlimited permission to copy, distribute and modify it. 1615_ACEOF 1616 exit 1617fi 1618cat >config.log <<_ACEOF 1619This file contains any messages produced by compilers while 1620running configure, to aid debugging if configure makes a mistake. 1621 1622It was created by libXcursor $as_me 1.1.9, which was 1623generated by GNU Autoconf 2.61. Invocation command line was 1624 1625 $ $0 $@ 1626 1627_ACEOF 1628exec 5>>config.log 1629{ 1630cat <<_ASUNAME 1631## --------- ## 1632## Platform. ## 1633## --------- ## 1634 1635hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1636uname -m = `(uname -m) 2>/dev/null || echo unknown` 1637uname -r = `(uname -r) 2>/dev/null || echo unknown` 1638uname -s = `(uname -s) 2>/dev/null || echo unknown` 1639uname -v = `(uname -v) 2>/dev/null || echo unknown` 1640 1641/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1642/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1643 1644/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1645/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1646/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1647/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1648/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1649/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1650/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1651 1652_ASUNAME 1653 1654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1655for as_dir in $PATH 1656do 1657 IFS=$as_save_IFS 1658 test -z "$as_dir" && as_dir=. 1659 echo "PATH: $as_dir" 1660done 1661IFS=$as_save_IFS 1662 1663} >&5 1664 1665cat >&5 <<_ACEOF 1666 1667 1668## ----------- ## 1669## Core tests. ## 1670## ----------- ## 1671 1672_ACEOF 1673 1674 1675# Keep a trace of the command line. 1676# Strip out --no-create and --no-recursion so they do not pile up. 1677# Strip out --silent because we don't want to record it for future runs. 1678# Also quote any args containing shell meta-characters. 1679# Make two passes to allow for proper duplicate-argument suppression. 1680ac_configure_args= 1681ac_configure_args0= 1682ac_configure_args1= 1683ac_must_keep_next=false 1684for ac_pass in 1 2 1685do 1686 for ac_arg 1687 do 1688 case $ac_arg in 1689 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1690 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1691 | -silent | --silent | --silen | --sile | --sil) 1692 continue ;; 1693 *\'*) 1694 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1695 esac 1696 case $ac_pass in 1697 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1698 2) 1699 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1700 if test $ac_must_keep_next = true; then 1701 ac_must_keep_next=false # Got value, back to normal. 1702 else 1703 case $ac_arg in 1704 *=* | --config-cache | -C | -disable-* | --disable-* \ 1705 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1706 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1707 | -with-* | --with-* | -without-* | --without-* | --x) 1708 case "$ac_configure_args0 " in 1709 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1710 esac 1711 ;; 1712 -* ) ac_must_keep_next=true ;; 1713 esac 1714 fi 1715 ac_configure_args="$ac_configure_args '$ac_arg'" 1716 ;; 1717 esac 1718 done 1719done 1720$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1721$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1722 1723# When interrupted or exit'd, cleanup temporary files, and complete 1724# config.log. We remove comments because anyway the quotes in there 1725# would cause problems or look ugly. 1726# WARNING: Use '\'' to represent an apostrophe within the trap. 1727# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1728trap 'exit_status=$? 1729 # Save into config.log some information that might help in debugging. 1730 { 1731 echo 1732 1733 cat <<\_ASBOX 1734## ---------------- ## 1735## Cache variables. ## 1736## ---------------- ## 1737_ASBOX 1738 echo 1739 # The following way of writing the cache mishandles newlines in values, 1740( 1741 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1742 eval ac_val=\$$ac_var 1743 case $ac_val in #( 1744 *${as_nl}*) 1745 case $ac_var in #( 1746 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1747echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1748 esac 1749 case $ac_var in #( 1750 _ | IFS | as_nl) ;; #( 1751 *) $as_unset $ac_var ;; 1752 esac ;; 1753 esac 1754 done 1755 (set) 2>&1 | 1756 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1757 *${as_nl}ac_space=\ *) 1758 sed -n \ 1759 "s/'\''/'\''\\\\'\'''\''/g; 1760 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1761 ;; #( 1762 *) 1763 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1764 ;; 1765 esac | 1766 sort 1767) 1768 echo 1769 1770 cat <<\_ASBOX 1771## ----------------- ## 1772## Output variables. ## 1773## ----------------- ## 1774_ASBOX 1775 echo 1776 for ac_var in $ac_subst_vars 1777 do 1778 eval ac_val=\$$ac_var 1779 case $ac_val in 1780 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1781 esac 1782 echo "$ac_var='\''$ac_val'\''" 1783 done | sort 1784 echo 1785 1786 if test -n "$ac_subst_files"; then 1787 cat <<\_ASBOX 1788## ------------------- ## 1789## File substitutions. ## 1790## ------------------- ## 1791_ASBOX 1792 echo 1793 for ac_var in $ac_subst_files 1794 do 1795 eval ac_val=\$$ac_var 1796 case $ac_val in 1797 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1798 esac 1799 echo "$ac_var='\''$ac_val'\''" 1800 done | sort 1801 echo 1802 fi 1803 1804 if test -s confdefs.h; then 1805 cat <<\_ASBOX 1806## ----------- ## 1807## confdefs.h. ## 1808## ----------- ## 1809_ASBOX 1810 echo 1811 cat confdefs.h 1812 echo 1813 fi 1814 test "$ac_signal" != 0 && 1815 echo "$as_me: caught signal $ac_signal" 1816 echo "$as_me: exit $exit_status" 1817 } >&5 1818 rm -f core *.core core.conftest.* && 1819 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1820 exit $exit_status 1821' 0 1822for ac_signal in 1 2 13 15; do 1823 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1824done 1825ac_signal=0 1826 1827# confdefs.h avoids OS command line length limits that DEFS can exceed. 1828rm -f -r conftest* confdefs.h 1829 1830# Predefined preprocessor variables. 1831 1832cat >>confdefs.h <<_ACEOF 1833#define PACKAGE_NAME "$PACKAGE_NAME" 1834_ACEOF 1835 1836 1837cat >>confdefs.h <<_ACEOF 1838#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1839_ACEOF 1840 1841 1842cat >>confdefs.h <<_ACEOF 1843#define PACKAGE_VERSION "$PACKAGE_VERSION" 1844_ACEOF 1845 1846 1847cat >>confdefs.h <<_ACEOF 1848#define PACKAGE_STRING "$PACKAGE_STRING" 1849_ACEOF 1850 1851 1852cat >>confdefs.h <<_ACEOF 1853#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1854_ACEOF 1855 1856 1857# Let the site file select an alternate cache file if it wants to. 1858# Prefer explicitly selected file to automatically selected ones. 1859if test -n "$CONFIG_SITE"; then 1860 set x "$CONFIG_SITE" 1861elif test "x$prefix" != xNONE; then 1862 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1863else 1864 set x "$ac_default_prefix/share/config.site" \ 1865 "$ac_default_prefix/etc/config.site" 1866fi 1867shift 1868for ac_site_file 1869do 1870 if test -r "$ac_site_file"; then 1871 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1872echo "$as_me: loading site script $ac_site_file" >&6;} 1873 sed 's/^/| /' "$ac_site_file" >&5 1874 . "$ac_site_file" 1875 fi 1876done 1877 1878if test -r "$cache_file"; then 1879 # Some versions of bash will fail to source /dev/null (special 1880 # files actually), so we avoid doing that. 1881 if test -f "$cache_file"; then 1882 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1883echo "$as_me: loading cache $cache_file" >&6;} 1884 case $cache_file in 1885 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1886 *) . "./$cache_file";; 1887 esac 1888 fi 1889else 1890 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1891echo "$as_me: creating cache $cache_file" >&6;} 1892 >$cache_file 1893fi 1894 1895# Check that the precious variables saved in the cache have kept the same 1896# value. 1897ac_cache_corrupted=false 1898for ac_var in $ac_precious_vars; do 1899 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1900 eval ac_new_set=\$ac_env_${ac_var}_set 1901 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1902 eval ac_new_val=\$ac_env_${ac_var}_value 1903 case $ac_old_set,$ac_new_set in 1904 set,) 1905 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1906echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1907 ac_cache_corrupted=: ;; 1908 ,set) 1909 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1910echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1911 ac_cache_corrupted=: ;; 1912 ,);; 1913 *) 1914 if test "x$ac_old_val" != "x$ac_new_val"; then 1915 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1916echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1917 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1918echo "$as_me: former value: $ac_old_val" >&2;} 1919 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1920echo "$as_me: current value: $ac_new_val" >&2;} 1921 ac_cache_corrupted=: 1922 fi;; 1923 esac 1924 # Pass precious variables to config.status. 1925 if test "$ac_new_set" = set; then 1926 case $ac_new_val in 1927 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1928 *) ac_arg=$ac_var=$ac_new_val ;; 1929 esac 1930 case " $ac_configure_args " in 1931 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1932 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1933 esac 1934 fi 1935done 1936if $ac_cache_corrupted; then 1937 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1938echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1939 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1940echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1941 { (exit 1); exit 1; }; } 1942fi 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968ac_ext=c 1969ac_cpp='$CPP $CPPFLAGS' 1970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1972ac_compiler_gnu=$ac_cv_c_compiler_gnu 1973 1974 1975am__api_version='1.10' 1976 1977ac_aux_dir= 1978for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1979 if test -f "$ac_dir/install-sh"; then 1980 ac_aux_dir=$ac_dir 1981 ac_install_sh="$ac_aux_dir/install-sh -c" 1982 break 1983 elif test -f "$ac_dir/install.sh"; then 1984 ac_aux_dir=$ac_dir 1985 ac_install_sh="$ac_aux_dir/install.sh -c" 1986 break 1987 elif test -f "$ac_dir/shtool"; then 1988 ac_aux_dir=$ac_dir 1989 ac_install_sh="$ac_aux_dir/shtool install -c" 1990 break 1991 fi 1992done 1993if test -z "$ac_aux_dir"; then 1994 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1995echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1996 { (exit 1); exit 1; }; } 1997fi 1998 1999# These three variables are undocumented and unsupported, 2000# and are intended to be withdrawn in a future Autoconf release. 2001# They can cause serious problems if a builder's source tree is in a directory 2002# whose full name contains unusual characters. 2003ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2004ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2005ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2006 2007 2008# Find a good install program. We prefer a C program (faster), 2009# so one script is as good as another. But avoid the broken or 2010# incompatible versions: 2011# SysV /etc/install, /usr/sbin/install 2012# SunOS /usr/etc/install 2013# IRIX /sbin/install 2014# AIX /bin/install 2015# AmigaOS /C/install, which installs bootblocks on floppy discs 2016# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2017# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2018# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2019# OS/2's system install, which has a completely different semantic 2020# ./install, which can be erroneously created by make from ./install.sh. 2021{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2022echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2023if test -z "$INSTALL"; then 2024if test "${ac_cv_path_install+set}" = set; then 2025 echo $ECHO_N "(cached) $ECHO_C" >&6 2026else 2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2028for as_dir in $PATH 2029do 2030 IFS=$as_save_IFS 2031 test -z "$as_dir" && as_dir=. 2032 # Account for people who put trailing slashes in PATH elements. 2033case $as_dir/ in 2034 ./ | .// | /cC/* | \ 2035 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2036 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2037 /usr/ucb/* ) ;; 2038 *) 2039 # OSF1 and SCO ODT 3.0 have their own names for install. 2040 # Don't use installbsd from OSF since it installs stuff as root 2041 # by default. 2042 for ac_prog in ginstall scoinst install; do 2043 for ac_exec_ext in '' $ac_executable_extensions; do 2044 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2045 if test $ac_prog = install && 2046 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2047 # AIX install. It has an incompatible calling convention. 2048 : 2049 elif test $ac_prog = install && 2050 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2051 # program-specific install script used by HP pwplus--don't use. 2052 : 2053 else 2054 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2055 break 3 2056 fi 2057 fi 2058 done 2059 done 2060 ;; 2061esac 2062done 2063IFS=$as_save_IFS 2064 2065 2066fi 2067 if test "${ac_cv_path_install+set}" = set; then 2068 INSTALL=$ac_cv_path_install 2069 else 2070 # As a last resort, use the slow shell script. Don't cache a 2071 # value for INSTALL within a source directory, because that will 2072 # break other packages using the cache if that directory is 2073 # removed, or if the value is a relative name. 2074 INSTALL=$ac_install_sh 2075 fi 2076fi 2077{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2078echo "${ECHO_T}$INSTALL" >&6; } 2079 2080# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2081# It thinks the first close brace ends the variable substitution. 2082test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2083 2084test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2085 2086test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2087 2088{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2089echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2090# Just in case 2091sleep 1 2092echo timestamp > conftest.file 2093# Do `set' in a subshell so we don't clobber the current shell's 2094# arguments. Must try -L first in case configure is actually a 2095# symlink; some systems play weird games with the mod time of symlinks 2096# (eg FreeBSD returns the mod time of the symlink's containing 2097# directory). 2098if ( 2099 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2100 if test "$*" = "X"; then 2101 # -L didn't work. 2102 set X `ls -t $srcdir/configure conftest.file` 2103 fi 2104 rm -f conftest.file 2105 if test "$*" != "X $srcdir/configure conftest.file" \ 2106 && test "$*" != "X conftest.file $srcdir/configure"; then 2107 2108 # If neither matched, then we have a broken ls. This can happen 2109 # if, for instance, CONFIG_SHELL is bash and it inherits a 2110 # broken ls alias from the environment. This has actually 2111 # happened. Such a system could not be considered "sane". 2112 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2113alias in your environment" >&5 2114echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2115alias in your environment" >&2;} 2116 { (exit 1); exit 1; }; } 2117 fi 2118 2119 test "$2" = conftest.file 2120 ) 2121then 2122 # Ok. 2123 : 2124else 2125 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2126Check your system clock" >&5 2127echo "$as_me: error: newly created file is older than distributed files! 2128Check your system clock" >&2;} 2129 { (exit 1); exit 1; }; } 2130fi 2131{ echo "$as_me:$LINENO: result: yes" >&5 2132echo "${ECHO_T}yes" >&6; } 2133test "$program_prefix" != NONE && 2134 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2135# Use a double $ so make ignores it. 2136test "$program_suffix" != NONE && 2137 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2138# Double any \ or $. echo might interpret backslashes. 2139# By default was `s,x,x', remove it if useless. 2140cat <<\_ACEOF >conftest.sed 2141s/[\\$]/&&/g;s/;s,x,x,$// 2142_ACEOF 2143program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2144rm -f conftest.sed 2145 2146# expand $ac_aux_dir to an absolute path 2147am_aux_dir=`cd $ac_aux_dir && pwd` 2148 2149test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2150# Use eval to expand $SHELL 2151if eval "$MISSING --run true"; then 2152 am_missing_run="$MISSING --run " 2153else 2154 am_missing_run= 2155 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2156echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2157fi 2158 2159{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2160echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2161if test -z "$MKDIR_P"; then 2162 if test "${ac_cv_path_mkdir+set}" = set; then 2163 echo $ECHO_N "(cached) $ECHO_C" >&6 2164else 2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2166for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2167do 2168 IFS=$as_save_IFS 2169 test -z "$as_dir" && as_dir=. 2170 for ac_prog in mkdir gmkdir; do 2171 for ac_exec_ext in '' $ac_executable_extensions; do 2172 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2173 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2174 'mkdir (GNU coreutils) '* | \ 2175 'mkdir (coreutils) '* | \ 2176 'mkdir (fileutils) '4.1*) 2177 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2178 break 3;; 2179 esac 2180 done 2181 done 2182done 2183IFS=$as_save_IFS 2184 2185fi 2186 2187 if test "${ac_cv_path_mkdir+set}" = set; then 2188 MKDIR_P="$ac_cv_path_mkdir -p" 2189 else 2190 # As a last resort, use the slow shell script. Don't cache a 2191 # value for MKDIR_P within a source directory, because that will 2192 # break other packages using the cache if that directory is 2193 # removed, or if the value is a relative name. 2194 test -d ./--version && rmdir ./--version 2195 MKDIR_P="$ac_install_sh -d" 2196 fi 2197fi 2198{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2199echo "${ECHO_T}$MKDIR_P" >&6; } 2200 2201mkdir_p="$MKDIR_P" 2202case $mkdir_p in 2203 [\\/$]* | ?:[\\/]*) ;; 2204 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2205esac 2206 2207for ac_prog in gawk mawk nawk awk 2208do 2209 # Extract the first word of "$ac_prog", so it can be a program name with args. 2210set dummy $ac_prog; ac_word=$2 2211{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2213if test "${ac_cv_prog_AWK+set}" = set; then 2214 echo $ECHO_N "(cached) $ECHO_C" >&6 2215else 2216 if test -n "$AWK"; then 2217 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2218else 2219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2220for as_dir in $PATH 2221do 2222 IFS=$as_save_IFS 2223 test -z "$as_dir" && as_dir=. 2224 for ac_exec_ext in '' $ac_executable_extensions; do 2225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2226 ac_cv_prog_AWK="$ac_prog" 2227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2228 break 2 2229 fi 2230done 2231done 2232IFS=$as_save_IFS 2233 2234fi 2235fi 2236AWK=$ac_cv_prog_AWK 2237if test -n "$AWK"; then 2238 { echo "$as_me:$LINENO: result: $AWK" >&5 2239echo "${ECHO_T}$AWK" >&6; } 2240else 2241 { echo "$as_me:$LINENO: result: no" >&5 2242echo "${ECHO_T}no" >&6; } 2243fi 2244 2245 2246 test -n "$AWK" && break 2247done 2248 2249{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2250echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2251set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2252if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2253 echo $ECHO_N "(cached) $ECHO_C" >&6 2254else 2255 cat >conftest.make <<\_ACEOF 2256SHELL = /bin/sh 2257all: 2258 @echo '@@@%%%=$(MAKE)=@@@%%%' 2259_ACEOF 2260# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2261case `${MAKE-make} -f conftest.make 2>/dev/null` in 2262 *@@@%%%=?*=@@@%%%*) 2263 eval ac_cv_prog_make_${ac_make}_set=yes;; 2264 *) 2265 eval ac_cv_prog_make_${ac_make}_set=no;; 2266esac 2267rm -f conftest.make 2268fi 2269if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2270 { echo "$as_me:$LINENO: result: yes" >&5 2271echo "${ECHO_T}yes" >&6; } 2272 SET_MAKE= 2273else 2274 { echo "$as_me:$LINENO: result: no" >&5 2275echo "${ECHO_T}no" >&6; } 2276 SET_MAKE="MAKE=${MAKE-make}" 2277fi 2278 2279rm -rf .tst 2>/dev/null 2280mkdir .tst 2>/dev/null 2281if test -d .tst; then 2282 am__leading_dot=. 2283else 2284 am__leading_dot=_ 2285fi 2286rmdir .tst 2>/dev/null 2287 2288if test "`cd $srcdir && pwd`" != "`pwd`"; then 2289 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2290 # is not polluted with repeated "-I." 2291 am__isrc=' -I$(srcdir)' 2292 # test to see if srcdir already configured 2293 if test -f $srcdir/config.status; then 2294 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2295echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2296 { (exit 1); exit 1; }; } 2297 fi 2298fi 2299 2300# test whether we have cygpath 2301if test -z "$CYGPATH_W"; then 2302 if (cygpath --version) >/dev/null 2>/dev/null; then 2303 CYGPATH_W='cygpath -w' 2304 else 2305 CYGPATH_W=echo 2306 fi 2307fi 2308 2309 2310# Define the identity of the package. 2311 PACKAGE='libXcursor' 2312 VERSION='1.1.9' 2313 2314 2315cat >>confdefs.h <<_ACEOF 2316#define PACKAGE "$PACKAGE" 2317_ACEOF 2318 2319 2320cat >>confdefs.h <<_ACEOF 2321#define VERSION "$VERSION" 2322_ACEOF 2323 2324# Some tools Automake needs. 2325 2326ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2327 2328 2329AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2330 2331 2332AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2333 2334 2335AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2336 2337 2338MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2339 2340install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2341 2342# Installed binaries are usually stripped using `strip' when the user 2343# run `make install-strip'. However `strip' might not be the right 2344# tool to use in cross-compilation environments, therefore Automake 2345# will honor the `STRIP' environment variable to overrule this program. 2346if test "$cross_compiling" != no; then 2347 if test -n "$ac_tool_prefix"; then 2348 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2349set dummy ${ac_tool_prefix}strip; ac_word=$2 2350{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2352if test "${ac_cv_prog_STRIP+set}" = set; then 2353 echo $ECHO_N "(cached) $ECHO_C" >&6 2354else 2355 if test -n "$STRIP"; then 2356 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2357else 2358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2359for as_dir in $PATH 2360do 2361 IFS=$as_save_IFS 2362 test -z "$as_dir" && as_dir=. 2363 for ac_exec_ext in '' $ac_executable_extensions; do 2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2365 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2367 break 2 2368 fi 2369done 2370done 2371IFS=$as_save_IFS 2372 2373fi 2374fi 2375STRIP=$ac_cv_prog_STRIP 2376if test -n "$STRIP"; then 2377 { echo "$as_me:$LINENO: result: $STRIP" >&5 2378echo "${ECHO_T}$STRIP" >&6; } 2379else 2380 { echo "$as_me:$LINENO: result: no" >&5 2381echo "${ECHO_T}no" >&6; } 2382fi 2383 2384 2385fi 2386if test -z "$ac_cv_prog_STRIP"; then 2387 ac_ct_STRIP=$STRIP 2388 # Extract the first word of "strip", so it can be a program name with args. 2389set dummy strip; ac_word=$2 2390{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2392if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2393 echo $ECHO_N "(cached) $ECHO_C" >&6 2394else 2395 if test -n "$ac_ct_STRIP"; then 2396 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2397else 2398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2399for as_dir in $PATH 2400do 2401 IFS=$as_save_IFS 2402 test -z "$as_dir" && as_dir=. 2403 for ac_exec_ext in '' $ac_executable_extensions; do 2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2405 ac_cv_prog_ac_ct_STRIP="strip" 2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2407 break 2 2408 fi 2409done 2410done 2411IFS=$as_save_IFS 2412 2413fi 2414fi 2415ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2416if test -n "$ac_ct_STRIP"; then 2417 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2418echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2419else 2420 { echo "$as_me:$LINENO: result: no" >&5 2421echo "${ECHO_T}no" >&6; } 2422fi 2423 2424 if test "x$ac_ct_STRIP" = x; then 2425 STRIP=":" 2426 else 2427 case $cross_compiling:$ac_tool_warned in 2428yes:) 2429{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2430whose name does not start with the host triplet. If you think this 2431configuration is useful to you, please write to autoconf@gnu.org." >&5 2432echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2433whose name does not start with the host triplet. If you think this 2434configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2435ac_tool_warned=yes ;; 2436esac 2437 STRIP=$ac_ct_STRIP 2438 fi 2439else 2440 STRIP="$ac_cv_prog_STRIP" 2441fi 2442 2443fi 2444INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2445 2446# We need awk for the "check" target. The system "awk" is bad on 2447# some platforms. 2448# Always define AMTAR for backward compatibility. 2449 2450AMTAR=${AMTAR-"${am_missing_run}tar"} 2451 2452am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2453 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 2481ac_config_headers="$ac_config_headers config.h" 2482 2483 2484# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro 2485 2486 2487 XORG_MACROS_needed_version=1.1 2488 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'` 2489 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 2490 { echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5 2491echo $ECHO_N "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... $ECHO_C" >&6; } 2492 XORG_MACROS_version=1.1.5 2493 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'` 2494 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'` 2495 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then 2496 { { echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5 2497echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;} 2498 { (exit 1); exit 1; }; } 2499 fi 2500 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then 2501 { { 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 2502echo "$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;} 2503 { (exit 1); exit 1; }; } 2504 fi 2505 { echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5 2506echo "${ECHO_T}yes, $XORG_MACROS_version" >&6; } 2507 2508 2509# Check for progs 2510ac_ext=c 2511ac_cpp='$CPP $CPPFLAGS' 2512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2514ac_compiler_gnu=$ac_cv_c_compiler_gnu 2515if test -n "$ac_tool_prefix"; then 2516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2517set dummy ${ac_tool_prefix}gcc; ac_word=$2 2518{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2520if test "${ac_cv_prog_CC+set}" = set; then 2521 echo $ECHO_N "(cached) $ECHO_C" >&6 2522else 2523 if test -n "$CC"; then 2524 ac_cv_prog_CC="$CC" # Let the user override the test. 2525else 2526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2527for as_dir in $PATH 2528do 2529 IFS=$as_save_IFS 2530 test -z "$as_dir" && as_dir=. 2531 for ac_exec_ext in '' $ac_executable_extensions; do 2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2533 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2535 break 2 2536 fi 2537done 2538done 2539IFS=$as_save_IFS 2540 2541fi 2542fi 2543CC=$ac_cv_prog_CC 2544if test -n "$CC"; then 2545 { echo "$as_me:$LINENO: result: $CC" >&5 2546echo "${ECHO_T}$CC" >&6; } 2547else 2548 { echo "$as_me:$LINENO: result: no" >&5 2549echo "${ECHO_T}no" >&6; } 2550fi 2551 2552 2553fi 2554if test -z "$ac_cv_prog_CC"; then 2555 ac_ct_CC=$CC 2556 # Extract the first word of "gcc", so it can be a program name with args. 2557set dummy gcc; ac_word=$2 2558{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2560if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2561 echo $ECHO_N "(cached) $ECHO_C" >&6 2562else 2563 if test -n "$ac_ct_CC"; then 2564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2565else 2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2567for as_dir in $PATH 2568do 2569 IFS=$as_save_IFS 2570 test -z "$as_dir" && as_dir=. 2571 for ac_exec_ext in '' $ac_executable_extensions; do 2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2573 ac_cv_prog_ac_ct_CC="gcc" 2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2575 break 2 2576 fi 2577done 2578done 2579IFS=$as_save_IFS 2580 2581fi 2582fi 2583ac_ct_CC=$ac_cv_prog_ac_ct_CC 2584if test -n "$ac_ct_CC"; then 2585 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2586echo "${ECHO_T}$ac_ct_CC" >&6; } 2587else 2588 { echo "$as_me:$LINENO: result: no" >&5 2589echo "${ECHO_T}no" >&6; } 2590fi 2591 2592 if test "x$ac_ct_CC" = x; then 2593 CC="" 2594 else 2595 case $cross_compiling:$ac_tool_warned in 2596yes:) 2597{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2598whose name does not start with the host triplet. If you think this 2599configuration is useful to you, please write to autoconf@gnu.org." >&5 2600echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2601whose name does not start with the host triplet. If you think this 2602configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2603ac_tool_warned=yes ;; 2604esac 2605 CC=$ac_ct_CC 2606 fi 2607else 2608 CC="$ac_cv_prog_CC" 2609fi 2610 2611if test -z "$CC"; then 2612 if test -n "$ac_tool_prefix"; then 2613 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2614set dummy ${ac_tool_prefix}cc; ac_word=$2 2615{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2617if test "${ac_cv_prog_CC+set}" = set; then 2618 echo $ECHO_N "(cached) $ECHO_C" >&6 2619else 2620 if test -n "$CC"; then 2621 ac_cv_prog_CC="$CC" # Let the user override the test. 2622else 2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2624for as_dir in $PATH 2625do 2626 IFS=$as_save_IFS 2627 test -z "$as_dir" && as_dir=. 2628 for ac_exec_ext in '' $ac_executable_extensions; do 2629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2630 ac_cv_prog_CC="${ac_tool_prefix}cc" 2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2632 break 2 2633 fi 2634done 2635done 2636IFS=$as_save_IFS 2637 2638fi 2639fi 2640CC=$ac_cv_prog_CC 2641if test -n "$CC"; then 2642 { echo "$as_me:$LINENO: result: $CC" >&5 2643echo "${ECHO_T}$CC" >&6; } 2644else 2645 { echo "$as_me:$LINENO: result: no" >&5 2646echo "${ECHO_T}no" >&6; } 2647fi 2648 2649 2650 fi 2651fi 2652if test -z "$CC"; then 2653 # Extract the first word of "cc", so it can be a program name with args. 2654set dummy cc; ac_word=$2 2655{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2657if test "${ac_cv_prog_CC+set}" = set; then 2658 echo $ECHO_N "(cached) $ECHO_C" >&6 2659else 2660 if test -n "$CC"; then 2661 ac_cv_prog_CC="$CC" # Let the user override the test. 2662else 2663 ac_prog_rejected=no 2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2665for as_dir in $PATH 2666do 2667 IFS=$as_save_IFS 2668 test -z "$as_dir" && as_dir=. 2669 for ac_exec_ext in '' $ac_executable_extensions; do 2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2671 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2672 ac_prog_rejected=yes 2673 continue 2674 fi 2675 ac_cv_prog_CC="cc" 2676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2677 break 2 2678 fi 2679done 2680done 2681IFS=$as_save_IFS 2682 2683if test $ac_prog_rejected = yes; then 2684 # We found a bogon in the path, so make sure we never use it. 2685 set dummy $ac_cv_prog_CC 2686 shift 2687 if test $# != 0; then 2688 # We chose a different compiler from the bogus one. 2689 # However, it has the same basename, so the bogon will be chosen 2690 # first if we set CC to just the basename; use the full file name. 2691 shift 2692 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2693 fi 2694fi 2695fi 2696fi 2697CC=$ac_cv_prog_CC 2698if test -n "$CC"; then 2699 { echo "$as_me:$LINENO: result: $CC" >&5 2700echo "${ECHO_T}$CC" >&6; } 2701else 2702 { echo "$as_me:$LINENO: result: no" >&5 2703echo "${ECHO_T}no" >&6; } 2704fi 2705 2706 2707fi 2708if test -z "$CC"; then 2709 if test -n "$ac_tool_prefix"; then 2710 for ac_prog in cl.exe 2711 do 2712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2713set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2714{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2716if test "${ac_cv_prog_CC+set}" = set; then 2717 echo $ECHO_N "(cached) $ECHO_C" >&6 2718else 2719 if test -n "$CC"; then 2720 ac_cv_prog_CC="$CC" # Let the user override the test. 2721else 2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723for as_dir in $PATH 2724do 2725 IFS=$as_save_IFS 2726 test -z "$as_dir" && as_dir=. 2727 for ac_exec_ext in '' $ac_executable_extensions; do 2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2731 break 2 2732 fi 2733done 2734done 2735IFS=$as_save_IFS 2736 2737fi 2738fi 2739CC=$ac_cv_prog_CC 2740if test -n "$CC"; then 2741 { echo "$as_me:$LINENO: result: $CC" >&5 2742echo "${ECHO_T}$CC" >&6; } 2743else 2744 { echo "$as_me:$LINENO: result: no" >&5 2745echo "${ECHO_T}no" >&6; } 2746fi 2747 2748 2749 test -n "$CC" && break 2750 done 2751fi 2752if test -z "$CC"; then 2753 ac_ct_CC=$CC 2754 for ac_prog in cl.exe 2755do 2756 # Extract the first word of "$ac_prog", so it can be a program name with args. 2757set dummy $ac_prog; ac_word=$2 2758{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2760if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2761 echo $ECHO_N "(cached) $ECHO_C" >&6 2762else 2763 if test -n "$ac_ct_CC"; then 2764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2765else 2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2767for as_dir in $PATH 2768do 2769 IFS=$as_save_IFS 2770 test -z "$as_dir" && as_dir=. 2771 for ac_exec_ext in '' $ac_executable_extensions; do 2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2773 ac_cv_prog_ac_ct_CC="$ac_prog" 2774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2775 break 2 2776 fi 2777done 2778done 2779IFS=$as_save_IFS 2780 2781fi 2782fi 2783ac_ct_CC=$ac_cv_prog_ac_ct_CC 2784if test -n "$ac_ct_CC"; then 2785 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2786echo "${ECHO_T}$ac_ct_CC" >&6; } 2787else 2788 { echo "$as_me:$LINENO: result: no" >&5 2789echo "${ECHO_T}no" >&6; } 2790fi 2791 2792 2793 test -n "$ac_ct_CC" && break 2794done 2795 2796 if test "x$ac_ct_CC" = x; then 2797 CC="" 2798 else 2799 case $cross_compiling:$ac_tool_warned in 2800yes:) 2801{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2802whose name does not start with the host triplet. If you think this 2803configuration is useful to you, please write to autoconf@gnu.org." >&5 2804echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2805whose name does not start with the host triplet. If you think this 2806configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2807ac_tool_warned=yes ;; 2808esac 2809 CC=$ac_ct_CC 2810 fi 2811fi 2812 2813fi 2814 2815 2816test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2817See \`config.log' for more details." >&5 2818echo "$as_me: error: no acceptable C compiler found in \$PATH 2819See \`config.log' for more details." >&2;} 2820 { (exit 1); exit 1; }; } 2821 2822# Provide some information about the compiler. 2823echo "$as_me:$LINENO: checking for C compiler version" >&5 2824ac_compiler=`set X $ac_compile; echo $2` 2825{ (ac_try="$ac_compiler --version >&5" 2826case "(($ac_try" in 2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2828 *) ac_try_echo=$ac_try;; 2829esac 2830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2831 (eval "$ac_compiler --version >&5") 2>&5 2832 ac_status=$? 2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2834 (exit $ac_status); } 2835{ (ac_try="$ac_compiler -v >&5" 2836case "(($ac_try" in 2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2838 *) ac_try_echo=$ac_try;; 2839esac 2840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2841 (eval "$ac_compiler -v >&5") 2>&5 2842 ac_status=$? 2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2844 (exit $ac_status); } 2845{ (ac_try="$ac_compiler -V >&5" 2846case "(($ac_try" in 2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2848 *) ac_try_echo=$ac_try;; 2849esac 2850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2851 (eval "$ac_compiler -V >&5") 2>&5 2852 ac_status=$? 2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2854 (exit $ac_status); } 2855 2856cat >conftest.$ac_ext <<_ACEOF 2857/* confdefs.h. */ 2858_ACEOF 2859cat confdefs.h >>conftest.$ac_ext 2860cat >>conftest.$ac_ext <<_ACEOF 2861/* end confdefs.h. */ 2862 2863int 2864main () 2865{ 2866 2867 ; 2868 return 0; 2869} 2870_ACEOF 2871ac_clean_files_save=$ac_clean_files 2872ac_clean_files="$ac_clean_files a.out a.exe b.out" 2873# Try to create an executable without -o first, disregard a.out. 2874# It will help us diagnose broken compilers, and finding out an intuition 2875# of exeext. 2876{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2877echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2878ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2879# 2880# List of possible output files, starting from the most likely. 2881# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2882# only as a last resort. b.out is created by i960 compilers. 2883ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2884# 2885# The IRIX 6 linker writes into existing files which may not be 2886# executable, retaining their permissions. Remove them first so a 2887# subsequent execution test works. 2888ac_rmfiles= 2889for ac_file in $ac_files 2890do 2891 case $ac_file in 2892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2893 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2894 esac 2895done 2896rm -f $ac_rmfiles 2897 2898if { (ac_try="$ac_link_default" 2899case "(($ac_try" in 2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2901 *) ac_try_echo=$ac_try;; 2902esac 2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2904 (eval "$ac_link_default") 2>&5 2905 ac_status=$? 2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2907 (exit $ac_status); }; then 2908 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2909# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2910# in a Makefile. We should not override ac_cv_exeext if it was cached, 2911# so that the user can short-circuit this test for compilers unknown to 2912# Autoconf. 2913for ac_file in $ac_files '' 2914do 2915 test -f "$ac_file" || continue 2916 case $ac_file in 2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2918 ;; 2919 [ab].out ) 2920 # We found the default executable, but exeext='' is most 2921 # certainly right. 2922 break;; 2923 *.* ) 2924 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2925 then :; else 2926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2927 fi 2928 # We set ac_cv_exeext here because the later test for it is not 2929 # safe: cross compilers may not add the suffix if given an `-o' 2930 # argument, so we may need to know it at that point already. 2931 # Even if this section looks crufty: it has the advantage of 2932 # actually working. 2933 break;; 2934 * ) 2935 break;; 2936 esac 2937done 2938test "$ac_cv_exeext" = no && ac_cv_exeext= 2939 2940else 2941 ac_file='' 2942fi 2943 2944{ echo "$as_me:$LINENO: result: $ac_file" >&5 2945echo "${ECHO_T}$ac_file" >&6; } 2946if test -z "$ac_file"; then 2947 echo "$as_me: failed program was:" >&5 2948sed 's/^/| /' conftest.$ac_ext >&5 2949 2950{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2951See \`config.log' for more details." >&5 2952echo "$as_me: error: C compiler cannot create executables 2953See \`config.log' for more details." >&2;} 2954 { (exit 77); exit 77; }; } 2955fi 2956 2957ac_exeext=$ac_cv_exeext 2958 2959# Check that the compiler produces executables we can run. If not, either 2960# the compiler is broken, or we cross compile. 2961{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2962echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2963# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2964# If not cross compiling, check that we can run a simple program. 2965if test "$cross_compiling" != yes; then 2966 if { ac_try='./$ac_file' 2967 { (case "(($ac_try" in 2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2969 *) ac_try_echo=$ac_try;; 2970esac 2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2972 (eval "$ac_try") 2>&5 2973 ac_status=$? 2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2975 (exit $ac_status); }; }; then 2976 cross_compiling=no 2977 else 2978 if test "$cross_compiling" = maybe; then 2979 cross_compiling=yes 2980 else 2981 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2982If you meant to cross compile, use \`--host'. 2983See \`config.log' for more details." >&5 2984echo "$as_me: error: cannot run C compiled programs. 2985If you meant to cross compile, use \`--host'. 2986See \`config.log' for more details." >&2;} 2987 { (exit 1); exit 1; }; } 2988 fi 2989 fi 2990fi 2991{ echo "$as_me:$LINENO: result: yes" >&5 2992echo "${ECHO_T}yes" >&6; } 2993 2994rm -f a.out a.exe conftest$ac_cv_exeext b.out 2995ac_clean_files=$ac_clean_files_save 2996# Check that the compiler produces executables we can run. If not, either 2997# the compiler is broken, or we cross compile. 2998{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2999echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3000{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3001echo "${ECHO_T}$cross_compiling" >&6; } 3002 3003{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3004echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3005if { (ac_try="$ac_link" 3006case "(($ac_try" in 3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3008 *) ac_try_echo=$ac_try;; 3009esac 3010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3011 (eval "$ac_link") 2>&5 3012 ac_status=$? 3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3014 (exit $ac_status); }; then 3015 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3016# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3017# work properly (i.e., refer to `conftest.exe'), while it won't with 3018# `rm'. 3019for ac_file in conftest.exe conftest conftest.*; do 3020 test -f "$ac_file" || continue 3021 case $ac_file in 3022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3023 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3024 break;; 3025 * ) break;; 3026 esac 3027done 3028else 3029 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3030See \`config.log' for more details." >&5 3031echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3032See \`config.log' for more details." >&2;} 3033 { (exit 1); exit 1; }; } 3034fi 3035 3036rm -f conftest$ac_cv_exeext 3037{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3038echo "${ECHO_T}$ac_cv_exeext" >&6; } 3039 3040rm -f conftest.$ac_ext 3041EXEEXT=$ac_cv_exeext 3042ac_exeext=$EXEEXT 3043{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3044echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3045if test "${ac_cv_objext+set}" = set; then 3046 echo $ECHO_N "(cached) $ECHO_C" >&6 3047else 3048 cat >conftest.$ac_ext <<_ACEOF 3049/* confdefs.h. */ 3050_ACEOF 3051cat confdefs.h >>conftest.$ac_ext 3052cat >>conftest.$ac_ext <<_ACEOF 3053/* end confdefs.h. */ 3054 3055int 3056main () 3057{ 3058 3059 ; 3060 return 0; 3061} 3062_ACEOF 3063rm -f conftest.o conftest.obj 3064if { (ac_try="$ac_compile" 3065case "(($ac_try" in 3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3067 *) ac_try_echo=$ac_try;; 3068esac 3069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3070 (eval "$ac_compile") 2>&5 3071 ac_status=$? 3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3073 (exit $ac_status); }; then 3074 for ac_file in conftest.o conftest.obj conftest.*; do 3075 test -f "$ac_file" || continue; 3076 case $ac_file in 3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3078 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3079 break;; 3080 esac 3081done 3082else 3083 echo "$as_me: failed program was:" >&5 3084sed 's/^/| /' conftest.$ac_ext >&5 3085 3086{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3087See \`config.log' for more details." >&5 3088echo "$as_me: error: cannot compute suffix of object files: cannot compile 3089See \`config.log' for more details." >&2;} 3090 { (exit 1); exit 1; }; } 3091fi 3092 3093rm -f conftest.$ac_cv_objext conftest.$ac_ext 3094fi 3095{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3096echo "${ECHO_T}$ac_cv_objext" >&6; } 3097OBJEXT=$ac_cv_objext 3098ac_objext=$OBJEXT 3099{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3100echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3101if test "${ac_cv_c_compiler_gnu+set}" = set; then 3102 echo $ECHO_N "(cached) $ECHO_C" >&6 3103else 3104 cat >conftest.$ac_ext <<_ACEOF 3105/* confdefs.h. */ 3106_ACEOF 3107cat confdefs.h >>conftest.$ac_ext 3108cat >>conftest.$ac_ext <<_ACEOF 3109/* end confdefs.h. */ 3110 3111int 3112main () 3113{ 3114#ifndef __GNUC__ 3115 choke me 3116#endif 3117 3118 ; 3119 return 0; 3120} 3121_ACEOF 3122rm -f conftest.$ac_objext 3123if { (ac_try="$ac_compile" 3124case "(($ac_try" in 3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3126 *) ac_try_echo=$ac_try;; 3127esac 3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3129 (eval "$ac_compile") 2>conftest.er1 3130 ac_status=$? 3131 grep -v '^ *+' conftest.er1 >conftest.err 3132 rm -f conftest.er1 3133 cat conftest.err >&5 3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3135 (exit $ac_status); } && { 3136 test -z "$ac_c_werror_flag" || 3137 test ! -s conftest.err 3138 } && test -s conftest.$ac_objext; then 3139 ac_compiler_gnu=yes 3140else 3141 echo "$as_me: failed program was:" >&5 3142sed 's/^/| /' conftest.$ac_ext >&5 3143 3144 ac_compiler_gnu=no 3145fi 3146 3147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3148ac_cv_c_compiler_gnu=$ac_compiler_gnu 3149 3150fi 3151{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3152echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3153GCC=`test $ac_compiler_gnu = yes && echo yes` 3154ac_test_CFLAGS=${CFLAGS+set} 3155ac_save_CFLAGS=$CFLAGS 3156{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3157echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3158if test "${ac_cv_prog_cc_g+set}" = set; then 3159 echo $ECHO_N "(cached) $ECHO_C" >&6 3160else 3161 ac_save_c_werror_flag=$ac_c_werror_flag 3162 ac_c_werror_flag=yes 3163 ac_cv_prog_cc_g=no 3164 CFLAGS="-g" 3165 cat >conftest.$ac_ext <<_ACEOF 3166/* confdefs.h. */ 3167_ACEOF 3168cat confdefs.h >>conftest.$ac_ext 3169cat >>conftest.$ac_ext <<_ACEOF 3170/* end confdefs.h. */ 3171 3172int 3173main () 3174{ 3175 3176 ; 3177 return 0; 3178} 3179_ACEOF 3180rm -f conftest.$ac_objext 3181if { (ac_try="$ac_compile" 3182case "(($ac_try" in 3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3184 *) ac_try_echo=$ac_try;; 3185esac 3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3187 (eval "$ac_compile") 2>conftest.er1 3188 ac_status=$? 3189 grep -v '^ *+' conftest.er1 >conftest.err 3190 rm -f conftest.er1 3191 cat conftest.err >&5 3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3193 (exit $ac_status); } && { 3194 test -z "$ac_c_werror_flag" || 3195 test ! -s conftest.err 3196 } && test -s conftest.$ac_objext; then 3197 ac_cv_prog_cc_g=yes 3198else 3199 echo "$as_me: failed program was:" >&5 3200sed 's/^/| /' conftest.$ac_ext >&5 3201 3202 CFLAGS="" 3203 cat >conftest.$ac_ext <<_ACEOF 3204/* confdefs.h. */ 3205_ACEOF 3206cat confdefs.h >>conftest.$ac_ext 3207cat >>conftest.$ac_ext <<_ACEOF 3208/* end confdefs.h. */ 3209 3210int 3211main () 3212{ 3213 3214 ; 3215 return 0; 3216} 3217_ACEOF 3218rm -f conftest.$ac_objext 3219if { (ac_try="$ac_compile" 3220case "(($ac_try" in 3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3222 *) ac_try_echo=$ac_try;; 3223esac 3224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3225 (eval "$ac_compile") 2>conftest.er1 3226 ac_status=$? 3227 grep -v '^ *+' conftest.er1 >conftest.err 3228 rm -f conftest.er1 3229 cat conftest.err >&5 3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3231 (exit $ac_status); } && { 3232 test -z "$ac_c_werror_flag" || 3233 test ! -s conftest.err 3234 } && test -s conftest.$ac_objext; then 3235 : 3236else 3237 echo "$as_me: failed program was:" >&5 3238sed 's/^/| /' conftest.$ac_ext >&5 3239 3240 ac_c_werror_flag=$ac_save_c_werror_flag 3241 CFLAGS="-g" 3242 cat >conftest.$ac_ext <<_ACEOF 3243/* confdefs.h. */ 3244_ACEOF 3245cat confdefs.h >>conftest.$ac_ext 3246cat >>conftest.$ac_ext <<_ACEOF 3247/* end confdefs.h. */ 3248 3249int 3250main () 3251{ 3252 3253 ; 3254 return 0; 3255} 3256_ACEOF 3257rm -f conftest.$ac_objext 3258if { (ac_try="$ac_compile" 3259case "(($ac_try" in 3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3261 *) ac_try_echo=$ac_try;; 3262esac 3263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3264 (eval "$ac_compile") 2>conftest.er1 3265 ac_status=$? 3266 grep -v '^ *+' conftest.er1 >conftest.err 3267 rm -f conftest.er1 3268 cat conftest.err >&5 3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3270 (exit $ac_status); } && { 3271 test -z "$ac_c_werror_flag" || 3272 test ! -s conftest.err 3273 } && test -s conftest.$ac_objext; then 3274 ac_cv_prog_cc_g=yes 3275else 3276 echo "$as_me: failed program was:" >&5 3277sed 's/^/| /' conftest.$ac_ext >&5 3278 3279 3280fi 3281 3282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3283fi 3284 3285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3286fi 3287 3288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3289 ac_c_werror_flag=$ac_save_c_werror_flag 3290fi 3291{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3292echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3293if test "$ac_test_CFLAGS" = set; then 3294 CFLAGS=$ac_save_CFLAGS 3295elif test $ac_cv_prog_cc_g = yes; then 3296 if test "$GCC" = yes; then 3297 CFLAGS="-g -O2" 3298 else 3299 CFLAGS="-g" 3300 fi 3301else 3302 if test "$GCC" = yes; then 3303 CFLAGS="-O2" 3304 else 3305 CFLAGS= 3306 fi 3307fi 3308{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3309echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3310if test "${ac_cv_prog_cc_c89+set}" = set; then 3311 echo $ECHO_N "(cached) $ECHO_C" >&6 3312else 3313 ac_cv_prog_cc_c89=no 3314ac_save_CC=$CC 3315cat >conftest.$ac_ext <<_ACEOF 3316/* confdefs.h. */ 3317_ACEOF 3318cat confdefs.h >>conftest.$ac_ext 3319cat >>conftest.$ac_ext <<_ACEOF 3320/* end confdefs.h. */ 3321#include <stdarg.h> 3322#include <stdio.h> 3323#include <sys/types.h> 3324#include <sys/stat.h> 3325/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3326struct buf { int x; }; 3327FILE * (*rcsopen) (struct buf *, struct stat *, int); 3328static char *e (p, i) 3329 char **p; 3330 int i; 3331{ 3332 return p[i]; 3333} 3334static char *f (char * (*g) (char **, int), char **p, ...) 3335{ 3336 char *s; 3337 va_list v; 3338 va_start (v,p); 3339 s = g (p, va_arg (v,int)); 3340 va_end (v); 3341 return s; 3342} 3343 3344/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3345 function prototypes and stuff, but not '\xHH' hex character constants. 3346 These don't provoke an error unfortunately, instead are silently treated 3347 as 'x'. The following induces an error, until -std is added to get 3348 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3349 array size at least. It's necessary to write '\x00'==0 to get something 3350 that's true only with -std. */ 3351int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3352 3353/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3354 inside strings and character constants. */ 3355#define FOO(x) 'x' 3356int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3357 3358int test (int i, double x); 3359struct s1 {int (*f) (int a);}; 3360struct s2 {int (*f) (double a);}; 3361int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3362int argc; 3363char **argv; 3364int 3365main () 3366{ 3367return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3368 ; 3369 return 0; 3370} 3371_ACEOF 3372for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3373 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3374do 3375 CC="$ac_save_CC $ac_arg" 3376 rm -f conftest.$ac_objext 3377if { (ac_try="$ac_compile" 3378case "(($ac_try" in 3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3380 *) ac_try_echo=$ac_try;; 3381esac 3382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3383 (eval "$ac_compile") 2>conftest.er1 3384 ac_status=$? 3385 grep -v '^ *+' conftest.er1 >conftest.err 3386 rm -f conftest.er1 3387 cat conftest.err >&5 3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3389 (exit $ac_status); } && { 3390 test -z "$ac_c_werror_flag" || 3391 test ! -s conftest.err 3392 } && test -s conftest.$ac_objext; then 3393 ac_cv_prog_cc_c89=$ac_arg 3394else 3395 echo "$as_me: failed program was:" >&5 3396sed 's/^/| /' conftest.$ac_ext >&5 3397 3398 3399fi 3400 3401rm -f core conftest.err conftest.$ac_objext 3402 test "x$ac_cv_prog_cc_c89" != "xno" && break 3403done 3404rm -f conftest.$ac_ext 3405CC=$ac_save_CC 3406 3407fi 3408# AC_CACHE_VAL 3409case "x$ac_cv_prog_cc_c89" in 3410 x) 3411 { echo "$as_me:$LINENO: result: none needed" >&5 3412echo "${ECHO_T}none needed" >&6; } ;; 3413 xno) 3414 { echo "$as_me:$LINENO: result: unsupported" >&5 3415echo "${ECHO_T}unsupported" >&6; } ;; 3416 *) 3417 CC="$CC $ac_cv_prog_cc_c89" 3418 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3419echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3420esac 3421 3422 3423ac_ext=c 3424ac_cpp='$CPP $CPPFLAGS' 3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3427ac_compiler_gnu=$ac_cv_c_compiler_gnu 3428DEPDIR="${am__leading_dot}deps" 3429 3430ac_config_commands="$ac_config_commands depfiles" 3431 3432 3433am_make=${MAKE-make} 3434cat > confinc << 'END' 3435am__doit: 3436 @echo done 3437.PHONY: am__doit 3438END 3439# If we don't find an include directive, just comment out the code. 3440{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3441echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3442am__include="#" 3443am__quote= 3444_am_result=none 3445# First try GNU make style include. 3446echo "include confinc" > confmf 3447# We grep out `Entering directory' and `Leaving directory' 3448# messages which can occur if `w' ends up in MAKEFLAGS. 3449# In particular we don't look at `^make:' because GNU make might 3450# be invoked under some other name (usually "gmake"), in which 3451# case it prints its new name instead of `make'. 3452if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3453 am__include=include 3454 am__quote= 3455 _am_result=GNU 3456fi 3457# Now try BSD make style include. 3458if test "$am__include" = "#"; then 3459 echo '.include "confinc"' > confmf 3460 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3461 am__include=.include 3462 am__quote="\"" 3463 _am_result=BSD 3464 fi 3465fi 3466 3467 3468{ echo "$as_me:$LINENO: result: $_am_result" >&5 3469echo "${ECHO_T}$_am_result" >&6; } 3470rm -f confinc confmf 3471 3472# Check whether --enable-dependency-tracking was given. 3473if test "${enable_dependency_tracking+set}" = set; then 3474 enableval=$enable_dependency_tracking; 3475fi 3476 3477if test "x$enable_dependency_tracking" != xno; then 3478 am_depcomp="$ac_aux_dir/depcomp" 3479 AMDEPBACKSLASH='\' 3480fi 3481 if test "x$enable_dependency_tracking" != xno; then 3482 AMDEP_TRUE= 3483 AMDEP_FALSE='#' 3484else 3485 AMDEP_TRUE='#' 3486 AMDEP_FALSE= 3487fi 3488 3489 3490 3491depcc="$CC" am_compiler_list= 3492 3493{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3494echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3495if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3496 echo $ECHO_N "(cached) $ECHO_C" >&6 3497else 3498 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3499 # We make a subdir and do the tests there. Otherwise we can end up 3500 # making bogus files that we don't know about and never remove. For 3501 # instance it was reported that on HP-UX the gcc test will end up 3502 # making a dummy file named `D' -- because `-MD' means `put the output 3503 # in D'. 3504 mkdir conftest.dir 3505 # Copy depcomp to subdir because otherwise we won't find it if we're 3506 # using a relative directory. 3507 cp "$am_depcomp" conftest.dir 3508 cd conftest.dir 3509 # We will build objects and dependencies in a subdirectory because 3510 # it helps to detect inapplicable dependency modes. For instance 3511 # both Tru64's cc and ICC support -MD to output dependencies as a 3512 # side effect of compilation, but ICC will put the dependencies in 3513 # the current directory while Tru64 will put them in the object 3514 # directory. 3515 mkdir sub 3516 3517 am_cv_CC_dependencies_compiler_type=none 3518 if test "$am_compiler_list" = ""; then 3519 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3520 fi 3521 for depmode in $am_compiler_list; do 3522 # Setup a source with many dependencies, because some compilers 3523 # like to wrap large dependency lists on column 80 (with \), and 3524 # we should not choose a depcomp mode which is confused by this. 3525 # 3526 # We need to recreate these files for each test, as the compiler may 3527 # overwrite some of them when testing with obscure command lines. 3528 # This happens at least with the AIX C compiler. 3529 : > sub/conftest.c 3530 for i in 1 2 3 4 5 6; do 3531 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3532 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3533 # Solaris 8's {/usr,}/bin/sh. 3534 touch sub/conftst$i.h 3535 done 3536 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3537 3538 case $depmode in 3539 nosideeffect) 3540 # after this tag, mechanisms are not by side-effect, so they'll 3541 # only be used when explicitly requested 3542 if test "x$enable_dependency_tracking" = xyes; then 3543 continue 3544 else 3545 break 3546 fi 3547 ;; 3548 none) break ;; 3549 esac 3550 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3551 # mode. It turns out that the SunPro C++ compiler does not properly 3552 # handle `-M -o', and we need to detect this. 3553 if depmode=$depmode \ 3554 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3556 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3557 >/dev/null 2>conftest.err && 3558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3560 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3562 # icc doesn't choke on unknown options, it will just issue warnings 3563 # or remarks (even with -Werror). So we grep stderr for any message 3564 # that says an option was ignored or not supported. 3565 # When given -MP, icc 7.0 and 7.1 complain thusly: 3566 # icc: Command line warning: ignoring option '-M'; no argument required 3567 # The diagnosis changed in icc 8.0: 3568 # icc: Command line remark: option '-MP' not supported 3569 if (grep 'ignoring option' conftest.err || 3570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3571 am_cv_CC_dependencies_compiler_type=$depmode 3572 break 3573 fi 3574 fi 3575 done 3576 3577 cd .. 3578 rm -rf conftest.dir 3579else 3580 am_cv_CC_dependencies_compiler_type=none 3581fi 3582 3583fi 3584{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3585echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3586CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3587 3588 if 3589 test "x$enable_dependency_tracking" != xno \ 3590 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3591 am__fastdepCC_TRUE= 3592 am__fastdepCC_FALSE='#' 3593else 3594 am__fastdepCC_TRUE='#' 3595 am__fastdepCC_FALSE= 3596fi 3597 3598 3599# Check whether --enable-shared was given. 3600if test "${enable_shared+set}" = set; then 3601 enableval=$enable_shared; p=${PACKAGE-default} 3602 case $enableval in 3603 yes) enable_shared=yes ;; 3604 no) enable_shared=no ;; 3605 *) 3606 enable_shared=no 3607 # Look at the argument we got. We use all the common list separators. 3608 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3609 for pkg in $enableval; do 3610 IFS="$lt_save_ifs" 3611 if test "X$pkg" = "X$p"; then 3612 enable_shared=yes 3613 fi 3614 done 3615 IFS="$lt_save_ifs" 3616 ;; 3617 esac 3618else 3619 enable_shared=yes 3620fi 3621 3622 3623# Check whether --enable-static was given. 3624if test "${enable_static+set}" = set; then 3625 enableval=$enable_static; p=${PACKAGE-default} 3626 case $enableval in 3627 yes) enable_static=yes ;; 3628 no) enable_static=no ;; 3629 *) 3630 enable_static=no 3631 # Look at the argument we got. We use all the common list separators. 3632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3633 for pkg in $enableval; do 3634 IFS="$lt_save_ifs" 3635 if test "X$pkg" = "X$p"; then 3636 enable_static=yes 3637 fi 3638 done 3639 IFS="$lt_save_ifs" 3640 ;; 3641 esac 3642else 3643 enable_static=yes 3644fi 3645 3646 3647# Check whether --enable-fast-install was given. 3648if test "${enable_fast_install+set}" = set; then 3649 enableval=$enable_fast_install; p=${PACKAGE-default} 3650 case $enableval in 3651 yes) enable_fast_install=yes ;; 3652 no) enable_fast_install=no ;; 3653 *) 3654 enable_fast_install=no 3655 # Look at the argument we got. We use all the common list separators. 3656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3657 for pkg in $enableval; do 3658 IFS="$lt_save_ifs" 3659 if test "X$pkg" = "X$p"; then 3660 enable_fast_install=yes 3661 fi 3662 done 3663 IFS="$lt_save_ifs" 3664 ;; 3665 esac 3666else 3667 enable_fast_install=yes 3668fi 3669 3670 3671# Make sure we can run config.sub. 3672$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3673 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3674echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3675 { (exit 1); exit 1; }; } 3676 3677{ echo "$as_me:$LINENO: checking build system type" >&5 3678echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3679if test "${ac_cv_build+set}" = set; then 3680 echo $ECHO_N "(cached) $ECHO_C" >&6 3681else 3682 ac_build_alias=$build_alias 3683test "x$ac_build_alias" = x && 3684 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3685test "x$ac_build_alias" = x && 3686 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3687echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3688 { (exit 1); exit 1; }; } 3689ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3690 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3691echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3692 { (exit 1); exit 1; }; } 3693 3694fi 3695{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3696echo "${ECHO_T}$ac_cv_build" >&6; } 3697case $ac_cv_build in 3698*-*-*) ;; 3699*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3700echo "$as_me: error: invalid value of canonical build" >&2;} 3701 { (exit 1); exit 1; }; };; 3702esac 3703build=$ac_cv_build 3704ac_save_IFS=$IFS; IFS='-' 3705set x $ac_cv_build 3706shift 3707build_cpu=$1 3708build_vendor=$2 3709shift; shift 3710# Remember, the first character of IFS is used to create $*, 3711# except with old shells: 3712build_os=$* 3713IFS=$ac_save_IFS 3714case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3715 3716 3717{ echo "$as_me:$LINENO: checking host system type" >&5 3718echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3719if test "${ac_cv_host+set}" = set; then 3720 echo $ECHO_N "(cached) $ECHO_C" >&6 3721else 3722 if test "x$host_alias" = x; then 3723 ac_cv_host=$ac_cv_build 3724else 3725 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3726 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3727echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3728 { (exit 1); exit 1; }; } 3729fi 3730 3731fi 3732{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3733echo "${ECHO_T}$ac_cv_host" >&6; } 3734case $ac_cv_host in 3735*-*-*) ;; 3736*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3737echo "$as_me: error: invalid value of canonical host" >&2;} 3738 { (exit 1); exit 1; }; };; 3739esac 3740host=$ac_cv_host 3741ac_save_IFS=$IFS; IFS='-' 3742set x $ac_cv_host 3743shift 3744host_cpu=$1 3745host_vendor=$2 3746shift; shift 3747# Remember, the first character of IFS is used to create $*, 3748# except with old shells: 3749host_os=$* 3750IFS=$ac_save_IFS 3751case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3752 3753 3754{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3755echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3756if test "${lt_cv_path_SED+set}" = set; then 3757 echo $ECHO_N "(cached) $ECHO_C" >&6 3758else 3759 # Loop through the user's path and test for sed and gsed. 3760# Then use that list of sed's as ones to test for truncation. 3761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3762for as_dir in $PATH 3763do 3764 IFS=$as_save_IFS 3765 test -z "$as_dir" && as_dir=. 3766 for lt_ac_prog in sed gsed; do 3767 for ac_exec_ext in '' $ac_executable_extensions; do 3768 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3769 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3770 fi 3771 done 3772 done 3773done 3774lt_ac_max=0 3775lt_ac_count=0 3776# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3777# along with /bin/sed that truncates output. 3778for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3779 test ! -f $lt_ac_sed && continue 3780 cat /dev/null > conftest.in 3781 lt_ac_count=0 3782 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3783 # Check for GNU sed and select it if it is found. 3784 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3785 lt_cv_path_SED=$lt_ac_sed 3786 break 3787 fi 3788 while true; do 3789 cat conftest.in conftest.in >conftest.tmp 3790 mv conftest.tmp conftest.in 3791 cp conftest.in conftest.nl 3792 echo >>conftest.nl 3793 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3794 cmp -s conftest.out conftest.nl || break 3795 # 10000 chars as input seems more than enough 3796 test $lt_ac_count -gt 10 && break 3797 lt_ac_count=`expr $lt_ac_count + 1` 3798 if test $lt_ac_count -gt $lt_ac_max; then 3799 lt_ac_max=$lt_ac_count 3800 lt_cv_path_SED=$lt_ac_sed 3801 fi 3802 done 3803done 3804 3805fi 3806 3807SED=$lt_cv_path_SED 3808{ echo "$as_me:$LINENO: result: $SED" >&5 3809echo "${ECHO_T}$SED" >&6; } 3810 3811{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3812echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3813if test "${ac_cv_path_GREP+set}" = set; then 3814 echo $ECHO_N "(cached) $ECHO_C" >&6 3815else 3816 # Extract the first word of "grep ggrep" to use in msg output 3817if test -z "$GREP"; then 3818set dummy grep ggrep; ac_prog_name=$2 3819if test "${ac_cv_path_GREP+set}" = set; then 3820 echo $ECHO_N "(cached) $ECHO_C" >&6 3821else 3822 ac_path_GREP_found=false 3823# Loop through the user's path and test for each of PROGNAME-LIST 3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3825for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3826do 3827 IFS=$as_save_IFS 3828 test -z "$as_dir" && as_dir=. 3829 for ac_prog in grep ggrep; do 3830 for ac_exec_ext in '' $ac_executable_extensions; do 3831 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3832 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3833 # Check for GNU ac_path_GREP and select it if it is found. 3834 # Check for GNU $ac_path_GREP 3835case `"$ac_path_GREP" --version 2>&1` in 3836*GNU*) 3837 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3838*) 3839 ac_count=0 3840 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3841 while : 3842 do 3843 cat "conftest.in" "conftest.in" >"conftest.tmp" 3844 mv "conftest.tmp" "conftest.in" 3845 cp "conftest.in" "conftest.nl" 3846 echo 'GREP' >> "conftest.nl" 3847 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3849 ac_count=`expr $ac_count + 1` 3850 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3851 # Best one so far, save it but keep looking for a better one 3852 ac_cv_path_GREP="$ac_path_GREP" 3853 ac_path_GREP_max=$ac_count 3854 fi 3855 # 10*(2^10) chars as input seems more than enough 3856 test $ac_count -gt 10 && break 3857 done 3858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3859esac 3860 3861 3862 $ac_path_GREP_found && break 3 3863 done 3864done 3865 3866done 3867IFS=$as_save_IFS 3868 3869 3870fi 3871 3872GREP="$ac_cv_path_GREP" 3873if test -z "$GREP"; then 3874 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3875echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3876 { (exit 1); exit 1; }; } 3877fi 3878 3879else 3880 ac_cv_path_GREP=$GREP 3881fi 3882 3883 3884fi 3885{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3886echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3887 GREP="$ac_cv_path_GREP" 3888 3889 3890{ echo "$as_me:$LINENO: checking for egrep" >&5 3891echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3892if test "${ac_cv_path_EGREP+set}" = set; then 3893 echo $ECHO_N "(cached) $ECHO_C" >&6 3894else 3895 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3896 then ac_cv_path_EGREP="$GREP -E" 3897 else 3898 # Extract the first word of "egrep" to use in msg output 3899if test -z "$EGREP"; then 3900set dummy egrep; ac_prog_name=$2 3901if test "${ac_cv_path_EGREP+set}" = set; then 3902 echo $ECHO_N "(cached) $ECHO_C" >&6 3903else 3904 ac_path_EGREP_found=false 3905# Loop through the user's path and test for each of PROGNAME-LIST 3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3907for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3908do 3909 IFS=$as_save_IFS 3910 test -z "$as_dir" && as_dir=. 3911 for ac_prog in egrep; do 3912 for ac_exec_ext in '' $ac_executable_extensions; do 3913 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3914 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3915 # Check for GNU ac_path_EGREP and select it if it is found. 3916 # Check for GNU $ac_path_EGREP 3917case `"$ac_path_EGREP" --version 2>&1` in 3918*GNU*) 3919 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3920*) 3921 ac_count=0 3922 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3923 while : 3924 do 3925 cat "conftest.in" "conftest.in" >"conftest.tmp" 3926 mv "conftest.tmp" "conftest.in" 3927 cp "conftest.in" "conftest.nl" 3928 echo 'EGREP' >> "conftest.nl" 3929 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3931 ac_count=`expr $ac_count + 1` 3932 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3933 # Best one so far, save it but keep looking for a better one 3934 ac_cv_path_EGREP="$ac_path_EGREP" 3935 ac_path_EGREP_max=$ac_count 3936 fi 3937 # 10*(2^10) chars as input seems more than enough 3938 test $ac_count -gt 10 && break 3939 done 3940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3941esac 3942 3943 3944 $ac_path_EGREP_found && break 3 3945 done 3946done 3947 3948done 3949IFS=$as_save_IFS 3950 3951 3952fi 3953 3954EGREP="$ac_cv_path_EGREP" 3955if test -z "$EGREP"; then 3956 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3957echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3958 { (exit 1); exit 1; }; } 3959fi 3960 3961else 3962 ac_cv_path_EGREP=$EGREP 3963fi 3964 3965 3966 fi 3967fi 3968{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3969echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3970 EGREP="$ac_cv_path_EGREP" 3971 3972 3973 3974# Check whether --with-gnu-ld was given. 3975if test "${with_gnu_ld+set}" = set; then 3976 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3977else 3978 with_gnu_ld=no 3979fi 3980 3981ac_prog=ld 3982if test "$GCC" = yes; then 3983 # Check if gcc -print-prog-name=ld gives a path. 3984 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3985echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3986 case $host in 3987 *-*-mingw*) 3988 # gcc leaves a trailing carriage return which upsets mingw 3989 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3990 *) 3991 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3992 esac 3993 case $ac_prog in 3994 # Accept absolute paths. 3995 [\\/]* | ?:[\\/]*) 3996 re_direlt='/[^/][^/]*/\.\./' 3997 # Canonicalize the pathname of ld 3998 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3999 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4000 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4001 done 4002 test -z "$LD" && LD="$ac_prog" 4003 ;; 4004 "") 4005 # If it fails, then pretend we aren't using GCC. 4006 ac_prog=ld 4007 ;; 4008 *) 4009 # If it is relative, then search for the first ld in PATH. 4010 with_gnu_ld=unknown 4011 ;; 4012 esac 4013elif test "$with_gnu_ld" = yes; then 4014 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4015echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4016else 4017 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4018echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4019fi 4020if test "${lt_cv_path_LD+set}" = set; then 4021 echo $ECHO_N "(cached) $ECHO_C" >&6 4022else 4023 if test -z "$LD"; then 4024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4025 for ac_dir in $PATH; do 4026 IFS="$lt_save_ifs" 4027 test -z "$ac_dir" && ac_dir=. 4028 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4029 lt_cv_path_LD="$ac_dir/$ac_prog" 4030 # Check to see if the program is GNU ld. I'd rather use --version, 4031 # but apparently some variants of GNU ld only accept -v. 4032 # Break only if it was the GNU/non-GNU ld that we prefer. 4033 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4034 *GNU* | *'with BFD'*) 4035 test "$with_gnu_ld" != no && break 4036 ;; 4037 *) 4038 test "$with_gnu_ld" != yes && break 4039 ;; 4040 esac 4041 fi 4042 done 4043 IFS="$lt_save_ifs" 4044else 4045 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4046fi 4047fi 4048 4049LD="$lt_cv_path_LD" 4050if test -n "$LD"; then 4051 { echo "$as_me:$LINENO: result: $LD" >&5 4052echo "${ECHO_T}$LD" >&6; } 4053else 4054 { echo "$as_me:$LINENO: result: no" >&5 4055echo "${ECHO_T}no" >&6; } 4056fi 4057test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4058echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4059 { (exit 1); exit 1; }; } 4060{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4061echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4062if test "${lt_cv_prog_gnu_ld+set}" = set; then 4063 echo $ECHO_N "(cached) $ECHO_C" >&6 4064else 4065 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4066case `$LD -v 2>&1 </dev/null` in 4067*GNU* | *'with BFD'*) 4068 lt_cv_prog_gnu_ld=yes 4069 ;; 4070*) 4071 lt_cv_prog_gnu_ld=no 4072 ;; 4073esac 4074fi 4075{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4076echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4077with_gnu_ld=$lt_cv_prog_gnu_ld 4078 4079 4080{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4081echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4082if test "${lt_cv_ld_reload_flag+set}" = set; then 4083 echo $ECHO_N "(cached) $ECHO_C" >&6 4084else 4085 lt_cv_ld_reload_flag='-r' 4086fi 4087{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4088echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4089reload_flag=$lt_cv_ld_reload_flag 4090case $reload_flag in 4091"" | " "*) ;; 4092*) reload_flag=" $reload_flag" ;; 4093esac 4094reload_cmds='$LD$reload_flag -o $output$reload_objs' 4095case $host_os in 4096 darwin*) 4097 if test "$GCC" = yes; then 4098 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4099 else 4100 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4101 fi 4102 ;; 4103esac 4104 4105{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4106echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4107if test "${lt_cv_path_NM+set}" = set; then 4108 echo $ECHO_N "(cached) $ECHO_C" >&6 4109else 4110 if test -n "$NM"; then 4111 # Let the user override the test. 4112 lt_cv_path_NM="$NM" 4113else 4114 lt_nm_to_check="${ac_tool_prefix}nm" 4115 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4116 lt_nm_to_check="$lt_nm_to_check nm" 4117 fi 4118 for lt_tmp_nm in $lt_nm_to_check; do 4119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4120 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4121 IFS="$lt_save_ifs" 4122 test -z "$ac_dir" && ac_dir=. 4123 tmp_nm="$ac_dir/$lt_tmp_nm" 4124 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4125 # Check to see if the nm accepts a BSD-compat flag. 4126 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4127 # nm: unknown option "B" ignored 4128 # Tru64's nm complains that /dev/null is an invalid object file 4129 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4130 */dev/null* | *'Invalid file or object type'*) 4131 lt_cv_path_NM="$tmp_nm -B" 4132 break 4133 ;; 4134 *) 4135 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4136 */dev/null*) 4137 lt_cv_path_NM="$tmp_nm -p" 4138 break 4139 ;; 4140 *) 4141 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4142 continue # so that we can try to find one that supports BSD flags 4143 ;; 4144 esac 4145 ;; 4146 esac 4147 fi 4148 done 4149 IFS="$lt_save_ifs" 4150 done 4151 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4152fi 4153fi 4154{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4155echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4156NM="$lt_cv_path_NM" 4157 4158{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4159echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4160LN_S=$as_ln_s 4161if test "$LN_S" = "ln -s"; then 4162 { echo "$as_me:$LINENO: result: yes" >&5 4163echo "${ECHO_T}yes" >&6; } 4164else 4165 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4166echo "${ECHO_T}no, using $LN_S" >&6; } 4167fi 4168 4169{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4170echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4171if test "${lt_cv_deplibs_check_method+set}" = set; then 4172 echo $ECHO_N "(cached) $ECHO_C" >&6 4173else 4174 lt_cv_file_magic_cmd='$MAGIC_CMD' 4175lt_cv_file_magic_test_file= 4176lt_cv_deplibs_check_method='unknown' 4177# Need to set the preceding variable on all platforms that support 4178# interlibrary dependencies. 4179# 'none' -- dependencies not supported. 4180# `unknown' -- same as none, but documents that we really don't know. 4181# 'pass_all' -- all dependencies passed with no checks. 4182# 'test_compile' -- check by making test program. 4183# 'file_magic [[regex]]' -- check by looking for files in library path 4184# which responds to the $file_magic_cmd with a given extended regex. 4185# If you have `file' or equivalent on your system and you're not sure 4186# whether `pass_all' will *always* work, you probably want this one. 4187 4188case $host_os in 4189aix4* | aix5*) 4190 lt_cv_deplibs_check_method=pass_all 4191 ;; 4192 4193beos*) 4194 lt_cv_deplibs_check_method=pass_all 4195 ;; 4196 4197bsdi[45]*) 4198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4199 lt_cv_file_magic_cmd='/usr/bin/file -L' 4200 lt_cv_file_magic_test_file=/shlib/libc.so 4201 ;; 4202 4203cygwin*) 4204 # func_win32_libid is a shell function defined in ltmain.sh 4205 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4206 lt_cv_file_magic_cmd='func_win32_libid' 4207 ;; 4208 4209mingw* | pw32*) 4210 # Base MSYS/MinGW do not provide the 'file' command needed by 4211 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4212 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4213 lt_cv_file_magic_cmd='$OBJDUMP -f' 4214 ;; 4215 4216darwin* | rhapsody*) 4217 lt_cv_deplibs_check_method=pass_all 4218 ;; 4219 4220freebsd* | kfreebsd*-gnu | dragonfly*) 4221 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4222 case $host_cpu in 4223 i*86 ) 4224 # Not sure whether the presence of OpenBSD here was a mistake. 4225 # Let's accept both of them until this is cleared up. 4226 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4227 lt_cv_file_magic_cmd=/usr/bin/file 4228 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4229 ;; 4230 esac 4231 else 4232 lt_cv_deplibs_check_method=pass_all 4233 fi 4234 ;; 4235 4236gnu*) 4237 lt_cv_deplibs_check_method=pass_all 4238 ;; 4239 4240hpux10.20* | hpux11*) 4241 lt_cv_file_magic_cmd=/usr/bin/file 4242 case $host_cpu in 4243 ia64*) 4244 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4245 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4246 ;; 4247 hppa*64*) 4248 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 4249 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4250 ;; 4251 *) 4252 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4253 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4254 ;; 4255 esac 4256 ;; 4257 4258interix3*) 4259 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4261 ;; 4262 4263irix5* | irix6* | nonstopux*) 4264 case $LD in 4265 *-32|*"-32 ") libmagic=32-bit;; 4266 *-n32|*"-n32 ") libmagic=N32;; 4267 *-64|*"-64 ") libmagic=64-bit;; 4268 *) libmagic=never-match;; 4269 esac 4270 lt_cv_deplibs_check_method=pass_all 4271 ;; 4272 4273# This must be Linux ELF. 4274linux*) 4275 lt_cv_deplibs_check_method=pass_all 4276 ;; 4277 4278netbsd*) 4279 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4281 else 4282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4283 fi 4284 ;; 4285 4286newos6*) 4287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4288 lt_cv_file_magic_cmd=/usr/bin/file 4289 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4290 ;; 4291 4292nto-qnx*) 4293 lt_cv_deplibs_check_method=unknown 4294 ;; 4295 4296openbsd*) 4297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4299 else 4300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4301 fi 4302 ;; 4303 4304osf3* | osf4* | osf5*) 4305 lt_cv_deplibs_check_method=pass_all 4306 ;; 4307 4308solaris*) 4309 lt_cv_deplibs_check_method=pass_all 4310 ;; 4311 4312sysv4 | sysv4.3*) 4313 case $host_vendor in 4314 motorola) 4315 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]' 4316 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4317 ;; 4318 ncr) 4319 lt_cv_deplibs_check_method=pass_all 4320 ;; 4321 sequent) 4322 lt_cv_file_magic_cmd='/bin/file' 4323 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4324 ;; 4325 sni) 4326 lt_cv_file_magic_cmd='/bin/file' 4327 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4328 lt_cv_file_magic_test_file=/lib/libc.so 4329 ;; 4330 siemens) 4331 lt_cv_deplibs_check_method=pass_all 4332 ;; 4333 pc) 4334 lt_cv_deplibs_check_method=pass_all 4335 ;; 4336 esac 4337 ;; 4338 4339sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4340 lt_cv_deplibs_check_method=pass_all 4341 ;; 4342esac 4343 4344fi 4345{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4346echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4347file_magic_cmd=$lt_cv_file_magic_cmd 4348deplibs_check_method=$lt_cv_deplibs_check_method 4349test -z "$deplibs_check_method" && deplibs_check_method=unknown 4350 4351 4352 4353 4354# If no C compiler was specified, use CC. 4355LTCC=${LTCC-"$CC"} 4356 4357# If no C compiler flags were specified, use CFLAGS. 4358LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4359 4360# Allow CC to be a program name with arguments. 4361compiler=$CC 4362 4363 4364# Check whether --enable-libtool-lock was given. 4365if test "${enable_libtool_lock+set}" = set; then 4366 enableval=$enable_libtool_lock; 4367fi 4368 4369test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4370 4371# Some flags need to be propagated to the compiler or linker for good 4372# libtool support. 4373case $host in 4374ia64-*-hpux*) 4375 # Find out which ABI we are using. 4376 echo 'int i;' > conftest.$ac_ext 4377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4378 (eval $ac_compile) 2>&5 4379 ac_status=$? 4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4381 (exit $ac_status); }; then 4382 case `/usr/bin/file conftest.$ac_objext` in 4383 *ELF-32*) 4384 HPUX_IA64_MODE="32" 4385 ;; 4386 *ELF-64*) 4387 HPUX_IA64_MODE="64" 4388 ;; 4389 esac 4390 fi 4391 rm -rf conftest* 4392 ;; 4393*-*-irix6*) 4394 # Find out which ABI we are using. 4395 echo '#line 4395 "configure"' > conftest.$ac_ext 4396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4397 (eval $ac_compile) 2>&5 4398 ac_status=$? 4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4400 (exit $ac_status); }; then 4401 if test "$lt_cv_prog_gnu_ld" = yes; then 4402 case `/usr/bin/file conftest.$ac_objext` in 4403 *32-bit*) 4404 LD="${LD-ld} -melf32bsmip" 4405 ;; 4406 *N32*) 4407 LD="${LD-ld} -melf32bmipn32" 4408 ;; 4409 *64-bit*) 4410 LD="${LD-ld} -melf64bmip" 4411 ;; 4412 esac 4413 else 4414 case `/usr/bin/file conftest.$ac_objext` in 4415 *32-bit*) 4416 LD="${LD-ld} -32" 4417 ;; 4418 *N32*) 4419 LD="${LD-ld} -n32" 4420 ;; 4421 *64-bit*) 4422 LD="${LD-ld} -64" 4423 ;; 4424 esac 4425 fi 4426 fi 4427 rm -rf conftest* 4428 ;; 4429 4430x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4431 # Find out which ABI we are using. 4432 echo 'int i;' > conftest.$ac_ext 4433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4434 (eval $ac_compile) 2>&5 4435 ac_status=$? 4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4437 (exit $ac_status); }; then 4438 case `/usr/bin/file conftest.o` in 4439 *32-bit*) 4440 case $host in 4441 x86_64-*linux*) 4442 LD="${LD-ld} -m elf_i386" 4443 ;; 4444 ppc64-*linux*|powerpc64-*linux*) 4445 LD="${LD-ld} -m elf32ppclinux" 4446 ;; 4447 s390x-*linux*) 4448 LD="${LD-ld} -m elf_s390" 4449 ;; 4450 sparc64-*linux*) 4451 LD="${LD-ld} -m elf32_sparc" 4452 ;; 4453 esac 4454 ;; 4455 *64-bit*) 4456 case $host in 4457 x86_64-*linux*) 4458 LD="${LD-ld} -m elf_x86_64" 4459 ;; 4460 ppc*-*linux*|powerpc*-*linux*) 4461 LD="${LD-ld} -m elf64ppc" 4462 ;; 4463 s390*-*linux*) 4464 LD="${LD-ld} -m elf64_s390" 4465 ;; 4466 sparc*-*linux*) 4467 LD="${LD-ld} -m elf64_sparc" 4468 ;; 4469 esac 4470 ;; 4471 esac 4472 fi 4473 rm -rf conftest* 4474 ;; 4475 4476*-*-sco3.2v5*) 4477 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4478 SAVE_CFLAGS="$CFLAGS" 4479 CFLAGS="$CFLAGS -belf" 4480 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4481echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4482if test "${lt_cv_cc_needs_belf+set}" = set; then 4483 echo $ECHO_N "(cached) $ECHO_C" >&6 4484else 4485 ac_ext=c 4486ac_cpp='$CPP $CPPFLAGS' 4487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4489ac_compiler_gnu=$ac_cv_c_compiler_gnu 4490 4491 cat >conftest.$ac_ext <<_ACEOF 4492/* confdefs.h. */ 4493_ACEOF 4494cat confdefs.h >>conftest.$ac_ext 4495cat >>conftest.$ac_ext <<_ACEOF 4496/* end confdefs.h. */ 4497 4498int 4499main () 4500{ 4501 4502 ; 4503 return 0; 4504} 4505_ACEOF 4506rm -f conftest.$ac_objext conftest$ac_exeext 4507if { (ac_try="$ac_link" 4508case "(($ac_try" in 4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4510 *) ac_try_echo=$ac_try;; 4511esac 4512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4513 (eval "$ac_link") 2>conftest.er1 4514 ac_status=$? 4515 grep -v '^ *+' conftest.er1 >conftest.err 4516 rm -f conftest.er1 4517 cat conftest.err >&5 4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4519 (exit $ac_status); } && { 4520 test -z "$ac_c_werror_flag" || 4521 test ! -s conftest.err 4522 } && test -s conftest$ac_exeext && 4523 $as_test_x conftest$ac_exeext; then 4524 lt_cv_cc_needs_belf=yes 4525else 4526 echo "$as_me: failed program was:" >&5 4527sed 's/^/| /' conftest.$ac_ext >&5 4528 4529 lt_cv_cc_needs_belf=no 4530fi 4531 4532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4533 conftest$ac_exeext conftest.$ac_ext 4534 ac_ext=c 4535ac_cpp='$CPP $CPPFLAGS' 4536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4538ac_compiler_gnu=$ac_cv_c_compiler_gnu 4539 4540fi 4541{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4542echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4543 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4544 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4545 CFLAGS="$SAVE_CFLAGS" 4546 fi 4547 ;; 4548sparc*-*solaris*) 4549 # Find out which ABI we are using. 4550 echo 'int i;' > conftest.$ac_ext 4551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4552 (eval $ac_compile) 2>&5 4553 ac_status=$? 4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4555 (exit $ac_status); }; then 4556 case `/usr/bin/file conftest.o` in 4557 *64-bit*) 4558 case $lt_cv_prog_gnu_ld in 4559 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4560 *) LD="${LD-ld} -64" ;; 4561 esac 4562 ;; 4563 esac 4564 fi 4565 rm -rf conftest* 4566 ;; 4567 4568 4569esac 4570 4571need_locks="$enable_libtool_lock" 4572 4573 4574ac_ext=c 4575ac_cpp='$CPP $CPPFLAGS' 4576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4578ac_compiler_gnu=$ac_cv_c_compiler_gnu 4579{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4580echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4581# On Suns, sometimes $CPP names a directory. 4582if test -n "$CPP" && test -d "$CPP"; then 4583 CPP= 4584fi 4585if test -z "$CPP"; then 4586 if test "${ac_cv_prog_CPP+set}" = set; then 4587 echo $ECHO_N "(cached) $ECHO_C" >&6 4588else 4589 # Double quotes because CPP needs to be expanded 4590 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4591 do 4592 ac_preproc_ok=false 4593for ac_c_preproc_warn_flag in '' yes 4594do 4595 # Use a header file that comes with gcc, so configuring glibc 4596 # with a fresh cross-compiler works. 4597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4598 # <limits.h> exists even on freestanding compilers. 4599 # On the NeXT, cc -E runs the code through the compiler's parser, 4600 # not just through cpp. "Syntax error" is here to catch this case. 4601 cat >conftest.$ac_ext <<_ACEOF 4602/* confdefs.h. */ 4603_ACEOF 4604cat confdefs.h >>conftest.$ac_ext 4605cat >>conftest.$ac_ext <<_ACEOF 4606/* end confdefs.h. */ 4607#ifdef __STDC__ 4608# include <limits.h> 4609#else 4610# include <assert.h> 4611#endif 4612 Syntax error 4613_ACEOF 4614if { (ac_try="$ac_cpp conftest.$ac_ext" 4615case "(($ac_try" in 4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4617 *) ac_try_echo=$ac_try;; 4618esac 4619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4621 ac_status=$? 4622 grep -v '^ *+' conftest.er1 >conftest.err 4623 rm -f conftest.er1 4624 cat conftest.err >&5 4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4626 (exit $ac_status); } >/dev/null && { 4627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4628 test ! -s conftest.err 4629 }; then 4630 : 4631else 4632 echo "$as_me: failed program was:" >&5 4633sed 's/^/| /' conftest.$ac_ext >&5 4634 4635 # Broken: fails on valid input. 4636continue 4637fi 4638 4639rm -f conftest.err conftest.$ac_ext 4640 4641 # OK, works on sane cases. Now check whether nonexistent headers 4642 # can be detected and how. 4643 cat >conftest.$ac_ext <<_ACEOF 4644/* confdefs.h. */ 4645_ACEOF 4646cat confdefs.h >>conftest.$ac_ext 4647cat >>conftest.$ac_ext <<_ACEOF 4648/* end confdefs.h. */ 4649#include <ac_nonexistent.h> 4650_ACEOF 4651if { (ac_try="$ac_cpp conftest.$ac_ext" 4652case "(($ac_try" in 4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4654 *) ac_try_echo=$ac_try;; 4655esac 4656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4658 ac_status=$? 4659 grep -v '^ *+' conftest.er1 >conftest.err 4660 rm -f conftest.er1 4661 cat conftest.err >&5 4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4663 (exit $ac_status); } >/dev/null && { 4664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4665 test ! -s conftest.err 4666 }; then 4667 # Broken: success on invalid input. 4668continue 4669else 4670 echo "$as_me: failed program was:" >&5 4671sed 's/^/| /' conftest.$ac_ext >&5 4672 4673 # Passes both tests. 4674ac_preproc_ok=: 4675break 4676fi 4677 4678rm -f conftest.err conftest.$ac_ext 4679 4680done 4681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4682rm -f conftest.err conftest.$ac_ext 4683if $ac_preproc_ok; then 4684 break 4685fi 4686 4687 done 4688 ac_cv_prog_CPP=$CPP 4689 4690fi 4691 CPP=$ac_cv_prog_CPP 4692else 4693 ac_cv_prog_CPP=$CPP 4694fi 4695{ echo "$as_me:$LINENO: result: $CPP" >&5 4696echo "${ECHO_T}$CPP" >&6; } 4697ac_preproc_ok=false 4698for ac_c_preproc_warn_flag in '' yes 4699do 4700 # Use a header file that comes with gcc, so configuring glibc 4701 # with a fresh cross-compiler works. 4702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4703 # <limits.h> exists even on freestanding compilers. 4704 # On the NeXT, cc -E runs the code through the compiler's parser, 4705 # not just through cpp. "Syntax error" is here to catch this case. 4706 cat >conftest.$ac_ext <<_ACEOF 4707/* confdefs.h. */ 4708_ACEOF 4709cat confdefs.h >>conftest.$ac_ext 4710cat >>conftest.$ac_ext <<_ACEOF 4711/* end confdefs.h. */ 4712#ifdef __STDC__ 4713# include <limits.h> 4714#else 4715# include <assert.h> 4716#endif 4717 Syntax error 4718_ACEOF 4719if { (ac_try="$ac_cpp conftest.$ac_ext" 4720case "(($ac_try" in 4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4722 *) ac_try_echo=$ac_try;; 4723esac 4724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4726 ac_status=$? 4727 grep -v '^ *+' conftest.er1 >conftest.err 4728 rm -f conftest.er1 4729 cat conftest.err >&5 4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4731 (exit $ac_status); } >/dev/null && { 4732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4733 test ! -s conftest.err 4734 }; then 4735 : 4736else 4737 echo "$as_me: failed program was:" >&5 4738sed 's/^/| /' conftest.$ac_ext >&5 4739 4740 # Broken: fails on valid input. 4741continue 4742fi 4743 4744rm -f conftest.err conftest.$ac_ext 4745 4746 # OK, works on sane cases. Now check whether nonexistent headers 4747 # can be detected and how. 4748 cat >conftest.$ac_ext <<_ACEOF 4749/* confdefs.h. */ 4750_ACEOF 4751cat confdefs.h >>conftest.$ac_ext 4752cat >>conftest.$ac_ext <<_ACEOF 4753/* end confdefs.h. */ 4754#include <ac_nonexistent.h> 4755_ACEOF 4756if { (ac_try="$ac_cpp conftest.$ac_ext" 4757case "(($ac_try" in 4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4759 *) ac_try_echo=$ac_try;; 4760esac 4761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4763 ac_status=$? 4764 grep -v '^ *+' conftest.er1 >conftest.err 4765 rm -f conftest.er1 4766 cat conftest.err >&5 4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4768 (exit $ac_status); } >/dev/null && { 4769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4770 test ! -s conftest.err 4771 }; then 4772 # Broken: success on invalid input. 4773continue 4774else 4775 echo "$as_me: failed program was:" >&5 4776sed 's/^/| /' conftest.$ac_ext >&5 4777 4778 # Passes both tests. 4779ac_preproc_ok=: 4780break 4781fi 4782 4783rm -f conftest.err conftest.$ac_ext 4784 4785done 4786# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4787rm -f conftest.err conftest.$ac_ext 4788if $ac_preproc_ok; then 4789 : 4790else 4791 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4792See \`config.log' for more details." >&5 4793echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4794See \`config.log' for more details." >&2;} 4795 { (exit 1); exit 1; }; } 4796fi 4797 4798ac_ext=c 4799ac_cpp='$CPP $CPPFLAGS' 4800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4802ac_compiler_gnu=$ac_cv_c_compiler_gnu 4803 4804 4805{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4806echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4807if test "${ac_cv_header_stdc+set}" = set; then 4808 echo $ECHO_N "(cached) $ECHO_C" >&6 4809else 4810 cat >conftest.$ac_ext <<_ACEOF 4811/* confdefs.h. */ 4812_ACEOF 4813cat confdefs.h >>conftest.$ac_ext 4814cat >>conftest.$ac_ext <<_ACEOF 4815/* end confdefs.h. */ 4816#include <stdlib.h> 4817#include <stdarg.h> 4818#include <string.h> 4819#include <float.h> 4820 4821int 4822main () 4823{ 4824 4825 ; 4826 return 0; 4827} 4828_ACEOF 4829rm -f conftest.$ac_objext 4830if { (ac_try="$ac_compile" 4831case "(($ac_try" in 4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4833 *) ac_try_echo=$ac_try;; 4834esac 4835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4836 (eval "$ac_compile") 2>conftest.er1 4837 ac_status=$? 4838 grep -v '^ *+' conftest.er1 >conftest.err 4839 rm -f conftest.er1 4840 cat conftest.err >&5 4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4842 (exit $ac_status); } && { 4843 test -z "$ac_c_werror_flag" || 4844 test ! -s conftest.err 4845 } && test -s conftest.$ac_objext; then 4846 ac_cv_header_stdc=yes 4847else 4848 echo "$as_me: failed program was:" >&5 4849sed 's/^/| /' conftest.$ac_ext >&5 4850 4851 ac_cv_header_stdc=no 4852fi 4853 4854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4855 4856if test $ac_cv_header_stdc = yes; then 4857 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4858 cat >conftest.$ac_ext <<_ACEOF 4859/* confdefs.h. */ 4860_ACEOF 4861cat confdefs.h >>conftest.$ac_ext 4862cat >>conftest.$ac_ext <<_ACEOF 4863/* end confdefs.h. */ 4864#include <string.h> 4865 4866_ACEOF 4867if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4868 $EGREP "memchr" >/dev/null 2>&1; then 4869 : 4870else 4871 ac_cv_header_stdc=no 4872fi 4873rm -f conftest* 4874 4875fi 4876 4877if test $ac_cv_header_stdc = yes; then 4878 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4879 cat >conftest.$ac_ext <<_ACEOF 4880/* confdefs.h. */ 4881_ACEOF 4882cat confdefs.h >>conftest.$ac_ext 4883cat >>conftest.$ac_ext <<_ACEOF 4884/* end confdefs.h. */ 4885#include <stdlib.h> 4886 4887_ACEOF 4888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4889 $EGREP "free" >/dev/null 2>&1; then 4890 : 4891else 4892 ac_cv_header_stdc=no 4893fi 4894rm -f conftest* 4895 4896fi 4897 4898if test $ac_cv_header_stdc = yes; then 4899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4900 if test "$cross_compiling" = yes; then 4901 : 4902else 4903 cat >conftest.$ac_ext <<_ACEOF 4904/* confdefs.h. */ 4905_ACEOF 4906cat confdefs.h >>conftest.$ac_ext 4907cat >>conftest.$ac_ext <<_ACEOF 4908/* end confdefs.h. */ 4909#include <ctype.h> 4910#include <stdlib.h> 4911#if ((' ' & 0x0FF) == 0x020) 4912# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4913# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4914#else 4915# define ISLOWER(c) \ 4916 (('a' <= (c) && (c) <= 'i') \ 4917 || ('j' <= (c) && (c) <= 'r') \ 4918 || ('s' <= (c) && (c) <= 'z')) 4919# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4920#endif 4921 4922#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4923int 4924main () 4925{ 4926 int i; 4927 for (i = 0; i < 256; i++) 4928 if (XOR (islower (i), ISLOWER (i)) 4929 || toupper (i) != TOUPPER (i)) 4930 return 2; 4931 return 0; 4932} 4933_ACEOF 4934rm -f conftest$ac_exeext 4935if { (ac_try="$ac_link" 4936case "(($ac_try" in 4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4938 *) ac_try_echo=$ac_try;; 4939esac 4940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4941 (eval "$ac_link") 2>&5 4942 ac_status=$? 4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4945 { (case "(($ac_try" in 4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4947 *) ac_try_echo=$ac_try;; 4948esac 4949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4950 (eval "$ac_try") 2>&5 4951 ac_status=$? 4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4953 (exit $ac_status); }; }; then 4954 : 4955else 4956 echo "$as_me: program exited with status $ac_status" >&5 4957echo "$as_me: failed program was:" >&5 4958sed 's/^/| /' conftest.$ac_ext >&5 4959 4960( exit $ac_status ) 4961ac_cv_header_stdc=no 4962fi 4963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4964fi 4965 4966 4967fi 4968fi 4969{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4970echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4971if test $ac_cv_header_stdc = yes; then 4972 4973cat >>confdefs.h <<\_ACEOF 4974#define STDC_HEADERS 1 4975_ACEOF 4976 4977fi 4978 4979# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4990 inttypes.h stdint.h unistd.h 4991do 4992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4993{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4996 echo $ECHO_N "(cached) $ECHO_C" >&6 4997else 4998 cat >conftest.$ac_ext <<_ACEOF 4999/* confdefs.h. */ 5000_ACEOF 5001cat confdefs.h >>conftest.$ac_ext 5002cat >>conftest.$ac_ext <<_ACEOF 5003/* end confdefs.h. */ 5004$ac_includes_default 5005 5006#include <$ac_header> 5007_ACEOF 5008rm -f conftest.$ac_objext 5009if { (ac_try="$ac_compile" 5010case "(($ac_try" in 5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5012 *) ac_try_echo=$ac_try;; 5013esac 5014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5015 (eval "$ac_compile") 2>conftest.er1 5016 ac_status=$? 5017 grep -v '^ *+' conftest.er1 >conftest.err 5018 rm -f conftest.er1 5019 cat conftest.err >&5 5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5021 (exit $ac_status); } && { 5022 test -z "$ac_c_werror_flag" || 5023 test ! -s conftest.err 5024 } && test -s conftest.$ac_objext; then 5025 eval "$as_ac_Header=yes" 5026else 5027 echo "$as_me: failed program was:" >&5 5028sed 's/^/| /' conftest.$ac_ext >&5 5029 5030 eval "$as_ac_Header=no" 5031fi 5032 5033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5034fi 5035ac_res=`eval echo '${'$as_ac_Header'}'` 5036 { echo "$as_me:$LINENO: result: $ac_res" >&5 5037echo "${ECHO_T}$ac_res" >&6; } 5038if test `eval echo '${'$as_ac_Header'}'` = yes; then 5039 cat >>confdefs.h <<_ACEOF 5040#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5041_ACEOF 5042 5043fi 5044 5045done 5046 5047 5048 5049for ac_header in dlfcn.h 5050do 5051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5053 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5056 echo $ECHO_N "(cached) $ECHO_C" >&6 5057fi 5058ac_res=`eval echo '${'$as_ac_Header'}'` 5059 { echo "$as_me:$LINENO: result: $ac_res" >&5 5060echo "${ECHO_T}$ac_res" >&6; } 5061else 5062 # Is the header compilable? 5063{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5064echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5065cat >conftest.$ac_ext <<_ACEOF 5066/* confdefs.h. */ 5067_ACEOF 5068cat confdefs.h >>conftest.$ac_ext 5069cat >>conftest.$ac_ext <<_ACEOF 5070/* end confdefs.h. */ 5071$ac_includes_default 5072#include <$ac_header> 5073_ACEOF 5074rm -f conftest.$ac_objext 5075if { (ac_try="$ac_compile" 5076case "(($ac_try" in 5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5078 *) ac_try_echo=$ac_try;; 5079esac 5080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5081 (eval "$ac_compile") 2>conftest.er1 5082 ac_status=$? 5083 grep -v '^ *+' conftest.er1 >conftest.err 5084 rm -f conftest.er1 5085 cat conftest.err >&5 5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5087 (exit $ac_status); } && { 5088 test -z "$ac_c_werror_flag" || 5089 test ! -s conftest.err 5090 } && test -s conftest.$ac_objext; then 5091 ac_header_compiler=yes 5092else 5093 echo "$as_me: failed program was:" >&5 5094sed 's/^/| /' conftest.$ac_ext >&5 5095 5096 ac_header_compiler=no 5097fi 5098 5099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5100{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5101echo "${ECHO_T}$ac_header_compiler" >&6; } 5102 5103# Is the header present? 5104{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5105echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5106cat >conftest.$ac_ext <<_ACEOF 5107/* confdefs.h. */ 5108_ACEOF 5109cat confdefs.h >>conftest.$ac_ext 5110cat >>conftest.$ac_ext <<_ACEOF 5111/* end confdefs.h. */ 5112#include <$ac_header> 5113_ACEOF 5114if { (ac_try="$ac_cpp conftest.$ac_ext" 5115case "(($ac_try" in 5116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5117 *) ac_try_echo=$ac_try;; 5118esac 5119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5121 ac_status=$? 5122 grep -v '^ *+' conftest.er1 >conftest.err 5123 rm -f conftest.er1 5124 cat conftest.err >&5 5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5126 (exit $ac_status); } >/dev/null && { 5127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5128 test ! -s conftest.err 5129 }; then 5130 ac_header_preproc=yes 5131else 5132 echo "$as_me: failed program was:" >&5 5133sed 's/^/| /' conftest.$ac_ext >&5 5134 5135 ac_header_preproc=no 5136fi 5137 5138rm -f conftest.err conftest.$ac_ext 5139{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5140echo "${ECHO_T}$ac_header_preproc" >&6; } 5141 5142# So? What about this header? 5143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5144 yes:no: ) 5145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5146echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5148echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5149 ac_header_preproc=yes 5150 ;; 5151 no:yes:* ) 5152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5153echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5155echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5157echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5159echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5163echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5164 ( cat <<\_ASBOX 5165## ---------------------------------------------------------------------- ## 5166## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5167## ---------------------------------------------------------------------- ## 5168_ASBOX 5169 ) | sed "s/^/$as_me: WARNING: /" >&2 5170 ;; 5171esac 5172{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5175 echo $ECHO_N "(cached) $ECHO_C" >&6 5176else 5177 eval "$as_ac_Header=\$ac_header_preproc" 5178fi 5179ac_res=`eval echo '${'$as_ac_Header'}'` 5180 { echo "$as_me:$LINENO: result: $ac_res" >&5 5181echo "${ECHO_T}$ac_res" >&6; } 5182 5183fi 5184if test `eval echo '${'$as_ac_Header'}'` = yes; then 5185 cat >>confdefs.h <<_ACEOF 5186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5187_ACEOF 5188 5189fi 5190 5191done 5192 5193ac_ext=cpp 5194ac_cpp='$CXXCPP $CPPFLAGS' 5195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5198if test -z "$CXX"; then 5199 if test -n "$CCC"; then 5200 CXX=$CCC 5201 else 5202 if test -n "$ac_tool_prefix"; then 5203 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5204 do 5205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5206set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5207{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5209if test "${ac_cv_prog_CXX+set}" = set; then 5210 echo $ECHO_N "(cached) $ECHO_C" >&6 5211else 5212 if test -n "$CXX"; then 5213 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5214else 5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5216for as_dir in $PATH 5217do 5218 IFS=$as_save_IFS 5219 test -z "$as_dir" && as_dir=. 5220 for ac_exec_ext in '' $ac_executable_extensions; do 5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5222 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5224 break 2 5225 fi 5226done 5227done 5228IFS=$as_save_IFS 5229 5230fi 5231fi 5232CXX=$ac_cv_prog_CXX 5233if test -n "$CXX"; then 5234 { echo "$as_me:$LINENO: result: $CXX" >&5 5235echo "${ECHO_T}$CXX" >&6; } 5236else 5237 { echo "$as_me:$LINENO: result: no" >&5 5238echo "${ECHO_T}no" >&6; } 5239fi 5240 5241 5242 test -n "$CXX" && break 5243 done 5244fi 5245if test -z "$CXX"; then 5246 ac_ct_CXX=$CXX 5247 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5248do 5249 # Extract the first word of "$ac_prog", so it can be a program name with args. 5250set dummy $ac_prog; ac_word=$2 5251{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5253if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5254 echo $ECHO_N "(cached) $ECHO_C" >&6 5255else 5256 if test -n "$ac_ct_CXX"; then 5257 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5258else 5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5260for as_dir in $PATH 5261do 5262 IFS=$as_save_IFS 5263 test -z "$as_dir" && as_dir=. 5264 for ac_exec_ext in '' $ac_executable_extensions; do 5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5266 ac_cv_prog_ac_ct_CXX="$ac_prog" 5267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5268 break 2 5269 fi 5270done 5271done 5272IFS=$as_save_IFS 5273 5274fi 5275fi 5276ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5277if test -n "$ac_ct_CXX"; then 5278 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5279echo "${ECHO_T}$ac_ct_CXX" >&6; } 5280else 5281 { echo "$as_me:$LINENO: result: no" >&5 5282echo "${ECHO_T}no" >&6; } 5283fi 5284 5285 5286 test -n "$ac_ct_CXX" && break 5287done 5288 5289 if test "x$ac_ct_CXX" = x; then 5290 CXX="g++" 5291 else 5292 case $cross_compiling:$ac_tool_warned in 5293yes:) 5294{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5295whose name does not start with the host triplet. If you think this 5296configuration is useful to you, please write to autoconf@gnu.org." >&5 5297echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5298whose name does not start with the host triplet. If you think this 5299configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5300ac_tool_warned=yes ;; 5301esac 5302 CXX=$ac_ct_CXX 5303 fi 5304fi 5305 5306 fi 5307fi 5308# Provide some information about the compiler. 5309echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5310ac_compiler=`set X $ac_compile; echo $2` 5311{ (ac_try="$ac_compiler --version >&5" 5312case "(($ac_try" in 5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5314 *) ac_try_echo=$ac_try;; 5315esac 5316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5317 (eval "$ac_compiler --version >&5") 2>&5 5318 ac_status=$? 5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5320 (exit $ac_status); } 5321{ (ac_try="$ac_compiler -v >&5" 5322case "(($ac_try" in 5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5324 *) ac_try_echo=$ac_try;; 5325esac 5326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5327 (eval "$ac_compiler -v >&5") 2>&5 5328 ac_status=$? 5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5330 (exit $ac_status); } 5331{ (ac_try="$ac_compiler -V >&5" 5332case "(($ac_try" in 5333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5334 *) ac_try_echo=$ac_try;; 5335esac 5336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5337 (eval "$ac_compiler -V >&5") 2>&5 5338 ac_status=$? 5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5340 (exit $ac_status); } 5341 5342{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5343echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5344if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5345 echo $ECHO_N "(cached) $ECHO_C" >&6 5346else 5347 cat >conftest.$ac_ext <<_ACEOF 5348/* confdefs.h. */ 5349_ACEOF 5350cat confdefs.h >>conftest.$ac_ext 5351cat >>conftest.$ac_ext <<_ACEOF 5352/* end confdefs.h. */ 5353 5354int 5355main () 5356{ 5357#ifndef __GNUC__ 5358 choke me 5359#endif 5360 5361 ; 5362 return 0; 5363} 5364_ACEOF 5365rm -f conftest.$ac_objext 5366if { (ac_try="$ac_compile" 5367case "(($ac_try" in 5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5369 *) ac_try_echo=$ac_try;; 5370esac 5371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5372 (eval "$ac_compile") 2>conftest.er1 5373 ac_status=$? 5374 grep -v '^ *+' conftest.er1 >conftest.err 5375 rm -f conftest.er1 5376 cat conftest.err >&5 5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5378 (exit $ac_status); } && { 5379 test -z "$ac_cxx_werror_flag" || 5380 test ! -s conftest.err 5381 } && test -s conftest.$ac_objext; then 5382 ac_compiler_gnu=yes 5383else 5384 echo "$as_me: failed program was:" >&5 5385sed 's/^/| /' conftest.$ac_ext >&5 5386 5387 ac_compiler_gnu=no 5388fi 5389 5390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5391ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5392 5393fi 5394{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5395echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5396GXX=`test $ac_compiler_gnu = yes && echo yes` 5397ac_test_CXXFLAGS=${CXXFLAGS+set} 5398ac_save_CXXFLAGS=$CXXFLAGS 5399{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5400echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5401if test "${ac_cv_prog_cxx_g+set}" = set; then 5402 echo $ECHO_N "(cached) $ECHO_C" >&6 5403else 5404 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5405 ac_cxx_werror_flag=yes 5406 ac_cv_prog_cxx_g=no 5407 CXXFLAGS="-g" 5408 cat >conftest.$ac_ext <<_ACEOF 5409/* confdefs.h. */ 5410_ACEOF 5411cat confdefs.h >>conftest.$ac_ext 5412cat >>conftest.$ac_ext <<_ACEOF 5413/* end confdefs.h. */ 5414 5415int 5416main () 5417{ 5418 5419 ; 5420 return 0; 5421} 5422_ACEOF 5423rm -f conftest.$ac_objext 5424if { (ac_try="$ac_compile" 5425case "(($ac_try" in 5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5427 *) ac_try_echo=$ac_try;; 5428esac 5429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5430 (eval "$ac_compile") 2>conftest.er1 5431 ac_status=$? 5432 grep -v '^ *+' conftest.er1 >conftest.err 5433 rm -f conftest.er1 5434 cat conftest.err >&5 5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5436 (exit $ac_status); } && { 5437 test -z "$ac_cxx_werror_flag" || 5438 test ! -s conftest.err 5439 } && test -s conftest.$ac_objext; then 5440 ac_cv_prog_cxx_g=yes 5441else 5442 echo "$as_me: failed program was:" >&5 5443sed 's/^/| /' conftest.$ac_ext >&5 5444 5445 CXXFLAGS="" 5446 cat >conftest.$ac_ext <<_ACEOF 5447/* confdefs.h. */ 5448_ACEOF 5449cat confdefs.h >>conftest.$ac_ext 5450cat >>conftest.$ac_ext <<_ACEOF 5451/* end confdefs.h. */ 5452 5453int 5454main () 5455{ 5456 5457 ; 5458 return 0; 5459} 5460_ACEOF 5461rm -f conftest.$ac_objext 5462if { (ac_try="$ac_compile" 5463case "(($ac_try" in 5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5465 *) ac_try_echo=$ac_try;; 5466esac 5467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5468 (eval "$ac_compile") 2>conftest.er1 5469 ac_status=$? 5470 grep -v '^ *+' conftest.er1 >conftest.err 5471 rm -f conftest.er1 5472 cat conftest.err >&5 5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5474 (exit $ac_status); } && { 5475 test -z "$ac_cxx_werror_flag" || 5476 test ! -s conftest.err 5477 } && test -s conftest.$ac_objext; then 5478 : 5479else 5480 echo "$as_me: failed program was:" >&5 5481sed 's/^/| /' conftest.$ac_ext >&5 5482 5483 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5484 CXXFLAGS="-g" 5485 cat >conftest.$ac_ext <<_ACEOF 5486/* confdefs.h. */ 5487_ACEOF 5488cat confdefs.h >>conftest.$ac_ext 5489cat >>conftest.$ac_ext <<_ACEOF 5490/* end confdefs.h. */ 5491 5492int 5493main () 5494{ 5495 5496 ; 5497 return 0; 5498} 5499_ACEOF 5500rm -f conftest.$ac_objext 5501if { (ac_try="$ac_compile" 5502case "(($ac_try" in 5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5504 *) ac_try_echo=$ac_try;; 5505esac 5506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5507 (eval "$ac_compile") 2>conftest.er1 5508 ac_status=$? 5509 grep -v '^ *+' conftest.er1 >conftest.err 5510 rm -f conftest.er1 5511 cat conftest.err >&5 5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5513 (exit $ac_status); } && { 5514 test -z "$ac_cxx_werror_flag" || 5515 test ! -s conftest.err 5516 } && test -s conftest.$ac_objext; then 5517 ac_cv_prog_cxx_g=yes 5518else 5519 echo "$as_me: failed program was:" >&5 5520sed 's/^/| /' conftest.$ac_ext >&5 5521 5522 5523fi 5524 5525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5526fi 5527 5528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5529fi 5530 5531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5532 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5533fi 5534{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5535echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5536if test "$ac_test_CXXFLAGS" = set; then 5537 CXXFLAGS=$ac_save_CXXFLAGS 5538elif test $ac_cv_prog_cxx_g = yes; then 5539 if test "$GXX" = yes; then 5540 CXXFLAGS="-g -O2" 5541 else 5542 CXXFLAGS="-g" 5543 fi 5544else 5545 if test "$GXX" = yes; then 5546 CXXFLAGS="-O2" 5547 else 5548 CXXFLAGS= 5549 fi 5550fi 5551ac_ext=cpp 5552ac_cpp='$CXXCPP $CPPFLAGS' 5553ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5554ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5555ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5556 5557depcc="$CXX" am_compiler_list= 5558 5559{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5560echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5561if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5562 echo $ECHO_N "(cached) $ECHO_C" >&6 5563else 5564 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5565 # We make a subdir and do the tests there. Otherwise we can end up 5566 # making bogus files that we don't know about and never remove. For 5567 # instance it was reported that on HP-UX the gcc test will end up 5568 # making a dummy file named `D' -- because `-MD' means `put the output 5569 # in D'. 5570 mkdir conftest.dir 5571 # Copy depcomp to subdir because otherwise we won't find it if we're 5572 # using a relative directory. 5573 cp "$am_depcomp" conftest.dir 5574 cd conftest.dir 5575 # We will build objects and dependencies in a subdirectory because 5576 # it helps to detect inapplicable dependency modes. For instance 5577 # both Tru64's cc and ICC support -MD to output dependencies as a 5578 # side effect of compilation, but ICC will put the dependencies in 5579 # the current directory while Tru64 will put them in the object 5580 # directory. 5581 mkdir sub 5582 5583 am_cv_CXX_dependencies_compiler_type=none 5584 if test "$am_compiler_list" = ""; then 5585 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5586 fi 5587 for depmode in $am_compiler_list; do 5588 # Setup a source with many dependencies, because some compilers 5589 # like to wrap large dependency lists on column 80 (with \), and 5590 # we should not choose a depcomp mode which is confused by this. 5591 # 5592 # We need to recreate these files for each test, as the compiler may 5593 # overwrite some of them when testing with obscure command lines. 5594 # This happens at least with the AIX C compiler. 5595 : > sub/conftest.c 5596 for i in 1 2 3 4 5 6; do 5597 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5598 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5599 # Solaris 8's {/usr,}/bin/sh. 5600 touch sub/conftst$i.h 5601 done 5602 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5603 5604 case $depmode in 5605 nosideeffect) 5606 # after this tag, mechanisms are not by side-effect, so they'll 5607 # only be used when explicitly requested 5608 if test "x$enable_dependency_tracking" = xyes; then 5609 continue 5610 else 5611 break 5612 fi 5613 ;; 5614 none) break ;; 5615 esac 5616 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5617 # mode. It turns out that the SunPro C++ compiler does not properly 5618 # handle `-M -o', and we need to detect this. 5619 if depmode=$depmode \ 5620 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5621 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5622 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5623 >/dev/null 2>conftest.err && 5624 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5625 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5626 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5627 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5628 # icc doesn't choke on unknown options, it will just issue warnings 5629 # or remarks (even with -Werror). So we grep stderr for any message 5630 # that says an option was ignored or not supported. 5631 # When given -MP, icc 7.0 and 7.1 complain thusly: 5632 # icc: Command line warning: ignoring option '-M'; no argument required 5633 # The diagnosis changed in icc 8.0: 5634 # icc: Command line remark: option '-MP' not supported 5635 if (grep 'ignoring option' conftest.err || 5636 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5637 am_cv_CXX_dependencies_compiler_type=$depmode 5638 break 5639 fi 5640 fi 5641 done 5642 5643 cd .. 5644 rm -rf conftest.dir 5645else 5646 am_cv_CXX_dependencies_compiler_type=none 5647fi 5648 5649fi 5650{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5651echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5652CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5653 5654 if 5655 test "x$enable_dependency_tracking" != xno \ 5656 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5657 am__fastdepCXX_TRUE= 5658 am__fastdepCXX_FALSE='#' 5659else 5660 am__fastdepCXX_TRUE='#' 5661 am__fastdepCXX_FALSE= 5662fi 5663 5664 5665 5666 5667if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5668 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5669 (test "X$CXX" != "Xg++"))) ; then 5670 ac_ext=cpp 5671ac_cpp='$CXXCPP $CPPFLAGS' 5672ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5673ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5674ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5675{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5676echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5677if test -z "$CXXCPP"; then 5678 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5679 echo $ECHO_N "(cached) $ECHO_C" >&6 5680else 5681 # Double quotes because CXXCPP needs to be expanded 5682 for CXXCPP in "$CXX -E" "/lib/cpp" 5683 do 5684 ac_preproc_ok=false 5685for ac_cxx_preproc_warn_flag in '' yes 5686do 5687 # Use a header file that comes with gcc, so configuring glibc 5688 # with a fresh cross-compiler works. 5689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5690 # <limits.h> exists even on freestanding compilers. 5691 # On the NeXT, cc -E runs the code through the compiler's parser, 5692 # not just through cpp. "Syntax error" is here to catch this case. 5693 cat >conftest.$ac_ext <<_ACEOF 5694/* confdefs.h. */ 5695_ACEOF 5696cat confdefs.h >>conftest.$ac_ext 5697cat >>conftest.$ac_ext <<_ACEOF 5698/* end confdefs.h. */ 5699#ifdef __STDC__ 5700# include <limits.h> 5701#else 5702# include <assert.h> 5703#endif 5704 Syntax error 5705_ACEOF 5706if { (ac_try="$ac_cpp conftest.$ac_ext" 5707case "(($ac_try" in 5708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5709 *) ac_try_echo=$ac_try;; 5710esac 5711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5713 ac_status=$? 5714 grep -v '^ *+' conftest.er1 >conftest.err 5715 rm -f conftest.er1 5716 cat conftest.err >&5 5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5718 (exit $ac_status); } >/dev/null && { 5719 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5720 test ! -s conftest.err 5721 }; then 5722 : 5723else 5724 echo "$as_me: failed program was:" >&5 5725sed 's/^/| /' conftest.$ac_ext >&5 5726 5727 # Broken: fails on valid input. 5728continue 5729fi 5730 5731rm -f conftest.err conftest.$ac_ext 5732 5733 # OK, works on sane cases. Now check whether nonexistent headers 5734 # can be detected and how. 5735 cat >conftest.$ac_ext <<_ACEOF 5736/* confdefs.h. */ 5737_ACEOF 5738cat confdefs.h >>conftest.$ac_ext 5739cat >>conftest.$ac_ext <<_ACEOF 5740/* end confdefs.h. */ 5741#include <ac_nonexistent.h> 5742_ACEOF 5743if { (ac_try="$ac_cpp conftest.$ac_ext" 5744case "(($ac_try" in 5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5746 *) ac_try_echo=$ac_try;; 5747esac 5748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5750 ac_status=$? 5751 grep -v '^ *+' conftest.er1 >conftest.err 5752 rm -f conftest.er1 5753 cat conftest.err >&5 5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5755 (exit $ac_status); } >/dev/null && { 5756 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5757 test ! -s conftest.err 5758 }; then 5759 # Broken: success on invalid input. 5760continue 5761else 5762 echo "$as_me: failed program was:" >&5 5763sed 's/^/| /' conftest.$ac_ext >&5 5764 5765 # Passes both tests. 5766ac_preproc_ok=: 5767break 5768fi 5769 5770rm -f conftest.err conftest.$ac_ext 5771 5772done 5773# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5774rm -f conftest.err conftest.$ac_ext 5775if $ac_preproc_ok; then 5776 break 5777fi 5778 5779 done 5780 ac_cv_prog_CXXCPP=$CXXCPP 5781 5782fi 5783 CXXCPP=$ac_cv_prog_CXXCPP 5784else 5785 ac_cv_prog_CXXCPP=$CXXCPP 5786fi 5787{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5788echo "${ECHO_T}$CXXCPP" >&6; } 5789ac_preproc_ok=false 5790for ac_cxx_preproc_warn_flag in '' yes 5791do 5792 # Use a header file that comes with gcc, so configuring glibc 5793 # with a fresh cross-compiler works. 5794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5795 # <limits.h> exists even on freestanding compilers. 5796 # On the NeXT, cc -E runs the code through the compiler's parser, 5797 # not just through cpp. "Syntax error" is here to catch this case. 5798 cat >conftest.$ac_ext <<_ACEOF 5799/* confdefs.h. */ 5800_ACEOF 5801cat confdefs.h >>conftest.$ac_ext 5802cat >>conftest.$ac_ext <<_ACEOF 5803/* end confdefs.h. */ 5804#ifdef __STDC__ 5805# include <limits.h> 5806#else 5807# include <assert.h> 5808#endif 5809 Syntax error 5810_ACEOF 5811if { (ac_try="$ac_cpp conftest.$ac_ext" 5812case "(($ac_try" in 5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5814 *) ac_try_echo=$ac_try;; 5815esac 5816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5818 ac_status=$? 5819 grep -v '^ *+' conftest.er1 >conftest.err 5820 rm -f conftest.er1 5821 cat conftest.err >&5 5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5823 (exit $ac_status); } >/dev/null && { 5824 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5825 test ! -s conftest.err 5826 }; then 5827 : 5828else 5829 echo "$as_me: failed program was:" >&5 5830sed 's/^/| /' conftest.$ac_ext >&5 5831 5832 # Broken: fails on valid input. 5833continue 5834fi 5835 5836rm -f conftest.err conftest.$ac_ext 5837 5838 # OK, works on sane cases. Now check whether nonexistent headers 5839 # can be detected and how. 5840 cat >conftest.$ac_ext <<_ACEOF 5841/* confdefs.h. */ 5842_ACEOF 5843cat confdefs.h >>conftest.$ac_ext 5844cat >>conftest.$ac_ext <<_ACEOF 5845/* end confdefs.h. */ 5846#include <ac_nonexistent.h> 5847_ACEOF 5848if { (ac_try="$ac_cpp conftest.$ac_ext" 5849case "(($ac_try" in 5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5851 *) ac_try_echo=$ac_try;; 5852esac 5853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5855 ac_status=$? 5856 grep -v '^ *+' conftest.er1 >conftest.err 5857 rm -f conftest.er1 5858 cat conftest.err >&5 5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5860 (exit $ac_status); } >/dev/null && { 5861 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5862 test ! -s conftest.err 5863 }; then 5864 # Broken: success on invalid input. 5865continue 5866else 5867 echo "$as_me: failed program was:" >&5 5868sed 's/^/| /' conftest.$ac_ext >&5 5869 5870 # Passes both tests. 5871ac_preproc_ok=: 5872break 5873fi 5874 5875rm -f conftest.err conftest.$ac_ext 5876 5877done 5878# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5879rm -f conftest.err conftest.$ac_ext 5880if $ac_preproc_ok; then 5881 : 5882else 5883 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5884See \`config.log' for more details." >&5 5885echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5886See \`config.log' for more details." >&2;} 5887 { (exit 1); exit 1; }; } 5888fi 5889 5890ac_ext=cpp 5891ac_cpp='$CXXCPP $CPPFLAGS' 5892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5895 5896fi 5897 5898 5899ac_ext=f 5900ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5901ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5902ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5903if test -n "$ac_tool_prefix"; then 5904 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 5905 do 5906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5907set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5908{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5910if test "${ac_cv_prog_F77+set}" = set; then 5911 echo $ECHO_N "(cached) $ECHO_C" >&6 5912else 5913 if test -n "$F77"; then 5914 ac_cv_prog_F77="$F77" # Let the user override the test. 5915else 5916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5917for as_dir in $PATH 5918do 5919 IFS=$as_save_IFS 5920 test -z "$as_dir" && as_dir=. 5921 for ac_exec_ext in '' $ac_executable_extensions; do 5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5923 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5925 break 2 5926 fi 5927done 5928done 5929IFS=$as_save_IFS 5930 5931fi 5932fi 5933F77=$ac_cv_prog_F77 5934if test -n "$F77"; then 5935 { echo "$as_me:$LINENO: result: $F77" >&5 5936echo "${ECHO_T}$F77" >&6; } 5937else 5938 { echo "$as_me:$LINENO: result: no" >&5 5939echo "${ECHO_T}no" >&6; } 5940fi 5941 5942 5943 test -n "$F77" && break 5944 done 5945fi 5946if test -z "$F77"; then 5947 ac_ct_F77=$F77 5948 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 5949do 5950 # Extract the first word of "$ac_prog", so it can be a program name with args. 5951set dummy $ac_prog; ac_word=$2 5952{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5954if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5955 echo $ECHO_N "(cached) $ECHO_C" >&6 5956else 5957 if test -n "$ac_ct_F77"; then 5958 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5959else 5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5961for as_dir in $PATH 5962do 5963 IFS=$as_save_IFS 5964 test -z "$as_dir" && as_dir=. 5965 for ac_exec_ext in '' $ac_executable_extensions; do 5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5967 ac_cv_prog_ac_ct_F77="$ac_prog" 5968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5969 break 2 5970 fi 5971done 5972done 5973IFS=$as_save_IFS 5974 5975fi 5976fi 5977ac_ct_F77=$ac_cv_prog_ac_ct_F77 5978if test -n "$ac_ct_F77"; then 5979 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5980echo "${ECHO_T}$ac_ct_F77" >&6; } 5981else 5982 { echo "$as_me:$LINENO: result: no" >&5 5983echo "${ECHO_T}no" >&6; } 5984fi 5985 5986 5987 test -n "$ac_ct_F77" && break 5988done 5989 5990 if test "x$ac_ct_F77" = x; then 5991 F77="" 5992 else 5993 case $cross_compiling:$ac_tool_warned in 5994yes:) 5995{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5996whose name does not start with the host triplet. If you think this 5997configuration is useful to you, please write to autoconf@gnu.org." >&5 5998echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5999whose name does not start with the host triplet. If you think this 6000configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6001ac_tool_warned=yes ;; 6002esac 6003 F77=$ac_ct_F77 6004 fi 6005fi 6006 6007 6008# Provide some information about the compiler. 6009echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6010ac_compiler=`set X $ac_compile; echo $2` 6011{ (ac_try="$ac_compiler --version >&5" 6012case "(($ac_try" in 6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6014 *) ac_try_echo=$ac_try;; 6015esac 6016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6017 (eval "$ac_compiler --version >&5") 2>&5 6018 ac_status=$? 6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6020 (exit $ac_status); } 6021{ (ac_try="$ac_compiler -v >&5" 6022case "(($ac_try" in 6023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6024 *) ac_try_echo=$ac_try;; 6025esac 6026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6027 (eval "$ac_compiler -v >&5") 2>&5 6028 ac_status=$? 6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6030 (exit $ac_status); } 6031{ (ac_try="$ac_compiler -V >&5" 6032case "(($ac_try" in 6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6034 *) ac_try_echo=$ac_try;; 6035esac 6036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6037 (eval "$ac_compiler -V >&5") 2>&5 6038 ac_status=$? 6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6040 (exit $ac_status); } 6041rm -f a.out 6042 6043# If we don't use `.F' as extension, the preprocessor is not run on the 6044# input file. (Note that this only needs to work for GNU compilers.) 6045ac_save_ext=$ac_ext 6046ac_ext=F 6047{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6048echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6049if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6050 echo $ECHO_N "(cached) $ECHO_C" >&6 6051else 6052 cat >conftest.$ac_ext <<_ACEOF 6053 program main 6054#ifndef __GNUC__ 6055 choke me 6056#endif 6057 6058 end 6059_ACEOF 6060rm -f conftest.$ac_objext 6061if { (ac_try="$ac_compile" 6062case "(($ac_try" in 6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6064 *) ac_try_echo=$ac_try;; 6065esac 6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6067 (eval "$ac_compile") 2>conftest.er1 6068 ac_status=$? 6069 grep -v '^ *+' conftest.er1 >conftest.err 6070 rm -f conftest.er1 6071 cat conftest.err >&5 6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6073 (exit $ac_status); } && { 6074 test -z "$ac_f77_werror_flag" || 6075 test ! -s conftest.err 6076 } && test -s conftest.$ac_objext; then 6077 ac_compiler_gnu=yes 6078else 6079 echo "$as_me: failed program was:" >&5 6080sed 's/^/| /' conftest.$ac_ext >&5 6081 6082 ac_compiler_gnu=no 6083fi 6084 6085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6086ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6087 6088fi 6089{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6090echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6091ac_ext=$ac_save_ext 6092ac_test_FFLAGS=${FFLAGS+set} 6093ac_save_FFLAGS=$FFLAGS 6094FFLAGS= 6095{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6096echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6097if test "${ac_cv_prog_f77_g+set}" = set; then 6098 echo $ECHO_N "(cached) $ECHO_C" >&6 6099else 6100 FFLAGS=-g 6101cat >conftest.$ac_ext <<_ACEOF 6102 program main 6103 6104 end 6105_ACEOF 6106rm -f conftest.$ac_objext 6107if { (ac_try="$ac_compile" 6108case "(($ac_try" in 6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6110 *) ac_try_echo=$ac_try;; 6111esac 6112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6113 (eval "$ac_compile") 2>conftest.er1 6114 ac_status=$? 6115 grep -v '^ *+' conftest.er1 >conftest.err 6116 rm -f conftest.er1 6117 cat conftest.err >&5 6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6119 (exit $ac_status); } && { 6120 test -z "$ac_f77_werror_flag" || 6121 test ! -s conftest.err 6122 } && test -s conftest.$ac_objext; then 6123 ac_cv_prog_f77_g=yes 6124else 6125 echo "$as_me: failed program was:" >&5 6126sed 's/^/| /' conftest.$ac_ext >&5 6127 6128 ac_cv_prog_f77_g=no 6129fi 6130 6131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6132 6133fi 6134{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6135echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6136if test "$ac_test_FFLAGS" = set; then 6137 FFLAGS=$ac_save_FFLAGS 6138elif test $ac_cv_prog_f77_g = yes; then 6139 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6140 FFLAGS="-g -O2" 6141 else 6142 FFLAGS="-g" 6143 fi 6144else 6145 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6146 FFLAGS="-O2" 6147 else 6148 FFLAGS= 6149 fi 6150fi 6151 6152G77=`test $ac_compiler_gnu = yes && echo yes` 6153ac_ext=c 6154ac_cpp='$CPP $CPPFLAGS' 6155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6157ac_compiler_gnu=$ac_cv_c_compiler_gnu 6158 6159 6160 6161# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6162 6163# find the maximum length of command line arguments 6164{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6165echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6166if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6167 echo $ECHO_N "(cached) $ECHO_C" >&6 6168else 6169 i=0 6170 teststring="ABCD" 6171 6172 case $build_os in 6173 msdosdjgpp*) 6174 # On DJGPP, this test can blow up pretty badly due to problems in libc 6175 # (any single argument exceeding 2000 bytes causes a buffer overrun 6176 # during glob expansion). Even if it were fixed, the result of this 6177 # check would be larger than it should be. 6178 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6179 ;; 6180 6181 gnu*) 6182 # Under GNU Hurd, this test is not required because there is 6183 # no limit to the length of command line arguments. 6184 # Libtool will interpret -1 as no limit whatsoever 6185 lt_cv_sys_max_cmd_len=-1; 6186 ;; 6187 6188 cygwin* | mingw*) 6189 # On Win9x/ME, this test blows up -- it succeeds, but takes 6190 # about 5 minutes as the teststring grows exponentially. 6191 # Worse, since 9x/ME are not pre-emptively multitasking, 6192 # you end up with a "frozen" computer, even though with patience 6193 # the test eventually succeeds (with a max line length of 256k). 6194 # Instead, let's just punt: use the minimum linelength reported by 6195 # all of the supported platforms: 8192 (on NT/2K/XP). 6196 lt_cv_sys_max_cmd_len=8192; 6197 ;; 6198 6199 amigaos*) 6200 # On AmigaOS with pdksh, this test takes hours, literally. 6201 # So we just punt and use a minimum line length of 8192. 6202 lt_cv_sys_max_cmd_len=8192; 6203 ;; 6204 6205 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6206 # This has been around since 386BSD, at least. Likely further. 6207 if test -x /sbin/sysctl; then 6208 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6209 elif test -x /usr/sbin/sysctl; then 6210 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6211 else 6212 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6213 fi 6214 # And add a safety zone 6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6217 ;; 6218 6219 interix*) 6220 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6221 lt_cv_sys_max_cmd_len=196608 6222 ;; 6223 6224 osf*) 6225 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6226 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6227 # nice to cause kernel panics so lets avoid the loop below. 6228 # First set a reasonable default. 6229 lt_cv_sys_max_cmd_len=16384 6230 # 6231 if test -x /sbin/sysconfig; then 6232 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6233 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6234 esac 6235 fi 6236 ;; 6237 sco3.2v5*) 6238 lt_cv_sys_max_cmd_len=102400 6239 ;; 6240 sysv5* | sco5v6* | sysv4.2uw2*) 6241 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6242 if test -n "$kargmax"; then 6243 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6244 else 6245 lt_cv_sys_max_cmd_len=32768 6246 fi 6247 ;; 6248 *) 6249 # If test is not a shell built-in, we'll probably end up computing a 6250 # maximum length that is only half of the actual maximum length, but 6251 # we can't tell. 6252 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6253 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6254 = "XX$teststring") >/dev/null 2>&1 && 6255 new_result=`expr "X$teststring" : ".*" 2>&1` && 6256 lt_cv_sys_max_cmd_len=$new_result && 6257 test $i != 17 # 1/2 MB should be enough 6258 do 6259 i=`expr $i + 1` 6260 teststring=$teststring$teststring 6261 done 6262 teststring= 6263 # Add a significant safety factor because C++ compilers can tack on massive 6264 # amounts of additional arguments before passing them to the linker. 6265 # It appears as though 1/2 is a usable value. 6266 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6267 ;; 6268 esac 6269 6270fi 6271 6272if test -n $lt_cv_sys_max_cmd_len ; then 6273 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6274echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6275else 6276 { echo "$as_me:$LINENO: result: none" >&5 6277echo "${ECHO_T}none" >&6; } 6278fi 6279 6280 6281 6282 6283# Check for command to grab the raw symbol name followed by C symbol from nm. 6284{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6285echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6286if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6287 echo $ECHO_N "(cached) $ECHO_C" >&6 6288else 6289 6290# These are sane defaults that work on at least a few old systems. 6291# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6292 6293# Character class describing NM global symbol codes. 6294symcode='[BCDEGRST]' 6295 6296# Regexp to match symbols that can be accessed directly from C. 6297sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6298 6299# Transform an extracted symbol line into a proper C declaration 6300lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6301 6302# Transform an extracted symbol line into symbol name and symbol address 6303lt_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'" 6304 6305# Define system-specific variables. 6306case $host_os in 6307aix*) 6308 symcode='[BCDT]' 6309 ;; 6310cygwin* | mingw* | pw32*) 6311 symcode='[ABCDGISTW]' 6312 ;; 6313hpux*) # Its linker distinguishes data from code symbols 6314 if test "$host_cpu" = ia64; then 6315 symcode='[ABCDEGRST]' 6316 fi 6317 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6318 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'" 6319 ;; 6320linux*) 6321 if test "$host_cpu" = ia64; then 6322 symcode='[ABCDGIRSTW]' 6323 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6324 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'" 6325 fi 6326 ;; 6327irix* | nonstopux*) 6328 symcode='[BCDEGRST]' 6329 ;; 6330osf*) 6331 symcode='[BCDEGQRST]' 6332 ;; 6333solaris*) 6334 symcode='[BDRT]' 6335 ;; 6336sco3.2v5*) 6337 symcode='[DT]' 6338 ;; 6339sysv4.2uw2*) 6340 symcode='[DT]' 6341 ;; 6342sysv5* | sco5v6* | unixware* | OpenUNIX*) 6343 symcode='[ABDT]' 6344 ;; 6345sysv4) 6346 symcode='[DFNSTU]' 6347 ;; 6348esac 6349 6350# Handle CRLF in mingw tool chain 6351opt_cr= 6352case $build_os in 6353mingw*) 6354 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6355 ;; 6356esac 6357 6358# If we're using GNU nm, then use its standard symbol codes. 6359case `$NM -V 2>&1` in 6360*GNU* | *'with BFD'*) 6361 symcode='[ABCDGIRSTW]' ;; 6362esac 6363 6364# Try without a prefix undercore, then with it. 6365for ac_symprfx in "" "_"; do 6366 6367 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6368 symxfrm="\\1 $ac_symprfx\\2 \\2" 6369 6370 # Write the raw and C identifiers. 6371 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6372 6373 # Check to see that the pipe works correctly. 6374 pipe_works=no 6375 6376 rm -f conftest* 6377 cat > conftest.$ac_ext <<EOF 6378#ifdef __cplusplus 6379extern "C" { 6380#endif 6381char nm_test_var; 6382void nm_test_func(){} 6383#ifdef __cplusplus 6384} 6385#endif 6386int main(){nm_test_var='a';nm_test_func();return(0);} 6387EOF 6388 6389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6390 (eval $ac_compile) 2>&5 6391 ac_status=$? 6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6393 (exit $ac_status); }; then 6394 # Now try to grab the symbols. 6395 nlist=conftest.nm 6396 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6397 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6398 ac_status=$? 6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6400 (exit $ac_status); } && test -s "$nlist"; then 6401 # Try sorting and uniquifying the output. 6402 if sort "$nlist" | uniq > "$nlist"T; then 6403 mv -f "$nlist"T "$nlist" 6404 else 6405 rm -f "$nlist"T 6406 fi 6407 6408 # Make sure that we snagged all the symbols we need. 6409 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6410 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6411 cat <<EOF > conftest.$ac_ext 6412#ifdef __cplusplus 6413extern "C" { 6414#endif 6415 6416EOF 6417 # Now generate the symbol file. 6418 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6419 6420 cat <<EOF >> conftest.$ac_ext 6421#if defined (__STDC__) && __STDC__ 6422# define lt_ptr_t void * 6423#else 6424# define lt_ptr_t char * 6425# define const 6426#endif 6427 6428/* The mapping between symbol names and symbols. */ 6429const struct { 6430 const char *name; 6431 lt_ptr_t address; 6432} 6433lt_preloaded_symbols[] = 6434{ 6435EOF 6436 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6437 cat <<\EOF >> conftest.$ac_ext 6438 {0, (lt_ptr_t) 0} 6439}; 6440 6441#ifdef __cplusplus 6442} 6443#endif 6444EOF 6445 # Now try linking the two files. 6446 mv conftest.$ac_objext conftstm.$ac_objext 6447 lt_save_LIBS="$LIBS" 6448 lt_save_CFLAGS="$CFLAGS" 6449 LIBS="conftstm.$ac_objext" 6450 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6452 (eval $ac_link) 2>&5 6453 ac_status=$? 6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6455 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6456 pipe_works=yes 6457 fi 6458 LIBS="$lt_save_LIBS" 6459 CFLAGS="$lt_save_CFLAGS" 6460 else 6461 echo "cannot find nm_test_func in $nlist" >&5 6462 fi 6463 else 6464 echo "cannot find nm_test_var in $nlist" >&5 6465 fi 6466 else 6467 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6468 fi 6469 else 6470 echo "$progname: failed program was:" >&5 6471 cat conftest.$ac_ext >&5 6472 fi 6473 rm -f conftest* conftst* 6474 6475 # Do not use the global_symbol_pipe unless it works. 6476 if test "$pipe_works" = yes; then 6477 break 6478 else 6479 lt_cv_sys_global_symbol_pipe= 6480 fi 6481done 6482 6483fi 6484 6485if test -z "$lt_cv_sys_global_symbol_pipe"; then 6486 lt_cv_sys_global_symbol_to_cdecl= 6487fi 6488if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6489 { echo "$as_me:$LINENO: result: failed" >&5 6490echo "${ECHO_T}failed" >&6; } 6491else 6492 { echo "$as_me:$LINENO: result: ok" >&5 6493echo "${ECHO_T}ok" >&6; } 6494fi 6495 6496{ echo "$as_me:$LINENO: checking for objdir" >&5 6497echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6498if test "${lt_cv_objdir+set}" = set; then 6499 echo $ECHO_N "(cached) $ECHO_C" >&6 6500else 6501 rm -f .libs 2>/dev/null 6502mkdir .libs 2>/dev/null 6503if test -d .libs; then 6504 lt_cv_objdir=.libs 6505else 6506 # MS-DOS does not allow filenames that begin with a dot. 6507 lt_cv_objdir=_libs 6508fi 6509rmdir .libs 2>/dev/null 6510fi 6511{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6512echo "${ECHO_T}$lt_cv_objdir" >&6; } 6513objdir=$lt_cv_objdir 6514 6515 6516 6517 6518 6519case $host_os in 6520aix3*) 6521 # AIX sometimes has problems with the GCC collect2 program. For some 6522 # reason, if we set the COLLECT_NAMES environment variable, the problems 6523 # vanish in a puff of smoke. 6524 if test "X${COLLECT_NAMES+set}" != Xset; then 6525 COLLECT_NAMES= 6526 export COLLECT_NAMES 6527 fi 6528 ;; 6529esac 6530 6531# Sed substitution that helps us do robust quoting. It backslashifies 6532# metacharacters that are still active within double-quoted strings. 6533Xsed='sed -e 1s/^X//' 6534sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6535 6536# Same as above, but do not quote variable references. 6537double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6538 6539# Sed substitution to delay expansion of an escaped shell variable in a 6540# double_quote_subst'ed string. 6541delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6542 6543# Sed substitution to avoid accidental globbing in evaled expressions 6544no_glob_subst='s/\*/\\\*/g' 6545 6546# Constants: 6547rm="rm -f" 6548 6549# Global variables: 6550default_ofile=libtool 6551can_build_shared=yes 6552 6553# All known linkers require a `.a' archive for static linking (except MSVC, 6554# which needs '.lib'). 6555libext=a 6556ltmain="$ac_aux_dir/ltmain.sh" 6557ofile="$default_ofile" 6558with_gnu_ld="$lt_cv_prog_gnu_ld" 6559 6560if test -n "$ac_tool_prefix"; then 6561 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6562set dummy ${ac_tool_prefix}ar; ac_word=$2 6563{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6565if test "${ac_cv_prog_AR+set}" = set; then 6566 echo $ECHO_N "(cached) $ECHO_C" >&6 6567else 6568 if test -n "$AR"; then 6569 ac_cv_prog_AR="$AR" # Let the user override the test. 6570else 6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572for as_dir in $PATH 6573do 6574 IFS=$as_save_IFS 6575 test -z "$as_dir" && as_dir=. 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6578 ac_cv_prog_AR="${ac_tool_prefix}ar" 6579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582done 6583done 6584IFS=$as_save_IFS 6585 6586fi 6587fi 6588AR=$ac_cv_prog_AR 6589if test -n "$AR"; then 6590 { echo "$as_me:$LINENO: result: $AR" >&5 6591echo "${ECHO_T}$AR" >&6; } 6592else 6593 { echo "$as_me:$LINENO: result: no" >&5 6594echo "${ECHO_T}no" >&6; } 6595fi 6596 6597 6598fi 6599if test -z "$ac_cv_prog_AR"; then 6600 ac_ct_AR=$AR 6601 # Extract the first word of "ar", so it can be a program name with args. 6602set dummy ar; ac_word=$2 6603{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6605if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6606 echo $ECHO_N "(cached) $ECHO_C" >&6 6607else 6608 if test -n "$ac_ct_AR"; then 6609 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6610else 6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6612for as_dir in $PATH 6613do 6614 IFS=$as_save_IFS 6615 test -z "$as_dir" && as_dir=. 6616 for ac_exec_ext in '' $ac_executable_extensions; do 6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6618 ac_cv_prog_ac_ct_AR="ar" 6619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6620 break 2 6621 fi 6622done 6623done 6624IFS=$as_save_IFS 6625 6626fi 6627fi 6628ac_ct_AR=$ac_cv_prog_ac_ct_AR 6629if test -n "$ac_ct_AR"; then 6630 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6631echo "${ECHO_T}$ac_ct_AR" >&6; } 6632else 6633 { echo "$as_me:$LINENO: result: no" >&5 6634echo "${ECHO_T}no" >&6; } 6635fi 6636 6637 if test "x$ac_ct_AR" = x; then 6638 AR="false" 6639 else 6640 case $cross_compiling:$ac_tool_warned in 6641yes:) 6642{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6643whose name does not start with the host triplet. If you think this 6644configuration is useful to you, please write to autoconf@gnu.org." >&5 6645echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6646whose name does not start with the host triplet. If you think this 6647configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6648ac_tool_warned=yes ;; 6649esac 6650 AR=$ac_ct_AR 6651 fi 6652else 6653 AR="$ac_cv_prog_AR" 6654fi 6655 6656if test -n "$ac_tool_prefix"; then 6657 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6658set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6659{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6661if test "${ac_cv_prog_RANLIB+set}" = set; then 6662 echo $ECHO_N "(cached) $ECHO_C" >&6 6663else 6664 if test -n "$RANLIB"; then 6665 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6666else 6667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6668for as_dir in $PATH 6669do 6670 IFS=$as_save_IFS 6671 test -z "$as_dir" && as_dir=. 6672 for ac_exec_ext in '' $ac_executable_extensions; do 6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6674 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6676 break 2 6677 fi 6678done 6679done 6680IFS=$as_save_IFS 6681 6682fi 6683fi 6684RANLIB=$ac_cv_prog_RANLIB 6685if test -n "$RANLIB"; then 6686 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6687echo "${ECHO_T}$RANLIB" >&6; } 6688else 6689 { echo "$as_me:$LINENO: result: no" >&5 6690echo "${ECHO_T}no" >&6; } 6691fi 6692 6693 6694fi 6695if test -z "$ac_cv_prog_RANLIB"; then 6696 ac_ct_RANLIB=$RANLIB 6697 # Extract the first word of "ranlib", so it can be a program name with args. 6698set dummy ranlib; ac_word=$2 6699{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6701if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6702 echo $ECHO_N "(cached) $ECHO_C" >&6 6703else 6704 if test -n "$ac_ct_RANLIB"; then 6705 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6706else 6707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6708for as_dir in $PATH 6709do 6710 IFS=$as_save_IFS 6711 test -z "$as_dir" && as_dir=. 6712 for ac_exec_ext in '' $ac_executable_extensions; do 6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6714 ac_cv_prog_ac_ct_RANLIB="ranlib" 6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6716 break 2 6717 fi 6718done 6719done 6720IFS=$as_save_IFS 6721 6722fi 6723fi 6724ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6725if test -n "$ac_ct_RANLIB"; then 6726 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6727echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6728else 6729 { echo "$as_me:$LINENO: result: no" >&5 6730echo "${ECHO_T}no" >&6; } 6731fi 6732 6733 if test "x$ac_ct_RANLIB" = x; then 6734 RANLIB=":" 6735 else 6736 case $cross_compiling:$ac_tool_warned in 6737yes:) 6738{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6739whose name does not start with the host triplet. If you think this 6740configuration is useful to you, please write to autoconf@gnu.org." >&5 6741echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6742whose name does not start with the host triplet. If you think this 6743configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6744ac_tool_warned=yes ;; 6745esac 6746 RANLIB=$ac_ct_RANLIB 6747 fi 6748else 6749 RANLIB="$ac_cv_prog_RANLIB" 6750fi 6751 6752if test -n "$ac_tool_prefix"; then 6753 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6754set dummy ${ac_tool_prefix}strip; ac_word=$2 6755{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6757if test "${ac_cv_prog_STRIP+set}" = set; then 6758 echo $ECHO_N "(cached) $ECHO_C" >&6 6759else 6760 if test -n "$STRIP"; then 6761 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6762else 6763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6764for as_dir in $PATH 6765do 6766 IFS=$as_save_IFS 6767 test -z "$as_dir" && as_dir=. 6768 for ac_exec_ext in '' $ac_executable_extensions; do 6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6770 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6772 break 2 6773 fi 6774done 6775done 6776IFS=$as_save_IFS 6777 6778fi 6779fi 6780STRIP=$ac_cv_prog_STRIP 6781if test -n "$STRIP"; then 6782 { echo "$as_me:$LINENO: result: $STRIP" >&5 6783echo "${ECHO_T}$STRIP" >&6; } 6784else 6785 { echo "$as_me:$LINENO: result: no" >&5 6786echo "${ECHO_T}no" >&6; } 6787fi 6788 6789 6790fi 6791if test -z "$ac_cv_prog_STRIP"; then 6792 ac_ct_STRIP=$STRIP 6793 # Extract the first word of "strip", so it can be a program name with args. 6794set dummy strip; ac_word=$2 6795{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6797if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6798 echo $ECHO_N "(cached) $ECHO_C" >&6 6799else 6800 if test -n "$ac_ct_STRIP"; then 6801 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6802else 6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6804for as_dir in $PATH 6805do 6806 IFS=$as_save_IFS 6807 test -z "$as_dir" && as_dir=. 6808 for ac_exec_ext in '' $ac_executable_extensions; do 6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6810 ac_cv_prog_ac_ct_STRIP="strip" 6811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6812 break 2 6813 fi 6814done 6815done 6816IFS=$as_save_IFS 6817 6818fi 6819fi 6820ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6821if test -n "$ac_ct_STRIP"; then 6822 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6823echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6824else 6825 { echo "$as_me:$LINENO: result: no" >&5 6826echo "${ECHO_T}no" >&6; } 6827fi 6828 6829 if test "x$ac_ct_STRIP" = x; then 6830 STRIP=":" 6831 else 6832 case $cross_compiling:$ac_tool_warned in 6833yes:) 6834{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6835whose name does not start with the host triplet. If you think this 6836configuration is useful to you, please write to autoconf@gnu.org." >&5 6837echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6838whose name does not start with the host triplet. If you think this 6839configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6840ac_tool_warned=yes ;; 6841esac 6842 STRIP=$ac_ct_STRIP 6843 fi 6844else 6845 STRIP="$ac_cv_prog_STRIP" 6846fi 6847 6848 6849old_CC="$CC" 6850old_CFLAGS="$CFLAGS" 6851 6852# Set sane defaults for various variables 6853test -z "$AR" && AR=ar 6854test -z "$AR_FLAGS" && AR_FLAGS=cru 6855test -z "$AS" && AS=as 6856test -z "$CC" && CC=cc 6857test -z "$LTCC" && LTCC=$CC 6858test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6859test -z "$DLLTOOL" && DLLTOOL=dlltool 6860test -z "$LD" && LD=ld 6861test -z "$LN_S" && LN_S="ln -s" 6862test -z "$MAGIC_CMD" && MAGIC_CMD=file 6863test -z "$NM" && NM=nm 6864test -z "$SED" && SED=sed 6865test -z "$OBJDUMP" && OBJDUMP=objdump 6866test -z "$RANLIB" && RANLIB=: 6867test -z "$STRIP" && STRIP=: 6868test -z "$ac_objext" && ac_objext=o 6869 6870# Determine commands to create old-style static archives. 6871old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6872old_postinstall_cmds='chmod 644 $oldlib' 6873old_postuninstall_cmds= 6874 6875if test -n "$RANLIB"; then 6876 case $host_os in 6877 openbsd*) 6878 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6879 ;; 6880 *) 6881 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6882 ;; 6883 esac 6884 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6885fi 6886 6887for cc_temp in $compiler""; do 6888 case $cc_temp in 6889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6891 \-*) ;; 6892 *) break;; 6893 esac 6894done 6895cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6896 6897 6898# Only perform the check for file, if the check method requires it 6899case $deplibs_check_method in 6900file_magic*) 6901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6902 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6903echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6904if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6905 echo $ECHO_N "(cached) $ECHO_C" >&6 6906else 6907 case $MAGIC_CMD in 6908[\\/*] | ?:[\\/]*) 6909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6910 ;; 6911*) 6912 lt_save_MAGIC_CMD="$MAGIC_CMD" 6913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6914 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6915 for ac_dir in $ac_dummy; do 6916 IFS="$lt_save_ifs" 6917 test -z "$ac_dir" && ac_dir=. 6918 if test -f $ac_dir/${ac_tool_prefix}file; then 6919 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6920 if test -n "$file_magic_test_file"; then 6921 case $deplibs_check_method in 6922 "file_magic "*) 6923 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6925 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6926 $EGREP "$file_magic_regex" > /dev/null; then 6927 : 6928 else 6929 cat <<EOF 1>&2 6930 6931*** Warning: the command libtool uses to detect shared libraries, 6932*** $file_magic_cmd, produces output that libtool cannot recognize. 6933*** The result is that libtool may fail to recognize shared libraries 6934*** as such. This will affect the creation of libtool libraries that 6935*** depend on shared libraries, but programs linked with such libtool 6936*** libraries will work regardless of this problem. Nevertheless, you 6937*** may want to report the problem to your system manager and/or to 6938*** bug-libtool@gnu.org 6939 6940EOF 6941 fi ;; 6942 esac 6943 fi 6944 break 6945 fi 6946 done 6947 IFS="$lt_save_ifs" 6948 MAGIC_CMD="$lt_save_MAGIC_CMD" 6949 ;; 6950esac 6951fi 6952 6953MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6954if test -n "$MAGIC_CMD"; then 6955 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6956echo "${ECHO_T}$MAGIC_CMD" >&6; } 6957else 6958 { echo "$as_me:$LINENO: result: no" >&5 6959echo "${ECHO_T}no" >&6; } 6960fi 6961 6962if test -z "$lt_cv_path_MAGIC_CMD"; then 6963 if test -n "$ac_tool_prefix"; then 6964 { echo "$as_me:$LINENO: checking for file" >&5 6965echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6966if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6967 echo $ECHO_N "(cached) $ECHO_C" >&6 6968else 6969 case $MAGIC_CMD in 6970[\\/*] | ?:[\\/]*) 6971 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6972 ;; 6973*) 6974 lt_save_MAGIC_CMD="$MAGIC_CMD" 6975 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6976 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6977 for ac_dir in $ac_dummy; do 6978 IFS="$lt_save_ifs" 6979 test -z "$ac_dir" && ac_dir=. 6980 if test -f $ac_dir/file; then 6981 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6982 if test -n "$file_magic_test_file"; then 6983 case $deplibs_check_method in 6984 "file_magic "*) 6985 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6986 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6987 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6988 $EGREP "$file_magic_regex" > /dev/null; then 6989 : 6990 else 6991 cat <<EOF 1>&2 6992 6993*** Warning: the command libtool uses to detect shared libraries, 6994*** $file_magic_cmd, produces output that libtool cannot recognize. 6995*** The result is that libtool may fail to recognize shared libraries 6996*** as such. This will affect the creation of libtool libraries that 6997*** depend on shared libraries, but programs linked with such libtool 6998*** libraries will work regardless of this problem. Nevertheless, you 6999*** may want to report the problem to your system manager and/or to 7000*** bug-libtool@gnu.org 7001 7002EOF 7003 fi ;; 7004 esac 7005 fi 7006 break 7007 fi 7008 done 7009 IFS="$lt_save_ifs" 7010 MAGIC_CMD="$lt_save_MAGIC_CMD" 7011 ;; 7012esac 7013fi 7014 7015MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7016if test -n "$MAGIC_CMD"; then 7017 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7018echo "${ECHO_T}$MAGIC_CMD" >&6; } 7019else 7020 { echo "$as_me:$LINENO: result: no" >&5 7021echo "${ECHO_T}no" >&6; } 7022fi 7023 7024 else 7025 MAGIC_CMD=: 7026 fi 7027fi 7028 7029 fi 7030 ;; 7031esac 7032 7033enable_dlopen=no 7034enable_win32_dll=no 7035 7036# Check whether --enable-libtool-lock was given. 7037if test "${enable_libtool_lock+set}" = set; then 7038 enableval=$enable_libtool_lock; 7039fi 7040 7041test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7042 7043 7044# Check whether --with-pic was given. 7045if test "${with_pic+set}" = set; then 7046 withval=$with_pic; pic_mode="$withval" 7047else 7048 pic_mode=default 7049fi 7050 7051test -z "$pic_mode" && pic_mode=default 7052 7053# Use C for the default configuration in the libtool script 7054tagname= 7055lt_save_CC="$CC" 7056ac_ext=c 7057ac_cpp='$CPP $CPPFLAGS' 7058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7060ac_compiler_gnu=$ac_cv_c_compiler_gnu 7061 7062 7063# Source file extension for C test sources. 7064ac_ext=c 7065 7066# Object file extension for compiled C test sources. 7067objext=o 7068objext=$objext 7069 7070# Code to be used in simple compile tests 7071lt_simple_compile_test_code="int some_variable = 0;\n" 7072 7073# Code to be used in simple link tests 7074lt_simple_link_test_code='int main(){return(0);}\n' 7075 7076 7077# If no C compiler was specified, use CC. 7078LTCC=${LTCC-"$CC"} 7079 7080# If no C compiler flags were specified, use CFLAGS. 7081LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7082 7083# Allow CC to be a program name with arguments. 7084compiler=$CC 7085 7086 7087# save warnings/boilerplate of simple test code 7088ac_outfile=conftest.$ac_objext 7089printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7090eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7091_lt_compiler_boilerplate=`cat conftest.err` 7092$rm conftest* 7093 7094ac_outfile=conftest.$ac_objext 7095printf "$lt_simple_link_test_code" >conftest.$ac_ext 7096eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7097_lt_linker_boilerplate=`cat conftest.err` 7098$rm conftest* 7099 7100 7101 7102lt_prog_compiler_no_builtin_flag= 7103 7104if test "$GCC" = yes; then 7105 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7106 7107 7108{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7109echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7110if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7111 echo $ECHO_N "(cached) $ECHO_C" >&6 7112else 7113 lt_cv_prog_compiler_rtti_exceptions=no 7114 ac_outfile=conftest.$ac_objext 7115 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7116 lt_compiler_flag="-fno-rtti -fno-exceptions" 7117 # Insert the option either (1) after the last *FLAGS variable, or 7118 # (2) before a word containing "conftest.", or (3) at the end. 7119 # Note that $ac_compile itself does not contain backslashes and begins 7120 # with a dollar sign (not a hyphen), so the echo should work correctly. 7121 # The option is referenced via a variable to avoid confusing sed. 7122 lt_compile=`echo "$ac_compile" | $SED \ 7123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7125 -e 's:$: $lt_compiler_flag:'` 7126 (eval echo "\"\$as_me:7126: $lt_compile\"" >&5) 7127 (eval "$lt_compile" 2>conftest.err) 7128 ac_status=$? 7129 cat conftest.err >&5 7130 echo "$as_me:7130: \$? = $ac_status" >&5 7131 if (exit $ac_status) && test -s "$ac_outfile"; then 7132 # The compiler can only warn and ignore the option if not recognized 7133 # So say no if there are warnings other than the usual output. 7134 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7136 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7137 lt_cv_prog_compiler_rtti_exceptions=yes 7138 fi 7139 fi 7140 $rm conftest* 7141 7142fi 7143{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7144echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7145 7146if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7147 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7148else 7149 : 7150fi 7151 7152fi 7153 7154lt_prog_compiler_wl= 7155lt_prog_compiler_pic= 7156lt_prog_compiler_static= 7157 7158{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7159echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7160 7161 if test "$GCC" = yes; then 7162 lt_prog_compiler_wl='-Wl,' 7163 lt_prog_compiler_static='-static' 7164 7165 case $host_os in 7166 aix*) 7167 # All AIX code is PIC. 7168 if test "$host_cpu" = ia64; then 7169 # AIX 5 now supports IA64 processor 7170 lt_prog_compiler_static='-Bstatic' 7171 fi 7172 ;; 7173 7174 amigaos*) 7175 # FIXME: we need at least 68020 code to build shared libraries, but 7176 # adding the `-m68020' flag to GCC prevents building anything better, 7177 # like `-m68040'. 7178 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7179 ;; 7180 7181 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7182 # PIC is the default for these OSes. 7183 ;; 7184 7185 mingw* | pw32* | os2*) 7186 # This hack is so that the source file can tell whether it is being 7187 # built for inclusion in a dll (and should export symbols for example). 7188 lt_prog_compiler_pic='-DDLL_EXPORT' 7189 ;; 7190 7191 darwin* | rhapsody*) 7192 # PIC is the default on this platform 7193 # Common symbols not allowed in MH_DYLIB files 7194 lt_prog_compiler_pic='-fno-common' 7195 ;; 7196 7197 interix3*) 7198 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7199 # Instead, we relocate shared libraries at runtime. 7200 ;; 7201 7202 msdosdjgpp*) 7203 # Just because we use GCC doesn't mean we suddenly get shared libraries 7204 # on systems that don't support them. 7205 lt_prog_compiler_can_build_shared=no 7206 enable_shared=no 7207 ;; 7208 7209 sysv4*MP*) 7210 if test -d /usr/nec; then 7211 lt_prog_compiler_pic=-Kconform_pic 7212 fi 7213 ;; 7214 7215 hpux*) 7216 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7217 # not for PA HP-UX. 7218 case $host_cpu in 7219 hppa*64*|ia64*) 7220 # +Z the default 7221 ;; 7222 *) 7223 lt_prog_compiler_pic='-fPIC' 7224 ;; 7225 esac 7226 ;; 7227 7228 *) 7229 lt_prog_compiler_pic='-fPIC' 7230 ;; 7231 esac 7232 else 7233 # PORTME Check for flag to pass linker flags through the system compiler. 7234 case $host_os in 7235 aix*) 7236 lt_prog_compiler_wl='-Wl,' 7237 if test "$host_cpu" = ia64; then 7238 # AIX 5 now supports IA64 processor 7239 lt_prog_compiler_static='-Bstatic' 7240 else 7241 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7242 fi 7243 ;; 7244 darwin*) 7245 # PIC is the default on this platform 7246 # Common symbols not allowed in MH_DYLIB files 7247 case $cc_basename in 7248 xlc*) 7249 lt_prog_compiler_pic='-qnocommon' 7250 lt_prog_compiler_wl='-Wl,' 7251 ;; 7252 esac 7253 ;; 7254 7255 mingw* | pw32* | os2*) 7256 # This hack is so that the source file can tell whether it is being 7257 # built for inclusion in a dll (and should export symbols for example). 7258 lt_prog_compiler_pic='-DDLL_EXPORT' 7259 ;; 7260 7261 hpux9* | hpux10* | hpux11*) 7262 lt_prog_compiler_wl='-Wl,' 7263 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7264 # not for PA HP-UX. 7265 case $host_cpu in 7266 hppa*64*|ia64*) 7267 # +Z the default 7268 ;; 7269 *) 7270 lt_prog_compiler_pic='+Z' 7271 ;; 7272 esac 7273 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7274 lt_prog_compiler_static='${wl}-a ${wl}archive' 7275 ;; 7276 7277 irix5* | irix6* | nonstopux*) 7278 lt_prog_compiler_wl='-Wl,' 7279 # PIC (with -KPIC) is the default. 7280 lt_prog_compiler_static='-non_shared' 7281 ;; 7282 7283 newsos6) 7284 lt_prog_compiler_pic='-KPIC' 7285 lt_prog_compiler_static='-Bstatic' 7286 ;; 7287 7288 linux*) 7289 case $cc_basename in 7290 icc* | ecc*) 7291 lt_prog_compiler_wl='-Wl,' 7292 lt_prog_compiler_pic='-KPIC' 7293 lt_prog_compiler_static='-static' 7294 ;; 7295 pgcc* | pgf77* | pgf90* | pgf95*) 7296 # Portland Group compilers (*not* the Pentium gcc compiler, 7297 # which looks to be a dead project) 7298 lt_prog_compiler_wl='-Wl,' 7299 lt_prog_compiler_pic='-fpic' 7300 lt_prog_compiler_static='-Bstatic' 7301 ;; 7302 ccc*) 7303 lt_prog_compiler_wl='-Wl,' 7304 # All Alpha code is PIC. 7305 lt_prog_compiler_static='-non_shared' 7306 ;; 7307 esac 7308 ;; 7309 7310 osf3* | osf4* | osf5*) 7311 lt_prog_compiler_wl='-Wl,' 7312 # All OSF/1 code is PIC. 7313 lt_prog_compiler_static='-non_shared' 7314 ;; 7315 7316 solaris*) 7317 lt_prog_compiler_pic='-KPIC' 7318 lt_prog_compiler_static='-Bstatic' 7319 case $cc_basename in 7320 f77* | f90* | f95*) 7321 lt_prog_compiler_wl='-Qoption ld ';; 7322 *) 7323 lt_prog_compiler_wl='-Wl,';; 7324 esac 7325 ;; 7326 7327 sunos4*) 7328 lt_prog_compiler_wl='-Qoption ld ' 7329 lt_prog_compiler_pic='-PIC' 7330 lt_prog_compiler_static='-Bstatic' 7331 ;; 7332 7333 sysv4 | sysv4.2uw2* | sysv4.3*) 7334 lt_prog_compiler_wl='-Wl,' 7335 lt_prog_compiler_pic='-KPIC' 7336 lt_prog_compiler_static='-Bstatic' 7337 ;; 7338 7339 sysv4*MP*) 7340 if test -d /usr/nec ;then 7341 lt_prog_compiler_pic='-Kconform_pic' 7342 lt_prog_compiler_static='-Bstatic' 7343 fi 7344 ;; 7345 7346 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7347 lt_prog_compiler_wl='-Wl,' 7348 lt_prog_compiler_pic='-KPIC' 7349 lt_prog_compiler_static='-Bstatic' 7350 ;; 7351 7352 unicos*) 7353 lt_prog_compiler_wl='-Wl,' 7354 lt_prog_compiler_can_build_shared=no 7355 ;; 7356 7357 uts4*) 7358 lt_prog_compiler_pic='-pic' 7359 lt_prog_compiler_static='-Bstatic' 7360 ;; 7361 7362 *) 7363 lt_prog_compiler_can_build_shared=no 7364 ;; 7365 esac 7366 fi 7367 7368{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7369echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7370 7371# 7372# Check to make sure the PIC flag actually works. 7373# 7374if test -n "$lt_prog_compiler_pic"; then 7375 7376{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7377echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7378if test "${lt_prog_compiler_pic_works+set}" = set; then 7379 echo $ECHO_N "(cached) $ECHO_C" >&6 7380else 7381 lt_prog_compiler_pic_works=no 7382 ac_outfile=conftest.$ac_objext 7383 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7384 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7385 # Insert the option either (1) after the last *FLAGS variable, or 7386 # (2) before a word containing "conftest.", or (3) at the end. 7387 # Note that $ac_compile itself does not contain backslashes and begins 7388 # with a dollar sign (not a hyphen), so the echo should work correctly. 7389 # The option is referenced via a variable to avoid confusing sed. 7390 lt_compile=`echo "$ac_compile" | $SED \ 7391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7393 -e 's:$: $lt_compiler_flag:'` 7394 (eval echo "\"\$as_me:7394: $lt_compile\"" >&5) 7395 (eval "$lt_compile" 2>conftest.err) 7396 ac_status=$? 7397 cat conftest.err >&5 7398 echo "$as_me:7398: \$? = $ac_status" >&5 7399 if (exit $ac_status) && test -s "$ac_outfile"; then 7400 # The compiler can only warn and ignore the option if not recognized 7401 # So say no if there are warnings other than the usual output. 7402 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7404 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7405 lt_prog_compiler_pic_works=yes 7406 fi 7407 fi 7408 $rm conftest* 7409 7410fi 7411{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7412echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7413 7414if test x"$lt_prog_compiler_pic_works" = xyes; then 7415 case $lt_prog_compiler_pic in 7416 "" | " "*) ;; 7417 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7418 esac 7419else 7420 lt_prog_compiler_pic= 7421 lt_prog_compiler_can_build_shared=no 7422fi 7423 7424fi 7425case $host_os in 7426 # For platforms which do not support PIC, -DPIC is meaningless: 7427 *djgpp*) 7428 lt_prog_compiler_pic= 7429 ;; 7430 *) 7431 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7432 ;; 7433esac 7434 7435# 7436# Check to make sure the static flag actually works. 7437# 7438wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7439{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7440echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7441if test "${lt_prog_compiler_static_works+set}" = set; then 7442 echo $ECHO_N "(cached) $ECHO_C" >&6 7443else 7444 lt_prog_compiler_static_works=no 7445 save_LDFLAGS="$LDFLAGS" 7446 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7447 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7448 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7449 # The linker can only warn and ignore the option if not recognized 7450 # So say no if there are warnings 7451 if test -s conftest.err; then 7452 # Append any errors to the config.log. 7453 cat conftest.err 1>&5 7454 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7456 if diff conftest.exp conftest.er2 >/dev/null; then 7457 lt_prog_compiler_static_works=yes 7458 fi 7459 else 7460 lt_prog_compiler_static_works=yes 7461 fi 7462 fi 7463 $rm conftest* 7464 LDFLAGS="$save_LDFLAGS" 7465 7466fi 7467{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7468echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7469 7470if test x"$lt_prog_compiler_static_works" = xyes; then 7471 : 7472else 7473 lt_prog_compiler_static= 7474fi 7475 7476 7477{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7478echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7479if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7480 echo $ECHO_N "(cached) $ECHO_C" >&6 7481else 7482 lt_cv_prog_compiler_c_o=no 7483 $rm -r conftest 2>/dev/null 7484 mkdir conftest 7485 cd conftest 7486 mkdir out 7487 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7488 7489 lt_compiler_flag="-o out/conftest2.$ac_objext" 7490 # Insert the option either (1) after the last *FLAGS variable, or 7491 # (2) before a word containing "conftest.", or (3) at the end. 7492 # Note that $ac_compile itself does not contain backslashes and begins 7493 # with a dollar sign (not a hyphen), so the echo should work correctly. 7494 lt_compile=`echo "$ac_compile" | $SED \ 7495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7497 -e 's:$: $lt_compiler_flag:'` 7498 (eval echo "\"\$as_me:7498: $lt_compile\"" >&5) 7499 (eval "$lt_compile" 2>out/conftest.err) 7500 ac_status=$? 7501 cat out/conftest.err >&5 7502 echo "$as_me:7502: \$? = $ac_status" >&5 7503 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7504 then 7505 # The compiler can only warn and ignore the option if not recognized 7506 # So say no if there are warnings 7507 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7510 lt_cv_prog_compiler_c_o=yes 7511 fi 7512 fi 7513 chmod u+w . 2>&5 7514 $rm conftest* 7515 # SGI C++ compiler will create directory out/ii_files/ for 7516 # template instantiation 7517 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7518 $rm out/* && rmdir out 7519 cd .. 7520 rmdir conftest 7521 $rm conftest* 7522 7523fi 7524{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7525echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7526 7527 7528hard_links="nottested" 7529if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7530 # do not overwrite the value of need_locks provided by the user 7531 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7532echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7533 hard_links=yes 7534 $rm conftest* 7535 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7536 touch conftest.a 7537 ln conftest.a conftest.b 2>&5 || hard_links=no 7538 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7539 { echo "$as_me:$LINENO: result: $hard_links" >&5 7540echo "${ECHO_T}$hard_links" >&6; } 7541 if test "$hard_links" = no; then 7542 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7543echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7544 need_locks=warn 7545 fi 7546else 7547 need_locks=no 7548fi 7549 7550{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7551echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7552 7553 runpath_var= 7554 allow_undefined_flag= 7555 enable_shared_with_static_runtimes=no 7556 archive_cmds= 7557 archive_expsym_cmds= 7558 old_archive_From_new_cmds= 7559 old_archive_from_expsyms_cmds= 7560 export_dynamic_flag_spec= 7561 whole_archive_flag_spec= 7562 thread_safe_flag_spec= 7563 hardcode_libdir_flag_spec= 7564 hardcode_libdir_flag_spec_ld= 7565 hardcode_libdir_separator= 7566 hardcode_direct=no 7567 hardcode_minus_L=no 7568 hardcode_shlibpath_var=unsupported 7569 link_all_deplibs=unknown 7570 hardcode_automatic=no 7571 module_cmds= 7572 module_expsym_cmds= 7573 always_export_symbols=no 7574 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7575 # include_expsyms should be a list of space-separated symbols to be *always* 7576 # included in the symbol list 7577 include_expsyms= 7578 # exclude_expsyms can be an extended regexp of symbols to exclude 7579 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7580 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7581 # as well as any symbol that contains `d'. 7582 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7583 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7584 # platforms (ab)use it in PIC code, but their linkers get confused if 7585 # the symbol is explicitly referenced. Since portable code cannot 7586 # rely on this symbol name, it's probably fine to never include it in 7587 # preloaded symbol tables. 7588 extract_expsyms_cmds= 7589 # Just being paranoid about ensuring that cc_basename is set. 7590 for cc_temp in $compiler""; do 7591 case $cc_temp in 7592 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7593 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7594 \-*) ;; 7595 *) break;; 7596 esac 7597done 7598cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7599 7600 case $host_os in 7601 cygwin* | mingw* | pw32*) 7602 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7603 # When not using gcc, we currently assume that we are using 7604 # Microsoft Visual C++. 7605 if test "$GCC" != yes; then 7606 with_gnu_ld=no 7607 fi 7608 ;; 7609 interix*) 7610 # we just hope/assume this is gcc and not c89 (= MSVC++) 7611 with_gnu_ld=yes 7612 ;; 7613 openbsd*) 7614 with_gnu_ld=no 7615 ;; 7616 esac 7617 7618 ld_shlibs=yes 7619 if test "$with_gnu_ld" = yes; then 7620 # If archive_cmds runs LD, not CC, wlarc should be empty 7621 wlarc='${wl}' 7622 7623 # Set some defaults for GNU ld with shared library support. These 7624 # are reset later if shared libraries are not supported. Putting them 7625 # here allows them to be overridden if necessary. 7626 runpath_var=LD_RUN_PATH 7627 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7628 export_dynamic_flag_spec='${wl}--export-dynamic' 7629 # ancient GNU ld didn't support --whole-archive et. al. 7630 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7631 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7632 else 7633 whole_archive_flag_spec= 7634 fi 7635 supports_anon_versioning=no 7636 case `$LD -v 2>/dev/null` in 7637 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7638 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7639 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7640 *\ 2.11.*) ;; # other 2.11 versions 7641 *) supports_anon_versioning=yes ;; 7642 esac 7643 7644 # See if GNU ld supports shared libraries. 7645 case $host_os in 7646 aix3* | aix4* | aix5*) 7647 # On AIX/PPC, the GNU linker is very broken 7648 if test "$host_cpu" != ia64; then 7649 ld_shlibs=no 7650 cat <<EOF 1>&2 7651 7652*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7653*** to be unable to reliably create shared libraries on AIX. 7654*** Therefore, libtool is disabling shared libraries support. If you 7655*** really care for shared libraries, you may want to modify your PATH 7656*** so that a non-GNU linker is found, and then restart. 7657 7658EOF 7659 fi 7660 ;; 7661 7662 amigaos*) 7663 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)' 7664 hardcode_libdir_flag_spec='-L$libdir' 7665 hardcode_minus_L=yes 7666 7667 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7668 # that the semantics of dynamic libraries on AmigaOS, at least up 7669 # to version 4, is to share data among multiple programs linked 7670 # with the same dynamic library. Since this doesn't match the 7671 # behavior of shared libraries on other platforms, we can't use 7672 # them. 7673 ld_shlibs=no 7674 ;; 7675 7676 beos*) 7677 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7678 allow_undefined_flag=unsupported 7679 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7680 # support --undefined. This deserves some investigation. FIXME 7681 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7682 else 7683 ld_shlibs=no 7684 fi 7685 ;; 7686 7687 cygwin* | mingw* | pw32*) 7688 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7689 # as there is no search path for DLLs. 7690 hardcode_libdir_flag_spec='-L$libdir' 7691 allow_undefined_flag=unsupported 7692 always_export_symbols=no 7693 enable_shared_with_static_runtimes=yes 7694 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7695 7696 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7698 # If the export-symbols file already is a .def file (1st line 7699 # is EXPORTS), use it as is; otherwise, prepend... 7700 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7701 cp $export_symbols $output_objdir/$soname.def; 7702 else 7703 echo EXPORTS > $output_objdir/$soname.def; 7704 cat $export_symbols >> $output_objdir/$soname.def; 7705 fi~ 7706 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7707 else 7708 ld_shlibs=no 7709 fi 7710 ;; 7711 7712 interix3*) 7713 hardcode_direct=no 7714 hardcode_shlibpath_var=no 7715 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7716 export_dynamic_flag_spec='${wl}-E' 7717 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7718 # Instead, shared libraries are loaded at an image base (0x10000000 by 7719 # default) and relocated if they conflict, which is a slow very memory 7720 # consuming and fragmenting process. To avoid this, we pick a random, 7721 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7722 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7723 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7724 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' 7725 ;; 7726 7727 linux*) 7728 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7729 tmp_addflag= 7730 case $cc_basename,$host_cpu in 7731 pgcc*) # Portland Group C compiler 7732 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' 7733 tmp_addflag=' $pic_flag' 7734 ;; 7735 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7736 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' 7737 tmp_addflag=' $pic_flag -Mnomain' ;; 7738 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7739 tmp_addflag=' -i_dynamic' ;; 7740 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7741 tmp_addflag=' -i_dynamic -nofor_main' ;; 7742 ifc* | ifort*) # Intel Fortran compiler 7743 tmp_addflag=' -nofor_main' ;; 7744 esac 7745 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7746 7747 if test $supports_anon_versioning = yes; then 7748 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7749 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7750 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7751 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7752 fi 7753 else 7754 ld_shlibs=no 7755 fi 7756 ;; 7757 7758 netbsd*) 7759 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7760 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7761 wlarc= 7762 else 7763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7765 fi 7766 ;; 7767 7768 solaris*) 7769 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7770 ld_shlibs=no 7771 cat <<EOF 1>&2 7772 7773*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7774*** create shared libraries on Solaris systems. Therefore, libtool 7775*** is disabling shared libraries support. We urge you to upgrade GNU 7776*** binutils to release 2.9.1 or newer. Another option is to modify 7777*** your PATH or compiler configuration so that the native linker is 7778*** used, and then restart. 7779 7780EOF 7781 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7784 else 7785 ld_shlibs=no 7786 fi 7787 ;; 7788 7789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7790 case `$LD -v 2>&1` in 7791 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7792 ld_shlibs=no 7793 cat <<_LT_EOF 1>&2 7794 7795*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7796*** reliably create shared libraries on SCO systems. Therefore, libtool 7797*** is disabling shared libraries support. We urge you to upgrade GNU 7798*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7799*** your PATH or compiler configuration so that the native linker is 7800*** used, and then restart. 7801 7802_LT_EOF 7803 ;; 7804 *) 7805 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7806 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7808 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7809 else 7810 ld_shlibs=no 7811 fi 7812 ;; 7813 esac 7814 ;; 7815 7816 sunos4*) 7817 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7818 wlarc= 7819 hardcode_direct=yes 7820 hardcode_shlibpath_var=no 7821 ;; 7822 7823 *) 7824 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7825 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7826 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7827 else 7828 ld_shlibs=no 7829 fi 7830 ;; 7831 esac 7832 7833 if test "$ld_shlibs" = no; then 7834 runpath_var= 7835 hardcode_libdir_flag_spec= 7836 export_dynamic_flag_spec= 7837 whole_archive_flag_spec= 7838 fi 7839 else 7840 # PORTME fill in a description of your system's linker (not GNU ld) 7841 case $host_os in 7842 aix3*) 7843 allow_undefined_flag=unsupported 7844 always_export_symbols=yes 7845 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' 7846 # Note: this linker hardcodes the directories in LIBPATH if there 7847 # are no directories specified by -L. 7848 hardcode_minus_L=yes 7849 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7850 # Neither direct hardcoding nor static linking is supported with a 7851 # broken collect2. 7852 hardcode_direct=unsupported 7853 fi 7854 ;; 7855 7856 aix4* | aix5*) 7857 if test "$host_cpu" = ia64; then 7858 # On IA64, the linker does run time linking by default, so we don't 7859 # have to do anything special. 7860 aix_use_runtimelinking=no 7861 exp_sym_flag='-Bexport' 7862 no_entry_flag="" 7863 else 7864 # If we're using GNU nm, then we don't want the "-C" option. 7865 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7866 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7867 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' 7868 else 7869 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' 7870 fi 7871 aix_use_runtimelinking=no 7872 7873 # Test if we are trying to use run time linking or normal 7874 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7875 # need to do runtime linking. 7876 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7877 for ld_flag in $LDFLAGS; do 7878 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7879 aix_use_runtimelinking=yes 7880 break 7881 fi 7882 done 7883 ;; 7884 esac 7885 7886 exp_sym_flag='-bexport' 7887 no_entry_flag='-bnoentry' 7888 fi 7889 7890 # When large executables or shared objects are built, AIX ld can 7891 # have problems creating the table of contents. If linking a library 7892 # or program results in "error TOC overflow" add -mminimal-toc to 7893 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7894 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7895 7896 archive_cmds='' 7897 hardcode_direct=yes 7898 hardcode_libdir_separator=':' 7899 link_all_deplibs=yes 7900 7901 if test "$GCC" = yes; then 7902 case $host_os in aix4.[012]|aix4.[012].*) 7903 # We only want to do this on AIX 4.2 and lower, the check 7904 # below for broken collect2 doesn't work under 4.3+ 7905 collect2name=`${CC} -print-prog-name=collect2` 7906 if test -f "$collect2name" && \ 7907 strings "$collect2name" | grep resolve_lib_name >/dev/null 7908 then 7909 # We have reworked collect2 7910 hardcode_direct=yes 7911 else 7912 # We have old collect2 7913 hardcode_direct=unsupported 7914 # It fails to find uninstalled libraries when the uninstalled 7915 # path is not listed in the libpath. Setting hardcode_minus_L 7916 # to unsupported forces relinking 7917 hardcode_minus_L=yes 7918 hardcode_libdir_flag_spec='-L$libdir' 7919 hardcode_libdir_separator= 7920 fi 7921 ;; 7922 esac 7923 shared_flag='-shared' 7924 if test "$aix_use_runtimelinking" = yes; then 7925 shared_flag="$shared_flag "'${wl}-G' 7926 fi 7927 else 7928 # not using gcc 7929 if test "$host_cpu" = ia64; then 7930 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7931 # chokes on -Wl,-G. The following line is correct: 7932 shared_flag='-G' 7933 else 7934 if test "$aix_use_runtimelinking" = yes; then 7935 shared_flag='${wl}-G' 7936 else 7937 shared_flag='${wl}-bM:SRE' 7938 fi 7939 fi 7940 fi 7941 7942 # It seems that -bexpall does not export symbols beginning with 7943 # underscore (_), so it is better to generate a list of symbols to export. 7944 always_export_symbols=yes 7945 if test "$aix_use_runtimelinking" = yes; then 7946 # Warning - without using the other runtime loading flags (-brtl), 7947 # -berok will link without error, but may produce a broken library. 7948 allow_undefined_flag='-berok' 7949 # Determine the default libpath from the value encoded in an empty executable. 7950 cat >conftest.$ac_ext <<_ACEOF 7951/* confdefs.h. */ 7952_ACEOF 7953cat confdefs.h >>conftest.$ac_ext 7954cat >>conftest.$ac_ext <<_ACEOF 7955/* end confdefs.h. */ 7956 7957int 7958main () 7959{ 7960 7961 ; 7962 return 0; 7963} 7964_ACEOF 7965rm -f conftest.$ac_objext conftest$ac_exeext 7966if { (ac_try="$ac_link" 7967case "(($ac_try" in 7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7969 *) ac_try_echo=$ac_try;; 7970esac 7971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7972 (eval "$ac_link") 2>conftest.er1 7973 ac_status=$? 7974 grep -v '^ *+' conftest.er1 >conftest.err 7975 rm -f conftest.er1 7976 cat conftest.err >&5 7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7978 (exit $ac_status); } && { 7979 test -z "$ac_c_werror_flag" || 7980 test ! -s conftest.err 7981 } && test -s conftest$ac_exeext && 7982 $as_test_x conftest$ac_exeext; then 7983 7984aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7985}'` 7986# Check for a 64-bit object if we didn't find anything. 7987if 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; } 7988}'`; fi 7989else 7990 echo "$as_me: failed program was:" >&5 7991sed 's/^/| /' conftest.$ac_ext >&5 7992 7993 7994fi 7995 7996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7997 conftest$ac_exeext conftest.$ac_ext 7998if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7999 8000 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8001 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" 8002 else 8003 if test "$host_cpu" = ia64; then 8004 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8005 allow_undefined_flag="-z nodefs" 8006 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" 8007 else 8008 # Determine the default libpath from the value encoded in an empty executable. 8009 cat >conftest.$ac_ext <<_ACEOF 8010/* confdefs.h. */ 8011_ACEOF 8012cat confdefs.h >>conftest.$ac_ext 8013cat >>conftest.$ac_ext <<_ACEOF 8014/* end confdefs.h. */ 8015 8016int 8017main () 8018{ 8019 8020 ; 8021 return 0; 8022} 8023_ACEOF 8024rm -f conftest.$ac_objext conftest$ac_exeext 8025if { (ac_try="$ac_link" 8026case "(($ac_try" in 8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8028 *) ac_try_echo=$ac_try;; 8029esac 8030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8031 (eval "$ac_link") 2>conftest.er1 8032 ac_status=$? 8033 grep -v '^ *+' conftest.er1 >conftest.err 8034 rm -f conftest.er1 8035 cat conftest.err >&5 8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8037 (exit $ac_status); } && { 8038 test -z "$ac_c_werror_flag" || 8039 test ! -s conftest.err 8040 } && test -s conftest$ac_exeext && 8041 $as_test_x conftest$ac_exeext; then 8042 8043aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8044}'` 8045# Check for a 64-bit object if we didn't find anything. 8046if 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; } 8047}'`; fi 8048else 8049 echo "$as_me: failed program was:" >&5 8050sed 's/^/| /' conftest.$ac_ext >&5 8051 8052 8053fi 8054 8055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8056 conftest$ac_exeext conftest.$ac_ext 8057if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8058 8059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8060 # Warning - without using the other run time loading flags, 8061 # -berok will link without error, but may produce a broken library. 8062 no_undefined_flag=' ${wl}-bernotok' 8063 allow_undefined_flag=' ${wl}-berok' 8064 # Exported symbols can be pulled into shared objects from archives 8065 whole_archive_flag_spec='$convenience' 8066 archive_cmds_need_lc=yes 8067 # This is similar to how AIX traditionally builds its shared libraries. 8068 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' 8069 fi 8070 fi 8071 ;; 8072 8073 amigaos*) 8074 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)' 8075 hardcode_libdir_flag_spec='-L$libdir' 8076 hardcode_minus_L=yes 8077 # see comment about different semantics on the GNU ld section 8078 ld_shlibs=no 8079 ;; 8080 8081 bsdi[45]*) 8082 export_dynamic_flag_spec=-rdynamic 8083 ;; 8084 8085 cygwin* | mingw* | pw32*) 8086 # When not using gcc, we currently assume that we are using 8087 # Microsoft Visual C++. 8088 # hardcode_libdir_flag_spec is actually meaningless, as there is 8089 # no search path for DLLs. 8090 hardcode_libdir_flag_spec=' ' 8091 allow_undefined_flag=unsupported 8092 # Tell ltmain to make .lib files, not .a files. 8093 libext=lib 8094 # Tell ltmain to make .dll files, not .so files. 8095 shrext_cmds=".dll" 8096 # FIXME: Setting linknames here is a bad hack. 8097 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8098 # The linker will automatically build a .lib file if we build a DLL. 8099 old_archive_From_new_cmds='true' 8100 # FIXME: Should let the user specify the lib program. 8101 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8102 fix_srcfile_path='`cygpath -w "$srcfile"`' 8103 enable_shared_with_static_runtimes=yes 8104 ;; 8105 8106 darwin* | rhapsody*) 8107 case $host_os in 8108 rhapsody* | darwin1.[012]) 8109 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8110 ;; 8111 *) # Darwin 1.3 on 8112 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8113 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8114 else 8115 case ${MACOSX_DEPLOYMENT_TARGET} in 8116 10.[012]) 8117 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8118 ;; 8119 10.*) 8120 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8121 ;; 8122 esac 8123 fi 8124 ;; 8125 esac 8126 archive_cmds_need_lc=no 8127 hardcode_direct=no 8128 hardcode_automatic=yes 8129 hardcode_shlibpath_var=unsupported 8130 whole_archive_flag_spec='' 8131 link_all_deplibs=yes 8132 if test "$GCC" = yes ; then 8133 output_verbose_link_cmd='echo' 8134 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8135 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8136 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8137 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}' 8138 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}' 8139 else 8140 case $cc_basename in 8141 xlc*) 8142 output_verbose_link_cmd='echo' 8143 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8144 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8145 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8146 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}' 8147 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}' 8148 ;; 8149 *) 8150 ld_shlibs=no 8151 ;; 8152 esac 8153 fi 8154 ;; 8155 8156 dgux*) 8157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8158 hardcode_libdir_flag_spec='-L$libdir' 8159 hardcode_shlibpath_var=no 8160 ;; 8161 8162 freebsd1*) 8163 ld_shlibs=no 8164 ;; 8165 8166 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8167 # support. Future versions do this automatically, but an explicit c++rt0.o 8168 # does not break anything, and helps significantly (at the cost of a little 8169 # extra space). 8170 freebsd2.2*) 8171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8172 hardcode_libdir_flag_spec='-R$libdir' 8173 hardcode_direct=yes 8174 hardcode_shlibpath_var=no 8175 ;; 8176 8177 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8178 freebsd2*) 8179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8180 hardcode_direct=yes 8181 hardcode_minus_L=yes 8182 hardcode_shlibpath_var=no 8183 ;; 8184 8185 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8186 freebsd* | kfreebsd*-gnu | dragonfly*) 8187 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8188 hardcode_libdir_flag_spec='-R$libdir' 8189 hardcode_direct=yes 8190 hardcode_shlibpath_var=no 8191 ;; 8192 8193 hpux9*) 8194 if test "$GCC" = yes; then 8195 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' 8196 else 8197 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' 8198 fi 8199 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8200 hardcode_libdir_separator=: 8201 hardcode_direct=yes 8202 8203 # hardcode_minus_L: Not really in the search PATH, 8204 # but as the default location of the library. 8205 hardcode_minus_L=yes 8206 export_dynamic_flag_spec='${wl}-E' 8207 ;; 8208 8209 hpux10*) 8210 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8211 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8212 else 8213 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8214 fi 8215 if test "$with_gnu_ld" = no; then 8216 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8217 hardcode_libdir_separator=: 8218 8219 hardcode_direct=yes 8220 export_dynamic_flag_spec='${wl}-E' 8221 8222 # hardcode_minus_L: Not really in the search PATH, 8223 # but as the default location of the library. 8224 hardcode_minus_L=yes 8225 fi 8226 ;; 8227 8228 hpux11*) 8229 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8230 case $host_cpu in 8231 hppa*64*) 8232 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8233 ;; 8234 ia64*) 8235 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8236 ;; 8237 *) 8238 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8239 ;; 8240 esac 8241 else 8242 case $host_cpu in 8243 hppa*64*) 8244 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8245 ;; 8246 ia64*) 8247 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8248 ;; 8249 *) 8250 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8251 ;; 8252 esac 8253 fi 8254 if test "$with_gnu_ld" = no; then 8255 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8256 hardcode_libdir_separator=: 8257 8258 case $host_cpu in 8259 hppa*64*|ia64*) 8260 hardcode_libdir_flag_spec_ld='+b $libdir' 8261 hardcode_direct=no 8262 hardcode_shlibpath_var=no 8263 ;; 8264 *) 8265 hardcode_direct=yes 8266 export_dynamic_flag_spec='${wl}-E' 8267 8268 # hardcode_minus_L: Not really in the search PATH, 8269 # but as the default location of the library. 8270 hardcode_minus_L=yes 8271 ;; 8272 esac 8273 fi 8274 ;; 8275 8276 irix5* | irix6* | nonstopux*) 8277 if test "$GCC" = yes; then 8278 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' 8279 else 8280 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' 8281 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8282 fi 8283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8284 hardcode_libdir_separator=: 8285 link_all_deplibs=yes 8286 ;; 8287 8288 netbsd*) 8289 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8290 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8291 else 8292 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8293 fi 8294 hardcode_libdir_flag_spec='-R$libdir' 8295 hardcode_direct=yes 8296 hardcode_shlibpath_var=no 8297 ;; 8298 8299 newsos6) 8300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8301 hardcode_direct=yes 8302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8303 hardcode_libdir_separator=: 8304 hardcode_shlibpath_var=no 8305 ;; 8306 8307 openbsd*) 8308 hardcode_direct=yes 8309 hardcode_shlibpath_var=no 8310 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8311 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8312 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8313 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8314 export_dynamic_flag_spec='${wl}-E' 8315 else 8316 case $host_os in 8317 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8319 hardcode_libdir_flag_spec='-R$libdir' 8320 ;; 8321 *) 8322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8323 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8324 ;; 8325 esac 8326 fi 8327 ;; 8328 8329 os2*) 8330 hardcode_libdir_flag_spec='-L$libdir' 8331 hardcode_minus_L=yes 8332 allow_undefined_flag=unsupported 8333 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' 8334 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8335 ;; 8336 8337 osf3*) 8338 if test "$GCC" = yes; then 8339 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8340 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' 8341 else 8342 allow_undefined_flag=' -expect_unresolved \*' 8343 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' 8344 fi 8345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8346 hardcode_libdir_separator=: 8347 ;; 8348 8349 osf4* | osf5*) # as osf3* with the addition of -msym flag 8350 if test "$GCC" = yes; then 8351 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8352 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' 8353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8354 else 8355 allow_undefined_flag=' -expect_unresolved \*' 8356 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' 8357 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8358 $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' 8359 8360 # Both c and cxx compiler support -rpath directly 8361 hardcode_libdir_flag_spec='-rpath $libdir' 8362 fi 8363 hardcode_libdir_separator=: 8364 ;; 8365 8366 solaris*) 8367 no_undefined_flag=' -z text' 8368 if test "$GCC" = yes; then 8369 wlarc='${wl}' 8370 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8371 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8372 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8373 else 8374 wlarc='' 8375 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8376 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8377 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8378 fi 8379 hardcode_libdir_flag_spec='-R$libdir' 8380 hardcode_shlibpath_var=no 8381 case $host_os in 8382 solaris2.[0-5] | solaris2.[0-5].*) ;; 8383 *) 8384 # The compiler driver will combine linker options so we 8385 # cannot just pass the convience library names through 8386 # without $wl, iff we do not link with $LD. 8387 # Luckily, gcc supports the same syntax we need for Sun Studio. 8388 # Supported since Solaris 2.6 (maybe 2.5.1?) 8389 case $wlarc in 8390 '') 8391 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8392 *) 8393 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' ;; 8394 esac ;; 8395 esac 8396 link_all_deplibs=yes 8397 ;; 8398 8399 sunos4*) 8400 if test "x$host_vendor" = xsequent; then 8401 # Use $CC to link under sequent, because it throws in some extra .o 8402 # files that make .init and .fini sections work. 8403 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8404 else 8405 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8406 fi 8407 hardcode_libdir_flag_spec='-L$libdir' 8408 hardcode_direct=yes 8409 hardcode_minus_L=yes 8410 hardcode_shlibpath_var=no 8411 ;; 8412 8413 sysv4) 8414 case $host_vendor in 8415 sni) 8416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8417 hardcode_direct=yes # is this really true??? 8418 ;; 8419 siemens) 8420 ## LD is ld it makes a PLAMLIB 8421 ## CC just makes a GrossModule. 8422 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8423 reload_cmds='$CC -r -o $output$reload_objs' 8424 hardcode_direct=no 8425 ;; 8426 motorola) 8427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8428 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8429 ;; 8430 esac 8431 runpath_var='LD_RUN_PATH' 8432 hardcode_shlibpath_var=no 8433 ;; 8434 8435 sysv4.3*) 8436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8437 hardcode_shlibpath_var=no 8438 export_dynamic_flag_spec='-Bexport' 8439 ;; 8440 8441 sysv4*MP*) 8442 if test -d /usr/nec; then 8443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8444 hardcode_shlibpath_var=no 8445 runpath_var=LD_RUN_PATH 8446 hardcode_runpath_var=yes 8447 ld_shlibs=yes 8448 fi 8449 ;; 8450 8451 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8452 no_undefined_flag='${wl}-z,text' 8453 archive_cmds_need_lc=no 8454 hardcode_shlibpath_var=no 8455 runpath_var='LD_RUN_PATH' 8456 8457 if test "$GCC" = yes; then 8458 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8459 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8460 else 8461 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8462 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8463 fi 8464 ;; 8465 8466 sysv5* | sco3.2v5* | sco5v6*) 8467 # Note: We can NOT use -z defs as we might desire, because we do not 8468 # link with -lc, and that would cause any symbols used from libc to 8469 # always be unresolved, which means just about no library would 8470 # ever link correctly. If we're not using GNU ld we use -z text 8471 # though, which does catch some bad symbols but isn't as heavy-handed 8472 # as -z defs. 8473 no_undefined_flag='${wl}-z,text' 8474 allow_undefined_flag='${wl}-z,nodefs' 8475 archive_cmds_need_lc=no 8476 hardcode_shlibpath_var=no 8477 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8478 hardcode_libdir_separator=':' 8479 link_all_deplibs=yes 8480 export_dynamic_flag_spec='${wl}-Bexport' 8481 runpath_var='LD_RUN_PATH' 8482 8483 if test "$GCC" = yes; then 8484 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8485 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8486 else 8487 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8488 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8489 fi 8490 ;; 8491 8492 uts4*) 8493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8494 hardcode_libdir_flag_spec='-L$libdir' 8495 hardcode_shlibpath_var=no 8496 ;; 8497 8498 *) 8499 ld_shlibs=no 8500 ;; 8501 esac 8502 fi 8503 8504{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8505echo "${ECHO_T}$ld_shlibs" >&6; } 8506test "$ld_shlibs" = no && can_build_shared=no 8507 8508# 8509# Do we need to explicitly link libc? 8510# 8511case "x$archive_cmds_need_lc" in 8512x|xyes) 8513 # Assume -lc should be added 8514 archive_cmds_need_lc=yes 8515 8516 if test "$enable_shared" = yes && test "$GCC" = yes; then 8517 case $archive_cmds in 8518 *'~'*) 8519 # FIXME: we may have to deal with multi-command sequences. 8520 ;; 8521 '$CC '*) 8522 # Test whether the compiler implicitly links with -lc since on some 8523 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8524 # to ld, don't add -lc before -lgcc. 8525 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8526echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8527 $rm conftest* 8528 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8529 8530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8531 (eval $ac_compile) 2>&5 8532 ac_status=$? 8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8534 (exit $ac_status); } 2>conftest.err; then 8535 soname=conftest 8536 lib=conftest 8537 libobjs=conftest.$ac_objext 8538 deplibs= 8539 wl=$lt_prog_compiler_wl 8540 pic_flag=$lt_prog_compiler_pic 8541 compiler_flags=-v 8542 linker_flags=-v 8543 verstring= 8544 output_objdir=. 8545 libname=conftest 8546 lt_save_allow_undefined_flag=$allow_undefined_flag 8547 allow_undefined_flag= 8548 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8549 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8550 ac_status=$? 8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8552 (exit $ac_status); } 8553 then 8554 archive_cmds_need_lc=no 8555 else 8556 archive_cmds_need_lc=yes 8557 fi 8558 allow_undefined_flag=$lt_save_allow_undefined_flag 8559 else 8560 cat conftest.err 1>&5 8561 fi 8562 $rm conftest* 8563 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8564echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8565 ;; 8566 esac 8567 fi 8568 ;; 8569esac 8570 8571{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8572echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8573library_names_spec= 8574libname_spec='lib$name' 8575soname_spec= 8576shrext_cmds=".so" 8577postinstall_cmds= 8578postuninstall_cmds= 8579finish_cmds= 8580finish_eval= 8581shlibpath_var= 8582shlibpath_overrides_runpath=unknown 8583version_type=none 8584dynamic_linker="$host_os ld.so" 8585sys_lib_dlsearch_path_spec="/lib /usr/lib" 8586if test "$GCC" = yes; then 8587 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8588 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8589 # if the path contains ";" then we assume it to be the separator 8590 # otherwise default to the standard path separator (i.e. ":") - it is 8591 # assumed that no part of a normal pathname contains ";" but that should 8592 # okay in the real world where ";" in dirpaths is itself problematic. 8593 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8594 else 8595 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8596 fi 8597else 8598 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8599fi 8600need_lib_prefix=unknown 8601hardcode_into_libs=no 8602 8603# when you set need_version to no, make sure it does not cause -set_version 8604# flags to be left without arguments 8605need_version=unknown 8606 8607case $host_os in 8608aix3*) 8609 version_type=linux 8610 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8611 shlibpath_var=LIBPATH 8612 8613 # AIX 3 has no versioning support, so we append a major version to the name. 8614 soname_spec='${libname}${release}${shared_ext}$major' 8615 ;; 8616 8617aix4* | aix5*) 8618 version_type=linux 8619 need_lib_prefix=no 8620 need_version=no 8621 hardcode_into_libs=yes 8622 if test "$host_cpu" = ia64; then 8623 # AIX 5 supports IA64 8624 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8625 shlibpath_var=LD_LIBRARY_PATH 8626 else 8627 # With GCC up to 2.95.x, collect2 would create an import file 8628 # for dependence libraries. The import file would start with 8629 # the line `#! .'. This would cause the generated library to 8630 # depend on `.', always an invalid library. This was fixed in 8631 # development snapshots of GCC prior to 3.0. 8632 case $host_os in 8633 aix4 | aix4.[01] | aix4.[01].*) 8634 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8635 echo ' yes ' 8636 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8637 : 8638 else 8639 can_build_shared=no 8640 fi 8641 ;; 8642 esac 8643 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8644 # soname into executable. Probably we can add versioning support to 8645 # collect2, so additional links can be useful in future. 8646 if test "$aix_use_runtimelinking" = yes; then 8647 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8648 # instead of lib<name>.a to let people know that these are not 8649 # typical AIX shared libraries. 8650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8651 else 8652 # We preserve .a as extension for shared libraries through AIX4.2 8653 # and later when we are not doing run time linking. 8654 library_names_spec='${libname}${release}.a $libname.a' 8655 soname_spec='${libname}${release}${shared_ext}$major' 8656 fi 8657 shlibpath_var=LIBPATH 8658 fi 8659 ;; 8660 8661amigaos*) 8662 library_names_spec='$libname.ixlibrary $libname.a' 8663 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8664 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' 8665 ;; 8666 8667beos*) 8668 library_names_spec='${libname}${shared_ext}' 8669 dynamic_linker="$host_os ld.so" 8670 shlibpath_var=LIBRARY_PATH 8671 ;; 8672 8673bsdi[45]*) 8674 version_type=linux 8675 need_version=no 8676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8677 soname_spec='${libname}${release}${shared_ext}$major' 8678 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8679 shlibpath_var=LD_LIBRARY_PATH 8680 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8681 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8682 # the default ld.so.conf also contains /usr/contrib/lib and 8683 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8684 # libtool to hard-code these into programs 8685 ;; 8686 8687cygwin* | mingw* | pw32*) 8688 version_type=windows 8689 shrext_cmds=".dll" 8690 need_version=no 8691 need_lib_prefix=no 8692 8693 case $GCC,$host_os in 8694 yes,cygwin* | yes,mingw* | yes,pw32*) 8695 library_names_spec='$libname.dll.a' 8696 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8697 postinstall_cmds='base_file=`basename \${file}`~ 8698 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8699 dldir=$destdir/`dirname \$dlpath`~ 8700 test -d \$dldir || mkdir -p \$dldir~ 8701 $install_prog $dir/$dlname \$dldir/$dlname~ 8702 chmod a+x \$dldir/$dlname' 8703 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8704 dlpath=$dir/\$dldll~ 8705 $rm \$dlpath' 8706 shlibpath_overrides_runpath=yes 8707 8708 case $host_os in 8709 cygwin*) 8710 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8711 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8712 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8713 ;; 8714 mingw*) 8715 # MinGW DLLs use traditional 'lib' prefix 8716 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8717 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8718 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8719 # It is most probably a Windows format PATH printed by 8720 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8721 # path with ; separators, and with drive letters. We can handle the 8722 # drive letters (cygwin fileutils understands them), so leave them, 8723 # especially as we might pass files found there to a mingw objdump, 8724 # which wouldn't understand a cygwinified path. Ahh. 8725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8726 else 8727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8728 fi 8729 ;; 8730 pw32*) 8731 # pw32 DLLs use 'pw' prefix rather than 'lib' 8732 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8733 ;; 8734 esac 8735 ;; 8736 8737 *) 8738 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8739 ;; 8740 esac 8741 dynamic_linker='Win32 ld.exe' 8742 # FIXME: first we should search . and the directory the executable is in 8743 shlibpath_var=PATH 8744 ;; 8745 8746darwin* | rhapsody*) 8747 dynamic_linker="$host_os dyld" 8748 version_type=darwin 8749 need_lib_prefix=no 8750 need_version=no 8751 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8752 soname_spec='${libname}${release}${major}$shared_ext' 8753 shlibpath_overrides_runpath=yes 8754 shlibpath_var=DYLD_LIBRARY_PATH 8755 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8756 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8757 if test "$GCC" = yes; then 8758 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"` 8759 else 8760 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8761 fi 8762 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8763 ;; 8764 8765dgux*) 8766 version_type=linux 8767 need_lib_prefix=no 8768 need_version=no 8769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8770 soname_spec='${libname}${release}${shared_ext}$major' 8771 shlibpath_var=LD_LIBRARY_PATH 8772 ;; 8773 8774freebsd1*) 8775 dynamic_linker=no 8776 ;; 8777 8778kfreebsd*-gnu) 8779 version_type=linux 8780 need_lib_prefix=no 8781 need_version=no 8782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8783 soname_spec='${libname}${release}${shared_ext}$major' 8784 shlibpath_var=LD_LIBRARY_PATH 8785 shlibpath_overrides_runpath=no 8786 hardcode_into_libs=yes 8787 dynamic_linker='GNU ld.so' 8788 ;; 8789 8790freebsd* | dragonfly*) 8791 # DragonFly does not have aout. When/if they implement a new 8792 # versioning mechanism, adjust this. 8793 if test -x /usr/bin/objformat; then 8794 objformat=`/usr/bin/objformat` 8795 else 8796 case $host_os in 8797 freebsd[123]*) objformat=aout ;; 8798 *) objformat=elf ;; 8799 esac 8800 fi 8801 version_type=freebsd-$objformat 8802 case $version_type in 8803 freebsd-elf*) 8804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8805 need_version=no 8806 need_lib_prefix=no 8807 ;; 8808 freebsd-*) 8809 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8810 need_version=yes 8811 ;; 8812 esac 8813 shlibpath_var=LD_LIBRARY_PATH 8814 case $host_os in 8815 freebsd2*) 8816 shlibpath_overrides_runpath=yes 8817 ;; 8818 freebsd3.[01]* | freebsdelf3.[01]*) 8819 shlibpath_overrides_runpath=yes 8820 hardcode_into_libs=yes 8821 ;; 8822 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8823 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8824 shlibpath_overrides_runpath=no 8825 hardcode_into_libs=yes 8826 ;; 8827 freebsd*) # from 4.6 on 8828 shlibpath_overrides_runpath=yes 8829 hardcode_into_libs=yes 8830 ;; 8831 esac 8832 ;; 8833 8834gnu*) 8835 version_type=linux 8836 need_lib_prefix=no 8837 need_version=no 8838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8839 soname_spec='${libname}${release}${shared_ext}$major' 8840 shlibpath_var=LD_LIBRARY_PATH 8841 hardcode_into_libs=yes 8842 ;; 8843 8844hpux9* | hpux10* | hpux11*) 8845 # Give a soname corresponding to the major version so that dld.sl refuses to 8846 # link against other versions. 8847 version_type=sunos 8848 need_lib_prefix=no 8849 need_version=no 8850 case $host_cpu in 8851 ia64*) 8852 shrext_cmds='.so' 8853 hardcode_into_libs=yes 8854 dynamic_linker="$host_os dld.so" 8855 shlibpath_var=LD_LIBRARY_PATH 8856 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8858 soname_spec='${libname}${release}${shared_ext}$major' 8859 if test "X$HPUX_IA64_MODE" = X32; then 8860 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8861 else 8862 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8863 fi 8864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8865 ;; 8866 hppa*64*) 8867 shrext_cmds='.sl' 8868 hardcode_into_libs=yes 8869 dynamic_linker="$host_os dld.sl" 8870 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8873 soname_spec='${libname}${release}${shared_ext}$major' 8874 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8876 ;; 8877 *) 8878 shrext_cmds='.sl' 8879 dynamic_linker="$host_os dld.sl" 8880 shlibpath_var=SHLIB_PATH 8881 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8883 soname_spec='${libname}${release}${shared_ext}$major' 8884 ;; 8885 esac 8886 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8887 postinstall_cmds='chmod 555 $lib' 8888 ;; 8889 8890interix3*) 8891 version_type=linux 8892 need_lib_prefix=no 8893 need_version=no 8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8895 soname_spec='${libname}${release}${shared_ext}$major' 8896 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8897 shlibpath_var=LD_LIBRARY_PATH 8898 shlibpath_overrides_runpath=no 8899 hardcode_into_libs=yes 8900 ;; 8901 8902irix5* | irix6* | nonstopux*) 8903 case $host_os in 8904 nonstopux*) version_type=nonstopux ;; 8905 *) 8906 if test "$lt_cv_prog_gnu_ld" = yes; then 8907 version_type=linux 8908 else 8909 version_type=irix 8910 fi ;; 8911 esac 8912 need_lib_prefix=no 8913 need_version=no 8914 soname_spec='${libname}${release}${shared_ext}$major' 8915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8916 case $host_os in 8917 irix5* | nonstopux*) 8918 libsuff= shlibsuff= 8919 ;; 8920 *) 8921 case $LD in # libtool.m4 will add one of these switches to LD 8922 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8923 libsuff= shlibsuff= libmagic=32-bit;; 8924 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8925 libsuff=32 shlibsuff=N32 libmagic=N32;; 8926 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8927 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8928 *) libsuff= shlibsuff= libmagic=never-match;; 8929 esac 8930 ;; 8931 esac 8932 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8933 shlibpath_overrides_runpath=no 8934 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8935 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8936 hardcode_into_libs=yes 8937 ;; 8938 8939# No shared lib support for Linux oldld, aout, or coff. 8940linux*oldld* | linux*aout* | linux*coff*) 8941 dynamic_linker=no 8942 ;; 8943 8944# This must be Linux ELF. 8945linux*) 8946 version_type=linux 8947 need_lib_prefix=no 8948 need_version=no 8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8950 soname_spec='${libname}${release}${shared_ext}$major' 8951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8952 shlibpath_var=LD_LIBRARY_PATH 8953 shlibpath_overrides_runpath=no 8954 # This implies no fast_install, which is unacceptable. 8955 # Some rework will be needed to allow for fast_install 8956 # before this can be enabled. 8957 hardcode_into_libs=yes 8958 8959 # Append ld.so.conf contents to the search path 8960 if test -f /etc/ld.so.conf; then 8961 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' ' '` 8962 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8963 fi 8964 8965 # We used to test for /lib/ld.so.1 and disable shared libraries on 8966 # powerpc, because MkLinux only supported shared libraries with the 8967 # GNU dynamic linker. Since this was broken with cross compilers, 8968 # most powerpc-linux boxes support dynamic linking these days and 8969 # people can always --disable-shared, the test was removed, and we 8970 # assume the GNU/Linux dynamic linker is in use. 8971 dynamic_linker='GNU/Linux ld.so' 8972 ;; 8973 8974knetbsd*-gnu) 8975 version_type=linux 8976 need_lib_prefix=no 8977 need_version=no 8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8979 soname_spec='${libname}${release}${shared_ext}$major' 8980 shlibpath_var=LD_LIBRARY_PATH 8981 shlibpath_overrides_runpath=no 8982 hardcode_into_libs=yes 8983 dynamic_linker='GNU ld.so' 8984 ;; 8985 8986netbsd*) 8987 version_type=sunos 8988 need_lib_prefix=no 8989 need_version=no 8990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8992 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8993 dynamic_linker='NetBSD (a.out) ld.so' 8994 else 8995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8996 soname_spec='${libname}${release}${shared_ext}$major' 8997 dynamic_linker='NetBSD ld.elf_so' 8998 fi 8999 shlibpath_var=LD_LIBRARY_PATH 9000 shlibpath_overrides_runpath=yes 9001 hardcode_into_libs=yes 9002 ;; 9003 9004newsos6) 9005 version_type=linux 9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9007 shlibpath_var=LD_LIBRARY_PATH 9008 shlibpath_overrides_runpath=yes 9009 ;; 9010 9011nto-qnx*) 9012 version_type=linux 9013 need_lib_prefix=no 9014 need_version=no 9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9016 soname_spec='${libname}${release}${shared_ext}$major' 9017 shlibpath_var=LD_LIBRARY_PATH 9018 shlibpath_overrides_runpath=yes 9019 ;; 9020 9021openbsd*) 9022 version_type=sunos 9023 sys_lib_dlsearch_path_spec="/usr/lib" 9024 need_lib_prefix=no 9025 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9026 case $host_os in 9027 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9028 *) need_version=no ;; 9029 esac 9030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9032 shlibpath_var=LD_LIBRARY_PATH 9033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9034 case $host_os in 9035 openbsd2.[89] | openbsd2.[89].*) 9036 shlibpath_overrides_runpath=no 9037 ;; 9038 *) 9039 shlibpath_overrides_runpath=yes 9040 ;; 9041 esac 9042 else 9043 shlibpath_overrides_runpath=yes 9044 fi 9045 ;; 9046 9047os2*) 9048 libname_spec='$name' 9049 shrext_cmds=".dll" 9050 need_lib_prefix=no 9051 library_names_spec='$libname${shared_ext} $libname.a' 9052 dynamic_linker='OS/2 ld.exe' 9053 shlibpath_var=LIBPATH 9054 ;; 9055 9056osf3* | osf4* | osf5*) 9057 version_type=osf 9058 need_lib_prefix=no 9059 need_version=no 9060 soname_spec='${libname}${release}${shared_ext}$major' 9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9062 shlibpath_var=LD_LIBRARY_PATH 9063 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9064 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9065 ;; 9066 9067solaris*) 9068 version_type=linux 9069 need_lib_prefix=no 9070 need_version=no 9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9072 soname_spec='${libname}${release}${shared_ext}$major' 9073 shlibpath_var=LD_LIBRARY_PATH 9074 shlibpath_overrides_runpath=yes 9075 hardcode_into_libs=yes 9076 # ldd complains unless libraries are executable 9077 postinstall_cmds='chmod +x $lib' 9078 ;; 9079 9080sunos4*) 9081 version_type=sunos 9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9083 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9084 shlibpath_var=LD_LIBRARY_PATH 9085 shlibpath_overrides_runpath=yes 9086 if test "$with_gnu_ld" = yes; then 9087 need_lib_prefix=no 9088 fi 9089 need_version=yes 9090 ;; 9091 9092sysv4 | sysv4.3*) 9093 version_type=linux 9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9095 soname_spec='${libname}${release}${shared_ext}$major' 9096 shlibpath_var=LD_LIBRARY_PATH 9097 case $host_vendor in 9098 sni) 9099 shlibpath_overrides_runpath=no 9100 need_lib_prefix=no 9101 export_dynamic_flag_spec='${wl}-Blargedynsym' 9102 runpath_var=LD_RUN_PATH 9103 ;; 9104 siemens) 9105 need_lib_prefix=no 9106 ;; 9107 motorola) 9108 need_lib_prefix=no 9109 need_version=no 9110 shlibpath_overrides_runpath=no 9111 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9112 ;; 9113 esac 9114 ;; 9115 9116sysv4*MP*) 9117 if test -d /usr/nec ;then 9118 version_type=linux 9119 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9120 soname_spec='$libname${shared_ext}.$major' 9121 shlibpath_var=LD_LIBRARY_PATH 9122 fi 9123 ;; 9124 9125sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9126 version_type=freebsd-elf 9127 need_lib_prefix=no 9128 need_version=no 9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9130 soname_spec='${libname}${release}${shared_ext}$major' 9131 shlibpath_var=LD_LIBRARY_PATH 9132 hardcode_into_libs=yes 9133 if test "$with_gnu_ld" = yes; then 9134 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9135 shlibpath_overrides_runpath=no 9136 else 9137 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9138 shlibpath_overrides_runpath=yes 9139 case $host_os in 9140 sco3.2v5*) 9141 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9142 ;; 9143 esac 9144 fi 9145 sys_lib_dlsearch_path_spec='/usr/lib' 9146 ;; 9147 9148uts4*) 9149 version_type=linux 9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9151 soname_spec='${libname}${release}${shared_ext}$major' 9152 shlibpath_var=LD_LIBRARY_PATH 9153 ;; 9154 9155*) 9156 dynamic_linker=no 9157 ;; 9158esac 9159{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9160echo "${ECHO_T}$dynamic_linker" >&6; } 9161test "$dynamic_linker" = no && can_build_shared=no 9162 9163variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9164if test "$GCC" = yes; then 9165 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9166fi 9167 9168{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9169echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9170hardcode_action= 9171if test -n "$hardcode_libdir_flag_spec" || \ 9172 test -n "$runpath_var" || \ 9173 test "X$hardcode_automatic" = "Xyes" ; then 9174 9175 # We can hardcode non-existant directories. 9176 if test "$hardcode_direct" != no && 9177 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9178 # have to relink, otherwise we might link with an installed library 9179 # when we should be linking with a yet-to-be-installed one 9180 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9181 test "$hardcode_minus_L" != no; then 9182 # Linking always hardcodes the temporary library directory. 9183 hardcode_action=relink 9184 else 9185 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9186 hardcode_action=immediate 9187 fi 9188else 9189 # We cannot hardcode anything, or else we can only hardcode existing 9190 # directories. 9191 hardcode_action=unsupported 9192fi 9193{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9194echo "${ECHO_T}$hardcode_action" >&6; } 9195 9196if test "$hardcode_action" = relink; then 9197 # Fast installation is not supported 9198 enable_fast_install=no 9199elif test "$shlibpath_overrides_runpath" = yes || 9200 test "$enable_shared" = no; then 9201 # Fast installation is not necessary 9202 enable_fast_install=needless 9203fi 9204 9205striplib= 9206old_striplib= 9207{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9208echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9209if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9210 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9211 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9212 { echo "$as_me:$LINENO: result: yes" >&5 9213echo "${ECHO_T}yes" >&6; } 9214else 9215# FIXME - insert some real tests, host_os isn't really good enough 9216 case $host_os in 9217 darwin*) 9218 if test -n "$STRIP" ; then 9219 striplib="$STRIP -x" 9220 { echo "$as_me:$LINENO: result: yes" >&5 9221echo "${ECHO_T}yes" >&6; } 9222 else 9223 { echo "$as_me:$LINENO: result: no" >&5 9224echo "${ECHO_T}no" >&6; } 9225fi 9226 ;; 9227 *) 9228 { echo "$as_me:$LINENO: result: no" >&5 9229echo "${ECHO_T}no" >&6; } 9230 ;; 9231 esac 9232fi 9233 9234if test "x$enable_dlopen" != xyes; then 9235 enable_dlopen=unknown 9236 enable_dlopen_self=unknown 9237 enable_dlopen_self_static=unknown 9238else 9239 lt_cv_dlopen=no 9240 lt_cv_dlopen_libs= 9241 9242 case $host_os in 9243 beos*) 9244 lt_cv_dlopen="load_add_on" 9245 lt_cv_dlopen_libs= 9246 lt_cv_dlopen_self=yes 9247 ;; 9248 9249 mingw* | pw32*) 9250 lt_cv_dlopen="LoadLibrary" 9251 lt_cv_dlopen_libs= 9252 ;; 9253 9254 cygwin*) 9255 lt_cv_dlopen="dlopen" 9256 lt_cv_dlopen_libs= 9257 ;; 9258 9259 darwin*) 9260 # if libdl is installed we need to link against it 9261 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9262echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9263if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9264 echo $ECHO_N "(cached) $ECHO_C" >&6 9265else 9266 ac_check_lib_save_LIBS=$LIBS 9267LIBS="-ldl $LIBS" 9268cat >conftest.$ac_ext <<_ACEOF 9269/* confdefs.h. */ 9270_ACEOF 9271cat confdefs.h >>conftest.$ac_ext 9272cat >>conftest.$ac_ext <<_ACEOF 9273/* end confdefs.h. */ 9274 9275/* Override any GCC internal prototype to avoid an error. 9276 Use char because int might match the return type of a GCC 9277 builtin and then its argument prototype would still apply. */ 9278#ifdef __cplusplus 9279extern "C" 9280#endif 9281char dlopen (); 9282int 9283main () 9284{ 9285return dlopen (); 9286 ; 9287 return 0; 9288} 9289_ACEOF 9290rm -f conftest.$ac_objext conftest$ac_exeext 9291if { (ac_try="$ac_link" 9292case "(($ac_try" in 9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9294 *) ac_try_echo=$ac_try;; 9295esac 9296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9297 (eval "$ac_link") 2>conftest.er1 9298 ac_status=$? 9299 grep -v '^ *+' conftest.er1 >conftest.err 9300 rm -f conftest.er1 9301 cat conftest.err >&5 9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9303 (exit $ac_status); } && { 9304 test -z "$ac_c_werror_flag" || 9305 test ! -s conftest.err 9306 } && test -s conftest$ac_exeext && 9307 $as_test_x conftest$ac_exeext; then 9308 ac_cv_lib_dl_dlopen=yes 9309else 9310 echo "$as_me: failed program was:" >&5 9311sed 's/^/| /' conftest.$ac_ext >&5 9312 9313 ac_cv_lib_dl_dlopen=no 9314fi 9315 9316rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9317 conftest$ac_exeext conftest.$ac_ext 9318LIBS=$ac_check_lib_save_LIBS 9319fi 9320{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9321echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9322if test $ac_cv_lib_dl_dlopen = yes; then 9323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9324else 9325 9326 lt_cv_dlopen="dyld" 9327 lt_cv_dlopen_libs= 9328 lt_cv_dlopen_self=yes 9329 9330fi 9331 9332 ;; 9333 9334 *) 9335 { echo "$as_me:$LINENO: checking for shl_load" >&5 9336echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9337if test "${ac_cv_func_shl_load+set}" = set; then 9338 echo $ECHO_N "(cached) $ECHO_C" >&6 9339else 9340 cat >conftest.$ac_ext <<_ACEOF 9341/* confdefs.h. */ 9342_ACEOF 9343cat confdefs.h >>conftest.$ac_ext 9344cat >>conftest.$ac_ext <<_ACEOF 9345/* end confdefs.h. */ 9346/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9347 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9348#define shl_load innocuous_shl_load 9349 9350/* System header to define __stub macros and hopefully few prototypes, 9351 which can conflict with char shl_load (); below. 9352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9353 <limits.h> exists even on freestanding compilers. */ 9354 9355#ifdef __STDC__ 9356# include <limits.h> 9357#else 9358# include <assert.h> 9359#endif 9360 9361#undef shl_load 9362 9363/* Override any GCC internal prototype to avoid an error. 9364 Use char because int might match the return type of a GCC 9365 builtin and then its argument prototype would still apply. */ 9366#ifdef __cplusplus 9367extern "C" 9368#endif 9369char shl_load (); 9370/* The GNU C library defines this for functions which it implements 9371 to always fail with ENOSYS. Some functions are actually named 9372 something starting with __ and the normal name is an alias. */ 9373#if defined __stub_shl_load || defined __stub___shl_load 9374choke me 9375#endif 9376 9377int 9378main () 9379{ 9380return shl_load (); 9381 ; 9382 return 0; 9383} 9384_ACEOF 9385rm -f conftest.$ac_objext conftest$ac_exeext 9386if { (ac_try="$ac_link" 9387case "(($ac_try" in 9388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9389 *) ac_try_echo=$ac_try;; 9390esac 9391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9392 (eval "$ac_link") 2>conftest.er1 9393 ac_status=$? 9394 grep -v '^ *+' conftest.er1 >conftest.err 9395 rm -f conftest.er1 9396 cat conftest.err >&5 9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9398 (exit $ac_status); } && { 9399 test -z "$ac_c_werror_flag" || 9400 test ! -s conftest.err 9401 } && test -s conftest$ac_exeext && 9402 $as_test_x conftest$ac_exeext; then 9403 ac_cv_func_shl_load=yes 9404else 9405 echo "$as_me: failed program was:" >&5 9406sed 's/^/| /' conftest.$ac_ext >&5 9407 9408 ac_cv_func_shl_load=no 9409fi 9410 9411rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9412 conftest$ac_exeext conftest.$ac_ext 9413fi 9414{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9415echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9416if test $ac_cv_func_shl_load = yes; then 9417 lt_cv_dlopen="shl_load" 9418else 9419 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9420echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9421if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9422 echo $ECHO_N "(cached) $ECHO_C" >&6 9423else 9424 ac_check_lib_save_LIBS=$LIBS 9425LIBS="-ldld $LIBS" 9426cat >conftest.$ac_ext <<_ACEOF 9427/* confdefs.h. */ 9428_ACEOF 9429cat confdefs.h >>conftest.$ac_ext 9430cat >>conftest.$ac_ext <<_ACEOF 9431/* end confdefs.h. */ 9432 9433/* Override any GCC internal prototype to avoid an error. 9434 Use char because int might match the return type of a GCC 9435 builtin and then its argument prototype would still apply. */ 9436#ifdef __cplusplus 9437extern "C" 9438#endif 9439char shl_load (); 9440int 9441main () 9442{ 9443return shl_load (); 9444 ; 9445 return 0; 9446} 9447_ACEOF 9448rm -f conftest.$ac_objext conftest$ac_exeext 9449if { (ac_try="$ac_link" 9450case "(($ac_try" in 9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9452 *) ac_try_echo=$ac_try;; 9453esac 9454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9455 (eval "$ac_link") 2>conftest.er1 9456 ac_status=$? 9457 grep -v '^ *+' conftest.er1 >conftest.err 9458 rm -f conftest.er1 9459 cat conftest.err >&5 9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9461 (exit $ac_status); } && { 9462 test -z "$ac_c_werror_flag" || 9463 test ! -s conftest.err 9464 } && test -s conftest$ac_exeext && 9465 $as_test_x conftest$ac_exeext; then 9466 ac_cv_lib_dld_shl_load=yes 9467else 9468 echo "$as_me: failed program was:" >&5 9469sed 's/^/| /' conftest.$ac_ext >&5 9470 9471 ac_cv_lib_dld_shl_load=no 9472fi 9473 9474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9475 conftest$ac_exeext conftest.$ac_ext 9476LIBS=$ac_check_lib_save_LIBS 9477fi 9478{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9479echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9480if test $ac_cv_lib_dld_shl_load = yes; then 9481 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9482else 9483 { echo "$as_me:$LINENO: checking for dlopen" >&5 9484echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9485if test "${ac_cv_func_dlopen+set}" = set; then 9486 echo $ECHO_N "(cached) $ECHO_C" >&6 9487else 9488 cat >conftest.$ac_ext <<_ACEOF 9489/* confdefs.h. */ 9490_ACEOF 9491cat confdefs.h >>conftest.$ac_ext 9492cat >>conftest.$ac_ext <<_ACEOF 9493/* end confdefs.h. */ 9494/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9495 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9496#define dlopen innocuous_dlopen 9497 9498/* System header to define __stub macros and hopefully few prototypes, 9499 which can conflict with char dlopen (); below. 9500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9501 <limits.h> exists even on freestanding compilers. */ 9502 9503#ifdef __STDC__ 9504# include <limits.h> 9505#else 9506# include <assert.h> 9507#endif 9508 9509#undef dlopen 9510 9511/* Override any GCC internal prototype to avoid an error. 9512 Use char because int might match the return type of a GCC 9513 builtin and then its argument prototype would still apply. */ 9514#ifdef __cplusplus 9515extern "C" 9516#endif 9517char dlopen (); 9518/* The GNU C library defines this for functions which it implements 9519 to always fail with ENOSYS. Some functions are actually named 9520 something starting with __ and the normal name is an alias. */ 9521#if defined __stub_dlopen || defined __stub___dlopen 9522choke me 9523#endif 9524 9525int 9526main () 9527{ 9528return dlopen (); 9529 ; 9530 return 0; 9531} 9532_ACEOF 9533rm -f conftest.$ac_objext conftest$ac_exeext 9534if { (ac_try="$ac_link" 9535case "(($ac_try" in 9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9537 *) ac_try_echo=$ac_try;; 9538esac 9539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9540 (eval "$ac_link") 2>conftest.er1 9541 ac_status=$? 9542 grep -v '^ *+' conftest.er1 >conftest.err 9543 rm -f conftest.er1 9544 cat conftest.err >&5 9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9546 (exit $ac_status); } && { 9547 test -z "$ac_c_werror_flag" || 9548 test ! -s conftest.err 9549 } && test -s conftest$ac_exeext && 9550 $as_test_x conftest$ac_exeext; then 9551 ac_cv_func_dlopen=yes 9552else 9553 echo "$as_me: failed program was:" >&5 9554sed 's/^/| /' conftest.$ac_ext >&5 9555 9556 ac_cv_func_dlopen=no 9557fi 9558 9559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9560 conftest$ac_exeext conftest.$ac_ext 9561fi 9562{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9563echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9564if test $ac_cv_func_dlopen = yes; then 9565 lt_cv_dlopen="dlopen" 9566else 9567 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9568echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9569if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9570 echo $ECHO_N "(cached) $ECHO_C" >&6 9571else 9572 ac_check_lib_save_LIBS=$LIBS 9573LIBS="-ldl $LIBS" 9574cat >conftest.$ac_ext <<_ACEOF 9575/* confdefs.h. */ 9576_ACEOF 9577cat confdefs.h >>conftest.$ac_ext 9578cat >>conftest.$ac_ext <<_ACEOF 9579/* end confdefs.h. */ 9580 9581/* Override any GCC internal prototype to avoid an error. 9582 Use char because int might match the return type of a GCC 9583 builtin and then its argument prototype would still apply. */ 9584#ifdef __cplusplus 9585extern "C" 9586#endif 9587char dlopen (); 9588int 9589main () 9590{ 9591return dlopen (); 9592 ; 9593 return 0; 9594} 9595_ACEOF 9596rm -f conftest.$ac_objext conftest$ac_exeext 9597if { (ac_try="$ac_link" 9598case "(($ac_try" in 9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9600 *) ac_try_echo=$ac_try;; 9601esac 9602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9603 (eval "$ac_link") 2>conftest.er1 9604 ac_status=$? 9605 grep -v '^ *+' conftest.er1 >conftest.err 9606 rm -f conftest.er1 9607 cat conftest.err >&5 9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9609 (exit $ac_status); } && { 9610 test -z "$ac_c_werror_flag" || 9611 test ! -s conftest.err 9612 } && test -s conftest$ac_exeext && 9613 $as_test_x conftest$ac_exeext; then 9614 ac_cv_lib_dl_dlopen=yes 9615else 9616 echo "$as_me: failed program was:" >&5 9617sed 's/^/| /' conftest.$ac_ext >&5 9618 9619 ac_cv_lib_dl_dlopen=no 9620fi 9621 9622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9623 conftest$ac_exeext conftest.$ac_ext 9624LIBS=$ac_check_lib_save_LIBS 9625fi 9626{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9627echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9628if test $ac_cv_lib_dl_dlopen = yes; then 9629 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9630else 9631 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9632echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9633if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9634 echo $ECHO_N "(cached) $ECHO_C" >&6 9635else 9636 ac_check_lib_save_LIBS=$LIBS 9637LIBS="-lsvld $LIBS" 9638cat >conftest.$ac_ext <<_ACEOF 9639/* confdefs.h. */ 9640_ACEOF 9641cat confdefs.h >>conftest.$ac_ext 9642cat >>conftest.$ac_ext <<_ACEOF 9643/* end confdefs.h. */ 9644 9645/* Override any GCC internal prototype to avoid an error. 9646 Use char because int might match the return type of a GCC 9647 builtin and then its argument prototype would still apply. */ 9648#ifdef __cplusplus 9649extern "C" 9650#endif 9651char dlopen (); 9652int 9653main () 9654{ 9655return dlopen (); 9656 ; 9657 return 0; 9658} 9659_ACEOF 9660rm -f conftest.$ac_objext conftest$ac_exeext 9661if { (ac_try="$ac_link" 9662case "(($ac_try" in 9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9664 *) ac_try_echo=$ac_try;; 9665esac 9666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9667 (eval "$ac_link") 2>conftest.er1 9668 ac_status=$? 9669 grep -v '^ *+' conftest.er1 >conftest.err 9670 rm -f conftest.er1 9671 cat conftest.err >&5 9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9673 (exit $ac_status); } && { 9674 test -z "$ac_c_werror_flag" || 9675 test ! -s conftest.err 9676 } && test -s conftest$ac_exeext && 9677 $as_test_x conftest$ac_exeext; then 9678 ac_cv_lib_svld_dlopen=yes 9679else 9680 echo "$as_me: failed program was:" >&5 9681sed 's/^/| /' conftest.$ac_ext >&5 9682 9683 ac_cv_lib_svld_dlopen=no 9684fi 9685 9686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9687 conftest$ac_exeext conftest.$ac_ext 9688LIBS=$ac_check_lib_save_LIBS 9689fi 9690{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9691echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9692if test $ac_cv_lib_svld_dlopen = yes; then 9693 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9694else 9695 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9696echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9697if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9698 echo $ECHO_N "(cached) $ECHO_C" >&6 9699else 9700 ac_check_lib_save_LIBS=$LIBS 9701LIBS="-ldld $LIBS" 9702cat >conftest.$ac_ext <<_ACEOF 9703/* confdefs.h. */ 9704_ACEOF 9705cat confdefs.h >>conftest.$ac_ext 9706cat >>conftest.$ac_ext <<_ACEOF 9707/* end confdefs.h. */ 9708 9709/* Override any GCC internal prototype to avoid an error. 9710 Use char because int might match the return type of a GCC 9711 builtin and then its argument prototype would still apply. */ 9712#ifdef __cplusplus 9713extern "C" 9714#endif 9715char dld_link (); 9716int 9717main () 9718{ 9719return dld_link (); 9720 ; 9721 return 0; 9722} 9723_ACEOF 9724rm -f conftest.$ac_objext conftest$ac_exeext 9725if { (ac_try="$ac_link" 9726case "(($ac_try" in 9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9728 *) ac_try_echo=$ac_try;; 9729esac 9730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9731 (eval "$ac_link") 2>conftest.er1 9732 ac_status=$? 9733 grep -v '^ *+' conftest.er1 >conftest.err 9734 rm -f conftest.er1 9735 cat conftest.err >&5 9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9737 (exit $ac_status); } && { 9738 test -z "$ac_c_werror_flag" || 9739 test ! -s conftest.err 9740 } && test -s conftest$ac_exeext && 9741 $as_test_x conftest$ac_exeext; then 9742 ac_cv_lib_dld_dld_link=yes 9743else 9744 echo "$as_me: failed program was:" >&5 9745sed 's/^/| /' conftest.$ac_ext >&5 9746 9747 ac_cv_lib_dld_dld_link=no 9748fi 9749 9750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9751 conftest$ac_exeext conftest.$ac_ext 9752LIBS=$ac_check_lib_save_LIBS 9753fi 9754{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9755echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9756if test $ac_cv_lib_dld_dld_link = yes; then 9757 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9758fi 9759 9760 9761fi 9762 9763 9764fi 9765 9766 9767fi 9768 9769 9770fi 9771 9772 9773fi 9774 9775 ;; 9776 esac 9777 9778 if test "x$lt_cv_dlopen" != xno; then 9779 enable_dlopen=yes 9780 else 9781 enable_dlopen=no 9782 fi 9783 9784 case $lt_cv_dlopen in 9785 dlopen) 9786 save_CPPFLAGS="$CPPFLAGS" 9787 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9788 9789 save_LDFLAGS="$LDFLAGS" 9790 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9791 9792 save_LIBS="$LIBS" 9793 LIBS="$lt_cv_dlopen_libs $LIBS" 9794 9795 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9796echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9797if test "${lt_cv_dlopen_self+set}" = set; then 9798 echo $ECHO_N "(cached) $ECHO_C" >&6 9799else 9800 if test "$cross_compiling" = yes; then : 9801 lt_cv_dlopen_self=cross 9802else 9803 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9804 lt_status=$lt_dlunknown 9805 cat > conftest.$ac_ext <<EOF 9806#line 9806 "configure" 9807#include "confdefs.h" 9808 9809#if HAVE_DLFCN_H 9810#include <dlfcn.h> 9811#endif 9812 9813#include <stdio.h> 9814 9815#ifdef RTLD_GLOBAL 9816# define LT_DLGLOBAL RTLD_GLOBAL 9817#else 9818# ifdef DL_GLOBAL 9819# define LT_DLGLOBAL DL_GLOBAL 9820# else 9821# define LT_DLGLOBAL 0 9822# endif 9823#endif 9824 9825/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9826 find out it does not work in some platform. */ 9827#ifndef LT_DLLAZY_OR_NOW 9828# ifdef RTLD_LAZY 9829# define LT_DLLAZY_OR_NOW RTLD_LAZY 9830# else 9831# ifdef DL_LAZY 9832# define LT_DLLAZY_OR_NOW DL_LAZY 9833# else 9834# ifdef RTLD_NOW 9835# define LT_DLLAZY_OR_NOW RTLD_NOW 9836# else 9837# ifdef DL_NOW 9838# define LT_DLLAZY_OR_NOW DL_NOW 9839# else 9840# define LT_DLLAZY_OR_NOW 0 9841# endif 9842# endif 9843# endif 9844# endif 9845#endif 9846 9847#ifdef __cplusplus 9848extern "C" void exit (int); 9849#endif 9850 9851void fnord() { int i=42;} 9852int main () 9853{ 9854 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9855 int status = $lt_dlunknown; 9856 9857 if (self) 9858 { 9859 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9860 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9861 /* dlclose (self); */ 9862 } 9863 else 9864 puts (dlerror ()); 9865 9866 exit (status); 9867} 9868EOF 9869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9870 (eval $ac_link) 2>&5 9871 ac_status=$? 9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9873 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9874 (./conftest; exit; ) >&5 2>/dev/null 9875 lt_status=$? 9876 case x$lt_status in 9877 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9878 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9879 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9880 esac 9881 else : 9882 # compilation failed 9883 lt_cv_dlopen_self=no 9884 fi 9885fi 9886rm -fr conftest* 9887 9888 9889fi 9890{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9891echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9892 9893 if test "x$lt_cv_dlopen_self" = xyes; then 9894 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9895 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9896echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9897if test "${lt_cv_dlopen_self_static+set}" = set; then 9898 echo $ECHO_N "(cached) $ECHO_C" >&6 9899else 9900 if test "$cross_compiling" = yes; then : 9901 lt_cv_dlopen_self_static=cross 9902else 9903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9904 lt_status=$lt_dlunknown 9905 cat > conftest.$ac_ext <<EOF 9906#line 9906 "configure" 9907#include "confdefs.h" 9908 9909#if HAVE_DLFCN_H 9910#include <dlfcn.h> 9911#endif 9912 9913#include <stdio.h> 9914 9915#ifdef RTLD_GLOBAL 9916# define LT_DLGLOBAL RTLD_GLOBAL 9917#else 9918# ifdef DL_GLOBAL 9919# define LT_DLGLOBAL DL_GLOBAL 9920# else 9921# define LT_DLGLOBAL 0 9922# endif 9923#endif 9924 9925/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9926 find out it does not work in some platform. */ 9927#ifndef LT_DLLAZY_OR_NOW 9928# ifdef RTLD_LAZY 9929# define LT_DLLAZY_OR_NOW RTLD_LAZY 9930# else 9931# ifdef DL_LAZY 9932# define LT_DLLAZY_OR_NOW DL_LAZY 9933# else 9934# ifdef RTLD_NOW 9935# define LT_DLLAZY_OR_NOW RTLD_NOW 9936# else 9937# ifdef DL_NOW 9938# define LT_DLLAZY_OR_NOW DL_NOW 9939# else 9940# define LT_DLLAZY_OR_NOW 0 9941# endif 9942# endif 9943# endif 9944# endif 9945#endif 9946 9947#ifdef __cplusplus 9948extern "C" void exit (int); 9949#endif 9950 9951void fnord() { int i=42;} 9952int main () 9953{ 9954 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9955 int status = $lt_dlunknown; 9956 9957 if (self) 9958 { 9959 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9960 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9961 /* dlclose (self); */ 9962 } 9963 else 9964 puts (dlerror ()); 9965 9966 exit (status); 9967} 9968EOF 9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9970 (eval $ac_link) 2>&5 9971 ac_status=$? 9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9973 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9974 (./conftest; exit; ) >&5 2>/dev/null 9975 lt_status=$? 9976 case x$lt_status in 9977 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9978 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9979 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9980 esac 9981 else : 9982 # compilation failed 9983 lt_cv_dlopen_self_static=no 9984 fi 9985fi 9986rm -fr conftest* 9987 9988 9989fi 9990{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9991echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9992 fi 9993 9994 CPPFLAGS="$save_CPPFLAGS" 9995 LDFLAGS="$save_LDFLAGS" 9996 LIBS="$save_LIBS" 9997 ;; 9998 esac 9999 10000 case $lt_cv_dlopen_self in 10001 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10002 *) enable_dlopen_self=unknown ;; 10003 esac 10004 10005 case $lt_cv_dlopen_self_static in 10006 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10007 *) enable_dlopen_self_static=unknown ;; 10008 esac 10009fi 10010 10011 10012# Report which library types will actually be built 10013{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10014echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10015{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10016echo "${ECHO_T}$can_build_shared" >&6; } 10017 10018{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10019echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10020test "$can_build_shared" = "no" && enable_shared=no 10021 10022# On AIX, shared libraries and static libraries use the same namespace, and 10023# are all built from PIC. 10024case $host_os in 10025aix3*) 10026 test "$enable_shared" = yes && enable_static=no 10027 if test -n "$RANLIB"; then 10028 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10029 postinstall_cmds='$RANLIB $lib' 10030 fi 10031 ;; 10032 10033aix4* | aix5*) 10034 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10035 test "$enable_shared" = yes && enable_static=no 10036 fi 10037 ;; 10038esac 10039{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10040echo "${ECHO_T}$enable_shared" >&6; } 10041 10042{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10043echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10044# Make sure either enable_shared or enable_static is yes. 10045test "$enable_shared" = yes || enable_static=yes 10046{ echo "$as_me:$LINENO: result: $enable_static" >&5 10047echo "${ECHO_T}$enable_static" >&6; } 10048 10049# The else clause should only fire when bootstrapping the 10050# libtool distribution, otherwise you forgot to ship ltmain.sh 10051# with your package, and you will get complaints that there are 10052# no rules to generate ltmain.sh. 10053if test -f "$ltmain"; then 10054 # See if we are running on zsh, and set the options which allow our commands through 10055 # without removal of \ escapes. 10056 if test -n "${ZSH_VERSION+set}" ; then 10057 setopt NO_GLOB_SUBST 10058 fi 10059 # Now quote all the things that may contain metacharacters while being 10060 # careful not to overquote the AC_SUBSTed values. We take copies of the 10061 # variables and quote the copies for generation of the libtool script. 10062 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10063 SED SHELL STRIP \ 10064 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10065 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10066 deplibs_check_method reload_flag reload_cmds need_locks \ 10067 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10068 lt_cv_sys_global_symbol_to_c_name_address \ 10069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10070 old_postinstall_cmds old_postuninstall_cmds \ 10071 compiler \ 10072 CC \ 10073 LD \ 10074 lt_prog_compiler_wl \ 10075 lt_prog_compiler_pic \ 10076 lt_prog_compiler_static \ 10077 lt_prog_compiler_no_builtin_flag \ 10078 export_dynamic_flag_spec \ 10079 thread_safe_flag_spec \ 10080 whole_archive_flag_spec \ 10081 enable_shared_with_static_runtimes \ 10082 old_archive_cmds \ 10083 old_archive_from_new_cmds \ 10084 predep_objects \ 10085 postdep_objects \ 10086 predeps \ 10087 postdeps \ 10088 compiler_lib_search_path \ 10089 archive_cmds \ 10090 archive_expsym_cmds \ 10091 postinstall_cmds \ 10092 postuninstall_cmds \ 10093 old_archive_from_expsyms_cmds \ 10094 allow_undefined_flag \ 10095 no_undefined_flag \ 10096 export_symbols_cmds \ 10097 hardcode_libdir_flag_spec \ 10098 hardcode_libdir_flag_spec_ld \ 10099 hardcode_libdir_separator \ 10100 hardcode_automatic \ 10101 module_cmds \ 10102 module_expsym_cmds \ 10103 lt_cv_prog_compiler_c_o \ 10104 exclude_expsyms \ 10105 include_expsyms; do 10106 10107 case $var in 10108 old_archive_cmds | \ 10109 old_archive_from_new_cmds | \ 10110 archive_cmds | \ 10111 archive_expsym_cmds | \ 10112 module_cmds | \ 10113 module_expsym_cmds | \ 10114 old_archive_from_expsyms_cmds | \ 10115 export_symbols_cmds | \ 10116 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10117 postinstall_cmds | postuninstall_cmds | \ 10118 old_postinstall_cmds | old_postuninstall_cmds | \ 10119 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10120 # Double-quote double-evaled strings. 10121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10122 ;; 10123 *) 10124 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10125 ;; 10126 esac 10127 done 10128 10129 case $lt_echo in 10130 *'\$0 --fallback-echo"') 10131 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10132 ;; 10133 esac 10134 10135cfgfile="${ofile}T" 10136 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10137 $rm -f "$cfgfile" 10138 { echo "$as_me:$LINENO: creating $ofile" >&5 10139echo "$as_me: creating $ofile" >&6;} 10140 10141 cat <<__EOF__ >> "$cfgfile" 10142#! $SHELL 10143 10144# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10145# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10146# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10147# 10148# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10149# Free Software Foundation, Inc. 10150# 10151# This file is part of GNU Libtool: 10152# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10153# 10154# This program is free software; you can redistribute it and/or modify 10155# it under the terms of the GNU General Public License as published by 10156# the Free Software Foundation; either version 2 of the License, or 10157# (at your option) any later version. 10158# 10159# This program is distributed in the hope that it will be useful, but 10160# WITHOUT ANY WARRANTY; without even the implied warranty of 10161# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10162# General Public License for more details. 10163# 10164# You should have received a copy of the GNU General Public License 10165# along with this program; if not, write to the Free Software 10166# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10167# 10168# As a special exception to the GNU General Public License, if you 10169# distribute this file as part of a program that contains a 10170# configuration script generated by Autoconf, you may include it under 10171# the same distribution terms that you use for the rest of that program. 10172 10173# A sed program that does not truncate output. 10174SED=$lt_SED 10175 10176# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10177Xsed="$SED -e 1s/^X//" 10178 10179# The HP-UX ksh and POSIX shell print the target directory to stdout 10180# if CDPATH is set. 10181(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10182 10183# The names of the tagged configurations supported by this script. 10184available_tags= 10185 10186# ### BEGIN LIBTOOL CONFIG 10187 10188# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10189 10190# Shell to use when invoking shell scripts. 10191SHELL=$lt_SHELL 10192 10193# Whether or not to build shared libraries. 10194build_libtool_libs=$enable_shared 10195 10196# Whether or not to build static libraries. 10197build_old_libs=$enable_static 10198 10199# Whether or not to add -lc for building shared libraries. 10200build_libtool_need_lc=$archive_cmds_need_lc 10201 10202# Whether or not to disallow shared libs when runtime libs are static 10203allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10204 10205# Whether or not to optimize for fast installation. 10206fast_install=$enable_fast_install 10207 10208# The host system. 10209host_alias=$host_alias 10210host=$host 10211host_os=$host_os 10212 10213# The build system. 10214build_alias=$build_alias 10215build=$build 10216build_os=$build_os 10217 10218# An echo program that does not interpret backslashes. 10219echo=$lt_echo 10220 10221# The archiver. 10222AR=$lt_AR 10223AR_FLAGS=$lt_AR_FLAGS 10224 10225# A C compiler. 10226LTCC=$lt_LTCC 10227 10228# LTCC compiler flags. 10229LTCFLAGS=$lt_LTCFLAGS 10230 10231# A language-specific compiler. 10232CC=$lt_compiler 10233 10234# Is the compiler the GNU C compiler? 10235with_gcc=$GCC 10236 10237# An ERE matcher. 10238EGREP=$lt_EGREP 10239 10240# The linker used to build libraries. 10241LD=$lt_LD 10242 10243# Whether we need hard or soft links. 10244LN_S=$lt_LN_S 10245 10246# A BSD-compatible nm program. 10247NM=$lt_NM 10248 10249# A symbol stripping program 10250STRIP=$lt_STRIP 10251 10252# Used to examine libraries when file_magic_cmd begins "file" 10253MAGIC_CMD=$MAGIC_CMD 10254 10255# Used on cygwin: DLL creation program. 10256DLLTOOL="$DLLTOOL" 10257 10258# Used on cygwin: object dumper. 10259OBJDUMP="$OBJDUMP" 10260 10261# Used on cygwin: assembler. 10262AS="$AS" 10263 10264# The name of the directory that contains temporary libtool files. 10265objdir=$objdir 10266 10267# How to create reloadable object files. 10268reload_flag=$lt_reload_flag 10269reload_cmds=$lt_reload_cmds 10270 10271# How to pass a linker flag through the compiler. 10272wl=$lt_lt_prog_compiler_wl 10273 10274# Object file suffix (normally "o"). 10275objext="$ac_objext" 10276 10277# Old archive suffix (normally "a"). 10278libext="$libext" 10279 10280# Shared library suffix (normally ".so"). 10281shrext_cmds='$shrext_cmds' 10282 10283# Executable file suffix (normally ""). 10284exeext="$exeext" 10285 10286# Additional compiler flags for building library objects. 10287pic_flag=$lt_lt_prog_compiler_pic 10288pic_mode=$pic_mode 10289 10290# What is the maximum length of a command? 10291max_cmd_len=$lt_cv_sys_max_cmd_len 10292 10293# Does compiler simultaneously support -c and -o options? 10294compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10295 10296# Must we lock files when doing compilation? 10297need_locks=$lt_need_locks 10298 10299# Do we need the lib prefix for modules? 10300need_lib_prefix=$need_lib_prefix 10301 10302# Do we need a version for libraries? 10303need_version=$need_version 10304 10305# Whether dlopen is supported. 10306dlopen_support=$enable_dlopen 10307 10308# Whether dlopen of programs is supported. 10309dlopen_self=$enable_dlopen_self 10310 10311# Whether dlopen of statically linked programs is supported. 10312dlopen_self_static=$enable_dlopen_self_static 10313 10314# Compiler flag to prevent dynamic linking. 10315link_static_flag=$lt_lt_prog_compiler_static 10316 10317# Compiler flag to turn off builtin functions. 10318no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10319 10320# Compiler flag to allow reflexive dlopens. 10321export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10322 10323# Compiler flag to generate shared objects directly from archives. 10324whole_archive_flag_spec=$lt_whole_archive_flag_spec 10325 10326# Compiler flag to generate thread-safe objects. 10327thread_safe_flag_spec=$lt_thread_safe_flag_spec 10328 10329# Library versioning type. 10330version_type=$version_type 10331 10332# Format of library name prefix. 10333libname_spec=$lt_libname_spec 10334 10335# List of archive names. First name is the real one, the rest are links. 10336# The last name is the one that the linker finds with -lNAME. 10337library_names_spec=$lt_library_names_spec 10338 10339# The coded name of the library, if different from the real name. 10340soname_spec=$lt_soname_spec 10341 10342# Commands used to build and install an old-style archive. 10343RANLIB=$lt_RANLIB 10344old_archive_cmds=$lt_old_archive_cmds 10345old_postinstall_cmds=$lt_old_postinstall_cmds 10346old_postuninstall_cmds=$lt_old_postuninstall_cmds 10347 10348# Create an old-style archive from a shared archive. 10349old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10350 10351# Create a temporary old-style archive to link instead of a shared archive. 10352old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10353 10354# Commands used to build and install a shared archive. 10355archive_cmds=$lt_archive_cmds 10356archive_expsym_cmds=$lt_archive_expsym_cmds 10357postinstall_cmds=$lt_postinstall_cmds 10358postuninstall_cmds=$lt_postuninstall_cmds 10359 10360# Commands used to build a loadable module (assumed same as above if empty) 10361module_cmds=$lt_module_cmds 10362module_expsym_cmds=$lt_module_expsym_cmds 10363 10364# Commands to strip libraries. 10365old_striplib=$lt_old_striplib 10366striplib=$lt_striplib 10367 10368# Dependencies to place before the objects being linked to create a 10369# shared library. 10370predep_objects=$lt_predep_objects 10371 10372# Dependencies to place after the objects being linked to create a 10373# shared library. 10374postdep_objects=$lt_postdep_objects 10375 10376# Dependencies to place before the objects being linked to create a 10377# shared library. 10378predeps=$lt_predeps 10379 10380# Dependencies to place after the objects being linked to create a 10381# shared library. 10382postdeps=$lt_postdeps 10383 10384# The library search path used internally by the compiler when linking 10385# a shared library. 10386compiler_lib_search_path=$lt_compiler_lib_search_path 10387 10388# Method to check whether dependent libraries are shared objects. 10389deplibs_check_method=$lt_deplibs_check_method 10390 10391# Command to use when deplibs_check_method == file_magic. 10392file_magic_cmd=$lt_file_magic_cmd 10393 10394# Flag that allows shared libraries with undefined symbols to be built. 10395allow_undefined_flag=$lt_allow_undefined_flag 10396 10397# Flag that forces no undefined symbols. 10398no_undefined_flag=$lt_no_undefined_flag 10399 10400# Commands used to finish a libtool library installation in a directory. 10401finish_cmds=$lt_finish_cmds 10402 10403# Same as above, but a single script fragment to be evaled but not shown. 10404finish_eval=$lt_finish_eval 10405 10406# Take the output of nm and produce a listing of raw symbols and C names. 10407global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10408 10409# Transform the output of nm in a proper C declaration 10410global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10411 10412# Transform the output of nm in a C name address pair 10413global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10414 10415# This is the shared library runtime path variable. 10416runpath_var=$runpath_var 10417 10418# This is the shared library path variable. 10419shlibpath_var=$shlibpath_var 10420 10421# Is shlibpath searched before the hard-coded library search path? 10422shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10423 10424# How to hardcode a shared library path into an executable. 10425hardcode_action=$hardcode_action 10426 10427# Whether we should hardcode library paths into libraries. 10428hardcode_into_libs=$hardcode_into_libs 10429 10430# Flag to hardcode \$libdir into a binary during linking. 10431# This must work even if \$libdir does not exist. 10432hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10433 10434# If ld is used when linking, flag to hardcode \$libdir into 10435# a binary during linking. This must work even if \$libdir does 10436# not exist. 10437hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10438 10439# Whether we need a single -rpath flag with a separated argument. 10440hardcode_libdir_separator=$lt_hardcode_libdir_separator 10441 10442# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10443# resulting binary. 10444hardcode_direct=$hardcode_direct 10445 10446# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10447# resulting binary. 10448hardcode_minus_L=$hardcode_minus_L 10449 10450# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10451# the resulting binary. 10452hardcode_shlibpath_var=$hardcode_shlibpath_var 10453 10454# Set to yes if building a shared library automatically hardcodes DIR into the library 10455# and all subsequent libraries and executables linked against it. 10456hardcode_automatic=$hardcode_automatic 10457 10458# Variables whose values should be saved in libtool wrapper scripts and 10459# restored at relink time. 10460variables_saved_for_relink="$variables_saved_for_relink" 10461 10462# Whether libtool must link a program against all its dependency libraries. 10463link_all_deplibs=$link_all_deplibs 10464 10465# Compile-time system search path for libraries 10466sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10467 10468# Run-time system search path for libraries 10469sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10470 10471# Fix the shell variable \$srcfile for the compiler. 10472fix_srcfile_path="$fix_srcfile_path" 10473 10474# Set to yes if exported symbols are required. 10475always_export_symbols=$always_export_symbols 10476 10477# The commands to list exported symbols. 10478export_symbols_cmds=$lt_export_symbols_cmds 10479 10480# The commands to extract the exported symbol list from a shared archive. 10481extract_expsyms_cmds=$lt_extract_expsyms_cmds 10482 10483# Symbols that should not be listed in the preloaded symbols. 10484exclude_expsyms=$lt_exclude_expsyms 10485 10486# Symbols that must always be exported. 10487include_expsyms=$lt_include_expsyms 10488 10489# ### END LIBTOOL CONFIG 10490 10491__EOF__ 10492 10493 10494 case $host_os in 10495 aix3*) 10496 cat <<\EOF >> "$cfgfile" 10497 10498# AIX sometimes has problems with the GCC collect2 program. For some 10499# reason, if we set the COLLECT_NAMES environment variable, the problems 10500# vanish in a puff of smoke. 10501if test "X${COLLECT_NAMES+set}" != Xset; then 10502 COLLECT_NAMES= 10503 export COLLECT_NAMES 10504fi 10505EOF 10506 ;; 10507 esac 10508 10509 # We use sed instead of cat because bash on DJGPP gets confused if 10510 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10511 # text mode, it properly converts lines to CR/LF. This bash problem 10512 # is reportedly fixed, but why not run on old versions too? 10513 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10514 10515 mv -f "$cfgfile" "$ofile" || \ 10516 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10517 chmod +x "$ofile" 10518 10519else 10520 # If there is no Makefile yet, we rely on a make rule to execute 10521 # `config.status --recheck' to rerun these tests and create the 10522 # libtool script then. 10523 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10524 if test -f "$ltmain_in"; then 10525 test -f Makefile && make "$ltmain" 10526 fi 10527fi 10528 10529 10530ac_ext=c 10531ac_cpp='$CPP $CPPFLAGS' 10532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10534ac_compiler_gnu=$ac_cv_c_compiler_gnu 10535 10536CC="$lt_save_CC" 10537 10538 10539# Check whether --with-tags was given. 10540if test "${with_tags+set}" = set; then 10541 withval=$with_tags; tagnames="$withval" 10542fi 10543 10544 10545if test -f "$ltmain" && test -n "$tagnames"; then 10546 if test ! -f "${ofile}"; then 10547 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10548echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10549 fi 10550 10551 if test -z "$LTCC"; then 10552 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10553 if test -z "$LTCC"; then 10554 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10555echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10556 else 10557 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10558echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10559 fi 10560 fi 10561 if test -z "$LTCFLAGS"; then 10562 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10563 fi 10564 10565 # Extract list of available tagged configurations in $ofile. 10566 # Note that this assumes the entire list is on one line. 10567 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10568 10569 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10570 for tagname in $tagnames; do 10571 IFS="$lt_save_ifs" 10572 # Check whether tagname contains only valid characters 10573 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10574 "") ;; 10575 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10576echo "$as_me: error: invalid tag name: $tagname" >&2;} 10577 { (exit 1); exit 1; }; } 10578 ;; 10579 esac 10580 10581 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10582 then 10583 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10584echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10585 { (exit 1); exit 1; }; } 10586 fi 10587 10588 # Update the list of available tags. 10589 if test -n "$tagname"; then 10590 echo appending configuration tag \"$tagname\" to $ofile 10591 10592 case $tagname in 10593 CXX) 10594 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10595 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10596 (test "X$CXX" != "Xg++"))) ; then 10597 ac_ext=cpp 10598ac_cpp='$CXXCPP $CPPFLAGS' 10599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10602 10603 10604 10605 10606archive_cmds_need_lc_CXX=no 10607allow_undefined_flag_CXX= 10608always_export_symbols_CXX=no 10609archive_expsym_cmds_CXX= 10610export_dynamic_flag_spec_CXX= 10611hardcode_direct_CXX=no 10612hardcode_libdir_flag_spec_CXX= 10613hardcode_libdir_flag_spec_ld_CXX= 10614hardcode_libdir_separator_CXX= 10615hardcode_minus_L_CXX=no 10616hardcode_shlibpath_var_CXX=unsupported 10617hardcode_automatic_CXX=no 10618module_cmds_CXX= 10619module_expsym_cmds_CXX= 10620link_all_deplibs_CXX=unknown 10621old_archive_cmds_CXX=$old_archive_cmds 10622no_undefined_flag_CXX= 10623whole_archive_flag_spec_CXX= 10624enable_shared_with_static_runtimes_CXX=no 10625 10626# Dependencies to place before and after the object being linked: 10627predep_objects_CXX= 10628postdep_objects_CXX= 10629predeps_CXX= 10630postdeps_CXX= 10631compiler_lib_search_path_CXX= 10632 10633# Source file extension for C++ test sources. 10634ac_ext=cpp 10635 10636# Object file extension for compiled C++ test sources. 10637objext=o 10638objext_CXX=$objext 10639 10640# Code to be used in simple compile tests 10641lt_simple_compile_test_code="int some_variable = 0;\n" 10642 10643# Code to be used in simple link tests 10644lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10645 10646# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10647 10648# If no C compiler was specified, use CC. 10649LTCC=${LTCC-"$CC"} 10650 10651# If no C compiler flags were specified, use CFLAGS. 10652LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10653 10654# Allow CC to be a program name with arguments. 10655compiler=$CC 10656 10657 10658# save warnings/boilerplate of simple test code 10659ac_outfile=conftest.$ac_objext 10660printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10661eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10662_lt_compiler_boilerplate=`cat conftest.err` 10663$rm conftest* 10664 10665ac_outfile=conftest.$ac_objext 10666printf "$lt_simple_link_test_code" >conftest.$ac_ext 10667eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10668_lt_linker_boilerplate=`cat conftest.err` 10669$rm conftest* 10670 10671 10672# Allow CC to be a program name with arguments. 10673lt_save_CC=$CC 10674lt_save_LD=$LD 10675lt_save_GCC=$GCC 10676GCC=$GXX 10677lt_save_with_gnu_ld=$with_gnu_ld 10678lt_save_path_LD=$lt_cv_path_LD 10679if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10680 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10681else 10682 $as_unset lt_cv_prog_gnu_ld 10683fi 10684if test -n "${lt_cv_path_LDCXX+set}"; then 10685 lt_cv_path_LD=$lt_cv_path_LDCXX 10686else 10687 $as_unset lt_cv_path_LD 10688fi 10689test -z "${LDCXX+set}" || LD=$LDCXX 10690CC=${CXX-"c++"} 10691compiler=$CC 10692compiler_CXX=$CC 10693for cc_temp in $compiler""; do 10694 case $cc_temp in 10695 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10696 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10697 \-*) ;; 10698 *) break;; 10699 esac 10700done 10701cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10702 10703 10704# We don't want -fno-exception wen compiling C++ code, so set the 10705# no_builtin_flag separately 10706if test "$GXX" = yes; then 10707 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10708else 10709 lt_prog_compiler_no_builtin_flag_CXX= 10710fi 10711 10712if test "$GXX" = yes; then 10713 # Set up default GNU C++ configuration 10714 10715 10716# Check whether --with-gnu-ld was given. 10717if test "${with_gnu_ld+set}" = set; then 10718 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10719else 10720 with_gnu_ld=no 10721fi 10722 10723ac_prog=ld 10724if test "$GCC" = yes; then 10725 # Check if gcc -print-prog-name=ld gives a path. 10726 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10727echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10728 case $host in 10729 *-*-mingw*) 10730 # gcc leaves a trailing carriage return which upsets mingw 10731 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10732 *) 10733 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10734 esac 10735 case $ac_prog in 10736 # Accept absolute paths. 10737 [\\/]* | ?:[\\/]*) 10738 re_direlt='/[^/][^/]*/\.\./' 10739 # Canonicalize the pathname of ld 10740 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10741 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10742 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10743 done 10744 test -z "$LD" && LD="$ac_prog" 10745 ;; 10746 "") 10747 # If it fails, then pretend we aren't using GCC. 10748 ac_prog=ld 10749 ;; 10750 *) 10751 # If it is relative, then search for the first ld in PATH. 10752 with_gnu_ld=unknown 10753 ;; 10754 esac 10755elif test "$with_gnu_ld" = yes; then 10756 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10757echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10758else 10759 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10760echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10761fi 10762if test "${lt_cv_path_LD+set}" = set; then 10763 echo $ECHO_N "(cached) $ECHO_C" >&6 10764else 10765 if test -z "$LD"; then 10766 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10767 for ac_dir in $PATH; do 10768 IFS="$lt_save_ifs" 10769 test -z "$ac_dir" && ac_dir=. 10770 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10771 lt_cv_path_LD="$ac_dir/$ac_prog" 10772 # Check to see if the program is GNU ld. I'd rather use --version, 10773 # but apparently some variants of GNU ld only accept -v. 10774 # Break only if it was the GNU/non-GNU ld that we prefer. 10775 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10776 *GNU* | *'with BFD'*) 10777 test "$with_gnu_ld" != no && break 10778 ;; 10779 *) 10780 test "$with_gnu_ld" != yes && break 10781 ;; 10782 esac 10783 fi 10784 done 10785 IFS="$lt_save_ifs" 10786else 10787 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10788fi 10789fi 10790 10791LD="$lt_cv_path_LD" 10792if test -n "$LD"; then 10793 { echo "$as_me:$LINENO: result: $LD" >&5 10794echo "${ECHO_T}$LD" >&6; } 10795else 10796 { echo "$as_me:$LINENO: result: no" >&5 10797echo "${ECHO_T}no" >&6; } 10798fi 10799test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10800echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10801 { (exit 1); exit 1; }; } 10802{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10803echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10804if test "${lt_cv_prog_gnu_ld+set}" = set; then 10805 echo $ECHO_N "(cached) $ECHO_C" >&6 10806else 10807 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10808case `$LD -v 2>&1 </dev/null` in 10809*GNU* | *'with BFD'*) 10810 lt_cv_prog_gnu_ld=yes 10811 ;; 10812*) 10813 lt_cv_prog_gnu_ld=no 10814 ;; 10815esac 10816fi 10817{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10818echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10819with_gnu_ld=$lt_cv_prog_gnu_ld 10820 10821 10822 10823 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10824 # archiving commands below assume that GNU ld is being used. 10825 if test "$with_gnu_ld" = yes; then 10826 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10827 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' 10828 10829 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10830 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10831 10832 # If archive_cmds runs LD, not CC, wlarc should be empty 10833 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10834 # investigate it a little bit more. (MM) 10835 wlarc='${wl}' 10836 10837 # ancient GNU ld didn't support --whole-archive et. al. 10838 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10839 grep 'no-whole-archive' > /dev/null; then 10840 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10841 else 10842 whole_archive_flag_spec_CXX= 10843 fi 10844 else 10845 with_gnu_ld=no 10846 wlarc= 10847 10848 # A generic and very simple default shared library creation 10849 # command for GNU C++ for the case where it uses the native 10850 # linker, instead of GNU ld. If possible, this setting should 10851 # overridden to take advantage of the native linker features on 10852 # the platform it is being used on. 10853 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10854 fi 10855 10856 # Commands to make compiler produce verbose output that lists 10857 # what "hidden" libraries, object files and flags are used when 10858 # linking a shared library. 10859 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10860 10861else 10862 GXX=no 10863 with_gnu_ld=no 10864 wlarc= 10865fi 10866 10867# PORTME: fill in a description of your system's C++ link characteristics 10868{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10869echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10870ld_shlibs_CXX=yes 10871case $host_os in 10872 aix3*) 10873 # FIXME: insert proper C++ library support 10874 ld_shlibs_CXX=no 10875 ;; 10876 aix4* | aix5*) 10877 if test "$host_cpu" = ia64; then 10878 # On IA64, the linker does run time linking by default, so we don't 10879 # have to do anything special. 10880 aix_use_runtimelinking=no 10881 exp_sym_flag='-Bexport' 10882 no_entry_flag="" 10883 else 10884 aix_use_runtimelinking=no 10885 10886 # Test if we are trying to use run time linking or normal 10887 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10888 # need to do runtime linking. 10889 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10890 for ld_flag in $LDFLAGS; do 10891 case $ld_flag in 10892 *-brtl*) 10893 aix_use_runtimelinking=yes 10894 break 10895 ;; 10896 esac 10897 done 10898 ;; 10899 esac 10900 10901 exp_sym_flag='-bexport' 10902 no_entry_flag='-bnoentry' 10903 fi 10904 10905 # When large executables or shared objects are built, AIX ld can 10906 # have problems creating the table of contents. If linking a library 10907 # or program results in "error TOC overflow" add -mminimal-toc to 10908 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10909 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10910 10911 archive_cmds_CXX='' 10912 hardcode_direct_CXX=yes 10913 hardcode_libdir_separator_CXX=':' 10914 link_all_deplibs_CXX=yes 10915 10916 if test "$GXX" = yes; then 10917 case $host_os in aix4.[012]|aix4.[012].*) 10918 # We only want to do this on AIX 4.2 and lower, the check 10919 # below for broken collect2 doesn't work under 4.3+ 10920 collect2name=`${CC} -print-prog-name=collect2` 10921 if test -f "$collect2name" && \ 10922 strings "$collect2name" | grep resolve_lib_name >/dev/null 10923 then 10924 # We have reworked collect2 10925 hardcode_direct_CXX=yes 10926 else 10927 # We have old collect2 10928 hardcode_direct_CXX=unsupported 10929 # It fails to find uninstalled libraries when the uninstalled 10930 # path is not listed in the libpath. Setting hardcode_minus_L 10931 # to unsupported forces relinking 10932 hardcode_minus_L_CXX=yes 10933 hardcode_libdir_flag_spec_CXX='-L$libdir' 10934 hardcode_libdir_separator_CXX= 10935 fi 10936 ;; 10937 esac 10938 shared_flag='-shared' 10939 if test "$aix_use_runtimelinking" = yes; then 10940 shared_flag="$shared_flag "'${wl}-G' 10941 fi 10942 else 10943 # not using gcc 10944 if test "$host_cpu" = ia64; then 10945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10946 # chokes on -Wl,-G. The following line is correct: 10947 shared_flag='-G' 10948 else 10949 if test "$aix_use_runtimelinking" = yes; then 10950 shared_flag='${wl}-G' 10951 else 10952 shared_flag='${wl}-bM:SRE' 10953 fi 10954 fi 10955 fi 10956 10957 # It seems that -bexpall does not export symbols beginning with 10958 # underscore (_), so it is better to generate a list of symbols to export. 10959 always_export_symbols_CXX=yes 10960 if test "$aix_use_runtimelinking" = yes; then 10961 # Warning - without using the other runtime loading flags (-brtl), 10962 # -berok will link without error, but may produce a broken library. 10963 allow_undefined_flag_CXX='-berok' 10964 # Determine the default libpath from the value encoded in an empty executable. 10965 cat >conftest.$ac_ext <<_ACEOF 10966/* confdefs.h. */ 10967_ACEOF 10968cat confdefs.h >>conftest.$ac_ext 10969cat >>conftest.$ac_ext <<_ACEOF 10970/* end confdefs.h. */ 10971 10972int 10973main () 10974{ 10975 10976 ; 10977 return 0; 10978} 10979_ACEOF 10980rm -f conftest.$ac_objext conftest$ac_exeext 10981if { (ac_try="$ac_link" 10982case "(($ac_try" in 10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10984 *) ac_try_echo=$ac_try;; 10985esac 10986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10987 (eval "$ac_link") 2>conftest.er1 10988 ac_status=$? 10989 grep -v '^ *+' conftest.er1 >conftest.err 10990 rm -f conftest.er1 10991 cat conftest.err >&5 10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10993 (exit $ac_status); } && { 10994 test -z "$ac_cxx_werror_flag" || 10995 test ! -s conftest.err 10996 } && test -s conftest$ac_exeext && 10997 $as_test_x conftest$ac_exeext; then 10998 10999aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11000}'` 11001# Check for a 64-bit object if we didn't find anything. 11002if 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; } 11003}'`; fi 11004else 11005 echo "$as_me: failed program was:" >&5 11006sed 's/^/| /' conftest.$ac_ext >&5 11007 11008 11009fi 11010 11011rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11012 conftest$ac_exeext conftest.$ac_ext 11013if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11014 11015 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11016 11017 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" 11018 else 11019 if test "$host_cpu" = ia64; then 11020 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11021 allow_undefined_flag_CXX="-z nodefs" 11022 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" 11023 else 11024 # Determine the default libpath from the value encoded in an empty executable. 11025 cat >conftest.$ac_ext <<_ACEOF 11026/* confdefs.h. */ 11027_ACEOF 11028cat confdefs.h >>conftest.$ac_ext 11029cat >>conftest.$ac_ext <<_ACEOF 11030/* end confdefs.h. */ 11031 11032int 11033main () 11034{ 11035 11036 ; 11037 return 0; 11038} 11039_ACEOF 11040rm -f conftest.$ac_objext conftest$ac_exeext 11041if { (ac_try="$ac_link" 11042case "(($ac_try" in 11043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11044 *) ac_try_echo=$ac_try;; 11045esac 11046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11047 (eval "$ac_link") 2>conftest.er1 11048 ac_status=$? 11049 grep -v '^ *+' conftest.er1 >conftest.err 11050 rm -f conftest.er1 11051 cat conftest.err >&5 11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11053 (exit $ac_status); } && { 11054 test -z "$ac_cxx_werror_flag" || 11055 test ! -s conftest.err 11056 } && test -s conftest$ac_exeext && 11057 $as_test_x conftest$ac_exeext; then 11058 11059aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11060}'` 11061# Check for a 64-bit object if we didn't find anything. 11062if 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; } 11063}'`; fi 11064else 11065 echo "$as_me: failed program was:" >&5 11066sed 's/^/| /' conftest.$ac_ext >&5 11067 11068 11069fi 11070 11071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11072 conftest$ac_exeext conftest.$ac_ext 11073if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11074 11075 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11076 # Warning - without using the other run time loading flags, 11077 # -berok will link without error, but may produce a broken library. 11078 no_undefined_flag_CXX=' ${wl}-bernotok' 11079 allow_undefined_flag_CXX=' ${wl}-berok' 11080 # Exported symbols can be pulled into shared objects from archives 11081 whole_archive_flag_spec_CXX='$convenience' 11082 archive_cmds_need_lc_CXX=yes 11083 # This is similar to how AIX traditionally builds its shared libraries. 11084 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' 11085 fi 11086 fi 11087 ;; 11088 11089 beos*) 11090 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11091 allow_undefined_flag_CXX=unsupported 11092 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11093 # support --undefined. This deserves some investigation. FIXME 11094 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11095 else 11096 ld_shlibs_CXX=no 11097 fi 11098 ;; 11099 11100 chorus*) 11101 case $cc_basename in 11102 *) 11103 # FIXME: insert proper C++ library support 11104 ld_shlibs_CXX=no 11105 ;; 11106 esac 11107 ;; 11108 11109 cygwin* | mingw* | pw32*) 11110 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11111 # as there is no search path for DLLs. 11112 hardcode_libdir_flag_spec_CXX='-L$libdir' 11113 allow_undefined_flag_CXX=unsupported 11114 always_export_symbols_CXX=no 11115 enable_shared_with_static_runtimes_CXX=yes 11116 11117 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11118 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' 11119 # If the export-symbols file already is a .def file (1st line 11120 # is EXPORTS), use it as is; otherwise, prepend... 11121 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11122 cp $export_symbols $output_objdir/$soname.def; 11123 else 11124 echo EXPORTS > $output_objdir/$soname.def; 11125 cat $export_symbols >> $output_objdir/$soname.def; 11126 fi~ 11127 $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' 11128 else 11129 ld_shlibs_CXX=no 11130 fi 11131 ;; 11132 darwin* | rhapsody*) 11133 case $host_os in 11134 rhapsody* | darwin1.[012]) 11135 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11136 ;; 11137 *) # Darwin 1.3 on 11138 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11139 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11140 else 11141 case ${MACOSX_DEPLOYMENT_TARGET} in 11142 10.[012]) 11143 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11144 ;; 11145 10.*) 11146 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11147 ;; 11148 esac 11149 fi 11150 ;; 11151 esac 11152 archive_cmds_need_lc_CXX=no 11153 hardcode_direct_CXX=no 11154 hardcode_automatic_CXX=yes 11155 hardcode_shlibpath_var_CXX=unsupported 11156 whole_archive_flag_spec_CXX='' 11157 link_all_deplibs_CXX=yes 11158 11159 if test "$GXX" = yes ; then 11160 lt_int_apple_cc_single_mod=no 11161 output_verbose_link_cmd='echo' 11162 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11163 lt_int_apple_cc_single_mod=yes 11164 fi 11165 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11166 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11167 else 11168 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' 11169 fi 11170 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11171 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11172 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11173 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}' 11174 else 11175 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}' 11176 fi 11177 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}' 11178 else 11179 case $cc_basename in 11180 xlc*) 11181 output_verbose_link_cmd='echo' 11182 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' 11183 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11184 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11185 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}' 11186 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}' 11187 ;; 11188 *) 11189 ld_shlibs_CXX=no 11190 ;; 11191 esac 11192 fi 11193 ;; 11194 11195 dgux*) 11196 case $cc_basename in 11197 ec++*) 11198 # FIXME: insert proper C++ library support 11199 ld_shlibs_CXX=no 11200 ;; 11201 ghcx*) 11202 # Green Hills C++ Compiler 11203 # FIXME: insert proper C++ library support 11204 ld_shlibs_CXX=no 11205 ;; 11206 *) 11207 # FIXME: insert proper C++ library support 11208 ld_shlibs_CXX=no 11209 ;; 11210 esac 11211 ;; 11212 freebsd[12]*) 11213 # C++ shared libraries reported to be fairly broken before switch to ELF 11214 ld_shlibs_CXX=no 11215 ;; 11216 freebsd-elf*) 11217 archive_cmds_need_lc_CXX=no 11218 ;; 11219 freebsd* | kfreebsd*-gnu | dragonfly*) 11220 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11221 # conventions 11222 ld_shlibs_CXX=yes 11223 ;; 11224 gnu*) 11225 ;; 11226 hpux9*) 11227 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11228 hardcode_libdir_separator_CXX=: 11229 export_dynamic_flag_spec_CXX='${wl}-E' 11230 hardcode_direct_CXX=yes 11231 hardcode_minus_L_CXX=yes # Not in the search PATH, 11232 # but as the default 11233 # location of the library. 11234 11235 case $cc_basename in 11236 CC*) 11237 # FIXME: insert proper C++ library support 11238 ld_shlibs_CXX=no 11239 ;; 11240 aCC*) 11241 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' 11242 # Commands to make compiler produce verbose output that lists 11243 # what "hidden" libraries, object files and flags are used when 11244 # linking a shared library. 11245 # 11246 # There doesn't appear to be a way to prevent this compiler from 11247 # explicitly linking system object files so we need to strip them 11248 # from the output so that they don't get included in the library 11249 # dependencies. 11250 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' 11251 ;; 11252 *) 11253 if test "$GXX" = yes; then 11254 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' 11255 else 11256 # FIXME: insert proper C++ library support 11257 ld_shlibs_CXX=no 11258 fi 11259 ;; 11260 esac 11261 ;; 11262 hpux10*|hpux11*) 11263 if test $with_gnu_ld = no; then 11264 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11265 hardcode_libdir_separator_CXX=: 11266 11267 case $host_cpu in 11268 hppa*64*|ia64*) 11269 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11270 ;; 11271 *) 11272 export_dynamic_flag_spec_CXX='${wl}-E' 11273 ;; 11274 esac 11275 fi 11276 case $host_cpu in 11277 hppa*64*|ia64*) 11278 hardcode_direct_CXX=no 11279 hardcode_shlibpath_var_CXX=no 11280 ;; 11281 *) 11282 hardcode_direct_CXX=yes 11283 hardcode_minus_L_CXX=yes # Not in the search PATH, 11284 # but as the default 11285 # location of the library. 11286 ;; 11287 esac 11288 11289 case $cc_basename in 11290 CC*) 11291 # FIXME: insert proper C++ library support 11292 ld_shlibs_CXX=no 11293 ;; 11294 aCC*) 11295 case $host_cpu in 11296 hppa*64*) 11297 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11298 ;; 11299 ia64*) 11300 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11301 ;; 11302 *) 11303 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11304 ;; 11305 esac 11306 # Commands to make compiler produce verbose output that lists 11307 # what "hidden" libraries, object files and flags are used when 11308 # linking a shared library. 11309 # 11310 # There doesn't appear to be a way to prevent this compiler from 11311 # explicitly linking system object files so we need to strip them 11312 # from the output so that they don't get included in the library 11313 # dependencies. 11314 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' 11315 ;; 11316 *) 11317 if test "$GXX" = yes; then 11318 if test $with_gnu_ld = no; then 11319 case $host_cpu in 11320 hppa*64*) 11321 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11322 ;; 11323 ia64*) 11324 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11325 ;; 11326 *) 11327 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' 11328 ;; 11329 esac 11330 fi 11331 else 11332 # FIXME: insert proper C++ library support 11333 ld_shlibs_CXX=no 11334 fi 11335 ;; 11336 esac 11337 ;; 11338 interix3*) 11339 hardcode_direct_CXX=no 11340 hardcode_shlibpath_var_CXX=no 11341 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11342 export_dynamic_flag_spec_CXX='${wl}-E' 11343 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11344 # Instead, shared libraries are loaded at an image base (0x10000000 by 11345 # default) and relocated if they conflict, which is a slow very memory 11346 # consuming and fragmenting process. To avoid this, we pick a random, 11347 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11348 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11349 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' 11350 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' 11351 ;; 11352 irix5* | irix6*) 11353 case $cc_basename in 11354 CC*) 11355 # SGI C++ 11356 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' 11357 11358 # Archives containing C++ object files must be created using 11359 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11360 # necessary to make sure instantiated templates are included 11361 # in the archive. 11362 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11363 ;; 11364 *) 11365 if test "$GXX" = yes; then 11366 if test "$with_gnu_ld" = no; then 11367 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' 11368 else 11369 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' 11370 fi 11371 fi 11372 link_all_deplibs_CXX=yes 11373 ;; 11374 esac 11375 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11376 hardcode_libdir_separator_CXX=: 11377 ;; 11378 linux*) 11379 case $cc_basename in 11380 KCC*) 11381 # Kuck and Associates, Inc. (KAI) C++ Compiler 11382 11383 # KCC will only create a shared library if the output file 11384 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11385 # to its proper name (with version) after linking. 11386 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' 11387 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' 11388 # Commands to make compiler produce verbose output that lists 11389 # what "hidden" libraries, object files and flags are used when 11390 # linking a shared library. 11391 # 11392 # There doesn't appear to be a way to prevent this compiler from 11393 # explicitly linking system object files so we need to strip them 11394 # from the output so that they don't get included in the library 11395 # dependencies. 11396 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' 11397 11398 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11399 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11400 11401 # Archives containing C++ object files must be created using 11402 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11403 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11404 ;; 11405 icpc*) 11406 # Intel C++ 11407 with_gnu_ld=yes 11408 # version 8.0 and above of icpc choke on multiply defined symbols 11409 # if we add $predep_objects and $postdep_objects, however 7.1 and 11410 # earlier do not add the objects themselves. 11411 case `$CC -V 2>&1` in 11412 *"Version 7."*) 11413 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11414 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11415 ;; 11416 *) # Version 8.0 or newer 11417 tmp_idyn= 11418 case $host_cpu in 11419 ia64*) tmp_idyn=' -i_dynamic';; 11420 esac 11421 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11422 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' 11423 ;; 11424 esac 11425 archive_cmds_need_lc_CXX=no 11426 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11427 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11428 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11429 ;; 11430 pgCC*) 11431 # Portland Group C++ compiler 11432 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11433 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' 11434 11435 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11436 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11437 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' 11438 ;; 11439 cxx*) 11440 # Compaq C++ 11441 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11442 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' 11443 11444 runpath_var=LD_RUN_PATH 11445 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11446 hardcode_libdir_separator_CXX=: 11447 11448 # Commands to make compiler produce verbose output that lists 11449 # what "hidden" libraries, object files and flags are used when 11450 # linking a shared library. 11451 # 11452 # There doesn't appear to be a way to prevent this compiler from 11453 # explicitly linking system object files so we need to strip them 11454 # from the output so that they don't get included in the library 11455 # dependencies. 11456 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' 11457 ;; 11458 esac 11459 ;; 11460 lynxos*) 11461 # FIXME: insert proper C++ library support 11462 ld_shlibs_CXX=no 11463 ;; 11464 m88k*) 11465 # FIXME: insert proper C++ library support 11466 ld_shlibs_CXX=no 11467 ;; 11468 mvs*) 11469 case $cc_basename in 11470 cxx*) 11471 # FIXME: insert proper C++ library support 11472 ld_shlibs_CXX=no 11473 ;; 11474 *) 11475 # FIXME: insert proper C++ library support 11476 ld_shlibs_CXX=no 11477 ;; 11478 esac 11479 ;; 11480 netbsd*) 11481 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11482 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11483 wlarc= 11484 hardcode_libdir_flag_spec_CXX='-R$libdir' 11485 hardcode_direct_CXX=yes 11486 hardcode_shlibpath_var_CXX=no 11487 fi 11488 # Workaround some broken pre-1.5 toolchains 11489 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11490 ;; 11491 openbsd2*) 11492 # C++ shared libraries are fairly broken 11493 ld_shlibs_CXX=no 11494 ;; 11495 openbsd*) 11496 hardcode_direct_CXX=yes 11497 hardcode_shlibpath_var_CXX=no 11498 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11499 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11500 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11501 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11502 export_dynamic_flag_spec_CXX='${wl}-E' 11503 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11504 fi 11505 output_verbose_link_cmd='echo' 11506 ;; 11507 osf3*) 11508 case $cc_basename in 11509 KCC*) 11510 # Kuck and Associates, Inc. (KAI) C++ Compiler 11511 11512 # KCC will only create a shared library if the output file 11513 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11514 # to its proper name (with version) after linking. 11515 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' 11516 11517 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11518 hardcode_libdir_separator_CXX=: 11519 11520 # Archives containing C++ object files must be created using 11521 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11522 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11523 11524 ;; 11525 RCC*) 11526 # Rational C++ 2.4.1 11527 # FIXME: insert proper C++ library support 11528 ld_shlibs_CXX=no 11529 ;; 11530 cxx*) 11531 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11532 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' 11533 11534 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11535 hardcode_libdir_separator_CXX=: 11536 11537 # Commands to make compiler produce verbose output that lists 11538 # what "hidden" libraries, object files and flags are used when 11539 # linking a shared library. 11540 # 11541 # There doesn't appear to be a way to prevent this compiler from 11542 # explicitly linking system object files so we need to strip them 11543 # from the output so that they don't get included in the library 11544 # dependencies. 11545 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' 11546 ;; 11547 *) 11548 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11549 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11550 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' 11551 11552 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11553 hardcode_libdir_separator_CXX=: 11554 11555 # Commands to make compiler produce verbose output that lists 11556 # what "hidden" libraries, object files and flags are used when 11557 # linking a shared library. 11558 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11559 11560 else 11561 # FIXME: insert proper C++ library support 11562 ld_shlibs_CXX=no 11563 fi 11564 ;; 11565 esac 11566 ;; 11567 osf4* | osf5*) 11568 case $cc_basename in 11569 KCC*) 11570 # Kuck and Associates, Inc. (KAI) C++ Compiler 11571 11572 # KCC will only create a shared library if the output file 11573 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11574 # to its proper name (with version) after linking. 11575 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' 11576 11577 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11578 hardcode_libdir_separator_CXX=: 11579 11580 # Archives containing C++ object files must be created using 11581 # the KAI C++ compiler. 11582 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11583 ;; 11584 RCC*) 11585 # Rational C++ 2.4.1 11586 # FIXME: insert proper C++ library support 11587 ld_shlibs_CXX=no 11588 ;; 11589 cxx*) 11590 allow_undefined_flag_CXX=' -expect_unresolved \*' 11591 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' 11592 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11593 echo "-hidden">> $lib.exp~ 11594 $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~ 11595 $rm $lib.exp' 11596 11597 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11598 hardcode_libdir_separator_CXX=: 11599 11600 # Commands to make compiler produce verbose output that lists 11601 # what "hidden" libraries, object files and flags are used when 11602 # linking a shared library. 11603 # 11604 # There doesn't appear to be a way to prevent this compiler from 11605 # explicitly linking system object files so we need to strip them 11606 # from the output so that they don't get included in the library 11607 # dependencies. 11608 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' 11609 ;; 11610 *) 11611 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11612 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11613 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' 11614 11615 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11616 hardcode_libdir_separator_CXX=: 11617 11618 # Commands to make compiler produce verbose output that lists 11619 # what "hidden" libraries, object files and flags are used when 11620 # linking a shared library. 11621 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11622 11623 else 11624 # FIXME: insert proper C++ library support 11625 ld_shlibs_CXX=no 11626 fi 11627 ;; 11628 esac 11629 ;; 11630 psos*) 11631 # FIXME: insert proper C++ library support 11632 ld_shlibs_CXX=no 11633 ;; 11634 sunos4*) 11635 case $cc_basename in 11636 CC*) 11637 # Sun C++ 4.x 11638 # FIXME: insert proper C++ library support 11639 ld_shlibs_CXX=no 11640 ;; 11641 lcc*) 11642 # Lucid 11643 # FIXME: insert proper C++ library support 11644 ld_shlibs_CXX=no 11645 ;; 11646 *) 11647 # FIXME: insert proper C++ library support 11648 ld_shlibs_CXX=no 11649 ;; 11650 esac 11651 ;; 11652 solaris*) 11653 case $cc_basename in 11654 CC*) 11655 # Sun C++ 4.2, 5.x and Centerline C++ 11656 archive_cmds_need_lc_CXX=yes 11657 no_undefined_flag_CXX=' -zdefs' 11658 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11659 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11660 $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' 11661 11662 hardcode_libdir_flag_spec_CXX='-R$libdir' 11663 hardcode_shlibpath_var_CXX=no 11664 case $host_os in 11665 solaris2.[0-5] | solaris2.[0-5].*) ;; 11666 *) 11667 # The C++ compiler is used as linker so we must use $wl 11668 # flag to pass the commands to the underlying system 11669 # linker. We must also pass each convience library through 11670 # to the system linker between allextract/defaultextract. 11671 # The C++ compiler will combine linker options so we 11672 # cannot just pass the convience library names through 11673 # without $wl. 11674 # Supported since Solaris 2.6 (maybe 2.5.1?) 11675 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' 11676 ;; 11677 esac 11678 link_all_deplibs_CXX=yes 11679 11680 output_verbose_link_cmd='echo' 11681 11682 # Archives containing C++ object files must be created using 11683 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11684 # necessary to make sure instantiated templates are included 11685 # in the archive. 11686 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11687 ;; 11688 gcx*) 11689 # Green Hills C++ Compiler 11690 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11691 11692 # The C++ compiler must be used to create the archive. 11693 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11694 ;; 11695 *) 11696 # GNU C++ compiler with Solaris linker 11697 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11698 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11699 if $CC --version | grep -v '^2\.7' > /dev/null; then 11700 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11701 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11702 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11703 11704 # Commands to make compiler produce verbose output that lists 11705 # what "hidden" libraries, object files and flags are used when 11706 # linking a shared library. 11707 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11708 else 11709 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11710 # platform. 11711 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11712 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11713 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11714 11715 # Commands to make compiler produce verbose output that lists 11716 # what "hidden" libraries, object files and flags are used when 11717 # linking a shared library. 11718 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11719 fi 11720 11721 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11722 fi 11723 ;; 11724 esac 11725 ;; 11726 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11727 no_undefined_flag_CXX='${wl}-z,text' 11728 archive_cmds_need_lc_CXX=no 11729 hardcode_shlibpath_var_CXX=no 11730 runpath_var='LD_RUN_PATH' 11731 11732 case $cc_basename in 11733 CC*) 11734 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11735 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11736 ;; 11737 *) 11738 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11739 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11740 ;; 11741 esac 11742 ;; 11743 sysv5* | sco3.2v5* | sco5v6*) 11744 # Note: We can NOT use -z defs as we might desire, because we do not 11745 # link with -lc, and that would cause any symbols used from libc to 11746 # always be unresolved, which means just about no library would 11747 # ever link correctly. If we're not using GNU ld we use -z text 11748 # though, which does catch some bad symbols but isn't as heavy-handed 11749 # as -z defs. 11750 # For security reasons, it is highly recommended that you always 11751 # use absolute paths for naming shared libraries, and exclude the 11752 # DT_RUNPATH tag from executables and libraries. But doing so 11753 # requires that you compile everything twice, which is a pain. 11754 # So that behaviour is only enabled if SCOABSPATH is set to a 11755 # non-empty value in the environment. Most likely only useful for 11756 # creating official distributions of packages. 11757 # This is a hack until libtool officially supports absolute path 11758 # names for shared libraries. 11759 no_undefined_flag_CXX='${wl}-z,text' 11760 allow_undefined_flag_CXX='${wl}-z,nodefs' 11761 archive_cmds_need_lc_CXX=no 11762 hardcode_shlibpath_var_CXX=no 11763 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11764 hardcode_libdir_separator_CXX=':' 11765 link_all_deplibs_CXX=yes 11766 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11767 runpath_var='LD_RUN_PATH' 11768 11769 case $cc_basename in 11770 CC*) 11771 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11772 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11773 ;; 11774 *) 11775 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11776 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11777 ;; 11778 esac 11779 ;; 11780 tandem*) 11781 case $cc_basename in 11782 NCC*) 11783 # NonStop-UX NCC 3.20 11784 # FIXME: insert proper C++ library support 11785 ld_shlibs_CXX=no 11786 ;; 11787 *) 11788 # FIXME: insert proper C++ library support 11789 ld_shlibs_CXX=no 11790 ;; 11791 esac 11792 ;; 11793 vxworks*) 11794 # FIXME: insert proper C++ library support 11795 ld_shlibs_CXX=no 11796 ;; 11797 *) 11798 # FIXME: insert proper C++ library support 11799 ld_shlibs_CXX=no 11800 ;; 11801esac 11802{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11803echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11804test "$ld_shlibs_CXX" = no && can_build_shared=no 11805 11806GCC_CXX="$GXX" 11807LD_CXX="$LD" 11808 11809 11810cat > conftest.$ac_ext <<EOF 11811class Foo 11812{ 11813public: 11814 Foo (void) { a = 0; } 11815private: 11816 int a; 11817}; 11818EOF 11819 11820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11821 (eval $ac_compile) 2>&5 11822 ac_status=$? 11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11824 (exit $ac_status); }; then 11825 # Parse the compiler output and extract the necessary 11826 # objects, libraries and library flags. 11827 11828 # Sentinel used to keep track of whether or not we are before 11829 # the conftest object file. 11830 pre_test_object_deps_done=no 11831 11832 # The `*' in the case matches for architectures that use `case' in 11833 # $output_verbose_cmd can trigger glob expansion during the loop 11834 # eval without this substitution. 11835 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11836 11837 for p in `eval $output_verbose_link_cmd`; do 11838 case $p in 11839 11840 -L* | -R* | -l*) 11841 # Some compilers place space between "-{L,R}" and the path. 11842 # Remove the space. 11843 if test $p = "-L" \ 11844 || test $p = "-R"; then 11845 prev=$p 11846 continue 11847 else 11848 prev= 11849 fi 11850 11851 if test "$pre_test_object_deps_done" = no; then 11852 case $p in 11853 -L* | -R*) 11854 # Internal compiler library paths should come after those 11855 # provided the user. The postdeps already come after the 11856 # user supplied libs so there is no need to process them. 11857 if test -z "$compiler_lib_search_path_CXX"; then 11858 compiler_lib_search_path_CXX="${prev}${p}" 11859 else 11860 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11861 fi 11862 ;; 11863 # The "-l" case would never come before the object being 11864 # linked, so don't bother handling this case. 11865 esac 11866 else 11867 if test -z "$postdeps_CXX"; then 11868 postdeps_CXX="${prev}${p}" 11869 else 11870 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11871 fi 11872 fi 11873 ;; 11874 11875 *.$objext) 11876 # This assumes that the test object file only shows up 11877 # once in the compiler output. 11878 if test "$p" = "conftest.$objext"; then 11879 pre_test_object_deps_done=yes 11880 continue 11881 fi 11882 11883 if test "$pre_test_object_deps_done" = no; then 11884 if test -z "$predep_objects_CXX"; then 11885 predep_objects_CXX="$p" 11886 else 11887 predep_objects_CXX="$predep_objects_CXX $p" 11888 fi 11889 else 11890 if test -z "$postdep_objects_CXX"; then 11891 postdep_objects_CXX="$p" 11892 else 11893 postdep_objects_CXX="$postdep_objects_CXX $p" 11894 fi 11895 fi 11896 ;; 11897 11898 *) ;; # Ignore the rest. 11899 11900 esac 11901 done 11902 11903 # Clean up. 11904 rm -f a.out a.exe 11905else 11906 echo "libtool.m4: error: problem compiling CXX test program" 11907fi 11908 11909$rm -f confest.$objext 11910 11911# PORTME: override above test on systems where it is broken 11912case $host_os in 11913interix3*) 11914 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11915 # hack all around it, let's just trust "g++" to DTRT. 11916 predep_objects_CXX= 11917 postdep_objects_CXX= 11918 postdeps_CXX= 11919 ;; 11920 11921solaris*) 11922 case $cc_basename in 11923 CC*) 11924 # Adding this requires a known-good setup of shared libraries for 11925 # Sun compiler versions before 5.6, else PIC objects from an old 11926 # archive will be linked into the output, leading to subtle bugs. 11927 postdeps_CXX='-lCstd -lCrun' 11928 ;; 11929 esac 11930 ;; 11931esac 11932 11933 11934case " $postdeps_CXX " in 11935*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11936esac 11937 11938lt_prog_compiler_wl_CXX= 11939lt_prog_compiler_pic_CXX= 11940lt_prog_compiler_static_CXX= 11941 11942{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11943echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 11944 11945 # C++ specific cases for pic, static, wl, etc. 11946 if test "$GXX" = yes; then 11947 lt_prog_compiler_wl_CXX='-Wl,' 11948 lt_prog_compiler_static_CXX='-static' 11949 11950 case $host_os in 11951 aix*) 11952 # All AIX code is PIC. 11953 if test "$host_cpu" = ia64; then 11954 # AIX 5 now supports IA64 processor 11955 lt_prog_compiler_static_CXX='-Bstatic' 11956 fi 11957 ;; 11958 amigaos*) 11959 # FIXME: we need at least 68020 code to build shared libraries, but 11960 # adding the `-m68020' flag to GCC prevents building anything better, 11961 # like `-m68040'. 11962 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11963 ;; 11964 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11965 # PIC is the default for these OSes. 11966 ;; 11967 mingw* | os2* | pw32*) 11968 # This hack is so that the source file can tell whether it is being 11969 # built for inclusion in a dll (and should export symbols for example). 11970 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11971 ;; 11972 darwin* | rhapsody*) 11973 # PIC is the default on this platform 11974 # Common symbols not allowed in MH_DYLIB files 11975 lt_prog_compiler_pic_CXX='-fno-common' 11976 ;; 11977 *djgpp*) 11978 # DJGPP does not support shared libraries at all 11979 lt_prog_compiler_pic_CXX= 11980 ;; 11981 interix3*) 11982 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11983 # Instead, we relocate shared libraries at runtime. 11984 ;; 11985 sysv4*MP*) 11986 if test -d /usr/nec; then 11987 lt_prog_compiler_pic_CXX=-Kconform_pic 11988 fi 11989 ;; 11990 hpux*) 11991 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11992 # not for PA HP-UX. 11993 case $host_cpu in 11994 hppa*64*|ia64*) 11995 ;; 11996 *) 11997 lt_prog_compiler_pic_CXX='-fPIC' 11998 ;; 11999 esac 12000 ;; 12001 *) 12002 lt_prog_compiler_pic_CXX='-fPIC' 12003 ;; 12004 esac 12005 else 12006 case $host_os in 12007 aix4* | aix5*) 12008 # All AIX code is PIC. 12009 if test "$host_cpu" = ia64; then 12010 # AIX 5 now supports IA64 processor 12011 lt_prog_compiler_static_CXX='-Bstatic' 12012 else 12013 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12014 fi 12015 ;; 12016 chorus*) 12017 case $cc_basename in 12018 cxch68*) 12019 # Green Hills C++ Compiler 12020 # _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" 12021 ;; 12022 esac 12023 ;; 12024 darwin*) 12025 # PIC is the default on this platform 12026 # Common symbols not allowed in MH_DYLIB files 12027 case $cc_basename in 12028 xlc*) 12029 lt_prog_compiler_pic_CXX='-qnocommon' 12030 lt_prog_compiler_wl_CXX='-Wl,' 12031 ;; 12032 esac 12033 ;; 12034 dgux*) 12035 case $cc_basename in 12036 ec++*) 12037 lt_prog_compiler_pic_CXX='-KPIC' 12038 ;; 12039 ghcx*) 12040 # Green Hills C++ Compiler 12041 lt_prog_compiler_pic_CXX='-pic' 12042 ;; 12043 *) 12044 ;; 12045 esac 12046 ;; 12047 freebsd* | kfreebsd*-gnu | dragonfly*) 12048 # FreeBSD uses GNU C++ 12049 ;; 12050 hpux9* | hpux10* | hpux11*) 12051 case $cc_basename in 12052 CC*) 12053 lt_prog_compiler_wl_CXX='-Wl,' 12054 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12055 if test "$host_cpu" != ia64; then 12056 lt_prog_compiler_pic_CXX='+Z' 12057 fi 12058 ;; 12059 aCC*) 12060 lt_prog_compiler_wl_CXX='-Wl,' 12061 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12062 case $host_cpu in 12063 hppa*64*|ia64*) 12064 # +Z the default 12065 ;; 12066 *) 12067 lt_prog_compiler_pic_CXX='+Z' 12068 ;; 12069 esac 12070 ;; 12071 *) 12072 ;; 12073 esac 12074 ;; 12075 interix*) 12076 # This is c89, which is MS Visual C++ (no shared libs) 12077 # Anyone wants to do a port? 12078 ;; 12079 irix5* | irix6* | nonstopux*) 12080 case $cc_basename in 12081 CC*) 12082 lt_prog_compiler_wl_CXX='-Wl,' 12083 lt_prog_compiler_static_CXX='-non_shared' 12084 # CC pic flag -KPIC is the default. 12085 ;; 12086 *) 12087 ;; 12088 esac 12089 ;; 12090 linux*) 12091 case $cc_basename in 12092 KCC*) 12093 # KAI C++ Compiler 12094 lt_prog_compiler_wl_CXX='--backend -Wl,' 12095 lt_prog_compiler_pic_CXX='-fPIC' 12096 ;; 12097 icpc* | ecpc*) 12098 # Intel C++ 12099 lt_prog_compiler_wl_CXX='-Wl,' 12100 lt_prog_compiler_pic_CXX='-KPIC' 12101 lt_prog_compiler_static_CXX='-static' 12102 ;; 12103 pgCC*) 12104 # Portland Group C++ compiler. 12105 lt_prog_compiler_wl_CXX='-Wl,' 12106 lt_prog_compiler_pic_CXX='-fpic' 12107 lt_prog_compiler_static_CXX='-Bstatic' 12108 ;; 12109 cxx*) 12110 # Compaq C++ 12111 # Make sure the PIC flag is empty. It appears that all Alpha 12112 # Linux and Compaq Tru64 Unix objects are PIC. 12113 lt_prog_compiler_pic_CXX= 12114 lt_prog_compiler_static_CXX='-non_shared' 12115 ;; 12116 *) 12117 ;; 12118 esac 12119 ;; 12120 lynxos*) 12121 ;; 12122 m88k*) 12123 ;; 12124 mvs*) 12125 case $cc_basename in 12126 cxx*) 12127 lt_prog_compiler_pic_CXX='-W c,exportall' 12128 ;; 12129 *) 12130 ;; 12131 esac 12132 ;; 12133 netbsd*) 12134 ;; 12135 osf3* | osf4* | osf5*) 12136 case $cc_basename in 12137 KCC*) 12138 lt_prog_compiler_wl_CXX='--backend -Wl,' 12139 ;; 12140 RCC*) 12141 # Rational C++ 2.4.1 12142 lt_prog_compiler_pic_CXX='-pic' 12143 ;; 12144 cxx*) 12145 # Digital/Compaq C++ 12146 lt_prog_compiler_wl_CXX='-Wl,' 12147 # Make sure the PIC flag is empty. It appears that all Alpha 12148 # Linux and Compaq Tru64 Unix objects are PIC. 12149 lt_prog_compiler_pic_CXX= 12150 lt_prog_compiler_static_CXX='-non_shared' 12151 ;; 12152 *) 12153 ;; 12154 esac 12155 ;; 12156 psos*) 12157 ;; 12158 solaris*) 12159 case $cc_basename in 12160 CC*) 12161 # Sun C++ 4.2, 5.x and Centerline C++ 12162 lt_prog_compiler_pic_CXX='-KPIC' 12163 lt_prog_compiler_static_CXX='-Bstatic' 12164 lt_prog_compiler_wl_CXX='-Qoption ld ' 12165 ;; 12166 gcx*) 12167 # Green Hills C++ Compiler 12168 lt_prog_compiler_pic_CXX='-PIC' 12169 ;; 12170 *) 12171 ;; 12172 esac 12173 ;; 12174 sunos4*) 12175 case $cc_basename in 12176 CC*) 12177 # Sun C++ 4.x 12178 lt_prog_compiler_pic_CXX='-pic' 12179 lt_prog_compiler_static_CXX='-Bstatic' 12180 ;; 12181 lcc*) 12182 # Lucid 12183 lt_prog_compiler_pic_CXX='-pic' 12184 ;; 12185 *) 12186 ;; 12187 esac 12188 ;; 12189 tandem*) 12190 case $cc_basename in 12191 NCC*) 12192 # NonStop-UX NCC 3.20 12193 lt_prog_compiler_pic_CXX='-KPIC' 12194 ;; 12195 *) 12196 ;; 12197 esac 12198 ;; 12199 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12200 case $cc_basename in 12201 CC*) 12202 lt_prog_compiler_wl_CXX='-Wl,' 12203 lt_prog_compiler_pic_CXX='-KPIC' 12204 lt_prog_compiler_static_CXX='-Bstatic' 12205 ;; 12206 esac 12207 ;; 12208 vxworks*) 12209 ;; 12210 *) 12211 lt_prog_compiler_can_build_shared_CXX=no 12212 ;; 12213 esac 12214 fi 12215 12216{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12217echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12218 12219# 12220# Check to make sure the PIC flag actually works. 12221# 12222if test -n "$lt_prog_compiler_pic_CXX"; then 12223 12224{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12225echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12226if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12227 echo $ECHO_N "(cached) $ECHO_C" >&6 12228else 12229 lt_prog_compiler_pic_works_CXX=no 12230 ac_outfile=conftest.$ac_objext 12231 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12232 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12233 # Insert the option either (1) after the last *FLAGS variable, or 12234 # (2) before a word containing "conftest.", or (3) at the end. 12235 # Note that $ac_compile itself does not contain backslashes and begins 12236 # with a dollar sign (not a hyphen), so the echo should work correctly. 12237 # The option is referenced via a variable to avoid confusing sed. 12238 lt_compile=`echo "$ac_compile" | $SED \ 12239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12241 -e 's:$: $lt_compiler_flag:'` 12242 (eval echo "\"\$as_me:12242: $lt_compile\"" >&5) 12243 (eval "$lt_compile" 2>conftest.err) 12244 ac_status=$? 12245 cat conftest.err >&5 12246 echo "$as_me:12246: \$? = $ac_status" >&5 12247 if (exit $ac_status) && test -s "$ac_outfile"; then 12248 # The compiler can only warn and ignore the option if not recognized 12249 # So say no if there are warnings other than the usual output. 12250 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12252 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12253 lt_prog_compiler_pic_works_CXX=yes 12254 fi 12255 fi 12256 $rm conftest* 12257 12258fi 12259{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12260echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12261 12262if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12263 case $lt_prog_compiler_pic_CXX in 12264 "" | " "*) ;; 12265 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12266 esac 12267else 12268 lt_prog_compiler_pic_CXX= 12269 lt_prog_compiler_can_build_shared_CXX=no 12270fi 12271 12272fi 12273case $host_os in 12274 # For platforms which do not support PIC, -DPIC is meaningless: 12275 *djgpp*) 12276 lt_prog_compiler_pic_CXX= 12277 ;; 12278 *) 12279 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12280 ;; 12281esac 12282 12283# 12284# Check to make sure the static flag actually works. 12285# 12286wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12287{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12288echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12289if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12290 echo $ECHO_N "(cached) $ECHO_C" >&6 12291else 12292 lt_prog_compiler_static_works_CXX=no 12293 save_LDFLAGS="$LDFLAGS" 12294 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12295 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12296 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12297 # The linker can only warn and ignore the option if not recognized 12298 # So say no if there are warnings 12299 if test -s conftest.err; then 12300 # Append any errors to the config.log. 12301 cat conftest.err 1>&5 12302 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12304 if diff conftest.exp conftest.er2 >/dev/null; then 12305 lt_prog_compiler_static_works_CXX=yes 12306 fi 12307 else 12308 lt_prog_compiler_static_works_CXX=yes 12309 fi 12310 fi 12311 $rm conftest* 12312 LDFLAGS="$save_LDFLAGS" 12313 12314fi 12315{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12316echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12317 12318if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12319 : 12320else 12321 lt_prog_compiler_static_CXX= 12322fi 12323 12324 12325{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12326echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12327if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12328 echo $ECHO_N "(cached) $ECHO_C" >&6 12329else 12330 lt_cv_prog_compiler_c_o_CXX=no 12331 $rm -r conftest 2>/dev/null 12332 mkdir conftest 12333 cd conftest 12334 mkdir out 12335 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12336 12337 lt_compiler_flag="-o out/conftest2.$ac_objext" 12338 # Insert the option either (1) after the last *FLAGS variable, or 12339 # (2) before a word containing "conftest.", or (3) at the end. 12340 # Note that $ac_compile itself does not contain backslashes and begins 12341 # with a dollar sign (not a hyphen), so the echo should work correctly. 12342 lt_compile=`echo "$ac_compile" | $SED \ 12343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12345 -e 's:$: $lt_compiler_flag:'` 12346 (eval echo "\"\$as_me:12346: $lt_compile\"" >&5) 12347 (eval "$lt_compile" 2>out/conftest.err) 12348 ac_status=$? 12349 cat out/conftest.err >&5 12350 echo "$as_me:12350: \$? = $ac_status" >&5 12351 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12352 then 12353 # The compiler can only warn and ignore the option if not recognized 12354 # So say no if there are warnings 12355 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12356 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12357 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12358 lt_cv_prog_compiler_c_o_CXX=yes 12359 fi 12360 fi 12361 chmod u+w . 2>&5 12362 $rm conftest* 12363 # SGI C++ compiler will create directory out/ii_files/ for 12364 # template instantiation 12365 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12366 $rm out/* && rmdir out 12367 cd .. 12368 rmdir conftest 12369 $rm conftest* 12370 12371fi 12372{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12373echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12374 12375 12376hard_links="nottested" 12377if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12378 # do not overwrite the value of need_locks provided by the user 12379 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12380echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12381 hard_links=yes 12382 $rm conftest* 12383 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12384 touch conftest.a 12385 ln conftest.a conftest.b 2>&5 || hard_links=no 12386 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12387 { echo "$as_me:$LINENO: result: $hard_links" >&5 12388echo "${ECHO_T}$hard_links" >&6; } 12389 if test "$hard_links" = no; then 12390 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12391echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12392 need_locks=warn 12393 fi 12394else 12395 need_locks=no 12396fi 12397 12398{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12399echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12400 12401 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12402 case $host_os in 12403 aix4* | aix5*) 12404 # If we're using GNU nm, then we don't want the "-C" option. 12405 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12406 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12407 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' 12408 else 12409 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' 12410 fi 12411 ;; 12412 pw32*) 12413 export_symbols_cmds_CXX="$ltdll_cmds" 12414 ;; 12415 cygwin* | mingw*) 12416 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' 12417 ;; 12418 *) 12419 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12420 ;; 12421 esac 12422 12423{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12424echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12425test "$ld_shlibs_CXX" = no && can_build_shared=no 12426 12427# 12428# Do we need to explicitly link libc? 12429# 12430case "x$archive_cmds_need_lc_CXX" in 12431x|xyes) 12432 # Assume -lc should be added 12433 archive_cmds_need_lc_CXX=yes 12434 12435 if test "$enable_shared" = yes && test "$GCC" = yes; then 12436 case $archive_cmds_CXX in 12437 *'~'*) 12438 # FIXME: we may have to deal with multi-command sequences. 12439 ;; 12440 '$CC '*) 12441 # Test whether the compiler implicitly links with -lc since on some 12442 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12443 # to ld, don't add -lc before -lgcc. 12444 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12445echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12446 $rm conftest* 12447 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12448 12449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12450 (eval $ac_compile) 2>&5 12451 ac_status=$? 12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12453 (exit $ac_status); } 2>conftest.err; then 12454 soname=conftest 12455 lib=conftest 12456 libobjs=conftest.$ac_objext 12457 deplibs= 12458 wl=$lt_prog_compiler_wl_CXX 12459 pic_flag=$lt_prog_compiler_pic_CXX 12460 compiler_flags=-v 12461 linker_flags=-v 12462 verstring= 12463 output_objdir=. 12464 libname=conftest 12465 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12466 allow_undefined_flag_CXX= 12467 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12468 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12469 ac_status=$? 12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12471 (exit $ac_status); } 12472 then 12473 archive_cmds_need_lc_CXX=no 12474 else 12475 archive_cmds_need_lc_CXX=yes 12476 fi 12477 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12478 else 12479 cat conftest.err 1>&5 12480 fi 12481 $rm conftest* 12482 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12483echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12484 ;; 12485 esac 12486 fi 12487 ;; 12488esac 12489 12490{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12491echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12492library_names_spec= 12493libname_spec='lib$name' 12494soname_spec= 12495shrext_cmds=".so" 12496postinstall_cmds= 12497postuninstall_cmds= 12498finish_cmds= 12499finish_eval= 12500shlibpath_var= 12501shlibpath_overrides_runpath=unknown 12502version_type=none 12503dynamic_linker="$host_os ld.so" 12504sys_lib_dlsearch_path_spec="/lib /usr/lib" 12505if test "$GCC" = yes; then 12506 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12507 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12508 # if the path contains ";" then we assume it to be the separator 12509 # otherwise default to the standard path separator (i.e. ":") - it is 12510 # assumed that no part of a normal pathname contains ";" but that should 12511 # okay in the real world where ";" in dirpaths is itself problematic. 12512 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12513 else 12514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12515 fi 12516else 12517 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12518fi 12519need_lib_prefix=unknown 12520hardcode_into_libs=no 12521 12522# when you set need_version to no, make sure it does not cause -set_version 12523# flags to be left without arguments 12524need_version=unknown 12525 12526case $host_os in 12527aix3*) 12528 version_type=linux 12529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12530 shlibpath_var=LIBPATH 12531 12532 # AIX 3 has no versioning support, so we append a major version to the name. 12533 soname_spec='${libname}${release}${shared_ext}$major' 12534 ;; 12535 12536aix4* | aix5*) 12537 version_type=linux 12538 need_lib_prefix=no 12539 need_version=no 12540 hardcode_into_libs=yes 12541 if test "$host_cpu" = ia64; then 12542 # AIX 5 supports IA64 12543 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12544 shlibpath_var=LD_LIBRARY_PATH 12545 else 12546 # With GCC up to 2.95.x, collect2 would create an import file 12547 # for dependence libraries. The import file would start with 12548 # the line `#! .'. This would cause the generated library to 12549 # depend on `.', always an invalid library. This was fixed in 12550 # development snapshots of GCC prior to 3.0. 12551 case $host_os in 12552 aix4 | aix4.[01] | aix4.[01].*) 12553 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12554 echo ' yes ' 12555 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12556 : 12557 else 12558 can_build_shared=no 12559 fi 12560 ;; 12561 esac 12562 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12563 # soname into executable. Probably we can add versioning support to 12564 # collect2, so additional links can be useful in future. 12565 if test "$aix_use_runtimelinking" = yes; then 12566 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12567 # instead of lib<name>.a to let people know that these are not 12568 # typical AIX shared libraries. 12569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12570 else 12571 # We preserve .a as extension for shared libraries through AIX4.2 12572 # and later when we are not doing run time linking. 12573 library_names_spec='${libname}${release}.a $libname.a' 12574 soname_spec='${libname}${release}${shared_ext}$major' 12575 fi 12576 shlibpath_var=LIBPATH 12577 fi 12578 ;; 12579 12580amigaos*) 12581 library_names_spec='$libname.ixlibrary $libname.a' 12582 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12583 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' 12584 ;; 12585 12586beos*) 12587 library_names_spec='${libname}${shared_ext}' 12588 dynamic_linker="$host_os ld.so" 12589 shlibpath_var=LIBRARY_PATH 12590 ;; 12591 12592bsdi[45]*) 12593 version_type=linux 12594 need_version=no 12595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12596 soname_spec='${libname}${release}${shared_ext}$major' 12597 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12598 shlibpath_var=LD_LIBRARY_PATH 12599 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12600 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12601 # the default ld.so.conf also contains /usr/contrib/lib and 12602 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12603 # libtool to hard-code these into programs 12604 ;; 12605 12606cygwin* | mingw* | pw32*) 12607 version_type=windows 12608 shrext_cmds=".dll" 12609 need_version=no 12610 need_lib_prefix=no 12611 12612 case $GCC,$host_os in 12613 yes,cygwin* | yes,mingw* | yes,pw32*) 12614 library_names_spec='$libname.dll.a' 12615 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12616 postinstall_cmds='base_file=`basename \${file}`~ 12617 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12618 dldir=$destdir/`dirname \$dlpath`~ 12619 test -d \$dldir || mkdir -p \$dldir~ 12620 $install_prog $dir/$dlname \$dldir/$dlname~ 12621 chmod a+x \$dldir/$dlname' 12622 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12623 dlpath=$dir/\$dldll~ 12624 $rm \$dlpath' 12625 shlibpath_overrides_runpath=yes 12626 12627 case $host_os in 12628 cygwin*) 12629 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12630 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12631 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12632 ;; 12633 mingw*) 12634 # MinGW DLLs use traditional 'lib' prefix 12635 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12636 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12637 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12638 # It is most probably a Windows format PATH printed by 12639 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12640 # path with ; separators, and with drive letters. We can handle the 12641 # drive letters (cygwin fileutils understands them), so leave them, 12642 # especially as we might pass files found there to a mingw objdump, 12643 # which wouldn't understand a cygwinified path. Ahh. 12644 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12645 else 12646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12647 fi 12648 ;; 12649 pw32*) 12650 # pw32 DLLs use 'pw' prefix rather than 'lib' 12651 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12652 ;; 12653 esac 12654 ;; 12655 12656 *) 12657 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12658 ;; 12659 esac 12660 dynamic_linker='Win32 ld.exe' 12661 # FIXME: first we should search . and the directory the executable is in 12662 shlibpath_var=PATH 12663 ;; 12664 12665darwin* | rhapsody*) 12666 dynamic_linker="$host_os dyld" 12667 version_type=darwin 12668 need_lib_prefix=no 12669 need_version=no 12670 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12671 soname_spec='${libname}${release}${major}$shared_ext' 12672 shlibpath_overrides_runpath=yes 12673 shlibpath_var=DYLD_LIBRARY_PATH 12674 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12675 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12676 if test "$GCC" = yes; then 12677 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"` 12678 else 12679 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 12680 fi 12681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12682 ;; 12683 12684dgux*) 12685 version_type=linux 12686 need_lib_prefix=no 12687 need_version=no 12688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12689 soname_spec='${libname}${release}${shared_ext}$major' 12690 shlibpath_var=LD_LIBRARY_PATH 12691 ;; 12692 12693freebsd1*) 12694 dynamic_linker=no 12695 ;; 12696 12697kfreebsd*-gnu) 12698 version_type=linux 12699 need_lib_prefix=no 12700 need_version=no 12701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12702 soname_spec='${libname}${release}${shared_ext}$major' 12703 shlibpath_var=LD_LIBRARY_PATH 12704 shlibpath_overrides_runpath=no 12705 hardcode_into_libs=yes 12706 dynamic_linker='GNU ld.so' 12707 ;; 12708 12709freebsd* | dragonfly*) 12710 # DragonFly does not have aout. When/if they implement a new 12711 # versioning mechanism, adjust this. 12712 if test -x /usr/bin/objformat; then 12713 objformat=`/usr/bin/objformat` 12714 else 12715 case $host_os in 12716 freebsd[123]*) objformat=aout ;; 12717 *) objformat=elf ;; 12718 esac 12719 fi 12720 version_type=freebsd-$objformat 12721 case $version_type in 12722 freebsd-elf*) 12723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12724 need_version=no 12725 need_lib_prefix=no 12726 ;; 12727 freebsd-*) 12728 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12729 need_version=yes 12730 ;; 12731 esac 12732 shlibpath_var=LD_LIBRARY_PATH 12733 case $host_os in 12734 freebsd2*) 12735 shlibpath_overrides_runpath=yes 12736 ;; 12737 freebsd3.[01]* | freebsdelf3.[01]*) 12738 shlibpath_overrides_runpath=yes 12739 hardcode_into_libs=yes 12740 ;; 12741 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12742 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12743 shlibpath_overrides_runpath=no 12744 hardcode_into_libs=yes 12745 ;; 12746 freebsd*) # from 4.6 on 12747 shlibpath_overrides_runpath=yes 12748 hardcode_into_libs=yes 12749 ;; 12750 esac 12751 ;; 12752 12753gnu*) 12754 version_type=linux 12755 need_lib_prefix=no 12756 need_version=no 12757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12758 soname_spec='${libname}${release}${shared_ext}$major' 12759 shlibpath_var=LD_LIBRARY_PATH 12760 hardcode_into_libs=yes 12761 ;; 12762 12763hpux9* | hpux10* | hpux11*) 12764 # Give a soname corresponding to the major version so that dld.sl refuses to 12765 # link against other versions. 12766 version_type=sunos 12767 need_lib_prefix=no 12768 need_version=no 12769 case $host_cpu in 12770 ia64*) 12771 shrext_cmds='.so' 12772 hardcode_into_libs=yes 12773 dynamic_linker="$host_os dld.so" 12774 shlibpath_var=LD_LIBRARY_PATH 12775 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12777 soname_spec='${libname}${release}${shared_ext}$major' 12778 if test "X$HPUX_IA64_MODE" = X32; then 12779 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12780 else 12781 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12782 fi 12783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12784 ;; 12785 hppa*64*) 12786 shrext_cmds='.sl' 12787 hardcode_into_libs=yes 12788 dynamic_linker="$host_os dld.sl" 12789 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12792 soname_spec='${libname}${release}${shared_ext}$major' 12793 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12795 ;; 12796 *) 12797 shrext_cmds='.sl' 12798 dynamic_linker="$host_os dld.sl" 12799 shlibpath_var=SHLIB_PATH 12800 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12802 soname_spec='${libname}${release}${shared_ext}$major' 12803 ;; 12804 esac 12805 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12806 postinstall_cmds='chmod 555 $lib' 12807 ;; 12808 12809interix3*) 12810 version_type=linux 12811 need_lib_prefix=no 12812 need_version=no 12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12814 soname_spec='${libname}${release}${shared_ext}$major' 12815 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12816 shlibpath_var=LD_LIBRARY_PATH 12817 shlibpath_overrides_runpath=no 12818 hardcode_into_libs=yes 12819 ;; 12820 12821irix5* | irix6* | nonstopux*) 12822 case $host_os in 12823 nonstopux*) version_type=nonstopux ;; 12824 *) 12825 if test "$lt_cv_prog_gnu_ld" = yes; then 12826 version_type=linux 12827 else 12828 version_type=irix 12829 fi ;; 12830 esac 12831 need_lib_prefix=no 12832 need_version=no 12833 soname_spec='${libname}${release}${shared_ext}$major' 12834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12835 case $host_os in 12836 irix5* | nonstopux*) 12837 libsuff= shlibsuff= 12838 ;; 12839 *) 12840 case $LD in # libtool.m4 will add one of these switches to LD 12841 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12842 libsuff= shlibsuff= libmagic=32-bit;; 12843 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12844 libsuff=32 shlibsuff=N32 libmagic=N32;; 12845 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12846 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12847 *) libsuff= shlibsuff= libmagic=never-match;; 12848 esac 12849 ;; 12850 esac 12851 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12852 shlibpath_overrides_runpath=no 12853 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12854 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12855 hardcode_into_libs=yes 12856 ;; 12857 12858# No shared lib support for Linux oldld, aout, or coff. 12859linux*oldld* | linux*aout* | linux*coff*) 12860 dynamic_linker=no 12861 ;; 12862 12863# This must be Linux ELF. 12864linux*) 12865 version_type=linux 12866 need_lib_prefix=no 12867 need_version=no 12868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12869 soname_spec='${libname}${release}${shared_ext}$major' 12870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12871 shlibpath_var=LD_LIBRARY_PATH 12872 shlibpath_overrides_runpath=no 12873 # This implies no fast_install, which is unacceptable. 12874 # Some rework will be needed to allow for fast_install 12875 # before this can be enabled. 12876 hardcode_into_libs=yes 12877 12878 # Append ld.so.conf contents to the search path 12879 if test -f /etc/ld.so.conf; then 12880 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' ' '` 12881 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12882 fi 12883 12884 # We used to test for /lib/ld.so.1 and disable shared libraries on 12885 # powerpc, because MkLinux only supported shared libraries with the 12886 # GNU dynamic linker. Since this was broken with cross compilers, 12887 # most powerpc-linux boxes support dynamic linking these days and 12888 # people can always --disable-shared, the test was removed, and we 12889 # assume the GNU/Linux dynamic linker is in use. 12890 dynamic_linker='GNU/Linux ld.so' 12891 ;; 12892 12893knetbsd*-gnu) 12894 version_type=linux 12895 need_lib_prefix=no 12896 need_version=no 12897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12898 soname_spec='${libname}${release}${shared_ext}$major' 12899 shlibpath_var=LD_LIBRARY_PATH 12900 shlibpath_overrides_runpath=no 12901 hardcode_into_libs=yes 12902 dynamic_linker='GNU ld.so' 12903 ;; 12904 12905netbsd*) 12906 version_type=sunos 12907 need_lib_prefix=no 12908 need_version=no 12909 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12912 dynamic_linker='NetBSD (a.out) ld.so' 12913 else 12914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12915 soname_spec='${libname}${release}${shared_ext}$major' 12916 dynamic_linker='NetBSD ld.elf_so' 12917 fi 12918 shlibpath_var=LD_LIBRARY_PATH 12919 shlibpath_overrides_runpath=yes 12920 hardcode_into_libs=yes 12921 ;; 12922 12923newsos6) 12924 version_type=linux 12925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12926 shlibpath_var=LD_LIBRARY_PATH 12927 shlibpath_overrides_runpath=yes 12928 ;; 12929 12930nto-qnx*) 12931 version_type=linux 12932 need_lib_prefix=no 12933 need_version=no 12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12935 soname_spec='${libname}${release}${shared_ext}$major' 12936 shlibpath_var=LD_LIBRARY_PATH 12937 shlibpath_overrides_runpath=yes 12938 ;; 12939 12940openbsd*) 12941 version_type=sunos 12942 sys_lib_dlsearch_path_spec="/usr/lib" 12943 need_lib_prefix=no 12944 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12945 case $host_os in 12946 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12947 *) need_version=no ;; 12948 esac 12949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12951 shlibpath_var=LD_LIBRARY_PATH 12952 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12953 case $host_os in 12954 openbsd2.[89] | openbsd2.[89].*) 12955 shlibpath_overrides_runpath=no 12956 ;; 12957 *) 12958 shlibpath_overrides_runpath=yes 12959 ;; 12960 esac 12961 else 12962 shlibpath_overrides_runpath=yes 12963 fi 12964 ;; 12965 12966os2*) 12967 libname_spec='$name' 12968 shrext_cmds=".dll" 12969 need_lib_prefix=no 12970 library_names_spec='$libname${shared_ext} $libname.a' 12971 dynamic_linker='OS/2 ld.exe' 12972 shlibpath_var=LIBPATH 12973 ;; 12974 12975osf3* | osf4* | osf5*) 12976 version_type=osf 12977 need_lib_prefix=no 12978 need_version=no 12979 soname_spec='${libname}${release}${shared_ext}$major' 12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12981 shlibpath_var=LD_LIBRARY_PATH 12982 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12983 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12984 ;; 12985 12986solaris*) 12987 version_type=linux 12988 need_lib_prefix=no 12989 need_version=no 12990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12991 soname_spec='${libname}${release}${shared_ext}$major' 12992 shlibpath_var=LD_LIBRARY_PATH 12993 shlibpath_overrides_runpath=yes 12994 hardcode_into_libs=yes 12995 # ldd complains unless libraries are executable 12996 postinstall_cmds='chmod +x $lib' 12997 ;; 12998 12999sunos4*) 13000 version_type=sunos 13001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13002 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13003 shlibpath_var=LD_LIBRARY_PATH 13004 shlibpath_overrides_runpath=yes 13005 if test "$with_gnu_ld" = yes; then 13006 need_lib_prefix=no 13007 fi 13008 need_version=yes 13009 ;; 13010 13011sysv4 | sysv4.3*) 13012 version_type=linux 13013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13014 soname_spec='${libname}${release}${shared_ext}$major' 13015 shlibpath_var=LD_LIBRARY_PATH 13016 case $host_vendor in 13017 sni) 13018 shlibpath_overrides_runpath=no 13019 need_lib_prefix=no 13020 export_dynamic_flag_spec='${wl}-Blargedynsym' 13021 runpath_var=LD_RUN_PATH 13022 ;; 13023 siemens) 13024 need_lib_prefix=no 13025 ;; 13026 motorola) 13027 need_lib_prefix=no 13028 need_version=no 13029 shlibpath_overrides_runpath=no 13030 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13031 ;; 13032 esac 13033 ;; 13034 13035sysv4*MP*) 13036 if test -d /usr/nec ;then 13037 version_type=linux 13038 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13039 soname_spec='$libname${shared_ext}.$major' 13040 shlibpath_var=LD_LIBRARY_PATH 13041 fi 13042 ;; 13043 13044sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13045 version_type=freebsd-elf 13046 need_lib_prefix=no 13047 need_version=no 13048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13049 soname_spec='${libname}${release}${shared_ext}$major' 13050 shlibpath_var=LD_LIBRARY_PATH 13051 hardcode_into_libs=yes 13052 if test "$with_gnu_ld" = yes; then 13053 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13054 shlibpath_overrides_runpath=no 13055 else 13056 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13057 shlibpath_overrides_runpath=yes 13058 case $host_os in 13059 sco3.2v5*) 13060 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13061 ;; 13062 esac 13063 fi 13064 sys_lib_dlsearch_path_spec='/usr/lib' 13065 ;; 13066 13067uts4*) 13068 version_type=linux 13069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13070 soname_spec='${libname}${release}${shared_ext}$major' 13071 shlibpath_var=LD_LIBRARY_PATH 13072 ;; 13073 13074*) 13075 dynamic_linker=no 13076 ;; 13077esac 13078{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13079echo "${ECHO_T}$dynamic_linker" >&6; } 13080test "$dynamic_linker" = no && can_build_shared=no 13081 13082variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13083if test "$GCC" = yes; then 13084 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13085fi 13086 13087{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13088echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13089hardcode_action_CXX= 13090if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13091 test -n "$runpath_var_CXX" || \ 13092 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13093 13094 # We can hardcode non-existant directories. 13095 if test "$hardcode_direct_CXX" != no && 13096 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13097 # have to relink, otherwise we might link with an installed library 13098 # when we should be linking with a yet-to-be-installed one 13099 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13100 test "$hardcode_minus_L_CXX" != no; then 13101 # Linking always hardcodes the temporary library directory. 13102 hardcode_action_CXX=relink 13103 else 13104 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13105 hardcode_action_CXX=immediate 13106 fi 13107else 13108 # We cannot hardcode anything, or else we can only hardcode existing 13109 # directories. 13110 hardcode_action_CXX=unsupported 13111fi 13112{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13113echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13114 13115if test "$hardcode_action_CXX" = relink; then 13116 # Fast installation is not supported 13117 enable_fast_install=no 13118elif test "$shlibpath_overrides_runpath" = yes || 13119 test "$enable_shared" = no; then 13120 # Fast installation is not necessary 13121 enable_fast_install=needless 13122fi 13123 13124 13125# The else clause should only fire when bootstrapping the 13126# libtool distribution, otherwise you forgot to ship ltmain.sh 13127# with your package, and you will get complaints that there are 13128# no rules to generate ltmain.sh. 13129if test -f "$ltmain"; then 13130 # See if we are running on zsh, and set the options which allow our commands through 13131 # without removal of \ escapes. 13132 if test -n "${ZSH_VERSION+set}" ; then 13133 setopt NO_GLOB_SUBST 13134 fi 13135 # Now quote all the things that may contain metacharacters while being 13136 # careful not to overquote the AC_SUBSTed values. We take copies of the 13137 # variables and quote the copies for generation of the libtool script. 13138 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13139 SED SHELL STRIP \ 13140 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13141 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13142 deplibs_check_method reload_flag reload_cmds need_locks \ 13143 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13144 lt_cv_sys_global_symbol_to_c_name_address \ 13145 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13146 old_postinstall_cmds old_postuninstall_cmds \ 13147 compiler_CXX \ 13148 CC_CXX \ 13149 LD_CXX \ 13150 lt_prog_compiler_wl_CXX \ 13151 lt_prog_compiler_pic_CXX \ 13152 lt_prog_compiler_static_CXX \ 13153 lt_prog_compiler_no_builtin_flag_CXX \ 13154 export_dynamic_flag_spec_CXX \ 13155 thread_safe_flag_spec_CXX \ 13156 whole_archive_flag_spec_CXX \ 13157 enable_shared_with_static_runtimes_CXX \ 13158 old_archive_cmds_CXX \ 13159 old_archive_from_new_cmds_CXX \ 13160 predep_objects_CXX \ 13161 postdep_objects_CXX \ 13162 predeps_CXX \ 13163 postdeps_CXX \ 13164 compiler_lib_search_path_CXX \ 13165 archive_cmds_CXX \ 13166 archive_expsym_cmds_CXX \ 13167 postinstall_cmds_CXX \ 13168 postuninstall_cmds_CXX \ 13169 old_archive_from_expsyms_cmds_CXX \ 13170 allow_undefined_flag_CXX \ 13171 no_undefined_flag_CXX \ 13172 export_symbols_cmds_CXX \ 13173 hardcode_libdir_flag_spec_CXX \ 13174 hardcode_libdir_flag_spec_ld_CXX \ 13175 hardcode_libdir_separator_CXX \ 13176 hardcode_automatic_CXX \ 13177 module_cmds_CXX \ 13178 module_expsym_cmds_CXX \ 13179 lt_cv_prog_compiler_c_o_CXX \ 13180 exclude_expsyms_CXX \ 13181 include_expsyms_CXX; do 13182 13183 case $var in 13184 old_archive_cmds_CXX | \ 13185 old_archive_from_new_cmds_CXX | \ 13186 archive_cmds_CXX | \ 13187 archive_expsym_cmds_CXX | \ 13188 module_cmds_CXX | \ 13189 module_expsym_cmds_CXX | \ 13190 old_archive_from_expsyms_cmds_CXX | \ 13191 export_symbols_cmds_CXX | \ 13192 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13193 postinstall_cmds | postuninstall_cmds | \ 13194 old_postinstall_cmds | old_postuninstall_cmds | \ 13195 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13196 # Double-quote double-evaled strings. 13197 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13198 ;; 13199 *) 13200 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13201 ;; 13202 esac 13203 done 13204 13205 case $lt_echo in 13206 *'\$0 --fallback-echo"') 13207 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13208 ;; 13209 esac 13210 13211cfgfile="$ofile" 13212 13213 cat <<__EOF__ >> "$cfgfile" 13214# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13215 13216# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13217 13218# Shell to use when invoking shell scripts. 13219SHELL=$lt_SHELL 13220 13221# Whether or not to build shared libraries. 13222build_libtool_libs=$enable_shared 13223 13224# Whether or not to build static libraries. 13225build_old_libs=$enable_static 13226 13227# Whether or not to add -lc for building shared libraries. 13228build_libtool_need_lc=$archive_cmds_need_lc_CXX 13229 13230# Whether or not to disallow shared libs when runtime libs are static 13231allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13232 13233# Whether or not to optimize for fast installation. 13234fast_install=$enable_fast_install 13235 13236# The host system. 13237host_alias=$host_alias 13238host=$host 13239host_os=$host_os 13240 13241# The build system. 13242build_alias=$build_alias 13243build=$build 13244build_os=$build_os 13245 13246# An echo program that does not interpret backslashes. 13247echo=$lt_echo 13248 13249# The archiver. 13250AR=$lt_AR 13251AR_FLAGS=$lt_AR_FLAGS 13252 13253# A C compiler. 13254LTCC=$lt_LTCC 13255 13256# LTCC compiler flags. 13257LTCFLAGS=$lt_LTCFLAGS 13258 13259# A language-specific compiler. 13260CC=$lt_compiler_CXX 13261 13262# Is the compiler the GNU C compiler? 13263with_gcc=$GCC_CXX 13264 13265# An ERE matcher. 13266EGREP=$lt_EGREP 13267 13268# The linker used to build libraries. 13269LD=$lt_LD_CXX 13270 13271# Whether we need hard or soft links. 13272LN_S=$lt_LN_S 13273 13274# A BSD-compatible nm program. 13275NM=$lt_NM 13276 13277# A symbol stripping program 13278STRIP=$lt_STRIP 13279 13280# Used to examine libraries when file_magic_cmd begins "file" 13281MAGIC_CMD=$MAGIC_CMD 13282 13283# Used on cygwin: DLL creation program. 13284DLLTOOL="$DLLTOOL" 13285 13286# Used on cygwin: object dumper. 13287OBJDUMP="$OBJDUMP" 13288 13289# Used on cygwin: assembler. 13290AS="$AS" 13291 13292# The name of the directory that contains temporary libtool files. 13293objdir=$objdir 13294 13295# How to create reloadable object files. 13296reload_flag=$lt_reload_flag 13297reload_cmds=$lt_reload_cmds 13298 13299# How to pass a linker flag through the compiler. 13300wl=$lt_lt_prog_compiler_wl_CXX 13301 13302# Object file suffix (normally "o"). 13303objext="$ac_objext" 13304 13305# Old archive suffix (normally "a"). 13306libext="$libext" 13307 13308# Shared library suffix (normally ".so"). 13309shrext_cmds='$shrext_cmds' 13310 13311# Executable file suffix (normally ""). 13312exeext="$exeext" 13313 13314# Additional compiler flags for building library objects. 13315pic_flag=$lt_lt_prog_compiler_pic_CXX 13316pic_mode=$pic_mode 13317 13318# What is the maximum length of a command? 13319max_cmd_len=$lt_cv_sys_max_cmd_len 13320 13321# Does compiler simultaneously support -c and -o options? 13322compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13323 13324# Must we lock files when doing compilation? 13325need_locks=$lt_need_locks 13326 13327# Do we need the lib prefix for modules? 13328need_lib_prefix=$need_lib_prefix 13329 13330# Do we need a version for libraries? 13331need_version=$need_version 13332 13333# Whether dlopen is supported. 13334dlopen_support=$enable_dlopen 13335 13336# Whether dlopen of programs is supported. 13337dlopen_self=$enable_dlopen_self 13338 13339# Whether dlopen of statically linked programs is supported. 13340dlopen_self_static=$enable_dlopen_self_static 13341 13342# Compiler flag to prevent dynamic linking. 13343link_static_flag=$lt_lt_prog_compiler_static_CXX 13344 13345# Compiler flag to turn off builtin functions. 13346no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13347 13348# Compiler flag to allow reflexive dlopens. 13349export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13350 13351# Compiler flag to generate shared objects directly from archives. 13352whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13353 13354# Compiler flag to generate thread-safe objects. 13355thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13356 13357# Library versioning type. 13358version_type=$version_type 13359 13360# Format of library name prefix. 13361libname_spec=$lt_libname_spec 13362 13363# List of archive names. First name is the real one, the rest are links. 13364# The last name is the one that the linker finds with -lNAME. 13365library_names_spec=$lt_library_names_spec 13366 13367# The coded name of the library, if different from the real name. 13368soname_spec=$lt_soname_spec 13369 13370# Commands used to build and install an old-style archive. 13371RANLIB=$lt_RANLIB 13372old_archive_cmds=$lt_old_archive_cmds_CXX 13373old_postinstall_cmds=$lt_old_postinstall_cmds 13374old_postuninstall_cmds=$lt_old_postuninstall_cmds 13375 13376# Create an old-style archive from a shared archive. 13377old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13378 13379# Create a temporary old-style archive to link instead of a shared archive. 13380old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13381 13382# Commands used to build and install a shared archive. 13383archive_cmds=$lt_archive_cmds_CXX 13384archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13385postinstall_cmds=$lt_postinstall_cmds 13386postuninstall_cmds=$lt_postuninstall_cmds 13387 13388# Commands used to build a loadable module (assumed same as above if empty) 13389module_cmds=$lt_module_cmds_CXX 13390module_expsym_cmds=$lt_module_expsym_cmds_CXX 13391 13392# Commands to strip libraries. 13393old_striplib=$lt_old_striplib 13394striplib=$lt_striplib 13395 13396# Dependencies to place before the objects being linked to create a 13397# shared library. 13398predep_objects=$lt_predep_objects_CXX 13399 13400# Dependencies to place after the objects being linked to create a 13401# shared library. 13402postdep_objects=$lt_postdep_objects_CXX 13403 13404# Dependencies to place before the objects being linked to create a 13405# shared library. 13406predeps=$lt_predeps_CXX 13407 13408# Dependencies to place after the objects being linked to create a 13409# shared library. 13410postdeps=$lt_postdeps_CXX 13411 13412# The library search path used internally by the compiler when linking 13413# a shared library. 13414compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13415 13416# Method to check whether dependent libraries are shared objects. 13417deplibs_check_method=$lt_deplibs_check_method 13418 13419# Command to use when deplibs_check_method == file_magic. 13420file_magic_cmd=$lt_file_magic_cmd 13421 13422# Flag that allows shared libraries with undefined symbols to be built. 13423allow_undefined_flag=$lt_allow_undefined_flag_CXX 13424 13425# Flag that forces no undefined symbols. 13426no_undefined_flag=$lt_no_undefined_flag_CXX 13427 13428# Commands used to finish a libtool library installation in a directory. 13429finish_cmds=$lt_finish_cmds 13430 13431# Same as above, but a single script fragment to be evaled but not shown. 13432finish_eval=$lt_finish_eval 13433 13434# Take the output of nm and produce a listing of raw symbols and C names. 13435global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13436 13437# Transform the output of nm in a proper C declaration 13438global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13439 13440# Transform the output of nm in a C name address pair 13441global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13442 13443# This is the shared library runtime path variable. 13444runpath_var=$runpath_var 13445 13446# This is the shared library path variable. 13447shlibpath_var=$shlibpath_var 13448 13449# Is shlibpath searched before the hard-coded library search path? 13450shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13451 13452# How to hardcode a shared library path into an executable. 13453hardcode_action=$hardcode_action_CXX 13454 13455# Whether we should hardcode library paths into libraries. 13456hardcode_into_libs=$hardcode_into_libs 13457 13458# Flag to hardcode \$libdir into a binary during linking. 13459# This must work even if \$libdir does not exist. 13460hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13461 13462# If ld is used when linking, flag to hardcode \$libdir into 13463# a binary during linking. This must work even if \$libdir does 13464# not exist. 13465hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13466 13467# Whether we need a single -rpath flag with a separated argument. 13468hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13469 13470# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13471# resulting binary. 13472hardcode_direct=$hardcode_direct_CXX 13473 13474# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13475# resulting binary. 13476hardcode_minus_L=$hardcode_minus_L_CXX 13477 13478# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13479# the resulting binary. 13480hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13481 13482# Set to yes if building a shared library automatically hardcodes DIR into the library 13483# and all subsequent libraries and executables linked against it. 13484hardcode_automatic=$hardcode_automatic_CXX 13485 13486# Variables whose values should be saved in libtool wrapper scripts and 13487# restored at relink time. 13488variables_saved_for_relink="$variables_saved_for_relink" 13489 13490# Whether libtool must link a program against all its dependency libraries. 13491link_all_deplibs=$link_all_deplibs_CXX 13492 13493# Compile-time system search path for libraries 13494sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13495 13496# Run-time system search path for libraries 13497sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13498 13499# Fix the shell variable \$srcfile for the compiler. 13500fix_srcfile_path="$fix_srcfile_path_CXX" 13501 13502# Set to yes if exported symbols are required. 13503always_export_symbols=$always_export_symbols_CXX 13504 13505# The commands to list exported symbols. 13506export_symbols_cmds=$lt_export_symbols_cmds_CXX 13507 13508# The commands to extract the exported symbol list from a shared archive. 13509extract_expsyms_cmds=$lt_extract_expsyms_cmds 13510 13511# Symbols that should not be listed in the preloaded symbols. 13512exclude_expsyms=$lt_exclude_expsyms_CXX 13513 13514# Symbols that must always be exported. 13515include_expsyms=$lt_include_expsyms_CXX 13516 13517# ### END LIBTOOL TAG CONFIG: $tagname 13518 13519__EOF__ 13520 13521 13522else 13523 # If there is no Makefile yet, we rely on a make rule to execute 13524 # `config.status --recheck' to rerun these tests and create the 13525 # libtool script then. 13526 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13527 if test -f "$ltmain_in"; then 13528 test -f Makefile && make "$ltmain" 13529 fi 13530fi 13531 13532 13533ac_ext=c 13534ac_cpp='$CPP $CPPFLAGS' 13535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13537ac_compiler_gnu=$ac_cv_c_compiler_gnu 13538 13539CC=$lt_save_CC 13540LDCXX=$LD 13541LD=$lt_save_LD 13542GCC=$lt_save_GCC 13543with_gnu_ldcxx=$with_gnu_ld 13544with_gnu_ld=$lt_save_with_gnu_ld 13545lt_cv_path_LDCXX=$lt_cv_path_LD 13546lt_cv_path_LD=$lt_save_path_LD 13547lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13548lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13549 13550 else 13551 tagname="" 13552 fi 13553 ;; 13554 13555 F77) 13556 if test -n "$F77" && test "X$F77" != "Xno"; then 13557 13558ac_ext=f 13559ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13560ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13561ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13562 13563 13564archive_cmds_need_lc_F77=no 13565allow_undefined_flag_F77= 13566always_export_symbols_F77=no 13567archive_expsym_cmds_F77= 13568export_dynamic_flag_spec_F77= 13569hardcode_direct_F77=no 13570hardcode_libdir_flag_spec_F77= 13571hardcode_libdir_flag_spec_ld_F77= 13572hardcode_libdir_separator_F77= 13573hardcode_minus_L_F77=no 13574hardcode_automatic_F77=no 13575module_cmds_F77= 13576module_expsym_cmds_F77= 13577link_all_deplibs_F77=unknown 13578old_archive_cmds_F77=$old_archive_cmds 13579no_undefined_flag_F77= 13580whole_archive_flag_spec_F77= 13581enable_shared_with_static_runtimes_F77=no 13582 13583# Source file extension for f77 test sources. 13584ac_ext=f 13585 13586# Object file extension for compiled f77 test sources. 13587objext=o 13588objext_F77=$objext 13589 13590# Code to be used in simple compile tests 13591lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13592 13593# Code to be used in simple link tests 13594lt_simple_link_test_code=" program t\n end\n" 13595 13596# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13597 13598# If no C compiler was specified, use CC. 13599LTCC=${LTCC-"$CC"} 13600 13601# If no C compiler flags were specified, use CFLAGS. 13602LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13603 13604# Allow CC to be a program name with arguments. 13605compiler=$CC 13606 13607 13608# save warnings/boilerplate of simple test code 13609ac_outfile=conftest.$ac_objext 13610printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13611eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13612_lt_compiler_boilerplate=`cat conftest.err` 13613$rm conftest* 13614 13615ac_outfile=conftest.$ac_objext 13616printf "$lt_simple_link_test_code" >conftest.$ac_ext 13617eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13618_lt_linker_boilerplate=`cat conftest.err` 13619$rm conftest* 13620 13621 13622# Allow CC to be a program name with arguments. 13623lt_save_CC="$CC" 13624CC=${F77-"f77"} 13625compiler=$CC 13626compiler_F77=$CC 13627for cc_temp in $compiler""; do 13628 case $cc_temp in 13629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13631 \-*) ;; 13632 *) break;; 13633 esac 13634done 13635cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13636 13637 13638{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13639echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13640{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13641echo "${ECHO_T}$can_build_shared" >&6; } 13642 13643{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13644echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13645test "$can_build_shared" = "no" && enable_shared=no 13646 13647# On AIX, shared libraries and static libraries use the same namespace, and 13648# are all built from PIC. 13649case $host_os in 13650aix3*) 13651 test "$enable_shared" = yes && enable_static=no 13652 if test -n "$RANLIB"; then 13653 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13654 postinstall_cmds='$RANLIB $lib' 13655 fi 13656 ;; 13657aix4* | aix5*) 13658 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13659 test "$enable_shared" = yes && enable_static=no 13660 fi 13661 ;; 13662esac 13663{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13664echo "${ECHO_T}$enable_shared" >&6; } 13665 13666{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13667echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13668# Make sure either enable_shared or enable_static is yes. 13669test "$enable_shared" = yes || enable_static=yes 13670{ echo "$as_me:$LINENO: result: $enable_static" >&5 13671echo "${ECHO_T}$enable_static" >&6; } 13672 13673GCC_F77="$G77" 13674LD_F77="$LD" 13675 13676lt_prog_compiler_wl_F77= 13677lt_prog_compiler_pic_F77= 13678lt_prog_compiler_static_F77= 13679 13680{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13681echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13682 13683 if test "$GCC" = yes; then 13684 lt_prog_compiler_wl_F77='-Wl,' 13685 lt_prog_compiler_static_F77='-static' 13686 13687 case $host_os in 13688 aix*) 13689 # All AIX code is PIC. 13690 if test "$host_cpu" = ia64; then 13691 # AIX 5 now supports IA64 processor 13692 lt_prog_compiler_static_F77='-Bstatic' 13693 fi 13694 ;; 13695 13696 amigaos*) 13697 # FIXME: we need at least 68020 code to build shared libraries, but 13698 # adding the `-m68020' flag to GCC prevents building anything better, 13699 # like `-m68040'. 13700 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13701 ;; 13702 13703 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13704 # PIC is the default for these OSes. 13705 ;; 13706 13707 mingw* | pw32* | os2*) 13708 # This hack is so that the source file can tell whether it is being 13709 # built for inclusion in a dll (and should export symbols for example). 13710 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13711 ;; 13712 13713 darwin* | rhapsody*) 13714 # PIC is the default on this platform 13715 # Common symbols not allowed in MH_DYLIB files 13716 lt_prog_compiler_pic_F77='-fno-common' 13717 ;; 13718 13719 interix3*) 13720 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13721 # Instead, we relocate shared libraries at runtime. 13722 ;; 13723 13724 msdosdjgpp*) 13725 # Just because we use GCC doesn't mean we suddenly get shared libraries 13726 # on systems that don't support them. 13727 lt_prog_compiler_can_build_shared_F77=no 13728 enable_shared=no 13729 ;; 13730 13731 sysv4*MP*) 13732 if test -d /usr/nec; then 13733 lt_prog_compiler_pic_F77=-Kconform_pic 13734 fi 13735 ;; 13736 13737 hpux*) 13738 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13739 # not for PA HP-UX. 13740 case $host_cpu in 13741 hppa*64*|ia64*) 13742 # +Z the default 13743 ;; 13744 *) 13745 lt_prog_compiler_pic_F77='-fPIC' 13746 ;; 13747 esac 13748 ;; 13749 13750 *) 13751 lt_prog_compiler_pic_F77='-fPIC' 13752 ;; 13753 esac 13754 else 13755 # PORTME Check for flag to pass linker flags through the system compiler. 13756 case $host_os in 13757 aix*) 13758 lt_prog_compiler_wl_F77='-Wl,' 13759 if test "$host_cpu" = ia64; then 13760 # AIX 5 now supports IA64 processor 13761 lt_prog_compiler_static_F77='-Bstatic' 13762 else 13763 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13764 fi 13765 ;; 13766 darwin*) 13767 # PIC is the default on this platform 13768 # Common symbols not allowed in MH_DYLIB files 13769 case $cc_basename in 13770 xlc*) 13771 lt_prog_compiler_pic_F77='-qnocommon' 13772 lt_prog_compiler_wl_F77='-Wl,' 13773 ;; 13774 esac 13775 ;; 13776 13777 mingw* | pw32* | os2*) 13778 # This hack is so that the source file can tell whether it is being 13779 # built for inclusion in a dll (and should export symbols for example). 13780 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13781 ;; 13782 13783 hpux9* | hpux10* | hpux11*) 13784 lt_prog_compiler_wl_F77='-Wl,' 13785 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13786 # not for PA HP-UX. 13787 case $host_cpu in 13788 hppa*64*|ia64*) 13789 # +Z the default 13790 ;; 13791 *) 13792 lt_prog_compiler_pic_F77='+Z' 13793 ;; 13794 esac 13795 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13796 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13797 ;; 13798 13799 irix5* | irix6* | nonstopux*) 13800 lt_prog_compiler_wl_F77='-Wl,' 13801 # PIC (with -KPIC) is the default. 13802 lt_prog_compiler_static_F77='-non_shared' 13803 ;; 13804 13805 newsos6) 13806 lt_prog_compiler_pic_F77='-KPIC' 13807 lt_prog_compiler_static_F77='-Bstatic' 13808 ;; 13809 13810 linux*) 13811 case $cc_basename in 13812 icc* | ecc*) 13813 lt_prog_compiler_wl_F77='-Wl,' 13814 lt_prog_compiler_pic_F77='-KPIC' 13815 lt_prog_compiler_static_F77='-static' 13816 ;; 13817 pgcc* | pgf77* | pgf90* | pgf95*) 13818 # Portland Group compilers (*not* the Pentium gcc compiler, 13819 # which looks to be a dead project) 13820 lt_prog_compiler_wl_F77='-Wl,' 13821 lt_prog_compiler_pic_F77='-fpic' 13822 lt_prog_compiler_static_F77='-Bstatic' 13823 ;; 13824 ccc*) 13825 lt_prog_compiler_wl_F77='-Wl,' 13826 # All Alpha code is PIC. 13827 lt_prog_compiler_static_F77='-non_shared' 13828 ;; 13829 esac 13830 ;; 13831 13832 osf3* | osf4* | osf5*) 13833 lt_prog_compiler_wl_F77='-Wl,' 13834 # All OSF/1 code is PIC. 13835 lt_prog_compiler_static_F77='-non_shared' 13836 ;; 13837 13838 solaris*) 13839 lt_prog_compiler_pic_F77='-KPIC' 13840 lt_prog_compiler_static_F77='-Bstatic' 13841 case $cc_basename in 13842 f77* | f90* | f95*) 13843 lt_prog_compiler_wl_F77='-Qoption ld ';; 13844 *) 13845 lt_prog_compiler_wl_F77='-Wl,';; 13846 esac 13847 ;; 13848 13849 sunos4*) 13850 lt_prog_compiler_wl_F77='-Qoption ld ' 13851 lt_prog_compiler_pic_F77='-PIC' 13852 lt_prog_compiler_static_F77='-Bstatic' 13853 ;; 13854 13855 sysv4 | sysv4.2uw2* | sysv4.3*) 13856 lt_prog_compiler_wl_F77='-Wl,' 13857 lt_prog_compiler_pic_F77='-KPIC' 13858 lt_prog_compiler_static_F77='-Bstatic' 13859 ;; 13860 13861 sysv4*MP*) 13862 if test -d /usr/nec ;then 13863 lt_prog_compiler_pic_F77='-Kconform_pic' 13864 lt_prog_compiler_static_F77='-Bstatic' 13865 fi 13866 ;; 13867 13868 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13869 lt_prog_compiler_wl_F77='-Wl,' 13870 lt_prog_compiler_pic_F77='-KPIC' 13871 lt_prog_compiler_static_F77='-Bstatic' 13872 ;; 13873 13874 unicos*) 13875 lt_prog_compiler_wl_F77='-Wl,' 13876 lt_prog_compiler_can_build_shared_F77=no 13877 ;; 13878 13879 uts4*) 13880 lt_prog_compiler_pic_F77='-pic' 13881 lt_prog_compiler_static_F77='-Bstatic' 13882 ;; 13883 13884 *) 13885 lt_prog_compiler_can_build_shared_F77=no 13886 ;; 13887 esac 13888 fi 13889 13890{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13891echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13892 13893# 13894# Check to make sure the PIC flag actually works. 13895# 13896if test -n "$lt_prog_compiler_pic_F77"; then 13897 13898{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13899echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13900if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13901 echo $ECHO_N "(cached) $ECHO_C" >&6 13902else 13903 lt_prog_compiler_pic_works_F77=no 13904 ac_outfile=conftest.$ac_objext 13905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13906 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13907 # Insert the option either (1) after the last *FLAGS variable, or 13908 # (2) before a word containing "conftest.", or (3) at the end. 13909 # Note that $ac_compile itself does not contain backslashes and begins 13910 # with a dollar sign (not a hyphen), so the echo should work correctly. 13911 # The option is referenced via a variable to avoid confusing sed. 13912 lt_compile=`echo "$ac_compile" | $SED \ 13913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13915 -e 's:$: $lt_compiler_flag:'` 13916 (eval echo "\"\$as_me:13916: $lt_compile\"" >&5) 13917 (eval "$lt_compile" 2>conftest.err) 13918 ac_status=$? 13919 cat conftest.err >&5 13920 echo "$as_me:13920: \$? = $ac_status" >&5 13921 if (exit $ac_status) && test -s "$ac_outfile"; then 13922 # The compiler can only warn and ignore the option if not recognized 13923 # So say no if there are warnings other than the usual output. 13924 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13927 lt_prog_compiler_pic_works_F77=yes 13928 fi 13929 fi 13930 $rm conftest* 13931 13932fi 13933{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13934echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 13935 13936if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13937 case $lt_prog_compiler_pic_F77 in 13938 "" | " "*) ;; 13939 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13940 esac 13941else 13942 lt_prog_compiler_pic_F77= 13943 lt_prog_compiler_can_build_shared_F77=no 13944fi 13945 13946fi 13947case $host_os in 13948 # For platforms which do not support PIC, -DPIC is meaningless: 13949 *djgpp*) 13950 lt_prog_compiler_pic_F77= 13951 ;; 13952 *) 13953 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13954 ;; 13955esac 13956 13957# 13958# Check to make sure the static flag actually works. 13959# 13960wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 13961{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13962echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13963if test "${lt_prog_compiler_static_works_F77+set}" = set; then 13964 echo $ECHO_N "(cached) $ECHO_C" >&6 13965else 13966 lt_prog_compiler_static_works_F77=no 13967 save_LDFLAGS="$LDFLAGS" 13968 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13969 printf "$lt_simple_link_test_code" > conftest.$ac_ext 13970 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13971 # The linker can only warn and ignore the option if not recognized 13972 # So say no if there are warnings 13973 if test -s conftest.err; then 13974 # Append any errors to the config.log. 13975 cat conftest.err 1>&5 13976 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13978 if diff conftest.exp conftest.er2 >/dev/null; then 13979 lt_prog_compiler_static_works_F77=yes 13980 fi 13981 else 13982 lt_prog_compiler_static_works_F77=yes 13983 fi 13984 fi 13985 $rm conftest* 13986 LDFLAGS="$save_LDFLAGS" 13987 13988fi 13989{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 13990echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 13991 13992if test x"$lt_prog_compiler_static_works_F77" = xyes; then 13993 : 13994else 13995 lt_prog_compiler_static_F77= 13996fi 13997 13998 13999{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14000echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14001if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14002 echo $ECHO_N "(cached) $ECHO_C" >&6 14003else 14004 lt_cv_prog_compiler_c_o_F77=no 14005 $rm -r conftest 2>/dev/null 14006 mkdir conftest 14007 cd conftest 14008 mkdir out 14009 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14010 14011 lt_compiler_flag="-o out/conftest2.$ac_objext" 14012 # Insert the option either (1) after the last *FLAGS variable, or 14013 # (2) before a word containing "conftest.", or (3) at the end. 14014 # Note that $ac_compile itself does not contain backslashes and begins 14015 # with a dollar sign (not a hyphen), so the echo should work correctly. 14016 lt_compile=`echo "$ac_compile" | $SED \ 14017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14019 -e 's:$: $lt_compiler_flag:'` 14020 (eval echo "\"\$as_me:14020: $lt_compile\"" >&5) 14021 (eval "$lt_compile" 2>out/conftest.err) 14022 ac_status=$? 14023 cat out/conftest.err >&5 14024 echo "$as_me:14024: \$? = $ac_status" >&5 14025 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14026 then 14027 # The compiler can only warn and ignore the option if not recognized 14028 # So say no if there are warnings 14029 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14032 lt_cv_prog_compiler_c_o_F77=yes 14033 fi 14034 fi 14035 chmod u+w . 2>&5 14036 $rm conftest* 14037 # SGI C++ compiler will create directory out/ii_files/ for 14038 # template instantiation 14039 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14040 $rm out/* && rmdir out 14041 cd .. 14042 rmdir conftest 14043 $rm conftest* 14044 14045fi 14046{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14047echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14048 14049 14050hard_links="nottested" 14051if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14052 # do not overwrite the value of need_locks provided by the user 14053 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14054echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14055 hard_links=yes 14056 $rm conftest* 14057 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14058 touch conftest.a 14059 ln conftest.a conftest.b 2>&5 || hard_links=no 14060 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14061 { echo "$as_me:$LINENO: result: $hard_links" >&5 14062echo "${ECHO_T}$hard_links" >&6; } 14063 if test "$hard_links" = no; then 14064 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14065echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14066 need_locks=warn 14067 fi 14068else 14069 need_locks=no 14070fi 14071 14072{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14073echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14074 14075 runpath_var= 14076 allow_undefined_flag_F77= 14077 enable_shared_with_static_runtimes_F77=no 14078 archive_cmds_F77= 14079 archive_expsym_cmds_F77= 14080 old_archive_From_new_cmds_F77= 14081 old_archive_from_expsyms_cmds_F77= 14082 export_dynamic_flag_spec_F77= 14083 whole_archive_flag_spec_F77= 14084 thread_safe_flag_spec_F77= 14085 hardcode_libdir_flag_spec_F77= 14086 hardcode_libdir_flag_spec_ld_F77= 14087 hardcode_libdir_separator_F77= 14088 hardcode_direct_F77=no 14089 hardcode_minus_L_F77=no 14090 hardcode_shlibpath_var_F77=unsupported 14091 link_all_deplibs_F77=unknown 14092 hardcode_automatic_F77=no 14093 module_cmds_F77= 14094 module_expsym_cmds_F77= 14095 always_export_symbols_F77=no 14096 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14097 # include_expsyms should be a list of space-separated symbols to be *always* 14098 # included in the symbol list 14099 include_expsyms_F77= 14100 # exclude_expsyms can be an extended regexp of symbols to exclude 14101 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14102 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14103 # as well as any symbol that contains `d'. 14104 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14105 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14106 # platforms (ab)use it in PIC code, but their linkers get confused if 14107 # the symbol is explicitly referenced. Since portable code cannot 14108 # rely on this symbol name, it's probably fine to never include it in 14109 # preloaded symbol tables. 14110 extract_expsyms_cmds= 14111 # Just being paranoid about ensuring that cc_basename is set. 14112 for cc_temp in $compiler""; do 14113 case $cc_temp in 14114 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14115 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14116 \-*) ;; 14117 *) break;; 14118 esac 14119done 14120cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14121 14122 case $host_os in 14123 cygwin* | mingw* | pw32*) 14124 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14125 # When not using gcc, we currently assume that we are using 14126 # Microsoft Visual C++. 14127 if test "$GCC" != yes; then 14128 with_gnu_ld=no 14129 fi 14130 ;; 14131 interix*) 14132 # we just hope/assume this is gcc and not c89 (= MSVC++) 14133 with_gnu_ld=yes 14134 ;; 14135 openbsd*) 14136 with_gnu_ld=no 14137 ;; 14138 esac 14139 14140 ld_shlibs_F77=yes 14141 if test "$with_gnu_ld" = yes; then 14142 # If archive_cmds runs LD, not CC, wlarc should be empty 14143 wlarc='${wl}' 14144 14145 # Set some defaults for GNU ld with shared library support. These 14146 # are reset later if shared libraries are not supported. Putting them 14147 # here allows them to be overridden if necessary. 14148 runpath_var=LD_RUN_PATH 14149 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14150 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14151 # ancient GNU ld didn't support --whole-archive et. al. 14152 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14153 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14154 else 14155 whole_archive_flag_spec_F77= 14156 fi 14157 supports_anon_versioning=no 14158 case `$LD -v 2>/dev/null` in 14159 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14160 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14161 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14162 *\ 2.11.*) ;; # other 2.11 versions 14163 *) supports_anon_versioning=yes ;; 14164 esac 14165 14166 # See if GNU ld supports shared libraries. 14167 case $host_os in 14168 aix3* | aix4* | aix5*) 14169 # On AIX/PPC, the GNU linker is very broken 14170 if test "$host_cpu" != ia64; then 14171 ld_shlibs_F77=no 14172 cat <<EOF 1>&2 14173 14174*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14175*** to be unable to reliably create shared libraries on AIX. 14176*** Therefore, libtool is disabling shared libraries support. If you 14177*** really care for shared libraries, you may want to modify your PATH 14178*** so that a non-GNU linker is found, and then restart. 14179 14180EOF 14181 fi 14182 ;; 14183 14184 amigaos*) 14185 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)' 14186 hardcode_libdir_flag_spec_F77='-L$libdir' 14187 hardcode_minus_L_F77=yes 14188 14189 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14190 # that the semantics of dynamic libraries on AmigaOS, at least up 14191 # to version 4, is to share data among multiple programs linked 14192 # with the same dynamic library. Since this doesn't match the 14193 # behavior of shared libraries on other platforms, we can't use 14194 # them. 14195 ld_shlibs_F77=no 14196 ;; 14197 14198 beos*) 14199 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14200 allow_undefined_flag_F77=unsupported 14201 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14202 # support --undefined. This deserves some investigation. FIXME 14203 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14204 else 14205 ld_shlibs_F77=no 14206 fi 14207 ;; 14208 14209 cygwin* | mingw* | pw32*) 14210 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14211 # as there is no search path for DLLs. 14212 hardcode_libdir_flag_spec_F77='-L$libdir' 14213 allow_undefined_flag_F77=unsupported 14214 always_export_symbols_F77=no 14215 enable_shared_with_static_runtimes_F77=yes 14216 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14217 14218 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14219 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14220 # If the export-symbols file already is a .def file (1st line 14221 # is EXPORTS), use it as is; otherwise, prepend... 14222 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14223 cp $export_symbols $output_objdir/$soname.def; 14224 else 14225 echo EXPORTS > $output_objdir/$soname.def; 14226 cat $export_symbols >> $output_objdir/$soname.def; 14227 fi~ 14228 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14229 else 14230 ld_shlibs_F77=no 14231 fi 14232 ;; 14233 14234 interix3*) 14235 hardcode_direct_F77=no 14236 hardcode_shlibpath_var_F77=no 14237 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14238 export_dynamic_flag_spec_F77='${wl}-E' 14239 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14240 # Instead, shared libraries are loaded at an image base (0x10000000 by 14241 # default) and relocated if they conflict, which is a slow very memory 14242 # consuming and fragmenting process. To avoid this, we pick a random, 14243 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14244 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14245 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' 14246 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' 14247 ;; 14248 14249 linux*) 14250 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14251 tmp_addflag= 14252 case $cc_basename,$host_cpu in 14253 pgcc*) # Portland Group C compiler 14254 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' 14255 tmp_addflag=' $pic_flag' 14256 ;; 14257 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14258 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' 14259 tmp_addflag=' $pic_flag -Mnomain' ;; 14260 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14261 tmp_addflag=' -i_dynamic' ;; 14262 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14263 tmp_addflag=' -i_dynamic -nofor_main' ;; 14264 ifc* | ifort*) # Intel Fortran compiler 14265 tmp_addflag=' -nofor_main' ;; 14266 esac 14267 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14268 14269 if test $supports_anon_versioning = yes; then 14270 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14271 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14272 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14273 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14274 fi 14275 else 14276 ld_shlibs_F77=no 14277 fi 14278 ;; 14279 14280 netbsd*) 14281 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14282 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14283 wlarc= 14284 else 14285 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14286 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14287 fi 14288 ;; 14289 14290 solaris*) 14291 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14292 ld_shlibs_F77=no 14293 cat <<EOF 1>&2 14294 14295*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14296*** create shared libraries on Solaris systems. Therefore, libtool 14297*** is disabling shared libraries support. We urge you to upgrade GNU 14298*** binutils to release 2.9.1 or newer. Another option is to modify 14299*** your PATH or compiler configuration so that the native linker is 14300*** used, and then restart. 14301 14302EOF 14303 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14304 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14305 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14306 else 14307 ld_shlibs_F77=no 14308 fi 14309 ;; 14310 14311 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14312 case `$LD -v 2>&1` in 14313 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14314 ld_shlibs_F77=no 14315 cat <<_LT_EOF 1>&2 14316 14317*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14318*** reliably create shared libraries on SCO systems. Therefore, libtool 14319*** is disabling shared libraries support. We urge you to upgrade GNU 14320*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14321*** your PATH or compiler configuration so that the native linker is 14322*** used, and then restart. 14323 14324_LT_EOF 14325 ;; 14326 *) 14327 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14328 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14329 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14330 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14331 else 14332 ld_shlibs_F77=no 14333 fi 14334 ;; 14335 esac 14336 ;; 14337 14338 sunos4*) 14339 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14340 wlarc= 14341 hardcode_direct_F77=yes 14342 hardcode_shlibpath_var_F77=no 14343 ;; 14344 14345 *) 14346 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14347 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14348 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14349 else 14350 ld_shlibs_F77=no 14351 fi 14352 ;; 14353 esac 14354 14355 if test "$ld_shlibs_F77" = no; then 14356 runpath_var= 14357 hardcode_libdir_flag_spec_F77= 14358 export_dynamic_flag_spec_F77= 14359 whole_archive_flag_spec_F77= 14360 fi 14361 else 14362 # PORTME fill in a description of your system's linker (not GNU ld) 14363 case $host_os in 14364 aix3*) 14365 allow_undefined_flag_F77=unsupported 14366 always_export_symbols_F77=yes 14367 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' 14368 # Note: this linker hardcodes the directories in LIBPATH if there 14369 # are no directories specified by -L. 14370 hardcode_minus_L_F77=yes 14371 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14372 # Neither direct hardcoding nor static linking is supported with a 14373 # broken collect2. 14374 hardcode_direct_F77=unsupported 14375 fi 14376 ;; 14377 14378 aix4* | aix5*) 14379 if test "$host_cpu" = ia64; then 14380 # On IA64, the linker does run time linking by default, so we don't 14381 # have to do anything special. 14382 aix_use_runtimelinking=no 14383 exp_sym_flag='-Bexport' 14384 no_entry_flag="" 14385 else 14386 # If we're using GNU nm, then we don't want the "-C" option. 14387 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14388 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14389 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' 14390 else 14391 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' 14392 fi 14393 aix_use_runtimelinking=no 14394 14395 # Test if we are trying to use run time linking or normal 14396 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14397 # need to do runtime linking. 14398 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14399 for ld_flag in $LDFLAGS; do 14400 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14401 aix_use_runtimelinking=yes 14402 break 14403 fi 14404 done 14405 ;; 14406 esac 14407 14408 exp_sym_flag='-bexport' 14409 no_entry_flag='-bnoentry' 14410 fi 14411 14412 # When large executables or shared objects are built, AIX ld can 14413 # have problems creating the table of contents. If linking a library 14414 # or program results in "error TOC overflow" add -mminimal-toc to 14415 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14416 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14417 14418 archive_cmds_F77='' 14419 hardcode_direct_F77=yes 14420 hardcode_libdir_separator_F77=':' 14421 link_all_deplibs_F77=yes 14422 14423 if test "$GCC" = yes; then 14424 case $host_os in aix4.[012]|aix4.[012].*) 14425 # We only want to do this on AIX 4.2 and lower, the check 14426 # below for broken collect2 doesn't work under 4.3+ 14427 collect2name=`${CC} -print-prog-name=collect2` 14428 if test -f "$collect2name" && \ 14429 strings "$collect2name" | grep resolve_lib_name >/dev/null 14430 then 14431 # We have reworked collect2 14432 hardcode_direct_F77=yes 14433 else 14434 # We have old collect2 14435 hardcode_direct_F77=unsupported 14436 # It fails to find uninstalled libraries when the uninstalled 14437 # path is not listed in the libpath. Setting hardcode_minus_L 14438 # to unsupported forces relinking 14439 hardcode_minus_L_F77=yes 14440 hardcode_libdir_flag_spec_F77='-L$libdir' 14441 hardcode_libdir_separator_F77= 14442 fi 14443 ;; 14444 esac 14445 shared_flag='-shared' 14446 if test "$aix_use_runtimelinking" = yes; then 14447 shared_flag="$shared_flag "'${wl}-G' 14448 fi 14449 else 14450 # not using gcc 14451 if test "$host_cpu" = ia64; then 14452 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14453 # chokes on -Wl,-G. The following line is correct: 14454 shared_flag='-G' 14455 else 14456 if test "$aix_use_runtimelinking" = yes; then 14457 shared_flag='${wl}-G' 14458 else 14459 shared_flag='${wl}-bM:SRE' 14460 fi 14461 fi 14462 fi 14463 14464 # It seems that -bexpall does not export symbols beginning with 14465 # underscore (_), so it is better to generate a list of symbols to export. 14466 always_export_symbols_F77=yes 14467 if test "$aix_use_runtimelinking" = yes; then 14468 # Warning - without using the other runtime loading flags (-brtl), 14469 # -berok will link without error, but may produce a broken library. 14470 allow_undefined_flag_F77='-berok' 14471 # Determine the default libpath from the value encoded in an empty executable. 14472 cat >conftest.$ac_ext <<_ACEOF 14473 program main 14474 14475 end 14476_ACEOF 14477rm -f conftest.$ac_objext conftest$ac_exeext 14478if { (ac_try="$ac_link" 14479case "(($ac_try" in 14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14481 *) ac_try_echo=$ac_try;; 14482esac 14483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14484 (eval "$ac_link") 2>conftest.er1 14485 ac_status=$? 14486 grep -v '^ *+' conftest.er1 >conftest.err 14487 rm -f conftest.er1 14488 cat conftest.err >&5 14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14490 (exit $ac_status); } && { 14491 test -z "$ac_f77_werror_flag" || 14492 test ! -s conftest.err 14493 } && test -s conftest$ac_exeext && 14494 $as_test_x conftest$ac_exeext; then 14495 14496aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14497}'` 14498# Check for a 64-bit object if we didn't find anything. 14499if 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; } 14500}'`; fi 14501else 14502 echo "$as_me: failed program was:" >&5 14503sed 's/^/| /' conftest.$ac_ext >&5 14504 14505 14506fi 14507 14508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14509 conftest$ac_exeext conftest.$ac_ext 14510if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14511 14512 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14513 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" 14514 else 14515 if test "$host_cpu" = ia64; then 14516 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14517 allow_undefined_flag_F77="-z nodefs" 14518 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" 14519 else 14520 # Determine the default libpath from the value encoded in an empty executable. 14521 cat >conftest.$ac_ext <<_ACEOF 14522 program main 14523 14524 end 14525_ACEOF 14526rm -f conftest.$ac_objext conftest$ac_exeext 14527if { (ac_try="$ac_link" 14528case "(($ac_try" in 14529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14530 *) ac_try_echo=$ac_try;; 14531esac 14532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14533 (eval "$ac_link") 2>conftest.er1 14534 ac_status=$? 14535 grep -v '^ *+' conftest.er1 >conftest.err 14536 rm -f conftest.er1 14537 cat conftest.err >&5 14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14539 (exit $ac_status); } && { 14540 test -z "$ac_f77_werror_flag" || 14541 test ! -s conftest.err 14542 } && test -s conftest$ac_exeext && 14543 $as_test_x conftest$ac_exeext; then 14544 14545aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14546}'` 14547# Check for a 64-bit object if we didn't find anything. 14548if 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; } 14549}'`; fi 14550else 14551 echo "$as_me: failed program was:" >&5 14552sed 's/^/| /' conftest.$ac_ext >&5 14553 14554 14555fi 14556 14557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14558 conftest$ac_exeext conftest.$ac_ext 14559if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14560 14561 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14562 # Warning - without using the other run time loading flags, 14563 # -berok will link without error, but may produce a broken library. 14564 no_undefined_flag_F77=' ${wl}-bernotok' 14565 allow_undefined_flag_F77=' ${wl}-berok' 14566 # Exported symbols can be pulled into shared objects from archives 14567 whole_archive_flag_spec_F77='$convenience' 14568 archive_cmds_need_lc_F77=yes 14569 # This is similar to how AIX traditionally builds its shared libraries. 14570 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' 14571 fi 14572 fi 14573 ;; 14574 14575 amigaos*) 14576 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)' 14577 hardcode_libdir_flag_spec_F77='-L$libdir' 14578 hardcode_minus_L_F77=yes 14579 # see comment about different semantics on the GNU ld section 14580 ld_shlibs_F77=no 14581 ;; 14582 14583 bsdi[45]*) 14584 export_dynamic_flag_spec_F77=-rdynamic 14585 ;; 14586 14587 cygwin* | mingw* | pw32*) 14588 # When not using gcc, we currently assume that we are using 14589 # Microsoft Visual C++. 14590 # hardcode_libdir_flag_spec is actually meaningless, as there is 14591 # no search path for DLLs. 14592 hardcode_libdir_flag_spec_F77=' ' 14593 allow_undefined_flag_F77=unsupported 14594 # Tell ltmain to make .lib files, not .a files. 14595 libext=lib 14596 # Tell ltmain to make .dll files, not .so files. 14597 shrext_cmds=".dll" 14598 # FIXME: Setting linknames here is a bad hack. 14599 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14600 # The linker will automatically build a .lib file if we build a DLL. 14601 old_archive_From_new_cmds_F77='true' 14602 # FIXME: Should let the user specify the lib program. 14603 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14604 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14605 enable_shared_with_static_runtimes_F77=yes 14606 ;; 14607 14608 darwin* | rhapsody*) 14609 case $host_os in 14610 rhapsody* | darwin1.[012]) 14611 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14612 ;; 14613 *) # Darwin 1.3 on 14614 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14615 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14616 else 14617 case ${MACOSX_DEPLOYMENT_TARGET} in 14618 10.[012]) 14619 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14620 ;; 14621 10.*) 14622 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14623 ;; 14624 esac 14625 fi 14626 ;; 14627 esac 14628 archive_cmds_need_lc_F77=no 14629 hardcode_direct_F77=no 14630 hardcode_automatic_F77=yes 14631 hardcode_shlibpath_var_F77=unsupported 14632 whole_archive_flag_spec_F77='' 14633 link_all_deplibs_F77=yes 14634 if test "$GCC" = yes ; then 14635 output_verbose_link_cmd='echo' 14636 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14637 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14638 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14639 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}' 14640 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}' 14641 else 14642 case $cc_basename in 14643 xlc*) 14644 output_verbose_link_cmd='echo' 14645 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14646 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14647 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14648 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}' 14649 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}' 14650 ;; 14651 *) 14652 ld_shlibs_F77=no 14653 ;; 14654 esac 14655 fi 14656 ;; 14657 14658 dgux*) 14659 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14660 hardcode_libdir_flag_spec_F77='-L$libdir' 14661 hardcode_shlibpath_var_F77=no 14662 ;; 14663 14664 freebsd1*) 14665 ld_shlibs_F77=no 14666 ;; 14667 14668 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14669 # support. Future versions do this automatically, but an explicit c++rt0.o 14670 # does not break anything, and helps significantly (at the cost of a little 14671 # extra space). 14672 freebsd2.2*) 14673 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14674 hardcode_libdir_flag_spec_F77='-R$libdir' 14675 hardcode_direct_F77=yes 14676 hardcode_shlibpath_var_F77=no 14677 ;; 14678 14679 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14680 freebsd2*) 14681 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14682 hardcode_direct_F77=yes 14683 hardcode_minus_L_F77=yes 14684 hardcode_shlibpath_var_F77=no 14685 ;; 14686 14687 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14688 freebsd* | kfreebsd*-gnu | dragonfly*) 14689 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14690 hardcode_libdir_flag_spec_F77='-R$libdir' 14691 hardcode_direct_F77=yes 14692 hardcode_shlibpath_var_F77=no 14693 ;; 14694 14695 hpux9*) 14696 if test "$GCC" = yes; then 14697 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' 14698 else 14699 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' 14700 fi 14701 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14702 hardcode_libdir_separator_F77=: 14703 hardcode_direct_F77=yes 14704 14705 # hardcode_minus_L: Not really in the search PATH, 14706 # but as the default location of the library. 14707 hardcode_minus_L_F77=yes 14708 export_dynamic_flag_spec_F77='${wl}-E' 14709 ;; 14710 14711 hpux10*) 14712 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14713 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14714 else 14715 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14716 fi 14717 if test "$with_gnu_ld" = no; then 14718 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14719 hardcode_libdir_separator_F77=: 14720 14721 hardcode_direct_F77=yes 14722 export_dynamic_flag_spec_F77='${wl}-E' 14723 14724 # hardcode_minus_L: Not really in the search PATH, 14725 # but as the default location of the library. 14726 hardcode_minus_L_F77=yes 14727 fi 14728 ;; 14729 14730 hpux11*) 14731 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14732 case $host_cpu in 14733 hppa*64*) 14734 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14735 ;; 14736 ia64*) 14737 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14738 ;; 14739 *) 14740 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14741 ;; 14742 esac 14743 else 14744 case $host_cpu in 14745 hppa*64*) 14746 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14747 ;; 14748 ia64*) 14749 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14750 ;; 14751 *) 14752 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14753 ;; 14754 esac 14755 fi 14756 if test "$with_gnu_ld" = no; then 14757 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14758 hardcode_libdir_separator_F77=: 14759 14760 case $host_cpu in 14761 hppa*64*|ia64*) 14762 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14763 hardcode_direct_F77=no 14764 hardcode_shlibpath_var_F77=no 14765 ;; 14766 *) 14767 hardcode_direct_F77=yes 14768 export_dynamic_flag_spec_F77='${wl}-E' 14769 14770 # hardcode_minus_L: Not really in the search PATH, 14771 # but as the default location of the library. 14772 hardcode_minus_L_F77=yes 14773 ;; 14774 esac 14775 fi 14776 ;; 14777 14778 irix5* | irix6* | nonstopux*) 14779 if test "$GCC" = yes; then 14780 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' 14781 else 14782 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' 14783 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14784 fi 14785 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14786 hardcode_libdir_separator_F77=: 14787 link_all_deplibs_F77=yes 14788 ;; 14789 14790 netbsd*) 14791 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14792 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14793 else 14794 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14795 fi 14796 hardcode_libdir_flag_spec_F77='-R$libdir' 14797 hardcode_direct_F77=yes 14798 hardcode_shlibpath_var_F77=no 14799 ;; 14800 14801 newsos6) 14802 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14803 hardcode_direct_F77=yes 14804 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14805 hardcode_libdir_separator_F77=: 14806 hardcode_shlibpath_var_F77=no 14807 ;; 14808 14809 openbsd*) 14810 hardcode_direct_F77=yes 14811 hardcode_shlibpath_var_F77=no 14812 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14813 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14814 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14815 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14816 export_dynamic_flag_spec_F77='${wl}-E' 14817 else 14818 case $host_os in 14819 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14820 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14821 hardcode_libdir_flag_spec_F77='-R$libdir' 14822 ;; 14823 *) 14824 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14825 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14826 ;; 14827 esac 14828 fi 14829 ;; 14830 14831 os2*) 14832 hardcode_libdir_flag_spec_F77='-L$libdir' 14833 hardcode_minus_L_F77=yes 14834 allow_undefined_flag_F77=unsupported 14835 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' 14836 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14837 ;; 14838 14839 osf3*) 14840 if test "$GCC" = yes; then 14841 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14842 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' 14843 else 14844 allow_undefined_flag_F77=' -expect_unresolved \*' 14845 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' 14846 fi 14847 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14848 hardcode_libdir_separator_F77=: 14849 ;; 14850 14851 osf4* | osf5*) # as osf3* with the addition of -msym flag 14852 if test "$GCC" = yes; then 14853 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14854 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' 14855 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14856 else 14857 allow_undefined_flag_F77=' -expect_unresolved \*' 14858 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' 14859 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~ 14860 $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' 14861 14862 # Both c and cxx compiler support -rpath directly 14863 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14864 fi 14865 hardcode_libdir_separator_F77=: 14866 ;; 14867 14868 solaris*) 14869 no_undefined_flag_F77=' -z text' 14870 if test "$GCC" = yes; then 14871 wlarc='${wl}' 14872 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14873 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14874 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14875 else 14876 wlarc='' 14877 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14878 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14879 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14880 fi 14881 hardcode_libdir_flag_spec_F77='-R$libdir' 14882 hardcode_shlibpath_var_F77=no 14883 case $host_os in 14884 solaris2.[0-5] | solaris2.[0-5].*) ;; 14885 *) 14886 # The compiler driver will combine linker options so we 14887 # cannot just pass the convience library names through 14888 # without $wl, iff we do not link with $LD. 14889 # Luckily, gcc supports the same syntax we need for Sun Studio. 14890 # Supported since Solaris 2.6 (maybe 2.5.1?) 14891 case $wlarc in 14892 '') 14893 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14894 *) 14895 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' ;; 14896 esac ;; 14897 esac 14898 link_all_deplibs_F77=yes 14899 ;; 14900 14901 sunos4*) 14902 if test "x$host_vendor" = xsequent; then 14903 # Use $CC to link under sequent, because it throws in some extra .o 14904 # files that make .init and .fini sections work. 14905 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14906 else 14907 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14908 fi 14909 hardcode_libdir_flag_spec_F77='-L$libdir' 14910 hardcode_direct_F77=yes 14911 hardcode_minus_L_F77=yes 14912 hardcode_shlibpath_var_F77=no 14913 ;; 14914 14915 sysv4) 14916 case $host_vendor in 14917 sni) 14918 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14919 hardcode_direct_F77=yes # is this really true??? 14920 ;; 14921 siemens) 14922 ## LD is ld it makes a PLAMLIB 14923 ## CC just makes a GrossModule. 14924 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14925 reload_cmds_F77='$CC -r -o $output$reload_objs' 14926 hardcode_direct_F77=no 14927 ;; 14928 motorola) 14929 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14930 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14931 ;; 14932 esac 14933 runpath_var='LD_RUN_PATH' 14934 hardcode_shlibpath_var_F77=no 14935 ;; 14936 14937 sysv4.3*) 14938 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14939 hardcode_shlibpath_var_F77=no 14940 export_dynamic_flag_spec_F77='-Bexport' 14941 ;; 14942 14943 sysv4*MP*) 14944 if test -d /usr/nec; then 14945 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14946 hardcode_shlibpath_var_F77=no 14947 runpath_var=LD_RUN_PATH 14948 hardcode_runpath_var=yes 14949 ld_shlibs_F77=yes 14950 fi 14951 ;; 14952 14953 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 14954 no_undefined_flag_F77='${wl}-z,text' 14955 archive_cmds_need_lc_F77=no 14956 hardcode_shlibpath_var_F77=no 14957 runpath_var='LD_RUN_PATH' 14958 14959 if test "$GCC" = yes; then 14960 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14961 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14962 else 14963 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14964 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14965 fi 14966 ;; 14967 14968 sysv5* | sco3.2v5* | sco5v6*) 14969 # Note: We can NOT use -z defs as we might desire, because we do not 14970 # link with -lc, and that would cause any symbols used from libc to 14971 # always be unresolved, which means just about no library would 14972 # ever link correctly. If we're not using GNU ld we use -z text 14973 # though, which does catch some bad symbols but isn't as heavy-handed 14974 # as -z defs. 14975 no_undefined_flag_F77='${wl}-z,text' 14976 allow_undefined_flag_F77='${wl}-z,nodefs' 14977 archive_cmds_need_lc_F77=no 14978 hardcode_shlibpath_var_F77=no 14979 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14980 hardcode_libdir_separator_F77=':' 14981 link_all_deplibs_F77=yes 14982 export_dynamic_flag_spec_F77='${wl}-Bexport' 14983 runpath_var='LD_RUN_PATH' 14984 14985 if test "$GCC" = yes; then 14986 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14987 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14988 else 14989 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14990 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14991 fi 14992 ;; 14993 14994 uts4*) 14995 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14996 hardcode_libdir_flag_spec_F77='-L$libdir' 14997 hardcode_shlibpath_var_F77=no 14998 ;; 14999 15000 *) 15001 ld_shlibs_F77=no 15002 ;; 15003 esac 15004 fi 15005 15006{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15007echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15008test "$ld_shlibs_F77" = no && can_build_shared=no 15009 15010# 15011# Do we need to explicitly link libc? 15012# 15013case "x$archive_cmds_need_lc_F77" in 15014x|xyes) 15015 # Assume -lc should be added 15016 archive_cmds_need_lc_F77=yes 15017 15018 if test "$enable_shared" = yes && test "$GCC" = yes; then 15019 case $archive_cmds_F77 in 15020 *'~'*) 15021 # FIXME: we may have to deal with multi-command sequences. 15022 ;; 15023 '$CC '*) 15024 # Test whether the compiler implicitly links with -lc since on some 15025 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15026 # to ld, don't add -lc before -lgcc. 15027 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15028echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15029 $rm conftest* 15030 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15031 15032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15033 (eval $ac_compile) 2>&5 15034 ac_status=$? 15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15036 (exit $ac_status); } 2>conftest.err; then 15037 soname=conftest 15038 lib=conftest 15039 libobjs=conftest.$ac_objext 15040 deplibs= 15041 wl=$lt_prog_compiler_wl_F77 15042 pic_flag=$lt_prog_compiler_pic_F77 15043 compiler_flags=-v 15044 linker_flags=-v 15045 verstring= 15046 output_objdir=. 15047 libname=conftest 15048 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15049 allow_undefined_flag_F77= 15050 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15051 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15052 ac_status=$? 15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15054 (exit $ac_status); } 15055 then 15056 archive_cmds_need_lc_F77=no 15057 else 15058 archive_cmds_need_lc_F77=yes 15059 fi 15060 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15061 else 15062 cat conftest.err 1>&5 15063 fi 15064 $rm conftest* 15065 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15066echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15067 ;; 15068 esac 15069 fi 15070 ;; 15071esac 15072 15073{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15074echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15075library_names_spec= 15076libname_spec='lib$name' 15077soname_spec= 15078shrext_cmds=".so" 15079postinstall_cmds= 15080postuninstall_cmds= 15081finish_cmds= 15082finish_eval= 15083shlibpath_var= 15084shlibpath_overrides_runpath=unknown 15085version_type=none 15086dynamic_linker="$host_os ld.so" 15087sys_lib_dlsearch_path_spec="/lib /usr/lib" 15088if test "$GCC" = yes; then 15089 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15090 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15091 # if the path contains ";" then we assume it to be the separator 15092 # otherwise default to the standard path separator (i.e. ":") - it is 15093 # assumed that no part of a normal pathname contains ";" but that should 15094 # okay in the real world where ";" in dirpaths is itself problematic. 15095 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15096 else 15097 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15098 fi 15099else 15100 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15101fi 15102need_lib_prefix=unknown 15103hardcode_into_libs=no 15104 15105# when you set need_version to no, make sure it does not cause -set_version 15106# flags to be left without arguments 15107need_version=unknown 15108 15109case $host_os in 15110aix3*) 15111 version_type=linux 15112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15113 shlibpath_var=LIBPATH 15114 15115 # AIX 3 has no versioning support, so we append a major version to the name. 15116 soname_spec='${libname}${release}${shared_ext}$major' 15117 ;; 15118 15119aix4* | aix5*) 15120 version_type=linux 15121 need_lib_prefix=no 15122 need_version=no 15123 hardcode_into_libs=yes 15124 if test "$host_cpu" = ia64; then 15125 # AIX 5 supports IA64 15126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15127 shlibpath_var=LD_LIBRARY_PATH 15128 else 15129 # With GCC up to 2.95.x, collect2 would create an import file 15130 # for dependence libraries. The import file would start with 15131 # the line `#! .'. This would cause the generated library to 15132 # depend on `.', always an invalid library. This was fixed in 15133 # development snapshots of GCC prior to 3.0. 15134 case $host_os in 15135 aix4 | aix4.[01] | aix4.[01].*) 15136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15137 echo ' yes ' 15138 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15139 : 15140 else 15141 can_build_shared=no 15142 fi 15143 ;; 15144 esac 15145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15146 # soname into executable. Probably we can add versioning support to 15147 # collect2, so additional links can be useful in future. 15148 if test "$aix_use_runtimelinking" = yes; then 15149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15150 # instead of lib<name>.a to let people know that these are not 15151 # typical AIX shared libraries. 15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15153 else 15154 # We preserve .a as extension for shared libraries through AIX4.2 15155 # and later when we are not doing run time linking. 15156 library_names_spec='${libname}${release}.a $libname.a' 15157 soname_spec='${libname}${release}${shared_ext}$major' 15158 fi 15159 shlibpath_var=LIBPATH 15160 fi 15161 ;; 15162 15163amigaos*) 15164 library_names_spec='$libname.ixlibrary $libname.a' 15165 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15166 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' 15167 ;; 15168 15169beos*) 15170 library_names_spec='${libname}${shared_ext}' 15171 dynamic_linker="$host_os ld.so" 15172 shlibpath_var=LIBRARY_PATH 15173 ;; 15174 15175bsdi[45]*) 15176 version_type=linux 15177 need_version=no 15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15179 soname_spec='${libname}${release}${shared_ext}$major' 15180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15181 shlibpath_var=LD_LIBRARY_PATH 15182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15184 # the default ld.so.conf also contains /usr/contrib/lib and 15185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15186 # libtool to hard-code these into programs 15187 ;; 15188 15189cygwin* | mingw* | pw32*) 15190 version_type=windows 15191 shrext_cmds=".dll" 15192 need_version=no 15193 need_lib_prefix=no 15194 15195 case $GCC,$host_os in 15196 yes,cygwin* | yes,mingw* | yes,pw32*) 15197 library_names_spec='$libname.dll.a' 15198 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15199 postinstall_cmds='base_file=`basename \${file}`~ 15200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15201 dldir=$destdir/`dirname \$dlpath`~ 15202 test -d \$dldir || mkdir -p \$dldir~ 15203 $install_prog $dir/$dlname \$dldir/$dlname~ 15204 chmod a+x \$dldir/$dlname' 15205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15206 dlpath=$dir/\$dldll~ 15207 $rm \$dlpath' 15208 shlibpath_overrides_runpath=yes 15209 15210 case $host_os in 15211 cygwin*) 15212 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15214 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15215 ;; 15216 mingw*) 15217 # MinGW DLLs use traditional 'lib' prefix 15218 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15220 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15221 # It is most probably a Windows format PATH printed by 15222 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15223 # path with ; separators, and with drive letters. We can handle the 15224 # drive letters (cygwin fileutils understands them), so leave them, 15225 # especially as we might pass files found there to a mingw objdump, 15226 # which wouldn't understand a cygwinified path. Ahh. 15227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15228 else 15229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15230 fi 15231 ;; 15232 pw32*) 15233 # pw32 DLLs use 'pw' prefix rather than 'lib' 15234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15235 ;; 15236 esac 15237 ;; 15238 15239 *) 15240 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15241 ;; 15242 esac 15243 dynamic_linker='Win32 ld.exe' 15244 # FIXME: first we should search . and the directory the executable is in 15245 shlibpath_var=PATH 15246 ;; 15247 15248darwin* | rhapsody*) 15249 dynamic_linker="$host_os dyld" 15250 version_type=darwin 15251 need_lib_prefix=no 15252 need_version=no 15253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15254 soname_spec='${libname}${release}${major}$shared_ext' 15255 shlibpath_overrides_runpath=yes 15256 shlibpath_var=DYLD_LIBRARY_PATH 15257 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15258 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15259 if test "$GCC" = yes; then 15260 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"` 15261 else 15262 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15263 fi 15264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15265 ;; 15266 15267dgux*) 15268 version_type=linux 15269 need_lib_prefix=no 15270 need_version=no 15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15272 soname_spec='${libname}${release}${shared_ext}$major' 15273 shlibpath_var=LD_LIBRARY_PATH 15274 ;; 15275 15276freebsd1*) 15277 dynamic_linker=no 15278 ;; 15279 15280kfreebsd*-gnu) 15281 version_type=linux 15282 need_lib_prefix=no 15283 need_version=no 15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15285 soname_spec='${libname}${release}${shared_ext}$major' 15286 shlibpath_var=LD_LIBRARY_PATH 15287 shlibpath_overrides_runpath=no 15288 hardcode_into_libs=yes 15289 dynamic_linker='GNU ld.so' 15290 ;; 15291 15292freebsd* | dragonfly*) 15293 # DragonFly does not have aout. When/if they implement a new 15294 # versioning mechanism, adjust this. 15295 if test -x /usr/bin/objformat; then 15296 objformat=`/usr/bin/objformat` 15297 else 15298 case $host_os in 15299 freebsd[123]*) objformat=aout ;; 15300 *) objformat=elf ;; 15301 esac 15302 fi 15303 version_type=freebsd-$objformat 15304 case $version_type in 15305 freebsd-elf*) 15306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15307 need_version=no 15308 need_lib_prefix=no 15309 ;; 15310 freebsd-*) 15311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15312 need_version=yes 15313 ;; 15314 esac 15315 shlibpath_var=LD_LIBRARY_PATH 15316 case $host_os in 15317 freebsd2*) 15318 shlibpath_overrides_runpath=yes 15319 ;; 15320 freebsd3.[01]* | freebsdelf3.[01]*) 15321 shlibpath_overrides_runpath=yes 15322 hardcode_into_libs=yes 15323 ;; 15324 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15325 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15326 shlibpath_overrides_runpath=no 15327 hardcode_into_libs=yes 15328 ;; 15329 freebsd*) # from 4.6 on 15330 shlibpath_overrides_runpath=yes 15331 hardcode_into_libs=yes 15332 ;; 15333 esac 15334 ;; 15335 15336gnu*) 15337 version_type=linux 15338 need_lib_prefix=no 15339 need_version=no 15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15341 soname_spec='${libname}${release}${shared_ext}$major' 15342 shlibpath_var=LD_LIBRARY_PATH 15343 hardcode_into_libs=yes 15344 ;; 15345 15346hpux9* | hpux10* | hpux11*) 15347 # Give a soname corresponding to the major version so that dld.sl refuses to 15348 # link against other versions. 15349 version_type=sunos 15350 need_lib_prefix=no 15351 need_version=no 15352 case $host_cpu in 15353 ia64*) 15354 shrext_cmds='.so' 15355 hardcode_into_libs=yes 15356 dynamic_linker="$host_os dld.so" 15357 shlibpath_var=LD_LIBRARY_PATH 15358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15360 soname_spec='${libname}${release}${shared_ext}$major' 15361 if test "X$HPUX_IA64_MODE" = X32; then 15362 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15363 else 15364 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15365 fi 15366 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15367 ;; 15368 hppa*64*) 15369 shrext_cmds='.sl' 15370 hardcode_into_libs=yes 15371 dynamic_linker="$host_os dld.sl" 15372 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15373 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15375 soname_spec='${libname}${release}${shared_ext}$major' 15376 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15378 ;; 15379 *) 15380 shrext_cmds='.sl' 15381 dynamic_linker="$host_os dld.sl" 15382 shlibpath_var=SHLIB_PATH 15383 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15385 soname_spec='${libname}${release}${shared_ext}$major' 15386 ;; 15387 esac 15388 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15389 postinstall_cmds='chmod 555 $lib' 15390 ;; 15391 15392interix3*) 15393 version_type=linux 15394 need_lib_prefix=no 15395 need_version=no 15396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15397 soname_spec='${libname}${release}${shared_ext}$major' 15398 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15399 shlibpath_var=LD_LIBRARY_PATH 15400 shlibpath_overrides_runpath=no 15401 hardcode_into_libs=yes 15402 ;; 15403 15404irix5* | irix6* | nonstopux*) 15405 case $host_os in 15406 nonstopux*) version_type=nonstopux ;; 15407 *) 15408 if test "$lt_cv_prog_gnu_ld" = yes; then 15409 version_type=linux 15410 else 15411 version_type=irix 15412 fi ;; 15413 esac 15414 need_lib_prefix=no 15415 need_version=no 15416 soname_spec='${libname}${release}${shared_ext}$major' 15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15418 case $host_os in 15419 irix5* | nonstopux*) 15420 libsuff= shlibsuff= 15421 ;; 15422 *) 15423 case $LD in # libtool.m4 will add one of these switches to LD 15424 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15425 libsuff= shlibsuff= libmagic=32-bit;; 15426 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15427 libsuff=32 shlibsuff=N32 libmagic=N32;; 15428 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15429 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15430 *) libsuff= shlibsuff= libmagic=never-match;; 15431 esac 15432 ;; 15433 esac 15434 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15435 shlibpath_overrides_runpath=no 15436 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15437 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15438 hardcode_into_libs=yes 15439 ;; 15440 15441# No shared lib support for Linux oldld, aout, or coff. 15442linux*oldld* | linux*aout* | linux*coff*) 15443 dynamic_linker=no 15444 ;; 15445 15446# This must be Linux ELF. 15447linux*) 15448 version_type=linux 15449 need_lib_prefix=no 15450 need_version=no 15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15452 soname_spec='${libname}${release}${shared_ext}$major' 15453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15454 shlibpath_var=LD_LIBRARY_PATH 15455 shlibpath_overrides_runpath=no 15456 # This implies no fast_install, which is unacceptable. 15457 # Some rework will be needed to allow for fast_install 15458 # before this can be enabled. 15459 hardcode_into_libs=yes 15460 15461 # Append ld.so.conf contents to the search path 15462 if test -f /etc/ld.so.conf; then 15463 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' ' '` 15464 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15465 fi 15466 15467 # We used to test for /lib/ld.so.1 and disable shared libraries on 15468 # powerpc, because MkLinux only supported shared libraries with the 15469 # GNU dynamic linker. Since this was broken with cross compilers, 15470 # most powerpc-linux boxes support dynamic linking these days and 15471 # people can always --disable-shared, the test was removed, and we 15472 # assume the GNU/Linux dynamic linker is in use. 15473 dynamic_linker='GNU/Linux ld.so' 15474 ;; 15475 15476knetbsd*-gnu) 15477 version_type=linux 15478 need_lib_prefix=no 15479 need_version=no 15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15481 soname_spec='${libname}${release}${shared_ext}$major' 15482 shlibpath_var=LD_LIBRARY_PATH 15483 shlibpath_overrides_runpath=no 15484 hardcode_into_libs=yes 15485 dynamic_linker='GNU ld.so' 15486 ;; 15487 15488netbsd*) 15489 version_type=sunos 15490 need_lib_prefix=no 15491 need_version=no 15492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15495 dynamic_linker='NetBSD (a.out) ld.so' 15496 else 15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15498 soname_spec='${libname}${release}${shared_ext}$major' 15499 dynamic_linker='NetBSD ld.elf_so' 15500 fi 15501 shlibpath_var=LD_LIBRARY_PATH 15502 shlibpath_overrides_runpath=yes 15503 hardcode_into_libs=yes 15504 ;; 15505 15506newsos6) 15507 version_type=linux 15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15509 shlibpath_var=LD_LIBRARY_PATH 15510 shlibpath_overrides_runpath=yes 15511 ;; 15512 15513nto-qnx*) 15514 version_type=linux 15515 need_lib_prefix=no 15516 need_version=no 15517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15518 soname_spec='${libname}${release}${shared_ext}$major' 15519 shlibpath_var=LD_LIBRARY_PATH 15520 shlibpath_overrides_runpath=yes 15521 ;; 15522 15523openbsd*) 15524 version_type=sunos 15525 sys_lib_dlsearch_path_spec="/usr/lib" 15526 need_lib_prefix=no 15527 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15528 case $host_os in 15529 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15530 *) need_version=no ;; 15531 esac 15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15534 shlibpath_var=LD_LIBRARY_PATH 15535 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15536 case $host_os in 15537 openbsd2.[89] | openbsd2.[89].*) 15538 shlibpath_overrides_runpath=no 15539 ;; 15540 *) 15541 shlibpath_overrides_runpath=yes 15542 ;; 15543 esac 15544 else 15545 shlibpath_overrides_runpath=yes 15546 fi 15547 ;; 15548 15549os2*) 15550 libname_spec='$name' 15551 shrext_cmds=".dll" 15552 need_lib_prefix=no 15553 library_names_spec='$libname${shared_ext} $libname.a' 15554 dynamic_linker='OS/2 ld.exe' 15555 shlibpath_var=LIBPATH 15556 ;; 15557 15558osf3* | osf4* | osf5*) 15559 version_type=osf 15560 need_lib_prefix=no 15561 need_version=no 15562 soname_spec='${libname}${release}${shared_ext}$major' 15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15564 shlibpath_var=LD_LIBRARY_PATH 15565 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15566 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15567 ;; 15568 15569solaris*) 15570 version_type=linux 15571 need_lib_prefix=no 15572 need_version=no 15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15574 soname_spec='${libname}${release}${shared_ext}$major' 15575 shlibpath_var=LD_LIBRARY_PATH 15576 shlibpath_overrides_runpath=yes 15577 hardcode_into_libs=yes 15578 # ldd complains unless libraries are executable 15579 postinstall_cmds='chmod +x $lib' 15580 ;; 15581 15582sunos4*) 15583 version_type=sunos 15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15586 shlibpath_var=LD_LIBRARY_PATH 15587 shlibpath_overrides_runpath=yes 15588 if test "$with_gnu_ld" = yes; then 15589 need_lib_prefix=no 15590 fi 15591 need_version=yes 15592 ;; 15593 15594sysv4 | sysv4.3*) 15595 version_type=linux 15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15597 soname_spec='${libname}${release}${shared_ext}$major' 15598 shlibpath_var=LD_LIBRARY_PATH 15599 case $host_vendor in 15600 sni) 15601 shlibpath_overrides_runpath=no 15602 need_lib_prefix=no 15603 export_dynamic_flag_spec='${wl}-Blargedynsym' 15604 runpath_var=LD_RUN_PATH 15605 ;; 15606 siemens) 15607 need_lib_prefix=no 15608 ;; 15609 motorola) 15610 need_lib_prefix=no 15611 need_version=no 15612 shlibpath_overrides_runpath=no 15613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15614 ;; 15615 esac 15616 ;; 15617 15618sysv4*MP*) 15619 if test -d /usr/nec ;then 15620 version_type=linux 15621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15622 soname_spec='$libname${shared_ext}.$major' 15623 shlibpath_var=LD_LIBRARY_PATH 15624 fi 15625 ;; 15626 15627sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15628 version_type=freebsd-elf 15629 need_lib_prefix=no 15630 need_version=no 15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15632 soname_spec='${libname}${release}${shared_ext}$major' 15633 shlibpath_var=LD_LIBRARY_PATH 15634 hardcode_into_libs=yes 15635 if test "$with_gnu_ld" = yes; then 15636 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15637 shlibpath_overrides_runpath=no 15638 else 15639 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15640 shlibpath_overrides_runpath=yes 15641 case $host_os in 15642 sco3.2v5*) 15643 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15644 ;; 15645 esac 15646 fi 15647 sys_lib_dlsearch_path_spec='/usr/lib' 15648 ;; 15649 15650uts4*) 15651 version_type=linux 15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15653 soname_spec='${libname}${release}${shared_ext}$major' 15654 shlibpath_var=LD_LIBRARY_PATH 15655 ;; 15656 15657*) 15658 dynamic_linker=no 15659 ;; 15660esac 15661{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15662echo "${ECHO_T}$dynamic_linker" >&6; } 15663test "$dynamic_linker" = no && can_build_shared=no 15664 15665variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15666if test "$GCC" = yes; then 15667 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15668fi 15669 15670{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15671echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15672hardcode_action_F77= 15673if test -n "$hardcode_libdir_flag_spec_F77" || \ 15674 test -n "$runpath_var_F77" || \ 15675 test "X$hardcode_automatic_F77" = "Xyes" ; then 15676 15677 # We can hardcode non-existant directories. 15678 if test "$hardcode_direct_F77" != no && 15679 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15680 # have to relink, otherwise we might link with an installed library 15681 # when we should be linking with a yet-to-be-installed one 15682 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15683 test "$hardcode_minus_L_F77" != no; then 15684 # Linking always hardcodes the temporary library directory. 15685 hardcode_action_F77=relink 15686 else 15687 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15688 hardcode_action_F77=immediate 15689 fi 15690else 15691 # We cannot hardcode anything, or else we can only hardcode existing 15692 # directories. 15693 hardcode_action_F77=unsupported 15694fi 15695{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15696echo "${ECHO_T}$hardcode_action_F77" >&6; } 15697 15698if test "$hardcode_action_F77" = relink; then 15699 # Fast installation is not supported 15700 enable_fast_install=no 15701elif test "$shlibpath_overrides_runpath" = yes || 15702 test "$enable_shared" = no; then 15703 # Fast installation is not necessary 15704 enable_fast_install=needless 15705fi 15706 15707 15708# The else clause should only fire when bootstrapping the 15709# libtool distribution, otherwise you forgot to ship ltmain.sh 15710# with your package, and you will get complaints that there are 15711# no rules to generate ltmain.sh. 15712if test -f "$ltmain"; then 15713 # See if we are running on zsh, and set the options which allow our commands through 15714 # without removal of \ escapes. 15715 if test -n "${ZSH_VERSION+set}" ; then 15716 setopt NO_GLOB_SUBST 15717 fi 15718 # Now quote all the things that may contain metacharacters while being 15719 # careful not to overquote the AC_SUBSTed values. We take copies of the 15720 # variables and quote the copies for generation of the libtool script. 15721 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15722 SED SHELL STRIP \ 15723 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15724 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15725 deplibs_check_method reload_flag reload_cmds need_locks \ 15726 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15727 lt_cv_sys_global_symbol_to_c_name_address \ 15728 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15729 old_postinstall_cmds old_postuninstall_cmds \ 15730 compiler_F77 \ 15731 CC_F77 \ 15732 LD_F77 \ 15733 lt_prog_compiler_wl_F77 \ 15734 lt_prog_compiler_pic_F77 \ 15735 lt_prog_compiler_static_F77 \ 15736 lt_prog_compiler_no_builtin_flag_F77 \ 15737 export_dynamic_flag_spec_F77 \ 15738 thread_safe_flag_spec_F77 \ 15739 whole_archive_flag_spec_F77 \ 15740 enable_shared_with_static_runtimes_F77 \ 15741 old_archive_cmds_F77 \ 15742 old_archive_from_new_cmds_F77 \ 15743 predep_objects_F77 \ 15744 postdep_objects_F77 \ 15745 predeps_F77 \ 15746 postdeps_F77 \ 15747 compiler_lib_search_path_F77 \ 15748 archive_cmds_F77 \ 15749 archive_expsym_cmds_F77 \ 15750 postinstall_cmds_F77 \ 15751 postuninstall_cmds_F77 \ 15752 old_archive_from_expsyms_cmds_F77 \ 15753 allow_undefined_flag_F77 \ 15754 no_undefined_flag_F77 \ 15755 export_symbols_cmds_F77 \ 15756 hardcode_libdir_flag_spec_F77 \ 15757 hardcode_libdir_flag_spec_ld_F77 \ 15758 hardcode_libdir_separator_F77 \ 15759 hardcode_automatic_F77 \ 15760 module_cmds_F77 \ 15761 module_expsym_cmds_F77 \ 15762 lt_cv_prog_compiler_c_o_F77 \ 15763 exclude_expsyms_F77 \ 15764 include_expsyms_F77; do 15765 15766 case $var in 15767 old_archive_cmds_F77 | \ 15768 old_archive_from_new_cmds_F77 | \ 15769 archive_cmds_F77 | \ 15770 archive_expsym_cmds_F77 | \ 15771 module_cmds_F77 | \ 15772 module_expsym_cmds_F77 | \ 15773 old_archive_from_expsyms_cmds_F77 | \ 15774 export_symbols_cmds_F77 | \ 15775 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15776 postinstall_cmds | postuninstall_cmds | \ 15777 old_postinstall_cmds | old_postuninstall_cmds | \ 15778 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15779 # Double-quote double-evaled strings. 15780 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15781 ;; 15782 *) 15783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15784 ;; 15785 esac 15786 done 15787 15788 case $lt_echo in 15789 *'\$0 --fallback-echo"') 15790 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15791 ;; 15792 esac 15793 15794cfgfile="$ofile" 15795 15796 cat <<__EOF__ >> "$cfgfile" 15797# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15798 15799# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15800 15801# Shell to use when invoking shell scripts. 15802SHELL=$lt_SHELL 15803 15804# Whether or not to build shared libraries. 15805build_libtool_libs=$enable_shared 15806 15807# Whether or not to build static libraries. 15808build_old_libs=$enable_static 15809 15810# Whether or not to add -lc for building shared libraries. 15811build_libtool_need_lc=$archive_cmds_need_lc_F77 15812 15813# Whether or not to disallow shared libs when runtime libs are static 15814allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15815 15816# Whether or not to optimize for fast installation. 15817fast_install=$enable_fast_install 15818 15819# The host system. 15820host_alias=$host_alias 15821host=$host 15822host_os=$host_os 15823 15824# The build system. 15825build_alias=$build_alias 15826build=$build 15827build_os=$build_os 15828 15829# An echo program that does not interpret backslashes. 15830echo=$lt_echo 15831 15832# The archiver. 15833AR=$lt_AR 15834AR_FLAGS=$lt_AR_FLAGS 15835 15836# A C compiler. 15837LTCC=$lt_LTCC 15838 15839# LTCC compiler flags. 15840LTCFLAGS=$lt_LTCFLAGS 15841 15842# A language-specific compiler. 15843CC=$lt_compiler_F77 15844 15845# Is the compiler the GNU C compiler? 15846with_gcc=$GCC_F77 15847 15848# An ERE matcher. 15849EGREP=$lt_EGREP 15850 15851# The linker used to build libraries. 15852LD=$lt_LD_F77 15853 15854# Whether we need hard or soft links. 15855LN_S=$lt_LN_S 15856 15857# A BSD-compatible nm program. 15858NM=$lt_NM 15859 15860# A symbol stripping program 15861STRIP=$lt_STRIP 15862 15863# Used to examine libraries when file_magic_cmd begins "file" 15864MAGIC_CMD=$MAGIC_CMD 15865 15866# Used on cygwin: DLL creation program. 15867DLLTOOL="$DLLTOOL" 15868 15869# Used on cygwin: object dumper. 15870OBJDUMP="$OBJDUMP" 15871 15872# Used on cygwin: assembler. 15873AS="$AS" 15874 15875# The name of the directory that contains temporary libtool files. 15876objdir=$objdir 15877 15878# How to create reloadable object files. 15879reload_flag=$lt_reload_flag 15880reload_cmds=$lt_reload_cmds 15881 15882# How to pass a linker flag through the compiler. 15883wl=$lt_lt_prog_compiler_wl_F77 15884 15885# Object file suffix (normally "o"). 15886objext="$ac_objext" 15887 15888# Old archive suffix (normally "a"). 15889libext="$libext" 15890 15891# Shared library suffix (normally ".so"). 15892shrext_cmds='$shrext_cmds' 15893 15894# Executable file suffix (normally ""). 15895exeext="$exeext" 15896 15897# Additional compiler flags for building library objects. 15898pic_flag=$lt_lt_prog_compiler_pic_F77 15899pic_mode=$pic_mode 15900 15901# What is the maximum length of a command? 15902max_cmd_len=$lt_cv_sys_max_cmd_len 15903 15904# Does compiler simultaneously support -c and -o options? 15905compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15906 15907# Must we lock files when doing compilation? 15908need_locks=$lt_need_locks 15909 15910# Do we need the lib prefix for modules? 15911need_lib_prefix=$need_lib_prefix 15912 15913# Do we need a version for libraries? 15914need_version=$need_version 15915 15916# Whether dlopen is supported. 15917dlopen_support=$enable_dlopen 15918 15919# Whether dlopen of programs is supported. 15920dlopen_self=$enable_dlopen_self 15921 15922# Whether dlopen of statically linked programs is supported. 15923dlopen_self_static=$enable_dlopen_self_static 15924 15925# Compiler flag to prevent dynamic linking. 15926link_static_flag=$lt_lt_prog_compiler_static_F77 15927 15928# Compiler flag to turn off builtin functions. 15929no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15930 15931# Compiler flag to allow reflexive dlopens. 15932export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15933 15934# Compiler flag to generate shared objects directly from archives. 15935whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15936 15937# Compiler flag to generate thread-safe objects. 15938thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15939 15940# Library versioning type. 15941version_type=$version_type 15942 15943# Format of library name prefix. 15944libname_spec=$lt_libname_spec 15945 15946# List of archive names. First name is the real one, the rest are links. 15947# The last name is the one that the linker finds with -lNAME. 15948library_names_spec=$lt_library_names_spec 15949 15950# The coded name of the library, if different from the real name. 15951soname_spec=$lt_soname_spec 15952 15953# Commands used to build and install an old-style archive. 15954RANLIB=$lt_RANLIB 15955old_archive_cmds=$lt_old_archive_cmds_F77 15956old_postinstall_cmds=$lt_old_postinstall_cmds 15957old_postuninstall_cmds=$lt_old_postuninstall_cmds 15958 15959# Create an old-style archive from a shared archive. 15960old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15961 15962# Create a temporary old-style archive to link instead of a shared archive. 15963old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15964 15965# Commands used to build and install a shared archive. 15966archive_cmds=$lt_archive_cmds_F77 15967archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15968postinstall_cmds=$lt_postinstall_cmds 15969postuninstall_cmds=$lt_postuninstall_cmds 15970 15971# Commands used to build a loadable module (assumed same as above if empty) 15972module_cmds=$lt_module_cmds_F77 15973module_expsym_cmds=$lt_module_expsym_cmds_F77 15974 15975# Commands to strip libraries. 15976old_striplib=$lt_old_striplib 15977striplib=$lt_striplib 15978 15979# Dependencies to place before the objects being linked to create a 15980# shared library. 15981predep_objects=$lt_predep_objects_F77 15982 15983# Dependencies to place after the objects being linked to create a 15984# shared library. 15985postdep_objects=$lt_postdep_objects_F77 15986 15987# Dependencies to place before the objects being linked to create a 15988# shared library. 15989predeps=$lt_predeps_F77 15990 15991# Dependencies to place after the objects being linked to create a 15992# shared library. 15993postdeps=$lt_postdeps_F77 15994 15995# The library search path used internally by the compiler when linking 15996# a shared library. 15997compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15998 15999# Method to check whether dependent libraries are shared objects. 16000deplibs_check_method=$lt_deplibs_check_method 16001 16002# Command to use when deplibs_check_method == file_magic. 16003file_magic_cmd=$lt_file_magic_cmd 16004 16005# Flag that allows shared libraries with undefined symbols to be built. 16006allow_undefined_flag=$lt_allow_undefined_flag_F77 16007 16008# Flag that forces no undefined symbols. 16009no_undefined_flag=$lt_no_undefined_flag_F77 16010 16011# Commands used to finish a libtool library installation in a directory. 16012finish_cmds=$lt_finish_cmds 16013 16014# Same as above, but a single script fragment to be evaled but not shown. 16015finish_eval=$lt_finish_eval 16016 16017# Take the output of nm and produce a listing of raw symbols and C names. 16018global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16019 16020# Transform the output of nm in a proper C declaration 16021global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16022 16023# Transform the output of nm in a C name address pair 16024global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16025 16026# This is the shared library runtime path variable. 16027runpath_var=$runpath_var 16028 16029# This is the shared library path variable. 16030shlibpath_var=$shlibpath_var 16031 16032# Is shlibpath searched before the hard-coded library search path? 16033shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16034 16035# How to hardcode a shared library path into an executable. 16036hardcode_action=$hardcode_action_F77 16037 16038# Whether we should hardcode library paths into libraries. 16039hardcode_into_libs=$hardcode_into_libs 16040 16041# Flag to hardcode \$libdir into a binary during linking. 16042# This must work even if \$libdir does not exist. 16043hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16044 16045# If ld is used when linking, flag to hardcode \$libdir into 16046# a binary during linking. This must work even if \$libdir does 16047# not exist. 16048hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16049 16050# Whether we need a single -rpath flag with a separated argument. 16051hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16052 16053# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16054# resulting binary. 16055hardcode_direct=$hardcode_direct_F77 16056 16057# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16058# resulting binary. 16059hardcode_minus_L=$hardcode_minus_L_F77 16060 16061# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16062# the resulting binary. 16063hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16064 16065# Set to yes if building a shared library automatically hardcodes DIR into the library 16066# and all subsequent libraries and executables linked against it. 16067hardcode_automatic=$hardcode_automatic_F77 16068 16069# Variables whose values should be saved in libtool wrapper scripts and 16070# restored at relink time. 16071variables_saved_for_relink="$variables_saved_for_relink" 16072 16073# Whether libtool must link a program against all its dependency libraries. 16074link_all_deplibs=$link_all_deplibs_F77 16075 16076# Compile-time system search path for libraries 16077sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16078 16079# Run-time system search path for libraries 16080sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16081 16082# Fix the shell variable \$srcfile for the compiler. 16083fix_srcfile_path="$fix_srcfile_path_F77" 16084 16085# Set to yes if exported symbols are required. 16086always_export_symbols=$always_export_symbols_F77 16087 16088# The commands to list exported symbols. 16089export_symbols_cmds=$lt_export_symbols_cmds_F77 16090 16091# The commands to extract the exported symbol list from a shared archive. 16092extract_expsyms_cmds=$lt_extract_expsyms_cmds 16093 16094# Symbols that should not be listed in the preloaded symbols. 16095exclude_expsyms=$lt_exclude_expsyms_F77 16096 16097# Symbols that must always be exported. 16098include_expsyms=$lt_include_expsyms_F77 16099 16100# ### END LIBTOOL TAG CONFIG: $tagname 16101 16102__EOF__ 16103 16104 16105else 16106 # If there is no Makefile yet, we rely on a make rule to execute 16107 # `config.status --recheck' to rerun these tests and create the 16108 # libtool script then. 16109 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16110 if test -f "$ltmain_in"; then 16111 test -f Makefile && make "$ltmain" 16112 fi 16113fi 16114 16115 16116ac_ext=c 16117ac_cpp='$CPP $CPPFLAGS' 16118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16120ac_compiler_gnu=$ac_cv_c_compiler_gnu 16121 16122CC="$lt_save_CC" 16123 16124 else 16125 tagname="" 16126 fi 16127 ;; 16128 16129 GCJ) 16130 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16131 16132 16133# Source file extension for Java test sources. 16134ac_ext=java 16135 16136# Object file extension for compiled Java test sources. 16137objext=o 16138objext_GCJ=$objext 16139 16140# Code to be used in simple compile tests 16141lt_simple_compile_test_code="class foo {}\n" 16142 16143# Code to be used in simple link tests 16144lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16145 16146# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16147 16148# If no C compiler was specified, use CC. 16149LTCC=${LTCC-"$CC"} 16150 16151# If no C compiler flags were specified, use CFLAGS. 16152LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16153 16154# Allow CC to be a program name with arguments. 16155compiler=$CC 16156 16157 16158# save warnings/boilerplate of simple test code 16159ac_outfile=conftest.$ac_objext 16160printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16161eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16162_lt_compiler_boilerplate=`cat conftest.err` 16163$rm conftest* 16164 16165ac_outfile=conftest.$ac_objext 16166printf "$lt_simple_link_test_code" >conftest.$ac_ext 16167eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16168_lt_linker_boilerplate=`cat conftest.err` 16169$rm conftest* 16170 16171 16172# Allow CC to be a program name with arguments. 16173lt_save_CC="$CC" 16174CC=${GCJ-"gcj"} 16175compiler=$CC 16176compiler_GCJ=$CC 16177for cc_temp in $compiler""; do 16178 case $cc_temp in 16179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16181 \-*) ;; 16182 *) break;; 16183 esac 16184done 16185cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16186 16187 16188# GCJ did not exist at the time GCC didn't implicitly link libc in. 16189archive_cmds_need_lc_GCJ=no 16190 16191old_archive_cmds_GCJ=$old_archive_cmds 16192 16193 16194lt_prog_compiler_no_builtin_flag_GCJ= 16195 16196if test "$GCC" = yes; then 16197 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16198 16199 16200{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16201echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16202if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16203 echo $ECHO_N "(cached) $ECHO_C" >&6 16204else 16205 lt_cv_prog_compiler_rtti_exceptions=no 16206 ac_outfile=conftest.$ac_objext 16207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16208 lt_compiler_flag="-fno-rtti -fno-exceptions" 16209 # Insert the option either (1) after the last *FLAGS variable, or 16210 # (2) before a word containing "conftest.", or (3) at the end. 16211 # Note that $ac_compile itself does not contain backslashes and begins 16212 # with a dollar sign (not a hyphen), so the echo should work correctly. 16213 # The option is referenced via a variable to avoid confusing sed. 16214 lt_compile=`echo "$ac_compile" | $SED \ 16215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16217 -e 's:$: $lt_compiler_flag:'` 16218 (eval echo "\"\$as_me:16218: $lt_compile\"" >&5) 16219 (eval "$lt_compile" 2>conftest.err) 16220 ac_status=$? 16221 cat conftest.err >&5 16222 echo "$as_me:16222: \$? = $ac_status" >&5 16223 if (exit $ac_status) && test -s "$ac_outfile"; then 16224 # The compiler can only warn and ignore the option if not recognized 16225 # So say no if there are warnings other than the usual output. 16226 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16228 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16229 lt_cv_prog_compiler_rtti_exceptions=yes 16230 fi 16231 fi 16232 $rm conftest* 16233 16234fi 16235{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16236echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16237 16238if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16239 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16240else 16241 : 16242fi 16243 16244fi 16245 16246lt_prog_compiler_wl_GCJ= 16247lt_prog_compiler_pic_GCJ= 16248lt_prog_compiler_static_GCJ= 16249 16250{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16251echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16252 16253 if test "$GCC" = yes; then 16254 lt_prog_compiler_wl_GCJ='-Wl,' 16255 lt_prog_compiler_static_GCJ='-static' 16256 16257 case $host_os in 16258 aix*) 16259 # All AIX code is PIC. 16260 if test "$host_cpu" = ia64; then 16261 # AIX 5 now supports IA64 processor 16262 lt_prog_compiler_static_GCJ='-Bstatic' 16263 fi 16264 ;; 16265 16266 amigaos*) 16267 # FIXME: we need at least 68020 code to build shared libraries, but 16268 # adding the `-m68020' flag to GCC prevents building anything better, 16269 # like `-m68040'. 16270 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16271 ;; 16272 16273 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16274 # PIC is the default for these OSes. 16275 ;; 16276 16277 mingw* | pw32* | os2*) 16278 # This hack is so that the source file can tell whether it is being 16279 # built for inclusion in a dll (and should export symbols for example). 16280 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16281 ;; 16282 16283 darwin* | rhapsody*) 16284 # PIC is the default on this platform 16285 # Common symbols not allowed in MH_DYLIB files 16286 lt_prog_compiler_pic_GCJ='-fno-common' 16287 ;; 16288 16289 interix3*) 16290 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16291 # Instead, we relocate shared libraries at runtime. 16292 ;; 16293 16294 msdosdjgpp*) 16295 # Just because we use GCC doesn't mean we suddenly get shared libraries 16296 # on systems that don't support them. 16297 lt_prog_compiler_can_build_shared_GCJ=no 16298 enable_shared=no 16299 ;; 16300 16301 sysv4*MP*) 16302 if test -d /usr/nec; then 16303 lt_prog_compiler_pic_GCJ=-Kconform_pic 16304 fi 16305 ;; 16306 16307 hpux*) 16308 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16309 # not for PA HP-UX. 16310 case $host_cpu in 16311 hppa*64*|ia64*) 16312 # +Z the default 16313 ;; 16314 *) 16315 lt_prog_compiler_pic_GCJ='-fPIC' 16316 ;; 16317 esac 16318 ;; 16319 16320 *) 16321 lt_prog_compiler_pic_GCJ='-fPIC' 16322 ;; 16323 esac 16324 else 16325 # PORTME Check for flag to pass linker flags through the system compiler. 16326 case $host_os in 16327 aix*) 16328 lt_prog_compiler_wl_GCJ='-Wl,' 16329 if test "$host_cpu" = ia64; then 16330 # AIX 5 now supports IA64 processor 16331 lt_prog_compiler_static_GCJ='-Bstatic' 16332 else 16333 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16334 fi 16335 ;; 16336 darwin*) 16337 # PIC is the default on this platform 16338 # Common symbols not allowed in MH_DYLIB files 16339 case $cc_basename in 16340 xlc*) 16341 lt_prog_compiler_pic_GCJ='-qnocommon' 16342 lt_prog_compiler_wl_GCJ='-Wl,' 16343 ;; 16344 esac 16345 ;; 16346 16347 mingw* | pw32* | os2*) 16348 # This hack is so that the source file can tell whether it is being 16349 # built for inclusion in a dll (and should export symbols for example). 16350 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16351 ;; 16352 16353 hpux9* | hpux10* | hpux11*) 16354 lt_prog_compiler_wl_GCJ='-Wl,' 16355 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16356 # not for PA HP-UX. 16357 case $host_cpu in 16358 hppa*64*|ia64*) 16359 # +Z the default 16360 ;; 16361 *) 16362 lt_prog_compiler_pic_GCJ='+Z' 16363 ;; 16364 esac 16365 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16366 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16367 ;; 16368 16369 irix5* | irix6* | nonstopux*) 16370 lt_prog_compiler_wl_GCJ='-Wl,' 16371 # PIC (with -KPIC) is the default. 16372 lt_prog_compiler_static_GCJ='-non_shared' 16373 ;; 16374 16375 newsos6) 16376 lt_prog_compiler_pic_GCJ='-KPIC' 16377 lt_prog_compiler_static_GCJ='-Bstatic' 16378 ;; 16379 16380 linux*) 16381 case $cc_basename in 16382 icc* | ecc*) 16383 lt_prog_compiler_wl_GCJ='-Wl,' 16384 lt_prog_compiler_pic_GCJ='-KPIC' 16385 lt_prog_compiler_static_GCJ='-static' 16386 ;; 16387 pgcc* | pgf77* | pgf90* | pgf95*) 16388 # Portland Group compilers (*not* the Pentium gcc compiler, 16389 # which looks to be a dead project) 16390 lt_prog_compiler_wl_GCJ='-Wl,' 16391 lt_prog_compiler_pic_GCJ='-fpic' 16392 lt_prog_compiler_static_GCJ='-Bstatic' 16393 ;; 16394 ccc*) 16395 lt_prog_compiler_wl_GCJ='-Wl,' 16396 # All Alpha code is PIC. 16397 lt_prog_compiler_static_GCJ='-non_shared' 16398 ;; 16399 esac 16400 ;; 16401 16402 osf3* | osf4* | osf5*) 16403 lt_prog_compiler_wl_GCJ='-Wl,' 16404 # All OSF/1 code is PIC. 16405 lt_prog_compiler_static_GCJ='-non_shared' 16406 ;; 16407 16408 solaris*) 16409 lt_prog_compiler_pic_GCJ='-KPIC' 16410 lt_prog_compiler_static_GCJ='-Bstatic' 16411 case $cc_basename in 16412 f77* | f90* | f95*) 16413 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16414 *) 16415 lt_prog_compiler_wl_GCJ='-Wl,';; 16416 esac 16417 ;; 16418 16419 sunos4*) 16420 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16421 lt_prog_compiler_pic_GCJ='-PIC' 16422 lt_prog_compiler_static_GCJ='-Bstatic' 16423 ;; 16424 16425 sysv4 | sysv4.2uw2* | sysv4.3*) 16426 lt_prog_compiler_wl_GCJ='-Wl,' 16427 lt_prog_compiler_pic_GCJ='-KPIC' 16428 lt_prog_compiler_static_GCJ='-Bstatic' 16429 ;; 16430 16431 sysv4*MP*) 16432 if test -d /usr/nec ;then 16433 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16434 lt_prog_compiler_static_GCJ='-Bstatic' 16435 fi 16436 ;; 16437 16438 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16439 lt_prog_compiler_wl_GCJ='-Wl,' 16440 lt_prog_compiler_pic_GCJ='-KPIC' 16441 lt_prog_compiler_static_GCJ='-Bstatic' 16442 ;; 16443 16444 unicos*) 16445 lt_prog_compiler_wl_GCJ='-Wl,' 16446 lt_prog_compiler_can_build_shared_GCJ=no 16447 ;; 16448 16449 uts4*) 16450 lt_prog_compiler_pic_GCJ='-pic' 16451 lt_prog_compiler_static_GCJ='-Bstatic' 16452 ;; 16453 16454 *) 16455 lt_prog_compiler_can_build_shared_GCJ=no 16456 ;; 16457 esac 16458 fi 16459 16460{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16461echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16462 16463# 16464# Check to make sure the PIC flag actually works. 16465# 16466if test -n "$lt_prog_compiler_pic_GCJ"; then 16467 16468{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16469echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16470if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16471 echo $ECHO_N "(cached) $ECHO_C" >&6 16472else 16473 lt_prog_compiler_pic_works_GCJ=no 16474 ac_outfile=conftest.$ac_objext 16475 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16476 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16477 # Insert the option either (1) after the last *FLAGS variable, or 16478 # (2) before a word containing "conftest.", or (3) at the end. 16479 # Note that $ac_compile itself does not contain backslashes and begins 16480 # with a dollar sign (not a hyphen), so the echo should work correctly. 16481 # The option is referenced via a variable to avoid confusing sed. 16482 lt_compile=`echo "$ac_compile" | $SED \ 16483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16485 -e 's:$: $lt_compiler_flag:'` 16486 (eval echo "\"\$as_me:16486: $lt_compile\"" >&5) 16487 (eval "$lt_compile" 2>conftest.err) 16488 ac_status=$? 16489 cat conftest.err >&5 16490 echo "$as_me:16490: \$? = $ac_status" >&5 16491 if (exit $ac_status) && test -s "$ac_outfile"; then 16492 # The compiler can only warn and ignore the option if not recognized 16493 # So say no if there are warnings other than the usual output. 16494 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16497 lt_prog_compiler_pic_works_GCJ=yes 16498 fi 16499 fi 16500 $rm conftest* 16501 16502fi 16503{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16504echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16505 16506if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16507 case $lt_prog_compiler_pic_GCJ in 16508 "" | " "*) ;; 16509 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16510 esac 16511else 16512 lt_prog_compiler_pic_GCJ= 16513 lt_prog_compiler_can_build_shared_GCJ=no 16514fi 16515 16516fi 16517case $host_os in 16518 # For platforms which do not support PIC, -DPIC is meaningless: 16519 *djgpp*) 16520 lt_prog_compiler_pic_GCJ= 16521 ;; 16522 *) 16523 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16524 ;; 16525esac 16526 16527# 16528# Check to make sure the static flag actually works. 16529# 16530wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16531{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16532echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16533if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16534 echo $ECHO_N "(cached) $ECHO_C" >&6 16535else 16536 lt_prog_compiler_static_works_GCJ=no 16537 save_LDFLAGS="$LDFLAGS" 16538 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16539 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16540 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16541 # The linker can only warn and ignore the option if not recognized 16542 # So say no if there are warnings 16543 if test -s conftest.err; then 16544 # Append any errors to the config.log. 16545 cat conftest.err 1>&5 16546 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16548 if diff conftest.exp conftest.er2 >/dev/null; then 16549 lt_prog_compiler_static_works_GCJ=yes 16550 fi 16551 else 16552 lt_prog_compiler_static_works_GCJ=yes 16553 fi 16554 fi 16555 $rm conftest* 16556 LDFLAGS="$save_LDFLAGS" 16557 16558fi 16559{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16560echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16561 16562if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16563 : 16564else 16565 lt_prog_compiler_static_GCJ= 16566fi 16567 16568 16569{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16570echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16571if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16572 echo $ECHO_N "(cached) $ECHO_C" >&6 16573else 16574 lt_cv_prog_compiler_c_o_GCJ=no 16575 $rm -r conftest 2>/dev/null 16576 mkdir conftest 16577 cd conftest 16578 mkdir out 16579 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16580 16581 lt_compiler_flag="-o out/conftest2.$ac_objext" 16582 # Insert the option either (1) after the last *FLAGS variable, or 16583 # (2) before a word containing "conftest.", or (3) at the end. 16584 # Note that $ac_compile itself does not contain backslashes and begins 16585 # with a dollar sign (not a hyphen), so the echo should work correctly. 16586 lt_compile=`echo "$ac_compile" | $SED \ 16587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16589 -e 's:$: $lt_compiler_flag:'` 16590 (eval echo "\"\$as_me:16590: $lt_compile\"" >&5) 16591 (eval "$lt_compile" 2>out/conftest.err) 16592 ac_status=$? 16593 cat out/conftest.err >&5 16594 echo "$as_me:16594: \$? = $ac_status" >&5 16595 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16596 then 16597 # The compiler can only warn and ignore the option if not recognized 16598 # So say no if there are warnings 16599 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16600 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16601 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16602 lt_cv_prog_compiler_c_o_GCJ=yes 16603 fi 16604 fi 16605 chmod u+w . 2>&5 16606 $rm conftest* 16607 # SGI C++ compiler will create directory out/ii_files/ for 16608 # template instantiation 16609 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16610 $rm out/* && rmdir out 16611 cd .. 16612 rmdir conftest 16613 $rm conftest* 16614 16615fi 16616{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16617echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16618 16619 16620hard_links="nottested" 16621if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16622 # do not overwrite the value of need_locks provided by the user 16623 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16624echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16625 hard_links=yes 16626 $rm conftest* 16627 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16628 touch conftest.a 16629 ln conftest.a conftest.b 2>&5 || hard_links=no 16630 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16631 { echo "$as_me:$LINENO: result: $hard_links" >&5 16632echo "${ECHO_T}$hard_links" >&6; } 16633 if test "$hard_links" = no; then 16634 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16635echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16636 need_locks=warn 16637 fi 16638else 16639 need_locks=no 16640fi 16641 16642{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16643echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16644 16645 runpath_var= 16646 allow_undefined_flag_GCJ= 16647 enable_shared_with_static_runtimes_GCJ=no 16648 archive_cmds_GCJ= 16649 archive_expsym_cmds_GCJ= 16650 old_archive_From_new_cmds_GCJ= 16651 old_archive_from_expsyms_cmds_GCJ= 16652 export_dynamic_flag_spec_GCJ= 16653 whole_archive_flag_spec_GCJ= 16654 thread_safe_flag_spec_GCJ= 16655 hardcode_libdir_flag_spec_GCJ= 16656 hardcode_libdir_flag_spec_ld_GCJ= 16657 hardcode_libdir_separator_GCJ= 16658 hardcode_direct_GCJ=no 16659 hardcode_minus_L_GCJ=no 16660 hardcode_shlibpath_var_GCJ=unsupported 16661 link_all_deplibs_GCJ=unknown 16662 hardcode_automatic_GCJ=no 16663 module_cmds_GCJ= 16664 module_expsym_cmds_GCJ= 16665 always_export_symbols_GCJ=no 16666 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16667 # include_expsyms should be a list of space-separated symbols to be *always* 16668 # included in the symbol list 16669 include_expsyms_GCJ= 16670 # exclude_expsyms can be an extended regexp of symbols to exclude 16671 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16672 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16673 # as well as any symbol that contains `d'. 16674 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16675 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16676 # platforms (ab)use it in PIC code, but their linkers get confused if 16677 # the symbol is explicitly referenced. Since portable code cannot 16678 # rely on this symbol name, it's probably fine to never include it in 16679 # preloaded symbol tables. 16680 extract_expsyms_cmds= 16681 # Just being paranoid about ensuring that cc_basename is set. 16682 for cc_temp in $compiler""; do 16683 case $cc_temp in 16684 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16685 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16686 \-*) ;; 16687 *) break;; 16688 esac 16689done 16690cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16691 16692 case $host_os in 16693 cygwin* | mingw* | pw32*) 16694 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16695 # When not using gcc, we currently assume that we are using 16696 # Microsoft Visual C++. 16697 if test "$GCC" != yes; then 16698 with_gnu_ld=no 16699 fi 16700 ;; 16701 interix*) 16702 # we just hope/assume this is gcc and not c89 (= MSVC++) 16703 with_gnu_ld=yes 16704 ;; 16705 openbsd*) 16706 with_gnu_ld=no 16707 ;; 16708 esac 16709 16710 ld_shlibs_GCJ=yes 16711 if test "$with_gnu_ld" = yes; then 16712 # If archive_cmds runs LD, not CC, wlarc should be empty 16713 wlarc='${wl}' 16714 16715 # Set some defaults for GNU ld with shared library support. These 16716 # are reset later if shared libraries are not supported. Putting them 16717 # here allows them to be overridden if necessary. 16718 runpath_var=LD_RUN_PATH 16719 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16720 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16721 # ancient GNU ld didn't support --whole-archive et. al. 16722 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16723 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16724 else 16725 whole_archive_flag_spec_GCJ= 16726 fi 16727 supports_anon_versioning=no 16728 case `$LD -v 2>/dev/null` in 16729 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16730 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16731 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16732 *\ 2.11.*) ;; # other 2.11 versions 16733 *) supports_anon_versioning=yes ;; 16734 esac 16735 16736 # See if GNU ld supports shared libraries. 16737 case $host_os in 16738 aix3* | aix4* | aix5*) 16739 # On AIX/PPC, the GNU linker is very broken 16740 if test "$host_cpu" != ia64; then 16741 ld_shlibs_GCJ=no 16742 cat <<EOF 1>&2 16743 16744*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16745*** to be unable to reliably create shared libraries on AIX. 16746*** Therefore, libtool is disabling shared libraries support. If you 16747*** really care for shared libraries, you may want to modify your PATH 16748*** so that a non-GNU linker is found, and then restart. 16749 16750EOF 16751 fi 16752 ;; 16753 16754 amigaos*) 16755 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)' 16756 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16757 hardcode_minus_L_GCJ=yes 16758 16759 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16760 # that the semantics of dynamic libraries on AmigaOS, at least up 16761 # to version 4, is to share data among multiple programs linked 16762 # with the same dynamic library. Since this doesn't match the 16763 # behavior of shared libraries on other platforms, we can't use 16764 # them. 16765 ld_shlibs_GCJ=no 16766 ;; 16767 16768 beos*) 16769 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16770 allow_undefined_flag_GCJ=unsupported 16771 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16772 # support --undefined. This deserves some investigation. FIXME 16773 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16774 else 16775 ld_shlibs_GCJ=no 16776 fi 16777 ;; 16778 16779 cygwin* | mingw* | pw32*) 16780 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16781 # as there is no search path for DLLs. 16782 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16783 allow_undefined_flag_GCJ=unsupported 16784 always_export_symbols_GCJ=no 16785 enable_shared_with_static_runtimes_GCJ=yes 16786 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16787 16788 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16789 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16790 # If the export-symbols file already is a .def file (1st line 16791 # is EXPORTS), use it as is; otherwise, prepend... 16792 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16793 cp $export_symbols $output_objdir/$soname.def; 16794 else 16795 echo EXPORTS > $output_objdir/$soname.def; 16796 cat $export_symbols >> $output_objdir/$soname.def; 16797 fi~ 16798 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16799 else 16800 ld_shlibs_GCJ=no 16801 fi 16802 ;; 16803 16804 interix3*) 16805 hardcode_direct_GCJ=no 16806 hardcode_shlibpath_var_GCJ=no 16807 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16808 export_dynamic_flag_spec_GCJ='${wl}-E' 16809 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16810 # Instead, shared libraries are loaded at an image base (0x10000000 by 16811 # default) and relocated if they conflict, which is a slow very memory 16812 # consuming and fragmenting process. To avoid this, we pick a random, 16813 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16814 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16815 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' 16816 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' 16817 ;; 16818 16819 linux*) 16820 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16821 tmp_addflag= 16822 case $cc_basename,$host_cpu in 16823 pgcc*) # Portland Group C compiler 16824 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' 16825 tmp_addflag=' $pic_flag' 16826 ;; 16827 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16828 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' 16829 tmp_addflag=' $pic_flag -Mnomain' ;; 16830 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16831 tmp_addflag=' -i_dynamic' ;; 16832 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16833 tmp_addflag=' -i_dynamic -nofor_main' ;; 16834 ifc* | ifort*) # Intel Fortran compiler 16835 tmp_addflag=' -nofor_main' ;; 16836 esac 16837 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16838 16839 if test $supports_anon_versioning = yes; then 16840 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16841 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16842 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16843 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16844 fi 16845 else 16846 ld_shlibs_GCJ=no 16847 fi 16848 ;; 16849 16850 netbsd*) 16851 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16852 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16853 wlarc= 16854 else 16855 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16856 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16857 fi 16858 ;; 16859 16860 solaris*) 16861 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16862 ld_shlibs_GCJ=no 16863 cat <<EOF 1>&2 16864 16865*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16866*** create shared libraries on Solaris systems. Therefore, libtool 16867*** is disabling shared libraries support. We urge you to upgrade GNU 16868*** binutils to release 2.9.1 or newer. Another option is to modify 16869*** your PATH or compiler configuration so that the native linker is 16870*** used, and then restart. 16871 16872EOF 16873 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16874 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16875 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16876 else 16877 ld_shlibs_GCJ=no 16878 fi 16879 ;; 16880 16881 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16882 case `$LD -v 2>&1` in 16883 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16884 ld_shlibs_GCJ=no 16885 cat <<_LT_EOF 1>&2 16886 16887*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16888*** reliably create shared libraries on SCO systems. Therefore, libtool 16889*** is disabling shared libraries support. We urge you to upgrade GNU 16890*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16891*** your PATH or compiler configuration so that the native linker is 16892*** used, and then restart. 16893 16894_LT_EOF 16895 ;; 16896 *) 16897 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16898 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16899 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16900 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16901 else 16902 ld_shlibs_GCJ=no 16903 fi 16904 ;; 16905 esac 16906 ;; 16907 16908 sunos4*) 16909 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16910 wlarc= 16911 hardcode_direct_GCJ=yes 16912 hardcode_shlibpath_var_GCJ=no 16913 ;; 16914 16915 *) 16916 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16917 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16918 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16919 else 16920 ld_shlibs_GCJ=no 16921 fi 16922 ;; 16923 esac 16924 16925 if test "$ld_shlibs_GCJ" = no; then 16926 runpath_var= 16927 hardcode_libdir_flag_spec_GCJ= 16928 export_dynamic_flag_spec_GCJ= 16929 whole_archive_flag_spec_GCJ= 16930 fi 16931 else 16932 # PORTME fill in a description of your system's linker (not GNU ld) 16933 case $host_os in 16934 aix3*) 16935 allow_undefined_flag_GCJ=unsupported 16936 always_export_symbols_GCJ=yes 16937 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' 16938 # Note: this linker hardcodes the directories in LIBPATH if there 16939 # are no directories specified by -L. 16940 hardcode_minus_L_GCJ=yes 16941 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16942 # Neither direct hardcoding nor static linking is supported with a 16943 # broken collect2. 16944 hardcode_direct_GCJ=unsupported 16945 fi 16946 ;; 16947 16948 aix4* | aix5*) 16949 if test "$host_cpu" = ia64; then 16950 # On IA64, the linker does run time linking by default, so we don't 16951 # have to do anything special. 16952 aix_use_runtimelinking=no 16953 exp_sym_flag='-Bexport' 16954 no_entry_flag="" 16955 else 16956 # If we're using GNU nm, then we don't want the "-C" option. 16957 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16958 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16959 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' 16960 else 16961 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' 16962 fi 16963 aix_use_runtimelinking=no 16964 16965 # Test if we are trying to use run time linking or normal 16966 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16967 # need to do runtime linking. 16968 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16969 for ld_flag in $LDFLAGS; do 16970 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16971 aix_use_runtimelinking=yes 16972 break 16973 fi 16974 done 16975 ;; 16976 esac 16977 16978 exp_sym_flag='-bexport' 16979 no_entry_flag='-bnoentry' 16980 fi 16981 16982 # When large executables or shared objects are built, AIX ld can 16983 # have problems creating the table of contents. If linking a library 16984 # or program results in "error TOC overflow" add -mminimal-toc to 16985 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16986 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16987 16988 archive_cmds_GCJ='' 16989 hardcode_direct_GCJ=yes 16990 hardcode_libdir_separator_GCJ=':' 16991 link_all_deplibs_GCJ=yes 16992 16993 if test "$GCC" = yes; then 16994 case $host_os in aix4.[012]|aix4.[012].*) 16995 # We only want to do this on AIX 4.2 and lower, the check 16996 # below for broken collect2 doesn't work under 4.3+ 16997 collect2name=`${CC} -print-prog-name=collect2` 16998 if test -f "$collect2name" && \ 16999 strings "$collect2name" | grep resolve_lib_name >/dev/null 17000 then 17001 # We have reworked collect2 17002 hardcode_direct_GCJ=yes 17003 else 17004 # We have old collect2 17005 hardcode_direct_GCJ=unsupported 17006 # It fails to find uninstalled libraries when the uninstalled 17007 # path is not listed in the libpath. Setting hardcode_minus_L 17008 # to unsupported forces relinking 17009 hardcode_minus_L_GCJ=yes 17010 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17011 hardcode_libdir_separator_GCJ= 17012 fi 17013 ;; 17014 esac 17015 shared_flag='-shared' 17016 if test "$aix_use_runtimelinking" = yes; then 17017 shared_flag="$shared_flag "'${wl}-G' 17018 fi 17019 else 17020 # not using gcc 17021 if test "$host_cpu" = ia64; then 17022 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17023 # chokes on -Wl,-G. The following line is correct: 17024 shared_flag='-G' 17025 else 17026 if test "$aix_use_runtimelinking" = yes; then 17027 shared_flag='${wl}-G' 17028 else 17029 shared_flag='${wl}-bM:SRE' 17030 fi 17031 fi 17032 fi 17033 17034 # It seems that -bexpall does not export symbols beginning with 17035 # underscore (_), so it is better to generate a list of symbols to export. 17036 always_export_symbols_GCJ=yes 17037 if test "$aix_use_runtimelinking" = yes; then 17038 # Warning - without using the other runtime loading flags (-brtl), 17039 # -berok will link without error, but may produce a broken library. 17040 allow_undefined_flag_GCJ='-berok' 17041 # Determine the default libpath from the value encoded in an empty executable. 17042 cat >conftest.$ac_ext <<_ACEOF 17043/* confdefs.h. */ 17044_ACEOF 17045cat confdefs.h >>conftest.$ac_ext 17046cat >>conftest.$ac_ext <<_ACEOF 17047/* end confdefs.h. */ 17048 17049int 17050main () 17051{ 17052 17053 ; 17054 return 0; 17055} 17056_ACEOF 17057rm -f conftest.$ac_objext conftest$ac_exeext 17058if { (ac_try="$ac_link" 17059case "(($ac_try" in 17060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17061 *) ac_try_echo=$ac_try;; 17062esac 17063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17064 (eval "$ac_link") 2>conftest.er1 17065 ac_status=$? 17066 grep -v '^ *+' conftest.er1 >conftest.err 17067 rm -f conftest.er1 17068 cat conftest.err >&5 17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17070 (exit $ac_status); } && { 17071 test -z "$ac_c_werror_flag" || 17072 test ! -s conftest.err 17073 } && test -s conftest$ac_exeext && 17074 $as_test_x conftest$ac_exeext; then 17075 17076aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17077}'` 17078# Check for a 64-bit object if we didn't find anything. 17079if 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; } 17080}'`; fi 17081else 17082 echo "$as_me: failed program was:" >&5 17083sed 's/^/| /' conftest.$ac_ext >&5 17084 17085 17086fi 17087 17088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17089 conftest$ac_exeext conftest.$ac_ext 17090if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17091 17092 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17093 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" 17094 else 17095 if test "$host_cpu" = ia64; then 17096 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17097 allow_undefined_flag_GCJ="-z nodefs" 17098 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" 17099 else 17100 # Determine the default libpath from the value encoded in an empty executable. 17101 cat >conftest.$ac_ext <<_ACEOF 17102/* confdefs.h. */ 17103_ACEOF 17104cat confdefs.h >>conftest.$ac_ext 17105cat >>conftest.$ac_ext <<_ACEOF 17106/* end confdefs.h. */ 17107 17108int 17109main () 17110{ 17111 17112 ; 17113 return 0; 17114} 17115_ACEOF 17116rm -f conftest.$ac_objext conftest$ac_exeext 17117if { (ac_try="$ac_link" 17118case "(($ac_try" in 17119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17120 *) ac_try_echo=$ac_try;; 17121esac 17122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17123 (eval "$ac_link") 2>conftest.er1 17124 ac_status=$? 17125 grep -v '^ *+' conftest.er1 >conftest.err 17126 rm -f conftest.er1 17127 cat conftest.err >&5 17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17129 (exit $ac_status); } && { 17130 test -z "$ac_c_werror_flag" || 17131 test ! -s conftest.err 17132 } && test -s conftest$ac_exeext && 17133 $as_test_x conftest$ac_exeext; then 17134 17135aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17136}'` 17137# Check for a 64-bit object if we didn't find anything. 17138if 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; } 17139}'`; fi 17140else 17141 echo "$as_me: failed program was:" >&5 17142sed 's/^/| /' conftest.$ac_ext >&5 17143 17144 17145fi 17146 17147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17148 conftest$ac_exeext conftest.$ac_ext 17149if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17150 17151 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17152 # Warning - without using the other run time loading flags, 17153 # -berok will link without error, but may produce a broken library. 17154 no_undefined_flag_GCJ=' ${wl}-bernotok' 17155 allow_undefined_flag_GCJ=' ${wl}-berok' 17156 # Exported symbols can be pulled into shared objects from archives 17157 whole_archive_flag_spec_GCJ='$convenience' 17158 archive_cmds_need_lc_GCJ=yes 17159 # This is similar to how AIX traditionally builds its shared libraries. 17160 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' 17161 fi 17162 fi 17163 ;; 17164 17165 amigaos*) 17166 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)' 17167 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17168 hardcode_minus_L_GCJ=yes 17169 # see comment about different semantics on the GNU ld section 17170 ld_shlibs_GCJ=no 17171 ;; 17172 17173 bsdi[45]*) 17174 export_dynamic_flag_spec_GCJ=-rdynamic 17175 ;; 17176 17177 cygwin* | mingw* | pw32*) 17178 # When not using gcc, we currently assume that we are using 17179 # Microsoft Visual C++. 17180 # hardcode_libdir_flag_spec is actually meaningless, as there is 17181 # no search path for DLLs. 17182 hardcode_libdir_flag_spec_GCJ=' ' 17183 allow_undefined_flag_GCJ=unsupported 17184 # Tell ltmain to make .lib files, not .a files. 17185 libext=lib 17186 # Tell ltmain to make .dll files, not .so files. 17187 shrext_cmds=".dll" 17188 # FIXME: Setting linknames here is a bad hack. 17189 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17190 # The linker will automatically build a .lib file if we build a DLL. 17191 old_archive_From_new_cmds_GCJ='true' 17192 # FIXME: Should let the user specify the lib program. 17193 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17194 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17195 enable_shared_with_static_runtimes_GCJ=yes 17196 ;; 17197 17198 darwin* | rhapsody*) 17199 case $host_os in 17200 rhapsody* | darwin1.[012]) 17201 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17202 ;; 17203 *) # Darwin 1.3 on 17204 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17205 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17206 else 17207 case ${MACOSX_DEPLOYMENT_TARGET} in 17208 10.[012]) 17209 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17210 ;; 17211 10.*) 17212 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17213 ;; 17214 esac 17215 fi 17216 ;; 17217 esac 17218 archive_cmds_need_lc_GCJ=no 17219 hardcode_direct_GCJ=no 17220 hardcode_automatic_GCJ=yes 17221 hardcode_shlibpath_var_GCJ=unsupported 17222 whole_archive_flag_spec_GCJ='' 17223 link_all_deplibs_GCJ=yes 17224 if test "$GCC" = yes ; then 17225 output_verbose_link_cmd='echo' 17226 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17227 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17228 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17229 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}' 17230 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}' 17231 else 17232 case $cc_basename in 17233 xlc*) 17234 output_verbose_link_cmd='echo' 17235 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17236 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17237 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17238 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}' 17239 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}' 17240 ;; 17241 *) 17242 ld_shlibs_GCJ=no 17243 ;; 17244 esac 17245 fi 17246 ;; 17247 17248 dgux*) 17249 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17250 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17251 hardcode_shlibpath_var_GCJ=no 17252 ;; 17253 17254 freebsd1*) 17255 ld_shlibs_GCJ=no 17256 ;; 17257 17258 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17259 # support. Future versions do this automatically, but an explicit c++rt0.o 17260 # does not break anything, and helps significantly (at the cost of a little 17261 # extra space). 17262 freebsd2.2*) 17263 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17264 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17265 hardcode_direct_GCJ=yes 17266 hardcode_shlibpath_var_GCJ=no 17267 ;; 17268 17269 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17270 freebsd2*) 17271 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17272 hardcode_direct_GCJ=yes 17273 hardcode_minus_L_GCJ=yes 17274 hardcode_shlibpath_var_GCJ=no 17275 ;; 17276 17277 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17278 freebsd* | kfreebsd*-gnu | dragonfly*) 17279 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17280 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17281 hardcode_direct_GCJ=yes 17282 hardcode_shlibpath_var_GCJ=no 17283 ;; 17284 17285 hpux9*) 17286 if test "$GCC" = yes; then 17287 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' 17288 else 17289 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' 17290 fi 17291 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17292 hardcode_libdir_separator_GCJ=: 17293 hardcode_direct_GCJ=yes 17294 17295 # hardcode_minus_L: Not really in the search PATH, 17296 # but as the default location of the library. 17297 hardcode_minus_L_GCJ=yes 17298 export_dynamic_flag_spec_GCJ='${wl}-E' 17299 ;; 17300 17301 hpux10*) 17302 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17303 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17304 else 17305 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17306 fi 17307 if test "$with_gnu_ld" = no; then 17308 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17309 hardcode_libdir_separator_GCJ=: 17310 17311 hardcode_direct_GCJ=yes 17312 export_dynamic_flag_spec_GCJ='${wl}-E' 17313 17314 # hardcode_minus_L: Not really in the search PATH, 17315 # but as the default location of the library. 17316 hardcode_minus_L_GCJ=yes 17317 fi 17318 ;; 17319 17320 hpux11*) 17321 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17322 case $host_cpu in 17323 hppa*64*) 17324 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17325 ;; 17326 ia64*) 17327 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17328 ;; 17329 *) 17330 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17331 ;; 17332 esac 17333 else 17334 case $host_cpu in 17335 hppa*64*) 17336 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17337 ;; 17338 ia64*) 17339 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17340 ;; 17341 *) 17342 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17343 ;; 17344 esac 17345 fi 17346 if test "$with_gnu_ld" = no; then 17347 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17348 hardcode_libdir_separator_GCJ=: 17349 17350 case $host_cpu in 17351 hppa*64*|ia64*) 17352 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17353 hardcode_direct_GCJ=no 17354 hardcode_shlibpath_var_GCJ=no 17355 ;; 17356 *) 17357 hardcode_direct_GCJ=yes 17358 export_dynamic_flag_spec_GCJ='${wl}-E' 17359 17360 # hardcode_minus_L: Not really in the search PATH, 17361 # but as the default location of the library. 17362 hardcode_minus_L_GCJ=yes 17363 ;; 17364 esac 17365 fi 17366 ;; 17367 17368 irix5* | irix6* | nonstopux*) 17369 if test "$GCC" = yes; then 17370 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' 17371 else 17372 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' 17373 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17374 fi 17375 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17376 hardcode_libdir_separator_GCJ=: 17377 link_all_deplibs_GCJ=yes 17378 ;; 17379 17380 netbsd*) 17381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17382 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17383 else 17384 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17385 fi 17386 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17387 hardcode_direct_GCJ=yes 17388 hardcode_shlibpath_var_GCJ=no 17389 ;; 17390 17391 newsos6) 17392 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17393 hardcode_direct_GCJ=yes 17394 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17395 hardcode_libdir_separator_GCJ=: 17396 hardcode_shlibpath_var_GCJ=no 17397 ;; 17398 17399 openbsd*) 17400 hardcode_direct_GCJ=yes 17401 hardcode_shlibpath_var_GCJ=no 17402 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17403 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17404 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17405 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17406 export_dynamic_flag_spec_GCJ='${wl}-E' 17407 else 17408 case $host_os in 17409 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17410 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17411 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17412 ;; 17413 *) 17414 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17415 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17416 ;; 17417 esac 17418 fi 17419 ;; 17420 17421 os2*) 17422 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17423 hardcode_minus_L_GCJ=yes 17424 allow_undefined_flag_GCJ=unsupported 17425 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' 17426 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17427 ;; 17428 17429 osf3*) 17430 if test "$GCC" = yes; then 17431 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17432 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' 17433 else 17434 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17435 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' 17436 fi 17437 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17438 hardcode_libdir_separator_GCJ=: 17439 ;; 17440 17441 osf4* | osf5*) # as osf3* with the addition of -msym flag 17442 if test "$GCC" = yes; then 17443 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17444 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' 17445 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17446 else 17447 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17448 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' 17449 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~ 17450 $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' 17451 17452 # Both c and cxx compiler support -rpath directly 17453 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17454 fi 17455 hardcode_libdir_separator_GCJ=: 17456 ;; 17457 17458 solaris*) 17459 no_undefined_flag_GCJ=' -z text' 17460 if test "$GCC" = yes; then 17461 wlarc='${wl}' 17462 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17463 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17464 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17465 else 17466 wlarc='' 17467 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17468 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17469 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17470 fi 17471 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17472 hardcode_shlibpath_var_GCJ=no 17473 case $host_os in 17474 solaris2.[0-5] | solaris2.[0-5].*) ;; 17475 *) 17476 # The compiler driver will combine linker options so we 17477 # cannot just pass the convience library names through 17478 # without $wl, iff we do not link with $LD. 17479 # Luckily, gcc supports the same syntax we need for Sun Studio. 17480 # Supported since Solaris 2.6 (maybe 2.5.1?) 17481 case $wlarc in 17482 '') 17483 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17484 *) 17485 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' ;; 17486 esac ;; 17487 esac 17488 link_all_deplibs_GCJ=yes 17489 ;; 17490 17491 sunos4*) 17492 if test "x$host_vendor" = xsequent; then 17493 # Use $CC to link under sequent, because it throws in some extra .o 17494 # files that make .init and .fini sections work. 17495 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17496 else 17497 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17498 fi 17499 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17500 hardcode_direct_GCJ=yes 17501 hardcode_minus_L_GCJ=yes 17502 hardcode_shlibpath_var_GCJ=no 17503 ;; 17504 17505 sysv4) 17506 case $host_vendor in 17507 sni) 17508 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17509 hardcode_direct_GCJ=yes # is this really true??? 17510 ;; 17511 siemens) 17512 ## LD is ld it makes a PLAMLIB 17513 ## CC just makes a GrossModule. 17514 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17515 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17516 hardcode_direct_GCJ=no 17517 ;; 17518 motorola) 17519 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17520 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17521 ;; 17522 esac 17523 runpath_var='LD_RUN_PATH' 17524 hardcode_shlibpath_var_GCJ=no 17525 ;; 17526 17527 sysv4.3*) 17528 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17529 hardcode_shlibpath_var_GCJ=no 17530 export_dynamic_flag_spec_GCJ='-Bexport' 17531 ;; 17532 17533 sysv4*MP*) 17534 if test -d /usr/nec; then 17535 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17536 hardcode_shlibpath_var_GCJ=no 17537 runpath_var=LD_RUN_PATH 17538 hardcode_runpath_var=yes 17539 ld_shlibs_GCJ=yes 17540 fi 17541 ;; 17542 17543 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17544 no_undefined_flag_GCJ='${wl}-z,text' 17545 archive_cmds_need_lc_GCJ=no 17546 hardcode_shlibpath_var_GCJ=no 17547 runpath_var='LD_RUN_PATH' 17548 17549 if test "$GCC" = yes; then 17550 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17551 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17552 else 17553 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17554 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17555 fi 17556 ;; 17557 17558 sysv5* | sco3.2v5* | sco5v6*) 17559 # Note: We can NOT use -z defs as we might desire, because we do not 17560 # link with -lc, and that would cause any symbols used from libc to 17561 # always be unresolved, which means just about no library would 17562 # ever link correctly. If we're not using GNU ld we use -z text 17563 # though, which does catch some bad symbols but isn't as heavy-handed 17564 # as -z defs. 17565 no_undefined_flag_GCJ='${wl}-z,text' 17566 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17567 archive_cmds_need_lc_GCJ=no 17568 hardcode_shlibpath_var_GCJ=no 17569 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17570 hardcode_libdir_separator_GCJ=':' 17571 link_all_deplibs_GCJ=yes 17572 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17573 runpath_var='LD_RUN_PATH' 17574 17575 if test "$GCC" = yes; then 17576 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17577 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17578 else 17579 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17580 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17581 fi 17582 ;; 17583 17584 uts4*) 17585 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17586 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17587 hardcode_shlibpath_var_GCJ=no 17588 ;; 17589 17590 *) 17591 ld_shlibs_GCJ=no 17592 ;; 17593 esac 17594 fi 17595 17596{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17597echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17598test "$ld_shlibs_GCJ" = no && can_build_shared=no 17599 17600# 17601# Do we need to explicitly link libc? 17602# 17603case "x$archive_cmds_need_lc_GCJ" in 17604x|xyes) 17605 # Assume -lc should be added 17606 archive_cmds_need_lc_GCJ=yes 17607 17608 if test "$enable_shared" = yes && test "$GCC" = yes; then 17609 case $archive_cmds_GCJ in 17610 *'~'*) 17611 # FIXME: we may have to deal with multi-command sequences. 17612 ;; 17613 '$CC '*) 17614 # Test whether the compiler implicitly links with -lc since on some 17615 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17616 # to ld, don't add -lc before -lgcc. 17617 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17618echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17619 $rm conftest* 17620 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17621 17622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17623 (eval $ac_compile) 2>&5 17624 ac_status=$? 17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17626 (exit $ac_status); } 2>conftest.err; then 17627 soname=conftest 17628 lib=conftest 17629 libobjs=conftest.$ac_objext 17630 deplibs= 17631 wl=$lt_prog_compiler_wl_GCJ 17632 pic_flag=$lt_prog_compiler_pic_GCJ 17633 compiler_flags=-v 17634 linker_flags=-v 17635 verstring= 17636 output_objdir=. 17637 libname=conftest 17638 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17639 allow_undefined_flag_GCJ= 17640 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17641 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17642 ac_status=$? 17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17644 (exit $ac_status); } 17645 then 17646 archive_cmds_need_lc_GCJ=no 17647 else 17648 archive_cmds_need_lc_GCJ=yes 17649 fi 17650 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17651 else 17652 cat conftest.err 1>&5 17653 fi 17654 $rm conftest* 17655 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17656echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17657 ;; 17658 esac 17659 fi 17660 ;; 17661esac 17662 17663{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17664echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17665library_names_spec= 17666libname_spec='lib$name' 17667soname_spec= 17668shrext_cmds=".so" 17669postinstall_cmds= 17670postuninstall_cmds= 17671finish_cmds= 17672finish_eval= 17673shlibpath_var= 17674shlibpath_overrides_runpath=unknown 17675version_type=none 17676dynamic_linker="$host_os ld.so" 17677sys_lib_dlsearch_path_spec="/lib /usr/lib" 17678if test "$GCC" = yes; then 17679 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17680 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17681 # if the path contains ";" then we assume it to be the separator 17682 # otherwise default to the standard path separator (i.e. ":") - it is 17683 # assumed that no part of a normal pathname contains ";" but that should 17684 # okay in the real world where ";" in dirpaths is itself problematic. 17685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17686 else 17687 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17688 fi 17689else 17690 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17691fi 17692need_lib_prefix=unknown 17693hardcode_into_libs=no 17694 17695# when you set need_version to no, make sure it does not cause -set_version 17696# flags to be left without arguments 17697need_version=unknown 17698 17699case $host_os in 17700aix3*) 17701 version_type=linux 17702 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17703 shlibpath_var=LIBPATH 17704 17705 # AIX 3 has no versioning support, so we append a major version to the name. 17706 soname_spec='${libname}${release}${shared_ext}$major' 17707 ;; 17708 17709aix4* | aix5*) 17710 version_type=linux 17711 need_lib_prefix=no 17712 need_version=no 17713 hardcode_into_libs=yes 17714 if test "$host_cpu" = ia64; then 17715 # AIX 5 supports IA64 17716 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17717 shlibpath_var=LD_LIBRARY_PATH 17718 else 17719 # With GCC up to 2.95.x, collect2 would create an import file 17720 # for dependence libraries. The import file would start with 17721 # the line `#! .'. This would cause the generated library to 17722 # depend on `.', always an invalid library. This was fixed in 17723 # development snapshots of GCC prior to 3.0. 17724 case $host_os in 17725 aix4 | aix4.[01] | aix4.[01].*) 17726 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17727 echo ' yes ' 17728 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17729 : 17730 else 17731 can_build_shared=no 17732 fi 17733 ;; 17734 esac 17735 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17736 # soname into executable. Probably we can add versioning support to 17737 # collect2, so additional links can be useful in future. 17738 if test "$aix_use_runtimelinking" = yes; then 17739 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17740 # instead of lib<name>.a to let people know that these are not 17741 # typical AIX shared libraries. 17742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17743 else 17744 # We preserve .a as extension for shared libraries through AIX4.2 17745 # and later when we are not doing run time linking. 17746 library_names_spec='${libname}${release}.a $libname.a' 17747 soname_spec='${libname}${release}${shared_ext}$major' 17748 fi 17749 shlibpath_var=LIBPATH 17750 fi 17751 ;; 17752 17753amigaos*) 17754 library_names_spec='$libname.ixlibrary $libname.a' 17755 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17756 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' 17757 ;; 17758 17759beos*) 17760 library_names_spec='${libname}${shared_ext}' 17761 dynamic_linker="$host_os ld.so" 17762 shlibpath_var=LIBRARY_PATH 17763 ;; 17764 17765bsdi[45]*) 17766 version_type=linux 17767 need_version=no 17768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17769 soname_spec='${libname}${release}${shared_ext}$major' 17770 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17771 shlibpath_var=LD_LIBRARY_PATH 17772 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17773 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17774 # the default ld.so.conf also contains /usr/contrib/lib and 17775 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17776 # libtool to hard-code these into programs 17777 ;; 17778 17779cygwin* | mingw* | pw32*) 17780 version_type=windows 17781 shrext_cmds=".dll" 17782 need_version=no 17783 need_lib_prefix=no 17784 17785 case $GCC,$host_os in 17786 yes,cygwin* | yes,mingw* | yes,pw32*) 17787 library_names_spec='$libname.dll.a' 17788 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17789 postinstall_cmds='base_file=`basename \${file}`~ 17790 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17791 dldir=$destdir/`dirname \$dlpath`~ 17792 test -d \$dldir || mkdir -p \$dldir~ 17793 $install_prog $dir/$dlname \$dldir/$dlname~ 17794 chmod a+x \$dldir/$dlname' 17795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17796 dlpath=$dir/\$dldll~ 17797 $rm \$dlpath' 17798 shlibpath_overrides_runpath=yes 17799 17800 case $host_os in 17801 cygwin*) 17802 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17803 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17804 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17805 ;; 17806 mingw*) 17807 # MinGW DLLs use traditional 'lib' prefix 17808 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17809 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17810 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17811 # It is most probably a Windows format PATH printed by 17812 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17813 # path with ; separators, and with drive letters. We can handle the 17814 # drive letters (cygwin fileutils understands them), so leave them, 17815 # especially as we might pass files found there to a mingw objdump, 17816 # which wouldn't understand a cygwinified path. Ahh. 17817 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17818 else 17819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17820 fi 17821 ;; 17822 pw32*) 17823 # pw32 DLLs use 'pw' prefix rather than 'lib' 17824 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17825 ;; 17826 esac 17827 ;; 17828 17829 *) 17830 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17831 ;; 17832 esac 17833 dynamic_linker='Win32 ld.exe' 17834 # FIXME: first we should search . and the directory the executable is in 17835 shlibpath_var=PATH 17836 ;; 17837 17838darwin* | rhapsody*) 17839 dynamic_linker="$host_os dyld" 17840 version_type=darwin 17841 need_lib_prefix=no 17842 need_version=no 17843 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17844 soname_spec='${libname}${release}${major}$shared_ext' 17845 shlibpath_overrides_runpath=yes 17846 shlibpath_var=DYLD_LIBRARY_PATH 17847 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17848 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17849 if test "$GCC" = yes; then 17850 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"` 17851 else 17852 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17853 fi 17854 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17855 ;; 17856 17857dgux*) 17858 version_type=linux 17859 need_lib_prefix=no 17860 need_version=no 17861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17862 soname_spec='${libname}${release}${shared_ext}$major' 17863 shlibpath_var=LD_LIBRARY_PATH 17864 ;; 17865 17866freebsd1*) 17867 dynamic_linker=no 17868 ;; 17869 17870kfreebsd*-gnu) 17871 version_type=linux 17872 need_lib_prefix=no 17873 need_version=no 17874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17875 soname_spec='${libname}${release}${shared_ext}$major' 17876 shlibpath_var=LD_LIBRARY_PATH 17877 shlibpath_overrides_runpath=no 17878 hardcode_into_libs=yes 17879 dynamic_linker='GNU ld.so' 17880 ;; 17881 17882freebsd* | dragonfly*) 17883 # DragonFly does not have aout. When/if they implement a new 17884 # versioning mechanism, adjust this. 17885 if test -x /usr/bin/objformat; then 17886 objformat=`/usr/bin/objformat` 17887 else 17888 case $host_os in 17889 freebsd[123]*) objformat=aout ;; 17890 *) objformat=elf ;; 17891 esac 17892 fi 17893 version_type=freebsd-$objformat 17894 case $version_type in 17895 freebsd-elf*) 17896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17897 need_version=no 17898 need_lib_prefix=no 17899 ;; 17900 freebsd-*) 17901 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17902 need_version=yes 17903 ;; 17904 esac 17905 shlibpath_var=LD_LIBRARY_PATH 17906 case $host_os in 17907 freebsd2*) 17908 shlibpath_overrides_runpath=yes 17909 ;; 17910 freebsd3.[01]* | freebsdelf3.[01]*) 17911 shlibpath_overrides_runpath=yes 17912 hardcode_into_libs=yes 17913 ;; 17914 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17915 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17916 shlibpath_overrides_runpath=no 17917 hardcode_into_libs=yes 17918 ;; 17919 freebsd*) # from 4.6 on 17920 shlibpath_overrides_runpath=yes 17921 hardcode_into_libs=yes 17922 ;; 17923 esac 17924 ;; 17925 17926gnu*) 17927 version_type=linux 17928 need_lib_prefix=no 17929 need_version=no 17930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17931 soname_spec='${libname}${release}${shared_ext}$major' 17932 shlibpath_var=LD_LIBRARY_PATH 17933 hardcode_into_libs=yes 17934 ;; 17935 17936hpux9* | hpux10* | hpux11*) 17937 # Give a soname corresponding to the major version so that dld.sl refuses to 17938 # link against other versions. 17939 version_type=sunos 17940 need_lib_prefix=no 17941 need_version=no 17942 case $host_cpu in 17943 ia64*) 17944 shrext_cmds='.so' 17945 hardcode_into_libs=yes 17946 dynamic_linker="$host_os dld.so" 17947 shlibpath_var=LD_LIBRARY_PATH 17948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17950 soname_spec='${libname}${release}${shared_ext}$major' 17951 if test "X$HPUX_IA64_MODE" = X32; then 17952 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17953 else 17954 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17955 fi 17956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17957 ;; 17958 hppa*64*) 17959 shrext_cmds='.sl' 17960 hardcode_into_libs=yes 17961 dynamic_linker="$host_os dld.sl" 17962 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17965 soname_spec='${libname}${release}${shared_ext}$major' 17966 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17968 ;; 17969 *) 17970 shrext_cmds='.sl' 17971 dynamic_linker="$host_os dld.sl" 17972 shlibpath_var=SHLIB_PATH 17973 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17975 soname_spec='${libname}${release}${shared_ext}$major' 17976 ;; 17977 esac 17978 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17979 postinstall_cmds='chmod 555 $lib' 17980 ;; 17981 17982interix3*) 17983 version_type=linux 17984 need_lib_prefix=no 17985 need_version=no 17986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17987 soname_spec='${libname}${release}${shared_ext}$major' 17988 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17989 shlibpath_var=LD_LIBRARY_PATH 17990 shlibpath_overrides_runpath=no 17991 hardcode_into_libs=yes 17992 ;; 17993 17994irix5* | irix6* | nonstopux*) 17995 case $host_os in 17996 nonstopux*) version_type=nonstopux ;; 17997 *) 17998 if test "$lt_cv_prog_gnu_ld" = yes; then 17999 version_type=linux 18000 else 18001 version_type=irix 18002 fi ;; 18003 esac 18004 need_lib_prefix=no 18005 need_version=no 18006 soname_spec='${libname}${release}${shared_ext}$major' 18007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18008 case $host_os in 18009 irix5* | nonstopux*) 18010 libsuff= shlibsuff= 18011 ;; 18012 *) 18013 case $LD in # libtool.m4 will add one of these switches to LD 18014 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18015 libsuff= shlibsuff= libmagic=32-bit;; 18016 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18017 libsuff=32 shlibsuff=N32 libmagic=N32;; 18018 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18019 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18020 *) libsuff= shlibsuff= libmagic=never-match;; 18021 esac 18022 ;; 18023 esac 18024 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18025 shlibpath_overrides_runpath=no 18026 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18027 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18028 hardcode_into_libs=yes 18029 ;; 18030 18031# No shared lib support for Linux oldld, aout, or coff. 18032linux*oldld* | linux*aout* | linux*coff*) 18033 dynamic_linker=no 18034 ;; 18035 18036# This must be Linux ELF. 18037linux*) 18038 version_type=linux 18039 need_lib_prefix=no 18040 need_version=no 18041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18042 soname_spec='${libname}${release}${shared_ext}$major' 18043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18044 shlibpath_var=LD_LIBRARY_PATH 18045 shlibpath_overrides_runpath=no 18046 # This implies no fast_install, which is unacceptable. 18047 # Some rework will be needed to allow for fast_install 18048 # before this can be enabled. 18049 hardcode_into_libs=yes 18050 18051 # Append ld.so.conf contents to the search path 18052 if test -f /etc/ld.so.conf; then 18053 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' ' '` 18054 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18055 fi 18056 18057 # We used to test for /lib/ld.so.1 and disable shared libraries on 18058 # powerpc, because MkLinux only supported shared libraries with the 18059 # GNU dynamic linker. Since this was broken with cross compilers, 18060 # most powerpc-linux boxes support dynamic linking these days and 18061 # people can always --disable-shared, the test was removed, and we 18062 # assume the GNU/Linux dynamic linker is in use. 18063 dynamic_linker='GNU/Linux ld.so' 18064 ;; 18065 18066knetbsd*-gnu) 18067 version_type=linux 18068 need_lib_prefix=no 18069 need_version=no 18070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18071 soname_spec='${libname}${release}${shared_ext}$major' 18072 shlibpath_var=LD_LIBRARY_PATH 18073 shlibpath_overrides_runpath=no 18074 hardcode_into_libs=yes 18075 dynamic_linker='GNU ld.so' 18076 ;; 18077 18078netbsd*) 18079 version_type=sunos 18080 need_lib_prefix=no 18081 need_version=no 18082 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18085 dynamic_linker='NetBSD (a.out) ld.so' 18086 else 18087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18088 soname_spec='${libname}${release}${shared_ext}$major' 18089 dynamic_linker='NetBSD ld.elf_so' 18090 fi 18091 shlibpath_var=LD_LIBRARY_PATH 18092 shlibpath_overrides_runpath=yes 18093 hardcode_into_libs=yes 18094 ;; 18095 18096newsos6) 18097 version_type=linux 18098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18099 shlibpath_var=LD_LIBRARY_PATH 18100 shlibpath_overrides_runpath=yes 18101 ;; 18102 18103nto-qnx*) 18104 version_type=linux 18105 need_lib_prefix=no 18106 need_version=no 18107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18108 soname_spec='${libname}${release}${shared_ext}$major' 18109 shlibpath_var=LD_LIBRARY_PATH 18110 shlibpath_overrides_runpath=yes 18111 ;; 18112 18113openbsd*) 18114 version_type=sunos 18115 sys_lib_dlsearch_path_spec="/usr/lib" 18116 need_lib_prefix=no 18117 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18118 case $host_os in 18119 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18120 *) need_version=no ;; 18121 esac 18122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18124 shlibpath_var=LD_LIBRARY_PATH 18125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18126 case $host_os in 18127 openbsd2.[89] | openbsd2.[89].*) 18128 shlibpath_overrides_runpath=no 18129 ;; 18130 *) 18131 shlibpath_overrides_runpath=yes 18132 ;; 18133 esac 18134 else 18135 shlibpath_overrides_runpath=yes 18136 fi 18137 ;; 18138 18139os2*) 18140 libname_spec='$name' 18141 shrext_cmds=".dll" 18142 need_lib_prefix=no 18143 library_names_spec='$libname${shared_ext} $libname.a' 18144 dynamic_linker='OS/2 ld.exe' 18145 shlibpath_var=LIBPATH 18146 ;; 18147 18148osf3* | osf4* | osf5*) 18149 version_type=osf 18150 need_lib_prefix=no 18151 need_version=no 18152 soname_spec='${libname}${release}${shared_ext}$major' 18153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18154 shlibpath_var=LD_LIBRARY_PATH 18155 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18156 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18157 ;; 18158 18159solaris*) 18160 version_type=linux 18161 need_lib_prefix=no 18162 need_version=no 18163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18164 soname_spec='${libname}${release}${shared_ext}$major' 18165 shlibpath_var=LD_LIBRARY_PATH 18166 shlibpath_overrides_runpath=yes 18167 hardcode_into_libs=yes 18168 # ldd complains unless libraries are executable 18169 postinstall_cmds='chmod +x $lib' 18170 ;; 18171 18172sunos4*) 18173 version_type=sunos 18174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18175 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18176 shlibpath_var=LD_LIBRARY_PATH 18177 shlibpath_overrides_runpath=yes 18178 if test "$with_gnu_ld" = yes; then 18179 need_lib_prefix=no 18180 fi 18181 need_version=yes 18182 ;; 18183 18184sysv4 | sysv4.3*) 18185 version_type=linux 18186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18187 soname_spec='${libname}${release}${shared_ext}$major' 18188 shlibpath_var=LD_LIBRARY_PATH 18189 case $host_vendor in 18190 sni) 18191 shlibpath_overrides_runpath=no 18192 need_lib_prefix=no 18193 export_dynamic_flag_spec='${wl}-Blargedynsym' 18194 runpath_var=LD_RUN_PATH 18195 ;; 18196 siemens) 18197 need_lib_prefix=no 18198 ;; 18199 motorola) 18200 need_lib_prefix=no 18201 need_version=no 18202 shlibpath_overrides_runpath=no 18203 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18204 ;; 18205 esac 18206 ;; 18207 18208sysv4*MP*) 18209 if test -d /usr/nec ;then 18210 version_type=linux 18211 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18212 soname_spec='$libname${shared_ext}.$major' 18213 shlibpath_var=LD_LIBRARY_PATH 18214 fi 18215 ;; 18216 18217sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18218 version_type=freebsd-elf 18219 need_lib_prefix=no 18220 need_version=no 18221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18222 soname_spec='${libname}${release}${shared_ext}$major' 18223 shlibpath_var=LD_LIBRARY_PATH 18224 hardcode_into_libs=yes 18225 if test "$with_gnu_ld" = yes; then 18226 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18227 shlibpath_overrides_runpath=no 18228 else 18229 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18230 shlibpath_overrides_runpath=yes 18231 case $host_os in 18232 sco3.2v5*) 18233 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18234 ;; 18235 esac 18236 fi 18237 sys_lib_dlsearch_path_spec='/usr/lib' 18238 ;; 18239 18240uts4*) 18241 version_type=linux 18242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18243 soname_spec='${libname}${release}${shared_ext}$major' 18244 shlibpath_var=LD_LIBRARY_PATH 18245 ;; 18246 18247*) 18248 dynamic_linker=no 18249 ;; 18250esac 18251{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18252echo "${ECHO_T}$dynamic_linker" >&6; } 18253test "$dynamic_linker" = no && can_build_shared=no 18254 18255variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18256if test "$GCC" = yes; then 18257 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18258fi 18259 18260{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18261echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18262hardcode_action_GCJ= 18263if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18264 test -n "$runpath_var_GCJ" || \ 18265 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18266 18267 # We can hardcode non-existant directories. 18268 if test "$hardcode_direct_GCJ" != no && 18269 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18270 # have to relink, otherwise we might link with an installed library 18271 # when we should be linking with a yet-to-be-installed one 18272 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18273 test "$hardcode_minus_L_GCJ" != no; then 18274 # Linking always hardcodes the temporary library directory. 18275 hardcode_action_GCJ=relink 18276 else 18277 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18278 hardcode_action_GCJ=immediate 18279 fi 18280else 18281 # We cannot hardcode anything, or else we can only hardcode existing 18282 # directories. 18283 hardcode_action_GCJ=unsupported 18284fi 18285{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18286echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18287 18288if test "$hardcode_action_GCJ" = relink; then 18289 # Fast installation is not supported 18290 enable_fast_install=no 18291elif test "$shlibpath_overrides_runpath" = yes || 18292 test "$enable_shared" = no; then 18293 # Fast installation is not necessary 18294 enable_fast_install=needless 18295fi 18296 18297 18298# The else clause should only fire when bootstrapping the 18299# libtool distribution, otherwise you forgot to ship ltmain.sh 18300# with your package, and you will get complaints that there are 18301# no rules to generate ltmain.sh. 18302if test -f "$ltmain"; then 18303 # See if we are running on zsh, and set the options which allow our commands through 18304 # without removal of \ escapes. 18305 if test -n "${ZSH_VERSION+set}" ; then 18306 setopt NO_GLOB_SUBST 18307 fi 18308 # Now quote all the things that may contain metacharacters while being 18309 # careful not to overquote the AC_SUBSTed values. We take copies of the 18310 # variables and quote the copies for generation of the libtool script. 18311 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18312 SED SHELL STRIP \ 18313 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18314 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18315 deplibs_check_method reload_flag reload_cmds need_locks \ 18316 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18317 lt_cv_sys_global_symbol_to_c_name_address \ 18318 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18319 old_postinstall_cmds old_postuninstall_cmds \ 18320 compiler_GCJ \ 18321 CC_GCJ \ 18322 LD_GCJ \ 18323 lt_prog_compiler_wl_GCJ \ 18324 lt_prog_compiler_pic_GCJ \ 18325 lt_prog_compiler_static_GCJ \ 18326 lt_prog_compiler_no_builtin_flag_GCJ \ 18327 export_dynamic_flag_spec_GCJ \ 18328 thread_safe_flag_spec_GCJ \ 18329 whole_archive_flag_spec_GCJ \ 18330 enable_shared_with_static_runtimes_GCJ \ 18331 old_archive_cmds_GCJ \ 18332 old_archive_from_new_cmds_GCJ \ 18333 predep_objects_GCJ \ 18334 postdep_objects_GCJ \ 18335 predeps_GCJ \ 18336 postdeps_GCJ \ 18337 compiler_lib_search_path_GCJ \ 18338 archive_cmds_GCJ \ 18339 archive_expsym_cmds_GCJ \ 18340 postinstall_cmds_GCJ \ 18341 postuninstall_cmds_GCJ \ 18342 old_archive_from_expsyms_cmds_GCJ \ 18343 allow_undefined_flag_GCJ \ 18344 no_undefined_flag_GCJ \ 18345 export_symbols_cmds_GCJ \ 18346 hardcode_libdir_flag_spec_GCJ \ 18347 hardcode_libdir_flag_spec_ld_GCJ \ 18348 hardcode_libdir_separator_GCJ \ 18349 hardcode_automatic_GCJ \ 18350 module_cmds_GCJ \ 18351 module_expsym_cmds_GCJ \ 18352 lt_cv_prog_compiler_c_o_GCJ \ 18353 exclude_expsyms_GCJ \ 18354 include_expsyms_GCJ; do 18355 18356 case $var in 18357 old_archive_cmds_GCJ | \ 18358 old_archive_from_new_cmds_GCJ | \ 18359 archive_cmds_GCJ | \ 18360 archive_expsym_cmds_GCJ | \ 18361 module_cmds_GCJ | \ 18362 module_expsym_cmds_GCJ | \ 18363 old_archive_from_expsyms_cmds_GCJ | \ 18364 export_symbols_cmds_GCJ | \ 18365 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18366 postinstall_cmds | postuninstall_cmds | \ 18367 old_postinstall_cmds | old_postuninstall_cmds | \ 18368 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18369 # Double-quote double-evaled strings. 18370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18371 ;; 18372 *) 18373 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18374 ;; 18375 esac 18376 done 18377 18378 case $lt_echo in 18379 *'\$0 --fallback-echo"') 18380 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18381 ;; 18382 esac 18383 18384cfgfile="$ofile" 18385 18386 cat <<__EOF__ >> "$cfgfile" 18387# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18388 18389# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18390 18391# Shell to use when invoking shell scripts. 18392SHELL=$lt_SHELL 18393 18394# Whether or not to build shared libraries. 18395build_libtool_libs=$enable_shared 18396 18397# Whether or not to build static libraries. 18398build_old_libs=$enable_static 18399 18400# Whether or not to add -lc for building shared libraries. 18401build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18402 18403# Whether or not to disallow shared libs when runtime libs are static 18404allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18405 18406# Whether or not to optimize for fast installation. 18407fast_install=$enable_fast_install 18408 18409# The host system. 18410host_alias=$host_alias 18411host=$host 18412host_os=$host_os 18413 18414# The build system. 18415build_alias=$build_alias 18416build=$build 18417build_os=$build_os 18418 18419# An echo program that does not interpret backslashes. 18420echo=$lt_echo 18421 18422# The archiver. 18423AR=$lt_AR 18424AR_FLAGS=$lt_AR_FLAGS 18425 18426# A C compiler. 18427LTCC=$lt_LTCC 18428 18429# LTCC compiler flags. 18430LTCFLAGS=$lt_LTCFLAGS 18431 18432# A language-specific compiler. 18433CC=$lt_compiler_GCJ 18434 18435# Is the compiler the GNU C compiler? 18436with_gcc=$GCC_GCJ 18437 18438# An ERE matcher. 18439EGREP=$lt_EGREP 18440 18441# The linker used to build libraries. 18442LD=$lt_LD_GCJ 18443 18444# Whether we need hard or soft links. 18445LN_S=$lt_LN_S 18446 18447# A BSD-compatible nm program. 18448NM=$lt_NM 18449 18450# A symbol stripping program 18451STRIP=$lt_STRIP 18452 18453# Used to examine libraries when file_magic_cmd begins "file" 18454MAGIC_CMD=$MAGIC_CMD 18455 18456# Used on cygwin: DLL creation program. 18457DLLTOOL="$DLLTOOL" 18458 18459# Used on cygwin: object dumper. 18460OBJDUMP="$OBJDUMP" 18461 18462# Used on cygwin: assembler. 18463AS="$AS" 18464 18465# The name of the directory that contains temporary libtool files. 18466objdir=$objdir 18467 18468# How to create reloadable object files. 18469reload_flag=$lt_reload_flag 18470reload_cmds=$lt_reload_cmds 18471 18472# How to pass a linker flag through the compiler. 18473wl=$lt_lt_prog_compiler_wl_GCJ 18474 18475# Object file suffix (normally "o"). 18476objext="$ac_objext" 18477 18478# Old archive suffix (normally "a"). 18479libext="$libext" 18480 18481# Shared library suffix (normally ".so"). 18482shrext_cmds='$shrext_cmds' 18483 18484# Executable file suffix (normally ""). 18485exeext="$exeext" 18486 18487# Additional compiler flags for building library objects. 18488pic_flag=$lt_lt_prog_compiler_pic_GCJ 18489pic_mode=$pic_mode 18490 18491# What is the maximum length of a command? 18492max_cmd_len=$lt_cv_sys_max_cmd_len 18493 18494# Does compiler simultaneously support -c and -o options? 18495compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18496 18497# Must we lock files when doing compilation? 18498need_locks=$lt_need_locks 18499 18500# Do we need the lib prefix for modules? 18501need_lib_prefix=$need_lib_prefix 18502 18503# Do we need a version for libraries? 18504need_version=$need_version 18505 18506# Whether dlopen is supported. 18507dlopen_support=$enable_dlopen 18508 18509# Whether dlopen of programs is supported. 18510dlopen_self=$enable_dlopen_self 18511 18512# Whether dlopen of statically linked programs is supported. 18513dlopen_self_static=$enable_dlopen_self_static 18514 18515# Compiler flag to prevent dynamic linking. 18516link_static_flag=$lt_lt_prog_compiler_static_GCJ 18517 18518# Compiler flag to turn off builtin functions. 18519no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18520 18521# Compiler flag to allow reflexive dlopens. 18522export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18523 18524# Compiler flag to generate shared objects directly from archives. 18525whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18526 18527# Compiler flag to generate thread-safe objects. 18528thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18529 18530# Library versioning type. 18531version_type=$version_type 18532 18533# Format of library name prefix. 18534libname_spec=$lt_libname_spec 18535 18536# List of archive names. First name is the real one, the rest are links. 18537# The last name is the one that the linker finds with -lNAME. 18538library_names_spec=$lt_library_names_spec 18539 18540# The coded name of the library, if different from the real name. 18541soname_spec=$lt_soname_spec 18542 18543# Commands used to build and install an old-style archive. 18544RANLIB=$lt_RANLIB 18545old_archive_cmds=$lt_old_archive_cmds_GCJ 18546old_postinstall_cmds=$lt_old_postinstall_cmds 18547old_postuninstall_cmds=$lt_old_postuninstall_cmds 18548 18549# Create an old-style archive from a shared archive. 18550old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18551 18552# Create a temporary old-style archive to link instead of a shared archive. 18553old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18554 18555# Commands used to build and install a shared archive. 18556archive_cmds=$lt_archive_cmds_GCJ 18557archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18558postinstall_cmds=$lt_postinstall_cmds 18559postuninstall_cmds=$lt_postuninstall_cmds 18560 18561# Commands used to build a loadable module (assumed same as above if empty) 18562module_cmds=$lt_module_cmds_GCJ 18563module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18564 18565# Commands to strip libraries. 18566old_striplib=$lt_old_striplib 18567striplib=$lt_striplib 18568 18569# Dependencies to place before the objects being linked to create a 18570# shared library. 18571predep_objects=$lt_predep_objects_GCJ 18572 18573# Dependencies to place after the objects being linked to create a 18574# shared library. 18575postdep_objects=$lt_postdep_objects_GCJ 18576 18577# Dependencies to place before the objects being linked to create a 18578# shared library. 18579predeps=$lt_predeps_GCJ 18580 18581# Dependencies to place after the objects being linked to create a 18582# shared library. 18583postdeps=$lt_postdeps_GCJ 18584 18585# The library search path used internally by the compiler when linking 18586# a shared library. 18587compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18588 18589# Method to check whether dependent libraries are shared objects. 18590deplibs_check_method=$lt_deplibs_check_method 18591 18592# Command to use when deplibs_check_method == file_magic. 18593file_magic_cmd=$lt_file_magic_cmd 18594 18595# Flag that allows shared libraries with undefined symbols to be built. 18596allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18597 18598# Flag that forces no undefined symbols. 18599no_undefined_flag=$lt_no_undefined_flag_GCJ 18600 18601# Commands used to finish a libtool library installation in a directory. 18602finish_cmds=$lt_finish_cmds 18603 18604# Same as above, but a single script fragment to be evaled but not shown. 18605finish_eval=$lt_finish_eval 18606 18607# Take the output of nm and produce a listing of raw symbols and C names. 18608global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18609 18610# Transform the output of nm in a proper C declaration 18611global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18612 18613# Transform the output of nm in a C name address pair 18614global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18615 18616# This is the shared library runtime path variable. 18617runpath_var=$runpath_var 18618 18619# This is the shared library path variable. 18620shlibpath_var=$shlibpath_var 18621 18622# Is shlibpath searched before the hard-coded library search path? 18623shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18624 18625# How to hardcode a shared library path into an executable. 18626hardcode_action=$hardcode_action_GCJ 18627 18628# Whether we should hardcode library paths into libraries. 18629hardcode_into_libs=$hardcode_into_libs 18630 18631# Flag to hardcode \$libdir into a binary during linking. 18632# This must work even if \$libdir does not exist. 18633hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18634 18635# If ld is used when linking, flag to hardcode \$libdir into 18636# a binary during linking. This must work even if \$libdir does 18637# not exist. 18638hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18639 18640# Whether we need a single -rpath flag with a separated argument. 18641hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18642 18643# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18644# resulting binary. 18645hardcode_direct=$hardcode_direct_GCJ 18646 18647# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18648# resulting binary. 18649hardcode_minus_L=$hardcode_minus_L_GCJ 18650 18651# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18652# the resulting binary. 18653hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18654 18655# Set to yes if building a shared library automatically hardcodes DIR into the library 18656# and all subsequent libraries and executables linked against it. 18657hardcode_automatic=$hardcode_automatic_GCJ 18658 18659# Variables whose values should be saved in libtool wrapper scripts and 18660# restored at relink time. 18661variables_saved_for_relink="$variables_saved_for_relink" 18662 18663# Whether libtool must link a program against all its dependency libraries. 18664link_all_deplibs=$link_all_deplibs_GCJ 18665 18666# Compile-time system search path for libraries 18667sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18668 18669# Run-time system search path for libraries 18670sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18671 18672# Fix the shell variable \$srcfile for the compiler. 18673fix_srcfile_path="$fix_srcfile_path_GCJ" 18674 18675# Set to yes if exported symbols are required. 18676always_export_symbols=$always_export_symbols_GCJ 18677 18678# The commands to list exported symbols. 18679export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18680 18681# The commands to extract the exported symbol list from a shared archive. 18682extract_expsyms_cmds=$lt_extract_expsyms_cmds 18683 18684# Symbols that should not be listed in the preloaded symbols. 18685exclude_expsyms=$lt_exclude_expsyms_GCJ 18686 18687# Symbols that must always be exported. 18688include_expsyms=$lt_include_expsyms_GCJ 18689 18690# ### END LIBTOOL TAG CONFIG: $tagname 18691 18692__EOF__ 18693 18694 18695else 18696 # If there is no Makefile yet, we rely on a make rule to execute 18697 # `config.status --recheck' to rerun these tests and create the 18698 # libtool script then. 18699 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18700 if test -f "$ltmain_in"; then 18701 test -f Makefile && make "$ltmain" 18702 fi 18703fi 18704 18705 18706ac_ext=c 18707ac_cpp='$CPP $CPPFLAGS' 18708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18710ac_compiler_gnu=$ac_cv_c_compiler_gnu 18711 18712CC="$lt_save_CC" 18713 18714 else 18715 tagname="" 18716 fi 18717 ;; 18718 18719 RC) 18720 18721 18722# Source file extension for RC test sources. 18723ac_ext=rc 18724 18725# Object file extension for compiled RC test sources. 18726objext=o 18727objext_RC=$objext 18728 18729# Code to be used in simple compile tests 18730lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18731 18732# Code to be used in simple link tests 18733lt_simple_link_test_code="$lt_simple_compile_test_code" 18734 18735# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18736 18737# If no C compiler was specified, use CC. 18738LTCC=${LTCC-"$CC"} 18739 18740# If no C compiler flags were specified, use CFLAGS. 18741LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18742 18743# Allow CC to be a program name with arguments. 18744compiler=$CC 18745 18746 18747# save warnings/boilerplate of simple test code 18748ac_outfile=conftest.$ac_objext 18749printf "$lt_simple_compile_test_code" >conftest.$ac_ext 18750eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18751_lt_compiler_boilerplate=`cat conftest.err` 18752$rm conftest* 18753 18754ac_outfile=conftest.$ac_objext 18755printf "$lt_simple_link_test_code" >conftest.$ac_ext 18756eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18757_lt_linker_boilerplate=`cat conftest.err` 18758$rm conftest* 18759 18760 18761# Allow CC to be a program name with arguments. 18762lt_save_CC="$CC" 18763CC=${RC-"windres"} 18764compiler=$CC 18765compiler_RC=$CC 18766for cc_temp in $compiler""; do 18767 case $cc_temp in 18768 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18769 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18770 \-*) ;; 18771 *) break;; 18772 esac 18773done 18774cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18775 18776lt_cv_prog_compiler_c_o_RC=yes 18777 18778# The else clause should only fire when bootstrapping the 18779# libtool distribution, otherwise you forgot to ship ltmain.sh 18780# with your package, and you will get complaints that there are 18781# no rules to generate ltmain.sh. 18782if test -f "$ltmain"; then 18783 # See if we are running on zsh, and set the options which allow our commands through 18784 # without removal of \ escapes. 18785 if test -n "${ZSH_VERSION+set}" ; then 18786 setopt NO_GLOB_SUBST 18787 fi 18788 # Now quote all the things that may contain metacharacters while being 18789 # careful not to overquote the AC_SUBSTed values. We take copies of the 18790 # variables and quote the copies for generation of the libtool script. 18791 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18792 SED SHELL STRIP \ 18793 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18794 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18795 deplibs_check_method reload_flag reload_cmds need_locks \ 18796 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18797 lt_cv_sys_global_symbol_to_c_name_address \ 18798 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18799 old_postinstall_cmds old_postuninstall_cmds \ 18800 compiler_RC \ 18801 CC_RC \ 18802 LD_RC \ 18803 lt_prog_compiler_wl_RC \ 18804 lt_prog_compiler_pic_RC \ 18805 lt_prog_compiler_static_RC \ 18806 lt_prog_compiler_no_builtin_flag_RC \ 18807 export_dynamic_flag_spec_RC \ 18808 thread_safe_flag_spec_RC \ 18809 whole_archive_flag_spec_RC \ 18810 enable_shared_with_static_runtimes_RC \ 18811 old_archive_cmds_RC \ 18812 old_archive_from_new_cmds_RC \ 18813 predep_objects_RC \ 18814 postdep_objects_RC \ 18815 predeps_RC \ 18816 postdeps_RC \ 18817 compiler_lib_search_path_RC \ 18818 archive_cmds_RC \ 18819 archive_expsym_cmds_RC \ 18820 postinstall_cmds_RC \ 18821 postuninstall_cmds_RC \ 18822 old_archive_from_expsyms_cmds_RC \ 18823 allow_undefined_flag_RC \ 18824 no_undefined_flag_RC \ 18825 export_symbols_cmds_RC \ 18826 hardcode_libdir_flag_spec_RC \ 18827 hardcode_libdir_flag_spec_ld_RC \ 18828 hardcode_libdir_separator_RC \ 18829 hardcode_automatic_RC \ 18830 module_cmds_RC \ 18831 module_expsym_cmds_RC \ 18832 lt_cv_prog_compiler_c_o_RC \ 18833 exclude_expsyms_RC \ 18834 include_expsyms_RC; do 18835 18836 case $var in 18837 old_archive_cmds_RC | \ 18838 old_archive_from_new_cmds_RC | \ 18839 archive_cmds_RC | \ 18840 archive_expsym_cmds_RC | \ 18841 module_cmds_RC | \ 18842 module_expsym_cmds_RC | \ 18843 old_archive_from_expsyms_cmds_RC | \ 18844 export_symbols_cmds_RC | \ 18845 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18846 postinstall_cmds | postuninstall_cmds | \ 18847 old_postinstall_cmds | old_postuninstall_cmds | \ 18848 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18849 # Double-quote double-evaled strings. 18850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18851 ;; 18852 *) 18853 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18854 ;; 18855 esac 18856 done 18857 18858 case $lt_echo in 18859 *'\$0 --fallback-echo"') 18860 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18861 ;; 18862 esac 18863 18864cfgfile="$ofile" 18865 18866 cat <<__EOF__ >> "$cfgfile" 18867# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18868 18869# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18870 18871# Shell to use when invoking shell scripts. 18872SHELL=$lt_SHELL 18873 18874# Whether or not to build shared libraries. 18875build_libtool_libs=$enable_shared 18876 18877# Whether or not to build static libraries. 18878build_old_libs=$enable_static 18879 18880# Whether or not to add -lc for building shared libraries. 18881build_libtool_need_lc=$archive_cmds_need_lc_RC 18882 18883# Whether or not to disallow shared libs when runtime libs are static 18884allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18885 18886# Whether or not to optimize for fast installation. 18887fast_install=$enable_fast_install 18888 18889# The host system. 18890host_alias=$host_alias 18891host=$host 18892host_os=$host_os 18893 18894# The build system. 18895build_alias=$build_alias 18896build=$build 18897build_os=$build_os 18898 18899# An echo program that does not interpret backslashes. 18900echo=$lt_echo 18901 18902# The archiver. 18903AR=$lt_AR 18904AR_FLAGS=$lt_AR_FLAGS 18905 18906# A C compiler. 18907LTCC=$lt_LTCC 18908 18909# LTCC compiler flags. 18910LTCFLAGS=$lt_LTCFLAGS 18911 18912# A language-specific compiler. 18913CC=$lt_compiler_RC 18914 18915# Is the compiler the GNU C compiler? 18916with_gcc=$GCC_RC 18917 18918# An ERE matcher. 18919EGREP=$lt_EGREP 18920 18921# The linker used to build libraries. 18922LD=$lt_LD_RC 18923 18924# Whether we need hard or soft links. 18925LN_S=$lt_LN_S 18926 18927# A BSD-compatible nm program. 18928NM=$lt_NM 18929 18930# A symbol stripping program 18931STRIP=$lt_STRIP 18932 18933# Used to examine libraries when file_magic_cmd begins "file" 18934MAGIC_CMD=$MAGIC_CMD 18935 18936# Used on cygwin: DLL creation program. 18937DLLTOOL="$DLLTOOL" 18938 18939# Used on cygwin: object dumper. 18940OBJDUMP="$OBJDUMP" 18941 18942# Used on cygwin: assembler. 18943AS="$AS" 18944 18945# The name of the directory that contains temporary libtool files. 18946objdir=$objdir 18947 18948# How to create reloadable object files. 18949reload_flag=$lt_reload_flag 18950reload_cmds=$lt_reload_cmds 18951 18952# How to pass a linker flag through the compiler. 18953wl=$lt_lt_prog_compiler_wl_RC 18954 18955# Object file suffix (normally "o"). 18956objext="$ac_objext" 18957 18958# Old archive suffix (normally "a"). 18959libext="$libext" 18960 18961# Shared library suffix (normally ".so"). 18962shrext_cmds='$shrext_cmds' 18963 18964# Executable file suffix (normally ""). 18965exeext="$exeext" 18966 18967# Additional compiler flags for building library objects. 18968pic_flag=$lt_lt_prog_compiler_pic_RC 18969pic_mode=$pic_mode 18970 18971# What is the maximum length of a command? 18972max_cmd_len=$lt_cv_sys_max_cmd_len 18973 18974# Does compiler simultaneously support -c and -o options? 18975compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18976 18977# Must we lock files when doing compilation? 18978need_locks=$lt_need_locks 18979 18980# Do we need the lib prefix for modules? 18981need_lib_prefix=$need_lib_prefix 18982 18983# Do we need a version for libraries? 18984need_version=$need_version 18985 18986# Whether dlopen is supported. 18987dlopen_support=$enable_dlopen 18988 18989# Whether dlopen of programs is supported. 18990dlopen_self=$enable_dlopen_self 18991 18992# Whether dlopen of statically linked programs is supported. 18993dlopen_self_static=$enable_dlopen_self_static 18994 18995# Compiler flag to prevent dynamic linking. 18996link_static_flag=$lt_lt_prog_compiler_static_RC 18997 18998# Compiler flag to turn off builtin functions. 18999no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19000 19001# Compiler flag to allow reflexive dlopens. 19002export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19003 19004# Compiler flag to generate shared objects directly from archives. 19005whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19006 19007# Compiler flag to generate thread-safe objects. 19008thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19009 19010# Library versioning type. 19011version_type=$version_type 19012 19013# Format of library name prefix. 19014libname_spec=$lt_libname_spec 19015 19016# List of archive names. First name is the real one, the rest are links. 19017# The last name is the one that the linker finds with -lNAME. 19018library_names_spec=$lt_library_names_spec 19019 19020# The coded name of the library, if different from the real name. 19021soname_spec=$lt_soname_spec 19022 19023# Commands used to build and install an old-style archive. 19024RANLIB=$lt_RANLIB 19025old_archive_cmds=$lt_old_archive_cmds_RC 19026old_postinstall_cmds=$lt_old_postinstall_cmds 19027old_postuninstall_cmds=$lt_old_postuninstall_cmds 19028 19029# Create an old-style archive from a shared archive. 19030old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19031 19032# Create a temporary old-style archive to link instead of a shared archive. 19033old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19034 19035# Commands used to build and install a shared archive. 19036archive_cmds=$lt_archive_cmds_RC 19037archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19038postinstall_cmds=$lt_postinstall_cmds 19039postuninstall_cmds=$lt_postuninstall_cmds 19040 19041# Commands used to build a loadable module (assumed same as above if empty) 19042module_cmds=$lt_module_cmds_RC 19043module_expsym_cmds=$lt_module_expsym_cmds_RC 19044 19045# Commands to strip libraries. 19046old_striplib=$lt_old_striplib 19047striplib=$lt_striplib 19048 19049# Dependencies to place before the objects being linked to create a 19050# shared library. 19051predep_objects=$lt_predep_objects_RC 19052 19053# Dependencies to place after the objects being linked to create a 19054# shared library. 19055postdep_objects=$lt_postdep_objects_RC 19056 19057# Dependencies to place before the objects being linked to create a 19058# shared library. 19059predeps=$lt_predeps_RC 19060 19061# Dependencies to place after the objects being linked to create a 19062# shared library. 19063postdeps=$lt_postdeps_RC 19064 19065# The library search path used internally by the compiler when linking 19066# a shared library. 19067compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19068 19069# Method to check whether dependent libraries are shared objects. 19070deplibs_check_method=$lt_deplibs_check_method 19071 19072# Command to use when deplibs_check_method == file_magic. 19073file_magic_cmd=$lt_file_magic_cmd 19074 19075# Flag that allows shared libraries with undefined symbols to be built. 19076allow_undefined_flag=$lt_allow_undefined_flag_RC 19077 19078# Flag that forces no undefined symbols. 19079no_undefined_flag=$lt_no_undefined_flag_RC 19080 19081# Commands used to finish a libtool library installation in a directory. 19082finish_cmds=$lt_finish_cmds 19083 19084# Same as above, but a single script fragment to be evaled but not shown. 19085finish_eval=$lt_finish_eval 19086 19087# Take the output of nm and produce a listing of raw symbols and C names. 19088global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19089 19090# Transform the output of nm in a proper C declaration 19091global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19092 19093# Transform the output of nm in a C name address pair 19094global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19095 19096# This is the shared library runtime path variable. 19097runpath_var=$runpath_var 19098 19099# This is the shared library path variable. 19100shlibpath_var=$shlibpath_var 19101 19102# Is shlibpath searched before the hard-coded library search path? 19103shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19104 19105# How to hardcode a shared library path into an executable. 19106hardcode_action=$hardcode_action_RC 19107 19108# Whether we should hardcode library paths into libraries. 19109hardcode_into_libs=$hardcode_into_libs 19110 19111# Flag to hardcode \$libdir into a binary during linking. 19112# This must work even if \$libdir does not exist. 19113hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19114 19115# If ld is used when linking, flag to hardcode \$libdir into 19116# a binary during linking. This must work even if \$libdir does 19117# not exist. 19118hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19119 19120# Whether we need a single -rpath flag with a separated argument. 19121hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19122 19123# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19124# resulting binary. 19125hardcode_direct=$hardcode_direct_RC 19126 19127# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19128# resulting binary. 19129hardcode_minus_L=$hardcode_minus_L_RC 19130 19131# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19132# the resulting binary. 19133hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19134 19135# Set to yes if building a shared library automatically hardcodes DIR into the library 19136# and all subsequent libraries and executables linked against it. 19137hardcode_automatic=$hardcode_automatic_RC 19138 19139# Variables whose values should be saved in libtool wrapper scripts and 19140# restored at relink time. 19141variables_saved_for_relink="$variables_saved_for_relink" 19142 19143# Whether libtool must link a program against all its dependency libraries. 19144link_all_deplibs=$link_all_deplibs_RC 19145 19146# Compile-time system search path for libraries 19147sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19148 19149# Run-time system search path for libraries 19150sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19151 19152# Fix the shell variable \$srcfile for the compiler. 19153fix_srcfile_path="$fix_srcfile_path_RC" 19154 19155# Set to yes if exported symbols are required. 19156always_export_symbols=$always_export_symbols_RC 19157 19158# The commands to list exported symbols. 19159export_symbols_cmds=$lt_export_symbols_cmds_RC 19160 19161# The commands to extract the exported symbol list from a shared archive. 19162extract_expsyms_cmds=$lt_extract_expsyms_cmds 19163 19164# Symbols that should not be listed in the preloaded symbols. 19165exclude_expsyms=$lt_exclude_expsyms_RC 19166 19167# Symbols that must always be exported. 19168include_expsyms=$lt_include_expsyms_RC 19169 19170# ### END LIBTOOL TAG CONFIG: $tagname 19171 19172__EOF__ 19173 19174 19175else 19176 # If there is no Makefile yet, we rely on a make rule to execute 19177 # `config.status --recheck' to rerun these tests and create the 19178 # libtool script then. 19179 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19180 if test -f "$ltmain_in"; then 19181 test -f Makefile && make "$ltmain" 19182 fi 19183fi 19184 19185 19186ac_ext=c 19187ac_cpp='$CPP $CPPFLAGS' 19188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19190ac_compiler_gnu=$ac_cv_c_compiler_gnu 19191 19192CC="$lt_save_CC" 19193 19194 ;; 19195 19196 *) 19197 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19198echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19199 { (exit 1); exit 1; }; } 19200 ;; 19201 esac 19202 19203 # Append the new tag name to the list of available tags. 19204 if test -n "$tagname" ; then 19205 available_tags="$available_tags $tagname" 19206 fi 19207 fi 19208 done 19209 IFS="$lt_save_ifs" 19210 19211 # Now substitute the updated list of available tags. 19212 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19213 mv "${ofile}T" "$ofile" 19214 chmod +x "$ofile" 19215 else 19216 rm -f "${ofile}T" 19217 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19218echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19219 { (exit 1); exit 1; }; } 19220 fi 19221fi 19222 19223 19224 19225# This can be used to rebuild libtool when needed 19226LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19227 19228# Always use our own libtool. 19229LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19230 19231# Prevent multiple expansion 19232 19233 19234 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254# Check whether --with-icondir was given. 19255if test "${with_icondir+set}" = set; then 19256 withval=$with_icondir; ICONDIR="$withval" 19257else 19258 ICONDIR=${datadir}/icons 19259fi 19260 19261 19262 19263DEF_CURSORPATH="~/.icons:${datadir}/icons:${datadir}/pixmaps" 19264if test "x${ICONDIR}" != "x${datadir}/icons"; then 19265 DEF_CURSORPATH="${DEF_CURSORPATH}:${ICONDIR}" 19266fi 19267 19268# Check whether --with-cursorpath was given. 19269if test "${with_cursorpath+set}" = set; then 19270 withval=$with_cursorpath; XCURSORPATH="$withval" 19271else 19272 XCURSORPATH=$DEF_CURSORPATH 19273fi 19274 19275 19276 19277# Reformat cursor path for man page 19278XCURSORPATH_LIST=`echo $XCURSORPATH | sed 's/:/, /g'` 19279 19280 19281# Check for X 19282 19283 19284if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19285 if test -n "$ac_tool_prefix"; then 19286 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19287set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19288{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19290if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19291 echo $ECHO_N "(cached) $ECHO_C" >&6 19292else 19293 case $PKG_CONFIG in 19294 [\\/]* | ?:[\\/]*) 19295 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19296 ;; 19297 *) 19298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19299for as_dir in $PATH 19300do 19301 IFS=$as_save_IFS 19302 test -z "$as_dir" && as_dir=. 19303 for ac_exec_ext in '' $ac_executable_extensions; do 19304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19305 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19307 break 2 19308 fi 19309done 19310done 19311IFS=$as_save_IFS 19312 19313 ;; 19314esac 19315fi 19316PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19317if test -n "$PKG_CONFIG"; then 19318 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19319echo "${ECHO_T}$PKG_CONFIG" >&6; } 19320else 19321 { echo "$as_me:$LINENO: result: no" >&5 19322echo "${ECHO_T}no" >&6; } 19323fi 19324 19325 19326fi 19327if test -z "$ac_cv_path_PKG_CONFIG"; then 19328 ac_pt_PKG_CONFIG=$PKG_CONFIG 19329 # Extract the first word of "pkg-config", so it can be a program name with args. 19330set dummy pkg-config; ac_word=$2 19331{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19333if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19334 echo $ECHO_N "(cached) $ECHO_C" >&6 19335else 19336 case $ac_pt_PKG_CONFIG in 19337 [\\/]* | ?:[\\/]*) 19338 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19339 ;; 19340 *) 19341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19342for as_dir in $PATH 19343do 19344 IFS=$as_save_IFS 19345 test -z "$as_dir" && as_dir=. 19346 for ac_exec_ext in '' $ac_executable_extensions; do 19347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19348 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19350 break 2 19351 fi 19352done 19353done 19354IFS=$as_save_IFS 19355 19356 ;; 19357esac 19358fi 19359ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19360if test -n "$ac_pt_PKG_CONFIG"; then 19361 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19362echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 19363else 19364 { echo "$as_me:$LINENO: result: no" >&5 19365echo "${ECHO_T}no" >&6; } 19366fi 19367 19368 if test "x$ac_pt_PKG_CONFIG" = x; then 19369 PKG_CONFIG="" 19370 else 19371 case $cross_compiling:$ac_tool_warned in 19372yes:) 19373{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19374whose name does not start with the host triplet. If you think this 19375configuration is useful to you, please write to autoconf@gnu.org." >&5 19376echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19377whose name does not start with the host triplet. If you think this 19378configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19379ac_tool_warned=yes ;; 19380esac 19381 PKG_CONFIG=$ac_pt_PKG_CONFIG 19382 fi 19383else 19384 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19385fi 19386 19387fi 19388if test -n "$PKG_CONFIG"; then 19389 _pkg_min_version=0.9.0 19390 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19391echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 19392 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19393 { echo "$as_me:$LINENO: result: yes" >&5 19394echo "${ECHO_T}yes" >&6; } 19395 else 19396 { echo "$as_me:$LINENO: result: no" >&5 19397echo "${ECHO_T}no" >&6; } 19398 PKG_CONFIG="" 19399 fi 19400 19401fi 19402 19403pkg_failed=no 19404{ echo "$as_me:$LINENO: checking for XCURSOR" >&5 19405echo $ECHO_N "checking for XCURSOR... $ECHO_C" >&6; } 19406 19407if test -n "$PKG_CONFIG"; then 19408 if test -n "$PKG_CONFIG" && \ 19409 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\"") >&5 19410 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5 19411 ac_status=$? 19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19413 (exit $ac_status); }; then 19414 pkg_cv_XCURSOR_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null` 19415else 19416 pkg_failed=yes 19417fi 19418else 19419 pkg_failed=untried 19420fi 19421if test -n "$PKG_CONFIG"; then 19422 if test -n "$PKG_CONFIG" && \ 19423 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\"") >&5 19424 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5 19425 ac_status=$? 19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19427 (exit $ac_status); }; then 19428 pkg_cv_XCURSOR_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null` 19429else 19430 pkg_failed=yes 19431fi 19432else 19433 pkg_failed=untried 19434fi 19435 19436if test $pkg_failed = yes; then 19437 XCURSOR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto"` 19438 # Put the nasty error message in config.log where it belongs 19439 echo "$XCURSOR_PKG_ERRORS" 1>&5 19440 19441 { { echo "$as_me:$LINENO: error: Package requirements (xrender >= 0.8.2 xfixes x11 fixesproto) were not met. 19442Consider adjusting the PKG_CONFIG_PATH environment variable if you 19443installed software in a non-standard prefix. 19444 19445Alternatively you may set the XCURSOR_CFLAGS and XCURSOR_LIBS environment variables 19446to avoid the need to call pkg-config. See the pkg-config man page for 19447more details." >&5 19448echo "$as_me: error: Package requirements (xrender >= 0.8.2 xfixes x11 fixesproto) were not met. 19449Consider adjusting the PKG_CONFIG_PATH environment variable if you 19450installed software in a non-standard prefix. 19451 19452Alternatively you may set the XCURSOR_CFLAGS and XCURSOR_LIBS environment variables 19453to avoid the need to call pkg-config. See the pkg-config man page for 19454more details." >&2;} 19455 { (exit 1); exit 1; }; } 19456elif test $pkg_failed = untried; then 19457 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 19458is in your PATH or set the PKG_CONFIG environment variable to the full 19459path to pkg-config. 19460 19461Alternatively you may set the XCURSOR_CFLAGS and XCURSOR_LIBS environment variables 19462to avoid the need to call pkg-config. See the pkg-config man page for 19463more details. 19464 19465To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19466See \`config.log' for more details." >&5 19467echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 19468is in your PATH or set the PKG_CONFIG environment variable to the full 19469path to pkg-config. 19470 19471Alternatively you may set the XCURSOR_CFLAGS and XCURSOR_LIBS environment variables 19472to avoid the need to call pkg-config. See the pkg-config man page for 19473more details. 19474 19475To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19476See \`config.log' for more details." >&2;} 19477 { (exit 1); exit 1; }; } 19478else 19479 XCURSOR_CFLAGS=$pkg_cv_XCURSOR_CFLAGS 19480 XCURSOR_LIBS=$pkg_cv_XCURSOR_LIBS 19481 { echo "$as_me:$LINENO: result: yes" >&5 19482echo "${ECHO_T}yes" >&6; } 19483 : 19484fi 19485 19486cat >>confdefs.h <<\_ACEOF 19487#define HAVE_XFIXES 1 19488_ACEOF 19489 19490 19491 19492 19493 19494 19495 19496 19497if test x$APP_MAN_SUFFIX = x ; then 19498 APP_MAN_SUFFIX=1 19499fi 19500if test x$APP_MAN_DIR = x ; then 19501 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19502fi 19503 19504if test x$LIB_MAN_SUFFIX = x ; then 19505 LIB_MAN_SUFFIX=3 19506fi 19507if test x$LIB_MAN_DIR = x ; then 19508 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19509fi 19510 19511if test x$FILE_MAN_SUFFIX = x ; then 19512 case $host_os in 19513 solaris*) FILE_MAN_SUFFIX=4 ;; 19514 *) FILE_MAN_SUFFIX=5 ;; 19515 esac 19516fi 19517if test x$FILE_MAN_DIR = x ; then 19518 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19519fi 19520 19521if test x$MISC_MAN_SUFFIX = x ; then 19522 case $host_os in 19523 solaris*) MISC_MAN_SUFFIX=5 ;; 19524 *) MISC_MAN_SUFFIX=7 ;; 19525 esac 19526fi 19527if test x$MISC_MAN_DIR = x ; then 19528 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19529fi 19530 19531if test x$DRIVER_MAN_SUFFIX = x ; then 19532 case $host_os in 19533 solaris*) DRIVER_MAN_SUFFIX=7 ;; 19534 *) DRIVER_MAN_SUFFIX=4 ;; 19535 esac 19536fi 19537if test x$DRIVER_MAN_DIR = x ; then 19538 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19539fi 19540 19541if test x$ADMIN_MAN_SUFFIX = x ; then 19542 case $host_os in 19543 solaris*) ADMIN_MAN_SUFFIX=1m ;; 19544 *) ADMIN_MAN_SUFFIX=8 ;; 19545 esac 19546fi 19547if test x$ADMIN_MAN_DIR = x ; then 19548 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19549fi 19550 19551 19552 19553 19554 19555 19556 19557 19558 19559 19560 19561 19562 19563 19564 19565 19566 19567# Check whether --with-release-version was given. 19568if test "${with_release_version+set}" = set; then 19569 withval=$with_release_version; RELEASE_VERSION="$withval" 19570else 19571 RELEASE_VERSION="" 19572fi 19573 19574 if test "x$RELEASE_VERSION" != "x"; then 19575 PACKAGE="$PACKAGE-$RELEASE_VERSION" 19576 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 19577 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 19578echo "$as_me: Building with package name set to $PACKAGE" >&6;} 19579 fi 19580 19581cat >>confdefs.h <<_ACEOF 19582#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19583_ACEOF 19584 19585 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2` 19586 if test "x$PVM" = "x"; then 19587 PVM="0" 19588 fi 19589 19590cat >>confdefs.h <<_ACEOF 19591#define PACKAGE_VERSION_MINOR $PVM 19592_ACEOF 19593 19594 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3` 19595 if test "x$PVP" = "x"; then 19596 PVP="0" 19597 fi 19598 19599cat >>confdefs.h <<_ACEOF 19600#define PACKAGE_VERSION_PATCHLEVEL $PVP 19601_ACEOF 19602 19603 19604 19605 19606 19607# Allow checking code with lint, sparse, etc. 19608 19609# Check whether --with-lint was given. 19610if test "${with_lint+set}" = set; then 19611 withval=$with_lint; use_lint=$withval 19612else 19613 use_lint=no 19614fi 19615 19616if test "x$use_lint" = "xyes" ; then 19617 LINT="lint" 19618else 19619 LINT="$use_lint" 19620fi 19621if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 19622 case $LINT in 19623 lint|*/lint) 19624 case $host_os in 19625 solaris*) 19626 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 19627 ;; 19628 esac 19629 ;; 19630 esac 19631fi 19632 19633 19634 19635 if test x$LINT != xno; then 19636 LINT_TRUE= 19637 LINT_FALSE='#' 19638else 19639 LINT_TRUE='#' 19640 LINT_FALSE= 19641fi 19642 19643 19644 19645 19646ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xcursor.pc" 19647 19648cat >confcache <<\_ACEOF 19649# This file is a shell script that caches the results of configure 19650# tests run on this system so they can be shared between configure 19651# scripts and configure runs, see configure's option --config-cache. 19652# It is not useful on other systems. If it contains results you don't 19653# want to keep, you may remove or edit it. 19654# 19655# config.status only pays attention to the cache file if you give it 19656# the --recheck option to rerun configure. 19657# 19658# `ac_cv_env_foo' variables (set or unset) will be overridden when 19659# loading this file, other *unset* `ac_cv_foo' will be assigned the 19660# following values. 19661 19662_ACEOF 19663 19664# The following way of writing the cache mishandles newlines in values, 19665# but we know of no workaround that is simple, portable, and efficient. 19666# So, we kill variables containing newlines. 19667# Ultrix sh set writes to stderr and can't be redirected directly, 19668# and sets the high bit in the cache file unless we assign to the vars. 19669( 19670 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19671 eval ac_val=\$$ac_var 19672 case $ac_val in #( 19673 *${as_nl}*) 19674 case $ac_var in #( 19675 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 19676echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 19677 esac 19678 case $ac_var in #( 19679 _ | IFS | as_nl) ;; #( 19680 *) $as_unset $ac_var ;; 19681 esac ;; 19682 esac 19683 done 19684 19685 (set) 2>&1 | 19686 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19687 *${as_nl}ac_space=\ *) 19688 # `set' does not quote correctly, so add quotes (double-quote 19689 # substitution turns \\\\ into \\, and sed turns \\ into \). 19690 sed -n \ 19691 "s/'/'\\\\''/g; 19692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19693 ;; #( 19694 *) 19695 # `set' quotes correctly as required by POSIX, so do not add quotes. 19696 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19697 ;; 19698 esac | 19699 sort 19700) | 19701 sed ' 19702 /^ac_cv_env_/b end 19703 t clear 19704 :clear 19705 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19706 t end 19707 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19708 :end' >>confcache 19709if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19710 if test -w "$cache_file"; then 19711 test "x$cache_file" != "x/dev/null" && 19712 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 19713echo "$as_me: updating cache $cache_file" >&6;} 19714 cat confcache >$cache_file 19715 else 19716 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 19717echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19718 fi 19719fi 19720rm -f confcache 19721 19722test "x$prefix" = xNONE && prefix=$ac_default_prefix 19723# Let make expand exec_prefix. 19724test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19725 19726DEFS=-DHAVE_CONFIG_H 19727 19728ac_libobjs= 19729ac_ltlibobjs= 19730for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19731 # 1. Remove the extension, and $U if already installed. 19732 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19733 ac_i=`echo "$ac_i" | sed "$ac_script"` 19734 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19735 # will be set to the directory where LIBOBJS objects are built. 19736 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19737 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 19738done 19739LIBOBJS=$ac_libobjs 19740 19741LTLIBOBJS=$ac_ltlibobjs 19742 19743 19744if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19745 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 19746Usually this means the macro was only invoked conditionally." >&5 19747echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 19748Usually this means the macro was only invoked conditionally." >&2;} 19749 { (exit 1); exit 1; }; } 19750fi 19751if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19752 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 19753Usually this means the macro was only invoked conditionally." >&5 19754echo "$as_me: error: conditional \"AMDEP\" was never defined. 19755Usually this means the macro was only invoked conditionally." >&2;} 19756 { (exit 1); exit 1; }; } 19757fi 19758if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19759 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 19760Usually this means the macro was only invoked conditionally." >&5 19761echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 19762Usually this means the macro was only invoked conditionally." >&2;} 19763 { (exit 1); exit 1; }; } 19764fi 19765if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 19766 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 19767Usually this means the macro was only invoked conditionally." >&5 19768echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 19769Usually this means the macro was only invoked conditionally." >&2;} 19770 { (exit 1); exit 1; }; } 19771fi 19772if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 19773 { { echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined. 19774Usually this means the macro was only invoked conditionally." >&5 19775echo "$as_me: error: conditional \"LINT\" was never defined. 19776Usually this means the macro was only invoked conditionally." >&2;} 19777 { (exit 1); exit 1; }; } 19778fi 19779 19780: ${CONFIG_STATUS=./config.status} 19781ac_clean_files_save=$ac_clean_files 19782ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19783{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19784echo "$as_me: creating $CONFIG_STATUS" >&6;} 19785cat >$CONFIG_STATUS <<_ACEOF 19786#! $SHELL 19787# Generated by $as_me. 19788# Run this file to recreate the current configuration. 19789# Compiler output produced by configure, useful for debugging 19790# configure, is in config.log if it exists. 19791 19792debug=false 19793ac_cs_recheck=false 19794ac_cs_silent=false 19795SHELL=\${CONFIG_SHELL-$SHELL} 19796_ACEOF 19797 19798cat >>$CONFIG_STATUS <<\_ACEOF 19799## --------------------- ## 19800## M4sh Initialization. ## 19801## --------------------- ## 19802 19803# Be more Bourne compatible 19804DUALCASE=1; export DUALCASE # for MKS sh 19805if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19806 emulate sh 19807 NULLCMD=: 19808 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19809 # is contrary to our usage. Disable this feature. 19810 alias -g '${1+"$@"}'='"$@"' 19811 setopt NO_GLOB_SUBST 19812else 19813 case `(set -o) 2>/dev/null` in 19814 *posix*) set -o posix ;; 19815esac 19816 19817fi 19818 19819 19820 19821 19822# PATH needs CR 19823# Avoid depending upon Character Ranges. 19824as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19825as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19826as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19827as_cr_digits='0123456789' 19828as_cr_alnum=$as_cr_Letters$as_cr_digits 19829 19830# The user is always right. 19831if test "${PATH_SEPARATOR+set}" != set; then 19832 echo "#! /bin/sh" >conf$$.sh 19833 echo "exit 0" >>conf$$.sh 19834 chmod +x conf$$.sh 19835 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19836 PATH_SEPARATOR=';' 19837 else 19838 PATH_SEPARATOR=: 19839 fi 19840 rm -f conf$$.sh 19841fi 19842 19843# Support unset when possible. 19844if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19845 as_unset=unset 19846else 19847 as_unset=false 19848fi 19849 19850 19851# IFS 19852# We need space, tab and new line, in precisely that order. Quoting is 19853# there to prevent editors from complaining about space-tab. 19854# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19855# splitting by setting IFS to empty value.) 19856as_nl=' 19857' 19858IFS=" "" $as_nl" 19859 19860# Find who we are. Look in the path if we contain no directory separator. 19861case $0 in 19862 *[\\/]* ) as_myself=$0 ;; 19863 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19864for as_dir in $PATH 19865do 19866 IFS=$as_save_IFS 19867 test -z "$as_dir" && as_dir=. 19868 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19869done 19870IFS=$as_save_IFS 19871 19872 ;; 19873esac 19874# We did not find ourselves, most probably we were run as `sh COMMAND' 19875# in which case we are not to be found in the path. 19876if test "x$as_myself" = x; then 19877 as_myself=$0 19878fi 19879if test ! -f "$as_myself"; then 19880 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19881 { (exit 1); exit 1; } 19882fi 19883 19884# Work around bugs in pre-3.0 UWIN ksh. 19885for as_var in ENV MAIL MAILPATH 19886do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 19887done 19888PS1='$ ' 19889PS2='> ' 19890PS4='+ ' 19891 19892# NLS nuisances. 19893for as_var in \ 19894 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 19895 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 19896 LC_TELEPHONE LC_TIME 19897do 19898 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 19899 eval $as_var=C; export $as_var 19900 else 19901 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 19902 fi 19903done 19904 19905# Required to use basename. 19906if expr a : '\(a\)' >/dev/null 2>&1 && 19907 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19908 as_expr=expr 19909else 19910 as_expr=false 19911fi 19912 19913if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19914 as_basename=basename 19915else 19916 as_basename=false 19917fi 19918 19919 19920# Name of the executable. 19921as_me=`$as_basename -- "$0" || 19922$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19923 X"$0" : 'X\(//\)$' \| \ 19924 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19925echo X/"$0" | 19926 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19927 s//\1/ 19928 q 19929 } 19930 /^X\/\(\/\/\)$/{ 19931 s//\1/ 19932 q 19933 } 19934 /^X\/\(\/\).*/{ 19935 s//\1/ 19936 q 19937 } 19938 s/.*/./; q'` 19939 19940# CDPATH. 19941$as_unset CDPATH 19942 19943 19944 19945 as_lineno_1=$LINENO 19946 as_lineno_2=$LINENO 19947 test "x$as_lineno_1" != "x$as_lineno_2" && 19948 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 19949 19950 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 19951 # uniformly replaced by the line number. The first 'sed' inserts a 19952 # line-number line after each line using $LINENO; the second 'sed' 19953 # does the real work. The second script uses 'N' to pair each 19954 # line-number line with the line containing $LINENO, and appends 19955 # trailing '-' during substitution so that $LINENO is not a special 19956 # case at line end. 19957 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 19958 # scripts with optimization help from Paolo Bonzini. Blame Lee 19959 # E. McMahon (1931-1989) for sed's syntax. :-) 19960 sed -n ' 19961 p 19962 /[$]LINENO/= 19963 ' <$as_myself | 19964 sed ' 19965 s/[$]LINENO.*/&-/ 19966 t lineno 19967 b 19968 :lineno 19969 N 19970 :loop 19971 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 19972 t loop 19973 s/-\n.*// 19974 ' >$as_me.lineno && 19975 chmod +x "$as_me.lineno" || 19976 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 19977 { (exit 1); exit 1; }; } 19978 19979 # Don't try to exec as it changes $[0], causing all sort of problems 19980 # (the dirname of $[0] is not the place where we might find the 19981 # original and so on. Autoconf is especially sensitive to this). 19982 . "./$as_me.lineno" 19983 # Exit status is that of the last command. 19984 exit 19985} 19986 19987 19988if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19989 as_dirname=dirname 19990else 19991 as_dirname=false 19992fi 19993 19994ECHO_C= ECHO_N= ECHO_T= 19995case `echo -n x` in 19996-n*) 19997 case `echo 'x\c'` in 19998 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19999 *) ECHO_C='\c';; 20000 esac;; 20001*) 20002 ECHO_N='-n';; 20003esac 20004 20005if expr a : '\(a\)' >/dev/null 2>&1 && 20006 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20007 as_expr=expr 20008else 20009 as_expr=false 20010fi 20011 20012rm -f conf$$ conf$$.exe conf$$.file 20013if test -d conf$$.dir; then 20014 rm -f conf$$.dir/conf$$.file 20015else 20016 rm -f conf$$.dir 20017 mkdir conf$$.dir 20018fi 20019echo >conf$$.file 20020if ln -s conf$$.file conf$$ 2>/dev/null; then 20021 as_ln_s='ln -s' 20022 # ... but there are two gotchas: 20023 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20024 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20025 # In both cases, we have to default to `cp -p'. 20026 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20027 as_ln_s='cp -p' 20028elif ln conf$$.file conf$$ 2>/dev/null; then 20029 as_ln_s=ln 20030else 20031 as_ln_s='cp -p' 20032fi 20033rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20034rmdir conf$$.dir 2>/dev/null 20035 20036if mkdir -p . 2>/dev/null; then 20037 as_mkdir_p=: 20038else 20039 test -d ./-p && rmdir ./-p 20040 as_mkdir_p=false 20041fi 20042 20043if test -x / >/dev/null 2>&1; then 20044 as_test_x='test -x' 20045else 20046 if ls -dL / >/dev/null 2>&1; then 20047 as_ls_L_option=L 20048 else 20049 as_ls_L_option= 20050 fi 20051 as_test_x=' 20052 eval sh -c '\'' 20053 if test -d "$1"; then 20054 test -d "$1/."; 20055 else 20056 case $1 in 20057 -*)set "./$1";; 20058 esac; 20059 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 20060 ???[sx]*):;;*)false;;esac;fi 20061 '\'' sh 20062 ' 20063fi 20064as_executable_p=$as_test_x 20065 20066# Sed expression to map a string onto a valid CPP name. 20067as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20068 20069# Sed expression to map a string onto a valid variable name. 20070as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20071 20072 20073exec 6>&1 20074 20075# Save the log message, to keep $[0] and so on meaningful, and to 20076# report actual input values of CONFIG_FILES etc. instead of their 20077# values after options handling. 20078ac_log=" 20079This file was extended by libXcursor $as_me 1.1.9, which was 20080generated by GNU Autoconf 2.61. Invocation command line was 20081 20082 CONFIG_FILES = $CONFIG_FILES 20083 CONFIG_HEADERS = $CONFIG_HEADERS 20084 CONFIG_LINKS = $CONFIG_LINKS 20085 CONFIG_COMMANDS = $CONFIG_COMMANDS 20086 $ $0 $@ 20087 20088on `(hostname || uname -n) 2>/dev/null | sed 1q` 20089" 20090 20091_ACEOF 20092 20093cat >>$CONFIG_STATUS <<_ACEOF 20094# Files that config.status was made for. 20095config_files="$ac_config_files" 20096config_headers="$ac_config_headers" 20097config_commands="$ac_config_commands" 20098 20099_ACEOF 20100 20101cat >>$CONFIG_STATUS <<\_ACEOF 20102ac_cs_usage="\ 20103\`$as_me' instantiates files from templates according to the 20104current configuration. 20105 20106Usage: $0 [OPTIONS] [FILE]... 20107 20108 -h, --help print this help, then exit 20109 -V, --version print version number and configuration settings, then exit 20110 -q, --quiet do not print progress messages 20111 -d, --debug don't remove temporary files 20112 --recheck update $as_me by reconfiguring in the same conditions 20113 --file=FILE[:TEMPLATE] 20114 instantiate the configuration file FILE 20115 --header=FILE[:TEMPLATE] 20116 instantiate the configuration header FILE 20117 20118Configuration files: 20119$config_files 20120 20121Configuration headers: 20122$config_headers 20123 20124Configuration commands: 20125$config_commands 20126 20127Report bugs to <bug-autoconf@gnu.org>." 20128 20129_ACEOF 20130cat >>$CONFIG_STATUS <<_ACEOF 20131ac_cs_version="\\ 20132libXcursor config.status 1.1.9 20133configured by $0, generated by GNU Autoconf 2.61, 20134 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 20135 20136Copyright (C) 2006 Free Software Foundation, Inc. 20137This config.status script is free software; the Free Software Foundation 20138gives unlimited permission to copy, distribute and modify it." 20139 20140ac_pwd='$ac_pwd' 20141srcdir='$srcdir' 20142INSTALL='$INSTALL' 20143MKDIR_P='$MKDIR_P' 20144_ACEOF 20145 20146cat >>$CONFIG_STATUS <<\_ACEOF 20147# If no file are specified by the user, then we need to provide default 20148# value. By we need to know if files were specified by the user. 20149ac_need_defaults=: 20150while test $# != 0 20151do 20152 case $1 in 20153 --*=*) 20154 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20155 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20156 ac_shift=: 20157 ;; 20158 *) 20159 ac_option=$1 20160 ac_optarg=$2 20161 ac_shift=shift 20162 ;; 20163 esac 20164 20165 case $ac_option in 20166 # Handling of the options. 20167 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20168 ac_cs_recheck=: ;; 20169 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20170 echo "$ac_cs_version"; exit ;; 20171 --debug | --debu | --deb | --de | --d | -d ) 20172 debug=: ;; 20173 --file | --fil | --fi | --f ) 20174 $ac_shift 20175 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20176 ac_need_defaults=false;; 20177 --header | --heade | --head | --hea ) 20178 $ac_shift 20179 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20180 ac_need_defaults=false;; 20181 --he | --h) 20182 # Conflict between --help and --header 20183 { echo "$as_me: error: ambiguous option: $1 20184Try \`$0 --help' for more information." >&2 20185 { (exit 1); exit 1; }; };; 20186 --help | --hel | -h ) 20187 echo "$ac_cs_usage"; exit ;; 20188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20189 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20190 ac_cs_silent=: ;; 20191 20192 # This is an error. 20193 -*) { echo "$as_me: error: unrecognized option: $1 20194Try \`$0 --help' for more information." >&2 20195 { (exit 1); exit 1; }; } ;; 20196 20197 *) ac_config_targets="$ac_config_targets $1" 20198 ac_need_defaults=false ;; 20199 20200 esac 20201 shift 20202done 20203 20204ac_configure_extra_args= 20205 20206if $ac_cs_silent; then 20207 exec 6>/dev/null 20208 ac_configure_extra_args="$ac_configure_extra_args --silent" 20209fi 20210 20211_ACEOF 20212cat >>$CONFIG_STATUS <<_ACEOF 20213if \$ac_cs_recheck; then 20214 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20215 CONFIG_SHELL=$SHELL 20216 export CONFIG_SHELL 20217 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20218fi 20219 20220_ACEOF 20221cat >>$CONFIG_STATUS <<\_ACEOF 20222exec 5>>config.log 20223{ 20224 echo 20225 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20226## Running $as_me. ## 20227_ASBOX 20228 echo "$ac_log" 20229} >&5 20230 20231_ACEOF 20232cat >>$CONFIG_STATUS <<_ACEOF 20233# 20234# INIT-COMMANDS 20235# 20236AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20237 20238_ACEOF 20239 20240cat >>$CONFIG_STATUS <<\_ACEOF 20241 20242# Handling of arguments. 20243for ac_config_target in $ac_config_targets 20244do 20245 case $ac_config_target in 20246 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20247 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20248 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20249 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20250 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20251 "xcursor.pc") CONFIG_FILES="$CONFIG_FILES xcursor.pc" ;; 20252 20253 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20254echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20255 { (exit 1); exit 1; }; };; 20256 esac 20257done 20258 20259 20260# If the user did not use the arguments to specify the items to instantiate, 20261# then the envvar interface is used. Set only those that are not. 20262# We use the long form for the default assignment because of an extremely 20263# bizarre bug on SunOS 4.1.3. 20264if $ac_need_defaults; then 20265 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20266 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20267 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20268fi 20269 20270# Have a temporary directory for convenience. Make it in the build tree 20271# simply because there is no reason against having it here, and in addition, 20272# creating and moving files from /tmp can sometimes cause problems. 20273# Hook for its removal unless debugging. 20274# Note that there is a small window in which the directory will not be cleaned: 20275# after its creation but before its name has been assigned to `$tmp'. 20276$debug || 20277{ 20278 tmp= 20279 trap 'exit_status=$? 20280 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 20281' 0 20282 trap '{ (exit 1); exit 1; }' 1 2 13 15 20283} 20284# Create a (secure) tmp directory for tmp files. 20285 20286{ 20287 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20288 test -n "$tmp" && test -d "$tmp" 20289} || 20290{ 20291 tmp=./conf$$-$RANDOM 20292 (umask 077 && mkdir "$tmp") 20293} || 20294{ 20295 echo "$me: cannot create a temporary directory in ." >&2 20296 { (exit 1); exit 1; } 20297} 20298 20299# 20300# Set up the sed scripts for CONFIG_FILES section. 20301# 20302 20303# No need to generate the scripts if there are no CONFIG_FILES. 20304# This happens for instance when ./config.status config.h 20305if test -n "$CONFIG_FILES"; then 20306 20307_ACEOF 20308 20309 20310 20311ac_delim='%!_!# ' 20312for ac_last_try in false false false false false :; do 20313 cat >conf$$subs.sed <<_ACEOF 20314SHELL!$SHELL$ac_delim 20315PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 20316PACKAGE_NAME!$PACKAGE_NAME$ac_delim 20317PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 20318PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 20319PACKAGE_STRING!$PACKAGE_STRING$ac_delim 20320PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 20321exec_prefix!$exec_prefix$ac_delim 20322prefix!$prefix$ac_delim 20323program_transform_name!$program_transform_name$ac_delim 20324bindir!$bindir$ac_delim 20325sbindir!$sbindir$ac_delim 20326libexecdir!$libexecdir$ac_delim 20327datarootdir!$datarootdir$ac_delim 20328datadir!$datadir$ac_delim 20329sysconfdir!$sysconfdir$ac_delim 20330sharedstatedir!$sharedstatedir$ac_delim 20331localstatedir!$localstatedir$ac_delim 20332includedir!$includedir$ac_delim 20333oldincludedir!$oldincludedir$ac_delim 20334docdir!$docdir$ac_delim 20335infodir!$infodir$ac_delim 20336htmldir!$htmldir$ac_delim 20337dvidir!$dvidir$ac_delim 20338pdfdir!$pdfdir$ac_delim 20339psdir!$psdir$ac_delim 20340libdir!$libdir$ac_delim 20341localedir!$localedir$ac_delim 20342mandir!$mandir$ac_delim 20343DEFS!$DEFS$ac_delim 20344ECHO_C!$ECHO_C$ac_delim 20345ECHO_N!$ECHO_N$ac_delim 20346ECHO_T!$ECHO_T$ac_delim 20347LIBS!$LIBS$ac_delim 20348build_alias!$build_alias$ac_delim 20349host_alias!$host_alias$ac_delim 20350target_alias!$target_alias$ac_delim 20351INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 20352INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 20353INSTALL_DATA!$INSTALL_DATA$ac_delim 20354am__isrc!$am__isrc$ac_delim 20355CYGPATH_W!$CYGPATH_W$ac_delim 20356PACKAGE!$PACKAGE$ac_delim 20357VERSION!$VERSION$ac_delim 20358ACLOCAL!$ACLOCAL$ac_delim 20359AUTOCONF!$AUTOCONF$ac_delim 20360AUTOMAKE!$AUTOMAKE$ac_delim 20361AUTOHEADER!$AUTOHEADER$ac_delim 20362MAKEINFO!$MAKEINFO$ac_delim 20363install_sh!$install_sh$ac_delim 20364STRIP!$STRIP$ac_delim 20365INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 20366mkdir_p!$mkdir_p$ac_delim 20367AWK!$AWK$ac_delim 20368SET_MAKE!$SET_MAKE$ac_delim 20369am__leading_dot!$am__leading_dot$ac_delim 20370AMTAR!$AMTAR$ac_delim 20371am__tar!$am__tar$ac_delim 20372am__untar!$am__untar$ac_delim 20373MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 20374MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 20375MAINT!$MAINT$ac_delim 20376CC!$CC$ac_delim 20377CFLAGS!$CFLAGS$ac_delim 20378LDFLAGS!$LDFLAGS$ac_delim 20379CPPFLAGS!$CPPFLAGS$ac_delim 20380ac_ct_CC!$ac_ct_CC$ac_delim 20381EXEEXT!$EXEEXT$ac_delim 20382OBJEXT!$OBJEXT$ac_delim 20383DEPDIR!$DEPDIR$ac_delim 20384am__include!$am__include$ac_delim 20385am__quote!$am__quote$ac_delim 20386AMDEP_TRUE!$AMDEP_TRUE$ac_delim 20387AMDEP_FALSE!$AMDEP_FALSE$ac_delim 20388AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 20389CCDEPMODE!$CCDEPMODE$ac_delim 20390am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 20391am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 20392build!$build$ac_delim 20393build_cpu!$build_cpu$ac_delim 20394build_vendor!$build_vendor$ac_delim 20395build_os!$build_os$ac_delim 20396host!$host$ac_delim 20397host_cpu!$host_cpu$ac_delim 20398host_vendor!$host_vendor$ac_delim 20399host_os!$host_os$ac_delim 20400GREP!$GREP$ac_delim 20401EGREP!$EGREP$ac_delim 20402LN_S!$LN_S$ac_delim 20403ECHO!$ECHO$ac_delim 20404AR!$AR$ac_delim 20405RANLIB!$RANLIB$ac_delim 20406CPP!$CPP$ac_delim 20407CXX!$CXX$ac_delim 20408CXXFLAGS!$CXXFLAGS$ac_delim 20409ac_ct_CXX!$ac_ct_CXX$ac_delim 20410CXXDEPMODE!$CXXDEPMODE$ac_delim 20411_ACEOF 20412 20413 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 20414 break 20415 elif $ac_last_try; then 20416 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20417echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20418 { (exit 1); exit 1; }; } 20419 else 20420 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20421 fi 20422done 20423 20424ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20425if test -n "$ac_eof"; then 20426 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20427 ac_eof=`expr $ac_eof + 1` 20428fi 20429 20430cat >>$CONFIG_STATUS <<_ACEOF 20431cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 20432/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20433_ACEOF 20434sed ' 20435s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20436s/^/s,@/; s/!/@,|#_!!_#|/ 20437:n 20438t n 20439s/'"$ac_delim"'$/,g/; t 20440s/$/\\/; p 20441N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20442' >>$CONFIG_STATUS <conf$$subs.sed 20443rm -f conf$$subs.sed 20444cat >>$CONFIG_STATUS <<_ACEOF 20445CEOF$ac_eof 20446_ACEOF 20447 20448 20449ac_delim='%!_!# ' 20450for ac_last_try in false false false false false :; do 20451 cat >conf$$subs.sed <<_ACEOF 20452am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 20453am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 20454CXXCPP!$CXXCPP$ac_delim 20455F77!$F77$ac_delim 20456FFLAGS!$FFLAGS$ac_delim 20457ac_ct_F77!$ac_ct_F77$ac_delim 20458LIBTOOL!$LIBTOOL$ac_delim 20459ICONDIR!$ICONDIR$ac_delim 20460XCURSORPATH!$XCURSORPATH$ac_delim 20461XCURSORPATH_LIST!$XCURSORPATH_LIST$ac_delim 20462PKG_CONFIG!$PKG_CONFIG$ac_delim 20463XCURSOR_CFLAGS!$XCURSOR_CFLAGS$ac_delim 20464XCURSOR_LIBS!$XCURSOR_LIBS$ac_delim 20465APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim 20466LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim 20467FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim 20468MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim 20469DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim 20470ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim 20471APP_MAN_DIR!$APP_MAN_DIR$ac_delim 20472LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim 20473FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim 20474MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim 20475DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim 20476ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim 20477LINT!$LINT$ac_delim 20478LINT_FLAGS!$LINT_FLAGS$ac_delim 20479LINT_TRUE!$LINT_TRUE$ac_delim 20480LINT_FALSE!$LINT_FALSE$ac_delim 20481LIBOBJS!$LIBOBJS$ac_delim 20482LTLIBOBJS!$LTLIBOBJS$ac_delim 20483_ACEOF 20484 20485 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then 20486 break 20487 elif $ac_last_try; then 20488 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20489echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20490 { (exit 1); exit 1; }; } 20491 else 20492 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20493 fi 20494done 20495 20496ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20497if test -n "$ac_eof"; then 20498 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20499 ac_eof=`expr $ac_eof + 1` 20500fi 20501 20502cat >>$CONFIG_STATUS <<_ACEOF 20503cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 20504/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 20505_ACEOF 20506sed ' 20507s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20508s/^/s,@/; s/!/@,|#_!!_#|/ 20509:n 20510t n 20511s/'"$ac_delim"'$/,g/; t 20512s/$/\\/; p 20513N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20514' >>$CONFIG_STATUS <conf$$subs.sed 20515rm -f conf$$subs.sed 20516cat >>$CONFIG_STATUS <<_ACEOF 20517:end 20518s/|#_!!_#|//g 20519CEOF$ac_eof 20520_ACEOF 20521 20522 20523# VPATH may cause trouble with some makes, so we remove $(srcdir), 20524# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20525# trailing colons and then remove the whole line if VPATH becomes empty 20526# (actually we leave an empty line to preserve line numbers). 20527if test "x$srcdir" = x.; then 20528 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20529s/:*\$(srcdir):*/:/ 20530s/:*\${srcdir}:*/:/ 20531s/:*@srcdir@:*/:/ 20532s/^\([^=]*=[ ]*\):*/\1/ 20533s/:*$// 20534s/^[^=]*=[ ]*$// 20535}' 20536fi 20537 20538cat >>$CONFIG_STATUS <<\_ACEOF 20539fi # test -n "$CONFIG_FILES" 20540 20541 20542for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 20543do 20544 case $ac_tag in 20545 :[FHLC]) ac_mode=$ac_tag; continue;; 20546 esac 20547 case $ac_mode$ac_tag in 20548 :[FHL]*:*);; 20549 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 20550echo "$as_me: error: Invalid tag $ac_tag." >&2;} 20551 { (exit 1); exit 1; }; };; 20552 :[FH]-) ac_tag=-:-;; 20553 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20554 esac 20555 ac_save_IFS=$IFS 20556 IFS=: 20557 set x $ac_tag 20558 IFS=$ac_save_IFS 20559 shift 20560 ac_file=$1 20561 shift 20562 20563 case $ac_mode in 20564 :L) ac_source=$1;; 20565 :[FH]) 20566 ac_file_inputs= 20567 for ac_f 20568 do 20569 case $ac_f in 20570 -) ac_f="$tmp/stdin";; 20571 *) # Look for the file first in the build tree, then in the source tree 20572 # (if the path is not absolute). The absolute path cannot be DOS-style, 20573 # because $ac_f cannot contain `:'. 20574 test -f "$ac_f" || 20575 case $ac_f in 20576 [\\/$]*) false;; 20577 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20578 esac || 20579 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 20580echo "$as_me: error: cannot find input file: $ac_f" >&2;} 20581 { (exit 1); exit 1; }; };; 20582 esac 20583 ac_file_inputs="$ac_file_inputs $ac_f" 20584 done 20585 20586 # Let's still pretend it is `configure' which instantiates (i.e., don't 20587 # use $as_me), people would be surprised to read: 20588 # /* config.h. Generated by config.status. */ 20589 configure_input="Generated from "`IFS=: 20590 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 20591 if test x"$ac_file" != x-; then 20592 configure_input="$ac_file. $configure_input" 20593 { echo "$as_me:$LINENO: creating $ac_file" >&5 20594echo "$as_me: creating $ac_file" >&6;} 20595 fi 20596 20597 case $ac_tag in 20598 *:-:* | *:-) cat >"$tmp/stdin";; 20599 esac 20600 ;; 20601 esac 20602 20603 ac_dir=`$as_dirname -- "$ac_file" || 20604$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20605 X"$ac_file" : 'X\(//\)[^/]' \| \ 20606 X"$ac_file" : 'X\(//\)$' \| \ 20607 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20608echo X"$ac_file" | 20609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20610 s//\1/ 20611 q 20612 } 20613 /^X\(\/\/\)[^/].*/{ 20614 s//\1/ 20615 q 20616 } 20617 /^X\(\/\/\)$/{ 20618 s//\1/ 20619 q 20620 } 20621 /^X\(\/\).*/{ 20622 s//\1/ 20623 q 20624 } 20625 s/.*/./; q'` 20626 { as_dir="$ac_dir" 20627 case $as_dir in #( 20628 -*) as_dir=./$as_dir;; 20629 esac 20630 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20631 as_dirs= 20632 while :; do 20633 case $as_dir in #( 20634 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 20635 *) as_qdir=$as_dir;; 20636 esac 20637 as_dirs="'$as_qdir' $as_dirs" 20638 as_dir=`$as_dirname -- "$as_dir" || 20639$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20640 X"$as_dir" : 'X\(//\)[^/]' \| \ 20641 X"$as_dir" : 'X\(//\)$' \| \ 20642 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20643echo X"$as_dir" | 20644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20645 s//\1/ 20646 q 20647 } 20648 /^X\(\/\/\)[^/].*/{ 20649 s//\1/ 20650 q 20651 } 20652 /^X\(\/\/\)$/{ 20653 s//\1/ 20654 q 20655 } 20656 /^X\(\/\).*/{ 20657 s//\1/ 20658 q 20659 } 20660 s/.*/./; q'` 20661 test -d "$as_dir" && break 20662 done 20663 test -z "$as_dirs" || eval "mkdir $as_dirs" 20664 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 20665echo "$as_me: error: cannot create directory $as_dir" >&2;} 20666 { (exit 1); exit 1; }; }; } 20667 ac_builddir=. 20668 20669case "$ac_dir" in 20670.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20671*) 20672 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20673 # A ".." for each directory in $ac_dir_suffix. 20674 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 20675 case $ac_top_builddir_sub in 20676 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20677 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20678 esac ;; 20679esac 20680ac_abs_top_builddir=$ac_pwd 20681ac_abs_builddir=$ac_pwd$ac_dir_suffix 20682# for backward compatibility: 20683ac_top_builddir=$ac_top_build_prefix 20684 20685case $srcdir in 20686 .) # We are building in place. 20687 ac_srcdir=. 20688 ac_top_srcdir=$ac_top_builddir_sub 20689 ac_abs_top_srcdir=$ac_pwd ;; 20690 [\\/]* | ?:[\\/]* ) # Absolute name. 20691 ac_srcdir=$srcdir$ac_dir_suffix; 20692 ac_top_srcdir=$srcdir 20693 ac_abs_top_srcdir=$srcdir ;; 20694 *) # Relative name. 20695 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20696 ac_top_srcdir=$ac_top_build_prefix$srcdir 20697 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20698esac 20699ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20700 20701 20702 case $ac_mode in 20703 :F) 20704 # 20705 # CONFIG_FILE 20706 # 20707 20708 case $INSTALL in 20709 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20710 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20711 esac 20712 ac_MKDIR_P=$MKDIR_P 20713 case $MKDIR_P in 20714 [\\/$]* | ?:[\\/]* ) ;; 20715 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20716 esac 20717_ACEOF 20718 20719cat >>$CONFIG_STATUS <<\_ACEOF 20720# If the template does not know about datarootdir, expand it. 20721# FIXME: This hack should be removed a few years after 2.60. 20722ac_datarootdir_hack=; ac_datarootdir_seen= 20723 20724case `sed -n '/datarootdir/ { 20725 p 20726 q 20727} 20728/@datadir@/p 20729/@docdir@/p 20730/@infodir@/p 20731/@localedir@/p 20732/@mandir@/p 20733' $ac_file_inputs` in 20734*datarootdir*) ac_datarootdir_seen=yes;; 20735*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20736 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20737echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20738_ACEOF 20739cat >>$CONFIG_STATUS <<_ACEOF 20740 ac_datarootdir_hack=' 20741 s&@datadir@&$datadir&g 20742 s&@docdir@&$docdir&g 20743 s&@infodir@&$infodir&g 20744 s&@localedir@&$localedir&g 20745 s&@mandir@&$mandir&g 20746 s&\\\${datarootdir}&$datarootdir&g' ;; 20747esac 20748_ACEOF 20749 20750# Neutralize VPATH when `$srcdir' = `.'. 20751# Shell code in configure.ac might set extrasub. 20752# FIXME: do we really want to maintain this feature? 20753cat >>$CONFIG_STATUS <<_ACEOF 20754 sed "$ac_vpsub 20755$extrasub 20756_ACEOF 20757cat >>$CONFIG_STATUS <<\_ACEOF 20758:t 20759/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20760s&@configure_input@&$configure_input&;t t 20761s&@top_builddir@&$ac_top_builddir_sub&;t t 20762s&@srcdir@&$ac_srcdir&;t t 20763s&@abs_srcdir@&$ac_abs_srcdir&;t t 20764s&@top_srcdir@&$ac_top_srcdir&;t t 20765s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20766s&@builddir@&$ac_builddir&;t t 20767s&@abs_builddir@&$ac_abs_builddir&;t t 20768s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20769s&@INSTALL@&$ac_INSTALL&;t t 20770s&@MKDIR_P@&$ac_MKDIR_P&;t t 20771$ac_datarootdir_hack 20772" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 20773 20774test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20775 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 20776 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 20777 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20778which seems to be undefined. Please make sure it is defined." >&5 20779echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20780which seems to be undefined. Please make sure it is defined." >&2;} 20781 20782 rm -f "$tmp/stdin" 20783 case $ac_file in 20784 -) cat "$tmp/out"; rm -f "$tmp/out";; 20785 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 20786 esac 20787 ;; 20788 :H) 20789 # 20790 # CONFIG_HEADER 20791 # 20792_ACEOF 20793 20794# Transform confdefs.h into a sed script `conftest.defines', that 20795# substitutes the proper values into config.h.in to produce config.h. 20796rm -f conftest.defines conftest.tail 20797# First, append a space to every undef/define line, to ease matching. 20798echo 's/$/ /' >conftest.defines 20799# Then, protect against being on the right side of a sed subst, or in 20800# an unquoted here document, in config.status. If some macros were 20801# called several times there might be several #defines for the same 20802# symbol, which is useless. But do not sort them, since the last 20803# AC_DEFINE must be honored. 20804ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20805# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 20806# NAME is the cpp macro being defined, VALUE is the value it is being given. 20807# PARAMS is the parameter list in the macro definition--in most cases, it's 20808# just an empty string. 20809ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 20810ac_dB='\\)[ (].*,\\1define\\2' 20811ac_dC=' ' 20812ac_dD=' ,' 20813 20814uniq confdefs.h | 20815 sed -n ' 20816 t rset 20817 :rset 20818 s/^[ ]*#[ ]*define[ ][ ]*// 20819 t ok 20820 d 20821 :ok 20822 s/[\\&,]/\\&/g 20823 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 20824 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 20825 ' >>conftest.defines 20826 20827# Remove the space that was appended to ease matching. 20828# Then replace #undef with comments. This is necessary, for 20829# example, in the case of _POSIX_SOURCE, which is predefined and required 20830# on some systems where configure will not decide to define it. 20831# (The regexp can be short, since the line contains either #define or #undef.) 20832echo 's/ $// 20833s,^[ #]*u.*,/* & */,' >>conftest.defines 20834 20835# Break up conftest.defines: 20836ac_max_sed_lines=50 20837 20838# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 20839# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 20840# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 20841# et cetera. 20842ac_in='$ac_file_inputs' 20843ac_out='"$tmp/out1"' 20844ac_nxt='"$tmp/out2"' 20845 20846while : 20847do 20848 # Write a here document: 20849 cat >>$CONFIG_STATUS <<_ACEOF 20850 # First, check the format of the line: 20851 cat >"\$tmp/defines.sed" <<\\CEOF 20852/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 20853/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 20854b 20855:def 20856_ACEOF 20857 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 20858 echo 'CEOF 20859 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 20860 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 20861 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 20862 grep . conftest.tail >/dev/null || break 20863 rm -f conftest.defines 20864 mv conftest.tail conftest.defines 20865done 20866rm -f conftest.defines conftest.tail 20867 20868echo "ac_result=$ac_in" >>$CONFIG_STATUS 20869cat >>$CONFIG_STATUS <<\_ACEOF 20870 if test x"$ac_file" != x-; then 20871 echo "/* $configure_input */" >"$tmp/config.h" 20872 cat "$ac_result" >>"$tmp/config.h" 20873 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 20874 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 20875echo "$as_me: $ac_file is unchanged" >&6;} 20876 else 20877 rm -f $ac_file 20878 mv "$tmp/config.h" $ac_file 20879 fi 20880 else 20881 echo "/* $configure_input */" 20882 cat "$ac_result" 20883 fi 20884 rm -f "$tmp/out12" 20885# Compute $ac_file's index in $config_headers. 20886_am_stamp_count=1 20887for _am_header in $config_headers :; do 20888 case $_am_header in 20889 $ac_file | $ac_file:* ) 20890 break ;; 20891 * ) 20892 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20893 esac 20894done 20895echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 20896$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20897 X$ac_file : 'X\(//\)[^/]' \| \ 20898 X$ac_file : 'X\(//\)$' \| \ 20899 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 20900echo X$ac_file | 20901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20902 s//\1/ 20903 q 20904 } 20905 /^X\(\/\/\)[^/].*/{ 20906 s//\1/ 20907 q 20908 } 20909 /^X\(\/\/\)$/{ 20910 s//\1/ 20911 q 20912 } 20913 /^X\(\/\).*/{ 20914 s//\1/ 20915 q 20916 } 20917 s/.*/./; q'`/stamp-h$_am_stamp_count 20918 ;; 20919 20920 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 20921echo "$as_me: executing $ac_file commands" >&6;} 20922 ;; 20923 esac 20924 20925 20926 case $ac_file$ac_mode in 20927 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 20928 # Strip MF so we end up with the name of the file. 20929 mf=`echo "$mf" | sed -e 's/:.*$//'` 20930 # Check whether this is an Automake generated Makefile or not. 20931 # We used to match only the files named `Makefile.in', but 20932 # some people rename them; so instead we look at the file content. 20933 # Grep'ing the first line is not enough: some people post-process 20934 # each Makefile.in and add a new line on top of each file to say so. 20935 # Grep'ing the whole file is not good either: AIX grep has a line 20936 # limit of 2048, but all sed's we know have understand at least 4000. 20937 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 20938 dirpart=`$as_dirname -- "$mf" || 20939$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20940 X"$mf" : 'X\(//\)[^/]' \| \ 20941 X"$mf" : 'X\(//\)$' \| \ 20942 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20943echo X"$mf" | 20944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20945 s//\1/ 20946 q 20947 } 20948 /^X\(\/\/\)[^/].*/{ 20949 s//\1/ 20950 q 20951 } 20952 /^X\(\/\/\)$/{ 20953 s//\1/ 20954 q 20955 } 20956 /^X\(\/\).*/{ 20957 s//\1/ 20958 q 20959 } 20960 s/.*/./; q'` 20961 else 20962 continue 20963 fi 20964 # Extract the definition of DEPDIR, am__include, and am__quote 20965 # from the Makefile without running `make'. 20966 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20967 test -z "$DEPDIR" && continue 20968 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20969 test -z "am__include" && continue 20970 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20971 # When using ansi2knr, U may be empty or an underscore; expand it 20972 U=`sed -n 's/^U = //p' < "$mf"` 20973 # Find all dependency output files, they are included files with 20974 # $(DEPDIR) in their names. We invoke sed twice because it is the 20975 # simplest approach to changing $(DEPDIR) to its actual value in the 20976 # expansion. 20977 for file in `sed -n " 20978 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20979 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20980 # Make sure the directory exists. 20981 test -f "$dirpart/$file" && continue 20982 fdir=`$as_dirname -- "$file" || 20983$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20984 X"$file" : 'X\(//\)[^/]' \| \ 20985 X"$file" : 'X\(//\)$' \| \ 20986 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20987echo X"$file" | 20988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20989 s//\1/ 20990 q 20991 } 20992 /^X\(\/\/\)[^/].*/{ 20993 s//\1/ 20994 q 20995 } 20996 /^X\(\/\/\)$/{ 20997 s//\1/ 20998 q 20999 } 21000 /^X\(\/\).*/{ 21001 s//\1/ 21002 q 21003 } 21004 s/.*/./; q'` 21005 { as_dir=$dirpart/$fdir 21006 case $as_dir in #( 21007 -*) as_dir=./$as_dir;; 21008 esac 21009 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21010 as_dirs= 21011 while :; do 21012 case $as_dir in #( 21013 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21014 *) as_qdir=$as_dir;; 21015 esac 21016 as_dirs="'$as_qdir' $as_dirs" 21017 as_dir=`$as_dirname -- "$as_dir" || 21018$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21019 X"$as_dir" : 'X\(//\)[^/]' \| \ 21020 X"$as_dir" : 'X\(//\)$' \| \ 21021 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21022echo X"$as_dir" | 21023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21024 s//\1/ 21025 q 21026 } 21027 /^X\(\/\/\)[^/].*/{ 21028 s//\1/ 21029 q 21030 } 21031 /^X\(\/\/\)$/{ 21032 s//\1/ 21033 q 21034 } 21035 /^X\(\/\).*/{ 21036 s//\1/ 21037 q 21038 } 21039 s/.*/./; q'` 21040 test -d "$as_dir" && break 21041 done 21042 test -z "$as_dirs" || eval "mkdir $as_dirs" 21043 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21044echo "$as_me: error: cannot create directory $as_dir" >&2;} 21045 { (exit 1); exit 1; }; }; } 21046 # echo "creating $dirpart/$file" 21047 echo '# dummy' > "$dirpart/$file" 21048 done 21049done 21050 ;; 21051 21052 esac 21053done # for ac_tag 21054 21055 21056{ (exit 0); exit 0; } 21057_ACEOF 21058chmod +x $CONFIG_STATUS 21059ac_clean_files=$ac_clean_files_save 21060 21061 21062# configure is writing to config.log, and then calls config.status. 21063# config.status does its own redirection, appending to config.log. 21064# Unfortunately, on DOS this fails, as config.log is still kept open 21065# by configure, so config.status won't be able to write to it; its 21066# output is simply discarded. So we exec the FD to /dev/null, 21067# effectively closing config.log, so it can be properly (re)opened and 21068# appended to by config.status. When coming back to configure, we 21069# need to make the FD available again. 21070if test "$no_create" != yes; then 21071 ac_cs_success=: 21072 ac_config_status_args= 21073 test "$silent" = yes && 21074 ac_config_status_args="$ac_config_status_args --quiet" 21075 exec 5>/dev/null 21076 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21077 exec 5>>config.log 21078 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21079 # would make configure fail if this is the last instruction. 21080 $ac_cs_success || { (exit 1); exit 1; } 21081fi 21082 21083