1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.62 for xf86-input-ws 1.3.0. 4# 5# Report bugs to <http://www.openbsd.org/>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587echo=${ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $echo works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<EOF 606$* 607EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$ECHO"; then 616if test "X${echo_test_string+set}" != Xset; then 617# find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if (echo_test_string=`eval $cmd`) 2>/dev/null && 621 echo_test_string=`eval $cmd` && 622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 623 then 624 break 625 fi 626 done 627fi 628 629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 631 test "X$echo_testing_string" = "X$echo_test_string"; then 632 : 633else 634 # The Solaris, AIX, and Digital Unix default echo programs unquote 635 # backslashes. This makes it impossible to quote backslashes using 636 # echo "$something" | sed 's/\\/\\\\/g' 637 # 638 # So, first we look for a working echo in the user's PATH. 639 640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 641 for dir in $PATH /usr/ucb; do 642 IFS="$lt_save_ifs" 643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 646 test "X$echo_testing_string" = "X$echo_test_string"; then 647 echo="$dir/echo" 648 break 649 fi 650 done 651 IFS="$lt_save_ifs" 652 653 if test "X$echo" = Xecho; then 654 # We didn't find a better echo, so look for alternatives. 655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 # This shell has a builtin print -r that does the trick. 659 echo='print -r' 660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 661 test "X$CONFIG_SHELL" != X/bin/ksh; then 662 # If we have ksh, try running configure again with it. 663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 664 export ORIGINAL_CONFIG_SHELL 665 CONFIG_SHELL=/bin/ksh 666 export CONFIG_SHELL 667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 668 else 669 # Try using printf. 670 echo='printf %s\n' 671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 673 test "X$echo_testing_string" = "X$echo_test_string"; then 674 # Cool, printf works 675 : 676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 677 test "X$echo_testing_string" = 'X\t' && 678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 679 test "X$echo_testing_string" = "X$echo_test_string"; then 680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 681 export CONFIG_SHELL 682 SHELL="$CONFIG_SHELL" 683 export SHELL 684 echo="$CONFIG_SHELL $0 --fallback-echo" 685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 686 test "X$echo_testing_string" = 'X\t' && 687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 688 test "X$echo_testing_string" = "X$echo_test_string"; then 689 echo="$CONFIG_SHELL $0 --fallback-echo" 690 else 691 # maybe with a smaller string... 692 prev=: 693 694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 696 then 697 break 698 fi 699 prev="$cmd" 700 done 701 702 if test "$prev" != 'sed 50q "$0"'; then 703 echo_test_string=`eval $prev` 704 export echo_test_string 705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 706 else 707 # Oops. We lost completely, so just stick with echo. 708 echo=echo 709 fi 710 fi 711 fi 712 fi 713fi 714fi 715 716# Copy echo and quote the copy suitably for passing to libtool from 717# the Makefile, instead of quoting the original, which is used later. 718ECHO=$echo 719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 721fi 722 723 724 725 726tagnames=${tagnames+${tagnames},}CXX 727 728tagnames=${tagnames+${tagnames},}F77 729 730exec 7<&0 </dev/null 6>&1 731 732# Name of the host. 733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 734# so uname gets run too. 735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 736 737# 738# Initializations. 739# 740ac_default_prefix=/usr/local 741ac_clean_files= 742ac_config_libobj_dir=. 743LIBOBJS= 744cross_compiling=no 745subdirs= 746MFLAGS= 747MAKEFLAGS= 748SHELL=${CONFIG_SHELL-/bin/sh} 749 750# Identity of this package. 751PACKAGE_NAME='xf86-input-ws' 752PACKAGE_TARNAME='xf86-input-ws' 753PACKAGE_VERSION='1.3.0' 754PACKAGE_STRING='xf86-input-ws 1.3.0' 755PACKAGE_BUGREPORT='http://www.openbsd.org/' 756 757ac_unique_file="Makefile.am" 758# Factoring default headers for most tests. 759ac_includes_default="\ 760#include <stdio.h> 761#ifdef HAVE_SYS_TYPES_H 762# include <sys/types.h> 763#endif 764#ifdef HAVE_SYS_STAT_H 765# include <sys/stat.h> 766#endif 767#ifdef STDC_HEADERS 768# include <stdlib.h> 769# include <stddef.h> 770#else 771# ifdef HAVE_STDLIB_H 772# include <stdlib.h> 773# endif 774#endif 775#ifdef HAVE_STRING_H 776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 777# include <memory.h> 778# endif 779# include <string.h> 780#endif 781#ifdef HAVE_STRINGS_H 782# include <strings.h> 783#endif 784#ifdef HAVE_INTTYPES_H 785# include <inttypes.h> 786#endif 787#ifdef HAVE_STDINT_H 788# include <stdint.h> 789#endif 790#ifdef HAVE_UNISTD_H 791# include <unistd.h> 792#endif" 793 794ac_subst_vars='SHELL 795PATH_SEPARATOR 796PACKAGE_NAME 797PACKAGE_TARNAME 798PACKAGE_VERSION 799PACKAGE_STRING 800PACKAGE_BUGREPORT 801exec_prefix 802prefix 803program_transform_name 804bindir 805sbindir 806libexecdir 807datarootdir 808datadir 809sysconfdir 810sharedstatedir 811localstatedir 812includedir 813oldincludedir 814docdir 815infodir 816htmldir 817dvidir 818pdfdir 819psdir 820libdir 821localedir 822mandir 823DEFS 824ECHO_C 825ECHO_N 826ECHO_T 827LIBS 828build_alias 829host_alias 830target_alias 831INSTALL_PROGRAM 832INSTALL_SCRIPT 833INSTALL_DATA 834CYGPATH_W 835PACKAGE 836VERSION 837ACLOCAL 838AUTOCONF 839AUTOMAKE 840AUTOHEADER 841MAKEINFO 842install_sh 843STRIP 844INSTALL_STRIP_PROGRAM 845mkdir_p 846AWK 847SET_MAKE 848am__leading_dot 849AMTAR 850am__tar 851am__untar 852MAINTAINER_MODE_TRUE 853MAINTAINER_MODE_FALSE 854MAINT 855build 856build_cpu 857build_vendor 858build_os 859host 860host_cpu 861host_vendor 862host_os 863CC 864CFLAGS 865LDFLAGS 866CPPFLAGS 867ac_ct_CC 868EXEEXT 869OBJEXT 870DEPDIR 871am__include 872am__quote 873AMDEP_TRUE 874AMDEP_FALSE 875AMDEPBACKSLASH 876CCDEPMODE 877am__fastdepCC_TRUE 878am__fastdepCC_FALSE 879SED 880GREP 881EGREP 882LN_S 883ECHO 884AR 885RANLIB 886DSYMUTIL 887NMEDIT 888CPP 889CXX 890CXXFLAGS 891ac_ct_CXX 892CXXDEPMODE 893am__fastdepCXX_TRUE 894am__fastdepCXX_FALSE 895CXXCPP 896F77 897FFLAGS 898ac_ct_F77 899LIBTOOL 900CWARNFLAGS 901CHANGELOG_CMD 902PKG_CONFIG 903INSTALL_CMD 904APP_MAN_SUFFIX 905LIB_MAN_SUFFIX 906FILE_MAN_SUFFIX 907MISC_MAN_SUFFIX 908DRIVER_MAN_SUFFIX 909ADMIN_MAN_SUFFIX 910APP_MAN_DIR 911LIB_MAN_DIR 912FILE_MAN_DIR 913MISC_MAN_DIR 914DRIVER_MAN_DIR 915ADMIN_MAN_DIR 916XORG_MAN_PAGE 917MAN_SUBSTS 918AM_DEFAULT_VERBOSITY 919XORG_CFLAGS 920XORG_LIBS 921inputdir 922sdkdir 923DRIVER_NAME 924LIBOBJS 925LTLIBOBJS' 926ac_subst_files='' 927ac_user_opts=' 928enable_option_checking 929enable_maintainer_mode 930enable_static 931enable_shared 932enable_fast_install 933enable_dependency_tracking 934with_gnu_ld 935enable_libtool_lock 936with_pic 937with_tags 938enable_strict_compilation 939with_xorg_module_dir 940with_sdkdir 941' 942 ac_precious_vars='build_alias 943host_alias 944target_alias 945CC 946CFLAGS 947LDFLAGS 948LIBS 949CPPFLAGS 950CPP 951CXX 952CXXFLAGS 953CCC 954CXXCPP 955F77 956FFLAGS 957PKG_CONFIG 958XORG_CFLAGS 959XORG_LIBS' 960 961 962# Initialize some variables set by options. 963ac_init_help= 964ac_init_version=false 965ac_unrecognized_opts= 966ac_unrecognized_sep= 967# The variables have the same names as the options, with 968# dashes changed to underlines. 969cache_file=/dev/null 970exec_prefix=NONE 971no_create= 972no_recursion= 973prefix=NONE 974program_prefix=NONE 975program_suffix=NONE 976program_transform_name=s,x,x, 977silent= 978site= 979srcdir= 980verbose= 981x_includes=NONE 982x_libraries=NONE 983 984# Installation directory options. 985# These are left unexpanded so users can "make install exec_prefix=/foo" 986# and all the variables that are supposed to be based on exec_prefix 987# by default will actually change. 988# Use braces instead of parens because sh, perl, etc. also accept them. 989# (The list follows the same order as the GNU Coding Standards.) 990bindir='${exec_prefix}/bin' 991sbindir='${exec_prefix}/sbin' 992libexecdir='${exec_prefix}/libexec' 993datarootdir='${prefix}/share' 994datadir='${datarootdir}' 995sysconfdir='${prefix}/etc' 996sharedstatedir='${prefix}/com' 997localstatedir='${prefix}/var' 998includedir='${prefix}/include' 999oldincludedir='/usr/include' 1000docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1001infodir='${datarootdir}/info' 1002htmldir='${docdir}' 1003dvidir='${docdir}' 1004pdfdir='${docdir}' 1005psdir='${docdir}' 1006libdir='${exec_prefix}/lib' 1007localedir='${datarootdir}/locale' 1008mandir='${datarootdir}/man' 1009 1010ac_prev= 1011ac_dashdash= 1012for ac_option 1013do 1014 # If the previous option needs an argument, assign it. 1015 if test -n "$ac_prev"; then 1016 eval $ac_prev=\$ac_option 1017 ac_prev= 1018 continue 1019 fi 1020 1021 case $ac_option in 1022 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1023 *) ac_optarg=yes ;; 1024 esac 1025 1026 # Accept the important Cygnus configure options, so we can diagnose typos. 1027 1028 case $ac_dashdash$ac_option in 1029 --) 1030 ac_dashdash=yes ;; 1031 1032 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1033 ac_prev=bindir ;; 1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1035 bindir=$ac_optarg ;; 1036 1037 -build | --build | --buil | --bui | --bu) 1038 ac_prev=build_alias ;; 1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1040 build_alias=$ac_optarg ;; 1041 1042 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1044 ac_prev=cache_file ;; 1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1047 cache_file=$ac_optarg ;; 1048 1049 --config-cache | -C) 1050 cache_file=config.cache ;; 1051 1052 -datadir | --datadir | --datadi | --datad) 1053 ac_prev=datadir ;; 1054 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1055 datadir=$ac_optarg ;; 1056 1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1058 | --dataroo | --dataro | --datar) 1059 ac_prev=datarootdir ;; 1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1062 datarootdir=$ac_optarg ;; 1063 1064 -disable-* | --disable-*) 1065 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1066 # Reject names that are not valid shell variable names. 1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1068 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1069 { (exit 1); exit 1; }; } 1070 ac_useropt_orig=$ac_useropt 1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1072 case $ac_user_opts in 1073 *" 1074"enable_$ac_useropt" 1075"*) ;; 1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1077 ac_unrecognized_sep=', ';; 1078 esac 1079 eval enable_$ac_useropt=no ;; 1080 1081 -docdir | --docdir | --docdi | --doc | --do) 1082 ac_prev=docdir ;; 1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1084 docdir=$ac_optarg ;; 1085 1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1087 ac_prev=dvidir ;; 1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1089 dvidir=$ac_optarg ;; 1090 1091 -enable-* | --enable-*) 1092 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1093 # Reject names that are not valid shell variable names. 1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1095 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1096 { (exit 1); exit 1; }; } 1097 ac_useropt_orig=$ac_useropt 1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1099 case $ac_user_opts in 1100 *" 1101"enable_$ac_useropt" 1102"*) ;; 1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1104 ac_unrecognized_sep=', ';; 1105 esac 1106 eval enable_$ac_useropt=\$ac_optarg ;; 1107 1108 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1109 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1110 | --exec | --exe | --ex) 1111 ac_prev=exec_prefix ;; 1112 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1113 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1114 | --exec=* | --exe=* | --ex=*) 1115 exec_prefix=$ac_optarg ;; 1116 1117 -gas | --gas | --ga | --g) 1118 # Obsolete; use --with-gas. 1119 with_gas=yes ;; 1120 1121 -help | --help | --hel | --he | -h) 1122 ac_init_help=long ;; 1123 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1124 ac_init_help=recursive ;; 1125 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1126 ac_init_help=short ;; 1127 1128 -host | --host | --hos | --ho) 1129 ac_prev=host_alias ;; 1130 -host=* | --host=* | --hos=* | --ho=*) 1131 host_alias=$ac_optarg ;; 1132 1133 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1134 ac_prev=htmldir ;; 1135 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1136 | --ht=*) 1137 htmldir=$ac_optarg ;; 1138 1139 -includedir | --includedir | --includedi | --included | --include \ 1140 | --includ | --inclu | --incl | --inc) 1141 ac_prev=includedir ;; 1142 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1143 | --includ=* | --inclu=* | --incl=* | --inc=*) 1144 includedir=$ac_optarg ;; 1145 1146 -infodir | --infodir | --infodi | --infod | --info | --inf) 1147 ac_prev=infodir ;; 1148 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1149 infodir=$ac_optarg ;; 1150 1151 -libdir | --libdir | --libdi | --libd) 1152 ac_prev=libdir ;; 1153 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1154 libdir=$ac_optarg ;; 1155 1156 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1157 | --libexe | --libex | --libe) 1158 ac_prev=libexecdir ;; 1159 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1160 | --libexe=* | --libex=* | --libe=*) 1161 libexecdir=$ac_optarg ;; 1162 1163 -localedir | --localedir | --localedi | --localed | --locale) 1164 ac_prev=localedir ;; 1165 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1166 localedir=$ac_optarg ;; 1167 1168 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1169 | --localstate | --localstat | --localsta | --localst | --locals) 1170 ac_prev=localstatedir ;; 1171 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1172 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1173 localstatedir=$ac_optarg ;; 1174 1175 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1176 ac_prev=mandir ;; 1177 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1178 mandir=$ac_optarg ;; 1179 1180 -nfp | --nfp | --nf) 1181 # Obsolete; use --without-fp. 1182 with_fp=no ;; 1183 1184 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1185 | --no-cr | --no-c | -n) 1186 no_create=yes ;; 1187 1188 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1189 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1190 no_recursion=yes ;; 1191 1192 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1193 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1194 | --oldin | --oldi | --old | --ol | --o) 1195 ac_prev=oldincludedir ;; 1196 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1197 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1198 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1199 oldincludedir=$ac_optarg ;; 1200 1201 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1202 ac_prev=prefix ;; 1203 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1204 prefix=$ac_optarg ;; 1205 1206 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1207 | --program-pre | --program-pr | --program-p) 1208 ac_prev=program_prefix ;; 1209 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1210 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1211 program_prefix=$ac_optarg ;; 1212 1213 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1214 | --program-suf | --program-su | --program-s) 1215 ac_prev=program_suffix ;; 1216 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1217 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1218 program_suffix=$ac_optarg ;; 1219 1220 -program-transform-name | --program-transform-name \ 1221 | --program-transform-nam | --program-transform-na \ 1222 | --program-transform-n | --program-transform- \ 1223 | --program-transform | --program-transfor \ 1224 | --program-transfo | --program-transf \ 1225 | --program-trans | --program-tran \ 1226 | --progr-tra | --program-tr | --program-t) 1227 ac_prev=program_transform_name ;; 1228 -program-transform-name=* | --program-transform-name=* \ 1229 | --program-transform-nam=* | --program-transform-na=* \ 1230 | --program-transform-n=* | --program-transform-=* \ 1231 | --program-transform=* | --program-transfor=* \ 1232 | --program-transfo=* | --program-transf=* \ 1233 | --program-trans=* | --program-tran=* \ 1234 | --progr-tra=* | --program-tr=* | --program-t=*) 1235 program_transform_name=$ac_optarg ;; 1236 1237 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1238 ac_prev=pdfdir ;; 1239 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1240 pdfdir=$ac_optarg ;; 1241 1242 -psdir | --psdir | --psdi | --psd | --ps) 1243 ac_prev=psdir ;; 1244 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1245 psdir=$ac_optarg ;; 1246 1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1248 | -silent | --silent | --silen | --sile | --sil) 1249 silent=yes ;; 1250 1251 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1252 ac_prev=sbindir ;; 1253 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1254 | --sbi=* | --sb=*) 1255 sbindir=$ac_optarg ;; 1256 1257 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1258 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1259 | --sharedst | --shareds | --shared | --share | --shar \ 1260 | --sha | --sh) 1261 ac_prev=sharedstatedir ;; 1262 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1263 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1264 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1265 | --sha=* | --sh=*) 1266 sharedstatedir=$ac_optarg ;; 1267 1268 -site | --site | --sit) 1269 ac_prev=site ;; 1270 -site=* | --site=* | --sit=*) 1271 site=$ac_optarg ;; 1272 1273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1274 ac_prev=srcdir ;; 1275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1276 srcdir=$ac_optarg ;; 1277 1278 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1279 | --syscon | --sysco | --sysc | --sys | --sy) 1280 ac_prev=sysconfdir ;; 1281 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1282 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1283 sysconfdir=$ac_optarg ;; 1284 1285 -target | --target | --targe | --targ | --tar | --ta | --t) 1286 ac_prev=target_alias ;; 1287 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1288 target_alias=$ac_optarg ;; 1289 1290 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1291 verbose=yes ;; 1292 1293 -version | --version | --versio | --versi | --vers | -V) 1294 ac_init_version=: ;; 1295 1296 -with-* | --with-*) 1297 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1298 # Reject names that are not valid shell variable names. 1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1300 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1301 { (exit 1); exit 1; }; } 1302 ac_useropt_orig=$ac_useropt 1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1304 case $ac_user_opts in 1305 *" 1306"with_$ac_useropt" 1307"*) ;; 1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1309 ac_unrecognized_sep=', ';; 1310 esac 1311 eval with_$ac_useropt=\$ac_optarg ;; 1312 1313 -without-* | --without-*) 1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1315 # Reject names that are not valid shell variable names. 1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1317 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1318 { (exit 1); exit 1; }; } 1319 ac_useropt_orig=$ac_useropt 1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1321 case $ac_user_opts in 1322 *" 1323"with_$ac_useropt" 1324"*) ;; 1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1326 ac_unrecognized_sep=', ';; 1327 esac 1328 eval with_$ac_useropt=no ;; 1329 1330 --x) 1331 # Obsolete; use --with-x. 1332 with_x=yes ;; 1333 1334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1335 | --x-incl | --x-inc | --x-in | --x-i) 1336 ac_prev=x_includes ;; 1337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1339 x_includes=$ac_optarg ;; 1340 1341 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1343 ac_prev=x_libraries ;; 1344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1346 x_libraries=$ac_optarg ;; 1347 1348 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1349Try \`$0 --help' for more information." >&2 1350 { (exit 1); exit 1; }; } 1351 ;; 1352 1353 *=*) 1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1355 # Reject names that are not valid shell variable names. 1356 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1357 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1358 { (exit 1); exit 1; }; } 1359 eval $ac_envvar=\$ac_optarg 1360 export $ac_envvar ;; 1361 1362 *) 1363 # FIXME: should be removed in autoconf 3.0. 1364 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1366 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1367 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1368 ;; 1369 1370 esac 1371done 1372 1373if test -n "$ac_prev"; then 1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1375 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1376 { (exit 1); exit 1; }; } 1377fi 1378 1379if test -n "$ac_unrecognized_opts"; then 1380 case $enable_option_checking in 1381 no) ;; 1382 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1383 { (exit 1); exit 1; }; } ;; 1384 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; 1385 esac 1386fi 1387 1388# Check all directory arguments for consistency. 1389for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1390 datadir sysconfdir sharedstatedir localstatedir includedir \ 1391 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1392 libdir localedir mandir 1393do 1394 eval ac_val=\$$ac_var 1395 # Remove trailing slashes. 1396 case $ac_val in 1397 */ ) 1398 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1399 eval $ac_var=\$ac_val;; 1400 esac 1401 # Be sure to have absolute directory names. 1402 case $ac_val in 1403 [\\/$]* | ?:[\\/]* ) continue;; 1404 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1405 esac 1406 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1407 { (exit 1); exit 1; }; } 1408done 1409 1410# There might be people who depend on the old broken behavior: `$host' 1411# used to hold the argument of --host etc. 1412# FIXME: To remove some day. 1413build=$build_alias 1414host=$host_alias 1415target=$target_alias 1416 1417# FIXME: To remove some day. 1418if test "x$host_alias" != x; then 1419 if test "x$build_alias" = x; then 1420 cross_compiling=maybe 1421 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1422 If a cross compiler is detected then cross compile mode will be used." >&2 1423 elif test "x$build_alias" != "x$host_alias"; then 1424 cross_compiling=yes 1425 fi 1426fi 1427 1428ac_tool_prefix= 1429test -n "$host_alias" && ac_tool_prefix=$host_alias- 1430 1431test "$silent" = yes && exec 6>/dev/null 1432 1433 1434ac_pwd=`pwd` && test -n "$ac_pwd" && 1435ac_ls_di=`ls -di .` && 1436ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1437 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1438 { (exit 1); exit 1; }; } 1439test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1440 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1441 { (exit 1); exit 1; }; } 1442 1443 1444# Find the source files, if location was not specified. 1445if test -z "$srcdir"; then 1446 ac_srcdir_defaulted=yes 1447 # Try the directory containing this script, then the parent directory. 1448 ac_confdir=`$as_dirname -- "$as_myself" || 1449$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1450 X"$as_myself" : 'X\(//\)[^/]' \| \ 1451 X"$as_myself" : 'X\(//\)$' \| \ 1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1453$as_echo X"$as_myself" | 1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1455 s//\1/ 1456 q 1457 } 1458 /^X\(\/\/\)[^/].*/{ 1459 s//\1/ 1460 q 1461 } 1462 /^X\(\/\/\)$/{ 1463 s//\1/ 1464 q 1465 } 1466 /^X\(\/\).*/{ 1467 s//\1/ 1468 q 1469 } 1470 s/.*/./; q'` 1471 srcdir=$ac_confdir 1472 if test ! -r "$srcdir/$ac_unique_file"; then 1473 srcdir=.. 1474 fi 1475else 1476 ac_srcdir_defaulted=no 1477fi 1478if test ! -r "$srcdir/$ac_unique_file"; then 1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1480 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1481 { (exit 1); exit 1; }; } 1482fi 1483ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1484ac_abs_confdir=`( 1485 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1486 { (exit 1); exit 1; }; } 1487 pwd)` 1488# When building in place, set srcdir=. 1489if test "$ac_abs_confdir" = "$ac_pwd"; then 1490 srcdir=. 1491fi 1492# Remove unnecessary trailing slashes from srcdir. 1493# Double slashes in file names in object file debugging info 1494# mess up M-x gdb in Emacs. 1495case $srcdir in 1496*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1497esac 1498for ac_var in $ac_precious_vars; do 1499 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1500 eval ac_env_${ac_var}_value=\$${ac_var} 1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1502 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1503done 1504 1505# 1506# Report the --help message. 1507# 1508if test "$ac_init_help" = "long"; then 1509 # Omit some internal or obsolete options to make the list less imposing. 1510 # This message is too long to be a string in the A/UX 3.1 sh. 1511 cat <<_ACEOF 1512\`configure' configures xf86-input-ws 1.3.0 to adapt to many kinds of systems. 1513 1514Usage: $0 [OPTION]... [VAR=VALUE]... 1515 1516To assign environment variables (e.g., CC, CFLAGS...), specify them as 1517VAR=VALUE. See below for descriptions of some of the useful variables. 1518 1519Defaults for the options are specified in brackets. 1520 1521Configuration: 1522 -h, --help display this help and exit 1523 --help=short display options specific to this package 1524 --help=recursive display the short help of all the included packages 1525 -V, --version display version information and exit 1526 -q, --quiet, --silent do not print \`checking...' messages 1527 --cache-file=FILE cache test results in FILE [disabled] 1528 -C, --config-cache alias for \`--cache-file=config.cache' 1529 -n, --no-create do not create output files 1530 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1531 1532Installation directories: 1533 --prefix=PREFIX install architecture-independent files in PREFIX 1534 [$ac_default_prefix] 1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1536 [PREFIX] 1537 1538By default, \`make install' will install all the files in 1539\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1540an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1541for instance \`--prefix=\$HOME'. 1542 1543For better control, use the options below. 1544 1545Fine tuning of the installation directories: 1546 --bindir=DIR user executables [EPREFIX/bin] 1547 --sbindir=DIR system admin executables [EPREFIX/sbin] 1548 --libexecdir=DIR program executables [EPREFIX/libexec] 1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1552 --libdir=DIR object code libraries [EPREFIX/lib] 1553 --includedir=DIR C header files [PREFIX/include] 1554 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1557 --infodir=DIR info documentation [DATAROOTDIR/info] 1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1559 --mandir=DIR man documentation [DATAROOTDIR/man] 1560 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-input-ws] 1561 --htmldir=DIR html documentation [DOCDIR] 1562 --dvidir=DIR dvi documentation [DOCDIR] 1563 --pdfdir=DIR pdf documentation [DOCDIR] 1564 --psdir=DIR ps documentation [DOCDIR] 1565_ACEOF 1566 1567 cat <<\_ACEOF 1568 1569Program names: 1570 --program-prefix=PREFIX prepend PREFIX to installed program names 1571 --program-suffix=SUFFIX append SUFFIX to installed program names 1572 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1573 1574System types: 1575 --build=BUILD configure for building on BUILD [guessed] 1576 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1577_ACEOF 1578fi 1579 1580if test -n "$ac_init_help"; then 1581 case $ac_init_help in 1582 short | recursive ) echo "Configuration of xf86-input-ws 1.3.0:";; 1583 esac 1584 cat <<\_ACEOF 1585 1586Optional Features: 1587 --disable-option-checking ignore unrecognized --enable/--with options 1588 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1589 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1590 --enable-maintainer-mode enable make rules and dependencies not useful 1591 (and sometimes confusing) to the casual installer 1592 --enable-static[=PKGS] build static libraries [default=no] 1593 --enable-shared[=PKGS] build shared libraries [default=yes] 1594 --enable-fast-install[=PKGS] 1595 optimize for fast installation [default=yes] 1596 --disable-dependency-tracking speeds up one-time build 1597 --enable-dependency-tracking do not reject slow dependency extractors 1598 --disable-libtool-lock avoid locking (might break parallel builds) 1599 --enable-strict-compilation 1600 Enable all warnings from compiler and make them 1601 errors (default: disabled) 1602 1603Optional Packages: 1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1606 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1607 --with-pic try to use only PIC/non-PIC objects [default=use 1608 both] 1609 --with-tags[=TAGS] include additional configurations [automatic] 1610 --with-xorg-module-dir=DIR 1611 Default xorg module directory 1612 [default=$libdir/xorg/modules] 1613 1614 1615Some influential environment variables: 1616 CC C compiler command 1617 CFLAGS C compiler flags 1618 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1619 nonstandard directory <lib dir> 1620 LIBS libraries to pass to the linker, e.g. -l<library> 1621 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1622 you have headers in a nonstandard directory <include dir> 1623 CPP C preprocessor 1624 CXX C++ compiler command 1625 CXXFLAGS C++ compiler flags 1626 CXXCPP C++ preprocessor 1627 F77 Fortran 77 compiler command 1628 FFLAGS Fortran 77 compiler flags 1629 PKG_CONFIG path to pkg-config utility 1630 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1631 XORG_LIBS linker flags for XORG, overriding pkg-config 1632 1633Use these variables to override the choices made by `configure' or to help 1634it to find libraries and programs with nonstandard names/locations. 1635 1636Report bugs to <http://www.openbsd.org/>. 1637_ACEOF 1638ac_status=$? 1639fi 1640 1641if test "$ac_init_help" = "recursive"; then 1642 # If there are subdirs, report their specific --help. 1643 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1644 test -d "$ac_dir" || 1645 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1646 continue 1647 ac_builddir=. 1648 1649case "$ac_dir" in 1650.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1651*) 1652 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1653 # A ".." for each directory in $ac_dir_suffix. 1654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1655 case $ac_top_builddir_sub in 1656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1658 esac ;; 1659esac 1660ac_abs_top_builddir=$ac_pwd 1661ac_abs_builddir=$ac_pwd$ac_dir_suffix 1662# for backward compatibility: 1663ac_top_builddir=$ac_top_build_prefix 1664 1665case $srcdir in 1666 .) # We are building in place. 1667 ac_srcdir=. 1668 ac_top_srcdir=$ac_top_builddir_sub 1669 ac_abs_top_srcdir=$ac_pwd ;; 1670 [\\/]* | ?:[\\/]* ) # Absolute name. 1671 ac_srcdir=$srcdir$ac_dir_suffix; 1672 ac_top_srcdir=$srcdir 1673 ac_abs_top_srcdir=$srcdir ;; 1674 *) # Relative name. 1675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1676 ac_top_srcdir=$ac_top_build_prefix$srcdir 1677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1678esac 1679ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1680 1681 cd "$ac_dir" || { ac_status=$?; continue; } 1682 # Check for guested configure. 1683 if test -f "$ac_srcdir/configure.gnu"; then 1684 echo && 1685 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1686 elif test -f "$ac_srcdir/configure"; then 1687 echo && 1688 $SHELL "$ac_srcdir/configure" --help=recursive 1689 else 1690 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1691 fi || ac_status=$? 1692 cd "$ac_pwd" || { ac_status=$?; break; } 1693 done 1694fi 1695 1696test -n "$ac_init_help" && exit $ac_status 1697if $ac_init_version; then 1698 cat <<\_ACEOF 1699xf86-input-ws configure 1.3.0 1700generated by GNU Autoconf 2.62 1701 1702Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 17032002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1704This configure script is free software; the Free Software Foundation 1705gives unlimited permission to copy, distribute and modify it. 1706_ACEOF 1707 exit 1708fi 1709cat >config.log <<_ACEOF 1710This file contains any messages produced by compilers while 1711running configure, to aid debugging if configure makes a mistake. 1712 1713It was created by xf86-input-ws $as_me 1.3.0, which was 1714generated by GNU Autoconf 2.62. Invocation command line was 1715 1716 $ $0 $@ 1717 1718_ACEOF 1719exec 5>>config.log 1720{ 1721cat <<_ASUNAME 1722## --------- ## 1723## Platform. ## 1724## --------- ## 1725 1726hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1727uname -m = `(uname -m) 2>/dev/null || echo unknown` 1728uname -r = `(uname -r) 2>/dev/null || echo unknown` 1729uname -s = `(uname -s) 2>/dev/null || echo unknown` 1730uname -v = `(uname -v) 2>/dev/null || echo unknown` 1731 1732/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1733/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1734 1735/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1736/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1737/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1738/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1739/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1740/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1741/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1742 1743_ASUNAME 1744 1745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1746for as_dir in $PATH 1747do 1748 IFS=$as_save_IFS 1749 test -z "$as_dir" && as_dir=. 1750 $as_echo "PATH: $as_dir" 1751done 1752IFS=$as_save_IFS 1753 1754} >&5 1755 1756cat >&5 <<_ACEOF 1757 1758 1759## ----------- ## 1760## Core tests. ## 1761## ----------- ## 1762 1763_ACEOF 1764 1765 1766# Keep a trace of the command line. 1767# Strip out --no-create and --no-recursion so they do not pile up. 1768# Strip out --silent because we don't want to record it for future runs. 1769# Also quote any args containing shell meta-characters. 1770# Make two passes to allow for proper duplicate-argument suppression. 1771ac_configure_args= 1772ac_configure_args0= 1773ac_configure_args1= 1774ac_must_keep_next=false 1775for ac_pass in 1 2 1776do 1777 for ac_arg 1778 do 1779 case $ac_arg in 1780 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1782 | -silent | --silent | --silen | --sile | --sil) 1783 continue ;; 1784 *\'*) 1785 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1786 esac 1787 case $ac_pass in 1788 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1789 2) 1790 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1791 if test $ac_must_keep_next = true; then 1792 ac_must_keep_next=false # Got value, back to normal. 1793 else 1794 case $ac_arg in 1795 *=* | --config-cache | -C | -disable-* | --disable-* \ 1796 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1797 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1798 | -with-* | --with-* | -without-* | --without-* | --x) 1799 case "$ac_configure_args0 " in 1800 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1801 esac 1802 ;; 1803 -* ) ac_must_keep_next=true ;; 1804 esac 1805 fi 1806 ac_configure_args="$ac_configure_args '$ac_arg'" 1807 ;; 1808 esac 1809 done 1810done 1811$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1812$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1813 1814# When interrupted or exit'd, cleanup temporary files, and complete 1815# config.log. We remove comments because anyway the quotes in there 1816# would cause problems or look ugly. 1817# WARNING: Use '\'' to represent an apostrophe within the trap. 1818# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1819trap 'exit_status=$? 1820 # Save into config.log some information that might help in debugging. 1821 { 1822 echo 1823 1824 cat <<\_ASBOX 1825## ---------------- ## 1826## Cache variables. ## 1827## ---------------- ## 1828_ASBOX 1829 echo 1830 # The following way of writing the cache mishandles newlines in values, 1831( 1832 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1833 eval ac_val=\$$ac_var 1834 case $ac_val in #( 1835 *${as_nl}*) 1836 case $ac_var in #( 1837 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1838$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1839 esac 1840 case $ac_var in #( 1841 _ | IFS | as_nl) ;; #( 1842 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1843 *) $as_unset $ac_var ;; 1844 esac ;; 1845 esac 1846 done 1847 (set) 2>&1 | 1848 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1849 *${as_nl}ac_space=\ *) 1850 sed -n \ 1851 "s/'\''/'\''\\\\'\'''\''/g; 1852 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1853 ;; #( 1854 *) 1855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1856 ;; 1857 esac | 1858 sort 1859) 1860 echo 1861 1862 cat <<\_ASBOX 1863## ----------------- ## 1864## Output variables. ## 1865## ----------------- ## 1866_ASBOX 1867 echo 1868 for ac_var in $ac_subst_vars 1869 do 1870 eval ac_val=\$$ac_var 1871 case $ac_val in 1872 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1873 esac 1874 $as_echo "$ac_var='\''$ac_val'\''" 1875 done | sort 1876 echo 1877 1878 if test -n "$ac_subst_files"; then 1879 cat <<\_ASBOX 1880## ------------------- ## 1881## File substitutions. ## 1882## ------------------- ## 1883_ASBOX 1884 echo 1885 for ac_var in $ac_subst_files 1886 do 1887 eval ac_val=\$$ac_var 1888 case $ac_val in 1889 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1890 esac 1891 $as_echo "$ac_var='\''$ac_val'\''" 1892 done | sort 1893 echo 1894 fi 1895 1896 if test -s confdefs.h; then 1897 cat <<\_ASBOX 1898## ----------- ## 1899## confdefs.h. ## 1900## ----------- ## 1901_ASBOX 1902 echo 1903 cat confdefs.h 1904 echo 1905 fi 1906 test "$ac_signal" != 0 && 1907 $as_echo "$as_me: caught signal $ac_signal" 1908 $as_echo "$as_me: exit $exit_status" 1909 } >&5 1910 rm -f core *.core core.conftest.* && 1911 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1912 exit $exit_status 1913' 0 1914for ac_signal in 1 2 13 15; do 1915 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1916done 1917ac_signal=0 1918 1919# confdefs.h avoids OS command line length limits that DEFS can exceed. 1920rm -f -r conftest* confdefs.h 1921 1922# Predefined preprocessor variables. 1923 1924cat >>confdefs.h <<_ACEOF 1925#define PACKAGE_NAME "$PACKAGE_NAME" 1926_ACEOF 1927 1928 1929cat >>confdefs.h <<_ACEOF 1930#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1931_ACEOF 1932 1933 1934cat >>confdefs.h <<_ACEOF 1935#define PACKAGE_VERSION "$PACKAGE_VERSION" 1936_ACEOF 1937 1938 1939cat >>confdefs.h <<_ACEOF 1940#define PACKAGE_STRING "$PACKAGE_STRING" 1941_ACEOF 1942 1943 1944cat >>confdefs.h <<_ACEOF 1945#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1946_ACEOF 1947 1948 1949# Let the site file select an alternate cache file if it wants to. 1950# Prefer an explicitly selected file to automatically selected ones. 1951ac_site_file1=NONE 1952ac_site_file2=NONE 1953if test -n "$CONFIG_SITE"; then 1954 ac_site_file1=$CONFIG_SITE 1955elif test "x$prefix" != xNONE; then 1956 ac_site_file1=$prefix/share/config.site 1957 ac_site_file2=$prefix/etc/config.site 1958else 1959 ac_site_file1=$ac_default_prefix/share/config.site 1960 ac_site_file2=$ac_default_prefix/etc/config.site 1961fi 1962for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1963do 1964 test "x$ac_site_file" = xNONE && continue 1965 if test -r "$ac_site_file"; then 1966 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1967$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1968 sed 's/^/| /' "$ac_site_file" >&5 1969 . "$ac_site_file" 1970 fi 1971done 1972 1973if test -r "$cache_file"; then 1974 # Some versions of bash will fail to source /dev/null (special 1975 # files actually), so we avoid doing that. 1976 if test -f "$cache_file"; then 1977 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1978$as_echo "$as_me: loading cache $cache_file" >&6;} 1979 case $cache_file in 1980 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1981 *) . "./$cache_file";; 1982 esac 1983 fi 1984else 1985 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1986$as_echo "$as_me: creating cache $cache_file" >&6;} 1987 >$cache_file 1988fi 1989 1990# Check that the precious variables saved in the cache have kept the same 1991# value. 1992ac_cache_corrupted=false 1993for ac_var in $ac_precious_vars; do 1994 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1995 eval ac_new_set=\$ac_env_${ac_var}_set 1996 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1997 eval ac_new_val=\$ac_env_${ac_var}_value 1998 case $ac_old_set,$ac_new_set in 1999 set,) 2000 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2001$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2002 ac_cache_corrupted=: ;; 2003 ,set) 2004 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2005$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2006 ac_cache_corrupted=: ;; 2007 ,);; 2008 *) 2009 if test "x$ac_old_val" != "x$ac_new_val"; then 2010 # differences in whitespace do not lead to failure. 2011 ac_old_val_w=`echo x $ac_old_val` 2012 ac_new_val_w=`echo x $ac_new_val` 2013 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2014 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2015$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2016 ac_cache_corrupted=: 2017 else 2018 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2019$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2020 eval $ac_var=\$ac_old_val 2021 fi 2022 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2023$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2024 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2025$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2026 fi;; 2027 esac 2028 # Pass precious variables to config.status. 2029 if test "$ac_new_set" = set; then 2030 case $ac_new_val in 2031 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2032 *) ac_arg=$ac_var=$ac_new_val ;; 2033 esac 2034 case " $ac_configure_args " in 2035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2036 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2037 esac 2038 fi 2039done 2040if $ac_cache_corrupted; then 2041 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2042$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2043 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2044$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2045 { (exit 1); exit 1; }; } 2046fi 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072ac_ext=c 2073ac_cpp='$CPP $CPPFLAGS' 2074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2076ac_compiler_gnu=$ac_cv_c_compiler_gnu 2077 2078 2079 2080 2081ac_config_headers="$ac_config_headers config.h" 2082 2083ac_aux_dir= 2084for ac_dir in . "$srcdir"/.; do 2085 if test -f "$ac_dir/install-sh"; then 2086 ac_aux_dir=$ac_dir 2087 ac_install_sh="$ac_aux_dir/install-sh -c" 2088 break 2089 elif test -f "$ac_dir/install.sh"; then 2090 ac_aux_dir=$ac_dir 2091 ac_install_sh="$ac_aux_dir/install.sh -c" 2092 break 2093 elif test -f "$ac_dir/shtool"; then 2094 ac_aux_dir=$ac_dir 2095 ac_install_sh="$ac_aux_dir/shtool install -c" 2096 break 2097 fi 2098done 2099if test -z "$ac_aux_dir"; then 2100 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 2101$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 2102 { (exit 1); exit 1; }; } 2103fi 2104 2105# These three variables are undocumented and unsupported, 2106# and are intended to be withdrawn in a future Autoconf release. 2107# They can cause serious problems if a builder's source tree is in a directory 2108# whose full name contains unusual characters. 2109ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2110ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2111ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2112 2113 2114 2115# Initialize Automake 2116am__api_version="1.9" 2117# Find a good install program. We prefer a C program (faster), 2118# so one script is as good as another. But avoid the broken or 2119# incompatible versions: 2120# SysV /etc/install, /usr/sbin/install 2121# SunOS /usr/etc/install 2122# IRIX /sbin/install 2123# AIX /bin/install 2124# AmigaOS /C/install, which installs bootblocks on floppy discs 2125# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2126# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2127# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2128# OS/2's system install, which has a completely different semantic 2129# ./install, which can be erroneously created by make from ./install.sh. 2130# Reject install programs that cannot install multiple files. 2131{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2132$as_echo_n "checking for a BSD-compatible install... " >&6; } 2133if test -z "$INSTALL"; then 2134if test "${ac_cv_path_install+set}" = set; then 2135 $as_echo_n "(cached) " >&6 2136else 2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2138for as_dir in $PATH 2139do 2140 IFS=$as_save_IFS 2141 test -z "$as_dir" && as_dir=. 2142 # Account for people who put trailing slashes in PATH elements. 2143case $as_dir/ in 2144 ./ | .// | /cC/* | \ 2145 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2146 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2147 /usr/ucb/* ) ;; 2148 *) 2149 # OSF1 and SCO ODT 3.0 have their own names for install. 2150 # Don't use installbsd from OSF since it installs stuff as root 2151 # by default. 2152 for ac_prog in ginstall scoinst install; do 2153 for ac_exec_ext in '' $ac_executable_extensions; do 2154 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2155 if test $ac_prog = install && 2156 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2157 # AIX install. It has an incompatible calling convention. 2158 : 2159 elif test $ac_prog = install && 2160 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2161 # program-specific install script used by HP pwplus--don't use. 2162 : 2163 else 2164 rm -rf conftest.one conftest.two conftest.dir 2165 echo one > conftest.one 2166 echo two > conftest.two 2167 mkdir conftest.dir 2168 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2169 test -s conftest.one && test -s conftest.two && 2170 test -s conftest.dir/conftest.one && 2171 test -s conftest.dir/conftest.two 2172 then 2173 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2174 break 3 2175 fi 2176 fi 2177 fi 2178 done 2179 done 2180 ;; 2181esac 2182 2183done 2184IFS=$as_save_IFS 2185 2186rm -rf conftest.one conftest.two conftest.dir 2187 2188fi 2189 if test "${ac_cv_path_install+set}" = set; then 2190 INSTALL=$ac_cv_path_install 2191 else 2192 # As a last resort, use the slow shell script. Don't cache a 2193 # value for INSTALL within a source directory, because that will 2194 # break other packages using the cache if that directory is 2195 # removed, or if the value is a relative name. 2196 INSTALL=$ac_install_sh 2197 fi 2198fi 2199{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2200$as_echo "$INSTALL" >&6; } 2201 2202# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2203# It thinks the first close brace ends the variable substitution. 2204test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2205 2206test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2207 2208test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2209 2210test "$program_prefix" != NONE && 2211 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2212# Use a double $ so make ignores it. 2213test "$program_suffix" != NONE && 2214 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2215# Double any \ or $. 2216# By default was `s,x,x', remove it if useless. 2217ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2218program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2219 2220# expand $ac_aux_dir to an absolute path 2221am_aux_dir=`cd $ac_aux_dir && pwd` 2222 2223test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2224# Use eval to expand $SHELL 2225if eval "$MISSING --run true"; then 2226 am_missing_run="$MISSING --run " 2227else 2228 am_missing_run= 2229 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2230$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2231fi 2232 2233if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2234 # We used to keeping the `.' as first argument, in order to 2235 # allow $(mkdir_p) to be used without argument. As in 2236 # $(mkdir_p) $(somedir) 2237 # where $(somedir) is conditionally defined. However this is wrong 2238 # for two reasons: 2239 # 1. if the package is installed by a user who cannot write `.' 2240 # make install will fail, 2241 # 2. the above comment should most certainly read 2242 # $(mkdir_p) $(DESTDIR)$(somedir) 2243 # so it does not work when $(somedir) is undefined and 2244 # $(DESTDIR) is not. 2245 # To support the latter case, we have to write 2246 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2247 # so the `.' trick is pointless. 2248 mkdir_p='mkdir -p --' 2249else 2250 # On NextStep and OpenStep, the `mkdir' command does not 2251 # recognize any option. It will interpret all options as 2252 # directories to create, and then abort because `.' already 2253 # exists. 2254 for d in ./-p ./--version; 2255 do 2256 test -d $d && rmdir $d 2257 done 2258 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2259 if test -f "$ac_aux_dir/mkinstalldirs"; then 2260 mkdir_p='$(mkinstalldirs)' 2261 else 2262 mkdir_p='$(SHELL) $(install_sh) -d' 2263 fi 2264fi 2265 2266for ac_prog in gawk mawk nawk awk 2267do 2268 # Extract the first word of "$ac_prog", so it can be a program name with args. 2269set dummy $ac_prog; ac_word=$2 2270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2271$as_echo_n "checking for $ac_word... " >&6; } 2272if test "${ac_cv_prog_AWK+set}" = set; then 2273 $as_echo_n "(cached) " >&6 2274else 2275 if test -n "$AWK"; then 2276 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2277else 2278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2279for as_dir in $PATH 2280do 2281 IFS=$as_save_IFS 2282 test -z "$as_dir" && as_dir=. 2283 for ac_exec_ext in '' $ac_executable_extensions; do 2284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2285 ac_cv_prog_AWK="$ac_prog" 2286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2287 break 2 2288 fi 2289done 2290done 2291IFS=$as_save_IFS 2292 2293fi 2294fi 2295AWK=$ac_cv_prog_AWK 2296if test -n "$AWK"; then 2297 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2298$as_echo "$AWK" >&6; } 2299else 2300 { $as_echo "$as_me:$LINENO: result: no" >&5 2301$as_echo "no" >&6; } 2302fi 2303 2304 2305 test -n "$AWK" && break 2306done 2307 2308{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2309$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2310set x ${MAKE-make} 2311ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2312if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2313 $as_echo_n "(cached) " >&6 2314else 2315 cat >conftest.make <<\_ACEOF 2316SHELL = /bin/sh 2317all: 2318 @echo '@@@%%%=$(MAKE)=@@@%%%' 2319_ACEOF 2320# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2321case `${MAKE-make} -f conftest.make 2>/dev/null` in 2322 *@@@%%%=?*=@@@%%%*) 2323 eval ac_cv_prog_make_${ac_make}_set=yes;; 2324 *) 2325 eval ac_cv_prog_make_${ac_make}_set=no;; 2326esac 2327rm -f conftest.make 2328fi 2329if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2330 { $as_echo "$as_me:$LINENO: result: yes" >&5 2331$as_echo "yes" >&6; } 2332 SET_MAKE= 2333else 2334 { $as_echo "$as_me:$LINENO: result: no" >&5 2335$as_echo "no" >&6; } 2336 SET_MAKE="MAKE=${MAKE-make}" 2337fi 2338 2339rm -rf .tst 2>/dev/null 2340mkdir .tst 2>/dev/null 2341if test -d .tst; then 2342 am__leading_dot=. 2343else 2344 am__leading_dot=_ 2345fi 2346rmdir .tst 2>/dev/null 2347 2348# test to see if srcdir already configured 2349if test "`cd $srcdir && pwd`" != "`pwd`" && 2350 test -f $srcdir/config.status; then 2351 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2352$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2353 { (exit 1); exit 1; }; } 2354fi 2355 2356# test whether we have cygpath 2357if test -z "$CYGPATH_W"; then 2358 if (cygpath --version) >/dev/null 2>/dev/null; then 2359 CYGPATH_W='cygpath -w' 2360 else 2361 CYGPATH_W=echo 2362 fi 2363fi 2364 2365 2366# Define the identity of the package. 2367 PACKAGE='xf86-input-ws' 2368 VERSION='1.3.0' 2369 2370 2371cat >>confdefs.h <<_ACEOF 2372#define PACKAGE "$PACKAGE" 2373_ACEOF 2374 2375 2376cat >>confdefs.h <<_ACEOF 2377#define VERSION "$VERSION" 2378_ACEOF 2379 2380# Some tools Automake needs. 2381 2382ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2383 2384 2385AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2386 2387 2388AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2389 2390 2391AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2392 2393 2394MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2395 2396install_sh=${install_sh-"$am_aux_dir/install-sh"} 2397 2398# Installed binaries are usually stripped using `strip' when the user 2399# run `make install-strip'. However `strip' might not be the right 2400# tool to use in cross-compilation environments, therefore Automake 2401# will honor the `STRIP' environment variable to overrule this program. 2402if test "$cross_compiling" != no; then 2403 if test -n "$ac_tool_prefix"; then 2404 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2405set dummy ${ac_tool_prefix}strip; ac_word=$2 2406{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2407$as_echo_n "checking for $ac_word... " >&6; } 2408if test "${ac_cv_prog_STRIP+set}" = set; then 2409 $as_echo_n "(cached) " >&6 2410else 2411 if test -n "$STRIP"; then 2412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2413else 2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2415for as_dir in $PATH 2416do 2417 IFS=$as_save_IFS 2418 test -z "$as_dir" && as_dir=. 2419 for ac_exec_ext in '' $ac_executable_extensions; do 2420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2421 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2423 break 2 2424 fi 2425done 2426done 2427IFS=$as_save_IFS 2428 2429fi 2430fi 2431STRIP=$ac_cv_prog_STRIP 2432if test -n "$STRIP"; then 2433 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2434$as_echo "$STRIP" >&6; } 2435else 2436 { $as_echo "$as_me:$LINENO: result: no" >&5 2437$as_echo "no" >&6; } 2438fi 2439 2440 2441fi 2442if test -z "$ac_cv_prog_STRIP"; then 2443 ac_ct_STRIP=$STRIP 2444 # Extract the first word of "strip", so it can be a program name with args. 2445set dummy strip; ac_word=$2 2446{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2447$as_echo_n "checking for $ac_word... " >&6; } 2448if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2449 $as_echo_n "(cached) " >&6 2450else 2451 if test -n "$ac_ct_STRIP"; then 2452 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2453else 2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2455for as_dir in $PATH 2456do 2457 IFS=$as_save_IFS 2458 test -z "$as_dir" && as_dir=. 2459 for ac_exec_ext in '' $ac_executable_extensions; do 2460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2461 ac_cv_prog_ac_ct_STRIP="strip" 2462 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2463 break 2 2464 fi 2465done 2466done 2467IFS=$as_save_IFS 2468 2469fi 2470fi 2471ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2472if test -n "$ac_ct_STRIP"; then 2473 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2474$as_echo "$ac_ct_STRIP" >&6; } 2475else 2476 { $as_echo "$as_me:$LINENO: result: no" >&5 2477$as_echo "no" >&6; } 2478fi 2479 2480 if test "x$ac_ct_STRIP" = x; then 2481 STRIP=":" 2482 else 2483 case $cross_compiling:$ac_tool_warned in 2484yes:) 2485{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2486whose name does not start with the host triplet. If you think this 2487configuration is useful to you, please write to autoconf@gnu.org." >&5 2488$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2489whose name does not start with the host triplet. If you think this 2490configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2491ac_tool_warned=yes ;; 2492esac 2493 STRIP=$ac_ct_STRIP 2494 fi 2495else 2496 STRIP="$ac_cv_prog_STRIP" 2497fi 2498 2499fi 2500INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2501 2502# We need awk for the "check" target. The system "awk" is bad on 2503# some platforms. 2504# Always define AMTAR for backward compatibility. 2505 2506AMTAR=${AMTAR-"${am_missing_run}tar"} 2507 2508am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2509 2510 2511 2512 2513 2514{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2515$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2516 # Check whether --enable-maintainer-mode was given. 2517if test "${enable_maintainer_mode+set}" = set; then 2518 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2519else 2520 USE_MAINTAINER_MODE=no 2521fi 2522 2523 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2524$as_echo "$USE_MAINTAINER_MODE" >&6; } 2525 2526 2527if test $USE_MAINTAINER_MODE = yes; then 2528 MAINTAINER_MODE_TRUE= 2529 MAINTAINER_MODE_FALSE='#' 2530else 2531 MAINTAINER_MODE_TRUE='#' 2532 MAINTAINER_MODE_FALSE= 2533fi 2534 2535 MAINT=$MAINTAINER_MODE_TRUE 2536 2537 2538 2539# Initialize libtool 2540# Check whether --enable-static was given. 2541if test "${enable_static+set}" = set; then 2542 enableval=$enable_static; p=${PACKAGE-default} 2543 case $enableval in 2544 yes) enable_static=yes ;; 2545 no) enable_static=no ;; 2546 *) 2547 enable_static=no 2548 # Look at the argument we got. We use all the common list separators. 2549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2550 for pkg in $enableval; do 2551 IFS="$lt_save_ifs" 2552 if test "X$pkg" = "X$p"; then 2553 enable_static=yes 2554 fi 2555 done 2556 IFS="$lt_save_ifs" 2557 ;; 2558 esac 2559else 2560 enable_static=no 2561fi 2562 2563 2564 2565# Check whether --enable-shared was given. 2566if test "${enable_shared+set}" = set; then 2567 enableval=$enable_shared; p=${PACKAGE-default} 2568 case $enableval in 2569 yes) enable_shared=yes ;; 2570 no) enable_shared=no ;; 2571 *) 2572 enable_shared=no 2573 # Look at the argument we got. We use all the common list separators. 2574 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2575 for pkg in $enableval; do 2576 IFS="$lt_save_ifs" 2577 if test "X$pkg" = "X$p"; then 2578 enable_shared=yes 2579 fi 2580 done 2581 IFS="$lt_save_ifs" 2582 ;; 2583 esac 2584else 2585 enable_shared=yes 2586fi 2587 2588 2589# Check whether --enable-fast-install was given. 2590if test "${enable_fast_install+set}" = set; then 2591 enableval=$enable_fast_install; p=${PACKAGE-default} 2592 case $enableval in 2593 yes) enable_fast_install=yes ;; 2594 no) enable_fast_install=no ;; 2595 *) 2596 enable_fast_install=no 2597 # Look at the argument we got. We use all the common list separators. 2598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2599 for pkg in $enableval; do 2600 IFS="$lt_save_ifs" 2601 if test "X$pkg" = "X$p"; then 2602 enable_fast_install=yes 2603 fi 2604 done 2605 IFS="$lt_save_ifs" 2606 ;; 2607 esac 2608else 2609 enable_fast_install=yes 2610fi 2611 2612 2613# Make sure we can run config.sub. 2614$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2615 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2616$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2617 { (exit 1); exit 1; }; } 2618 2619{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2620$as_echo_n "checking build system type... " >&6; } 2621if test "${ac_cv_build+set}" = set; then 2622 $as_echo_n "(cached) " >&6 2623else 2624 ac_build_alias=$build_alias 2625test "x$ac_build_alias" = x && 2626 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2627test "x$ac_build_alias" = x && 2628 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2629$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2630 { (exit 1); exit 1; }; } 2631ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2632 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2633$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2634 { (exit 1); exit 1; }; } 2635 2636fi 2637{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2638$as_echo "$ac_cv_build" >&6; } 2639case $ac_cv_build in 2640*-*-*) ;; 2641*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2642$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2643 { (exit 1); exit 1; }; };; 2644esac 2645build=$ac_cv_build 2646ac_save_IFS=$IFS; IFS='-' 2647set x $ac_cv_build 2648shift 2649build_cpu=$1 2650build_vendor=$2 2651shift; shift 2652# Remember, the first character of IFS is used to create $*, 2653# except with old shells: 2654build_os=$* 2655IFS=$ac_save_IFS 2656case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2657 2658 2659{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2660$as_echo_n "checking host system type... " >&6; } 2661if test "${ac_cv_host+set}" = set; then 2662 $as_echo_n "(cached) " >&6 2663else 2664 if test "x$host_alias" = x; then 2665 ac_cv_host=$ac_cv_build 2666else 2667 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2668 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2669$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2670 { (exit 1); exit 1; }; } 2671fi 2672 2673fi 2674{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2675$as_echo "$ac_cv_host" >&6; } 2676case $ac_cv_host in 2677*-*-*) ;; 2678*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2679$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2680 { (exit 1); exit 1; }; };; 2681esac 2682host=$ac_cv_host 2683ac_save_IFS=$IFS; IFS='-' 2684set x $ac_cv_host 2685shift 2686host_cpu=$1 2687host_vendor=$2 2688shift; shift 2689# Remember, the first character of IFS is used to create $*, 2690# except with old shells: 2691host_os=$* 2692IFS=$ac_save_IFS 2693case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2694 2695 2696DEPDIR="${am__leading_dot}deps" 2697 2698ac_config_commands="$ac_config_commands depfiles" 2699 2700 2701am_make=${MAKE-make} 2702cat > confinc << 'END' 2703am__doit: 2704 @echo done 2705.PHONY: am__doit 2706END 2707# If we don't find an include directive, just comment out the code. 2708{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2709$as_echo_n "checking for style of include used by $am_make... " >&6; } 2710am__include="#" 2711am__quote= 2712_am_result=none 2713# First try GNU make style include. 2714echo "include confinc" > confmf 2715# We grep out `Entering directory' and `Leaving directory' 2716# messages which can occur if `w' ends up in MAKEFLAGS. 2717# In particular we don't look at `^make:' because GNU make might 2718# be invoked under some other name (usually "gmake"), in which 2719# case it prints its new name instead of `make'. 2720if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2721 am__include=include 2722 am__quote= 2723 _am_result=GNU 2724fi 2725# Now try BSD make style include. 2726if test "$am__include" = "#"; then 2727 echo '.include "confinc"' > confmf 2728 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2729 am__include=.include 2730 am__quote="\"" 2731 _am_result=BSD 2732 fi 2733fi 2734 2735 2736{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 2737$as_echo "$_am_result" >&6; } 2738rm -f confinc confmf 2739 2740# Check whether --enable-dependency-tracking was given. 2741if test "${enable_dependency_tracking+set}" = set; then 2742 enableval=$enable_dependency_tracking; 2743fi 2744 2745if test "x$enable_dependency_tracking" != xno; then 2746 am_depcomp="$ac_aux_dir/depcomp" 2747 AMDEPBACKSLASH='\' 2748fi 2749 2750 2751if test "x$enable_dependency_tracking" != xno; then 2752 AMDEP_TRUE= 2753 AMDEP_FALSE='#' 2754else 2755 AMDEP_TRUE='#' 2756 AMDEP_FALSE= 2757fi 2758 2759 2760 2761ac_ext=c 2762ac_cpp='$CPP $CPPFLAGS' 2763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2765ac_compiler_gnu=$ac_cv_c_compiler_gnu 2766if test -n "$ac_tool_prefix"; then 2767 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2768set dummy ${ac_tool_prefix}gcc; ac_word=$2 2769{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2770$as_echo_n "checking for $ac_word... " >&6; } 2771if test "${ac_cv_prog_CC+set}" = set; then 2772 $as_echo_n "(cached) " >&6 2773else 2774 if test -n "$CC"; then 2775 ac_cv_prog_CC="$CC" # Let the user override the test. 2776else 2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2778for as_dir in $PATH 2779do 2780 IFS=$as_save_IFS 2781 test -z "$as_dir" && as_dir=. 2782 for ac_exec_ext in '' $ac_executable_extensions; do 2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2784 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2785 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2786 break 2 2787 fi 2788done 2789done 2790IFS=$as_save_IFS 2791 2792fi 2793fi 2794CC=$ac_cv_prog_CC 2795if test -n "$CC"; then 2796 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2797$as_echo "$CC" >&6; } 2798else 2799 { $as_echo "$as_me:$LINENO: result: no" >&5 2800$as_echo "no" >&6; } 2801fi 2802 2803 2804fi 2805if test -z "$ac_cv_prog_CC"; then 2806 ac_ct_CC=$CC 2807 # Extract the first word of "gcc", so it can be a program name with args. 2808set dummy gcc; ac_word=$2 2809{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2810$as_echo_n "checking for $ac_word... " >&6; } 2811if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2812 $as_echo_n "(cached) " >&6 2813else 2814 if test -n "$ac_ct_CC"; then 2815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2816else 2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818for as_dir in $PATH 2819do 2820 IFS=$as_save_IFS 2821 test -z "$as_dir" && as_dir=. 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2824 ac_cv_prog_ac_ct_CC="gcc" 2825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2826 break 2 2827 fi 2828done 2829done 2830IFS=$as_save_IFS 2831 2832fi 2833fi 2834ac_ct_CC=$ac_cv_prog_ac_ct_CC 2835if test -n "$ac_ct_CC"; then 2836 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2837$as_echo "$ac_ct_CC" >&6; } 2838else 2839 { $as_echo "$as_me:$LINENO: result: no" >&5 2840$as_echo "no" >&6; } 2841fi 2842 2843 if test "x$ac_ct_CC" = x; then 2844 CC="" 2845 else 2846 case $cross_compiling:$ac_tool_warned in 2847yes:) 2848{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2849whose name does not start with the host triplet. If you think this 2850configuration is useful to you, please write to autoconf@gnu.org." >&5 2851$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2852whose name does not start with the host triplet. If you think this 2853configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2854ac_tool_warned=yes ;; 2855esac 2856 CC=$ac_ct_CC 2857 fi 2858else 2859 CC="$ac_cv_prog_CC" 2860fi 2861 2862if test -z "$CC"; then 2863 if test -n "$ac_tool_prefix"; then 2864 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2865set dummy ${ac_tool_prefix}cc; ac_word=$2 2866{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2867$as_echo_n "checking for $ac_word... " >&6; } 2868if test "${ac_cv_prog_CC+set}" = set; then 2869 $as_echo_n "(cached) " >&6 2870else 2871 if test -n "$CC"; then 2872 ac_cv_prog_CC="$CC" # Let the user override the test. 2873else 2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2875for as_dir in $PATH 2876do 2877 IFS=$as_save_IFS 2878 test -z "$as_dir" && as_dir=. 2879 for ac_exec_ext in '' $ac_executable_extensions; do 2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2881 ac_cv_prog_CC="${ac_tool_prefix}cc" 2882 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2883 break 2 2884 fi 2885done 2886done 2887IFS=$as_save_IFS 2888 2889fi 2890fi 2891CC=$ac_cv_prog_CC 2892if test -n "$CC"; then 2893 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2894$as_echo "$CC" >&6; } 2895else 2896 { $as_echo "$as_me:$LINENO: result: no" >&5 2897$as_echo "no" >&6; } 2898fi 2899 2900 2901 fi 2902fi 2903if test -z "$CC"; then 2904 # Extract the first word of "cc", so it can be a program name with args. 2905set dummy cc; ac_word=$2 2906{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2907$as_echo_n "checking for $ac_word... " >&6; } 2908if test "${ac_cv_prog_CC+set}" = set; then 2909 $as_echo_n "(cached) " >&6 2910else 2911 if test -n "$CC"; then 2912 ac_cv_prog_CC="$CC" # Let the user override the test. 2913else 2914 ac_prog_rejected=no 2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2916for as_dir in $PATH 2917do 2918 IFS=$as_save_IFS 2919 test -z "$as_dir" && as_dir=. 2920 for ac_exec_ext in '' $ac_executable_extensions; do 2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2922 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2923 ac_prog_rejected=yes 2924 continue 2925 fi 2926 ac_cv_prog_CC="cc" 2927 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2928 break 2 2929 fi 2930done 2931done 2932IFS=$as_save_IFS 2933 2934if test $ac_prog_rejected = yes; then 2935 # We found a bogon in the path, so make sure we never use it. 2936 set dummy $ac_cv_prog_CC 2937 shift 2938 if test $# != 0; then 2939 # We chose a different compiler from the bogus one. 2940 # However, it has the same basename, so the bogon will be chosen 2941 # first if we set CC to just the basename; use the full file name. 2942 shift 2943 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2944 fi 2945fi 2946fi 2947fi 2948CC=$ac_cv_prog_CC 2949if test -n "$CC"; then 2950 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2951$as_echo "$CC" >&6; } 2952else 2953 { $as_echo "$as_me:$LINENO: result: no" >&5 2954$as_echo "no" >&6; } 2955fi 2956 2957 2958fi 2959if test -z "$CC"; then 2960 if test -n "$ac_tool_prefix"; then 2961 for ac_prog in cl.exe 2962 do 2963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2964set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2965{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2966$as_echo_n "checking for $ac_word... " >&6; } 2967if test "${ac_cv_prog_CC+set}" = set; then 2968 $as_echo_n "(cached) " >&6 2969else 2970 if test -n "$CC"; then 2971 ac_cv_prog_CC="$CC" # Let the user override the test. 2972else 2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2974for as_dir in $PATH 2975do 2976 IFS=$as_save_IFS 2977 test -z "$as_dir" && as_dir=. 2978 for ac_exec_ext in '' $ac_executable_extensions; do 2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2980 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2981 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2982 break 2 2983 fi 2984done 2985done 2986IFS=$as_save_IFS 2987 2988fi 2989fi 2990CC=$ac_cv_prog_CC 2991if test -n "$CC"; then 2992 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2993$as_echo "$CC" >&6; } 2994else 2995 { $as_echo "$as_me:$LINENO: result: no" >&5 2996$as_echo "no" >&6; } 2997fi 2998 2999 3000 test -n "$CC" && break 3001 done 3002fi 3003if test -z "$CC"; then 3004 ac_ct_CC=$CC 3005 for ac_prog in cl.exe 3006do 3007 # Extract the first word of "$ac_prog", so it can be a program name with args. 3008set dummy $ac_prog; ac_word=$2 3009{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3010$as_echo_n "checking for $ac_word... " >&6; } 3011if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3012 $as_echo_n "(cached) " >&6 3013else 3014 if test -n "$ac_ct_CC"; then 3015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3016else 3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3018for as_dir in $PATH 3019do 3020 IFS=$as_save_IFS 3021 test -z "$as_dir" && as_dir=. 3022 for ac_exec_ext in '' $ac_executable_extensions; do 3023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3024 ac_cv_prog_ac_ct_CC="$ac_prog" 3025 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3026 break 2 3027 fi 3028done 3029done 3030IFS=$as_save_IFS 3031 3032fi 3033fi 3034ac_ct_CC=$ac_cv_prog_ac_ct_CC 3035if test -n "$ac_ct_CC"; then 3036 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3037$as_echo "$ac_ct_CC" >&6; } 3038else 3039 { $as_echo "$as_me:$LINENO: result: no" >&5 3040$as_echo "no" >&6; } 3041fi 3042 3043 3044 test -n "$ac_ct_CC" && break 3045done 3046 3047 if test "x$ac_ct_CC" = x; then 3048 CC="" 3049 else 3050 case $cross_compiling:$ac_tool_warned in 3051yes:) 3052{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3053whose name does not start with the host triplet. If you think this 3054configuration is useful to you, please write to autoconf@gnu.org." >&5 3055$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3056whose name does not start with the host triplet. If you think this 3057configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3058ac_tool_warned=yes ;; 3059esac 3060 CC=$ac_ct_CC 3061 fi 3062fi 3063 3064fi 3065 3066 3067test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3068See \`config.log' for more details." >&5 3069$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3070See \`config.log' for more details." >&2;} 3071 { (exit 1); exit 1; }; } 3072 3073# Provide some information about the compiler. 3074$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3075set X $ac_compile 3076ac_compiler=$2 3077{ (ac_try="$ac_compiler --version >&5" 3078case "(($ac_try" in 3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3080 *) ac_try_echo=$ac_try;; 3081esac 3082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3083$as_echo "$ac_try_echo") >&5 3084 (eval "$ac_compiler --version >&5") 2>&5 3085 ac_status=$? 3086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3087 (exit $ac_status); } 3088{ (ac_try="$ac_compiler -v >&5" 3089case "(($ac_try" in 3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3091 *) ac_try_echo=$ac_try;; 3092esac 3093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3094$as_echo "$ac_try_echo") >&5 3095 (eval "$ac_compiler -v >&5") 2>&5 3096 ac_status=$? 3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3098 (exit $ac_status); } 3099{ (ac_try="$ac_compiler -V >&5" 3100case "(($ac_try" in 3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3102 *) ac_try_echo=$ac_try;; 3103esac 3104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3105$as_echo "$ac_try_echo") >&5 3106 (eval "$ac_compiler -V >&5") 2>&5 3107 ac_status=$? 3108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3109 (exit $ac_status); } 3110 3111cat >conftest.$ac_ext <<_ACEOF 3112/* confdefs.h. */ 3113_ACEOF 3114cat confdefs.h >>conftest.$ac_ext 3115cat >>conftest.$ac_ext <<_ACEOF 3116/* end confdefs.h. */ 3117 3118int 3119main () 3120{ 3121 3122 ; 3123 return 0; 3124} 3125_ACEOF 3126ac_clean_files_save=$ac_clean_files 3127ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3128# Try to create an executable without -o first, disregard a.out. 3129# It will help us diagnose broken compilers, and finding out an intuition 3130# of exeext. 3131{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3132$as_echo_n "checking for C compiler default output file name... " >&6; } 3133ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3134 3135# The possible output files: 3136ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3137 3138ac_rmfiles= 3139for ac_file in $ac_files 3140do 3141 case $ac_file in 3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3143 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3144 esac 3145done 3146rm -f $ac_rmfiles 3147 3148if { (ac_try="$ac_link_default" 3149case "(($ac_try" in 3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3151 *) ac_try_echo=$ac_try;; 3152esac 3153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3154$as_echo "$ac_try_echo") >&5 3155 (eval "$ac_link_default") 2>&5 3156 ac_status=$? 3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3158 (exit $ac_status); }; then 3159 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3160# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3161# in a Makefile. We should not override ac_cv_exeext if it was cached, 3162# so that the user can short-circuit this test for compilers unknown to 3163# Autoconf. 3164for ac_file in $ac_files '' 3165do 3166 test -f "$ac_file" || continue 3167 case $ac_file in 3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3169 ;; 3170 [ab].out ) 3171 # We found the default executable, but exeext='' is most 3172 # certainly right. 3173 break;; 3174 *.* ) 3175 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3176 then :; else 3177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3178 fi 3179 # We set ac_cv_exeext here because the later test for it is not 3180 # safe: cross compilers may not add the suffix if given an `-o' 3181 # argument, so we may need to know it at that point already. 3182 # Even if this section looks crufty: it has the advantage of 3183 # actually working. 3184 break;; 3185 * ) 3186 break;; 3187 esac 3188done 3189test "$ac_cv_exeext" = no && ac_cv_exeext= 3190 3191else 3192 ac_file='' 3193fi 3194 3195{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3196$as_echo "$ac_file" >&6; } 3197if test -z "$ac_file"; then 3198 $as_echo "$as_me: failed program was:" >&5 3199sed 's/^/| /' conftest.$ac_ext >&5 3200 3201{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3202See \`config.log' for more details." >&5 3203$as_echo "$as_me: error: C compiler cannot create executables 3204See \`config.log' for more details." >&2;} 3205 { (exit 77); exit 77; }; } 3206fi 3207 3208ac_exeext=$ac_cv_exeext 3209 3210# Check that the compiler produces executables we can run. If not, either 3211# the compiler is broken, or we cross compile. 3212{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3213$as_echo_n "checking whether the C compiler works... " >&6; } 3214# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3215# If not cross compiling, check that we can run a simple program. 3216if test "$cross_compiling" != yes; then 3217 if { ac_try='./$ac_file' 3218 { (case "(($ac_try" in 3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3220 *) ac_try_echo=$ac_try;; 3221esac 3222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3223$as_echo "$ac_try_echo") >&5 3224 (eval "$ac_try") 2>&5 3225 ac_status=$? 3226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3227 (exit $ac_status); }; }; then 3228 cross_compiling=no 3229 else 3230 if test "$cross_compiling" = maybe; then 3231 cross_compiling=yes 3232 else 3233 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3234If you meant to cross compile, use \`--host'. 3235See \`config.log' for more details." >&5 3236$as_echo "$as_me: error: cannot run C compiled programs. 3237If you meant to cross compile, use \`--host'. 3238See \`config.log' for more details." >&2;} 3239 { (exit 1); exit 1; }; } 3240 fi 3241 fi 3242fi 3243{ $as_echo "$as_me:$LINENO: result: yes" >&5 3244$as_echo "yes" >&6; } 3245 3246rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3247ac_clean_files=$ac_clean_files_save 3248# Check that the compiler produces executables we can run. If not, either 3249# the compiler is broken, or we cross compile. 3250{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3251$as_echo_n "checking whether we are cross compiling... " >&6; } 3252{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3253$as_echo "$cross_compiling" >&6; } 3254 3255{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3256$as_echo_n "checking for suffix of executables... " >&6; } 3257if { (ac_try="$ac_link" 3258case "(($ac_try" in 3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3260 *) ac_try_echo=$ac_try;; 3261esac 3262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3263$as_echo "$ac_try_echo") >&5 3264 (eval "$ac_link") 2>&5 3265 ac_status=$? 3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3267 (exit $ac_status); }; then 3268 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3269# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3270# work properly (i.e., refer to `conftest.exe'), while it won't with 3271# `rm'. 3272for ac_file in conftest.exe conftest conftest.*; do 3273 test -f "$ac_file" || continue 3274 case $ac_file in 3275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3276 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3277 break;; 3278 * ) break;; 3279 esac 3280done 3281else 3282 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3283See \`config.log' for more details." >&5 3284$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3285See \`config.log' for more details." >&2;} 3286 { (exit 1); exit 1; }; } 3287fi 3288 3289rm -f conftest$ac_cv_exeext 3290{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3291$as_echo "$ac_cv_exeext" >&6; } 3292 3293rm -f conftest.$ac_ext 3294EXEEXT=$ac_cv_exeext 3295ac_exeext=$EXEEXT 3296{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3297$as_echo_n "checking for suffix of object files... " >&6; } 3298if test "${ac_cv_objext+set}" = set; then 3299 $as_echo_n "(cached) " >&6 3300else 3301 cat >conftest.$ac_ext <<_ACEOF 3302/* confdefs.h. */ 3303_ACEOF 3304cat confdefs.h >>conftest.$ac_ext 3305cat >>conftest.$ac_ext <<_ACEOF 3306/* end confdefs.h. */ 3307 3308int 3309main () 3310{ 3311 3312 ; 3313 return 0; 3314} 3315_ACEOF 3316rm -f conftest.o conftest.obj 3317if { (ac_try="$ac_compile" 3318case "(($ac_try" in 3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3320 *) ac_try_echo=$ac_try;; 3321esac 3322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3323$as_echo "$ac_try_echo") >&5 3324 (eval "$ac_compile") 2>&5 3325 ac_status=$? 3326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3327 (exit $ac_status); }; then 3328 for ac_file in conftest.o conftest.obj conftest.*; do 3329 test -f "$ac_file" || continue; 3330 case $ac_file in 3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3332 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3333 break;; 3334 esac 3335done 3336else 3337 $as_echo "$as_me: failed program was:" >&5 3338sed 's/^/| /' conftest.$ac_ext >&5 3339 3340{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3341See \`config.log' for more details." >&5 3342$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3343See \`config.log' for more details." >&2;} 3344 { (exit 1); exit 1; }; } 3345fi 3346 3347rm -f conftest.$ac_cv_objext conftest.$ac_ext 3348fi 3349{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3350$as_echo "$ac_cv_objext" >&6; } 3351OBJEXT=$ac_cv_objext 3352ac_objext=$OBJEXT 3353{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3354$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3355if test "${ac_cv_c_compiler_gnu+set}" = set; then 3356 $as_echo_n "(cached) " >&6 3357else 3358 cat >conftest.$ac_ext <<_ACEOF 3359/* confdefs.h. */ 3360_ACEOF 3361cat confdefs.h >>conftest.$ac_ext 3362cat >>conftest.$ac_ext <<_ACEOF 3363/* end confdefs.h. */ 3364 3365int 3366main () 3367{ 3368#ifndef __GNUC__ 3369 choke me 3370#endif 3371 3372 ; 3373 return 0; 3374} 3375_ACEOF 3376rm -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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3383$as_echo "$ac_try_echo") >&5 3384 (eval "$ac_compile") 2>conftest.er1 3385 ac_status=$? 3386 grep -v '^ *+' conftest.er1 >conftest.err 3387 rm -f conftest.er1 3388 cat conftest.err >&5 3389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3390 (exit $ac_status); } && { 3391 test -z "$ac_c_werror_flag" || 3392 test ! -s conftest.err 3393 } && test -s conftest.$ac_objext; then 3394 ac_compiler_gnu=yes 3395else 3396 $as_echo "$as_me: failed program was:" >&5 3397sed 's/^/| /' conftest.$ac_ext >&5 3398 3399 ac_compiler_gnu=no 3400fi 3401 3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3403ac_cv_c_compiler_gnu=$ac_compiler_gnu 3404 3405fi 3406{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3407$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3408if test $ac_compiler_gnu = yes; then 3409 GCC=yes 3410else 3411 GCC= 3412fi 3413ac_test_CFLAGS=${CFLAGS+set} 3414ac_save_CFLAGS=$CFLAGS 3415{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3416$as_echo_n "checking whether $CC accepts -g... " >&6; } 3417if test "${ac_cv_prog_cc_g+set}" = set; then 3418 $as_echo_n "(cached) " >&6 3419else 3420 ac_save_c_werror_flag=$ac_c_werror_flag 3421 ac_c_werror_flag=yes 3422 ac_cv_prog_cc_g=no 3423 CFLAGS="-g" 3424 cat >conftest.$ac_ext <<_ACEOF 3425/* confdefs.h. */ 3426_ACEOF 3427cat confdefs.h >>conftest.$ac_ext 3428cat >>conftest.$ac_ext <<_ACEOF 3429/* end confdefs.h. */ 3430 3431int 3432main () 3433{ 3434 3435 ; 3436 return 0; 3437} 3438_ACEOF 3439rm -f conftest.$ac_objext 3440if { (ac_try="$ac_compile" 3441case "(($ac_try" in 3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3443 *) ac_try_echo=$ac_try;; 3444esac 3445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3446$as_echo "$ac_try_echo") >&5 3447 (eval "$ac_compile") 2>conftest.er1 3448 ac_status=$? 3449 grep -v '^ *+' conftest.er1 >conftest.err 3450 rm -f conftest.er1 3451 cat conftest.err >&5 3452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3453 (exit $ac_status); } && { 3454 test -z "$ac_c_werror_flag" || 3455 test ! -s conftest.err 3456 } && test -s conftest.$ac_objext; then 3457 ac_cv_prog_cc_g=yes 3458else 3459 $as_echo "$as_me: failed program was:" >&5 3460sed 's/^/| /' conftest.$ac_ext >&5 3461 3462 CFLAGS="" 3463 cat >conftest.$ac_ext <<_ACEOF 3464/* confdefs.h. */ 3465_ACEOF 3466cat confdefs.h >>conftest.$ac_ext 3467cat >>conftest.$ac_ext <<_ACEOF 3468/* end confdefs.h. */ 3469 3470int 3471main () 3472{ 3473 3474 ; 3475 return 0; 3476} 3477_ACEOF 3478rm -f conftest.$ac_objext 3479if { (ac_try="$ac_compile" 3480case "(($ac_try" in 3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3482 *) ac_try_echo=$ac_try;; 3483esac 3484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3485$as_echo "$ac_try_echo") >&5 3486 (eval "$ac_compile") 2>conftest.er1 3487 ac_status=$? 3488 grep -v '^ *+' conftest.er1 >conftest.err 3489 rm -f conftest.er1 3490 cat conftest.err >&5 3491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3492 (exit $ac_status); } && { 3493 test -z "$ac_c_werror_flag" || 3494 test ! -s conftest.err 3495 } && test -s conftest.$ac_objext; then 3496 : 3497else 3498 $as_echo "$as_me: failed program was:" >&5 3499sed 's/^/| /' conftest.$ac_ext >&5 3500 3501 ac_c_werror_flag=$ac_save_c_werror_flag 3502 CFLAGS="-g" 3503 cat >conftest.$ac_ext <<_ACEOF 3504/* confdefs.h. */ 3505_ACEOF 3506cat confdefs.h >>conftest.$ac_ext 3507cat >>conftest.$ac_ext <<_ACEOF 3508/* end confdefs.h. */ 3509 3510int 3511main () 3512{ 3513 3514 ; 3515 return 0; 3516} 3517_ACEOF 3518rm -f conftest.$ac_objext 3519if { (ac_try="$ac_compile" 3520case "(($ac_try" in 3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3522 *) ac_try_echo=$ac_try;; 3523esac 3524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3525$as_echo "$ac_try_echo") >&5 3526 (eval "$ac_compile") 2>conftest.er1 3527 ac_status=$? 3528 grep -v '^ *+' conftest.er1 >conftest.err 3529 rm -f conftest.er1 3530 cat conftest.err >&5 3531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3532 (exit $ac_status); } && { 3533 test -z "$ac_c_werror_flag" || 3534 test ! -s conftest.err 3535 } && test -s conftest.$ac_objext; then 3536 ac_cv_prog_cc_g=yes 3537else 3538 $as_echo "$as_me: failed program was:" >&5 3539sed 's/^/| /' conftest.$ac_ext >&5 3540 3541 3542fi 3543 3544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3545fi 3546 3547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3548fi 3549 3550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3551 ac_c_werror_flag=$ac_save_c_werror_flag 3552fi 3553{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3554$as_echo "$ac_cv_prog_cc_g" >&6; } 3555if test "$ac_test_CFLAGS" = set; then 3556 CFLAGS=$ac_save_CFLAGS 3557elif test $ac_cv_prog_cc_g = yes; then 3558 if test "$GCC" = yes; then 3559 CFLAGS="-g -O2" 3560 else 3561 CFLAGS="-g" 3562 fi 3563else 3564 if test "$GCC" = yes; then 3565 CFLAGS="-O2" 3566 else 3567 CFLAGS= 3568 fi 3569fi 3570{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3571$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3572if test "${ac_cv_prog_cc_c89+set}" = set; then 3573 $as_echo_n "(cached) " >&6 3574else 3575 ac_cv_prog_cc_c89=no 3576ac_save_CC=$CC 3577cat >conftest.$ac_ext <<_ACEOF 3578/* confdefs.h. */ 3579_ACEOF 3580cat confdefs.h >>conftest.$ac_ext 3581cat >>conftest.$ac_ext <<_ACEOF 3582/* end confdefs.h. */ 3583#include <stdarg.h> 3584#include <stdio.h> 3585#include <sys/types.h> 3586#include <sys/stat.h> 3587/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3588struct buf { int x; }; 3589FILE * (*rcsopen) (struct buf *, struct stat *, int); 3590static char *e (p, i) 3591 char **p; 3592 int i; 3593{ 3594 return p[i]; 3595} 3596static char *f (char * (*g) (char **, int), char **p, ...) 3597{ 3598 char *s; 3599 va_list v; 3600 va_start (v,p); 3601 s = g (p, va_arg (v,int)); 3602 va_end (v); 3603 return s; 3604} 3605 3606/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3607 function prototypes and stuff, but not '\xHH' hex character constants. 3608 These don't provoke an error unfortunately, instead are silently treated 3609 as 'x'. The following induces an error, until -std is added to get 3610 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3611 array size at least. It's necessary to write '\x00'==0 to get something 3612 that's true only with -std. */ 3613int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3614 3615/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3616 inside strings and character constants. */ 3617#define FOO(x) 'x' 3618int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3619 3620int test (int i, double x); 3621struct s1 {int (*f) (int a);}; 3622struct s2 {int (*f) (double a);}; 3623int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3624int argc; 3625char **argv; 3626int 3627main () 3628{ 3629return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3630 ; 3631 return 0; 3632} 3633_ACEOF 3634for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3635 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3636do 3637 CC="$ac_save_CC $ac_arg" 3638 rm -f conftest.$ac_objext 3639if { (ac_try="$ac_compile" 3640case "(($ac_try" in 3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3642 *) ac_try_echo=$ac_try;; 3643esac 3644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3645$as_echo "$ac_try_echo") >&5 3646 (eval "$ac_compile") 2>conftest.er1 3647 ac_status=$? 3648 grep -v '^ *+' conftest.er1 >conftest.err 3649 rm -f conftest.er1 3650 cat conftest.err >&5 3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3652 (exit $ac_status); } && { 3653 test -z "$ac_c_werror_flag" || 3654 test ! -s conftest.err 3655 } && test -s conftest.$ac_objext; then 3656 ac_cv_prog_cc_c89=$ac_arg 3657else 3658 $as_echo "$as_me: failed program was:" >&5 3659sed 's/^/| /' conftest.$ac_ext >&5 3660 3661 3662fi 3663 3664rm -f core conftest.err conftest.$ac_objext 3665 test "x$ac_cv_prog_cc_c89" != "xno" && break 3666done 3667rm -f conftest.$ac_ext 3668CC=$ac_save_CC 3669 3670fi 3671# AC_CACHE_VAL 3672case "x$ac_cv_prog_cc_c89" in 3673 x) 3674 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3675$as_echo "none needed" >&6; } ;; 3676 xno) 3677 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3678$as_echo "unsupported" >&6; } ;; 3679 *) 3680 CC="$CC $ac_cv_prog_cc_c89" 3681 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3682$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3683esac 3684 3685 3686ac_ext=c 3687ac_cpp='$CPP $CPPFLAGS' 3688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3690ac_compiler_gnu=$ac_cv_c_compiler_gnu 3691 3692depcc="$CC" am_compiler_list= 3693 3694{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3695$as_echo_n "checking dependency style of $depcc... " >&6; } 3696if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3697 $as_echo_n "(cached) " >&6 3698else 3699 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3700 # We make a subdir and do the tests there. Otherwise we can end up 3701 # making bogus files that we don't know about and never remove. For 3702 # instance it was reported that on HP-UX the gcc test will end up 3703 # making a dummy file named `D' -- because `-MD' means `put the output 3704 # in D'. 3705 mkdir conftest.dir 3706 # Copy depcomp to subdir because otherwise we won't find it if we're 3707 # using a relative directory. 3708 cp "$am_depcomp" conftest.dir 3709 cd conftest.dir 3710 # We will build objects and dependencies in a subdirectory because 3711 # it helps to detect inapplicable dependency modes. For instance 3712 # both Tru64's cc and ICC support -MD to output dependencies as a 3713 # side effect of compilation, but ICC will put the dependencies in 3714 # the current directory while Tru64 will put them in the object 3715 # directory. 3716 mkdir sub 3717 3718 am_cv_CC_dependencies_compiler_type=none 3719 if test "$am_compiler_list" = ""; then 3720 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3721 fi 3722 for depmode in $am_compiler_list; do 3723 # Setup a source with many dependencies, because some compilers 3724 # like to wrap large dependency lists on column 80 (with \), and 3725 # we should not choose a depcomp mode which is confused by this. 3726 # 3727 # We need to recreate these files for each test, as the compiler may 3728 # overwrite some of them when testing with obscure command lines. 3729 # This happens at least with the AIX C compiler. 3730 : > sub/conftest.c 3731 for i in 1 2 3 4 5 6; do 3732 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3733 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3734 # Solaris 8's {/usr,}/bin/sh. 3735 touch sub/conftst$i.h 3736 done 3737 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3738 3739 case $depmode in 3740 nosideeffect) 3741 # after this tag, mechanisms are not by side-effect, so they'll 3742 # only be used when explicitly requested 3743 if test "x$enable_dependency_tracking" = xyes; then 3744 continue 3745 else 3746 break 3747 fi 3748 ;; 3749 none) break ;; 3750 esac 3751 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3752 # mode. It turns out that the SunPro C++ compiler does not properly 3753 # handle `-M -o', and we need to detect this. 3754 if depmode=$depmode \ 3755 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3756 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3757 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3758 >/dev/null 2>conftest.err && 3759 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3760 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3761 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3762 # icc doesn't choke on unknown options, it will just issue warnings 3763 # or remarks (even with -Werror). So we grep stderr for any message 3764 # that says an option was ignored or not supported. 3765 # When given -MP, icc 7.0 and 7.1 complain thusly: 3766 # icc: Command line warning: ignoring option '-M'; no argument required 3767 # The diagnosis changed in icc 8.0: 3768 # icc: Command line remark: option '-MP' not supported 3769 if (grep 'ignoring option' conftest.err || 3770 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3771 am_cv_CC_dependencies_compiler_type=$depmode 3772 break 3773 fi 3774 fi 3775 done 3776 3777 cd .. 3778 rm -rf conftest.dir 3779else 3780 am_cv_CC_dependencies_compiler_type=none 3781fi 3782 3783fi 3784{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3785$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3786CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3787 3788 3789 3790if 3791 test "x$enable_dependency_tracking" != xno \ 3792 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3793 am__fastdepCC_TRUE= 3794 am__fastdepCC_FALSE='#' 3795else 3796 am__fastdepCC_TRUE='#' 3797 am__fastdepCC_FALSE= 3798fi 3799 3800 3801{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3802$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3803if test "${lt_cv_path_SED+set}" = set; then 3804 $as_echo_n "(cached) " >&6 3805else 3806 # Loop through the user's path and test for sed and gsed. 3807# Then use that list of sed's as ones to test for truncation. 3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3809for as_dir in $PATH 3810do 3811 IFS=$as_save_IFS 3812 test -z "$as_dir" && as_dir=. 3813 for lt_ac_prog in sed gsed; do 3814 for ac_exec_ext in '' $ac_executable_extensions; do 3815 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3816 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3817 fi 3818 done 3819 done 3820done 3821IFS=$as_save_IFS 3822lt_ac_max=0 3823lt_ac_count=0 3824# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3825# along with /bin/sed that truncates output. 3826for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3827 test ! -f $lt_ac_sed && continue 3828 cat /dev/null > conftest.in 3829 lt_ac_count=0 3830 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3831 # Check for GNU sed and select it if it is found. 3832 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3833 lt_cv_path_SED=$lt_ac_sed 3834 break 3835 fi 3836 while true; do 3837 cat conftest.in conftest.in >conftest.tmp 3838 mv conftest.tmp conftest.in 3839 cp conftest.in conftest.nl 3840 echo >>conftest.nl 3841 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3842 cmp -s conftest.out conftest.nl || break 3843 # 10000 chars as input seems more than enough 3844 test $lt_ac_count -gt 10 && break 3845 lt_ac_count=`expr $lt_ac_count + 1` 3846 if test $lt_ac_count -gt $lt_ac_max; then 3847 lt_ac_max=$lt_ac_count 3848 lt_cv_path_SED=$lt_ac_sed 3849 fi 3850 done 3851done 3852 3853fi 3854 3855SED=$lt_cv_path_SED 3856 3857{ $as_echo "$as_me:$LINENO: result: $SED" >&5 3858$as_echo "$SED" >&6; } 3859 3860{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3861$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3862if test "${ac_cv_path_GREP+set}" = set; then 3863 $as_echo_n "(cached) " >&6 3864else 3865 if test -z "$GREP"; then 3866 ac_path_GREP_found=false 3867 # Loop through the user's path and test for each of PROGNAME-LIST 3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3869for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3870do 3871 IFS=$as_save_IFS 3872 test -z "$as_dir" && as_dir=. 3873 for ac_prog in grep ggrep; do 3874 for ac_exec_ext in '' $ac_executable_extensions; do 3875 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3876 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3877# Check for GNU ac_path_GREP and select it if it is found. 3878 # Check for GNU $ac_path_GREP 3879case `"$ac_path_GREP" --version 2>&1` in 3880*GNU*) 3881 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3882*) 3883 ac_count=0 3884 $as_echo_n 0123456789 >"conftest.in" 3885 while : 3886 do 3887 cat "conftest.in" "conftest.in" >"conftest.tmp" 3888 mv "conftest.tmp" "conftest.in" 3889 cp "conftest.in" "conftest.nl" 3890 $as_echo 'GREP' >> "conftest.nl" 3891 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3893 ac_count=`expr $ac_count + 1` 3894 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3895 # Best one so far, save it but keep looking for a better one 3896 ac_cv_path_GREP="$ac_path_GREP" 3897 ac_path_GREP_max=$ac_count 3898 fi 3899 # 10*(2^10) chars as input seems more than enough 3900 test $ac_count -gt 10 && break 3901 done 3902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3903esac 3904 3905 $ac_path_GREP_found && break 3 3906 done 3907 done 3908done 3909IFS=$as_save_IFS 3910 if test -z "$ac_cv_path_GREP"; then 3911 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3912$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3913 { (exit 1); exit 1; }; } 3914 fi 3915else 3916 ac_cv_path_GREP=$GREP 3917fi 3918 3919fi 3920{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3921$as_echo "$ac_cv_path_GREP" >&6; } 3922 GREP="$ac_cv_path_GREP" 3923 3924 3925{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 3926$as_echo_n "checking for egrep... " >&6; } 3927if test "${ac_cv_path_EGREP+set}" = set; then 3928 $as_echo_n "(cached) " >&6 3929else 3930 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3931 then ac_cv_path_EGREP="$GREP -E" 3932 else 3933 if test -z "$EGREP"; then 3934 ac_path_EGREP_found=false 3935 # Loop through the user's path and test for each of PROGNAME-LIST 3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3937for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3938do 3939 IFS=$as_save_IFS 3940 test -z "$as_dir" && as_dir=. 3941 for ac_prog in egrep; do 3942 for ac_exec_ext in '' $ac_executable_extensions; do 3943 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3944 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3945# Check for GNU ac_path_EGREP and select it if it is found. 3946 # Check for GNU $ac_path_EGREP 3947case `"$ac_path_EGREP" --version 2>&1` in 3948*GNU*) 3949 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3950*) 3951 ac_count=0 3952 $as_echo_n 0123456789 >"conftest.in" 3953 while : 3954 do 3955 cat "conftest.in" "conftest.in" >"conftest.tmp" 3956 mv "conftest.tmp" "conftest.in" 3957 cp "conftest.in" "conftest.nl" 3958 $as_echo 'EGREP' >> "conftest.nl" 3959 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3961 ac_count=`expr $ac_count + 1` 3962 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3963 # Best one so far, save it but keep looking for a better one 3964 ac_cv_path_EGREP="$ac_path_EGREP" 3965 ac_path_EGREP_max=$ac_count 3966 fi 3967 # 10*(2^10) chars as input seems more than enough 3968 test $ac_count -gt 10 && break 3969 done 3970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3971esac 3972 3973 $ac_path_EGREP_found && break 3 3974 done 3975 done 3976done 3977IFS=$as_save_IFS 3978 if test -z "$ac_cv_path_EGREP"; then 3979 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3980$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3981 { (exit 1); exit 1; }; } 3982 fi 3983else 3984 ac_cv_path_EGREP=$EGREP 3985fi 3986 3987 fi 3988fi 3989{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3990$as_echo "$ac_cv_path_EGREP" >&6; } 3991 EGREP="$ac_cv_path_EGREP" 3992 3993 3994 3995# Check whether --with-gnu-ld was given. 3996if test "${with_gnu_ld+set}" = set; then 3997 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3998else 3999 with_gnu_ld=no 4000fi 4001 4002ac_prog=ld 4003if test "$GCC" = yes; then 4004 # Check if gcc -print-prog-name=ld gives a path. 4005 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4006$as_echo_n "checking for ld used by $CC... " >&6; } 4007 case $host in 4008 *-*-mingw*) 4009 # gcc leaves a trailing carriage return which upsets mingw 4010 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4011 *) 4012 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4013 esac 4014 case $ac_prog in 4015 # Accept absolute paths. 4016 [\\/]* | ?:[\\/]*) 4017 re_direlt='/[^/][^/]*/\.\./' 4018 # Canonicalize the pathname of ld 4019 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4020 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4021 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4022 done 4023 test -z "$LD" && LD="$ac_prog" 4024 ;; 4025 "") 4026 # If it fails, then pretend we aren't using GCC. 4027 ac_prog=ld 4028 ;; 4029 *) 4030 # If it is relative, then search for the first ld in PATH. 4031 with_gnu_ld=unknown 4032 ;; 4033 esac 4034elif test "$with_gnu_ld" = yes; then 4035 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4036$as_echo_n "checking for GNU ld... " >&6; } 4037else 4038 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4039$as_echo_n "checking for non-GNU ld... " >&6; } 4040fi 4041if test "${lt_cv_path_LD+set}" = set; then 4042 $as_echo_n "(cached) " >&6 4043else 4044 if test -z "$LD"; then 4045 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4046 for ac_dir in $PATH; do 4047 IFS="$lt_save_ifs" 4048 test -z "$ac_dir" && ac_dir=. 4049 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4050 lt_cv_path_LD="$ac_dir/$ac_prog" 4051 # Check to see if the program is GNU ld. I'd rather use --version, 4052 # but apparently some variants of GNU ld only accept -v. 4053 # Break only if it was the GNU/non-GNU ld that we prefer. 4054 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4055 *GNU* | *'with BFD'*) 4056 test "$with_gnu_ld" != no && break 4057 ;; 4058 *) 4059 test "$with_gnu_ld" != yes && break 4060 ;; 4061 esac 4062 fi 4063 done 4064 IFS="$lt_save_ifs" 4065else 4066 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4067fi 4068fi 4069 4070LD="$lt_cv_path_LD" 4071if test -n "$LD"; then 4072 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4073$as_echo "$LD" >&6; } 4074else 4075 { $as_echo "$as_me:$LINENO: result: no" >&5 4076$as_echo "no" >&6; } 4077fi 4078test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4079$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4080 { (exit 1); exit 1; }; } 4081{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4082$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4083if test "${lt_cv_prog_gnu_ld+set}" = set; then 4084 $as_echo_n "(cached) " >&6 4085else 4086 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4087case `$LD -v 2>&1 </dev/null` in 4088*GNU* | *'with BFD'*) 4089 lt_cv_prog_gnu_ld=yes 4090 ;; 4091*) 4092 lt_cv_prog_gnu_ld=no 4093 ;; 4094esac 4095fi 4096{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4097$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4098with_gnu_ld=$lt_cv_prog_gnu_ld 4099 4100 4101{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4102$as_echo_n "checking for $LD option to reload object files... " >&6; } 4103if test "${lt_cv_ld_reload_flag+set}" = set; then 4104 $as_echo_n "(cached) " >&6 4105else 4106 lt_cv_ld_reload_flag='-r' 4107fi 4108{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4109$as_echo "$lt_cv_ld_reload_flag" >&6; } 4110reload_flag=$lt_cv_ld_reload_flag 4111case $reload_flag in 4112"" | " "*) ;; 4113*) reload_flag=" $reload_flag" ;; 4114esac 4115reload_cmds='$LD$reload_flag -o $output$reload_objs' 4116case $host_os in 4117 darwin*) 4118 if test "$GCC" = yes; then 4119 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4120 else 4121 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4122 fi 4123 ;; 4124esac 4125 4126{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4127$as_echo_n "checking for BSD-compatible nm... " >&6; } 4128if test "${lt_cv_path_NM+set}" = set; then 4129 $as_echo_n "(cached) " >&6 4130else 4131 if test -n "$NM"; then 4132 # Let the user override the test. 4133 lt_cv_path_NM="$NM" 4134else 4135 lt_nm_to_check="${ac_tool_prefix}nm" 4136 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4137 lt_nm_to_check="$lt_nm_to_check nm" 4138 fi 4139 for lt_tmp_nm in $lt_nm_to_check; do 4140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4141 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4142 IFS="$lt_save_ifs" 4143 test -z "$ac_dir" && ac_dir=. 4144 tmp_nm="$ac_dir/$lt_tmp_nm" 4145 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4146 # Check to see if the nm accepts a BSD-compat flag. 4147 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4148 # nm: unknown option "B" ignored 4149 # Tru64's nm complains that /dev/null is an invalid object file 4150 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4151 */dev/null* | *'Invalid file or object type'*) 4152 lt_cv_path_NM="$tmp_nm -B" 4153 break 4154 ;; 4155 *) 4156 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4157 */dev/null*) 4158 lt_cv_path_NM="$tmp_nm -p" 4159 break 4160 ;; 4161 *) 4162 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4163 continue # so that we can try to find one that supports BSD flags 4164 ;; 4165 esac 4166 ;; 4167 esac 4168 fi 4169 done 4170 IFS="$lt_save_ifs" 4171 done 4172 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4173fi 4174fi 4175{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4176$as_echo "$lt_cv_path_NM" >&6; } 4177NM="$lt_cv_path_NM" 4178 4179{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4180$as_echo_n "checking whether ln -s works... " >&6; } 4181LN_S=$as_ln_s 4182if test "$LN_S" = "ln -s"; then 4183 { $as_echo "$as_me:$LINENO: result: yes" >&5 4184$as_echo "yes" >&6; } 4185else 4186 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4187$as_echo "no, using $LN_S" >&6; } 4188fi 4189 4190{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4191$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4192if test "${lt_cv_deplibs_check_method+set}" = set; then 4193 $as_echo_n "(cached) " >&6 4194else 4195 lt_cv_file_magic_cmd='$MAGIC_CMD' 4196lt_cv_file_magic_test_file= 4197lt_cv_deplibs_check_method='unknown' 4198# Need to set the preceding variable on all platforms that support 4199# interlibrary dependencies. 4200# 'none' -- dependencies not supported. 4201# `unknown' -- same as none, but documents that we really don't know. 4202# 'pass_all' -- all dependencies passed with no checks. 4203# 'test_compile' -- check by making test program. 4204# 'file_magic [[regex]]' -- check by looking for files in library path 4205# which responds to the $file_magic_cmd with a given extended regex. 4206# If you have `file' or equivalent on your system and you're not sure 4207# whether `pass_all' will *always* work, you probably want this one. 4208 4209case $host_os in 4210aix[4-9]*) 4211 lt_cv_deplibs_check_method=pass_all 4212 ;; 4213 4214beos*) 4215 lt_cv_deplibs_check_method=pass_all 4216 ;; 4217 4218bsdi[45]*) 4219 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4220 lt_cv_file_magic_cmd='/usr/bin/file -L' 4221 lt_cv_file_magic_test_file=/shlib/libc.so 4222 ;; 4223 4224cygwin*) 4225 # func_win32_libid is a shell function defined in ltmain.sh 4226 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4227 lt_cv_file_magic_cmd='func_win32_libid' 4228 ;; 4229 4230mingw* | pw32*) 4231 # Base MSYS/MinGW do not provide the 'file' command needed by 4232 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4233 # unless we find 'file', for example because we are cross-compiling. 4234 if ( file / ) >/dev/null 2>&1; then 4235 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4236 lt_cv_file_magic_cmd='func_win32_libid' 4237 else 4238 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4239 lt_cv_file_magic_cmd='$OBJDUMP -f' 4240 fi 4241 ;; 4242 4243darwin* | rhapsody*) 4244 lt_cv_deplibs_check_method=pass_all 4245 ;; 4246 4247freebsd* | dragonfly*) 4248 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4249 case $host_cpu in 4250 i*86 ) 4251 # Not sure whether the presence of OpenBSD here was a mistake. 4252 # Let's accept both of them until this is cleared up. 4253 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4254 lt_cv_file_magic_cmd=/usr/bin/file 4255 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4256 ;; 4257 esac 4258 else 4259 lt_cv_deplibs_check_method=pass_all 4260 fi 4261 ;; 4262 4263gnu*) 4264 lt_cv_deplibs_check_method=pass_all 4265 ;; 4266 4267hpux10.20* | hpux11*) 4268 lt_cv_file_magic_cmd=/usr/bin/file 4269 case $host_cpu in 4270 ia64*) 4271 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4272 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4273 ;; 4274 hppa*64*) 4275 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]' 4276 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4277 ;; 4278 *) 4279 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4280 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4281 ;; 4282 esac 4283 ;; 4284 4285interix[3-9]*) 4286 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4288 ;; 4289 4290irix5* | irix6* | nonstopux*) 4291 case $LD in 4292 *-32|*"-32 ") libmagic=32-bit;; 4293 *-n32|*"-n32 ") libmagic=N32;; 4294 *-64|*"-64 ") libmagic=64-bit;; 4295 *) libmagic=never-match;; 4296 esac 4297 lt_cv_deplibs_check_method=pass_all 4298 ;; 4299 4300# This must be Linux ELF. 4301linux* | k*bsd*-gnu) 4302 lt_cv_deplibs_check_method=pass_all 4303 ;; 4304 4305netbsd*) 4306 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4308 else 4309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4310 fi 4311 ;; 4312 4313newos6*) 4314 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4315 lt_cv_file_magic_cmd=/usr/bin/file 4316 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4317 ;; 4318 4319nto-qnx*) 4320 lt_cv_deplibs_check_method=unknown 4321 ;; 4322 4323openbsd*) 4324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4326 else 4327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4328 fi 4329 ;; 4330 4331osf3* | osf4* | osf5*) 4332 lt_cv_deplibs_check_method=pass_all 4333 ;; 4334 4335rdos*) 4336 lt_cv_deplibs_check_method=pass_all 4337 ;; 4338 4339solaris*) 4340 lt_cv_deplibs_check_method=pass_all 4341 ;; 4342 4343sysv4 | sysv4.3*) 4344 case $host_vendor in 4345 motorola) 4346 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]' 4347 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4348 ;; 4349 ncr) 4350 lt_cv_deplibs_check_method=pass_all 4351 ;; 4352 sequent) 4353 lt_cv_file_magic_cmd='/bin/file' 4354 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4355 ;; 4356 sni) 4357 lt_cv_file_magic_cmd='/bin/file' 4358 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4359 lt_cv_file_magic_test_file=/lib/libc.so 4360 ;; 4361 siemens) 4362 lt_cv_deplibs_check_method=pass_all 4363 ;; 4364 pc) 4365 lt_cv_deplibs_check_method=pass_all 4366 ;; 4367 esac 4368 ;; 4369 4370sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4371 lt_cv_deplibs_check_method=pass_all 4372 ;; 4373esac 4374 4375fi 4376{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4377$as_echo "$lt_cv_deplibs_check_method" >&6; } 4378file_magic_cmd=$lt_cv_file_magic_cmd 4379deplibs_check_method=$lt_cv_deplibs_check_method 4380test -z "$deplibs_check_method" && deplibs_check_method=unknown 4381 4382 4383 4384 4385# If no C compiler was specified, use CC. 4386LTCC=${LTCC-"$CC"} 4387 4388# If no C compiler flags were specified, use CFLAGS. 4389LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4390 4391# Allow CC to be a program name with arguments. 4392compiler=$CC 4393 4394 4395# Check whether --enable-libtool-lock was given. 4396if test "${enable_libtool_lock+set}" = set; then 4397 enableval=$enable_libtool_lock; 4398fi 4399 4400test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4401 4402# Some flags need to be propagated to the compiler or linker for good 4403# libtool support. 4404case $host in 4405ia64-*-hpux*) 4406 # Find out which ABI we are using. 4407 echo 'int i;' > conftest.$ac_ext 4408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4409 (eval $ac_compile) 2>&5 4410 ac_status=$? 4411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4412 (exit $ac_status); }; then 4413 case `/usr/bin/file conftest.$ac_objext` in 4414 *ELF-32*) 4415 HPUX_IA64_MODE="32" 4416 ;; 4417 *ELF-64*) 4418 HPUX_IA64_MODE="64" 4419 ;; 4420 esac 4421 fi 4422 rm -rf conftest* 4423 ;; 4424*-*-irix6*) 4425 # Find out which ABI we are using. 4426 echo '#line 4426 "configure"' > conftest.$ac_ext 4427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4428 (eval $ac_compile) 2>&5 4429 ac_status=$? 4430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4431 (exit $ac_status); }; then 4432 if test "$lt_cv_prog_gnu_ld" = yes; then 4433 case `/usr/bin/file conftest.$ac_objext` in 4434 *32-bit*) 4435 LD="${LD-ld} -melf32bsmip" 4436 ;; 4437 *N32*) 4438 LD="${LD-ld} -melf32bmipn32" 4439 ;; 4440 *64-bit*) 4441 LD="${LD-ld} -melf64bmip" 4442 ;; 4443 esac 4444 else 4445 case `/usr/bin/file conftest.$ac_objext` in 4446 *32-bit*) 4447 LD="${LD-ld} -32" 4448 ;; 4449 *N32*) 4450 LD="${LD-ld} -n32" 4451 ;; 4452 *64-bit*) 4453 LD="${LD-ld} -64" 4454 ;; 4455 esac 4456 fi 4457 fi 4458 rm -rf conftest* 4459 ;; 4460 4461x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4462s390*-*linux*|sparc*-*linux*) 4463 # Find out which ABI we are using. 4464 echo 'int i;' > conftest.$ac_ext 4465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4466 (eval $ac_compile) 2>&5 4467 ac_status=$? 4468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4469 (exit $ac_status); }; then 4470 case `/usr/bin/file conftest.o` in 4471 *32-bit*) 4472 case $host in 4473 x86_64-*kfreebsd*-gnu) 4474 LD="${LD-ld} -m elf_i386_fbsd" 4475 ;; 4476 x86_64-*linux*) 4477 LD="${LD-ld} -m elf_i386" 4478 ;; 4479 ppc64-*linux*|powerpc64-*linux*) 4480 LD="${LD-ld} -m elf32ppclinux" 4481 ;; 4482 s390x-*linux*) 4483 LD="${LD-ld} -m elf_s390" 4484 ;; 4485 sparc64-*linux*) 4486 LD="${LD-ld} -m elf32_sparc" 4487 ;; 4488 esac 4489 ;; 4490 *64-bit*) 4491 case $host in 4492 x86_64-*kfreebsd*-gnu) 4493 LD="${LD-ld} -m elf_x86_64_fbsd" 4494 ;; 4495 x86_64-*linux*) 4496 LD="${LD-ld} -m elf_x86_64" 4497 ;; 4498 ppc*-*linux*|powerpc*-*linux*) 4499 LD="${LD-ld} -m elf64ppc" 4500 ;; 4501 s390*-*linux*) 4502 LD="${LD-ld} -m elf64_s390" 4503 ;; 4504 sparc*-*linux*) 4505 LD="${LD-ld} -m elf64_sparc" 4506 ;; 4507 esac 4508 ;; 4509 esac 4510 fi 4511 rm -rf conftest* 4512 ;; 4513 4514*-*-sco3.2v5*) 4515 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4516 SAVE_CFLAGS="$CFLAGS" 4517 CFLAGS="$CFLAGS -belf" 4518 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4519$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 4520if test "${lt_cv_cc_needs_belf+set}" = set; then 4521 $as_echo_n "(cached) " >&6 4522else 4523 ac_ext=c 4524ac_cpp='$CPP $CPPFLAGS' 4525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4527ac_compiler_gnu=$ac_cv_c_compiler_gnu 4528 4529 cat >conftest.$ac_ext <<_ACEOF 4530/* confdefs.h. */ 4531_ACEOF 4532cat confdefs.h >>conftest.$ac_ext 4533cat >>conftest.$ac_ext <<_ACEOF 4534/* end confdefs.h. */ 4535 4536int 4537main () 4538{ 4539 4540 ; 4541 return 0; 4542} 4543_ACEOF 4544rm -f conftest.$ac_objext conftest$ac_exeext 4545if { (ac_try="$ac_link" 4546case "(($ac_try" in 4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4548 *) ac_try_echo=$ac_try;; 4549esac 4550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4551$as_echo "$ac_try_echo") >&5 4552 (eval "$ac_link") 2>conftest.er1 4553 ac_status=$? 4554 grep -v '^ *+' conftest.er1 >conftest.err 4555 rm -f conftest.er1 4556 cat conftest.err >&5 4557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4558 (exit $ac_status); } && { 4559 test -z "$ac_c_werror_flag" || 4560 test ! -s conftest.err 4561 } && test -s conftest$ac_exeext && { 4562 test "$cross_compiling" = yes || 4563 $as_test_x conftest$ac_exeext 4564 }; then 4565 lt_cv_cc_needs_belf=yes 4566else 4567 $as_echo "$as_me: failed program was:" >&5 4568sed 's/^/| /' conftest.$ac_ext >&5 4569 4570 lt_cv_cc_needs_belf=no 4571fi 4572 4573rm -rf conftest.dSYM 4574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4575 conftest$ac_exeext conftest.$ac_ext 4576 ac_ext=c 4577ac_cpp='$CPP $CPPFLAGS' 4578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4580ac_compiler_gnu=$ac_cv_c_compiler_gnu 4581 4582fi 4583{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4584$as_echo "$lt_cv_cc_needs_belf" >&6; } 4585 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4586 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4587 CFLAGS="$SAVE_CFLAGS" 4588 fi 4589 ;; 4590sparc*-*solaris*) 4591 # Find out which ABI we are using. 4592 echo 'int i;' > conftest.$ac_ext 4593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4594 (eval $ac_compile) 2>&5 4595 ac_status=$? 4596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4597 (exit $ac_status); }; then 4598 case `/usr/bin/file conftest.o` in 4599 *64-bit*) 4600 case $lt_cv_prog_gnu_ld in 4601 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4602 *) 4603 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4604 LD="${LD-ld} -64" 4605 fi 4606 ;; 4607 esac 4608 ;; 4609 esac 4610 fi 4611 rm -rf conftest* 4612 ;; 4613 4614 4615esac 4616 4617need_locks="$enable_libtool_lock" 4618 4619 4620ac_ext=c 4621ac_cpp='$CPP $CPPFLAGS' 4622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4624ac_compiler_gnu=$ac_cv_c_compiler_gnu 4625{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4626$as_echo_n "checking how to run the C preprocessor... " >&6; } 4627# On Suns, sometimes $CPP names a directory. 4628if test -n "$CPP" && test -d "$CPP"; then 4629 CPP= 4630fi 4631if test -z "$CPP"; then 4632 if test "${ac_cv_prog_CPP+set}" = set; then 4633 $as_echo_n "(cached) " >&6 4634else 4635 # Double quotes because CPP needs to be expanded 4636 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4637 do 4638 ac_preproc_ok=false 4639for ac_c_preproc_warn_flag in '' yes 4640do 4641 # Use a header file that comes with gcc, so configuring glibc 4642 # with a fresh cross-compiler works. 4643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4644 # <limits.h> exists even on freestanding compilers. 4645 # On the NeXT, cc -E runs the code through the compiler's parser, 4646 # not just through cpp. "Syntax error" is here to catch this case. 4647 cat >conftest.$ac_ext <<_ACEOF 4648/* confdefs.h. */ 4649_ACEOF 4650cat confdefs.h >>conftest.$ac_ext 4651cat >>conftest.$ac_ext <<_ACEOF 4652/* end confdefs.h. */ 4653#ifdef __STDC__ 4654# include <limits.h> 4655#else 4656# include <assert.h> 4657#endif 4658 Syntax error 4659_ACEOF 4660if { (ac_try="$ac_cpp conftest.$ac_ext" 4661case "(($ac_try" in 4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4663 *) ac_try_echo=$ac_try;; 4664esac 4665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4666$as_echo "$ac_try_echo") >&5 4667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4668 ac_status=$? 4669 grep -v '^ *+' conftest.er1 >conftest.err 4670 rm -f conftest.er1 4671 cat conftest.err >&5 4672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4673 (exit $ac_status); } >/dev/null && { 4674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4675 test ! -s conftest.err 4676 }; then 4677 : 4678else 4679 $as_echo "$as_me: failed program was:" >&5 4680sed 's/^/| /' conftest.$ac_ext >&5 4681 4682 # Broken: fails on valid input. 4683continue 4684fi 4685 4686rm -f conftest.err conftest.$ac_ext 4687 4688 # OK, works on sane cases. Now check whether nonexistent headers 4689 # can be detected and how. 4690 cat >conftest.$ac_ext <<_ACEOF 4691/* confdefs.h. */ 4692_ACEOF 4693cat confdefs.h >>conftest.$ac_ext 4694cat >>conftest.$ac_ext <<_ACEOF 4695/* end confdefs.h. */ 4696#include <ac_nonexistent.h> 4697_ACEOF 4698if { (ac_try="$ac_cpp conftest.$ac_ext" 4699case "(($ac_try" in 4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4701 *) ac_try_echo=$ac_try;; 4702esac 4703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4704$as_echo "$ac_try_echo") >&5 4705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4706 ac_status=$? 4707 grep -v '^ *+' conftest.er1 >conftest.err 4708 rm -f conftest.er1 4709 cat conftest.err >&5 4710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4711 (exit $ac_status); } >/dev/null && { 4712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4713 test ! -s conftest.err 4714 }; then 4715 # Broken: success on invalid input. 4716continue 4717else 4718 $as_echo "$as_me: failed program was:" >&5 4719sed 's/^/| /' conftest.$ac_ext >&5 4720 4721 # Passes both tests. 4722ac_preproc_ok=: 4723break 4724fi 4725 4726rm -f conftest.err conftest.$ac_ext 4727 4728done 4729# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4730rm -f conftest.err conftest.$ac_ext 4731if $ac_preproc_ok; then 4732 break 4733fi 4734 4735 done 4736 ac_cv_prog_CPP=$CPP 4737 4738fi 4739 CPP=$ac_cv_prog_CPP 4740else 4741 ac_cv_prog_CPP=$CPP 4742fi 4743{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 4744$as_echo "$CPP" >&6; } 4745ac_preproc_ok=false 4746for ac_c_preproc_warn_flag in '' yes 4747do 4748 # Use a header file that comes with gcc, so configuring glibc 4749 # with a fresh cross-compiler works. 4750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4751 # <limits.h> exists even on freestanding compilers. 4752 # On the NeXT, cc -E runs the code through the compiler's parser, 4753 # not just through cpp. "Syntax error" is here to catch this case. 4754 cat >conftest.$ac_ext <<_ACEOF 4755/* confdefs.h. */ 4756_ACEOF 4757cat confdefs.h >>conftest.$ac_ext 4758cat >>conftest.$ac_ext <<_ACEOF 4759/* end confdefs.h. */ 4760#ifdef __STDC__ 4761# include <limits.h> 4762#else 4763# include <assert.h> 4764#endif 4765 Syntax error 4766_ACEOF 4767if { (ac_try="$ac_cpp conftest.$ac_ext" 4768case "(($ac_try" in 4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4770 *) ac_try_echo=$ac_try;; 4771esac 4772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4773$as_echo "$ac_try_echo") >&5 4774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4775 ac_status=$? 4776 grep -v '^ *+' conftest.er1 >conftest.err 4777 rm -f conftest.er1 4778 cat conftest.err >&5 4779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4780 (exit $ac_status); } >/dev/null && { 4781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4782 test ! -s conftest.err 4783 }; then 4784 : 4785else 4786 $as_echo "$as_me: failed program was:" >&5 4787sed 's/^/| /' conftest.$ac_ext >&5 4788 4789 # Broken: fails on valid input. 4790continue 4791fi 4792 4793rm -f conftest.err conftest.$ac_ext 4794 4795 # OK, works on sane cases. Now check whether nonexistent headers 4796 # can be detected and how. 4797 cat >conftest.$ac_ext <<_ACEOF 4798/* confdefs.h. */ 4799_ACEOF 4800cat confdefs.h >>conftest.$ac_ext 4801cat >>conftest.$ac_ext <<_ACEOF 4802/* end confdefs.h. */ 4803#include <ac_nonexistent.h> 4804_ACEOF 4805if { (ac_try="$ac_cpp conftest.$ac_ext" 4806case "(($ac_try" in 4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4808 *) ac_try_echo=$ac_try;; 4809esac 4810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4811$as_echo "$ac_try_echo") >&5 4812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4813 ac_status=$? 4814 grep -v '^ *+' conftest.er1 >conftest.err 4815 rm -f conftest.er1 4816 cat conftest.err >&5 4817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4818 (exit $ac_status); } >/dev/null && { 4819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4820 test ! -s conftest.err 4821 }; then 4822 # Broken: success on invalid input. 4823continue 4824else 4825 $as_echo "$as_me: failed program was:" >&5 4826sed 's/^/| /' conftest.$ac_ext >&5 4827 4828 # Passes both tests. 4829ac_preproc_ok=: 4830break 4831fi 4832 4833rm -f conftest.err conftest.$ac_ext 4834 4835done 4836# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4837rm -f conftest.err conftest.$ac_ext 4838if $ac_preproc_ok; then 4839 : 4840else 4841 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4842See \`config.log' for more details." >&5 4843$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4844See \`config.log' for more details." >&2;} 4845 { (exit 1); exit 1; }; } 4846fi 4847 4848ac_ext=c 4849ac_cpp='$CPP $CPPFLAGS' 4850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4852ac_compiler_gnu=$ac_cv_c_compiler_gnu 4853 4854 4855{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4856$as_echo_n "checking for ANSI C header files... " >&6; } 4857if test "${ac_cv_header_stdc+set}" = set; then 4858 $as_echo_n "(cached) " >&6 4859else 4860 cat >conftest.$ac_ext <<_ACEOF 4861/* confdefs.h. */ 4862_ACEOF 4863cat confdefs.h >>conftest.$ac_ext 4864cat >>conftest.$ac_ext <<_ACEOF 4865/* end confdefs.h. */ 4866#include <stdlib.h> 4867#include <stdarg.h> 4868#include <string.h> 4869#include <float.h> 4870 4871int 4872main () 4873{ 4874 4875 ; 4876 return 0; 4877} 4878_ACEOF 4879rm -f conftest.$ac_objext 4880if { (ac_try="$ac_compile" 4881case "(($ac_try" in 4882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4883 *) ac_try_echo=$ac_try;; 4884esac 4885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4886$as_echo "$ac_try_echo") >&5 4887 (eval "$ac_compile") 2>conftest.er1 4888 ac_status=$? 4889 grep -v '^ *+' conftest.er1 >conftest.err 4890 rm -f conftest.er1 4891 cat conftest.err >&5 4892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4893 (exit $ac_status); } && { 4894 test -z "$ac_c_werror_flag" || 4895 test ! -s conftest.err 4896 } && test -s conftest.$ac_objext; then 4897 ac_cv_header_stdc=yes 4898else 4899 $as_echo "$as_me: failed program was:" >&5 4900sed 's/^/| /' conftest.$ac_ext >&5 4901 4902 ac_cv_header_stdc=no 4903fi 4904 4905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4906 4907if test $ac_cv_header_stdc = yes; then 4908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4909 cat >conftest.$ac_ext <<_ACEOF 4910/* confdefs.h. */ 4911_ACEOF 4912cat confdefs.h >>conftest.$ac_ext 4913cat >>conftest.$ac_ext <<_ACEOF 4914/* end confdefs.h. */ 4915#include <string.h> 4916 4917_ACEOF 4918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4919 $EGREP "memchr" >/dev/null 2>&1; then 4920 : 4921else 4922 ac_cv_header_stdc=no 4923fi 4924rm -f conftest* 4925 4926fi 4927 4928if test $ac_cv_header_stdc = yes; then 4929 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4930 cat >conftest.$ac_ext <<_ACEOF 4931/* confdefs.h. */ 4932_ACEOF 4933cat confdefs.h >>conftest.$ac_ext 4934cat >>conftest.$ac_ext <<_ACEOF 4935/* end confdefs.h. */ 4936#include <stdlib.h> 4937 4938_ACEOF 4939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4940 $EGREP "free" >/dev/null 2>&1; then 4941 : 4942else 4943 ac_cv_header_stdc=no 4944fi 4945rm -f conftest* 4946 4947fi 4948 4949if test $ac_cv_header_stdc = yes; then 4950 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4951 if test "$cross_compiling" = yes; then 4952 : 4953else 4954 cat >conftest.$ac_ext <<_ACEOF 4955/* confdefs.h. */ 4956_ACEOF 4957cat confdefs.h >>conftest.$ac_ext 4958cat >>conftest.$ac_ext <<_ACEOF 4959/* end confdefs.h. */ 4960#include <ctype.h> 4961#include <stdlib.h> 4962#if ((' ' & 0x0FF) == 0x020) 4963# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4964# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4965#else 4966# define ISLOWER(c) \ 4967 (('a' <= (c) && (c) <= 'i') \ 4968 || ('j' <= (c) && (c) <= 'r') \ 4969 || ('s' <= (c) && (c) <= 'z')) 4970# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4971#endif 4972 4973#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4974int 4975main () 4976{ 4977 int i; 4978 for (i = 0; i < 256; i++) 4979 if (XOR (islower (i), ISLOWER (i)) 4980 || toupper (i) != TOUPPER (i)) 4981 return 2; 4982 return 0; 4983} 4984_ACEOF 4985rm -f conftest$ac_exeext 4986if { (ac_try="$ac_link" 4987case "(($ac_try" in 4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4989 *) ac_try_echo=$ac_try;; 4990esac 4991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4992$as_echo "$ac_try_echo") >&5 4993 (eval "$ac_link") 2>&5 4994 ac_status=$? 4995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4997 { (case "(($ac_try" in 4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4999 *) ac_try_echo=$ac_try;; 5000esac 5001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5002$as_echo "$ac_try_echo") >&5 5003 (eval "$ac_try") 2>&5 5004 ac_status=$? 5005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5006 (exit $ac_status); }; }; then 5007 : 5008else 5009 $as_echo "$as_me: program exited with status $ac_status" >&5 5010$as_echo "$as_me: failed program was:" >&5 5011sed 's/^/| /' conftest.$ac_ext >&5 5012 5013( exit $ac_status ) 5014ac_cv_header_stdc=no 5015fi 5016rm -rf conftest.dSYM 5017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5018fi 5019 5020 5021fi 5022fi 5023{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5024$as_echo "$ac_cv_header_stdc" >&6; } 5025if test $ac_cv_header_stdc = yes; then 5026 5027cat >>confdefs.h <<\_ACEOF 5028#define STDC_HEADERS 1 5029_ACEOF 5030 5031fi 5032 5033# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5044 inttypes.h stdint.h unistd.h 5045do 5046as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5047{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5048$as_echo_n "checking for $ac_header... " >&6; } 5049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5050 $as_echo_n "(cached) " >&6 5051else 5052 cat >conftest.$ac_ext <<_ACEOF 5053/* confdefs.h. */ 5054_ACEOF 5055cat confdefs.h >>conftest.$ac_ext 5056cat >>conftest.$ac_ext <<_ACEOF 5057/* end confdefs.h. */ 5058$ac_includes_default 5059 5060#include <$ac_header> 5061_ACEOF 5062rm -f conftest.$ac_objext 5063if { (ac_try="$ac_compile" 5064case "(($ac_try" in 5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5066 *) ac_try_echo=$ac_try;; 5067esac 5068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5069$as_echo "$ac_try_echo") >&5 5070 (eval "$ac_compile") 2>conftest.er1 5071 ac_status=$? 5072 grep -v '^ *+' conftest.er1 >conftest.err 5073 rm -f conftest.er1 5074 cat conftest.err >&5 5075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5076 (exit $ac_status); } && { 5077 test -z "$ac_c_werror_flag" || 5078 test ! -s conftest.err 5079 } && test -s conftest.$ac_objext; then 5080 eval "$as_ac_Header=yes" 5081else 5082 $as_echo "$as_me: failed program was:" >&5 5083sed 's/^/| /' conftest.$ac_ext >&5 5084 5085 eval "$as_ac_Header=no" 5086fi 5087 5088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5089fi 5090ac_res=`eval 'as_val=${'$as_ac_Header'} 5091 $as_echo "$as_val"'` 5092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5093$as_echo "$ac_res" >&6; } 5094if test `eval 'as_val=${'$as_ac_Header'} 5095 $as_echo "$as_val"'` = yes; then 5096 cat >>confdefs.h <<_ACEOF 5097#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5098_ACEOF 5099 5100fi 5101 5102done 5103 5104 5105 5106for ac_header in dlfcn.h 5107do 5108as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5110 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5111$as_echo_n "checking for $ac_header... " >&6; } 5112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5113 $as_echo_n "(cached) " >&6 5114fi 5115ac_res=`eval 'as_val=${'$as_ac_Header'} 5116 $as_echo "$as_val"'` 5117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5118$as_echo "$ac_res" >&6; } 5119else 5120 # Is the header compilable? 5121{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5122$as_echo_n "checking $ac_header usability... " >&6; } 5123cat >conftest.$ac_ext <<_ACEOF 5124/* confdefs.h. */ 5125_ACEOF 5126cat confdefs.h >>conftest.$ac_ext 5127cat >>conftest.$ac_ext <<_ACEOF 5128/* end confdefs.h. */ 5129$ac_includes_default 5130#include <$ac_header> 5131_ACEOF 5132rm -f conftest.$ac_objext 5133if { (ac_try="$ac_compile" 5134case "(($ac_try" in 5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5136 *) ac_try_echo=$ac_try;; 5137esac 5138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5139$as_echo "$ac_try_echo") >&5 5140 (eval "$ac_compile") 2>conftest.er1 5141 ac_status=$? 5142 grep -v '^ *+' conftest.er1 >conftest.err 5143 rm -f conftest.er1 5144 cat conftest.err >&5 5145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5146 (exit $ac_status); } && { 5147 test -z "$ac_c_werror_flag" || 5148 test ! -s conftest.err 5149 } && test -s conftest.$ac_objext; then 5150 ac_header_compiler=yes 5151else 5152 $as_echo "$as_me: failed program was:" >&5 5153sed 's/^/| /' conftest.$ac_ext >&5 5154 5155 ac_header_compiler=no 5156fi 5157 5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5159{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5160$as_echo "$ac_header_compiler" >&6; } 5161 5162# Is the header present? 5163{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5164$as_echo_n "checking $ac_header presence... " >&6; } 5165cat >conftest.$ac_ext <<_ACEOF 5166/* confdefs.h. */ 5167_ACEOF 5168cat confdefs.h >>conftest.$ac_ext 5169cat >>conftest.$ac_ext <<_ACEOF 5170/* end confdefs.h. */ 5171#include <$ac_header> 5172_ACEOF 5173if { (ac_try="$ac_cpp conftest.$ac_ext" 5174case "(($ac_try" in 5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5176 *) ac_try_echo=$ac_try;; 5177esac 5178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5179$as_echo "$ac_try_echo") >&5 5180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5181 ac_status=$? 5182 grep -v '^ *+' conftest.er1 >conftest.err 5183 rm -f conftest.er1 5184 cat conftest.err >&5 5185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5186 (exit $ac_status); } >/dev/null && { 5187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5188 test ! -s conftest.err 5189 }; then 5190 ac_header_preproc=yes 5191else 5192 $as_echo "$as_me: failed program was:" >&5 5193sed 's/^/| /' conftest.$ac_ext >&5 5194 5195 ac_header_preproc=no 5196fi 5197 5198rm -f conftest.err conftest.$ac_ext 5199{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5200$as_echo "$ac_header_preproc" >&6; } 5201 5202# So? What about this header? 5203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5204 yes:no: ) 5205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5206$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5208$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5209 ac_header_preproc=yes 5210 ;; 5211 no:yes:* ) 5212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5213$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5215$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5217$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5219$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5221$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5223$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5224 ( cat <<\_ASBOX 5225## -------------------------------------- ## 5226## Report this to http://www.openbsd.org/ ## 5227## -------------------------------------- ## 5228_ASBOX 5229 ) | sed "s/^/$as_me: WARNING: /" >&2 5230 ;; 5231esac 5232{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5233$as_echo_n "checking for $ac_header... " >&6; } 5234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5235 $as_echo_n "(cached) " >&6 5236else 5237 eval "$as_ac_Header=\$ac_header_preproc" 5238fi 5239ac_res=`eval 'as_val=${'$as_ac_Header'} 5240 $as_echo "$as_val"'` 5241 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5242$as_echo "$ac_res" >&6; } 5243 5244fi 5245if test `eval 'as_val=${'$as_ac_Header'} 5246 $as_echo "$as_val"'` = yes; then 5247 cat >>confdefs.h <<_ACEOF 5248#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5249_ACEOF 5250 5251fi 5252 5253done 5254 5255ac_ext=cpp 5256ac_cpp='$CXXCPP $CPPFLAGS' 5257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5260if test -z "$CXX"; then 5261 if test -n "$CCC"; then 5262 CXX=$CCC 5263 else 5264 if test -n "$ac_tool_prefix"; then 5265 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5266 do 5267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5268set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5269{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5270$as_echo_n "checking for $ac_word... " >&6; } 5271if test "${ac_cv_prog_CXX+set}" = set; then 5272 $as_echo_n "(cached) " >&6 5273else 5274 if test -n "$CXX"; then 5275 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5276else 5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5278for as_dir in $PATH 5279do 5280 IFS=$as_save_IFS 5281 test -z "$as_dir" && as_dir=. 5282 for ac_exec_ext in '' $ac_executable_extensions; do 5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5284 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5285 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5286 break 2 5287 fi 5288done 5289done 5290IFS=$as_save_IFS 5291 5292fi 5293fi 5294CXX=$ac_cv_prog_CXX 5295if test -n "$CXX"; then 5296 { $as_echo "$as_me:$LINENO: result: $CXX" >&5 5297$as_echo "$CXX" >&6; } 5298else 5299 { $as_echo "$as_me:$LINENO: result: no" >&5 5300$as_echo "no" >&6; } 5301fi 5302 5303 5304 test -n "$CXX" && break 5305 done 5306fi 5307if test -z "$CXX"; then 5308 ac_ct_CXX=$CXX 5309 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5310do 5311 # Extract the first word of "$ac_prog", so it can be a program name with args. 5312set dummy $ac_prog; ac_word=$2 5313{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5314$as_echo_n "checking for $ac_word... " >&6; } 5315if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5316 $as_echo_n "(cached) " >&6 5317else 5318 if test -n "$ac_ct_CXX"; then 5319 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5320else 5321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5322for as_dir in $PATH 5323do 5324 IFS=$as_save_IFS 5325 test -z "$as_dir" && as_dir=. 5326 for ac_exec_ext in '' $ac_executable_extensions; do 5327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5328 ac_cv_prog_ac_ct_CXX="$ac_prog" 5329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5330 break 2 5331 fi 5332done 5333done 5334IFS=$as_save_IFS 5335 5336fi 5337fi 5338ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5339if test -n "$ac_ct_CXX"; then 5340 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5341$as_echo "$ac_ct_CXX" >&6; } 5342else 5343 { $as_echo "$as_me:$LINENO: result: no" >&5 5344$as_echo "no" >&6; } 5345fi 5346 5347 5348 test -n "$ac_ct_CXX" && break 5349done 5350 5351 if test "x$ac_ct_CXX" = x; then 5352 CXX="g++" 5353 else 5354 case $cross_compiling:$ac_tool_warned in 5355yes:) 5356{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5357whose name does not start with the host triplet. If you think this 5358configuration is useful to you, please write to autoconf@gnu.org." >&5 5359$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5360whose name does not start with the host triplet. If you think this 5361configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5362ac_tool_warned=yes ;; 5363esac 5364 CXX=$ac_ct_CXX 5365 fi 5366fi 5367 5368 fi 5369fi 5370# Provide some information about the compiler. 5371$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5372set X $ac_compile 5373ac_compiler=$2 5374{ (ac_try="$ac_compiler --version >&5" 5375case "(($ac_try" in 5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5377 *) ac_try_echo=$ac_try;; 5378esac 5379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5380$as_echo "$ac_try_echo") >&5 5381 (eval "$ac_compiler --version >&5") 2>&5 5382 ac_status=$? 5383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5384 (exit $ac_status); } 5385{ (ac_try="$ac_compiler -v >&5" 5386case "(($ac_try" in 5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5388 *) ac_try_echo=$ac_try;; 5389esac 5390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5391$as_echo "$ac_try_echo") >&5 5392 (eval "$ac_compiler -v >&5") 2>&5 5393 ac_status=$? 5394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5395 (exit $ac_status); } 5396{ (ac_try="$ac_compiler -V >&5" 5397case "(($ac_try" in 5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5399 *) ac_try_echo=$ac_try;; 5400esac 5401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5402$as_echo "$ac_try_echo") >&5 5403 (eval "$ac_compiler -V >&5") 2>&5 5404 ac_status=$? 5405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5406 (exit $ac_status); } 5407 5408{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5409$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5410if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5411 $as_echo_n "(cached) " >&6 5412else 5413 cat >conftest.$ac_ext <<_ACEOF 5414/* confdefs.h. */ 5415_ACEOF 5416cat confdefs.h >>conftest.$ac_ext 5417cat >>conftest.$ac_ext <<_ACEOF 5418/* end confdefs.h. */ 5419 5420int 5421main () 5422{ 5423#ifndef __GNUC__ 5424 choke me 5425#endif 5426 5427 ; 5428 return 0; 5429} 5430_ACEOF 5431rm -f conftest.$ac_objext 5432if { (ac_try="$ac_compile" 5433case "(($ac_try" in 5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5435 *) ac_try_echo=$ac_try;; 5436esac 5437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5438$as_echo "$ac_try_echo") >&5 5439 (eval "$ac_compile") 2>conftest.er1 5440 ac_status=$? 5441 grep -v '^ *+' conftest.er1 >conftest.err 5442 rm -f conftest.er1 5443 cat conftest.err >&5 5444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5445 (exit $ac_status); } && { 5446 test -z "$ac_cxx_werror_flag" || 5447 test ! -s conftest.err 5448 } && test -s conftest.$ac_objext; then 5449 ac_compiler_gnu=yes 5450else 5451 $as_echo "$as_me: failed program was:" >&5 5452sed 's/^/| /' conftest.$ac_ext >&5 5453 5454 ac_compiler_gnu=no 5455fi 5456 5457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5458ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5459 5460fi 5461{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5462$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5463if test $ac_compiler_gnu = yes; then 5464 GXX=yes 5465else 5466 GXX= 5467fi 5468ac_test_CXXFLAGS=${CXXFLAGS+set} 5469ac_save_CXXFLAGS=$CXXFLAGS 5470{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5471$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5472if test "${ac_cv_prog_cxx_g+set}" = set; then 5473 $as_echo_n "(cached) " >&6 5474else 5475 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5476 ac_cxx_werror_flag=yes 5477 ac_cv_prog_cxx_g=no 5478 CXXFLAGS="-g" 5479 cat >conftest.$ac_ext <<_ACEOF 5480/* confdefs.h. */ 5481_ACEOF 5482cat confdefs.h >>conftest.$ac_ext 5483cat >>conftest.$ac_ext <<_ACEOF 5484/* end confdefs.h. */ 5485 5486int 5487main () 5488{ 5489 5490 ; 5491 return 0; 5492} 5493_ACEOF 5494rm -f conftest.$ac_objext 5495if { (ac_try="$ac_compile" 5496case "(($ac_try" in 5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5498 *) ac_try_echo=$ac_try;; 5499esac 5500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5501$as_echo "$ac_try_echo") >&5 5502 (eval "$ac_compile") 2>conftest.er1 5503 ac_status=$? 5504 grep -v '^ *+' conftest.er1 >conftest.err 5505 rm -f conftest.er1 5506 cat conftest.err >&5 5507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5508 (exit $ac_status); } && { 5509 test -z "$ac_cxx_werror_flag" || 5510 test ! -s conftest.err 5511 } && test -s conftest.$ac_objext; then 5512 ac_cv_prog_cxx_g=yes 5513else 5514 $as_echo "$as_me: failed program was:" >&5 5515sed 's/^/| /' conftest.$ac_ext >&5 5516 5517 CXXFLAGS="" 5518 cat >conftest.$ac_ext <<_ACEOF 5519/* confdefs.h. */ 5520_ACEOF 5521cat confdefs.h >>conftest.$ac_ext 5522cat >>conftest.$ac_ext <<_ACEOF 5523/* end confdefs.h. */ 5524 5525int 5526main () 5527{ 5528 5529 ; 5530 return 0; 5531} 5532_ACEOF 5533rm -f conftest.$ac_objext 5534if { (ac_try="$ac_compile" 5535case "(($ac_try" in 5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5537 *) ac_try_echo=$ac_try;; 5538esac 5539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5540$as_echo "$ac_try_echo") >&5 5541 (eval "$ac_compile") 2>conftest.er1 5542 ac_status=$? 5543 grep -v '^ *+' conftest.er1 >conftest.err 5544 rm -f conftest.er1 5545 cat conftest.err >&5 5546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5547 (exit $ac_status); } && { 5548 test -z "$ac_cxx_werror_flag" || 5549 test ! -s conftest.err 5550 } && test -s conftest.$ac_objext; then 5551 : 5552else 5553 $as_echo "$as_me: failed program was:" >&5 5554sed 's/^/| /' conftest.$ac_ext >&5 5555 5556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5557 CXXFLAGS="-g" 5558 cat >conftest.$ac_ext <<_ACEOF 5559/* confdefs.h. */ 5560_ACEOF 5561cat confdefs.h >>conftest.$ac_ext 5562cat >>conftest.$ac_ext <<_ACEOF 5563/* end confdefs.h. */ 5564 5565int 5566main () 5567{ 5568 5569 ; 5570 return 0; 5571} 5572_ACEOF 5573rm -f conftest.$ac_objext 5574if { (ac_try="$ac_compile" 5575case "(($ac_try" in 5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5577 *) ac_try_echo=$ac_try;; 5578esac 5579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5580$as_echo "$ac_try_echo") >&5 5581 (eval "$ac_compile") 2>conftest.er1 5582 ac_status=$? 5583 grep -v '^ *+' conftest.er1 >conftest.err 5584 rm -f conftest.er1 5585 cat conftest.err >&5 5586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5587 (exit $ac_status); } && { 5588 test -z "$ac_cxx_werror_flag" || 5589 test ! -s conftest.err 5590 } && test -s conftest.$ac_objext; then 5591 ac_cv_prog_cxx_g=yes 5592else 5593 $as_echo "$as_me: failed program was:" >&5 5594sed 's/^/| /' conftest.$ac_ext >&5 5595 5596 5597fi 5598 5599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5600fi 5601 5602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5603fi 5604 5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5606 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5607fi 5608{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5609$as_echo "$ac_cv_prog_cxx_g" >&6; } 5610if test "$ac_test_CXXFLAGS" = set; then 5611 CXXFLAGS=$ac_save_CXXFLAGS 5612elif test $ac_cv_prog_cxx_g = yes; then 5613 if test "$GXX" = yes; then 5614 CXXFLAGS="-g -O2" 5615 else 5616 CXXFLAGS="-g" 5617 fi 5618else 5619 if test "$GXX" = yes; then 5620 CXXFLAGS="-O2" 5621 else 5622 CXXFLAGS= 5623 fi 5624fi 5625ac_ext=cpp 5626ac_cpp='$CXXCPP $CPPFLAGS' 5627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5630 5631depcc="$CXX" am_compiler_list= 5632 5633{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5634$as_echo_n "checking dependency style of $depcc... " >&6; } 5635if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5636 $as_echo_n "(cached) " >&6 5637else 5638 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5639 # We make a subdir and do the tests there. Otherwise we can end up 5640 # making bogus files that we don't know about and never remove. For 5641 # instance it was reported that on HP-UX the gcc test will end up 5642 # making a dummy file named `D' -- because `-MD' means `put the output 5643 # in D'. 5644 mkdir conftest.dir 5645 # Copy depcomp to subdir because otherwise we won't find it if we're 5646 # using a relative directory. 5647 cp "$am_depcomp" conftest.dir 5648 cd conftest.dir 5649 # We will build objects and dependencies in a subdirectory because 5650 # it helps to detect inapplicable dependency modes. For instance 5651 # both Tru64's cc and ICC support -MD to output dependencies as a 5652 # side effect of compilation, but ICC will put the dependencies in 5653 # the current directory while Tru64 will put them in the object 5654 # directory. 5655 mkdir sub 5656 5657 am_cv_CXX_dependencies_compiler_type=none 5658 if test "$am_compiler_list" = ""; then 5659 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5660 fi 5661 for depmode in $am_compiler_list; do 5662 # Setup a source with many dependencies, because some compilers 5663 # like to wrap large dependency lists on column 80 (with \), and 5664 # we should not choose a depcomp mode which is confused by this. 5665 # 5666 # We need to recreate these files for each test, as the compiler may 5667 # overwrite some of them when testing with obscure command lines. 5668 # This happens at least with the AIX C compiler. 5669 : > sub/conftest.c 5670 for i in 1 2 3 4 5 6; do 5671 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5672 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5673 # Solaris 8's {/usr,}/bin/sh. 5674 touch sub/conftst$i.h 5675 done 5676 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5677 5678 case $depmode in 5679 nosideeffect) 5680 # after this tag, mechanisms are not by side-effect, so they'll 5681 # only be used when explicitly requested 5682 if test "x$enable_dependency_tracking" = xyes; then 5683 continue 5684 else 5685 break 5686 fi 5687 ;; 5688 none) break ;; 5689 esac 5690 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5691 # mode. It turns out that the SunPro C++ compiler does not properly 5692 # handle `-M -o', and we need to detect this. 5693 if depmode=$depmode \ 5694 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5695 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5696 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5697 >/dev/null 2>conftest.err && 5698 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5699 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5700 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5701 # icc doesn't choke on unknown options, it will just issue warnings 5702 # or remarks (even with -Werror). So we grep stderr for any message 5703 # that says an option was ignored or not supported. 5704 # When given -MP, icc 7.0 and 7.1 complain thusly: 5705 # icc: Command line warning: ignoring option '-M'; no argument required 5706 # The diagnosis changed in icc 8.0: 5707 # icc: Command line remark: option '-MP' not supported 5708 if (grep 'ignoring option' conftest.err || 5709 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5710 am_cv_CXX_dependencies_compiler_type=$depmode 5711 break 5712 fi 5713 fi 5714 done 5715 5716 cd .. 5717 rm -rf conftest.dir 5718else 5719 am_cv_CXX_dependencies_compiler_type=none 5720fi 5721 5722fi 5723{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5724$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5725CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5726 5727 5728 5729if 5730 test "x$enable_dependency_tracking" != xno \ 5731 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5732 am__fastdepCXX_TRUE= 5733 am__fastdepCXX_FALSE='#' 5734else 5735 am__fastdepCXX_TRUE='#' 5736 am__fastdepCXX_FALSE= 5737fi 5738 5739 5740 5741 5742if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5743 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5744 (test "X$CXX" != "Xg++"))) ; then 5745 ac_ext=cpp 5746ac_cpp='$CXXCPP $CPPFLAGS' 5747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5750{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5751$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5752if test -z "$CXXCPP"; then 5753 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5754 $as_echo_n "(cached) " >&6 5755else 5756 # Double quotes because CXXCPP needs to be expanded 5757 for CXXCPP in "$CXX -E" "/lib/cpp" 5758 do 5759 ac_preproc_ok=false 5760for ac_cxx_preproc_warn_flag in '' yes 5761do 5762 # Use a header file that comes with gcc, so configuring glibc 5763 # with a fresh cross-compiler works. 5764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5765 # <limits.h> exists even on freestanding compilers. 5766 # On the NeXT, cc -E runs the code through the compiler's parser, 5767 # not just through cpp. "Syntax error" is here to catch this case. 5768 cat >conftest.$ac_ext <<_ACEOF 5769/* confdefs.h. */ 5770_ACEOF 5771cat confdefs.h >>conftest.$ac_ext 5772cat >>conftest.$ac_ext <<_ACEOF 5773/* end confdefs.h. */ 5774#ifdef __STDC__ 5775# include <limits.h> 5776#else 5777# include <assert.h> 5778#endif 5779 Syntax error 5780_ACEOF 5781if { (ac_try="$ac_cpp conftest.$ac_ext" 5782case "(($ac_try" in 5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5784 *) ac_try_echo=$ac_try;; 5785esac 5786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5787$as_echo "$ac_try_echo") >&5 5788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5789 ac_status=$? 5790 grep -v '^ *+' conftest.er1 >conftest.err 5791 rm -f conftest.er1 5792 cat conftest.err >&5 5793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5794 (exit $ac_status); } >/dev/null && { 5795 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5796 test ! -s conftest.err 5797 }; then 5798 : 5799else 5800 $as_echo "$as_me: failed program was:" >&5 5801sed 's/^/| /' conftest.$ac_ext >&5 5802 5803 # Broken: fails on valid input. 5804continue 5805fi 5806 5807rm -f conftest.err conftest.$ac_ext 5808 5809 # OK, works on sane cases. Now check whether nonexistent headers 5810 # can be detected and how. 5811 cat >conftest.$ac_ext <<_ACEOF 5812/* confdefs.h. */ 5813_ACEOF 5814cat confdefs.h >>conftest.$ac_ext 5815cat >>conftest.$ac_ext <<_ACEOF 5816/* end confdefs.h. */ 5817#include <ac_nonexistent.h> 5818_ACEOF 5819if { (ac_try="$ac_cpp conftest.$ac_ext" 5820case "(($ac_try" in 5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5822 *) ac_try_echo=$ac_try;; 5823esac 5824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5825$as_echo "$ac_try_echo") >&5 5826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5827 ac_status=$? 5828 grep -v '^ *+' conftest.er1 >conftest.err 5829 rm -f conftest.er1 5830 cat conftest.err >&5 5831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5832 (exit $ac_status); } >/dev/null && { 5833 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5834 test ! -s conftest.err 5835 }; then 5836 # Broken: success on invalid input. 5837continue 5838else 5839 $as_echo "$as_me: failed program was:" >&5 5840sed 's/^/| /' conftest.$ac_ext >&5 5841 5842 # Passes both tests. 5843ac_preproc_ok=: 5844break 5845fi 5846 5847rm -f conftest.err conftest.$ac_ext 5848 5849done 5850# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5851rm -f conftest.err conftest.$ac_ext 5852if $ac_preproc_ok; then 5853 break 5854fi 5855 5856 done 5857 ac_cv_prog_CXXCPP=$CXXCPP 5858 5859fi 5860 CXXCPP=$ac_cv_prog_CXXCPP 5861else 5862 ac_cv_prog_CXXCPP=$CXXCPP 5863fi 5864{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 5865$as_echo "$CXXCPP" >&6; } 5866ac_preproc_ok=false 5867for ac_cxx_preproc_warn_flag in '' yes 5868do 5869 # Use a header file that comes with gcc, so configuring glibc 5870 # with a fresh cross-compiler works. 5871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5872 # <limits.h> exists even on freestanding compilers. 5873 # On the NeXT, cc -E runs the code through the compiler's parser, 5874 # not just through cpp. "Syntax error" is here to catch this case. 5875 cat >conftest.$ac_ext <<_ACEOF 5876/* confdefs.h. */ 5877_ACEOF 5878cat confdefs.h >>conftest.$ac_ext 5879cat >>conftest.$ac_ext <<_ACEOF 5880/* end confdefs.h. */ 5881#ifdef __STDC__ 5882# include <limits.h> 5883#else 5884# include <assert.h> 5885#endif 5886 Syntax error 5887_ACEOF 5888if { (ac_try="$ac_cpp conftest.$ac_ext" 5889case "(($ac_try" in 5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5891 *) ac_try_echo=$ac_try;; 5892esac 5893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5894$as_echo "$ac_try_echo") >&5 5895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5896 ac_status=$? 5897 grep -v '^ *+' conftest.er1 >conftest.err 5898 rm -f conftest.er1 5899 cat conftest.err >&5 5900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5901 (exit $ac_status); } >/dev/null && { 5902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5903 test ! -s conftest.err 5904 }; then 5905 : 5906else 5907 $as_echo "$as_me: failed program was:" >&5 5908sed 's/^/| /' conftest.$ac_ext >&5 5909 5910 # Broken: fails on valid input. 5911continue 5912fi 5913 5914rm -f conftest.err conftest.$ac_ext 5915 5916 # OK, works on sane cases. Now check whether nonexistent headers 5917 # can be detected and how. 5918 cat >conftest.$ac_ext <<_ACEOF 5919/* confdefs.h. */ 5920_ACEOF 5921cat confdefs.h >>conftest.$ac_ext 5922cat >>conftest.$ac_ext <<_ACEOF 5923/* end confdefs.h. */ 5924#include <ac_nonexistent.h> 5925_ACEOF 5926if { (ac_try="$ac_cpp conftest.$ac_ext" 5927case "(($ac_try" in 5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5929 *) ac_try_echo=$ac_try;; 5930esac 5931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5932$as_echo "$ac_try_echo") >&5 5933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5934 ac_status=$? 5935 grep -v '^ *+' conftest.er1 >conftest.err 5936 rm -f conftest.er1 5937 cat conftest.err >&5 5938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5939 (exit $ac_status); } >/dev/null && { 5940 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5941 test ! -s conftest.err 5942 }; then 5943 # Broken: success on invalid input. 5944continue 5945else 5946 $as_echo "$as_me: failed program was:" >&5 5947sed 's/^/| /' conftest.$ac_ext >&5 5948 5949 # Passes both tests. 5950ac_preproc_ok=: 5951break 5952fi 5953 5954rm -f conftest.err conftest.$ac_ext 5955 5956done 5957# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5958rm -f conftest.err conftest.$ac_ext 5959if $ac_preproc_ok; then 5960 : 5961else 5962 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5963See \`config.log' for more details." >&5 5964$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5965See \`config.log' for more details." >&2;} 5966 { (exit 1); exit 1; }; } 5967fi 5968 5969ac_ext=cpp 5970ac_cpp='$CXXCPP $CPPFLAGS' 5971ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5972ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5973ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5974 5975fi 5976 5977 5978ac_ext=f 5979ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5980ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5981ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5982if test -n "$ac_tool_prefix"; then 5983 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 5984 do 5985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5986set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5987{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5988$as_echo_n "checking for $ac_word... " >&6; } 5989if test "${ac_cv_prog_F77+set}" = set; then 5990 $as_echo_n "(cached) " >&6 5991else 5992 if test -n "$F77"; then 5993 ac_cv_prog_F77="$F77" # Let the user override the test. 5994else 5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5996for as_dir in $PATH 5997do 5998 IFS=$as_save_IFS 5999 test -z "$as_dir" && as_dir=. 6000 for ac_exec_ext in '' $ac_executable_extensions; do 6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6002 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6003 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6004 break 2 6005 fi 6006done 6007done 6008IFS=$as_save_IFS 6009 6010fi 6011fi 6012F77=$ac_cv_prog_F77 6013if test -n "$F77"; then 6014 { $as_echo "$as_me:$LINENO: result: $F77" >&5 6015$as_echo "$F77" >&6; } 6016else 6017 { $as_echo "$as_me:$LINENO: result: no" >&5 6018$as_echo "no" >&6; } 6019fi 6020 6021 6022 test -n "$F77" && break 6023 done 6024fi 6025if test -z "$F77"; then 6026 ac_ct_F77=$F77 6027 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 6028do 6029 # Extract the first word of "$ac_prog", so it can be a program name with args. 6030set dummy $ac_prog; ac_word=$2 6031{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6032$as_echo_n "checking for $ac_word... " >&6; } 6033if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6034 $as_echo_n "(cached) " >&6 6035else 6036 if test -n "$ac_ct_F77"; then 6037 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6038else 6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6040for as_dir in $PATH 6041do 6042 IFS=$as_save_IFS 6043 test -z "$as_dir" && as_dir=. 6044 for ac_exec_ext in '' $ac_executable_extensions; do 6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6046 ac_cv_prog_ac_ct_F77="$ac_prog" 6047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6048 break 2 6049 fi 6050done 6051done 6052IFS=$as_save_IFS 6053 6054fi 6055fi 6056ac_ct_F77=$ac_cv_prog_ac_ct_F77 6057if test -n "$ac_ct_F77"; then 6058 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6059$as_echo "$ac_ct_F77" >&6; } 6060else 6061 { $as_echo "$as_me:$LINENO: result: no" >&5 6062$as_echo "no" >&6; } 6063fi 6064 6065 6066 test -n "$ac_ct_F77" && break 6067done 6068 6069 if test "x$ac_ct_F77" = x; then 6070 F77="" 6071 else 6072 case $cross_compiling:$ac_tool_warned in 6073yes:) 6074{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6075whose name does not start with the host triplet. If you think this 6076configuration is useful to you, please write to autoconf@gnu.org." >&5 6077$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6078whose name does not start with the host triplet. If you think this 6079configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6080ac_tool_warned=yes ;; 6081esac 6082 F77=$ac_ct_F77 6083 fi 6084fi 6085 6086 6087# Provide some information about the compiler. 6088$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6089set X $ac_compile 6090ac_compiler=$2 6091{ (ac_try="$ac_compiler --version >&5" 6092case "(($ac_try" in 6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6094 *) ac_try_echo=$ac_try;; 6095esac 6096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6097$as_echo "$ac_try_echo") >&5 6098 (eval "$ac_compiler --version >&5") 2>&5 6099 ac_status=$? 6100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6101 (exit $ac_status); } 6102{ (ac_try="$ac_compiler -v >&5" 6103case "(($ac_try" in 6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6105 *) ac_try_echo=$ac_try;; 6106esac 6107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6108$as_echo "$ac_try_echo") >&5 6109 (eval "$ac_compiler -v >&5") 2>&5 6110 ac_status=$? 6111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6112 (exit $ac_status); } 6113{ (ac_try="$ac_compiler -V >&5" 6114case "(($ac_try" in 6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6116 *) ac_try_echo=$ac_try;; 6117esac 6118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6119$as_echo "$ac_try_echo") >&5 6120 (eval "$ac_compiler -V >&5") 2>&5 6121 ac_status=$? 6122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6123 (exit $ac_status); } 6124rm -f a.out 6125 6126# If we don't use `.F' as extension, the preprocessor is not run on the 6127# input file. (Note that this only needs to work for GNU compilers.) 6128ac_save_ext=$ac_ext 6129ac_ext=F 6130{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6131$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6132if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6133 $as_echo_n "(cached) " >&6 6134else 6135 cat >conftest.$ac_ext <<_ACEOF 6136 program main 6137#ifndef __GNUC__ 6138 choke me 6139#endif 6140 6141 end 6142_ACEOF 6143rm -f conftest.$ac_objext 6144if { (ac_try="$ac_compile" 6145case "(($ac_try" in 6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6147 *) ac_try_echo=$ac_try;; 6148esac 6149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6150$as_echo "$ac_try_echo") >&5 6151 (eval "$ac_compile") 2>conftest.er1 6152 ac_status=$? 6153 grep -v '^ *+' conftest.er1 >conftest.err 6154 rm -f conftest.er1 6155 cat conftest.err >&5 6156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6157 (exit $ac_status); } && { 6158 test -z "$ac_f77_werror_flag" || 6159 test ! -s conftest.err 6160 } && test -s conftest.$ac_objext; then 6161 ac_compiler_gnu=yes 6162else 6163 $as_echo "$as_me: failed program was:" >&5 6164sed 's/^/| /' conftest.$ac_ext >&5 6165 6166 ac_compiler_gnu=no 6167fi 6168 6169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6170ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6171 6172fi 6173{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6174$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6175ac_ext=$ac_save_ext 6176ac_test_FFLAGS=${FFLAGS+set} 6177ac_save_FFLAGS=$FFLAGS 6178FFLAGS= 6179{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6180$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6181if test "${ac_cv_prog_f77_g+set}" = set; then 6182 $as_echo_n "(cached) " >&6 6183else 6184 FFLAGS=-g 6185cat >conftest.$ac_ext <<_ACEOF 6186 program main 6187 6188 end 6189_ACEOF 6190rm -f conftest.$ac_objext 6191if { (ac_try="$ac_compile" 6192case "(($ac_try" in 6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6194 *) ac_try_echo=$ac_try;; 6195esac 6196eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6197$as_echo "$ac_try_echo") >&5 6198 (eval "$ac_compile") 2>conftest.er1 6199 ac_status=$? 6200 grep -v '^ *+' conftest.er1 >conftest.err 6201 rm -f conftest.er1 6202 cat conftest.err >&5 6203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6204 (exit $ac_status); } && { 6205 test -z "$ac_f77_werror_flag" || 6206 test ! -s conftest.err 6207 } && test -s conftest.$ac_objext; then 6208 ac_cv_prog_f77_g=yes 6209else 6210 $as_echo "$as_me: failed program was:" >&5 6211sed 's/^/| /' conftest.$ac_ext >&5 6212 6213 ac_cv_prog_f77_g=no 6214fi 6215 6216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6217 6218fi 6219{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6220$as_echo "$ac_cv_prog_f77_g" >&6; } 6221if test "$ac_test_FFLAGS" = set; then 6222 FFLAGS=$ac_save_FFLAGS 6223elif test $ac_cv_prog_f77_g = yes; then 6224 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6225 FFLAGS="-g -O2" 6226 else 6227 FFLAGS="-g" 6228 fi 6229else 6230 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6231 FFLAGS="-O2" 6232 else 6233 FFLAGS= 6234 fi 6235fi 6236 6237if test $ac_compiler_gnu = yes; then 6238 G77=yes 6239else 6240 G77= 6241fi 6242ac_ext=c 6243ac_cpp='$CPP $CPPFLAGS' 6244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6246ac_compiler_gnu=$ac_cv_c_compiler_gnu 6247 6248 6249 6250# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6251# find the maximum length of command line arguments 6252{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6253$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6254if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6255 $as_echo_n "(cached) " >&6 6256else 6257 i=0 6258 teststring="ABCD" 6259 6260 case $build_os in 6261 msdosdjgpp*) 6262 # On DJGPP, this test can blow up pretty badly due to problems in libc 6263 # (any single argument exceeding 2000 bytes causes a buffer overrun 6264 # during glob expansion). Even if it were fixed, the result of this 6265 # check would be larger than it should be. 6266 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6267 ;; 6268 6269 gnu*) 6270 # Under GNU Hurd, this test is not required because there is 6271 # no limit to the length of command line arguments. 6272 # Libtool will interpret -1 as no limit whatsoever 6273 lt_cv_sys_max_cmd_len=-1; 6274 ;; 6275 6276 cygwin* | mingw*) 6277 # On Win9x/ME, this test blows up -- it succeeds, but takes 6278 # about 5 minutes as the teststring grows exponentially. 6279 # Worse, since 9x/ME are not pre-emptively multitasking, 6280 # you end up with a "frozen" computer, even though with patience 6281 # the test eventually succeeds (with a max line length of 256k). 6282 # Instead, let's just punt: use the minimum linelength reported by 6283 # all of the supported platforms: 8192 (on NT/2K/XP). 6284 lt_cv_sys_max_cmd_len=8192; 6285 ;; 6286 6287 amigaos*) 6288 # On AmigaOS with pdksh, this test takes hours, literally. 6289 # So we just punt and use a minimum line length of 8192. 6290 lt_cv_sys_max_cmd_len=8192; 6291 ;; 6292 6293 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6294 # This has been around since 386BSD, at least. Likely further. 6295 if test -x /sbin/sysctl; then 6296 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6297 elif test -x /usr/sbin/sysctl; then 6298 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6299 else 6300 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6301 fi 6302 # And add a safety zone 6303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6305 ;; 6306 6307 interix*) 6308 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6309 lt_cv_sys_max_cmd_len=196608 6310 ;; 6311 6312 osf*) 6313 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6314 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6315 # nice to cause kernel panics so lets avoid the loop below. 6316 # First set a reasonable default. 6317 lt_cv_sys_max_cmd_len=16384 6318 # 6319 if test -x /sbin/sysconfig; then 6320 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6321 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6322 esac 6323 fi 6324 ;; 6325 sco3.2v5*) 6326 lt_cv_sys_max_cmd_len=102400 6327 ;; 6328 sysv5* | sco5v6* | sysv4.2uw2*) 6329 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6330 if test -n "$kargmax"; then 6331 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6332 else 6333 lt_cv_sys_max_cmd_len=32768 6334 fi 6335 ;; 6336 *) 6337 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6338 if test -n "$lt_cv_sys_max_cmd_len"; then 6339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6341 else 6342 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6343 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6344 = "XX$teststring") >/dev/null 2>&1 && 6345 new_result=`expr "X$teststring" : ".*" 2>&1` && 6346 lt_cv_sys_max_cmd_len=$new_result && 6347 test $i != 17 # 1/2 MB should be enough 6348 do 6349 i=`expr $i + 1` 6350 teststring=$teststring$teststring 6351 done 6352 teststring= 6353 # Add a significant safety factor because C++ compilers can tack on massive 6354 # amounts of additional arguments before passing them to the linker. 6355 # It appears as though 1/2 is a usable value. 6356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6357 fi 6358 ;; 6359 esac 6360 6361fi 6362 6363if test -n $lt_cv_sys_max_cmd_len ; then 6364 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6365$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6366else 6367 { $as_echo "$as_me:$LINENO: result: none" >&5 6368$as_echo "none" >&6; } 6369fi 6370 6371 6372 6373 6374 6375# Check for command to grab the raw symbol name followed by C symbol from nm. 6376{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6377$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6378if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6379 $as_echo_n "(cached) " >&6 6380else 6381 6382# These are sane defaults that work on at least a few old systems. 6383# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6384 6385# Character class describing NM global symbol codes. 6386symcode='[BCDEGRST]' 6387 6388# Regexp to match symbols that can be accessed directly from C. 6389sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6390 6391# Transform an extracted symbol line into a proper C declaration 6392lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6393 6394# Transform an extracted symbol line into symbol name and symbol address 6395lt_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'" 6396 6397# Define system-specific variables. 6398case $host_os in 6399aix*) 6400 symcode='[BCDT]' 6401 ;; 6402cygwin* | mingw* | pw32*) 6403 symcode='[ABCDGISTW]' 6404 ;; 6405hpux*) # Its linker distinguishes data from code symbols 6406 if test "$host_cpu" = ia64; then 6407 symcode='[ABCDEGRST]' 6408 fi 6409 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6410 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'" 6411 ;; 6412linux* | k*bsd*-gnu) 6413 if test "$host_cpu" = ia64; then 6414 symcode='[ABCDGIRSTW]' 6415 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6416 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'" 6417 fi 6418 ;; 6419irix* | nonstopux*) 6420 symcode='[BCDEGRST]' 6421 ;; 6422osf*) 6423 symcode='[BCDEGQRST]' 6424 ;; 6425solaris*) 6426 symcode='[BDRT]' 6427 ;; 6428sco3.2v5*) 6429 symcode='[DT]' 6430 ;; 6431sysv4.2uw2*) 6432 symcode='[DT]' 6433 ;; 6434sysv5* | sco5v6* | unixware* | OpenUNIX*) 6435 symcode='[ABDT]' 6436 ;; 6437sysv4) 6438 symcode='[DFNSTU]' 6439 ;; 6440esac 6441 6442# Handle CRLF in mingw tool chain 6443opt_cr= 6444case $build_os in 6445mingw*) 6446 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6447 ;; 6448esac 6449 6450# If we're using GNU nm, then use its standard symbol codes. 6451case `$NM -V 2>&1` in 6452*GNU* | *'with BFD'*) 6453 symcode='[ABCDGIRSTW]' ;; 6454esac 6455 6456# Try without a prefix undercore, then with it. 6457for ac_symprfx in "" "_"; do 6458 6459 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6460 symxfrm="\\1 $ac_symprfx\\2 \\2" 6461 6462 # Write the raw and C identifiers. 6463 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6464 6465 # Check to see that the pipe works correctly. 6466 pipe_works=no 6467 6468 rm -f conftest* 6469 cat > conftest.$ac_ext <<EOF 6470#ifdef __cplusplus 6471extern "C" { 6472#endif 6473char nm_test_var; 6474void nm_test_func(){} 6475#ifdef __cplusplus 6476} 6477#endif 6478int main(){nm_test_var='a';nm_test_func();return(0);} 6479EOF 6480 6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6482 (eval $ac_compile) 2>&5 6483 ac_status=$? 6484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6485 (exit $ac_status); }; then 6486 # Now try to grab the symbols. 6487 nlist=conftest.nm 6488 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6489 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6490 ac_status=$? 6491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6492 (exit $ac_status); } && test -s "$nlist"; then 6493 # Try sorting and uniquifying the output. 6494 if sort "$nlist" | uniq > "$nlist"T; then 6495 mv -f "$nlist"T "$nlist" 6496 else 6497 rm -f "$nlist"T 6498 fi 6499 6500 # Make sure that we snagged all the symbols we need. 6501 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6502 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6503 cat <<EOF > conftest.$ac_ext 6504#ifdef __cplusplus 6505extern "C" { 6506#endif 6507 6508EOF 6509 # Now generate the symbol file. 6510 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6511 6512 cat <<EOF >> conftest.$ac_ext 6513#if defined (__STDC__) && __STDC__ 6514# define lt_ptr_t void * 6515#else 6516# define lt_ptr_t char * 6517# define const 6518#endif 6519 6520/* The mapping between symbol names and symbols. */ 6521const struct { 6522 const char *name; 6523 lt_ptr_t address; 6524} 6525lt_preloaded_symbols[] = 6526{ 6527EOF 6528 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6529 cat <<\EOF >> conftest.$ac_ext 6530 {0, (lt_ptr_t) 0} 6531}; 6532 6533#ifdef __cplusplus 6534} 6535#endif 6536EOF 6537 # Now try linking the two files. 6538 mv conftest.$ac_objext conftstm.$ac_objext 6539 lt_save_LIBS="$LIBS" 6540 lt_save_CFLAGS="$CFLAGS" 6541 LIBS="conftstm.$ac_objext" 6542 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6544 (eval $ac_link) 2>&5 6545 ac_status=$? 6546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6547 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6548 pipe_works=yes 6549 fi 6550 LIBS="$lt_save_LIBS" 6551 CFLAGS="$lt_save_CFLAGS" 6552 else 6553 echo "cannot find nm_test_func in $nlist" >&5 6554 fi 6555 else 6556 echo "cannot find nm_test_var in $nlist" >&5 6557 fi 6558 else 6559 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6560 fi 6561 else 6562 echo "$progname: failed program was:" >&5 6563 cat conftest.$ac_ext >&5 6564 fi 6565 rm -rf conftest* conftst* 6566 6567 # Do not use the global_symbol_pipe unless it works. 6568 if test "$pipe_works" = yes; then 6569 break 6570 else 6571 lt_cv_sys_global_symbol_pipe= 6572 fi 6573done 6574 6575fi 6576 6577if test -z "$lt_cv_sys_global_symbol_pipe"; then 6578 lt_cv_sys_global_symbol_to_cdecl= 6579fi 6580if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6581 { $as_echo "$as_me:$LINENO: result: failed" >&5 6582$as_echo "failed" >&6; } 6583else 6584 { $as_echo "$as_me:$LINENO: result: ok" >&5 6585$as_echo "ok" >&6; } 6586fi 6587 6588{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 6589$as_echo_n "checking for objdir... " >&6; } 6590if test "${lt_cv_objdir+set}" = set; then 6591 $as_echo_n "(cached) " >&6 6592else 6593 rm -f .libs 2>/dev/null 6594mkdir .libs 2>/dev/null 6595if test -d .libs; then 6596 lt_cv_objdir=.libs 6597else 6598 # MS-DOS does not allow filenames that begin with a dot. 6599 lt_cv_objdir=_libs 6600fi 6601rmdir .libs 2>/dev/null 6602fi 6603{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6604$as_echo "$lt_cv_objdir" >&6; } 6605objdir=$lt_cv_objdir 6606 6607 6608 6609 6610 6611case $host_os in 6612aix3*) 6613 # AIX sometimes has problems with the GCC collect2 program. For some 6614 # reason, if we set the COLLECT_NAMES environment variable, the problems 6615 # vanish in a puff of smoke. 6616 if test "X${COLLECT_NAMES+set}" != Xset; then 6617 COLLECT_NAMES= 6618 export COLLECT_NAMES 6619 fi 6620 ;; 6621esac 6622 6623# Sed substitution that helps us do robust quoting. It backslashifies 6624# metacharacters that are still active within double-quoted strings. 6625Xsed='sed -e 1s/^X//' 6626sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6627 6628# Same as above, but do not quote variable references. 6629double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6630 6631# Sed substitution to delay expansion of an escaped shell variable in a 6632# double_quote_subst'ed string. 6633delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6634 6635# Sed substitution to avoid accidental globbing in evaled expressions 6636no_glob_subst='s/\*/\\\*/g' 6637 6638# Constants: 6639rm="rm -f" 6640 6641# Global variables: 6642default_ofile=libtool 6643can_build_shared=yes 6644 6645# All known linkers require a `.a' archive for static linking (except MSVC, 6646# which needs '.lib'). 6647libext=a 6648ltmain="$ac_aux_dir/ltmain.sh" 6649ofile="$default_ofile" 6650with_gnu_ld="$lt_cv_prog_gnu_ld" 6651 6652if test -n "$ac_tool_prefix"; then 6653 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6654set dummy ${ac_tool_prefix}ar; ac_word=$2 6655{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6656$as_echo_n "checking for $ac_word... " >&6; } 6657if test "${ac_cv_prog_AR+set}" = set; then 6658 $as_echo_n "(cached) " >&6 6659else 6660 if test -n "$AR"; then 6661 ac_cv_prog_AR="$AR" # Let the user override the test. 6662else 6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6664for as_dir in $PATH 6665do 6666 IFS=$as_save_IFS 6667 test -z "$as_dir" && as_dir=. 6668 for ac_exec_ext in '' $ac_executable_extensions; do 6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6670 ac_cv_prog_AR="${ac_tool_prefix}ar" 6671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6672 break 2 6673 fi 6674done 6675done 6676IFS=$as_save_IFS 6677 6678fi 6679fi 6680AR=$ac_cv_prog_AR 6681if test -n "$AR"; then 6682 { $as_echo "$as_me:$LINENO: result: $AR" >&5 6683$as_echo "$AR" >&6; } 6684else 6685 { $as_echo "$as_me:$LINENO: result: no" >&5 6686$as_echo "no" >&6; } 6687fi 6688 6689 6690fi 6691if test -z "$ac_cv_prog_AR"; then 6692 ac_ct_AR=$AR 6693 # Extract the first word of "ar", so it can be a program name with args. 6694set dummy ar; ac_word=$2 6695{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6696$as_echo_n "checking for $ac_word... " >&6; } 6697if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6698 $as_echo_n "(cached) " >&6 6699else 6700 if test -n "$ac_ct_AR"; then 6701 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6702else 6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6704for as_dir in $PATH 6705do 6706 IFS=$as_save_IFS 6707 test -z "$as_dir" && as_dir=. 6708 for ac_exec_ext in '' $ac_executable_extensions; do 6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6710 ac_cv_prog_ac_ct_AR="ar" 6711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6712 break 2 6713 fi 6714done 6715done 6716IFS=$as_save_IFS 6717 6718fi 6719fi 6720ac_ct_AR=$ac_cv_prog_ac_ct_AR 6721if test -n "$ac_ct_AR"; then 6722 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6723$as_echo "$ac_ct_AR" >&6; } 6724else 6725 { $as_echo "$as_me:$LINENO: result: no" >&5 6726$as_echo "no" >&6; } 6727fi 6728 6729 if test "x$ac_ct_AR" = x; then 6730 AR="false" 6731 else 6732 case $cross_compiling:$ac_tool_warned in 6733yes:) 6734{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6735whose name does not start with the host triplet. If you think this 6736configuration is useful to you, please write to autoconf@gnu.org." >&5 6737$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6738whose name does not start with the host triplet. If you think this 6739configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6740ac_tool_warned=yes ;; 6741esac 6742 AR=$ac_ct_AR 6743 fi 6744else 6745 AR="$ac_cv_prog_AR" 6746fi 6747 6748if test -n "$ac_tool_prefix"; then 6749 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6750set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6751{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6752$as_echo_n "checking for $ac_word... " >&6; } 6753if test "${ac_cv_prog_RANLIB+set}" = set; then 6754 $as_echo_n "(cached) " >&6 6755else 6756 if test -n "$RANLIB"; then 6757 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6758else 6759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6760for as_dir in $PATH 6761do 6762 IFS=$as_save_IFS 6763 test -z "$as_dir" && as_dir=. 6764 for ac_exec_ext in '' $ac_executable_extensions; do 6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6766 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6768 break 2 6769 fi 6770done 6771done 6772IFS=$as_save_IFS 6773 6774fi 6775fi 6776RANLIB=$ac_cv_prog_RANLIB 6777if test -n "$RANLIB"; then 6778 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 6779$as_echo "$RANLIB" >&6; } 6780else 6781 { $as_echo "$as_me:$LINENO: result: no" >&5 6782$as_echo "no" >&6; } 6783fi 6784 6785 6786fi 6787if test -z "$ac_cv_prog_RANLIB"; then 6788 ac_ct_RANLIB=$RANLIB 6789 # Extract the first word of "ranlib", so it can be a program name with args. 6790set dummy ranlib; ac_word=$2 6791{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6792$as_echo_n "checking for $ac_word... " >&6; } 6793if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6794 $as_echo_n "(cached) " >&6 6795else 6796 if test -n "$ac_ct_RANLIB"; then 6797 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6798else 6799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6800for as_dir in $PATH 6801do 6802 IFS=$as_save_IFS 6803 test -z "$as_dir" && as_dir=. 6804 for ac_exec_ext in '' $ac_executable_extensions; do 6805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6806 ac_cv_prog_ac_ct_RANLIB="ranlib" 6807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6808 break 2 6809 fi 6810done 6811done 6812IFS=$as_save_IFS 6813 6814fi 6815fi 6816ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6817if test -n "$ac_ct_RANLIB"; then 6818 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6819$as_echo "$ac_ct_RANLIB" >&6; } 6820else 6821 { $as_echo "$as_me:$LINENO: result: no" >&5 6822$as_echo "no" >&6; } 6823fi 6824 6825 if test "x$ac_ct_RANLIB" = x; then 6826 RANLIB=":" 6827 else 6828 case $cross_compiling:$ac_tool_warned in 6829yes:) 6830{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6831whose name does not start with the host triplet. If you think this 6832configuration is useful to you, please write to autoconf@gnu.org." >&5 6833$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6834whose name does not start with the host triplet. If you think this 6835configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6836ac_tool_warned=yes ;; 6837esac 6838 RANLIB=$ac_ct_RANLIB 6839 fi 6840else 6841 RANLIB="$ac_cv_prog_RANLIB" 6842fi 6843 6844if test -n "$ac_tool_prefix"; then 6845 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6846set dummy ${ac_tool_prefix}strip; ac_word=$2 6847{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6848$as_echo_n "checking for $ac_word... " >&6; } 6849if test "${ac_cv_prog_STRIP+set}" = set; then 6850 $as_echo_n "(cached) " >&6 6851else 6852 if test -n "$STRIP"; then 6853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6854else 6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6856for as_dir in $PATH 6857do 6858 IFS=$as_save_IFS 6859 test -z "$as_dir" && as_dir=. 6860 for ac_exec_ext in '' $ac_executable_extensions; do 6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6862 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6864 break 2 6865 fi 6866done 6867done 6868IFS=$as_save_IFS 6869 6870fi 6871fi 6872STRIP=$ac_cv_prog_STRIP 6873if test -n "$STRIP"; then 6874 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 6875$as_echo "$STRIP" >&6; } 6876else 6877 { $as_echo "$as_me:$LINENO: result: no" >&5 6878$as_echo "no" >&6; } 6879fi 6880 6881 6882fi 6883if test -z "$ac_cv_prog_STRIP"; then 6884 ac_ct_STRIP=$STRIP 6885 # Extract the first word of "strip", so it can be a program name with args. 6886set dummy strip; ac_word=$2 6887{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6888$as_echo_n "checking for $ac_word... " >&6; } 6889if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6890 $as_echo_n "(cached) " >&6 6891else 6892 if test -n "$ac_ct_STRIP"; then 6893 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6894else 6895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6896for as_dir in $PATH 6897do 6898 IFS=$as_save_IFS 6899 test -z "$as_dir" && as_dir=. 6900 for ac_exec_ext in '' $ac_executable_extensions; do 6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6902 ac_cv_prog_ac_ct_STRIP="strip" 6903 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6904 break 2 6905 fi 6906done 6907done 6908IFS=$as_save_IFS 6909 6910fi 6911fi 6912ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6913if test -n "$ac_ct_STRIP"; then 6914 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6915$as_echo "$ac_ct_STRIP" >&6; } 6916else 6917 { $as_echo "$as_me:$LINENO: result: no" >&5 6918$as_echo "no" >&6; } 6919fi 6920 6921 if test "x$ac_ct_STRIP" = x; then 6922 STRIP=":" 6923 else 6924 case $cross_compiling:$ac_tool_warned in 6925yes:) 6926{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6927whose name does not start with the host triplet. If you think this 6928configuration is useful to you, please write to autoconf@gnu.org." >&5 6929$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6930whose name does not start with the host triplet. If you think this 6931configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6932ac_tool_warned=yes ;; 6933esac 6934 STRIP=$ac_ct_STRIP 6935 fi 6936else 6937 STRIP="$ac_cv_prog_STRIP" 6938fi 6939 6940 6941old_CC="$CC" 6942old_CFLAGS="$CFLAGS" 6943 6944# Set sane defaults for various variables 6945test -z "$AR" && AR=ar 6946test -z "$AR_FLAGS" && AR_FLAGS=cru 6947test -z "$AS" && AS=as 6948test -z "$CC" && CC=cc 6949test -z "$LTCC" && LTCC=$CC 6950test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6951test -z "$DLLTOOL" && DLLTOOL=dlltool 6952test -z "$LD" && LD=ld 6953test -z "$LN_S" && LN_S="ln -s" 6954test -z "$MAGIC_CMD" && MAGIC_CMD=file 6955test -z "$NM" && NM=nm 6956test -z "$SED" && SED=sed 6957test -z "$OBJDUMP" && OBJDUMP=objdump 6958test -z "$RANLIB" && RANLIB=: 6959test -z "$STRIP" && STRIP=: 6960test -z "$ac_objext" && ac_objext=o 6961 6962# Determine commands to create old-style static archives. 6963old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6964old_postinstall_cmds='chmod 644 $oldlib' 6965old_postuninstall_cmds= 6966 6967if test -n "$RANLIB"; then 6968 case $host_os in 6969 openbsd*) 6970 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6971 ;; 6972 *) 6973 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6974 ;; 6975 esac 6976 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6977fi 6978 6979for cc_temp in $compiler""; do 6980 case $cc_temp in 6981 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6982 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6983 \-*) ;; 6984 *) break;; 6985 esac 6986done 6987cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6988 6989 6990# Only perform the check for file, if the check method requires it 6991case $deplibs_check_method in 6992file_magic*) 6993 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6994 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6995$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 6996if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6997 $as_echo_n "(cached) " >&6 6998else 6999 case $MAGIC_CMD in 7000[\\/*] | ?:[\\/]*) 7001 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7002 ;; 7003*) 7004 lt_save_MAGIC_CMD="$MAGIC_CMD" 7005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7006 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7007 for ac_dir in $ac_dummy; do 7008 IFS="$lt_save_ifs" 7009 test -z "$ac_dir" && ac_dir=. 7010 if test -f $ac_dir/${ac_tool_prefix}file; then 7011 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7012 if test -n "$file_magic_test_file"; then 7013 case $deplibs_check_method in 7014 "file_magic "*) 7015 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7018 $EGREP "$file_magic_regex" > /dev/null; then 7019 : 7020 else 7021 cat <<EOF 1>&2 7022 7023*** Warning: the command libtool uses to detect shared libraries, 7024*** $file_magic_cmd, produces output that libtool cannot recognize. 7025*** The result is that libtool may fail to recognize shared libraries 7026*** as such. This will affect the creation of libtool libraries that 7027*** depend on shared libraries, but programs linked with such libtool 7028*** libraries will work regardless of this problem. Nevertheless, you 7029*** may want to report the problem to your system manager and/or to 7030*** bug-libtool@gnu.org 7031 7032EOF 7033 fi ;; 7034 esac 7035 fi 7036 break 7037 fi 7038 done 7039 IFS="$lt_save_ifs" 7040 MAGIC_CMD="$lt_save_MAGIC_CMD" 7041 ;; 7042esac 7043fi 7044 7045MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7046if test -n "$MAGIC_CMD"; then 7047 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7048$as_echo "$MAGIC_CMD" >&6; } 7049else 7050 { $as_echo "$as_me:$LINENO: result: no" >&5 7051$as_echo "no" >&6; } 7052fi 7053 7054if test -z "$lt_cv_path_MAGIC_CMD"; then 7055 if test -n "$ac_tool_prefix"; then 7056 { $as_echo "$as_me:$LINENO: checking for file" >&5 7057$as_echo_n "checking for file... " >&6; } 7058if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7059 $as_echo_n "(cached) " >&6 7060else 7061 case $MAGIC_CMD in 7062[\\/*] | ?:[\\/]*) 7063 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7064 ;; 7065*) 7066 lt_save_MAGIC_CMD="$MAGIC_CMD" 7067 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7068 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7069 for ac_dir in $ac_dummy; do 7070 IFS="$lt_save_ifs" 7071 test -z "$ac_dir" && ac_dir=. 7072 if test -f $ac_dir/file; then 7073 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7074 if test -n "$file_magic_test_file"; then 7075 case $deplibs_check_method in 7076 "file_magic "*) 7077 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7078 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7079 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7080 $EGREP "$file_magic_regex" > /dev/null; then 7081 : 7082 else 7083 cat <<EOF 1>&2 7084 7085*** Warning: the command libtool uses to detect shared libraries, 7086*** $file_magic_cmd, produces output that libtool cannot recognize. 7087*** The result is that libtool may fail to recognize shared libraries 7088*** as such. This will affect the creation of libtool libraries that 7089*** depend on shared libraries, but programs linked with such libtool 7090*** libraries will work regardless of this problem. Nevertheless, you 7091*** may want to report the problem to your system manager and/or to 7092*** bug-libtool@gnu.org 7093 7094EOF 7095 fi ;; 7096 esac 7097 fi 7098 break 7099 fi 7100 done 7101 IFS="$lt_save_ifs" 7102 MAGIC_CMD="$lt_save_MAGIC_CMD" 7103 ;; 7104esac 7105fi 7106 7107MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7108if test -n "$MAGIC_CMD"; then 7109 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7110$as_echo "$MAGIC_CMD" >&6; } 7111else 7112 { $as_echo "$as_me:$LINENO: result: no" >&5 7113$as_echo "no" >&6; } 7114fi 7115 7116 else 7117 MAGIC_CMD=: 7118 fi 7119fi 7120 7121 fi 7122 ;; 7123esac 7124 7125 7126 case $host_os in 7127 rhapsody* | darwin*) 7128 if test -n "$ac_tool_prefix"; then 7129 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7130set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7131{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7132$as_echo_n "checking for $ac_word... " >&6; } 7133if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7134 $as_echo_n "(cached) " >&6 7135else 7136 if test -n "$DSYMUTIL"; then 7137 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7138else 7139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7140for as_dir in $PATH 7141do 7142 IFS=$as_save_IFS 7143 test -z "$as_dir" && as_dir=. 7144 for ac_exec_ext in '' $ac_executable_extensions; do 7145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7146 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7147 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7148 break 2 7149 fi 7150done 7151done 7152IFS=$as_save_IFS 7153 7154fi 7155fi 7156DSYMUTIL=$ac_cv_prog_DSYMUTIL 7157if test -n "$DSYMUTIL"; then 7158 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7159$as_echo "$DSYMUTIL" >&6; } 7160else 7161 { $as_echo "$as_me:$LINENO: result: no" >&5 7162$as_echo "no" >&6; } 7163fi 7164 7165 7166fi 7167if test -z "$ac_cv_prog_DSYMUTIL"; then 7168 ac_ct_DSYMUTIL=$DSYMUTIL 7169 # Extract the first word of "dsymutil", so it can be a program name with args. 7170set dummy dsymutil; ac_word=$2 7171{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7172$as_echo_n "checking for $ac_word... " >&6; } 7173if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7174 $as_echo_n "(cached) " >&6 7175else 7176 if test -n "$ac_ct_DSYMUTIL"; then 7177 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7178else 7179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7180for as_dir in $PATH 7181do 7182 IFS=$as_save_IFS 7183 test -z "$as_dir" && as_dir=. 7184 for ac_exec_ext in '' $ac_executable_extensions; do 7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7186 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7188 break 2 7189 fi 7190done 7191done 7192IFS=$as_save_IFS 7193 7194fi 7195fi 7196ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7197if test -n "$ac_ct_DSYMUTIL"; then 7198 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7199$as_echo "$ac_ct_DSYMUTIL" >&6; } 7200else 7201 { $as_echo "$as_me:$LINENO: result: no" >&5 7202$as_echo "no" >&6; } 7203fi 7204 7205 if test "x$ac_ct_DSYMUTIL" = x; then 7206 DSYMUTIL=":" 7207 else 7208 case $cross_compiling:$ac_tool_warned in 7209yes:) 7210{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7211whose name does not start with the host triplet. If you think this 7212configuration is useful to you, please write to autoconf@gnu.org." >&5 7213$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7214whose name does not start with the host triplet. If you think this 7215configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7216ac_tool_warned=yes ;; 7217esac 7218 DSYMUTIL=$ac_ct_DSYMUTIL 7219 fi 7220else 7221 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7222fi 7223 7224 if test -n "$ac_tool_prefix"; then 7225 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7226set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7227{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7228$as_echo_n "checking for $ac_word... " >&6; } 7229if test "${ac_cv_prog_NMEDIT+set}" = set; then 7230 $as_echo_n "(cached) " >&6 7231else 7232 if test -n "$NMEDIT"; then 7233 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7234else 7235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7236for as_dir in $PATH 7237do 7238 IFS=$as_save_IFS 7239 test -z "$as_dir" && as_dir=. 7240 for ac_exec_ext in '' $ac_executable_extensions; do 7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7242 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7244 break 2 7245 fi 7246done 7247done 7248IFS=$as_save_IFS 7249 7250fi 7251fi 7252NMEDIT=$ac_cv_prog_NMEDIT 7253if test -n "$NMEDIT"; then 7254 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 7255$as_echo "$NMEDIT" >&6; } 7256else 7257 { $as_echo "$as_me:$LINENO: result: no" >&5 7258$as_echo "no" >&6; } 7259fi 7260 7261 7262fi 7263if test -z "$ac_cv_prog_NMEDIT"; then 7264 ac_ct_NMEDIT=$NMEDIT 7265 # Extract the first word of "nmedit", so it can be a program name with args. 7266set dummy nmedit; ac_word=$2 7267{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7268$as_echo_n "checking for $ac_word... " >&6; } 7269if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7270 $as_echo_n "(cached) " >&6 7271else 7272 if test -n "$ac_ct_NMEDIT"; then 7273 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7274else 7275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7276for as_dir in $PATH 7277do 7278 IFS=$as_save_IFS 7279 test -z "$as_dir" && as_dir=. 7280 for ac_exec_ext in '' $ac_executable_extensions; do 7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7282 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7284 break 2 7285 fi 7286done 7287done 7288IFS=$as_save_IFS 7289 7290fi 7291fi 7292ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7293if test -n "$ac_ct_NMEDIT"; then 7294 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7295$as_echo "$ac_ct_NMEDIT" >&6; } 7296else 7297 { $as_echo "$as_me:$LINENO: result: no" >&5 7298$as_echo "no" >&6; } 7299fi 7300 7301 if test "x$ac_ct_NMEDIT" = x; then 7302 NMEDIT=":" 7303 else 7304 case $cross_compiling:$ac_tool_warned in 7305yes:) 7306{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7307whose name does not start with the host triplet. If you think this 7308configuration is useful to you, please write to autoconf@gnu.org." >&5 7309$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7310whose name does not start with the host triplet. If you think this 7311configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7312ac_tool_warned=yes ;; 7313esac 7314 NMEDIT=$ac_ct_NMEDIT 7315 fi 7316else 7317 NMEDIT="$ac_cv_prog_NMEDIT" 7318fi 7319 7320 7321 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7322$as_echo_n "checking for -single_module linker flag... " >&6; } 7323if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7324 $as_echo_n "(cached) " >&6 7325else 7326 lt_cv_apple_cc_single_mod=no 7327 if test -z "${LT_MULTI_MODULE}"; then 7328 # By default we will add the -single_module flag. You can override 7329 # by either setting the environment variable LT_MULTI_MODULE 7330 # non-empty at configure time, or by adding -multi_module to the 7331 # link flags. 7332 echo "int foo(void){return 1;}" > conftest.c 7333 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7334 -dynamiclib ${wl}-single_module conftest.c 7335 if test -f libconftest.dylib; then 7336 lt_cv_apple_cc_single_mod=yes 7337 rm -rf libconftest.dylib* 7338 fi 7339 rm conftest.c 7340 fi 7341fi 7342{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7343$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7344 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7345$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7346if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7347 $as_echo_n "(cached) " >&6 7348else 7349 lt_cv_ld_exported_symbols_list=no 7350 save_LDFLAGS=$LDFLAGS 7351 echo "_main" > conftest.sym 7352 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7353 cat >conftest.$ac_ext <<_ACEOF 7354/* confdefs.h. */ 7355_ACEOF 7356cat confdefs.h >>conftest.$ac_ext 7357cat >>conftest.$ac_ext <<_ACEOF 7358/* end confdefs.h. */ 7359 7360int 7361main () 7362{ 7363 7364 ; 7365 return 0; 7366} 7367_ACEOF 7368rm -f conftest.$ac_objext conftest$ac_exeext 7369if { (ac_try="$ac_link" 7370case "(($ac_try" in 7371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7372 *) ac_try_echo=$ac_try;; 7373esac 7374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7375$as_echo "$ac_try_echo") >&5 7376 (eval "$ac_link") 2>conftest.er1 7377 ac_status=$? 7378 grep -v '^ *+' conftest.er1 >conftest.err 7379 rm -f conftest.er1 7380 cat conftest.err >&5 7381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7382 (exit $ac_status); } && { 7383 test -z "$ac_c_werror_flag" || 7384 test ! -s conftest.err 7385 } && test -s conftest$ac_exeext && { 7386 test "$cross_compiling" = yes || 7387 $as_test_x conftest$ac_exeext 7388 }; then 7389 lt_cv_ld_exported_symbols_list=yes 7390else 7391 $as_echo "$as_me: failed program was:" >&5 7392sed 's/^/| /' conftest.$ac_ext >&5 7393 7394 lt_cv_ld_exported_symbols_list=no 7395fi 7396 7397rm -rf conftest.dSYM 7398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7399 conftest$ac_exeext conftest.$ac_ext 7400 LDFLAGS="$save_LDFLAGS" 7401 7402fi 7403{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7404$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7405 case $host_os in 7406 rhapsody* | darwin1.[0123]) 7407 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7408 darwin1.*) 7409 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7410 darwin*) 7411 # if running on 10.5 or later, the deployment target defaults 7412 # to the OS version, if on x86, and 10.4, the deployment 7413 # target defaults to 10.4. Don't you love it? 7414 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7415 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7416 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7417 10.[012]*) 7418 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7419 10.*) 7420 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7421 esac 7422 ;; 7423 esac 7424 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7425 _lt_dar_single_mod='$single_module' 7426 fi 7427 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7428 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7429 else 7430 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7431 fi 7432 if test "$DSYMUTIL" != ":"; then 7433 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7434 else 7435 _lt_dsymutil= 7436 fi 7437 ;; 7438 esac 7439 7440 7441enable_dlopen=no 7442enable_win32_dll=no 7443 7444# Check whether --enable-libtool-lock was given. 7445if test "${enable_libtool_lock+set}" = set; then 7446 enableval=$enable_libtool_lock; 7447fi 7448 7449test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7450 7451 7452# Check whether --with-pic was given. 7453if test "${with_pic+set}" = set; then 7454 withval=$with_pic; pic_mode="$withval" 7455else 7456 pic_mode=default 7457fi 7458 7459test -z "$pic_mode" && pic_mode=default 7460 7461# Use C for the default configuration in the libtool script 7462tagname= 7463lt_save_CC="$CC" 7464ac_ext=c 7465ac_cpp='$CPP $CPPFLAGS' 7466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7468ac_compiler_gnu=$ac_cv_c_compiler_gnu 7469 7470 7471# Source file extension for C test sources. 7472ac_ext=c 7473 7474# Object file extension for compiled C test sources. 7475objext=o 7476objext=$objext 7477 7478# Code to be used in simple compile tests 7479lt_simple_compile_test_code="int some_variable = 0;" 7480 7481# Code to be used in simple link tests 7482lt_simple_link_test_code='int main(){return(0);}' 7483 7484 7485# If no C compiler was specified, use CC. 7486LTCC=${LTCC-"$CC"} 7487 7488# If no C compiler flags were specified, use CFLAGS. 7489LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7490 7491# Allow CC to be a program name with arguments. 7492compiler=$CC 7493 7494 7495# save warnings/boilerplate of simple test code 7496ac_outfile=conftest.$ac_objext 7497echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7498eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7499_lt_compiler_boilerplate=`cat conftest.err` 7500$rm conftest* 7501 7502ac_outfile=conftest.$ac_objext 7503echo "$lt_simple_link_test_code" >conftest.$ac_ext 7504eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7505_lt_linker_boilerplate=`cat conftest.err` 7506$rm -r conftest* 7507 7508 7509 7510lt_prog_compiler_no_builtin_flag= 7511 7512if test "$GCC" = yes; then 7513 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7514 7515 7516{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7517$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7518if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7519 $as_echo_n "(cached) " >&6 7520else 7521 lt_cv_prog_compiler_rtti_exceptions=no 7522 ac_outfile=conftest.$ac_objext 7523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7524 lt_compiler_flag="-fno-rtti -fno-exceptions" 7525 # Insert the option either (1) after the last *FLAGS variable, or 7526 # (2) before a word containing "conftest.", or (3) at the end. 7527 # Note that $ac_compile itself does not contain backslashes and begins 7528 # with a dollar sign (not a hyphen), so the echo should work correctly. 7529 # The option is referenced via a variable to avoid confusing sed. 7530 lt_compile=`echo "$ac_compile" | $SED \ 7531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7533 -e 's:$: $lt_compiler_flag:'` 7534 (eval echo "\"\$as_me:7534: $lt_compile\"" >&5) 7535 (eval "$lt_compile" 2>conftest.err) 7536 ac_status=$? 7537 cat conftest.err >&5 7538 echo "$as_me:7538: \$? = $ac_status" >&5 7539 if (exit $ac_status) && test -s "$ac_outfile"; then 7540 # The compiler can only warn and ignore the option if not recognized 7541 # So say no if there are warnings other than the usual output. 7542 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7544 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7545 lt_cv_prog_compiler_rtti_exceptions=yes 7546 fi 7547 fi 7548 $rm conftest* 7549 7550fi 7551{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7552$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7553 7554if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7555 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7556else 7557 : 7558fi 7559 7560fi 7561 7562lt_prog_compiler_wl= 7563lt_prog_compiler_pic= 7564lt_prog_compiler_static= 7565 7566{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7567$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7568 7569 if test "$GCC" = yes; then 7570 lt_prog_compiler_wl='-Wl,' 7571 lt_prog_compiler_static='-static' 7572 7573 case $host_os in 7574 aix*) 7575 # All AIX code is PIC. 7576 if test "$host_cpu" = ia64; then 7577 # AIX 5 now supports IA64 processor 7578 lt_prog_compiler_static='-Bstatic' 7579 fi 7580 ;; 7581 7582 amigaos*) 7583 # FIXME: we need at least 68020 code to build shared libraries, but 7584 # adding the `-m68020' flag to GCC prevents building anything better, 7585 # like `-m68040'. 7586 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7587 ;; 7588 7589 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7590 # PIC is the default for these OSes. 7591 ;; 7592 7593 mingw* | cygwin* | pw32* | os2*) 7594 # This hack is so that the source file can tell whether it is being 7595 # built for inclusion in a dll (and should export symbols for example). 7596 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7597 # (--disable-auto-import) libraries 7598 lt_prog_compiler_pic='-DDLL_EXPORT' 7599 ;; 7600 7601 darwin* | rhapsody*) 7602 # PIC is the default on this platform 7603 # Common symbols not allowed in MH_DYLIB files 7604 lt_prog_compiler_pic='-fno-common' 7605 ;; 7606 7607 interix[3-9]*) 7608 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7609 # Instead, we relocate shared libraries at runtime. 7610 ;; 7611 7612 msdosdjgpp*) 7613 # Just because we use GCC doesn't mean we suddenly get shared libraries 7614 # on systems that don't support them. 7615 lt_prog_compiler_can_build_shared=no 7616 enable_shared=no 7617 ;; 7618 7619 sysv4*MP*) 7620 if test -d /usr/nec; then 7621 lt_prog_compiler_pic=-Kconform_pic 7622 fi 7623 ;; 7624 7625 hpux*) 7626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7627 # not for PA HP-UX. 7628 case $host_cpu in 7629 hppa*64*|ia64*) 7630 # +Z the default 7631 ;; 7632 *) 7633 lt_prog_compiler_pic='-fPIC' 7634 ;; 7635 esac 7636 ;; 7637 7638 *) 7639 lt_prog_compiler_pic='-fPIC' 7640 ;; 7641 esac 7642 else 7643 # PORTME Check for flag to pass linker flags through the system compiler. 7644 case $host_os in 7645 aix*) 7646 lt_prog_compiler_wl='-Wl,' 7647 if test "$host_cpu" = ia64; then 7648 # AIX 5 now supports IA64 processor 7649 lt_prog_compiler_static='-Bstatic' 7650 else 7651 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7652 fi 7653 ;; 7654 darwin*) 7655 # PIC is the default on this platform 7656 # Common symbols not allowed in MH_DYLIB files 7657 case $cc_basename in 7658 xlc*) 7659 lt_prog_compiler_pic='-qnocommon' 7660 lt_prog_compiler_wl='-Wl,' 7661 ;; 7662 esac 7663 ;; 7664 7665 mingw* | cygwin* | pw32* | os2*) 7666 # This hack is so that the source file can tell whether it is being 7667 # built for inclusion in a dll (and should export symbols for example). 7668 lt_prog_compiler_pic='-DDLL_EXPORT' 7669 ;; 7670 7671 hpux9* | hpux10* | hpux11*) 7672 lt_prog_compiler_wl='-Wl,' 7673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7674 # not for PA HP-UX. 7675 case $host_cpu in 7676 hppa*64*|ia64*) 7677 # +Z the default 7678 ;; 7679 *) 7680 lt_prog_compiler_pic='+Z' 7681 ;; 7682 esac 7683 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7684 lt_prog_compiler_static='${wl}-a ${wl}archive' 7685 ;; 7686 7687 irix5* | irix6* | nonstopux*) 7688 lt_prog_compiler_wl='-Wl,' 7689 # PIC (with -KPIC) is the default. 7690 lt_prog_compiler_static='-non_shared' 7691 ;; 7692 7693 newsos6) 7694 lt_prog_compiler_pic='-KPIC' 7695 lt_prog_compiler_static='-Bstatic' 7696 ;; 7697 7698 linux* | k*bsd*-gnu) 7699 case $cc_basename in 7700 icc* | ecc*) 7701 lt_prog_compiler_wl='-Wl,' 7702 lt_prog_compiler_pic='-KPIC' 7703 lt_prog_compiler_static='-static' 7704 ;; 7705 pgcc* | pgf77* | pgf90* | pgf95*) 7706 # Portland Group compilers (*not* the Pentium gcc compiler, 7707 # which looks to be a dead project) 7708 lt_prog_compiler_wl='-Wl,' 7709 lt_prog_compiler_pic='-fpic' 7710 lt_prog_compiler_static='-Bstatic' 7711 ;; 7712 ccc*) 7713 lt_prog_compiler_wl='-Wl,' 7714 # All Alpha code is PIC. 7715 lt_prog_compiler_static='-non_shared' 7716 ;; 7717 *) 7718 case `$CC -V 2>&1 | sed 5q` in 7719 *Sun\ C*) 7720 # Sun C 5.9 7721 lt_prog_compiler_pic='-KPIC' 7722 lt_prog_compiler_static='-Bstatic' 7723 lt_prog_compiler_wl='-Wl,' 7724 ;; 7725 *Sun\ F*) 7726 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7727 lt_prog_compiler_pic='-KPIC' 7728 lt_prog_compiler_static='-Bstatic' 7729 lt_prog_compiler_wl='' 7730 ;; 7731 esac 7732 ;; 7733 esac 7734 ;; 7735 7736 osf3* | osf4* | osf5*) 7737 lt_prog_compiler_wl='-Wl,' 7738 # All OSF/1 code is PIC. 7739 lt_prog_compiler_static='-non_shared' 7740 ;; 7741 7742 rdos*) 7743 lt_prog_compiler_static='-non_shared' 7744 ;; 7745 7746 solaris*) 7747 lt_prog_compiler_pic='-KPIC' 7748 lt_prog_compiler_static='-Bstatic' 7749 case $cc_basename in 7750 f77* | f90* | f95*) 7751 lt_prog_compiler_wl='-Qoption ld ';; 7752 *) 7753 lt_prog_compiler_wl='-Wl,';; 7754 esac 7755 ;; 7756 7757 sunos4*) 7758 lt_prog_compiler_wl='-Qoption ld ' 7759 lt_prog_compiler_pic='-PIC' 7760 lt_prog_compiler_static='-Bstatic' 7761 ;; 7762 7763 sysv4 | sysv4.2uw2* | sysv4.3*) 7764 lt_prog_compiler_wl='-Wl,' 7765 lt_prog_compiler_pic='-KPIC' 7766 lt_prog_compiler_static='-Bstatic' 7767 ;; 7768 7769 sysv4*MP*) 7770 if test -d /usr/nec ;then 7771 lt_prog_compiler_pic='-Kconform_pic' 7772 lt_prog_compiler_static='-Bstatic' 7773 fi 7774 ;; 7775 7776 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7777 lt_prog_compiler_wl='-Wl,' 7778 lt_prog_compiler_pic='-KPIC' 7779 lt_prog_compiler_static='-Bstatic' 7780 ;; 7781 7782 unicos*) 7783 lt_prog_compiler_wl='-Wl,' 7784 lt_prog_compiler_can_build_shared=no 7785 ;; 7786 7787 uts4*) 7788 lt_prog_compiler_pic='-pic' 7789 lt_prog_compiler_static='-Bstatic' 7790 ;; 7791 7792 *) 7793 lt_prog_compiler_can_build_shared=no 7794 ;; 7795 esac 7796 fi 7797 7798{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7799$as_echo "$lt_prog_compiler_pic" >&6; } 7800 7801# 7802# Check to make sure the PIC flag actually works. 7803# 7804if test -n "$lt_prog_compiler_pic"; then 7805 7806{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7807$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7808if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7809 $as_echo_n "(cached) " >&6 7810else 7811 lt_cv_prog_compiler_pic_works=no 7812 ac_outfile=conftest.$ac_objext 7813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7814 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7815 # Insert the option either (1) after the last *FLAGS variable, or 7816 # (2) before a word containing "conftest.", or (3) at the end. 7817 # Note that $ac_compile itself does not contain backslashes and begins 7818 # with a dollar sign (not a hyphen), so the echo should work correctly. 7819 # The option is referenced via a variable to avoid confusing sed. 7820 lt_compile=`echo "$ac_compile" | $SED \ 7821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7823 -e 's:$: $lt_compiler_flag:'` 7824 (eval echo "\"\$as_me:7824: $lt_compile\"" >&5) 7825 (eval "$lt_compile" 2>conftest.err) 7826 ac_status=$? 7827 cat conftest.err >&5 7828 echo "$as_me:7828: \$? = $ac_status" >&5 7829 if (exit $ac_status) && test -s "$ac_outfile"; then 7830 # The compiler can only warn and ignore the option if not recognized 7831 # So say no if there are warnings other than the usual output. 7832 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7835 lt_cv_prog_compiler_pic_works=yes 7836 fi 7837 fi 7838 $rm conftest* 7839 7840fi 7841{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7842$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7843 7844if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7845 case $lt_prog_compiler_pic in 7846 "" | " "*) ;; 7847 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7848 esac 7849else 7850 lt_prog_compiler_pic= 7851 lt_prog_compiler_can_build_shared=no 7852fi 7853 7854fi 7855case $host_os in 7856 # For platforms which do not support PIC, -DPIC is meaningless: 7857 *djgpp*) 7858 lt_prog_compiler_pic= 7859 ;; 7860 *) 7861 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7862 ;; 7863esac 7864 7865# 7866# Check to make sure the static flag actually works. 7867# 7868wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7869{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7870$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7871if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7872 $as_echo_n "(cached) " >&6 7873else 7874 lt_cv_prog_compiler_static_works=no 7875 save_LDFLAGS="$LDFLAGS" 7876 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7877 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7879 # The linker can only warn and ignore the option if not recognized 7880 # So say no if there are warnings 7881 if test -s conftest.err; then 7882 # Append any errors to the config.log. 7883 cat conftest.err 1>&5 7884 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7886 if diff conftest.exp conftest.er2 >/dev/null; then 7887 lt_cv_prog_compiler_static_works=yes 7888 fi 7889 else 7890 lt_cv_prog_compiler_static_works=yes 7891 fi 7892 fi 7893 $rm -r conftest* 7894 LDFLAGS="$save_LDFLAGS" 7895 7896fi 7897{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7898$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7899 7900if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7901 : 7902else 7903 lt_prog_compiler_static= 7904fi 7905 7906 7907{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7908$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7909if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7910 $as_echo_n "(cached) " >&6 7911else 7912 lt_cv_prog_compiler_c_o=no 7913 $rm -r conftest 2>/dev/null 7914 mkdir conftest 7915 cd conftest 7916 mkdir out 7917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7918 7919 lt_compiler_flag="-o out/conftest2.$ac_objext" 7920 # Insert the option either (1) after the last *FLAGS variable, or 7921 # (2) before a word containing "conftest.", or (3) at the end. 7922 # Note that $ac_compile itself does not contain backslashes and begins 7923 # with a dollar sign (not a hyphen), so the echo should work correctly. 7924 lt_compile=`echo "$ac_compile" | $SED \ 7925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7927 -e 's:$: $lt_compiler_flag:'` 7928 (eval echo "\"\$as_me:7928: $lt_compile\"" >&5) 7929 (eval "$lt_compile" 2>out/conftest.err) 7930 ac_status=$? 7931 cat out/conftest.err >&5 7932 echo "$as_me:7932: \$? = $ac_status" >&5 7933 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7934 then 7935 # The compiler can only warn and ignore the option if not recognized 7936 # So say no if there are warnings 7937 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7940 lt_cv_prog_compiler_c_o=yes 7941 fi 7942 fi 7943 chmod u+w . 2>&5 7944 $rm conftest* 7945 # SGI C++ compiler will create directory out/ii_files/ for 7946 # template instantiation 7947 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7948 $rm out/* && rmdir out 7949 cd .. 7950 rmdir conftest 7951 $rm conftest* 7952 7953fi 7954{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7955$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7956 7957 7958hard_links="nottested" 7959if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7960 # do not overwrite the value of need_locks provided by the user 7961 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7962$as_echo_n "checking if we can lock with hard links... " >&6; } 7963 hard_links=yes 7964 $rm conftest* 7965 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7966 touch conftest.a 7967 ln conftest.a conftest.b 2>&5 || hard_links=no 7968 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7969 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 7970$as_echo "$hard_links" >&6; } 7971 if test "$hard_links" = no; then 7972 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7973$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7974 need_locks=warn 7975 fi 7976else 7977 need_locks=no 7978fi 7979 7980{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7981$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7982 7983 runpath_var= 7984 allow_undefined_flag= 7985 enable_shared_with_static_runtimes=no 7986 archive_cmds= 7987 archive_expsym_cmds= 7988 old_archive_From_new_cmds= 7989 old_archive_from_expsyms_cmds= 7990 export_dynamic_flag_spec= 7991 whole_archive_flag_spec= 7992 thread_safe_flag_spec= 7993 hardcode_libdir_flag_spec= 7994 hardcode_libdir_flag_spec_ld= 7995 hardcode_libdir_separator= 7996 hardcode_direct=no 7997 hardcode_minus_L=no 7998 hardcode_shlibpath_var=unsupported 7999 link_all_deplibs=unknown 8000 hardcode_automatic=no 8001 module_cmds= 8002 module_expsym_cmds= 8003 always_export_symbols=no 8004 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8005 # include_expsyms should be a list of space-separated symbols to be *always* 8006 # included in the symbol list 8007 include_expsyms= 8008 # exclude_expsyms can be an extended regexp of symbols to exclude 8009 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8010 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8011 # as well as any symbol that contains `d'. 8012 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8014 # platforms (ab)use it in PIC code, but their linkers get confused if 8015 # the symbol is explicitly referenced. Since portable code cannot 8016 # rely on this symbol name, it's probably fine to never include it in 8017 # preloaded symbol tables. 8018 # Exclude shared library initialization/finalization symbols. 8019 extract_expsyms_cmds= 8020 # Just being paranoid about ensuring that cc_basename is set. 8021 for cc_temp in $compiler""; do 8022 case $cc_temp in 8023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8025 \-*) ;; 8026 *) break;; 8027 esac 8028done 8029cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8030 8031 case $host_os in 8032 cygwin* | mingw* | pw32*) 8033 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8034 # When not using gcc, we currently assume that we are using 8035 # Microsoft Visual C++. 8036 if test "$GCC" != yes; then 8037 with_gnu_ld=no 8038 fi 8039 ;; 8040 interix*) 8041 # we just hope/assume this is gcc and not c89 (= MSVC++) 8042 with_gnu_ld=yes 8043 ;; 8044 openbsd*) 8045 with_gnu_ld=no 8046 ;; 8047 esac 8048 8049 ld_shlibs=yes 8050 if test "$with_gnu_ld" = yes; then 8051 # If archive_cmds runs LD, not CC, wlarc should be empty 8052 wlarc='${wl}' 8053 8054 # Set some defaults for GNU ld with shared library support. These 8055 # are reset later if shared libraries are not supported. Putting them 8056 # here allows them to be overridden if necessary. 8057 runpath_var=LD_RUN_PATH 8058 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8059 export_dynamic_flag_spec='${wl}--export-dynamic' 8060 # ancient GNU ld didn't support --whole-archive et. al. 8061 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8062 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8063 else 8064 whole_archive_flag_spec= 8065 fi 8066 supports_anon_versioning=no 8067 case `$LD -v 2>/dev/null` in 8068 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8071 *\ 2.11.*) ;; # other 2.11 versions 8072 *) supports_anon_versioning=yes ;; 8073 esac 8074 8075 # See if GNU ld supports shared libraries. 8076 case $host_os in 8077 aix[3-9]*) 8078 # On AIX/PPC, the GNU linker is very broken 8079 if test "$host_cpu" != ia64; then 8080 ld_shlibs=no 8081 cat <<EOF 1>&2 8082 8083*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8084*** to be unable to reliably create shared libraries on AIX. 8085*** Therefore, libtool is disabling shared libraries support. If you 8086*** really care for shared libraries, you may want to modify your PATH 8087*** so that a non-GNU linker is found, and then restart. 8088 8089EOF 8090 fi 8091 ;; 8092 8093 amigaos*) 8094 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)' 8095 hardcode_libdir_flag_spec='-L$libdir' 8096 hardcode_minus_L=yes 8097 8098 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8099 # that the semantics of dynamic libraries on AmigaOS, at least up 8100 # to version 4, is to share data among multiple programs linked 8101 # with the same dynamic library. Since this doesn't match the 8102 # behavior of shared libraries on other platforms, we can't use 8103 # them. 8104 ld_shlibs=no 8105 ;; 8106 8107 beos*) 8108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8109 allow_undefined_flag=unsupported 8110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8111 # support --undefined. This deserves some investigation. FIXME 8112 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8113 else 8114 ld_shlibs=no 8115 fi 8116 ;; 8117 8118 cygwin* | mingw* | pw32*) 8119 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8120 # as there is no search path for DLLs. 8121 hardcode_libdir_flag_spec='-L$libdir' 8122 allow_undefined_flag=unsupported 8123 always_export_symbols=no 8124 enable_shared_with_static_runtimes=yes 8125 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8126 8127 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8129 # If the export-symbols file already is a .def file (1st line 8130 # is EXPORTS), use it as is; otherwise, prepend... 8131 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8132 cp $export_symbols $output_objdir/$soname.def; 8133 else 8134 echo EXPORTS > $output_objdir/$soname.def; 8135 cat $export_symbols >> $output_objdir/$soname.def; 8136 fi~ 8137 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8138 else 8139 ld_shlibs=no 8140 fi 8141 ;; 8142 8143 interix[3-9]*) 8144 hardcode_direct=no 8145 hardcode_shlibpath_var=no 8146 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8147 export_dynamic_flag_spec='${wl}-E' 8148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8149 # Instead, shared libraries are loaded at an image base (0x10000000 by 8150 # default) and relocated if they conflict, which is a slow very memory 8151 # consuming and fragmenting process. To avoid this, we pick a random, 8152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8153 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8154 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8155 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' 8156 ;; 8157 8158 gnu* | linux* | k*bsd*-gnu) 8159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8160 tmp_addflag= 8161 case $cc_basename,$host_cpu in 8162 pgcc*) # Portland Group C compiler 8163 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' 8164 tmp_addflag=' $pic_flag' 8165 ;; 8166 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8167 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' 8168 tmp_addflag=' $pic_flag -Mnomain' ;; 8169 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8170 tmp_addflag=' -i_dynamic' ;; 8171 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8172 tmp_addflag=' -i_dynamic -nofor_main' ;; 8173 ifc* | ifort*) # Intel Fortran compiler 8174 tmp_addflag=' -nofor_main' ;; 8175 esac 8176 case `$CC -V 2>&1 | sed 5q` in 8177 *Sun\ C*) # Sun C 5.9 8178 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 8179 tmp_sharedflag='-G' ;; 8180 *Sun\ F*) # Sun Fortran 8.3 8181 tmp_sharedflag='-G' ;; 8182 *) 8183 tmp_sharedflag='-shared' ;; 8184 esac 8185 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8186 8187 if test $supports_anon_versioning = yes; then 8188 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8190 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8191 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8192 fi 8193 else 8194 ld_shlibs=no 8195 fi 8196 ;; 8197 8198 netbsd*) 8199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8200 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8201 wlarc= 8202 else 8203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8205 fi 8206 ;; 8207 8208 solaris*) 8209 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8210 ld_shlibs=no 8211 cat <<EOF 1>&2 8212 8213*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8214*** create shared libraries on Solaris systems. Therefore, libtool 8215*** is disabling shared libraries support. We urge you to upgrade GNU 8216*** binutils to release 2.9.1 or newer. Another option is to modify 8217*** your PATH or compiler configuration so that the native linker is 8218*** used, and then restart. 8219 8220EOF 8221 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8223 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8224 else 8225 ld_shlibs=no 8226 fi 8227 ;; 8228 8229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8230 case `$LD -v 2>&1` in 8231 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8232 ld_shlibs=no 8233 cat <<_LT_EOF 1>&2 8234 8235*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8236*** reliably create shared libraries on SCO systems. Therefore, libtool 8237*** is disabling shared libraries support. We urge you to upgrade GNU 8238*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8239*** your PATH or compiler configuration so that the native linker is 8240*** used, and then restart. 8241 8242_LT_EOF 8243 ;; 8244 *) 8245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8246 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8249 else 8250 ld_shlibs=no 8251 fi 8252 ;; 8253 esac 8254 ;; 8255 8256 sunos4*) 8257 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8258 wlarc= 8259 hardcode_direct=yes 8260 hardcode_shlibpath_var=no 8261 ;; 8262 8263 *) 8264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8267 else 8268 ld_shlibs=no 8269 fi 8270 ;; 8271 esac 8272 8273 if test "$ld_shlibs" = no; then 8274 runpath_var= 8275 hardcode_libdir_flag_spec= 8276 export_dynamic_flag_spec= 8277 whole_archive_flag_spec= 8278 fi 8279 else 8280 # PORTME fill in a description of your system's linker (not GNU ld) 8281 case $host_os in 8282 aix3*) 8283 allow_undefined_flag=unsupported 8284 always_export_symbols=yes 8285 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' 8286 # Note: this linker hardcodes the directories in LIBPATH if there 8287 # are no directories specified by -L. 8288 hardcode_minus_L=yes 8289 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8290 # Neither direct hardcoding nor static linking is supported with a 8291 # broken collect2. 8292 hardcode_direct=unsupported 8293 fi 8294 ;; 8295 8296 aix[4-9]*) 8297 if test "$host_cpu" = ia64; then 8298 # On IA64, the linker does run time linking by default, so we don't 8299 # have to do anything special. 8300 aix_use_runtimelinking=no 8301 exp_sym_flag='-Bexport' 8302 no_entry_flag="" 8303 else 8304 # If we're using GNU nm, then we don't want the "-C" option. 8305 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8306 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8307 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' 8308 else 8309 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' 8310 fi 8311 aix_use_runtimelinking=no 8312 8313 # Test if we are trying to use run time linking or normal 8314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8315 # need to do runtime linking. 8316 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8317 for ld_flag in $LDFLAGS; do 8318 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8319 aix_use_runtimelinking=yes 8320 break 8321 fi 8322 done 8323 ;; 8324 esac 8325 8326 exp_sym_flag='-bexport' 8327 no_entry_flag='-bnoentry' 8328 fi 8329 8330 # When large executables or shared objects are built, AIX ld can 8331 # have problems creating the table of contents. If linking a library 8332 # or program results in "error TOC overflow" add -mminimal-toc to 8333 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8334 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8335 8336 archive_cmds='' 8337 hardcode_direct=yes 8338 hardcode_libdir_separator=':' 8339 link_all_deplibs=yes 8340 8341 if test "$GCC" = yes; then 8342 case $host_os in aix4.[012]|aix4.[012].*) 8343 # We only want to do this on AIX 4.2 and lower, the check 8344 # below for broken collect2 doesn't work under 4.3+ 8345 collect2name=`${CC} -print-prog-name=collect2` 8346 if test -f "$collect2name" && \ 8347 strings "$collect2name" | grep resolve_lib_name >/dev/null 8348 then 8349 # We have reworked collect2 8350 : 8351 else 8352 # We have old collect2 8353 hardcode_direct=unsupported 8354 # It fails to find uninstalled libraries when the uninstalled 8355 # path is not listed in the libpath. Setting hardcode_minus_L 8356 # to unsupported forces relinking 8357 hardcode_minus_L=yes 8358 hardcode_libdir_flag_spec='-L$libdir' 8359 hardcode_libdir_separator= 8360 fi 8361 ;; 8362 esac 8363 shared_flag='-shared' 8364 if test "$aix_use_runtimelinking" = yes; then 8365 shared_flag="$shared_flag "'${wl}-G' 8366 fi 8367 else 8368 # not using gcc 8369 if test "$host_cpu" = ia64; then 8370 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8371 # chokes on -Wl,-G. The following line is correct: 8372 shared_flag='-G' 8373 else 8374 if test "$aix_use_runtimelinking" = yes; then 8375 shared_flag='${wl}-G' 8376 else 8377 shared_flag='${wl}-bM:SRE' 8378 fi 8379 fi 8380 fi 8381 8382 # It seems that -bexpall does not export symbols beginning with 8383 # underscore (_), so it is better to generate a list of symbols to export. 8384 always_export_symbols=yes 8385 if test "$aix_use_runtimelinking" = yes; then 8386 # Warning - without using the other runtime loading flags (-brtl), 8387 # -berok will link without error, but may produce a broken library. 8388 allow_undefined_flag='-berok' 8389 # Determine the default libpath from the value encoded in an empty executable. 8390 cat >conftest.$ac_ext <<_ACEOF 8391/* confdefs.h. */ 8392_ACEOF 8393cat confdefs.h >>conftest.$ac_ext 8394cat >>conftest.$ac_ext <<_ACEOF 8395/* end confdefs.h. */ 8396 8397int 8398main () 8399{ 8400 8401 ; 8402 return 0; 8403} 8404_ACEOF 8405rm -f conftest.$ac_objext conftest$ac_exeext 8406if { (ac_try="$ac_link" 8407case "(($ac_try" in 8408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8409 *) ac_try_echo=$ac_try;; 8410esac 8411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8412$as_echo "$ac_try_echo") >&5 8413 (eval "$ac_link") 2>conftest.er1 8414 ac_status=$? 8415 grep -v '^ *+' conftest.er1 >conftest.err 8416 rm -f conftest.er1 8417 cat conftest.err >&5 8418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8419 (exit $ac_status); } && { 8420 test -z "$ac_c_werror_flag" || 8421 test ! -s conftest.err 8422 } && test -s conftest$ac_exeext && { 8423 test "$cross_compiling" = yes || 8424 $as_test_x conftest$ac_exeext 8425 }; then 8426 8427lt_aix_libpath_sed=' 8428 /Import File Strings/,/^$/ { 8429 /^0/ { 8430 s/^0 *\(.*\)$/\1/ 8431 p 8432 } 8433 }' 8434aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8435# Check for a 64-bit object if we didn't find anything. 8436if test -z "$aix_libpath"; then 8437 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8438fi 8439else 8440 $as_echo "$as_me: failed program was:" >&5 8441sed 's/^/| /' conftest.$ac_ext >&5 8442 8443 8444fi 8445 8446rm -rf conftest.dSYM 8447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8448 conftest$ac_exeext conftest.$ac_ext 8449if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8450 8451 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8452 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" 8453 else 8454 if test "$host_cpu" = ia64; then 8455 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8456 allow_undefined_flag="-z nodefs" 8457 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" 8458 else 8459 # Determine the default libpath from the value encoded in an empty executable. 8460 cat >conftest.$ac_ext <<_ACEOF 8461/* confdefs.h. */ 8462_ACEOF 8463cat confdefs.h >>conftest.$ac_ext 8464cat >>conftest.$ac_ext <<_ACEOF 8465/* end confdefs.h. */ 8466 8467int 8468main () 8469{ 8470 8471 ; 8472 return 0; 8473} 8474_ACEOF 8475rm -f conftest.$ac_objext conftest$ac_exeext 8476if { (ac_try="$ac_link" 8477case "(($ac_try" in 8478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8479 *) ac_try_echo=$ac_try;; 8480esac 8481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8482$as_echo "$ac_try_echo") >&5 8483 (eval "$ac_link") 2>conftest.er1 8484 ac_status=$? 8485 grep -v '^ *+' conftest.er1 >conftest.err 8486 rm -f conftest.er1 8487 cat conftest.err >&5 8488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8489 (exit $ac_status); } && { 8490 test -z "$ac_c_werror_flag" || 8491 test ! -s conftest.err 8492 } && test -s conftest$ac_exeext && { 8493 test "$cross_compiling" = yes || 8494 $as_test_x conftest$ac_exeext 8495 }; then 8496 8497lt_aix_libpath_sed=' 8498 /Import File Strings/,/^$/ { 8499 /^0/ { 8500 s/^0 *\(.*\)$/\1/ 8501 p 8502 } 8503 }' 8504aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8505# Check for a 64-bit object if we didn't find anything. 8506if test -z "$aix_libpath"; then 8507 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8508fi 8509else 8510 $as_echo "$as_me: failed program was:" >&5 8511sed 's/^/| /' conftest.$ac_ext >&5 8512 8513 8514fi 8515 8516rm -rf conftest.dSYM 8517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8518 conftest$ac_exeext conftest.$ac_ext 8519if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8520 8521 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8522 # Warning - without using the other run time loading flags, 8523 # -berok will link without error, but may produce a broken library. 8524 no_undefined_flag=' ${wl}-bernotok' 8525 allow_undefined_flag=' ${wl}-berok' 8526 # Exported symbols can be pulled into shared objects from archives 8527 whole_archive_flag_spec='$convenience' 8528 archive_cmds_need_lc=yes 8529 # This is similar to how AIX traditionally builds its shared libraries. 8530 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' 8531 fi 8532 fi 8533 ;; 8534 8535 amigaos*) 8536 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)' 8537 hardcode_libdir_flag_spec='-L$libdir' 8538 hardcode_minus_L=yes 8539 # see comment about different semantics on the GNU ld section 8540 ld_shlibs=no 8541 ;; 8542 8543 bsdi[45]*) 8544 export_dynamic_flag_spec=-rdynamic 8545 ;; 8546 8547 cygwin* | mingw* | pw32*) 8548 # When not using gcc, we currently assume that we are using 8549 # Microsoft Visual C++. 8550 # hardcode_libdir_flag_spec is actually meaningless, as there is 8551 # no search path for DLLs. 8552 hardcode_libdir_flag_spec=' ' 8553 allow_undefined_flag=unsupported 8554 # Tell ltmain to make .lib files, not .a files. 8555 libext=lib 8556 # Tell ltmain to make .dll files, not .so files. 8557 shrext_cmds=".dll" 8558 # FIXME: Setting linknames here is a bad hack. 8559 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8560 # The linker will automatically build a .lib file if we build a DLL. 8561 old_archive_From_new_cmds='true' 8562 # FIXME: Should let the user specify the lib program. 8563 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8564 fix_srcfile_path='`cygpath -w "$srcfile"`' 8565 enable_shared_with_static_runtimes=yes 8566 ;; 8567 8568 darwin* | rhapsody*) 8569 case $host_os in 8570 rhapsody* | darwin1.[012]) 8571 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8572 ;; 8573 *) # Darwin 1.3 on 8574 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8575 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8576 else 8577 case ${MACOSX_DEPLOYMENT_TARGET} in 8578 10.[012]) 8579 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8580 ;; 8581 10.*) 8582 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8583 ;; 8584 esac 8585 fi 8586 ;; 8587 esac 8588 archive_cmds_need_lc=no 8589 hardcode_direct=no 8590 hardcode_automatic=yes 8591 hardcode_shlibpath_var=unsupported 8592 whole_archive_flag_spec='' 8593 link_all_deplibs=yes 8594 if test "$GCC" = yes ; then 8595 output_verbose_link_cmd='echo' 8596 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8597 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8598 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 8599 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 8600 else 8601 case $cc_basename in 8602 xlc*) 8603 output_verbose_link_cmd='echo' 8604 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8605 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8606 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8607 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8608 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}' 8609 ;; 8610 *) 8611 ld_shlibs=no 8612 ;; 8613 esac 8614 fi 8615 ;; 8616 8617 dgux*) 8618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8619 hardcode_libdir_flag_spec='-L$libdir' 8620 hardcode_shlibpath_var=no 8621 ;; 8622 8623 freebsd1*) 8624 ld_shlibs=no 8625 ;; 8626 8627 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8628 # support. Future versions do this automatically, but an explicit c++rt0.o 8629 # does not break anything, and helps significantly (at the cost of a little 8630 # extra space). 8631 freebsd2.2*) 8632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8633 hardcode_libdir_flag_spec='-R$libdir' 8634 hardcode_direct=yes 8635 hardcode_shlibpath_var=no 8636 ;; 8637 8638 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8639 freebsd2*) 8640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8641 hardcode_direct=yes 8642 hardcode_minus_L=yes 8643 hardcode_shlibpath_var=no 8644 ;; 8645 8646 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8647 freebsd* | dragonfly*) 8648 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8649 hardcode_libdir_flag_spec='-R$libdir' 8650 hardcode_direct=yes 8651 hardcode_shlibpath_var=no 8652 ;; 8653 8654 hpux9*) 8655 if test "$GCC" = yes; then 8656 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' 8657 else 8658 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' 8659 fi 8660 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8661 hardcode_libdir_separator=: 8662 hardcode_direct=yes 8663 8664 # hardcode_minus_L: Not really in the search PATH, 8665 # but as the default location of the library. 8666 hardcode_minus_L=yes 8667 export_dynamic_flag_spec='${wl}-E' 8668 ;; 8669 8670 hpux10*) 8671 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8672 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8673 else 8674 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8675 fi 8676 if test "$with_gnu_ld" = no; then 8677 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8678 hardcode_libdir_separator=: 8679 8680 hardcode_direct=yes 8681 export_dynamic_flag_spec='${wl}-E' 8682 8683 # hardcode_minus_L: Not really in the search PATH, 8684 # but as the default location of the library. 8685 hardcode_minus_L=yes 8686 fi 8687 ;; 8688 8689 hpux11*) 8690 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8691 case $host_cpu in 8692 hppa*64*) 8693 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8694 ;; 8695 ia64*) 8696 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8697 ;; 8698 *) 8699 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8700 ;; 8701 esac 8702 else 8703 case $host_cpu in 8704 hppa*64*) 8705 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8706 ;; 8707 ia64*) 8708 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8709 ;; 8710 *) 8711 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8712 ;; 8713 esac 8714 fi 8715 if test "$with_gnu_ld" = no; then 8716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8717 hardcode_libdir_separator=: 8718 8719 case $host_cpu in 8720 hppa*64*|ia64*) 8721 hardcode_libdir_flag_spec_ld='+b $libdir' 8722 hardcode_direct=no 8723 hardcode_shlibpath_var=no 8724 ;; 8725 *) 8726 hardcode_direct=yes 8727 export_dynamic_flag_spec='${wl}-E' 8728 8729 # hardcode_minus_L: Not really in the search PATH, 8730 # but as the default location of the library. 8731 hardcode_minus_L=yes 8732 ;; 8733 esac 8734 fi 8735 ;; 8736 8737 irix5* | irix6* | nonstopux*) 8738 if test "$GCC" = yes; then 8739 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' 8740 else 8741 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' 8742 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8743 fi 8744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8745 hardcode_libdir_separator=: 8746 link_all_deplibs=yes 8747 ;; 8748 8749 netbsd*) 8750 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8752 else 8753 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8754 fi 8755 hardcode_libdir_flag_spec='-R$libdir' 8756 hardcode_direct=yes 8757 hardcode_shlibpath_var=no 8758 ;; 8759 8760 newsos6) 8761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8762 hardcode_direct=yes 8763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8764 hardcode_libdir_separator=: 8765 hardcode_shlibpath_var=no 8766 ;; 8767 8768 openbsd*) 8769 if test -f /usr/libexec/ld.so; then 8770 hardcode_direct=yes 8771 hardcode_shlibpath_var=no 8772 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8774 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8776 export_dynamic_flag_spec='${wl}-E' 8777 else 8778 case $host_os in 8779 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8781 hardcode_libdir_flag_spec='-R$libdir' 8782 ;; 8783 *) 8784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8786 ;; 8787 esac 8788 fi 8789 else 8790 ld_shlibs=no 8791 fi 8792 ;; 8793 8794 os2*) 8795 hardcode_libdir_flag_spec='-L$libdir' 8796 hardcode_minus_L=yes 8797 allow_undefined_flag=unsupported 8798 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' 8799 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8800 ;; 8801 8802 osf3*) 8803 if test "$GCC" = yes; then 8804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8805 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' 8806 else 8807 allow_undefined_flag=' -expect_unresolved \*' 8808 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' 8809 fi 8810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8811 hardcode_libdir_separator=: 8812 ;; 8813 8814 osf4* | osf5*) # as osf3* with the addition of -msym flag 8815 if test "$GCC" = yes; then 8816 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8817 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' 8818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8819 else 8820 allow_undefined_flag=' -expect_unresolved \*' 8821 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' 8822 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8823 $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' 8824 8825 # Both c and cxx compiler support -rpath directly 8826 hardcode_libdir_flag_spec='-rpath $libdir' 8827 fi 8828 hardcode_libdir_separator=: 8829 ;; 8830 8831 solaris*) 8832 no_undefined_flag=' -z text' 8833 if test "$GCC" = yes; then 8834 wlarc='${wl}' 8835 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8836 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8837 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8838 else 8839 wlarc='' 8840 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8841 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8842 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8843 fi 8844 hardcode_libdir_flag_spec='-R$libdir' 8845 hardcode_shlibpath_var=no 8846 case $host_os in 8847 solaris2.[0-5] | solaris2.[0-5].*) ;; 8848 *) 8849 # The compiler driver will combine and reorder linker options, 8850 # but understands `-z linker_flag'. GCC discards it without `$wl', 8851 # but is careful enough not to reorder. 8852 # Supported since Solaris 2.6 (maybe 2.5.1?) 8853 if test "$GCC" = yes; then 8854 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8855 else 8856 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8857 fi 8858 ;; 8859 esac 8860 link_all_deplibs=yes 8861 ;; 8862 8863 sunos4*) 8864 if test "x$host_vendor" = xsequent; then 8865 # Use $CC to link under sequent, because it throws in some extra .o 8866 # files that make .init and .fini sections work. 8867 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8868 else 8869 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8870 fi 8871 hardcode_libdir_flag_spec='-L$libdir' 8872 hardcode_direct=yes 8873 hardcode_minus_L=yes 8874 hardcode_shlibpath_var=no 8875 ;; 8876 8877 sysv4) 8878 case $host_vendor in 8879 sni) 8880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8881 hardcode_direct=yes # is this really true??? 8882 ;; 8883 siemens) 8884 ## LD is ld it makes a PLAMLIB 8885 ## CC just makes a GrossModule. 8886 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8887 reload_cmds='$CC -r -o $output$reload_objs' 8888 hardcode_direct=no 8889 ;; 8890 motorola) 8891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8892 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8893 ;; 8894 esac 8895 runpath_var='LD_RUN_PATH' 8896 hardcode_shlibpath_var=no 8897 ;; 8898 8899 sysv4.3*) 8900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8901 hardcode_shlibpath_var=no 8902 export_dynamic_flag_spec='-Bexport' 8903 ;; 8904 8905 sysv4*MP*) 8906 if test -d /usr/nec; then 8907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8908 hardcode_shlibpath_var=no 8909 runpath_var=LD_RUN_PATH 8910 hardcode_runpath_var=yes 8911 ld_shlibs=yes 8912 fi 8913 ;; 8914 8915 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8916 no_undefined_flag='${wl}-z,text' 8917 archive_cmds_need_lc=no 8918 hardcode_shlibpath_var=no 8919 runpath_var='LD_RUN_PATH' 8920 8921 if test "$GCC" = yes; then 8922 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8923 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8924 else 8925 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8926 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8927 fi 8928 ;; 8929 8930 sysv5* | sco3.2v5* | sco5v6*) 8931 # Note: We can NOT use -z defs as we might desire, because we do not 8932 # link with -lc, and that would cause any symbols used from libc to 8933 # always be unresolved, which means just about no library would 8934 # ever link correctly. If we're not using GNU ld we use -z text 8935 # though, which does catch some bad symbols but isn't as heavy-handed 8936 # as -z defs. 8937 no_undefined_flag='${wl}-z,text' 8938 allow_undefined_flag='${wl}-z,nodefs' 8939 archive_cmds_need_lc=no 8940 hardcode_shlibpath_var=no 8941 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8942 hardcode_libdir_separator=':' 8943 link_all_deplibs=yes 8944 export_dynamic_flag_spec='${wl}-Bexport' 8945 runpath_var='LD_RUN_PATH' 8946 8947 if test "$GCC" = yes; then 8948 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8949 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8950 else 8951 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8952 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8953 fi 8954 ;; 8955 8956 uts4*) 8957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8958 hardcode_libdir_flag_spec='-L$libdir' 8959 hardcode_shlibpath_var=no 8960 ;; 8961 8962 *) 8963 ld_shlibs=no 8964 ;; 8965 esac 8966 fi 8967 8968{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8969$as_echo "$ld_shlibs" >&6; } 8970test "$ld_shlibs" = no && can_build_shared=no 8971 8972# 8973# Do we need to explicitly link libc? 8974# 8975case "x$archive_cmds_need_lc" in 8976x|xyes) 8977 # Assume -lc should be added 8978 archive_cmds_need_lc=yes 8979 8980 if test "$enable_shared" = yes && test "$GCC" = yes; then 8981 case $archive_cmds in 8982 *'~'*) 8983 # FIXME: we may have to deal with multi-command sequences. 8984 ;; 8985 '$CC '*) 8986 # Test whether the compiler implicitly links with -lc since on some 8987 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8988 # to ld, don't add -lc before -lgcc. 8989 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8990$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 8991 $rm conftest* 8992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8993 8994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8995 (eval $ac_compile) 2>&5 8996 ac_status=$? 8997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8998 (exit $ac_status); } 2>conftest.err; then 8999 soname=conftest 9000 lib=conftest 9001 libobjs=conftest.$ac_objext 9002 deplibs= 9003 wl=$lt_prog_compiler_wl 9004 pic_flag=$lt_prog_compiler_pic 9005 compiler_flags=-v 9006 linker_flags=-v 9007 verstring= 9008 output_objdir=. 9009 libname=conftest 9010 lt_save_allow_undefined_flag=$allow_undefined_flag 9011 allow_undefined_flag= 9012 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9013 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9014 ac_status=$? 9015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9016 (exit $ac_status); } 9017 then 9018 archive_cmds_need_lc=no 9019 else 9020 archive_cmds_need_lc=yes 9021 fi 9022 allow_undefined_flag=$lt_save_allow_undefined_flag 9023 else 9024 cat conftest.err 1>&5 9025 fi 9026 $rm conftest* 9027 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9028$as_echo "$archive_cmds_need_lc" >&6; } 9029 ;; 9030 esac 9031 fi 9032 ;; 9033esac 9034 9035{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9036$as_echo_n "checking dynamic linker characteristics... " >&6; } 9037library_names_spec= 9038libname_spec='lib$name' 9039soname_spec= 9040shrext_cmds=".so" 9041postinstall_cmds= 9042postuninstall_cmds= 9043finish_cmds= 9044finish_eval= 9045shlibpath_var= 9046shlibpath_overrides_runpath=unknown 9047version_type=none 9048dynamic_linker="$host_os ld.so" 9049sys_lib_dlsearch_path_spec="/lib /usr/lib" 9050 9051if test "$GCC" = yes; then 9052 case $host_os in 9053 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9054 *) lt_awk_arg="/^libraries:/" ;; 9055 esac 9056 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9057 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9058 # if the path contains ";" then we assume it to be the separator 9059 # otherwise default to the standard path separator (i.e. ":") - it is 9060 # assumed that no part of a normal pathname contains ";" but that should 9061 # okay in the real world where ";" in dirpaths is itself problematic. 9062 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9063 else 9064 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9065 fi 9066 # Ok, now we have the path, separated by spaces, we can step through it 9067 # and add multilib dir if necessary. 9068 lt_tmp_lt_search_path_spec= 9069 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9070 for lt_sys_path in $lt_search_path_spec; do 9071 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9073 else 9074 test -d "$lt_sys_path" && \ 9075 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9076 fi 9077 done 9078 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9079BEGIN {RS=" "; FS="/|\n";} { 9080 lt_foo=""; 9081 lt_count=0; 9082 for (lt_i = NF; lt_i > 0; lt_i--) { 9083 if ($lt_i != "" && $lt_i != ".") { 9084 if ($lt_i == "..") { 9085 lt_count++; 9086 } else { 9087 if (lt_count == 0) { 9088 lt_foo="/" $lt_i lt_foo; 9089 } else { 9090 lt_count--; 9091 } 9092 } 9093 } 9094 } 9095 if (lt_foo != "") { lt_freq[lt_foo]++; } 9096 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9097}'` 9098 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9099else 9100 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9101fi 9102need_lib_prefix=unknown 9103hardcode_into_libs=no 9104 9105# when you set need_version to no, make sure it does not cause -set_version 9106# flags to be left without arguments 9107need_version=unknown 9108 9109case $host_os in 9110aix3*) 9111 version_type=linux 9112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9113 shlibpath_var=LIBPATH 9114 9115 # AIX 3 has no versioning support, so we append a major version to the name. 9116 soname_spec='${libname}${release}${shared_ext}$major' 9117 ;; 9118 9119aix[4-9]*) 9120 version_type=linux 9121 need_lib_prefix=no 9122 need_version=no 9123 hardcode_into_libs=yes 9124 if test "$host_cpu" = ia64; then 9125 # AIX 5 supports IA64 9126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9127 shlibpath_var=LD_LIBRARY_PATH 9128 else 9129 # With GCC up to 2.95.x, collect2 would create an import file 9130 # for dependence libraries. The import file would start with 9131 # the line `#! .'. This would cause the generated library to 9132 # depend on `.', always an invalid library. This was fixed in 9133 # development snapshots of GCC prior to 3.0. 9134 case $host_os in 9135 aix4 | aix4.[01] | aix4.[01].*) 9136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9137 echo ' yes ' 9138 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9139 : 9140 else 9141 can_build_shared=no 9142 fi 9143 ;; 9144 esac 9145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9146 # soname into executable. Probably we can add versioning support to 9147 # collect2, so additional links can be useful in future. 9148 if test "$aix_use_runtimelinking" = yes; then 9149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9150 # instead of lib<name>.a to let people know that these are not 9151 # typical AIX shared libraries. 9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9153 else 9154 # We preserve .a as extension for shared libraries through AIX4.2 9155 # and later when we are not doing run time linking. 9156 library_names_spec='${libname}${release}.a $libname.a' 9157 soname_spec='${libname}${release}${shared_ext}$major' 9158 fi 9159 shlibpath_var=LIBPATH 9160 fi 9161 ;; 9162 9163amigaos*) 9164 library_names_spec='$libname.ixlibrary $libname.a' 9165 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9166 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' 9167 ;; 9168 9169beos*) 9170 library_names_spec='${libname}${shared_ext}' 9171 dynamic_linker="$host_os ld.so" 9172 shlibpath_var=LIBRARY_PATH 9173 ;; 9174 9175bsdi[45]*) 9176 version_type=linux 9177 need_version=no 9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9179 soname_spec='${libname}${release}${shared_ext}$major' 9180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9181 shlibpath_var=LD_LIBRARY_PATH 9182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9184 # the default ld.so.conf also contains /usr/contrib/lib and 9185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9186 # libtool to hard-code these into programs 9187 ;; 9188 9189cygwin* | mingw* | pw32*) 9190 version_type=windows 9191 shrext_cmds=".dll" 9192 need_version=no 9193 need_lib_prefix=no 9194 9195 case $GCC,$host_os in 9196 yes,cygwin* | yes,mingw* | yes,pw32*) 9197 library_names_spec='$libname.dll.a' 9198 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9199 postinstall_cmds='base_file=`basename \${file}`~ 9200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9201 dldir=$destdir/`dirname \$dlpath`~ 9202 test -d \$dldir || mkdir -p \$dldir~ 9203 $install_prog $dir/$dlname \$dldir/$dlname~ 9204 chmod a+x \$dldir/$dlname' 9205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9206 dlpath=$dir/\$dldll~ 9207 $rm \$dlpath' 9208 shlibpath_overrides_runpath=yes 9209 9210 case $host_os in 9211 cygwin*) 9212 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9214 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9215 ;; 9216 mingw*) 9217 # MinGW DLLs use traditional 'lib' prefix 9218 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9220 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9221 # It is most probably a Windows format PATH printed by 9222 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9223 # path with ; separators, and with drive letters. We can handle the 9224 # drive letters (cygwin fileutils understands them), so leave them, 9225 # especially as we might pass files found there to a mingw objdump, 9226 # which wouldn't understand a cygwinified path. Ahh. 9227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9228 else 9229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9230 fi 9231 ;; 9232 pw32*) 9233 # pw32 DLLs use 'pw' prefix rather than 'lib' 9234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9235 ;; 9236 esac 9237 ;; 9238 9239 *) 9240 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9241 ;; 9242 esac 9243 dynamic_linker='Win32 ld.exe' 9244 # FIXME: first we should search . and the directory the executable is in 9245 shlibpath_var=PATH 9246 ;; 9247 9248darwin* | rhapsody*) 9249 dynamic_linker="$host_os dyld" 9250 version_type=darwin 9251 need_lib_prefix=no 9252 need_version=no 9253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9254 soname_spec='${libname}${release}${major}$shared_ext' 9255 shlibpath_overrides_runpath=yes 9256 shlibpath_var=DYLD_LIBRARY_PATH 9257 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9258 9259 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9260 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9261 ;; 9262 9263dgux*) 9264 version_type=linux 9265 need_lib_prefix=no 9266 need_version=no 9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9268 soname_spec='${libname}${release}${shared_ext}$major' 9269 shlibpath_var=LD_LIBRARY_PATH 9270 ;; 9271 9272freebsd1*) 9273 dynamic_linker=no 9274 ;; 9275 9276freebsd* | dragonfly*) 9277 # DragonFly does not have aout. When/if they implement a new 9278 # versioning mechanism, adjust this. 9279 if test -x /usr/bin/objformat; then 9280 objformat=`/usr/bin/objformat` 9281 else 9282 case $host_os in 9283 freebsd[123]*) objformat=aout ;; 9284 *) objformat=elf ;; 9285 esac 9286 fi 9287 version_type=freebsd-$objformat 9288 case $version_type in 9289 freebsd-elf*) 9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9291 need_version=no 9292 need_lib_prefix=no 9293 ;; 9294 freebsd-*) 9295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9296 need_version=yes 9297 ;; 9298 esac 9299 shlibpath_var=LD_LIBRARY_PATH 9300 case $host_os in 9301 freebsd2*) 9302 shlibpath_overrides_runpath=yes 9303 ;; 9304 freebsd3.[01]* | freebsdelf3.[01]*) 9305 shlibpath_overrides_runpath=yes 9306 hardcode_into_libs=yes 9307 ;; 9308 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9309 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9310 shlibpath_overrides_runpath=no 9311 hardcode_into_libs=yes 9312 ;; 9313 *) # from 4.6 on, and DragonFly 9314 shlibpath_overrides_runpath=yes 9315 hardcode_into_libs=yes 9316 ;; 9317 esac 9318 ;; 9319 9320gnu*) 9321 version_type=linux 9322 need_lib_prefix=no 9323 need_version=no 9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9325 soname_spec='${libname}${release}${shared_ext}$major' 9326 shlibpath_var=LD_LIBRARY_PATH 9327 hardcode_into_libs=yes 9328 ;; 9329 9330hpux9* | hpux10* | hpux11*) 9331 # Give a soname corresponding to the major version so that dld.sl refuses to 9332 # link against other versions. 9333 version_type=sunos 9334 need_lib_prefix=no 9335 need_version=no 9336 case $host_cpu in 9337 ia64*) 9338 shrext_cmds='.so' 9339 hardcode_into_libs=yes 9340 dynamic_linker="$host_os dld.so" 9341 shlibpath_var=LD_LIBRARY_PATH 9342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9344 soname_spec='${libname}${release}${shared_ext}$major' 9345 if test "X$HPUX_IA64_MODE" = X32; then 9346 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9347 else 9348 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9349 fi 9350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9351 ;; 9352 hppa*64*) 9353 shrext_cmds='.sl' 9354 hardcode_into_libs=yes 9355 dynamic_linker="$host_os dld.sl" 9356 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9359 soname_spec='${libname}${release}${shared_ext}$major' 9360 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9362 ;; 9363 *) 9364 shrext_cmds='.sl' 9365 dynamic_linker="$host_os dld.sl" 9366 shlibpath_var=SHLIB_PATH 9367 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9369 soname_spec='${libname}${release}${shared_ext}$major' 9370 ;; 9371 esac 9372 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9373 postinstall_cmds='chmod 555 $lib' 9374 ;; 9375 9376interix[3-9]*) 9377 version_type=linux 9378 need_lib_prefix=no 9379 need_version=no 9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9381 soname_spec='${libname}${release}${shared_ext}$major' 9382 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9383 shlibpath_var=LD_LIBRARY_PATH 9384 shlibpath_overrides_runpath=no 9385 hardcode_into_libs=yes 9386 ;; 9387 9388irix5* | irix6* | nonstopux*) 9389 case $host_os in 9390 nonstopux*) version_type=nonstopux ;; 9391 *) 9392 if test "$lt_cv_prog_gnu_ld" = yes; then 9393 version_type=linux 9394 else 9395 version_type=irix 9396 fi ;; 9397 esac 9398 need_lib_prefix=no 9399 need_version=no 9400 soname_spec='${libname}${release}${shared_ext}$major' 9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9402 case $host_os in 9403 irix5* | nonstopux*) 9404 libsuff= shlibsuff= 9405 ;; 9406 *) 9407 case $LD in # libtool.m4 will add one of these switches to LD 9408 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9409 libsuff= shlibsuff= libmagic=32-bit;; 9410 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9411 libsuff=32 shlibsuff=N32 libmagic=N32;; 9412 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9413 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9414 *) libsuff= shlibsuff= libmagic=never-match;; 9415 esac 9416 ;; 9417 esac 9418 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9419 shlibpath_overrides_runpath=no 9420 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9421 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9422 hardcode_into_libs=yes 9423 ;; 9424 9425# No shared lib support for Linux oldld, aout, or coff. 9426linux*oldld* | linux*aout* | linux*coff*) 9427 dynamic_linker=no 9428 ;; 9429 9430# This must be Linux ELF. 9431linux* | k*bsd*-gnu) 9432 version_type=linux 9433 need_lib_prefix=no 9434 need_version=no 9435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9436 soname_spec='${libname}${release}${shared_ext}$major' 9437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9438 shlibpath_var=LD_LIBRARY_PATH 9439 shlibpath_overrides_runpath=no 9440 # This implies no fast_install, which is unacceptable. 9441 # Some rework will be needed to allow for fast_install 9442 # before this can be enabled. 9443 hardcode_into_libs=yes 9444 9445 # Append ld.so.conf contents to the search path 9446 if test -f /etc/ld.so.conf; then 9447 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9448 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9449 fi 9450 9451 # We used to test for /lib/ld.so.1 and disable shared libraries on 9452 # powerpc, because MkLinux only supported shared libraries with the 9453 # GNU dynamic linker. Since this was broken with cross compilers, 9454 # most powerpc-linux boxes support dynamic linking these days and 9455 # people can always --disable-shared, the test was removed, and we 9456 # assume the GNU/Linux dynamic linker is in use. 9457 dynamic_linker='GNU/Linux ld.so' 9458 ;; 9459 9460netbsd*) 9461 version_type=sunos 9462 need_lib_prefix=no 9463 need_version=no 9464 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9467 dynamic_linker='NetBSD (a.out) ld.so' 9468 else 9469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9470 soname_spec='${libname}${release}${shared_ext}$major' 9471 dynamic_linker='NetBSD ld.elf_so' 9472 fi 9473 shlibpath_var=LD_LIBRARY_PATH 9474 shlibpath_overrides_runpath=yes 9475 hardcode_into_libs=yes 9476 ;; 9477 9478newsos6) 9479 version_type=linux 9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9481 shlibpath_var=LD_LIBRARY_PATH 9482 shlibpath_overrides_runpath=yes 9483 ;; 9484 9485nto-qnx*) 9486 version_type=linux 9487 need_lib_prefix=no 9488 need_version=no 9489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9490 soname_spec='${libname}${release}${shared_ext}$major' 9491 shlibpath_var=LD_LIBRARY_PATH 9492 shlibpath_overrides_runpath=yes 9493 ;; 9494 9495openbsd*) 9496 version_type=sunos 9497 sys_lib_dlsearch_path_spec="/usr/lib" 9498 need_lib_prefix=no 9499 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9500 case $host_os in 9501 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9502 *) need_version=no ;; 9503 esac 9504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9506 shlibpath_var=LD_LIBRARY_PATH 9507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9508 case $host_os in 9509 openbsd2.[89] | openbsd2.[89].*) 9510 shlibpath_overrides_runpath=no 9511 ;; 9512 *) 9513 shlibpath_overrides_runpath=yes 9514 ;; 9515 esac 9516 else 9517 shlibpath_overrides_runpath=yes 9518 fi 9519 ;; 9520 9521os2*) 9522 libname_spec='$name' 9523 shrext_cmds=".dll" 9524 need_lib_prefix=no 9525 library_names_spec='$libname${shared_ext} $libname.a' 9526 dynamic_linker='OS/2 ld.exe' 9527 shlibpath_var=LIBPATH 9528 ;; 9529 9530osf3* | osf4* | osf5*) 9531 version_type=osf 9532 need_lib_prefix=no 9533 need_version=no 9534 soname_spec='${libname}${release}${shared_ext}$major' 9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9536 shlibpath_var=LD_LIBRARY_PATH 9537 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9538 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9539 ;; 9540 9541rdos*) 9542 dynamic_linker=no 9543 ;; 9544 9545solaris*) 9546 version_type=linux 9547 need_lib_prefix=no 9548 need_version=no 9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9550 soname_spec='${libname}${release}${shared_ext}$major' 9551 shlibpath_var=LD_LIBRARY_PATH 9552 shlibpath_overrides_runpath=yes 9553 hardcode_into_libs=yes 9554 # ldd complains unless libraries are executable 9555 postinstall_cmds='chmod +x $lib' 9556 ;; 9557 9558sunos4*) 9559 version_type=sunos 9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9562 shlibpath_var=LD_LIBRARY_PATH 9563 shlibpath_overrides_runpath=yes 9564 if test "$with_gnu_ld" = yes; then 9565 need_lib_prefix=no 9566 fi 9567 need_version=yes 9568 ;; 9569 9570sysv4 | sysv4.3*) 9571 version_type=linux 9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9573 soname_spec='${libname}${release}${shared_ext}$major' 9574 shlibpath_var=LD_LIBRARY_PATH 9575 case $host_vendor in 9576 sni) 9577 shlibpath_overrides_runpath=no 9578 need_lib_prefix=no 9579 export_dynamic_flag_spec='${wl}-Blargedynsym' 9580 runpath_var=LD_RUN_PATH 9581 ;; 9582 siemens) 9583 need_lib_prefix=no 9584 ;; 9585 motorola) 9586 need_lib_prefix=no 9587 need_version=no 9588 shlibpath_overrides_runpath=no 9589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9590 ;; 9591 esac 9592 ;; 9593 9594sysv4*MP*) 9595 if test -d /usr/nec ;then 9596 version_type=linux 9597 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9598 soname_spec='$libname${shared_ext}.$major' 9599 shlibpath_var=LD_LIBRARY_PATH 9600 fi 9601 ;; 9602 9603sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9604 version_type=freebsd-elf 9605 need_lib_prefix=no 9606 need_version=no 9607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9608 soname_spec='${libname}${release}${shared_ext}$major' 9609 shlibpath_var=LD_LIBRARY_PATH 9610 hardcode_into_libs=yes 9611 if test "$with_gnu_ld" = yes; then 9612 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9613 shlibpath_overrides_runpath=no 9614 else 9615 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9616 shlibpath_overrides_runpath=yes 9617 case $host_os in 9618 sco3.2v5*) 9619 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9620 ;; 9621 esac 9622 fi 9623 sys_lib_dlsearch_path_spec='/usr/lib' 9624 ;; 9625 9626uts4*) 9627 version_type=linux 9628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9629 soname_spec='${libname}${release}${shared_ext}$major' 9630 shlibpath_var=LD_LIBRARY_PATH 9631 ;; 9632 9633*) 9634 dynamic_linker=no 9635 ;; 9636esac 9637{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9638$as_echo "$dynamic_linker" >&6; } 9639test "$dynamic_linker" = no && can_build_shared=no 9640 9641if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9642 $as_echo_n "(cached) " >&6 9643else 9644 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9645fi 9646 9647sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9648if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9649 $as_echo_n "(cached) " >&6 9650else 9651 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9652fi 9653 9654sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9655 9656variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9657if test "$GCC" = yes; then 9658 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9659fi 9660 9661{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9662$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9663hardcode_action= 9664if test -n "$hardcode_libdir_flag_spec" || \ 9665 test -n "$runpath_var" || \ 9666 test "X$hardcode_automatic" = "Xyes" ; then 9667 9668 # We can hardcode non-existant directories. 9669 if test "$hardcode_direct" != no && 9670 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9671 # have to relink, otherwise we might link with an installed library 9672 # when we should be linking with a yet-to-be-installed one 9673 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9674 test "$hardcode_minus_L" != no; then 9675 # Linking always hardcodes the temporary library directory. 9676 hardcode_action=relink 9677 else 9678 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9679 hardcode_action=immediate 9680 fi 9681else 9682 # We cannot hardcode anything, or else we can only hardcode existing 9683 # directories. 9684 hardcode_action=unsupported 9685fi 9686{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 9687$as_echo "$hardcode_action" >&6; } 9688 9689if test "$hardcode_action" = relink; then 9690 # Fast installation is not supported 9691 enable_fast_install=no 9692elif test "$shlibpath_overrides_runpath" = yes || 9693 test "$enable_shared" = no; then 9694 # Fast installation is not necessary 9695 enable_fast_install=needless 9696fi 9697 9698striplib= 9699old_striplib= 9700{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9701$as_echo_n "checking whether stripping libraries is possible... " >&6; } 9702if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9703 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9704 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9705 { $as_echo "$as_me:$LINENO: result: yes" >&5 9706$as_echo "yes" >&6; } 9707else 9708# FIXME - insert some real tests, host_os isn't really good enough 9709 case $host_os in 9710 darwin*) 9711 if test -n "$STRIP" ; then 9712 striplib="$STRIP -x" 9713 old_striplib="$STRIP -S" 9714 { $as_echo "$as_me:$LINENO: result: yes" >&5 9715$as_echo "yes" >&6; } 9716 else 9717 { $as_echo "$as_me:$LINENO: result: no" >&5 9718$as_echo "no" >&6; } 9719fi 9720 ;; 9721 *) 9722 { $as_echo "$as_me:$LINENO: result: no" >&5 9723$as_echo "no" >&6; } 9724 ;; 9725 esac 9726fi 9727 9728if test "x$enable_dlopen" != xyes; then 9729 enable_dlopen=unknown 9730 enable_dlopen_self=unknown 9731 enable_dlopen_self_static=unknown 9732else 9733 lt_cv_dlopen=no 9734 lt_cv_dlopen_libs= 9735 9736 case $host_os in 9737 beos*) 9738 lt_cv_dlopen="load_add_on" 9739 lt_cv_dlopen_libs= 9740 lt_cv_dlopen_self=yes 9741 ;; 9742 9743 mingw* | pw32*) 9744 lt_cv_dlopen="LoadLibrary" 9745 lt_cv_dlopen_libs= 9746 ;; 9747 9748 cygwin*) 9749 lt_cv_dlopen="dlopen" 9750 lt_cv_dlopen_libs= 9751 ;; 9752 9753 darwin*) 9754 # if libdl is installed we need to link against it 9755 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9756$as_echo_n "checking for dlopen in -ldl... " >&6; } 9757if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9758 $as_echo_n "(cached) " >&6 9759else 9760 ac_check_lib_save_LIBS=$LIBS 9761LIBS="-ldl $LIBS" 9762cat >conftest.$ac_ext <<_ACEOF 9763/* confdefs.h. */ 9764_ACEOF 9765cat confdefs.h >>conftest.$ac_ext 9766cat >>conftest.$ac_ext <<_ACEOF 9767/* end confdefs.h. */ 9768 9769/* Override any GCC internal prototype to avoid an error. 9770 Use char because int might match the return type of a GCC 9771 builtin and then its argument prototype would still apply. */ 9772#ifdef __cplusplus 9773extern "C" 9774#endif 9775char dlopen (); 9776int 9777main () 9778{ 9779return dlopen (); 9780 ; 9781 return 0; 9782} 9783_ACEOF 9784rm -f conftest.$ac_objext conftest$ac_exeext 9785if { (ac_try="$ac_link" 9786case "(($ac_try" in 9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9788 *) ac_try_echo=$ac_try;; 9789esac 9790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9791$as_echo "$ac_try_echo") >&5 9792 (eval "$ac_link") 2>conftest.er1 9793 ac_status=$? 9794 grep -v '^ *+' conftest.er1 >conftest.err 9795 rm -f conftest.er1 9796 cat conftest.err >&5 9797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9798 (exit $ac_status); } && { 9799 test -z "$ac_c_werror_flag" || 9800 test ! -s conftest.err 9801 } && test -s conftest$ac_exeext && { 9802 test "$cross_compiling" = yes || 9803 $as_test_x conftest$ac_exeext 9804 }; then 9805 ac_cv_lib_dl_dlopen=yes 9806else 9807 $as_echo "$as_me: failed program was:" >&5 9808sed 's/^/| /' conftest.$ac_ext >&5 9809 9810 ac_cv_lib_dl_dlopen=no 9811fi 9812 9813rm -rf conftest.dSYM 9814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9815 conftest$ac_exeext conftest.$ac_ext 9816LIBS=$ac_check_lib_save_LIBS 9817fi 9818{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9819$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9820if test $ac_cv_lib_dl_dlopen = yes; then 9821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9822else 9823 9824 lt_cv_dlopen="dyld" 9825 lt_cv_dlopen_libs= 9826 lt_cv_dlopen_self=yes 9827 9828fi 9829 9830 ;; 9831 9832 *) 9833 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9834$as_echo_n "checking for shl_load... " >&6; } 9835if test "${ac_cv_func_shl_load+set}" = set; then 9836 $as_echo_n "(cached) " >&6 9837else 9838 cat >conftest.$ac_ext <<_ACEOF 9839/* confdefs.h. */ 9840_ACEOF 9841cat confdefs.h >>conftest.$ac_ext 9842cat >>conftest.$ac_ext <<_ACEOF 9843/* end confdefs.h. */ 9844/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9845 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9846#define shl_load innocuous_shl_load 9847 9848/* System header to define __stub macros and hopefully few prototypes, 9849 which can conflict with char shl_load (); below. 9850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9851 <limits.h> exists even on freestanding compilers. */ 9852 9853#ifdef __STDC__ 9854# include <limits.h> 9855#else 9856# include <assert.h> 9857#endif 9858 9859#undef shl_load 9860 9861/* Override any GCC internal prototype to avoid an error. 9862 Use char because int might match the return type of a GCC 9863 builtin and then its argument prototype would still apply. */ 9864#ifdef __cplusplus 9865extern "C" 9866#endif 9867char shl_load (); 9868/* The GNU C library defines this for functions which it implements 9869 to always fail with ENOSYS. Some functions are actually named 9870 something starting with __ and the normal name is an alias. */ 9871#if defined __stub_shl_load || defined __stub___shl_load 9872choke me 9873#endif 9874 9875int 9876main () 9877{ 9878return shl_load (); 9879 ; 9880 return 0; 9881} 9882_ACEOF 9883rm -f conftest.$ac_objext conftest$ac_exeext 9884if { (ac_try="$ac_link" 9885case "(($ac_try" in 9886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9887 *) ac_try_echo=$ac_try;; 9888esac 9889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9890$as_echo "$ac_try_echo") >&5 9891 (eval "$ac_link") 2>conftest.er1 9892 ac_status=$? 9893 grep -v '^ *+' conftest.er1 >conftest.err 9894 rm -f conftest.er1 9895 cat conftest.err >&5 9896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9897 (exit $ac_status); } && { 9898 test -z "$ac_c_werror_flag" || 9899 test ! -s conftest.err 9900 } && test -s conftest$ac_exeext && { 9901 test "$cross_compiling" = yes || 9902 $as_test_x conftest$ac_exeext 9903 }; then 9904 ac_cv_func_shl_load=yes 9905else 9906 $as_echo "$as_me: failed program was:" >&5 9907sed 's/^/| /' conftest.$ac_ext >&5 9908 9909 ac_cv_func_shl_load=no 9910fi 9911 9912rm -rf conftest.dSYM 9913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9914 conftest$ac_exeext conftest.$ac_ext 9915fi 9916{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9917$as_echo "$ac_cv_func_shl_load" >&6; } 9918if test $ac_cv_func_shl_load = yes; then 9919 lt_cv_dlopen="shl_load" 9920else 9921 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9922$as_echo_n "checking for shl_load in -ldld... " >&6; } 9923if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9924 $as_echo_n "(cached) " >&6 9925else 9926 ac_check_lib_save_LIBS=$LIBS 9927LIBS="-ldld $LIBS" 9928cat >conftest.$ac_ext <<_ACEOF 9929/* confdefs.h. */ 9930_ACEOF 9931cat confdefs.h >>conftest.$ac_ext 9932cat >>conftest.$ac_ext <<_ACEOF 9933/* end confdefs.h. */ 9934 9935/* Override any GCC internal prototype to avoid an error. 9936 Use char because int might match the return type of a GCC 9937 builtin and then its argument prototype would still apply. */ 9938#ifdef __cplusplus 9939extern "C" 9940#endif 9941char shl_load (); 9942int 9943main () 9944{ 9945return shl_load (); 9946 ; 9947 return 0; 9948} 9949_ACEOF 9950rm -f conftest.$ac_objext conftest$ac_exeext 9951if { (ac_try="$ac_link" 9952case "(($ac_try" in 9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9954 *) ac_try_echo=$ac_try;; 9955esac 9956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9957$as_echo "$ac_try_echo") >&5 9958 (eval "$ac_link") 2>conftest.er1 9959 ac_status=$? 9960 grep -v '^ *+' conftest.er1 >conftest.err 9961 rm -f conftest.er1 9962 cat conftest.err >&5 9963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9964 (exit $ac_status); } && { 9965 test -z "$ac_c_werror_flag" || 9966 test ! -s conftest.err 9967 } && test -s conftest$ac_exeext && { 9968 test "$cross_compiling" = yes || 9969 $as_test_x conftest$ac_exeext 9970 }; then 9971 ac_cv_lib_dld_shl_load=yes 9972else 9973 $as_echo "$as_me: failed program was:" >&5 9974sed 's/^/| /' conftest.$ac_ext >&5 9975 9976 ac_cv_lib_dld_shl_load=no 9977fi 9978 9979rm -rf conftest.dSYM 9980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9981 conftest$ac_exeext conftest.$ac_ext 9982LIBS=$ac_check_lib_save_LIBS 9983fi 9984{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9985$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9986if test $ac_cv_lib_dld_shl_load = yes; then 9987 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9988else 9989 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 9990$as_echo_n "checking for dlopen... " >&6; } 9991if test "${ac_cv_func_dlopen+set}" = set; then 9992 $as_echo_n "(cached) " >&6 9993else 9994 cat >conftest.$ac_ext <<_ACEOF 9995/* confdefs.h. */ 9996_ACEOF 9997cat confdefs.h >>conftest.$ac_ext 9998cat >>conftest.$ac_ext <<_ACEOF 9999/* end confdefs.h. */ 10000/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10001 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10002#define dlopen innocuous_dlopen 10003 10004/* System header to define __stub macros and hopefully few prototypes, 10005 which can conflict with char dlopen (); below. 10006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10007 <limits.h> exists even on freestanding compilers. */ 10008 10009#ifdef __STDC__ 10010# include <limits.h> 10011#else 10012# include <assert.h> 10013#endif 10014 10015#undef dlopen 10016 10017/* Override any GCC internal prototype to avoid an error. 10018 Use char because int might match the return type of a GCC 10019 builtin and then its argument prototype would still apply. */ 10020#ifdef __cplusplus 10021extern "C" 10022#endif 10023char dlopen (); 10024/* The GNU C library defines this for functions which it implements 10025 to always fail with ENOSYS. Some functions are actually named 10026 something starting with __ and the normal name is an alias. */ 10027#if defined __stub_dlopen || defined __stub___dlopen 10028choke me 10029#endif 10030 10031int 10032main () 10033{ 10034return dlopen (); 10035 ; 10036 return 0; 10037} 10038_ACEOF 10039rm -f conftest.$ac_objext conftest$ac_exeext 10040if { (ac_try="$ac_link" 10041case "(($ac_try" in 10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10043 *) ac_try_echo=$ac_try;; 10044esac 10045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10046$as_echo "$ac_try_echo") >&5 10047 (eval "$ac_link") 2>conftest.er1 10048 ac_status=$? 10049 grep -v '^ *+' conftest.er1 >conftest.err 10050 rm -f conftest.er1 10051 cat conftest.err >&5 10052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10053 (exit $ac_status); } && { 10054 test -z "$ac_c_werror_flag" || 10055 test ! -s conftest.err 10056 } && test -s conftest$ac_exeext && { 10057 test "$cross_compiling" = yes || 10058 $as_test_x conftest$ac_exeext 10059 }; then 10060 ac_cv_func_dlopen=yes 10061else 10062 $as_echo "$as_me: failed program was:" >&5 10063sed 's/^/| /' conftest.$ac_ext >&5 10064 10065 ac_cv_func_dlopen=no 10066fi 10067 10068rm -rf conftest.dSYM 10069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10070 conftest$ac_exeext conftest.$ac_ext 10071fi 10072{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10073$as_echo "$ac_cv_func_dlopen" >&6; } 10074if test $ac_cv_func_dlopen = yes; then 10075 lt_cv_dlopen="dlopen" 10076else 10077 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10078$as_echo_n "checking for dlopen in -ldl... " >&6; } 10079if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10080 $as_echo_n "(cached) " >&6 10081else 10082 ac_check_lib_save_LIBS=$LIBS 10083LIBS="-ldl $LIBS" 10084cat >conftest.$ac_ext <<_ACEOF 10085/* confdefs.h. */ 10086_ACEOF 10087cat confdefs.h >>conftest.$ac_ext 10088cat >>conftest.$ac_ext <<_ACEOF 10089/* end confdefs.h. */ 10090 10091/* Override any GCC internal prototype to avoid an error. 10092 Use char because int might match the return type of a GCC 10093 builtin and then its argument prototype would still apply. */ 10094#ifdef __cplusplus 10095extern "C" 10096#endif 10097char dlopen (); 10098int 10099main () 10100{ 10101return dlopen (); 10102 ; 10103 return 0; 10104} 10105_ACEOF 10106rm -f conftest.$ac_objext conftest$ac_exeext 10107if { (ac_try="$ac_link" 10108case "(($ac_try" in 10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10110 *) ac_try_echo=$ac_try;; 10111esac 10112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10113$as_echo "$ac_try_echo") >&5 10114 (eval "$ac_link") 2>conftest.er1 10115 ac_status=$? 10116 grep -v '^ *+' conftest.er1 >conftest.err 10117 rm -f conftest.er1 10118 cat conftest.err >&5 10119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10120 (exit $ac_status); } && { 10121 test -z "$ac_c_werror_flag" || 10122 test ! -s conftest.err 10123 } && test -s conftest$ac_exeext && { 10124 test "$cross_compiling" = yes || 10125 $as_test_x conftest$ac_exeext 10126 }; then 10127 ac_cv_lib_dl_dlopen=yes 10128else 10129 $as_echo "$as_me: failed program was:" >&5 10130sed 's/^/| /' conftest.$ac_ext >&5 10131 10132 ac_cv_lib_dl_dlopen=no 10133fi 10134 10135rm -rf conftest.dSYM 10136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10137 conftest$ac_exeext conftest.$ac_ext 10138LIBS=$ac_check_lib_save_LIBS 10139fi 10140{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10141$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10142if test $ac_cv_lib_dl_dlopen = yes; then 10143 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10144else 10145 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10146$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10147if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10148 $as_echo_n "(cached) " >&6 10149else 10150 ac_check_lib_save_LIBS=$LIBS 10151LIBS="-lsvld $LIBS" 10152cat >conftest.$ac_ext <<_ACEOF 10153/* confdefs.h. */ 10154_ACEOF 10155cat confdefs.h >>conftest.$ac_ext 10156cat >>conftest.$ac_ext <<_ACEOF 10157/* end confdefs.h. */ 10158 10159/* Override any GCC internal prototype to avoid an error. 10160 Use char because int might match the return type of a GCC 10161 builtin and then its argument prototype would still apply. */ 10162#ifdef __cplusplus 10163extern "C" 10164#endif 10165char dlopen (); 10166int 10167main () 10168{ 10169return dlopen (); 10170 ; 10171 return 0; 10172} 10173_ACEOF 10174rm -f conftest.$ac_objext conftest$ac_exeext 10175if { (ac_try="$ac_link" 10176case "(($ac_try" in 10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10178 *) ac_try_echo=$ac_try;; 10179esac 10180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10181$as_echo "$ac_try_echo") >&5 10182 (eval "$ac_link") 2>conftest.er1 10183 ac_status=$? 10184 grep -v '^ *+' conftest.er1 >conftest.err 10185 rm -f conftest.er1 10186 cat conftest.err >&5 10187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10188 (exit $ac_status); } && { 10189 test -z "$ac_c_werror_flag" || 10190 test ! -s conftest.err 10191 } && test -s conftest$ac_exeext && { 10192 test "$cross_compiling" = yes || 10193 $as_test_x conftest$ac_exeext 10194 }; then 10195 ac_cv_lib_svld_dlopen=yes 10196else 10197 $as_echo "$as_me: failed program was:" >&5 10198sed 's/^/| /' conftest.$ac_ext >&5 10199 10200 ac_cv_lib_svld_dlopen=no 10201fi 10202 10203rm -rf conftest.dSYM 10204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10205 conftest$ac_exeext conftest.$ac_ext 10206LIBS=$ac_check_lib_save_LIBS 10207fi 10208{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10209$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10210if test $ac_cv_lib_svld_dlopen = yes; then 10211 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10212else 10213 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10214$as_echo_n "checking for dld_link in -ldld... " >&6; } 10215if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10216 $as_echo_n "(cached) " >&6 10217else 10218 ac_check_lib_save_LIBS=$LIBS 10219LIBS="-ldld $LIBS" 10220cat >conftest.$ac_ext <<_ACEOF 10221/* confdefs.h. */ 10222_ACEOF 10223cat confdefs.h >>conftest.$ac_ext 10224cat >>conftest.$ac_ext <<_ACEOF 10225/* end confdefs.h. */ 10226 10227/* Override any GCC internal prototype to avoid an error. 10228 Use char because int might match the return type of a GCC 10229 builtin and then its argument prototype would still apply. */ 10230#ifdef __cplusplus 10231extern "C" 10232#endif 10233char dld_link (); 10234int 10235main () 10236{ 10237return dld_link (); 10238 ; 10239 return 0; 10240} 10241_ACEOF 10242rm -f conftest.$ac_objext conftest$ac_exeext 10243if { (ac_try="$ac_link" 10244case "(($ac_try" in 10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10246 *) ac_try_echo=$ac_try;; 10247esac 10248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10249$as_echo "$ac_try_echo") >&5 10250 (eval "$ac_link") 2>conftest.er1 10251 ac_status=$? 10252 grep -v '^ *+' conftest.er1 >conftest.err 10253 rm -f conftest.er1 10254 cat conftest.err >&5 10255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10256 (exit $ac_status); } && { 10257 test -z "$ac_c_werror_flag" || 10258 test ! -s conftest.err 10259 } && test -s conftest$ac_exeext && { 10260 test "$cross_compiling" = yes || 10261 $as_test_x conftest$ac_exeext 10262 }; then 10263 ac_cv_lib_dld_dld_link=yes 10264else 10265 $as_echo "$as_me: failed program was:" >&5 10266sed 's/^/| /' conftest.$ac_ext >&5 10267 10268 ac_cv_lib_dld_dld_link=no 10269fi 10270 10271rm -rf conftest.dSYM 10272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10273 conftest$ac_exeext conftest.$ac_ext 10274LIBS=$ac_check_lib_save_LIBS 10275fi 10276{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10277$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10278if test $ac_cv_lib_dld_dld_link = yes; then 10279 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10280fi 10281 10282 10283fi 10284 10285 10286fi 10287 10288 10289fi 10290 10291 10292fi 10293 10294 10295fi 10296 10297 ;; 10298 esac 10299 10300 if test "x$lt_cv_dlopen" != xno; then 10301 enable_dlopen=yes 10302 else 10303 enable_dlopen=no 10304 fi 10305 10306 case $lt_cv_dlopen in 10307 dlopen) 10308 save_CPPFLAGS="$CPPFLAGS" 10309 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10310 10311 save_LDFLAGS="$LDFLAGS" 10312 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10313 10314 save_LIBS="$LIBS" 10315 LIBS="$lt_cv_dlopen_libs $LIBS" 10316 10317 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10318$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10319if test "${lt_cv_dlopen_self+set}" = set; then 10320 $as_echo_n "(cached) " >&6 10321else 10322 if test "$cross_compiling" = yes; then : 10323 lt_cv_dlopen_self=cross 10324else 10325 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10326 lt_status=$lt_dlunknown 10327 cat > conftest.$ac_ext <<EOF 10328#line 10328 "configure" 10329#include "confdefs.h" 10330 10331#if HAVE_DLFCN_H 10332#include <dlfcn.h> 10333#endif 10334 10335#include <stdio.h> 10336 10337#ifdef RTLD_GLOBAL 10338# define LT_DLGLOBAL RTLD_GLOBAL 10339#else 10340# ifdef DL_GLOBAL 10341# define LT_DLGLOBAL DL_GLOBAL 10342# else 10343# define LT_DLGLOBAL 0 10344# endif 10345#endif 10346 10347/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10348 find out it does not work in some platform. */ 10349#ifndef LT_DLLAZY_OR_NOW 10350# ifdef RTLD_LAZY 10351# define LT_DLLAZY_OR_NOW RTLD_LAZY 10352# else 10353# ifdef DL_LAZY 10354# define LT_DLLAZY_OR_NOW DL_LAZY 10355# else 10356# ifdef RTLD_NOW 10357# define LT_DLLAZY_OR_NOW RTLD_NOW 10358# else 10359# ifdef DL_NOW 10360# define LT_DLLAZY_OR_NOW DL_NOW 10361# else 10362# define LT_DLLAZY_OR_NOW 0 10363# endif 10364# endif 10365# endif 10366# endif 10367#endif 10368 10369#ifdef __cplusplus 10370extern "C" void exit (int); 10371#endif 10372 10373void fnord() { int i=42;} 10374int main () 10375{ 10376 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10377 int status = $lt_dlunknown; 10378 10379 if (self) 10380 { 10381 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10382 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10383 /* dlclose (self); */ 10384 } 10385 else 10386 puts (dlerror ()); 10387 10388 exit (status); 10389} 10390EOF 10391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10392 (eval $ac_link) 2>&5 10393 ac_status=$? 10394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10395 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10396 (./conftest; exit; ) >&5 2>/dev/null 10397 lt_status=$? 10398 case x$lt_status in 10399 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10400 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10401 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10402 esac 10403 else : 10404 # compilation failed 10405 lt_cv_dlopen_self=no 10406 fi 10407fi 10408rm -fr conftest* 10409 10410 10411fi 10412{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10413$as_echo "$lt_cv_dlopen_self" >&6; } 10414 10415 if test "x$lt_cv_dlopen_self" = xyes; then 10416 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10417 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10418$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10419if test "${lt_cv_dlopen_self_static+set}" = set; then 10420 $as_echo_n "(cached) " >&6 10421else 10422 if test "$cross_compiling" = yes; then : 10423 lt_cv_dlopen_self_static=cross 10424else 10425 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10426 lt_status=$lt_dlunknown 10427 cat > conftest.$ac_ext <<EOF 10428#line 10428 "configure" 10429#include "confdefs.h" 10430 10431#if HAVE_DLFCN_H 10432#include <dlfcn.h> 10433#endif 10434 10435#include <stdio.h> 10436 10437#ifdef RTLD_GLOBAL 10438# define LT_DLGLOBAL RTLD_GLOBAL 10439#else 10440# ifdef DL_GLOBAL 10441# define LT_DLGLOBAL DL_GLOBAL 10442# else 10443# define LT_DLGLOBAL 0 10444# endif 10445#endif 10446 10447/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10448 find out it does not work in some platform. */ 10449#ifndef LT_DLLAZY_OR_NOW 10450# ifdef RTLD_LAZY 10451# define LT_DLLAZY_OR_NOW RTLD_LAZY 10452# else 10453# ifdef DL_LAZY 10454# define LT_DLLAZY_OR_NOW DL_LAZY 10455# else 10456# ifdef RTLD_NOW 10457# define LT_DLLAZY_OR_NOW RTLD_NOW 10458# else 10459# ifdef DL_NOW 10460# define LT_DLLAZY_OR_NOW DL_NOW 10461# else 10462# define LT_DLLAZY_OR_NOW 0 10463# endif 10464# endif 10465# endif 10466# endif 10467#endif 10468 10469#ifdef __cplusplus 10470extern "C" void exit (int); 10471#endif 10472 10473void fnord() { int i=42;} 10474int main () 10475{ 10476 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10477 int status = $lt_dlunknown; 10478 10479 if (self) 10480 { 10481 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10482 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10483 /* dlclose (self); */ 10484 } 10485 else 10486 puts (dlerror ()); 10487 10488 exit (status); 10489} 10490EOF 10491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10492 (eval $ac_link) 2>&5 10493 ac_status=$? 10494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10495 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10496 (./conftest; exit; ) >&5 2>/dev/null 10497 lt_status=$? 10498 case x$lt_status in 10499 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10500 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10501 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10502 esac 10503 else : 10504 # compilation failed 10505 lt_cv_dlopen_self_static=no 10506 fi 10507fi 10508rm -fr conftest* 10509 10510 10511fi 10512{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10513$as_echo "$lt_cv_dlopen_self_static" >&6; } 10514 fi 10515 10516 CPPFLAGS="$save_CPPFLAGS" 10517 LDFLAGS="$save_LDFLAGS" 10518 LIBS="$save_LIBS" 10519 ;; 10520 esac 10521 10522 case $lt_cv_dlopen_self in 10523 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10524 *) enable_dlopen_self=unknown ;; 10525 esac 10526 10527 case $lt_cv_dlopen_self_static in 10528 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10529 *) enable_dlopen_self_static=unknown ;; 10530 esac 10531fi 10532 10533 10534# Report which library types will actually be built 10535{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10536$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10537{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10538$as_echo "$can_build_shared" >&6; } 10539 10540{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10541$as_echo_n "checking whether to build shared libraries... " >&6; } 10542test "$can_build_shared" = "no" && enable_shared=no 10543 10544# On AIX, shared libraries and static libraries use the same namespace, and 10545# are all built from PIC. 10546case $host_os in 10547aix3*) 10548 test "$enable_shared" = yes && enable_static=no 10549 if test -n "$RANLIB"; then 10550 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10551 postinstall_cmds='$RANLIB $lib' 10552 fi 10553 ;; 10554 10555aix[4-9]*) 10556 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10557 test "$enable_shared" = yes && enable_static=no 10558 fi 10559 ;; 10560esac 10561{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10562$as_echo "$enable_shared" >&6; } 10563 10564{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10565$as_echo_n "checking whether to build static libraries... " >&6; } 10566# Make sure either enable_shared or enable_static is yes. 10567test "$enable_shared" = yes || enable_static=yes 10568{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10569$as_echo "$enable_static" >&6; } 10570 10571# The else clause should only fire when bootstrapping the 10572# libtool distribution, otherwise you forgot to ship ltmain.sh 10573# with your package, and you will get complaints that there are 10574# no rules to generate ltmain.sh. 10575if test -f "$ltmain"; then 10576 # See if we are running on zsh, and set the options which allow our commands through 10577 # without removal of \ escapes. 10578 if test -n "${ZSH_VERSION+set}" ; then 10579 setopt NO_GLOB_SUBST 10580 fi 10581 # Now quote all the things that may contain metacharacters while being 10582 # careful not to overquote the AC_SUBSTed values. We take copies of the 10583 # variables and quote the copies for generation of the libtool script. 10584 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10585 SED SHELL STRIP \ 10586 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10587 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10588 deplibs_check_method reload_flag reload_cmds need_locks \ 10589 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10590 lt_cv_sys_global_symbol_to_c_name_address \ 10591 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10592 old_postinstall_cmds old_postuninstall_cmds \ 10593 compiler \ 10594 CC \ 10595 LD \ 10596 lt_prog_compiler_wl \ 10597 lt_prog_compiler_pic \ 10598 lt_prog_compiler_static \ 10599 lt_prog_compiler_no_builtin_flag \ 10600 export_dynamic_flag_spec \ 10601 thread_safe_flag_spec \ 10602 whole_archive_flag_spec \ 10603 enable_shared_with_static_runtimes \ 10604 old_archive_cmds \ 10605 old_archive_from_new_cmds \ 10606 predep_objects \ 10607 postdep_objects \ 10608 predeps \ 10609 postdeps \ 10610 compiler_lib_search_path \ 10611 compiler_lib_search_dirs \ 10612 archive_cmds \ 10613 archive_expsym_cmds \ 10614 postinstall_cmds \ 10615 postuninstall_cmds \ 10616 old_archive_from_expsyms_cmds \ 10617 allow_undefined_flag \ 10618 no_undefined_flag \ 10619 export_symbols_cmds \ 10620 hardcode_libdir_flag_spec \ 10621 hardcode_libdir_flag_spec_ld \ 10622 hardcode_libdir_separator \ 10623 hardcode_automatic \ 10624 module_cmds \ 10625 module_expsym_cmds \ 10626 lt_cv_prog_compiler_c_o \ 10627 fix_srcfile_path \ 10628 exclude_expsyms \ 10629 include_expsyms; do 10630 10631 case $var in 10632 old_archive_cmds | \ 10633 old_archive_from_new_cmds | \ 10634 archive_cmds | \ 10635 archive_expsym_cmds | \ 10636 module_cmds | \ 10637 module_expsym_cmds | \ 10638 old_archive_from_expsyms_cmds | \ 10639 export_symbols_cmds | \ 10640 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10641 postinstall_cmds | postuninstall_cmds | \ 10642 old_postinstall_cmds | old_postuninstall_cmds | \ 10643 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10644 # Double-quote double-evaled strings. 10645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10646 ;; 10647 *) 10648 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10649 ;; 10650 esac 10651 done 10652 10653 case $lt_echo in 10654 *'\$0 --fallback-echo"') 10655 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10656 ;; 10657 esac 10658 10659cfgfile="${ofile}T" 10660 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10661 $rm -f "$cfgfile" 10662 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10663$as_echo "$as_me: creating $ofile" >&6;} 10664 10665 cat <<__EOF__ >> "$cfgfile" 10666#! $SHELL 10667 10668# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10669# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10670# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10671# 10672# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10673# Free Software Foundation, Inc. 10674# 10675# This file is part of GNU Libtool: 10676# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10677# 10678# This program is free software; you can redistribute it and/or modify 10679# it under the terms of the GNU General Public License as published by 10680# the Free Software Foundation; either version 2 of the License, or 10681# (at your option) any later version. 10682# 10683# This program is distributed in the hope that it will be useful, but 10684# WITHOUT ANY WARRANTY; without even the implied warranty of 10685# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10686# General Public License for more details. 10687# 10688# You should have received a copy of the GNU General Public License 10689# along with this program; if not, write to the Free Software 10690# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10691# 10692# As a special exception to the GNU General Public License, if you 10693# distribute this file as part of a program that contains a 10694# configuration script generated by Autoconf, you may include it under 10695# the same distribution terms that you use for the rest of that program. 10696 10697# A sed program that does not truncate output. 10698SED=$lt_SED 10699 10700# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10701Xsed="$SED -e 1s/^X//" 10702 10703# The HP-UX ksh and POSIX shell print the target directory to stdout 10704# if CDPATH is set. 10705(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10706 10707# The names of the tagged configurations supported by this script. 10708available_tags= 10709 10710# ### BEGIN LIBTOOL CONFIG 10711 10712# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10713 10714# Shell to use when invoking shell scripts. 10715SHELL=$lt_SHELL 10716 10717# Whether or not to build shared libraries. 10718build_libtool_libs=$enable_shared 10719 10720# Whether or not to build static libraries. 10721build_old_libs=$enable_static 10722 10723# Whether or not to add -lc for building shared libraries. 10724build_libtool_need_lc=$archive_cmds_need_lc 10725 10726# Whether or not to disallow shared libs when runtime libs are static 10727allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10728 10729# Whether or not to optimize for fast installation. 10730fast_install=$enable_fast_install 10731 10732# The host system. 10733host_alias=$host_alias 10734host=$host 10735host_os=$host_os 10736 10737# The build system. 10738build_alias=$build_alias 10739build=$build 10740build_os=$build_os 10741 10742# An echo program that does not interpret backslashes. 10743echo=$lt_echo 10744 10745# The archiver. 10746AR=$lt_AR 10747AR_FLAGS=$lt_AR_FLAGS 10748 10749# A C compiler. 10750LTCC=$lt_LTCC 10751 10752# LTCC compiler flags. 10753LTCFLAGS=$lt_LTCFLAGS 10754 10755# A language-specific compiler. 10756CC=$lt_compiler 10757 10758# Is the compiler the GNU C compiler? 10759with_gcc=$GCC 10760 10761# An ERE matcher. 10762EGREP=$lt_EGREP 10763 10764# The linker used to build libraries. 10765LD=$lt_LD 10766 10767# Whether we need hard or soft links. 10768LN_S=$lt_LN_S 10769 10770# A BSD-compatible nm program. 10771NM=$lt_NM 10772 10773# A symbol stripping program 10774STRIP=$lt_STRIP 10775 10776# Used to examine libraries when file_magic_cmd begins "file" 10777MAGIC_CMD=$MAGIC_CMD 10778 10779# Used on cygwin: DLL creation program. 10780DLLTOOL="$DLLTOOL" 10781 10782# Used on cygwin: object dumper. 10783OBJDUMP="$OBJDUMP" 10784 10785# Used on cygwin: assembler. 10786AS="$AS" 10787 10788# The name of the directory that contains temporary libtool files. 10789objdir=$objdir 10790 10791# How to create reloadable object files. 10792reload_flag=$lt_reload_flag 10793reload_cmds=$lt_reload_cmds 10794 10795# How to pass a linker flag through the compiler. 10796wl=$lt_lt_prog_compiler_wl 10797 10798# Object file suffix (normally "o"). 10799objext="$ac_objext" 10800 10801# Old archive suffix (normally "a"). 10802libext="$libext" 10803 10804# Shared library suffix (normally ".so"). 10805shrext_cmds='$shrext_cmds' 10806 10807# Executable file suffix (normally ""). 10808exeext="$exeext" 10809 10810# Additional compiler flags for building library objects. 10811pic_flag=$lt_lt_prog_compiler_pic 10812pic_mode=$pic_mode 10813 10814# What is the maximum length of a command? 10815max_cmd_len=$lt_cv_sys_max_cmd_len 10816 10817# Does compiler simultaneously support -c and -o options? 10818compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10819 10820# Must we lock files when doing compilation? 10821need_locks=$lt_need_locks 10822 10823# Do we need the lib prefix for modules? 10824need_lib_prefix=$need_lib_prefix 10825 10826# Do we need a version for libraries? 10827need_version=$need_version 10828 10829# Whether dlopen is supported. 10830dlopen_support=$enable_dlopen 10831 10832# Whether dlopen of programs is supported. 10833dlopen_self=$enable_dlopen_self 10834 10835# Whether dlopen of statically linked programs is supported. 10836dlopen_self_static=$enable_dlopen_self_static 10837 10838# Compiler flag to prevent dynamic linking. 10839link_static_flag=$lt_lt_prog_compiler_static 10840 10841# Compiler flag to turn off builtin functions. 10842no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10843 10844# Compiler flag to allow reflexive dlopens. 10845export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10846 10847# Compiler flag to generate shared objects directly from archives. 10848whole_archive_flag_spec=$lt_whole_archive_flag_spec 10849 10850# Compiler flag to generate thread-safe objects. 10851thread_safe_flag_spec=$lt_thread_safe_flag_spec 10852 10853# Library versioning type. 10854version_type=$version_type 10855 10856# Format of library name prefix. 10857libname_spec=$lt_libname_spec 10858 10859# List of archive names. First name is the real one, the rest are links. 10860# The last name is the one that the linker finds with -lNAME. 10861library_names_spec=$lt_library_names_spec 10862 10863# The coded name of the library, if different from the real name. 10864soname_spec=$lt_soname_spec 10865 10866# Commands used to build and install an old-style archive. 10867RANLIB=$lt_RANLIB 10868old_archive_cmds=$lt_old_archive_cmds 10869old_postinstall_cmds=$lt_old_postinstall_cmds 10870old_postuninstall_cmds=$lt_old_postuninstall_cmds 10871 10872# Create an old-style archive from a shared archive. 10873old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10874 10875# Create a temporary old-style archive to link instead of a shared archive. 10876old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10877 10878# Commands used to build and install a shared archive. 10879archive_cmds=$lt_archive_cmds 10880archive_expsym_cmds=$lt_archive_expsym_cmds 10881postinstall_cmds=$lt_postinstall_cmds 10882postuninstall_cmds=$lt_postuninstall_cmds 10883 10884# Commands used to build a loadable module (assumed same as above if empty) 10885module_cmds=$lt_module_cmds 10886module_expsym_cmds=$lt_module_expsym_cmds 10887 10888# Commands to strip libraries. 10889old_striplib=$lt_old_striplib 10890striplib=$lt_striplib 10891 10892# Dependencies to place before the objects being linked to create a 10893# shared library. 10894predep_objects=$lt_predep_objects 10895 10896# Dependencies to place after the objects being linked to create a 10897# shared library. 10898postdep_objects=$lt_postdep_objects 10899 10900# Dependencies to place before the objects being linked to create a 10901# shared library. 10902predeps=$lt_predeps 10903 10904# Dependencies to place after the objects being linked to create a 10905# shared library. 10906postdeps=$lt_postdeps 10907 10908# The directories searched by this compiler when creating a shared 10909# library 10910compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 10911 10912# The library search path used internally by the compiler when linking 10913# a shared library. 10914compiler_lib_search_path=$lt_compiler_lib_search_path 10915 10916# Method to check whether dependent libraries are shared objects. 10917deplibs_check_method=$lt_deplibs_check_method 10918 10919# Command to use when deplibs_check_method == file_magic. 10920file_magic_cmd=$lt_file_magic_cmd 10921 10922# Flag that allows shared libraries with undefined symbols to be built. 10923allow_undefined_flag=$lt_allow_undefined_flag 10924 10925# Flag that forces no undefined symbols. 10926no_undefined_flag=$lt_no_undefined_flag 10927 10928# Commands used to finish a libtool library installation in a directory. 10929finish_cmds=$lt_finish_cmds 10930 10931# Same as above, but a single script fragment to be evaled but not shown. 10932finish_eval=$lt_finish_eval 10933 10934# Take the output of nm and produce a listing of raw symbols and C names. 10935global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10936 10937# Transform the output of nm in a proper C declaration 10938global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10939 10940# Transform the output of nm in a C name address pair 10941global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10942 10943# This is the shared library runtime path variable. 10944runpath_var=$runpath_var 10945 10946# This is the shared library path variable. 10947shlibpath_var=$shlibpath_var 10948 10949# Is shlibpath searched before the hard-coded library search path? 10950shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10951 10952# How to hardcode a shared library path into an executable. 10953hardcode_action=$hardcode_action 10954 10955# Whether we should hardcode library paths into libraries. 10956hardcode_into_libs=$hardcode_into_libs 10957 10958# Flag to hardcode \$libdir into a binary during linking. 10959# This must work even if \$libdir does not exist. 10960hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10961 10962# If ld is used when linking, flag to hardcode \$libdir into 10963# a binary during linking. This must work even if \$libdir does 10964# not exist. 10965hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10966 10967# Whether we need a single -rpath flag with a separated argument. 10968hardcode_libdir_separator=$lt_hardcode_libdir_separator 10969 10970# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10971# resulting binary. 10972hardcode_direct=$hardcode_direct 10973 10974# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10975# resulting binary. 10976hardcode_minus_L=$hardcode_minus_L 10977 10978# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10979# the resulting binary. 10980hardcode_shlibpath_var=$hardcode_shlibpath_var 10981 10982# Set to yes if building a shared library automatically hardcodes DIR into the library 10983# and all subsequent libraries and executables linked against it. 10984hardcode_automatic=$hardcode_automatic 10985 10986# Variables whose values should be saved in libtool wrapper scripts and 10987# restored at relink time. 10988variables_saved_for_relink="$variables_saved_for_relink" 10989 10990# Whether libtool must link a program against all its dependency libraries. 10991link_all_deplibs=$link_all_deplibs 10992 10993# Compile-time system search path for libraries 10994sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10995 10996# Run-time system search path for libraries 10997sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10998 10999# Fix the shell variable \$srcfile for the compiler. 11000fix_srcfile_path=$lt_fix_srcfile_path 11001 11002# Set to yes if exported symbols are required. 11003always_export_symbols=$always_export_symbols 11004 11005# The commands to list exported symbols. 11006export_symbols_cmds=$lt_export_symbols_cmds 11007 11008# The commands to extract the exported symbol list from a shared archive. 11009extract_expsyms_cmds=$lt_extract_expsyms_cmds 11010 11011# Symbols that should not be listed in the preloaded symbols. 11012exclude_expsyms=$lt_exclude_expsyms 11013 11014# Symbols that must always be exported. 11015include_expsyms=$lt_include_expsyms 11016 11017# ### END LIBTOOL CONFIG 11018 11019__EOF__ 11020 11021 11022 case $host_os in 11023 aix3*) 11024 cat <<\EOF >> "$cfgfile" 11025 11026# AIX sometimes has problems with the GCC collect2 program. For some 11027# reason, if we set the COLLECT_NAMES environment variable, the problems 11028# vanish in a puff of smoke. 11029if test "X${COLLECT_NAMES+set}" != Xset; then 11030 COLLECT_NAMES= 11031 export COLLECT_NAMES 11032fi 11033EOF 11034 ;; 11035 esac 11036 11037 # We use sed instead of cat because bash on DJGPP gets confused if 11038 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11039 # text mode, it properly converts lines to CR/LF. This bash problem 11040 # is reportedly fixed, but why not run on old versions too? 11041 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11042 11043 mv -f "$cfgfile" "$ofile" || \ 11044 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11045 chmod +x "$ofile" 11046 11047else 11048 # If there is no Makefile yet, we rely on a make rule to execute 11049 # `config.status --recheck' to rerun these tests and create the 11050 # libtool script then. 11051 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11052 if test -f "$ltmain_in"; then 11053 test -f Makefile && make "$ltmain" 11054 fi 11055fi 11056 11057 11058ac_ext=c 11059ac_cpp='$CPP $CPPFLAGS' 11060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11062ac_compiler_gnu=$ac_cv_c_compiler_gnu 11063 11064CC="$lt_save_CC" 11065 11066 11067# Check whether --with-tags was given. 11068if test "${with_tags+set}" = set; then 11069 withval=$with_tags; tagnames="$withval" 11070fi 11071 11072 11073if test -f "$ltmain" && test -n "$tagnames"; then 11074 if test ! -f "${ofile}"; then 11075 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11076$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11077 fi 11078 11079 if test -z "$LTCC"; then 11080 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11081 if test -z "$LTCC"; then 11082 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11083$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11084 else 11085 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11086$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11087 fi 11088 fi 11089 if test -z "$LTCFLAGS"; then 11090 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11091 fi 11092 11093 # Extract list of available tagged configurations in $ofile. 11094 # Note that this assumes the entire list is on one line. 11095 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11096 11097 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11098 for tagname in $tagnames; do 11099 IFS="$lt_save_ifs" 11100 # Check whether tagname contains only valid characters 11101 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11102 "") ;; 11103 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11104$as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11105 { (exit 1); exit 1; }; } 11106 ;; 11107 esac 11108 11109 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11110 then 11111 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11112$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11113 { (exit 1); exit 1; }; } 11114 fi 11115 11116 # Update the list of available tags. 11117 if test -n "$tagname"; then 11118 echo appending configuration tag \"$tagname\" to $ofile 11119 11120 case $tagname in 11121 CXX) 11122 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11123 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11124 (test "X$CXX" != "Xg++"))) ; then 11125 ac_ext=cpp 11126ac_cpp='$CXXCPP $CPPFLAGS' 11127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11130 11131 11132 11133 11134archive_cmds_need_lc_CXX=no 11135allow_undefined_flag_CXX= 11136always_export_symbols_CXX=no 11137archive_expsym_cmds_CXX= 11138export_dynamic_flag_spec_CXX= 11139hardcode_direct_CXX=no 11140hardcode_libdir_flag_spec_CXX= 11141hardcode_libdir_flag_spec_ld_CXX= 11142hardcode_libdir_separator_CXX= 11143hardcode_minus_L_CXX=no 11144hardcode_shlibpath_var_CXX=unsupported 11145hardcode_automatic_CXX=no 11146module_cmds_CXX= 11147module_expsym_cmds_CXX= 11148link_all_deplibs_CXX=unknown 11149old_archive_cmds_CXX=$old_archive_cmds 11150no_undefined_flag_CXX= 11151whole_archive_flag_spec_CXX= 11152enable_shared_with_static_runtimes_CXX=no 11153 11154# Dependencies to place before and after the object being linked: 11155predep_objects_CXX= 11156postdep_objects_CXX= 11157predeps_CXX= 11158postdeps_CXX= 11159compiler_lib_search_path_CXX= 11160compiler_lib_search_dirs_CXX= 11161 11162# Source file extension for C++ test sources. 11163ac_ext=cpp 11164 11165# Object file extension for compiled C++ test sources. 11166objext=o 11167objext_CXX=$objext 11168 11169# Code to be used in simple compile tests 11170lt_simple_compile_test_code="int some_variable = 0;" 11171 11172# Code to be used in simple link tests 11173lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11174 11175# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11176 11177# If no C compiler was specified, use CC. 11178LTCC=${LTCC-"$CC"} 11179 11180# If no C compiler flags were specified, use CFLAGS. 11181LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11182 11183# Allow CC to be a program name with arguments. 11184compiler=$CC 11185 11186 11187# save warnings/boilerplate of simple test code 11188ac_outfile=conftest.$ac_objext 11189echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11190eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11191_lt_compiler_boilerplate=`cat conftest.err` 11192$rm conftest* 11193 11194ac_outfile=conftest.$ac_objext 11195echo "$lt_simple_link_test_code" >conftest.$ac_ext 11196eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11197_lt_linker_boilerplate=`cat conftest.err` 11198$rm -r conftest* 11199 11200 11201# Allow CC to be a program name with arguments. 11202lt_save_CC=$CC 11203lt_save_LD=$LD 11204lt_save_GCC=$GCC 11205GCC=$GXX 11206lt_save_with_gnu_ld=$with_gnu_ld 11207lt_save_path_LD=$lt_cv_path_LD 11208if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11209 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11210else 11211 $as_unset lt_cv_prog_gnu_ld 11212fi 11213if test -n "${lt_cv_path_LDCXX+set}"; then 11214 lt_cv_path_LD=$lt_cv_path_LDCXX 11215else 11216 $as_unset lt_cv_path_LD 11217fi 11218test -z "${LDCXX+set}" || LD=$LDCXX 11219CC=${CXX-"c++"} 11220compiler=$CC 11221compiler_CXX=$CC 11222for cc_temp in $compiler""; do 11223 case $cc_temp in 11224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11226 \-*) ;; 11227 *) break;; 11228 esac 11229done 11230cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11231 11232 11233# We don't want -fno-exception wen compiling C++ code, so set the 11234# no_builtin_flag separately 11235if test "$GXX" = yes; then 11236 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11237else 11238 lt_prog_compiler_no_builtin_flag_CXX= 11239fi 11240 11241if test "$GXX" = yes; then 11242 # Set up default GNU C++ configuration 11243 11244 11245# Check whether --with-gnu-ld was given. 11246if test "${with_gnu_ld+set}" = set; then 11247 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11248else 11249 with_gnu_ld=no 11250fi 11251 11252ac_prog=ld 11253if test "$GCC" = yes; then 11254 # Check if gcc -print-prog-name=ld gives a path. 11255 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11256$as_echo_n "checking for ld used by $CC... " >&6; } 11257 case $host in 11258 *-*-mingw*) 11259 # gcc leaves a trailing carriage return which upsets mingw 11260 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11261 *) 11262 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11263 esac 11264 case $ac_prog in 11265 # Accept absolute paths. 11266 [\\/]* | ?:[\\/]*) 11267 re_direlt='/[^/][^/]*/\.\./' 11268 # Canonicalize the pathname of ld 11269 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11270 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11271 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11272 done 11273 test -z "$LD" && LD="$ac_prog" 11274 ;; 11275 "") 11276 # If it fails, then pretend we aren't using GCC. 11277 ac_prog=ld 11278 ;; 11279 *) 11280 # If it is relative, then search for the first ld in PATH. 11281 with_gnu_ld=unknown 11282 ;; 11283 esac 11284elif test "$with_gnu_ld" = yes; then 11285 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 11286$as_echo_n "checking for GNU ld... " >&6; } 11287else 11288 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11289$as_echo_n "checking for non-GNU ld... " >&6; } 11290fi 11291if test "${lt_cv_path_LD+set}" = set; then 11292 $as_echo_n "(cached) " >&6 11293else 11294 if test -z "$LD"; then 11295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11296 for ac_dir in $PATH; do 11297 IFS="$lt_save_ifs" 11298 test -z "$ac_dir" && ac_dir=. 11299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11300 lt_cv_path_LD="$ac_dir/$ac_prog" 11301 # Check to see if the program is GNU ld. I'd rather use --version, 11302 # but apparently some variants of GNU ld only accept -v. 11303 # Break only if it was the GNU/non-GNU ld that we prefer. 11304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11305 *GNU* | *'with BFD'*) 11306 test "$with_gnu_ld" != no && break 11307 ;; 11308 *) 11309 test "$with_gnu_ld" != yes && break 11310 ;; 11311 esac 11312 fi 11313 done 11314 IFS="$lt_save_ifs" 11315else 11316 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11317fi 11318fi 11319 11320LD="$lt_cv_path_LD" 11321if test -n "$LD"; then 11322 { $as_echo "$as_me:$LINENO: result: $LD" >&5 11323$as_echo "$LD" >&6; } 11324else 11325 { $as_echo "$as_me:$LINENO: result: no" >&5 11326$as_echo "no" >&6; } 11327fi 11328test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11329$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11330 { (exit 1); exit 1; }; } 11331{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11332$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11333if test "${lt_cv_prog_gnu_ld+set}" = set; then 11334 $as_echo_n "(cached) " >&6 11335else 11336 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11337case `$LD -v 2>&1 </dev/null` in 11338*GNU* | *'with BFD'*) 11339 lt_cv_prog_gnu_ld=yes 11340 ;; 11341*) 11342 lt_cv_prog_gnu_ld=no 11343 ;; 11344esac 11345fi 11346{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11347$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11348with_gnu_ld=$lt_cv_prog_gnu_ld 11349 11350 11351 11352 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11353 # archiving commands below assume that GNU ld is being used. 11354 if test "$with_gnu_ld" = yes; then 11355 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11356 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' 11357 11358 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11359 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11360 11361 # If archive_cmds runs LD, not CC, wlarc should be empty 11362 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11363 # investigate it a little bit more. (MM) 11364 wlarc='${wl}' 11365 11366 # ancient GNU ld didn't support --whole-archive et. al. 11367 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11368 grep 'no-whole-archive' > /dev/null; then 11369 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11370 else 11371 whole_archive_flag_spec_CXX= 11372 fi 11373 else 11374 with_gnu_ld=no 11375 wlarc= 11376 11377 # A generic and very simple default shared library creation 11378 # command for GNU C++ for the case where it uses the native 11379 # linker, instead of GNU ld. If possible, this setting should 11380 # overridden to take advantage of the native linker features on 11381 # the platform it is being used on. 11382 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11383 fi 11384 11385 # Commands to make compiler produce verbose output that lists 11386 # what "hidden" libraries, object files and flags are used when 11387 # linking a shared library. 11388 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11389 11390else 11391 GXX=no 11392 with_gnu_ld=no 11393 wlarc= 11394fi 11395 11396# PORTME: fill in a description of your system's C++ link characteristics 11397{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11398$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11399ld_shlibs_CXX=yes 11400case $host_os in 11401 aix3*) 11402 # FIXME: insert proper C++ library support 11403 ld_shlibs_CXX=no 11404 ;; 11405 aix[4-9]*) 11406 if test "$host_cpu" = ia64; then 11407 # On IA64, the linker does run time linking by default, so we don't 11408 # have to do anything special. 11409 aix_use_runtimelinking=no 11410 exp_sym_flag='-Bexport' 11411 no_entry_flag="" 11412 else 11413 aix_use_runtimelinking=no 11414 11415 # Test if we are trying to use run time linking or normal 11416 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11417 # need to do runtime linking. 11418 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11419 for ld_flag in $LDFLAGS; do 11420 case $ld_flag in 11421 *-brtl*) 11422 aix_use_runtimelinking=yes 11423 break 11424 ;; 11425 esac 11426 done 11427 ;; 11428 esac 11429 11430 exp_sym_flag='-bexport' 11431 no_entry_flag='-bnoentry' 11432 fi 11433 11434 # When large executables or shared objects are built, AIX ld can 11435 # have problems creating the table of contents. If linking a library 11436 # or program results in "error TOC overflow" add -mminimal-toc to 11437 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11438 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11439 11440 archive_cmds_CXX='' 11441 hardcode_direct_CXX=yes 11442 hardcode_libdir_separator_CXX=':' 11443 link_all_deplibs_CXX=yes 11444 11445 if test "$GXX" = yes; then 11446 case $host_os in aix4.[012]|aix4.[012].*) 11447 # We only want to do this on AIX 4.2 and lower, the check 11448 # below for broken collect2 doesn't work under 4.3+ 11449 collect2name=`${CC} -print-prog-name=collect2` 11450 if test -f "$collect2name" && \ 11451 strings "$collect2name" | grep resolve_lib_name >/dev/null 11452 then 11453 # We have reworked collect2 11454 : 11455 else 11456 # We have old collect2 11457 hardcode_direct_CXX=unsupported 11458 # It fails to find uninstalled libraries when the uninstalled 11459 # path is not listed in the libpath. Setting hardcode_minus_L 11460 # to unsupported forces relinking 11461 hardcode_minus_L_CXX=yes 11462 hardcode_libdir_flag_spec_CXX='-L$libdir' 11463 hardcode_libdir_separator_CXX= 11464 fi 11465 ;; 11466 esac 11467 shared_flag='-shared' 11468 if test "$aix_use_runtimelinking" = yes; then 11469 shared_flag="$shared_flag "'${wl}-G' 11470 fi 11471 else 11472 # not using gcc 11473 if test "$host_cpu" = ia64; then 11474 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11475 # chokes on -Wl,-G. The following line is correct: 11476 shared_flag='-G' 11477 else 11478 if test "$aix_use_runtimelinking" = yes; then 11479 shared_flag='${wl}-G' 11480 else 11481 shared_flag='${wl}-bM:SRE' 11482 fi 11483 fi 11484 fi 11485 11486 # It seems that -bexpall does not export symbols beginning with 11487 # underscore (_), so it is better to generate a list of symbols to export. 11488 always_export_symbols_CXX=yes 11489 if test "$aix_use_runtimelinking" = yes; then 11490 # Warning - without using the other runtime loading flags (-brtl), 11491 # -berok will link without error, but may produce a broken library. 11492 allow_undefined_flag_CXX='-berok' 11493 # Determine the default libpath from the value encoded in an empty executable. 11494 cat >conftest.$ac_ext <<_ACEOF 11495/* confdefs.h. */ 11496_ACEOF 11497cat confdefs.h >>conftest.$ac_ext 11498cat >>conftest.$ac_ext <<_ACEOF 11499/* end confdefs.h. */ 11500 11501int 11502main () 11503{ 11504 11505 ; 11506 return 0; 11507} 11508_ACEOF 11509rm -f conftest.$ac_objext conftest$ac_exeext 11510if { (ac_try="$ac_link" 11511case "(($ac_try" in 11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11513 *) ac_try_echo=$ac_try;; 11514esac 11515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11516$as_echo "$ac_try_echo") >&5 11517 (eval "$ac_link") 2>conftest.er1 11518 ac_status=$? 11519 grep -v '^ *+' conftest.er1 >conftest.err 11520 rm -f conftest.er1 11521 cat conftest.err >&5 11522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11523 (exit $ac_status); } && { 11524 test -z "$ac_cxx_werror_flag" || 11525 test ! -s conftest.err 11526 } && test -s conftest$ac_exeext && { 11527 test "$cross_compiling" = yes || 11528 $as_test_x conftest$ac_exeext 11529 }; then 11530 11531lt_aix_libpath_sed=' 11532 /Import File Strings/,/^$/ { 11533 /^0/ { 11534 s/^0 *\(.*\)$/\1/ 11535 p 11536 } 11537 }' 11538aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11539# Check for a 64-bit object if we didn't find anything. 11540if test -z "$aix_libpath"; then 11541 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11542fi 11543else 11544 $as_echo "$as_me: failed program was:" >&5 11545sed 's/^/| /' conftest.$ac_ext >&5 11546 11547 11548fi 11549 11550rm -rf conftest.dSYM 11551rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11552 conftest$ac_exeext conftest.$ac_ext 11553if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11554 11555 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11556 11557 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" 11558 else 11559 if test "$host_cpu" = ia64; then 11560 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11561 allow_undefined_flag_CXX="-z nodefs" 11562 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" 11563 else 11564 # Determine the default libpath from the value encoded in an empty executable. 11565 cat >conftest.$ac_ext <<_ACEOF 11566/* confdefs.h. */ 11567_ACEOF 11568cat confdefs.h >>conftest.$ac_ext 11569cat >>conftest.$ac_ext <<_ACEOF 11570/* end confdefs.h. */ 11571 11572int 11573main () 11574{ 11575 11576 ; 11577 return 0; 11578} 11579_ACEOF 11580rm -f conftest.$ac_objext conftest$ac_exeext 11581if { (ac_try="$ac_link" 11582case "(($ac_try" in 11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11584 *) ac_try_echo=$ac_try;; 11585esac 11586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11587$as_echo "$ac_try_echo") >&5 11588 (eval "$ac_link") 2>conftest.er1 11589 ac_status=$? 11590 grep -v '^ *+' conftest.er1 >conftest.err 11591 rm -f conftest.er1 11592 cat conftest.err >&5 11593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11594 (exit $ac_status); } && { 11595 test -z "$ac_cxx_werror_flag" || 11596 test ! -s conftest.err 11597 } && test -s conftest$ac_exeext && { 11598 test "$cross_compiling" = yes || 11599 $as_test_x conftest$ac_exeext 11600 }; then 11601 11602lt_aix_libpath_sed=' 11603 /Import File Strings/,/^$/ { 11604 /^0/ { 11605 s/^0 *\(.*\)$/\1/ 11606 p 11607 } 11608 }' 11609aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11610# Check for a 64-bit object if we didn't find anything. 11611if test -z "$aix_libpath"; then 11612 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11613fi 11614else 11615 $as_echo "$as_me: failed program was:" >&5 11616sed 's/^/| /' conftest.$ac_ext >&5 11617 11618 11619fi 11620 11621rm -rf conftest.dSYM 11622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11623 conftest$ac_exeext conftest.$ac_ext 11624if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11625 11626 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11627 # Warning - without using the other run time loading flags, 11628 # -berok will link without error, but may produce a broken library. 11629 no_undefined_flag_CXX=' ${wl}-bernotok' 11630 allow_undefined_flag_CXX=' ${wl}-berok' 11631 # Exported symbols can be pulled into shared objects from archives 11632 whole_archive_flag_spec_CXX='$convenience' 11633 archive_cmds_need_lc_CXX=yes 11634 # This is similar to how AIX traditionally builds its shared libraries. 11635 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' 11636 fi 11637 fi 11638 ;; 11639 11640 beos*) 11641 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11642 allow_undefined_flag_CXX=unsupported 11643 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11644 # support --undefined. This deserves some investigation. FIXME 11645 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11646 else 11647 ld_shlibs_CXX=no 11648 fi 11649 ;; 11650 11651 chorus*) 11652 case $cc_basename in 11653 *) 11654 # FIXME: insert proper C++ library support 11655 ld_shlibs_CXX=no 11656 ;; 11657 esac 11658 ;; 11659 11660 cygwin* | mingw* | pw32*) 11661 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11662 # as there is no search path for DLLs. 11663 hardcode_libdir_flag_spec_CXX='-L$libdir' 11664 allow_undefined_flag_CXX=unsupported 11665 always_export_symbols_CXX=no 11666 enable_shared_with_static_runtimes_CXX=yes 11667 11668 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11669 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' 11670 # If the export-symbols file already is a .def file (1st line 11671 # is EXPORTS), use it as is; otherwise, prepend... 11672 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11673 cp $export_symbols $output_objdir/$soname.def; 11674 else 11675 echo EXPORTS > $output_objdir/$soname.def; 11676 cat $export_symbols >> $output_objdir/$soname.def; 11677 fi~ 11678 $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' 11679 else 11680 ld_shlibs_CXX=no 11681 fi 11682 ;; 11683 darwin* | rhapsody*) 11684 archive_cmds_need_lc_CXX=no 11685 hardcode_direct_CXX=no 11686 hardcode_automatic_CXX=yes 11687 hardcode_shlibpath_var_CXX=unsupported 11688 whole_archive_flag_spec_CXX='' 11689 link_all_deplibs_CXX=yes 11690 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11691 if test "$GXX" = yes ; then 11692 output_verbose_link_cmd='echo' 11693 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11694 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11695 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 11696 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 11697 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11698 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 11699 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 11700 fi 11701 else 11702 case $cc_basename in 11703 xlc*) 11704 output_verbose_link_cmd='echo' 11705 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11706 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11707 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11708 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11709 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}' 11710 ;; 11711 *) 11712 ld_shlibs_CXX=no 11713 ;; 11714 esac 11715 fi 11716 ;; 11717 11718 dgux*) 11719 case $cc_basename in 11720 ec++*) 11721 # FIXME: insert proper C++ library support 11722 ld_shlibs_CXX=no 11723 ;; 11724 ghcx*) 11725 # Green Hills C++ Compiler 11726 # FIXME: insert proper C++ library support 11727 ld_shlibs_CXX=no 11728 ;; 11729 *) 11730 # FIXME: insert proper C++ library support 11731 ld_shlibs_CXX=no 11732 ;; 11733 esac 11734 ;; 11735 freebsd[12]*) 11736 # C++ shared libraries reported to be fairly broken before switch to ELF 11737 ld_shlibs_CXX=no 11738 ;; 11739 freebsd-elf*) 11740 archive_cmds_need_lc_CXX=no 11741 ;; 11742 freebsd* | dragonfly*) 11743 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11744 # conventions 11745 ld_shlibs_CXX=yes 11746 ;; 11747 gnu*) 11748 ;; 11749 hpux9*) 11750 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11751 hardcode_libdir_separator_CXX=: 11752 export_dynamic_flag_spec_CXX='${wl}-E' 11753 hardcode_direct_CXX=yes 11754 hardcode_minus_L_CXX=yes # Not in the search PATH, 11755 # but as the default 11756 # location of the library. 11757 11758 case $cc_basename in 11759 CC*) 11760 # FIXME: insert proper C++ library support 11761 ld_shlibs_CXX=no 11762 ;; 11763 aCC*) 11764 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' 11765 # Commands to make compiler produce verbose output that lists 11766 # what "hidden" libraries, object files and flags are used when 11767 # linking a shared library. 11768 # 11769 # There doesn't appear to be a way to prevent this compiler from 11770 # explicitly linking system object files so we need to strip them 11771 # from the output so that they don't get included in the library 11772 # dependencies. 11773 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' 11774 ;; 11775 *) 11776 if test "$GXX" = yes; then 11777 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' 11778 else 11779 # FIXME: insert proper C++ library support 11780 ld_shlibs_CXX=no 11781 fi 11782 ;; 11783 esac 11784 ;; 11785 hpux10*|hpux11*) 11786 if test $with_gnu_ld = no; then 11787 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11788 hardcode_libdir_separator_CXX=: 11789 11790 case $host_cpu in 11791 hppa*64*|ia64*) ;; 11792 *) 11793 export_dynamic_flag_spec_CXX='${wl}-E' 11794 ;; 11795 esac 11796 fi 11797 case $host_cpu in 11798 hppa*64*|ia64*) 11799 hardcode_direct_CXX=no 11800 hardcode_shlibpath_var_CXX=no 11801 ;; 11802 *) 11803 hardcode_direct_CXX=yes 11804 hardcode_minus_L_CXX=yes # Not in the search PATH, 11805 # but as the default 11806 # location of the library. 11807 ;; 11808 esac 11809 11810 case $cc_basename in 11811 CC*) 11812 # FIXME: insert proper C++ library support 11813 ld_shlibs_CXX=no 11814 ;; 11815 aCC*) 11816 case $host_cpu in 11817 hppa*64*) 11818 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11819 ;; 11820 ia64*) 11821 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11822 ;; 11823 *) 11824 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11825 ;; 11826 esac 11827 # Commands to make compiler produce verbose output that lists 11828 # what "hidden" libraries, object files and flags are used when 11829 # linking a shared library. 11830 # 11831 # There doesn't appear to be a way to prevent this compiler from 11832 # explicitly linking system object files so we need to strip them 11833 # from the output so that they don't get included in the library 11834 # dependencies. 11835 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' 11836 ;; 11837 *) 11838 if test "$GXX" = yes; then 11839 if test $with_gnu_ld = no; then 11840 case $host_cpu in 11841 hppa*64*) 11842 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11843 ;; 11844 ia64*) 11845 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11846 ;; 11847 *) 11848 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' 11849 ;; 11850 esac 11851 fi 11852 else 11853 # FIXME: insert proper C++ library support 11854 ld_shlibs_CXX=no 11855 fi 11856 ;; 11857 esac 11858 ;; 11859 interix[3-9]*) 11860 hardcode_direct_CXX=no 11861 hardcode_shlibpath_var_CXX=no 11862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11863 export_dynamic_flag_spec_CXX='${wl}-E' 11864 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11865 # Instead, shared libraries are loaded at an image base (0x10000000 by 11866 # default) and relocated if they conflict, which is a slow very memory 11867 # consuming and fragmenting process. To avoid this, we pick a random, 11868 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11869 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11870 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' 11871 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' 11872 ;; 11873 irix5* | irix6*) 11874 case $cc_basename in 11875 CC*) 11876 # SGI C++ 11877 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' 11878 11879 # Archives containing C++ object files must be created using 11880 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11881 # necessary to make sure instantiated templates are included 11882 # in the archive. 11883 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11884 ;; 11885 *) 11886 if test "$GXX" = yes; then 11887 if test "$with_gnu_ld" = no; then 11888 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' 11889 else 11890 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' 11891 fi 11892 fi 11893 link_all_deplibs_CXX=yes 11894 ;; 11895 esac 11896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11897 hardcode_libdir_separator_CXX=: 11898 ;; 11899 linux* | k*bsd*-gnu) 11900 case $cc_basename in 11901 KCC*) 11902 # Kuck and Associates, Inc. (KAI) C++ Compiler 11903 11904 # KCC will only create a shared library if the output file 11905 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11906 # to its proper name (with version) after linking. 11907 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' 11908 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' 11909 # Commands to make compiler produce verbose output that lists 11910 # what "hidden" libraries, object files and flags are used when 11911 # linking a shared library. 11912 # 11913 # There doesn't appear to be a way to prevent this compiler from 11914 # explicitly linking system object files so we need to strip them 11915 # from the output so that they don't get included in the library 11916 # dependencies. 11917 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' 11918 11919 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11920 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11921 11922 # Archives containing C++ object files must be created using 11923 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11924 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11925 ;; 11926 icpc*) 11927 # Intel C++ 11928 with_gnu_ld=yes 11929 # version 8.0 and above of icpc choke on multiply defined symbols 11930 # if we add $predep_objects and $postdep_objects, however 7.1 and 11931 # earlier do not add the objects themselves. 11932 case `$CC -V 2>&1` in 11933 *"Version 7."*) 11934 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11935 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' 11936 ;; 11937 *) # Version 8.0 or newer 11938 tmp_idyn= 11939 case $host_cpu in 11940 ia64*) tmp_idyn=' -i_dynamic';; 11941 esac 11942 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11943 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' 11944 ;; 11945 esac 11946 archive_cmds_need_lc_CXX=no 11947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11948 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11949 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11950 ;; 11951 pgCC* | pgcpp*) 11952 # Portland Group C++ compiler 11953 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11954 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' 11955 11956 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11957 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11958 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' 11959 ;; 11960 cxx*) 11961 # Compaq C++ 11962 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11963 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' 11964 11965 runpath_var=LD_RUN_PATH 11966 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11967 hardcode_libdir_separator_CXX=: 11968 11969 # Commands to make compiler produce verbose output that lists 11970 # what "hidden" libraries, object files and flags are used when 11971 # linking a shared library. 11972 # 11973 # There doesn't appear to be a way to prevent this compiler from 11974 # explicitly linking system object files so we need to strip them 11975 # from the output so that they don't get included in the library 11976 # dependencies. 11977 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' 11978 ;; 11979 *) 11980 case `$CC -V 2>&1 | sed 5q` in 11981 *Sun\ C*) 11982 # Sun C++ 5.9 11983 no_undefined_flag_CXX=' -zdefs' 11984 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11985 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 11986 hardcode_libdir_flag_spec_CXX='-R$libdir' 11987 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11988 11989 # Not sure whether something based on 11990 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11991 # would be better. 11992 output_verbose_link_cmd='echo' 11993 11994 # Archives containing C++ object files must be created using 11995 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11996 # necessary to make sure instantiated templates are included 11997 # in the archive. 11998 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11999 ;; 12000 esac 12001 ;; 12002 esac 12003 ;; 12004 lynxos*) 12005 # FIXME: insert proper C++ library support 12006 ld_shlibs_CXX=no 12007 ;; 12008 m88k*) 12009 # FIXME: insert proper C++ library support 12010 ld_shlibs_CXX=no 12011 ;; 12012 mvs*) 12013 case $cc_basename in 12014 cxx*) 12015 # FIXME: insert proper C++ library support 12016 ld_shlibs_CXX=no 12017 ;; 12018 *) 12019 # FIXME: insert proper C++ library support 12020 ld_shlibs_CXX=no 12021 ;; 12022 esac 12023 ;; 12024 netbsd*) 12025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12026 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12027 wlarc= 12028 hardcode_libdir_flag_spec_CXX='-R$libdir' 12029 hardcode_direct_CXX=yes 12030 hardcode_shlibpath_var_CXX=no 12031 fi 12032 # Workaround some broken pre-1.5 toolchains 12033 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12034 ;; 12035 openbsd2*) 12036 # C++ shared libraries are fairly broken 12037 ld_shlibs_CXX=no 12038 ;; 12039 openbsd*) 12040 if test -f /usr/libexec/ld.so; then 12041 hardcode_direct_CXX=yes 12042 hardcode_shlibpath_var_CXX=no 12043 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12044 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12046 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12047 export_dynamic_flag_spec_CXX='${wl}-E' 12048 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12049 fi 12050 output_verbose_link_cmd='echo' 12051 else 12052 ld_shlibs_CXX=no 12053 fi 12054 ;; 12055 osf3*) 12056 case $cc_basename in 12057 KCC*) 12058 # Kuck and Associates, Inc. (KAI) C++ Compiler 12059 12060 # KCC will only create a shared library if the output file 12061 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12062 # to its proper name (with version) after linking. 12063 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' 12064 12065 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12066 hardcode_libdir_separator_CXX=: 12067 12068 # Archives containing C++ object files must be created using 12069 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12070 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12071 12072 ;; 12073 RCC*) 12074 # Rational C++ 2.4.1 12075 # FIXME: insert proper C++ library support 12076 ld_shlibs_CXX=no 12077 ;; 12078 cxx*) 12079 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12080 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' 12081 12082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12083 hardcode_libdir_separator_CXX=: 12084 12085 # Commands to make compiler produce verbose output that lists 12086 # what "hidden" libraries, object files and flags are used when 12087 # linking a shared library. 12088 # 12089 # There doesn't appear to be a way to prevent this compiler from 12090 # explicitly linking system object files so we need to strip them 12091 # from the output so that they don't get included in the library 12092 # dependencies. 12093 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' 12094 ;; 12095 *) 12096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12098 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' 12099 12100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12101 hardcode_libdir_separator_CXX=: 12102 12103 # Commands to make compiler produce verbose output that lists 12104 # what "hidden" libraries, object files and flags are used when 12105 # linking a shared library. 12106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12107 12108 else 12109 # FIXME: insert proper C++ library support 12110 ld_shlibs_CXX=no 12111 fi 12112 ;; 12113 esac 12114 ;; 12115 osf4* | osf5*) 12116 case $cc_basename in 12117 KCC*) 12118 # Kuck and Associates, Inc. (KAI) C++ Compiler 12119 12120 # KCC will only create a shared library if the output file 12121 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12122 # to its proper name (with version) after linking. 12123 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' 12124 12125 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12126 hardcode_libdir_separator_CXX=: 12127 12128 # Archives containing C++ object files must be created using 12129 # the KAI C++ compiler. 12130 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12131 ;; 12132 RCC*) 12133 # Rational C++ 2.4.1 12134 # FIXME: insert proper C++ library support 12135 ld_shlibs_CXX=no 12136 ;; 12137 cxx*) 12138 allow_undefined_flag_CXX=' -expect_unresolved \*' 12139 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' 12140 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12141 echo "-hidden">> $lib.exp~ 12142 $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~ 12143 $rm $lib.exp' 12144 12145 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12146 hardcode_libdir_separator_CXX=: 12147 12148 # Commands to make compiler produce verbose output that lists 12149 # what "hidden" libraries, object files and flags are used when 12150 # linking a shared library. 12151 # 12152 # There doesn't appear to be a way to prevent this compiler from 12153 # explicitly linking system object files so we need to strip them 12154 # from the output so that they don't get included in the library 12155 # dependencies. 12156 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' 12157 ;; 12158 *) 12159 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12161 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' 12162 12163 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12164 hardcode_libdir_separator_CXX=: 12165 12166 # Commands to make compiler produce verbose output that lists 12167 # what "hidden" libraries, object files and flags are used when 12168 # linking a shared library. 12169 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12170 12171 else 12172 # FIXME: insert proper C++ library support 12173 ld_shlibs_CXX=no 12174 fi 12175 ;; 12176 esac 12177 ;; 12178 psos*) 12179 # FIXME: insert proper C++ library support 12180 ld_shlibs_CXX=no 12181 ;; 12182 sunos4*) 12183 case $cc_basename in 12184 CC*) 12185 # Sun C++ 4.x 12186 # FIXME: insert proper C++ library support 12187 ld_shlibs_CXX=no 12188 ;; 12189 lcc*) 12190 # Lucid 12191 # FIXME: insert proper C++ library support 12192 ld_shlibs_CXX=no 12193 ;; 12194 *) 12195 # FIXME: insert proper C++ library support 12196 ld_shlibs_CXX=no 12197 ;; 12198 esac 12199 ;; 12200 solaris*) 12201 case $cc_basename in 12202 CC*) 12203 # Sun C++ 4.2, 5.x and Centerline C++ 12204 archive_cmds_need_lc_CXX=yes 12205 no_undefined_flag_CXX=' -zdefs' 12206 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12207 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12208 $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' 12209 12210 hardcode_libdir_flag_spec_CXX='-R$libdir' 12211 hardcode_shlibpath_var_CXX=no 12212 case $host_os in 12213 solaris2.[0-5] | solaris2.[0-5].*) ;; 12214 *) 12215 # The compiler driver will combine and reorder linker options, 12216 # but understands `-z linker_flag'. 12217 # Supported since Solaris 2.6 (maybe 2.5.1?) 12218 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12219 ;; 12220 esac 12221 link_all_deplibs_CXX=yes 12222 12223 output_verbose_link_cmd='echo' 12224 12225 # Archives containing C++ object files must be created using 12226 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12227 # necessary to make sure instantiated templates are included 12228 # in the archive. 12229 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12230 ;; 12231 gcx*) 12232 # Green Hills C++ Compiler 12233 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12234 12235 # The C++ compiler must be used to create the archive. 12236 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12237 ;; 12238 *) 12239 # GNU C++ compiler with Solaris linker 12240 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12241 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12242 if $CC --version | grep -v '^2\.7' > /dev/null; then 12243 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12244 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12245 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12246 12247 # Commands to make compiler produce verbose output that lists 12248 # what "hidden" libraries, object files and flags are used when 12249 # linking a shared library. 12250 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12251 else 12252 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12253 # platform. 12254 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12255 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12256 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12257 12258 # Commands to make compiler produce verbose output that lists 12259 # what "hidden" libraries, object files and flags are used when 12260 # linking a shared library. 12261 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12262 fi 12263 12264 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12265 case $host_os in 12266 solaris2.[0-5] | solaris2.[0-5].*) ;; 12267 *) 12268 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12269 ;; 12270 esac 12271 fi 12272 ;; 12273 esac 12274 ;; 12275 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12276 no_undefined_flag_CXX='${wl}-z,text' 12277 archive_cmds_need_lc_CXX=no 12278 hardcode_shlibpath_var_CXX=no 12279 runpath_var='LD_RUN_PATH' 12280 12281 case $cc_basename in 12282 CC*) 12283 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12284 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12285 ;; 12286 *) 12287 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12288 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12289 ;; 12290 esac 12291 ;; 12292 sysv5* | sco3.2v5* | sco5v6*) 12293 # Note: We can NOT use -z defs as we might desire, because we do not 12294 # link with -lc, and that would cause any symbols used from libc to 12295 # always be unresolved, which means just about no library would 12296 # ever link correctly. If we're not using GNU ld we use -z text 12297 # though, which does catch some bad symbols but isn't as heavy-handed 12298 # as -z defs. 12299 # For security reasons, it is highly recommended that you always 12300 # use absolute paths for naming shared libraries, and exclude the 12301 # DT_RUNPATH tag from executables and libraries. But doing so 12302 # requires that you compile everything twice, which is a pain. 12303 # So that behaviour is only enabled if SCOABSPATH is set to a 12304 # non-empty value in the environment. Most likely only useful for 12305 # creating official distributions of packages. 12306 # This is a hack until libtool officially supports absolute path 12307 # names for shared libraries. 12308 no_undefined_flag_CXX='${wl}-z,text' 12309 allow_undefined_flag_CXX='${wl}-z,nodefs' 12310 archive_cmds_need_lc_CXX=no 12311 hardcode_shlibpath_var_CXX=no 12312 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12313 hardcode_libdir_separator_CXX=':' 12314 link_all_deplibs_CXX=yes 12315 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12316 runpath_var='LD_RUN_PATH' 12317 12318 case $cc_basename in 12319 CC*) 12320 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12321 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12322 ;; 12323 *) 12324 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12325 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12326 ;; 12327 esac 12328 ;; 12329 tandem*) 12330 case $cc_basename in 12331 NCC*) 12332 # NonStop-UX NCC 3.20 12333 # FIXME: insert proper C++ library support 12334 ld_shlibs_CXX=no 12335 ;; 12336 *) 12337 # FIXME: insert proper C++ library support 12338 ld_shlibs_CXX=no 12339 ;; 12340 esac 12341 ;; 12342 vxworks*) 12343 # FIXME: insert proper C++ library support 12344 ld_shlibs_CXX=no 12345 ;; 12346 *) 12347 # FIXME: insert proper C++ library support 12348 ld_shlibs_CXX=no 12349 ;; 12350esac 12351{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12352$as_echo "$ld_shlibs_CXX" >&6; } 12353test "$ld_shlibs_CXX" = no && can_build_shared=no 12354 12355GCC_CXX="$GXX" 12356LD_CXX="$LD" 12357 12358cat > conftest.$ac_ext <<EOF 12359class Foo 12360{ 12361public: 12362 Foo (void) { a = 0; } 12363private: 12364 int a; 12365}; 12366EOF 12367 12368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12369 (eval $ac_compile) 2>&5 12370 ac_status=$? 12371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 12372 (exit $ac_status); }; then 12373 # Parse the compiler output and extract the necessary 12374 # objects, libraries and library flags. 12375 12376 # Sentinel used to keep track of whether or not we are before 12377 # the conftest object file. 12378 pre_test_object_deps_done=no 12379 12380 # The `*' in the case matches for architectures that use `case' in 12381 # $output_verbose_cmd can trigger glob expansion during the loop 12382 # eval without this substitution. 12383 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12384 12385 for p in `eval $output_verbose_link_cmd`; do 12386 case $p in 12387 12388 -L* | -R* | -l*) 12389 # Some compilers place space between "-{L,R}" and the path. 12390 # Remove the space. 12391 if test $p = "-L" \ 12392 || test $p = "-R"; then 12393 prev=$p 12394 continue 12395 else 12396 prev= 12397 fi 12398 12399 if test "$pre_test_object_deps_done" = no; then 12400 case $p in 12401 -L* | -R*) 12402 # Internal compiler library paths should come after those 12403 # provided the user. The postdeps already come after the 12404 # user supplied libs so there is no need to process them. 12405 if test -z "$compiler_lib_search_path_CXX"; then 12406 compiler_lib_search_path_CXX="${prev}${p}" 12407 else 12408 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12409 fi 12410 ;; 12411 # The "-l" case would never come before the object being 12412 # linked, so don't bother handling this case. 12413 esac 12414 else 12415 if test -z "$postdeps_CXX"; then 12416 postdeps_CXX="${prev}${p}" 12417 else 12418 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12419 fi 12420 fi 12421 ;; 12422 12423 *.$objext) 12424 # This assumes that the test object file only shows up 12425 # once in the compiler output. 12426 if test "$p" = "conftest.$objext"; then 12427 pre_test_object_deps_done=yes 12428 continue 12429 fi 12430 12431 if test "$pre_test_object_deps_done" = no; then 12432 if test -z "$predep_objects_CXX"; then 12433 predep_objects_CXX="$p" 12434 else 12435 predep_objects_CXX="$predep_objects_CXX $p" 12436 fi 12437 else 12438 if test -z "$postdep_objects_CXX"; then 12439 postdep_objects_CXX="$p" 12440 else 12441 postdep_objects_CXX="$postdep_objects_CXX $p" 12442 fi 12443 fi 12444 ;; 12445 12446 *) ;; # Ignore the rest. 12447 12448 esac 12449 done 12450 12451 # Clean up. 12452 rm -f a.out a.exe 12453else 12454 echo "libtool.m4: error: problem compiling CXX test program" 12455fi 12456 12457$rm -f confest.$objext 12458 12459compiler_lib_search_dirs_CXX= 12460if test -n "$compiler_lib_search_path_CXX"; then 12461 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12462fi 12463 12464# PORTME: override above test on systems where it is broken 12465case $host_os in 12466interix[3-9]*) 12467 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12468 # hack all around it, let's just trust "g++" to DTRT. 12469 predep_objects_CXX= 12470 postdep_objects_CXX= 12471 postdeps_CXX= 12472 ;; 12473 12474linux*) 12475 case `$CC -V 2>&1 | sed 5q` in 12476 *Sun\ C*) 12477 # Sun C++ 5.9 12478 # 12479 # The more standards-conforming stlport4 library is 12480 # incompatible with the Cstd library. Avoid specifying 12481 # it if it's in CXXFLAGS. Ignore libCrun as 12482 # -library=stlport4 depends on it. 12483 case " $CXX $CXXFLAGS " in 12484 *" -library=stlport4 "*) 12485 solaris_use_stlport4=yes 12486 ;; 12487 esac 12488 if test "$solaris_use_stlport4" != yes; then 12489 postdeps_CXX='-library=Cstd -library=Crun' 12490 fi 12491 ;; 12492 esac 12493 ;; 12494 12495solaris*) 12496 case $cc_basename in 12497 CC*) 12498 # The more standards-conforming stlport4 library is 12499 # incompatible with the Cstd library. Avoid specifying 12500 # it if it's in CXXFLAGS. Ignore libCrun as 12501 # -library=stlport4 depends on it. 12502 case " $CXX $CXXFLAGS " in 12503 *" -library=stlport4 "*) 12504 solaris_use_stlport4=yes 12505 ;; 12506 esac 12507 12508 # Adding this requires a known-good setup of shared libraries for 12509 # Sun compiler versions before 5.6, else PIC objects from an old 12510 # archive will be linked into the output, leading to subtle bugs. 12511 if test "$solaris_use_stlport4" != yes; then 12512 postdeps_CXX='-library=Cstd -library=Crun' 12513 fi 12514 ;; 12515 esac 12516 ;; 12517esac 12518 12519case " $postdeps_CXX " in 12520*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12521esac 12522 12523lt_prog_compiler_wl_CXX= 12524lt_prog_compiler_pic_CXX= 12525lt_prog_compiler_static_CXX= 12526 12527{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12528$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12529 12530 # C++ specific cases for pic, static, wl, etc. 12531 if test "$GXX" = yes; then 12532 lt_prog_compiler_wl_CXX='-Wl,' 12533 lt_prog_compiler_static_CXX='-static' 12534 12535 case $host_os in 12536 aix*) 12537 # All AIX code is PIC. 12538 if test "$host_cpu" = ia64; then 12539 # AIX 5 now supports IA64 processor 12540 lt_prog_compiler_static_CXX='-Bstatic' 12541 fi 12542 ;; 12543 amigaos*) 12544 # FIXME: we need at least 68020 code to build shared libraries, but 12545 # adding the `-m68020' flag to GCC prevents building anything better, 12546 # like `-m68040'. 12547 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12548 ;; 12549 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12550 # PIC is the default for these OSes. 12551 ;; 12552 mingw* | cygwin* | os2* | pw32*) 12553 # This hack is so that the source file can tell whether it is being 12554 # built for inclusion in a dll (and should export symbols for example). 12555 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12556 # (--disable-auto-import) libraries 12557 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12558 ;; 12559 darwin* | rhapsody*) 12560 # PIC is the default on this platform 12561 # Common symbols not allowed in MH_DYLIB files 12562 lt_prog_compiler_pic_CXX='-fno-common' 12563 ;; 12564 *djgpp*) 12565 # DJGPP does not support shared libraries at all 12566 lt_prog_compiler_pic_CXX= 12567 ;; 12568 interix[3-9]*) 12569 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12570 # Instead, we relocate shared libraries at runtime. 12571 ;; 12572 sysv4*MP*) 12573 if test -d /usr/nec; then 12574 lt_prog_compiler_pic_CXX=-Kconform_pic 12575 fi 12576 ;; 12577 hpux*) 12578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12579 # not for PA HP-UX. 12580 case $host_cpu in 12581 hppa*64*|ia64*) 12582 ;; 12583 *) 12584 lt_prog_compiler_pic_CXX='-fPIC' 12585 ;; 12586 esac 12587 ;; 12588 *) 12589 lt_prog_compiler_pic_CXX='-fPIC' 12590 ;; 12591 esac 12592 else 12593 case $host_os in 12594 aix[4-9]*) 12595 # All AIX code is PIC. 12596 if test "$host_cpu" = ia64; then 12597 # AIX 5 now supports IA64 processor 12598 lt_prog_compiler_static_CXX='-Bstatic' 12599 else 12600 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12601 fi 12602 ;; 12603 chorus*) 12604 case $cc_basename in 12605 cxch68*) 12606 # Green Hills C++ Compiler 12607 # _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" 12608 ;; 12609 esac 12610 ;; 12611 darwin*) 12612 # PIC is the default on this platform 12613 # Common symbols not allowed in MH_DYLIB files 12614 case $cc_basename in 12615 xlc*) 12616 lt_prog_compiler_pic_CXX='-qnocommon' 12617 lt_prog_compiler_wl_CXX='-Wl,' 12618 ;; 12619 esac 12620 ;; 12621 dgux*) 12622 case $cc_basename in 12623 ec++*) 12624 lt_prog_compiler_pic_CXX='-KPIC' 12625 ;; 12626 ghcx*) 12627 # Green Hills C++ Compiler 12628 lt_prog_compiler_pic_CXX='-pic' 12629 ;; 12630 *) 12631 ;; 12632 esac 12633 ;; 12634 freebsd* | dragonfly*) 12635 # FreeBSD uses GNU C++ 12636 ;; 12637 hpux9* | hpux10* | hpux11*) 12638 case $cc_basename in 12639 CC*) 12640 lt_prog_compiler_wl_CXX='-Wl,' 12641 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12642 if test "$host_cpu" != ia64; then 12643 lt_prog_compiler_pic_CXX='+Z' 12644 fi 12645 ;; 12646 aCC*) 12647 lt_prog_compiler_wl_CXX='-Wl,' 12648 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12649 case $host_cpu in 12650 hppa*64*|ia64*) 12651 # +Z the default 12652 ;; 12653 *) 12654 lt_prog_compiler_pic_CXX='+Z' 12655 ;; 12656 esac 12657 ;; 12658 *) 12659 ;; 12660 esac 12661 ;; 12662 interix*) 12663 # This is c89, which is MS Visual C++ (no shared libs) 12664 # Anyone wants to do a port? 12665 ;; 12666 irix5* | irix6* | nonstopux*) 12667 case $cc_basename in 12668 CC*) 12669 lt_prog_compiler_wl_CXX='-Wl,' 12670 lt_prog_compiler_static_CXX='-non_shared' 12671 # CC pic flag -KPIC is the default. 12672 ;; 12673 *) 12674 ;; 12675 esac 12676 ;; 12677 linux* | k*bsd*-gnu) 12678 case $cc_basename in 12679 KCC*) 12680 # KAI C++ Compiler 12681 lt_prog_compiler_wl_CXX='--backend -Wl,' 12682 lt_prog_compiler_pic_CXX='-fPIC' 12683 ;; 12684 icpc* | ecpc*) 12685 # Intel C++ 12686 lt_prog_compiler_wl_CXX='-Wl,' 12687 lt_prog_compiler_pic_CXX='-KPIC' 12688 lt_prog_compiler_static_CXX='-static' 12689 ;; 12690 pgCC* | pgcpp*) 12691 # Portland Group C++ compiler. 12692 lt_prog_compiler_wl_CXX='-Wl,' 12693 lt_prog_compiler_pic_CXX='-fpic' 12694 lt_prog_compiler_static_CXX='-Bstatic' 12695 ;; 12696 cxx*) 12697 # Compaq C++ 12698 # Make sure the PIC flag is empty. It appears that all Alpha 12699 # Linux and Compaq Tru64 Unix objects are PIC. 12700 lt_prog_compiler_pic_CXX= 12701 lt_prog_compiler_static_CXX='-non_shared' 12702 ;; 12703 *) 12704 case `$CC -V 2>&1 | sed 5q` in 12705 *Sun\ C*) 12706 # Sun C++ 5.9 12707 lt_prog_compiler_pic_CXX='-KPIC' 12708 lt_prog_compiler_static_CXX='-Bstatic' 12709 lt_prog_compiler_wl_CXX='-Qoption ld ' 12710 ;; 12711 esac 12712 ;; 12713 esac 12714 ;; 12715 lynxos*) 12716 ;; 12717 m88k*) 12718 ;; 12719 mvs*) 12720 case $cc_basename in 12721 cxx*) 12722 lt_prog_compiler_pic_CXX='-W c,exportall' 12723 ;; 12724 *) 12725 ;; 12726 esac 12727 ;; 12728 netbsd*) 12729 ;; 12730 osf3* | osf4* | osf5*) 12731 case $cc_basename in 12732 KCC*) 12733 lt_prog_compiler_wl_CXX='--backend -Wl,' 12734 ;; 12735 RCC*) 12736 # Rational C++ 2.4.1 12737 lt_prog_compiler_pic_CXX='-pic' 12738 ;; 12739 cxx*) 12740 # Digital/Compaq C++ 12741 lt_prog_compiler_wl_CXX='-Wl,' 12742 # Make sure the PIC flag is empty. It appears that all Alpha 12743 # Linux and Compaq Tru64 Unix objects are PIC. 12744 lt_prog_compiler_pic_CXX= 12745 lt_prog_compiler_static_CXX='-non_shared' 12746 ;; 12747 *) 12748 ;; 12749 esac 12750 ;; 12751 psos*) 12752 ;; 12753 solaris*) 12754 case $cc_basename in 12755 CC*) 12756 # Sun C++ 4.2, 5.x and Centerline C++ 12757 lt_prog_compiler_pic_CXX='-KPIC' 12758 lt_prog_compiler_static_CXX='-Bstatic' 12759 lt_prog_compiler_wl_CXX='-Qoption ld ' 12760 ;; 12761 gcx*) 12762 # Green Hills C++ Compiler 12763 lt_prog_compiler_pic_CXX='-PIC' 12764 ;; 12765 *) 12766 ;; 12767 esac 12768 ;; 12769 sunos4*) 12770 case $cc_basename in 12771 CC*) 12772 # Sun C++ 4.x 12773 lt_prog_compiler_pic_CXX='-pic' 12774 lt_prog_compiler_static_CXX='-Bstatic' 12775 ;; 12776 lcc*) 12777 # Lucid 12778 lt_prog_compiler_pic_CXX='-pic' 12779 ;; 12780 *) 12781 ;; 12782 esac 12783 ;; 12784 tandem*) 12785 case $cc_basename in 12786 NCC*) 12787 # NonStop-UX NCC 3.20 12788 lt_prog_compiler_pic_CXX='-KPIC' 12789 ;; 12790 *) 12791 ;; 12792 esac 12793 ;; 12794 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12795 case $cc_basename in 12796 CC*) 12797 lt_prog_compiler_wl_CXX='-Wl,' 12798 lt_prog_compiler_pic_CXX='-KPIC' 12799 lt_prog_compiler_static_CXX='-Bstatic' 12800 ;; 12801 esac 12802 ;; 12803 vxworks*) 12804 ;; 12805 *) 12806 lt_prog_compiler_can_build_shared_CXX=no 12807 ;; 12808 esac 12809 fi 12810 12811{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12812$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12813 12814# 12815# Check to make sure the PIC flag actually works. 12816# 12817if test -n "$lt_prog_compiler_pic_CXX"; then 12818 12819{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12820$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12821if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12822 $as_echo_n "(cached) " >&6 12823else 12824 lt_cv_prog_compiler_pic_works_CXX=no 12825 ac_outfile=conftest.$ac_objext 12826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12827 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12828 # Insert the option either (1) after the last *FLAGS variable, or 12829 # (2) before a word containing "conftest.", or (3) at the end. 12830 # Note that $ac_compile itself does not contain backslashes and begins 12831 # with a dollar sign (not a hyphen), so the echo should work correctly. 12832 # The option is referenced via a variable to avoid confusing sed. 12833 lt_compile=`echo "$ac_compile" | $SED \ 12834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12836 -e 's:$: $lt_compiler_flag:'` 12837 (eval echo "\"\$as_me:12837: $lt_compile\"" >&5) 12838 (eval "$lt_compile" 2>conftest.err) 12839 ac_status=$? 12840 cat conftest.err >&5 12841 echo "$as_me:12841: \$? = $ac_status" >&5 12842 if (exit $ac_status) && test -s "$ac_outfile"; then 12843 # The compiler can only warn and ignore the option if not recognized 12844 # So say no if there are warnings other than the usual output. 12845 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12848 lt_cv_prog_compiler_pic_works_CXX=yes 12849 fi 12850 fi 12851 $rm conftest* 12852 12853fi 12854{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12855$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12856 12857if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12858 case $lt_prog_compiler_pic_CXX in 12859 "" | " "*) ;; 12860 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12861 esac 12862else 12863 lt_prog_compiler_pic_CXX= 12864 lt_prog_compiler_can_build_shared_CXX=no 12865fi 12866 12867fi 12868case $host_os in 12869 # For platforms which do not support PIC, -DPIC is meaningless: 12870 *djgpp*) 12871 lt_prog_compiler_pic_CXX= 12872 ;; 12873 *) 12874 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12875 ;; 12876esac 12877 12878# 12879# Check to make sure the static flag actually works. 12880# 12881wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12882{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12883$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12884if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 12885 $as_echo_n "(cached) " >&6 12886else 12887 lt_cv_prog_compiler_static_works_CXX=no 12888 save_LDFLAGS="$LDFLAGS" 12889 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12890 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12891 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12892 # The linker can only warn and ignore the option if not recognized 12893 # So say no if there are warnings 12894 if test -s conftest.err; then 12895 # Append any errors to the config.log. 12896 cat conftest.err 1>&5 12897 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12899 if diff conftest.exp conftest.er2 >/dev/null; then 12900 lt_cv_prog_compiler_static_works_CXX=yes 12901 fi 12902 else 12903 lt_cv_prog_compiler_static_works_CXX=yes 12904 fi 12905 fi 12906 $rm -r conftest* 12907 LDFLAGS="$save_LDFLAGS" 12908 12909fi 12910{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 12911$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 12912 12913if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 12914 : 12915else 12916 lt_prog_compiler_static_CXX= 12917fi 12918 12919 12920{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12921$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12922if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12923 $as_echo_n "(cached) " >&6 12924else 12925 lt_cv_prog_compiler_c_o_CXX=no 12926 $rm -r conftest 2>/dev/null 12927 mkdir conftest 12928 cd conftest 12929 mkdir out 12930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12931 12932 lt_compiler_flag="-o out/conftest2.$ac_objext" 12933 # Insert the option either (1) after the last *FLAGS variable, or 12934 # (2) before a word containing "conftest.", or (3) at the end. 12935 # Note that $ac_compile itself does not contain backslashes and begins 12936 # with a dollar sign (not a hyphen), so the echo should work correctly. 12937 lt_compile=`echo "$ac_compile" | $SED \ 12938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12940 -e 's:$: $lt_compiler_flag:'` 12941 (eval echo "\"\$as_me:12941: $lt_compile\"" >&5) 12942 (eval "$lt_compile" 2>out/conftest.err) 12943 ac_status=$? 12944 cat out/conftest.err >&5 12945 echo "$as_me:12945: \$? = $ac_status" >&5 12946 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12947 then 12948 # The compiler can only warn and ignore the option if not recognized 12949 # So say no if there are warnings 12950 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12951 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12952 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12953 lt_cv_prog_compiler_c_o_CXX=yes 12954 fi 12955 fi 12956 chmod u+w . 2>&5 12957 $rm conftest* 12958 # SGI C++ compiler will create directory out/ii_files/ for 12959 # template instantiation 12960 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12961 $rm out/* && rmdir out 12962 cd .. 12963 rmdir conftest 12964 $rm conftest* 12965 12966fi 12967{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12968$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 12969 12970 12971hard_links="nottested" 12972if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12973 # do not overwrite the value of need_locks provided by the user 12974 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12975$as_echo_n "checking if we can lock with hard links... " >&6; } 12976 hard_links=yes 12977 $rm conftest* 12978 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12979 touch conftest.a 12980 ln conftest.a conftest.b 2>&5 || hard_links=no 12981 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12982 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 12983$as_echo "$hard_links" >&6; } 12984 if test "$hard_links" = no; then 12985 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12986$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12987 need_locks=warn 12988 fi 12989else 12990 need_locks=no 12991fi 12992 12993{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12994$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12995 12996 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12997 case $host_os in 12998 aix[4-9]*) 12999 # If we're using GNU nm, then we don't want the "-C" option. 13000 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13001 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13002 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' 13003 else 13004 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' 13005 fi 13006 ;; 13007 pw32*) 13008 export_symbols_cmds_CXX="$ltdll_cmds" 13009 ;; 13010 cygwin* | mingw*) 13011 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' 13012 ;; 13013 *) 13014 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13015 ;; 13016 esac 13017 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13018 13019{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13020$as_echo "$ld_shlibs_CXX" >&6; } 13021test "$ld_shlibs_CXX" = no && can_build_shared=no 13022 13023# 13024# Do we need to explicitly link libc? 13025# 13026case "x$archive_cmds_need_lc_CXX" in 13027x|xyes) 13028 # Assume -lc should be added 13029 archive_cmds_need_lc_CXX=yes 13030 13031 if test "$enable_shared" = yes && test "$GCC" = yes; then 13032 case $archive_cmds_CXX in 13033 *'~'*) 13034 # FIXME: we may have to deal with multi-command sequences. 13035 ;; 13036 '$CC '*) 13037 # Test whether the compiler implicitly links with -lc since on some 13038 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13039 # to ld, don't add -lc before -lgcc. 13040 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13041$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13042 $rm conftest* 13043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13044 13045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13046 (eval $ac_compile) 2>&5 13047 ac_status=$? 13048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13049 (exit $ac_status); } 2>conftest.err; then 13050 soname=conftest 13051 lib=conftest 13052 libobjs=conftest.$ac_objext 13053 deplibs= 13054 wl=$lt_prog_compiler_wl_CXX 13055 pic_flag=$lt_prog_compiler_pic_CXX 13056 compiler_flags=-v 13057 linker_flags=-v 13058 verstring= 13059 output_objdir=. 13060 libname=conftest 13061 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13062 allow_undefined_flag_CXX= 13063 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13064 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13065 ac_status=$? 13066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 13067 (exit $ac_status); } 13068 then 13069 archive_cmds_need_lc_CXX=no 13070 else 13071 archive_cmds_need_lc_CXX=yes 13072 fi 13073 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13074 else 13075 cat conftest.err 1>&5 13076 fi 13077 $rm conftest* 13078 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13079$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13080 ;; 13081 esac 13082 fi 13083 ;; 13084esac 13085 13086{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13087$as_echo_n "checking dynamic linker characteristics... " >&6; } 13088library_names_spec= 13089libname_spec='lib$name' 13090soname_spec= 13091shrext_cmds=".so" 13092postinstall_cmds= 13093postuninstall_cmds= 13094finish_cmds= 13095finish_eval= 13096shlibpath_var= 13097shlibpath_overrides_runpath=unknown 13098version_type=none 13099dynamic_linker="$host_os ld.so" 13100sys_lib_dlsearch_path_spec="/lib /usr/lib" 13101 13102need_lib_prefix=unknown 13103hardcode_into_libs=no 13104 13105# when you set need_version to no, make sure it does not cause -set_version 13106# flags to be left without arguments 13107need_version=unknown 13108 13109case $host_os in 13110aix3*) 13111 version_type=linux 13112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13113 shlibpath_var=LIBPATH 13114 13115 # AIX 3 has no versioning support, so we append a major version to the name. 13116 soname_spec='${libname}${release}${shared_ext}$major' 13117 ;; 13118 13119aix[4-9]*) 13120 version_type=linux 13121 need_lib_prefix=no 13122 need_version=no 13123 hardcode_into_libs=yes 13124 if test "$host_cpu" = ia64; then 13125 # AIX 5 supports IA64 13126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13127 shlibpath_var=LD_LIBRARY_PATH 13128 else 13129 # With GCC up to 2.95.x, collect2 would create an import file 13130 # for dependence libraries. The import file would start with 13131 # the line `#! .'. This would cause the generated library to 13132 # depend on `.', always an invalid library. This was fixed in 13133 # development snapshots of GCC prior to 3.0. 13134 case $host_os in 13135 aix4 | aix4.[01] | aix4.[01].*) 13136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13137 echo ' yes ' 13138 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13139 : 13140 else 13141 can_build_shared=no 13142 fi 13143 ;; 13144 esac 13145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13146 # soname into executable. Probably we can add versioning support to 13147 # collect2, so additional links can be useful in future. 13148 if test "$aix_use_runtimelinking" = yes; then 13149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13150 # instead of lib<name>.a to let people know that these are not 13151 # typical AIX shared libraries. 13152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13153 else 13154 # We preserve .a as extension for shared libraries through AIX4.2 13155 # and later when we are not doing run time linking. 13156 library_names_spec='${libname}${release}.a $libname.a' 13157 soname_spec='${libname}${release}${shared_ext}$major' 13158 fi 13159 shlibpath_var=LIBPATH 13160 fi 13161 ;; 13162 13163amigaos*) 13164 library_names_spec='$libname.ixlibrary $libname.a' 13165 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13166 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' 13167 ;; 13168 13169beos*) 13170 library_names_spec='${libname}${shared_ext}' 13171 dynamic_linker="$host_os ld.so" 13172 shlibpath_var=LIBRARY_PATH 13173 ;; 13174 13175bsdi[45]*) 13176 version_type=linux 13177 need_version=no 13178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13179 soname_spec='${libname}${release}${shared_ext}$major' 13180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13181 shlibpath_var=LD_LIBRARY_PATH 13182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13184 # the default ld.so.conf also contains /usr/contrib/lib and 13185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13186 # libtool to hard-code these into programs 13187 ;; 13188 13189cygwin* | mingw* | pw32*) 13190 version_type=windows 13191 shrext_cmds=".dll" 13192 need_version=no 13193 need_lib_prefix=no 13194 13195 case $GCC,$host_os in 13196 yes,cygwin* | yes,mingw* | yes,pw32*) 13197 library_names_spec='$libname.dll.a' 13198 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13199 postinstall_cmds='base_file=`basename \${file}`~ 13200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13201 dldir=$destdir/`dirname \$dlpath`~ 13202 test -d \$dldir || mkdir -p \$dldir~ 13203 $install_prog $dir/$dlname \$dldir/$dlname~ 13204 chmod a+x \$dldir/$dlname' 13205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13206 dlpath=$dir/\$dldll~ 13207 $rm \$dlpath' 13208 shlibpath_overrides_runpath=yes 13209 13210 case $host_os in 13211 cygwin*) 13212 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13214 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13215 ;; 13216 mingw*) 13217 # MinGW DLLs use traditional 'lib' prefix 13218 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13220 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13221 # It is most probably a Windows format PATH printed by 13222 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13223 # path with ; separators, and with drive letters. We can handle the 13224 # drive letters (cygwin fileutils understands them), so leave them, 13225 # especially as we might pass files found there to a mingw objdump, 13226 # which wouldn't understand a cygwinified path. Ahh. 13227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13228 else 13229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13230 fi 13231 ;; 13232 pw32*) 13233 # pw32 DLLs use 'pw' prefix rather than 'lib' 13234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13235 ;; 13236 esac 13237 ;; 13238 13239 *) 13240 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13241 ;; 13242 esac 13243 dynamic_linker='Win32 ld.exe' 13244 # FIXME: first we should search . and the directory the executable is in 13245 shlibpath_var=PATH 13246 ;; 13247 13248darwin* | rhapsody*) 13249 dynamic_linker="$host_os dyld" 13250 version_type=darwin 13251 need_lib_prefix=no 13252 need_version=no 13253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13254 soname_spec='${libname}${release}${major}$shared_ext' 13255 shlibpath_overrides_runpath=yes 13256 shlibpath_var=DYLD_LIBRARY_PATH 13257 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13258 13259 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13260 ;; 13261 13262dgux*) 13263 version_type=linux 13264 need_lib_prefix=no 13265 need_version=no 13266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13267 soname_spec='${libname}${release}${shared_ext}$major' 13268 shlibpath_var=LD_LIBRARY_PATH 13269 ;; 13270 13271freebsd1*) 13272 dynamic_linker=no 13273 ;; 13274 13275freebsd* | dragonfly*) 13276 # DragonFly does not have aout. When/if they implement a new 13277 # versioning mechanism, adjust this. 13278 if test -x /usr/bin/objformat; then 13279 objformat=`/usr/bin/objformat` 13280 else 13281 case $host_os in 13282 freebsd[123]*) objformat=aout ;; 13283 *) objformat=elf ;; 13284 esac 13285 fi 13286 version_type=freebsd-$objformat 13287 case $version_type in 13288 freebsd-elf*) 13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13290 need_version=no 13291 need_lib_prefix=no 13292 ;; 13293 freebsd-*) 13294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13295 need_version=yes 13296 ;; 13297 esac 13298 shlibpath_var=LD_LIBRARY_PATH 13299 case $host_os in 13300 freebsd2*) 13301 shlibpath_overrides_runpath=yes 13302 ;; 13303 freebsd3.[01]* | freebsdelf3.[01]*) 13304 shlibpath_overrides_runpath=yes 13305 hardcode_into_libs=yes 13306 ;; 13307 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13308 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13309 shlibpath_overrides_runpath=no 13310 hardcode_into_libs=yes 13311 ;; 13312 *) # from 4.6 on, and DragonFly 13313 shlibpath_overrides_runpath=yes 13314 hardcode_into_libs=yes 13315 ;; 13316 esac 13317 ;; 13318 13319gnu*) 13320 version_type=linux 13321 need_lib_prefix=no 13322 need_version=no 13323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13324 soname_spec='${libname}${release}${shared_ext}$major' 13325 shlibpath_var=LD_LIBRARY_PATH 13326 hardcode_into_libs=yes 13327 ;; 13328 13329hpux9* | hpux10* | hpux11*) 13330 # Give a soname corresponding to the major version so that dld.sl refuses to 13331 # link against other versions. 13332 version_type=sunos 13333 need_lib_prefix=no 13334 need_version=no 13335 case $host_cpu in 13336 ia64*) 13337 shrext_cmds='.so' 13338 hardcode_into_libs=yes 13339 dynamic_linker="$host_os dld.so" 13340 shlibpath_var=LD_LIBRARY_PATH 13341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13343 soname_spec='${libname}${release}${shared_ext}$major' 13344 if test "X$HPUX_IA64_MODE" = X32; then 13345 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13346 else 13347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13348 fi 13349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13350 ;; 13351 hppa*64*) 13352 shrext_cmds='.sl' 13353 hardcode_into_libs=yes 13354 dynamic_linker="$host_os dld.sl" 13355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13358 soname_spec='${libname}${release}${shared_ext}$major' 13359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13361 ;; 13362 *) 13363 shrext_cmds='.sl' 13364 dynamic_linker="$host_os dld.sl" 13365 shlibpath_var=SHLIB_PATH 13366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13368 soname_spec='${libname}${release}${shared_ext}$major' 13369 ;; 13370 esac 13371 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13372 postinstall_cmds='chmod 555 $lib' 13373 ;; 13374 13375interix[3-9]*) 13376 version_type=linux 13377 need_lib_prefix=no 13378 need_version=no 13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13380 soname_spec='${libname}${release}${shared_ext}$major' 13381 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13382 shlibpath_var=LD_LIBRARY_PATH 13383 shlibpath_overrides_runpath=no 13384 hardcode_into_libs=yes 13385 ;; 13386 13387irix5* | irix6* | nonstopux*) 13388 case $host_os in 13389 nonstopux*) version_type=nonstopux ;; 13390 *) 13391 if test "$lt_cv_prog_gnu_ld" = yes; then 13392 version_type=linux 13393 else 13394 version_type=irix 13395 fi ;; 13396 esac 13397 need_lib_prefix=no 13398 need_version=no 13399 soname_spec='${libname}${release}${shared_ext}$major' 13400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13401 case $host_os in 13402 irix5* | nonstopux*) 13403 libsuff= shlibsuff= 13404 ;; 13405 *) 13406 case $LD in # libtool.m4 will add one of these switches to LD 13407 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13408 libsuff= shlibsuff= libmagic=32-bit;; 13409 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13410 libsuff=32 shlibsuff=N32 libmagic=N32;; 13411 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13412 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13413 *) libsuff= shlibsuff= libmagic=never-match;; 13414 esac 13415 ;; 13416 esac 13417 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13418 shlibpath_overrides_runpath=no 13419 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13420 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13421 hardcode_into_libs=yes 13422 ;; 13423 13424# No shared lib support for Linux oldld, aout, or coff. 13425linux*oldld* | linux*aout* | linux*coff*) 13426 dynamic_linker=no 13427 ;; 13428 13429# This must be Linux ELF. 13430linux* | k*bsd*-gnu) 13431 version_type=linux 13432 need_lib_prefix=no 13433 need_version=no 13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13435 soname_spec='${libname}${release}${shared_ext}$major' 13436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13437 shlibpath_var=LD_LIBRARY_PATH 13438 shlibpath_overrides_runpath=no 13439 # This implies no fast_install, which is unacceptable. 13440 # Some rework will be needed to allow for fast_install 13441 # before this can be enabled. 13442 hardcode_into_libs=yes 13443 13444 # Append ld.so.conf contents to the search path 13445 if test -f /etc/ld.so.conf; then 13446 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13447 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13448 fi 13449 13450 # We used to test for /lib/ld.so.1 and disable shared libraries on 13451 # powerpc, because MkLinux only supported shared libraries with the 13452 # GNU dynamic linker. Since this was broken with cross compilers, 13453 # most powerpc-linux boxes support dynamic linking these days and 13454 # people can always --disable-shared, the test was removed, and we 13455 # assume the GNU/Linux dynamic linker is in use. 13456 dynamic_linker='GNU/Linux ld.so' 13457 ;; 13458 13459netbsd*) 13460 version_type=sunos 13461 need_lib_prefix=no 13462 need_version=no 13463 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13466 dynamic_linker='NetBSD (a.out) ld.so' 13467 else 13468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13469 soname_spec='${libname}${release}${shared_ext}$major' 13470 dynamic_linker='NetBSD ld.elf_so' 13471 fi 13472 shlibpath_var=LD_LIBRARY_PATH 13473 shlibpath_overrides_runpath=yes 13474 hardcode_into_libs=yes 13475 ;; 13476 13477newsos6) 13478 version_type=linux 13479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13480 shlibpath_var=LD_LIBRARY_PATH 13481 shlibpath_overrides_runpath=yes 13482 ;; 13483 13484nto-qnx*) 13485 version_type=linux 13486 need_lib_prefix=no 13487 need_version=no 13488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13489 soname_spec='${libname}${release}${shared_ext}$major' 13490 shlibpath_var=LD_LIBRARY_PATH 13491 shlibpath_overrides_runpath=yes 13492 ;; 13493 13494openbsd*) 13495 version_type=sunos 13496 sys_lib_dlsearch_path_spec="/usr/lib" 13497 need_lib_prefix=no 13498 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13499 case $host_os in 13500 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13501 *) need_version=no ;; 13502 esac 13503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13505 shlibpath_var=LD_LIBRARY_PATH 13506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13507 case $host_os in 13508 openbsd2.[89] | openbsd2.[89].*) 13509 shlibpath_overrides_runpath=no 13510 ;; 13511 *) 13512 shlibpath_overrides_runpath=yes 13513 ;; 13514 esac 13515 else 13516 shlibpath_overrides_runpath=yes 13517 fi 13518 ;; 13519 13520os2*) 13521 libname_spec='$name' 13522 shrext_cmds=".dll" 13523 need_lib_prefix=no 13524 library_names_spec='$libname${shared_ext} $libname.a' 13525 dynamic_linker='OS/2 ld.exe' 13526 shlibpath_var=LIBPATH 13527 ;; 13528 13529osf3* | osf4* | osf5*) 13530 version_type=osf 13531 need_lib_prefix=no 13532 need_version=no 13533 soname_spec='${libname}${release}${shared_ext}$major' 13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13535 shlibpath_var=LD_LIBRARY_PATH 13536 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13537 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13538 ;; 13539 13540rdos*) 13541 dynamic_linker=no 13542 ;; 13543 13544solaris*) 13545 version_type=linux 13546 need_lib_prefix=no 13547 need_version=no 13548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13549 soname_spec='${libname}${release}${shared_ext}$major' 13550 shlibpath_var=LD_LIBRARY_PATH 13551 shlibpath_overrides_runpath=yes 13552 hardcode_into_libs=yes 13553 # ldd complains unless libraries are executable 13554 postinstall_cmds='chmod +x $lib' 13555 ;; 13556 13557sunos4*) 13558 version_type=sunos 13559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13560 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13561 shlibpath_var=LD_LIBRARY_PATH 13562 shlibpath_overrides_runpath=yes 13563 if test "$with_gnu_ld" = yes; then 13564 need_lib_prefix=no 13565 fi 13566 need_version=yes 13567 ;; 13568 13569sysv4 | sysv4.3*) 13570 version_type=linux 13571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13572 soname_spec='${libname}${release}${shared_ext}$major' 13573 shlibpath_var=LD_LIBRARY_PATH 13574 case $host_vendor in 13575 sni) 13576 shlibpath_overrides_runpath=no 13577 need_lib_prefix=no 13578 export_dynamic_flag_spec='${wl}-Blargedynsym' 13579 runpath_var=LD_RUN_PATH 13580 ;; 13581 siemens) 13582 need_lib_prefix=no 13583 ;; 13584 motorola) 13585 need_lib_prefix=no 13586 need_version=no 13587 shlibpath_overrides_runpath=no 13588 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13589 ;; 13590 esac 13591 ;; 13592 13593sysv4*MP*) 13594 if test -d /usr/nec ;then 13595 version_type=linux 13596 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13597 soname_spec='$libname${shared_ext}.$major' 13598 shlibpath_var=LD_LIBRARY_PATH 13599 fi 13600 ;; 13601 13602sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13603 version_type=freebsd-elf 13604 need_lib_prefix=no 13605 need_version=no 13606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13607 soname_spec='${libname}${release}${shared_ext}$major' 13608 shlibpath_var=LD_LIBRARY_PATH 13609 hardcode_into_libs=yes 13610 if test "$with_gnu_ld" = yes; then 13611 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13612 shlibpath_overrides_runpath=no 13613 else 13614 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13615 shlibpath_overrides_runpath=yes 13616 case $host_os in 13617 sco3.2v5*) 13618 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13619 ;; 13620 esac 13621 fi 13622 sys_lib_dlsearch_path_spec='/usr/lib' 13623 ;; 13624 13625uts4*) 13626 version_type=linux 13627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13628 soname_spec='${libname}${release}${shared_ext}$major' 13629 shlibpath_var=LD_LIBRARY_PATH 13630 ;; 13631 13632*) 13633 dynamic_linker=no 13634 ;; 13635esac 13636{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13637$as_echo "$dynamic_linker" >&6; } 13638test "$dynamic_linker" = no && can_build_shared=no 13639 13640if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13641 $as_echo_n "(cached) " >&6 13642else 13643 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13644fi 13645 13646sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13647if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13648 $as_echo_n "(cached) " >&6 13649else 13650 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13651fi 13652 13653sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13654 13655variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13656if test "$GCC" = yes; then 13657 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13658fi 13659 13660{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13661$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13662hardcode_action_CXX= 13663if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13664 test -n "$runpath_var_CXX" || \ 13665 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13666 13667 # We can hardcode non-existant directories. 13668 if test "$hardcode_direct_CXX" != no && 13669 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13670 # have to relink, otherwise we might link with an installed library 13671 # when we should be linking with a yet-to-be-installed one 13672 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13673 test "$hardcode_minus_L_CXX" != no; then 13674 # Linking always hardcodes the temporary library directory. 13675 hardcode_action_CXX=relink 13676 else 13677 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13678 hardcode_action_CXX=immediate 13679 fi 13680else 13681 # We cannot hardcode anything, or else we can only hardcode existing 13682 # directories. 13683 hardcode_action_CXX=unsupported 13684fi 13685{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13686$as_echo "$hardcode_action_CXX" >&6; } 13687 13688if test "$hardcode_action_CXX" = relink; then 13689 # Fast installation is not supported 13690 enable_fast_install=no 13691elif test "$shlibpath_overrides_runpath" = yes || 13692 test "$enable_shared" = no; then 13693 # Fast installation is not necessary 13694 enable_fast_install=needless 13695fi 13696 13697 13698# The else clause should only fire when bootstrapping the 13699# libtool distribution, otherwise you forgot to ship ltmain.sh 13700# with your package, and you will get complaints that there are 13701# no rules to generate ltmain.sh. 13702if test -f "$ltmain"; then 13703 # See if we are running on zsh, and set the options which allow our commands through 13704 # without removal of \ escapes. 13705 if test -n "${ZSH_VERSION+set}" ; then 13706 setopt NO_GLOB_SUBST 13707 fi 13708 # Now quote all the things that may contain metacharacters while being 13709 # careful not to overquote the AC_SUBSTed values. We take copies of the 13710 # variables and quote the copies for generation of the libtool script. 13711 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13712 SED SHELL STRIP \ 13713 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13714 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13715 deplibs_check_method reload_flag reload_cmds need_locks \ 13716 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13717 lt_cv_sys_global_symbol_to_c_name_address \ 13718 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13719 old_postinstall_cmds old_postuninstall_cmds \ 13720 compiler_CXX \ 13721 CC_CXX \ 13722 LD_CXX \ 13723 lt_prog_compiler_wl_CXX \ 13724 lt_prog_compiler_pic_CXX \ 13725 lt_prog_compiler_static_CXX \ 13726 lt_prog_compiler_no_builtin_flag_CXX \ 13727 export_dynamic_flag_spec_CXX \ 13728 thread_safe_flag_spec_CXX \ 13729 whole_archive_flag_spec_CXX \ 13730 enable_shared_with_static_runtimes_CXX \ 13731 old_archive_cmds_CXX \ 13732 old_archive_from_new_cmds_CXX \ 13733 predep_objects_CXX \ 13734 postdep_objects_CXX \ 13735 predeps_CXX \ 13736 postdeps_CXX \ 13737 compiler_lib_search_path_CXX \ 13738 compiler_lib_search_dirs_CXX \ 13739 archive_cmds_CXX \ 13740 archive_expsym_cmds_CXX \ 13741 postinstall_cmds_CXX \ 13742 postuninstall_cmds_CXX \ 13743 old_archive_from_expsyms_cmds_CXX \ 13744 allow_undefined_flag_CXX \ 13745 no_undefined_flag_CXX \ 13746 export_symbols_cmds_CXX \ 13747 hardcode_libdir_flag_spec_CXX \ 13748 hardcode_libdir_flag_spec_ld_CXX \ 13749 hardcode_libdir_separator_CXX \ 13750 hardcode_automatic_CXX \ 13751 module_cmds_CXX \ 13752 module_expsym_cmds_CXX \ 13753 lt_cv_prog_compiler_c_o_CXX \ 13754 fix_srcfile_path_CXX \ 13755 exclude_expsyms_CXX \ 13756 include_expsyms_CXX; do 13757 13758 case $var in 13759 old_archive_cmds_CXX | \ 13760 old_archive_from_new_cmds_CXX | \ 13761 archive_cmds_CXX | \ 13762 archive_expsym_cmds_CXX | \ 13763 module_cmds_CXX | \ 13764 module_expsym_cmds_CXX | \ 13765 old_archive_from_expsyms_cmds_CXX | \ 13766 export_symbols_cmds_CXX | \ 13767 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13768 postinstall_cmds | postuninstall_cmds | \ 13769 old_postinstall_cmds | old_postuninstall_cmds | \ 13770 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13771 # Double-quote double-evaled strings. 13772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13773 ;; 13774 *) 13775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13776 ;; 13777 esac 13778 done 13779 13780 case $lt_echo in 13781 *'\$0 --fallback-echo"') 13782 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13783 ;; 13784 esac 13785 13786cfgfile="$ofile" 13787 13788 cat <<__EOF__ >> "$cfgfile" 13789# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13790 13791# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13792 13793# Shell to use when invoking shell scripts. 13794SHELL=$lt_SHELL 13795 13796# Whether or not to build shared libraries. 13797build_libtool_libs=$enable_shared 13798 13799# Whether or not to build static libraries. 13800build_old_libs=$enable_static 13801 13802# Whether or not to add -lc for building shared libraries. 13803build_libtool_need_lc=$archive_cmds_need_lc_CXX 13804 13805# Whether or not to disallow shared libs when runtime libs are static 13806allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13807 13808# Whether or not to optimize for fast installation. 13809fast_install=$enable_fast_install 13810 13811# The host system. 13812host_alias=$host_alias 13813host=$host 13814host_os=$host_os 13815 13816# The build system. 13817build_alias=$build_alias 13818build=$build 13819build_os=$build_os 13820 13821# An echo program that does not interpret backslashes. 13822echo=$lt_echo 13823 13824# The archiver. 13825AR=$lt_AR 13826AR_FLAGS=$lt_AR_FLAGS 13827 13828# A C compiler. 13829LTCC=$lt_LTCC 13830 13831# LTCC compiler flags. 13832LTCFLAGS=$lt_LTCFLAGS 13833 13834# A language-specific compiler. 13835CC=$lt_compiler_CXX 13836 13837# Is the compiler the GNU C compiler? 13838with_gcc=$GCC_CXX 13839 13840# An ERE matcher. 13841EGREP=$lt_EGREP 13842 13843# The linker used to build libraries. 13844LD=$lt_LD_CXX 13845 13846# Whether we need hard or soft links. 13847LN_S=$lt_LN_S 13848 13849# A BSD-compatible nm program. 13850NM=$lt_NM 13851 13852# A symbol stripping program 13853STRIP=$lt_STRIP 13854 13855# Used to examine libraries when file_magic_cmd begins "file" 13856MAGIC_CMD=$MAGIC_CMD 13857 13858# Used on cygwin: DLL creation program. 13859DLLTOOL="$DLLTOOL" 13860 13861# Used on cygwin: object dumper. 13862OBJDUMP="$OBJDUMP" 13863 13864# Used on cygwin: assembler. 13865AS="$AS" 13866 13867# The name of the directory that contains temporary libtool files. 13868objdir=$objdir 13869 13870# How to create reloadable object files. 13871reload_flag=$lt_reload_flag 13872reload_cmds=$lt_reload_cmds 13873 13874# How to pass a linker flag through the compiler. 13875wl=$lt_lt_prog_compiler_wl_CXX 13876 13877# Object file suffix (normally "o"). 13878objext="$ac_objext" 13879 13880# Old archive suffix (normally "a"). 13881libext="$libext" 13882 13883# Shared library suffix (normally ".so"). 13884shrext_cmds='$shrext_cmds' 13885 13886# Executable file suffix (normally ""). 13887exeext="$exeext" 13888 13889# Additional compiler flags for building library objects. 13890pic_flag=$lt_lt_prog_compiler_pic_CXX 13891pic_mode=$pic_mode 13892 13893# What is the maximum length of a command? 13894max_cmd_len=$lt_cv_sys_max_cmd_len 13895 13896# Does compiler simultaneously support -c and -o options? 13897compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13898 13899# Must we lock files when doing compilation? 13900need_locks=$lt_need_locks 13901 13902# Do we need the lib prefix for modules? 13903need_lib_prefix=$need_lib_prefix 13904 13905# Do we need a version for libraries? 13906need_version=$need_version 13907 13908# Whether dlopen is supported. 13909dlopen_support=$enable_dlopen 13910 13911# Whether dlopen of programs is supported. 13912dlopen_self=$enable_dlopen_self 13913 13914# Whether dlopen of statically linked programs is supported. 13915dlopen_self_static=$enable_dlopen_self_static 13916 13917# Compiler flag to prevent dynamic linking. 13918link_static_flag=$lt_lt_prog_compiler_static_CXX 13919 13920# Compiler flag to turn off builtin functions. 13921no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13922 13923# Compiler flag to allow reflexive dlopens. 13924export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13925 13926# Compiler flag to generate shared objects directly from archives. 13927whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13928 13929# Compiler flag to generate thread-safe objects. 13930thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13931 13932# Library versioning type. 13933version_type=$version_type 13934 13935# Format of library name prefix. 13936libname_spec=$lt_libname_spec 13937 13938# List of archive names. First name is the real one, the rest are links. 13939# The last name is the one that the linker finds with -lNAME. 13940library_names_spec=$lt_library_names_spec 13941 13942# The coded name of the library, if different from the real name. 13943soname_spec=$lt_soname_spec 13944 13945# Commands used to build and install an old-style archive. 13946RANLIB=$lt_RANLIB 13947old_archive_cmds=$lt_old_archive_cmds_CXX 13948old_postinstall_cmds=$lt_old_postinstall_cmds 13949old_postuninstall_cmds=$lt_old_postuninstall_cmds 13950 13951# Create an old-style archive from a shared archive. 13952old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13953 13954# Create a temporary old-style archive to link instead of a shared archive. 13955old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13956 13957# Commands used to build and install a shared archive. 13958archive_cmds=$lt_archive_cmds_CXX 13959archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13960postinstall_cmds=$lt_postinstall_cmds 13961postuninstall_cmds=$lt_postuninstall_cmds 13962 13963# Commands used to build a loadable module (assumed same as above if empty) 13964module_cmds=$lt_module_cmds_CXX 13965module_expsym_cmds=$lt_module_expsym_cmds_CXX 13966 13967# Commands to strip libraries. 13968old_striplib=$lt_old_striplib 13969striplib=$lt_striplib 13970 13971# Dependencies to place before the objects being linked to create a 13972# shared library. 13973predep_objects=$lt_predep_objects_CXX 13974 13975# Dependencies to place after the objects being linked to create a 13976# shared library. 13977postdep_objects=$lt_postdep_objects_CXX 13978 13979# Dependencies to place before the objects being linked to create a 13980# shared library. 13981predeps=$lt_predeps_CXX 13982 13983# Dependencies to place after the objects being linked to create a 13984# shared library. 13985postdeps=$lt_postdeps_CXX 13986 13987# The directories searched by this compiler when creating a shared 13988# library 13989compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 13990 13991# The library search path used internally by the compiler when linking 13992# a shared library. 13993compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13994 13995# Method to check whether dependent libraries are shared objects. 13996deplibs_check_method=$lt_deplibs_check_method 13997 13998# Command to use when deplibs_check_method == file_magic. 13999file_magic_cmd=$lt_file_magic_cmd 14000 14001# Flag that allows shared libraries with undefined symbols to be built. 14002allow_undefined_flag=$lt_allow_undefined_flag_CXX 14003 14004# Flag that forces no undefined symbols. 14005no_undefined_flag=$lt_no_undefined_flag_CXX 14006 14007# Commands used to finish a libtool library installation in a directory. 14008finish_cmds=$lt_finish_cmds 14009 14010# Same as above, but a single script fragment to be evaled but not shown. 14011finish_eval=$lt_finish_eval 14012 14013# Take the output of nm and produce a listing of raw symbols and C names. 14014global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14015 14016# Transform the output of nm in a proper C declaration 14017global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14018 14019# Transform the output of nm in a C name address pair 14020global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14021 14022# This is the shared library runtime path variable. 14023runpath_var=$runpath_var 14024 14025# This is the shared library path variable. 14026shlibpath_var=$shlibpath_var 14027 14028# Is shlibpath searched before the hard-coded library search path? 14029shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14030 14031# How to hardcode a shared library path into an executable. 14032hardcode_action=$hardcode_action_CXX 14033 14034# Whether we should hardcode library paths into libraries. 14035hardcode_into_libs=$hardcode_into_libs 14036 14037# Flag to hardcode \$libdir into a binary during linking. 14038# This must work even if \$libdir does not exist. 14039hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14040 14041# If ld is used when linking, flag to hardcode \$libdir into 14042# a binary during linking. This must work even if \$libdir does 14043# not exist. 14044hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14045 14046# Whether we need a single -rpath flag with a separated argument. 14047hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14048 14049# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14050# resulting binary. 14051hardcode_direct=$hardcode_direct_CXX 14052 14053# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14054# resulting binary. 14055hardcode_minus_L=$hardcode_minus_L_CXX 14056 14057# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14058# the resulting binary. 14059hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14060 14061# Set to yes if building a shared library automatically hardcodes DIR into the library 14062# and all subsequent libraries and executables linked against it. 14063hardcode_automatic=$hardcode_automatic_CXX 14064 14065# Variables whose values should be saved in libtool wrapper scripts and 14066# restored at relink time. 14067variables_saved_for_relink="$variables_saved_for_relink" 14068 14069# Whether libtool must link a program against all its dependency libraries. 14070link_all_deplibs=$link_all_deplibs_CXX 14071 14072# Compile-time system search path for libraries 14073sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14074 14075# Run-time system search path for libraries 14076sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14077 14078# Fix the shell variable \$srcfile for the compiler. 14079fix_srcfile_path=$lt_fix_srcfile_path 14080 14081# Set to yes if exported symbols are required. 14082always_export_symbols=$always_export_symbols_CXX 14083 14084# The commands to list exported symbols. 14085export_symbols_cmds=$lt_export_symbols_cmds_CXX 14086 14087# The commands to extract the exported symbol list from a shared archive. 14088extract_expsyms_cmds=$lt_extract_expsyms_cmds 14089 14090# Symbols that should not be listed in the preloaded symbols. 14091exclude_expsyms=$lt_exclude_expsyms_CXX 14092 14093# Symbols that must always be exported. 14094include_expsyms=$lt_include_expsyms_CXX 14095 14096# ### END LIBTOOL TAG CONFIG: $tagname 14097 14098__EOF__ 14099 14100 14101else 14102 # If there is no Makefile yet, we rely on a make rule to execute 14103 # `config.status --recheck' to rerun these tests and create the 14104 # libtool script then. 14105 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14106 if test -f "$ltmain_in"; then 14107 test -f Makefile && make "$ltmain" 14108 fi 14109fi 14110 14111 14112ac_ext=c 14113ac_cpp='$CPP $CPPFLAGS' 14114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14116ac_compiler_gnu=$ac_cv_c_compiler_gnu 14117 14118CC=$lt_save_CC 14119LDCXX=$LD 14120LD=$lt_save_LD 14121GCC=$lt_save_GCC 14122with_gnu_ldcxx=$with_gnu_ld 14123with_gnu_ld=$lt_save_with_gnu_ld 14124lt_cv_path_LDCXX=$lt_cv_path_LD 14125lt_cv_path_LD=$lt_save_path_LD 14126lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14127lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14128 14129 else 14130 tagname="" 14131 fi 14132 ;; 14133 14134 F77) 14135 if test -n "$F77" && test "X$F77" != "Xno"; then 14136 14137ac_ext=f 14138ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14139ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14140ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14141 14142 14143archive_cmds_need_lc_F77=no 14144allow_undefined_flag_F77= 14145always_export_symbols_F77=no 14146archive_expsym_cmds_F77= 14147export_dynamic_flag_spec_F77= 14148hardcode_direct_F77=no 14149hardcode_libdir_flag_spec_F77= 14150hardcode_libdir_flag_spec_ld_F77= 14151hardcode_libdir_separator_F77= 14152hardcode_minus_L_F77=no 14153hardcode_automatic_F77=no 14154module_cmds_F77= 14155module_expsym_cmds_F77= 14156link_all_deplibs_F77=unknown 14157old_archive_cmds_F77=$old_archive_cmds 14158no_undefined_flag_F77= 14159whole_archive_flag_spec_F77= 14160enable_shared_with_static_runtimes_F77=no 14161 14162# Source file extension for f77 test sources. 14163ac_ext=f 14164 14165# Object file extension for compiled f77 test sources. 14166objext=o 14167objext_F77=$objext 14168 14169# Code to be used in simple compile tests 14170lt_simple_compile_test_code="\ 14171 subroutine t 14172 return 14173 end 14174" 14175 14176# Code to be used in simple link tests 14177lt_simple_link_test_code="\ 14178 program t 14179 end 14180" 14181 14182# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14183 14184# If no C compiler was specified, use CC. 14185LTCC=${LTCC-"$CC"} 14186 14187# If no C compiler flags were specified, use CFLAGS. 14188LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14189 14190# Allow CC to be a program name with arguments. 14191compiler=$CC 14192 14193 14194# save warnings/boilerplate of simple test code 14195ac_outfile=conftest.$ac_objext 14196echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14197eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14198_lt_compiler_boilerplate=`cat conftest.err` 14199$rm conftest* 14200 14201ac_outfile=conftest.$ac_objext 14202echo "$lt_simple_link_test_code" >conftest.$ac_ext 14203eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14204_lt_linker_boilerplate=`cat conftest.err` 14205$rm -r conftest* 14206 14207 14208# Allow CC to be a program name with arguments. 14209lt_save_CC="$CC" 14210CC=${F77-"f77"} 14211compiler=$CC 14212compiler_F77=$CC 14213for cc_temp in $compiler""; do 14214 case $cc_temp in 14215 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14216 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14217 \-*) ;; 14218 *) break;; 14219 esac 14220done 14221cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14222 14223 14224{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14225$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14226{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14227$as_echo "$can_build_shared" >&6; } 14228 14229{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14230$as_echo_n "checking whether to build shared libraries... " >&6; } 14231test "$can_build_shared" = "no" && enable_shared=no 14232 14233# On AIX, shared libraries and static libraries use the same namespace, and 14234# are all built from PIC. 14235case $host_os in 14236aix3*) 14237 test "$enable_shared" = yes && enable_static=no 14238 if test -n "$RANLIB"; then 14239 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14240 postinstall_cmds='$RANLIB $lib' 14241 fi 14242 ;; 14243aix[4-9]*) 14244 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14245 test "$enable_shared" = yes && enable_static=no 14246 fi 14247 ;; 14248esac 14249{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14250$as_echo "$enable_shared" >&6; } 14251 14252{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14253$as_echo_n "checking whether to build static libraries... " >&6; } 14254# Make sure either enable_shared or enable_static is yes. 14255test "$enable_shared" = yes || enable_static=yes 14256{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14257$as_echo "$enable_static" >&6; } 14258 14259GCC_F77="$G77" 14260LD_F77="$LD" 14261 14262lt_prog_compiler_wl_F77= 14263lt_prog_compiler_pic_F77= 14264lt_prog_compiler_static_F77= 14265 14266{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14267$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14268 14269 if test "$GCC" = yes; then 14270 lt_prog_compiler_wl_F77='-Wl,' 14271 lt_prog_compiler_static_F77='-static' 14272 14273 case $host_os in 14274 aix*) 14275 # All AIX code is PIC. 14276 if test "$host_cpu" = ia64; then 14277 # AIX 5 now supports IA64 processor 14278 lt_prog_compiler_static_F77='-Bstatic' 14279 fi 14280 ;; 14281 14282 amigaos*) 14283 # FIXME: we need at least 68020 code to build shared libraries, but 14284 # adding the `-m68020' flag to GCC prevents building anything better, 14285 # like `-m68040'. 14286 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14287 ;; 14288 14289 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14290 # PIC is the default for these OSes. 14291 ;; 14292 14293 mingw* | cygwin* | pw32* | os2*) 14294 # This hack is so that the source file can tell whether it is being 14295 # built for inclusion in a dll (and should export symbols for example). 14296 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14297 # (--disable-auto-import) libraries 14298 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14299 ;; 14300 14301 darwin* | rhapsody*) 14302 # PIC is the default on this platform 14303 # Common symbols not allowed in MH_DYLIB files 14304 lt_prog_compiler_pic_F77='-fno-common' 14305 ;; 14306 14307 interix[3-9]*) 14308 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14309 # Instead, we relocate shared libraries at runtime. 14310 ;; 14311 14312 msdosdjgpp*) 14313 # Just because we use GCC doesn't mean we suddenly get shared libraries 14314 # on systems that don't support them. 14315 lt_prog_compiler_can_build_shared_F77=no 14316 enable_shared=no 14317 ;; 14318 14319 sysv4*MP*) 14320 if test -d /usr/nec; then 14321 lt_prog_compiler_pic_F77=-Kconform_pic 14322 fi 14323 ;; 14324 14325 hpux*) 14326 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14327 # not for PA HP-UX. 14328 case $host_cpu in 14329 hppa*64*|ia64*) 14330 # +Z the default 14331 ;; 14332 *) 14333 lt_prog_compiler_pic_F77='-fPIC' 14334 ;; 14335 esac 14336 ;; 14337 14338 *) 14339 lt_prog_compiler_pic_F77='-fPIC' 14340 ;; 14341 esac 14342 else 14343 # PORTME Check for flag to pass linker flags through the system compiler. 14344 case $host_os in 14345 aix*) 14346 lt_prog_compiler_wl_F77='-Wl,' 14347 if test "$host_cpu" = ia64; then 14348 # AIX 5 now supports IA64 processor 14349 lt_prog_compiler_static_F77='-Bstatic' 14350 else 14351 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14352 fi 14353 ;; 14354 darwin*) 14355 # PIC is the default on this platform 14356 # Common symbols not allowed in MH_DYLIB files 14357 case $cc_basename in 14358 xlc*) 14359 lt_prog_compiler_pic_F77='-qnocommon' 14360 lt_prog_compiler_wl_F77='-Wl,' 14361 ;; 14362 esac 14363 ;; 14364 14365 mingw* | cygwin* | pw32* | os2*) 14366 # This hack is so that the source file can tell whether it is being 14367 # built for inclusion in a dll (and should export symbols for example). 14368 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14369 ;; 14370 14371 hpux9* | hpux10* | hpux11*) 14372 lt_prog_compiler_wl_F77='-Wl,' 14373 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14374 # not for PA HP-UX. 14375 case $host_cpu in 14376 hppa*64*|ia64*) 14377 # +Z the default 14378 ;; 14379 *) 14380 lt_prog_compiler_pic_F77='+Z' 14381 ;; 14382 esac 14383 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14384 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14385 ;; 14386 14387 irix5* | irix6* | nonstopux*) 14388 lt_prog_compiler_wl_F77='-Wl,' 14389 # PIC (with -KPIC) is the default. 14390 lt_prog_compiler_static_F77='-non_shared' 14391 ;; 14392 14393 newsos6) 14394 lt_prog_compiler_pic_F77='-KPIC' 14395 lt_prog_compiler_static_F77='-Bstatic' 14396 ;; 14397 14398 linux* | k*bsd*-gnu) 14399 case $cc_basename in 14400 icc* | ecc*) 14401 lt_prog_compiler_wl_F77='-Wl,' 14402 lt_prog_compiler_pic_F77='-KPIC' 14403 lt_prog_compiler_static_F77='-static' 14404 ;; 14405 pgcc* | pgf77* | pgf90* | pgf95*) 14406 # Portland Group compilers (*not* the Pentium gcc compiler, 14407 # which looks to be a dead project) 14408 lt_prog_compiler_wl_F77='-Wl,' 14409 lt_prog_compiler_pic_F77='-fpic' 14410 lt_prog_compiler_static_F77='-Bstatic' 14411 ;; 14412 ccc*) 14413 lt_prog_compiler_wl_F77='-Wl,' 14414 # All Alpha code is PIC. 14415 lt_prog_compiler_static_F77='-non_shared' 14416 ;; 14417 *) 14418 case `$CC -V 2>&1 | sed 5q` in 14419 *Sun\ C*) 14420 # Sun C 5.9 14421 lt_prog_compiler_pic_F77='-KPIC' 14422 lt_prog_compiler_static_F77='-Bstatic' 14423 lt_prog_compiler_wl_F77='-Wl,' 14424 ;; 14425 *Sun\ F*) 14426 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14427 lt_prog_compiler_pic_F77='-KPIC' 14428 lt_prog_compiler_static_F77='-Bstatic' 14429 lt_prog_compiler_wl_F77='' 14430 ;; 14431 esac 14432 ;; 14433 esac 14434 ;; 14435 14436 osf3* | osf4* | osf5*) 14437 lt_prog_compiler_wl_F77='-Wl,' 14438 # All OSF/1 code is PIC. 14439 lt_prog_compiler_static_F77='-non_shared' 14440 ;; 14441 14442 rdos*) 14443 lt_prog_compiler_static_F77='-non_shared' 14444 ;; 14445 14446 solaris*) 14447 lt_prog_compiler_pic_F77='-KPIC' 14448 lt_prog_compiler_static_F77='-Bstatic' 14449 case $cc_basename in 14450 f77* | f90* | f95*) 14451 lt_prog_compiler_wl_F77='-Qoption ld ';; 14452 *) 14453 lt_prog_compiler_wl_F77='-Wl,';; 14454 esac 14455 ;; 14456 14457 sunos4*) 14458 lt_prog_compiler_wl_F77='-Qoption ld ' 14459 lt_prog_compiler_pic_F77='-PIC' 14460 lt_prog_compiler_static_F77='-Bstatic' 14461 ;; 14462 14463 sysv4 | sysv4.2uw2* | sysv4.3*) 14464 lt_prog_compiler_wl_F77='-Wl,' 14465 lt_prog_compiler_pic_F77='-KPIC' 14466 lt_prog_compiler_static_F77='-Bstatic' 14467 ;; 14468 14469 sysv4*MP*) 14470 if test -d /usr/nec ;then 14471 lt_prog_compiler_pic_F77='-Kconform_pic' 14472 lt_prog_compiler_static_F77='-Bstatic' 14473 fi 14474 ;; 14475 14476 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14477 lt_prog_compiler_wl_F77='-Wl,' 14478 lt_prog_compiler_pic_F77='-KPIC' 14479 lt_prog_compiler_static_F77='-Bstatic' 14480 ;; 14481 14482 unicos*) 14483 lt_prog_compiler_wl_F77='-Wl,' 14484 lt_prog_compiler_can_build_shared_F77=no 14485 ;; 14486 14487 uts4*) 14488 lt_prog_compiler_pic_F77='-pic' 14489 lt_prog_compiler_static_F77='-Bstatic' 14490 ;; 14491 14492 *) 14493 lt_prog_compiler_can_build_shared_F77=no 14494 ;; 14495 esac 14496 fi 14497 14498{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14499$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14500 14501# 14502# Check to make sure the PIC flag actually works. 14503# 14504if test -n "$lt_prog_compiler_pic_F77"; then 14505 14506{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14507$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14508if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14509 $as_echo_n "(cached) " >&6 14510else 14511 lt_cv_prog_compiler_pic_works_F77=no 14512 ac_outfile=conftest.$ac_objext 14513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14514 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14515 # Insert the option either (1) after the last *FLAGS variable, or 14516 # (2) before a word containing "conftest.", or (3) at the end. 14517 # Note that $ac_compile itself does not contain backslashes and begins 14518 # with a dollar sign (not a hyphen), so the echo should work correctly. 14519 # The option is referenced via a variable to avoid confusing sed. 14520 lt_compile=`echo "$ac_compile" | $SED \ 14521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14523 -e 's:$: $lt_compiler_flag:'` 14524 (eval echo "\"\$as_me:14524: $lt_compile\"" >&5) 14525 (eval "$lt_compile" 2>conftest.err) 14526 ac_status=$? 14527 cat conftest.err >&5 14528 echo "$as_me:14528: \$? = $ac_status" >&5 14529 if (exit $ac_status) && test -s "$ac_outfile"; then 14530 # The compiler can only warn and ignore the option if not recognized 14531 # So say no if there are warnings other than the usual output. 14532 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14534 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14535 lt_cv_prog_compiler_pic_works_F77=yes 14536 fi 14537 fi 14538 $rm conftest* 14539 14540fi 14541{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14542$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14543 14544if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14545 case $lt_prog_compiler_pic_F77 in 14546 "" | " "*) ;; 14547 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14548 esac 14549else 14550 lt_prog_compiler_pic_F77= 14551 lt_prog_compiler_can_build_shared_F77=no 14552fi 14553 14554fi 14555case $host_os in 14556 # For platforms which do not support PIC, -DPIC is meaningless: 14557 *djgpp*) 14558 lt_prog_compiler_pic_F77= 14559 ;; 14560 *) 14561 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14562 ;; 14563esac 14564 14565# 14566# Check to make sure the static flag actually works. 14567# 14568wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14569{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14570$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14571if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14572 $as_echo_n "(cached) " >&6 14573else 14574 lt_cv_prog_compiler_static_works_F77=no 14575 save_LDFLAGS="$LDFLAGS" 14576 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14577 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14578 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14579 # The linker can only warn and ignore the option if not recognized 14580 # So say no if there are warnings 14581 if test -s conftest.err; then 14582 # Append any errors to the config.log. 14583 cat conftest.err 1>&5 14584 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14586 if diff conftest.exp conftest.er2 >/dev/null; then 14587 lt_cv_prog_compiler_static_works_F77=yes 14588 fi 14589 else 14590 lt_cv_prog_compiler_static_works_F77=yes 14591 fi 14592 fi 14593 $rm -r conftest* 14594 LDFLAGS="$save_LDFLAGS" 14595 14596fi 14597{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14598$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14599 14600if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14601 : 14602else 14603 lt_prog_compiler_static_F77= 14604fi 14605 14606 14607{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14608$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14609if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14610 $as_echo_n "(cached) " >&6 14611else 14612 lt_cv_prog_compiler_c_o_F77=no 14613 $rm -r conftest 2>/dev/null 14614 mkdir conftest 14615 cd conftest 14616 mkdir out 14617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14618 14619 lt_compiler_flag="-o out/conftest2.$ac_objext" 14620 # Insert the option either (1) after the last *FLAGS variable, or 14621 # (2) before a word containing "conftest.", or (3) at the end. 14622 # Note that $ac_compile itself does not contain backslashes and begins 14623 # with a dollar sign (not a hyphen), so the echo should work correctly. 14624 lt_compile=`echo "$ac_compile" | $SED \ 14625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14627 -e 's:$: $lt_compiler_flag:'` 14628 (eval echo "\"\$as_me:14628: $lt_compile\"" >&5) 14629 (eval "$lt_compile" 2>out/conftest.err) 14630 ac_status=$? 14631 cat out/conftest.err >&5 14632 echo "$as_me:14632: \$? = $ac_status" >&5 14633 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14634 then 14635 # The compiler can only warn and ignore the option if not recognized 14636 # So say no if there are warnings 14637 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14638 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14639 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14640 lt_cv_prog_compiler_c_o_F77=yes 14641 fi 14642 fi 14643 chmod u+w . 2>&5 14644 $rm conftest* 14645 # SGI C++ compiler will create directory out/ii_files/ for 14646 # template instantiation 14647 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14648 $rm out/* && rmdir out 14649 cd .. 14650 rmdir conftest 14651 $rm conftest* 14652 14653fi 14654{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14655$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14656 14657 14658hard_links="nottested" 14659if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14660 # do not overwrite the value of need_locks provided by the user 14661 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14662$as_echo_n "checking if we can lock with hard links... " >&6; } 14663 hard_links=yes 14664 $rm conftest* 14665 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14666 touch conftest.a 14667 ln conftest.a conftest.b 2>&5 || hard_links=no 14668 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14669 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14670$as_echo "$hard_links" >&6; } 14671 if test "$hard_links" = no; then 14672 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14673$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14674 need_locks=warn 14675 fi 14676else 14677 need_locks=no 14678fi 14679 14680{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14681$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14682 14683 runpath_var= 14684 allow_undefined_flag_F77= 14685 enable_shared_with_static_runtimes_F77=no 14686 archive_cmds_F77= 14687 archive_expsym_cmds_F77= 14688 old_archive_From_new_cmds_F77= 14689 old_archive_from_expsyms_cmds_F77= 14690 export_dynamic_flag_spec_F77= 14691 whole_archive_flag_spec_F77= 14692 thread_safe_flag_spec_F77= 14693 hardcode_libdir_flag_spec_F77= 14694 hardcode_libdir_flag_spec_ld_F77= 14695 hardcode_libdir_separator_F77= 14696 hardcode_direct_F77=no 14697 hardcode_minus_L_F77=no 14698 hardcode_shlibpath_var_F77=unsupported 14699 link_all_deplibs_F77=unknown 14700 hardcode_automatic_F77=no 14701 module_cmds_F77= 14702 module_expsym_cmds_F77= 14703 always_export_symbols_F77=no 14704 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14705 # include_expsyms should be a list of space-separated symbols to be *always* 14706 # included in the symbol list 14707 include_expsyms_F77= 14708 # exclude_expsyms can be an extended regexp of symbols to exclude 14709 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14711 # as well as any symbol that contains `d'. 14712 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14714 # platforms (ab)use it in PIC code, but their linkers get confused if 14715 # the symbol is explicitly referenced. Since portable code cannot 14716 # rely on this symbol name, it's probably fine to never include it in 14717 # preloaded symbol tables. 14718 # Exclude shared library initialization/finalization symbols. 14719 extract_expsyms_cmds= 14720 # Just being paranoid about ensuring that cc_basename is set. 14721 for cc_temp in $compiler""; do 14722 case $cc_temp in 14723 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14724 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14725 \-*) ;; 14726 *) break;; 14727 esac 14728done 14729cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14730 14731 case $host_os in 14732 cygwin* | mingw* | pw32*) 14733 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14734 # When not using gcc, we currently assume that we are using 14735 # Microsoft Visual C++. 14736 if test "$GCC" != yes; then 14737 with_gnu_ld=no 14738 fi 14739 ;; 14740 interix*) 14741 # we just hope/assume this is gcc and not c89 (= MSVC++) 14742 with_gnu_ld=yes 14743 ;; 14744 openbsd*) 14745 with_gnu_ld=no 14746 ;; 14747 esac 14748 14749 ld_shlibs_F77=yes 14750 if test "$with_gnu_ld" = yes; then 14751 # If archive_cmds runs LD, not CC, wlarc should be empty 14752 wlarc='${wl}' 14753 14754 # Set some defaults for GNU ld with shared library support. These 14755 # are reset later if shared libraries are not supported. Putting them 14756 # here allows them to be overridden if necessary. 14757 runpath_var=LD_RUN_PATH 14758 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14759 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14760 # ancient GNU ld didn't support --whole-archive et. al. 14761 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14762 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14763 else 14764 whole_archive_flag_spec_F77= 14765 fi 14766 supports_anon_versioning=no 14767 case `$LD -v 2>/dev/null` in 14768 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14769 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14770 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14771 *\ 2.11.*) ;; # other 2.11 versions 14772 *) supports_anon_versioning=yes ;; 14773 esac 14774 14775 # See if GNU ld supports shared libraries. 14776 case $host_os in 14777 aix[3-9]*) 14778 # On AIX/PPC, the GNU linker is very broken 14779 if test "$host_cpu" != ia64; then 14780 ld_shlibs_F77=no 14781 cat <<EOF 1>&2 14782 14783*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14784*** to be unable to reliably create shared libraries on AIX. 14785*** Therefore, libtool is disabling shared libraries support. If you 14786*** really care for shared libraries, you may want to modify your PATH 14787*** so that a non-GNU linker is found, and then restart. 14788 14789EOF 14790 fi 14791 ;; 14792 14793 amigaos*) 14794 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)' 14795 hardcode_libdir_flag_spec_F77='-L$libdir' 14796 hardcode_minus_L_F77=yes 14797 14798 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14799 # that the semantics of dynamic libraries on AmigaOS, at least up 14800 # to version 4, is to share data among multiple programs linked 14801 # with the same dynamic library. Since this doesn't match the 14802 # behavior of shared libraries on other platforms, we can't use 14803 # them. 14804 ld_shlibs_F77=no 14805 ;; 14806 14807 beos*) 14808 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14809 allow_undefined_flag_F77=unsupported 14810 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14811 # support --undefined. This deserves some investigation. FIXME 14812 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14813 else 14814 ld_shlibs_F77=no 14815 fi 14816 ;; 14817 14818 cygwin* | mingw* | pw32*) 14819 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14820 # as there is no search path for DLLs. 14821 hardcode_libdir_flag_spec_F77='-L$libdir' 14822 allow_undefined_flag_F77=unsupported 14823 always_export_symbols_F77=no 14824 enable_shared_with_static_runtimes_F77=yes 14825 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14826 14827 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14828 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14829 # If the export-symbols file already is a .def file (1st line 14830 # is EXPORTS), use it as is; otherwise, prepend... 14831 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14832 cp $export_symbols $output_objdir/$soname.def; 14833 else 14834 echo EXPORTS > $output_objdir/$soname.def; 14835 cat $export_symbols >> $output_objdir/$soname.def; 14836 fi~ 14837 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14838 else 14839 ld_shlibs_F77=no 14840 fi 14841 ;; 14842 14843 interix[3-9]*) 14844 hardcode_direct_F77=no 14845 hardcode_shlibpath_var_F77=no 14846 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14847 export_dynamic_flag_spec_F77='${wl}-E' 14848 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14849 # Instead, shared libraries are loaded at an image base (0x10000000 by 14850 # default) and relocated if they conflict, which is a slow very memory 14851 # consuming and fragmenting process. To avoid this, we pick a random, 14852 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14853 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14854 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' 14855 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' 14856 ;; 14857 14858 gnu* | linux* | k*bsd*-gnu) 14859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14860 tmp_addflag= 14861 case $cc_basename,$host_cpu in 14862 pgcc*) # Portland Group C compiler 14863 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' 14864 tmp_addflag=' $pic_flag' 14865 ;; 14866 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14867 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' 14868 tmp_addflag=' $pic_flag -Mnomain' ;; 14869 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14870 tmp_addflag=' -i_dynamic' ;; 14871 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14872 tmp_addflag=' -i_dynamic -nofor_main' ;; 14873 ifc* | ifort*) # Intel Fortran compiler 14874 tmp_addflag=' -nofor_main' ;; 14875 esac 14876 case `$CC -V 2>&1 | sed 5q` in 14877 *Sun\ C*) # Sun C 5.9 14878 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14879 tmp_sharedflag='-G' ;; 14880 *Sun\ F*) # Sun Fortran 8.3 14881 tmp_sharedflag='-G' ;; 14882 *) 14883 tmp_sharedflag='-shared' ;; 14884 esac 14885 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14886 14887 if test $supports_anon_versioning = yes; then 14888 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14889 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14890 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14891 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14892 fi 14893 else 14894 ld_shlibs_F77=no 14895 fi 14896 ;; 14897 14898 netbsd*) 14899 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14900 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14901 wlarc= 14902 else 14903 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14904 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14905 fi 14906 ;; 14907 14908 solaris*) 14909 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14910 ld_shlibs_F77=no 14911 cat <<EOF 1>&2 14912 14913*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14914*** create shared libraries on Solaris systems. Therefore, libtool 14915*** is disabling shared libraries support. We urge you to upgrade GNU 14916*** binutils to release 2.9.1 or newer. Another option is to modify 14917*** your PATH or compiler configuration so that the native linker is 14918*** used, and then restart. 14919 14920EOF 14921 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14922 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14923 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14924 else 14925 ld_shlibs_F77=no 14926 fi 14927 ;; 14928 14929 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14930 case `$LD -v 2>&1` in 14931 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14932 ld_shlibs_F77=no 14933 cat <<_LT_EOF 1>&2 14934 14935*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14936*** reliably create shared libraries on SCO systems. Therefore, libtool 14937*** is disabling shared libraries support. We urge you to upgrade GNU 14938*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14939*** your PATH or compiler configuration so that the native linker is 14940*** used, and then restart. 14941 14942_LT_EOF 14943 ;; 14944 *) 14945 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14946 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14947 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14948 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14949 else 14950 ld_shlibs_F77=no 14951 fi 14952 ;; 14953 esac 14954 ;; 14955 14956 sunos4*) 14957 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14958 wlarc= 14959 hardcode_direct_F77=yes 14960 hardcode_shlibpath_var_F77=no 14961 ;; 14962 14963 *) 14964 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14965 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14966 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14967 else 14968 ld_shlibs_F77=no 14969 fi 14970 ;; 14971 esac 14972 14973 if test "$ld_shlibs_F77" = no; then 14974 runpath_var= 14975 hardcode_libdir_flag_spec_F77= 14976 export_dynamic_flag_spec_F77= 14977 whole_archive_flag_spec_F77= 14978 fi 14979 else 14980 # PORTME fill in a description of your system's linker (not GNU ld) 14981 case $host_os in 14982 aix3*) 14983 allow_undefined_flag_F77=unsupported 14984 always_export_symbols_F77=yes 14985 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' 14986 # Note: this linker hardcodes the directories in LIBPATH if there 14987 # are no directories specified by -L. 14988 hardcode_minus_L_F77=yes 14989 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14990 # Neither direct hardcoding nor static linking is supported with a 14991 # broken collect2. 14992 hardcode_direct_F77=unsupported 14993 fi 14994 ;; 14995 14996 aix[4-9]*) 14997 if test "$host_cpu" = ia64; then 14998 # On IA64, the linker does run time linking by default, so we don't 14999 # have to do anything special. 15000 aix_use_runtimelinking=no 15001 exp_sym_flag='-Bexport' 15002 no_entry_flag="" 15003 else 15004 # If we're using GNU nm, then we don't want the "-C" option. 15005 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15006 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15007 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' 15008 else 15009 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' 15010 fi 15011 aix_use_runtimelinking=no 15012 15013 # Test if we are trying to use run time linking or normal 15014 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15015 # need to do runtime linking. 15016 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15017 for ld_flag in $LDFLAGS; do 15018 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15019 aix_use_runtimelinking=yes 15020 break 15021 fi 15022 done 15023 ;; 15024 esac 15025 15026 exp_sym_flag='-bexport' 15027 no_entry_flag='-bnoentry' 15028 fi 15029 15030 # When large executables or shared objects are built, AIX ld can 15031 # have problems creating the table of contents. If linking a library 15032 # or program results in "error TOC overflow" add -mminimal-toc to 15033 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15034 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15035 15036 archive_cmds_F77='' 15037 hardcode_direct_F77=yes 15038 hardcode_libdir_separator_F77=':' 15039 link_all_deplibs_F77=yes 15040 15041 if test "$GCC" = yes; then 15042 case $host_os in aix4.[012]|aix4.[012].*) 15043 # We only want to do this on AIX 4.2 and lower, the check 15044 # below for broken collect2 doesn't work under 4.3+ 15045 collect2name=`${CC} -print-prog-name=collect2` 15046 if test -f "$collect2name" && \ 15047 strings "$collect2name" | grep resolve_lib_name >/dev/null 15048 then 15049 # We have reworked collect2 15050 : 15051 else 15052 # We have old collect2 15053 hardcode_direct_F77=unsupported 15054 # It fails to find uninstalled libraries when the uninstalled 15055 # path is not listed in the libpath. Setting hardcode_minus_L 15056 # to unsupported forces relinking 15057 hardcode_minus_L_F77=yes 15058 hardcode_libdir_flag_spec_F77='-L$libdir' 15059 hardcode_libdir_separator_F77= 15060 fi 15061 ;; 15062 esac 15063 shared_flag='-shared' 15064 if test "$aix_use_runtimelinking" = yes; then 15065 shared_flag="$shared_flag "'${wl}-G' 15066 fi 15067 else 15068 # not using gcc 15069 if test "$host_cpu" = ia64; then 15070 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15071 # chokes on -Wl,-G. The following line is correct: 15072 shared_flag='-G' 15073 else 15074 if test "$aix_use_runtimelinking" = yes; then 15075 shared_flag='${wl}-G' 15076 else 15077 shared_flag='${wl}-bM:SRE' 15078 fi 15079 fi 15080 fi 15081 15082 # It seems that -bexpall does not export symbols beginning with 15083 # underscore (_), so it is better to generate a list of symbols to export. 15084 always_export_symbols_F77=yes 15085 if test "$aix_use_runtimelinking" = yes; then 15086 # Warning - without using the other runtime loading flags (-brtl), 15087 # -berok will link without error, but may produce a broken library. 15088 allow_undefined_flag_F77='-berok' 15089 # Determine the default libpath from the value encoded in an empty executable. 15090 cat >conftest.$ac_ext <<_ACEOF 15091 program main 15092 15093 end 15094_ACEOF 15095rm -f conftest.$ac_objext conftest$ac_exeext 15096if { (ac_try="$ac_link" 15097case "(($ac_try" in 15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15099 *) ac_try_echo=$ac_try;; 15100esac 15101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15102$as_echo "$ac_try_echo") >&5 15103 (eval "$ac_link") 2>conftest.er1 15104 ac_status=$? 15105 grep -v '^ *+' conftest.er1 >conftest.err 15106 rm -f conftest.er1 15107 cat conftest.err >&5 15108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15109 (exit $ac_status); } && { 15110 test -z "$ac_f77_werror_flag" || 15111 test ! -s conftest.err 15112 } && test -s conftest$ac_exeext && { 15113 test "$cross_compiling" = yes || 15114 $as_test_x conftest$ac_exeext 15115 }; then 15116 15117lt_aix_libpath_sed=' 15118 /Import File Strings/,/^$/ { 15119 /^0/ { 15120 s/^0 *\(.*\)$/\1/ 15121 p 15122 } 15123 }' 15124aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15125# Check for a 64-bit object if we didn't find anything. 15126if test -z "$aix_libpath"; then 15127 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15128fi 15129else 15130 $as_echo "$as_me: failed program was:" >&5 15131sed 's/^/| /' conftest.$ac_ext >&5 15132 15133 15134fi 15135 15136rm -rf conftest.dSYM 15137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15138 conftest$ac_exeext conftest.$ac_ext 15139if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15140 15141 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15142 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" 15143 else 15144 if test "$host_cpu" = ia64; then 15145 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15146 allow_undefined_flag_F77="-z nodefs" 15147 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" 15148 else 15149 # Determine the default libpath from the value encoded in an empty executable. 15150 cat >conftest.$ac_ext <<_ACEOF 15151 program main 15152 15153 end 15154_ACEOF 15155rm -f conftest.$ac_objext conftest$ac_exeext 15156if { (ac_try="$ac_link" 15157case "(($ac_try" in 15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15159 *) ac_try_echo=$ac_try;; 15160esac 15161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15162$as_echo "$ac_try_echo") >&5 15163 (eval "$ac_link") 2>conftest.er1 15164 ac_status=$? 15165 grep -v '^ *+' conftest.er1 >conftest.err 15166 rm -f conftest.er1 15167 cat conftest.err >&5 15168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15169 (exit $ac_status); } && { 15170 test -z "$ac_f77_werror_flag" || 15171 test ! -s conftest.err 15172 } && test -s conftest$ac_exeext && { 15173 test "$cross_compiling" = yes || 15174 $as_test_x conftest$ac_exeext 15175 }; then 15176 15177lt_aix_libpath_sed=' 15178 /Import File Strings/,/^$/ { 15179 /^0/ { 15180 s/^0 *\(.*\)$/\1/ 15181 p 15182 } 15183 }' 15184aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15185# Check for a 64-bit object if we didn't find anything. 15186if test -z "$aix_libpath"; then 15187 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15188fi 15189else 15190 $as_echo "$as_me: failed program was:" >&5 15191sed 's/^/| /' conftest.$ac_ext >&5 15192 15193 15194fi 15195 15196rm -rf conftest.dSYM 15197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15198 conftest$ac_exeext conftest.$ac_ext 15199if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15200 15201 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15202 # Warning - without using the other run time loading flags, 15203 # -berok will link without error, but may produce a broken library. 15204 no_undefined_flag_F77=' ${wl}-bernotok' 15205 allow_undefined_flag_F77=' ${wl}-berok' 15206 # Exported symbols can be pulled into shared objects from archives 15207 whole_archive_flag_spec_F77='$convenience' 15208 archive_cmds_need_lc_F77=yes 15209 # This is similar to how AIX traditionally builds its shared libraries. 15210 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' 15211 fi 15212 fi 15213 ;; 15214 15215 amigaos*) 15216 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)' 15217 hardcode_libdir_flag_spec_F77='-L$libdir' 15218 hardcode_minus_L_F77=yes 15219 # see comment about different semantics on the GNU ld section 15220 ld_shlibs_F77=no 15221 ;; 15222 15223 bsdi[45]*) 15224 export_dynamic_flag_spec_F77=-rdynamic 15225 ;; 15226 15227 cygwin* | mingw* | pw32*) 15228 # When not using gcc, we currently assume that we are using 15229 # Microsoft Visual C++. 15230 # hardcode_libdir_flag_spec is actually meaningless, as there is 15231 # no search path for DLLs. 15232 hardcode_libdir_flag_spec_F77=' ' 15233 allow_undefined_flag_F77=unsupported 15234 # Tell ltmain to make .lib files, not .a files. 15235 libext=lib 15236 # Tell ltmain to make .dll files, not .so files. 15237 shrext_cmds=".dll" 15238 # FIXME: Setting linknames here is a bad hack. 15239 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15240 # The linker will automatically build a .lib file if we build a DLL. 15241 old_archive_From_new_cmds_F77='true' 15242 # FIXME: Should let the user specify the lib program. 15243 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15244 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15245 enable_shared_with_static_runtimes_F77=yes 15246 ;; 15247 15248 darwin* | rhapsody*) 15249 case $host_os in 15250 rhapsody* | darwin1.[012]) 15251 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15252 ;; 15253 *) # Darwin 1.3 on 15254 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15255 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15256 else 15257 case ${MACOSX_DEPLOYMENT_TARGET} in 15258 10.[012]) 15259 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15260 ;; 15261 10.*) 15262 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15263 ;; 15264 esac 15265 fi 15266 ;; 15267 esac 15268 archive_cmds_need_lc_F77=no 15269 hardcode_direct_F77=no 15270 hardcode_automatic_F77=yes 15271 hardcode_shlibpath_var_F77=unsupported 15272 whole_archive_flag_spec_F77='' 15273 link_all_deplibs_F77=yes 15274 if test "$GCC" = yes ; then 15275 output_verbose_link_cmd='echo' 15276 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15277 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15278 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 15279 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 15280 else 15281 case $cc_basename in 15282 xlc*) 15283 output_verbose_link_cmd='echo' 15284 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15285 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15286 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15287 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15288 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}' 15289 ;; 15290 *) 15291 ld_shlibs_F77=no 15292 ;; 15293 esac 15294 fi 15295 ;; 15296 15297 dgux*) 15298 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15299 hardcode_libdir_flag_spec_F77='-L$libdir' 15300 hardcode_shlibpath_var_F77=no 15301 ;; 15302 15303 freebsd1*) 15304 ld_shlibs_F77=no 15305 ;; 15306 15307 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15308 # support. Future versions do this automatically, but an explicit c++rt0.o 15309 # does not break anything, and helps significantly (at the cost of a little 15310 # extra space). 15311 freebsd2.2*) 15312 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15313 hardcode_libdir_flag_spec_F77='-R$libdir' 15314 hardcode_direct_F77=yes 15315 hardcode_shlibpath_var_F77=no 15316 ;; 15317 15318 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15319 freebsd2*) 15320 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15321 hardcode_direct_F77=yes 15322 hardcode_minus_L_F77=yes 15323 hardcode_shlibpath_var_F77=no 15324 ;; 15325 15326 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15327 freebsd* | dragonfly*) 15328 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15329 hardcode_libdir_flag_spec_F77='-R$libdir' 15330 hardcode_direct_F77=yes 15331 hardcode_shlibpath_var_F77=no 15332 ;; 15333 15334 hpux9*) 15335 if test "$GCC" = yes; then 15336 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' 15337 else 15338 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' 15339 fi 15340 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15341 hardcode_libdir_separator_F77=: 15342 hardcode_direct_F77=yes 15343 15344 # hardcode_minus_L: Not really in the search PATH, 15345 # but as the default location of the library. 15346 hardcode_minus_L_F77=yes 15347 export_dynamic_flag_spec_F77='${wl}-E' 15348 ;; 15349 15350 hpux10*) 15351 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15352 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15353 else 15354 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15355 fi 15356 if test "$with_gnu_ld" = no; then 15357 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15358 hardcode_libdir_separator_F77=: 15359 15360 hardcode_direct_F77=yes 15361 export_dynamic_flag_spec_F77='${wl}-E' 15362 15363 # hardcode_minus_L: Not really in the search PATH, 15364 # but as the default location of the library. 15365 hardcode_minus_L_F77=yes 15366 fi 15367 ;; 15368 15369 hpux11*) 15370 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15371 case $host_cpu in 15372 hppa*64*) 15373 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15374 ;; 15375 ia64*) 15376 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15377 ;; 15378 *) 15379 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15380 ;; 15381 esac 15382 else 15383 case $host_cpu in 15384 hppa*64*) 15385 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15386 ;; 15387 ia64*) 15388 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15389 ;; 15390 *) 15391 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15392 ;; 15393 esac 15394 fi 15395 if test "$with_gnu_ld" = no; then 15396 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15397 hardcode_libdir_separator_F77=: 15398 15399 case $host_cpu in 15400 hppa*64*|ia64*) 15401 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15402 hardcode_direct_F77=no 15403 hardcode_shlibpath_var_F77=no 15404 ;; 15405 *) 15406 hardcode_direct_F77=yes 15407 export_dynamic_flag_spec_F77='${wl}-E' 15408 15409 # hardcode_minus_L: Not really in the search PATH, 15410 # but as the default location of the library. 15411 hardcode_minus_L_F77=yes 15412 ;; 15413 esac 15414 fi 15415 ;; 15416 15417 irix5* | irix6* | nonstopux*) 15418 if test "$GCC" = yes; then 15419 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' 15420 else 15421 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' 15422 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15423 fi 15424 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15425 hardcode_libdir_separator_F77=: 15426 link_all_deplibs_F77=yes 15427 ;; 15428 15429 netbsd*) 15430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15431 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15432 else 15433 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15434 fi 15435 hardcode_libdir_flag_spec_F77='-R$libdir' 15436 hardcode_direct_F77=yes 15437 hardcode_shlibpath_var_F77=no 15438 ;; 15439 15440 newsos6) 15441 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15442 hardcode_direct_F77=yes 15443 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15444 hardcode_libdir_separator_F77=: 15445 hardcode_shlibpath_var_F77=no 15446 ;; 15447 15448 openbsd*) 15449 if test -f /usr/libexec/ld.so; then 15450 hardcode_direct_F77=yes 15451 hardcode_shlibpath_var_F77=no 15452 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15453 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15454 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15455 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15456 export_dynamic_flag_spec_F77='${wl}-E' 15457 else 15458 case $host_os in 15459 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15460 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15461 hardcode_libdir_flag_spec_F77='-R$libdir' 15462 ;; 15463 *) 15464 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15465 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15466 ;; 15467 esac 15468 fi 15469 else 15470 ld_shlibs_F77=no 15471 fi 15472 ;; 15473 15474 os2*) 15475 hardcode_libdir_flag_spec_F77='-L$libdir' 15476 hardcode_minus_L_F77=yes 15477 allow_undefined_flag_F77=unsupported 15478 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' 15479 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15480 ;; 15481 15482 osf3*) 15483 if test "$GCC" = yes; then 15484 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15485 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' 15486 else 15487 allow_undefined_flag_F77=' -expect_unresolved \*' 15488 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' 15489 fi 15490 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15491 hardcode_libdir_separator_F77=: 15492 ;; 15493 15494 osf4* | osf5*) # as osf3* with the addition of -msym flag 15495 if test "$GCC" = yes; then 15496 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15497 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' 15498 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15499 else 15500 allow_undefined_flag_F77=' -expect_unresolved \*' 15501 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' 15502 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~ 15503 $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' 15504 15505 # Both c and cxx compiler support -rpath directly 15506 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15507 fi 15508 hardcode_libdir_separator_F77=: 15509 ;; 15510 15511 solaris*) 15512 no_undefined_flag_F77=' -z text' 15513 if test "$GCC" = yes; then 15514 wlarc='${wl}' 15515 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15516 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15517 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15518 else 15519 wlarc='' 15520 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15521 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15522 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15523 fi 15524 hardcode_libdir_flag_spec_F77='-R$libdir' 15525 hardcode_shlibpath_var_F77=no 15526 case $host_os in 15527 solaris2.[0-5] | solaris2.[0-5].*) ;; 15528 *) 15529 # The compiler driver will combine and reorder linker options, 15530 # but understands `-z linker_flag'. GCC discards it without `$wl', 15531 # but is careful enough not to reorder. 15532 # Supported since Solaris 2.6 (maybe 2.5.1?) 15533 if test "$GCC" = yes; then 15534 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15535 else 15536 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15537 fi 15538 ;; 15539 esac 15540 link_all_deplibs_F77=yes 15541 ;; 15542 15543 sunos4*) 15544 if test "x$host_vendor" = xsequent; then 15545 # Use $CC to link under sequent, because it throws in some extra .o 15546 # files that make .init and .fini sections work. 15547 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15548 else 15549 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15550 fi 15551 hardcode_libdir_flag_spec_F77='-L$libdir' 15552 hardcode_direct_F77=yes 15553 hardcode_minus_L_F77=yes 15554 hardcode_shlibpath_var_F77=no 15555 ;; 15556 15557 sysv4) 15558 case $host_vendor in 15559 sni) 15560 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15561 hardcode_direct_F77=yes # is this really true??? 15562 ;; 15563 siemens) 15564 ## LD is ld it makes a PLAMLIB 15565 ## CC just makes a GrossModule. 15566 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15567 reload_cmds_F77='$CC -r -o $output$reload_objs' 15568 hardcode_direct_F77=no 15569 ;; 15570 motorola) 15571 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15572 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15573 ;; 15574 esac 15575 runpath_var='LD_RUN_PATH' 15576 hardcode_shlibpath_var_F77=no 15577 ;; 15578 15579 sysv4.3*) 15580 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15581 hardcode_shlibpath_var_F77=no 15582 export_dynamic_flag_spec_F77='-Bexport' 15583 ;; 15584 15585 sysv4*MP*) 15586 if test -d /usr/nec; then 15587 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15588 hardcode_shlibpath_var_F77=no 15589 runpath_var=LD_RUN_PATH 15590 hardcode_runpath_var=yes 15591 ld_shlibs_F77=yes 15592 fi 15593 ;; 15594 15595 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15596 no_undefined_flag_F77='${wl}-z,text' 15597 archive_cmds_need_lc_F77=no 15598 hardcode_shlibpath_var_F77=no 15599 runpath_var='LD_RUN_PATH' 15600 15601 if test "$GCC" = yes; then 15602 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15603 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15604 else 15605 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15606 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15607 fi 15608 ;; 15609 15610 sysv5* | sco3.2v5* | sco5v6*) 15611 # Note: We can NOT use -z defs as we might desire, because we do not 15612 # link with -lc, and that would cause any symbols used from libc to 15613 # always be unresolved, which means just about no library would 15614 # ever link correctly. If we're not using GNU ld we use -z text 15615 # though, which does catch some bad symbols but isn't as heavy-handed 15616 # as -z defs. 15617 no_undefined_flag_F77='${wl}-z,text' 15618 allow_undefined_flag_F77='${wl}-z,nodefs' 15619 archive_cmds_need_lc_F77=no 15620 hardcode_shlibpath_var_F77=no 15621 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15622 hardcode_libdir_separator_F77=':' 15623 link_all_deplibs_F77=yes 15624 export_dynamic_flag_spec_F77='${wl}-Bexport' 15625 runpath_var='LD_RUN_PATH' 15626 15627 if test "$GCC" = yes; then 15628 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15629 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15630 else 15631 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15632 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15633 fi 15634 ;; 15635 15636 uts4*) 15637 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15638 hardcode_libdir_flag_spec_F77='-L$libdir' 15639 hardcode_shlibpath_var_F77=no 15640 ;; 15641 15642 *) 15643 ld_shlibs_F77=no 15644 ;; 15645 esac 15646 fi 15647 15648{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15649$as_echo "$ld_shlibs_F77" >&6; } 15650test "$ld_shlibs_F77" = no && can_build_shared=no 15651 15652# 15653# Do we need to explicitly link libc? 15654# 15655case "x$archive_cmds_need_lc_F77" in 15656x|xyes) 15657 # Assume -lc should be added 15658 archive_cmds_need_lc_F77=yes 15659 15660 if test "$enable_shared" = yes && test "$GCC" = yes; then 15661 case $archive_cmds_F77 in 15662 *'~'*) 15663 # FIXME: we may have to deal with multi-command sequences. 15664 ;; 15665 '$CC '*) 15666 # Test whether the compiler implicitly links with -lc since on some 15667 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15668 # to ld, don't add -lc before -lgcc. 15669 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15670$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15671 $rm conftest* 15672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15673 15674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15675 (eval $ac_compile) 2>&5 15676 ac_status=$? 15677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15678 (exit $ac_status); } 2>conftest.err; then 15679 soname=conftest 15680 lib=conftest 15681 libobjs=conftest.$ac_objext 15682 deplibs= 15683 wl=$lt_prog_compiler_wl_F77 15684 pic_flag=$lt_prog_compiler_pic_F77 15685 compiler_flags=-v 15686 linker_flags=-v 15687 verstring= 15688 output_objdir=. 15689 libname=conftest 15690 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15691 allow_undefined_flag_F77= 15692 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15693 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15694 ac_status=$? 15695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15696 (exit $ac_status); } 15697 then 15698 archive_cmds_need_lc_F77=no 15699 else 15700 archive_cmds_need_lc_F77=yes 15701 fi 15702 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15703 else 15704 cat conftest.err 1>&5 15705 fi 15706 $rm conftest* 15707 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15708$as_echo "$archive_cmds_need_lc_F77" >&6; } 15709 ;; 15710 esac 15711 fi 15712 ;; 15713esac 15714 15715{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15716$as_echo_n "checking dynamic linker characteristics... " >&6; } 15717library_names_spec= 15718libname_spec='lib$name' 15719soname_spec= 15720shrext_cmds=".so" 15721postinstall_cmds= 15722postuninstall_cmds= 15723finish_cmds= 15724finish_eval= 15725shlibpath_var= 15726shlibpath_overrides_runpath=unknown 15727version_type=none 15728dynamic_linker="$host_os ld.so" 15729sys_lib_dlsearch_path_spec="/lib /usr/lib" 15730 15731need_lib_prefix=unknown 15732hardcode_into_libs=no 15733 15734# when you set need_version to no, make sure it does not cause -set_version 15735# flags to be left without arguments 15736need_version=unknown 15737 15738case $host_os in 15739aix3*) 15740 version_type=linux 15741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15742 shlibpath_var=LIBPATH 15743 15744 # AIX 3 has no versioning support, so we append a major version to the name. 15745 soname_spec='${libname}${release}${shared_ext}$major' 15746 ;; 15747 15748aix[4-9]*) 15749 version_type=linux 15750 need_lib_prefix=no 15751 need_version=no 15752 hardcode_into_libs=yes 15753 if test "$host_cpu" = ia64; then 15754 # AIX 5 supports IA64 15755 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15756 shlibpath_var=LD_LIBRARY_PATH 15757 else 15758 # With GCC up to 2.95.x, collect2 would create an import file 15759 # for dependence libraries. The import file would start with 15760 # the line `#! .'. This would cause the generated library to 15761 # depend on `.', always an invalid library. This was fixed in 15762 # development snapshots of GCC prior to 3.0. 15763 case $host_os in 15764 aix4 | aix4.[01] | aix4.[01].*) 15765 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15766 echo ' yes ' 15767 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15768 : 15769 else 15770 can_build_shared=no 15771 fi 15772 ;; 15773 esac 15774 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15775 # soname into executable. Probably we can add versioning support to 15776 # collect2, so additional links can be useful in future. 15777 if test "$aix_use_runtimelinking" = yes; then 15778 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15779 # instead of lib<name>.a to let people know that these are not 15780 # typical AIX shared libraries. 15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15782 else 15783 # We preserve .a as extension for shared libraries through AIX4.2 15784 # and later when we are not doing run time linking. 15785 library_names_spec='${libname}${release}.a $libname.a' 15786 soname_spec='${libname}${release}${shared_ext}$major' 15787 fi 15788 shlibpath_var=LIBPATH 15789 fi 15790 ;; 15791 15792amigaos*) 15793 library_names_spec='$libname.ixlibrary $libname.a' 15794 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15795 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' 15796 ;; 15797 15798beos*) 15799 library_names_spec='${libname}${shared_ext}' 15800 dynamic_linker="$host_os ld.so" 15801 shlibpath_var=LIBRARY_PATH 15802 ;; 15803 15804bsdi[45]*) 15805 version_type=linux 15806 need_version=no 15807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15808 soname_spec='${libname}${release}${shared_ext}$major' 15809 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15810 shlibpath_var=LD_LIBRARY_PATH 15811 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15812 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15813 # the default ld.so.conf also contains /usr/contrib/lib and 15814 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15815 # libtool to hard-code these into programs 15816 ;; 15817 15818cygwin* | mingw* | pw32*) 15819 version_type=windows 15820 shrext_cmds=".dll" 15821 need_version=no 15822 need_lib_prefix=no 15823 15824 case $GCC,$host_os in 15825 yes,cygwin* | yes,mingw* | yes,pw32*) 15826 library_names_spec='$libname.dll.a' 15827 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15828 postinstall_cmds='base_file=`basename \${file}`~ 15829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15830 dldir=$destdir/`dirname \$dlpath`~ 15831 test -d \$dldir || mkdir -p \$dldir~ 15832 $install_prog $dir/$dlname \$dldir/$dlname~ 15833 chmod a+x \$dldir/$dlname' 15834 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15835 dlpath=$dir/\$dldll~ 15836 $rm \$dlpath' 15837 shlibpath_overrides_runpath=yes 15838 15839 case $host_os in 15840 cygwin*) 15841 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15842 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15843 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15844 ;; 15845 mingw*) 15846 # MinGW DLLs use traditional 'lib' prefix 15847 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15848 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15849 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15850 # It is most probably a Windows format PATH printed by 15851 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15852 # path with ; separators, and with drive letters. We can handle the 15853 # drive letters (cygwin fileutils understands them), so leave them, 15854 # especially as we might pass files found there to a mingw objdump, 15855 # which wouldn't understand a cygwinified path. Ahh. 15856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15857 else 15858 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15859 fi 15860 ;; 15861 pw32*) 15862 # pw32 DLLs use 'pw' prefix rather than 'lib' 15863 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15864 ;; 15865 esac 15866 ;; 15867 15868 *) 15869 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15870 ;; 15871 esac 15872 dynamic_linker='Win32 ld.exe' 15873 # FIXME: first we should search . and the directory the executable is in 15874 shlibpath_var=PATH 15875 ;; 15876 15877darwin* | rhapsody*) 15878 dynamic_linker="$host_os dyld" 15879 version_type=darwin 15880 need_lib_prefix=no 15881 need_version=no 15882 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15883 soname_spec='${libname}${release}${major}$shared_ext' 15884 shlibpath_overrides_runpath=yes 15885 shlibpath_var=DYLD_LIBRARY_PATH 15886 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15887 15888 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15889 ;; 15890 15891dgux*) 15892 version_type=linux 15893 need_lib_prefix=no 15894 need_version=no 15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15896 soname_spec='${libname}${release}${shared_ext}$major' 15897 shlibpath_var=LD_LIBRARY_PATH 15898 ;; 15899 15900freebsd1*) 15901 dynamic_linker=no 15902 ;; 15903 15904freebsd* | dragonfly*) 15905 # DragonFly does not have aout. When/if they implement a new 15906 # versioning mechanism, adjust this. 15907 if test -x /usr/bin/objformat; then 15908 objformat=`/usr/bin/objformat` 15909 else 15910 case $host_os in 15911 freebsd[123]*) objformat=aout ;; 15912 *) objformat=elf ;; 15913 esac 15914 fi 15915 version_type=freebsd-$objformat 15916 case $version_type in 15917 freebsd-elf*) 15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15919 need_version=no 15920 need_lib_prefix=no 15921 ;; 15922 freebsd-*) 15923 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15924 need_version=yes 15925 ;; 15926 esac 15927 shlibpath_var=LD_LIBRARY_PATH 15928 case $host_os in 15929 freebsd2*) 15930 shlibpath_overrides_runpath=yes 15931 ;; 15932 freebsd3.[01]* | freebsdelf3.[01]*) 15933 shlibpath_overrides_runpath=yes 15934 hardcode_into_libs=yes 15935 ;; 15936 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15937 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15938 shlibpath_overrides_runpath=no 15939 hardcode_into_libs=yes 15940 ;; 15941 *) # from 4.6 on, and DragonFly 15942 shlibpath_overrides_runpath=yes 15943 hardcode_into_libs=yes 15944 ;; 15945 esac 15946 ;; 15947 15948gnu*) 15949 version_type=linux 15950 need_lib_prefix=no 15951 need_version=no 15952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15953 soname_spec='${libname}${release}${shared_ext}$major' 15954 shlibpath_var=LD_LIBRARY_PATH 15955 hardcode_into_libs=yes 15956 ;; 15957 15958hpux9* | hpux10* | hpux11*) 15959 # Give a soname corresponding to the major version so that dld.sl refuses to 15960 # link against other versions. 15961 version_type=sunos 15962 need_lib_prefix=no 15963 need_version=no 15964 case $host_cpu in 15965 ia64*) 15966 shrext_cmds='.so' 15967 hardcode_into_libs=yes 15968 dynamic_linker="$host_os dld.so" 15969 shlibpath_var=LD_LIBRARY_PATH 15970 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15972 soname_spec='${libname}${release}${shared_ext}$major' 15973 if test "X$HPUX_IA64_MODE" = X32; then 15974 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15975 else 15976 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15977 fi 15978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15979 ;; 15980 hppa*64*) 15981 shrext_cmds='.sl' 15982 hardcode_into_libs=yes 15983 dynamic_linker="$host_os dld.sl" 15984 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15987 soname_spec='${libname}${release}${shared_ext}$major' 15988 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15990 ;; 15991 *) 15992 shrext_cmds='.sl' 15993 dynamic_linker="$host_os dld.sl" 15994 shlibpath_var=SHLIB_PATH 15995 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15997 soname_spec='${libname}${release}${shared_ext}$major' 15998 ;; 15999 esac 16000 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16001 postinstall_cmds='chmod 555 $lib' 16002 ;; 16003 16004interix[3-9]*) 16005 version_type=linux 16006 need_lib_prefix=no 16007 need_version=no 16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16009 soname_spec='${libname}${release}${shared_ext}$major' 16010 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16011 shlibpath_var=LD_LIBRARY_PATH 16012 shlibpath_overrides_runpath=no 16013 hardcode_into_libs=yes 16014 ;; 16015 16016irix5* | irix6* | nonstopux*) 16017 case $host_os in 16018 nonstopux*) version_type=nonstopux ;; 16019 *) 16020 if test "$lt_cv_prog_gnu_ld" = yes; then 16021 version_type=linux 16022 else 16023 version_type=irix 16024 fi ;; 16025 esac 16026 need_lib_prefix=no 16027 need_version=no 16028 soname_spec='${libname}${release}${shared_ext}$major' 16029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16030 case $host_os in 16031 irix5* | nonstopux*) 16032 libsuff= shlibsuff= 16033 ;; 16034 *) 16035 case $LD in # libtool.m4 will add one of these switches to LD 16036 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16037 libsuff= shlibsuff= libmagic=32-bit;; 16038 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16039 libsuff=32 shlibsuff=N32 libmagic=N32;; 16040 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16041 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16042 *) libsuff= shlibsuff= libmagic=never-match;; 16043 esac 16044 ;; 16045 esac 16046 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16047 shlibpath_overrides_runpath=no 16048 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16049 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16050 hardcode_into_libs=yes 16051 ;; 16052 16053# No shared lib support for Linux oldld, aout, or coff. 16054linux*oldld* | linux*aout* | linux*coff*) 16055 dynamic_linker=no 16056 ;; 16057 16058# This must be Linux ELF. 16059linux* | k*bsd*-gnu) 16060 version_type=linux 16061 need_lib_prefix=no 16062 need_version=no 16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16064 soname_spec='${libname}${release}${shared_ext}$major' 16065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16066 shlibpath_var=LD_LIBRARY_PATH 16067 shlibpath_overrides_runpath=no 16068 # This implies no fast_install, which is unacceptable. 16069 # Some rework will be needed to allow for fast_install 16070 # before this can be enabled. 16071 hardcode_into_libs=yes 16072 16073 # Append ld.so.conf contents to the search path 16074 if test -f /etc/ld.so.conf; then 16075 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 16076 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16077 fi 16078 16079 # We used to test for /lib/ld.so.1 and disable shared libraries on 16080 # powerpc, because MkLinux only supported shared libraries with the 16081 # GNU dynamic linker. Since this was broken with cross compilers, 16082 # most powerpc-linux boxes support dynamic linking these days and 16083 # people can always --disable-shared, the test was removed, and we 16084 # assume the GNU/Linux dynamic linker is in use. 16085 dynamic_linker='GNU/Linux ld.so' 16086 ;; 16087 16088netbsd*) 16089 version_type=sunos 16090 need_lib_prefix=no 16091 need_version=no 16092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16095 dynamic_linker='NetBSD (a.out) ld.so' 16096 else 16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16098 soname_spec='${libname}${release}${shared_ext}$major' 16099 dynamic_linker='NetBSD ld.elf_so' 16100 fi 16101 shlibpath_var=LD_LIBRARY_PATH 16102 shlibpath_overrides_runpath=yes 16103 hardcode_into_libs=yes 16104 ;; 16105 16106newsos6) 16107 version_type=linux 16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16109 shlibpath_var=LD_LIBRARY_PATH 16110 shlibpath_overrides_runpath=yes 16111 ;; 16112 16113nto-qnx*) 16114 version_type=linux 16115 need_lib_prefix=no 16116 need_version=no 16117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16118 soname_spec='${libname}${release}${shared_ext}$major' 16119 shlibpath_var=LD_LIBRARY_PATH 16120 shlibpath_overrides_runpath=yes 16121 ;; 16122 16123openbsd*) 16124 version_type=sunos 16125 sys_lib_dlsearch_path_spec="/usr/lib" 16126 need_lib_prefix=no 16127 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16128 case $host_os in 16129 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16130 *) need_version=no ;; 16131 esac 16132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16134 shlibpath_var=LD_LIBRARY_PATH 16135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16136 case $host_os in 16137 openbsd2.[89] | openbsd2.[89].*) 16138 shlibpath_overrides_runpath=no 16139 ;; 16140 *) 16141 shlibpath_overrides_runpath=yes 16142 ;; 16143 esac 16144 else 16145 shlibpath_overrides_runpath=yes 16146 fi 16147 ;; 16148 16149os2*) 16150 libname_spec='$name' 16151 shrext_cmds=".dll" 16152 need_lib_prefix=no 16153 library_names_spec='$libname${shared_ext} $libname.a' 16154 dynamic_linker='OS/2 ld.exe' 16155 shlibpath_var=LIBPATH 16156 ;; 16157 16158osf3* | osf4* | osf5*) 16159 version_type=osf 16160 need_lib_prefix=no 16161 need_version=no 16162 soname_spec='${libname}${release}${shared_ext}$major' 16163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16164 shlibpath_var=LD_LIBRARY_PATH 16165 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16166 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16167 ;; 16168 16169rdos*) 16170 dynamic_linker=no 16171 ;; 16172 16173solaris*) 16174 version_type=linux 16175 need_lib_prefix=no 16176 need_version=no 16177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16178 soname_spec='${libname}${release}${shared_ext}$major' 16179 shlibpath_var=LD_LIBRARY_PATH 16180 shlibpath_overrides_runpath=yes 16181 hardcode_into_libs=yes 16182 # ldd complains unless libraries are executable 16183 postinstall_cmds='chmod +x $lib' 16184 ;; 16185 16186sunos4*) 16187 version_type=sunos 16188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16189 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16190 shlibpath_var=LD_LIBRARY_PATH 16191 shlibpath_overrides_runpath=yes 16192 if test "$with_gnu_ld" = yes; then 16193 need_lib_prefix=no 16194 fi 16195 need_version=yes 16196 ;; 16197 16198sysv4 | sysv4.3*) 16199 version_type=linux 16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16201 soname_spec='${libname}${release}${shared_ext}$major' 16202 shlibpath_var=LD_LIBRARY_PATH 16203 case $host_vendor in 16204 sni) 16205 shlibpath_overrides_runpath=no 16206 need_lib_prefix=no 16207 export_dynamic_flag_spec='${wl}-Blargedynsym' 16208 runpath_var=LD_RUN_PATH 16209 ;; 16210 siemens) 16211 need_lib_prefix=no 16212 ;; 16213 motorola) 16214 need_lib_prefix=no 16215 need_version=no 16216 shlibpath_overrides_runpath=no 16217 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16218 ;; 16219 esac 16220 ;; 16221 16222sysv4*MP*) 16223 if test -d /usr/nec ;then 16224 version_type=linux 16225 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16226 soname_spec='$libname${shared_ext}.$major' 16227 shlibpath_var=LD_LIBRARY_PATH 16228 fi 16229 ;; 16230 16231sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16232 version_type=freebsd-elf 16233 need_lib_prefix=no 16234 need_version=no 16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16236 soname_spec='${libname}${release}${shared_ext}$major' 16237 shlibpath_var=LD_LIBRARY_PATH 16238 hardcode_into_libs=yes 16239 if test "$with_gnu_ld" = yes; then 16240 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16241 shlibpath_overrides_runpath=no 16242 else 16243 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16244 shlibpath_overrides_runpath=yes 16245 case $host_os in 16246 sco3.2v5*) 16247 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16248 ;; 16249 esac 16250 fi 16251 sys_lib_dlsearch_path_spec='/usr/lib' 16252 ;; 16253 16254uts4*) 16255 version_type=linux 16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16257 soname_spec='${libname}${release}${shared_ext}$major' 16258 shlibpath_var=LD_LIBRARY_PATH 16259 ;; 16260 16261*) 16262 dynamic_linker=no 16263 ;; 16264esac 16265{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16266$as_echo "$dynamic_linker" >&6; } 16267test "$dynamic_linker" = no && can_build_shared=no 16268 16269if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16270 $as_echo_n "(cached) " >&6 16271else 16272 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16273fi 16274 16275sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16276if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16277 $as_echo_n "(cached) " >&6 16278else 16279 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16280fi 16281 16282sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16283 16284variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16285if test "$GCC" = yes; then 16286 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16287fi 16288 16289{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16290$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16291hardcode_action_F77= 16292if test -n "$hardcode_libdir_flag_spec_F77" || \ 16293 test -n "$runpath_var_F77" || \ 16294 test "X$hardcode_automatic_F77" = "Xyes" ; then 16295 16296 # We can hardcode non-existant directories. 16297 if test "$hardcode_direct_F77" != no && 16298 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16299 # have to relink, otherwise we might link with an installed library 16300 # when we should be linking with a yet-to-be-installed one 16301 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16302 test "$hardcode_minus_L_F77" != no; then 16303 # Linking always hardcodes the temporary library directory. 16304 hardcode_action_F77=relink 16305 else 16306 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16307 hardcode_action_F77=immediate 16308 fi 16309else 16310 # We cannot hardcode anything, or else we can only hardcode existing 16311 # directories. 16312 hardcode_action_F77=unsupported 16313fi 16314{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16315$as_echo "$hardcode_action_F77" >&6; } 16316 16317if test "$hardcode_action_F77" = relink; then 16318 # Fast installation is not supported 16319 enable_fast_install=no 16320elif test "$shlibpath_overrides_runpath" = yes || 16321 test "$enable_shared" = no; then 16322 # Fast installation is not necessary 16323 enable_fast_install=needless 16324fi 16325 16326 16327# The else clause should only fire when bootstrapping the 16328# libtool distribution, otherwise you forgot to ship ltmain.sh 16329# with your package, and you will get complaints that there are 16330# no rules to generate ltmain.sh. 16331if test -f "$ltmain"; then 16332 # See if we are running on zsh, and set the options which allow our commands through 16333 # without removal of \ escapes. 16334 if test -n "${ZSH_VERSION+set}" ; then 16335 setopt NO_GLOB_SUBST 16336 fi 16337 # Now quote all the things that may contain metacharacters while being 16338 # careful not to overquote the AC_SUBSTed values. We take copies of the 16339 # variables and quote the copies for generation of the libtool script. 16340 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16341 SED SHELL STRIP \ 16342 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16343 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16344 deplibs_check_method reload_flag reload_cmds need_locks \ 16345 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16346 lt_cv_sys_global_symbol_to_c_name_address \ 16347 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16348 old_postinstall_cmds old_postuninstall_cmds \ 16349 compiler_F77 \ 16350 CC_F77 \ 16351 LD_F77 \ 16352 lt_prog_compiler_wl_F77 \ 16353 lt_prog_compiler_pic_F77 \ 16354 lt_prog_compiler_static_F77 \ 16355 lt_prog_compiler_no_builtin_flag_F77 \ 16356 export_dynamic_flag_spec_F77 \ 16357 thread_safe_flag_spec_F77 \ 16358 whole_archive_flag_spec_F77 \ 16359 enable_shared_with_static_runtimes_F77 \ 16360 old_archive_cmds_F77 \ 16361 old_archive_from_new_cmds_F77 \ 16362 predep_objects_F77 \ 16363 postdep_objects_F77 \ 16364 predeps_F77 \ 16365 postdeps_F77 \ 16366 compiler_lib_search_path_F77 \ 16367 compiler_lib_search_dirs_F77 \ 16368 archive_cmds_F77 \ 16369 archive_expsym_cmds_F77 \ 16370 postinstall_cmds_F77 \ 16371 postuninstall_cmds_F77 \ 16372 old_archive_from_expsyms_cmds_F77 \ 16373 allow_undefined_flag_F77 \ 16374 no_undefined_flag_F77 \ 16375 export_symbols_cmds_F77 \ 16376 hardcode_libdir_flag_spec_F77 \ 16377 hardcode_libdir_flag_spec_ld_F77 \ 16378 hardcode_libdir_separator_F77 \ 16379 hardcode_automatic_F77 \ 16380 module_cmds_F77 \ 16381 module_expsym_cmds_F77 \ 16382 lt_cv_prog_compiler_c_o_F77 \ 16383 fix_srcfile_path_F77 \ 16384 exclude_expsyms_F77 \ 16385 include_expsyms_F77; do 16386 16387 case $var in 16388 old_archive_cmds_F77 | \ 16389 old_archive_from_new_cmds_F77 | \ 16390 archive_cmds_F77 | \ 16391 archive_expsym_cmds_F77 | \ 16392 module_cmds_F77 | \ 16393 module_expsym_cmds_F77 | \ 16394 old_archive_from_expsyms_cmds_F77 | \ 16395 export_symbols_cmds_F77 | \ 16396 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16397 postinstall_cmds | postuninstall_cmds | \ 16398 old_postinstall_cmds | old_postuninstall_cmds | \ 16399 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16400 # Double-quote double-evaled strings. 16401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16402 ;; 16403 *) 16404 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16405 ;; 16406 esac 16407 done 16408 16409 case $lt_echo in 16410 *'\$0 --fallback-echo"') 16411 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16412 ;; 16413 esac 16414 16415cfgfile="$ofile" 16416 16417 cat <<__EOF__ >> "$cfgfile" 16418# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16419 16420# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16421 16422# Shell to use when invoking shell scripts. 16423SHELL=$lt_SHELL 16424 16425# Whether or not to build shared libraries. 16426build_libtool_libs=$enable_shared 16427 16428# Whether or not to build static libraries. 16429build_old_libs=$enable_static 16430 16431# Whether or not to add -lc for building shared libraries. 16432build_libtool_need_lc=$archive_cmds_need_lc_F77 16433 16434# Whether or not to disallow shared libs when runtime libs are static 16435allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16436 16437# Whether or not to optimize for fast installation. 16438fast_install=$enable_fast_install 16439 16440# The host system. 16441host_alias=$host_alias 16442host=$host 16443host_os=$host_os 16444 16445# The build system. 16446build_alias=$build_alias 16447build=$build 16448build_os=$build_os 16449 16450# An echo program that does not interpret backslashes. 16451echo=$lt_echo 16452 16453# The archiver. 16454AR=$lt_AR 16455AR_FLAGS=$lt_AR_FLAGS 16456 16457# A C compiler. 16458LTCC=$lt_LTCC 16459 16460# LTCC compiler flags. 16461LTCFLAGS=$lt_LTCFLAGS 16462 16463# A language-specific compiler. 16464CC=$lt_compiler_F77 16465 16466# Is the compiler the GNU C compiler? 16467with_gcc=$GCC_F77 16468 16469# An ERE matcher. 16470EGREP=$lt_EGREP 16471 16472# The linker used to build libraries. 16473LD=$lt_LD_F77 16474 16475# Whether we need hard or soft links. 16476LN_S=$lt_LN_S 16477 16478# A BSD-compatible nm program. 16479NM=$lt_NM 16480 16481# A symbol stripping program 16482STRIP=$lt_STRIP 16483 16484# Used to examine libraries when file_magic_cmd begins "file" 16485MAGIC_CMD=$MAGIC_CMD 16486 16487# Used on cygwin: DLL creation program. 16488DLLTOOL="$DLLTOOL" 16489 16490# Used on cygwin: object dumper. 16491OBJDUMP="$OBJDUMP" 16492 16493# Used on cygwin: assembler. 16494AS="$AS" 16495 16496# The name of the directory that contains temporary libtool files. 16497objdir=$objdir 16498 16499# How to create reloadable object files. 16500reload_flag=$lt_reload_flag 16501reload_cmds=$lt_reload_cmds 16502 16503# How to pass a linker flag through the compiler. 16504wl=$lt_lt_prog_compiler_wl_F77 16505 16506# Object file suffix (normally "o"). 16507objext="$ac_objext" 16508 16509# Old archive suffix (normally "a"). 16510libext="$libext" 16511 16512# Shared library suffix (normally ".so"). 16513shrext_cmds='$shrext_cmds' 16514 16515# Executable file suffix (normally ""). 16516exeext="$exeext" 16517 16518# Additional compiler flags for building library objects. 16519pic_flag=$lt_lt_prog_compiler_pic_F77 16520pic_mode=$pic_mode 16521 16522# What is the maximum length of a command? 16523max_cmd_len=$lt_cv_sys_max_cmd_len 16524 16525# Does compiler simultaneously support -c and -o options? 16526compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16527 16528# Must we lock files when doing compilation? 16529need_locks=$lt_need_locks 16530 16531# Do we need the lib prefix for modules? 16532need_lib_prefix=$need_lib_prefix 16533 16534# Do we need a version for libraries? 16535need_version=$need_version 16536 16537# Whether dlopen is supported. 16538dlopen_support=$enable_dlopen 16539 16540# Whether dlopen of programs is supported. 16541dlopen_self=$enable_dlopen_self 16542 16543# Whether dlopen of statically linked programs is supported. 16544dlopen_self_static=$enable_dlopen_self_static 16545 16546# Compiler flag to prevent dynamic linking. 16547link_static_flag=$lt_lt_prog_compiler_static_F77 16548 16549# Compiler flag to turn off builtin functions. 16550no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16551 16552# Compiler flag to allow reflexive dlopens. 16553export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16554 16555# Compiler flag to generate shared objects directly from archives. 16556whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16557 16558# Compiler flag to generate thread-safe objects. 16559thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16560 16561# Library versioning type. 16562version_type=$version_type 16563 16564# Format of library name prefix. 16565libname_spec=$lt_libname_spec 16566 16567# List of archive names. First name is the real one, the rest are links. 16568# The last name is the one that the linker finds with -lNAME. 16569library_names_spec=$lt_library_names_spec 16570 16571# The coded name of the library, if different from the real name. 16572soname_spec=$lt_soname_spec 16573 16574# Commands used to build and install an old-style archive. 16575RANLIB=$lt_RANLIB 16576old_archive_cmds=$lt_old_archive_cmds_F77 16577old_postinstall_cmds=$lt_old_postinstall_cmds 16578old_postuninstall_cmds=$lt_old_postuninstall_cmds 16579 16580# Create an old-style archive from a shared archive. 16581old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16582 16583# Create a temporary old-style archive to link instead of a shared archive. 16584old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16585 16586# Commands used to build and install a shared archive. 16587archive_cmds=$lt_archive_cmds_F77 16588archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16589postinstall_cmds=$lt_postinstall_cmds 16590postuninstall_cmds=$lt_postuninstall_cmds 16591 16592# Commands used to build a loadable module (assumed same as above if empty) 16593module_cmds=$lt_module_cmds_F77 16594module_expsym_cmds=$lt_module_expsym_cmds_F77 16595 16596# Commands to strip libraries. 16597old_striplib=$lt_old_striplib 16598striplib=$lt_striplib 16599 16600# Dependencies to place before the objects being linked to create a 16601# shared library. 16602predep_objects=$lt_predep_objects_F77 16603 16604# Dependencies to place after the objects being linked to create a 16605# shared library. 16606postdep_objects=$lt_postdep_objects_F77 16607 16608# Dependencies to place before the objects being linked to create a 16609# shared library. 16610predeps=$lt_predeps_F77 16611 16612# Dependencies to place after the objects being linked to create a 16613# shared library. 16614postdeps=$lt_postdeps_F77 16615 16616# The directories searched by this compiler when creating a shared 16617# library 16618compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16619 16620# The library search path used internally by the compiler when linking 16621# a shared library. 16622compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16623 16624# Method to check whether dependent libraries are shared objects. 16625deplibs_check_method=$lt_deplibs_check_method 16626 16627# Command to use when deplibs_check_method == file_magic. 16628file_magic_cmd=$lt_file_magic_cmd 16629 16630# Flag that allows shared libraries with undefined symbols to be built. 16631allow_undefined_flag=$lt_allow_undefined_flag_F77 16632 16633# Flag that forces no undefined symbols. 16634no_undefined_flag=$lt_no_undefined_flag_F77 16635 16636# Commands used to finish a libtool library installation in a directory. 16637finish_cmds=$lt_finish_cmds 16638 16639# Same as above, but a single script fragment to be evaled but not shown. 16640finish_eval=$lt_finish_eval 16641 16642# Take the output of nm and produce a listing of raw symbols and C names. 16643global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16644 16645# Transform the output of nm in a proper C declaration 16646global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16647 16648# Transform the output of nm in a C name address pair 16649global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16650 16651# This is the shared library runtime path variable. 16652runpath_var=$runpath_var 16653 16654# This is the shared library path variable. 16655shlibpath_var=$shlibpath_var 16656 16657# Is shlibpath searched before the hard-coded library search path? 16658shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16659 16660# How to hardcode a shared library path into an executable. 16661hardcode_action=$hardcode_action_F77 16662 16663# Whether we should hardcode library paths into libraries. 16664hardcode_into_libs=$hardcode_into_libs 16665 16666# Flag to hardcode \$libdir into a binary during linking. 16667# This must work even if \$libdir does not exist. 16668hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16669 16670# If ld is used when linking, flag to hardcode \$libdir into 16671# a binary during linking. This must work even if \$libdir does 16672# not exist. 16673hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16674 16675# Whether we need a single -rpath flag with a separated argument. 16676hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16677 16678# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16679# resulting binary. 16680hardcode_direct=$hardcode_direct_F77 16681 16682# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16683# resulting binary. 16684hardcode_minus_L=$hardcode_minus_L_F77 16685 16686# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16687# the resulting binary. 16688hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16689 16690# Set to yes if building a shared library automatically hardcodes DIR into the library 16691# and all subsequent libraries and executables linked against it. 16692hardcode_automatic=$hardcode_automatic_F77 16693 16694# Variables whose values should be saved in libtool wrapper scripts and 16695# restored at relink time. 16696variables_saved_for_relink="$variables_saved_for_relink" 16697 16698# Whether libtool must link a program against all its dependency libraries. 16699link_all_deplibs=$link_all_deplibs_F77 16700 16701# Compile-time system search path for libraries 16702sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16703 16704# Run-time system search path for libraries 16705sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16706 16707# Fix the shell variable \$srcfile for the compiler. 16708fix_srcfile_path=$lt_fix_srcfile_path 16709 16710# Set to yes if exported symbols are required. 16711always_export_symbols=$always_export_symbols_F77 16712 16713# The commands to list exported symbols. 16714export_symbols_cmds=$lt_export_symbols_cmds_F77 16715 16716# The commands to extract the exported symbol list from a shared archive. 16717extract_expsyms_cmds=$lt_extract_expsyms_cmds 16718 16719# Symbols that should not be listed in the preloaded symbols. 16720exclude_expsyms=$lt_exclude_expsyms_F77 16721 16722# Symbols that must always be exported. 16723include_expsyms=$lt_include_expsyms_F77 16724 16725# ### END LIBTOOL TAG CONFIG: $tagname 16726 16727__EOF__ 16728 16729 16730else 16731 # If there is no Makefile yet, we rely on a make rule to execute 16732 # `config.status --recheck' to rerun these tests and create the 16733 # libtool script then. 16734 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16735 if test -f "$ltmain_in"; then 16736 test -f Makefile && make "$ltmain" 16737 fi 16738fi 16739 16740 16741ac_ext=c 16742ac_cpp='$CPP $CPPFLAGS' 16743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16745ac_compiler_gnu=$ac_cv_c_compiler_gnu 16746 16747CC="$lt_save_CC" 16748 16749 else 16750 tagname="" 16751 fi 16752 ;; 16753 16754 GCJ) 16755 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16756 16757 16758# Source file extension for Java test sources. 16759ac_ext=java 16760 16761# Object file extension for compiled Java test sources. 16762objext=o 16763objext_GCJ=$objext 16764 16765# Code to be used in simple compile tests 16766lt_simple_compile_test_code="class foo {}" 16767 16768# Code to be used in simple link tests 16769lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16770 16771# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16772 16773# If no C compiler was specified, use CC. 16774LTCC=${LTCC-"$CC"} 16775 16776# If no C compiler flags were specified, use CFLAGS. 16777LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16778 16779# Allow CC to be a program name with arguments. 16780compiler=$CC 16781 16782 16783# save warnings/boilerplate of simple test code 16784ac_outfile=conftest.$ac_objext 16785echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16786eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16787_lt_compiler_boilerplate=`cat conftest.err` 16788$rm conftest* 16789 16790ac_outfile=conftest.$ac_objext 16791echo "$lt_simple_link_test_code" >conftest.$ac_ext 16792eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16793_lt_linker_boilerplate=`cat conftest.err` 16794$rm -r conftest* 16795 16796 16797# Allow CC to be a program name with arguments. 16798lt_save_CC="$CC" 16799CC=${GCJ-"gcj"} 16800compiler=$CC 16801compiler_GCJ=$CC 16802for cc_temp in $compiler""; do 16803 case $cc_temp in 16804 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16805 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16806 \-*) ;; 16807 *) break;; 16808 esac 16809done 16810cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16811 16812 16813# GCJ did not exist at the time GCC didn't implicitly link libc in. 16814archive_cmds_need_lc_GCJ=no 16815 16816old_archive_cmds_GCJ=$old_archive_cmds 16817 16818 16819lt_prog_compiler_no_builtin_flag_GCJ= 16820 16821if test "$GCC" = yes; then 16822 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16823 16824 16825{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16826$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16827if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16828 $as_echo_n "(cached) " >&6 16829else 16830 lt_cv_prog_compiler_rtti_exceptions=no 16831 ac_outfile=conftest.$ac_objext 16832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16833 lt_compiler_flag="-fno-rtti -fno-exceptions" 16834 # Insert the option either (1) after the last *FLAGS variable, or 16835 # (2) before a word containing "conftest.", or (3) at the end. 16836 # Note that $ac_compile itself does not contain backslashes and begins 16837 # with a dollar sign (not a hyphen), so the echo should work correctly. 16838 # The option is referenced via a variable to avoid confusing sed. 16839 lt_compile=`echo "$ac_compile" | $SED \ 16840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16842 -e 's:$: $lt_compiler_flag:'` 16843 (eval echo "\"\$as_me:16843: $lt_compile\"" >&5) 16844 (eval "$lt_compile" 2>conftest.err) 16845 ac_status=$? 16846 cat conftest.err >&5 16847 echo "$as_me:16847: \$? = $ac_status" >&5 16848 if (exit $ac_status) && test -s "$ac_outfile"; then 16849 # The compiler can only warn and ignore the option if not recognized 16850 # So say no if there are warnings other than the usual output. 16851 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16854 lt_cv_prog_compiler_rtti_exceptions=yes 16855 fi 16856 fi 16857 $rm conftest* 16858 16859fi 16860{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16861$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16862 16863if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16864 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16865else 16866 : 16867fi 16868 16869fi 16870 16871lt_prog_compiler_wl_GCJ= 16872lt_prog_compiler_pic_GCJ= 16873lt_prog_compiler_static_GCJ= 16874 16875{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16876$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16877 16878 if test "$GCC" = yes; then 16879 lt_prog_compiler_wl_GCJ='-Wl,' 16880 lt_prog_compiler_static_GCJ='-static' 16881 16882 case $host_os in 16883 aix*) 16884 # All AIX code is PIC. 16885 if test "$host_cpu" = ia64; then 16886 # AIX 5 now supports IA64 processor 16887 lt_prog_compiler_static_GCJ='-Bstatic' 16888 fi 16889 ;; 16890 16891 amigaos*) 16892 # FIXME: we need at least 68020 code to build shared libraries, but 16893 # adding the `-m68020' flag to GCC prevents building anything better, 16894 # like `-m68040'. 16895 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16896 ;; 16897 16898 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16899 # PIC is the default for these OSes. 16900 ;; 16901 16902 mingw* | cygwin* | pw32* | os2*) 16903 # This hack is so that the source file can tell whether it is being 16904 # built for inclusion in a dll (and should export symbols for example). 16905 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16906 # (--disable-auto-import) libraries 16907 16908 ;; 16909 16910 darwin* | rhapsody*) 16911 # PIC is the default on this platform 16912 # Common symbols not allowed in MH_DYLIB files 16913 lt_prog_compiler_pic_GCJ='-fno-common' 16914 ;; 16915 16916 interix[3-9]*) 16917 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16918 # Instead, we relocate shared libraries at runtime. 16919 ;; 16920 16921 msdosdjgpp*) 16922 # Just because we use GCC doesn't mean we suddenly get shared libraries 16923 # on systems that don't support them. 16924 lt_prog_compiler_can_build_shared_GCJ=no 16925 enable_shared=no 16926 ;; 16927 16928 sysv4*MP*) 16929 if test -d /usr/nec; then 16930 lt_prog_compiler_pic_GCJ=-Kconform_pic 16931 fi 16932 ;; 16933 16934 hpux*) 16935 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16936 # not for PA HP-UX. 16937 case $host_cpu in 16938 hppa*64*|ia64*) 16939 # +Z the default 16940 ;; 16941 *) 16942 lt_prog_compiler_pic_GCJ='-fPIC' 16943 ;; 16944 esac 16945 ;; 16946 16947 *) 16948 lt_prog_compiler_pic_GCJ='-fPIC' 16949 ;; 16950 esac 16951 else 16952 # PORTME Check for flag to pass linker flags through the system compiler. 16953 case $host_os in 16954 aix*) 16955 lt_prog_compiler_wl_GCJ='-Wl,' 16956 if test "$host_cpu" = ia64; then 16957 # AIX 5 now supports IA64 processor 16958 lt_prog_compiler_static_GCJ='-Bstatic' 16959 else 16960 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16961 fi 16962 ;; 16963 darwin*) 16964 # PIC is the default on this platform 16965 # Common symbols not allowed in MH_DYLIB files 16966 case $cc_basename in 16967 xlc*) 16968 lt_prog_compiler_pic_GCJ='-qnocommon' 16969 lt_prog_compiler_wl_GCJ='-Wl,' 16970 ;; 16971 esac 16972 ;; 16973 16974 mingw* | cygwin* | pw32* | os2*) 16975 # This hack is so that the source file can tell whether it is being 16976 # built for inclusion in a dll (and should export symbols for example). 16977 16978 ;; 16979 16980 hpux9* | hpux10* | hpux11*) 16981 lt_prog_compiler_wl_GCJ='-Wl,' 16982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16983 # not for PA HP-UX. 16984 case $host_cpu in 16985 hppa*64*|ia64*) 16986 # +Z the default 16987 ;; 16988 *) 16989 lt_prog_compiler_pic_GCJ='+Z' 16990 ;; 16991 esac 16992 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16993 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16994 ;; 16995 16996 irix5* | irix6* | nonstopux*) 16997 lt_prog_compiler_wl_GCJ='-Wl,' 16998 # PIC (with -KPIC) is the default. 16999 lt_prog_compiler_static_GCJ='-non_shared' 17000 ;; 17001 17002 newsos6) 17003 lt_prog_compiler_pic_GCJ='-KPIC' 17004 lt_prog_compiler_static_GCJ='-Bstatic' 17005 ;; 17006 17007 linux* | k*bsd*-gnu) 17008 case $cc_basename in 17009 icc* | ecc*) 17010 lt_prog_compiler_wl_GCJ='-Wl,' 17011 lt_prog_compiler_pic_GCJ='-KPIC' 17012 lt_prog_compiler_static_GCJ='-static' 17013 ;; 17014 pgcc* | pgf77* | pgf90* | pgf95*) 17015 # Portland Group compilers (*not* the Pentium gcc compiler, 17016 # which looks to be a dead project) 17017 lt_prog_compiler_wl_GCJ='-Wl,' 17018 lt_prog_compiler_pic_GCJ='-fpic' 17019 lt_prog_compiler_static_GCJ='-Bstatic' 17020 ;; 17021 ccc*) 17022 lt_prog_compiler_wl_GCJ='-Wl,' 17023 # All Alpha code is PIC. 17024 lt_prog_compiler_static_GCJ='-non_shared' 17025 ;; 17026 *) 17027 case `$CC -V 2>&1 | sed 5q` in 17028 *Sun\ C*) 17029 # Sun C 5.9 17030 lt_prog_compiler_pic_GCJ='-KPIC' 17031 lt_prog_compiler_static_GCJ='-Bstatic' 17032 lt_prog_compiler_wl_GCJ='-Wl,' 17033 ;; 17034 *Sun\ F*) 17035 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17036 lt_prog_compiler_pic_GCJ='-KPIC' 17037 lt_prog_compiler_static_GCJ='-Bstatic' 17038 lt_prog_compiler_wl_GCJ='' 17039 ;; 17040 esac 17041 ;; 17042 esac 17043 ;; 17044 17045 osf3* | osf4* | osf5*) 17046 lt_prog_compiler_wl_GCJ='-Wl,' 17047 # All OSF/1 code is PIC. 17048 lt_prog_compiler_static_GCJ='-non_shared' 17049 ;; 17050 17051 rdos*) 17052 lt_prog_compiler_static_GCJ='-non_shared' 17053 ;; 17054 17055 solaris*) 17056 lt_prog_compiler_pic_GCJ='-KPIC' 17057 lt_prog_compiler_static_GCJ='-Bstatic' 17058 case $cc_basename in 17059 f77* | f90* | f95*) 17060 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17061 *) 17062 lt_prog_compiler_wl_GCJ='-Wl,';; 17063 esac 17064 ;; 17065 17066 sunos4*) 17067 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17068 lt_prog_compiler_pic_GCJ='-PIC' 17069 lt_prog_compiler_static_GCJ='-Bstatic' 17070 ;; 17071 17072 sysv4 | sysv4.2uw2* | sysv4.3*) 17073 lt_prog_compiler_wl_GCJ='-Wl,' 17074 lt_prog_compiler_pic_GCJ='-KPIC' 17075 lt_prog_compiler_static_GCJ='-Bstatic' 17076 ;; 17077 17078 sysv4*MP*) 17079 if test -d /usr/nec ;then 17080 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17081 lt_prog_compiler_static_GCJ='-Bstatic' 17082 fi 17083 ;; 17084 17085 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17086 lt_prog_compiler_wl_GCJ='-Wl,' 17087 lt_prog_compiler_pic_GCJ='-KPIC' 17088 lt_prog_compiler_static_GCJ='-Bstatic' 17089 ;; 17090 17091 unicos*) 17092 lt_prog_compiler_wl_GCJ='-Wl,' 17093 lt_prog_compiler_can_build_shared_GCJ=no 17094 ;; 17095 17096 uts4*) 17097 lt_prog_compiler_pic_GCJ='-pic' 17098 lt_prog_compiler_static_GCJ='-Bstatic' 17099 ;; 17100 17101 *) 17102 lt_prog_compiler_can_build_shared_GCJ=no 17103 ;; 17104 esac 17105 fi 17106 17107{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17108$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17109 17110# 17111# Check to make sure the PIC flag actually works. 17112# 17113if test -n "$lt_prog_compiler_pic_GCJ"; then 17114 17115{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17116$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17117if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17118 $as_echo_n "(cached) " >&6 17119else 17120 lt_cv_prog_compiler_pic_works_GCJ=no 17121 ac_outfile=conftest.$ac_objext 17122 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17123 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17124 # Insert the option either (1) after the last *FLAGS variable, or 17125 # (2) before a word containing "conftest.", or (3) at the end. 17126 # Note that $ac_compile itself does not contain backslashes and begins 17127 # with a dollar sign (not a hyphen), so the echo should work correctly. 17128 # The option is referenced via a variable to avoid confusing sed. 17129 lt_compile=`echo "$ac_compile" | $SED \ 17130 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17131 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17132 -e 's:$: $lt_compiler_flag:'` 17133 (eval echo "\"\$as_me:17133: $lt_compile\"" >&5) 17134 (eval "$lt_compile" 2>conftest.err) 17135 ac_status=$? 17136 cat conftest.err >&5 17137 echo "$as_me:17137: \$? = $ac_status" >&5 17138 if (exit $ac_status) && test -s "$ac_outfile"; then 17139 # The compiler can only warn and ignore the option if not recognized 17140 # So say no if there are warnings other than the usual output. 17141 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17143 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17144 lt_cv_prog_compiler_pic_works_GCJ=yes 17145 fi 17146 fi 17147 $rm conftest* 17148 17149fi 17150{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17151$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17152 17153if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17154 case $lt_prog_compiler_pic_GCJ in 17155 "" | " "*) ;; 17156 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17157 esac 17158else 17159 lt_prog_compiler_pic_GCJ= 17160 lt_prog_compiler_can_build_shared_GCJ=no 17161fi 17162 17163fi 17164case $host_os in 17165 # For platforms which do not support PIC, -DPIC is meaningless: 17166 *djgpp*) 17167 lt_prog_compiler_pic_GCJ= 17168 ;; 17169 *) 17170 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17171 ;; 17172esac 17173 17174# 17175# Check to make sure the static flag actually works. 17176# 17177wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17178{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17179$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17180if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17181 $as_echo_n "(cached) " >&6 17182else 17183 lt_cv_prog_compiler_static_works_GCJ=no 17184 save_LDFLAGS="$LDFLAGS" 17185 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17186 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17187 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17188 # The linker can only warn and ignore the option if not recognized 17189 # So say no if there are warnings 17190 if test -s conftest.err; then 17191 # Append any errors to the config.log. 17192 cat conftest.err 1>&5 17193 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17195 if diff conftest.exp conftest.er2 >/dev/null; then 17196 lt_cv_prog_compiler_static_works_GCJ=yes 17197 fi 17198 else 17199 lt_cv_prog_compiler_static_works_GCJ=yes 17200 fi 17201 fi 17202 $rm -r conftest* 17203 LDFLAGS="$save_LDFLAGS" 17204 17205fi 17206{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17207$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17208 17209if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17210 : 17211else 17212 lt_prog_compiler_static_GCJ= 17213fi 17214 17215 17216{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17217$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17218if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17219 $as_echo_n "(cached) " >&6 17220else 17221 lt_cv_prog_compiler_c_o_GCJ=no 17222 $rm -r conftest 2>/dev/null 17223 mkdir conftest 17224 cd conftest 17225 mkdir out 17226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17227 17228 lt_compiler_flag="-o out/conftest2.$ac_objext" 17229 # Insert the option either (1) after the last *FLAGS variable, or 17230 # (2) before a word containing "conftest.", or (3) at the end. 17231 # Note that $ac_compile itself does not contain backslashes and begins 17232 # with a dollar sign (not a hyphen), so the echo should work correctly. 17233 lt_compile=`echo "$ac_compile" | $SED \ 17234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17236 -e 's:$: $lt_compiler_flag:'` 17237 (eval echo "\"\$as_me:17237: $lt_compile\"" >&5) 17238 (eval "$lt_compile" 2>out/conftest.err) 17239 ac_status=$? 17240 cat out/conftest.err >&5 17241 echo "$as_me:17241: \$? = $ac_status" >&5 17242 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17243 then 17244 # The compiler can only warn and ignore the option if not recognized 17245 # So say no if there are warnings 17246 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17247 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17248 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17249 lt_cv_prog_compiler_c_o_GCJ=yes 17250 fi 17251 fi 17252 chmod u+w . 2>&5 17253 $rm conftest* 17254 # SGI C++ compiler will create directory out/ii_files/ for 17255 # template instantiation 17256 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17257 $rm out/* && rmdir out 17258 cd .. 17259 rmdir conftest 17260 $rm conftest* 17261 17262fi 17263{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17264$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17265 17266 17267hard_links="nottested" 17268if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17269 # do not overwrite the value of need_locks provided by the user 17270 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17271$as_echo_n "checking if we can lock with hard links... " >&6; } 17272 hard_links=yes 17273 $rm conftest* 17274 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17275 touch conftest.a 17276 ln conftest.a conftest.b 2>&5 || hard_links=no 17277 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17278 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 17279$as_echo "$hard_links" >&6; } 17280 if test "$hard_links" = no; then 17281 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17282$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17283 need_locks=warn 17284 fi 17285else 17286 need_locks=no 17287fi 17288 17289{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17290$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17291 17292 runpath_var= 17293 allow_undefined_flag_GCJ= 17294 enable_shared_with_static_runtimes_GCJ=no 17295 archive_cmds_GCJ= 17296 archive_expsym_cmds_GCJ= 17297 old_archive_From_new_cmds_GCJ= 17298 old_archive_from_expsyms_cmds_GCJ= 17299 export_dynamic_flag_spec_GCJ= 17300 whole_archive_flag_spec_GCJ= 17301 thread_safe_flag_spec_GCJ= 17302 hardcode_libdir_flag_spec_GCJ= 17303 hardcode_libdir_flag_spec_ld_GCJ= 17304 hardcode_libdir_separator_GCJ= 17305 hardcode_direct_GCJ=no 17306 hardcode_minus_L_GCJ=no 17307 hardcode_shlibpath_var_GCJ=unsupported 17308 link_all_deplibs_GCJ=unknown 17309 hardcode_automatic_GCJ=no 17310 module_cmds_GCJ= 17311 module_expsym_cmds_GCJ= 17312 always_export_symbols_GCJ=no 17313 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17314 # include_expsyms should be a list of space-separated symbols to be *always* 17315 # included in the symbol list 17316 include_expsyms_GCJ= 17317 # exclude_expsyms can be an extended regexp of symbols to exclude 17318 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17319 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17320 # as well as any symbol that contains `d'. 17321 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17322 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17323 # platforms (ab)use it in PIC code, but their linkers get confused if 17324 # the symbol is explicitly referenced. Since portable code cannot 17325 # rely on this symbol name, it's probably fine to never include it in 17326 # preloaded symbol tables. 17327 # Exclude shared library initialization/finalization symbols. 17328 extract_expsyms_cmds= 17329 # Just being paranoid about ensuring that cc_basename is set. 17330 for cc_temp in $compiler""; do 17331 case $cc_temp in 17332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17334 \-*) ;; 17335 *) break;; 17336 esac 17337done 17338cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17339 17340 case $host_os in 17341 cygwin* | mingw* | pw32*) 17342 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17343 # When not using gcc, we currently assume that we are using 17344 # Microsoft Visual C++. 17345 if test "$GCC" != yes; then 17346 with_gnu_ld=no 17347 fi 17348 ;; 17349 interix*) 17350 # we just hope/assume this is gcc and not c89 (= MSVC++) 17351 with_gnu_ld=yes 17352 ;; 17353 openbsd*) 17354 with_gnu_ld=no 17355 ;; 17356 esac 17357 17358 ld_shlibs_GCJ=yes 17359 if test "$with_gnu_ld" = yes; then 17360 # If archive_cmds runs LD, not CC, wlarc should be empty 17361 wlarc='${wl}' 17362 17363 # Set some defaults for GNU ld with shared library support. These 17364 # are reset later if shared libraries are not supported. Putting them 17365 # here allows them to be overridden if necessary. 17366 runpath_var=LD_RUN_PATH 17367 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17368 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17369 # ancient GNU ld didn't support --whole-archive et. al. 17370 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17371 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17372 else 17373 whole_archive_flag_spec_GCJ= 17374 fi 17375 supports_anon_versioning=no 17376 case `$LD -v 2>/dev/null` in 17377 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17378 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17379 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17380 *\ 2.11.*) ;; # other 2.11 versions 17381 *) supports_anon_versioning=yes ;; 17382 esac 17383 17384 # See if GNU ld supports shared libraries. 17385 case $host_os in 17386 aix[3-9]*) 17387 # On AIX/PPC, the GNU linker is very broken 17388 if test "$host_cpu" != ia64; then 17389 ld_shlibs_GCJ=no 17390 cat <<EOF 1>&2 17391 17392*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17393*** to be unable to reliably create shared libraries on AIX. 17394*** Therefore, libtool is disabling shared libraries support. If you 17395*** really care for shared libraries, you may want to modify your PATH 17396*** so that a non-GNU linker is found, and then restart. 17397 17398EOF 17399 fi 17400 ;; 17401 17402 amigaos*) 17403 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)' 17404 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17405 hardcode_minus_L_GCJ=yes 17406 17407 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17408 # that the semantics of dynamic libraries on AmigaOS, at least up 17409 # to version 4, is to share data among multiple programs linked 17410 # with the same dynamic library. Since this doesn't match the 17411 # behavior of shared libraries on other platforms, we can't use 17412 # them. 17413 ld_shlibs_GCJ=no 17414 ;; 17415 17416 beos*) 17417 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17418 allow_undefined_flag_GCJ=unsupported 17419 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17420 # support --undefined. This deserves some investigation. FIXME 17421 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17422 else 17423 ld_shlibs_GCJ=no 17424 fi 17425 ;; 17426 17427 cygwin* | mingw* | pw32*) 17428 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17429 # as there is no search path for DLLs. 17430 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17431 allow_undefined_flag_GCJ=unsupported 17432 always_export_symbols_GCJ=no 17433 enable_shared_with_static_runtimes_GCJ=yes 17434 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17435 17436 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17437 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17438 # If the export-symbols file already is a .def file (1st line 17439 # is EXPORTS), use it as is; otherwise, prepend... 17440 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17441 cp $export_symbols $output_objdir/$soname.def; 17442 else 17443 echo EXPORTS > $output_objdir/$soname.def; 17444 cat $export_symbols >> $output_objdir/$soname.def; 17445 fi~ 17446 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17447 else 17448 ld_shlibs_GCJ=no 17449 fi 17450 ;; 17451 17452 interix[3-9]*) 17453 hardcode_direct_GCJ=no 17454 hardcode_shlibpath_var_GCJ=no 17455 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17456 export_dynamic_flag_spec_GCJ='${wl}-E' 17457 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17458 # Instead, shared libraries are loaded at an image base (0x10000000 by 17459 # default) and relocated if they conflict, which is a slow very memory 17460 # consuming and fragmenting process. To avoid this, we pick a random, 17461 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17462 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17463 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' 17464 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' 17465 ;; 17466 17467 gnu* | linux* | k*bsd*-gnu) 17468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17469 tmp_addflag= 17470 case $cc_basename,$host_cpu in 17471 pgcc*) # Portland Group C compiler 17472 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' 17473 tmp_addflag=' $pic_flag' 17474 ;; 17475 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17476 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' 17477 tmp_addflag=' $pic_flag -Mnomain' ;; 17478 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17479 tmp_addflag=' -i_dynamic' ;; 17480 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17481 tmp_addflag=' -i_dynamic -nofor_main' ;; 17482 ifc* | ifort*) # Intel Fortran compiler 17483 tmp_addflag=' -nofor_main' ;; 17484 esac 17485 case `$CC -V 2>&1 | sed 5q` in 17486 *Sun\ C*) # Sun C 5.9 17487 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17488 tmp_sharedflag='-G' ;; 17489 *Sun\ F*) # Sun Fortran 8.3 17490 tmp_sharedflag='-G' ;; 17491 *) 17492 tmp_sharedflag='-shared' ;; 17493 esac 17494 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17495 17496 if test $supports_anon_versioning = yes; then 17497 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17498 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17499 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17500 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17501 fi 17502 else 17503 ld_shlibs_GCJ=no 17504 fi 17505 ;; 17506 17507 netbsd*) 17508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17509 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17510 wlarc= 17511 else 17512 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17513 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17514 fi 17515 ;; 17516 17517 solaris*) 17518 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17519 ld_shlibs_GCJ=no 17520 cat <<EOF 1>&2 17521 17522*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17523*** create shared libraries on Solaris systems. Therefore, libtool 17524*** is disabling shared libraries support. We urge you to upgrade GNU 17525*** binutils to release 2.9.1 or newer. Another option is to modify 17526*** your PATH or compiler configuration so that the native linker is 17527*** used, and then restart. 17528 17529EOF 17530 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17531 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17532 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17533 else 17534 ld_shlibs_GCJ=no 17535 fi 17536 ;; 17537 17538 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17539 case `$LD -v 2>&1` in 17540 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17541 ld_shlibs_GCJ=no 17542 cat <<_LT_EOF 1>&2 17543 17544*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17545*** reliably create shared libraries on SCO systems. Therefore, libtool 17546*** is disabling shared libraries support. We urge you to upgrade GNU 17547*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17548*** your PATH or compiler configuration so that the native linker is 17549*** used, and then restart. 17550 17551_LT_EOF 17552 ;; 17553 *) 17554 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17555 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17556 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17557 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17558 else 17559 ld_shlibs_GCJ=no 17560 fi 17561 ;; 17562 esac 17563 ;; 17564 17565 sunos4*) 17566 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17567 wlarc= 17568 hardcode_direct_GCJ=yes 17569 hardcode_shlibpath_var_GCJ=no 17570 ;; 17571 17572 *) 17573 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17574 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17575 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17576 else 17577 ld_shlibs_GCJ=no 17578 fi 17579 ;; 17580 esac 17581 17582 if test "$ld_shlibs_GCJ" = no; then 17583 runpath_var= 17584 hardcode_libdir_flag_spec_GCJ= 17585 export_dynamic_flag_spec_GCJ= 17586 whole_archive_flag_spec_GCJ= 17587 fi 17588 else 17589 # PORTME fill in a description of your system's linker (not GNU ld) 17590 case $host_os in 17591 aix3*) 17592 allow_undefined_flag_GCJ=unsupported 17593 always_export_symbols_GCJ=yes 17594 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' 17595 # Note: this linker hardcodes the directories in LIBPATH if there 17596 # are no directories specified by -L. 17597 hardcode_minus_L_GCJ=yes 17598 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17599 # Neither direct hardcoding nor static linking is supported with a 17600 # broken collect2. 17601 hardcode_direct_GCJ=unsupported 17602 fi 17603 ;; 17604 17605 aix[4-9]*) 17606 if test "$host_cpu" = ia64; then 17607 # On IA64, the linker does run time linking by default, so we don't 17608 # have to do anything special. 17609 aix_use_runtimelinking=no 17610 exp_sym_flag='-Bexport' 17611 no_entry_flag="" 17612 else 17613 # If we're using GNU nm, then we don't want the "-C" option. 17614 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17615 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17616 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' 17617 else 17618 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' 17619 fi 17620 aix_use_runtimelinking=no 17621 17622 # Test if we are trying to use run time linking or normal 17623 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17624 # need to do runtime linking. 17625 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17626 for ld_flag in $LDFLAGS; do 17627 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17628 aix_use_runtimelinking=yes 17629 break 17630 fi 17631 done 17632 ;; 17633 esac 17634 17635 exp_sym_flag='-bexport' 17636 no_entry_flag='-bnoentry' 17637 fi 17638 17639 # When large executables or shared objects are built, AIX ld can 17640 # have problems creating the table of contents. If linking a library 17641 # or program results in "error TOC overflow" add -mminimal-toc to 17642 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17643 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17644 17645 archive_cmds_GCJ='' 17646 hardcode_direct_GCJ=yes 17647 hardcode_libdir_separator_GCJ=':' 17648 link_all_deplibs_GCJ=yes 17649 17650 if test "$GCC" = yes; then 17651 case $host_os in aix4.[012]|aix4.[012].*) 17652 # We only want to do this on AIX 4.2 and lower, the check 17653 # below for broken collect2 doesn't work under 4.3+ 17654 collect2name=`${CC} -print-prog-name=collect2` 17655 if test -f "$collect2name" && \ 17656 strings "$collect2name" | grep resolve_lib_name >/dev/null 17657 then 17658 # We have reworked collect2 17659 : 17660 else 17661 # We have old collect2 17662 hardcode_direct_GCJ=unsupported 17663 # It fails to find uninstalled libraries when the uninstalled 17664 # path is not listed in the libpath. Setting hardcode_minus_L 17665 # to unsupported forces relinking 17666 hardcode_minus_L_GCJ=yes 17667 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17668 hardcode_libdir_separator_GCJ= 17669 fi 17670 ;; 17671 esac 17672 shared_flag='-shared' 17673 if test "$aix_use_runtimelinking" = yes; then 17674 shared_flag="$shared_flag "'${wl}-G' 17675 fi 17676 else 17677 # not using gcc 17678 if test "$host_cpu" = ia64; then 17679 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17680 # chokes on -Wl,-G. The following line is correct: 17681 shared_flag='-G' 17682 else 17683 if test "$aix_use_runtimelinking" = yes; then 17684 shared_flag='${wl}-G' 17685 else 17686 shared_flag='${wl}-bM:SRE' 17687 fi 17688 fi 17689 fi 17690 17691 # It seems that -bexpall does not export symbols beginning with 17692 # underscore (_), so it is better to generate a list of symbols to export. 17693 always_export_symbols_GCJ=yes 17694 if test "$aix_use_runtimelinking" = yes; then 17695 # Warning - without using the other runtime loading flags (-brtl), 17696 # -berok will link without error, but may produce a broken library. 17697 allow_undefined_flag_GCJ='-berok' 17698 # Determine the default libpath from the value encoded in an empty executable. 17699 cat >conftest.$ac_ext <<_ACEOF 17700/* confdefs.h. */ 17701_ACEOF 17702cat confdefs.h >>conftest.$ac_ext 17703cat >>conftest.$ac_ext <<_ACEOF 17704/* end confdefs.h. */ 17705 17706int 17707main () 17708{ 17709 17710 ; 17711 return 0; 17712} 17713_ACEOF 17714rm -f conftest.$ac_objext conftest$ac_exeext 17715if { (ac_try="$ac_link" 17716case "(($ac_try" in 17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17718 *) ac_try_echo=$ac_try;; 17719esac 17720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17721$as_echo "$ac_try_echo") >&5 17722 (eval "$ac_link") 2>conftest.er1 17723 ac_status=$? 17724 grep -v '^ *+' conftest.er1 >conftest.err 17725 rm -f conftest.er1 17726 cat conftest.err >&5 17727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17728 (exit $ac_status); } && { 17729 test -z "$ac_c_werror_flag" || 17730 test ! -s conftest.err 17731 } && test -s conftest$ac_exeext && { 17732 test "$cross_compiling" = yes || 17733 $as_test_x conftest$ac_exeext 17734 }; then 17735 17736lt_aix_libpath_sed=' 17737 /Import File Strings/,/^$/ { 17738 /^0/ { 17739 s/^0 *\(.*\)$/\1/ 17740 p 17741 } 17742 }' 17743aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17744# Check for a 64-bit object if we didn't find anything. 17745if test -z "$aix_libpath"; then 17746 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17747fi 17748else 17749 $as_echo "$as_me: failed program was:" >&5 17750sed 's/^/| /' conftest.$ac_ext >&5 17751 17752 17753fi 17754 17755rm -rf conftest.dSYM 17756rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17757 conftest$ac_exeext conftest.$ac_ext 17758if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17759 17760 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17761 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" 17762 else 17763 if test "$host_cpu" = ia64; then 17764 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17765 allow_undefined_flag_GCJ="-z nodefs" 17766 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" 17767 else 17768 # Determine the default libpath from the value encoded in an empty executable. 17769 cat >conftest.$ac_ext <<_ACEOF 17770/* confdefs.h. */ 17771_ACEOF 17772cat confdefs.h >>conftest.$ac_ext 17773cat >>conftest.$ac_ext <<_ACEOF 17774/* end confdefs.h. */ 17775 17776int 17777main () 17778{ 17779 17780 ; 17781 return 0; 17782} 17783_ACEOF 17784rm -f conftest.$ac_objext conftest$ac_exeext 17785if { (ac_try="$ac_link" 17786case "(($ac_try" in 17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17788 *) ac_try_echo=$ac_try;; 17789esac 17790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 17791$as_echo "$ac_try_echo") >&5 17792 (eval "$ac_link") 2>conftest.er1 17793 ac_status=$? 17794 grep -v '^ *+' conftest.er1 >conftest.err 17795 rm -f conftest.er1 17796 cat conftest.err >&5 17797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 17798 (exit $ac_status); } && { 17799 test -z "$ac_c_werror_flag" || 17800 test ! -s conftest.err 17801 } && test -s conftest$ac_exeext && { 17802 test "$cross_compiling" = yes || 17803 $as_test_x conftest$ac_exeext 17804 }; then 17805 17806lt_aix_libpath_sed=' 17807 /Import File Strings/,/^$/ { 17808 /^0/ { 17809 s/^0 *\(.*\)$/\1/ 17810 p 17811 } 17812 }' 17813aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17814# Check for a 64-bit object if we didn't find anything. 17815if test -z "$aix_libpath"; then 17816 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17817fi 17818else 17819 $as_echo "$as_me: failed program was:" >&5 17820sed 's/^/| /' conftest.$ac_ext >&5 17821 17822 17823fi 17824 17825rm -rf conftest.dSYM 17826rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17827 conftest$ac_exeext conftest.$ac_ext 17828if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17829 17830 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17831 # Warning - without using the other run time loading flags, 17832 # -berok will link without error, but may produce a broken library. 17833 no_undefined_flag_GCJ=' ${wl}-bernotok' 17834 allow_undefined_flag_GCJ=' ${wl}-berok' 17835 # Exported symbols can be pulled into shared objects from archives 17836 whole_archive_flag_spec_GCJ='$convenience' 17837 archive_cmds_need_lc_GCJ=yes 17838 # This is similar to how AIX traditionally builds its shared libraries. 17839 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' 17840 fi 17841 fi 17842 ;; 17843 17844 amigaos*) 17845 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)' 17846 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17847 hardcode_minus_L_GCJ=yes 17848 # see comment about different semantics on the GNU ld section 17849 ld_shlibs_GCJ=no 17850 ;; 17851 17852 bsdi[45]*) 17853 export_dynamic_flag_spec_GCJ=-rdynamic 17854 ;; 17855 17856 cygwin* | mingw* | pw32*) 17857 # When not using gcc, we currently assume that we are using 17858 # Microsoft Visual C++. 17859 # hardcode_libdir_flag_spec is actually meaningless, as there is 17860 # no search path for DLLs. 17861 hardcode_libdir_flag_spec_GCJ=' ' 17862 allow_undefined_flag_GCJ=unsupported 17863 # Tell ltmain to make .lib files, not .a files. 17864 libext=lib 17865 # Tell ltmain to make .dll files, not .so files. 17866 shrext_cmds=".dll" 17867 # FIXME: Setting linknames here is a bad hack. 17868 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17869 # The linker will automatically build a .lib file if we build a DLL. 17870 old_archive_From_new_cmds_GCJ='true' 17871 # FIXME: Should let the user specify the lib program. 17872 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17873 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17874 enable_shared_with_static_runtimes_GCJ=yes 17875 ;; 17876 17877 darwin* | rhapsody*) 17878 case $host_os in 17879 rhapsody* | darwin1.[012]) 17880 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17881 ;; 17882 *) # Darwin 1.3 on 17883 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17884 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17885 else 17886 case ${MACOSX_DEPLOYMENT_TARGET} in 17887 10.[012]) 17888 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17889 ;; 17890 10.*) 17891 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17892 ;; 17893 esac 17894 fi 17895 ;; 17896 esac 17897 archive_cmds_need_lc_GCJ=no 17898 hardcode_direct_GCJ=no 17899 hardcode_automatic_GCJ=yes 17900 hardcode_shlibpath_var_GCJ=unsupported 17901 whole_archive_flag_spec_GCJ='' 17902 link_all_deplibs_GCJ=yes 17903 if test "$GCC" = yes ; then 17904 output_verbose_link_cmd='echo' 17905 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 17906 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17907 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 17908 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 17909 else 17910 case $cc_basename in 17911 xlc*) 17912 output_verbose_link_cmd='echo' 17913 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17914 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17915 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17916 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17917 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}' 17918 ;; 17919 *) 17920 ld_shlibs_GCJ=no 17921 ;; 17922 esac 17923 fi 17924 ;; 17925 17926 dgux*) 17927 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17928 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17929 hardcode_shlibpath_var_GCJ=no 17930 ;; 17931 17932 freebsd1*) 17933 ld_shlibs_GCJ=no 17934 ;; 17935 17936 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17937 # support. Future versions do this automatically, but an explicit c++rt0.o 17938 # does not break anything, and helps significantly (at the cost of a little 17939 # extra space). 17940 freebsd2.2*) 17941 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17942 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17943 hardcode_direct_GCJ=yes 17944 hardcode_shlibpath_var_GCJ=no 17945 ;; 17946 17947 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17948 freebsd2*) 17949 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17950 hardcode_direct_GCJ=yes 17951 hardcode_minus_L_GCJ=yes 17952 hardcode_shlibpath_var_GCJ=no 17953 ;; 17954 17955 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17956 freebsd* | dragonfly*) 17957 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17958 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17959 hardcode_direct_GCJ=yes 17960 hardcode_shlibpath_var_GCJ=no 17961 ;; 17962 17963 hpux9*) 17964 if test "$GCC" = yes; then 17965 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' 17966 else 17967 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' 17968 fi 17969 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17970 hardcode_libdir_separator_GCJ=: 17971 hardcode_direct_GCJ=yes 17972 17973 # hardcode_minus_L: Not really in the search PATH, 17974 # but as the default location of the library. 17975 hardcode_minus_L_GCJ=yes 17976 export_dynamic_flag_spec_GCJ='${wl}-E' 17977 ;; 17978 17979 hpux10*) 17980 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17981 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17982 else 17983 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17984 fi 17985 if test "$with_gnu_ld" = no; then 17986 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17987 hardcode_libdir_separator_GCJ=: 17988 17989 hardcode_direct_GCJ=yes 17990 export_dynamic_flag_spec_GCJ='${wl}-E' 17991 17992 # hardcode_minus_L: Not really in the search PATH, 17993 # but as the default location of the library. 17994 hardcode_minus_L_GCJ=yes 17995 fi 17996 ;; 17997 17998 hpux11*) 17999 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18000 case $host_cpu in 18001 hppa*64*) 18002 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18003 ;; 18004 ia64*) 18005 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18006 ;; 18007 *) 18008 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18009 ;; 18010 esac 18011 else 18012 case $host_cpu in 18013 hppa*64*) 18014 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18015 ;; 18016 ia64*) 18017 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18018 ;; 18019 *) 18020 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18021 ;; 18022 esac 18023 fi 18024 if test "$with_gnu_ld" = no; then 18025 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18026 hardcode_libdir_separator_GCJ=: 18027 18028 case $host_cpu in 18029 hppa*64*|ia64*) 18030 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18031 hardcode_direct_GCJ=no 18032 hardcode_shlibpath_var_GCJ=no 18033 ;; 18034 *) 18035 hardcode_direct_GCJ=yes 18036 export_dynamic_flag_spec_GCJ='${wl}-E' 18037 18038 # hardcode_minus_L: Not really in the search PATH, 18039 # but as the default location of the library. 18040 hardcode_minus_L_GCJ=yes 18041 ;; 18042 esac 18043 fi 18044 ;; 18045 18046 irix5* | irix6* | nonstopux*) 18047 if test "$GCC" = yes; then 18048 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' 18049 else 18050 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' 18051 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18052 fi 18053 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18054 hardcode_libdir_separator_GCJ=: 18055 link_all_deplibs_GCJ=yes 18056 ;; 18057 18058 netbsd*) 18059 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18060 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18061 else 18062 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18063 fi 18064 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18065 hardcode_direct_GCJ=yes 18066 hardcode_shlibpath_var_GCJ=no 18067 ;; 18068 18069 newsos6) 18070 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18071 hardcode_direct_GCJ=yes 18072 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18073 hardcode_libdir_separator_GCJ=: 18074 hardcode_shlibpath_var_GCJ=no 18075 ;; 18076 18077 openbsd*) 18078 if test -f /usr/libexec/ld.so; then 18079 hardcode_direct_GCJ=yes 18080 hardcode_shlibpath_var_GCJ=no 18081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18082 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18083 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18084 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18085 export_dynamic_flag_spec_GCJ='${wl}-E' 18086 else 18087 case $host_os in 18088 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18089 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18090 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18091 ;; 18092 *) 18093 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18094 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18095 ;; 18096 esac 18097 fi 18098 else 18099 ld_shlibs_GCJ=no 18100 fi 18101 ;; 18102 18103 os2*) 18104 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18105 hardcode_minus_L_GCJ=yes 18106 allow_undefined_flag_GCJ=unsupported 18107 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' 18108 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18109 ;; 18110 18111 osf3*) 18112 if test "$GCC" = yes; then 18113 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18114 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' 18115 else 18116 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18117 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' 18118 fi 18119 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18120 hardcode_libdir_separator_GCJ=: 18121 ;; 18122 18123 osf4* | osf5*) # as osf3* with the addition of -msym flag 18124 if test "$GCC" = yes; then 18125 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18126 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' 18127 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18128 else 18129 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18130 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' 18131 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~ 18132 $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' 18133 18134 # Both c and cxx compiler support -rpath directly 18135 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18136 fi 18137 hardcode_libdir_separator_GCJ=: 18138 ;; 18139 18140 solaris*) 18141 no_undefined_flag_GCJ=' -z text' 18142 if test "$GCC" = yes; then 18143 wlarc='${wl}' 18144 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18145 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18146 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18147 else 18148 wlarc='' 18149 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18150 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18151 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18152 fi 18153 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18154 hardcode_shlibpath_var_GCJ=no 18155 case $host_os in 18156 solaris2.[0-5] | solaris2.[0-5].*) ;; 18157 *) 18158 # The compiler driver will combine and reorder linker options, 18159 # but understands `-z linker_flag'. GCC discards it without `$wl', 18160 # but is careful enough not to reorder. 18161 # Supported since Solaris 2.6 (maybe 2.5.1?) 18162 if test "$GCC" = yes; then 18163 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18164 else 18165 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18166 fi 18167 ;; 18168 esac 18169 link_all_deplibs_GCJ=yes 18170 ;; 18171 18172 sunos4*) 18173 if test "x$host_vendor" = xsequent; then 18174 # Use $CC to link under sequent, because it throws in some extra .o 18175 # files that make .init and .fini sections work. 18176 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18177 else 18178 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18179 fi 18180 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18181 hardcode_direct_GCJ=yes 18182 hardcode_minus_L_GCJ=yes 18183 hardcode_shlibpath_var_GCJ=no 18184 ;; 18185 18186 sysv4) 18187 case $host_vendor in 18188 sni) 18189 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18190 hardcode_direct_GCJ=yes # is this really true??? 18191 ;; 18192 siemens) 18193 ## LD is ld it makes a PLAMLIB 18194 ## CC just makes a GrossModule. 18195 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18196 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18197 hardcode_direct_GCJ=no 18198 ;; 18199 motorola) 18200 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18201 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18202 ;; 18203 esac 18204 runpath_var='LD_RUN_PATH' 18205 hardcode_shlibpath_var_GCJ=no 18206 ;; 18207 18208 sysv4.3*) 18209 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18210 hardcode_shlibpath_var_GCJ=no 18211 export_dynamic_flag_spec_GCJ='-Bexport' 18212 ;; 18213 18214 sysv4*MP*) 18215 if test -d /usr/nec; then 18216 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18217 hardcode_shlibpath_var_GCJ=no 18218 runpath_var=LD_RUN_PATH 18219 hardcode_runpath_var=yes 18220 ld_shlibs_GCJ=yes 18221 fi 18222 ;; 18223 18224 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18225 no_undefined_flag_GCJ='${wl}-z,text' 18226 archive_cmds_need_lc_GCJ=no 18227 hardcode_shlibpath_var_GCJ=no 18228 runpath_var='LD_RUN_PATH' 18229 18230 if test "$GCC" = yes; then 18231 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18232 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18233 else 18234 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18235 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18236 fi 18237 ;; 18238 18239 sysv5* | sco3.2v5* | sco5v6*) 18240 # Note: We can NOT use -z defs as we might desire, because we do not 18241 # link with -lc, and that would cause any symbols used from libc to 18242 # always be unresolved, which means just about no library would 18243 # ever link correctly. If we're not using GNU ld we use -z text 18244 # though, which does catch some bad symbols but isn't as heavy-handed 18245 # as -z defs. 18246 no_undefined_flag_GCJ='${wl}-z,text' 18247 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18248 archive_cmds_need_lc_GCJ=no 18249 hardcode_shlibpath_var_GCJ=no 18250 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18251 hardcode_libdir_separator_GCJ=':' 18252 link_all_deplibs_GCJ=yes 18253 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18254 runpath_var='LD_RUN_PATH' 18255 18256 if test "$GCC" = yes; then 18257 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18258 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18259 else 18260 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18261 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18262 fi 18263 ;; 18264 18265 uts4*) 18266 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18267 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18268 hardcode_shlibpath_var_GCJ=no 18269 ;; 18270 18271 *) 18272 ld_shlibs_GCJ=no 18273 ;; 18274 esac 18275 fi 18276 18277{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18278$as_echo "$ld_shlibs_GCJ" >&6; } 18279test "$ld_shlibs_GCJ" = no && can_build_shared=no 18280 18281# 18282# Do we need to explicitly link libc? 18283# 18284case "x$archive_cmds_need_lc_GCJ" in 18285x|xyes) 18286 # Assume -lc should be added 18287 archive_cmds_need_lc_GCJ=yes 18288 18289 if test "$enable_shared" = yes && test "$GCC" = yes; then 18290 case $archive_cmds_GCJ in 18291 *'~'*) 18292 # FIXME: we may have to deal with multi-command sequences. 18293 ;; 18294 '$CC '*) 18295 # Test whether the compiler implicitly links with -lc since on some 18296 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18297 # to ld, don't add -lc before -lgcc. 18298 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18299$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18300 $rm conftest* 18301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18302 18303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18304 (eval $ac_compile) 2>&5 18305 ac_status=$? 18306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18307 (exit $ac_status); } 2>conftest.err; then 18308 soname=conftest 18309 lib=conftest 18310 libobjs=conftest.$ac_objext 18311 deplibs= 18312 wl=$lt_prog_compiler_wl_GCJ 18313 pic_flag=$lt_prog_compiler_pic_GCJ 18314 compiler_flags=-v 18315 linker_flags=-v 18316 verstring= 18317 output_objdir=. 18318 libname=conftest 18319 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18320 allow_undefined_flag_GCJ= 18321 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18322 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18323 ac_status=$? 18324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 18325 (exit $ac_status); } 18326 then 18327 archive_cmds_need_lc_GCJ=no 18328 else 18329 archive_cmds_need_lc_GCJ=yes 18330 fi 18331 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18332 else 18333 cat conftest.err 1>&5 18334 fi 18335 $rm conftest* 18336 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18337$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18338 ;; 18339 esac 18340 fi 18341 ;; 18342esac 18343 18344{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18345$as_echo_n "checking dynamic linker characteristics... " >&6; } 18346library_names_spec= 18347libname_spec='lib$name' 18348soname_spec= 18349shrext_cmds=".so" 18350postinstall_cmds= 18351postuninstall_cmds= 18352finish_cmds= 18353finish_eval= 18354shlibpath_var= 18355shlibpath_overrides_runpath=unknown 18356version_type=none 18357dynamic_linker="$host_os ld.so" 18358sys_lib_dlsearch_path_spec="/lib /usr/lib" 18359 18360need_lib_prefix=unknown 18361hardcode_into_libs=no 18362 18363# when you set need_version to no, make sure it does not cause -set_version 18364# flags to be left without arguments 18365need_version=unknown 18366 18367case $host_os in 18368aix3*) 18369 version_type=linux 18370 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18371 shlibpath_var=LIBPATH 18372 18373 # AIX 3 has no versioning support, so we append a major version to the name. 18374 soname_spec='${libname}${release}${shared_ext}$major' 18375 ;; 18376 18377aix[4-9]*) 18378 version_type=linux 18379 need_lib_prefix=no 18380 need_version=no 18381 hardcode_into_libs=yes 18382 if test "$host_cpu" = ia64; then 18383 # AIX 5 supports IA64 18384 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18385 shlibpath_var=LD_LIBRARY_PATH 18386 else 18387 # With GCC up to 2.95.x, collect2 would create an import file 18388 # for dependence libraries. The import file would start with 18389 # the line `#! .'. This would cause the generated library to 18390 # depend on `.', always an invalid library. This was fixed in 18391 # development snapshots of GCC prior to 3.0. 18392 case $host_os in 18393 aix4 | aix4.[01] | aix4.[01].*) 18394 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18395 echo ' yes ' 18396 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18397 : 18398 else 18399 can_build_shared=no 18400 fi 18401 ;; 18402 esac 18403 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18404 # soname into executable. Probably we can add versioning support to 18405 # collect2, so additional links can be useful in future. 18406 if test "$aix_use_runtimelinking" = yes; then 18407 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18408 # instead of lib<name>.a to let people know that these are not 18409 # typical AIX shared libraries. 18410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18411 else 18412 # We preserve .a as extension for shared libraries through AIX4.2 18413 # and later when we are not doing run time linking. 18414 library_names_spec='${libname}${release}.a $libname.a' 18415 soname_spec='${libname}${release}${shared_ext}$major' 18416 fi 18417 shlibpath_var=LIBPATH 18418 fi 18419 ;; 18420 18421amigaos*) 18422 library_names_spec='$libname.ixlibrary $libname.a' 18423 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18424 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' 18425 ;; 18426 18427beos*) 18428 library_names_spec='${libname}${shared_ext}' 18429 dynamic_linker="$host_os ld.so" 18430 shlibpath_var=LIBRARY_PATH 18431 ;; 18432 18433bsdi[45]*) 18434 version_type=linux 18435 need_version=no 18436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18437 soname_spec='${libname}${release}${shared_ext}$major' 18438 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18439 shlibpath_var=LD_LIBRARY_PATH 18440 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18441 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18442 # the default ld.so.conf also contains /usr/contrib/lib and 18443 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18444 # libtool to hard-code these into programs 18445 ;; 18446 18447cygwin* | mingw* | pw32*) 18448 version_type=windows 18449 shrext_cmds=".dll" 18450 need_version=no 18451 need_lib_prefix=no 18452 18453 case $GCC,$host_os in 18454 yes,cygwin* | yes,mingw* | yes,pw32*) 18455 library_names_spec='$libname.dll.a' 18456 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18457 postinstall_cmds='base_file=`basename \${file}`~ 18458 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18459 dldir=$destdir/`dirname \$dlpath`~ 18460 test -d \$dldir || mkdir -p \$dldir~ 18461 $install_prog $dir/$dlname \$dldir/$dlname~ 18462 chmod a+x \$dldir/$dlname' 18463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18464 dlpath=$dir/\$dldll~ 18465 $rm \$dlpath' 18466 shlibpath_overrides_runpath=yes 18467 18468 case $host_os in 18469 cygwin*) 18470 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18472 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18473 ;; 18474 mingw*) 18475 # MinGW DLLs use traditional 'lib' prefix 18476 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18477 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18478 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18479 # It is most probably a Windows format PATH printed by 18480 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18481 # path with ; separators, and with drive letters. We can handle the 18482 # drive letters (cygwin fileutils understands them), so leave them, 18483 # especially as we might pass files found there to a mingw objdump, 18484 # which wouldn't understand a cygwinified path. Ahh. 18485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18486 else 18487 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18488 fi 18489 ;; 18490 pw32*) 18491 # pw32 DLLs use 'pw' prefix rather than 'lib' 18492 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18493 ;; 18494 esac 18495 ;; 18496 18497 *) 18498 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18499 ;; 18500 esac 18501 dynamic_linker='Win32 ld.exe' 18502 # FIXME: first we should search . and the directory the executable is in 18503 shlibpath_var=PATH 18504 ;; 18505 18506darwin* | rhapsody*) 18507 dynamic_linker="$host_os dyld" 18508 version_type=darwin 18509 need_lib_prefix=no 18510 need_version=no 18511 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18512 soname_spec='${libname}${release}${major}$shared_ext' 18513 shlibpath_overrides_runpath=yes 18514 shlibpath_var=DYLD_LIBRARY_PATH 18515 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18516 18517 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18518 ;; 18519 18520dgux*) 18521 version_type=linux 18522 need_lib_prefix=no 18523 need_version=no 18524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18525 soname_spec='${libname}${release}${shared_ext}$major' 18526 shlibpath_var=LD_LIBRARY_PATH 18527 ;; 18528 18529freebsd1*) 18530 dynamic_linker=no 18531 ;; 18532 18533freebsd* | dragonfly*) 18534 # DragonFly does not have aout. When/if they implement a new 18535 # versioning mechanism, adjust this. 18536 if test -x /usr/bin/objformat; then 18537 objformat=`/usr/bin/objformat` 18538 else 18539 case $host_os in 18540 freebsd[123]*) objformat=aout ;; 18541 *) objformat=elf ;; 18542 esac 18543 fi 18544 version_type=freebsd-$objformat 18545 case $version_type in 18546 freebsd-elf*) 18547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18548 need_version=no 18549 need_lib_prefix=no 18550 ;; 18551 freebsd-*) 18552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18553 need_version=yes 18554 ;; 18555 esac 18556 shlibpath_var=LD_LIBRARY_PATH 18557 case $host_os in 18558 freebsd2*) 18559 shlibpath_overrides_runpath=yes 18560 ;; 18561 freebsd3.[01]* | freebsdelf3.[01]*) 18562 shlibpath_overrides_runpath=yes 18563 hardcode_into_libs=yes 18564 ;; 18565 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18566 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18567 shlibpath_overrides_runpath=no 18568 hardcode_into_libs=yes 18569 ;; 18570 *) # from 4.6 on, and DragonFly 18571 shlibpath_overrides_runpath=yes 18572 hardcode_into_libs=yes 18573 ;; 18574 esac 18575 ;; 18576 18577gnu*) 18578 version_type=linux 18579 need_lib_prefix=no 18580 need_version=no 18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18582 soname_spec='${libname}${release}${shared_ext}$major' 18583 shlibpath_var=LD_LIBRARY_PATH 18584 hardcode_into_libs=yes 18585 ;; 18586 18587hpux9* | hpux10* | hpux11*) 18588 # Give a soname corresponding to the major version so that dld.sl refuses to 18589 # link against other versions. 18590 version_type=sunos 18591 need_lib_prefix=no 18592 need_version=no 18593 case $host_cpu in 18594 ia64*) 18595 shrext_cmds='.so' 18596 hardcode_into_libs=yes 18597 dynamic_linker="$host_os dld.so" 18598 shlibpath_var=LD_LIBRARY_PATH 18599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18601 soname_spec='${libname}${release}${shared_ext}$major' 18602 if test "X$HPUX_IA64_MODE" = X32; then 18603 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18604 else 18605 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18606 fi 18607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18608 ;; 18609 hppa*64*) 18610 shrext_cmds='.sl' 18611 hardcode_into_libs=yes 18612 dynamic_linker="$host_os dld.sl" 18613 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18616 soname_spec='${libname}${release}${shared_ext}$major' 18617 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18619 ;; 18620 *) 18621 shrext_cmds='.sl' 18622 dynamic_linker="$host_os dld.sl" 18623 shlibpath_var=SHLIB_PATH 18624 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18626 soname_spec='${libname}${release}${shared_ext}$major' 18627 ;; 18628 esac 18629 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18630 postinstall_cmds='chmod 555 $lib' 18631 ;; 18632 18633interix[3-9]*) 18634 version_type=linux 18635 need_lib_prefix=no 18636 need_version=no 18637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18638 soname_spec='${libname}${release}${shared_ext}$major' 18639 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18640 shlibpath_var=LD_LIBRARY_PATH 18641 shlibpath_overrides_runpath=no 18642 hardcode_into_libs=yes 18643 ;; 18644 18645irix5* | irix6* | nonstopux*) 18646 case $host_os in 18647 nonstopux*) version_type=nonstopux ;; 18648 *) 18649 if test "$lt_cv_prog_gnu_ld" = yes; then 18650 version_type=linux 18651 else 18652 version_type=irix 18653 fi ;; 18654 esac 18655 need_lib_prefix=no 18656 need_version=no 18657 soname_spec='${libname}${release}${shared_ext}$major' 18658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18659 case $host_os in 18660 irix5* | nonstopux*) 18661 libsuff= shlibsuff= 18662 ;; 18663 *) 18664 case $LD in # libtool.m4 will add one of these switches to LD 18665 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18666 libsuff= shlibsuff= libmagic=32-bit;; 18667 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18668 libsuff=32 shlibsuff=N32 libmagic=N32;; 18669 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18670 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18671 *) libsuff= shlibsuff= libmagic=never-match;; 18672 esac 18673 ;; 18674 esac 18675 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18676 shlibpath_overrides_runpath=no 18677 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18678 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18679 hardcode_into_libs=yes 18680 ;; 18681 18682# No shared lib support for Linux oldld, aout, or coff. 18683linux*oldld* | linux*aout* | linux*coff*) 18684 dynamic_linker=no 18685 ;; 18686 18687# This must be Linux ELF. 18688linux* | k*bsd*-gnu) 18689 version_type=linux 18690 need_lib_prefix=no 18691 need_version=no 18692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18693 soname_spec='${libname}${release}${shared_ext}$major' 18694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18695 shlibpath_var=LD_LIBRARY_PATH 18696 shlibpath_overrides_runpath=no 18697 # This implies no fast_install, which is unacceptable. 18698 # Some rework will be needed to allow for fast_install 18699 # before this can be enabled. 18700 hardcode_into_libs=yes 18701 18702 # Append ld.so.conf contents to the search path 18703 if test -f /etc/ld.so.conf; then 18704 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18706 fi 18707 18708 # We used to test for /lib/ld.so.1 and disable shared libraries on 18709 # powerpc, because MkLinux only supported shared libraries with the 18710 # GNU dynamic linker. Since this was broken with cross compilers, 18711 # most powerpc-linux boxes support dynamic linking these days and 18712 # people can always --disable-shared, the test was removed, and we 18713 # assume the GNU/Linux dynamic linker is in use. 18714 dynamic_linker='GNU/Linux ld.so' 18715 ;; 18716 18717netbsd*) 18718 version_type=sunos 18719 need_lib_prefix=no 18720 need_version=no 18721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18724 dynamic_linker='NetBSD (a.out) ld.so' 18725 else 18726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18727 soname_spec='${libname}${release}${shared_ext}$major' 18728 dynamic_linker='NetBSD ld.elf_so' 18729 fi 18730 shlibpath_var=LD_LIBRARY_PATH 18731 shlibpath_overrides_runpath=yes 18732 hardcode_into_libs=yes 18733 ;; 18734 18735newsos6) 18736 version_type=linux 18737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18738 shlibpath_var=LD_LIBRARY_PATH 18739 shlibpath_overrides_runpath=yes 18740 ;; 18741 18742nto-qnx*) 18743 version_type=linux 18744 need_lib_prefix=no 18745 need_version=no 18746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18747 soname_spec='${libname}${release}${shared_ext}$major' 18748 shlibpath_var=LD_LIBRARY_PATH 18749 shlibpath_overrides_runpath=yes 18750 ;; 18751 18752openbsd*) 18753 version_type=sunos 18754 sys_lib_dlsearch_path_spec="/usr/lib" 18755 need_lib_prefix=no 18756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18757 case $host_os in 18758 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18759 *) need_version=no ;; 18760 esac 18761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18763 shlibpath_var=LD_LIBRARY_PATH 18764 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18765 case $host_os in 18766 openbsd2.[89] | openbsd2.[89].*) 18767 shlibpath_overrides_runpath=no 18768 ;; 18769 *) 18770 shlibpath_overrides_runpath=yes 18771 ;; 18772 esac 18773 else 18774 shlibpath_overrides_runpath=yes 18775 fi 18776 ;; 18777 18778os2*) 18779 libname_spec='$name' 18780 shrext_cmds=".dll" 18781 need_lib_prefix=no 18782 library_names_spec='$libname${shared_ext} $libname.a' 18783 dynamic_linker='OS/2 ld.exe' 18784 shlibpath_var=LIBPATH 18785 ;; 18786 18787osf3* | osf4* | osf5*) 18788 version_type=osf 18789 need_lib_prefix=no 18790 need_version=no 18791 soname_spec='${libname}${release}${shared_ext}$major' 18792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18793 shlibpath_var=LD_LIBRARY_PATH 18794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18796 ;; 18797 18798rdos*) 18799 dynamic_linker=no 18800 ;; 18801 18802solaris*) 18803 version_type=linux 18804 need_lib_prefix=no 18805 need_version=no 18806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18807 soname_spec='${libname}${release}${shared_ext}$major' 18808 shlibpath_var=LD_LIBRARY_PATH 18809 shlibpath_overrides_runpath=yes 18810 hardcode_into_libs=yes 18811 # ldd complains unless libraries are executable 18812 postinstall_cmds='chmod +x $lib' 18813 ;; 18814 18815sunos4*) 18816 version_type=sunos 18817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18818 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18819 shlibpath_var=LD_LIBRARY_PATH 18820 shlibpath_overrides_runpath=yes 18821 if test "$with_gnu_ld" = yes; then 18822 need_lib_prefix=no 18823 fi 18824 need_version=yes 18825 ;; 18826 18827sysv4 | sysv4.3*) 18828 version_type=linux 18829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18830 soname_spec='${libname}${release}${shared_ext}$major' 18831 shlibpath_var=LD_LIBRARY_PATH 18832 case $host_vendor in 18833 sni) 18834 shlibpath_overrides_runpath=no 18835 need_lib_prefix=no 18836 export_dynamic_flag_spec='${wl}-Blargedynsym' 18837 runpath_var=LD_RUN_PATH 18838 ;; 18839 siemens) 18840 need_lib_prefix=no 18841 ;; 18842 motorola) 18843 need_lib_prefix=no 18844 need_version=no 18845 shlibpath_overrides_runpath=no 18846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18847 ;; 18848 esac 18849 ;; 18850 18851sysv4*MP*) 18852 if test -d /usr/nec ;then 18853 version_type=linux 18854 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18855 soname_spec='$libname${shared_ext}.$major' 18856 shlibpath_var=LD_LIBRARY_PATH 18857 fi 18858 ;; 18859 18860sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18861 version_type=freebsd-elf 18862 need_lib_prefix=no 18863 need_version=no 18864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18865 soname_spec='${libname}${release}${shared_ext}$major' 18866 shlibpath_var=LD_LIBRARY_PATH 18867 hardcode_into_libs=yes 18868 if test "$with_gnu_ld" = yes; then 18869 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18870 shlibpath_overrides_runpath=no 18871 else 18872 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18873 shlibpath_overrides_runpath=yes 18874 case $host_os in 18875 sco3.2v5*) 18876 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18877 ;; 18878 esac 18879 fi 18880 sys_lib_dlsearch_path_spec='/usr/lib' 18881 ;; 18882 18883uts4*) 18884 version_type=linux 18885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18886 soname_spec='${libname}${release}${shared_ext}$major' 18887 shlibpath_var=LD_LIBRARY_PATH 18888 ;; 18889 18890*) 18891 dynamic_linker=no 18892 ;; 18893esac 18894{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18895$as_echo "$dynamic_linker" >&6; } 18896test "$dynamic_linker" = no && can_build_shared=no 18897 18898if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18899 $as_echo_n "(cached) " >&6 18900else 18901 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18902fi 18903 18904sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18905if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18906 $as_echo_n "(cached) " >&6 18907else 18908 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 18909fi 18910 18911sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18912 18913variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18914if test "$GCC" = yes; then 18915 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18916fi 18917 18918{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18919$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18920hardcode_action_GCJ= 18921if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18922 test -n "$runpath_var_GCJ" || \ 18923 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18924 18925 # We can hardcode non-existant directories. 18926 if test "$hardcode_direct_GCJ" != no && 18927 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18928 # have to relink, otherwise we might link with an installed library 18929 # when we should be linking with a yet-to-be-installed one 18930 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18931 test "$hardcode_minus_L_GCJ" != no; then 18932 # Linking always hardcodes the temporary library directory. 18933 hardcode_action_GCJ=relink 18934 else 18935 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18936 hardcode_action_GCJ=immediate 18937 fi 18938else 18939 # We cannot hardcode anything, or else we can only hardcode existing 18940 # directories. 18941 hardcode_action_GCJ=unsupported 18942fi 18943{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18944$as_echo "$hardcode_action_GCJ" >&6; } 18945 18946if test "$hardcode_action_GCJ" = relink; then 18947 # Fast installation is not supported 18948 enable_fast_install=no 18949elif test "$shlibpath_overrides_runpath" = yes || 18950 test "$enable_shared" = no; then 18951 # Fast installation is not necessary 18952 enable_fast_install=needless 18953fi 18954 18955 18956# The else clause should only fire when bootstrapping the 18957# libtool distribution, otherwise you forgot to ship ltmain.sh 18958# with your package, and you will get complaints that there are 18959# no rules to generate ltmain.sh. 18960if test -f "$ltmain"; then 18961 # See if we are running on zsh, and set the options which allow our commands through 18962 # without removal of \ escapes. 18963 if test -n "${ZSH_VERSION+set}" ; then 18964 setopt NO_GLOB_SUBST 18965 fi 18966 # Now quote all the things that may contain metacharacters while being 18967 # careful not to overquote the AC_SUBSTed values. We take copies of the 18968 # variables and quote the copies for generation of the libtool script. 18969 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18970 SED SHELL STRIP \ 18971 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18972 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18973 deplibs_check_method reload_flag reload_cmds need_locks \ 18974 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18975 lt_cv_sys_global_symbol_to_c_name_address \ 18976 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18977 old_postinstall_cmds old_postuninstall_cmds \ 18978 compiler_GCJ \ 18979 CC_GCJ \ 18980 LD_GCJ \ 18981 lt_prog_compiler_wl_GCJ \ 18982 lt_prog_compiler_pic_GCJ \ 18983 lt_prog_compiler_static_GCJ \ 18984 lt_prog_compiler_no_builtin_flag_GCJ \ 18985 export_dynamic_flag_spec_GCJ \ 18986 thread_safe_flag_spec_GCJ \ 18987 whole_archive_flag_spec_GCJ \ 18988 enable_shared_with_static_runtimes_GCJ \ 18989 old_archive_cmds_GCJ \ 18990 old_archive_from_new_cmds_GCJ \ 18991 predep_objects_GCJ \ 18992 postdep_objects_GCJ \ 18993 predeps_GCJ \ 18994 postdeps_GCJ \ 18995 compiler_lib_search_path_GCJ \ 18996 compiler_lib_search_dirs_GCJ \ 18997 archive_cmds_GCJ \ 18998 archive_expsym_cmds_GCJ \ 18999 postinstall_cmds_GCJ \ 19000 postuninstall_cmds_GCJ \ 19001 old_archive_from_expsyms_cmds_GCJ \ 19002 allow_undefined_flag_GCJ \ 19003 no_undefined_flag_GCJ \ 19004 export_symbols_cmds_GCJ \ 19005 hardcode_libdir_flag_spec_GCJ \ 19006 hardcode_libdir_flag_spec_ld_GCJ \ 19007 hardcode_libdir_separator_GCJ \ 19008 hardcode_automatic_GCJ \ 19009 module_cmds_GCJ \ 19010 module_expsym_cmds_GCJ \ 19011 lt_cv_prog_compiler_c_o_GCJ \ 19012 fix_srcfile_path_GCJ \ 19013 exclude_expsyms_GCJ \ 19014 include_expsyms_GCJ; do 19015 19016 case $var in 19017 old_archive_cmds_GCJ | \ 19018 old_archive_from_new_cmds_GCJ | \ 19019 archive_cmds_GCJ | \ 19020 archive_expsym_cmds_GCJ | \ 19021 module_cmds_GCJ | \ 19022 module_expsym_cmds_GCJ | \ 19023 old_archive_from_expsyms_cmds_GCJ | \ 19024 export_symbols_cmds_GCJ | \ 19025 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19026 postinstall_cmds | postuninstall_cmds | \ 19027 old_postinstall_cmds | old_postuninstall_cmds | \ 19028 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19029 # Double-quote double-evaled strings. 19030 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19031 ;; 19032 *) 19033 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19034 ;; 19035 esac 19036 done 19037 19038 case $lt_echo in 19039 *'\$0 --fallback-echo"') 19040 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19041 ;; 19042 esac 19043 19044cfgfile="$ofile" 19045 19046 cat <<__EOF__ >> "$cfgfile" 19047# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19048 19049# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19050 19051# Shell to use when invoking shell scripts. 19052SHELL=$lt_SHELL 19053 19054# Whether or not to build shared libraries. 19055build_libtool_libs=$enable_shared 19056 19057# Whether or not to build static libraries. 19058build_old_libs=$enable_static 19059 19060# Whether or not to add -lc for building shared libraries. 19061build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19062 19063# Whether or not to disallow shared libs when runtime libs are static 19064allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19065 19066# Whether or not to optimize for fast installation. 19067fast_install=$enable_fast_install 19068 19069# The host system. 19070host_alias=$host_alias 19071host=$host 19072host_os=$host_os 19073 19074# The build system. 19075build_alias=$build_alias 19076build=$build 19077build_os=$build_os 19078 19079# An echo program that does not interpret backslashes. 19080echo=$lt_echo 19081 19082# The archiver. 19083AR=$lt_AR 19084AR_FLAGS=$lt_AR_FLAGS 19085 19086# A C compiler. 19087LTCC=$lt_LTCC 19088 19089# LTCC compiler flags. 19090LTCFLAGS=$lt_LTCFLAGS 19091 19092# A language-specific compiler. 19093CC=$lt_compiler_GCJ 19094 19095# Is the compiler the GNU C compiler? 19096with_gcc=$GCC_GCJ 19097 19098# An ERE matcher. 19099EGREP=$lt_EGREP 19100 19101# The linker used to build libraries. 19102LD=$lt_LD_GCJ 19103 19104# Whether we need hard or soft links. 19105LN_S=$lt_LN_S 19106 19107# A BSD-compatible nm program. 19108NM=$lt_NM 19109 19110# A symbol stripping program 19111STRIP=$lt_STRIP 19112 19113# Used to examine libraries when file_magic_cmd begins "file" 19114MAGIC_CMD=$MAGIC_CMD 19115 19116# Used on cygwin: DLL creation program. 19117DLLTOOL="$DLLTOOL" 19118 19119# Used on cygwin: object dumper. 19120OBJDUMP="$OBJDUMP" 19121 19122# Used on cygwin: assembler. 19123AS="$AS" 19124 19125# The name of the directory that contains temporary libtool files. 19126objdir=$objdir 19127 19128# How to create reloadable object files. 19129reload_flag=$lt_reload_flag 19130reload_cmds=$lt_reload_cmds 19131 19132# How to pass a linker flag through the compiler. 19133wl=$lt_lt_prog_compiler_wl_GCJ 19134 19135# Object file suffix (normally "o"). 19136objext="$ac_objext" 19137 19138# Old archive suffix (normally "a"). 19139libext="$libext" 19140 19141# Shared library suffix (normally ".so"). 19142shrext_cmds='$shrext_cmds' 19143 19144# Executable file suffix (normally ""). 19145exeext="$exeext" 19146 19147# Additional compiler flags for building library objects. 19148pic_flag=$lt_lt_prog_compiler_pic_GCJ 19149pic_mode=$pic_mode 19150 19151# What is the maximum length of a command? 19152max_cmd_len=$lt_cv_sys_max_cmd_len 19153 19154# Does compiler simultaneously support -c and -o options? 19155compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19156 19157# Must we lock files when doing compilation? 19158need_locks=$lt_need_locks 19159 19160# Do we need the lib prefix for modules? 19161need_lib_prefix=$need_lib_prefix 19162 19163# Do we need a version for libraries? 19164need_version=$need_version 19165 19166# Whether dlopen is supported. 19167dlopen_support=$enable_dlopen 19168 19169# Whether dlopen of programs is supported. 19170dlopen_self=$enable_dlopen_self 19171 19172# Whether dlopen of statically linked programs is supported. 19173dlopen_self_static=$enable_dlopen_self_static 19174 19175# Compiler flag to prevent dynamic linking. 19176link_static_flag=$lt_lt_prog_compiler_static_GCJ 19177 19178# Compiler flag to turn off builtin functions. 19179no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19180 19181# Compiler flag to allow reflexive dlopens. 19182export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19183 19184# Compiler flag to generate shared objects directly from archives. 19185whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19186 19187# Compiler flag to generate thread-safe objects. 19188thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19189 19190# Library versioning type. 19191version_type=$version_type 19192 19193# Format of library name prefix. 19194libname_spec=$lt_libname_spec 19195 19196# List of archive names. First name is the real one, the rest are links. 19197# The last name is the one that the linker finds with -lNAME. 19198library_names_spec=$lt_library_names_spec 19199 19200# The coded name of the library, if different from the real name. 19201soname_spec=$lt_soname_spec 19202 19203# Commands used to build and install an old-style archive. 19204RANLIB=$lt_RANLIB 19205old_archive_cmds=$lt_old_archive_cmds_GCJ 19206old_postinstall_cmds=$lt_old_postinstall_cmds 19207old_postuninstall_cmds=$lt_old_postuninstall_cmds 19208 19209# Create an old-style archive from a shared archive. 19210old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19211 19212# Create a temporary old-style archive to link instead of a shared archive. 19213old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19214 19215# Commands used to build and install a shared archive. 19216archive_cmds=$lt_archive_cmds_GCJ 19217archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19218postinstall_cmds=$lt_postinstall_cmds 19219postuninstall_cmds=$lt_postuninstall_cmds 19220 19221# Commands used to build a loadable module (assumed same as above if empty) 19222module_cmds=$lt_module_cmds_GCJ 19223module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19224 19225# Commands to strip libraries. 19226old_striplib=$lt_old_striplib 19227striplib=$lt_striplib 19228 19229# Dependencies to place before the objects being linked to create a 19230# shared library. 19231predep_objects=$lt_predep_objects_GCJ 19232 19233# Dependencies to place after the objects being linked to create a 19234# shared library. 19235postdep_objects=$lt_postdep_objects_GCJ 19236 19237# Dependencies to place before the objects being linked to create a 19238# shared library. 19239predeps=$lt_predeps_GCJ 19240 19241# Dependencies to place after the objects being linked to create a 19242# shared library. 19243postdeps=$lt_postdeps_GCJ 19244 19245# The directories searched by this compiler when creating a shared 19246# library 19247compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19248 19249# The library search path used internally by the compiler when linking 19250# a shared library. 19251compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19252 19253# Method to check whether dependent libraries are shared objects. 19254deplibs_check_method=$lt_deplibs_check_method 19255 19256# Command to use when deplibs_check_method == file_magic. 19257file_magic_cmd=$lt_file_magic_cmd 19258 19259# Flag that allows shared libraries with undefined symbols to be built. 19260allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19261 19262# Flag that forces no undefined symbols. 19263no_undefined_flag=$lt_no_undefined_flag_GCJ 19264 19265# Commands used to finish a libtool library installation in a directory. 19266finish_cmds=$lt_finish_cmds 19267 19268# Same as above, but a single script fragment to be evaled but not shown. 19269finish_eval=$lt_finish_eval 19270 19271# Take the output of nm and produce a listing of raw symbols and C names. 19272global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19273 19274# Transform the output of nm in a proper C declaration 19275global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19276 19277# Transform the output of nm in a C name address pair 19278global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19279 19280# This is the shared library runtime path variable. 19281runpath_var=$runpath_var 19282 19283# This is the shared library path variable. 19284shlibpath_var=$shlibpath_var 19285 19286# Is shlibpath searched before the hard-coded library search path? 19287shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19288 19289# How to hardcode a shared library path into an executable. 19290hardcode_action=$hardcode_action_GCJ 19291 19292# Whether we should hardcode library paths into libraries. 19293hardcode_into_libs=$hardcode_into_libs 19294 19295# Flag to hardcode \$libdir into a binary during linking. 19296# This must work even if \$libdir does not exist. 19297hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19298 19299# If ld is used when linking, flag to hardcode \$libdir into 19300# a binary during linking. This must work even if \$libdir does 19301# not exist. 19302hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19303 19304# Whether we need a single -rpath flag with a separated argument. 19305hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19306 19307# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19308# resulting binary. 19309hardcode_direct=$hardcode_direct_GCJ 19310 19311# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19312# resulting binary. 19313hardcode_minus_L=$hardcode_minus_L_GCJ 19314 19315# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19316# the resulting binary. 19317hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19318 19319# Set to yes if building a shared library automatically hardcodes DIR into the library 19320# and all subsequent libraries and executables linked against it. 19321hardcode_automatic=$hardcode_automatic_GCJ 19322 19323# Variables whose values should be saved in libtool wrapper scripts and 19324# restored at relink time. 19325variables_saved_for_relink="$variables_saved_for_relink" 19326 19327# Whether libtool must link a program against all its dependency libraries. 19328link_all_deplibs=$link_all_deplibs_GCJ 19329 19330# Compile-time system search path for libraries 19331sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19332 19333# Run-time system search path for libraries 19334sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19335 19336# Fix the shell variable \$srcfile for the compiler. 19337fix_srcfile_path=$lt_fix_srcfile_path 19338 19339# Set to yes if exported symbols are required. 19340always_export_symbols=$always_export_symbols_GCJ 19341 19342# The commands to list exported symbols. 19343export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19344 19345# The commands to extract the exported symbol list from a shared archive. 19346extract_expsyms_cmds=$lt_extract_expsyms_cmds 19347 19348# Symbols that should not be listed in the preloaded symbols. 19349exclude_expsyms=$lt_exclude_expsyms_GCJ 19350 19351# Symbols that must always be exported. 19352include_expsyms=$lt_include_expsyms_GCJ 19353 19354# ### END LIBTOOL TAG CONFIG: $tagname 19355 19356__EOF__ 19357 19358 19359else 19360 # If there is no Makefile yet, we rely on a make rule to execute 19361 # `config.status --recheck' to rerun these tests and create the 19362 # libtool script then. 19363 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19364 if test -f "$ltmain_in"; then 19365 test -f Makefile && make "$ltmain" 19366 fi 19367fi 19368 19369 19370ac_ext=c 19371ac_cpp='$CPP $CPPFLAGS' 19372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19374ac_compiler_gnu=$ac_cv_c_compiler_gnu 19375 19376CC="$lt_save_CC" 19377 19378 else 19379 tagname="" 19380 fi 19381 ;; 19382 19383 RC) 19384 19385 19386# Source file extension for RC test sources. 19387ac_ext=rc 19388 19389# Object file extension for compiled RC test sources. 19390objext=o 19391objext_RC=$objext 19392 19393# Code to be used in simple compile tests 19394lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19395 19396# Code to be used in simple link tests 19397lt_simple_link_test_code="$lt_simple_compile_test_code" 19398 19399# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19400 19401# If no C compiler was specified, use CC. 19402LTCC=${LTCC-"$CC"} 19403 19404# If no C compiler flags were specified, use CFLAGS. 19405LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19406 19407# Allow CC to be a program name with arguments. 19408compiler=$CC 19409 19410 19411# save warnings/boilerplate of simple test code 19412ac_outfile=conftest.$ac_objext 19413echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19414eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19415_lt_compiler_boilerplate=`cat conftest.err` 19416$rm conftest* 19417 19418ac_outfile=conftest.$ac_objext 19419echo "$lt_simple_link_test_code" >conftest.$ac_ext 19420eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19421_lt_linker_boilerplate=`cat conftest.err` 19422$rm -r conftest* 19423 19424 19425# Allow CC to be a program name with arguments. 19426lt_save_CC="$CC" 19427CC=${RC-"windres"} 19428compiler=$CC 19429compiler_RC=$CC 19430for cc_temp in $compiler""; do 19431 case $cc_temp in 19432 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19433 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19434 \-*) ;; 19435 *) break;; 19436 esac 19437done 19438cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19439 19440lt_cv_prog_compiler_c_o_RC=yes 19441 19442# The else clause should only fire when bootstrapping the 19443# libtool distribution, otherwise you forgot to ship ltmain.sh 19444# with your package, and you will get complaints that there are 19445# no rules to generate ltmain.sh. 19446if test -f "$ltmain"; then 19447 # See if we are running on zsh, and set the options which allow our commands through 19448 # without removal of \ escapes. 19449 if test -n "${ZSH_VERSION+set}" ; then 19450 setopt NO_GLOB_SUBST 19451 fi 19452 # Now quote all the things that may contain metacharacters while being 19453 # careful not to overquote the AC_SUBSTed values. We take copies of the 19454 # variables and quote the copies for generation of the libtool script. 19455 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19456 SED SHELL STRIP \ 19457 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19458 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19459 deplibs_check_method reload_flag reload_cmds need_locks \ 19460 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19461 lt_cv_sys_global_symbol_to_c_name_address \ 19462 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19463 old_postinstall_cmds old_postuninstall_cmds \ 19464 compiler_RC \ 19465 CC_RC \ 19466 LD_RC \ 19467 lt_prog_compiler_wl_RC \ 19468 lt_prog_compiler_pic_RC \ 19469 lt_prog_compiler_static_RC \ 19470 lt_prog_compiler_no_builtin_flag_RC \ 19471 export_dynamic_flag_spec_RC \ 19472 thread_safe_flag_spec_RC \ 19473 whole_archive_flag_spec_RC \ 19474 enable_shared_with_static_runtimes_RC \ 19475 old_archive_cmds_RC \ 19476 old_archive_from_new_cmds_RC \ 19477 predep_objects_RC \ 19478 postdep_objects_RC \ 19479 predeps_RC \ 19480 postdeps_RC \ 19481 compiler_lib_search_path_RC \ 19482 compiler_lib_search_dirs_RC \ 19483 archive_cmds_RC \ 19484 archive_expsym_cmds_RC \ 19485 postinstall_cmds_RC \ 19486 postuninstall_cmds_RC \ 19487 old_archive_from_expsyms_cmds_RC \ 19488 allow_undefined_flag_RC \ 19489 no_undefined_flag_RC \ 19490 export_symbols_cmds_RC \ 19491 hardcode_libdir_flag_spec_RC \ 19492 hardcode_libdir_flag_spec_ld_RC \ 19493 hardcode_libdir_separator_RC \ 19494 hardcode_automatic_RC \ 19495 module_cmds_RC \ 19496 module_expsym_cmds_RC \ 19497 lt_cv_prog_compiler_c_o_RC \ 19498 fix_srcfile_path_RC \ 19499 exclude_expsyms_RC \ 19500 include_expsyms_RC; do 19501 19502 case $var in 19503 old_archive_cmds_RC | \ 19504 old_archive_from_new_cmds_RC | \ 19505 archive_cmds_RC | \ 19506 archive_expsym_cmds_RC | \ 19507 module_cmds_RC | \ 19508 module_expsym_cmds_RC | \ 19509 old_archive_from_expsyms_cmds_RC | \ 19510 export_symbols_cmds_RC | \ 19511 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19512 postinstall_cmds | postuninstall_cmds | \ 19513 old_postinstall_cmds | old_postuninstall_cmds | \ 19514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19515 # Double-quote double-evaled strings. 19516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19517 ;; 19518 *) 19519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19520 ;; 19521 esac 19522 done 19523 19524 case $lt_echo in 19525 *'\$0 --fallback-echo"') 19526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19527 ;; 19528 esac 19529 19530cfgfile="$ofile" 19531 19532 cat <<__EOF__ >> "$cfgfile" 19533# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19534 19535# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19536 19537# Shell to use when invoking shell scripts. 19538SHELL=$lt_SHELL 19539 19540# Whether or not to build shared libraries. 19541build_libtool_libs=$enable_shared 19542 19543# Whether or not to build static libraries. 19544build_old_libs=$enable_static 19545 19546# Whether or not to add -lc for building shared libraries. 19547build_libtool_need_lc=$archive_cmds_need_lc_RC 19548 19549# Whether or not to disallow shared libs when runtime libs are static 19550allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19551 19552# Whether or not to optimize for fast installation. 19553fast_install=$enable_fast_install 19554 19555# The host system. 19556host_alias=$host_alias 19557host=$host 19558host_os=$host_os 19559 19560# The build system. 19561build_alias=$build_alias 19562build=$build 19563build_os=$build_os 19564 19565# An echo program that does not interpret backslashes. 19566echo=$lt_echo 19567 19568# The archiver. 19569AR=$lt_AR 19570AR_FLAGS=$lt_AR_FLAGS 19571 19572# A C compiler. 19573LTCC=$lt_LTCC 19574 19575# LTCC compiler flags. 19576LTCFLAGS=$lt_LTCFLAGS 19577 19578# A language-specific compiler. 19579CC=$lt_compiler_RC 19580 19581# Is the compiler the GNU C compiler? 19582with_gcc=$GCC_RC 19583 19584# An ERE matcher. 19585EGREP=$lt_EGREP 19586 19587# The linker used to build libraries. 19588LD=$lt_LD_RC 19589 19590# Whether we need hard or soft links. 19591LN_S=$lt_LN_S 19592 19593# A BSD-compatible nm program. 19594NM=$lt_NM 19595 19596# A symbol stripping program 19597STRIP=$lt_STRIP 19598 19599# Used to examine libraries when file_magic_cmd begins "file" 19600MAGIC_CMD=$MAGIC_CMD 19601 19602# Used on cygwin: DLL creation program. 19603DLLTOOL="$DLLTOOL" 19604 19605# Used on cygwin: object dumper. 19606OBJDUMP="$OBJDUMP" 19607 19608# Used on cygwin: assembler. 19609AS="$AS" 19610 19611# The name of the directory that contains temporary libtool files. 19612objdir=$objdir 19613 19614# How to create reloadable object files. 19615reload_flag=$lt_reload_flag 19616reload_cmds=$lt_reload_cmds 19617 19618# How to pass a linker flag through the compiler. 19619wl=$lt_lt_prog_compiler_wl_RC 19620 19621# Object file suffix (normally "o"). 19622objext="$ac_objext" 19623 19624# Old archive suffix (normally "a"). 19625libext="$libext" 19626 19627# Shared library suffix (normally ".so"). 19628shrext_cmds='$shrext_cmds' 19629 19630# Executable file suffix (normally ""). 19631exeext="$exeext" 19632 19633# Additional compiler flags for building library objects. 19634pic_flag=$lt_lt_prog_compiler_pic_RC 19635pic_mode=$pic_mode 19636 19637# What is the maximum length of a command? 19638max_cmd_len=$lt_cv_sys_max_cmd_len 19639 19640# Does compiler simultaneously support -c and -o options? 19641compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19642 19643# Must we lock files when doing compilation? 19644need_locks=$lt_need_locks 19645 19646# Do we need the lib prefix for modules? 19647need_lib_prefix=$need_lib_prefix 19648 19649# Do we need a version for libraries? 19650need_version=$need_version 19651 19652# Whether dlopen is supported. 19653dlopen_support=$enable_dlopen 19654 19655# Whether dlopen of programs is supported. 19656dlopen_self=$enable_dlopen_self 19657 19658# Whether dlopen of statically linked programs is supported. 19659dlopen_self_static=$enable_dlopen_self_static 19660 19661# Compiler flag to prevent dynamic linking. 19662link_static_flag=$lt_lt_prog_compiler_static_RC 19663 19664# Compiler flag to turn off builtin functions. 19665no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19666 19667# Compiler flag to allow reflexive dlopens. 19668export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19669 19670# Compiler flag to generate shared objects directly from archives. 19671whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19672 19673# Compiler flag to generate thread-safe objects. 19674thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19675 19676# Library versioning type. 19677version_type=$version_type 19678 19679# Format of library name prefix. 19680libname_spec=$lt_libname_spec 19681 19682# List of archive names. First name is the real one, the rest are links. 19683# The last name is the one that the linker finds with -lNAME. 19684library_names_spec=$lt_library_names_spec 19685 19686# The coded name of the library, if different from the real name. 19687soname_spec=$lt_soname_spec 19688 19689# Commands used to build and install an old-style archive. 19690RANLIB=$lt_RANLIB 19691old_archive_cmds=$lt_old_archive_cmds_RC 19692old_postinstall_cmds=$lt_old_postinstall_cmds 19693old_postuninstall_cmds=$lt_old_postuninstall_cmds 19694 19695# Create an old-style archive from a shared archive. 19696old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19697 19698# Create a temporary old-style archive to link instead of a shared archive. 19699old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19700 19701# Commands used to build and install a shared archive. 19702archive_cmds=$lt_archive_cmds_RC 19703archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19704postinstall_cmds=$lt_postinstall_cmds 19705postuninstall_cmds=$lt_postuninstall_cmds 19706 19707# Commands used to build a loadable module (assumed same as above if empty) 19708module_cmds=$lt_module_cmds_RC 19709module_expsym_cmds=$lt_module_expsym_cmds_RC 19710 19711# Commands to strip libraries. 19712old_striplib=$lt_old_striplib 19713striplib=$lt_striplib 19714 19715# Dependencies to place before the objects being linked to create a 19716# shared library. 19717predep_objects=$lt_predep_objects_RC 19718 19719# Dependencies to place after the objects being linked to create a 19720# shared library. 19721postdep_objects=$lt_postdep_objects_RC 19722 19723# Dependencies to place before the objects being linked to create a 19724# shared library. 19725predeps=$lt_predeps_RC 19726 19727# Dependencies to place after the objects being linked to create a 19728# shared library. 19729postdeps=$lt_postdeps_RC 19730 19731# The directories searched by this compiler when creating a shared 19732# library 19733compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19734 19735# The library search path used internally by the compiler when linking 19736# a shared library. 19737compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19738 19739# Method to check whether dependent libraries are shared objects. 19740deplibs_check_method=$lt_deplibs_check_method 19741 19742# Command to use when deplibs_check_method == file_magic. 19743file_magic_cmd=$lt_file_magic_cmd 19744 19745# Flag that allows shared libraries with undefined symbols to be built. 19746allow_undefined_flag=$lt_allow_undefined_flag_RC 19747 19748# Flag that forces no undefined symbols. 19749no_undefined_flag=$lt_no_undefined_flag_RC 19750 19751# Commands used to finish a libtool library installation in a directory. 19752finish_cmds=$lt_finish_cmds 19753 19754# Same as above, but a single script fragment to be evaled but not shown. 19755finish_eval=$lt_finish_eval 19756 19757# Take the output of nm and produce a listing of raw symbols and C names. 19758global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19759 19760# Transform the output of nm in a proper C declaration 19761global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19762 19763# Transform the output of nm in a C name address pair 19764global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19765 19766# This is the shared library runtime path variable. 19767runpath_var=$runpath_var 19768 19769# This is the shared library path variable. 19770shlibpath_var=$shlibpath_var 19771 19772# Is shlibpath searched before the hard-coded library search path? 19773shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19774 19775# How to hardcode a shared library path into an executable. 19776hardcode_action=$hardcode_action_RC 19777 19778# Whether we should hardcode library paths into libraries. 19779hardcode_into_libs=$hardcode_into_libs 19780 19781# Flag to hardcode \$libdir into a binary during linking. 19782# This must work even if \$libdir does not exist. 19783hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19784 19785# If ld is used when linking, flag to hardcode \$libdir into 19786# a binary during linking. This must work even if \$libdir does 19787# not exist. 19788hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19789 19790# Whether we need a single -rpath flag with a separated argument. 19791hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19792 19793# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19794# resulting binary. 19795hardcode_direct=$hardcode_direct_RC 19796 19797# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19798# resulting binary. 19799hardcode_minus_L=$hardcode_minus_L_RC 19800 19801# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19802# the resulting binary. 19803hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19804 19805# Set to yes if building a shared library automatically hardcodes DIR into the library 19806# and all subsequent libraries and executables linked against it. 19807hardcode_automatic=$hardcode_automatic_RC 19808 19809# Variables whose values should be saved in libtool wrapper scripts and 19810# restored at relink time. 19811variables_saved_for_relink="$variables_saved_for_relink" 19812 19813# Whether libtool must link a program against all its dependency libraries. 19814link_all_deplibs=$link_all_deplibs_RC 19815 19816# Compile-time system search path for libraries 19817sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19818 19819# Run-time system search path for libraries 19820sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19821 19822# Fix the shell variable \$srcfile for the compiler. 19823fix_srcfile_path=$lt_fix_srcfile_path 19824 19825# Set to yes if exported symbols are required. 19826always_export_symbols=$always_export_symbols_RC 19827 19828# The commands to list exported symbols. 19829export_symbols_cmds=$lt_export_symbols_cmds_RC 19830 19831# The commands to extract the exported symbol list from a shared archive. 19832extract_expsyms_cmds=$lt_extract_expsyms_cmds 19833 19834# Symbols that should not be listed in the preloaded symbols. 19835exclude_expsyms=$lt_exclude_expsyms_RC 19836 19837# Symbols that must always be exported. 19838include_expsyms=$lt_include_expsyms_RC 19839 19840# ### END LIBTOOL TAG CONFIG: $tagname 19841 19842__EOF__ 19843 19844 19845else 19846 # If there is no Makefile yet, we rely on a make rule to execute 19847 # `config.status --recheck' to rerun these tests and create the 19848 # libtool script then. 19849 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19850 if test -f "$ltmain_in"; then 19851 test -f Makefile && make "$ltmain" 19852 fi 19853fi 19854 19855 19856ac_ext=c 19857ac_cpp='$CPP $CPPFLAGS' 19858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19860ac_compiler_gnu=$ac_cv_c_compiler_gnu 19861 19862CC="$lt_save_CC" 19863 19864 ;; 19865 19866 *) 19867 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19868$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19869 { (exit 1); exit 1; }; } 19870 ;; 19871 esac 19872 19873 # Append the new tag name to the list of available tags. 19874 if test -n "$tagname" ; then 19875 available_tags="$available_tags $tagname" 19876 fi 19877 fi 19878 done 19879 IFS="$lt_save_ifs" 19880 19881 # Now substitute the updated list of available tags. 19882 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19883 mv "${ofile}T" "$ofile" 19884 chmod +x "$ofile" 19885 else 19886 rm -f "${ofile}T" 19887 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19888$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19889 { (exit 1); exit 1; }; } 19890 fi 19891fi 19892 19893 19894 19895# This can be used to rebuild libtool when needed 19896LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19897 19898# Always use our own libtool. 19899LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19900 19901# Prevent multiple expansion 19902 19903 19904 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by 19924# XORG_MANPAGE_SECTIONS 19925 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 19937$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 19938if test "${ac_cv_prog_cc_c99+set}" = set; then 19939 $as_echo_n "(cached) " >&6 19940else 19941 ac_cv_prog_cc_c99=no 19942ac_save_CC=$CC 19943cat >conftest.$ac_ext <<_ACEOF 19944/* confdefs.h. */ 19945_ACEOF 19946cat confdefs.h >>conftest.$ac_ext 19947cat >>conftest.$ac_ext <<_ACEOF 19948/* end confdefs.h. */ 19949#include <stdarg.h> 19950#include <stdbool.h> 19951#include <stdlib.h> 19952#include <wchar.h> 19953#include <stdio.h> 19954 19955// Check varargs macros. These examples are taken from C99 6.10.3.5. 19956#define debug(...) fprintf (stderr, __VA_ARGS__) 19957#define showlist(...) puts (#__VA_ARGS__) 19958#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 19959static void 19960test_varargs_macros (void) 19961{ 19962 int x = 1234; 19963 int y = 5678; 19964 debug ("Flag"); 19965 debug ("X = %d\n", x); 19966 showlist (The first, second, and third items.); 19967 report (x>y, "x is %d but y is %d", x, y); 19968} 19969 19970// Check long long types. 19971#define BIG64 18446744073709551615ull 19972#define BIG32 4294967295ul 19973#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 19974#if !BIG_OK 19975 your preprocessor is broken; 19976#endif 19977#if BIG_OK 19978#else 19979 your preprocessor is broken; 19980#endif 19981static long long int bignum = -9223372036854775807LL; 19982static unsigned long long int ubignum = BIG64; 19983 19984struct incomplete_array 19985{ 19986 int datasize; 19987 double data[]; 19988}; 19989 19990struct named_init { 19991 int number; 19992 const wchar_t *name; 19993 double average; 19994}; 19995 19996typedef const char *ccp; 19997 19998static inline int 19999test_restrict (ccp restrict text) 20000{ 20001 // See if C++-style comments work. 20002 // Iterate through items via the restricted pointer. 20003 // Also check for declarations in for loops. 20004 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 20005 continue; 20006 return 0; 20007} 20008 20009// Check varargs and va_copy. 20010static void 20011test_varargs (const char *format, ...) 20012{ 20013 va_list args; 20014 va_start (args, format); 20015 va_list args_copy; 20016 va_copy (args_copy, args); 20017 20018 const char *str; 20019 int number; 20020 float fnumber; 20021 20022 while (*format) 20023 { 20024 switch (*format++) 20025 { 20026 case 's': // string 20027 str = va_arg (args_copy, const char *); 20028 break; 20029 case 'd': // int 20030 number = va_arg (args_copy, int); 20031 break; 20032 case 'f': // float 20033 fnumber = va_arg (args_copy, double); 20034 break; 20035 default: 20036 break; 20037 } 20038 } 20039 va_end (args_copy); 20040 va_end (args); 20041} 20042 20043int 20044main () 20045{ 20046 20047 // Check bool. 20048 _Bool success = false; 20049 20050 // Check restrict. 20051 if (test_restrict ("String literal") == 0) 20052 success = true; 20053 char *restrict newvar = "Another string"; 20054 20055 // Check varargs. 20056 test_varargs ("s, d' f .", "string", 65, 34.234); 20057 test_varargs_macros (); 20058 20059 // Check flexible array members. 20060 struct incomplete_array *ia = 20061 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 20062 ia->datasize = 10; 20063 for (int i = 0; i < ia->datasize; ++i) 20064 ia->data[i] = i * 1.234; 20065 20066 // Check named initializers. 20067 struct named_init ni = { 20068 .number = 34, 20069 .name = L"Test wide string", 20070 .average = 543.34343, 20071 }; 20072 20073 ni.number = 58; 20074 20075 int dynamic_array[ni.number]; 20076 dynamic_array[ni.number - 1] = 543; 20077 20078 // work around unused variable warnings 20079 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 20080 || dynamic_array[ni.number - 1] != 543); 20081 20082 ; 20083 return 0; 20084} 20085_ACEOF 20086for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 20087do 20088 CC="$ac_save_CC $ac_arg" 20089 rm -f conftest.$ac_objext 20090if { (ac_try="$ac_compile" 20091case "(($ac_try" in 20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20093 *) ac_try_echo=$ac_try;; 20094esac 20095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20096$as_echo "$ac_try_echo") >&5 20097 (eval "$ac_compile") 2>conftest.er1 20098 ac_status=$? 20099 grep -v '^ *+' conftest.er1 >conftest.err 20100 rm -f conftest.er1 20101 cat conftest.err >&5 20102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20103 (exit $ac_status); } && { 20104 test -z "$ac_c_werror_flag" || 20105 test ! -s conftest.err 20106 } && test -s conftest.$ac_objext; then 20107 ac_cv_prog_cc_c99=$ac_arg 20108else 20109 $as_echo "$as_me: failed program was:" >&5 20110sed 's/^/| /' conftest.$ac_ext >&5 20111 20112 20113fi 20114 20115rm -f core conftest.err conftest.$ac_objext 20116 test "x$ac_cv_prog_cc_c99" != "xno" && break 20117done 20118rm -f conftest.$ac_ext 20119CC=$ac_save_CC 20120 20121fi 20122# AC_CACHE_VAL 20123case "x$ac_cv_prog_cc_c99" in 20124 x) 20125 { $as_echo "$as_me:$LINENO: result: none needed" >&5 20126$as_echo "none needed" >&6; } ;; 20127 xno) 20128 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 20129$as_echo "unsupported" >&6; } ;; 20130 *) 20131 CC="$CC $ac_cv_prog_cc_c99" 20132 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 20133$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 20134esac 20135 20136 20137 20138 20139 20140if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20141 if test -n "$ac_tool_prefix"; then 20142 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20143set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20144{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20145$as_echo_n "checking for $ac_word... " >&6; } 20146if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20147 $as_echo_n "(cached) " >&6 20148else 20149 case $PKG_CONFIG in 20150 [\\/]* | ?:[\\/]*) 20151 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20152 ;; 20153 *) 20154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20155for as_dir in $PATH 20156do 20157 IFS=$as_save_IFS 20158 test -z "$as_dir" && as_dir=. 20159 for ac_exec_ext in '' $ac_executable_extensions; do 20160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20161 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20163 break 2 20164 fi 20165done 20166done 20167IFS=$as_save_IFS 20168 20169 ;; 20170esac 20171fi 20172PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20173if test -n "$PKG_CONFIG"; then 20174 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20175$as_echo "$PKG_CONFIG" >&6; } 20176else 20177 { $as_echo "$as_me:$LINENO: result: no" >&5 20178$as_echo "no" >&6; } 20179fi 20180 20181 20182fi 20183if test -z "$ac_cv_path_PKG_CONFIG"; then 20184 ac_pt_PKG_CONFIG=$PKG_CONFIG 20185 # Extract the first word of "pkg-config", so it can be a program name with args. 20186set dummy pkg-config; ac_word=$2 20187{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 20188$as_echo_n "checking for $ac_word... " >&6; } 20189if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 20190 $as_echo_n "(cached) " >&6 20191else 20192 case $ac_pt_PKG_CONFIG in 20193 [\\/]* | ?:[\\/]*) 20194 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20195 ;; 20196 *) 20197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20198for as_dir in $PATH 20199do 20200 IFS=$as_save_IFS 20201 test -z "$as_dir" && as_dir=. 20202 for ac_exec_ext in '' $ac_executable_extensions; do 20203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20204 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20206 break 2 20207 fi 20208done 20209done 20210IFS=$as_save_IFS 20211 20212 ;; 20213esac 20214fi 20215ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20216if test -n "$ac_pt_PKG_CONFIG"; then 20217 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 20218$as_echo "$ac_pt_PKG_CONFIG" >&6; } 20219else 20220 { $as_echo "$as_me:$LINENO: result: no" >&5 20221$as_echo "no" >&6; } 20222fi 20223 20224 if test "x$ac_pt_PKG_CONFIG" = x; then 20225 PKG_CONFIG="" 20226 else 20227 case $cross_compiling:$ac_tool_warned in 20228yes:) 20229{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 20230whose name does not start with the host triplet. If you think this 20231configuration is useful to you, please write to autoconf@gnu.org." >&5 20232$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 20233whose name does not start with the host triplet. If you think this 20234configuration is useful to you, please write to autoconf@gnu.org." >&2;} 20235ac_tool_warned=yes ;; 20236esac 20237 PKG_CONFIG=$ac_pt_PKG_CONFIG 20238 fi 20239else 20240 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20241fi 20242 20243fi 20244if test -n "$PKG_CONFIG"; then 20245 _pkg_min_version=0.9.0 20246 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 20247$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 20248 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20249 { $as_echo "$as_me:$LINENO: result: yes" >&5 20250$as_echo "yes" >&6; } 20251 else 20252 { $as_echo "$as_me:$LINENO: result: no" >&5 20253$as_echo "no" >&6; } 20254 PKG_CONFIG="" 20255 fi 20256 20257fi 20258{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 20259$as_echo_n "checking for a sed that does not truncate output... " >&6; } 20260if test "${ac_cv_path_SED+set}" = set; then 20261 $as_echo_n "(cached) " >&6 20262else 20263 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 20264 for ac_i in 1 2 3 4 5 6 7; do 20265 ac_script="$ac_script$as_nl$ac_script" 20266 done 20267 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 20268 $as_unset ac_script || ac_script= 20269 if test -z "$SED"; then 20270 ac_path_SED_found=false 20271 # Loop through the user's path and test for each of PROGNAME-LIST 20272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20273for as_dir in $PATH 20274do 20275 IFS=$as_save_IFS 20276 test -z "$as_dir" && as_dir=. 20277 for ac_prog in sed gsed; do 20278 for ac_exec_ext in '' $ac_executable_extensions; do 20279 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 20280 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 20281# Check for GNU ac_path_SED and select it if it is found. 20282 # Check for GNU $ac_path_SED 20283case `"$ac_path_SED" --version 2>&1` in 20284*GNU*) 20285 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 20286*) 20287 ac_count=0 20288 $as_echo_n 0123456789 >"conftest.in" 20289 while : 20290 do 20291 cat "conftest.in" "conftest.in" >"conftest.tmp" 20292 mv "conftest.tmp" "conftest.in" 20293 cp "conftest.in" "conftest.nl" 20294 $as_echo '' >> "conftest.nl" 20295 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 20296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 20297 ac_count=`expr $ac_count + 1` 20298 if test $ac_count -gt ${ac_path_SED_max-0}; then 20299 # Best one so far, save it but keep looking for a better one 20300 ac_cv_path_SED="$ac_path_SED" 20301 ac_path_SED_max=$ac_count 20302 fi 20303 # 10*(2^10) chars as input seems more than enough 20304 test $ac_count -gt 10 && break 20305 done 20306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 20307esac 20308 20309 $ac_path_SED_found && break 3 20310 done 20311 done 20312done 20313IFS=$as_save_IFS 20314 if test -z "$ac_cv_path_SED"; then 20315 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 20316$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 20317 { (exit 1); exit 1; }; } 20318 fi 20319else 20320 ac_cv_path_SED=$SED 20321fi 20322 20323fi 20324{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 20325$as_echo "$ac_cv_path_SED" >&6; } 20326 SED="$ac_cv_path_SED" 20327 rm -f conftest.sed 20328 20329 20330 20331 20332 20333if test "x$GCC" = xyes ; then 20334 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 20335-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 20336-Wbad-function-cast -Wformat=2" 20337 case `$CC -dumpversion` in 20338 3.4.* | 4.*) 20339 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 20340 ;; 20341 esac 20342else 20343 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 20344$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 20345if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 20346 $as_echo_n "(cached) " >&6 20347else 20348 cat >conftest.$ac_ext <<_ACEOF 20349/* confdefs.h. */ 20350_ACEOF 20351cat confdefs.h >>conftest.$ac_ext 20352cat >>conftest.$ac_ext <<_ACEOF 20353/* end confdefs.h. */ 20354$ac_includes_default 20355int 20356main () 20357{ 20358#ifndef __SUNPRO_C 20359 (void) __SUNPRO_C; 20360#endif 20361 20362 ; 20363 return 0; 20364} 20365_ACEOF 20366rm -f conftest.$ac_objext 20367if { (ac_try="$ac_compile" 20368case "(($ac_try" in 20369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20370 *) ac_try_echo=$ac_try;; 20371esac 20372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20373$as_echo "$ac_try_echo") >&5 20374 (eval "$ac_compile") 2>conftest.er1 20375 ac_status=$? 20376 grep -v '^ *+' conftest.er1 >conftest.err 20377 rm -f conftest.er1 20378 cat conftest.err >&5 20379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20380 (exit $ac_status); } && { 20381 test -z "$ac_c_werror_flag" || 20382 test ! -s conftest.err 20383 } && test -s conftest.$ac_objext; then 20384 ac_cv_have_decl___SUNPRO_C=yes 20385else 20386 $as_echo "$as_me: failed program was:" >&5 20387sed 's/^/| /' conftest.$ac_ext >&5 20388 20389 ac_cv_have_decl___SUNPRO_C=no 20390fi 20391 20392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20393fi 20394{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 20395$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 20396if test $ac_cv_have_decl___SUNPRO_C = yes; then 20397 SUNCC="yes" 20398else 20399 SUNCC="no" 20400fi 20401 20402 if test "x$SUNCC" = "xyes"; then 20403 CWARNFLAGS="-v" 20404 fi 20405fi 20406 20407 20408 20409# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 20410 20411 20412 20413# Check whether --enable-strict-compilation was given. 20414if test "${enable_strict_compilation+set}" = set; then 20415 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 20416else 20417 STRICT_COMPILE=no 20418fi 20419 20420if test "x$STRICT_COMPILE" = "xyes"; then 20421 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 20422$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 20423if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 20424 $as_echo_n "(cached) " >&6 20425else 20426 cat >conftest.$ac_ext <<_ACEOF 20427/* confdefs.h. */ 20428_ACEOF 20429cat confdefs.h >>conftest.$ac_ext 20430cat >>conftest.$ac_ext <<_ACEOF 20431/* end confdefs.h. */ 20432$ac_includes_default 20433int 20434main () 20435{ 20436#ifndef __SUNPRO_C 20437 (void) __SUNPRO_C; 20438#endif 20439 20440 ; 20441 return 0; 20442} 20443_ACEOF 20444rm -f conftest.$ac_objext 20445if { (ac_try="$ac_compile" 20446case "(($ac_try" in 20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20448 *) ac_try_echo=$ac_try;; 20449esac 20450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20451$as_echo "$ac_try_echo") >&5 20452 (eval "$ac_compile") 2>conftest.er1 20453 ac_status=$? 20454 grep -v '^ *+' conftest.er1 >conftest.err 20455 rm -f conftest.er1 20456 cat conftest.err >&5 20457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20458 (exit $ac_status); } && { 20459 test -z "$ac_c_werror_flag" || 20460 test ! -s conftest.err 20461 } && test -s conftest.$ac_objext; then 20462 ac_cv_have_decl___SUNPRO_C=yes 20463else 20464 $as_echo "$as_me: failed program was:" >&5 20465sed 's/^/| /' conftest.$ac_ext >&5 20466 20467 ac_cv_have_decl___SUNPRO_C=no 20468fi 20469 20470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20471fi 20472{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 20473$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 20474if test $ac_cv_have_decl___SUNPRO_C = yes; then 20475 SUNCC="yes" 20476else 20477 SUNCC="no" 20478fi 20479 20480 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 20481$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 20482if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 20483 $as_echo_n "(cached) " >&6 20484else 20485 cat >conftest.$ac_ext <<_ACEOF 20486/* confdefs.h. */ 20487_ACEOF 20488cat confdefs.h >>conftest.$ac_ext 20489cat >>conftest.$ac_ext <<_ACEOF 20490/* end confdefs.h. */ 20491$ac_includes_default 20492int 20493main () 20494{ 20495#ifndef __INTEL_COMPILER 20496 (void) __INTEL_COMPILER; 20497#endif 20498 20499 ; 20500 return 0; 20501} 20502_ACEOF 20503rm -f conftest.$ac_objext 20504if { (ac_try="$ac_compile" 20505case "(($ac_try" in 20506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20507 *) ac_try_echo=$ac_try;; 20508esac 20509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 20510$as_echo "$ac_try_echo") >&5 20511 (eval "$ac_compile") 2>conftest.er1 20512 ac_status=$? 20513 grep -v '^ *+' conftest.er1 >conftest.err 20514 rm -f conftest.er1 20515 cat conftest.err >&5 20516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20517 (exit $ac_status); } && { 20518 test -z "$ac_c_werror_flag" || 20519 test ! -s conftest.err 20520 } && test -s conftest.$ac_objext; then 20521 ac_cv_have_decl___INTEL_COMPILER=yes 20522else 20523 $as_echo "$as_me: failed program was:" >&5 20524sed 's/^/| /' conftest.$ac_ext >&5 20525 20526 ac_cv_have_decl___INTEL_COMPILER=no 20527fi 20528 20529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20530fi 20531{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 20532$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 20533if test $ac_cv_have_decl___INTEL_COMPILER = yes; then 20534 INTELCC="yes" 20535else 20536 INTELCC="no" 20537fi 20538 20539 if test "x$GCC" = xyes ; then 20540 STRICT_CFLAGS="-pedantic -Werror" 20541 elif test "x$SUNCC" = "xyes"; then 20542 STRICT_CFLAGS="-errwarn" 20543 elif test "x$INTELCC" = "xyes"; then 20544 STRICT_CFLAGS="-Werror" 20545 fi 20546fi 20547CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20548 20549 20550 20551 20552cat >>confdefs.h <<_ACEOF 20553#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20554_ACEOF 20555 20556 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20557 if test "x$PVM" = "x"; then 20558 PVM="0" 20559 fi 20560 20561cat >>confdefs.h <<_ACEOF 20562#define PACKAGE_VERSION_MINOR $PVM 20563_ACEOF 20564 20565 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20566 if test "x$PVP" = "x"; then 20567 PVP="0" 20568 fi 20569 20570cat >>confdefs.h <<_ACEOF 20571#define PACKAGE_VERSION_PATCHLEVEL $PVP 20572_ACEOF 20573 20574 20575 20576CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 20577mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20578|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 20579echo 'git directory not found: installing possibly empty changelog.' >&2)" 20580 20581 20582 20583 20584macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20585INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20586mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20587|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 20588echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 20589 20590 20591 20592 20593 20594 20595if test x$APP_MAN_SUFFIX = x ; then 20596 APP_MAN_SUFFIX=1 20597fi 20598if test x$APP_MAN_DIR = x ; then 20599 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20600fi 20601 20602if test x$LIB_MAN_SUFFIX = x ; then 20603 LIB_MAN_SUFFIX=3 20604fi 20605if test x$LIB_MAN_DIR = x ; then 20606 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20607fi 20608 20609if test x$FILE_MAN_SUFFIX = x ; then 20610 case $host_os in 20611 solaris*) FILE_MAN_SUFFIX=4 ;; 20612 *) FILE_MAN_SUFFIX=5 ;; 20613 esac 20614fi 20615if test x$FILE_MAN_DIR = x ; then 20616 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20617fi 20618 20619if test x$MISC_MAN_SUFFIX = x ; then 20620 case $host_os in 20621 solaris*) MISC_MAN_SUFFIX=5 ;; 20622 *) MISC_MAN_SUFFIX=7 ;; 20623 esac 20624fi 20625if test x$MISC_MAN_DIR = x ; then 20626 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20627fi 20628 20629if test x$DRIVER_MAN_SUFFIX = x ; then 20630 case $host_os in 20631 solaris*) DRIVER_MAN_SUFFIX=7 ;; 20632 *) DRIVER_MAN_SUFFIX=4 ;; 20633 esac 20634fi 20635if test x$DRIVER_MAN_DIR = x ; then 20636 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20637fi 20638 20639if test x$ADMIN_MAN_SUFFIX = x ; then 20640 case $host_os in 20641 solaris*) ADMIN_MAN_SUFFIX=1m ;; 20642 *) ADMIN_MAN_SUFFIX=8 ;; 20643 esac 20644fi 20645if test x$ADMIN_MAN_DIR = x ; then 20646 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20647fi 20648 20649 20650 20651 20652 20653 20654 20655 20656 20657 20658 20659 20660 20661 20662 20663XORG_MAN_PAGE="X Version 11" 20664 20665MAN_SUBSTS="\ 20666 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20667 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20668 -e 's|__xservername__|Xorg|g' \ 20669 -e 's|__xconfigfile__|xorg.conf|g' \ 20670 -e 's|__projectroot__|\$(prefix)|g' \ 20671 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20672 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20673 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20674 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20675 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20676 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20677 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20678 20679 20680 20681AM_DEFAULT_VERBOSITY=1 20682 20683 20684 20685# Obtain compiler/linker options from server and required extensions 20686 20687pkg_failed=no 20688{ $as_echo "$as_me:$LINENO: checking for XORG" >&5 20689$as_echo_n "checking for XORG... " >&6; } 20690 20691if test -n "$PKG_CONFIG"; then 20692 if test -n "$XORG_CFLAGS"; then 20693 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 20694 else 20695 if test -n "$PKG_CONFIG" && \ 20696 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto inputproto\"") >&5 20697 ($PKG_CONFIG --exists --print-errors "xorg-server xproto inputproto") 2>&5 20698 ac_status=$? 20699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20700 (exit $ac_status); }; then 20701 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto inputproto" 2>/dev/null` 20702else 20703 pkg_failed=yes 20704fi 20705 fi 20706else 20707 pkg_failed=untried 20708fi 20709if test -n "$PKG_CONFIG"; then 20710 if test -n "$XORG_LIBS"; then 20711 pkg_cv_XORG_LIBS="$XORG_LIBS" 20712 else 20713 if test -n "$PKG_CONFIG" && \ 20714 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto inputproto\"") >&5 20715 ($PKG_CONFIG --exists --print-errors "xorg-server xproto inputproto") 2>&5 20716 ac_status=$? 20717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 20718 (exit $ac_status); }; then 20719 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto inputproto" 2>/dev/null` 20720else 20721 pkg_failed=yes 20722fi 20723 fi 20724else 20725 pkg_failed=untried 20726fi 20727 20728 20729 20730if test $pkg_failed = yes; then 20731 20732if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20733 _pkg_short_errors_supported=yes 20734else 20735 _pkg_short_errors_supported=no 20736fi 20737 if test $_pkg_short_errors_supported = yes; then 20738 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server xproto inputproto"` 20739 else 20740 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server xproto inputproto"` 20741 fi 20742 # Put the nasty error message in config.log where it belongs 20743 echo "$XORG_PKG_ERRORS" >&5 20744 20745 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto inputproto) were not met: 20746 20747$XORG_PKG_ERRORS 20748 20749Consider adjusting the PKG_CONFIG_PATH environment variable if you 20750installed software in a non-standard prefix. 20751 20752Alternatively, you may set the environment variables XORG_CFLAGS 20753and XORG_LIBS to avoid the need to call pkg-config. 20754See the pkg-config man page for more details. 20755" >&5 20756$as_echo "$as_me: error: Package requirements (xorg-server xproto inputproto) were not met: 20757 20758$XORG_PKG_ERRORS 20759 20760Consider adjusting the PKG_CONFIG_PATH environment variable if you 20761installed software in a non-standard prefix. 20762 20763Alternatively, you may set the environment variables XORG_CFLAGS 20764and XORG_LIBS to avoid the need to call pkg-config. 20765See the pkg-config man page for more details. 20766" >&2;} 20767 { (exit 1); exit 1; }; } 20768elif test $pkg_failed = untried; then 20769 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20770is in your PATH or set the PKG_CONFIG environment variable to the full 20771path to pkg-config. 20772 20773Alternatively, you may set the environment variables XORG_CFLAGS 20774and XORG_LIBS to avoid the need to call pkg-config. 20775See the pkg-config man page for more details. 20776 20777To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20778See \`config.log' for more details." >&5 20779$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20780is in your PATH or set the PKG_CONFIG environment variable to the full 20781path to pkg-config. 20782 20783Alternatively, you may set the environment variables XORG_CFLAGS 20784and XORG_LIBS to avoid the need to call pkg-config. 20785See the pkg-config man page for more details. 20786 20787To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20788See \`config.log' for more details." >&2;} 20789 { (exit 1); exit 1; }; } 20790else 20791 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 20792 XORG_LIBS=$pkg_cv_XORG_LIBS 20793 { $as_echo "$as_me:$LINENO: result: yes" >&5 20794$as_echo "yes" >&6; } 20795 : 20796fi 20797 20798# Define a configure option for an alternate input module directory 20799 20800# Check whether --with-xorg-module-dir was given. 20801if test "${with_xorg_module_dir+set}" = set; then 20802 withval=$with_xorg_module_dir; moduledir="$withval" 20803else 20804 moduledir="$libdir/xorg/modules" 20805fi 20806 20807inputdir=${moduledir}/input 20808 20809 20810# X Server SDK location is required to install evdev header files 20811# This location is also relayed in the xorg-evdev.pc file 20812sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 20813 20814# Workaround overriding sdkdir to be able to create a tarball when user has no 20815# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am 20816 20817# Check whether --with-sdkdir was given. 20818if test "${with_sdkdir+set}" = set; then 20819 withval=$with_sdkdir; sdkdir="$withval" 20820fi 20821 20822 20823 20824DRIVER_NAME=ws 20825 20826 20827ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile include/Makefile" 20828 20829 20830cat >confcache <<\_ACEOF 20831# This file is a shell script that caches the results of configure 20832# tests run on this system so they can be shared between configure 20833# scripts and configure runs, see configure's option --config-cache. 20834# It is not useful on other systems. If it contains results you don't 20835# want to keep, you may remove or edit it. 20836# 20837# config.status only pays attention to the cache file if you give it 20838# the --recheck option to rerun configure. 20839# 20840# `ac_cv_env_foo' variables (set or unset) will be overridden when 20841# loading this file, other *unset* `ac_cv_foo' will be assigned the 20842# following values. 20843 20844_ACEOF 20845 20846# The following way of writing the cache mishandles newlines in values, 20847# but we know of no workaround that is simple, portable, and efficient. 20848# So, we kill variables containing newlines. 20849# Ultrix sh set writes to stderr and can't be redirected directly, 20850# and sets the high bit in the cache file unless we assign to the vars. 20851( 20852 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20853 eval ac_val=\$$ac_var 20854 case $ac_val in #( 20855 *${as_nl}*) 20856 case $ac_var in #( 20857 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20858$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20859 esac 20860 case $ac_var in #( 20861 _ | IFS | as_nl) ;; #( 20862 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20863 *) $as_unset $ac_var ;; 20864 esac ;; 20865 esac 20866 done 20867 20868 (set) 2>&1 | 20869 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20870 *${as_nl}ac_space=\ *) 20871 # `set' does not quote correctly, so add quotes (double-quote 20872 # substitution turns \\\\ into \\, and sed turns \\ into \). 20873 sed -n \ 20874 "s/'/'\\\\''/g; 20875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20876 ;; #( 20877 *) 20878 # `set' quotes correctly as required by POSIX, so do not add quotes. 20879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20880 ;; 20881 esac | 20882 sort 20883) | 20884 sed ' 20885 /^ac_cv_env_/b end 20886 t clear 20887 :clear 20888 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20889 t end 20890 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20891 :end' >>confcache 20892if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20893 if test -w "$cache_file"; then 20894 test "x$cache_file" != "x/dev/null" && 20895 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 20896$as_echo "$as_me: updating cache $cache_file" >&6;} 20897 cat confcache >$cache_file 20898 else 20899 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20900$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20901 fi 20902fi 20903rm -f confcache 20904 20905test "x$prefix" = xNONE && prefix=$ac_default_prefix 20906# Let make expand exec_prefix. 20907test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20908 20909DEFS=-DHAVE_CONFIG_H 20910 20911ac_libobjs= 20912ac_ltlibobjs= 20913for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20914 # 1. Remove the extension, and $U if already installed. 20915 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20916 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20917 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20918 # will be set to the directory where LIBOBJS objects are built. 20919 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20920 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20921done 20922LIBOBJS=$ac_libobjs 20923 20924LTLIBOBJS=$ac_ltlibobjs 20925 20926 20927if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20928 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 20929Usually this means the macro was only invoked conditionally." >&5 20930$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 20931Usually this means the macro was only invoked conditionally." >&2;} 20932 { (exit 1); exit 1; }; } 20933fi 20934if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20935 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20936Usually this means the macro was only invoked conditionally." >&5 20937$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 20938Usually this means the macro was only invoked conditionally." >&2;} 20939 { (exit 1); exit 1; }; } 20940fi 20941if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20942 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20943Usually this means the macro was only invoked conditionally." >&5 20944$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20945Usually this means the macro was only invoked conditionally." >&2;} 20946 { (exit 1); exit 1; }; } 20947fi 20948if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20949 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20950Usually this means the macro was only invoked conditionally." >&5 20951$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20952Usually this means the macro was only invoked conditionally." >&2;} 20953 { (exit 1); exit 1; }; } 20954fi 20955 20956: ${CONFIG_STATUS=./config.status} 20957ac_write_fail=0 20958ac_clean_files_save=$ac_clean_files 20959ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20960{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20961$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20962cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20963#! $SHELL 20964# Generated by $as_me. 20965# Run this file to recreate the current configuration. 20966# Compiler output produced by configure, useful for debugging 20967# configure, is in config.log if it exists. 20968 20969debug=false 20970ac_cs_recheck=false 20971ac_cs_silent=false 20972SHELL=\${CONFIG_SHELL-$SHELL} 20973_ACEOF 20974 20975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20976## --------------------- ## 20977## M4sh Initialization. ## 20978## --------------------- ## 20979 20980# Be more Bourne compatible 20981DUALCASE=1; export DUALCASE # for MKS sh 20982if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20983 emulate sh 20984 NULLCMD=: 20985 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20986 # is contrary to our usage. Disable this feature. 20987 alias -g '${1+"$@"}'='"$@"' 20988 setopt NO_GLOB_SUBST 20989else 20990 case `(set -o) 2>/dev/null` in 20991 *posix*) set -o posix ;; 20992esac 20993 20994fi 20995 20996 20997 20998 20999# PATH needs CR 21000# Avoid depending upon Character Ranges. 21001as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21002as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21003as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21004as_cr_digits='0123456789' 21005as_cr_alnum=$as_cr_Letters$as_cr_digits 21006 21007as_nl=' 21008' 21009export as_nl 21010# Printing a long string crashes Solaris 7 /usr/bin/printf. 21011as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21012as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21013as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21014if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21015 as_echo='printf %s\n' 21016 as_echo_n='printf %s' 21017else 21018 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21019 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21020 as_echo_n='/usr/ucb/echo -n' 21021 else 21022 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21023 as_echo_n_body='eval 21024 arg=$1; 21025 case $arg in 21026 *"$as_nl"*) 21027 expr "X$arg" : "X\\(.*\\)$as_nl"; 21028 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21029 esac; 21030 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21031 ' 21032 export as_echo_n_body 21033 as_echo_n='sh -c $as_echo_n_body as_echo' 21034 fi 21035 export as_echo_body 21036 as_echo='sh -c $as_echo_body as_echo' 21037fi 21038 21039# The user is always right. 21040if test "${PATH_SEPARATOR+set}" != set; then 21041 PATH_SEPARATOR=: 21042 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21043 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21044 PATH_SEPARATOR=';' 21045 } 21046fi 21047 21048# Support unset when possible. 21049if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21050 as_unset=unset 21051else 21052 as_unset=false 21053fi 21054 21055 21056# IFS 21057# We need space, tab and new line, in precisely that order. Quoting is 21058# there to prevent editors from complaining about space-tab. 21059# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21060# splitting by setting IFS to empty value.) 21061IFS=" "" $as_nl" 21062 21063# Find who we are. Look in the path if we contain no directory separator. 21064case $0 in 21065 *[\\/]* ) as_myself=$0 ;; 21066 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21067for as_dir in $PATH 21068do 21069 IFS=$as_save_IFS 21070 test -z "$as_dir" && as_dir=. 21071 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21072done 21073IFS=$as_save_IFS 21074 21075 ;; 21076esac 21077# We did not find ourselves, most probably we were run as `sh COMMAND' 21078# in which case we are not to be found in the path. 21079if test "x$as_myself" = x; then 21080 as_myself=$0 21081fi 21082if test ! -f "$as_myself"; then 21083 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21084 { (exit 1); exit 1; } 21085fi 21086 21087# Work around bugs in pre-3.0 UWIN ksh. 21088for as_var in ENV MAIL MAILPATH 21089do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21090done 21091PS1='$ ' 21092PS2='> ' 21093PS4='+ ' 21094 21095# NLS nuisances. 21096LC_ALL=C 21097export LC_ALL 21098LANGUAGE=C 21099export LANGUAGE 21100 21101# Required to use basename. 21102if expr a : '\(a\)' >/dev/null 2>&1 && 21103 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21104 as_expr=expr 21105else 21106 as_expr=false 21107fi 21108 21109if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21110 as_basename=basename 21111else 21112 as_basename=false 21113fi 21114 21115 21116# Name of the executable. 21117as_me=`$as_basename -- "$0" || 21118$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21119 X"$0" : 'X\(//\)$' \| \ 21120 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21121$as_echo X/"$0" | 21122 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21123 s//\1/ 21124 q 21125 } 21126 /^X\/\(\/\/\)$/{ 21127 s//\1/ 21128 q 21129 } 21130 /^X\/\(\/\).*/{ 21131 s//\1/ 21132 q 21133 } 21134 s/.*/./; q'` 21135 21136# CDPATH. 21137$as_unset CDPATH 21138 21139 21140 21141 as_lineno_1=$LINENO 21142 as_lineno_2=$LINENO 21143 test "x$as_lineno_1" != "x$as_lineno_2" && 21144 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21145 21146 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21147 # uniformly replaced by the line number. The first 'sed' inserts a 21148 # line-number line after each line using $LINENO; the second 'sed' 21149 # does the real work. The second script uses 'N' to pair each 21150 # line-number line with the line containing $LINENO, and appends 21151 # trailing '-' during substitution so that $LINENO is not a special 21152 # case at line end. 21153 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21154 # scripts with optimization help from Paolo Bonzini. Blame Lee 21155 # E. McMahon (1931-1989) for sed's syntax. :-) 21156 sed -n ' 21157 p 21158 /[$]LINENO/= 21159 ' <$as_myself | 21160 sed ' 21161 s/[$]LINENO.*/&-/ 21162 t lineno 21163 b 21164 :lineno 21165 N 21166 :loop 21167 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21168 t loop 21169 s/-\n.*// 21170 ' >$as_me.lineno && 21171 chmod +x "$as_me.lineno" || 21172 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21173 { (exit 1); exit 1; }; } 21174 21175 # Don't try to exec as it changes $[0], causing all sort of problems 21176 # (the dirname of $[0] is not the place where we might find the 21177 # original and so on. Autoconf is especially sensitive to this). 21178 . "./$as_me.lineno" 21179 # Exit status is that of the last command. 21180 exit 21181} 21182 21183 21184if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21185 as_dirname=dirname 21186else 21187 as_dirname=false 21188fi 21189 21190ECHO_C= ECHO_N= ECHO_T= 21191case `echo -n x` in 21192-n*) 21193 case `echo 'x\c'` in 21194 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21195 *) ECHO_C='\c';; 21196 esac;; 21197*) 21198 ECHO_N='-n';; 21199esac 21200if expr a : '\(a\)' >/dev/null 2>&1 && 21201 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21202 as_expr=expr 21203else 21204 as_expr=false 21205fi 21206 21207rm -f conf$$ conf$$.exe conf$$.file 21208if test -d conf$$.dir; then 21209 rm -f conf$$.dir/conf$$.file 21210else 21211 rm -f conf$$.dir 21212 mkdir conf$$.dir 2>/dev/null 21213fi 21214if (echo >conf$$.file) 2>/dev/null; then 21215 if ln -s conf$$.file conf$$ 2>/dev/null; then 21216 as_ln_s='ln -s' 21217 # ... but there are two gotchas: 21218 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21219 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21220 # In both cases, we have to default to `cp -p'. 21221 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21222 as_ln_s='cp -p' 21223 elif ln conf$$.file conf$$ 2>/dev/null; then 21224 as_ln_s=ln 21225 else 21226 as_ln_s='cp -p' 21227 fi 21228else 21229 as_ln_s='cp -p' 21230fi 21231rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21232rmdir conf$$.dir 2>/dev/null 21233 21234if mkdir -p . 2>/dev/null; then 21235 as_mkdir_p=: 21236else 21237 test -d ./-p && rmdir ./-p 21238 as_mkdir_p=false 21239fi 21240 21241if test -x / >/dev/null 2>&1; then 21242 as_test_x='test -x' 21243else 21244 if ls -dL / >/dev/null 2>&1; then 21245 as_ls_L_option=L 21246 else 21247 as_ls_L_option= 21248 fi 21249 as_test_x=' 21250 eval sh -c '\'' 21251 if test -d "$1"; then 21252 test -d "$1/."; 21253 else 21254 case $1 in 21255 -*)set "./$1";; 21256 esac; 21257 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21258 ???[sx]*):;;*)false;;esac;fi 21259 '\'' sh 21260 ' 21261fi 21262as_executable_p=$as_test_x 21263 21264# Sed expression to map a string onto a valid CPP name. 21265as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21266 21267# Sed expression to map a string onto a valid variable name. 21268as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21269 21270 21271exec 6>&1 21272 21273# Save the log message, to keep $[0] and so on meaningful, and to 21274# report actual input values of CONFIG_FILES etc. instead of their 21275# values after options handling. 21276ac_log=" 21277This file was extended by xf86-input-ws $as_me 1.3.0, which was 21278generated by GNU Autoconf 2.62. Invocation command line was 21279 21280 CONFIG_FILES = $CONFIG_FILES 21281 CONFIG_HEADERS = $CONFIG_HEADERS 21282 CONFIG_LINKS = $CONFIG_LINKS 21283 CONFIG_COMMANDS = $CONFIG_COMMANDS 21284 $ $0 $@ 21285 21286on `(hostname || uname -n) 2>/dev/null | sed 1q` 21287" 21288 21289_ACEOF 21290 21291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21292# Files that config.status was made for. 21293config_files="$ac_config_files" 21294config_headers="$ac_config_headers" 21295config_commands="$ac_config_commands" 21296 21297_ACEOF 21298 21299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21300ac_cs_usage="\ 21301\`$as_me' instantiates files from templates according to the 21302current configuration. 21303 21304Usage: $0 [OPTIONS] [FILE]... 21305 21306 -h, --help print this help, then exit 21307 -V, --version print version number and configuration settings, then exit 21308 -q, --quiet do not print progress messages 21309 -d, --debug don't remove temporary files 21310 --recheck update $as_me by reconfiguring in the same conditions 21311 --file=FILE[:TEMPLATE] 21312 instantiate the configuration file FILE 21313 --header=FILE[:TEMPLATE] 21314 instantiate the configuration header FILE 21315 21316Configuration files: 21317$config_files 21318 21319Configuration headers: 21320$config_headers 21321 21322Configuration commands: 21323$config_commands 21324 21325Report bugs to <bug-autoconf@gnu.org>." 21326 21327_ACEOF 21328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21329ac_cs_version="\\ 21330xf86-input-ws config.status 1.3.0 21331configured by $0, generated by GNU Autoconf 2.62, 21332 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21333 21334Copyright (C) 2008 Free Software Foundation, Inc. 21335This config.status script is free software; the Free Software Foundation 21336gives unlimited permission to copy, distribute and modify it." 21337 21338ac_pwd='$ac_pwd' 21339srcdir='$srcdir' 21340INSTALL='$INSTALL' 21341AWK='$AWK' 21342test -n "\$AWK" || AWK=awk 21343_ACEOF 21344 21345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21346# The default lists apply if the user does not specify any file. 21347ac_need_defaults=: 21348while test $# != 0 21349do 21350 case $1 in 21351 --*=*) 21352 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21353 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21354 ac_shift=: 21355 ;; 21356 *) 21357 ac_option=$1 21358 ac_optarg=$2 21359 ac_shift=shift 21360 ;; 21361 esac 21362 21363 case $ac_option in 21364 # Handling of the options. 21365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21366 ac_cs_recheck=: ;; 21367 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21368 $as_echo "$ac_cs_version"; exit ;; 21369 --debug | --debu | --deb | --de | --d | -d ) 21370 debug=: ;; 21371 --file | --fil | --fi | --f ) 21372 $ac_shift 21373 case $ac_optarg in 21374 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21375 esac 21376 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 21377 ac_need_defaults=false;; 21378 --header | --heade | --head | --hea ) 21379 $ac_shift 21380 case $ac_optarg in 21381 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21382 esac 21383 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 21384 ac_need_defaults=false;; 21385 --he | --h) 21386 # Conflict between --help and --header 21387 { $as_echo "$as_me: error: ambiguous option: $1 21388Try \`$0 --help' for more information." >&2 21389 { (exit 1); exit 1; }; };; 21390 --help | --hel | -h ) 21391 $as_echo "$ac_cs_usage"; exit ;; 21392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21393 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21394 ac_cs_silent=: ;; 21395 21396 # This is an error. 21397 -*) { $as_echo "$as_me: error: unrecognized option: $1 21398Try \`$0 --help' for more information." >&2 21399 { (exit 1); exit 1; }; } ;; 21400 21401 *) ac_config_targets="$ac_config_targets $1" 21402 ac_need_defaults=false ;; 21403 21404 esac 21405 shift 21406done 21407 21408ac_configure_extra_args= 21409 21410if $ac_cs_silent; then 21411 exec 6>/dev/null 21412 ac_configure_extra_args="$ac_configure_extra_args --silent" 21413fi 21414 21415_ACEOF 21416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21417if \$ac_cs_recheck; then 21418 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21419 shift 21420 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21421 CONFIG_SHELL='$SHELL' 21422 export CONFIG_SHELL 21423 exec "\$@" 21424fi 21425 21426_ACEOF 21427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21428exec 5>>config.log 21429{ 21430 echo 21431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21432## Running $as_me. ## 21433_ASBOX 21434 $as_echo "$ac_log" 21435} >&5 21436 21437_ACEOF 21438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21439# 21440# INIT-COMMANDS 21441# 21442AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21443 21444_ACEOF 21445 21446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21447 21448# Handling of arguments. 21449for ac_config_target in $ac_config_targets 21450do 21451 case $ac_config_target in 21452 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21453 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21454 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21455 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21456 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21457 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 21458 21459 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21460$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21461 { (exit 1); exit 1; }; };; 21462 esac 21463done 21464 21465 21466# If the user did not use the arguments to specify the items to instantiate, 21467# then the envvar interface is used. Set only those that are not. 21468# We use the long form for the default assignment because of an extremely 21469# bizarre bug on SunOS 4.1.3. 21470if $ac_need_defaults; then 21471 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21472 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21473 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21474fi 21475 21476# Have a temporary directory for convenience. Make it in the build tree 21477# simply because there is no reason against having it here, and in addition, 21478# creating and moving files from /tmp can sometimes cause problems. 21479# Hook for its removal unless debugging. 21480# Note that there is a small window in which the directory will not be cleaned: 21481# after its creation but before its name has been assigned to `$tmp'. 21482$debug || 21483{ 21484 tmp= 21485 trap 'exit_status=$? 21486 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21487' 0 21488 trap '{ (exit 1); exit 1; }' 1 2 13 15 21489} 21490# Create a (secure) tmp directory for tmp files. 21491 21492{ 21493 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21494 test -n "$tmp" && test -d "$tmp" 21495} || 21496{ 21497 tmp=./conf$$-$RANDOM 21498 (umask 077 && mkdir "$tmp") 21499} || 21500{ 21501 $as_echo "$as_me: cannot create a temporary directory in ." >&2 21502 { (exit 1); exit 1; } 21503} 21504 21505# Set up the scripts for CONFIG_FILES section. 21506# No need to generate them if there are no CONFIG_FILES. 21507# This happens for instance with `./config.status config.h'. 21508if test -n "$CONFIG_FILES"; then 21509 21510 21511ac_cr=' 21512' 21513ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21514if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21515 ac_cs_awk_cr='\\r' 21516else 21517 ac_cs_awk_cr=$ac_cr 21518fi 21519 21520echo 'BEGIN {' >"$tmp/subs1.awk" && 21521_ACEOF 21522 21523 21524{ 21525 echo "cat >conf$$subs.awk <<_ACEOF" && 21526 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21527 echo "_ACEOF" 21528} >conf$$subs.sh || 21529 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21530$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21531 { (exit 1); exit 1; }; } 21532ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 21533ac_delim='%!_!# ' 21534for ac_last_try in false false false false false :; do 21535 . ./conf$$subs.sh || 21536 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21537$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21538 { (exit 1); exit 1; }; } 21539 21540 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then 21541 break 21542 elif $ac_last_try; then 21543 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21544$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21545 { (exit 1); exit 1; }; } 21546 else 21547 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21548 fi 21549done 21550rm -f conf$$subs.sh 21551 21552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21553cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 21554_ACEOF 21555sed -n ' 21556h 21557s/^/S["/; s/!.*/"]=/ 21558p 21559g 21560s/^[^!]*!// 21561:repl 21562t repl 21563s/'"$ac_delim"'$// 21564t delim 21565:nl 21566h 21567s/\(.\{148\}\).*/\1/ 21568t more1 21569s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21570p 21571n 21572b repl 21573:more1 21574s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21575p 21576g 21577s/.\{148\}// 21578t nl 21579:delim 21580h 21581s/\(.\{148\}\).*/\1/ 21582t more2 21583s/["\\]/\\&/g; s/^/"/; s/$/"/ 21584p 21585b 21586:more2 21587s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21588p 21589g 21590s/.\{148\}// 21591t delim 21592' <conf$$subs.awk | sed ' 21593/^[^""]/{ 21594 N 21595 s/\n// 21596} 21597' >>$CONFIG_STATUS || ac_write_fail=1 21598rm -f conf$$subs.awk 21599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21600_ACAWK 21601cat >>"\$tmp/subs1.awk" <<_ACAWK && 21602 for (key in S) S_is_set[key] = 1 21603 FS = "" 21604 21605} 21606{ 21607 line = $ 0 21608 nfields = split(line, field, "@") 21609 substed = 0 21610 len = length(field[1]) 21611 for (i = 2; i < nfields; i++) { 21612 key = field[i] 21613 keylen = length(key) 21614 if (S_is_set[key]) { 21615 value = S[key] 21616 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21617 len += length(value) + length(field[++i]) 21618 substed = 1 21619 } else 21620 len += 1 + keylen 21621 } 21622 21623 print line 21624} 21625 21626_ACAWK 21627_ACEOF 21628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21629if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21630 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21631else 21632 cat 21633fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 21634 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 21635$as_echo "$as_me: error: could not setup config files machinery" >&2;} 21636 { (exit 1); exit 1; }; } 21637_ACEOF 21638 21639# VPATH may cause trouble with some makes, so we remove $(srcdir), 21640# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21641# trailing colons and then remove the whole line if VPATH becomes empty 21642# (actually we leave an empty line to preserve line numbers). 21643if test "x$srcdir" = x.; then 21644 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21645s/:*\$(srcdir):*/:/ 21646s/:*\${srcdir}:*/:/ 21647s/:*@srcdir@:*/:/ 21648s/^\([^=]*=[ ]*\):*/\1/ 21649s/:*$// 21650s/^[^=]*=[ ]*$// 21651}' 21652fi 21653 21654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21655fi # test -n "$CONFIG_FILES" 21656 21657# Set up the scripts for CONFIG_HEADERS section. 21658# No need to generate them if there are no CONFIG_HEADERS. 21659# This happens for instance with `./config.status Makefile'. 21660if test -n "$CONFIG_HEADERS"; then 21661cat >"$tmp/defines.awk" <<\_ACAWK || 21662BEGIN { 21663_ACEOF 21664 21665# Transform confdefs.h into an awk script `defines.awk', embedded as 21666# here-document in config.status, that substitutes the proper values into 21667# config.h.in to produce config.h. 21668 21669# Create a delimiter string that does not exist in confdefs.h, to ease 21670# handling of long lines. 21671ac_delim='%!_!# ' 21672for ac_last_try in false false :; do 21673 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 21674 if test -z "$ac_t"; then 21675 break 21676 elif $ac_last_try; then 21677 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 21678$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 21679 { (exit 1); exit 1; }; } 21680 else 21681 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21682 fi 21683done 21684 21685# For the awk script, D is an array of macro values keyed by name, 21686# likewise P contains macro parameters if any. Preserve backslash 21687# newline sequences. 21688 21689ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21690sed -n ' 21691s/.\{148\}/&'"$ac_delim"'/g 21692t rset 21693:rset 21694s/^[ ]*#[ ]*define[ ][ ]*/ / 21695t def 21696d 21697:def 21698s/\\$// 21699t bsnl 21700s/["\\]/\\&/g 21701s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21702D["\1"]=" \3"/p 21703s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21704d 21705:bsnl 21706s/["\\]/\\&/g 21707s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21708D["\1"]=" \3\\\\\\n"\\/p 21709t cont 21710s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21711t cont 21712d 21713:cont 21714n 21715s/.\{148\}/&'"$ac_delim"'/g 21716t clear 21717:clear 21718s/\\$// 21719t bsnlc 21720s/["\\]/\\&/g; s/^/"/; s/$/"/p 21721d 21722:bsnlc 21723s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21724b cont 21725' <confdefs.h | sed ' 21726s/'"$ac_delim"'/"\\\ 21727"/g' >>$CONFIG_STATUS || ac_write_fail=1 21728 21729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21730 for (key in D) D_is_set[key] = 1 21731 FS = "" 21732} 21733/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21734 line = \$ 0 21735 split(line, arg, " ") 21736 if (arg[1] == "#") { 21737 defundef = arg[2] 21738 mac1 = arg[3] 21739 } else { 21740 defundef = substr(arg[1], 2) 21741 mac1 = arg[2] 21742 } 21743 split(mac1, mac2, "(") #) 21744 macro = mac2[1] 21745 if (D_is_set[macro]) { 21746 # Preserve the white space surrounding the "#". 21747 prefix = substr(line, 1, index(line, defundef) - 1) 21748 print prefix "define", macro P[macro] D[macro] 21749 next 21750 } else { 21751 # Replace #undef with comments. This is necessary, for example, 21752 # in the case of _POSIX_SOURCE, which is predefined and required 21753 # on some systems where configure will not decide to define it. 21754 if (defundef == "undef") { 21755 print "/*", line, "*/" 21756 next 21757 } 21758 } 21759} 21760{ print } 21761_ACAWK 21762_ACEOF 21763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21764 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 21765$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 21766 { (exit 1); exit 1; }; } 21767fi # test -n "$CONFIG_HEADERS" 21768 21769 21770eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21771shift 21772for ac_tag 21773do 21774 case $ac_tag in 21775 :[FHLC]) ac_mode=$ac_tag; continue;; 21776 esac 21777 case $ac_mode$ac_tag in 21778 :[FHL]*:*);; 21779 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21780$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21781 { (exit 1); exit 1; }; };; 21782 :[FH]-) ac_tag=-:-;; 21783 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21784 esac 21785 ac_save_IFS=$IFS 21786 IFS=: 21787 set x $ac_tag 21788 IFS=$ac_save_IFS 21789 shift 21790 ac_file=$1 21791 shift 21792 21793 case $ac_mode in 21794 :L) ac_source=$1;; 21795 :[FH]) 21796 ac_file_inputs= 21797 for ac_f 21798 do 21799 case $ac_f in 21800 -) ac_f="$tmp/stdin";; 21801 *) # Look for the file first in the build tree, then in the source tree 21802 # (if the path is not absolute). The absolute path cannot be DOS-style, 21803 # because $ac_f cannot contain `:'. 21804 test -f "$ac_f" || 21805 case $ac_f in 21806 [\\/$]*) false;; 21807 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21808 esac || 21809 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21810$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21811 { (exit 1); exit 1; }; };; 21812 esac 21813 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21814 ac_file_inputs="$ac_file_inputs '$ac_f'" 21815 done 21816 21817 # Let's still pretend it is `configure' which instantiates (i.e., don't 21818 # use $as_me), people would be surprised to read: 21819 # /* config.h. Generated by config.status. */ 21820 configure_input='Generated from '` 21821 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21822 `' by configure.' 21823 if test x"$ac_file" != x-; then 21824 configure_input="$ac_file. $configure_input" 21825 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 21826$as_echo "$as_me: creating $ac_file" >&6;} 21827 fi 21828 # Neutralize special characters interpreted by sed in replacement strings. 21829 case $configure_input in #( 21830 *\&* | *\|* | *\\* ) 21831 ac_sed_conf_input=`$as_echo "$configure_input" | 21832 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21833 *) ac_sed_conf_input=$configure_input;; 21834 esac 21835 21836 case $ac_tag in 21837 *:-:* | *:-) cat >"$tmp/stdin" \ 21838 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 21839$as_echo "$as_me: error: could not create $ac_file" >&2;} 21840 { (exit 1); exit 1; }; } ;; 21841 esac 21842 ;; 21843 esac 21844 21845 ac_dir=`$as_dirname -- "$ac_file" || 21846$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21847 X"$ac_file" : 'X\(//\)[^/]' \| \ 21848 X"$ac_file" : 'X\(//\)$' \| \ 21849 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21850$as_echo X"$ac_file" | 21851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21852 s//\1/ 21853 q 21854 } 21855 /^X\(\/\/\)[^/].*/{ 21856 s//\1/ 21857 q 21858 } 21859 /^X\(\/\/\)$/{ 21860 s//\1/ 21861 q 21862 } 21863 /^X\(\/\).*/{ 21864 s//\1/ 21865 q 21866 } 21867 s/.*/./; q'` 21868 { as_dir="$ac_dir" 21869 case $as_dir in #( 21870 -*) as_dir=./$as_dir;; 21871 esac 21872 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21873 as_dirs= 21874 while :; do 21875 case $as_dir in #( 21876 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21877 *) as_qdir=$as_dir;; 21878 esac 21879 as_dirs="'$as_qdir' $as_dirs" 21880 as_dir=`$as_dirname -- "$as_dir" || 21881$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21882 X"$as_dir" : 'X\(//\)[^/]' \| \ 21883 X"$as_dir" : 'X\(//\)$' \| \ 21884 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21885$as_echo X"$as_dir" | 21886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21887 s//\1/ 21888 q 21889 } 21890 /^X\(\/\/\)[^/].*/{ 21891 s//\1/ 21892 q 21893 } 21894 /^X\(\/\/\)$/{ 21895 s//\1/ 21896 q 21897 } 21898 /^X\(\/\).*/{ 21899 s//\1/ 21900 q 21901 } 21902 s/.*/./; q'` 21903 test -d "$as_dir" && break 21904 done 21905 test -z "$as_dirs" || eval "mkdir $as_dirs" 21906 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21907$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 21908 { (exit 1); exit 1; }; }; } 21909 ac_builddir=. 21910 21911case "$ac_dir" in 21912.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21913*) 21914 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21915 # A ".." for each directory in $ac_dir_suffix. 21916 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21917 case $ac_top_builddir_sub in 21918 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21919 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21920 esac ;; 21921esac 21922ac_abs_top_builddir=$ac_pwd 21923ac_abs_builddir=$ac_pwd$ac_dir_suffix 21924# for backward compatibility: 21925ac_top_builddir=$ac_top_build_prefix 21926 21927case $srcdir in 21928 .) # We are building in place. 21929 ac_srcdir=. 21930 ac_top_srcdir=$ac_top_builddir_sub 21931 ac_abs_top_srcdir=$ac_pwd ;; 21932 [\\/]* | ?:[\\/]* ) # Absolute name. 21933 ac_srcdir=$srcdir$ac_dir_suffix; 21934 ac_top_srcdir=$srcdir 21935 ac_abs_top_srcdir=$srcdir ;; 21936 *) # Relative name. 21937 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21938 ac_top_srcdir=$ac_top_build_prefix$srcdir 21939 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21940esac 21941ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21942 21943 21944 case $ac_mode in 21945 :F) 21946 # 21947 # CONFIG_FILE 21948 # 21949 21950 case $INSTALL in 21951 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21952 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21953 esac 21954_ACEOF 21955 21956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21957# If the template does not know about datarootdir, expand it. 21958# FIXME: This hack should be removed a few years after 2.60. 21959ac_datarootdir_hack=; ac_datarootdir_seen= 21960 21961ac_sed_dataroot=' 21962/datarootdir/ { 21963 p 21964 q 21965} 21966/@datadir@/p 21967/@docdir@/p 21968/@infodir@/p 21969/@localedir@/p 21970/@mandir@/p 21971' 21972case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21973*datarootdir*) ac_datarootdir_seen=yes;; 21974*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21975 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21976$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21977_ACEOF 21978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21979 ac_datarootdir_hack=' 21980 s&@datadir@&$datadir&g 21981 s&@docdir@&$docdir&g 21982 s&@infodir@&$infodir&g 21983 s&@localedir@&$localedir&g 21984 s&@mandir@&$mandir&g 21985 s&\\\${datarootdir}&$datarootdir&g' ;; 21986esac 21987_ACEOF 21988 21989# Neutralize VPATH when `$srcdir' = `.'. 21990# Shell code in configure.ac might set extrasub. 21991# FIXME: do we really want to maintain this feature? 21992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21993ac_sed_extra="$ac_vpsub 21994$extrasub 21995_ACEOF 21996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21997:t 21998/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21999s|@configure_input@|$ac_sed_conf_input|;t t 22000s&@top_builddir@&$ac_top_builddir_sub&;t t 22001s&@top_build_prefix@&$ac_top_build_prefix&;t t 22002s&@srcdir@&$ac_srcdir&;t t 22003s&@abs_srcdir@&$ac_abs_srcdir&;t t 22004s&@top_srcdir@&$ac_top_srcdir&;t t 22005s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22006s&@builddir@&$ac_builddir&;t t 22007s&@abs_builddir@&$ac_abs_builddir&;t t 22008s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22009s&@INSTALL@&$ac_INSTALL&;t t 22010$ac_datarootdir_hack 22011" 22012eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 22013 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22014$as_echo "$as_me: error: could not create $ac_file" >&2;} 22015 { (exit 1); exit 1; }; } 22016 22017test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22018 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22019 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22020 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22021which seems to be undefined. Please make sure it is defined." >&5 22022$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22023which seems to be undefined. Please make sure it is defined." >&2;} 22024 22025 rm -f "$tmp/stdin" 22026 case $ac_file in 22027 -) cat "$tmp/out" && rm -f "$tmp/out";; 22028 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 22029 esac \ 22030 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22031$as_echo "$as_me: error: could not create $ac_file" >&2;} 22032 { (exit 1); exit 1; }; } 22033 ;; 22034 :H) 22035 # 22036 # CONFIG_HEADER 22037 # 22038 if test x"$ac_file" != x-; then 22039 { 22040 $as_echo "/* $configure_input */" \ 22041 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 22042 } >"$tmp/config.h" \ 22043 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22044$as_echo "$as_me: error: could not create $ac_file" >&2;} 22045 { (exit 1); exit 1; }; } 22046 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 22047 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22048$as_echo "$as_me: $ac_file is unchanged" >&6;} 22049 else 22050 rm -f "$ac_file" 22051 mv "$tmp/config.h" "$ac_file" \ 22052 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 22053$as_echo "$as_me: error: could not create $ac_file" >&2;} 22054 { (exit 1); exit 1; }; } 22055 fi 22056 else 22057 $as_echo "/* $configure_input */" \ 22058 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 22059 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 22060$as_echo "$as_me: error: could not create -" >&2;} 22061 { (exit 1); exit 1; }; } 22062 fi 22063# Compute "$ac_file"'s index in $config_headers. 22064_am_stamp_count=1 22065for _am_header in $config_headers :; do 22066 case $_am_header in 22067 "$ac_file" | "$ac_file":* ) 22068 break ;; 22069 * ) 22070 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22071 esac 22072done 22073echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" || 22074$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22075 X"$ac_file" : 'X\(//\)[^/]' \| \ 22076 X"$ac_file" : 'X\(//\)$' \| \ 22077 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22078$as_echo X"$ac_file" | 22079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22080 s//\1/ 22081 q 22082 } 22083 /^X\(\/\/\)[^/].*/{ 22084 s//\1/ 22085 q 22086 } 22087 /^X\(\/\/\)$/{ 22088 s//\1/ 22089 q 22090 } 22091 /^X\(\/\).*/{ 22092 s//\1/ 22093 q 22094 } 22095 s/.*/./; q'`/stamp-h$_am_stamp_count 22096 ;; 22097 22098 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 22099$as_echo "$as_me: executing $ac_file commands" >&6;} 22100 ;; 22101 esac 22102 22103 22104 case $ac_file$ac_mode in 22105 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22106 # Strip MF so we end up with the name of the file. 22107 mf=`echo "$mf" | sed -e 's/:.*$//'` 22108 # Check whether this is an Automake generated Makefile or not. 22109 # We used to match only the files named `Makefile.in', but 22110 # some people rename them; so instead we look at the file content. 22111 # Grep'ing the first line is not enough: some people post-process 22112 # each Makefile.in and add a new line on top of each file to say so. 22113 # So let's grep whole file. 22114 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 22115 dirpart=`$as_dirname -- "$mf" || 22116$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22117 X"$mf" : 'X\(//\)[^/]' \| \ 22118 X"$mf" : 'X\(//\)$' \| \ 22119 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22120$as_echo X"$mf" | 22121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22122 s//\1/ 22123 q 22124 } 22125 /^X\(\/\/\)[^/].*/{ 22126 s//\1/ 22127 q 22128 } 22129 /^X\(\/\/\)$/{ 22130 s//\1/ 22131 q 22132 } 22133 /^X\(\/\).*/{ 22134 s//\1/ 22135 q 22136 } 22137 s/.*/./; q'` 22138 else 22139 continue 22140 fi 22141 # Extract the definition of DEPDIR, am__include, and am__quote 22142 # from the Makefile without running `make'. 22143 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22144 test -z "$DEPDIR" && continue 22145 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22146 test -z "am__include" && continue 22147 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22148 # When using ansi2knr, U may be empty or an underscore; expand it 22149 U=`sed -n 's/^U = //p' < "$mf"` 22150 # Find all dependency output files, they are included files with 22151 # $(DEPDIR) in their names. We invoke sed twice because it is the 22152 # simplest approach to changing $(DEPDIR) to its actual value in the 22153 # expansion. 22154 for file in `sed -n " 22155 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22156 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22157 # Make sure the directory exists. 22158 test -f "$dirpart/$file" && continue 22159 fdir=`$as_dirname -- "$file" || 22160$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22161 X"$file" : 'X\(//\)[^/]' \| \ 22162 X"$file" : 'X\(//\)$' \| \ 22163 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22164$as_echo X"$file" | 22165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22166 s//\1/ 22167 q 22168 } 22169 /^X\(\/\/\)[^/].*/{ 22170 s//\1/ 22171 q 22172 } 22173 /^X\(\/\/\)$/{ 22174 s//\1/ 22175 q 22176 } 22177 /^X\(\/\).*/{ 22178 s//\1/ 22179 q 22180 } 22181 s/.*/./; q'` 22182 { as_dir=$dirpart/$fdir 22183 case $as_dir in #( 22184 -*) as_dir=./$as_dir;; 22185 esac 22186 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22187 as_dirs= 22188 while :; do 22189 case $as_dir in #( 22190 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22191 *) as_qdir=$as_dir;; 22192 esac 22193 as_dirs="'$as_qdir' $as_dirs" 22194 as_dir=`$as_dirname -- "$as_dir" || 22195$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22196 X"$as_dir" : 'X\(//\)[^/]' \| \ 22197 X"$as_dir" : 'X\(//\)$' \| \ 22198 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22199$as_echo X"$as_dir" | 22200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22201 s//\1/ 22202 q 22203 } 22204 /^X\(\/\/\)[^/].*/{ 22205 s//\1/ 22206 q 22207 } 22208 /^X\(\/\/\)$/{ 22209 s//\1/ 22210 q 22211 } 22212 /^X\(\/\).*/{ 22213 s//\1/ 22214 q 22215 } 22216 s/.*/./; q'` 22217 test -d "$as_dir" && break 22218 done 22219 test -z "$as_dirs" || eval "mkdir $as_dirs" 22220 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22221$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 22222 { (exit 1); exit 1; }; }; } 22223 # echo "creating $dirpart/$file" 22224 echo '# dummy' > "$dirpart/$file" 22225 done 22226done 22227 ;; 22228 22229 esac 22230done # for ac_tag 22231 22232 22233{ (exit 0); exit 0; } 22234_ACEOF 22235chmod +x $CONFIG_STATUS 22236ac_clean_files=$ac_clean_files_save 22237 22238test $ac_write_fail = 0 || 22239 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 22240$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 22241 { (exit 1); exit 1; }; } 22242 22243 22244# configure is writing to config.log, and then calls config.status. 22245# config.status does its own redirection, appending to config.log. 22246# Unfortunately, on DOS this fails, as config.log is still kept open 22247# by configure, so config.status won't be able to write to it; its 22248# output is simply discarded. So we exec the FD to /dev/null, 22249# effectively closing config.log, so it can be properly (re)opened and 22250# appended to by config.status. When coming back to configure, we 22251# need to make the FD available again. 22252if test "$no_create" != yes; then 22253 ac_cs_success=: 22254 ac_config_status_args= 22255 test "$silent" = yes && 22256 ac_config_status_args="$ac_config_status_args --quiet" 22257 exec 5>/dev/null 22258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22259 exec 5>>config.log 22260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22261 # would make configure fail if this is the last instruction. 22262 $ac_cs_success || { (exit 1); exit 1; } 22263fi 22264if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22265 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 22266$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 22267fi 22268 22269