configure revision 2c393a42
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$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 # Zsh 3.x and 4.x performs 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(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 553# Check that we are running under the correct shell. 554SHELL=${CONFIG_SHELL-/bin/sh} 555 556case X$ECHO in 557X*--fallback-echo) 558 # Remove one level of quotation (which was required for Make). 559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 560 ;; 561esac 562 563echo=${ECHO-echo} 564if test "X$1" = X--no-reexec; then 565 # Discard the --no-reexec flag, and continue. 566 shift 567elif test "X$1" = X--fallback-echo; then 568 # Avoid inline document here, it may be left over 569 : 570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 571 # Yippee, $echo works! 572 : 573else 574 # Restart under the correct shell. 575 exec $SHELL "$0" --no-reexec ${1+"$@"} 576fi 577 578if test "X$1" = X--fallback-echo; then 579 # used as fallback echo 580 shift 581 cat <<EOF 582$* 583EOF 584 exit 0 585fi 586 587# The HP-UX ksh and POSIX shell print the target directory to stdout 588# if CDPATH is set. 589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 590 591if test -z "$ECHO"; then 592if test "X${echo_test_string+set}" != Xset; then 593# find a string as large as possible, as long as the shell can cope with it 594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 596 if (echo_test_string=`eval $cmd`) 2>/dev/null && 597 echo_test_string=`eval $cmd` && 598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 599 then 600 break 601 fi 602 done 603fi 604 605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 : 609else 610 # The Solaris, AIX, and Digital Unix default echo programs unquote 611 # backslashes. This makes it impossible to quote backslashes using 612 # echo "$something" | sed 's/\\/\\\\/g' 613 # 614 # So, first we look for a working echo in the user's PATH. 615 616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 617 for dir in $PATH /usr/ucb; do 618 IFS="$lt_save_ifs" 619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 622 test "X$echo_testing_string" = "X$echo_test_string"; then 623 echo="$dir/echo" 624 break 625 fi 626 done 627 IFS="$lt_save_ifs" 628 629 if test "X$echo" = Xecho; then 630 # We didn't find a better echo, so look for alternatives. 631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 # This shell has a builtin print -r that does the trick. 635 echo='print -r' 636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 637 test "X$CONFIG_SHELL" != X/bin/ksh; then 638 # If we have ksh, try running configure again with it. 639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 640 export ORIGINAL_CONFIG_SHELL 641 CONFIG_SHELL=/bin/ksh 642 export CONFIG_SHELL 643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 644 else 645 # Try using printf. 646 echo='printf %s\n' 647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 # Cool, printf works 651 : 652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 653 test "X$echo_testing_string" = 'X\t' && 654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 657 export CONFIG_SHELL 658 SHELL="$CONFIG_SHELL" 659 export SHELL 660 echo="$CONFIG_SHELL $0 --fallback-echo" 661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 662 test "X$echo_testing_string" = 'X\t' && 663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 664 test "X$echo_testing_string" = "X$echo_test_string"; then 665 echo="$CONFIG_SHELL $0 --fallback-echo" 666 else 667 # maybe with a smaller string... 668 prev=: 669 670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 672 then 673 break 674 fi 675 prev="$cmd" 676 done 677 678 if test "$prev" != 'sed 50q "$0"'; then 679 echo_test_string=`eval $prev` 680 export echo_test_string 681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 682 else 683 # Oops. We lost completely, so just stick with echo. 684 echo=echo 685 fi 686 fi 687 fi 688 fi 689fi 690fi 691 692# Copy echo and quote the copy suitably for passing to libtool from 693# the Makefile, instead of quoting the original, which is used later. 694ECHO=$echo 695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 697fi 698 699 700 701 702tagnames=${tagnames+${tagnames},}CXX 703 704tagnames=${tagnames+${tagnames},}F77 705 706exec 7<&0 </dev/null 6>&1 707 708# Name of the host. 709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 710# so uname gets run too. 711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 712 713# 714# Initializations. 715# 716ac_default_prefix=/usr/local 717ac_clean_files= 718ac_config_libobj_dir=. 719LIBOBJS= 720cross_compiling=no 721subdirs= 722MFLAGS= 723MAKEFLAGS= 724SHELL=${CONFIG_SHELL-/bin/sh} 725 726# Identity of this package. 727PACKAGE_NAME= 728PACKAGE_TARNAME= 729PACKAGE_VERSION= 730PACKAGE_STRING= 731PACKAGE_BUGREPORT= 732 733ac_unique_file="fonts.dtd" 734# Factoring default headers for most tests. 735ac_includes_default="\ 736#include <stdio.h> 737#ifdef HAVE_SYS_TYPES_H 738# include <sys/types.h> 739#endif 740#ifdef HAVE_SYS_STAT_H 741# include <sys/stat.h> 742#endif 743#ifdef STDC_HEADERS 744# include <stdlib.h> 745# include <stddef.h> 746#else 747# ifdef HAVE_STDLIB_H 748# include <stdlib.h> 749# endif 750#endif 751#ifdef HAVE_STRING_H 752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 753# include <memory.h> 754# endif 755# include <string.h> 756#endif 757#ifdef HAVE_STRINGS_H 758# include <strings.h> 759#endif 760#ifdef HAVE_INTTYPES_H 761# include <inttypes.h> 762#endif 763#ifdef HAVE_STDINT_H 764# include <stdint.h> 765#endif 766#ifdef HAVE_UNISTD_H 767# include <unistd.h> 768#endif" 769 770ac_subst_vars='SHELL 771PATH_SEPARATOR 772PACKAGE_NAME 773PACKAGE_TARNAME 774PACKAGE_VERSION 775PACKAGE_STRING 776PACKAGE_BUGREPORT 777exec_prefix 778prefix 779program_transform_name 780bindir 781sbindir 782libexecdir 783datarootdir 784datadir 785sysconfdir 786sharedstatedir 787localstatedir 788includedir 789oldincludedir 790docdir 791infodir 792htmldir 793dvidir 794pdfdir 795psdir 796libdir 797localedir 798mandir 799DEFS 800ECHO_C 801ECHO_N 802ECHO_T 803LIBS 804build_alias 805host_alias 806target_alias 807INSTALL_PROGRAM 808INSTALL_SCRIPT 809INSTALL_DATA 810CYGPATH_W 811PACKAGE 812VERSION 813ACLOCAL 814AUTOCONF 815AUTOMAKE 816AUTOHEADER 817MAKEINFO 818install_sh 819STRIP 820INSTALL_STRIP_PROGRAM 821mkdir_p 822AWK 823SET_MAKE 824am__leading_dot 825AMTAR 826am__tar 827am__untar 828MAINTAINER_MODE_TRUE 829MAINTAINER_MODE_FALSE 830MAINT 831LIBT_CURRENT 832LIBT_REVISION 833LIBT_VERSION_INFO 834LIBT_CURRENT_MINUS_AGE 835CC 836CFLAGS 837LDFLAGS 838CPPFLAGS 839ac_ct_CC 840EXEEXT 841OBJEXT 842DEPDIR 843am__include 844am__quote 845AMDEP_TRUE 846AMDEP_FALSE 847AMDEPBACKSLASH 848CCDEPMODE 849am__fastdepCC_TRUE 850am__fastdepCC_FALSE 851LN_S 852build 853build_cpu 854build_vendor 855build_os 856host 857host_cpu 858host_vendor 859host_os 860SED 861GREP 862EGREP 863ECHO 864AR 865RANLIB 866DSYMUTIL 867NMEDIT 868DLLTOOL 869AS 870OBJDUMP 871CPP 872CXX 873CXXFLAGS 874ac_ct_CXX 875CXXDEPMODE 876am__fastdepCXX_TRUE 877am__fastdepCXX_FALSE 878CXXCPP 879F77 880FFLAGS 881ac_ct_F77 882LIBTOOL 883DOLT_BASH 884LTCOMPILE 885LTCXXCOMPILE 886OS_WIN32_TRUE 887OS_WIN32_FALSE 888ms_librarian 889MS_LIB_AVAILABLE_TRUE 890MS_LIB_AVAILABLE_FALSE 891WARN_CFLAGS 892CROSS_COMPILING_TRUE 893CROSS_COMPILING_FALSE 894CC_FOR_BUILD 895EXEEXT_FOR_BUILD 896ARCHITECTURE 897ICONV_LIBS 898ft_config 899FREETYPE_LIBS 900FREETYPE_CFLAGS 901HAVE_XMLPARSE_H 902HAVE_EXPAT 903EXPAT_CFLAGS 904EXPAT_LIBS 905PKG_CONFIG 906LIBXML2_CFLAGS 907LIBXML2_LIBS 908FC_DEFAULT_FONTS 909FC_ADD_FONTS 910FC_FONTPATH 911fc_cachedir 912FC_CACHEDIR 913FC_FONTDATE 914confdir 915CONFDIR 916ORTH_FILES 917HASDOCBOOK 918USEDOCBOOK_TRUE 919USEDOCBOOK_FALSE 920ENABLE_DOCS_TRUE 921ENABLE_DOCS_FALSE 922DOCSRC 923DOCMAN3 924DOCDIR 925LIBOBJS 926LTLIBOBJS' 927ac_subst_files='' 928 ac_precious_vars='build_alias 929host_alias 930target_alias 931CC 932CFLAGS 933LDFLAGS 934LIBS 935CPPFLAGS 936CPP 937CXX 938CXXFLAGS 939CCC 940CXXCPP 941F77 942FFLAGS 943PKG_CONFIG 944LIBXML2_CFLAGS 945LIBXML2_LIBS' 946 947 948# Initialize some variables set by options. 949ac_init_help= 950ac_init_version=false 951# The variables have the same names as the options, with 952# dashes changed to underlines. 953cache_file=/dev/null 954exec_prefix=NONE 955no_create= 956no_recursion= 957prefix=NONE 958program_prefix=NONE 959program_suffix=NONE 960program_transform_name=s,x,x, 961silent= 962site= 963srcdir= 964verbose= 965x_includes=NONE 966x_libraries=NONE 967 968# Installation directory options. 969# These are left unexpanded so users can "make install exec_prefix=/foo" 970# and all the variables that are supposed to be based on exec_prefix 971# by default will actually change. 972# Use braces instead of parens because sh, perl, etc. also accept them. 973# (The list follows the same order as the GNU Coding Standards.) 974bindir='${exec_prefix}/bin' 975sbindir='${exec_prefix}/sbin' 976libexecdir='${exec_prefix}/libexec' 977datarootdir='${prefix}/share' 978datadir='${datarootdir}' 979sysconfdir='${prefix}/etc' 980sharedstatedir='${prefix}/com' 981localstatedir='${prefix}/var' 982includedir='${prefix}/include' 983oldincludedir='/usr/include' 984docdir='${datarootdir}/doc/${PACKAGE}' 985infodir='${datarootdir}/info' 986htmldir='${docdir}' 987dvidir='${docdir}' 988pdfdir='${docdir}' 989psdir='${docdir}' 990libdir='${exec_prefix}/lib' 991localedir='${datarootdir}/locale' 992mandir='${datarootdir}/man' 993 994ac_prev= 995ac_dashdash= 996for ac_option 997do 998 # If the previous option needs an argument, assign it. 999 if test -n "$ac_prev"; then 1000 eval $ac_prev=\$ac_option 1001 ac_prev= 1002 continue 1003 fi 1004 1005 case $ac_option in 1006 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1007 *) ac_optarg=yes ;; 1008 esac 1009 1010 # Accept the important Cygnus configure options, so we can diagnose typos. 1011 1012 case $ac_dashdash$ac_option in 1013 --) 1014 ac_dashdash=yes ;; 1015 1016 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1017 ac_prev=bindir ;; 1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1019 bindir=$ac_optarg ;; 1020 1021 -build | --build | --buil | --bui | --bu) 1022 ac_prev=build_alias ;; 1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1024 build_alias=$ac_optarg ;; 1025 1026 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1028 ac_prev=cache_file ;; 1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1031 cache_file=$ac_optarg ;; 1032 1033 --config-cache | -C) 1034 cache_file=config.cache ;; 1035 1036 -datadir | --datadir | --datadi | --datad) 1037 ac_prev=datadir ;; 1038 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1039 datadir=$ac_optarg ;; 1040 1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1042 | --dataroo | --dataro | --datar) 1043 ac_prev=datarootdir ;; 1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1046 datarootdir=$ac_optarg ;; 1047 1048 -disable-* | --disable-*) 1049 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1050 # Reject names that are not valid shell variable names. 1051 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1052 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1053 { (exit 1); exit 1; }; } 1054 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1055 eval enable_$ac_feature=no ;; 1056 1057 -docdir | --docdir | --docdi | --doc | --do) 1058 ac_prev=docdir ;; 1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1060 docdir=$ac_optarg ;; 1061 1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1063 ac_prev=dvidir ;; 1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1065 dvidir=$ac_optarg ;; 1066 1067 -enable-* | --enable-*) 1068 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1069 # Reject names that are not valid shell variable names. 1070 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1071 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1072 { (exit 1); exit 1; }; } 1073 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1074 eval enable_$ac_feature=\$ac_optarg ;; 1075 1076 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1077 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1078 | --exec | --exe | --ex) 1079 ac_prev=exec_prefix ;; 1080 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1081 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1082 | --exec=* | --exe=* | --ex=*) 1083 exec_prefix=$ac_optarg ;; 1084 1085 -gas | --gas | --ga | --g) 1086 # Obsolete; use --with-gas. 1087 with_gas=yes ;; 1088 1089 -help | --help | --hel | --he | -h) 1090 ac_init_help=long ;; 1091 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1092 ac_init_help=recursive ;; 1093 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1094 ac_init_help=short ;; 1095 1096 -host | --host | --hos | --ho) 1097 ac_prev=host_alias ;; 1098 -host=* | --host=* | --hos=* | --ho=*) 1099 host_alias=$ac_optarg ;; 1100 1101 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1102 ac_prev=htmldir ;; 1103 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1104 | --ht=*) 1105 htmldir=$ac_optarg ;; 1106 1107 -includedir | --includedir | --includedi | --included | --include \ 1108 | --includ | --inclu | --incl | --inc) 1109 ac_prev=includedir ;; 1110 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1111 | --includ=* | --inclu=* | --incl=* | --inc=*) 1112 includedir=$ac_optarg ;; 1113 1114 -infodir | --infodir | --infodi | --infod | --info | --inf) 1115 ac_prev=infodir ;; 1116 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1117 infodir=$ac_optarg ;; 1118 1119 -libdir | --libdir | --libdi | --libd) 1120 ac_prev=libdir ;; 1121 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1122 libdir=$ac_optarg ;; 1123 1124 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1125 | --libexe | --libex | --libe) 1126 ac_prev=libexecdir ;; 1127 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1128 | --libexe=* | --libex=* | --libe=*) 1129 libexecdir=$ac_optarg ;; 1130 1131 -localedir | --localedir | --localedi | --localed | --locale) 1132 ac_prev=localedir ;; 1133 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1134 localedir=$ac_optarg ;; 1135 1136 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1137 | --localstate | --localstat | --localsta | --localst | --locals) 1138 ac_prev=localstatedir ;; 1139 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1140 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1141 localstatedir=$ac_optarg ;; 1142 1143 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1144 ac_prev=mandir ;; 1145 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1146 mandir=$ac_optarg ;; 1147 1148 -nfp | --nfp | --nf) 1149 # Obsolete; use --without-fp. 1150 with_fp=no ;; 1151 1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1153 | --no-cr | --no-c | -n) 1154 no_create=yes ;; 1155 1156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1158 no_recursion=yes ;; 1159 1160 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1161 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1162 | --oldin | --oldi | --old | --ol | --o) 1163 ac_prev=oldincludedir ;; 1164 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1165 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1166 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1167 oldincludedir=$ac_optarg ;; 1168 1169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1170 ac_prev=prefix ;; 1171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1172 prefix=$ac_optarg ;; 1173 1174 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1175 | --program-pre | --program-pr | --program-p) 1176 ac_prev=program_prefix ;; 1177 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1178 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1179 program_prefix=$ac_optarg ;; 1180 1181 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1182 | --program-suf | --program-su | --program-s) 1183 ac_prev=program_suffix ;; 1184 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1185 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1186 program_suffix=$ac_optarg ;; 1187 1188 -program-transform-name | --program-transform-name \ 1189 | --program-transform-nam | --program-transform-na \ 1190 | --program-transform-n | --program-transform- \ 1191 | --program-transform | --program-transfor \ 1192 | --program-transfo | --program-transf \ 1193 | --program-trans | --program-tran \ 1194 | --progr-tra | --program-tr | --program-t) 1195 ac_prev=program_transform_name ;; 1196 -program-transform-name=* | --program-transform-name=* \ 1197 | --program-transform-nam=* | --program-transform-na=* \ 1198 | --program-transform-n=* | --program-transform-=* \ 1199 | --program-transform=* | --program-transfor=* \ 1200 | --program-transfo=* | --program-transf=* \ 1201 | --program-trans=* | --program-tran=* \ 1202 | --progr-tra=* | --program-tr=* | --program-t=*) 1203 program_transform_name=$ac_optarg ;; 1204 1205 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1206 ac_prev=pdfdir ;; 1207 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1208 pdfdir=$ac_optarg ;; 1209 1210 -psdir | --psdir | --psdi | --psd | --ps) 1211 ac_prev=psdir ;; 1212 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1213 psdir=$ac_optarg ;; 1214 1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1216 | -silent | --silent | --silen | --sile | --sil) 1217 silent=yes ;; 1218 1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1220 ac_prev=sbindir ;; 1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1222 | --sbi=* | --sb=*) 1223 sbindir=$ac_optarg ;; 1224 1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1227 | --sharedst | --shareds | --shared | --share | --shar \ 1228 | --sha | --sh) 1229 ac_prev=sharedstatedir ;; 1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1233 | --sha=* | --sh=*) 1234 sharedstatedir=$ac_optarg ;; 1235 1236 -site | --site | --sit) 1237 ac_prev=site ;; 1238 -site=* | --site=* | --sit=*) 1239 site=$ac_optarg ;; 1240 1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1242 ac_prev=srcdir ;; 1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1244 srcdir=$ac_optarg ;; 1245 1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1247 | --syscon | --sysco | --sysc | --sys | --sy) 1248 ac_prev=sysconfdir ;; 1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1251 sysconfdir=$ac_optarg ;; 1252 1253 -target | --target | --targe | --targ | --tar | --ta | --t) 1254 ac_prev=target_alias ;; 1255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1256 target_alias=$ac_optarg ;; 1257 1258 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1259 verbose=yes ;; 1260 1261 -version | --version | --versio | --versi | --vers | -V) 1262 ac_init_version=: ;; 1263 1264 -with-* | --with-*) 1265 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1266 # Reject names that are not valid shell variable names. 1267 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1268 { echo "$as_me: error: invalid package name: $ac_package" >&2 1269 { (exit 1); exit 1; }; } 1270 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1271 eval with_$ac_package=\$ac_optarg ;; 1272 1273 -without-* | --without-*) 1274 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1275 # Reject names that are not valid shell variable names. 1276 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1277 { echo "$as_me: error: invalid package name: $ac_package" >&2 1278 { (exit 1); exit 1; }; } 1279 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1280 eval with_$ac_package=no ;; 1281 1282 --x) 1283 # Obsolete; use --with-x. 1284 with_x=yes ;; 1285 1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1287 | --x-incl | --x-inc | --x-in | --x-i) 1288 ac_prev=x_includes ;; 1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1291 x_includes=$ac_optarg ;; 1292 1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1295 ac_prev=x_libraries ;; 1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1298 x_libraries=$ac_optarg ;; 1299 1300 -*) { echo "$as_me: error: unrecognized option: $ac_option 1301Try \`$0 --help' for more information." >&2 1302 { (exit 1); exit 1; }; } 1303 ;; 1304 1305 *=*) 1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1307 # Reject names that are not valid shell variable names. 1308 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1309 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1310 { (exit 1); exit 1; }; } 1311 eval $ac_envvar=\$ac_optarg 1312 export $ac_envvar ;; 1313 1314 *) 1315 # FIXME: should be removed in autoconf 3.0. 1316 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1318 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1319 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1320 ;; 1321 1322 esac 1323done 1324 1325if test -n "$ac_prev"; then 1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1327 { echo "$as_me: error: missing argument to $ac_option" >&2 1328 { (exit 1); exit 1; }; } 1329fi 1330 1331# Be sure to have absolute directory names. 1332for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1333 datadir sysconfdir sharedstatedir localstatedir includedir \ 1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1335 libdir localedir mandir 1336do 1337 eval ac_val=\$$ac_var 1338 case $ac_val in 1339 [\\/$]* | ?:[\\/]* ) continue;; 1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1341 esac 1342 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1343 { (exit 1); exit 1; }; } 1344done 1345 1346# There might be people who depend on the old broken behavior: `$host' 1347# used to hold the argument of --host etc. 1348# FIXME: To remove some day. 1349build=$build_alias 1350host=$host_alias 1351target=$target_alias 1352 1353# FIXME: To remove some day. 1354if test "x$host_alias" != x; then 1355 if test "x$build_alias" = x; then 1356 cross_compiling=maybe 1357 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1358 If a cross compiler is detected then cross compile mode will be used." >&2 1359 elif test "x$build_alias" != "x$host_alias"; then 1360 cross_compiling=yes 1361 fi 1362fi 1363 1364ac_tool_prefix= 1365test -n "$host_alias" && ac_tool_prefix=$host_alias- 1366 1367test "$silent" = yes && exec 6>/dev/null 1368 1369 1370ac_pwd=`pwd` && test -n "$ac_pwd" && 1371ac_ls_di=`ls -di .` && 1372ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1373 { echo "$as_me: error: Working directory cannot be determined" >&2 1374 { (exit 1); exit 1; }; } 1375test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1376 { echo "$as_me: error: pwd does not report name of working directory" >&2 1377 { (exit 1); exit 1; }; } 1378 1379 1380# Find the source files, if location was not specified. 1381if test -z "$srcdir"; then 1382 ac_srcdir_defaulted=yes 1383 # Try the directory containing this script, then the parent directory. 1384 ac_confdir=`$as_dirname -- "$0" || 1385$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1386 X"$0" : 'X\(//\)[^/]' \| \ 1387 X"$0" : 'X\(//\)$' \| \ 1388 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1389echo X"$0" | 1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1391 s//\1/ 1392 q 1393 } 1394 /^X\(\/\/\)[^/].*/{ 1395 s//\1/ 1396 q 1397 } 1398 /^X\(\/\/\)$/{ 1399 s//\1/ 1400 q 1401 } 1402 /^X\(\/\).*/{ 1403 s//\1/ 1404 q 1405 } 1406 s/.*/./; q'` 1407 srcdir=$ac_confdir 1408 if test ! -r "$srcdir/$ac_unique_file"; then 1409 srcdir=.. 1410 fi 1411else 1412 ac_srcdir_defaulted=no 1413fi 1414if test ! -r "$srcdir/$ac_unique_file"; then 1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1416 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1417 { (exit 1); exit 1; }; } 1418fi 1419ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1420ac_abs_confdir=`( 1421 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1422 { (exit 1); exit 1; }; } 1423 pwd)` 1424# When building in place, set srcdir=. 1425if test "$ac_abs_confdir" = "$ac_pwd"; then 1426 srcdir=. 1427fi 1428# Remove unnecessary trailing slashes from srcdir. 1429# Double slashes in file names in object file debugging info 1430# mess up M-x gdb in Emacs. 1431case $srcdir in 1432*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1433esac 1434for ac_var in $ac_precious_vars; do 1435 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1436 eval ac_env_${ac_var}_value=\$${ac_var} 1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1438 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1439done 1440 1441# 1442# Report the --help message. 1443# 1444if test "$ac_init_help" = "long"; then 1445 # Omit some internal or obsolete options to make the list less imposing. 1446 # This message is too long to be a string in the A/UX 3.1 sh. 1447 cat <<_ACEOF 1448\`configure' configures this package to adapt to many kinds of systems. 1449 1450Usage: $0 [OPTION]... [VAR=VALUE]... 1451 1452To assign environment variables (e.g., CC, CFLAGS...), specify them as 1453VAR=VALUE. See below for descriptions of some of the useful variables. 1454 1455Defaults for the options are specified in brackets. 1456 1457Configuration: 1458 -h, --help display this help and exit 1459 --help=short display options specific to this package 1460 --help=recursive display the short help of all the included packages 1461 -V, --version display version information and exit 1462 -q, --quiet, --silent do not print \`checking...' messages 1463 --cache-file=FILE cache test results in FILE [disabled] 1464 -C, --config-cache alias for \`--cache-file=config.cache' 1465 -n, --no-create do not create output files 1466 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1467 1468Installation directories: 1469 --prefix=PREFIX install architecture-independent files in PREFIX 1470 [$ac_default_prefix] 1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1472 [PREFIX] 1473 1474By default, \`make install' will install all the files in 1475\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1476an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1477for instance \`--prefix=\$HOME'. 1478 1479For better control, use the options below. 1480 1481Fine tuning of the installation directories: 1482 --bindir=DIR user executables [EPREFIX/bin] 1483 --sbindir=DIR system admin executables [EPREFIX/sbin] 1484 --libexecdir=DIR program executables [EPREFIX/libexec] 1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1488 --libdir=DIR object code libraries [EPREFIX/lib] 1489 --includedir=DIR C header files [PREFIX/include] 1490 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1493 --infodir=DIR info documentation [DATAROOTDIR/info] 1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1495 --mandir=DIR man documentation [DATAROOTDIR/man] 1496 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1497 --htmldir=DIR html documentation [DOCDIR] 1498 --dvidir=DIR dvi documentation [DOCDIR] 1499 --pdfdir=DIR pdf documentation [DOCDIR] 1500 --psdir=DIR ps documentation [DOCDIR] 1501_ACEOF 1502 1503 cat <<\_ACEOF 1504 1505Program names: 1506 --program-prefix=PREFIX prepend PREFIX to installed program names 1507 --program-suffix=SUFFIX append SUFFIX to installed program names 1508 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1509 1510System types: 1511 --build=BUILD configure for building on BUILD [guessed] 1512 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1513_ACEOF 1514fi 1515 1516if test -n "$ac_init_help"; then 1517 1518 cat <<\_ACEOF 1519 1520Optional Features: 1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1523 --enable-maintainer-mode enable make rules and dependencies not useful 1524 (and sometimes confusing) to the casual installer 1525 --disable-dependency-tracking speeds up one-time build 1526 --enable-dependency-tracking do not reject slow dependency extractors 1527 --enable-shared[=PKGS] build shared libraries [default=yes] 1528 --enable-static[=PKGS] build static libraries [default=yes] 1529 --enable-fast-install[=PKGS] 1530 optimize for fast installation [default=yes] 1531 --disable-libtool-lock avoid locking (might break parallel builds) 1532 --enable-libxml2 Use libxml2 instead of Expat 1533 --disable-docs Don't build and install documentation 1534 1535Optional Packages: 1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1538 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1539 --with-pic try to use only PIC/non-PIC objects [default=use 1540 both] 1541 --with-tags[=TAGS] include additional configurations [automatic] 1542 --with-arch=ARCH Force architecture to ARCH 1543 --with-freetype-config=PROG Use FreeType configuration program PROG 1544 --with-expat=DIR Use Expat in DIR 1545 --with-expat-includes=DIR Use Expat includes in DIR 1546 --with-expat-lib=DIR Use Expat library in DIR 1547 --with-default-fonts=DIR Use fonts from DIR when config is busted 1548 --with-add-fonts=DIR1,DIR2,...Find additional fonts in DIR1,DIR2,... 1549 --with-cache-dir=DIR Use DIR to store cache files (default /var/cache/fontconfig) 1550 --with-confdir=DIR Use DIR to store configuration files (default /etc/fonts) 1551 --with-docdir=DIR Use DIR to store documentation files (default ${datadir}/doc/fontconfig) 1552 1553Some influential environment variables: 1554 CC C compiler command 1555 CFLAGS C compiler flags 1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1557 nonstandard directory <lib dir> 1558 LIBS libraries to pass to the linker, e.g. -l<library> 1559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1560 you have headers in a nonstandard directory <include dir> 1561 CPP C preprocessor 1562 CXX C++ compiler command 1563 CXXFLAGS C++ compiler flags 1564 CXXCPP C++ preprocessor 1565 F77 Fortran 77 compiler command 1566 FFLAGS Fortran 77 compiler flags 1567 PKG_CONFIG path to pkg-config utility 1568 LIBXML2_CFLAGS 1569 C compiler flags for LIBXML2, overriding pkg-config 1570 LIBXML2_LIBS 1571 linker flags for LIBXML2, overriding pkg-config 1572 1573Use these variables to override the choices made by `configure' or to help 1574it to find libraries and programs with nonstandard names/locations. 1575 1576_ACEOF 1577ac_status=$? 1578fi 1579 1580if test "$ac_init_help" = "recursive"; then 1581 # If there are subdirs, report their specific --help. 1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1583 test -d "$ac_dir" || continue 1584 ac_builddir=. 1585 1586case "$ac_dir" in 1587.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1588*) 1589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1590 # A ".." for each directory in $ac_dir_suffix. 1591 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1592 case $ac_top_builddir_sub in 1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1595 esac ;; 1596esac 1597ac_abs_top_builddir=$ac_pwd 1598ac_abs_builddir=$ac_pwd$ac_dir_suffix 1599# for backward compatibility: 1600ac_top_builddir=$ac_top_build_prefix 1601 1602case $srcdir in 1603 .) # We are building in place. 1604 ac_srcdir=. 1605 ac_top_srcdir=$ac_top_builddir_sub 1606 ac_abs_top_srcdir=$ac_pwd ;; 1607 [\\/]* | ?:[\\/]* ) # Absolute name. 1608 ac_srcdir=$srcdir$ac_dir_suffix; 1609 ac_top_srcdir=$srcdir 1610 ac_abs_top_srcdir=$srcdir ;; 1611 *) # Relative name. 1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1613 ac_top_srcdir=$ac_top_build_prefix$srcdir 1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1615esac 1616ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1617 1618 cd "$ac_dir" || { ac_status=$?; continue; } 1619 # Check for guested configure. 1620 if test -f "$ac_srcdir/configure.gnu"; then 1621 echo && 1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1623 elif test -f "$ac_srcdir/configure"; then 1624 echo && 1625 $SHELL "$ac_srcdir/configure" --help=recursive 1626 else 1627 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1628 fi || ac_status=$? 1629 cd "$ac_pwd" || { ac_status=$?; break; } 1630 done 1631fi 1632 1633test -n "$ac_init_help" && exit $ac_status 1634if $ac_init_version; then 1635 cat <<\_ACEOF 1636configure 1637generated by GNU Autoconf 2.61 1638 1639Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1641This configure script is free software; the Free Software Foundation 1642gives unlimited permission to copy, distribute and modify it. 1643_ACEOF 1644 exit 1645fi 1646cat >config.log <<_ACEOF 1647This file contains any messages produced by compilers while 1648running configure, to aid debugging if configure makes a mistake. 1649 1650It was created by $as_me, which was 1651generated by GNU Autoconf 2.61. Invocation command line was 1652 1653 $ $0 $@ 1654 1655_ACEOF 1656exec 5>>config.log 1657{ 1658cat <<_ASUNAME 1659## --------- ## 1660## Platform. ## 1661## --------- ## 1662 1663hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1664uname -m = `(uname -m) 2>/dev/null || echo unknown` 1665uname -r = `(uname -r) 2>/dev/null || echo unknown` 1666uname -s = `(uname -s) 2>/dev/null || echo unknown` 1667uname -v = `(uname -v) 2>/dev/null || echo unknown` 1668 1669/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1670/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1671 1672/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1673/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1674/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1675/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1676/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1677/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1678/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1679 1680_ASUNAME 1681 1682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1683for as_dir in $PATH 1684do 1685 IFS=$as_save_IFS 1686 test -z "$as_dir" && as_dir=. 1687 echo "PATH: $as_dir" 1688done 1689IFS=$as_save_IFS 1690 1691} >&5 1692 1693cat >&5 <<_ACEOF 1694 1695 1696## ----------- ## 1697## Core tests. ## 1698## ----------- ## 1699 1700_ACEOF 1701 1702 1703# Keep a trace of the command line. 1704# Strip out --no-create and --no-recursion so they do not pile up. 1705# Strip out --silent because we don't want to record it for future runs. 1706# Also quote any args containing shell meta-characters. 1707# Make two passes to allow for proper duplicate-argument suppression. 1708ac_configure_args= 1709ac_configure_args0= 1710ac_configure_args1= 1711ac_must_keep_next=false 1712for ac_pass in 1 2 1713do 1714 for ac_arg 1715 do 1716 case $ac_arg in 1717 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1718 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1719 | -silent | --silent | --silen | --sile | --sil) 1720 continue ;; 1721 *\'*) 1722 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1723 esac 1724 case $ac_pass in 1725 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1726 2) 1727 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1728 if test $ac_must_keep_next = true; then 1729 ac_must_keep_next=false # Got value, back to normal. 1730 else 1731 case $ac_arg in 1732 *=* | --config-cache | -C | -disable-* | --disable-* \ 1733 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1734 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1735 | -with-* | --with-* | -without-* | --without-* | --x) 1736 case "$ac_configure_args0 " in 1737 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1738 esac 1739 ;; 1740 -* ) ac_must_keep_next=true ;; 1741 esac 1742 fi 1743 ac_configure_args="$ac_configure_args '$ac_arg'" 1744 ;; 1745 esac 1746 done 1747done 1748$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1749$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1750 1751# When interrupted or exit'd, cleanup temporary files, and complete 1752# config.log. We remove comments because anyway the quotes in there 1753# would cause problems or look ugly. 1754# WARNING: Use '\'' to represent an apostrophe within the trap. 1755# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1756trap 'exit_status=$? 1757 # Save into config.log some information that might help in debugging. 1758 { 1759 echo 1760 1761 cat <<\_ASBOX 1762## ---------------- ## 1763## Cache variables. ## 1764## ---------------- ## 1765_ASBOX 1766 echo 1767 # The following way of writing the cache mishandles newlines in values, 1768( 1769 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1770 eval ac_val=\$$ac_var 1771 case $ac_val in #( 1772 *${as_nl}*) 1773 case $ac_var in #( 1774 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1775echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1776 esac 1777 case $ac_var in #( 1778 _ | IFS | as_nl) ;; #( 1779 *) $as_unset $ac_var ;; 1780 esac ;; 1781 esac 1782 done 1783 (set) 2>&1 | 1784 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1785 *${as_nl}ac_space=\ *) 1786 sed -n \ 1787 "s/'\''/'\''\\\\'\'''\''/g; 1788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1789 ;; #( 1790 *) 1791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1792 ;; 1793 esac | 1794 sort 1795) 1796 echo 1797 1798 cat <<\_ASBOX 1799## ----------------- ## 1800## Output variables. ## 1801## ----------------- ## 1802_ASBOX 1803 echo 1804 for ac_var in $ac_subst_vars 1805 do 1806 eval ac_val=\$$ac_var 1807 case $ac_val in 1808 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1809 esac 1810 echo "$ac_var='\''$ac_val'\''" 1811 done | sort 1812 echo 1813 1814 if test -n "$ac_subst_files"; then 1815 cat <<\_ASBOX 1816## ------------------- ## 1817## File substitutions. ## 1818## ------------------- ## 1819_ASBOX 1820 echo 1821 for ac_var in $ac_subst_files 1822 do 1823 eval ac_val=\$$ac_var 1824 case $ac_val in 1825 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1826 esac 1827 echo "$ac_var='\''$ac_val'\''" 1828 done | sort 1829 echo 1830 fi 1831 1832 if test -s confdefs.h; then 1833 cat <<\_ASBOX 1834## ----------- ## 1835## confdefs.h. ## 1836## ----------- ## 1837_ASBOX 1838 echo 1839 cat confdefs.h 1840 echo 1841 fi 1842 test "$ac_signal" != 0 && 1843 echo "$as_me: caught signal $ac_signal" 1844 echo "$as_me: exit $exit_status" 1845 } >&5 1846 rm -f core *.core core.conftest.* && 1847 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1848 exit $exit_status 1849' 0 1850for ac_signal in 1 2 13 15; do 1851 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1852done 1853ac_signal=0 1854 1855# confdefs.h avoids OS command line length limits that DEFS can exceed. 1856rm -f -r conftest* confdefs.h 1857 1858# Predefined preprocessor variables. 1859 1860cat >>confdefs.h <<_ACEOF 1861#define PACKAGE_NAME "$PACKAGE_NAME" 1862_ACEOF 1863 1864 1865cat >>confdefs.h <<_ACEOF 1866#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1867_ACEOF 1868 1869 1870cat >>confdefs.h <<_ACEOF 1871#define PACKAGE_VERSION "$PACKAGE_VERSION" 1872_ACEOF 1873 1874 1875cat >>confdefs.h <<_ACEOF 1876#define PACKAGE_STRING "$PACKAGE_STRING" 1877_ACEOF 1878 1879 1880cat >>confdefs.h <<_ACEOF 1881#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1882_ACEOF 1883 1884 1885# Let the site file select an alternate cache file if it wants to. 1886# Prefer explicitly selected file to automatically selected ones. 1887if test -n "$CONFIG_SITE"; then 1888 set x "$CONFIG_SITE" 1889elif test "x$prefix" != xNONE; then 1890 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1891else 1892 set x "$ac_default_prefix/share/config.site" \ 1893 "$ac_default_prefix/etc/config.site" 1894fi 1895shift 1896for ac_site_file 1897do 1898 if test -r "$ac_site_file"; then 1899 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1900echo "$as_me: loading site script $ac_site_file" >&6;} 1901 sed 's/^/| /' "$ac_site_file" >&5 1902 . "$ac_site_file" 1903 fi 1904done 1905 1906if test -r "$cache_file"; then 1907 # Some versions of bash will fail to source /dev/null (special 1908 # files actually), so we avoid doing that. 1909 if test -f "$cache_file"; then 1910 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1911echo "$as_me: loading cache $cache_file" >&6;} 1912 case $cache_file in 1913 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1914 *) . "./$cache_file";; 1915 esac 1916 fi 1917else 1918 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1919echo "$as_me: creating cache $cache_file" >&6;} 1920 >$cache_file 1921fi 1922 1923# Check that the precious variables saved in the cache have kept the same 1924# value. 1925ac_cache_corrupted=false 1926for ac_var in $ac_precious_vars; do 1927 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1928 eval ac_new_set=\$ac_env_${ac_var}_set 1929 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1930 eval ac_new_val=\$ac_env_${ac_var}_value 1931 case $ac_old_set,$ac_new_set in 1932 set,) 1933 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1934echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1935 ac_cache_corrupted=: ;; 1936 ,set) 1937 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1938echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1939 ac_cache_corrupted=: ;; 1940 ,);; 1941 *) 1942 if test "x$ac_old_val" != "x$ac_new_val"; then 1943 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1944echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1945 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1946echo "$as_me: former value: $ac_old_val" >&2;} 1947 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1948echo "$as_me: current value: $ac_new_val" >&2;} 1949 ac_cache_corrupted=: 1950 fi;; 1951 esac 1952 # Pass precious variables to config.status. 1953 if test "$ac_new_set" = set; then 1954 case $ac_new_val in 1955 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1956 *) ac_arg=$ac_var=$ac_new_val ;; 1957 esac 1958 case " $ac_configure_args " in 1959 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1960 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1961 esac 1962 fi 1963done 1964if $ac_cache_corrupted; then 1965 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1966echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1967 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1968echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1969 { (exit 1); exit 1; }; } 1970fi 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988ac_ext=c 1989ac_cpp='$CPP $CPPFLAGS' 1990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1992ac_compiler_gnu=$ac_cv_c_compiler_gnu 1993 1994 1995 1996 1997am__api_version="1.9" 1998ac_aux_dir= 1999for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2000 if test -f "$ac_dir/install-sh"; then 2001 ac_aux_dir=$ac_dir 2002 ac_install_sh="$ac_aux_dir/install-sh -c" 2003 break 2004 elif test -f "$ac_dir/install.sh"; then 2005 ac_aux_dir=$ac_dir 2006 ac_install_sh="$ac_aux_dir/install.sh -c" 2007 break 2008 elif test -f "$ac_dir/shtool"; then 2009 ac_aux_dir=$ac_dir 2010 ac_install_sh="$ac_aux_dir/shtool install -c" 2011 break 2012 fi 2013done 2014if test -z "$ac_aux_dir"; then 2015 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2016echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2017 { (exit 1); exit 1; }; } 2018fi 2019 2020# These three variables are undocumented and unsupported, 2021# and are intended to be withdrawn in a future Autoconf release. 2022# They can cause serious problems if a builder's source tree is in a directory 2023# whose full name contains unusual characters. 2024ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2025ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2026ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2027 2028 2029# Find a good install program. We prefer a C program (faster), 2030# so one script is as good as another. But avoid the broken or 2031# incompatible versions: 2032# SysV /etc/install, /usr/sbin/install 2033# SunOS /usr/etc/install 2034# IRIX /sbin/install 2035# AIX /bin/install 2036# AmigaOS /C/install, which installs bootblocks on floppy discs 2037# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2038# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2039# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2040# OS/2's system install, which has a completely different semantic 2041# ./install, which can be erroneously created by make from ./install.sh. 2042{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2043echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2044if test -z "$INSTALL"; then 2045if test "${ac_cv_path_install+set}" = set; then 2046 echo $ECHO_N "(cached) $ECHO_C" >&6 2047else 2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2049for as_dir in $PATH 2050do 2051 IFS=$as_save_IFS 2052 test -z "$as_dir" && as_dir=. 2053 # Account for people who put trailing slashes in PATH elements. 2054case $as_dir/ in 2055 ./ | .// | /cC/* | \ 2056 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2057 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2058 /usr/ucb/* ) ;; 2059 *) 2060 # OSF1 and SCO ODT 3.0 have their own names for install. 2061 # Don't use installbsd from OSF since it installs stuff as root 2062 # by default. 2063 for ac_prog in ginstall scoinst install; do 2064 for ac_exec_ext in '' $ac_executable_extensions; do 2065 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2066 if test $ac_prog = install && 2067 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2068 # AIX install. It has an incompatible calling convention. 2069 : 2070 elif test $ac_prog = install && 2071 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2072 # program-specific install script used by HP pwplus--don't use. 2073 : 2074 else 2075 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2076 break 3 2077 fi 2078 fi 2079 done 2080 done 2081 ;; 2082esac 2083done 2084IFS=$as_save_IFS 2085 2086 2087fi 2088 if test "${ac_cv_path_install+set}" = set; then 2089 INSTALL=$ac_cv_path_install 2090 else 2091 # As a last resort, use the slow shell script. Don't cache a 2092 # value for INSTALL within a source directory, because that will 2093 # break other packages using the cache if that directory is 2094 # removed, or if the value is a relative name. 2095 INSTALL=$ac_install_sh 2096 fi 2097fi 2098{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2099echo "${ECHO_T}$INSTALL" >&6; } 2100 2101# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2102# It thinks the first close brace ends the variable substitution. 2103test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2104 2105test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2106 2107test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2108 2109{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2110echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2111# Just in case 2112sleep 1 2113echo timestamp > conftest.file 2114# Do `set' in a subshell so we don't clobber the current shell's 2115# arguments. Must try -L first in case configure is actually a 2116# symlink; some systems play weird games with the mod time of symlinks 2117# (eg FreeBSD returns the mod time of the symlink's containing 2118# directory). 2119if ( 2120 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2121 if test "$*" = "X"; then 2122 # -L didn't work. 2123 set X `ls -t $srcdir/configure conftest.file` 2124 fi 2125 rm -f conftest.file 2126 if test "$*" != "X $srcdir/configure conftest.file" \ 2127 && test "$*" != "X conftest.file $srcdir/configure"; then 2128 2129 # If neither matched, then we have a broken ls. This can happen 2130 # if, for instance, CONFIG_SHELL is bash and it inherits a 2131 # broken ls alias from the environment. This has actually 2132 # happened. Such a system could not be considered "sane". 2133 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2134alias in your environment" >&5 2135echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2136alias in your environment" >&2;} 2137 { (exit 1); exit 1; }; } 2138 fi 2139 2140 test "$2" = conftest.file 2141 ) 2142then 2143 # Ok. 2144 : 2145else 2146 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2147Check your system clock" >&5 2148echo "$as_me: error: newly created file is older than distributed files! 2149Check your system clock" >&2;} 2150 { (exit 1); exit 1; }; } 2151fi 2152{ echo "$as_me:$LINENO: result: yes" >&5 2153echo "${ECHO_T}yes" >&6; } 2154test "$program_prefix" != NONE && 2155 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2156# Use a double $ so make ignores it. 2157test "$program_suffix" != NONE && 2158 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2159# Double any \ or $. echo might interpret backslashes. 2160# By default was `s,x,x', remove it if useless. 2161cat <<\_ACEOF >conftest.sed 2162s/[\\$]/&&/g;s/;s,x,x,$// 2163_ACEOF 2164program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2165rm -f conftest.sed 2166 2167# expand $ac_aux_dir to an absolute path 2168am_aux_dir=`cd $ac_aux_dir && pwd` 2169 2170test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2171# Use eval to expand $SHELL 2172if eval "$MISSING --run true"; then 2173 am_missing_run="$MISSING --run " 2174else 2175 am_missing_run= 2176 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2177echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2178fi 2179 2180if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2181 # We used to keeping the `.' as first argument, in order to 2182 # allow $(mkdir_p) to be used without argument. As in 2183 # $(mkdir_p) $(somedir) 2184 # where $(somedir) is conditionally defined. However this is wrong 2185 # for two reasons: 2186 # 1. if the package is installed by a user who cannot write `.' 2187 # make install will fail, 2188 # 2. the above comment should most certainly read 2189 # $(mkdir_p) $(DESTDIR)$(somedir) 2190 # so it does not work when $(somedir) is undefined and 2191 # $(DESTDIR) is not. 2192 # To support the latter case, we have to write 2193 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2194 # so the `.' trick is pointless. 2195 mkdir_p='mkdir -p --' 2196else 2197 # On NextStep and OpenStep, the `mkdir' command does not 2198 # recognize any option. It will interpret all options as 2199 # directories to create, and then abort because `.' already 2200 # exists. 2201 for d in ./-p ./--version; 2202 do 2203 test -d $d && rmdir $d 2204 done 2205 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2206 if test -f "$ac_aux_dir/mkinstalldirs"; then 2207 mkdir_p='$(mkinstalldirs)' 2208 else 2209 mkdir_p='$(install_sh) -d' 2210 fi 2211fi 2212 2213for ac_prog in gawk mawk nawk awk 2214do 2215 # Extract the first word of "$ac_prog", so it can be a program name with args. 2216set dummy $ac_prog; ac_word=$2 2217{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2219if test "${ac_cv_prog_AWK+set}" = set; then 2220 echo $ECHO_N "(cached) $ECHO_C" >&6 2221else 2222 if test -n "$AWK"; then 2223 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2224else 2225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2226for as_dir in $PATH 2227do 2228 IFS=$as_save_IFS 2229 test -z "$as_dir" && as_dir=. 2230 for ac_exec_ext in '' $ac_executable_extensions; do 2231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2232 ac_cv_prog_AWK="$ac_prog" 2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2234 break 2 2235 fi 2236done 2237done 2238IFS=$as_save_IFS 2239 2240fi 2241fi 2242AWK=$ac_cv_prog_AWK 2243if test -n "$AWK"; then 2244 { echo "$as_me:$LINENO: result: $AWK" >&5 2245echo "${ECHO_T}$AWK" >&6; } 2246else 2247 { echo "$as_me:$LINENO: result: no" >&5 2248echo "${ECHO_T}no" >&6; } 2249fi 2250 2251 2252 test -n "$AWK" && break 2253done 2254 2255{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2256echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2257set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2258if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2259 echo $ECHO_N "(cached) $ECHO_C" >&6 2260else 2261 cat >conftest.make <<\_ACEOF 2262SHELL = /bin/sh 2263all: 2264 @echo '@@@%%%=$(MAKE)=@@@%%%' 2265_ACEOF 2266# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2267case `${MAKE-make} -f conftest.make 2>/dev/null` in 2268 *@@@%%%=?*=@@@%%%*) 2269 eval ac_cv_prog_make_${ac_make}_set=yes;; 2270 *) 2271 eval ac_cv_prog_make_${ac_make}_set=no;; 2272esac 2273rm -f conftest.make 2274fi 2275if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2276 { echo "$as_me:$LINENO: result: yes" >&5 2277echo "${ECHO_T}yes" >&6; } 2278 SET_MAKE= 2279else 2280 { echo "$as_me:$LINENO: result: no" >&5 2281echo "${ECHO_T}no" >&6; } 2282 SET_MAKE="MAKE=${MAKE-make}" 2283fi 2284 2285rm -rf .tst 2>/dev/null 2286mkdir .tst 2>/dev/null 2287if test -d .tst; then 2288 am__leading_dot=. 2289else 2290 am__leading_dot=_ 2291fi 2292rmdir .tst 2>/dev/null 2293 2294# test to see if srcdir already configured 2295if test "`cd $srcdir && pwd`" != "`pwd`" && 2296 test -f $srcdir/config.status; then 2297 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2298echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2299 { (exit 1); exit 1; }; } 2300fi 2301 2302# test whether we have cygpath 2303if test -z "$CYGPATH_W"; then 2304 if (cygpath --version) >/dev/null 2>/dev/null; then 2305 CYGPATH_W='cygpath -w' 2306 else 2307 CYGPATH_W=echo 2308 fi 2309fi 2310 2311 2312# Define the identity of the package. 2313 PACKAGE=fontconfig 2314 VERSION=2.6.0 2315 2316 2317cat >>confdefs.h <<_ACEOF 2318#define PACKAGE "$PACKAGE" 2319_ACEOF 2320 2321 2322cat >>confdefs.h <<_ACEOF 2323#define VERSION "$VERSION" 2324_ACEOF 2325 2326# Some tools Automake needs. 2327 2328ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2329 2330 2331AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2332 2333 2334AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2335 2336 2337AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2338 2339 2340MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2341 2342install_sh=${install_sh-"$am_aux_dir/install-sh"} 2343 2344# Installed binaries are usually stripped using `strip' when the user 2345# run `make install-strip'. However `strip' might not be the right 2346# tool to use in cross-compilation environments, therefore Automake 2347# will honor the `STRIP' environment variable to overrule this program. 2348if test "$cross_compiling" != no; then 2349 if test -n "$ac_tool_prefix"; then 2350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2351set dummy ${ac_tool_prefix}strip; ac_word=$2 2352{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2354if test "${ac_cv_prog_STRIP+set}" = set; then 2355 echo $ECHO_N "(cached) $ECHO_C" >&6 2356else 2357 if test -n "$STRIP"; then 2358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2359else 2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2361for as_dir in $PATH 2362do 2363 IFS=$as_save_IFS 2364 test -z "$as_dir" && as_dir=. 2365 for ac_exec_ext in '' $ac_executable_extensions; do 2366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2367 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2369 break 2 2370 fi 2371done 2372done 2373IFS=$as_save_IFS 2374 2375fi 2376fi 2377STRIP=$ac_cv_prog_STRIP 2378if test -n "$STRIP"; then 2379 { echo "$as_me:$LINENO: result: $STRIP" >&5 2380echo "${ECHO_T}$STRIP" >&6; } 2381else 2382 { echo "$as_me:$LINENO: result: no" >&5 2383echo "${ECHO_T}no" >&6; } 2384fi 2385 2386 2387fi 2388if test -z "$ac_cv_prog_STRIP"; then 2389 ac_ct_STRIP=$STRIP 2390 # Extract the first word of "strip", so it can be a program name with args. 2391set dummy strip; ac_word=$2 2392{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2394if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2395 echo $ECHO_N "(cached) $ECHO_C" >&6 2396else 2397 if test -n "$ac_ct_STRIP"; then 2398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2399else 2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2401for as_dir in $PATH 2402do 2403 IFS=$as_save_IFS 2404 test -z "$as_dir" && as_dir=. 2405 for ac_exec_ext in '' $ac_executable_extensions; do 2406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2407 ac_cv_prog_ac_ct_STRIP="strip" 2408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2409 break 2 2410 fi 2411done 2412done 2413IFS=$as_save_IFS 2414 2415fi 2416fi 2417ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2418if test -n "$ac_ct_STRIP"; then 2419 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2420echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2421else 2422 { echo "$as_me:$LINENO: result: no" >&5 2423echo "${ECHO_T}no" >&6; } 2424fi 2425 2426 if test "x$ac_ct_STRIP" = x; then 2427 STRIP=":" 2428 else 2429 case $cross_compiling:$ac_tool_warned in 2430yes:) 2431{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2432whose name does not start with the host triplet. If you think this 2433configuration is useful to you, please write to autoconf@gnu.org." >&5 2434echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2435whose name does not start with the host triplet. If you think this 2436configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2437ac_tool_warned=yes ;; 2438esac 2439 STRIP=$ac_ct_STRIP 2440 fi 2441else 2442 STRIP="$ac_cv_prog_STRIP" 2443fi 2444 2445fi 2446INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2447 2448# We need awk for the "check" target. The system "awk" is bad on 2449# some platforms. 2450# Always define AMTAR for backward compatibility. 2451 2452AMTAR=${AMTAR-"${am_missing_run}tar"} 2453 2454am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2455 2456 2457 2458 2459 2460{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2461echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2462 # Check whether --enable-maintainer-mode was given. 2463if test "${enable_maintainer_mode+set}" = set; then 2464 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2465else 2466 USE_MAINTAINER_MODE=no 2467fi 2468 2469 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2470echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2471 2472 2473if test $USE_MAINTAINER_MODE = yes; then 2474 MAINTAINER_MODE_TRUE= 2475 MAINTAINER_MODE_FALSE='#' 2476else 2477 MAINTAINER_MODE_TRUE='#' 2478 MAINTAINER_MODE_FALSE= 2479fi 2480 2481 MAINT=$MAINTAINER_MODE_TRUE 2482 2483 2484 2485 2486LIBT_CURRENT=4 2487LIBT_REVISION=0 2488 2489 2490LIBT_AGE=3 2491 2492LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE" 2493 2494 2495LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE` 2496 2497 2498 2499ac_config_headers="$ac_config_headers config.h" 2500 2501 2502ac_ext=c 2503ac_cpp='$CPP $CPPFLAGS' 2504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2506ac_compiler_gnu=$ac_cv_c_compiler_gnu 2507if test -n "$ac_tool_prefix"; then 2508 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2509set dummy ${ac_tool_prefix}gcc; ac_word=$2 2510{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2512if test "${ac_cv_prog_CC+set}" = set; then 2513 echo $ECHO_N "(cached) $ECHO_C" >&6 2514else 2515 if test -n "$CC"; then 2516 ac_cv_prog_CC="$CC" # Let the user override the test. 2517else 2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2519for as_dir in $PATH 2520do 2521 IFS=$as_save_IFS 2522 test -z "$as_dir" && as_dir=. 2523 for ac_exec_ext in '' $ac_executable_extensions; do 2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2525 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2527 break 2 2528 fi 2529done 2530done 2531IFS=$as_save_IFS 2532 2533fi 2534fi 2535CC=$ac_cv_prog_CC 2536if test -n "$CC"; then 2537 { echo "$as_me:$LINENO: result: $CC" >&5 2538echo "${ECHO_T}$CC" >&6; } 2539else 2540 { echo "$as_me:$LINENO: result: no" >&5 2541echo "${ECHO_T}no" >&6; } 2542fi 2543 2544 2545fi 2546if test -z "$ac_cv_prog_CC"; then 2547 ac_ct_CC=$CC 2548 # Extract the first word of "gcc", so it can be a program name with args. 2549set dummy gcc; ac_word=$2 2550{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2552if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2553 echo $ECHO_N "(cached) $ECHO_C" >&6 2554else 2555 if test -n "$ac_ct_CC"; then 2556 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2557else 2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2559for as_dir in $PATH 2560do 2561 IFS=$as_save_IFS 2562 test -z "$as_dir" && as_dir=. 2563 for ac_exec_ext in '' $ac_executable_extensions; do 2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2565 ac_cv_prog_ac_ct_CC="gcc" 2566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2567 break 2 2568 fi 2569done 2570done 2571IFS=$as_save_IFS 2572 2573fi 2574fi 2575ac_ct_CC=$ac_cv_prog_ac_ct_CC 2576if test -n "$ac_ct_CC"; then 2577 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2578echo "${ECHO_T}$ac_ct_CC" >&6; } 2579else 2580 { echo "$as_me:$LINENO: result: no" >&5 2581echo "${ECHO_T}no" >&6; } 2582fi 2583 2584 if test "x$ac_ct_CC" = x; then 2585 CC="" 2586 else 2587 case $cross_compiling:$ac_tool_warned in 2588yes:) 2589{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2590whose name does not start with the host triplet. If you think this 2591configuration is useful to you, please write to autoconf@gnu.org." >&5 2592echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2593whose name does not start with the host triplet. If you think this 2594configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2595ac_tool_warned=yes ;; 2596esac 2597 CC=$ac_ct_CC 2598 fi 2599else 2600 CC="$ac_cv_prog_CC" 2601fi 2602 2603if test -z "$CC"; then 2604 if test -n "$ac_tool_prefix"; then 2605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2606set dummy ${ac_tool_prefix}cc; ac_word=$2 2607{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2609if test "${ac_cv_prog_CC+set}" = set; then 2610 echo $ECHO_N "(cached) $ECHO_C" >&6 2611else 2612 if test -n "$CC"; then 2613 ac_cv_prog_CC="$CC" # Let the user override the test. 2614else 2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2616for as_dir in $PATH 2617do 2618 IFS=$as_save_IFS 2619 test -z "$as_dir" && as_dir=. 2620 for ac_exec_ext in '' $ac_executable_extensions; do 2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2622 ac_cv_prog_CC="${ac_tool_prefix}cc" 2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2624 break 2 2625 fi 2626done 2627done 2628IFS=$as_save_IFS 2629 2630fi 2631fi 2632CC=$ac_cv_prog_CC 2633if test -n "$CC"; then 2634 { echo "$as_me:$LINENO: result: $CC" >&5 2635echo "${ECHO_T}$CC" >&6; } 2636else 2637 { echo "$as_me:$LINENO: result: no" >&5 2638echo "${ECHO_T}no" >&6; } 2639fi 2640 2641 2642 fi 2643fi 2644if test -z "$CC"; then 2645 # Extract the first word of "cc", so it can be a program name with args. 2646set dummy cc; ac_word=$2 2647{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2649if test "${ac_cv_prog_CC+set}" = set; then 2650 echo $ECHO_N "(cached) $ECHO_C" >&6 2651else 2652 if test -n "$CC"; then 2653 ac_cv_prog_CC="$CC" # Let the user override the test. 2654else 2655 ac_prog_rejected=no 2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2657for as_dir in $PATH 2658do 2659 IFS=$as_save_IFS 2660 test -z "$as_dir" && as_dir=. 2661 for ac_exec_ext in '' $ac_executable_extensions; do 2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2663 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2664 ac_prog_rejected=yes 2665 continue 2666 fi 2667 ac_cv_prog_CC="cc" 2668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2669 break 2 2670 fi 2671done 2672done 2673IFS=$as_save_IFS 2674 2675if test $ac_prog_rejected = yes; then 2676 # We found a bogon in the path, so make sure we never use it. 2677 set dummy $ac_cv_prog_CC 2678 shift 2679 if test $# != 0; then 2680 # We chose a different compiler from the bogus one. 2681 # However, it has the same basename, so the bogon will be chosen 2682 # first if we set CC to just the basename; use the full file name. 2683 shift 2684 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2685 fi 2686fi 2687fi 2688fi 2689CC=$ac_cv_prog_CC 2690if test -n "$CC"; then 2691 { echo "$as_me:$LINENO: result: $CC" >&5 2692echo "${ECHO_T}$CC" >&6; } 2693else 2694 { echo "$as_me:$LINENO: result: no" >&5 2695echo "${ECHO_T}no" >&6; } 2696fi 2697 2698 2699fi 2700if test -z "$CC"; then 2701 if test -n "$ac_tool_prefix"; then 2702 for ac_prog in cl.exe 2703 do 2704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2705set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2706{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2708if test "${ac_cv_prog_CC+set}" = set; then 2709 echo $ECHO_N "(cached) $ECHO_C" >&6 2710else 2711 if test -n "$CC"; then 2712 ac_cv_prog_CC="$CC" # Let the user override the test. 2713else 2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715for as_dir in $PATH 2716do 2717 IFS=$as_save_IFS 2718 test -z "$as_dir" && as_dir=. 2719 for ac_exec_ext in '' $ac_executable_extensions; do 2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2723 break 2 2724 fi 2725done 2726done 2727IFS=$as_save_IFS 2728 2729fi 2730fi 2731CC=$ac_cv_prog_CC 2732if test -n "$CC"; then 2733 { echo "$as_me:$LINENO: result: $CC" >&5 2734echo "${ECHO_T}$CC" >&6; } 2735else 2736 { echo "$as_me:$LINENO: result: no" >&5 2737echo "${ECHO_T}no" >&6; } 2738fi 2739 2740 2741 test -n "$CC" && break 2742 done 2743fi 2744if test -z "$CC"; then 2745 ac_ct_CC=$CC 2746 for ac_prog in cl.exe 2747do 2748 # Extract the first word of "$ac_prog", so it can be a program name with args. 2749set dummy $ac_prog; ac_word=$2 2750{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2752if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2753 echo $ECHO_N "(cached) $ECHO_C" >&6 2754else 2755 if test -n "$ac_ct_CC"; then 2756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2757else 2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2759for as_dir in $PATH 2760do 2761 IFS=$as_save_IFS 2762 test -z "$as_dir" && as_dir=. 2763 for ac_exec_ext in '' $ac_executable_extensions; do 2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2765 ac_cv_prog_ac_ct_CC="$ac_prog" 2766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2767 break 2 2768 fi 2769done 2770done 2771IFS=$as_save_IFS 2772 2773fi 2774fi 2775ac_ct_CC=$ac_cv_prog_ac_ct_CC 2776if test -n "$ac_ct_CC"; then 2777 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2778echo "${ECHO_T}$ac_ct_CC" >&6; } 2779else 2780 { echo "$as_me:$LINENO: result: no" >&5 2781echo "${ECHO_T}no" >&6; } 2782fi 2783 2784 2785 test -n "$ac_ct_CC" && break 2786done 2787 2788 if test "x$ac_ct_CC" = x; then 2789 CC="" 2790 else 2791 case $cross_compiling:$ac_tool_warned in 2792yes:) 2793{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2794whose name does not start with the host triplet. If you think this 2795configuration is useful to you, please write to autoconf@gnu.org." >&5 2796echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2797whose name does not start with the host triplet. If you think this 2798configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2799ac_tool_warned=yes ;; 2800esac 2801 CC=$ac_ct_CC 2802 fi 2803fi 2804 2805fi 2806 2807 2808test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2809See \`config.log' for more details." >&5 2810echo "$as_me: error: no acceptable C compiler found in \$PATH 2811See \`config.log' for more details." >&2;} 2812 { (exit 1); exit 1; }; } 2813 2814# Provide some information about the compiler. 2815echo "$as_me:$LINENO: checking for C compiler version" >&5 2816ac_compiler=`set X $ac_compile; echo $2` 2817{ (ac_try="$ac_compiler --version >&5" 2818case "(($ac_try" in 2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2820 *) ac_try_echo=$ac_try;; 2821esac 2822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2823 (eval "$ac_compiler --version >&5") 2>&5 2824 ac_status=$? 2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2826 (exit $ac_status); } 2827{ (ac_try="$ac_compiler -v >&5" 2828case "(($ac_try" in 2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2830 *) ac_try_echo=$ac_try;; 2831esac 2832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2833 (eval "$ac_compiler -v >&5") 2>&5 2834 ac_status=$? 2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2836 (exit $ac_status); } 2837{ (ac_try="$ac_compiler -V >&5" 2838case "(($ac_try" in 2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2840 *) ac_try_echo=$ac_try;; 2841esac 2842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2843 (eval "$ac_compiler -V >&5") 2>&5 2844 ac_status=$? 2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2846 (exit $ac_status); } 2847 2848cat >conftest.$ac_ext <<_ACEOF 2849/* confdefs.h. */ 2850_ACEOF 2851cat confdefs.h >>conftest.$ac_ext 2852cat >>conftest.$ac_ext <<_ACEOF 2853/* end confdefs.h. */ 2854 2855int 2856main () 2857{ 2858 2859 ; 2860 return 0; 2861} 2862_ACEOF 2863ac_clean_files_save=$ac_clean_files 2864ac_clean_files="$ac_clean_files a.out a.exe b.out" 2865# Try to create an executable without -o first, disregard a.out. 2866# It will help us diagnose broken compilers, and finding out an intuition 2867# of exeext. 2868{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2869echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2870ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2871# 2872# List of possible output files, starting from the most likely. 2873# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2874# only as a last resort. b.out is created by i960 compilers. 2875ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2876# 2877# The IRIX 6 linker writes into existing files which may not be 2878# executable, retaining their permissions. Remove them first so a 2879# subsequent execution test works. 2880ac_rmfiles= 2881for ac_file in $ac_files 2882do 2883 case $ac_file in 2884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2885 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2886 esac 2887done 2888rm -f $ac_rmfiles 2889 2890if { (ac_try="$ac_link_default" 2891case "(($ac_try" in 2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2893 *) ac_try_echo=$ac_try;; 2894esac 2895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2896 (eval "$ac_link_default") 2>&5 2897 ac_status=$? 2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2899 (exit $ac_status); }; then 2900 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2901# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2902# in a Makefile. We should not override ac_cv_exeext if it was cached, 2903# so that the user can short-circuit this test for compilers unknown to 2904# Autoconf. 2905for ac_file in $ac_files '' 2906do 2907 test -f "$ac_file" || continue 2908 case $ac_file in 2909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2910 ;; 2911 [ab].out ) 2912 # We found the default executable, but exeext='' is most 2913 # certainly right. 2914 break;; 2915 *.* ) 2916 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2917 then :; else 2918 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2919 fi 2920 # We set ac_cv_exeext here because the later test for it is not 2921 # safe: cross compilers may not add the suffix if given an `-o' 2922 # argument, so we may need to know it at that point already. 2923 # Even if this section looks crufty: it has the advantage of 2924 # actually working. 2925 break;; 2926 * ) 2927 break;; 2928 esac 2929done 2930test "$ac_cv_exeext" = no && ac_cv_exeext= 2931 2932else 2933 ac_file='' 2934fi 2935 2936{ echo "$as_me:$LINENO: result: $ac_file" >&5 2937echo "${ECHO_T}$ac_file" >&6; } 2938if test -z "$ac_file"; then 2939 echo "$as_me: failed program was:" >&5 2940sed 's/^/| /' conftest.$ac_ext >&5 2941 2942{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2943See \`config.log' for more details." >&5 2944echo "$as_me: error: C compiler cannot create executables 2945See \`config.log' for more details." >&2;} 2946 { (exit 77); exit 77; }; } 2947fi 2948 2949ac_exeext=$ac_cv_exeext 2950 2951# Check that the compiler produces executables we can run. If not, either 2952# the compiler is broken, or we cross compile. 2953{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2954echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2955# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2956# If not cross compiling, check that we can run a simple program. 2957if test "$cross_compiling" != yes; then 2958 if { ac_try='./$ac_file' 2959 { (case "(($ac_try" in 2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2961 *) ac_try_echo=$ac_try;; 2962esac 2963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2964 (eval "$ac_try") 2>&5 2965 ac_status=$? 2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2967 (exit $ac_status); }; }; then 2968 cross_compiling=no 2969 else 2970 if test "$cross_compiling" = maybe; then 2971 cross_compiling=yes 2972 else 2973 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2974If you meant to cross compile, use \`--host'. 2975See \`config.log' for more details." >&5 2976echo "$as_me: error: cannot run C compiled programs. 2977If you meant to cross compile, use \`--host'. 2978See \`config.log' for more details." >&2;} 2979 { (exit 1); exit 1; }; } 2980 fi 2981 fi 2982fi 2983{ echo "$as_me:$LINENO: result: yes" >&5 2984echo "${ECHO_T}yes" >&6; } 2985 2986rm -f a.out a.exe conftest$ac_cv_exeext b.out 2987ac_clean_files=$ac_clean_files_save 2988# Check that the compiler produces executables we can run. If not, either 2989# the compiler is broken, or we cross compile. 2990{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2991echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2992{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2993echo "${ECHO_T}$cross_compiling" >&6; } 2994 2995{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2996echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2997if { (ac_try="$ac_link" 2998case "(($ac_try" in 2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3000 *) ac_try_echo=$ac_try;; 3001esac 3002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3003 (eval "$ac_link") 2>&5 3004 ac_status=$? 3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3006 (exit $ac_status); }; then 3007 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3008# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3009# work properly (i.e., refer to `conftest.exe'), while it won't with 3010# `rm'. 3011for ac_file in conftest.exe conftest conftest.*; do 3012 test -f "$ac_file" || continue 3013 case $ac_file in 3014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3015 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3016 break;; 3017 * ) break;; 3018 esac 3019done 3020else 3021 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3022See \`config.log' for more details." >&5 3023echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3024See \`config.log' for more details." >&2;} 3025 { (exit 1); exit 1; }; } 3026fi 3027 3028rm -f conftest$ac_cv_exeext 3029{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3030echo "${ECHO_T}$ac_cv_exeext" >&6; } 3031 3032rm -f conftest.$ac_ext 3033EXEEXT=$ac_cv_exeext 3034ac_exeext=$EXEEXT 3035{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3036echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3037if test "${ac_cv_objext+set}" = set; then 3038 echo $ECHO_N "(cached) $ECHO_C" >&6 3039else 3040 cat >conftest.$ac_ext <<_ACEOF 3041/* confdefs.h. */ 3042_ACEOF 3043cat confdefs.h >>conftest.$ac_ext 3044cat >>conftest.$ac_ext <<_ACEOF 3045/* end confdefs.h. */ 3046 3047int 3048main () 3049{ 3050 3051 ; 3052 return 0; 3053} 3054_ACEOF 3055rm -f conftest.o conftest.obj 3056if { (ac_try="$ac_compile" 3057case "(($ac_try" in 3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3059 *) ac_try_echo=$ac_try;; 3060esac 3061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3062 (eval "$ac_compile") 2>&5 3063 ac_status=$? 3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3065 (exit $ac_status); }; then 3066 for ac_file in conftest.o conftest.obj conftest.*; do 3067 test -f "$ac_file" || continue; 3068 case $ac_file in 3069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3070 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3071 break;; 3072 esac 3073done 3074else 3075 echo "$as_me: failed program was:" >&5 3076sed 's/^/| /' conftest.$ac_ext >&5 3077 3078{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3079See \`config.log' for more details." >&5 3080echo "$as_me: error: cannot compute suffix of object files: cannot compile 3081See \`config.log' for more details." >&2;} 3082 { (exit 1); exit 1; }; } 3083fi 3084 3085rm -f conftest.$ac_cv_objext conftest.$ac_ext 3086fi 3087{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3088echo "${ECHO_T}$ac_cv_objext" >&6; } 3089OBJEXT=$ac_cv_objext 3090ac_objext=$OBJEXT 3091{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3092echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3093if test "${ac_cv_c_compiler_gnu+set}" = set; then 3094 echo $ECHO_N "(cached) $ECHO_C" >&6 3095else 3096 cat >conftest.$ac_ext <<_ACEOF 3097/* confdefs.h. */ 3098_ACEOF 3099cat confdefs.h >>conftest.$ac_ext 3100cat >>conftest.$ac_ext <<_ACEOF 3101/* end confdefs.h. */ 3102 3103int 3104main () 3105{ 3106#ifndef __GNUC__ 3107 choke me 3108#endif 3109 3110 ; 3111 return 0; 3112} 3113_ACEOF 3114rm -f conftest.$ac_objext 3115if { (ac_try="$ac_compile" 3116case "(($ac_try" in 3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3118 *) ac_try_echo=$ac_try;; 3119esac 3120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3121 (eval "$ac_compile") 2>conftest.er1 3122 ac_status=$? 3123 grep -v '^ *+' conftest.er1 >conftest.err 3124 rm -f conftest.er1 3125 cat conftest.err >&5 3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3127 (exit $ac_status); } && { 3128 test -z "$ac_c_werror_flag" || 3129 test ! -s conftest.err 3130 } && test -s conftest.$ac_objext; then 3131 ac_compiler_gnu=yes 3132else 3133 echo "$as_me: failed program was:" >&5 3134sed 's/^/| /' conftest.$ac_ext >&5 3135 3136 ac_compiler_gnu=no 3137fi 3138 3139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3140ac_cv_c_compiler_gnu=$ac_compiler_gnu 3141 3142fi 3143{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3144echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3145GCC=`test $ac_compiler_gnu = yes && echo yes` 3146ac_test_CFLAGS=${CFLAGS+set} 3147ac_save_CFLAGS=$CFLAGS 3148{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3149echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3150if test "${ac_cv_prog_cc_g+set}" = set; then 3151 echo $ECHO_N "(cached) $ECHO_C" >&6 3152else 3153 ac_save_c_werror_flag=$ac_c_werror_flag 3154 ac_c_werror_flag=yes 3155 ac_cv_prog_cc_g=no 3156 CFLAGS="-g" 3157 cat >conftest.$ac_ext <<_ACEOF 3158/* confdefs.h. */ 3159_ACEOF 3160cat confdefs.h >>conftest.$ac_ext 3161cat >>conftest.$ac_ext <<_ACEOF 3162/* end confdefs.h. */ 3163 3164int 3165main () 3166{ 3167 3168 ; 3169 return 0; 3170} 3171_ACEOF 3172rm -f conftest.$ac_objext 3173if { (ac_try="$ac_compile" 3174case "(($ac_try" in 3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3176 *) ac_try_echo=$ac_try;; 3177esac 3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3179 (eval "$ac_compile") 2>conftest.er1 3180 ac_status=$? 3181 grep -v '^ *+' conftest.er1 >conftest.err 3182 rm -f conftest.er1 3183 cat conftest.err >&5 3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3185 (exit $ac_status); } && { 3186 test -z "$ac_c_werror_flag" || 3187 test ! -s conftest.err 3188 } && test -s conftest.$ac_objext; then 3189 ac_cv_prog_cc_g=yes 3190else 3191 echo "$as_me: failed program was:" >&5 3192sed 's/^/| /' conftest.$ac_ext >&5 3193 3194 CFLAGS="" 3195 cat >conftest.$ac_ext <<_ACEOF 3196/* confdefs.h. */ 3197_ACEOF 3198cat confdefs.h >>conftest.$ac_ext 3199cat >>conftest.$ac_ext <<_ACEOF 3200/* end confdefs.h. */ 3201 3202int 3203main () 3204{ 3205 3206 ; 3207 return 0; 3208} 3209_ACEOF 3210rm -f conftest.$ac_objext 3211if { (ac_try="$ac_compile" 3212case "(($ac_try" in 3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3214 *) ac_try_echo=$ac_try;; 3215esac 3216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3217 (eval "$ac_compile") 2>conftest.er1 3218 ac_status=$? 3219 grep -v '^ *+' conftest.er1 >conftest.err 3220 rm -f conftest.er1 3221 cat conftest.err >&5 3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3223 (exit $ac_status); } && { 3224 test -z "$ac_c_werror_flag" || 3225 test ! -s conftest.err 3226 } && test -s conftest.$ac_objext; then 3227 : 3228else 3229 echo "$as_me: failed program was:" >&5 3230sed 's/^/| /' conftest.$ac_ext >&5 3231 3232 ac_c_werror_flag=$ac_save_c_werror_flag 3233 CFLAGS="-g" 3234 cat >conftest.$ac_ext <<_ACEOF 3235/* confdefs.h. */ 3236_ACEOF 3237cat confdefs.h >>conftest.$ac_ext 3238cat >>conftest.$ac_ext <<_ACEOF 3239/* end confdefs.h. */ 3240 3241int 3242main () 3243{ 3244 3245 ; 3246 return 0; 3247} 3248_ACEOF 3249rm -f conftest.$ac_objext 3250if { (ac_try="$ac_compile" 3251case "(($ac_try" in 3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3253 *) ac_try_echo=$ac_try;; 3254esac 3255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3256 (eval "$ac_compile") 2>conftest.er1 3257 ac_status=$? 3258 grep -v '^ *+' conftest.er1 >conftest.err 3259 rm -f conftest.er1 3260 cat conftest.err >&5 3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3262 (exit $ac_status); } && { 3263 test -z "$ac_c_werror_flag" || 3264 test ! -s conftest.err 3265 } && test -s conftest.$ac_objext; then 3266 ac_cv_prog_cc_g=yes 3267else 3268 echo "$as_me: failed program was:" >&5 3269sed 's/^/| /' conftest.$ac_ext >&5 3270 3271 3272fi 3273 3274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3275fi 3276 3277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3278fi 3279 3280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3281 ac_c_werror_flag=$ac_save_c_werror_flag 3282fi 3283{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3284echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3285if test "$ac_test_CFLAGS" = set; then 3286 CFLAGS=$ac_save_CFLAGS 3287elif test $ac_cv_prog_cc_g = yes; then 3288 if test "$GCC" = yes; then 3289 CFLAGS="-g -O2" 3290 else 3291 CFLAGS="-g" 3292 fi 3293else 3294 if test "$GCC" = yes; then 3295 CFLAGS="-O2" 3296 else 3297 CFLAGS= 3298 fi 3299fi 3300{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3301echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3302if test "${ac_cv_prog_cc_c89+set}" = set; then 3303 echo $ECHO_N "(cached) $ECHO_C" >&6 3304else 3305 ac_cv_prog_cc_c89=no 3306ac_save_CC=$CC 3307cat >conftest.$ac_ext <<_ACEOF 3308/* confdefs.h. */ 3309_ACEOF 3310cat confdefs.h >>conftest.$ac_ext 3311cat >>conftest.$ac_ext <<_ACEOF 3312/* end confdefs.h. */ 3313#include <stdarg.h> 3314#include <stdio.h> 3315#include <sys/types.h> 3316#include <sys/stat.h> 3317/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3318struct buf { int x; }; 3319FILE * (*rcsopen) (struct buf *, struct stat *, int); 3320static char *e (p, i) 3321 char **p; 3322 int i; 3323{ 3324 return p[i]; 3325} 3326static char *f (char * (*g) (char **, int), char **p, ...) 3327{ 3328 char *s; 3329 va_list v; 3330 va_start (v,p); 3331 s = g (p, va_arg (v,int)); 3332 va_end (v); 3333 return s; 3334} 3335 3336/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3337 function prototypes and stuff, but not '\xHH' hex character constants. 3338 These don't provoke an error unfortunately, instead are silently treated 3339 as 'x'. The following induces an error, until -std is added to get 3340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3341 array size at least. It's necessary to write '\x00'==0 to get something 3342 that's true only with -std. */ 3343int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3344 3345/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3346 inside strings and character constants. */ 3347#define FOO(x) 'x' 3348int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3349 3350int test (int i, double x); 3351struct s1 {int (*f) (int a);}; 3352struct s2 {int (*f) (double a);}; 3353int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3354int argc; 3355char **argv; 3356int 3357main () 3358{ 3359return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3360 ; 3361 return 0; 3362} 3363_ACEOF 3364for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3365 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3366do 3367 CC="$ac_save_CC $ac_arg" 3368 rm -f conftest.$ac_objext 3369if { (ac_try="$ac_compile" 3370case "(($ac_try" in 3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3372 *) ac_try_echo=$ac_try;; 3373esac 3374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3375 (eval "$ac_compile") 2>conftest.er1 3376 ac_status=$? 3377 grep -v '^ *+' conftest.er1 >conftest.err 3378 rm -f conftest.er1 3379 cat conftest.err >&5 3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3381 (exit $ac_status); } && { 3382 test -z "$ac_c_werror_flag" || 3383 test ! -s conftest.err 3384 } && test -s conftest.$ac_objext; then 3385 ac_cv_prog_cc_c89=$ac_arg 3386else 3387 echo "$as_me: failed program was:" >&5 3388sed 's/^/| /' conftest.$ac_ext >&5 3389 3390 3391fi 3392 3393rm -f core conftest.err conftest.$ac_objext 3394 test "x$ac_cv_prog_cc_c89" != "xno" && break 3395done 3396rm -f conftest.$ac_ext 3397CC=$ac_save_CC 3398 3399fi 3400# AC_CACHE_VAL 3401case "x$ac_cv_prog_cc_c89" in 3402 x) 3403 { echo "$as_me:$LINENO: result: none needed" >&5 3404echo "${ECHO_T}none needed" >&6; } ;; 3405 xno) 3406 { echo "$as_me:$LINENO: result: unsupported" >&5 3407echo "${ECHO_T}unsupported" >&6; } ;; 3408 *) 3409 CC="$CC $ac_cv_prog_cc_c89" 3410 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3411echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3412esac 3413 3414 3415ac_ext=c 3416ac_cpp='$CPP $CPPFLAGS' 3417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3419ac_compiler_gnu=$ac_cv_c_compiler_gnu 3420DEPDIR="${am__leading_dot}deps" 3421 3422ac_config_commands="$ac_config_commands depfiles" 3423 3424 3425am_make=${MAKE-make} 3426cat > confinc << 'END' 3427am__doit: 3428 @echo done 3429.PHONY: am__doit 3430END 3431# If we don't find an include directive, just comment out the code. 3432{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3433echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3434am__include="#" 3435am__quote= 3436_am_result=none 3437# First try GNU make style include. 3438echo "include confinc" > confmf 3439# We grep out `Entering directory' and `Leaving directory' 3440# messages which can occur if `w' ends up in MAKEFLAGS. 3441# In particular we don't look at `^make:' because GNU make might 3442# be invoked under some other name (usually "gmake"), in which 3443# case it prints its new name instead of `make'. 3444if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3445 am__include=include 3446 am__quote= 3447 _am_result=GNU 3448fi 3449# Now try BSD make style include. 3450if test "$am__include" = "#"; then 3451 echo '.include "confinc"' > confmf 3452 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3453 am__include=.include 3454 am__quote="\"" 3455 _am_result=BSD 3456 fi 3457fi 3458 3459 3460{ echo "$as_me:$LINENO: result: $_am_result" >&5 3461echo "${ECHO_T}$_am_result" >&6; } 3462rm -f confinc confmf 3463 3464# Check whether --enable-dependency-tracking was given. 3465if test "${enable_dependency_tracking+set}" = set; then 3466 enableval=$enable_dependency_tracking; 3467fi 3468 3469if test "x$enable_dependency_tracking" != xno; then 3470 am_depcomp="$ac_aux_dir/depcomp" 3471 AMDEPBACKSLASH='\' 3472fi 3473 3474 3475if test "x$enable_dependency_tracking" != xno; then 3476 AMDEP_TRUE= 3477 AMDEP_FALSE='#' 3478else 3479 AMDEP_TRUE='#' 3480 AMDEP_FALSE= 3481fi 3482 3483 3484 3485 3486depcc="$CC" am_compiler_list= 3487 3488{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3489echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3490if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3491 echo $ECHO_N "(cached) $ECHO_C" >&6 3492else 3493 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3494 # We make a subdir and do the tests there. Otherwise we can end up 3495 # making bogus files that we don't know about and never remove. For 3496 # instance it was reported that on HP-UX the gcc test will end up 3497 # making a dummy file named `D' -- because `-MD' means `put the output 3498 # in D'. 3499 mkdir conftest.dir 3500 # Copy depcomp to subdir because otherwise we won't find it if we're 3501 # using a relative directory. 3502 cp "$am_depcomp" conftest.dir 3503 cd conftest.dir 3504 # We will build objects and dependencies in a subdirectory because 3505 # it helps to detect inapplicable dependency modes. For instance 3506 # both Tru64's cc and ICC support -MD to output dependencies as a 3507 # side effect of compilation, but ICC will put the dependencies in 3508 # the current directory while Tru64 will put them in the object 3509 # directory. 3510 mkdir sub 3511 3512 am_cv_CC_dependencies_compiler_type=none 3513 if test "$am_compiler_list" = ""; then 3514 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3515 fi 3516 for depmode in $am_compiler_list; do 3517 # Setup a source with many dependencies, because some compilers 3518 # like to wrap large dependency lists on column 80 (with \), and 3519 # we should not choose a depcomp mode which is confused by this. 3520 # 3521 # We need to recreate these files for each test, as the compiler may 3522 # overwrite some of them when testing with obscure command lines. 3523 # This happens at least with the AIX C compiler. 3524 : > sub/conftest.c 3525 for i in 1 2 3 4 5 6; do 3526 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3527 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3528 # Solaris 8's {/usr,}/bin/sh. 3529 touch sub/conftst$i.h 3530 done 3531 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3532 3533 case $depmode in 3534 nosideeffect) 3535 # after this tag, mechanisms are not by side-effect, so they'll 3536 # only be used when explicitly requested 3537 if test "x$enable_dependency_tracking" = xyes; then 3538 continue 3539 else 3540 break 3541 fi 3542 ;; 3543 none) break ;; 3544 esac 3545 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3546 # mode. It turns out that the SunPro C++ compiler does not properly 3547 # handle `-M -o', and we need to detect this. 3548 if depmode=$depmode \ 3549 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3550 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3551 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3552 >/dev/null 2>conftest.err && 3553 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3554 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3555 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3556 # icc doesn't choke on unknown options, it will just issue warnings 3557 # or remarks (even with -Werror). So we grep stderr for any message 3558 # that says an option was ignored or not supported. 3559 # When given -MP, icc 7.0 and 7.1 complain thusly: 3560 # icc: Command line warning: ignoring option '-M'; no argument required 3561 # The diagnosis changed in icc 8.0: 3562 # icc: Command line remark: option '-MP' not supported 3563 if (grep 'ignoring option' conftest.err || 3564 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3565 am_cv_CC_dependencies_compiler_type=$depmode 3566 break 3567 fi 3568 fi 3569 done 3570 3571 cd .. 3572 rm -rf conftest.dir 3573else 3574 am_cv_CC_dependencies_compiler_type=none 3575fi 3576 3577fi 3578{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3579echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3580CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3581 3582 3583 3584if 3585 test "x$enable_dependency_tracking" != xno \ 3586 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3587 am__fastdepCC_TRUE= 3588 am__fastdepCC_FALSE='#' 3589else 3590 am__fastdepCC_TRUE='#' 3591 am__fastdepCC_FALSE= 3592fi 3593 3594 3595# Find a good install program. We prefer a C program (faster), 3596# so one script is as good as another. But avoid the broken or 3597# incompatible versions: 3598# SysV /etc/install, /usr/sbin/install 3599# SunOS /usr/etc/install 3600# IRIX /sbin/install 3601# AIX /bin/install 3602# AmigaOS /C/install, which installs bootblocks on floppy discs 3603# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3604# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3605# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3606# OS/2's system install, which has a completely different semantic 3607# ./install, which can be erroneously created by make from ./install.sh. 3608{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3609echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3610if test -z "$INSTALL"; then 3611if test "${ac_cv_path_install+set}" = set; then 3612 echo $ECHO_N "(cached) $ECHO_C" >&6 3613else 3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3615for as_dir in $PATH 3616do 3617 IFS=$as_save_IFS 3618 test -z "$as_dir" && as_dir=. 3619 # Account for people who put trailing slashes in PATH elements. 3620case $as_dir/ in 3621 ./ | .// | /cC/* | \ 3622 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3623 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3624 /usr/ucb/* ) ;; 3625 *) 3626 # OSF1 and SCO ODT 3.0 have their own names for install. 3627 # Don't use installbsd from OSF since it installs stuff as root 3628 # by default. 3629 for ac_prog in ginstall scoinst install; do 3630 for ac_exec_ext in '' $ac_executable_extensions; do 3631 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3632 if test $ac_prog = install && 3633 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3634 # AIX install. It has an incompatible calling convention. 3635 : 3636 elif test $ac_prog = install && 3637 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3638 # program-specific install script used by HP pwplus--don't use. 3639 : 3640 else 3641 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3642 break 3 3643 fi 3644 fi 3645 done 3646 done 3647 ;; 3648esac 3649done 3650IFS=$as_save_IFS 3651 3652 3653fi 3654 if test "${ac_cv_path_install+set}" = set; then 3655 INSTALL=$ac_cv_path_install 3656 else 3657 # As a last resort, use the slow shell script. Don't cache a 3658 # value for INSTALL within a source directory, because that will 3659 # break other packages using the cache if that directory is 3660 # removed, or if the value is a relative name. 3661 INSTALL=$ac_install_sh 3662 fi 3663fi 3664{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3665echo "${ECHO_T}$INSTALL" >&6; } 3666 3667# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3668# It thinks the first close brace ends the variable substitution. 3669test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3670 3671test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3672 3673test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3674 3675{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 3676echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 3677LN_S=$as_ln_s 3678if test "$LN_S" = "ln -s"; then 3679 { echo "$as_me:$LINENO: result: yes" >&5 3680echo "${ECHO_T}yes" >&6; } 3681else 3682 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3683echo "${ECHO_T}no, using $LN_S" >&6; } 3684fi 3685 3686 3687 3688# Check whether --enable-shared was given. 3689if test "${enable_shared+set}" = set; then 3690 enableval=$enable_shared; p=${PACKAGE-default} 3691 case $enableval in 3692 yes) enable_shared=yes ;; 3693 no) enable_shared=no ;; 3694 *) 3695 enable_shared=no 3696 # Look at the argument we got. We use all the common list separators. 3697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3698 for pkg in $enableval; do 3699 IFS="$lt_save_ifs" 3700 if test "X$pkg" = "X$p"; then 3701 enable_shared=yes 3702 fi 3703 done 3704 IFS="$lt_save_ifs" 3705 ;; 3706 esac 3707else 3708 enable_shared=yes 3709fi 3710 3711 3712# Check whether --enable-static was given. 3713if test "${enable_static+set}" = set; then 3714 enableval=$enable_static; p=${PACKAGE-default} 3715 case $enableval in 3716 yes) enable_static=yes ;; 3717 no) enable_static=no ;; 3718 *) 3719 enable_static=no 3720 # Look at the argument we got. We use all the common list separators. 3721 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3722 for pkg in $enableval; do 3723 IFS="$lt_save_ifs" 3724 if test "X$pkg" = "X$p"; then 3725 enable_static=yes 3726 fi 3727 done 3728 IFS="$lt_save_ifs" 3729 ;; 3730 esac 3731else 3732 enable_static=yes 3733fi 3734 3735 3736# Check whether --enable-fast-install was given. 3737if test "${enable_fast_install+set}" = set; then 3738 enableval=$enable_fast_install; p=${PACKAGE-default} 3739 case $enableval in 3740 yes) enable_fast_install=yes ;; 3741 no) enable_fast_install=no ;; 3742 *) 3743 enable_fast_install=no 3744 # Look at the argument we got. We use all the common list separators. 3745 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3746 for pkg in $enableval; do 3747 IFS="$lt_save_ifs" 3748 if test "X$pkg" = "X$p"; then 3749 enable_fast_install=yes 3750 fi 3751 done 3752 IFS="$lt_save_ifs" 3753 ;; 3754 esac 3755else 3756 enable_fast_install=yes 3757fi 3758 3759 3760# Make sure we can run config.sub. 3761$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3762 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3763echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3764 { (exit 1); exit 1; }; } 3765 3766{ echo "$as_me:$LINENO: checking build system type" >&5 3767echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3768if test "${ac_cv_build+set}" = set; then 3769 echo $ECHO_N "(cached) $ECHO_C" >&6 3770else 3771 ac_build_alias=$build_alias 3772test "x$ac_build_alias" = x && 3773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3774test "x$ac_build_alias" = x && 3775 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3776echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3777 { (exit 1); exit 1; }; } 3778ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3779 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3780echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3781 { (exit 1); exit 1; }; } 3782 3783fi 3784{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3785echo "${ECHO_T}$ac_cv_build" >&6; } 3786case $ac_cv_build in 3787*-*-*) ;; 3788*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3789echo "$as_me: error: invalid value of canonical build" >&2;} 3790 { (exit 1); exit 1; }; };; 3791esac 3792build=$ac_cv_build 3793ac_save_IFS=$IFS; IFS='-' 3794set x $ac_cv_build 3795shift 3796build_cpu=$1 3797build_vendor=$2 3798shift; shift 3799# Remember, the first character of IFS is used to create $*, 3800# except with old shells: 3801build_os=$* 3802IFS=$ac_save_IFS 3803case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3804 3805 3806{ echo "$as_me:$LINENO: checking host system type" >&5 3807echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3808if test "${ac_cv_host+set}" = set; then 3809 echo $ECHO_N "(cached) $ECHO_C" >&6 3810else 3811 if test "x$host_alias" = x; then 3812 ac_cv_host=$ac_cv_build 3813else 3814 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3816echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3817 { (exit 1); exit 1; }; } 3818fi 3819 3820fi 3821{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3822echo "${ECHO_T}$ac_cv_host" >&6; } 3823case $ac_cv_host in 3824*-*-*) ;; 3825*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3826echo "$as_me: error: invalid value of canonical host" >&2;} 3827 { (exit 1); exit 1; }; };; 3828esac 3829host=$ac_cv_host 3830ac_save_IFS=$IFS; IFS='-' 3831set x $ac_cv_host 3832shift 3833host_cpu=$1 3834host_vendor=$2 3835shift; shift 3836# Remember, the first character of IFS is used to create $*, 3837# except with old shells: 3838host_os=$* 3839IFS=$ac_save_IFS 3840case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3841 3842 3843{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3844echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3845if test "${lt_cv_path_SED+set}" = set; then 3846 echo $ECHO_N "(cached) $ECHO_C" >&6 3847else 3848 # Loop through the user's path and test for sed and gsed. 3849# Then use that list of sed's as ones to test for truncation. 3850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3851for as_dir in $PATH 3852do 3853 IFS=$as_save_IFS 3854 test -z "$as_dir" && as_dir=. 3855 for lt_ac_prog in sed gsed; do 3856 for ac_exec_ext in '' $ac_executable_extensions; do 3857 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3858 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3859 fi 3860 done 3861 done 3862done 3863IFS=$as_save_IFS 3864lt_ac_max=0 3865lt_ac_count=0 3866# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3867# along with /bin/sed that truncates output. 3868for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3869 test ! -f $lt_ac_sed && continue 3870 cat /dev/null > conftest.in 3871 lt_ac_count=0 3872 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3873 # Check for GNU sed and select it if it is found. 3874 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3875 lt_cv_path_SED=$lt_ac_sed 3876 break 3877 fi 3878 while true; do 3879 cat conftest.in conftest.in >conftest.tmp 3880 mv conftest.tmp conftest.in 3881 cp conftest.in conftest.nl 3882 echo >>conftest.nl 3883 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3884 cmp -s conftest.out conftest.nl || break 3885 # 10000 chars as input seems more than enough 3886 test $lt_ac_count -gt 10 && break 3887 lt_ac_count=`expr $lt_ac_count + 1` 3888 if test $lt_ac_count -gt $lt_ac_max; then 3889 lt_ac_max=$lt_ac_count 3890 lt_cv_path_SED=$lt_ac_sed 3891 fi 3892 done 3893done 3894 3895fi 3896 3897SED=$lt_cv_path_SED 3898 3899{ echo "$as_me:$LINENO: result: $SED" >&5 3900echo "${ECHO_T}$SED" >&6; } 3901 3902{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3903echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3904if test "${ac_cv_path_GREP+set}" = set; then 3905 echo $ECHO_N "(cached) $ECHO_C" >&6 3906else 3907 # Extract the first word of "grep ggrep" to use in msg output 3908if test -z "$GREP"; then 3909set dummy grep ggrep; ac_prog_name=$2 3910if test "${ac_cv_path_GREP+set}" = set; then 3911 echo $ECHO_N "(cached) $ECHO_C" >&6 3912else 3913 ac_path_GREP_found=false 3914# Loop through the user's path and test for each of PROGNAME-LIST 3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3916for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3917do 3918 IFS=$as_save_IFS 3919 test -z "$as_dir" && as_dir=. 3920 for ac_prog in grep ggrep; do 3921 for ac_exec_ext in '' $ac_executable_extensions; do 3922 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3923 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3924 # Check for GNU ac_path_GREP and select it if it is found. 3925 # Check for GNU $ac_path_GREP 3926case `"$ac_path_GREP" --version 2>&1` in 3927*GNU*) 3928 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3929*) 3930 ac_count=0 3931 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3932 while : 3933 do 3934 cat "conftest.in" "conftest.in" >"conftest.tmp" 3935 mv "conftest.tmp" "conftest.in" 3936 cp "conftest.in" "conftest.nl" 3937 echo 'GREP' >> "conftest.nl" 3938 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3940 ac_count=`expr $ac_count + 1` 3941 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3942 # Best one so far, save it but keep looking for a better one 3943 ac_cv_path_GREP="$ac_path_GREP" 3944 ac_path_GREP_max=$ac_count 3945 fi 3946 # 10*(2^10) chars as input seems more than enough 3947 test $ac_count -gt 10 && break 3948 done 3949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3950esac 3951 3952 3953 $ac_path_GREP_found && break 3 3954 done 3955done 3956 3957done 3958IFS=$as_save_IFS 3959 3960 3961fi 3962 3963GREP="$ac_cv_path_GREP" 3964if test -z "$GREP"; then 3965 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3966echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3967 { (exit 1); exit 1; }; } 3968fi 3969 3970else 3971 ac_cv_path_GREP=$GREP 3972fi 3973 3974 3975fi 3976{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3977echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3978 GREP="$ac_cv_path_GREP" 3979 3980 3981{ echo "$as_me:$LINENO: checking for egrep" >&5 3982echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3983if test "${ac_cv_path_EGREP+set}" = set; then 3984 echo $ECHO_N "(cached) $ECHO_C" >&6 3985else 3986 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3987 then ac_cv_path_EGREP="$GREP -E" 3988 else 3989 # Extract the first word of "egrep" to use in msg output 3990if test -z "$EGREP"; then 3991set dummy egrep; ac_prog_name=$2 3992if test "${ac_cv_path_EGREP+set}" = set; then 3993 echo $ECHO_N "(cached) $ECHO_C" >&6 3994else 3995 ac_path_EGREP_found=false 3996# Loop through the user's path and test for each of PROGNAME-LIST 3997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3998for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3999do 4000 IFS=$as_save_IFS 4001 test -z "$as_dir" && as_dir=. 4002 for ac_prog in egrep; do 4003 for ac_exec_ext in '' $ac_executable_extensions; do 4004 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4005 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4006 # Check for GNU ac_path_EGREP and select it if it is found. 4007 # Check for GNU $ac_path_EGREP 4008case `"$ac_path_EGREP" --version 2>&1` in 4009*GNU*) 4010 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4011*) 4012 ac_count=0 4013 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4014 while : 4015 do 4016 cat "conftest.in" "conftest.in" >"conftest.tmp" 4017 mv "conftest.tmp" "conftest.in" 4018 cp "conftest.in" "conftest.nl" 4019 echo 'EGREP' >> "conftest.nl" 4020 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4022 ac_count=`expr $ac_count + 1` 4023 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4024 # Best one so far, save it but keep looking for a better one 4025 ac_cv_path_EGREP="$ac_path_EGREP" 4026 ac_path_EGREP_max=$ac_count 4027 fi 4028 # 10*(2^10) chars as input seems more than enough 4029 test $ac_count -gt 10 && break 4030 done 4031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4032esac 4033 4034 4035 $ac_path_EGREP_found && break 3 4036 done 4037done 4038 4039done 4040IFS=$as_save_IFS 4041 4042 4043fi 4044 4045EGREP="$ac_cv_path_EGREP" 4046if test -z "$EGREP"; then 4047 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4048echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4049 { (exit 1); exit 1; }; } 4050fi 4051 4052else 4053 ac_cv_path_EGREP=$EGREP 4054fi 4055 4056 4057 fi 4058fi 4059{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4060echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4061 EGREP="$ac_cv_path_EGREP" 4062 4063 4064 4065# Check whether --with-gnu-ld was given. 4066if test "${with_gnu_ld+set}" = set; then 4067 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4068else 4069 with_gnu_ld=no 4070fi 4071 4072ac_prog=ld 4073if test "$GCC" = yes; then 4074 # Check if gcc -print-prog-name=ld gives a path. 4075 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4076echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4077 case $host in 4078 *-*-mingw*) 4079 # gcc leaves a trailing carriage return which upsets mingw 4080 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4081 *) 4082 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4083 esac 4084 case $ac_prog in 4085 # Accept absolute paths. 4086 [\\/]* | ?:[\\/]*) 4087 re_direlt='/[^/][^/]*/\.\./' 4088 # Canonicalize the pathname of ld 4089 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4090 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4091 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4092 done 4093 test -z "$LD" && LD="$ac_prog" 4094 ;; 4095 "") 4096 # If it fails, then pretend we aren't using GCC. 4097 ac_prog=ld 4098 ;; 4099 *) 4100 # If it is relative, then search for the first ld in PATH. 4101 with_gnu_ld=unknown 4102 ;; 4103 esac 4104elif test "$with_gnu_ld" = yes; then 4105 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4106echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4107else 4108 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4109echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4110fi 4111if test "${lt_cv_path_LD+set}" = set; then 4112 echo $ECHO_N "(cached) $ECHO_C" >&6 4113else 4114 if test -z "$LD"; then 4115 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4116 for ac_dir in $PATH; do 4117 IFS="$lt_save_ifs" 4118 test -z "$ac_dir" && ac_dir=. 4119 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4120 lt_cv_path_LD="$ac_dir/$ac_prog" 4121 # Check to see if the program is GNU ld. I'd rather use --version, 4122 # but apparently some variants of GNU ld only accept -v. 4123 # Break only if it was the GNU/non-GNU ld that we prefer. 4124 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4125 *GNU* | *'with BFD'*) 4126 test "$with_gnu_ld" != no && break 4127 ;; 4128 *) 4129 test "$with_gnu_ld" != yes && break 4130 ;; 4131 esac 4132 fi 4133 done 4134 IFS="$lt_save_ifs" 4135else 4136 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4137fi 4138fi 4139 4140LD="$lt_cv_path_LD" 4141if test -n "$LD"; then 4142 { echo "$as_me:$LINENO: result: $LD" >&5 4143echo "${ECHO_T}$LD" >&6; } 4144else 4145 { echo "$as_me:$LINENO: result: no" >&5 4146echo "${ECHO_T}no" >&6; } 4147fi 4148test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4149echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4150 { (exit 1); exit 1; }; } 4151{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4152echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4153if test "${lt_cv_prog_gnu_ld+set}" = set; then 4154 echo $ECHO_N "(cached) $ECHO_C" >&6 4155else 4156 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4157case `$LD -v 2>&1 </dev/null` in 4158*GNU* | *'with BFD'*) 4159 lt_cv_prog_gnu_ld=yes 4160 ;; 4161*) 4162 lt_cv_prog_gnu_ld=no 4163 ;; 4164esac 4165fi 4166{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4167echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4168with_gnu_ld=$lt_cv_prog_gnu_ld 4169 4170 4171{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4172echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4173if test "${lt_cv_ld_reload_flag+set}" = set; then 4174 echo $ECHO_N "(cached) $ECHO_C" >&6 4175else 4176 lt_cv_ld_reload_flag='-r' 4177fi 4178{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4179echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4180reload_flag=$lt_cv_ld_reload_flag 4181case $reload_flag in 4182"" | " "*) ;; 4183*) reload_flag=" $reload_flag" ;; 4184esac 4185reload_cmds='$LD$reload_flag -o $output$reload_objs' 4186case $host_os in 4187 darwin*) 4188 if test "$GCC" = yes; then 4189 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4190 else 4191 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4192 fi 4193 ;; 4194esac 4195 4196{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4197echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4198if test "${lt_cv_path_NM+set}" = set; then 4199 echo $ECHO_N "(cached) $ECHO_C" >&6 4200else 4201 if test -n "$NM"; then 4202 # Let the user override the test. 4203 lt_cv_path_NM="$NM" 4204else 4205 lt_nm_to_check="${ac_tool_prefix}nm" 4206 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4207 lt_nm_to_check="$lt_nm_to_check nm" 4208 fi 4209 for lt_tmp_nm in $lt_nm_to_check; do 4210 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4211 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4212 IFS="$lt_save_ifs" 4213 test -z "$ac_dir" && ac_dir=. 4214 tmp_nm="$ac_dir/$lt_tmp_nm" 4215 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4216 # Check to see if the nm accepts a BSD-compat flag. 4217 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4218 # nm: unknown option "B" ignored 4219 # Tru64's nm complains that /dev/null is an invalid object file 4220 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4221 */dev/null* | *'Invalid file or object type'*) 4222 lt_cv_path_NM="$tmp_nm -B" 4223 break 4224 ;; 4225 *) 4226 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4227 */dev/null*) 4228 lt_cv_path_NM="$tmp_nm -p" 4229 break 4230 ;; 4231 *) 4232 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4233 continue # so that we can try to find one that supports BSD flags 4234 ;; 4235 esac 4236 ;; 4237 esac 4238 fi 4239 done 4240 IFS="$lt_save_ifs" 4241 done 4242 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4243fi 4244fi 4245{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4246echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4247NM="$lt_cv_path_NM" 4248 4249{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4250echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4251if test "${lt_cv_deplibs_check_method+set}" = set; then 4252 echo $ECHO_N "(cached) $ECHO_C" >&6 4253else 4254 lt_cv_file_magic_cmd='$MAGIC_CMD' 4255lt_cv_file_magic_test_file= 4256lt_cv_deplibs_check_method='unknown' 4257# Need to set the preceding variable on all platforms that support 4258# interlibrary dependencies. 4259# 'none' -- dependencies not supported. 4260# `unknown' -- same as none, but documents that we really don't know. 4261# 'pass_all' -- all dependencies passed with no checks. 4262# 'test_compile' -- check by making test program. 4263# 'file_magic [[regex]]' -- check by looking for files in library path 4264# which responds to the $file_magic_cmd with a given extended regex. 4265# If you have `file' or equivalent on your system and you're not sure 4266# whether `pass_all' will *always* work, you probably want this one. 4267 4268case $host_os in 4269aix[4-9]*) 4270 lt_cv_deplibs_check_method=pass_all 4271 ;; 4272 4273beos*) 4274 lt_cv_deplibs_check_method=pass_all 4275 ;; 4276 4277bsdi[45]*) 4278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4279 lt_cv_file_magic_cmd='/usr/bin/file -L' 4280 lt_cv_file_magic_test_file=/shlib/libc.so 4281 ;; 4282 4283cygwin*) 4284 # func_win32_libid is a shell function defined in ltmain.sh 4285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4286 lt_cv_file_magic_cmd='func_win32_libid' 4287 ;; 4288 4289mingw* | pw32*) 4290 # Base MSYS/MinGW do not provide the 'file' command needed by 4291 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4292 # unless we find 'file', for example because we are cross-compiling. 4293 if ( file / ) >/dev/null 2>&1; then 4294 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4295 lt_cv_file_magic_cmd='func_win32_libid' 4296 else 4297 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4298 lt_cv_file_magic_cmd='$OBJDUMP -f' 4299 fi 4300 ;; 4301 4302darwin* | rhapsody*) 4303 lt_cv_deplibs_check_method=pass_all 4304 ;; 4305 4306freebsd* | dragonfly*) 4307 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4308 case $host_cpu in 4309 i*86 ) 4310 # Not sure whether the presence of OpenBSD here was a mistake. 4311 # Let's accept both of them until this is cleared up. 4312 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4313 lt_cv_file_magic_cmd=/usr/bin/file 4314 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4315 ;; 4316 esac 4317 else 4318 lt_cv_deplibs_check_method=pass_all 4319 fi 4320 ;; 4321 4322gnu*) 4323 lt_cv_deplibs_check_method=pass_all 4324 ;; 4325 4326hpux10.20* | hpux11*) 4327 lt_cv_file_magic_cmd=/usr/bin/file 4328 case $host_cpu in 4329 ia64*) 4330 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4331 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4332 ;; 4333 hppa*64*) 4334 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]' 4335 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4336 ;; 4337 *) 4338 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4339 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4340 ;; 4341 esac 4342 ;; 4343 4344interix[3-9]*) 4345 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4347 ;; 4348 4349irix5* | irix6* | nonstopux*) 4350 case $LD in 4351 *-32|*"-32 ") libmagic=32-bit;; 4352 *-n32|*"-n32 ") libmagic=N32;; 4353 *-64|*"-64 ") libmagic=64-bit;; 4354 *) libmagic=never-match;; 4355 esac 4356 lt_cv_deplibs_check_method=pass_all 4357 ;; 4358 4359# This must be Linux ELF. 4360linux* | k*bsd*-gnu) 4361 lt_cv_deplibs_check_method=pass_all 4362 ;; 4363 4364netbsd* | netbsdelf*-gnu) 4365 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4367 else 4368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4369 fi 4370 ;; 4371 4372newos6*) 4373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4374 lt_cv_file_magic_cmd=/usr/bin/file 4375 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4376 ;; 4377 4378nto-qnx*) 4379 lt_cv_deplibs_check_method=unknown 4380 ;; 4381 4382openbsd*) 4383 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4385 else 4386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4387 fi 4388 ;; 4389 4390osf3* | osf4* | osf5*) 4391 lt_cv_deplibs_check_method=pass_all 4392 ;; 4393 4394rdos*) 4395 lt_cv_deplibs_check_method=pass_all 4396 ;; 4397 4398solaris*) 4399 lt_cv_deplibs_check_method=pass_all 4400 ;; 4401 4402sysv4 | sysv4.3*) 4403 case $host_vendor in 4404 motorola) 4405 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]' 4406 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4407 ;; 4408 ncr) 4409 lt_cv_deplibs_check_method=pass_all 4410 ;; 4411 sequent) 4412 lt_cv_file_magic_cmd='/bin/file' 4413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4414 ;; 4415 sni) 4416 lt_cv_file_magic_cmd='/bin/file' 4417 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4418 lt_cv_file_magic_test_file=/lib/libc.so 4419 ;; 4420 siemens) 4421 lt_cv_deplibs_check_method=pass_all 4422 ;; 4423 pc) 4424 lt_cv_deplibs_check_method=pass_all 4425 ;; 4426 esac 4427 ;; 4428 4429sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4430 lt_cv_deplibs_check_method=pass_all 4431 ;; 4432esac 4433 4434fi 4435{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4436echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4437file_magic_cmd=$lt_cv_file_magic_cmd 4438deplibs_check_method=$lt_cv_deplibs_check_method 4439test -z "$deplibs_check_method" && deplibs_check_method=unknown 4440 4441 4442 4443 4444# If no C compiler was specified, use CC. 4445LTCC=${LTCC-"$CC"} 4446 4447# If no C compiler flags were specified, use CFLAGS. 4448LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4449 4450# Allow CC to be a program name with arguments. 4451compiler=$CC 4452 4453 4454# Check whether --enable-libtool-lock was given. 4455if test "${enable_libtool_lock+set}" = set; then 4456 enableval=$enable_libtool_lock; 4457fi 4458 4459test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4460 4461# Some flags need to be propagated to the compiler or linker for good 4462# libtool support. 4463case $host in 4464ia64-*-hpux*) 4465 # Find out which ABI we are using. 4466 echo 'int i;' > conftest.$ac_ext 4467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4468 (eval $ac_compile) 2>&5 4469 ac_status=$? 4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4471 (exit $ac_status); }; then 4472 case `/usr/bin/file conftest.$ac_objext` in 4473 *ELF-32*) 4474 HPUX_IA64_MODE="32" 4475 ;; 4476 *ELF-64*) 4477 HPUX_IA64_MODE="64" 4478 ;; 4479 esac 4480 fi 4481 rm -rf conftest* 4482 ;; 4483*-*-irix6*) 4484 # Find out which ABI we are using. 4485 echo '#line 4485 "configure"' > conftest.$ac_ext 4486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4487 (eval $ac_compile) 2>&5 4488 ac_status=$? 4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4490 (exit $ac_status); }; then 4491 if test "$lt_cv_prog_gnu_ld" = yes; then 4492 case `/usr/bin/file conftest.$ac_objext` in 4493 *32-bit*) 4494 LD="${LD-ld} -melf32bsmip" 4495 ;; 4496 *N32*) 4497 LD="${LD-ld} -melf32bmipn32" 4498 ;; 4499 *64-bit*) 4500 LD="${LD-ld} -melf64bmip" 4501 ;; 4502 esac 4503 else 4504 case `/usr/bin/file conftest.$ac_objext` in 4505 *32-bit*) 4506 LD="${LD-ld} -32" 4507 ;; 4508 *N32*) 4509 LD="${LD-ld} -n32" 4510 ;; 4511 *64-bit*) 4512 LD="${LD-ld} -64" 4513 ;; 4514 esac 4515 fi 4516 fi 4517 rm -rf conftest* 4518 ;; 4519 4520x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4521s390*-*linux*|sparc*-*linux*) 4522 # Find out which ABI we are using. 4523 echo 'int i;' > conftest.$ac_ext 4524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4525 (eval $ac_compile) 2>&5 4526 ac_status=$? 4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4528 (exit $ac_status); }; then 4529 case `/usr/bin/file conftest.o` in 4530 *32-bit*) 4531 case $host in 4532 x86_64-*kfreebsd*-gnu) 4533 LD="${LD-ld} -m elf_i386_fbsd" 4534 ;; 4535 x86_64-*linux*) 4536 LD="${LD-ld} -m elf_i386" 4537 ;; 4538 ppc64-*linux*|powerpc64-*linux*) 4539 LD="${LD-ld} -m elf32ppclinux" 4540 ;; 4541 s390x-*linux*) 4542 LD="${LD-ld} -m elf_s390" 4543 ;; 4544 sparc64-*linux*) 4545 LD="${LD-ld} -m elf32_sparc" 4546 ;; 4547 esac 4548 ;; 4549 *64-bit*) 4550 case $host in 4551 x86_64-*kfreebsd*-gnu) 4552 LD="${LD-ld} -m elf_x86_64_fbsd" 4553 ;; 4554 x86_64-*linux*) 4555 LD="${LD-ld} -m elf_x86_64" 4556 ;; 4557 ppc*-*linux*|powerpc*-*linux*) 4558 LD="${LD-ld} -m elf64ppc" 4559 ;; 4560 s390*-*linux*) 4561 LD="${LD-ld} -m elf64_s390" 4562 ;; 4563 sparc*-*linux*) 4564 LD="${LD-ld} -m elf64_sparc" 4565 ;; 4566 esac 4567 ;; 4568 esac 4569 fi 4570 rm -rf conftest* 4571 ;; 4572 4573*-*-sco3.2v5*) 4574 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4575 SAVE_CFLAGS="$CFLAGS" 4576 CFLAGS="$CFLAGS -belf" 4577 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4578echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4579if test "${lt_cv_cc_needs_belf+set}" = set; then 4580 echo $ECHO_N "(cached) $ECHO_C" >&6 4581else 4582 ac_ext=c 4583ac_cpp='$CPP $CPPFLAGS' 4584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4586ac_compiler_gnu=$ac_cv_c_compiler_gnu 4587 4588 cat >conftest.$ac_ext <<_ACEOF 4589/* confdefs.h. */ 4590_ACEOF 4591cat confdefs.h >>conftest.$ac_ext 4592cat >>conftest.$ac_ext <<_ACEOF 4593/* end confdefs.h. */ 4594 4595int 4596main () 4597{ 4598 4599 ; 4600 return 0; 4601} 4602_ACEOF 4603rm -f conftest.$ac_objext conftest$ac_exeext 4604if { (ac_try="$ac_link" 4605case "(($ac_try" in 4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4607 *) ac_try_echo=$ac_try;; 4608esac 4609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4610 (eval "$ac_link") 2>conftest.er1 4611 ac_status=$? 4612 grep -v '^ *+' conftest.er1 >conftest.err 4613 rm -f conftest.er1 4614 cat conftest.err >&5 4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4616 (exit $ac_status); } && { 4617 test -z "$ac_c_werror_flag" || 4618 test ! -s conftest.err 4619 } && test -s conftest$ac_exeext && 4620 $as_test_x conftest$ac_exeext; then 4621 lt_cv_cc_needs_belf=yes 4622else 4623 echo "$as_me: failed program was:" >&5 4624sed 's/^/| /' conftest.$ac_ext >&5 4625 4626 lt_cv_cc_needs_belf=no 4627fi 4628 4629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4630 conftest$ac_exeext conftest.$ac_ext 4631 ac_ext=c 4632ac_cpp='$CPP $CPPFLAGS' 4633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4635ac_compiler_gnu=$ac_cv_c_compiler_gnu 4636 4637fi 4638{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4639echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4640 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4641 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4642 CFLAGS="$SAVE_CFLAGS" 4643 fi 4644 ;; 4645sparc*-*solaris*) 4646 # Find out which ABI we are using. 4647 echo 'int i;' > conftest.$ac_ext 4648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4649 (eval $ac_compile) 2>&5 4650 ac_status=$? 4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4652 (exit $ac_status); }; then 4653 case `/usr/bin/file conftest.o` in 4654 *64-bit*) 4655 case $lt_cv_prog_gnu_ld in 4656 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4657 *) 4658 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4659 LD="${LD-ld} -64" 4660 fi 4661 ;; 4662 esac 4663 ;; 4664 esac 4665 fi 4666 rm -rf conftest* 4667 ;; 4668 4669*-*-cygwin* | *-*-mingw* | *-*-pw32*) 4670 if test -n "$ac_tool_prefix"; then 4671 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4672set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4673{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4675if test "${ac_cv_prog_DLLTOOL+set}" = set; then 4676 echo $ECHO_N "(cached) $ECHO_C" >&6 4677else 4678 if test -n "$DLLTOOL"; then 4679 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4680else 4681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4682for as_dir in $PATH 4683do 4684 IFS=$as_save_IFS 4685 test -z "$as_dir" && as_dir=. 4686 for ac_exec_ext in '' $ac_executable_extensions; do 4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4688 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4690 break 2 4691 fi 4692done 4693done 4694IFS=$as_save_IFS 4695 4696fi 4697fi 4698DLLTOOL=$ac_cv_prog_DLLTOOL 4699if test -n "$DLLTOOL"; then 4700 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 4701echo "${ECHO_T}$DLLTOOL" >&6; } 4702else 4703 { echo "$as_me:$LINENO: result: no" >&5 4704echo "${ECHO_T}no" >&6; } 4705fi 4706 4707 4708fi 4709if test -z "$ac_cv_prog_DLLTOOL"; then 4710 ac_ct_DLLTOOL=$DLLTOOL 4711 # Extract the first word of "dlltool", so it can be a program name with args. 4712set dummy dlltool; ac_word=$2 4713{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4715if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 4716 echo $ECHO_N "(cached) $ECHO_C" >&6 4717else 4718 if test -n "$ac_ct_DLLTOOL"; then 4719 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4720else 4721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4722for as_dir in $PATH 4723do 4724 IFS=$as_save_IFS 4725 test -z "$as_dir" && as_dir=. 4726 for ac_exec_ext in '' $ac_executable_extensions; do 4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4728 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4730 break 2 4731 fi 4732done 4733done 4734IFS=$as_save_IFS 4735 4736fi 4737fi 4738ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4739if test -n "$ac_ct_DLLTOOL"; then 4740 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 4741echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } 4742else 4743 { echo "$as_me:$LINENO: result: no" >&5 4744echo "${ECHO_T}no" >&6; } 4745fi 4746 4747 if test "x$ac_ct_DLLTOOL" = x; then 4748 DLLTOOL="false" 4749 else 4750 case $cross_compiling:$ac_tool_warned in 4751yes:) 4752{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4753whose name does not start with the host triplet. If you think this 4754configuration is useful to you, please write to autoconf@gnu.org." >&5 4755echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4756whose name does not start with the host triplet. If you think this 4757configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4758ac_tool_warned=yes ;; 4759esac 4760 DLLTOOL=$ac_ct_DLLTOOL 4761 fi 4762else 4763 DLLTOOL="$ac_cv_prog_DLLTOOL" 4764fi 4765 4766 if test -n "$ac_tool_prefix"; then 4767 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4768set dummy ${ac_tool_prefix}as; ac_word=$2 4769{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4771if test "${ac_cv_prog_AS+set}" = set; then 4772 echo $ECHO_N "(cached) $ECHO_C" >&6 4773else 4774 if test -n "$AS"; then 4775 ac_cv_prog_AS="$AS" # Let the user override the test. 4776else 4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4778for as_dir in $PATH 4779do 4780 IFS=$as_save_IFS 4781 test -z "$as_dir" && as_dir=. 4782 for ac_exec_ext in '' $ac_executable_extensions; do 4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4784 ac_cv_prog_AS="${ac_tool_prefix}as" 4785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4786 break 2 4787 fi 4788done 4789done 4790IFS=$as_save_IFS 4791 4792fi 4793fi 4794AS=$ac_cv_prog_AS 4795if test -n "$AS"; then 4796 { echo "$as_me:$LINENO: result: $AS" >&5 4797echo "${ECHO_T}$AS" >&6; } 4798else 4799 { echo "$as_me:$LINENO: result: no" >&5 4800echo "${ECHO_T}no" >&6; } 4801fi 4802 4803 4804fi 4805if test -z "$ac_cv_prog_AS"; then 4806 ac_ct_AS=$AS 4807 # Extract the first word of "as", so it can be a program name with args. 4808set dummy as; ac_word=$2 4809{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4811if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 4812 echo $ECHO_N "(cached) $ECHO_C" >&6 4813else 4814 if test -n "$ac_ct_AS"; then 4815 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4816else 4817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4818for as_dir in $PATH 4819do 4820 IFS=$as_save_IFS 4821 test -z "$as_dir" && as_dir=. 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4824 ac_cv_prog_ac_ct_AS="as" 4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4826 break 2 4827 fi 4828done 4829done 4830IFS=$as_save_IFS 4831 4832fi 4833fi 4834ac_ct_AS=$ac_cv_prog_ac_ct_AS 4835if test -n "$ac_ct_AS"; then 4836 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 4837echo "${ECHO_T}$ac_ct_AS" >&6; } 4838else 4839 { echo "$as_me:$LINENO: result: no" >&5 4840echo "${ECHO_T}no" >&6; } 4841fi 4842 4843 if test "x$ac_ct_AS" = x; then 4844 AS="false" 4845 else 4846 case $cross_compiling:$ac_tool_warned in 4847yes:) 4848{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4849whose name does not start with the host triplet. If you think this 4850configuration is useful to you, please write to autoconf@gnu.org." >&5 4851echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4852whose name does not start with the host triplet. If you think this 4853configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4854ac_tool_warned=yes ;; 4855esac 4856 AS=$ac_ct_AS 4857 fi 4858else 4859 AS="$ac_cv_prog_AS" 4860fi 4861 4862 if test -n "$ac_tool_prefix"; then 4863 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4864set dummy ${ac_tool_prefix}objdump; ac_word=$2 4865{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4867if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4868 echo $ECHO_N "(cached) $ECHO_C" >&6 4869else 4870 if test -n "$OBJDUMP"; then 4871 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4872else 4873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4874for as_dir in $PATH 4875do 4876 IFS=$as_save_IFS 4877 test -z "$as_dir" && as_dir=. 4878 for ac_exec_ext in '' $ac_executable_extensions; do 4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4880 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4882 break 2 4883 fi 4884done 4885done 4886IFS=$as_save_IFS 4887 4888fi 4889fi 4890OBJDUMP=$ac_cv_prog_OBJDUMP 4891if test -n "$OBJDUMP"; then 4892 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4893echo "${ECHO_T}$OBJDUMP" >&6; } 4894else 4895 { echo "$as_me:$LINENO: result: no" >&5 4896echo "${ECHO_T}no" >&6; } 4897fi 4898 4899 4900fi 4901if test -z "$ac_cv_prog_OBJDUMP"; then 4902 ac_ct_OBJDUMP=$OBJDUMP 4903 # Extract the first word of "objdump", so it can be a program name with args. 4904set dummy objdump; ac_word=$2 4905{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4907if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4908 echo $ECHO_N "(cached) $ECHO_C" >&6 4909else 4910 if test -n "$ac_ct_OBJDUMP"; then 4911 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4912else 4913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4914for as_dir in $PATH 4915do 4916 IFS=$as_save_IFS 4917 test -z "$as_dir" && as_dir=. 4918 for ac_exec_ext in '' $ac_executable_extensions; do 4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4920 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4922 break 2 4923 fi 4924done 4925done 4926IFS=$as_save_IFS 4927 4928fi 4929fi 4930ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4931if test -n "$ac_ct_OBJDUMP"; then 4932 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4933echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } 4934else 4935 { echo "$as_me:$LINENO: result: no" >&5 4936echo "${ECHO_T}no" >&6; } 4937fi 4938 4939 if test "x$ac_ct_OBJDUMP" = x; then 4940 OBJDUMP="false" 4941 else 4942 case $cross_compiling:$ac_tool_warned in 4943yes:) 4944{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4945whose name does not start with the host triplet. If you think this 4946configuration is useful to you, please write to autoconf@gnu.org." >&5 4947echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4948whose name does not start with the host triplet. If you think this 4949configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4950ac_tool_warned=yes ;; 4951esac 4952 OBJDUMP=$ac_ct_OBJDUMP 4953 fi 4954else 4955 OBJDUMP="$ac_cv_prog_OBJDUMP" 4956fi 4957 4958 ;; 4959 4960esac 4961 4962need_locks="$enable_libtool_lock" 4963 4964 4965ac_ext=c 4966ac_cpp='$CPP $CPPFLAGS' 4967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4969ac_compiler_gnu=$ac_cv_c_compiler_gnu 4970{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4971echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4972# On Suns, sometimes $CPP names a directory. 4973if test -n "$CPP" && test -d "$CPP"; then 4974 CPP= 4975fi 4976if test -z "$CPP"; then 4977 if test "${ac_cv_prog_CPP+set}" = set; then 4978 echo $ECHO_N "(cached) $ECHO_C" >&6 4979else 4980 # Double quotes because CPP needs to be expanded 4981 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4982 do 4983 ac_preproc_ok=false 4984for ac_c_preproc_warn_flag in '' yes 4985do 4986 # Use a header file that comes with gcc, so configuring glibc 4987 # with a fresh cross-compiler works. 4988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4989 # <limits.h> exists even on freestanding compilers. 4990 # On the NeXT, cc -E runs the code through the compiler's parser, 4991 # not just through cpp. "Syntax error" is here to catch this case. 4992 cat >conftest.$ac_ext <<_ACEOF 4993/* confdefs.h. */ 4994_ACEOF 4995cat confdefs.h >>conftest.$ac_ext 4996cat >>conftest.$ac_ext <<_ACEOF 4997/* end confdefs.h. */ 4998#ifdef __STDC__ 4999# include <limits.h> 5000#else 5001# include <assert.h> 5002#endif 5003 Syntax error 5004_ACEOF 5005if { (ac_try="$ac_cpp conftest.$ac_ext" 5006case "(($ac_try" in 5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5008 *) ac_try_echo=$ac_try;; 5009esac 5010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5012 ac_status=$? 5013 grep -v '^ *+' conftest.er1 >conftest.err 5014 rm -f conftest.er1 5015 cat conftest.err >&5 5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5017 (exit $ac_status); } >/dev/null && { 5018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5019 test ! -s conftest.err 5020 }; then 5021 : 5022else 5023 echo "$as_me: failed program was:" >&5 5024sed 's/^/| /' conftest.$ac_ext >&5 5025 5026 # Broken: fails on valid input. 5027continue 5028fi 5029 5030rm -f conftest.err conftest.$ac_ext 5031 5032 # OK, works on sane cases. Now check whether nonexistent headers 5033 # can be detected and how. 5034 cat >conftest.$ac_ext <<_ACEOF 5035/* confdefs.h. */ 5036_ACEOF 5037cat confdefs.h >>conftest.$ac_ext 5038cat >>conftest.$ac_ext <<_ACEOF 5039/* end confdefs.h. */ 5040#include <ac_nonexistent.h> 5041_ACEOF 5042if { (ac_try="$ac_cpp conftest.$ac_ext" 5043case "(($ac_try" in 5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5045 *) ac_try_echo=$ac_try;; 5046esac 5047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5049 ac_status=$? 5050 grep -v '^ *+' conftest.er1 >conftest.err 5051 rm -f conftest.er1 5052 cat conftest.err >&5 5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5054 (exit $ac_status); } >/dev/null && { 5055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5056 test ! -s conftest.err 5057 }; then 5058 # Broken: success on invalid input. 5059continue 5060else 5061 echo "$as_me: failed program was:" >&5 5062sed 's/^/| /' conftest.$ac_ext >&5 5063 5064 # Passes both tests. 5065ac_preproc_ok=: 5066break 5067fi 5068 5069rm -f conftest.err conftest.$ac_ext 5070 5071done 5072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5073rm -f conftest.err conftest.$ac_ext 5074if $ac_preproc_ok; then 5075 break 5076fi 5077 5078 done 5079 ac_cv_prog_CPP=$CPP 5080 5081fi 5082 CPP=$ac_cv_prog_CPP 5083else 5084 ac_cv_prog_CPP=$CPP 5085fi 5086{ echo "$as_me:$LINENO: result: $CPP" >&5 5087echo "${ECHO_T}$CPP" >&6; } 5088ac_preproc_ok=false 5089for ac_c_preproc_warn_flag in '' yes 5090do 5091 # Use a header file that comes with gcc, so configuring glibc 5092 # with a fresh cross-compiler works. 5093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5094 # <limits.h> exists even on freestanding compilers. 5095 # On the NeXT, cc -E runs the code through the compiler's parser, 5096 # not just through cpp. "Syntax error" is here to catch this case. 5097 cat >conftest.$ac_ext <<_ACEOF 5098/* confdefs.h. */ 5099_ACEOF 5100cat confdefs.h >>conftest.$ac_ext 5101cat >>conftest.$ac_ext <<_ACEOF 5102/* end confdefs.h. */ 5103#ifdef __STDC__ 5104# include <limits.h> 5105#else 5106# include <assert.h> 5107#endif 5108 Syntax error 5109_ACEOF 5110if { (ac_try="$ac_cpp conftest.$ac_ext" 5111case "(($ac_try" in 5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5113 *) ac_try_echo=$ac_try;; 5114esac 5115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5117 ac_status=$? 5118 grep -v '^ *+' conftest.er1 >conftest.err 5119 rm -f conftest.er1 5120 cat conftest.err >&5 5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5122 (exit $ac_status); } >/dev/null && { 5123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5124 test ! -s conftest.err 5125 }; then 5126 : 5127else 5128 echo "$as_me: failed program was:" >&5 5129sed 's/^/| /' conftest.$ac_ext >&5 5130 5131 # Broken: fails on valid input. 5132continue 5133fi 5134 5135rm -f conftest.err conftest.$ac_ext 5136 5137 # OK, works on sane cases. Now check whether nonexistent headers 5138 # can be detected and how. 5139 cat >conftest.$ac_ext <<_ACEOF 5140/* confdefs.h. */ 5141_ACEOF 5142cat confdefs.h >>conftest.$ac_ext 5143cat >>conftest.$ac_ext <<_ACEOF 5144/* end confdefs.h. */ 5145#include <ac_nonexistent.h> 5146_ACEOF 5147if { (ac_try="$ac_cpp conftest.$ac_ext" 5148case "(($ac_try" in 5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5150 *) ac_try_echo=$ac_try;; 5151esac 5152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5154 ac_status=$? 5155 grep -v '^ *+' conftest.er1 >conftest.err 5156 rm -f conftest.er1 5157 cat conftest.err >&5 5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5159 (exit $ac_status); } >/dev/null && { 5160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5161 test ! -s conftest.err 5162 }; then 5163 # Broken: success on invalid input. 5164continue 5165else 5166 echo "$as_me: failed program was:" >&5 5167sed 's/^/| /' conftest.$ac_ext >&5 5168 5169 # Passes both tests. 5170ac_preproc_ok=: 5171break 5172fi 5173 5174rm -f conftest.err conftest.$ac_ext 5175 5176done 5177# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5178rm -f conftest.err conftest.$ac_ext 5179if $ac_preproc_ok; then 5180 : 5181else 5182 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5183See \`config.log' for more details." >&5 5184echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5185See \`config.log' for more details." >&2;} 5186 { (exit 1); exit 1; }; } 5187fi 5188 5189ac_ext=c 5190ac_cpp='$CPP $CPPFLAGS' 5191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5193ac_compiler_gnu=$ac_cv_c_compiler_gnu 5194 5195 5196{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5197echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5198if test "${ac_cv_header_stdc+set}" = set; then 5199 echo $ECHO_N "(cached) $ECHO_C" >&6 5200else 5201 cat >conftest.$ac_ext <<_ACEOF 5202/* confdefs.h. */ 5203_ACEOF 5204cat confdefs.h >>conftest.$ac_ext 5205cat >>conftest.$ac_ext <<_ACEOF 5206/* end confdefs.h. */ 5207#include <stdlib.h> 5208#include <stdarg.h> 5209#include <string.h> 5210#include <float.h> 5211 5212int 5213main () 5214{ 5215 5216 ; 5217 return 0; 5218} 5219_ACEOF 5220rm -f conftest.$ac_objext 5221if { (ac_try="$ac_compile" 5222case "(($ac_try" in 5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5224 *) ac_try_echo=$ac_try;; 5225esac 5226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5227 (eval "$ac_compile") 2>conftest.er1 5228 ac_status=$? 5229 grep -v '^ *+' conftest.er1 >conftest.err 5230 rm -f conftest.er1 5231 cat conftest.err >&5 5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5233 (exit $ac_status); } && { 5234 test -z "$ac_c_werror_flag" || 5235 test ! -s conftest.err 5236 } && test -s conftest.$ac_objext; then 5237 ac_cv_header_stdc=yes 5238else 5239 echo "$as_me: failed program was:" >&5 5240sed 's/^/| /' conftest.$ac_ext >&5 5241 5242 ac_cv_header_stdc=no 5243fi 5244 5245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5246 5247if test $ac_cv_header_stdc = yes; then 5248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5249 cat >conftest.$ac_ext <<_ACEOF 5250/* confdefs.h. */ 5251_ACEOF 5252cat confdefs.h >>conftest.$ac_ext 5253cat >>conftest.$ac_ext <<_ACEOF 5254/* end confdefs.h. */ 5255#include <string.h> 5256 5257_ACEOF 5258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5259 $EGREP "memchr" >/dev/null 2>&1; then 5260 : 5261else 5262 ac_cv_header_stdc=no 5263fi 5264rm -f conftest* 5265 5266fi 5267 5268if test $ac_cv_header_stdc = yes; then 5269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5270 cat >conftest.$ac_ext <<_ACEOF 5271/* confdefs.h. */ 5272_ACEOF 5273cat confdefs.h >>conftest.$ac_ext 5274cat >>conftest.$ac_ext <<_ACEOF 5275/* end confdefs.h. */ 5276#include <stdlib.h> 5277 5278_ACEOF 5279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5280 $EGREP "free" >/dev/null 2>&1; then 5281 : 5282else 5283 ac_cv_header_stdc=no 5284fi 5285rm -f conftest* 5286 5287fi 5288 5289if test $ac_cv_header_stdc = yes; then 5290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5291 if test "$cross_compiling" = yes; then 5292 : 5293else 5294 cat >conftest.$ac_ext <<_ACEOF 5295/* confdefs.h. */ 5296_ACEOF 5297cat confdefs.h >>conftest.$ac_ext 5298cat >>conftest.$ac_ext <<_ACEOF 5299/* end confdefs.h. */ 5300#include <ctype.h> 5301#include <stdlib.h> 5302#if ((' ' & 0x0FF) == 0x020) 5303# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5304# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5305#else 5306# define ISLOWER(c) \ 5307 (('a' <= (c) && (c) <= 'i') \ 5308 || ('j' <= (c) && (c) <= 'r') \ 5309 || ('s' <= (c) && (c) <= 'z')) 5310# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5311#endif 5312 5313#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5314int 5315main () 5316{ 5317 int i; 5318 for (i = 0; i < 256; i++) 5319 if (XOR (islower (i), ISLOWER (i)) 5320 || toupper (i) != TOUPPER (i)) 5321 return 2; 5322 return 0; 5323} 5324_ACEOF 5325rm -f conftest$ac_exeext 5326if { (ac_try="$ac_link" 5327case "(($ac_try" in 5328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5329 *) ac_try_echo=$ac_try;; 5330esac 5331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5332 (eval "$ac_link") 2>&5 5333 ac_status=$? 5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5336 { (case "(($ac_try" in 5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5338 *) ac_try_echo=$ac_try;; 5339esac 5340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5341 (eval "$ac_try") 2>&5 5342 ac_status=$? 5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5344 (exit $ac_status); }; }; then 5345 : 5346else 5347 echo "$as_me: program exited with status $ac_status" >&5 5348echo "$as_me: failed program was:" >&5 5349sed 's/^/| /' conftest.$ac_ext >&5 5350 5351( exit $ac_status ) 5352ac_cv_header_stdc=no 5353fi 5354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5355fi 5356 5357 5358fi 5359fi 5360{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5361echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5362if test $ac_cv_header_stdc = yes; then 5363 5364cat >>confdefs.h <<\_ACEOF 5365#define STDC_HEADERS 1 5366_ACEOF 5367 5368fi 5369 5370# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5381 inttypes.h stdint.h unistd.h 5382do 5383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5384{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5386if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5387 echo $ECHO_N "(cached) $ECHO_C" >&6 5388else 5389 cat >conftest.$ac_ext <<_ACEOF 5390/* confdefs.h. */ 5391_ACEOF 5392cat confdefs.h >>conftest.$ac_ext 5393cat >>conftest.$ac_ext <<_ACEOF 5394/* end confdefs.h. */ 5395$ac_includes_default 5396 5397#include <$ac_header> 5398_ACEOF 5399rm -f conftest.$ac_objext 5400if { (ac_try="$ac_compile" 5401case "(($ac_try" in 5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5403 *) ac_try_echo=$ac_try;; 5404esac 5405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5406 (eval "$ac_compile") 2>conftest.er1 5407 ac_status=$? 5408 grep -v '^ *+' conftest.er1 >conftest.err 5409 rm -f conftest.er1 5410 cat conftest.err >&5 5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5412 (exit $ac_status); } && { 5413 test -z "$ac_c_werror_flag" || 5414 test ! -s conftest.err 5415 } && test -s conftest.$ac_objext; then 5416 eval "$as_ac_Header=yes" 5417else 5418 echo "$as_me: failed program was:" >&5 5419sed 's/^/| /' conftest.$ac_ext >&5 5420 5421 eval "$as_ac_Header=no" 5422fi 5423 5424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5425fi 5426ac_res=`eval echo '${'$as_ac_Header'}'` 5427 { echo "$as_me:$LINENO: result: $ac_res" >&5 5428echo "${ECHO_T}$ac_res" >&6; } 5429if test `eval echo '${'$as_ac_Header'}'` = yes; then 5430 cat >>confdefs.h <<_ACEOF 5431#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5432_ACEOF 5433 5434fi 5435 5436done 5437 5438 5439 5440for ac_header in dlfcn.h 5441do 5442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5444 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5447 echo $ECHO_N "(cached) $ECHO_C" >&6 5448fi 5449ac_res=`eval echo '${'$as_ac_Header'}'` 5450 { echo "$as_me:$LINENO: result: $ac_res" >&5 5451echo "${ECHO_T}$ac_res" >&6; } 5452else 5453 # Is the header compilable? 5454{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5456cat >conftest.$ac_ext <<_ACEOF 5457/* confdefs.h. */ 5458_ACEOF 5459cat confdefs.h >>conftest.$ac_ext 5460cat >>conftest.$ac_ext <<_ACEOF 5461/* end confdefs.h. */ 5462$ac_includes_default 5463#include <$ac_header> 5464_ACEOF 5465rm -f conftest.$ac_objext 5466if { (ac_try="$ac_compile" 5467case "(($ac_try" in 5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5469 *) ac_try_echo=$ac_try;; 5470esac 5471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5472 (eval "$ac_compile") 2>conftest.er1 5473 ac_status=$? 5474 grep -v '^ *+' conftest.er1 >conftest.err 5475 rm -f conftest.er1 5476 cat conftest.err >&5 5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5478 (exit $ac_status); } && { 5479 test -z "$ac_c_werror_flag" || 5480 test ! -s conftest.err 5481 } && test -s conftest.$ac_objext; then 5482 ac_header_compiler=yes 5483else 5484 echo "$as_me: failed program was:" >&5 5485sed 's/^/| /' conftest.$ac_ext >&5 5486 5487 ac_header_compiler=no 5488fi 5489 5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5491{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5492echo "${ECHO_T}$ac_header_compiler" >&6; } 5493 5494# Is the header present? 5495{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5496echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5497cat >conftest.$ac_ext <<_ACEOF 5498/* confdefs.h. */ 5499_ACEOF 5500cat confdefs.h >>conftest.$ac_ext 5501cat >>conftest.$ac_ext <<_ACEOF 5502/* end confdefs.h. */ 5503#include <$ac_header> 5504_ACEOF 5505if { (ac_try="$ac_cpp conftest.$ac_ext" 5506case "(($ac_try" in 5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5508 *) ac_try_echo=$ac_try;; 5509esac 5510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5512 ac_status=$? 5513 grep -v '^ *+' conftest.er1 >conftest.err 5514 rm -f conftest.er1 5515 cat conftest.err >&5 5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5517 (exit $ac_status); } >/dev/null && { 5518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5519 test ! -s conftest.err 5520 }; then 5521 ac_header_preproc=yes 5522else 5523 echo "$as_me: failed program was:" >&5 5524sed 's/^/| /' conftest.$ac_ext >&5 5525 5526 ac_header_preproc=no 5527fi 5528 5529rm -f conftest.err conftest.$ac_ext 5530{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5531echo "${ECHO_T}$ac_header_preproc" >&6; } 5532 5533# So? What about this header? 5534case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5535 yes:no: ) 5536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5537echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5539echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5540 ac_header_preproc=yes 5541 ;; 5542 no:yes:* ) 5543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5544echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5546echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5548echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5550echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5554echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5555 5556 ;; 5557esac 5558{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5561 echo $ECHO_N "(cached) $ECHO_C" >&6 5562else 5563 eval "$as_ac_Header=\$ac_header_preproc" 5564fi 5565ac_res=`eval echo '${'$as_ac_Header'}'` 5566 { echo "$as_me:$LINENO: result: $ac_res" >&5 5567echo "${ECHO_T}$ac_res" >&6; } 5568 5569fi 5570if test `eval echo '${'$as_ac_Header'}'` = yes; then 5571 cat >>confdefs.h <<_ACEOF 5572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5573_ACEOF 5574 5575fi 5576 5577done 5578 5579ac_ext=cpp 5580ac_cpp='$CXXCPP $CPPFLAGS' 5581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5584if test -z "$CXX"; then 5585 if test -n "$CCC"; then 5586 CXX=$CCC 5587 else 5588 if test -n "$ac_tool_prefix"; then 5589 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5590 do 5591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5592set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5593{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5595if test "${ac_cv_prog_CXX+set}" = set; then 5596 echo $ECHO_N "(cached) $ECHO_C" >&6 5597else 5598 if test -n "$CXX"; then 5599 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5600else 5601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5602for as_dir in $PATH 5603do 5604 IFS=$as_save_IFS 5605 test -z "$as_dir" && as_dir=. 5606 for ac_exec_ext in '' $ac_executable_extensions; do 5607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5608 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5610 break 2 5611 fi 5612done 5613done 5614IFS=$as_save_IFS 5615 5616fi 5617fi 5618CXX=$ac_cv_prog_CXX 5619if test -n "$CXX"; then 5620 { echo "$as_me:$LINENO: result: $CXX" >&5 5621echo "${ECHO_T}$CXX" >&6; } 5622else 5623 { echo "$as_me:$LINENO: result: no" >&5 5624echo "${ECHO_T}no" >&6; } 5625fi 5626 5627 5628 test -n "$CXX" && break 5629 done 5630fi 5631if test -z "$CXX"; then 5632 ac_ct_CXX=$CXX 5633 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5634do 5635 # Extract the first word of "$ac_prog", so it can be a program name with args. 5636set dummy $ac_prog; ac_word=$2 5637{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5639if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5640 echo $ECHO_N "(cached) $ECHO_C" >&6 5641else 5642 if test -n "$ac_ct_CXX"; then 5643 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5644else 5645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5646for as_dir in $PATH 5647do 5648 IFS=$as_save_IFS 5649 test -z "$as_dir" && as_dir=. 5650 for ac_exec_ext in '' $ac_executable_extensions; do 5651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5652 ac_cv_prog_ac_ct_CXX="$ac_prog" 5653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5654 break 2 5655 fi 5656done 5657done 5658IFS=$as_save_IFS 5659 5660fi 5661fi 5662ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5663if test -n "$ac_ct_CXX"; then 5664 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5665echo "${ECHO_T}$ac_ct_CXX" >&6; } 5666else 5667 { echo "$as_me:$LINENO: result: no" >&5 5668echo "${ECHO_T}no" >&6; } 5669fi 5670 5671 5672 test -n "$ac_ct_CXX" && break 5673done 5674 5675 if test "x$ac_ct_CXX" = x; then 5676 CXX="g++" 5677 else 5678 case $cross_compiling:$ac_tool_warned in 5679yes:) 5680{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5681whose name does not start with the host triplet. If you think this 5682configuration is useful to you, please write to autoconf@gnu.org." >&5 5683echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5684whose name does not start with the host triplet. If you think this 5685configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5686ac_tool_warned=yes ;; 5687esac 5688 CXX=$ac_ct_CXX 5689 fi 5690fi 5691 5692 fi 5693fi 5694# Provide some information about the compiler. 5695echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5696ac_compiler=`set X $ac_compile; echo $2` 5697{ (ac_try="$ac_compiler --version >&5" 5698case "(($ac_try" in 5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5700 *) ac_try_echo=$ac_try;; 5701esac 5702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5703 (eval "$ac_compiler --version >&5") 2>&5 5704 ac_status=$? 5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5706 (exit $ac_status); } 5707{ (ac_try="$ac_compiler -v >&5" 5708case "(($ac_try" in 5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5710 *) ac_try_echo=$ac_try;; 5711esac 5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5713 (eval "$ac_compiler -v >&5") 2>&5 5714 ac_status=$? 5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5716 (exit $ac_status); } 5717{ (ac_try="$ac_compiler -V >&5" 5718case "(($ac_try" in 5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5720 *) ac_try_echo=$ac_try;; 5721esac 5722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5723 (eval "$ac_compiler -V >&5") 2>&5 5724 ac_status=$? 5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5726 (exit $ac_status); } 5727 5728{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5729echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5730if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5731 echo $ECHO_N "(cached) $ECHO_C" >&6 5732else 5733 cat >conftest.$ac_ext <<_ACEOF 5734/* confdefs.h. */ 5735_ACEOF 5736cat confdefs.h >>conftest.$ac_ext 5737cat >>conftest.$ac_ext <<_ACEOF 5738/* end confdefs.h. */ 5739 5740int 5741main () 5742{ 5743#ifndef __GNUC__ 5744 choke me 5745#endif 5746 5747 ; 5748 return 0; 5749} 5750_ACEOF 5751rm -f conftest.$ac_objext 5752if { (ac_try="$ac_compile" 5753case "(($ac_try" in 5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5755 *) ac_try_echo=$ac_try;; 5756esac 5757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5758 (eval "$ac_compile") 2>conftest.er1 5759 ac_status=$? 5760 grep -v '^ *+' conftest.er1 >conftest.err 5761 rm -f conftest.er1 5762 cat conftest.err >&5 5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5764 (exit $ac_status); } && { 5765 test -z "$ac_cxx_werror_flag" || 5766 test ! -s conftest.err 5767 } && test -s conftest.$ac_objext; then 5768 ac_compiler_gnu=yes 5769else 5770 echo "$as_me: failed program was:" >&5 5771sed 's/^/| /' conftest.$ac_ext >&5 5772 5773 ac_compiler_gnu=no 5774fi 5775 5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5777ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5778 5779fi 5780{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5781echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5782GXX=`test $ac_compiler_gnu = yes && echo yes` 5783ac_test_CXXFLAGS=${CXXFLAGS+set} 5784ac_save_CXXFLAGS=$CXXFLAGS 5785{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5786echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5787if test "${ac_cv_prog_cxx_g+set}" = set; then 5788 echo $ECHO_N "(cached) $ECHO_C" >&6 5789else 5790 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5791 ac_cxx_werror_flag=yes 5792 ac_cv_prog_cxx_g=no 5793 CXXFLAGS="-g" 5794 cat >conftest.$ac_ext <<_ACEOF 5795/* confdefs.h. */ 5796_ACEOF 5797cat confdefs.h >>conftest.$ac_ext 5798cat >>conftest.$ac_ext <<_ACEOF 5799/* end confdefs.h. */ 5800 5801int 5802main () 5803{ 5804 5805 ; 5806 return 0; 5807} 5808_ACEOF 5809rm -f conftest.$ac_objext 5810if { (ac_try="$ac_compile" 5811case "(($ac_try" in 5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5813 *) ac_try_echo=$ac_try;; 5814esac 5815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5816 (eval "$ac_compile") 2>conftest.er1 5817 ac_status=$? 5818 grep -v '^ *+' conftest.er1 >conftest.err 5819 rm -f conftest.er1 5820 cat conftest.err >&5 5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5822 (exit $ac_status); } && { 5823 test -z "$ac_cxx_werror_flag" || 5824 test ! -s conftest.err 5825 } && test -s conftest.$ac_objext; then 5826 ac_cv_prog_cxx_g=yes 5827else 5828 echo "$as_me: failed program was:" >&5 5829sed 's/^/| /' conftest.$ac_ext >&5 5830 5831 CXXFLAGS="" 5832 cat >conftest.$ac_ext <<_ACEOF 5833/* confdefs.h. */ 5834_ACEOF 5835cat confdefs.h >>conftest.$ac_ext 5836cat >>conftest.$ac_ext <<_ACEOF 5837/* end confdefs.h. */ 5838 5839int 5840main () 5841{ 5842 5843 ; 5844 return 0; 5845} 5846_ACEOF 5847rm -f conftest.$ac_objext 5848if { (ac_try="$ac_compile" 5849case "(($ac_try" in 5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5851 *) ac_try_echo=$ac_try;; 5852esac 5853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5854 (eval "$ac_compile") 2>conftest.er1 5855 ac_status=$? 5856 grep -v '^ *+' conftest.er1 >conftest.err 5857 rm -f conftest.er1 5858 cat conftest.err >&5 5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5860 (exit $ac_status); } && { 5861 test -z "$ac_cxx_werror_flag" || 5862 test ! -s conftest.err 5863 } && test -s conftest.$ac_objext; then 5864 : 5865else 5866 echo "$as_me: failed program was:" >&5 5867sed 's/^/| /' conftest.$ac_ext >&5 5868 5869 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5870 CXXFLAGS="-g" 5871 cat >conftest.$ac_ext <<_ACEOF 5872/* confdefs.h. */ 5873_ACEOF 5874cat confdefs.h >>conftest.$ac_ext 5875cat >>conftest.$ac_ext <<_ACEOF 5876/* end confdefs.h. */ 5877 5878int 5879main () 5880{ 5881 5882 ; 5883 return 0; 5884} 5885_ACEOF 5886rm -f conftest.$ac_objext 5887if { (ac_try="$ac_compile" 5888case "(($ac_try" in 5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5890 *) ac_try_echo=$ac_try;; 5891esac 5892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5893 (eval "$ac_compile") 2>conftest.er1 5894 ac_status=$? 5895 grep -v '^ *+' conftest.er1 >conftest.err 5896 rm -f conftest.er1 5897 cat conftest.err >&5 5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5899 (exit $ac_status); } && { 5900 test -z "$ac_cxx_werror_flag" || 5901 test ! -s conftest.err 5902 } && test -s conftest.$ac_objext; then 5903 ac_cv_prog_cxx_g=yes 5904else 5905 echo "$as_me: failed program was:" >&5 5906sed 's/^/| /' conftest.$ac_ext >&5 5907 5908 5909fi 5910 5911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5912fi 5913 5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5915fi 5916 5917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5918 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5919fi 5920{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5921echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5922if test "$ac_test_CXXFLAGS" = set; then 5923 CXXFLAGS=$ac_save_CXXFLAGS 5924elif test $ac_cv_prog_cxx_g = yes; then 5925 if test "$GXX" = yes; then 5926 CXXFLAGS="-g -O2" 5927 else 5928 CXXFLAGS="-g" 5929 fi 5930else 5931 if test "$GXX" = yes; then 5932 CXXFLAGS="-O2" 5933 else 5934 CXXFLAGS= 5935 fi 5936fi 5937ac_ext=cpp 5938ac_cpp='$CXXCPP $CPPFLAGS' 5939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5942 5943depcc="$CXX" am_compiler_list= 5944 5945{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5946echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5947if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5948 echo $ECHO_N "(cached) $ECHO_C" >&6 5949else 5950 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5951 # We make a subdir and do the tests there. Otherwise we can end up 5952 # making bogus files that we don't know about and never remove. For 5953 # instance it was reported that on HP-UX the gcc test will end up 5954 # making a dummy file named `D' -- because `-MD' means `put the output 5955 # in D'. 5956 mkdir conftest.dir 5957 # Copy depcomp to subdir because otherwise we won't find it if we're 5958 # using a relative directory. 5959 cp "$am_depcomp" conftest.dir 5960 cd conftest.dir 5961 # We will build objects and dependencies in a subdirectory because 5962 # it helps to detect inapplicable dependency modes. For instance 5963 # both Tru64's cc and ICC support -MD to output dependencies as a 5964 # side effect of compilation, but ICC will put the dependencies in 5965 # the current directory while Tru64 will put them in the object 5966 # directory. 5967 mkdir sub 5968 5969 am_cv_CXX_dependencies_compiler_type=none 5970 if test "$am_compiler_list" = ""; then 5971 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5972 fi 5973 for depmode in $am_compiler_list; do 5974 # Setup a source with many dependencies, because some compilers 5975 # like to wrap large dependency lists on column 80 (with \), and 5976 # we should not choose a depcomp mode which is confused by this. 5977 # 5978 # We need to recreate these files for each test, as the compiler may 5979 # overwrite some of them when testing with obscure command lines. 5980 # This happens at least with the AIX C compiler. 5981 : > sub/conftest.c 5982 for i in 1 2 3 4 5 6; do 5983 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5984 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5985 # Solaris 8's {/usr,}/bin/sh. 5986 touch sub/conftst$i.h 5987 done 5988 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5989 5990 case $depmode in 5991 nosideeffect) 5992 # after this tag, mechanisms are not by side-effect, so they'll 5993 # only be used when explicitly requested 5994 if test "x$enable_dependency_tracking" = xyes; then 5995 continue 5996 else 5997 break 5998 fi 5999 ;; 6000 none) break ;; 6001 esac 6002 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6003 # mode. It turns out that the SunPro C++ compiler does not properly 6004 # handle `-M -o', and we need to detect this. 6005 if depmode=$depmode \ 6006 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6007 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6008 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6009 >/dev/null 2>conftest.err && 6010 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6011 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6012 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6013 # icc doesn't choke on unknown options, it will just issue warnings 6014 # or remarks (even with -Werror). So we grep stderr for any message 6015 # that says an option was ignored or not supported. 6016 # When given -MP, icc 7.0 and 7.1 complain thusly: 6017 # icc: Command line warning: ignoring option '-M'; no argument required 6018 # The diagnosis changed in icc 8.0: 6019 # icc: Command line remark: option '-MP' not supported 6020 if (grep 'ignoring option' conftest.err || 6021 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6022 am_cv_CXX_dependencies_compiler_type=$depmode 6023 break 6024 fi 6025 fi 6026 done 6027 6028 cd .. 6029 rm -rf conftest.dir 6030else 6031 am_cv_CXX_dependencies_compiler_type=none 6032fi 6033 6034fi 6035{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6036echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 6037CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6038 6039 6040 6041if 6042 test "x$enable_dependency_tracking" != xno \ 6043 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6044 am__fastdepCXX_TRUE= 6045 am__fastdepCXX_FALSE='#' 6046else 6047 am__fastdepCXX_TRUE='#' 6048 am__fastdepCXX_FALSE= 6049fi 6050 6051 6052 6053 6054if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6055 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6056 (test "X$CXX" != "Xg++"))) ; then 6057 ac_ext=cpp 6058ac_cpp='$CXXCPP $CPPFLAGS' 6059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6062{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6063echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 6064if test -z "$CXXCPP"; then 6065 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6066 echo $ECHO_N "(cached) $ECHO_C" >&6 6067else 6068 # Double quotes because CXXCPP needs to be expanded 6069 for CXXCPP in "$CXX -E" "/lib/cpp" 6070 do 6071 ac_preproc_ok=false 6072for ac_cxx_preproc_warn_flag in '' yes 6073do 6074 # Use a header file that comes with gcc, so configuring glibc 6075 # with a fresh cross-compiler works. 6076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6077 # <limits.h> exists even on freestanding compilers. 6078 # On the NeXT, cc -E runs the code through the compiler's parser, 6079 # not just through cpp. "Syntax error" is here to catch this case. 6080 cat >conftest.$ac_ext <<_ACEOF 6081/* confdefs.h. */ 6082_ACEOF 6083cat confdefs.h >>conftest.$ac_ext 6084cat >>conftest.$ac_ext <<_ACEOF 6085/* end confdefs.h. */ 6086#ifdef __STDC__ 6087# include <limits.h> 6088#else 6089# include <assert.h> 6090#endif 6091 Syntax error 6092_ACEOF 6093if { (ac_try="$ac_cpp conftest.$ac_ext" 6094case "(($ac_try" in 6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6096 *) ac_try_echo=$ac_try;; 6097esac 6098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6100 ac_status=$? 6101 grep -v '^ *+' conftest.er1 >conftest.err 6102 rm -f conftest.er1 6103 cat conftest.err >&5 6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6105 (exit $ac_status); } >/dev/null && { 6106 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6107 test ! -s conftest.err 6108 }; then 6109 : 6110else 6111 echo "$as_me: failed program was:" >&5 6112sed 's/^/| /' conftest.$ac_ext >&5 6113 6114 # Broken: fails on valid input. 6115continue 6116fi 6117 6118rm -f conftest.err conftest.$ac_ext 6119 6120 # OK, works on sane cases. Now check whether nonexistent headers 6121 # can be detected and how. 6122 cat >conftest.$ac_ext <<_ACEOF 6123/* confdefs.h. */ 6124_ACEOF 6125cat confdefs.h >>conftest.$ac_ext 6126cat >>conftest.$ac_ext <<_ACEOF 6127/* end confdefs.h. */ 6128#include <ac_nonexistent.h> 6129_ACEOF 6130if { (ac_try="$ac_cpp conftest.$ac_ext" 6131case "(($ac_try" in 6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6133 *) ac_try_echo=$ac_try;; 6134esac 6135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6137 ac_status=$? 6138 grep -v '^ *+' conftest.er1 >conftest.err 6139 rm -f conftest.er1 6140 cat conftest.err >&5 6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6142 (exit $ac_status); } >/dev/null && { 6143 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6144 test ! -s conftest.err 6145 }; then 6146 # Broken: success on invalid input. 6147continue 6148else 6149 echo "$as_me: failed program was:" >&5 6150sed 's/^/| /' conftest.$ac_ext >&5 6151 6152 # Passes both tests. 6153ac_preproc_ok=: 6154break 6155fi 6156 6157rm -f conftest.err conftest.$ac_ext 6158 6159done 6160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6161rm -f conftest.err conftest.$ac_ext 6162if $ac_preproc_ok; then 6163 break 6164fi 6165 6166 done 6167 ac_cv_prog_CXXCPP=$CXXCPP 6168 6169fi 6170 CXXCPP=$ac_cv_prog_CXXCPP 6171else 6172 ac_cv_prog_CXXCPP=$CXXCPP 6173fi 6174{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6175echo "${ECHO_T}$CXXCPP" >&6; } 6176ac_preproc_ok=false 6177for ac_cxx_preproc_warn_flag in '' yes 6178do 6179 # Use a header file that comes with gcc, so configuring glibc 6180 # with a fresh cross-compiler works. 6181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6182 # <limits.h> exists even on freestanding compilers. 6183 # On the NeXT, cc -E runs the code through the compiler's parser, 6184 # not just through cpp. "Syntax error" is here to catch this case. 6185 cat >conftest.$ac_ext <<_ACEOF 6186/* confdefs.h. */ 6187_ACEOF 6188cat confdefs.h >>conftest.$ac_ext 6189cat >>conftest.$ac_ext <<_ACEOF 6190/* end confdefs.h. */ 6191#ifdef __STDC__ 6192# include <limits.h> 6193#else 6194# include <assert.h> 6195#endif 6196 Syntax error 6197_ACEOF 6198if { (ac_try="$ac_cpp conftest.$ac_ext" 6199case "(($ac_try" in 6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6201 *) ac_try_echo=$ac_try;; 6202esac 6203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6205 ac_status=$? 6206 grep -v '^ *+' conftest.er1 >conftest.err 6207 rm -f conftest.er1 6208 cat conftest.err >&5 6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6210 (exit $ac_status); } >/dev/null && { 6211 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6212 test ! -s conftest.err 6213 }; then 6214 : 6215else 6216 echo "$as_me: failed program was:" >&5 6217sed 's/^/| /' conftest.$ac_ext >&5 6218 6219 # Broken: fails on valid input. 6220continue 6221fi 6222 6223rm -f conftest.err conftest.$ac_ext 6224 6225 # OK, works on sane cases. Now check whether nonexistent headers 6226 # can be detected and how. 6227 cat >conftest.$ac_ext <<_ACEOF 6228/* confdefs.h. */ 6229_ACEOF 6230cat confdefs.h >>conftest.$ac_ext 6231cat >>conftest.$ac_ext <<_ACEOF 6232/* end confdefs.h. */ 6233#include <ac_nonexistent.h> 6234_ACEOF 6235if { (ac_try="$ac_cpp conftest.$ac_ext" 6236case "(($ac_try" in 6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6238 *) ac_try_echo=$ac_try;; 6239esac 6240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6242 ac_status=$? 6243 grep -v '^ *+' conftest.er1 >conftest.err 6244 rm -f conftest.er1 6245 cat conftest.err >&5 6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6247 (exit $ac_status); } >/dev/null && { 6248 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6249 test ! -s conftest.err 6250 }; then 6251 # Broken: success on invalid input. 6252continue 6253else 6254 echo "$as_me: failed program was:" >&5 6255sed 's/^/| /' conftest.$ac_ext >&5 6256 6257 # Passes both tests. 6258ac_preproc_ok=: 6259break 6260fi 6261 6262rm -f conftest.err conftest.$ac_ext 6263 6264done 6265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6266rm -f conftest.err conftest.$ac_ext 6267if $ac_preproc_ok; then 6268 : 6269else 6270 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6271See \`config.log' for more details." >&5 6272echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6273See \`config.log' for more details." >&2;} 6274 { (exit 1); exit 1; }; } 6275fi 6276 6277ac_ext=cpp 6278ac_cpp='$CXXCPP $CPPFLAGS' 6279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6282 6283fi 6284 6285 6286ac_ext=f 6287ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6288ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6289ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6290if test -n "$ac_tool_prefix"; then 6291 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 6292 do 6293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6294set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6295{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6297if test "${ac_cv_prog_F77+set}" = set; then 6298 echo $ECHO_N "(cached) $ECHO_C" >&6 6299else 6300 if test -n "$F77"; then 6301 ac_cv_prog_F77="$F77" # Let the user override the test. 6302else 6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6304for as_dir in $PATH 6305do 6306 IFS=$as_save_IFS 6307 test -z "$as_dir" && as_dir=. 6308 for ac_exec_ext in '' $ac_executable_extensions; do 6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6310 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6312 break 2 6313 fi 6314done 6315done 6316IFS=$as_save_IFS 6317 6318fi 6319fi 6320F77=$ac_cv_prog_F77 6321if test -n "$F77"; then 6322 { echo "$as_me:$LINENO: result: $F77" >&5 6323echo "${ECHO_T}$F77" >&6; } 6324else 6325 { echo "$as_me:$LINENO: result: no" >&5 6326echo "${ECHO_T}no" >&6; } 6327fi 6328 6329 6330 test -n "$F77" && break 6331 done 6332fi 6333if test -z "$F77"; then 6334 ac_ct_F77=$F77 6335 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 6336do 6337 # Extract the first word of "$ac_prog", so it can be a program name with args. 6338set dummy $ac_prog; ac_word=$2 6339{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6341if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6342 echo $ECHO_N "(cached) $ECHO_C" >&6 6343else 6344 if test -n "$ac_ct_F77"; then 6345 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6346else 6347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6348for as_dir in $PATH 6349do 6350 IFS=$as_save_IFS 6351 test -z "$as_dir" && as_dir=. 6352 for ac_exec_ext in '' $ac_executable_extensions; do 6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6354 ac_cv_prog_ac_ct_F77="$ac_prog" 6355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6356 break 2 6357 fi 6358done 6359done 6360IFS=$as_save_IFS 6361 6362fi 6363fi 6364ac_ct_F77=$ac_cv_prog_ac_ct_F77 6365if test -n "$ac_ct_F77"; then 6366 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6367echo "${ECHO_T}$ac_ct_F77" >&6; } 6368else 6369 { echo "$as_me:$LINENO: result: no" >&5 6370echo "${ECHO_T}no" >&6; } 6371fi 6372 6373 6374 test -n "$ac_ct_F77" && break 6375done 6376 6377 if test "x$ac_ct_F77" = x; then 6378 F77="" 6379 else 6380 case $cross_compiling:$ac_tool_warned in 6381yes:) 6382{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6383whose name does not start with the host triplet. If you think this 6384configuration is useful to you, please write to autoconf@gnu.org." >&5 6385echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6386whose name does not start with the host triplet. If you think this 6387configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6388ac_tool_warned=yes ;; 6389esac 6390 F77=$ac_ct_F77 6391 fi 6392fi 6393 6394 6395# Provide some information about the compiler. 6396echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6397ac_compiler=`set X $ac_compile; echo $2` 6398{ (ac_try="$ac_compiler --version >&5" 6399case "(($ac_try" in 6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6401 *) ac_try_echo=$ac_try;; 6402esac 6403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6404 (eval "$ac_compiler --version >&5") 2>&5 6405 ac_status=$? 6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6407 (exit $ac_status); } 6408{ (ac_try="$ac_compiler -v >&5" 6409case "(($ac_try" in 6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6411 *) ac_try_echo=$ac_try;; 6412esac 6413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6414 (eval "$ac_compiler -v >&5") 2>&5 6415 ac_status=$? 6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6417 (exit $ac_status); } 6418{ (ac_try="$ac_compiler -V >&5" 6419case "(($ac_try" in 6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6421 *) ac_try_echo=$ac_try;; 6422esac 6423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6424 (eval "$ac_compiler -V >&5") 2>&5 6425 ac_status=$? 6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6427 (exit $ac_status); } 6428rm -f a.out 6429 6430# If we don't use `.F' as extension, the preprocessor is not run on the 6431# input file. (Note that this only needs to work for GNU compilers.) 6432ac_save_ext=$ac_ext 6433ac_ext=F 6434{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6435echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6436if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6437 echo $ECHO_N "(cached) $ECHO_C" >&6 6438else 6439 cat >conftest.$ac_ext <<_ACEOF 6440 program main 6441#ifndef __GNUC__ 6442 choke me 6443#endif 6444 6445 end 6446_ACEOF 6447rm -f conftest.$ac_objext 6448if { (ac_try="$ac_compile" 6449case "(($ac_try" in 6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6451 *) ac_try_echo=$ac_try;; 6452esac 6453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6454 (eval "$ac_compile") 2>conftest.er1 6455 ac_status=$? 6456 grep -v '^ *+' conftest.er1 >conftest.err 6457 rm -f conftest.er1 6458 cat conftest.err >&5 6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6460 (exit $ac_status); } && { 6461 test -z "$ac_f77_werror_flag" || 6462 test ! -s conftest.err 6463 } && test -s conftest.$ac_objext; then 6464 ac_compiler_gnu=yes 6465else 6466 echo "$as_me: failed program was:" >&5 6467sed 's/^/| /' conftest.$ac_ext >&5 6468 6469 ac_compiler_gnu=no 6470fi 6471 6472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6473ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6474 6475fi 6476{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6477echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6478ac_ext=$ac_save_ext 6479ac_test_FFLAGS=${FFLAGS+set} 6480ac_save_FFLAGS=$FFLAGS 6481FFLAGS= 6482{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6483echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6484if test "${ac_cv_prog_f77_g+set}" = set; then 6485 echo $ECHO_N "(cached) $ECHO_C" >&6 6486else 6487 FFLAGS=-g 6488cat >conftest.$ac_ext <<_ACEOF 6489 program main 6490 6491 end 6492_ACEOF 6493rm -f conftest.$ac_objext 6494if { (ac_try="$ac_compile" 6495case "(($ac_try" in 6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6497 *) ac_try_echo=$ac_try;; 6498esac 6499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6500 (eval "$ac_compile") 2>conftest.er1 6501 ac_status=$? 6502 grep -v '^ *+' conftest.er1 >conftest.err 6503 rm -f conftest.er1 6504 cat conftest.err >&5 6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6506 (exit $ac_status); } && { 6507 test -z "$ac_f77_werror_flag" || 6508 test ! -s conftest.err 6509 } && test -s conftest.$ac_objext; then 6510 ac_cv_prog_f77_g=yes 6511else 6512 echo "$as_me: failed program was:" >&5 6513sed 's/^/| /' conftest.$ac_ext >&5 6514 6515 ac_cv_prog_f77_g=no 6516fi 6517 6518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6519 6520fi 6521{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6522echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6523if test "$ac_test_FFLAGS" = set; then 6524 FFLAGS=$ac_save_FFLAGS 6525elif test $ac_cv_prog_f77_g = yes; then 6526 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6527 FFLAGS="-g -O2" 6528 else 6529 FFLAGS="-g" 6530 fi 6531else 6532 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6533 FFLAGS="-O2" 6534 else 6535 FFLAGS= 6536 fi 6537fi 6538 6539G77=`test $ac_compiler_gnu = yes && echo yes` 6540ac_ext=c 6541ac_cpp='$CPP $CPPFLAGS' 6542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6544ac_compiler_gnu=$ac_cv_c_compiler_gnu 6545 6546 6547 6548# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6549# find the maximum length of command line arguments 6550{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6551echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6552if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6553 echo $ECHO_N "(cached) $ECHO_C" >&6 6554else 6555 i=0 6556 teststring="ABCD" 6557 6558 case $build_os in 6559 msdosdjgpp*) 6560 # On DJGPP, this test can blow up pretty badly due to problems in libc 6561 # (any single argument exceeding 2000 bytes causes a buffer overrun 6562 # during glob expansion). Even if it were fixed, the result of this 6563 # check would be larger than it should be. 6564 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6565 ;; 6566 6567 gnu*) 6568 # Under GNU Hurd, this test is not required because there is 6569 # no limit to the length of command line arguments. 6570 # Libtool will interpret -1 as no limit whatsoever 6571 lt_cv_sys_max_cmd_len=-1; 6572 ;; 6573 6574 cygwin* | mingw*) 6575 # On Win9x/ME, this test blows up -- it succeeds, but takes 6576 # about 5 minutes as the teststring grows exponentially. 6577 # Worse, since 9x/ME are not pre-emptively multitasking, 6578 # you end up with a "frozen" computer, even though with patience 6579 # the test eventually succeeds (with a max line length of 256k). 6580 # Instead, let's just punt: use the minimum linelength reported by 6581 # all of the supported platforms: 8192 (on NT/2K/XP). 6582 lt_cv_sys_max_cmd_len=8192; 6583 ;; 6584 6585 amigaos*) 6586 # On AmigaOS with pdksh, this test takes hours, literally. 6587 # So we just punt and use a minimum line length of 8192. 6588 lt_cv_sys_max_cmd_len=8192; 6589 ;; 6590 6591 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6592 # This has been around since 386BSD, at least. Likely further. 6593 if test -x /sbin/sysctl; then 6594 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6595 elif test -x /usr/sbin/sysctl; then 6596 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6597 else 6598 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6599 fi 6600 # And add a safety zone 6601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6603 ;; 6604 6605 interix*) 6606 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6607 lt_cv_sys_max_cmd_len=196608 6608 ;; 6609 6610 osf*) 6611 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6612 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6613 # nice to cause kernel panics so lets avoid the loop below. 6614 # First set a reasonable default. 6615 lt_cv_sys_max_cmd_len=16384 6616 # 6617 if test -x /sbin/sysconfig; then 6618 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6619 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6620 esac 6621 fi 6622 ;; 6623 sco3.2v5*) 6624 lt_cv_sys_max_cmd_len=102400 6625 ;; 6626 sysv5* | sco5v6* | sysv4.2uw2*) 6627 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6628 if test -n "$kargmax"; then 6629 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6630 else 6631 lt_cv_sys_max_cmd_len=32768 6632 fi 6633 ;; 6634 *) 6635 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6636 if test -n "$lt_cv_sys_max_cmd_len"; then 6637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6639 else 6640 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6641 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6642 = "XX$teststring") >/dev/null 2>&1 && 6643 new_result=`expr "X$teststring" : ".*" 2>&1` && 6644 lt_cv_sys_max_cmd_len=$new_result && 6645 test $i != 17 # 1/2 MB should be enough 6646 do 6647 i=`expr $i + 1` 6648 teststring=$teststring$teststring 6649 done 6650 teststring= 6651 # Add a significant safety factor because C++ compilers can tack on massive 6652 # amounts of additional arguments before passing them to the linker. 6653 # It appears as though 1/2 is a usable value. 6654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6655 fi 6656 ;; 6657 esac 6658 6659fi 6660 6661if test -n $lt_cv_sys_max_cmd_len ; then 6662 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6663echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6664else 6665 { echo "$as_me:$LINENO: result: none" >&5 6666echo "${ECHO_T}none" >&6; } 6667fi 6668 6669 6670 6671 6672 6673# Check for command to grab the raw symbol name followed by C symbol from nm. 6674{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6675echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6676if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6677 echo $ECHO_N "(cached) $ECHO_C" >&6 6678else 6679 6680# These are sane defaults that work on at least a few old systems. 6681# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6682 6683# Character class describing NM global symbol codes. 6684symcode='[BCDEGRST]' 6685 6686# Regexp to match symbols that can be accessed directly from C. 6687sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6688 6689# Transform an extracted symbol line into a proper C declaration 6690lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6691 6692# Transform an extracted symbol line into symbol name and symbol address 6693lt_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'" 6694 6695# Define system-specific variables. 6696case $host_os in 6697aix*) 6698 symcode='[BCDT]' 6699 ;; 6700cygwin* | mingw* | pw32*) 6701 symcode='[ABCDGISTW]' 6702 ;; 6703hpux*) # Its linker distinguishes data from code symbols 6704 if test "$host_cpu" = ia64; then 6705 symcode='[ABCDEGRST]' 6706 fi 6707 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6708 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'" 6709 ;; 6710linux* | k*bsd*-gnu) 6711 if test "$host_cpu" = ia64; then 6712 symcode='[ABCDGIRSTW]' 6713 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6714 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'" 6715 fi 6716 ;; 6717irix* | nonstopux*) 6718 symcode='[BCDEGRST]' 6719 ;; 6720osf*) 6721 symcode='[BCDEGQRST]' 6722 ;; 6723solaris*) 6724 symcode='[BDRT]' 6725 ;; 6726sco3.2v5*) 6727 symcode='[DT]' 6728 ;; 6729sysv4.2uw2*) 6730 symcode='[DT]' 6731 ;; 6732sysv5* | sco5v6* | unixware* | OpenUNIX*) 6733 symcode='[ABDT]' 6734 ;; 6735sysv4) 6736 symcode='[DFNSTU]' 6737 ;; 6738esac 6739 6740# Handle CRLF in mingw tool chain 6741opt_cr= 6742case $build_os in 6743mingw*) 6744 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6745 ;; 6746esac 6747 6748# If we're using GNU nm, then use its standard symbol codes. 6749case `$NM -V 2>&1` in 6750*GNU* | *'with BFD'*) 6751 symcode='[ABCDGIRSTW]' ;; 6752esac 6753 6754# Try without a prefix undercore, then with it. 6755for ac_symprfx in "" "_"; do 6756 6757 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6758 symxfrm="\\1 $ac_symprfx\\2 \\2" 6759 6760 # Write the raw and C identifiers. 6761 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6762 6763 # Check to see that the pipe works correctly. 6764 pipe_works=no 6765 6766 rm -f conftest* 6767 cat > conftest.$ac_ext <<EOF 6768#ifdef __cplusplus 6769extern "C" { 6770#endif 6771char nm_test_var; 6772void nm_test_func(){} 6773#ifdef __cplusplus 6774} 6775#endif 6776int main(){nm_test_var='a';nm_test_func();return(0);} 6777EOF 6778 6779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6780 (eval $ac_compile) 2>&5 6781 ac_status=$? 6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6783 (exit $ac_status); }; then 6784 # Now try to grab the symbols. 6785 nlist=conftest.nm 6786 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6787 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6788 ac_status=$? 6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6790 (exit $ac_status); } && test -s "$nlist"; then 6791 # Try sorting and uniquifying the output. 6792 if sort "$nlist" | uniq > "$nlist"T; then 6793 mv -f "$nlist"T "$nlist" 6794 else 6795 rm -f "$nlist"T 6796 fi 6797 6798 # Make sure that we snagged all the symbols we need. 6799 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6800 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6801 cat <<EOF > conftest.$ac_ext 6802#ifdef __cplusplus 6803extern "C" { 6804#endif 6805 6806EOF 6807 # Now generate the symbol file. 6808 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6809 6810 cat <<EOF >> conftest.$ac_ext 6811#if defined (__STDC__) && __STDC__ 6812# define lt_ptr_t void * 6813#else 6814# define lt_ptr_t char * 6815# define const 6816#endif 6817 6818/* The mapping between symbol names and symbols. */ 6819const struct { 6820 const char *name; 6821 lt_ptr_t address; 6822} 6823lt_preloaded_symbols[] = 6824{ 6825EOF 6826 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6827 cat <<\EOF >> conftest.$ac_ext 6828 {0, (lt_ptr_t) 0} 6829}; 6830 6831#ifdef __cplusplus 6832} 6833#endif 6834EOF 6835 # Now try linking the two files. 6836 mv conftest.$ac_objext conftstm.$ac_objext 6837 lt_save_LIBS="$LIBS" 6838 lt_save_CFLAGS="$CFLAGS" 6839 LIBS="conftstm.$ac_objext" 6840 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6842 (eval $ac_link) 2>&5 6843 ac_status=$? 6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6845 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6846 pipe_works=yes 6847 fi 6848 LIBS="$lt_save_LIBS" 6849 CFLAGS="$lt_save_CFLAGS" 6850 else 6851 echo "cannot find nm_test_func in $nlist" >&5 6852 fi 6853 else 6854 echo "cannot find nm_test_var in $nlist" >&5 6855 fi 6856 else 6857 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6858 fi 6859 else 6860 echo "$progname: failed program was:" >&5 6861 cat conftest.$ac_ext >&5 6862 fi 6863 rm -rf conftest* conftst* 6864 6865 # Do not use the global_symbol_pipe unless it works. 6866 if test "$pipe_works" = yes; then 6867 break 6868 else 6869 lt_cv_sys_global_symbol_pipe= 6870 fi 6871done 6872 6873fi 6874 6875if test -z "$lt_cv_sys_global_symbol_pipe"; then 6876 lt_cv_sys_global_symbol_to_cdecl= 6877fi 6878if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6879 { echo "$as_me:$LINENO: result: failed" >&5 6880echo "${ECHO_T}failed" >&6; } 6881else 6882 { echo "$as_me:$LINENO: result: ok" >&5 6883echo "${ECHO_T}ok" >&6; } 6884fi 6885 6886{ echo "$as_me:$LINENO: checking for objdir" >&5 6887echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6888if test "${lt_cv_objdir+set}" = set; then 6889 echo $ECHO_N "(cached) $ECHO_C" >&6 6890else 6891 rm -f .libs 2>/dev/null 6892mkdir .libs 2>/dev/null 6893if test -d .libs; then 6894 lt_cv_objdir=.libs 6895else 6896 # MS-DOS does not allow filenames that begin with a dot. 6897 lt_cv_objdir=_libs 6898fi 6899rmdir .libs 2>/dev/null 6900fi 6901{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6902echo "${ECHO_T}$lt_cv_objdir" >&6; } 6903objdir=$lt_cv_objdir 6904 6905 6906 6907 6908 6909case $host_os in 6910aix3*) 6911 # AIX sometimes has problems with the GCC collect2 program. For some 6912 # reason, if we set the COLLECT_NAMES environment variable, the problems 6913 # vanish in a puff of smoke. 6914 if test "X${COLLECT_NAMES+set}" != Xset; then 6915 COLLECT_NAMES= 6916 export COLLECT_NAMES 6917 fi 6918 ;; 6919esac 6920 6921# Sed substitution that helps us do robust quoting. It backslashifies 6922# metacharacters that are still active within double-quoted strings. 6923Xsed='sed -e 1s/^X//' 6924sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6925 6926# Same as above, but do not quote variable references. 6927double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6928 6929# Sed substitution to delay expansion of an escaped shell variable in a 6930# double_quote_subst'ed string. 6931delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6932 6933# Sed substitution to avoid accidental globbing in evaled expressions 6934no_glob_subst='s/\*/\\\*/g' 6935 6936# Constants: 6937rm="rm -f" 6938 6939# Global variables: 6940default_ofile=libtool 6941can_build_shared=yes 6942 6943# All known linkers require a `.a' archive for static linking (except MSVC, 6944# which needs '.lib'). 6945libext=a 6946ltmain="$ac_aux_dir/ltmain.sh" 6947ofile="$default_ofile" 6948with_gnu_ld="$lt_cv_prog_gnu_ld" 6949 6950if test -n "$ac_tool_prefix"; then 6951 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6952set dummy ${ac_tool_prefix}ar; ac_word=$2 6953{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6955if test "${ac_cv_prog_AR+set}" = set; then 6956 echo $ECHO_N "(cached) $ECHO_C" >&6 6957else 6958 if test -n "$AR"; then 6959 ac_cv_prog_AR="$AR" # Let the user override the test. 6960else 6961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6962for as_dir in $PATH 6963do 6964 IFS=$as_save_IFS 6965 test -z "$as_dir" && as_dir=. 6966 for ac_exec_ext in '' $ac_executable_extensions; do 6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6968 ac_cv_prog_AR="${ac_tool_prefix}ar" 6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6970 break 2 6971 fi 6972done 6973done 6974IFS=$as_save_IFS 6975 6976fi 6977fi 6978AR=$ac_cv_prog_AR 6979if test -n "$AR"; then 6980 { echo "$as_me:$LINENO: result: $AR" >&5 6981echo "${ECHO_T}$AR" >&6; } 6982else 6983 { echo "$as_me:$LINENO: result: no" >&5 6984echo "${ECHO_T}no" >&6; } 6985fi 6986 6987 6988fi 6989if test -z "$ac_cv_prog_AR"; then 6990 ac_ct_AR=$AR 6991 # Extract the first word of "ar", so it can be a program name with args. 6992set dummy ar; ac_word=$2 6993{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6995if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6996 echo $ECHO_N "(cached) $ECHO_C" >&6 6997else 6998 if test -n "$ac_ct_AR"; then 6999 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7000else 7001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7002for as_dir in $PATH 7003do 7004 IFS=$as_save_IFS 7005 test -z "$as_dir" && as_dir=. 7006 for ac_exec_ext in '' $ac_executable_extensions; do 7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7008 ac_cv_prog_ac_ct_AR="ar" 7009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7010 break 2 7011 fi 7012done 7013done 7014IFS=$as_save_IFS 7015 7016fi 7017fi 7018ac_ct_AR=$ac_cv_prog_ac_ct_AR 7019if test -n "$ac_ct_AR"; then 7020 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7021echo "${ECHO_T}$ac_ct_AR" >&6; } 7022else 7023 { echo "$as_me:$LINENO: result: no" >&5 7024echo "${ECHO_T}no" >&6; } 7025fi 7026 7027 if test "x$ac_ct_AR" = x; then 7028 AR="false" 7029 else 7030 case $cross_compiling:$ac_tool_warned in 7031yes:) 7032{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7033whose name does not start with the host triplet. If you think this 7034configuration is useful to you, please write to autoconf@gnu.org." >&5 7035echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7036whose name does not start with the host triplet. If you think this 7037configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7038ac_tool_warned=yes ;; 7039esac 7040 AR=$ac_ct_AR 7041 fi 7042else 7043 AR="$ac_cv_prog_AR" 7044fi 7045 7046if test -n "$ac_tool_prefix"; then 7047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7048set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7049{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7051if test "${ac_cv_prog_RANLIB+set}" = set; then 7052 echo $ECHO_N "(cached) $ECHO_C" >&6 7053else 7054 if test -n "$RANLIB"; then 7055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7056else 7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7058for as_dir in $PATH 7059do 7060 IFS=$as_save_IFS 7061 test -z "$as_dir" && as_dir=. 7062 for ac_exec_ext in '' $ac_executable_extensions; do 7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7064 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7066 break 2 7067 fi 7068done 7069done 7070IFS=$as_save_IFS 7071 7072fi 7073fi 7074RANLIB=$ac_cv_prog_RANLIB 7075if test -n "$RANLIB"; then 7076 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7077echo "${ECHO_T}$RANLIB" >&6; } 7078else 7079 { echo "$as_me:$LINENO: result: no" >&5 7080echo "${ECHO_T}no" >&6; } 7081fi 7082 7083 7084fi 7085if test -z "$ac_cv_prog_RANLIB"; then 7086 ac_ct_RANLIB=$RANLIB 7087 # Extract the first word of "ranlib", so it can be a program name with args. 7088set dummy ranlib; ac_word=$2 7089{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7091if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7092 echo $ECHO_N "(cached) $ECHO_C" >&6 7093else 7094 if test -n "$ac_ct_RANLIB"; then 7095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7096else 7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7098for as_dir in $PATH 7099do 7100 IFS=$as_save_IFS 7101 test -z "$as_dir" && as_dir=. 7102 for ac_exec_ext in '' $ac_executable_extensions; do 7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7104 ac_cv_prog_ac_ct_RANLIB="ranlib" 7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7106 break 2 7107 fi 7108done 7109done 7110IFS=$as_save_IFS 7111 7112fi 7113fi 7114ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7115if test -n "$ac_ct_RANLIB"; then 7116 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7117echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7118else 7119 { echo "$as_me:$LINENO: result: no" >&5 7120echo "${ECHO_T}no" >&6; } 7121fi 7122 7123 if test "x$ac_ct_RANLIB" = x; then 7124 RANLIB=":" 7125 else 7126 case $cross_compiling:$ac_tool_warned in 7127yes:) 7128{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7129whose name does not start with the host triplet. If you think this 7130configuration is useful to you, please write to autoconf@gnu.org." >&5 7131echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7132whose name does not start with the host triplet. If you think this 7133configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7134ac_tool_warned=yes ;; 7135esac 7136 RANLIB=$ac_ct_RANLIB 7137 fi 7138else 7139 RANLIB="$ac_cv_prog_RANLIB" 7140fi 7141 7142if test -n "$ac_tool_prefix"; then 7143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7144set dummy ${ac_tool_prefix}strip; ac_word=$2 7145{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7147if test "${ac_cv_prog_STRIP+set}" = set; then 7148 echo $ECHO_N "(cached) $ECHO_C" >&6 7149else 7150 if test -n "$STRIP"; then 7151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7152else 7153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7154for as_dir in $PATH 7155do 7156 IFS=$as_save_IFS 7157 test -z "$as_dir" && as_dir=. 7158 for ac_exec_ext in '' $ac_executable_extensions; do 7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7160 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7162 break 2 7163 fi 7164done 7165done 7166IFS=$as_save_IFS 7167 7168fi 7169fi 7170STRIP=$ac_cv_prog_STRIP 7171if test -n "$STRIP"; then 7172 { echo "$as_me:$LINENO: result: $STRIP" >&5 7173echo "${ECHO_T}$STRIP" >&6; } 7174else 7175 { echo "$as_me:$LINENO: result: no" >&5 7176echo "${ECHO_T}no" >&6; } 7177fi 7178 7179 7180fi 7181if test -z "$ac_cv_prog_STRIP"; then 7182 ac_ct_STRIP=$STRIP 7183 # Extract the first word of "strip", so it can be a program name with args. 7184set dummy strip; ac_word=$2 7185{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7187if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7188 echo $ECHO_N "(cached) $ECHO_C" >&6 7189else 7190 if test -n "$ac_ct_STRIP"; then 7191 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7192else 7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7194for as_dir in $PATH 7195do 7196 IFS=$as_save_IFS 7197 test -z "$as_dir" && as_dir=. 7198 for ac_exec_ext in '' $ac_executable_extensions; do 7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7200 ac_cv_prog_ac_ct_STRIP="strip" 7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7202 break 2 7203 fi 7204done 7205done 7206IFS=$as_save_IFS 7207 7208fi 7209fi 7210ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7211if test -n "$ac_ct_STRIP"; then 7212 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7213echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7214else 7215 { echo "$as_me:$LINENO: result: no" >&5 7216echo "${ECHO_T}no" >&6; } 7217fi 7218 7219 if test "x$ac_ct_STRIP" = x; then 7220 STRIP=":" 7221 else 7222 case $cross_compiling:$ac_tool_warned in 7223yes:) 7224{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7225whose name does not start with the host triplet. If you think this 7226configuration is useful to you, please write to autoconf@gnu.org." >&5 7227echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7228whose name does not start with the host triplet. If you think this 7229configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7230ac_tool_warned=yes ;; 7231esac 7232 STRIP=$ac_ct_STRIP 7233 fi 7234else 7235 STRIP="$ac_cv_prog_STRIP" 7236fi 7237 7238 7239old_CC="$CC" 7240old_CFLAGS="$CFLAGS" 7241 7242# Set sane defaults for various variables 7243test -z "$AR" && AR=ar 7244test -z "$AR_FLAGS" && AR_FLAGS=cru 7245test -z "$AS" && AS=as 7246test -z "$CC" && CC=cc 7247test -z "$LTCC" && LTCC=$CC 7248test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7249test -z "$DLLTOOL" && DLLTOOL=dlltool 7250test -z "$LD" && LD=ld 7251test -z "$LN_S" && LN_S="ln -s" 7252test -z "$MAGIC_CMD" && MAGIC_CMD=file 7253test -z "$NM" && NM=nm 7254test -z "$SED" && SED=sed 7255test -z "$OBJDUMP" && OBJDUMP=objdump 7256test -z "$RANLIB" && RANLIB=: 7257test -z "$STRIP" && STRIP=: 7258test -z "$ac_objext" && ac_objext=o 7259 7260# Determine commands to create old-style static archives. 7261old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7262old_postinstall_cmds='chmod 644 $oldlib' 7263old_postuninstall_cmds= 7264 7265if test -n "$RANLIB"; then 7266 case $host_os in 7267 openbsd*) 7268 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7269 ;; 7270 *) 7271 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7272 ;; 7273 esac 7274 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7275fi 7276 7277for cc_temp in $compiler""; do 7278 case $cc_temp in 7279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7281 \-*) ;; 7282 *) break;; 7283 esac 7284done 7285cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7286 7287 7288# Only perform the check for file, if the check method requires it 7289case $deplibs_check_method in 7290file_magic*) 7291 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7292 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7293echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7294if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7295 echo $ECHO_N "(cached) $ECHO_C" >&6 7296else 7297 case $MAGIC_CMD in 7298[\\/*] | ?:[\\/]*) 7299 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7300 ;; 7301*) 7302 lt_save_MAGIC_CMD="$MAGIC_CMD" 7303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7304 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7305 for ac_dir in $ac_dummy; do 7306 IFS="$lt_save_ifs" 7307 test -z "$ac_dir" && ac_dir=. 7308 if test -f $ac_dir/${ac_tool_prefix}file; then 7309 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7310 if test -n "$file_magic_test_file"; then 7311 case $deplibs_check_method in 7312 "file_magic "*) 7313 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7315 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7316 $EGREP "$file_magic_regex" > /dev/null; then 7317 : 7318 else 7319 cat <<EOF 1>&2 7320 7321*** Warning: the command libtool uses to detect shared libraries, 7322*** $file_magic_cmd, produces output that libtool cannot recognize. 7323*** The result is that libtool may fail to recognize shared libraries 7324*** as such. This will affect the creation of libtool libraries that 7325*** depend on shared libraries, but programs linked with such libtool 7326*** libraries will work regardless of this problem. Nevertheless, you 7327*** may want to report the problem to your system manager and/or to 7328*** bug-libtool@gnu.org 7329 7330EOF 7331 fi ;; 7332 esac 7333 fi 7334 break 7335 fi 7336 done 7337 IFS="$lt_save_ifs" 7338 MAGIC_CMD="$lt_save_MAGIC_CMD" 7339 ;; 7340esac 7341fi 7342 7343MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7344if test -n "$MAGIC_CMD"; then 7345 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7346echo "${ECHO_T}$MAGIC_CMD" >&6; } 7347else 7348 { echo "$as_me:$LINENO: result: no" >&5 7349echo "${ECHO_T}no" >&6; } 7350fi 7351 7352if test -z "$lt_cv_path_MAGIC_CMD"; then 7353 if test -n "$ac_tool_prefix"; then 7354 { echo "$as_me:$LINENO: checking for file" >&5 7355echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7356if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7357 echo $ECHO_N "(cached) $ECHO_C" >&6 7358else 7359 case $MAGIC_CMD in 7360[\\/*] | ?:[\\/]*) 7361 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7362 ;; 7363*) 7364 lt_save_MAGIC_CMD="$MAGIC_CMD" 7365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7366 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7367 for ac_dir in $ac_dummy; do 7368 IFS="$lt_save_ifs" 7369 test -z "$ac_dir" && ac_dir=. 7370 if test -f $ac_dir/file; then 7371 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7372 if test -n "$file_magic_test_file"; then 7373 case $deplibs_check_method in 7374 "file_magic "*) 7375 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7376 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7377 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7378 $EGREP "$file_magic_regex" > /dev/null; then 7379 : 7380 else 7381 cat <<EOF 1>&2 7382 7383*** Warning: the command libtool uses to detect shared libraries, 7384*** $file_magic_cmd, produces output that libtool cannot recognize. 7385*** The result is that libtool may fail to recognize shared libraries 7386*** as such. This will affect the creation of libtool libraries that 7387*** depend on shared libraries, but programs linked with such libtool 7388*** libraries will work regardless of this problem. Nevertheless, you 7389*** may want to report the problem to your system manager and/or to 7390*** bug-libtool@gnu.org 7391 7392EOF 7393 fi ;; 7394 esac 7395 fi 7396 break 7397 fi 7398 done 7399 IFS="$lt_save_ifs" 7400 MAGIC_CMD="$lt_save_MAGIC_CMD" 7401 ;; 7402esac 7403fi 7404 7405MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7406if test -n "$MAGIC_CMD"; then 7407 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7408echo "${ECHO_T}$MAGIC_CMD" >&6; } 7409else 7410 { echo "$as_me:$LINENO: result: no" >&5 7411echo "${ECHO_T}no" >&6; } 7412fi 7413 7414 else 7415 MAGIC_CMD=: 7416 fi 7417fi 7418 7419 fi 7420 ;; 7421esac 7422 7423 7424 case $host_os in 7425 rhapsody* | darwin*) 7426 if test -n "$ac_tool_prefix"; then 7427 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7428set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7429{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7431if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7432 echo $ECHO_N "(cached) $ECHO_C" >&6 7433else 7434 if test -n "$DSYMUTIL"; then 7435 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7436else 7437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7438for as_dir in $PATH 7439do 7440 IFS=$as_save_IFS 7441 test -z "$as_dir" && as_dir=. 7442 for ac_exec_ext in '' $ac_executable_extensions; do 7443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7444 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7446 break 2 7447 fi 7448done 7449done 7450IFS=$as_save_IFS 7451 7452fi 7453fi 7454DSYMUTIL=$ac_cv_prog_DSYMUTIL 7455if test -n "$DSYMUTIL"; then 7456 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7457echo "${ECHO_T}$DSYMUTIL" >&6; } 7458else 7459 { echo "$as_me:$LINENO: result: no" >&5 7460echo "${ECHO_T}no" >&6; } 7461fi 7462 7463 7464fi 7465if test -z "$ac_cv_prog_DSYMUTIL"; then 7466 ac_ct_DSYMUTIL=$DSYMUTIL 7467 # Extract the first word of "dsymutil", so it can be a program name with args. 7468set dummy dsymutil; ac_word=$2 7469{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7471if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7472 echo $ECHO_N "(cached) $ECHO_C" >&6 7473else 7474 if test -n "$ac_ct_DSYMUTIL"; then 7475 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7476else 7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7478for as_dir in $PATH 7479do 7480 IFS=$as_save_IFS 7481 test -z "$as_dir" && as_dir=. 7482 for ac_exec_ext in '' $ac_executable_extensions; do 7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7484 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7486 break 2 7487 fi 7488done 7489done 7490IFS=$as_save_IFS 7491 7492fi 7493fi 7494ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7495if test -n "$ac_ct_DSYMUTIL"; then 7496 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7497echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 7498else 7499 { echo "$as_me:$LINENO: result: no" >&5 7500echo "${ECHO_T}no" >&6; } 7501fi 7502 7503 if test "x$ac_ct_DSYMUTIL" = x; then 7504 DSYMUTIL=":" 7505 else 7506 case $cross_compiling:$ac_tool_warned in 7507yes:) 7508{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7509whose name does not start with the host triplet. If you think this 7510configuration is useful to you, please write to autoconf@gnu.org." >&5 7511echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7512whose name does not start with the host triplet. If you think this 7513configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7514ac_tool_warned=yes ;; 7515esac 7516 DSYMUTIL=$ac_ct_DSYMUTIL 7517 fi 7518else 7519 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7520fi 7521 7522 if test -n "$ac_tool_prefix"; then 7523 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7524set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7525{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7527if test "${ac_cv_prog_NMEDIT+set}" = set; then 7528 echo $ECHO_N "(cached) $ECHO_C" >&6 7529else 7530 if test -n "$NMEDIT"; then 7531 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7532else 7533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7534for as_dir in $PATH 7535do 7536 IFS=$as_save_IFS 7537 test -z "$as_dir" && as_dir=. 7538 for ac_exec_ext in '' $ac_executable_extensions; do 7539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7540 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7542 break 2 7543 fi 7544done 7545done 7546IFS=$as_save_IFS 7547 7548fi 7549fi 7550NMEDIT=$ac_cv_prog_NMEDIT 7551if test -n "$NMEDIT"; then 7552 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 7553echo "${ECHO_T}$NMEDIT" >&6; } 7554else 7555 { echo "$as_me:$LINENO: result: no" >&5 7556echo "${ECHO_T}no" >&6; } 7557fi 7558 7559 7560fi 7561if test -z "$ac_cv_prog_NMEDIT"; then 7562 ac_ct_NMEDIT=$NMEDIT 7563 # Extract the first word of "nmedit", so it can be a program name with args. 7564set dummy nmedit; ac_word=$2 7565{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7567if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7568 echo $ECHO_N "(cached) $ECHO_C" >&6 7569else 7570 if test -n "$ac_ct_NMEDIT"; then 7571 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7572else 7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7574for as_dir in $PATH 7575do 7576 IFS=$as_save_IFS 7577 test -z "$as_dir" && as_dir=. 7578 for ac_exec_ext in '' $ac_executable_extensions; do 7579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7580 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7582 break 2 7583 fi 7584done 7585done 7586IFS=$as_save_IFS 7587 7588fi 7589fi 7590ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7591if test -n "$ac_ct_NMEDIT"; then 7592 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7593echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 7594else 7595 { echo "$as_me:$LINENO: result: no" >&5 7596echo "${ECHO_T}no" >&6; } 7597fi 7598 7599 if test "x$ac_ct_NMEDIT" = x; then 7600 NMEDIT=":" 7601 else 7602 case $cross_compiling:$ac_tool_warned in 7603yes:) 7604{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7605whose name does not start with the host triplet. If you think this 7606configuration is useful to you, please write to autoconf@gnu.org." >&5 7607echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7608whose name does not start with the host triplet. If you think this 7609configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7610ac_tool_warned=yes ;; 7611esac 7612 NMEDIT=$ac_ct_NMEDIT 7613 fi 7614else 7615 NMEDIT="$ac_cv_prog_NMEDIT" 7616fi 7617 7618 7619 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7620echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 7621if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7622 echo $ECHO_N "(cached) $ECHO_C" >&6 7623else 7624 lt_cv_apple_cc_single_mod=no 7625 if test -z "${LT_MULTI_MODULE}"; then 7626 # By default we will add the -single_module flag. You can override 7627 # by either setting the environment variable LT_MULTI_MODULE 7628 # non-empty at configure time, or by adding -multi_module to the 7629 # link flags. 7630 echo "int foo(void){return 1;}" > conftest.c 7631 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7632 -dynamiclib ${wl}-single_module conftest.c 7633 if test -f libconftest.dylib; then 7634 lt_cv_apple_cc_single_mod=yes 7635 rm -rf libconftest.dylib* 7636 fi 7637 rm conftest.c 7638 fi 7639fi 7640{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7641echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 7642 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7643echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 7644if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7645 echo $ECHO_N "(cached) $ECHO_C" >&6 7646else 7647 lt_cv_ld_exported_symbols_list=no 7648 save_LDFLAGS=$LDFLAGS 7649 echo "_main" > conftest.sym 7650 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7651 cat >conftest.$ac_ext <<_ACEOF 7652/* confdefs.h. */ 7653_ACEOF 7654cat confdefs.h >>conftest.$ac_ext 7655cat >>conftest.$ac_ext <<_ACEOF 7656/* end confdefs.h. */ 7657 7658int 7659main () 7660{ 7661 7662 ; 7663 return 0; 7664} 7665_ACEOF 7666rm -f conftest.$ac_objext conftest$ac_exeext 7667if { (ac_try="$ac_link" 7668case "(($ac_try" in 7669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7670 *) ac_try_echo=$ac_try;; 7671esac 7672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7673 (eval "$ac_link") 2>conftest.er1 7674 ac_status=$? 7675 grep -v '^ *+' conftest.er1 >conftest.err 7676 rm -f conftest.er1 7677 cat conftest.err >&5 7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7679 (exit $ac_status); } && { 7680 test -z "$ac_c_werror_flag" || 7681 test ! -s conftest.err 7682 } && test -s conftest$ac_exeext && 7683 $as_test_x conftest$ac_exeext; then 7684 lt_cv_ld_exported_symbols_list=yes 7685else 7686 echo "$as_me: failed program was:" >&5 7687sed 's/^/| /' conftest.$ac_ext >&5 7688 7689 lt_cv_ld_exported_symbols_list=no 7690fi 7691 7692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7693 conftest$ac_exeext conftest.$ac_ext 7694 LDFLAGS="$save_LDFLAGS" 7695 7696fi 7697{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7698echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 7699 case $host_os in 7700 rhapsody* | darwin1.[0123]) 7701 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7702 darwin1.*) 7703 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7704 darwin*) 7705 # if running on 10.5 or later, the deployment target defaults 7706 # to the OS version, if on x86, and 10.4, the deployment 7707 # target defaults to 10.4. Don't you love it? 7708 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7709 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7710 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7711 10.[012]*) 7712 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7713 10.*) 7714 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7715 esac 7716 ;; 7717 esac 7718 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7719 _lt_dar_single_mod='$single_module' 7720 fi 7721 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7722 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7723 else 7724 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7725 fi 7726 if test "$DSYMUTIL" != ":"; then 7727 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7728 else 7729 _lt_dsymutil= 7730 fi 7731 ;; 7732 esac 7733 7734 7735enable_dlopen=no 7736enable_win32_dll=yes 7737 7738# Check whether --enable-libtool-lock was given. 7739if test "${enable_libtool_lock+set}" = set; then 7740 enableval=$enable_libtool_lock; 7741fi 7742 7743test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7744 7745 7746# Check whether --with-pic was given. 7747if test "${with_pic+set}" = set; then 7748 withval=$with_pic; pic_mode="$withval" 7749else 7750 pic_mode=default 7751fi 7752 7753test -z "$pic_mode" && pic_mode=default 7754 7755# Use C for the default configuration in the libtool script 7756tagname= 7757lt_save_CC="$CC" 7758ac_ext=c 7759ac_cpp='$CPP $CPPFLAGS' 7760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7762ac_compiler_gnu=$ac_cv_c_compiler_gnu 7763 7764 7765# Source file extension for C test sources. 7766ac_ext=c 7767 7768# Object file extension for compiled C test sources. 7769objext=o 7770objext=$objext 7771 7772# Code to be used in simple compile tests 7773lt_simple_compile_test_code="int some_variable = 0;" 7774 7775# Code to be used in simple link tests 7776lt_simple_link_test_code='int main(){return(0);}' 7777 7778 7779# If no C compiler was specified, use CC. 7780LTCC=${LTCC-"$CC"} 7781 7782# If no C compiler flags were specified, use CFLAGS. 7783LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7784 7785# Allow CC to be a program name with arguments. 7786compiler=$CC 7787 7788 7789# save warnings/boilerplate of simple test code 7790ac_outfile=conftest.$ac_objext 7791echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7792eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7793_lt_compiler_boilerplate=`cat conftest.err` 7794$rm conftest* 7795 7796ac_outfile=conftest.$ac_objext 7797echo "$lt_simple_link_test_code" >conftest.$ac_ext 7798eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7799_lt_linker_boilerplate=`cat conftest.err` 7800$rm -r conftest* 7801 7802 7803 7804lt_prog_compiler_no_builtin_flag= 7805 7806if test "$GCC" = yes; then 7807 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7808 7809 7810{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7811echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7812if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7813 echo $ECHO_N "(cached) $ECHO_C" >&6 7814else 7815 lt_cv_prog_compiler_rtti_exceptions=no 7816 ac_outfile=conftest.$ac_objext 7817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7818 lt_compiler_flag="-fno-rtti -fno-exceptions" 7819 # Insert the option either (1) after the last *FLAGS variable, or 7820 # (2) before a word containing "conftest.", or (3) at the end. 7821 # Note that $ac_compile itself does not contain backslashes and begins 7822 # with a dollar sign (not a hyphen), so the echo should work correctly. 7823 # The option is referenced via a variable to avoid confusing sed. 7824 lt_compile=`echo "$ac_compile" | $SED \ 7825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7827 -e 's:$: $lt_compiler_flag:'` 7828 (eval echo "\"\$as_me:7828: $lt_compile\"" >&5) 7829 (eval "$lt_compile" 2>conftest.err) 7830 ac_status=$? 7831 cat conftest.err >&5 7832 echo "$as_me:7832: \$? = $ac_status" >&5 7833 if (exit $ac_status) && test -s "$ac_outfile"; then 7834 # The compiler can only warn and ignore the option if not recognized 7835 # So say no if there are warnings other than the usual output. 7836 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7839 lt_cv_prog_compiler_rtti_exceptions=yes 7840 fi 7841 fi 7842 $rm conftest* 7843 7844fi 7845{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7846echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7847 7848if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7849 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7850else 7851 : 7852fi 7853 7854fi 7855 7856lt_prog_compiler_wl= 7857lt_prog_compiler_pic= 7858lt_prog_compiler_static= 7859 7860{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7861echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7862 7863 if test "$GCC" = yes; then 7864 lt_prog_compiler_wl='-Wl,' 7865 lt_prog_compiler_static='-static' 7866 7867 case $host_os in 7868 aix*) 7869 # All AIX code is PIC. 7870 if test "$host_cpu" = ia64; then 7871 # AIX 5 now supports IA64 processor 7872 lt_prog_compiler_static='-Bstatic' 7873 fi 7874 ;; 7875 7876 amigaos*) 7877 # FIXME: we need at least 68020 code to build shared libraries, but 7878 # adding the `-m68020' flag to GCC prevents building anything better, 7879 # like `-m68040'. 7880 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7881 ;; 7882 7883 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7884 # PIC is the default for these OSes. 7885 ;; 7886 7887 mingw* | cygwin* | pw32* | os2*) 7888 # This hack is so that the source file can tell whether it is being 7889 # built for inclusion in a dll (and should export symbols for example). 7890 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7891 # (--disable-auto-import) libraries 7892 lt_prog_compiler_pic='-DDLL_EXPORT' 7893 ;; 7894 7895 darwin* | rhapsody*) 7896 # PIC is the default on this platform 7897 # Common symbols not allowed in MH_DYLIB files 7898 lt_prog_compiler_pic='-fno-common' 7899 ;; 7900 7901 interix[3-9]*) 7902 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7903 # Instead, we relocate shared libraries at runtime. 7904 ;; 7905 7906 msdosdjgpp*) 7907 # Just because we use GCC doesn't mean we suddenly get shared libraries 7908 # on systems that don't support them. 7909 lt_prog_compiler_can_build_shared=no 7910 enable_shared=no 7911 ;; 7912 7913 sysv4*MP*) 7914 if test -d /usr/nec; then 7915 lt_prog_compiler_pic=-Kconform_pic 7916 fi 7917 ;; 7918 7919 hpux*) 7920 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7921 # not for PA HP-UX. 7922 case $host_cpu in 7923 hppa*64*|ia64*) 7924 # +Z the default 7925 ;; 7926 *) 7927 lt_prog_compiler_pic='-fPIC' 7928 ;; 7929 esac 7930 ;; 7931 7932 *) 7933 lt_prog_compiler_pic='-fPIC' 7934 ;; 7935 esac 7936 else 7937 # PORTME Check for flag to pass linker flags through the system compiler. 7938 case $host_os in 7939 aix*) 7940 lt_prog_compiler_wl='-Wl,' 7941 if test "$host_cpu" = ia64; then 7942 # AIX 5 now supports IA64 processor 7943 lt_prog_compiler_static='-Bstatic' 7944 else 7945 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7946 fi 7947 ;; 7948 darwin*) 7949 # PIC is the default on this platform 7950 # Common symbols not allowed in MH_DYLIB files 7951 case $cc_basename in 7952 xlc*) 7953 lt_prog_compiler_pic='-qnocommon' 7954 lt_prog_compiler_wl='-Wl,' 7955 ;; 7956 esac 7957 ;; 7958 7959 mingw* | cygwin* | pw32* | os2*) 7960 # This hack is so that the source file can tell whether it is being 7961 # built for inclusion in a dll (and should export symbols for example). 7962 lt_prog_compiler_pic='-DDLL_EXPORT' 7963 ;; 7964 7965 hpux9* | hpux10* | hpux11*) 7966 lt_prog_compiler_wl='-Wl,' 7967 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7968 # not for PA HP-UX. 7969 case $host_cpu in 7970 hppa*64*|ia64*) 7971 # +Z the default 7972 ;; 7973 *) 7974 lt_prog_compiler_pic='+Z' 7975 ;; 7976 esac 7977 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7978 lt_prog_compiler_static='${wl}-a ${wl}archive' 7979 ;; 7980 7981 irix5* | irix6* | nonstopux*) 7982 lt_prog_compiler_wl='-Wl,' 7983 # PIC (with -KPIC) is the default. 7984 lt_prog_compiler_static='-non_shared' 7985 ;; 7986 7987 newsos6) 7988 lt_prog_compiler_pic='-KPIC' 7989 lt_prog_compiler_static='-Bstatic' 7990 ;; 7991 7992 linux* | k*bsd*-gnu) 7993 case $cc_basename in 7994 icc* | ecc*) 7995 lt_prog_compiler_wl='-Wl,' 7996 lt_prog_compiler_pic='-KPIC' 7997 lt_prog_compiler_static='-static' 7998 ;; 7999 pgcc* | pgf77* | pgf90* | pgf95*) 8000 # Portland Group compilers (*not* the Pentium gcc compiler, 8001 # which looks to be a dead project) 8002 lt_prog_compiler_wl='-Wl,' 8003 lt_prog_compiler_pic='-fpic' 8004 lt_prog_compiler_static='-Bstatic' 8005 ;; 8006 ccc*) 8007 lt_prog_compiler_wl='-Wl,' 8008 # All Alpha code is PIC. 8009 lt_prog_compiler_static='-non_shared' 8010 ;; 8011 *) 8012 case `$CC -V 2>&1 | sed 5q` in 8013 *Sun\ C*) 8014 # Sun C 5.9 8015 lt_prog_compiler_pic='-KPIC' 8016 lt_prog_compiler_static='-Bstatic' 8017 lt_prog_compiler_wl='-Wl,' 8018 ;; 8019 *Sun\ F*) 8020 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8021 lt_prog_compiler_pic='-KPIC' 8022 lt_prog_compiler_static='-Bstatic' 8023 lt_prog_compiler_wl='' 8024 ;; 8025 esac 8026 ;; 8027 esac 8028 ;; 8029 8030 osf3* | osf4* | osf5*) 8031 lt_prog_compiler_wl='-Wl,' 8032 # All OSF/1 code is PIC. 8033 lt_prog_compiler_static='-non_shared' 8034 ;; 8035 8036 rdos*) 8037 lt_prog_compiler_static='-non_shared' 8038 ;; 8039 8040 solaris*) 8041 lt_prog_compiler_pic='-KPIC' 8042 lt_prog_compiler_static='-Bstatic' 8043 case $cc_basename in 8044 f77* | f90* | f95*) 8045 lt_prog_compiler_wl='-Qoption ld ';; 8046 *) 8047 lt_prog_compiler_wl='-Wl,';; 8048 esac 8049 ;; 8050 8051 sunos4*) 8052 lt_prog_compiler_wl='-Qoption ld ' 8053 lt_prog_compiler_pic='-PIC' 8054 lt_prog_compiler_static='-Bstatic' 8055 ;; 8056 8057 sysv4 | sysv4.2uw2* | sysv4.3*) 8058 lt_prog_compiler_wl='-Wl,' 8059 lt_prog_compiler_pic='-KPIC' 8060 lt_prog_compiler_static='-Bstatic' 8061 ;; 8062 8063 sysv4*MP*) 8064 if test -d /usr/nec ;then 8065 lt_prog_compiler_pic='-Kconform_pic' 8066 lt_prog_compiler_static='-Bstatic' 8067 fi 8068 ;; 8069 8070 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8071 lt_prog_compiler_wl='-Wl,' 8072 lt_prog_compiler_pic='-KPIC' 8073 lt_prog_compiler_static='-Bstatic' 8074 ;; 8075 8076 unicos*) 8077 lt_prog_compiler_wl='-Wl,' 8078 lt_prog_compiler_can_build_shared=no 8079 ;; 8080 8081 uts4*) 8082 lt_prog_compiler_pic='-pic' 8083 lt_prog_compiler_static='-Bstatic' 8084 ;; 8085 8086 *) 8087 lt_prog_compiler_can_build_shared=no 8088 ;; 8089 esac 8090 fi 8091 8092{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8093echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 8094 8095# 8096# Check to make sure the PIC flag actually works. 8097# 8098if test -n "$lt_prog_compiler_pic"; then 8099 8100{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8101echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 8102if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8103 echo $ECHO_N "(cached) $ECHO_C" >&6 8104else 8105 lt_cv_prog_compiler_pic_works=no 8106 ac_outfile=conftest.$ac_objext 8107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8108 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8109 # Insert the option either (1) after the last *FLAGS variable, or 8110 # (2) before a word containing "conftest.", or (3) at the end. 8111 # Note that $ac_compile itself does not contain backslashes and begins 8112 # with a dollar sign (not a hyphen), so the echo should work correctly. 8113 # The option is referenced via a variable to avoid confusing sed. 8114 lt_compile=`echo "$ac_compile" | $SED \ 8115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8117 -e 's:$: $lt_compiler_flag:'` 8118 (eval echo "\"\$as_me:8118: $lt_compile\"" >&5) 8119 (eval "$lt_compile" 2>conftest.err) 8120 ac_status=$? 8121 cat conftest.err >&5 8122 echo "$as_me:8122: \$? = $ac_status" >&5 8123 if (exit $ac_status) && test -s "$ac_outfile"; then 8124 # The compiler can only warn and ignore the option if not recognized 8125 # So say no if there are warnings other than the usual output. 8126 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8129 lt_cv_prog_compiler_pic_works=yes 8130 fi 8131 fi 8132 $rm conftest* 8133 8134fi 8135{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 8136echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 8137 8138if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8139 case $lt_prog_compiler_pic in 8140 "" | " "*) ;; 8141 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8142 esac 8143else 8144 lt_prog_compiler_pic= 8145 lt_prog_compiler_can_build_shared=no 8146fi 8147 8148fi 8149case $host_os in 8150 # For platforms which do not support PIC, -DPIC is meaningless: 8151 *djgpp*) 8152 lt_prog_compiler_pic= 8153 ;; 8154 *) 8155 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8156 ;; 8157esac 8158 8159# 8160# Check to make sure the static flag actually works. 8161# 8162wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8163{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8164echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 8165if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8166 echo $ECHO_N "(cached) $ECHO_C" >&6 8167else 8168 lt_cv_prog_compiler_static_works=no 8169 save_LDFLAGS="$LDFLAGS" 8170 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8171 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8172 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8173 # The linker can only warn and ignore the option if not recognized 8174 # So say no if there are warnings 8175 if test -s conftest.err; then 8176 # Append any errors to the config.log. 8177 cat conftest.err 1>&5 8178 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8180 if diff conftest.exp conftest.er2 >/dev/null; then 8181 lt_cv_prog_compiler_static_works=yes 8182 fi 8183 else 8184 lt_cv_prog_compiler_static_works=yes 8185 fi 8186 fi 8187 $rm -r conftest* 8188 LDFLAGS="$save_LDFLAGS" 8189 8190fi 8191{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 8192echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 8193 8194if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8195 : 8196else 8197 lt_prog_compiler_static= 8198fi 8199 8200 8201{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8202echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 8203if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8204 echo $ECHO_N "(cached) $ECHO_C" >&6 8205else 8206 lt_cv_prog_compiler_c_o=no 8207 $rm -r conftest 2>/dev/null 8208 mkdir conftest 8209 cd conftest 8210 mkdir out 8211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8212 8213 lt_compiler_flag="-o out/conftest2.$ac_objext" 8214 # Insert the option either (1) after the last *FLAGS variable, or 8215 # (2) before a word containing "conftest.", or (3) at the end. 8216 # Note that $ac_compile itself does not contain backslashes and begins 8217 # with a dollar sign (not a hyphen), so the echo should work correctly. 8218 lt_compile=`echo "$ac_compile" | $SED \ 8219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8221 -e 's:$: $lt_compiler_flag:'` 8222 (eval echo "\"\$as_me:8222: $lt_compile\"" >&5) 8223 (eval "$lt_compile" 2>out/conftest.err) 8224 ac_status=$? 8225 cat out/conftest.err >&5 8226 echo "$as_me:8226: \$? = $ac_status" >&5 8227 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8228 then 8229 # The compiler can only warn and ignore the option if not recognized 8230 # So say no if there are warnings 8231 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8234 lt_cv_prog_compiler_c_o=yes 8235 fi 8236 fi 8237 chmod u+w . 2>&5 8238 $rm conftest* 8239 # SGI C++ compiler will create directory out/ii_files/ for 8240 # template instantiation 8241 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8242 $rm out/* && rmdir out 8243 cd .. 8244 rmdir conftest 8245 $rm conftest* 8246 8247fi 8248{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8249echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8250 8251 8252hard_links="nottested" 8253if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8254 # do not overwrite the value of need_locks provided by the user 8255 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8256echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 8257 hard_links=yes 8258 $rm conftest* 8259 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8260 touch conftest.a 8261 ln conftest.a conftest.b 2>&5 || hard_links=no 8262 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8263 { echo "$as_me:$LINENO: result: $hard_links" >&5 8264echo "${ECHO_T}$hard_links" >&6; } 8265 if test "$hard_links" = no; then 8266 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8267echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8268 need_locks=warn 8269 fi 8270else 8271 need_locks=no 8272fi 8273 8274{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8275echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 8276 8277 runpath_var= 8278 allow_undefined_flag= 8279 enable_shared_with_static_runtimes=no 8280 archive_cmds= 8281 archive_expsym_cmds= 8282 old_archive_From_new_cmds= 8283 old_archive_from_expsyms_cmds= 8284 export_dynamic_flag_spec= 8285 whole_archive_flag_spec= 8286 thread_safe_flag_spec= 8287 hardcode_libdir_flag_spec= 8288 hardcode_libdir_flag_spec_ld= 8289 hardcode_libdir_separator= 8290 hardcode_direct=no 8291 hardcode_minus_L=no 8292 hardcode_shlibpath_var=unsupported 8293 link_all_deplibs=unknown 8294 hardcode_automatic=no 8295 module_cmds= 8296 module_expsym_cmds= 8297 always_export_symbols=no 8298 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8299 # include_expsyms should be a list of space-separated symbols to be *always* 8300 # included in the symbol list 8301 include_expsyms= 8302 # exclude_expsyms can be an extended regexp of symbols to exclude 8303 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8304 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8305 # as well as any symbol that contains `d'. 8306 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8307 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8308 # platforms (ab)use it in PIC code, but their linkers get confused if 8309 # the symbol is explicitly referenced. Since portable code cannot 8310 # rely on this symbol name, it's probably fine to never include it in 8311 # preloaded symbol tables. 8312 # Exclude shared library initialization/finalization symbols. 8313 extract_expsyms_cmds= 8314 # Just being paranoid about ensuring that cc_basename is set. 8315 for cc_temp in $compiler""; do 8316 case $cc_temp in 8317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8319 \-*) ;; 8320 *) break;; 8321 esac 8322done 8323cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8324 8325 case $host_os in 8326 cygwin* | mingw* | pw32*) 8327 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8328 # When not using gcc, we currently assume that we are using 8329 # Microsoft Visual C++. 8330 if test "$GCC" != yes; then 8331 with_gnu_ld=no 8332 fi 8333 ;; 8334 interix*) 8335 # we just hope/assume this is gcc and not c89 (= MSVC++) 8336 with_gnu_ld=yes 8337 ;; 8338 openbsd*) 8339 with_gnu_ld=no 8340 ;; 8341 esac 8342 8343 ld_shlibs=yes 8344 if test "$with_gnu_ld" = yes; then 8345 # If archive_cmds runs LD, not CC, wlarc should be empty 8346 wlarc='${wl}' 8347 8348 # Set some defaults for GNU ld with shared library support. These 8349 # are reset later if shared libraries are not supported. Putting them 8350 # here allows them to be overridden if necessary. 8351 runpath_var=LD_RUN_PATH 8352 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8353 export_dynamic_flag_spec='${wl}--export-dynamic' 8354 # ancient GNU ld didn't support --whole-archive et. al. 8355 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8356 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8357 else 8358 whole_archive_flag_spec= 8359 fi 8360 supports_anon_versioning=no 8361 case `$LD -v 2>/dev/null` in 8362 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8363 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8364 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8365 *\ 2.11.*) ;; # other 2.11 versions 8366 *) supports_anon_versioning=yes ;; 8367 esac 8368 8369 # See if GNU ld supports shared libraries. 8370 case $host_os in 8371 aix[3-9]*) 8372 # On AIX/PPC, the GNU linker is very broken 8373 if test "$host_cpu" != ia64; then 8374 ld_shlibs=no 8375 cat <<EOF 1>&2 8376 8377*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8378*** to be unable to reliably create shared libraries on AIX. 8379*** Therefore, libtool is disabling shared libraries support. If you 8380*** really care for shared libraries, you may want to modify your PATH 8381*** so that a non-GNU linker is found, and then restart. 8382 8383EOF 8384 fi 8385 ;; 8386 8387 amigaos*) 8388 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)' 8389 hardcode_libdir_flag_spec='-L$libdir' 8390 hardcode_minus_L=yes 8391 8392 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8393 # that the semantics of dynamic libraries on AmigaOS, at least up 8394 # to version 4, is to share data among multiple programs linked 8395 # with the same dynamic library. Since this doesn't match the 8396 # behavior of shared libraries on other platforms, we can't use 8397 # them. 8398 ld_shlibs=no 8399 ;; 8400 8401 beos*) 8402 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8403 allow_undefined_flag=unsupported 8404 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8405 # support --undefined. This deserves some investigation. FIXME 8406 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8407 else 8408 ld_shlibs=no 8409 fi 8410 ;; 8411 8412 cygwin* | mingw* | pw32*) 8413 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8414 # as there is no search path for DLLs. 8415 hardcode_libdir_flag_spec='-L$libdir' 8416 allow_undefined_flag=unsupported 8417 always_export_symbols=no 8418 enable_shared_with_static_runtimes=yes 8419 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8420 8421 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8423 # If the export-symbols file already is a .def file (1st line 8424 # is EXPORTS), use it as is; otherwise, prepend... 8425 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8426 cp $export_symbols $output_objdir/$soname.def; 8427 else 8428 echo EXPORTS > $output_objdir/$soname.def; 8429 cat $export_symbols >> $output_objdir/$soname.def; 8430 fi~ 8431 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8432 else 8433 ld_shlibs=no 8434 fi 8435 ;; 8436 8437 interix[3-9]*) 8438 hardcode_direct=no 8439 hardcode_shlibpath_var=no 8440 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8441 export_dynamic_flag_spec='${wl}-E' 8442 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8443 # Instead, shared libraries are loaded at an image base (0x10000000 by 8444 # default) and relocated if they conflict, which is a slow very memory 8445 # consuming and fragmenting process. To avoid this, we pick a random, 8446 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8447 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8448 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8449 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' 8450 ;; 8451 8452 gnu* | linux* | k*bsd*-gnu) 8453 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8454 tmp_addflag= 8455 case $cc_basename,$host_cpu in 8456 pgcc*) # Portland Group C compiler 8457 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' 8458 tmp_addflag=' $pic_flag' 8459 ;; 8460 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8461 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' 8462 tmp_addflag=' $pic_flag -Mnomain' ;; 8463 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8464 tmp_addflag=' -i_dynamic' ;; 8465 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8466 tmp_addflag=' -i_dynamic -nofor_main' ;; 8467 ifc* | ifort*) # Intel Fortran compiler 8468 tmp_addflag=' -nofor_main' ;; 8469 esac 8470 case `$CC -V 2>&1 | sed 5q` in 8471 *Sun\ C*) # Sun C 5.9 8472 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' 8473 tmp_sharedflag='-G' ;; 8474 *Sun\ F*) # Sun Fortran 8.3 8475 tmp_sharedflag='-G' ;; 8476 *) 8477 tmp_sharedflag='-shared' ;; 8478 esac 8479 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8480 8481 if test $supports_anon_versioning = yes; then 8482 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8483 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8484 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8485 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8486 fi 8487 link_all_deplibs=no 8488 else 8489 ld_shlibs=no 8490 fi 8491 ;; 8492 8493 netbsd* | netbsdelf*-gnu) 8494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8495 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8496 wlarc= 8497 else 8498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8500 fi 8501 ;; 8502 8503 solaris*) 8504 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8505 ld_shlibs=no 8506 cat <<EOF 1>&2 8507 8508*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8509*** create shared libraries on Solaris systems. Therefore, libtool 8510*** is disabling shared libraries support. We urge you to upgrade GNU 8511*** binutils to release 2.9.1 or newer. Another option is to modify 8512*** your PATH or compiler configuration so that the native linker is 8513*** used, and then restart. 8514 8515EOF 8516 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8518 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8519 else 8520 ld_shlibs=no 8521 fi 8522 ;; 8523 8524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8525 case `$LD -v 2>&1` in 8526 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8527 ld_shlibs=no 8528 cat <<_LT_EOF 1>&2 8529 8530*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8531*** reliably create shared libraries on SCO systems. Therefore, libtool 8532*** is disabling shared libraries support. We urge you to upgrade GNU 8533*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8534*** your PATH or compiler configuration so that the native linker is 8535*** used, and then restart. 8536 8537_LT_EOF 8538 ;; 8539 *) 8540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8541 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8543 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8544 else 8545 ld_shlibs=no 8546 fi 8547 ;; 8548 esac 8549 ;; 8550 8551 sunos4*) 8552 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8553 wlarc= 8554 hardcode_direct=yes 8555 hardcode_shlibpath_var=no 8556 ;; 8557 8558 *) 8559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8561 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8562 else 8563 ld_shlibs=no 8564 fi 8565 ;; 8566 esac 8567 8568 if test "$ld_shlibs" = no; then 8569 runpath_var= 8570 hardcode_libdir_flag_spec= 8571 export_dynamic_flag_spec= 8572 whole_archive_flag_spec= 8573 fi 8574 else 8575 # PORTME fill in a description of your system's linker (not GNU ld) 8576 case $host_os in 8577 aix3*) 8578 allow_undefined_flag=unsupported 8579 always_export_symbols=yes 8580 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' 8581 # Note: this linker hardcodes the directories in LIBPATH if there 8582 # are no directories specified by -L. 8583 hardcode_minus_L=yes 8584 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8585 # Neither direct hardcoding nor static linking is supported with a 8586 # broken collect2. 8587 hardcode_direct=unsupported 8588 fi 8589 ;; 8590 8591 aix[4-9]*) 8592 if test "$host_cpu" = ia64; then 8593 # On IA64, the linker does run time linking by default, so we don't 8594 # have to do anything special. 8595 aix_use_runtimelinking=no 8596 exp_sym_flag='-Bexport' 8597 no_entry_flag="" 8598 else 8599 # If we're using GNU nm, then we don't want the "-C" option. 8600 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8601 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8602 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' 8603 else 8604 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' 8605 fi 8606 aix_use_runtimelinking=no 8607 8608 # Test if we are trying to use run time linking or normal 8609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8610 # need to do runtime linking. 8611 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8612 for ld_flag in $LDFLAGS; do 8613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8614 aix_use_runtimelinking=yes 8615 break 8616 fi 8617 done 8618 ;; 8619 esac 8620 8621 exp_sym_flag='-bexport' 8622 no_entry_flag='-bnoentry' 8623 fi 8624 8625 # When large executables or shared objects are built, AIX ld can 8626 # have problems creating the table of contents. If linking a library 8627 # or program results in "error TOC overflow" add -mminimal-toc to 8628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8630 8631 archive_cmds='' 8632 hardcode_direct=yes 8633 hardcode_libdir_separator=':' 8634 link_all_deplibs=yes 8635 8636 if test "$GCC" = yes; then 8637 case $host_os in aix4.[012]|aix4.[012].*) 8638 # We only want to do this on AIX 4.2 and lower, the check 8639 # below for broken collect2 doesn't work under 4.3+ 8640 collect2name=`${CC} -print-prog-name=collect2` 8641 if test -f "$collect2name" && \ 8642 strings "$collect2name" | grep resolve_lib_name >/dev/null 8643 then 8644 # We have reworked collect2 8645 : 8646 else 8647 # We have old collect2 8648 hardcode_direct=unsupported 8649 # It fails to find uninstalled libraries when the uninstalled 8650 # path is not listed in the libpath. Setting hardcode_minus_L 8651 # to unsupported forces relinking 8652 hardcode_minus_L=yes 8653 hardcode_libdir_flag_spec='-L$libdir' 8654 hardcode_libdir_separator= 8655 fi 8656 ;; 8657 esac 8658 shared_flag='-shared' 8659 if test "$aix_use_runtimelinking" = yes; then 8660 shared_flag="$shared_flag "'${wl}-G' 8661 fi 8662 else 8663 # not using gcc 8664 if test "$host_cpu" = ia64; then 8665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8666 # chokes on -Wl,-G. The following line is correct: 8667 shared_flag='-G' 8668 else 8669 if test "$aix_use_runtimelinking" = yes; then 8670 shared_flag='${wl}-G' 8671 else 8672 shared_flag='${wl}-bM:SRE' 8673 fi 8674 fi 8675 fi 8676 8677 # It seems that -bexpall does not export symbols beginning with 8678 # underscore (_), so it is better to generate a list of symbols to export. 8679 always_export_symbols=yes 8680 if test "$aix_use_runtimelinking" = yes; then 8681 # Warning - without using the other runtime loading flags (-brtl), 8682 # -berok will link without error, but may produce a broken library. 8683 allow_undefined_flag='-berok' 8684 # Determine the default libpath from the value encoded in an empty executable. 8685 cat >conftest.$ac_ext <<_ACEOF 8686/* confdefs.h. */ 8687_ACEOF 8688cat confdefs.h >>conftest.$ac_ext 8689cat >>conftest.$ac_ext <<_ACEOF 8690/* end confdefs.h. */ 8691 8692int 8693main () 8694{ 8695 8696 ; 8697 return 0; 8698} 8699_ACEOF 8700rm -f conftest.$ac_objext conftest$ac_exeext 8701if { (ac_try="$ac_link" 8702case "(($ac_try" in 8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8704 *) ac_try_echo=$ac_try;; 8705esac 8706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8707 (eval "$ac_link") 2>conftest.er1 8708 ac_status=$? 8709 grep -v '^ *+' conftest.er1 >conftest.err 8710 rm -f conftest.er1 8711 cat conftest.err >&5 8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8713 (exit $ac_status); } && { 8714 test -z "$ac_c_werror_flag" || 8715 test ! -s conftest.err 8716 } && test -s conftest$ac_exeext && 8717 $as_test_x conftest$ac_exeext; then 8718 8719lt_aix_libpath_sed=' 8720 /Import File Strings/,/^$/ { 8721 /^0/ { 8722 s/^0 *\(.*\)$/\1/ 8723 p 8724 } 8725 }' 8726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8727# Check for a 64-bit object if we didn't find anything. 8728if test -z "$aix_libpath"; then 8729 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8730fi 8731else 8732 echo "$as_me: failed program was:" >&5 8733sed 's/^/| /' conftest.$ac_ext >&5 8734 8735 8736fi 8737 8738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8739 conftest$ac_exeext conftest.$ac_ext 8740if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8741 8742 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8743 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" 8744 else 8745 if test "$host_cpu" = ia64; then 8746 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8747 allow_undefined_flag="-z nodefs" 8748 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" 8749 else 8750 # Determine the default libpath from the value encoded in an empty executable. 8751 cat >conftest.$ac_ext <<_ACEOF 8752/* confdefs.h. */ 8753_ACEOF 8754cat confdefs.h >>conftest.$ac_ext 8755cat >>conftest.$ac_ext <<_ACEOF 8756/* end confdefs.h. */ 8757 8758int 8759main () 8760{ 8761 8762 ; 8763 return 0; 8764} 8765_ACEOF 8766rm -f conftest.$ac_objext conftest$ac_exeext 8767if { (ac_try="$ac_link" 8768case "(($ac_try" in 8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8770 *) ac_try_echo=$ac_try;; 8771esac 8772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8773 (eval "$ac_link") 2>conftest.er1 8774 ac_status=$? 8775 grep -v '^ *+' conftest.er1 >conftest.err 8776 rm -f conftest.er1 8777 cat conftest.err >&5 8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8779 (exit $ac_status); } && { 8780 test -z "$ac_c_werror_flag" || 8781 test ! -s conftest.err 8782 } && test -s conftest$ac_exeext && 8783 $as_test_x conftest$ac_exeext; then 8784 8785lt_aix_libpath_sed=' 8786 /Import File Strings/,/^$/ { 8787 /^0/ { 8788 s/^0 *\(.*\)$/\1/ 8789 p 8790 } 8791 }' 8792aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8793# Check for a 64-bit object if we didn't find anything. 8794if test -z "$aix_libpath"; then 8795 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8796fi 8797else 8798 echo "$as_me: failed program was:" >&5 8799sed 's/^/| /' conftest.$ac_ext >&5 8800 8801 8802fi 8803 8804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8805 conftest$ac_exeext conftest.$ac_ext 8806if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8807 8808 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8809 # Warning - without using the other run time loading flags, 8810 # -berok will link without error, but may produce a broken library. 8811 no_undefined_flag=' ${wl}-bernotok' 8812 allow_undefined_flag=' ${wl}-berok' 8813 # Exported symbols can be pulled into shared objects from archives 8814 whole_archive_flag_spec='$convenience' 8815 archive_cmds_need_lc=yes 8816 # This is similar to how AIX traditionally builds its shared libraries. 8817 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' 8818 fi 8819 fi 8820 ;; 8821 8822 amigaos*) 8823 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)' 8824 hardcode_libdir_flag_spec='-L$libdir' 8825 hardcode_minus_L=yes 8826 # see comment about different semantics on the GNU ld section 8827 ld_shlibs=no 8828 ;; 8829 8830 bsdi[45]*) 8831 export_dynamic_flag_spec=-rdynamic 8832 ;; 8833 8834 cygwin* | mingw* | pw32*) 8835 # When not using gcc, we currently assume that we are using 8836 # Microsoft Visual C++. 8837 # hardcode_libdir_flag_spec is actually meaningless, as there is 8838 # no search path for DLLs. 8839 hardcode_libdir_flag_spec=' ' 8840 allow_undefined_flag=unsupported 8841 # Tell ltmain to make .lib files, not .a files. 8842 libext=lib 8843 # Tell ltmain to make .dll files, not .so files. 8844 shrext_cmds=".dll" 8845 # FIXME: Setting linknames here is a bad hack. 8846 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8847 # The linker will automatically build a .lib file if we build a DLL. 8848 old_archive_From_new_cmds='true' 8849 # FIXME: Should let the user specify the lib program. 8850 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8851 fix_srcfile_path='`cygpath -w "$srcfile"`' 8852 enable_shared_with_static_runtimes=yes 8853 ;; 8854 8855 darwin* | rhapsody*) 8856 case $host_os in 8857 rhapsody* | darwin1.[012]) 8858 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8859 ;; 8860 *) # Darwin 1.3 on 8861 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8862 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8863 else 8864 case ${MACOSX_DEPLOYMENT_TARGET} in 8865 10.[012]) 8866 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8867 ;; 8868 10.*) 8869 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8870 ;; 8871 esac 8872 fi 8873 ;; 8874 esac 8875 archive_cmds_need_lc=no 8876 hardcode_direct=no 8877 hardcode_automatic=yes 8878 hardcode_shlibpath_var=unsupported 8879 whole_archive_flag_spec='' 8880 link_all_deplibs=yes 8881 if test "$GCC" = yes ; then 8882 output_verbose_link_cmd='echo' 8883 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8884 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8885 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}" 8886 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}" 8887 else 8888 case $cc_basename in 8889 xlc*) 8890 output_verbose_link_cmd='echo' 8891 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8892 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8893 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8894 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}' 8895 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}' 8896 ;; 8897 *) 8898 ld_shlibs=no 8899 ;; 8900 esac 8901 fi 8902 ;; 8903 8904 dgux*) 8905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8906 hardcode_libdir_flag_spec='-L$libdir' 8907 hardcode_shlibpath_var=no 8908 ;; 8909 8910 freebsd1*) 8911 ld_shlibs=no 8912 ;; 8913 8914 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8915 # support. Future versions do this automatically, but an explicit c++rt0.o 8916 # does not break anything, and helps significantly (at the cost of a little 8917 # extra space). 8918 freebsd2.2*) 8919 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8920 hardcode_libdir_flag_spec='-R$libdir' 8921 hardcode_direct=yes 8922 hardcode_shlibpath_var=no 8923 ;; 8924 8925 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8926 freebsd2*) 8927 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8928 hardcode_direct=yes 8929 hardcode_minus_L=yes 8930 hardcode_shlibpath_var=no 8931 ;; 8932 8933 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8934 freebsd* | dragonfly*) 8935 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8936 hardcode_libdir_flag_spec='-R$libdir' 8937 hardcode_direct=yes 8938 hardcode_shlibpath_var=no 8939 ;; 8940 8941 hpux9*) 8942 if test "$GCC" = yes; then 8943 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' 8944 else 8945 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' 8946 fi 8947 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8948 hardcode_libdir_separator=: 8949 hardcode_direct=yes 8950 8951 # hardcode_minus_L: Not really in the search PATH, 8952 # but as the default location of the library. 8953 hardcode_minus_L=yes 8954 export_dynamic_flag_spec='${wl}-E' 8955 ;; 8956 8957 hpux10*) 8958 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8959 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8960 else 8961 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8962 fi 8963 if test "$with_gnu_ld" = no; then 8964 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8965 hardcode_libdir_separator=: 8966 8967 hardcode_direct=yes 8968 export_dynamic_flag_spec='${wl}-E' 8969 8970 # hardcode_minus_L: Not really in the search PATH, 8971 # but as the default location of the library. 8972 hardcode_minus_L=yes 8973 fi 8974 ;; 8975 8976 hpux11*) 8977 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8978 case $host_cpu in 8979 hppa*64*) 8980 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8981 ;; 8982 ia64*) 8983 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8984 ;; 8985 *) 8986 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8987 ;; 8988 esac 8989 else 8990 case $host_cpu in 8991 hppa*64*) 8992 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8993 ;; 8994 ia64*) 8995 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8996 ;; 8997 *) 8998 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8999 ;; 9000 esac 9001 fi 9002 if test "$with_gnu_ld" = no; then 9003 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9004 hardcode_libdir_separator=: 9005 9006 case $host_cpu in 9007 hppa*64*|ia64*) 9008 hardcode_libdir_flag_spec_ld='+b $libdir' 9009 hardcode_direct=no 9010 hardcode_shlibpath_var=no 9011 ;; 9012 *) 9013 hardcode_direct=yes 9014 export_dynamic_flag_spec='${wl}-E' 9015 9016 # hardcode_minus_L: Not really in the search PATH, 9017 # but as the default location of the library. 9018 hardcode_minus_L=yes 9019 ;; 9020 esac 9021 fi 9022 ;; 9023 9024 irix5* | irix6* | nonstopux*) 9025 if test "$GCC" = yes; then 9026 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' 9027 else 9028 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' 9029 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9030 fi 9031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9032 hardcode_libdir_separator=: 9033 link_all_deplibs=yes 9034 ;; 9035 9036 netbsd* | netbsdelf*-gnu) 9037 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9039 else 9040 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9041 fi 9042 hardcode_libdir_flag_spec='-R$libdir' 9043 hardcode_direct=yes 9044 hardcode_shlibpath_var=no 9045 ;; 9046 9047 newsos6) 9048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9049 hardcode_direct=yes 9050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9051 hardcode_libdir_separator=: 9052 hardcode_shlibpath_var=no 9053 ;; 9054 9055 openbsd*) 9056 if test -f /usr/libexec/ld.so; then 9057 hardcode_direct=yes 9058 hardcode_shlibpath_var=no 9059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9060 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9061 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9062 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9063 export_dynamic_flag_spec='${wl}-E' 9064 else 9065 case $host_os in 9066 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9068 hardcode_libdir_flag_spec='-R$libdir' 9069 ;; 9070 *) 9071 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9072 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9073 ;; 9074 esac 9075 fi 9076 else 9077 ld_shlibs=no 9078 fi 9079 ;; 9080 9081 os2*) 9082 hardcode_libdir_flag_spec='-L$libdir' 9083 hardcode_minus_L=yes 9084 allow_undefined_flag=unsupported 9085 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' 9086 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9087 ;; 9088 9089 osf3*) 9090 if test "$GCC" = yes; then 9091 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9092 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' 9093 else 9094 allow_undefined_flag=' -expect_unresolved \*' 9095 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' 9096 fi 9097 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9098 hardcode_libdir_separator=: 9099 ;; 9100 9101 osf4* | osf5*) # as osf3* with the addition of -msym flag 9102 if test "$GCC" = yes; then 9103 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9104 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' 9105 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9106 else 9107 allow_undefined_flag=' -expect_unresolved \*' 9108 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' 9109 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9110 $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' 9111 9112 # Both c and cxx compiler support -rpath directly 9113 hardcode_libdir_flag_spec='-rpath $libdir' 9114 fi 9115 hardcode_libdir_separator=: 9116 ;; 9117 9118 solaris*) 9119 no_undefined_flag=' -z text' 9120 if test "$GCC" = yes; then 9121 wlarc='${wl}' 9122 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9123 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9124 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9125 else 9126 wlarc='' 9127 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9128 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9129 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9130 fi 9131 hardcode_libdir_flag_spec='-R$libdir' 9132 hardcode_shlibpath_var=no 9133 case $host_os in 9134 solaris2.[0-5] | solaris2.[0-5].*) ;; 9135 *) 9136 # The compiler driver will combine and reorder linker options, 9137 # but understands `-z linker_flag'. GCC discards it without `$wl', 9138 # but is careful enough not to reorder. 9139 # Supported since Solaris 2.6 (maybe 2.5.1?) 9140 if test "$GCC" = yes; then 9141 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9142 else 9143 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9144 fi 9145 ;; 9146 esac 9147 link_all_deplibs=yes 9148 ;; 9149 9150 sunos4*) 9151 if test "x$host_vendor" = xsequent; then 9152 # Use $CC to link under sequent, because it throws in some extra .o 9153 # files that make .init and .fini sections work. 9154 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9155 else 9156 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9157 fi 9158 hardcode_libdir_flag_spec='-L$libdir' 9159 hardcode_direct=yes 9160 hardcode_minus_L=yes 9161 hardcode_shlibpath_var=no 9162 ;; 9163 9164 sysv4) 9165 case $host_vendor in 9166 sni) 9167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9168 hardcode_direct=yes # is this really true??? 9169 ;; 9170 siemens) 9171 ## LD is ld it makes a PLAMLIB 9172 ## CC just makes a GrossModule. 9173 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9174 reload_cmds='$CC -r -o $output$reload_objs' 9175 hardcode_direct=no 9176 ;; 9177 motorola) 9178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9179 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9180 ;; 9181 esac 9182 runpath_var='LD_RUN_PATH' 9183 hardcode_shlibpath_var=no 9184 ;; 9185 9186 sysv4.3*) 9187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9188 hardcode_shlibpath_var=no 9189 export_dynamic_flag_spec='-Bexport' 9190 ;; 9191 9192 sysv4*MP*) 9193 if test -d /usr/nec; then 9194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9195 hardcode_shlibpath_var=no 9196 runpath_var=LD_RUN_PATH 9197 hardcode_runpath_var=yes 9198 ld_shlibs=yes 9199 fi 9200 ;; 9201 9202 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9203 no_undefined_flag='${wl}-z,text' 9204 archive_cmds_need_lc=no 9205 hardcode_shlibpath_var=no 9206 runpath_var='LD_RUN_PATH' 9207 9208 if test "$GCC" = yes; then 9209 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9210 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9211 else 9212 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9213 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9214 fi 9215 ;; 9216 9217 sysv5* | sco3.2v5* | sco5v6*) 9218 # Note: We can NOT use -z defs as we might desire, because we do not 9219 # link with -lc, and that would cause any symbols used from libc to 9220 # always be unresolved, which means just about no library would 9221 # ever link correctly. If we're not using GNU ld we use -z text 9222 # though, which does catch some bad symbols but isn't as heavy-handed 9223 # as -z defs. 9224 no_undefined_flag='${wl}-z,text' 9225 allow_undefined_flag='${wl}-z,nodefs' 9226 archive_cmds_need_lc=no 9227 hardcode_shlibpath_var=no 9228 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9229 hardcode_libdir_separator=':' 9230 link_all_deplibs=yes 9231 export_dynamic_flag_spec='${wl}-Bexport' 9232 runpath_var='LD_RUN_PATH' 9233 9234 if test "$GCC" = yes; then 9235 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9236 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9237 else 9238 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9239 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9240 fi 9241 ;; 9242 9243 uts4*) 9244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9245 hardcode_libdir_flag_spec='-L$libdir' 9246 hardcode_shlibpath_var=no 9247 ;; 9248 9249 *) 9250 ld_shlibs=no 9251 ;; 9252 esac 9253 fi 9254 9255{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9256echo "${ECHO_T}$ld_shlibs" >&6; } 9257test "$ld_shlibs" = no && can_build_shared=no 9258 9259# 9260# Do we need to explicitly link libc? 9261# 9262case "x$archive_cmds_need_lc" in 9263x|xyes) 9264 # Assume -lc should be added 9265 archive_cmds_need_lc=yes 9266 9267 if test "$enable_shared" = yes && test "$GCC" = yes; then 9268 case $archive_cmds in 9269 *'~'*) 9270 # FIXME: we may have to deal with multi-command sequences. 9271 ;; 9272 '$CC '*) 9273 # Test whether the compiler implicitly links with -lc since on some 9274 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9275 # to ld, don't add -lc before -lgcc. 9276 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9277echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 9278 $rm conftest* 9279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9280 9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9282 (eval $ac_compile) 2>&5 9283 ac_status=$? 9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9285 (exit $ac_status); } 2>conftest.err; then 9286 soname=conftest 9287 lib=conftest 9288 libobjs=conftest.$ac_objext 9289 deplibs= 9290 wl=$lt_prog_compiler_wl 9291 pic_flag=$lt_prog_compiler_pic 9292 compiler_flags=-v 9293 linker_flags=-v 9294 verstring= 9295 output_objdir=. 9296 libname=conftest 9297 lt_save_allow_undefined_flag=$allow_undefined_flag 9298 allow_undefined_flag= 9299 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9300 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9301 ac_status=$? 9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9303 (exit $ac_status); } 9304 then 9305 archive_cmds_need_lc=no 9306 else 9307 archive_cmds_need_lc=yes 9308 fi 9309 allow_undefined_flag=$lt_save_allow_undefined_flag 9310 else 9311 cat conftest.err 1>&5 9312 fi 9313 $rm conftest* 9314 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9315echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 9316 ;; 9317 esac 9318 fi 9319 ;; 9320esac 9321 9322{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9323echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9324library_names_spec= 9325libname_spec='lib$name' 9326soname_spec= 9327shrext_cmds=".so" 9328postinstall_cmds= 9329postuninstall_cmds= 9330finish_cmds= 9331finish_eval= 9332shlibpath_var= 9333shlibpath_overrides_runpath=unknown 9334version_type=none 9335dynamic_linker="$host_os ld.so" 9336sys_lib_dlsearch_path_spec="/lib /usr/lib" 9337 9338if test "$GCC" = yes; then 9339 case $host_os in 9340 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9341 *) lt_awk_arg="/^libraries:/" ;; 9342 esac 9343 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9344 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9345 # if the path contains ";" then we assume it to be the separator 9346 # otherwise default to the standard path separator (i.e. ":") - it is 9347 # assumed that no part of a normal pathname contains ";" but that should 9348 # okay in the real world where ";" in dirpaths is itself problematic. 9349 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9350 else 9351 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9352 fi 9353 # Ok, now we have the path, separated by spaces, we can step through it 9354 # and add multilib dir if necessary. 9355 lt_tmp_lt_search_path_spec= 9356 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9357 for lt_sys_path in $lt_search_path_spec; do 9358 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9359 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9360 else 9361 test -d "$lt_sys_path" && \ 9362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9363 fi 9364 done 9365 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9366BEGIN {RS=" "; FS="/|\n";} { 9367 lt_foo=""; 9368 lt_count=0; 9369 for (lt_i = NF; lt_i > 0; lt_i--) { 9370 if ($lt_i != "" && $lt_i != ".") { 9371 if ($lt_i == "..") { 9372 lt_count++; 9373 } else { 9374 if (lt_count == 0) { 9375 lt_foo="/" $lt_i lt_foo; 9376 } else { 9377 lt_count--; 9378 } 9379 } 9380 } 9381 } 9382 if (lt_foo != "") { lt_freq[lt_foo]++; } 9383 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9384}'` 9385 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9386else 9387 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9388fi 9389need_lib_prefix=unknown 9390hardcode_into_libs=no 9391 9392# when you set need_version to no, make sure it does not cause -set_version 9393# flags to be left without arguments 9394need_version=unknown 9395 9396case $host_os in 9397aix3*) 9398 version_type=linux 9399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9400 shlibpath_var=LIBPATH 9401 9402 # AIX 3 has no versioning support, so we append a major version to the name. 9403 soname_spec='${libname}${release}${shared_ext}$major' 9404 ;; 9405 9406aix[4-9]*) 9407 version_type=linux 9408 need_lib_prefix=no 9409 need_version=no 9410 hardcode_into_libs=yes 9411 if test "$host_cpu" = ia64; then 9412 # AIX 5 supports IA64 9413 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9414 shlibpath_var=LD_LIBRARY_PATH 9415 else 9416 # With GCC up to 2.95.x, collect2 would create an import file 9417 # for dependence libraries. The import file would start with 9418 # the line `#! .'. This would cause the generated library to 9419 # depend on `.', always an invalid library. This was fixed in 9420 # development snapshots of GCC prior to 3.0. 9421 case $host_os in 9422 aix4 | aix4.[01] | aix4.[01].*) 9423 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9424 echo ' yes ' 9425 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9426 : 9427 else 9428 can_build_shared=no 9429 fi 9430 ;; 9431 esac 9432 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9433 # soname into executable. Probably we can add versioning support to 9434 # collect2, so additional links can be useful in future. 9435 if test "$aix_use_runtimelinking" = yes; then 9436 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9437 # instead of lib<name>.a to let people know that these are not 9438 # typical AIX shared libraries. 9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9440 else 9441 # We preserve .a as extension for shared libraries through AIX4.2 9442 # and later when we are not doing run time linking. 9443 library_names_spec='${libname}${release}.a $libname.a' 9444 soname_spec='${libname}${release}${shared_ext}$major' 9445 fi 9446 shlibpath_var=LIBPATH 9447 fi 9448 ;; 9449 9450amigaos*) 9451 library_names_spec='$libname.ixlibrary $libname.a' 9452 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9453 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' 9454 ;; 9455 9456beos*) 9457 library_names_spec='${libname}${shared_ext}' 9458 dynamic_linker="$host_os ld.so" 9459 shlibpath_var=LIBRARY_PATH 9460 ;; 9461 9462bsdi[45]*) 9463 version_type=linux 9464 need_version=no 9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9466 soname_spec='${libname}${release}${shared_ext}$major' 9467 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9468 shlibpath_var=LD_LIBRARY_PATH 9469 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9470 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9471 # the default ld.so.conf also contains /usr/contrib/lib and 9472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9473 # libtool to hard-code these into programs 9474 ;; 9475 9476cygwin* | mingw* | pw32*) 9477 version_type=windows 9478 shrext_cmds=".dll" 9479 need_version=no 9480 need_lib_prefix=no 9481 9482 case $GCC,$host_os in 9483 yes,cygwin* | yes,mingw* | yes,pw32*) 9484 library_names_spec='$libname.dll.a' 9485 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9486 postinstall_cmds='base_file=`basename \${file}`~ 9487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9488 dldir=$destdir/`dirname \$dlpath`~ 9489 test -d \$dldir || mkdir -p \$dldir~ 9490 $install_prog $dir/$dlname \$dldir/$dlname~ 9491 chmod a+x \$dldir/$dlname' 9492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9493 dlpath=$dir/\$dldll~ 9494 $rm \$dlpath' 9495 shlibpath_overrides_runpath=yes 9496 9497 case $host_os in 9498 cygwin*) 9499 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9500 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9501 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9502 ;; 9503 mingw*) 9504 # MinGW DLLs use traditional 'lib' prefix 9505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9506 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9507 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9508 # It is most probably a Windows format PATH printed by 9509 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9510 # path with ; separators, and with drive letters. We can handle the 9511 # drive letters (cygwin fileutils understands them), so leave them, 9512 # especially as we might pass files found there to a mingw objdump, 9513 # which wouldn't understand a cygwinified path. Ahh. 9514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9515 else 9516 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9517 fi 9518 ;; 9519 pw32*) 9520 # pw32 DLLs use 'pw' prefix rather than 'lib' 9521 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9522 ;; 9523 esac 9524 ;; 9525 9526 *) 9527 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9528 ;; 9529 esac 9530 dynamic_linker='Win32 ld.exe' 9531 # FIXME: first we should search . and the directory the executable is in 9532 shlibpath_var=PATH 9533 ;; 9534 9535darwin* | rhapsody*) 9536 dynamic_linker="$host_os dyld" 9537 version_type=darwin 9538 need_lib_prefix=no 9539 need_version=no 9540 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9541 soname_spec='${libname}${release}${major}$shared_ext' 9542 shlibpath_overrides_runpath=yes 9543 shlibpath_var=DYLD_LIBRARY_PATH 9544 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9545 9546 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9547 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9548 ;; 9549 9550dgux*) 9551 version_type=linux 9552 need_lib_prefix=no 9553 need_version=no 9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9555 soname_spec='${libname}${release}${shared_ext}$major' 9556 shlibpath_var=LD_LIBRARY_PATH 9557 ;; 9558 9559freebsd1*) 9560 dynamic_linker=no 9561 ;; 9562 9563freebsd* | dragonfly*) 9564 # DragonFly does not have aout. When/if they implement a new 9565 # versioning mechanism, adjust this. 9566 if test -x /usr/bin/objformat; then 9567 objformat=`/usr/bin/objformat` 9568 else 9569 case $host_os in 9570 freebsd[123]*) objformat=aout ;; 9571 *) objformat=elf ;; 9572 esac 9573 fi 9574 version_type=freebsd-$objformat 9575 case $version_type in 9576 freebsd-elf*) 9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9578 need_version=no 9579 need_lib_prefix=no 9580 ;; 9581 freebsd-*) 9582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9583 need_version=yes 9584 ;; 9585 esac 9586 shlibpath_var=LD_LIBRARY_PATH 9587 case $host_os in 9588 freebsd2*) 9589 shlibpath_overrides_runpath=yes 9590 ;; 9591 freebsd3.[01]* | freebsdelf3.[01]*) 9592 shlibpath_overrides_runpath=yes 9593 hardcode_into_libs=yes 9594 ;; 9595 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9596 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9597 shlibpath_overrides_runpath=no 9598 hardcode_into_libs=yes 9599 ;; 9600 *) # from 4.6 on, and DragonFly 9601 shlibpath_overrides_runpath=yes 9602 hardcode_into_libs=yes 9603 ;; 9604 esac 9605 ;; 9606 9607gnu*) 9608 version_type=linux 9609 need_lib_prefix=no 9610 need_version=no 9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9612 soname_spec='${libname}${release}${shared_ext}$major' 9613 shlibpath_var=LD_LIBRARY_PATH 9614 hardcode_into_libs=yes 9615 ;; 9616 9617hpux9* | hpux10* | hpux11*) 9618 # Give a soname corresponding to the major version so that dld.sl refuses to 9619 # link against other versions. 9620 version_type=sunos 9621 need_lib_prefix=no 9622 need_version=no 9623 case $host_cpu in 9624 ia64*) 9625 shrext_cmds='.so' 9626 hardcode_into_libs=yes 9627 dynamic_linker="$host_os dld.so" 9628 shlibpath_var=LD_LIBRARY_PATH 9629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9631 soname_spec='${libname}${release}${shared_ext}$major' 9632 if test "X$HPUX_IA64_MODE" = X32; then 9633 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9634 else 9635 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9636 fi 9637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9638 ;; 9639 hppa*64*) 9640 shrext_cmds='.sl' 9641 hardcode_into_libs=yes 9642 dynamic_linker="$host_os dld.sl" 9643 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9644 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9646 soname_spec='${libname}${release}${shared_ext}$major' 9647 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9649 ;; 9650 *) 9651 shrext_cmds='.sl' 9652 dynamic_linker="$host_os dld.sl" 9653 shlibpath_var=SHLIB_PATH 9654 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9656 soname_spec='${libname}${release}${shared_ext}$major' 9657 ;; 9658 esac 9659 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9660 postinstall_cmds='chmod 555 $lib' 9661 ;; 9662 9663interix[3-9]*) 9664 version_type=linux 9665 need_lib_prefix=no 9666 need_version=no 9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9668 soname_spec='${libname}${release}${shared_ext}$major' 9669 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9670 shlibpath_var=LD_LIBRARY_PATH 9671 shlibpath_overrides_runpath=no 9672 hardcode_into_libs=yes 9673 ;; 9674 9675irix5* | irix6* | nonstopux*) 9676 case $host_os in 9677 nonstopux*) version_type=nonstopux ;; 9678 *) 9679 if test "$lt_cv_prog_gnu_ld" = yes; then 9680 version_type=linux 9681 else 9682 version_type=irix 9683 fi ;; 9684 esac 9685 need_lib_prefix=no 9686 need_version=no 9687 soname_spec='${libname}${release}${shared_ext}$major' 9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9689 case $host_os in 9690 irix5* | nonstopux*) 9691 libsuff= shlibsuff= 9692 ;; 9693 *) 9694 case $LD in # libtool.m4 will add one of these switches to LD 9695 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9696 libsuff= shlibsuff= libmagic=32-bit;; 9697 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9698 libsuff=32 shlibsuff=N32 libmagic=N32;; 9699 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9700 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9701 *) libsuff= shlibsuff= libmagic=never-match;; 9702 esac 9703 ;; 9704 esac 9705 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9706 shlibpath_overrides_runpath=no 9707 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9708 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9709 hardcode_into_libs=yes 9710 ;; 9711 9712# No shared lib support for Linux oldld, aout, or coff. 9713linux*oldld* | linux*aout* | linux*coff*) 9714 dynamic_linker=no 9715 ;; 9716 9717# This must be Linux ELF. 9718linux* | k*bsd*-gnu) 9719 version_type=linux 9720 need_lib_prefix=no 9721 need_version=no 9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9723 soname_spec='${libname}${release}${shared_ext}$major' 9724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9725 shlibpath_var=LD_LIBRARY_PATH 9726 shlibpath_overrides_runpath=no 9727 # This implies no fast_install, which is unacceptable. 9728 # Some rework will be needed to allow for fast_install 9729 # before this can be enabled. 9730 hardcode_into_libs=yes 9731 9732 # Append ld.so.conf contents to the search path 9733 if test -f /etc/ld.so.conf; then 9734 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' ' '` 9735 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9736 fi 9737 9738 # We used to test for /lib/ld.so.1 and disable shared libraries on 9739 # powerpc, because MkLinux only supported shared libraries with the 9740 # GNU dynamic linker. Since this was broken with cross compilers, 9741 # most powerpc-linux boxes support dynamic linking these days and 9742 # people can always --disable-shared, the test was removed, and we 9743 # assume the GNU/Linux dynamic linker is in use. 9744 dynamic_linker='GNU/Linux ld.so' 9745 ;; 9746 9747netbsdelf*-gnu) 9748 version_type=linux 9749 need_lib_prefix=no 9750 need_version=no 9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9752 soname_spec='${libname}${release}${shared_ext}$major' 9753 shlibpath_var=LD_LIBRARY_PATH 9754 shlibpath_overrides_runpath=no 9755 hardcode_into_libs=yes 9756 dynamic_linker='NetBSD ld.elf_so' 9757 ;; 9758 9759netbsd*) 9760 version_type=sunos 9761 need_lib_prefix=no 9762 need_version=no 9763 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9766 dynamic_linker='NetBSD (a.out) ld.so' 9767 else 9768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9769 soname_spec='${libname}${release}${shared_ext}$major' 9770 dynamic_linker='NetBSD ld.elf_so' 9771 fi 9772 shlibpath_var=LD_LIBRARY_PATH 9773 shlibpath_overrides_runpath=yes 9774 hardcode_into_libs=yes 9775 ;; 9776 9777newsos6) 9778 version_type=linux 9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9780 shlibpath_var=LD_LIBRARY_PATH 9781 shlibpath_overrides_runpath=yes 9782 ;; 9783 9784nto-qnx*) 9785 version_type=linux 9786 need_lib_prefix=no 9787 need_version=no 9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9789 soname_spec='${libname}${release}${shared_ext}$major' 9790 shlibpath_var=LD_LIBRARY_PATH 9791 shlibpath_overrides_runpath=yes 9792 ;; 9793 9794openbsd*) 9795 version_type=sunos 9796 sys_lib_dlsearch_path_spec="/usr/lib" 9797 need_lib_prefix=no 9798 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9799 case $host_os in 9800 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9801 *) need_version=no ;; 9802 esac 9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9805 shlibpath_var=LD_LIBRARY_PATH 9806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9807 case $host_os in 9808 openbsd2.[89] | openbsd2.[89].*) 9809 shlibpath_overrides_runpath=no 9810 ;; 9811 *) 9812 shlibpath_overrides_runpath=yes 9813 ;; 9814 esac 9815 else 9816 shlibpath_overrides_runpath=yes 9817 fi 9818 ;; 9819 9820os2*) 9821 libname_spec='$name' 9822 shrext_cmds=".dll" 9823 need_lib_prefix=no 9824 library_names_spec='$libname${shared_ext} $libname.a' 9825 dynamic_linker='OS/2 ld.exe' 9826 shlibpath_var=LIBPATH 9827 ;; 9828 9829osf3* | osf4* | osf5*) 9830 version_type=osf 9831 need_lib_prefix=no 9832 need_version=no 9833 soname_spec='${libname}${release}${shared_ext}$major' 9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9835 shlibpath_var=LD_LIBRARY_PATH 9836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9838 ;; 9839 9840rdos*) 9841 dynamic_linker=no 9842 ;; 9843 9844solaris*) 9845 version_type=linux 9846 need_lib_prefix=no 9847 need_version=no 9848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9849 soname_spec='${libname}${release}${shared_ext}$major' 9850 shlibpath_var=LD_LIBRARY_PATH 9851 shlibpath_overrides_runpath=yes 9852 hardcode_into_libs=yes 9853 # ldd complains unless libraries are executable 9854 postinstall_cmds='chmod +x $lib' 9855 ;; 9856 9857sunos4*) 9858 version_type=sunos 9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9860 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9861 shlibpath_var=LD_LIBRARY_PATH 9862 shlibpath_overrides_runpath=yes 9863 if test "$with_gnu_ld" = yes; then 9864 need_lib_prefix=no 9865 fi 9866 need_version=yes 9867 ;; 9868 9869sysv4 | sysv4.3*) 9870 version_type=linux 9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9872 soname_spec='${libname}${release}${shared_ext}$major' 9873 shlibpath_var=LD_LIBRARY_PATH 9874 case $host_vendor in 9875 sni) 9876 shlibpath_overrides_runpath=no 9877 need_lib_prefix=no 9878 export_dynamic_flag_spec='${wl}-Blargedynsym' 9879 runpath_var=LD_RUN_PATH 9880 ;; 9881 siemens) 9882 need_lib_prefix=no 9883 ;; 9884 motorola) 9885 need_lib_prefix=no 9886 need_version=no 9887 shlibpath_overrides_runpath=no 9888 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9889 ;; 9890 esac 9891 ;; 9892 9893sysv4*MP*) 9894 if test -d /usr/nec ;then 9895 version_type=linux 9896 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9897 soname_spec='$libname${shared_ext}.$major' 9898 shlibpath_var=LD_LIBRARY_PATH 9899 fi 9900 ;; 9901 9902sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9903 version_type=freebsd-elf 9904 need_lib_prefix=no 9905 need_version=no 9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9907 soname_spec='${libname}${release}${shared_ext}$major' 9908 shlibpath_var=LD_LIBRARY_PATH 9909 hardcode_into_libs=yes 9910 if test "$with_gnu_ld" = yes; then 9911 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9912 shlibpath_overrides_runpath=no 9913 else 9914 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9915 shlibpath_overrides_runpath=yes 9916 case $host_os in 9917 sco3.2v5*) 9918 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9919 ;; 9920 esac 9921 fi 9922 sys_lib_dlsearch_path_spec='/usr/lib' 9923 ;; 9924 9925uts4*) 9926 version_type=linux 9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9928 soname_spec='${libname}${release}${shared_ext}$major' 9929 shlibpath_var=LD_LIBRARY_PATH 9930 ;; 9931 9932*) 9933 dynamic_linker=no 9934 ;; 9935esac 9936{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9937echo "${ECHO_T}$dynamic_linker" >&6; } 9938test "$dynamic_linker" = no && can_build_shared=no 9939 9940if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9941 echo $ECHO_N "(cached) $ECHO_C" >&6 9942else 9943 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9944fi 9945 9946sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9947if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9948 echo $ECHO_N "(cached) $ECHO_C" >&6 9949else 9950 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9951fi 9952 9953sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9954 9955variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9956if test "$GCC" = yes; then 9957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9958fi 9959 9960{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9961echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9962hardcode_action= 9963if test -n "$hardcode_libdir_flag_spec" || \ 9964 test -n "$runpath_var" || \ 9965 test "X$hardcode_automatic" = "Xyes" ; then 9966 9967 # We can hardcode non-existant directories. 9968 if test "$hardcode_direct" != no && 9969 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9970 # have to relink, otherwise we might link with an installed library 9971 # when we should be linking with a yet-to-be-installed one 9972 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9973 test "$hardcode_minus_L" != no; then 9974 # Linking always hardcodes the temporary library directory. 9975 hardcode_action=relink 9976 else 9977 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9978 hardcode_action=immediate 9979 fi 9980else 9981 # We cannot hardcode anything, or else we can only hardcode existing 9982 # directories. 9983 hardcode_action=unsupported 9984fi 9985{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9986echo "${ECHO_T}$hardcode_action" >&6; } 9987 9988if test "$hardcode_action" = relink; then 9989 # Fast installation is not supported 9990 enable_fast_install=no 9991elif test "$shlibpath_overrides_runpath" = yes || 9992 test "$enable_shared" = no; then 9993 # Fast installation is not necessary 9994 enable_fast_install=needless 9995fi 9996 9997striplib= 9998old_striplib= 9999{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10000echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 10001if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10002 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10003 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10004 { echo "$as_me:$LINENO: result: yes" >&5 10005echo "${ECHO_T}yes" >&6; } 10006else 10007# FIXME - insert some real tests, host_os isn't really good enough 10008 case $host_os in 10009 darwin*) 10010 if test -n "$STRIP" ; then 10011 striplib="$STRIP -x" 10012 old_striplib="$STRIP -S" 10013 { echo "$as_me:$LINENO: result: yes" >&5 10014echo "${ECHO_T}yes" >&6; } 10015 else 10016 { echo "$as_me:$LINENO: result: no" >&5 10017echo "${ECHO_T}no" >&6; } 10018fi 10019 ;; 10020 *) 10021 { echo "$as_me:$LINENO: result: no" >&5 10022echo "${ECHO_T}no" >&6; } 10023 ;; 10024 esac 10025fi 10026 10027if test "x$enable_dlopen" != xyes; then 10028 enable_dlopen=unknown 10029 enable_dlopen_self=unknown 10030 enable_dlopen_self_static=unknown 10031else 10032 lt_cv_dlopen=no 10033 lt_cv_dlopen_libs= 10034 10035 case $host_os in 10036 beos*) 10037 lt_cv_dlopen="load_add_on" 10038 lt_cv_dlopen_libs= 10039 lt_cv_dlopen_self=yes 10040 ;; 10041 10042 mingw* | pw32*) 10043 lt_cv_dlopen="LoadLibrary" 10044 lt_cv_dlopen_libs= 10045 ;; 10046 10047 cygwin*) 10048 lt_cv_dlopen="dlopen" 10049 lt_cv_dlopen_libs= 10050 ;; 10051 10052 darwin*) 10053 # if libdl is installed we need to link against it 10054 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10055echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10056if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10057 echo $ECHO_N "(cached) $ECHO_C" >&6 10058else 10059 ac_check_lib_save_LIBS=$LIBS 10060LIBS="-ldl $LIBS" 10061cat >conftest.$ac_ext <<_ACEOF 10062/* confdefs.h. */ 10063_ACEOF 10064cat confdefs.h >>conftest.$ac_ext 10065cat >>conftest.$ac_ext <<_ACEOF 10066/* end confdefs.h. */ 10067 10068/* Override any GCC internal prototype to avoid an error. 10069 Use char because int might match the return type of a GCC 10070 builtin and then its argument prototype would still apply. */ 10071#ifdef __cplusplus 10072extern "C" 10073#endif 10074char dlopen (); 10075int 10076main () 10077{ 10078return dlopen (); 10079 ; 10080 return 0; 10081} 10082_ACEOF 10083rm -f conftest.$ac_objext conftest$ac_exeext 10084if { (ac_try="$ac_link" 10085case "(($ac_try" in 10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10087 *) ac_try_echo=$ac_try;; 10088esac 10089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10090 (eval "$ac_link") 2>conftest.er1 10091 ac_status=$? 10092 grep -v '^ *+' conftest.er1 >conftest.err 10093 rm -f conftest.er1 10094 cat conftest.err >&5 10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10096 (exit $ac_status); } && { 10097 test -z "$ac_c_werror_flag" || 10098 test ! -s conftest.err 10099 } && test -s conftest$ac_exeext && 10100 $as_test_x conftest$ac_exeext; then 10101 ac_cv_lib_dl_dlopen=yes 10102else 10103 echo "$as_me: failed program was:" >&5 10104sed 's/^/| /' conftest.$ac_ext >&5 10105 10106 ac_cv_lib_dl_dlopen=no 10107fi 10108 10109rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10110 conftest$ac_exeext conftest.$ac_ext 10111LIBS=$ac_check_lib_save_LIBS 10112fi 10113{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10114echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10115if test $ac_cv_lib_dl_dlopen = yes; then 10116 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10117else 10118 10119 lt_cv_dlopen="dyld" 10120 lt_cv_dlopen_libs= 10121 lt_cv_dlopen_self=yes 10122 10123fi 10124 10125 ;; 10126 10127 *) 10128 { echo "$as_me:$LINENO: checking for shl_load" >&5 10129echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 10130if test "${ac_cv_func_shl_load+set}" = set; then 10131 echo $ECHO_N "(cached) $ECHO_C" >&6 10132else 10133 cat >conftest.$ac_ext <<_ACEOF 10134/* confdefs.h. */ 10135_ACEOF 10136cat confdefs.h >>conftest.$ac_ext 10137cat >>conftest.$ac_ext <<_ACEOF 10138/* end confdefs.h. */ 10139/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10140 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10141#define shl_load innocuous_shl_load 10142 10143/* System header to define __stub macros and hopefully few prototypes, 10144 which can conflict with char shl_load (); below. 10145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10146 <limits.h> exists even on freestanding compilers. */ 10147 10148#ifdef __STDC__ 10149# include <limits.h> 10150#else 10151# include <assert.h> 10152#endif 10153 10154#undef shl_load 10155 10156/* Override any GCC internal prototype to avoid an error. 10157 Use char because int might match the return type of a GCC 10158 builtin and then its argument prototype would still apply. */ 10159#ifdef __cplusplus 10160extern "C" 10161#endif 10162char shl_load (); 10163/* The GNU C library defines this for functions which it implements 10164 to always fail with ENOSYS. Some functions are actually named 10165 something starting with __ and the normal name is an alias. */ 10166#if defined __stub_shl_load || defined __stub___shl_load 10167choke me 10168#endif 10169 10170int 10171main () 10172{ 10173return shl_load (); 10174 ; 10175 return 0; 10176} 10177_ACEOF 10178rm -f conftest.$ac_objext conftest$ac_exeext 10179if { (ac_try="$ac_link" 10180case "(($ac_try" in 10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10182 *) ac_try_echo=$ac_try;; 10183esac 10184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10185 (eval "$ac_link") 2>conftest.er1 10186 ac_status=$? 10187 grep -v '^ *+' conftest.er1 >conftest.err 10188 rm -f conftest.er1 10189 cat conftest.err >&5 10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10191 (exit $ac_status); } && { 10192 test -z "$ac_c_werror_flag" || 10193 test ! -s conftest.err 10194 } && test -s conftest$ac_exeext && 10195 $as_test_x conftest$ac_exeext; then 10196 ac_cv_func_shl_load=yes 10197else 10198 echo "$as_me: failed program was:" >&5 10199sed 's/^/| /' conftest.$ac_ext >&5 10200 10201 ac_cv_func_shl_load=no 10202fi 10203 10204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10205 conftest$ac_exeext conftest.$ac_ext 10206fi 10207{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10208echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10209if test $ac_cv_func_shl_load = yes; then 10210 lt_cv_dlopen="shl_load" 10211else 10212 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10213echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10214if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10215 echo $ECHO_N "(cached) $ECHO_C" >&6 10216else 10217 ac_check_lib_save_LIBS=$LIBS 10218LIBS="-ldld $LIBS" 10219cat >conftest.$ac_ext <<_ACEOF 10220/* confdefs.h. */ 10221_ACEOF 10222cat confdefs.h >>conftest.$ac_ext 10223cat >>conftest.$ac_ext <<_ACEOF 10224/* end confdefs.h. */ 10225 10226/* Override any GCC internal prototype to avoid an error. 10227 Use char because int might match the return type of a GCC 10228 builtin and then its argument prototype would still apply. */ 10229#ifdef __cplusplus 10230extern "C" 10231#endif 10232char shl_load (); 10233int 10234main () 10235{ 10236return shl_load (); 10237 ; 10238 return 0; 10239} 10240_ACEOF 10241rm -f conftest.$ac_objext conftest$ac_exeext 10242if { (ac_try="$ac_link" 10243case "(($ac_try" in 10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10245 *) ac_try_echo=$ac_try;; 10246esac 10247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10248 (eval "$ac_link") 2>conftest.er1 10249 ac_status=$? 10250 grep -v '^ *+' conftest.er1 >conftest.err 10251 rm -f conftest.er1 10252 cat conftest.err >&5 10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10254 (exit $ac_status); } && { 10255 test -z "$ac_c_werror_flag" || 10256 test ! -s conftest.err 10257 } && test -s conftest$ac_exeext && 10258 $as_test_x conftest$ac_exeext; then 10259 ac_cv_lib_dld_shl_load=yes 10260else 10261 echo "$as_me: failed program was:" >&5 10262sed 's/^/| /' conftest.$ac_ext >&5 10263 10264 ac_cv_lib_dld_shl_load=no 10265fi 10266 10267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10268 conftest$ac_exeext conftest.$ac_ext 10269LIBS=$ac_check_lib_save_LIBS 10270fi 10271{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10272echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10273if test $ac_cv_lib_dld_shl_load = yes; then 10274 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10275else 10276 { echo "$as_me:$LINENO: checking for dlopen" >&5 10277echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 10278if test "${ac_cv_func_dlopen+set}" = set; then 10279 echo $ECHO_N "(cached) $ECHO_C" >&6 10280else 10281 cat >conftest.$ac_ext <<_ACEOF 10282/* confdefs.h. */ 10283_ACEOF 10284cat confdefs.h >>conftest.$ac_ext 10285cat >>conftest.$ac_ext <<_ACEOF 10286/* end confdefs.h. */ 10287/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10288 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10289#define dlopen innocuous_dlopen 10290 10291/* System header to define __stub macros and hopefully few prototypes, 10292 which can conflict with char dlopen (); below. 10293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10294 <limits.h> exists even on freestanding compilers. */ 10295 10296#ifdef __STDC__ 10297# include <limits.h> 10298#else 10299# include <assert.h> 10300#endif 10301 10302#undef dlopen 10303 10304/* Override any GCC internal prototype to avoid an error. 10305 Use char because int might match the return type of a GCC 10306 builtin and then its argument prototype would still apply. */ 10307#ifdef __cplusplus 10308extern "C" 10309#endif 10310char dlopen (); 10311/* The GNU C library defines this for functions which it implements 10312 to always fail with ENOSYS. Some functions are actually named 10313 something starting with __ and the normal name is an alias. */ 10314#if defined __stub_dlopen || defined __stub___dlopen 10315choke me 10316#endif 10317 10318int 10319main () 10320{ 10321return dlopen (); 10322 ; 10323 return 0; 10324} 10325_ACEOF 10326rm -f conftest.$ac_objext conftest$ac_exeext 10327if { (ac_try="$ac_link" 10328case "(($ac_try" in 10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10330 *) ac_try_echo=$ac_try;; 10331esac 10332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10333 (eval "$ac_link") 2>conftest.er1 10334 ac_status=$? 10335 grep -v '^ *+' conftest.er1 >conftest.err 10336 rm -f conftest.er1 10337 cat conftest.err >&5 10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10339 (exit $ac_status); } && { 10340 test -z "$ac_c_werror_flag" || 10341 test ! -s conftest.err 10342 } && test -s conftest$ac_exeext && 10343 $as_test_x conftest$ac_exeext; then 10344 ac_cv_func_dlopen=yes 10345else 10346 echo "$as_me: failed program was:" >&5 10347sed 's/^/| /' conftest.$ac_ext >&5 10348 10349 ac_cv_func_dlopen=no 10350fi 10351 10352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10353 conftest$ac_exeext conftest.$ac_ext 10354fi 10355{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10356echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10357if test $ac_cv_func_dlopen = yes; then 10358 lt_cv_dlopen="dlopen" 10359else 10360 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10361echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10362if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10363 echo $ECHO_N "(cached) $ECHO_C" >&6 10364else 10365 ac_check_lib_save_LIBS=$LIBS 10366LIBS="-ldl $LIBS" 10367cat >conftest.$ac_ext <<_ACEOF 10368/* confdefs.h. */ 10369_ACEOF 10370cat confdefs.h >>conftest.$ac_ext 10371cat >>conftest.$ac_ext <<_ACEOF 10372/* end confdefs.h. */ 10373 10374/* Override any GCC internal prototype to avoid an error. 10375 Use char because int might match the return type of a GCC 10376 builtin and then its argument prototype would still apply. */ 10377#ifdef __cplusplus 10378extern "C" 10379#endif 10380char dlopen (); 10381int 10382main () 10383{ 10384return dlopen (); 10385 ; 10386 return 0; 10387} 10388_ACEOF 10389rm -f conftest.$ac_objext conftest$ac_exeext 10390if { (ac_try="$ac_link" 10391case "(($ac_try" in 10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10393 *) ac_try_echo=$ac_try;; 10394esac 10395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10396 (eval "$ac_link") 2>conftest.er1 10397 ac_status=$? 10398 grep -v '^ *+' conftest.er1 >conftest.err 10399 rm -f conftest.er1 10400 cat conftest.err >&5 10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10402 (exit $ac_status); } && { 10403 test -z "$ac_c_werror_flag" || 10404 test ! -s conftest.err 10405 } && test -s conftest$ac_exeext && 10406 $as_test_x conftest$ac_exeext; then 10407 ac_cv_lib_dl_dlopen=yes 10408else 10409 echo "$as_me: failed program was:" >&5 10410sed 's/^/| /' conftest.$ac_ext >&5 10411 10412 ac_cv_lib_dl_dlopen=no 10413fi 10414 10415rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10416 conftest$ac_exeext conftest.$ac_ext 10417LIBS=$ac_check_lib_save_LIBS 10418fi 10419{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10420echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10421if test $ac_cv_lib_dl_dlopen = yes; then 10422 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10423else 10424 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10425echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10426if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10427 echo $ECHO_N "(cached) $ECHO_C" >&6 10428else 10429 ac_check_lib_save_LIBS=$LIBS 10430LIBS="-lsvld $LIBS" 10431cat >conftest.$ac_ext <<_ACEOF 10432/* confdefs.h. */ 10433_ACEOF 10434cat confdefs.h >>conftest.$ac_ext 10435cat >>conftest.$ac_ext <<_ACEOF 10436/* end confdefs.h. */ 10437 10438/* Override any GCC internal prototype to avoid an error. 10439 Use char because int might match the return type of a GCC 10440 builtin and then its argument prototype would still apply. */ 10441#ifdef __cplusplus 10442extern "C" 10443#endif 10444char dlopen (); 10445int 10446main () 10447{ 10448return dlopen (); 10449 ; 10450 return 0; 10451} 10452_ACEOF 10453rm -f conftest.$ac_objext conftest$ac_exeext 10454if { (ac_try="$ac_link" 10455case "(($ac_try" in 10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10457 *) ac_try_echo=$ac_try;; 10458esac 10459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10460 (eval "$ac_link") 2>conftest.er1 10461 ac_status=$? 10462 grep -v '^ *+' conftest.er1 >conftest.err 10463 rm -f conftest.er1 10464 cat conftest.err >&5 10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10466 (exit $ac_status); } && { 10467 test -z "$ac_c_werror_flag" || 10468 test ! -s conftest.err 10469 } && test -s conftest$ac_exeext && 10470 $as_test_x conftest$ac_exeext; then 10471 ac_cv_lib_svld_dlopen=yes 10472else 10473 echo "$as_me: failed program was:" >&5 10474sed 's/^/| /' conftest.$ac_ext >&5 10475 10476 ac_cv_lib_svld_dlopen=no 10477fi 10478 10479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10480 conftest$ac_exeext conftest.$ac_ext 10481LIBS=$ac_check_lib_save_LIBS 10482fi 10483{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10484echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10485if test $ac_cv_lib_svld_dlopen = yes; then 10486 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10487else 10488 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10489echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10490if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10491 echo $ECHO_N "(cached) $ECHO_C" >&6 10492else 10493 ac_check_lib_save_LIBS=$LIBS 10494LIBS="-ldld $LIBS" 10495cat >conftest.$ac_ext <<_ACEOF 10496/* confdefs.h. */ 10497_ACEOF 10498cat confdefs.h >>conftest.$ac_ext 10499cat >>conftest.$ac_ext <<_ACEOF 10500/* end confdefs.h. */ 10501 10502/* Override any GCC internal prototype to avoid an error. 10503 Use char because int might match the return type of a GCC 10504 builtin and then its argument prototype would still apply. */ 10505#ifdef __cplusplus 10506extern "C" 10507#endif 10508char dld_link (); 10509int 10510main () 10511{ 10512return dld_link (); 10513 ; 10514 return 0; 10515} 10516_ACEOF 10517rm -f conftest.$ac_objext conftest$ac_exeext 10518if { (ac_try="$ac_link" 10519case "(($ac_try" in 10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10521 *) ac_try_echo=$ac_try;; 10522esac 10523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10524 (eval "$ac_link") 2>conftest.er1 10525 ac_status=$? 10526 grep -v '^ *+' conftest.er1 >conftest.err 10527 rm -f conftest.er1 10528 cat conftest.err >&5 10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10530 (exit $ac_status); } && { 10531 test -z "$ac_c_werror_flag" || 10532 test ! -s conftest.err 10533 } && test -s conftest$ac_exeext && 10534 $as_test_x conftest$ac_exeext; then 10535 ac_cv_lib_dld_dld_link=yes 10536else 10537 echo "$as_me: failed program was:" >&5 10538sed 's/^/| /' conftest.$ac_ext >&5 10539 10540 ac_cv_lib_dld_dld_link=no 10541fi 10542 10543rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10544 conftest$ac_exeext conftest.$ac_ext 10545LIBS=$ac_check_lib_save_LIBS 10546fi 10547{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10548echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10549if test $ac_cv_lib_dld_dld_link = yes; then 10550 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10551fi 10552 10553 10554fi 10555 10556 10557fi 10558 10559 10560fi 10561 10562 10563fi 10564 10565 10566fi 10567 10568 ;; 10569 esac 10570 10571 if test "x$lt_cv_dlopen" != xno; then 10572 enable_dlopen=yes 10573 else 10574 enable_dlopen=no 10575 fi 10576 10577 case $lt_cv_dlopen in 10578 dlopen) 10579 save_CPPFLAGS="$CPPFLAGS" 10580 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10581 10582 save_LDFLAGS="$LDFLAGS" 10583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10584 10585 save_LIBS="$LIBS" 10586 LIBS="$lt_cv_dlopen_libs $LIBS" 10587 10588 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10589echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10590if test "${lt_cv_dlopen_self+set}" = set; then 10591 echo $ECHO_N "(cached) $ECHO_C" >&6 10592else 10593 if test "$cross_compiling" = yes; then : 10594 lt_cv_dlopen_self=cross 10595else 10596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10597 lt_status=$lt_dlunknown 10598 cat > conftest.$ac_ext <<EOF 10599#line 10599 "configure" 10600#include "confdefs.h" 10601 10602#if HAVE_DLFCN_H 10603#include <dlfcn.h> 10604#endif 10605 10606#include <stdio.h> 10607 10608#ifdef RTLD_GLOBAL 10609# define LT_DLGLOBAL RTLD_GLOBAL 10610#else 10611# ifdef DL_GLOBAL 10612# define LT_DLGLOBAL DL_GLOBAL 10613# else 10614# define LT_DLGLOBAL 0 10615# endif 10616#endif 10617 10618/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10619 find out it does not work in some platform. */ 10620#ifndef LT_DLLAZY_OR_NOW 10621# ifdef RTLD_LAZY 10622# define LT_DLLAZY_OR_NOW RTLD_LAZY 10623# else 10624# ifdef DL_LAZY 10625# define LT_DLLAZY_OR_NOW DL_LAZY 10626# else 10627# ifdef RTLD_NOW 10628# define LT_DLLAZY_OR_NOW RTLD_NOW 10629# else 10630# ifdef DL_NOW 10631# define LT_DLLAZY_OR_NOW DL_NOW 10632# else 10633# define LT_DLLAZY_OR_NOW 0 10634# endif 10635# endif 10636# endif 10637# endif 10638#endif 10639 10640#ifdef __cplusplus 10641extern "C" void exit (int); 10642#endif 10643 10644void fnord() { int i=42;} 10645int main () 10646{ 10647 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10648 int status = $lt_dlunknown; 10649 10650 if (self) 10651 { 10652 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10653 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10654 /* dlclose (self); */ 10655 } 10656 else 10657 puts (dlerror ()); 10658 10659 exit (status); 10660} 10661EOF 10662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10663 (eval $ac_link) 2>&5 10664 ac_status=$? 10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10666 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10667 (./conftest; exit; ) >&5 2>/dev/null 10668 lt_status=$? 10669 case x$lt_status in 10670 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10671 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10672 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10673 esac 10674 else : 10675 # compilation failed 10676 lt_cv_dlopen_self=no 10677 fi 10678fi 10679rm -fr conftest* 10680 10681 10682fi 10683{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10684echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10685 10686 if test "x$lt_cv_dlopen_self" = xyes; then 10687 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10688 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10689echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10690if test "${lt_cv_dlopen_self_static+set}" = set; then 10691 echo $ECHO_N "(cached) $ECHO_C" >&6 10692else 10693 if test "$cross_compiling" = yes; then : 10694 lt_cv_dlopen_self_static=cross 10695else 10696 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10697 lt_status=$lt_dlunknown 10698 cat > conftest.$ac_ext <<EOF 10699#line 10699 "configure" 10700#include "confdefs.h" 10701 10702#if HAVE_DLFCN_H 10703#include <dlfcn.h> 10704#endif 10705 10706#include <stdio.h> 10707 10708#ifdef RTLD_GLOBAL 10709# define LT_DLGLOBAL RTLD_GLOBAL 10710#else 10711# ifdef DL_GLOBAL 10712# define LT_DLGLOBAL DL_GLOBAL 10713# else 10714# define LT_DLGLOBAL 0 10715# endif 10716#endif 10717 10718/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10719 find out it does not work in some platform. */ 10720#ifndef LT_DLLAZY_OR_NOW 10721# ifdef RTLD_LAZY 10722# define LT_DLLAZY_OR_NOW RTLD_LAZY 10723# else 10724# ifdef DL_LAZY 10725# define LT_DLLAZY_OR_NOW DL_LAZY 10726# else 10727# ifdef RTLD_NOW 10728# define LT_DLLAZY_OR_NOW RTLD_NOW 10729# else 10730# ifdef DL_NOW 10731# define LT_DLLAZY_OR_NOW DL_NOW 10732# else 10733# define LT_DLLAZY_OR_NOW 0 10734# endif 10735# endif 10736# endif 10737# endif 10738#endif 10739 10740#ifdef __cplusplus 10741extern "C" void exit (int); 10742#endif 10743 10744void fnord() { int i=42;} 10745int main () 10746{ 10747 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10748 int status = $lt_dlunknown; 10749 10750 if (self) 10751 { 10752 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10753 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10754 /* dlclose (self); */ 10755 } 10756 else 10757 puts (dlerror ()); 10758 10759 exit (status); 10760} 10761EOF 10762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10763 (eval $ac_link) 2>&5 10764 ac_status=$? 10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10766 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10767 (./conftest; exit; ) >&5 2>/dev/null 10768 lt_status=$? 10769 case x$lt_status in 10770 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10771 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10772 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10773 esac 10774 else : 10775 # compilation failed 10776 lt_cv_dlopen_self_static=no 10777 fi 10778fi 10779rm -fr conftest* 10780 10781 10782fi 10783{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10784echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10785 fi 10786 10787 CPPFLAGS="$save_CPPFLAGS" 10788 LDFLAGS="$save_LDFLAGS" 10789 LIBS="$save_LIBS" 10790 ;; 10791 esac 10792 10793 case $lt_cv_dlopen_self in 10794 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10795 *) enable_dlopen_self=unknown ;; 10796 esac 10797 10798 case $lt_cv_dlopen_self_static in 10799 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10800 *) enable_dlopen_self_static=unknown ;; 10801 esac 10802fi 10803 10804 10805# Report which library types will actually be built 10806{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10807echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10808{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10809echo "${ECHO_T}$can_build_shared" >&6; } 10810 10811{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10812echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10813test "$can_build_shared" = "no" && enable_shared=no 10814 10815# On AIX, shared libraries and static libraries use the same namespace, and 10816# are all built from PIC. 10817case $host_os in 10818aix3*) 10819 test "$enable_shared" = yes && enable_static=no 10820 if test -n "$RANLIB"; then 10821 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10822 postinstall_cmds='$RANLIB $lib' 10823 fi 10824 ;; 10825 10826aix[4-9]*) 10827 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10828 test "$enable_shared" = yes && enable_static=no 10829 fi 10830 ;; 10831esac 10832{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10833echo "${ECHO_T}$enable_shared" >&6; } 10834 10835{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10836echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10837# Make sure either enable_shared or enable_static is yes. 10838test "$enable_shared" = yes || enable_static=yes 10839{ echo "$as_me:$LINENO: result: $enable_static" >&5 10840echo "${ECHO_T}$enable_static" >&6; } 10841 10842# The else clause should only fire when bootstrapping the 10843# libtool distribution, otherwise you forgot to ship ltmain.sh 10844# with your package, and you will get complaints that there are 10845# no rules to generate ltmain.sh. 10846if test -f "$ltmain"; then 10847 # See if we are running on zsh, and set the options which allow our commands through 10848 # without removal of \ escapes. 10849 if test -n "${ZSH_VERSION+set}" ; then 10850 setopt NO_GLOB_SUBST 10851 fi 10852 # Now quote all the things that may contain metacharacters while being 10853 # careful not to overquote the AC_SUBSTed values. We take copies of the 10854 # variables and quote the copies for generation of the libtool script. 10855 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10856 SED SHELL STRIP \ 10857 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10858 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10859 deplibs_check_method reload_flag reload_cmds need_locks \ 10860 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10861 lt_cv_sys_global_symbol_to_c_name_address \ 10862 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10863 old_postinstall_cmds old_postuninstall_cmds \ 10864 compiler \ 10865 CC \ 10866 LD \ 10867 lt_prog_compiler_wl \ 10868 lt_prog_compiler_pic \ 10869 lt_prog_compiler_static \ 10870 lt_prog_compiler_no_builtin_flag \ 10871 export_dynamic_flag_spec \ 10872 thread_safe_flag_spec \ 10873 whole_archive_flag_spec \ 10874 enable_shared_with_static_runtimes \ 10875 old_archive_cmds \ 10876 old_archive_from_new_cmds \ 10877 predep_objects \ 10878 postdep_objects \ 10879 predeps \ 10880 postdeps \ 10881 compiler_lib_search_path \ 10882 compiler_lib_search_dirs \ 10883 archive_cmds \ 10884 archive_expsym_cmds \ 10885 postinstall_cmds \ 10886 postuninstall_cmds \ 10887 old_archive_from_expsyms_cmds \ 10888 allow_undefined_flag \ 10889 no_undefined_flag \ 10890 export_symbols_cmds \ 10891 hardcode_libdir_flag_spec \ 10892 hardcode_libdir_flag_spec_ld \ 10893 hardcode_libdir_separator \ 10894 hardcode_automatic \ 10895 module_cmds \ 10896 module_expsym_cmds \ 10897 lt_cv_prog_compiler_c_o \ 10898 fix_srcfile_path \ 10899 exclude_expsyms \ 10900 include_expsyms; do 10901 10902 case $var in 10903 old_archive_cmds | \ 10904 old_archive_from_new_cmds | \ 10905 archive_cmds | \ 10906 archive_expsym_cmds | \ 10907 module_cmds | \ 10908 module_expsym_cmds | \ 10909 old_archive_from_expsyms_cmds | \ 10910 export_symbols_cmds | \ 10911 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10912 postinstall_cmds | postuninstall_cmds | \ 10913 old_postinstall_cmds | old_postuninstall_cmds | \ 10914 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10915 # Double-quote double-evaled strings. 10916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10917 ;; 10918 *) 10919 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10920 ;; 10921 esac 10922 done 10923 10924 case $lt_echo in 10925 *'\$0 --fallback-echo"') 10926 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10927 ;; 10928 esac 10929 10930cfgfile="${ofile}T" 10931 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10932 $rm -f "$cfgfile" 10933 { echo "$as_me:$LINENO: creating $ofile" >&5 10934echo "$as_me: creating $ofile" >&6;} 10935 10936 cat <<__EOF__ >> "$cfgfile" 10937#! $SHELL 10938 10939# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10940# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10941# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10942# 10943# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10944# Free Software Foundation, Inc. 10945# 10946# This file is part of GNU Libtool: 10947# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10948# 10949# This program is free software; you can redistribute it and/or modify 10950# it under the terms of the GNU General Public License as published by 10951# the Free Software Foundation; either version 2 of the License, or 10952# (at your option) any later version. 10953# 10954# This program is distributed in the hope that it will be useful, but 10955# WITHOUT ANY WARRANTY; without even the implied warranty of 10956# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10957# General Public License for more details. 10958# 10959# You should have received a copy of the GNU General Public License 10960# along with this program; if not, write to the Free Software 10961# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10962# 10963# As a special exception to the GNU General Public License, if you 10964# distribute this file as part of a program that contains a 10965# configuration script generated by Autoconf, you may include it under 10966# the same distribution terms that you use for the rest of that program. 10967 10968# A sed program that does not truncate output. 10969SED=$lt_SED 10970 10971# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10972Xsed="$SED -e 1s/^X//" 10973 10974# The HP-UX ksh and POSIX shell print the target directory to stdout 10975# if CDPATH is set. 10976(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10977 10978# The names of the tagged configurations supported by this script. 10979available_tags= 10980 10981# ### BEGIN LIBTOOL CONFIG 10982 10983# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10984 10985# Shell to use when invoking shell scripts. 10986SHELL=$lt_SHELL 10987 10988# Whether or not to build shared libraries. 10989build_libtool_libs=$enable_shared 10990 10991# Whether or not to build static libraries. 10992build_old_libs=$enable_static 10993 10994# Whether or not to add -lc for building shared libraries. 10995build_libtool_need_lc=$archive_cmds_need_lc 10996 10997# Whether or not to disallow shared libs when runtime libs are static 10998allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10999 11000# Whether or not to optimize for fast installation. 11001fast_install=$enable_fast_install 11002 11003# The host system. 11004host_alias=$host_alias 11005host=$host 11006host_os=$host_os 11007 11008# The build system. 11009build_alias=$build_alias 11010build=$build 11011build_os=$build_os 11012 11013# An echo program that does not interpret backslashes. 11014echo=$lt_echo 11015 11016# The archiver. 11017AR=$lt_AR 11018AR_FLAGS=$lt_AR_FLAGS 11019 11020# A C compiler. 11021LTCC=$lt_LTCC 11022 11023# LTCC compiler flags. 11024LTCFLAGS=$lt_LTCFLAGS 11025 11026# A language-specific compiler. 11027CC=$lt_compiler 11028 11029# Is the compiler the GNU C compiler? 11030with_gcc=$GCC 11031 11032# An ERE matcher. 11033EGREP=$lt_EGREP 11034 11035# The linker used to build libraries. 11036LD=$lt_LD 11037 11038# Whether we need hard or soft links. 11039LN_S=$lt_LN_S 11040 11041# A BSD-compatible nm program. 11042NM=$lt_NM 11043 11044# A symbol stripping program 11045STRIP=$lt_STRIP 11046 11047# Used to examine libraries when file_magic_cmd begins "file" 11048MAGIC_CMD=$MAGIC_CMD 11049 11050# Used on cygwin: DLL creation program. 11051DLLTOOL="$DLLTOOL" 11052 11053# Used on cygwin: object dumper. 11054OBJDUMP="$OBJDUMP" 11055 11056# Used on cygwin: assembler. 11057AS="$AS" 11058 11059# The name of the directory that contains temporary libtool files. 11060objdir=$objdir 11061 11062# How to create reloadable object files. 11063reload_flag=$lt_reload_flag 11064reload_cmds=$lt_reload_cmds 11065 11066# How to pass a linker flag through the compiler. 11067wl=$lt_lt_prog_compiler_wl 11068 11069# Object file suffix (normally "o"). 11070objext="$ac_objext" 11071 11072# Old archive suffix (normally "a"). 11073libext="$libext" 11074 11075# Shared library suffix (normally ".so"). 11076shrext_cmds='$shrext_cmds' 11077 11078# Executable file suffix (normally ""). 11079exeext="$exeext" 11080 11081# Additional compiler flags for building library objects. 11082pic_flag=$lt_lt_prog_compiler_pic 11083pic_mode=$pic_mode 11084 11085# What is the maximum length of a command? 11086max_cmd_len=$lt_cv_sys_max_cmd_len 11087 11088# Does compiler simultaneously support -c and -o options? 11089compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11090 11091# Must we lock files when doing compilation? 11092need_locks=$lt_need_locks 11093 11094# Do we need the lib prefix for modules? 11095need_lib_prefix=$need_lib_prefix 11096 11097# Do we need a version for libraries? 11098need_version=$need_version 11099 11100# Whether dlopen is supported. 11101dlopen_support=$enable_dlopen 11102 11103# Whether dlopen of programs is supported. 11104dlopen_self=$enable_dlopen_self 11105 11106# Whether dlopen of statically linked programs is supported. 11107dlopen_self_static=$enable_dlopen_self_static 11108 11109# Compiler flag to prevent dynamic linking. 11110link_static_flag=$lt_lt_prog_compiler_static 11111 11112# Compiler flag to turn off builtin functions. 11113no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11114 11115# Compiler flag to allow reflexive dlopens. 11116export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11117 11118# Compiler flag to generate shared objects directly from archives. 11119whole_archive_flag_spec=$lt_whole_archive_flag_spec 11120 11121# Compiler flag to generate thread-safe objects. 11122thread_safe_flag_spec=$lt_thread_safe_flag_spec 11123 11124# Library versioning type. 11125version_type=$version_type 11126 11127# Format of library name prefix. 11128libname_spec=$lt_libname_spec 11129 11130# List of archive names. First name is the real one, the rest are links. 11131# The last name is the one that the linker finds with -lNAME. 11132library_names_spec=$lt_library_names_spec 11133 11134# The coded name of the library, if different from the real name. 11135soname_spec=$lt_soname_spec 11136 11137# Commands used to build and install an old-style archive. 11138RANLIB=$lt_RANLIB 11139old_archive_cmds=$lt_old_archive_cmds 11140old_postinstall_cmds=$lt_old_postinstall_cmds 11141old_postuninstall_cmds=$lt_old_postuninstall_cmds 11142 11143# Create an old-style archive from a shared archive. 11144old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11145 11146# Create a temporary old-style archive to link instead of a shared archive. 11147old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11148 11149# Commands used to build and install a shared archive. 11150archive_cmds=$lt_archive_cmds 11151archive_expsym_cmds=$lt_archive_expsym_cmds 11152postinstall_cmds=$lt_postinstall_cmds 11153postuninstall_cmds=$lt_postuninstall_cmds 11154 11155# Commands used to build a loadable module (assumed same as above if empty) 11156module_cmds=$lt_module_cmds 11157module_expsym_cmds=$lt_module_expsym_cmds 11158 11159# Commands to strip libraries. 11160old_striplib=$lt_old_striplib 11161striplib=$lt_striplib 11162 11163# Dependencies to place before the objects being linked to create a 11164# shared library. 11165predep_objects=$lt_predep_objects 11166 11167# Dependencies to place after the objects being linked to create a 11168# shared library. 11169postdep_objects=$lt_postdep_objects 11170 11171# Dependencies to place before the objects being linked to create a 11172# shared library. 11173predeps=$lt_predeps 11174 11175# Dependencies to place after the objects being linked to create a 11176# shared library. 11177postdeps=$lt_postdeps 11178 11179# The directories searched by this compiler when creating a shared 11180# library 11181compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 11182 11183# The library search path used internally by the compiler when linking 11184# a shared library. 11185compiler_lib_search_path=$lt_compiler_lib_search_path 11186 11187# Method to check whether dependent libraries are shared objects. 11188deplibs_check_method=$lt_deplibs_check_method 11189 11190# Command to use when deplibs_check_method == file_magic. 11191file_magic_cmd=$lt_file_magic_cmd 11192 11193# Flag that allows shared libraries with undefined symbols to be built. 11194allow_undefined_flag=$lt_allow_undefined_flag 11195 11196# Flag that forces no undefined symbols. 11197no_undefined_flag=$lt_no_undefined_flag 11198 11199# Commands used to finish a libtool library installation in a directory. 11200finish_cmds=$lt_finish_cmds 11201 11202# Same as above, but a single script fragment to be evaled but not shown. 11203finish_eval=$lt_finish_eval 11204 11205# Take the output of nm and produce a listing of raw symbols and C names. 11206global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11207 11208# Transform the output of nm in a proper C declaration 11209global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11210 11211# Transform the output of nm in a C name address pair 11212global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11213 11214# This is the shared library runtime path variable. 11215runpath_var=$runpath_var 11216 11217# This is the shared library path variable. 11218shlibpath_var=$shlibpath_var 11219 11220# Is shlibpath searched before the hard-coded library search path? 11221shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11222 11223# How to hardcode a shared library path into an executable. 11224hardcode_action=$hardcode_action 11225 11226# Whether we should hardcode library paths into libraries. 11227hardcode_into_libs=$hardcode_into_libs 11228 11229# Flag to hardcode \$libdir into a binary during linking. 11230# This must work even if \$libdir does not exist. 11231hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11232 11233# If ld is used when linking, flag to hardcode \$libdir into 11234# a binary during linking. This must work even if \$libdir does 11235# not exist. 11236hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11237 11238# Whether we need a single -rpath flag with a separated argument. 11239hardcode_libdir_separator=$lt_hardcode_libdir_separator 11240 11241# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11242# resulting binary. 11243hardcode_direct=$hardcode_direct 11244 11245# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11246# resulting binary. 11247hardcode_minus_L=$hardcode_minus_L 11248 11249# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11250# the resulting binary. 11251hardcode_shlibpath_var=$hardcode_shlibpath_var 11252 11253# Set to yes if building a shared library automatically hardcodes DIR into the library 11254# and all subsequent libraries and executables linked against it. 11255hardcode_automatic=$hardcode_automatic 11256 11257# Variables whose values should be saved in libtool wrapper scripts and 11258# restored at relink time. 11259variables_saved_for_relink="$variables_saved_for_relink" 11260 11261# Whether libtool must link a program against all its dependency libraries. 11262link_all_deplibs=$link_all_deplibs 11263 11264# Compile-time system search path for libraries 11265sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11266 11267# Run-time system search path for libraries 11268sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11269 11270# Fix the shell variable \$srcfile for the compiler. 11271fix_srcfile_path=$lt_fix_srcfile_path 11272 11273# Set to yes if exported symbols are required. 11274always_export_symbols=$always_export_symbols 11275 11276# The commands to list exported symbols. 11277export_symbols_cmds=$lt_export_symbols_cmds 11278 11279# The commands to extract the exported symbol list from a shared archive. 11280extract_expsyms_cmds=$lt_extract_expsyms_cmds 11281 11282# Symbols that should not be listed in the preloaded symbols. 11283exclude_expsyms=$lt_exclude_expsyms 11284 11285# Symbols that must always be exported. 11286include_expsyms=$lt_include_expsyms 11287 11288# ### END LIBTOOL CONFIG 11289 11290__EOF__ 11291 11292 11293 case $host_os in 11294 aix3*) 11295 cat <<\EOF >> "$cfgfile" 11296 11297# AIX sometimes has problems with the GCC collect2 program. For some 11298# reason, if we set the COLLECT_NAMES environment variable, the problems 11299# vanish in a puff of smoke. 11300if test "X${COLLECT_NAMES+set}" != Xset; then 11301 COLLECT_NAMES= 11302 export COLLECT_NAMES 11303fi 11304EOF 11305 ;; 11306 esac 11307 11308 # We use sed instead of cat because bash on DJGPP gets confused if 11309 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11310 # text mode, it properly converts lines to CR/LF. This bash problem 11311 # is reportedly fixed, but why not run on old versions too? 11312 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11313 11314 mv -f "$cfgfile" "$ofile" || \ 11315 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11316 chmod +x "$ofile" 11317 11318else 11319 # If there is no Makefile yet, we rely on a make rule to execute 11320 # `config.status --recheck' to rerun these tests and create the 11321 # libtool script then. 11322 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11323 if test -f "$ltmain_in"; then 11324 test -f Makefile && make "$ltmain" 11325 fi 11326fi 11327 11328 11329ac_ext=c 11330ac_cpp='$CPP $CPPFLAGS' 11331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11333ac_compiler_gnu=$ac_cv_c_compiler_gnu 11334 11335CC="$lt_save_CC" 11336 11337 11338# Check whether --with-tags was given. 11339if test "${with_tags+set}" = set; then 11340 withval=$with_tags; tagnames="$withval" 11341fi 11342 11343 11344if test -f "$ltmain" && test -n "$tagnames"; then 11345 if test ! -f "${ofile}"; then 11346 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11347echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11348 fi 11349 11350 if test -z "$LTCC"; then 11351 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11352 if test -z "$LTCC"; then 11353 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11354echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11355 else 11356 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11357echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11358 fi 11359 fi 11360 if test -z "$LTCFLAGS"; then 11361 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11362 fi 11363 11364 # Extract list of available tagged configurations in $ofile. 11365 # Note that this assumes the entire list is on one line. 11366 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11367 11368 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11369 for tagname in $tagnames; do 11370 IFS="$lt_save_ifs" 11371 # Check whether tagname contains only valid characters 11372 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11373 "") ;; 11374 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11375echo "$as_me: error: invalid tag name: $tagname" >&2;} 11376 { (exit 1); exit 1; }; } 11377 ;; 11378 esac 11379 11380 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11381 then 11382 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11383echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11384 { (exit 1); exit 1; }; } 11385 fi 11386 11387 # Update the list of available tags. 11388 if test -n "$tagname"; then 11389 echo appending configuration tag \"$tagname\" to $ofile 11390 11391 case $tagname in 11392 CXX) 11393 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11394 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11395 (test "X$CXX" != "Xg++"))) ; then 11396 ac_ext=cpp 11397ac_cpp='$CXXCPP $CPPFLAGS' 11398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11401 11402 11403 11404 11405archive_cmds_need_lc_CXX=no 11406allow_undefined_flag_CXX= 11407always_export_symbols_CXX=no 11408archive_expsym_cmds_CXX= 11409export_dynamic_flag_spec_CXX= 11410hardcode_direct_CXX=no 11411hardcode_libdir_flag_spec_CXX= 11412hardcode_libdir_flag_spec_ld_CXX= 11413hardcode_libdir_separator_CXX= 11414hardcode_minus_L_CXX=no 11415hardcode_shlibpath_var_CXX=unsupported 11416hardcode_automatic_CXX=no 11417module_cmds_CXX= 11418module_expsym_cmds_CXX= 11419link_all_deplibs_CXX=unknown 11420old_archive_cmds_CXX=$old_archive_cmds 11421no_undefined_flag_CXX= 11422whole_archive_flag_spec_CXX= 11423enable_shared_with_static_runtimes_CXX=no 11424 11425# Dependencies to place before and after the object being linked: 11426predep_objects_CXX= 11427postdep_objects_CXX= 11428predeps_CXX= 11429postdeps_CXX= 11430compiler_lib_search_path_CXX= 11431compiler_lib_search_dirs_CXX= 11432 11433# Source file extension for C++ test sources. 11434ac_ext=cpp 11435 11436# Object file extension for compiled C++ test sources. 11437objext=o 11438objext_CXX=$objext 11439 11440# Code to be used in simple compile tests 11441lt_simple_compile_test_code="int some_variable = 0;" 11442 11443# Code to be used in simple link tests 11444lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11445 11446# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11447 11448# If no C compiler was specified, use CC. 11449LTCC=${LTCC-"$CC"} 11450 11451# If no C compiler flags were specified, use CFLAGS. 11452LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11453 11454# Allow CC to be a program name with arguments. 11455compiler=$CC 11456 11457 11458# save warnings/boilerplate of simple test code 11459ac_outfile=conftest.$ac_objext 11460echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11461eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11462_lt_compiler_boilerplate=`cat conftest.err` 11463$rm conftest* 11464 11465ac_outfile=conftest.$ac_objext 11466echo "$lt_simple_link_test_code" >conftest.$ac_ext 11467eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11468_lt_linker_boilerplate=`cat conftest.err` 11469$rm -r conftest* 11470 11471 11472# Allow CC to be a program name with arguments. 11473lt_save_CC=$CC 11474lt_save_LD=$LD 11475lt_save_GCC=$GCC 11476GCC=$GXX 11477lt_save_with_gnu_ld=$with_gnu_ld 11478lt_save_path_LD=$lt_cv_path_LD 11479if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11480 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11481else 11482 $as_unset lt_cv_prog_gnu_ld 11483fi 11484if test -n "${lt_cv_path_LDCXX+set}"; then 11485 lt_cv_path_LD=$lt_cv_path_LDCXX 11486else 11487 $as_unset lt_cv_path_LD 11488fi 11489test -z "${LDCXX+set}" || LD=$LDCXX 11490CC=${CXX-"c++"} 11491compiler=$CC 11492compiler_CXX=$CC 11493for cc_temp in $compiler""; do 11494 case $cc_temp in 11495 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11496 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11497 \-*) ;; 11498 *) break;; 11499 esac 11500done 11501cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11502 11503 11504# We don't want -fno-exception wen compiling C++ code, so set the 11505# no_builtin_flag separately 11506if test "$GXX" = yes; then 11507 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11508else 11509 lt_prog_compiler_no_builtin_flag_CXX= 11510fi 11511 11512if test "$GXX" = yes; then 11513 # Set up default GNU C++ configuration 11514 11515 11516# Check whether --with-gnu-ld was given. 11517if test "${with_gnu_ld+set}" = set; then 11518 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11519else 11520 with_gnu_ld=no 11521fi 11522 11523ac_prog=ld 11524if test "$GCC" = yes; then 11525 # Check if gcc -print-prog-name=ld gives a path. 11526 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11527echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11528 case $host in 11529 *-*-mingw*) 11530 # gcc leaves a trailing carriage return which upsets mingw 11531 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11532 *) 11533 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11534 esac 11535 case $ac_prog in 11536 # Accept absolute paths. 11537 [\\/]* | ?:[\\/]*) 11538 re_direlt='/[^/][^/]*/\.\./' 11539 # Canonicalize the pathname of ld 11540 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11541 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11542 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11543 done 11544 test -z "$LD" && LD="$ac_prog" 11545 ;; 11546 "") 11547 # If it fails, then pretend we aren't using GCC. 11548 ac_prog=ld 11549 ;; 11550 *) 11551 # If it is relative, then search for the first ld in PATH. 11552 with_gnu_ld=unknown 11553 ;; 11554 esac 11555elif test "$with_gnu_ld" = yes; then 11556 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11557echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11558else 11559 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11560echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11561fi 11562if test "${lt_cv_path_LD+set}" = set; then 11563 echo $ECHO_N "(cached) $ECHO_C" >&6 11564else 11565 if test -z "$LD"; then 11566 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11567 for ac_dir in $PATH; do 11568 IFS="$lt_save_ifs" 11569 test -z "$ac_dir" && ac_dir=. 11570 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11571 lt_cv_path_LD="$ac_dir/$ac_prog" 11572 # Check to see if the program is GNU ld. I'd rather use --version, 11573 # but apparently some variants of GNU ld only accept -v. 11574 # Break only if it was the GNU/non-GNU ld that we prefer. 11575 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11576 *GNU* | *'with BFD'*) 11577 test "$with_gnu_ld" != no && break 11578 ;; 11579 *) 11580 test "$with_gnu_ld" != yes && break 11581 ;; 11582 esac 11583 fi 11584 done 11585 IFS="$lt_save_ifs" 11586else 11587 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11588fi 11589fi 11590 11591LD="$lt_cv_path_LD" 11592if test -n "$LD"; then 11593 { echo "$as_me:$LINENO: result: $LD" >&5 11594echo "${ECHO_T}$LD" >&6; } 11595else 11596 { echo "$as_me:$LINENO: result: no" >&5 11597echo "${ECHO_T}no" >&6; } 11598fi 11599test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11600echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11601 { (exit 1); exit 1; }; } 11602{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11603echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11604if test "${lt_cv_prog_gnu_ld+set}" = set; then 11605 echo $ECHO_N "(cached) $ECHO_C" >&6 11606else 11607 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11608case `$LD -v 2>&1 </dev/null` in 11609*GNU* | *'with BFD'*) 11610 lt_cv_prog_gnu_ld=yes 11611 ;; 11612*) 11613 lt_cv_prog_gnu_ld=no 11614 ;; 11615esac 11616fi 11617{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11618echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11619with_gnu_ld=$lt_cv_prog_gnu_ld 11620 11621 11622 11623 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11624 # archiving commands below assume that GNU ld is being used. 11625 if test "$with_gnu_ld" = yes; then 11626 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11627 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' 11628 11629 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11630 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11631 11632 # If archive_cmds runs LD, not CC, wlarc should be empty 11633 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11634 # investigate it a little bit more. (MM) 11635 wlarc='${wl}' 11636 11637 # ancient GNU ld didn't support --whole-archive et. al. 11638 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11639 grep 'no-whole-archive' > /dev/null; then 11640 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11641 else 11642 whole_archive_flag_spec_CXX= 11643 fi 11644 else 11645 with_gnu_ld=no 11646 wlarc= 11647 11648 # A generic and very simple default shared library creation 11649 # command for GNU C++ for the case where it uses the native 11650 # linker, instead of GNU ld. If possible, this setting should 11651 # overridden to take advantage of the native linker features on 11652 # the platform it is being used on. 11653 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11654 fi 11655 11656 # Commands to make compiler produce verbose output that lists 11657 # what "hidden" libraries, object files and flags are used when 11658 # linking a shared library. 11659 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11660 11661else 11662 GXX=no 11663 with_gnu_ld=no 11664 wlarc= 11665fi 11666 11667# PORTME: fill in a description of your system's C++ link characteristics 11668{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11669echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11670ld_shlibs_CXX=yes 11671case $host_os in 11672 aix3*) 11673 # FIXME: insert proper C++ library support 11674 ld_shlibs_CXX=no 11675 ;; 11676 aix[4-9]*) 11677 if test "$host_cpu" = ia64; then 11678 # On IA64, the linker does run time linking by default, so we don't 11679 # have to do anything special. 11680 aix_use_runtimelinking=no 11681 exp_sym_flag='-Bexport' 11682 no_entry_flag="" 11683 else 11684 aix_use_runtimelinking=no 11685 11686 # Test if we are trying to use run time linking or normal 11687 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11688 # need to do runtime linking. 11689 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11690 for ld_flag in $LDFLAGS; do 11691 case $ld_flag in 11692 *-brtl*) 11693 aix_use_runtimelinking=yes 11694 break 11695 ;; 11696 esac 11697 done 11698 ;; 11699 esac 11700 11701 exp_sym_flag='-bexport' 11702 no_entry_flag='-bnoentry' 11703 fi 11704 11705 # When large executables or shared objects are built, AIX ld can 11706 # have problems creating the table of contents. If linking a library 11707 # or program results in "error TOC overflow" add -mminimal-toc to 11708 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11709 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11710 11711 archive_cmds_CXX='' 11712 hardcode_direct_CXX=yes 11713 hardcode_libdir_separator_CXX=':' 11714 link_all_deplibs_CXX=yes 11715 11716 if test "$GXX" = yes; then 11717 case $host_os in aix4.[012]|aix4.[012].*) 11718 # We only want to do this on AIX 4.2 and lower, the check 11719 # below for broken collect2 doesn't work under 4.3+ 11720 collect2name=`${CC} -print-prog-name=collect2` 11721 if test -f "$collect2name" && \ 11722 strings "$collect2name" | grep resolve_lib_name >/dev/null 11723 then 11724 # We have reworked collect2 11725 : 11726 else 11727 # We have old collect2 11728 hardcode_direct_CXX=unsupported 11729 # It fails to find uninstalled libraries when the uninstalled 11730 # path is not listed in the libpath. Setting hardcode_minus_L 11731 # to unsupported forces relinking 11732 hardcode_minus_L_CXX=yes 11733 hardcode_libdir_flag_spec_CXX='-L$libdir' 11734 hardcode_libdir_separator_CXX= 11735 fi 11736 ;; 11737 esac 11738 shared_flag='-shared' 11739 if test "$aix_use_runtimelinking" = yes; then 11740 shared_flag="$shared_flag "'${wl}-G' 11741 fi 11742 else 11743 # not using gcc 11744 if test "$host_cpu" = ia64; then 11745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11746 # chokes on -Wl,-G. The following line is correct: 11747 shared_flag='-G' 11748 else 11749 if test "$aix_use_runtimelinking" = yes; then 11750 shared_flag='${wl}-G' 11751 else 11752 shared_flag='${wl}-bM:SRE' 11753 fi 11754 fi 11755 fi 11756 11757 # It seems that -bexpall does not export symbols beginning with 11758 # underscore (_), so it is better to generate a list of symbols to export. 11759 always_export_symbols_CXX=yes 11760 if test "$aix_use_runtimelinking" = yes; then 11761 # Warning - without using the other runtime loading flags (-brtl), 11762 # -berok will link without error, but may produce a broken library. 11763 allow_undefined_flag_CXX='-berok' 11764 # Determine the default libpath from the value encoded in an empty executable. 11765 cat >conftest.$ac_ext <<_ACEOF 11766/* confdefs.h. */ 11767_ACEOF 11768cat confdefs.h >>conftest.$ac_ext 11769cat >>conftest.$ac_ext <<_ACEOF 11770/* end confdefs.h. */ 11771 11772int 11773main () 11774{ 11775 11776 ; 11777 return 0; 11778} 11779_ACEOF 11780rm -f conftest.$ac_objext conftest$ac_exeext 11781if { (ac_try="$ac_link" 11782case "(($ac_try" in 11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11784 *) ac_try_echo=$ac_try;; 11785esac 11786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11787 (eval "$ac_link") 2>conftest.er1 11788 ac_status=$? 11789 grep -v '^ *+' conftest.er1 >conftest.err 11790 rm -f conftest.er1 11791 cat conftest.err >&5 11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11793 (exit $ac_status); } && { 11794 test -z "$ac_cxx_werror_flag" || 11795 test ! -s conftest.err 11796 } && test -s conftest$ac_exeext && 11797 $as_test_x conftest$ac_exeext; then 11798 11799lt_aix_libpath_sed=' 11800 /Import File Strings/,/^$/ { 11801 /^0/ { 11802 s/^0 *\(.*\)$/\1/ 11803 p 11804 } 11805 }' 11806aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11807# Check for a 64-bit object if we didn't find anything. 11808if test -z "$aix_libpath"; then 11809 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11810fi 11811else 11812 echo "$as_me: failed program was:" >&5 11813sed 's/^/| /' conftest.$ac_ext >&5 11814 11815 11816fi 11817 11818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11819 conftest$ac_exeext conftest.$ac_ext 11820if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11821 11822 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11823 11824 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" 11825 else 11826 if test "$host_cpu" = ia64; then 11827 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11828 allow_undefined_flag_CXX="-z nodefs" 11829 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" 11830 else 11831 # Determine the default libpath from the value encoded in an empty executable. 11832 cat >conftest.$ac_ext <<_ACEOF 11833/* confdefs.h. */ 11834_ACEOF 11835cat confdefs.h >>conftest.$ac_ext 11836cat >>conftest.$ac_ext <<_ACEOF 11837/* end confdefs.h. */ 11838 11839int 11840main () 11841{ 11842 11843 ; 11844 return 0; 11845} 11846_ACEOF 11847rm -f conftest.$ac_objext conftest$ac_exeext 11848if { (ac_try="$ac_link" 11849case "(($ac_try" in 11850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11851 *) ac_try_echo=$ac_try;; 11852esac 11853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11854 (eval "$ac_link") 2>conftest.er1 11855 ac_status=$? 11856 grep -v '^ *+' conftest.er1 >conftest.err 11857 rm -f conftest.er1 11858 cat conftest.err >&5 11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11860 (exit $ac_status); } && { 11861 test -z "$ac_cxx_werror_flag" || 11862 test ! -s conftest.err 11863 } && test -s conftest$ac_exeext && 11864 $as_test_x conftest$ac_exeext; then 11865 11866lt_aix_libpath_sed=' 11867 /Import File Strings/,/^$/ { 11868 /^0/ { 11869 s/^0 *\(.*\)$/\1/ 11870 p 11871 } 11872 }' 11873aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11874# Check for a 64-bit object if we didn't find anything. 11875if test -z "$aix_libpath"; then 11876 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11877fi 11878else 11879 echo "$as_me: failed program was:" >&5 11880sed 's/^/| /' conftest.$ac_ext >&5 11881 11882 11883fi 11884 11885rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11886 conftest$ac_exeext conftest.$ac_ext 11887if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11888 11889 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11890 # Warning - without using the other run time loading flags, 11891 # -berok will link without error, but may produce a broken library. 11892 no_undefined_flag_CXX=' ${wl}-bernotok' 11893 allow_undefined_flag_CXX=' ${wl}-berok' 11894 # Exported symbols can be pulled into shared objects from archives 11895 whole_archive_flag_spec_CXX='$convenience' 11896 archive_cmds_need_lc_CXX=yes 11897 # This is similar to how AIX traditionally builds its shared libraries. 11898 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' 11899 fi 11900 fi 11901 ;; 11902 11903 beos*) 11904 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11905 allow_undefined_flag_CXX=unsupported 11906 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11907 # support --undefined. This deserves some investigation. FIXME 11908 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11909 else 11910 ld_shlibs_CXX=no 11911 fi 11912 ;; 11913 11914 chorus*) 11915 case $cc_basename in 11916 *) 11917 # FIXME: insert proper C++ library support 11918 ld_shlibs_CXX=no 11919 ;; 11920 esac 11921 ;; 11922 11923 cygwin* | mingw* | pw32*) 11924 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11925 # as there is no search path for DLLs. 11926 hardcode_libdir_flag_spec_CXX='-L$libdir' 11927 allow_undefined_flag_CXX=unsupported 11928 always_export_symbols_CXX=no 11929 enable_shared_with_static_runtimes_CXX=yes 11930 11931 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11932 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' 11933 # If the export-symbols file already is a .def file (1st line 11934 # is EXPORTS), use it as is; otherwise, prepend... 11935 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11936 cp $export_symbols $output_objdir/$soname.def; 11937 else 11938 echo EXPORTS > $output_objdir/$soname.def; 11939 cat $export_symbols >> $output_objdir/$soname.def; 11940 fi~ 11941 $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' 11942 else 11943 ld_shlibs_CXX=no 11944 fi 11945 ;; 11946 darwin* | rhapsody*) 11947 archive_cmds_need_lc_CXX=no 11948 hardcode_direct_CXX=no 11949 hardcode_automatic_CXX=yes 11950 hardcode_shlibpath_var_CXX=unsupported 11951 whole_archive_flag_spec_CXX='' 11952 link_all_deplibs_CXX=yes 11953 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11954 if test "$GXX" = yes ; then 11955 output_verbose_link_cmd='echo' 11956 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}" 11957 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11958 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}" 11959 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}" 11960 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11961 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}" 11962 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}" 11963 fi 11964 else 11965 case $cc_basename in 11966 xlc*) 11967 output_verbose_link_cmd='echo' 11968 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' 11969 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11970 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11971 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}' 11972 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}' 11973 ;; 11974 *) 11975 ld_shlibs_CXX=no 11976 ;; 11977 esac 11978 fi 11979 ;; 11980 11981 dgux*) 11982 case $cc_basename in 11983 ec++*) 11984 # FIXME: insert proper C++ library support 11985 ld_shlibs_CXX=no 11986 ;; 11987 ghcx*) 11988 # Green Hills C++ Compiler 11989 # FIXME: insert proper C++ library support 11990 ld_shlibs_CXX=no 11991 ;; 11992 *) 11993 # FIXME: insert proper C++ library support 11994 ld_shlibs_CXX=no 11995 ;; 11996 esac 11997 ;; 11998 freebsd[12]*) 11999 # C++ shared libraries reported to be fairly broken before switch to ELF 12000 ld_shlibs_CXX=no 12001 ;; 12002 freebsd-elf*) 12003 archive_cmds_need_lc_CXX=no 12004 ;; 12005 freebsd* | dragonfly*) 12006 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12007 # conventions 12008 ld_shlibs_CXX=yes 12009 ;; 12010 gnu*) 12011 ;; 12012 hpux9*) 12013 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12014 hardcode_libdir_separator_CXX=: 12015 export_dynamic_flag_spec_CXX='${wl}-E' 12016 hardcode_direct_CXX=yes 12017 hardcode_minus_L_CXX=yes # Not in the search PATH, 12018 # but as the default 12019 # location of the library. 12020 12021 case $cc_basename in 12022 CC*) 12023 # FIXME: insert proper C++ library support 12024 ld_shlibs_CXX=no 12025 ;; 12026 aCC*) 12027 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' 12028 # Commands to make compiler produce verbose output that lists 12029 # what "hidden" libraries, object files and flags are used when 12030 # linking a shared library. 12031 # 12032 # There doesn't appear to be a way to prevent this compiler from 12033 # explicitly linking system object files so we need to strip them 12034 # from the output so that they don't get included in the library 12035 # dependencies. 12036 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' 12037 ;; 12038 *) 12039 if test "$GXX" = yes; then 12040 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' 12041 else 12042 # FIXME: insert proper C++ library support 12043 ld_shlibs_CXX=no 12044 fi 12045 ;; 12046 esac 12047 ;; 12048 hpux10*|hpux11*) 12049 if test $with_gnu_ld = no; then 12050 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12051 hardcode_libdir_separator_CXX=: 12052 12053 case $host_cpu in 12054 hppa*64*|ia64*) ;; 12055 *) 12056 export_dynamic_flag_spec_CXX='${wl}-E' 12057 ;; 12058 esac 12059 fi 12060 case $host_cpu in 12061 hppa*64*|ia64*) 12062 hardcode_direct_CXX=no 12063 hardcode_shlibpath_var_CXX=no 12064 ;; 12065 *) 12066 hardcode_direct_CXX=yes 12067 hardcode_minus_L_CXX=yes # Not in the search PATH, 12068 # but as the default 12069 # location of the library. 12070 ;; 12071 esac 12072 12073 case $cc_basename in 12074 CC*) 12075 # FIXME: insert proper C++ library support 12076 ld_shlibs_CXX=no 12077 ;; 12078 aCC*) 12079 case $host_cpu in 12080 hppa*64*) 12081 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12082 ;; 12083 ia64*) 12084 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12085 ;; 12086 *) 12087 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12088 ;; 12089 esac 12090 # Commands to make compiler produce verbose output that lists 12091 # what "hidden" libraries, object files and flags are used when 12092 # linking a shared library. 12093 # 12094 # There doesn't appear to be a way to prevent this compiler from 12095 # explicitly linking system object files so we need to strip them 12096 # from the output so that they don't get included in the library 12097 # dependencies. 12098 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' 12099 ;; 12100 *) 12101 if test "$GXX" = yes; then 12102 if test $with_gnu_ld = no; then 12103 case $host_cpu in 12104 hppa*64*) 12105 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12106 ;; 12107 ia64*) 12108 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12109 ;; 12110 *) 12111 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' 12112 ;; 12113 esac 12114 fi 12115 else 12116 # FIXME: insert proper C++ library support 12117 ld_shlibs_CXX=no 12118 fi 12119 ;; 12120 esac 12121 ;; 12122 interix[3-9]*) 12123 hardcode_direct_CXX=no 12124 hardcode_shlibpath_var_CXX=no 12125 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12126 export_dynamic_flag_spec_CXX='${wl}-E' 12127 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12128 # Instead, shared libraries are loaded at an image base (0x10000000 by 12129 # default) and relocated if they conflict, which is a slow very memory 12130 # consuming and fragmenting process. To avoid this, we pick a random, 12131 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12132 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12133 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' 12134 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' 12135 ;; 12136 irix5* | irix6*) 12137 case $cc_basename in 12138 CC*) 12139 # SGI C++ 12140 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' 12141 12142 # Archives containing C++ object files must be created using 12143 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12144 # necessary to make sure instantiated templates are included 12145 # in the archive. 12146 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12147 ;; 12148 *) 12149 if test "$GXX" = yes; then 12150 if test "$with_gnu_ld" = no; then 12151 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' 12152 else 12153 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' 12154 fi 12155 fi 12156 link_all_deplibs_CXX=yes 12157 ;; 12158 esac 12159 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12160 hardcode_libdir_separator_CXX=: 12161 ;; 12162 linux* | k*bsd*-gnu) 12163 case $cc_basename in 12164 KCC*) 12165 # Kuck and Associates, Inc. (KAI) C++ Compiler 12166 12167 # KCC will only create a shared library if the output file 12168 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12169 # to its proper name (with version) after linking. 12170 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' 12171 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' 12172 # Commands to make compiler produce verbose output that lists 12173 # what "hidden" libraries, object files and flags are used when 12174 # linking a shared library. 12175 # 12176 # There doesn't appear to be a way to prevent this compiler from 12177 # explicitly linking system object files so we need to strip them 12178 # from the output so that they don't get included in the library 12179 # dependencies. 12180 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' 12181 12182 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12183 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12184 12185 # Archives containing C++ object files must be created using 12186 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12187 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12188 ;; 12189 icpc*) 12190 # Intel C++ 12191 with_gnu_ld=yes 12192 # version 8.0 and above of icpc choke on multiply defined symbols 12193 # if we add $predep_objects and $postdep_objects, however 7.1 and 12194 # earlier do not add the objects themselves. 12195 case `$CC -V 2>&1` in 12196 *"Version 7."*) 12197 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12198 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' 12199 ;; 12200 *) # Version 8.0 or newer 12201 tmp_idyn= 12202 case $host_cpu in 12203 ia64*) tmp_idyn=' -i_dynamic';; 12204 esac 12205 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12206 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' 12207 ;; 12208 esac 12209 archive_cmds_need_lc_CXX=no 12210 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12211 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12212 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12213 ;; 12214 pgCC* | pgcpp*) 12215 # Portland Group C++ compiler 12216 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12217 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' 12218 12219 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12220 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12221 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' 12222 ;; 12223 cxx*) 12224 # Compaq C++ 12225 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12226 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' 12227 12228 runpath_var=LD_RUN_PATH 12229 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12230 hardcode_libdir_separator_CXX=: 12231 12232 # Commands to make compiler produce verbose output that lists 12233 # what "hidden" libraries, object files and flags are used when 12234 # linking a shared library. 12235 # 12236 # There doesn't appear to be a way to prevent this compiler from 12237 # explicitly linking system object files so we need to strip them 12238 # from the output so that they don't get included in the library 12239 # dependencies. 12240 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' 12241 ;; 12242 *) 12243 case `$CC -V 2>&1 | sed 5q` in 12244 *Sun\ C*) 12245 # Sun C++ 5.9 12246 no_undefined_flag_CXX=' -zdefs' 12247 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12248 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' 12249 hardcode_libdir_flag_spec_CXX='-R$libdir' 12250 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' 12251 12252 # Not sure whether something based on 12253 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12254 # would be better. 12255 output_verbose_link_cmd='echo' 12256 12257 # Archives containing C++ object files must be created using 12258 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12259 # necessary to make sure instantiated templates are included 12260 # in the archive. 12261 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12262 ;; 12263 esac 12264 ;; 12265 esac 12266 ;; 12267 lynxos*) 12268 # FIXME: insert proper C++ library support 12269 ld_shlibs_CXX=no 12270 ;; 12271 m88k*) 12272 # FIXME: insert proper C++ library support 12273 ld_shlibs_CXX=no 12274 ;; 12275 mvs*) 12276 case $cc_basename in 12277 cxx*) 12278 # FIXME: insert proper C++ library support 12279 ld_shlibs_CXX=no 12280 ;; 12281 *) 12282 # FIXME: insert proper C++ library support 12283 ld_shlibs_CXX=no 12284 ;; 12285 esac 12286 ;; 12287 netbsd* | netbsdelf*-gnu) 12288 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12289 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12290 wlarc= 12291 hardcode_libdir_flag_spec_CXX='-R$libdir' 12292 hardcode_direct_CXX=yes 12293 hardcode_shlibpath_var_CXX=no 12294 fi 12295 # Workaround some broken pre-1.5 toolchains 12296 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12297 ;; 12298 openbsd2*) 12299 # C++ shared libraries are fairly broken 12300 ld_shlibs_CXX=no 12301 ;; 12302 openbsd*) 12303 if test -f /usr/libexec/ld.so; then 12304 hardcode_direct_CXX=yes 12305 hardcode_shlibpath_var_CXX=no 12306 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12307 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12309 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12310 export_dynamic_flag_spec_CXX='${wl}-E' 12311 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12312 fi 12313 output_verbose_link_cmd='echo' 12314 else 12315 ld_shlibs_CXX=no 12316 fi 12317 ;; 12318 osf3*) 12319 case $cc_basename in 12320 KCC*) 12321 # Kuck and Associates, Inc. (KAI) C++ Compiler 12322 12323 # KCC will only create a shared library if the output file 12324 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12325 # to its proper name (with version) after linking. 12326 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' 12327 12328 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12329 hardcode_libdir_separator_CXX=: 12330 12331 # Archives containing C++ object files must be created using 12332 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12333 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12334 12335 ;; 12336 RCC*) 12337 # Rational C++ 2.4.1 12338 # FIXME: insert proper C++ library support 12339 ld_shlibs_CXX=no 12340 ;; 12341 cxx*) 12342 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12343 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' 12344 12345 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12346 hardcode_libdir_separator_CXX=: 12347 12348 # Commands to make compiler produce verbose output that lists 12349 # what "hidden" libraries, object files and flags are used when 12350 # linking a shared library. 12351 # 12352 # There doesn't appear to be a way to prevent this compiler from 12353 # explicitly linking system object files so we need to strip them 12354 # from the output so that they don't get included in the library 12355 # dependencies. 12356 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' 12357 ;; 12358 *) 12359 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12360 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12361 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' 12362 12363 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12364 hardcode_libdir_separator_CXX=: 12365 12366 # Commands to make compiler produce verbose output that lists 12367 # what "hidden" libraries, object files and flags are used when 12368 # linking a shared library. 12369 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12370 12371 else 12372 # FIXME: insert proper C++ library support 12373 ld_shlibs_CXX=no 12374 fi 12375 ;; 12376 esac 12377 ;; 12378 osf4* | osf5*) 12379 case $cc_basename in 12380 KCC*) 12381 # Kuck and Associates, Inc. (KAI) C++ Compiler 12382 12383 # KCC will only create a shared library if the output file 12384 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12385 # to its proper name (with version) after linking. 12386 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' 12387 12388 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12389 hardcode_libdir_separator_CXX=: 12390 12391 # Archives containing C++ object files must be created using 12392 # the KAI C++ compiler. 12393 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12394 ;; 12395 RCC*) 12396 # Rational C++ 2.4.1 12397 # FIXME: insert proper C++ library support 12398 ld_shlibs_CXX=no 12399 ;; 12400 cxx*) 12401 allow_undefined_flag_CXX=' -expect_unresolved \*' 12402 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' 12403 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12404 echo "-hidden">> $lib.exp~ 12405 $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~ 12406 $rm $lib.exp' 12407 12408 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12409 hardcode_libdir_separator_CXX=: 12410 12411 # Commands to make compiler produce verbose output that lists 12412 # what "hidden" libraries, object files and flags are used when 12413 # linking a shared library. 12414 # 12415 # There doesn't appear to be a way to prevent this compiler from 12416 # explicitly linking system object files so we need to strip them 12417 # from the output so that they don't get included in the library 12418 # dependencies. 12419 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' 12420 ;; 12421 *) 12422 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12423 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12424 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' 12425 12426 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12427 hardcode_libdir_separator_CXX=: 12428 12429 # Commands to make compiler produce verbose output that lists 12430 # what "hidden" libraries, object files and flags are used when 12431 # linking a shared library. 12432 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12433 12434 else 12435 # FIXME: insert proper C++ library support 12436 ld_shlibs_CXX=no 12437 fi 12438 ;; 12439 esac 12440 ;; 12441 psos*) 12442 # FIXME: insert proper C++ library support 12443 ld_shlibs_CXX=no 12444 ;; 12445 sunos4*) 12446 case $cc_basename in 12447 CC*) 12448 # Sun C++ 4.x 12449 # FIXME: insert proper C++ library support 12450 ld_shlibs_CXX=no 12451 ;; 12452 lcc*) 12453 # Lucid 12454 # FIXME: insert proper C++ library support 12455 ld_shlibs_CXX=no 12456 ;; 12457 *) 12458 # FIXME: insert proper C++ library support 12459 ld_shlibs_CXX=no 12460 ;; 12461 esac 12462 ;; 12463 solaris*) 12464 case $cc_basename in 12465 CC*) 12466 # Sun C++ 4.2, 5.x and Centerline C++ 12467 archive_cmds_need_lc_CXX=yes 12468 no_undefined_flag_CXX=' -zdefs' 12469 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12470 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12471 $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' 12472 12473 hardcode_libdir_flag_spec_CXX='-R$libdir' 12474 hardcode_shlibpath_var_CXX=no 12475 case $host_os in 12476 solaris2.[0-5] | solaris2.[0-5].*) ;; 12477 *) 12478 # The compiler driver will combine and reorder linker options, 12479 # but understands `-z linker_flag'. 12480 # Supported since Solaris 2.6 (maybe 2.5.1?) 12481 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12482 ;; 12483 esac 12484 link_all_deplibs_CXX=yes 12485 12486 output_verbose_link_cmd='echo' 12487 12488 # Archives containing C++ object files must be created using 12489 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12490 # necessary to make sure instantiated templates are included 12491 # in the archive. 12492 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12493 ;; 12494 gcx*) 12495 # Green Hills C++ Compiler 12496 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12497 12498 # The C++ compiler must be used to create the archive. 12499 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12500 ;; 12501 *) 12502 # GNU C++ compiler with Solaris linker 12503 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12504 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12505 if $CC --version | grep -v '^2\.7' > /dev/null; then 12506 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12507 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12508 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12509 12510 # Commands to make compiler produce verbose output that lists 12511 # what "hidden" libraries, object files and flags are used when 12512 # linking a shared library. 12513 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12514 else 12515 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12516 # platform. 12517 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12518 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12519 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12520 12521 # Commands to make compiler produce verbose output that lists 12522 # what "hidden" libraries, object files and flags are used when 12523 # linking a shared library. 12524 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12525 fi 12526 12527 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12528 case $host_os in 12529 solaris2.[0-5] | solaris2.[0-5].*) ;; 12530 *) 12531 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12532 ;; 12533 esac 12534 fi 12535 ;; 12536 esac 12537 ;; 12538 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12539 no_undefined_flag_CXX='${wl}-z,text' 12540 archive_cmds_need_lc_CXX=no 12541 hardcode_shlibpath_var_CXX=no 12542 runpath_var='LD_RUN_PATH' 12543 12544 case $cc_basename in 12545 CC*) 12546 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12547 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12548 ;; 12549 *) 12550 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12551 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12552 ;; 12553 esac 12554 ;; 12555 sysv5* | sco3.2v5* | sco5v6*) 12556 # Note: We can NOT use -z defs as we might desire, because we do not 12557 # link with -lc, and that would cause any symbols used from libc to 12558 # always be unresolved, which means just about no library would 12559 # ever link correctly. If we're not using GNU ld we use -z text 12560 # though, which does catch some bad symbols but isn't as heavy-handed 12561 # as -z defs. 12562 # For security reasons, it is highly recommended that you always 12563 # use absolute paths for naming shared libraries, and exclude the 12564 # DT_RUNPATH tag from executables and libraries. But doing so 12565 # requires that you compile everything twice, which is a pain. 12566 # So that behaviour is only enabled if SCOABSPATH is set to a 12567 # non-empty value in the environment. Most likely only useful for 12568 # creating official distributions of packages. 12569 # This is a hack until libtool officially supports absolute path 12570 # names for shared libraries. 12571 no_undefined_flag_CXX='${wl}-z,text' 12572 allow_undefined_flag_CXX='${wl}-z,nodefs' 12573 archive_cmds_need_lc_CXX=no 12574 hardcode_shlibpath_var_CXX=no 12575 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12576 hardcode_libdir_separator_CXX=':' 12577 link_all_deplibs_CXX=yes 12578 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12579 runpath_var='LD_RUN_PATH' 12580 12581 case $cc_basename in 12582 CC*) 12583 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12584 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12585 ;; 12586 *) 12587 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12588 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12589 ;; 12590 esac 12591 ;; 12592 tandem*) 12593 case $cc_basename in 12594 NCC*) 12595 # NonStop-UX NCC 3.20 12596 # FIXME: insert proper C++ library support 12597 ld_shlibs_CXX=no 12598 ;; 12599 *) 12600 # FIXME: insert proper C++ library support 12601 ld_shlibs_CXX=no 12602 ;; 12603 esac 12604 ;; 12605 vxworks*) 12606 # FIXME: insert proper C++ library support 12607 ld_shlibs_CXX=no 12608 ;; 12609 *) 12610 # FIXME: insert proper C++ library support 12611 ld_shlibs_CXX=no 12612 ;; 12613esac 12614{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12615echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12616test "$ld_shlibs_CXX" = no && can_build_shared=no 12617 12618GCC_CXX="$GXX" 12619LD_CXX="$LD" 12620 12621cat > conftest.$ac_ext <<EOF 12622class Foo 12623{ 12624public: 12625 Foo (void) { a = 0; } 12626private: 12627 int a; 12628}; 12629EOF 12630 12631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12632 (eval $ac_compile) 2>&5 12633 ac_status=$? 12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12635 (exit $ac_status); }; then 12636 # Parse the compiler output and extract the necessary 12637 # objects, libraries and library flags. 12638 12639 # Sentinel used to keep track of whether or not we are before 12640 # the conftest object file. 12641 pre_test_object_deps_done=no 12642 12643 # The `*' in the case matches for architectures that use `case' in 12644 # $output_verbose_cmd can trigger glob expansion during the loop 12645 # eval without this substitution. 12646 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12647 12648 for p in `eval $output_verbose_link_cmd`; do 12649 case $p in 12650 12651 -L* | -R* | -l*) 12652 # Some compilers place space between "-{L,R}" and the path. 12653 # Remove the space. 12654 if test $p = "-L" \ 12655 || test $p = "-R"; then 12656 prev=$p 12657 continue 12658 else 12659 prev= 12660 fi 12661 12662 if test "$pre_test_object_deps_done" = no; then 12663 case $p in 12664 -L* | -R*) 12665 # Internal compiler library paths should come after those 12666 # provided the user. The postdeps already come after the 12667 # user supplied libs so there is no need to process them. 12668 if test -z "$compiler_lib_search_path_CXX"; then 12669 compiler_lib_search_path_CXX="${prev}${p}" 12670 else 12671 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12672 fi 12673 ;; 12674 # The "-l" case would never come before the object being 12675 # linked, so don't bother handling this case. 12676 esac 12677 else 12678 if test -z "$postdeps_CXX"; then 12679 postdeps_CXX="${prev}${p}" 12680 else 12681 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12682 fi 12683 fi 12684 ;; 12685 12686 *.$objext) 12687 # This assumes that the test object file only shows up 12688 # once in the compiler output. 12689 if test "$p" = "conftest.$objext"; then 12690 pre_test_object_deps_done=yes 12691 continue 12692 fi 12693 12694 if test "$pre_test_object_deps_done" = no; then 12695 if test -z "$predep_objects_CXX"; then 12696 predep_objects_CXX="$p" 12697 else 12698 predep_objects_CXX="$predep_objects_CXX $p" 12699 fi 12700 else 12701 if test -z "$postdep_objects_CXX"; then 12702 postdep_objects_CXX="$p" 12703 else 12704 postdep_objects_CXX="$postdep_objects_CXX $p" 12705 fi 12706 fi 12707 ;; 12708 12709 *) ;; # Ignore the rest. 12710 12711 esac 12712 done 12713 12714 # Clean up. 12715 rm -f a.out a.exe 12716else 12717 echo "libtool.m4: error: problem compiling CXX test program" 12718fi 12719 12720$rm -f confest.$objext 12721 12722compiler_lib_search_dirs_CXX= 12723if test -n "$compiler_lib_search_path_CXX"; then 12724 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12725fi 12726 12727# PORTME: override above test on systems where it is broken 12728case $host_os in 12729interix[3-9]*) 12730 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12731 # hack all around it, let's just trust "g++" to DTRT. 12732 predep_objects_CXX= 12733 postdep_objects_CXX= 12734 postdeps_CXX= 12735 ;; 12736 12737linux*) 12738 case `$CC -V 2>&1 | sed 5q` in 12739 *Sun\ C*) 12740 # Sun C++ 5.9 12741 # 12742 # The more standards-conforming stlport4 library is 12743 # incompatible with the Cstd library. Avoid specifying 12744 # it if it's in CXXFLAGS. Ignore libCrun as 12745 # -library=stlport4 depends on it. 12746 case " $CXX $CXXFLAGS " in 12747 *" -library=stlport4 "*) 12748 solaris_use_stlport4=yes 12749 ;; 12750 esac 12751 if test "$solaris_use_stlport4" != yes; then 12752 postdeps_CXX='-library=Cstd -library=Crun' 12753 fi 12754 ;; 12755 esac 12756 ;; 12757 12758solaris*) 12759 case $cc_basename in 12760 CC*) 12761 # The more standards-conforming stlport4 library is 12762 # incompatible with the Cstd library. Avoid specifying 12763 # it if it's in CXXFLAGS. Ignore libCrun as 12764 # -library=stlport4 depends on it. 12765 case " $CXX $CXXFLAGS " in 12766 *" -library=stlport4 "*) 12767 solaris_use_stlport4=yes 12768 ;; 12769 esac 12770 12771 # Adding this requires a known-good setup of shared libraries for 12772 # Sun compiler versions before 5.6, else PIC objects from an old 12773 # archive will be linked into the output, leading to subtle bugs. 12774 if test "$solaris_use_stlport4" != yes; then 12775 postdeps_CXX='-library=Cstd -library=Crun' 12776 fi 12777 ;; 12778 esac 12779 ;; 12780esac 12781 12782case " $postdeps_CXX " in 12783*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12784esac 12785 12786lt_prog_compiler_wl_CXX= 12787lt_prog_compiler_pic_CXX= 12788lt_prog_compiler_static_CXX= 12789 12790{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12791echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12792 12793 # C++ specific cases for pic, static, wl, etc. 12794 if test "$GXX" = yes; then 12795 lt_prog_compiler_wl_CXX='-Wl,' 12796 lt_prog_compiler_static_CXX='-static' 12797 12798 case $host_os in 12799 aix*) 12800 # All AIX code is PIC. 12801 if test "$host_cpu" = ia64; then 12802 # AIX 5 now supports IA64 processor 12803 lt_prog_compiler_static_CXX='-Bstatic' 12804 fi 12805 ;; 12806 amigaos*) 12807 # FIXME: we need at least 68020 code to build shared libraries, but 12808 # adding the `-m68020' flag to GCC prevents building anything better, 12809 # like `-m68040'. 12810 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12811 ;; 12812 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12813 # PIC is the default for these OSes. 12814 ;; 12815 mingw* | cygwin* | os2* | pw32*) 12816 # This hack is so that the source file can tell whether it is being 12817 # built for inclusion in a dll (and should export symbols for example). 12818 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12819 # (--disable-auto-import) libraries 12820 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12821 ;; 12822 darwin* | rhapsody*) 12823 # PIC is the default on this platform 12824 # Common symbols not allowed in MH_DYLIB files 12825 lt_prog_compiler_pic_CXX='-fno-common' 12826 ;; 12827 *djgpp*) 12828 # DJGPP does not support shared libraries at all 12829 lt_prog_compiler_pic_CXX= 12830 ;; 12831 interix[3-9]*) 12832 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12833 # Instead, we relocate shared libraries at runtime. 12834 ;; 12835 sysv4*MP*) 12836 if test -d /usr/nec; then 12837 lt_prog_compiler_pic_CXX=-Kconform_pic 12838 fi 12839 ;; 12840 hpux*) 12841 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12842 # not for PA HP-UX. 12843 case $host_cpu in 12844 hppa*64*|ia64*) 12845 ;; 12846 *) 12847 lt_prog_compiler_pic_CXX='-fPIC' 12848 ;; 12849 esac 12850 ;; 12851 *) 12852 lt_prog_compiler_pic_CXX='-fPIC' 12853 ;; 12854 esac 12855 else 12856 case $host_os in 12857 aix[4-9]*) 12858 # All AIX code is PIC. 12859 if test "$host_cpu" = ia64; then 12860 # AIX 5 now supports IA64 processor 12861 lt_prog_compiler_static_CXX='-Bstatic' 12862 else 12863 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12864 fi 12865 ;; 12866 chorus*) 12867 case $cc_basename in 12868 cxch68*) 12869 # Green Hills C++ Compiler 12870 # _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" 12871 ;; 12872 esac 12873 ;; 12874 darwin*) 12875 # PIC is the default on this platform 12876 # Common symbols not allowed in MH_DYLIB files 12877 case $cc_basename in 12878 xlc*) 12879 lt_prog_compiler_pic_CXX='-qnocommon' 12880 lt_prog_compiler_wl_CXX='-Wl,' 12881 ;; 12882 esac 12883 ;; 12884 dgux*) 12885 case $cc_basename in 12886 ec++*) 12887 lt_prog_compiler_pic_CXX='-KPIC' 12888 ;; 12889 ghcx*) 12890 # Green Hills C++ Compiler 12891 lt_prog_compiler_pic_CXX='-pic' 12892 ;; 12893 *) 12894 ;; 12895 esac 12896 ;; 12897 freebsd* | dragonfly*) 12898 # FreeBSD uses GNU C++ 12899 ;; 12900 hpux9* | hpux10* | hpux11*) 12901 case $cc_basename in 12902 CC*) 12903 lt_prog_compiler_wl_CXX='-Wl,' 12904 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12905 if test "$host_cpu" != ia64; then 12906 lt_prog_compiler_pic_CXX='+Z' 12907 fi 12908 ;; 12909 aCC*) 12910 lt_prog_compiler_wl_CXX='-Wl,' 12911 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12912 case $host_cpu in 12913 hppa*64*|ia64*) 12914 # +Z the default 12915 ;; 12916 *) 12917 lt_prog_compiler_pic_CXX='+Z' 12918 ;; 12919 esac 12920 ;; 12921 *) 12922 ;; 12923 esac 12924 ;; 12925 interix*) 12926 # This is c89, which is MS Visual C++ (no shared libs) 12927 # Anyone wants to do a port? 12928 ;; 12929 irix5* | irix6* | nonstopux*) 12930 case $cc_basename in 12931 CC*) 12932 lt_prog_compiler_wl_CXX='-Wl,' 12933 lt_prog_compiler_static_CXX='-non_shared' 12934 # CC pic flag -KPIC is the default. 12935 ;; 12936 *) 12937 ;; 12938 esac 12939 ;; 12940 linux* | k*bsd*-gnu) 12941 case $cc_basename in 12942 KCC*) 12943 # KAI C++ Compiler 12944 lt_prog_compiler_wl_CXX='--backend -Wl,' 12945 lt_prog_compiler_pic_CXX='-fPIC' 12946 ;; 12947 icpc* | ecpc*) 12948 # Intel C++ 12949 lt_prog_compiler_wl_CXX='-Wl,' 12950 lt_prog_compiler_pic_CXX='-KPIC' 12951 lt_prog_compiler_static_CXX='-static' 12952 ;; 12953 pgCC* | pgcpp*) 12954 # Portland Group C++ compiler. 12955 lt_prog_compiler_wl_CXX='-Wl,' 12956 lt_prog_compiler_pic_CXX='-fpic' 12957 lt_prog_compiler_static_CXX='-Bstatic' 12958 ;; 12959 cxx*) 12960 # Compaq C++ 12961 # Make sure the PIC flag is empty. It appears that all Alpha 12962 # Linux and Compaq Tru64 Unix objects are PIC. 12963 lt_prog_compiler_pic_CXX= 12964 lt_prog_compiler_static_CXX='-non_shared' 12965 ;; 12966 *) 12967 case `$CC -V 2>&1 | sed 5q` in 12968 *Sun\ C*) 12969 # Sun C++ 5.9 12970 lt_prog_compiler_pic_CXX='-KPIC' 12971 lt_prog_compiler_static_CXX='-Bstatic' 12972 lt_prog_compiler_wl_CXX='-Qoption ld ' 12973 ;; 12974 esac 12975 ;; 12976 esac 12977 ;; 12978 lynxos*) 12979 ;; 12980 m88k*) 12981 ;; 12982 mvs*) 12983 case $cc_basename in 12984 cxx*) 12985 lt_prog_compiler_pic_CXX='-W c,exportall' 12986 ;; 12987 *) 12988 ;; 12989 esac 12990 ;; 12991 netbsd* | netbsdelf*-gnu) 12992 ;; 12993 osf3* | osf4* | osf5*) 12994 case $cc_basename in 12995 KCC*) 12996 lt_prog_compiler_wl_CXX='--backend -Wl,' 12997 ;; 12998 RCC*) 12999 # Rational C++ 2.4.1 13000 lt_prog_compiler_pic_CXX='-pic' 13001 ;; 13002 cxx*) 13003 # Digital/Compaq C++ 13004 lt_prog_compiler_wl_CXX='-Wl,' 13005 # Make sure the PIC flag is empty. It appears that all Alpha 13006 # Linux and Compaq Tru64 Unix objects are PIC. 13007 lt_prog_compiler_pic_CXX= 13008 lt_prog_compiler_static_CXX='-non_shared' 13009 ;; 13010 *) 13011 ;; 13012 esac 13013 ;; 13014 psos*) 13015 ;; 13016 solaris*) 13017 case $cc_basename in 13018 CC*) 13019 # Sun C++ 4.2, 5.x and Centerline C++ 13020 lt_prog_compiler_pic_CXX='-KPIC' 13021 lt_prog_compiler_static_CXX='-Bstatic' 13022 lt_prog_compiler_wl_CXX='-Qoption ld ' 13023 ;; 13024 gcx*) 13025 # Green Hills C++ Compiler 13026 lt_prog_compiler_pic_CXX='-PIC' 13027 ;; 13028 *) 13029 ;; 13030 esac 13031 ;; 13032 sunos4*) 13033 case $cc_basename in 13034 CC*) 13035 # Sun C++ 4.x 13036 lt_prog_compiler_pic_CXX='-pic' 13037 lt_prog_compiler_static_CXX='-Bstatic' 13038 ;; 13039 lcc*) 13040 # Lucid 13041 lt_prog_compiler_pic_CXX='-pic' 13042 ;; 13043 *) 13044 ;; 13045 esac 13046 ;; 13047 tandem*) 13048 case $cc_basename in 13049 NCC*) 13050 # NonStop-UX NCC 3.20 13051 lt_prog_compiler_pic_CXX='-KPIC' 13052 ;; 13053 *) 13054 ;; 13055 esac 13056 ;; 13057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13058 case $cc_basename in 13059 CC*) 13060 lt_prog_compiler_wl_CXX='-Wl,' 13061 lt_prog_compiler_pic_CXX='-KPIC' 13062 lt_prog_compiler_static_CXX='-Bstatic' 13063 ;; 13064 esac 13065 ;; 13066 vxworks*) 13067 ;; 13068 *) 13069 lt_prog_compiler_can_build_shared_CXX=no 13070 ;; 13071 esac 13072 fi 13073 13074{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13075echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 13076 13077# 13078# Check to make sure the PIC flag actually works. 13079# 13080if test -n "$lt_prog_compiler_pic_CXX"; then 13081 13082{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13083echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 13084if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 13085 echo $ECHO_N "(cached) $ECHO_C" >&6 13086else 13087 lt_cv_prog_compiler_pic_works_CXX=no 13088 ac_outfile=conftest.$ac_objext 13089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13090 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13091 # Insert the option either (1) after the last *FLAGS variable, or 13092 # (2) before a word containing "conftest.", or (3) at the end. 13093 # Note that $ac_compile itself does not contain backslashes and begins 13094 # with a dollar sign (not a hyphen), so the echo should work correctly. 13095 # The option is referenced via a variable to avoid confusing sed. 13096 lt_compile=`echo "$ac_compile" | $SED \ 13097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13099 -e 's:$: $lt_compiler_flag:'` 13100 (eval echo "\"\$as_me:13100: $lt_compile\"" >&5) 13101 (eval "$lt_compile" 2>conftest.err) 13102 ac_status=$? 13103 cat conftest.err >&5 13104 echo "$as_me:13104: \$? = $ac_status" >&5 13105 if (exit $ac_status) && test -s "$ac_outfile"; then 13106 # The compiler can only warn and ignore the option if not recognized 13107 # So say no if there are warnings other than the usual output. 13108 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13111 lt_cv_prog_compiler_pic_works_CXX=yes 13112 fi 13113 fi 13114 $rm conftest* 13115 13116fi 13117{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13118echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13119 13120if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13121 case $lt_prog_compiler_pic_CXX in 13122 "" | " "*) ;; 13123 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13124 esac 13125else 13126 lt_prog_compiler_pic_CXX= 13127 lt_prog_compiler_can_build_shared_CXX=no 13128fi 13129 13130fi 13131case $host_os in 13132 # For platforms which do not support PIC, -DPIC is meaningless: 13133 *djgpp*) 13134 lt_prog_compiler_pic_CXX= 13135 ;; 13136 *) 13137 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13138 ;; 13139esac 13140 13141# 13142# Check to make sure the static flag actually works. 13143# 13144wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13145{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13146echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13147if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 13148 echo $ECHO_N "(cached) $ECHO_C" >&6 13149else 13150 lt_cv_prog_compiler_static_works_CXX=no 13151 save_LDFLAGS="$LDFLAGS" 13152 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13153 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13154 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13155 # The linker can only warn and ignore the option if not recognized 13156 # So say no if there are warnings 13157 if test -s conftest.err; then 13158 # Append any errors to the config.log. 13159 cat conftest.err 1>&5 13160 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13162 if diff conftest.exp conftest.er2 >/dev/null; then 13163 lt_cv_prog_compiler_static_works_CXX=yes 13164 fi 13165 else 13166 lt_cv_prog_compiler_static_works_CXX=yes 13167 fi 13168 fi 13169 $rm -r conftest* 13170 LDFLAGS="$save_LDFLAGS" 13171 13172fi 13173{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13174echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } 13175 13176if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13177 : 13178else 13179 lt_prog_compiler_static_CXX= 13180fi 13181 13182 13183{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13184echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 13185if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13186 echo $ECHO_N "(cached) $ECHO_C" >&6 13187else 13188 lt_cv_prog_compiler_c_o_CXX=no 13189 $rm -r conftest 2>/dev/null 13190 mkdir conftest 13191 cd conftest 13192 mkdir out 13193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13194 13195 lt_compiler_flag="-o out/conftest2.$ac_objext" 13196 # Insert the option either (1) after the last *FLAGS variable, or 13197 # (2) before a word containing "conftest.", or (3) at the end. 13198 # Note that $ac_compile itself does not contain backslashes and begins 13199 # with a dollar sign (not a hyphen), so the echo should work correctly. 13200 lt_compile=`echo "$ac_compile" | $SED \ 13201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13203 -e 's:$: $lt_compiler_flag:'` 13204 (eval echo "\"\$as_me:13204: $lt_compile\"" >&5) 13205 (eval "$lt_compile" 2>out/conftest.err) 13206 ac_status=$? 13207 cat out/conftest.err >&5 13208 echo "$as_me:13208: \$? = $ac_status" >&5 13209 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13210 then 13211 # The compiler can only warn and ignore the option if not recognized 13212 # So say no if there are warnings 13213 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13214 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13215 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13216 lt_cv_prog_compiler_c_o_CXX=yes 13217 fi 13218 fi 13219 chmod u+w . 2>&5 13220 $rm conftest* 13221 # SGI C++ compiler will create directory out/ii_files/ for 13222 # template instantiation 13223 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13224 $rm out/* && rmdir out 13225 cd .. 13226 rmdir conftest 13227 $rm conftest* 13228 13229fi 13230{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13231echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 13232 13233 13234hard_links="nottested" 13235if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13236 # do not overwrite the value of need_locks provided by the user 13237 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13238echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 13239 hard_links=yes 13240 $rm conftest* 13241 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13242 touch conftest.a 13243 ln conftest.a conftest.b 2>&5 || hard_links=no 13244 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13245 { echo "$as_me:$LINENO: result: $hard_links" >&5 13246echo "${ECHO_T}$hard_links" >&6; } 13247 if test "$hard_links" = no; then 13248 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13249echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13250 need_locks=warn 13251 fi 13252else 13253 need_locks=no 13254fi 13255 13256{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13257echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 13258 13259 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13260 case $host_os in 13261 aix[4-9]*) 13262 # If we're using GNU nm, then we don't want the "-C" option. 13263 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13264 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13265 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' 13266 else 13267 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' 13268 fi 13269 ;; 13270 pw32*) 13271 export_symbols_cmds_CXX="$ltdll_cmds" 13272 ;; 13273 cygwin* | mingw*) 13274 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' 13275 ;; 13276 linux* | k*bsd*-gnu) 13277 link_all_deplibs_CXX=no 13278 ;; 13279 *) 13280 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13281 ;; 13282 esac 13283 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13284 13285{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13286echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 13287test "$ld_shlibs_CXX" = no && can_build_shared=no 13288 13289# 13290# Do we need to explicitly link libc? 13291# 13292case "x$archive_cmds_need_lc_CXX" in 13293x|xyes) 13294 # Assume -lc should be added 13295 archive_cmds_need_lc_CXX=yes 13296 13297 if test "$enable_shared" = yes && test "$GCC" = yes; then 13298 case $archive_cmds_CXX in 13299 *'~'*) 13300 # FIXME: we may have to deal with multi-command sequences. 13301 ;; 13302 '$CC '*) 13303 # Test whether the compiler implicitly links with -lc since on some 13304 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13305 # to ld, don't add -lc before -lgcc. 13306 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13307echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 13308 $rm conftest* 13309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13310 13311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13312 (eval $ac_compile) 2>&5 13313 ac_status=$? 13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13315 (exit $ac_status); } 2>conftest.err; then 13316 soname=conftest 13317 lib=conftest 13318 libobjs=conftest.$ac_objext 13319 deplibs= 13320 wl=$lt_prog_compiler_wl_CXX 13321 pic_flag=$lt_prog_compiler_pic_CXX 13322 compiler_flags=-v 13323 linker_flags=-v 13324 verstring= 13325 output_objdir=. 13326 libname=conftest 13327 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13328 allow_undefined_flag_CXX= 13329 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13330 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13331 ac_status=$? 13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13333 (exit $ac_status); } 13334 then 13335 archive_cmds_need_lc_CXX=no 13336 else 13337 archive_cmds_need_lc_CXX=yes 13338 fi 13339 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13340 else 13341 cat conftest.err 1>&5 13342 fi 13343 $rm conftest* 13344 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13345echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 13346 ;; 13347 esac 13348 fi 13349 ;; 13350esac 13351 13352{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13353echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 13354library_names_spec= 13355libname_spec='lib$name' 13356soname_spec= 13357shrext_cmds=".so" 13358postinstall_cmds= 13359postuninstall_cmds= 13360finish_cmds= 13361finish_eval= 13362shlibpath_var= 13363shlibpath_overrides_runpath=unknown 13364version_type=none 13365dynamic_linker="$host_os ld.so" 13366sys_lib_dlsearch_path_spec="/lib /usr/lib" 13367 13368need_lib_prefix=unknown 13369hardcode_into_libs=no 13370 13371# when you set need_version to no, make sure it does not cause -set_version 13372# flags to be left without arguments 13373need_version=unknown 13374 13375case $host_os in 13376aix3*) 13377 version_type=linux 13378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13379 shlibpath_var=LIBPATH 13380 13381 # AIX 3 has no versioning support, so we append a major version to the name. 13382 soname_spec='${libname}${release}${shared_ext}$major' 13383 ;; 13384 13385aix[4-9]*) 13386 version_type=linux 13387 need_lib_prefix=no 13388 need_version=no 13389 hardcode_into_libs=yes 13390 if test "$host_cpu" = ia64; then 13391 # AIX 5 supports IA64 13392 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13393 shlibpath_var=LD_LIBRARY_PATH 13394 else 13395 # With GCC up to 2.95.x, collect2 would create an import file 13396 # for dependence libraries. The import file would start with 13397 # the line `#! .'. This would cause the generated library to 13398 # depend on `.', always an invalid library. This was fixed in 13399 # development snapshots of GCC prior to 3.0. 13400 case $host_os in 13401 aix4 | aix4.[01] | aix4.[01].*) 13402 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13403 echo ' yes ' 13404 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13405 : 13406 else 13407 can_build_shared=no 13408 fi 13409 ;; 13410 esac 13411 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13412 # soname into executable. Probably we can add versioning support to 13413 # collect2, so additional links can be useful in future. 13414 if test "$aix_use_runtimelinking" = yes; then 13415 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13416 # instead of lib<name>.a to let people know that these are not 13417 # typical AIX shared libraries. 13418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13419 else 13420 # We preserve .a as extension for shared libraries through AIX4.2 13421 # and later when we are not doing run time linking. 13422 library_names_spec='${libname}${release}.a $libname.a' 13423 soname_spec='${libname}${release}${shared_ext}$major' 13424 fi 13425 shlibpath_var=LIBPATH 13426 fi 13427 ;; 13428 13429amigaos*) 13430 library_names_spec='$libname.ixlibrary $libname.a' 13431 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13432 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' 13433 ;; 13434 13435beos*) 13436 library_names_spec='${libname}${shared_ext}' 13437 dynamic_linker="$host_os ld.so" 13438 shlibpath_var=LIBRARY_PATH 13439 ;; 13440 13441bsdi[45]*) 13442 version_type=linux 13443 need_version=no 13444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13445 soname_spec='${libname}${release}${shared_ext}$major' 13446 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13447 shlibpath_var=LD_LIBRARY_PATH 13448 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13449 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13450 # the default ld.so.conf also contains /usr/contrib/lib and 13451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13452 # libtool to hard-code these into programs 13453 ;; 13454 13455cygwin* | mingw* | pw32*) 13456 version_type=windows 13457 shrext_cmds=".dll" 13458 need_version=no 13459 need_lib_prefix=no 13460 13461 case $GCC,$host_os in 13462 yes,cygwin* | yes,mingw* | yes,pw32*) 13463 library_names_spec='$libname.dll.a' 13464 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13465 postinstall_cmds='base_file=`basename \${file}`~ 13466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13467 dldir=$destdir/`dirname \$dlpath`~ 13468 test -d \$dldir || mkdir -p \$dldir~ 13469 $install_prog $dir/$dlname \$dldir/$dlname~ 13470 chmod a+x \$dldir/$dlname' 13471 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13472 dlpath=$dir/\$dldll~ 13473 $rm \$dlpath' 13474 shlibpath_overrides_runpath=yes 13475 13476 case $host_os in 13477 cygwin*) 13478 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13479 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13480 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13481 ;; 13482 mingw*) 13483 # MinGW DLLs use traditional 'lib' prefix 13484 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13485 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13486 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13487 # It is most probably a Windows format PATH printed by 13488 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13489 # path with ; separators, and with drive letters. We can handle the 13490 # drive letters (cygwin fileutils understands them), so leave them, 13491 # especially as we might pass files found there to a mingw objdump, 13492 # which wouldn't understand a cygwinified path. Ahh. 13493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13494 else 13495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13496 fi 13497 ;; 13498 pw32*) 13499 # pw32 DLLs use 'pw' prefix rather than 'lib' 13500 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13501 ;; 13502 esac 13503 ;; 13504 13505 *) 13506 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13507 ;; 13508 esac 13509 dynamic_linker='Win32 ld.exe' 13510 # FIXME: first we should search . and the directory the executable is in 13511 shlibpath_var=PATH 13512 ;; 13513 13514darwin* | rhapsody*) 13515 dynamic_linker="$host_os dyld" 13516 version_type=darwin 13517 need_lib_prefix=no 13518 need_version=no 13519 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13520 soname_spec='${libname}${release}${major}$shared_ext' 13521 shlibpath_overrides_runpath=yes 13522 shlibpath_var=DYLD_LIBRARY_PATH 13523 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13524 13525 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13526 ;; 13527 13528dgux*) 13529 version_type=linux 13530 need_lib_prefix=no 13531 need_version=no 13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13533 soname_spec='${libname}${release}${shared_ext}$major' 13534 shlibpath_var=LD_LIBRARY_PATH 13535 ;; 13536 13537freebsd1*) 13538 dynamic_linker=no 13539 ;; 13540 13541freebsd* | dragonfly*) 13542 # DragonFly does not have aout. When/if they implement a new 13543 # versioning mechanism, adjust this. 13544 if test -x /usr/bin/objformat; then 13545 objformat=`/usr/bin/objformat` 13546 else 13547 case $host_os in 13548 freebsd[123]*) objformat=aout ;; 13549 *) objformat=elf ;; 13550 esac 13551 fi 13552 version_type=freebsd-$objformat 13553 case $version_type in 13554 freebsd-elf*) 13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13556 need_version=no 13557 need_lib_prefix=no 13558 ;; 13559 freebsd-*) 13560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13561 need_version=yes 13562 ;; 13563 esac 13564 shlibpath_var=LD_LIBRARY_PATH 13565 case $host_os in 13566 freebsd2*) 13567 shlibpath_overrides_runpath=yes 13568 ;; 13569 freebsd3.[01]* | freebsdelf3.[01]*) 13570 shlibpath_overrides_runpath=yes 13571 hardcode_into_libs=yes 13572 ;; 13573 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13574 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13575 shlibpath_overrides_runpath=no 13576 hardcode_into_libs=yes 13577 ;; 13578 *) # from 4.6 on, and DragonFly 13579 shlibpath_overrides_runpath=yes 13580 hardcode_into_libs=yes 13581 ;; 13582 esac 13583 ;; 13584 13585gnu*) 13586 version_type=linux 13587 need_lib_prefix=no 13588 need_version=no 13589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13590 soname_spec='${libname}${release}${shared_ext}$major' 13591 shlibpath_var=LD_LIBRARY_PATH 13592 hardcode_into_libs=yes 13593 ;; 13594 13595hpux9* | hpux10* | hpux11*) 13596 # Give a soname corresponding to the major version so that dld.sl refuses to 13597 # link against other versions. 13598 version_type=sunos 13599 need_lib_prefix=no 13600 need_version=no 13601 case $host_cpu in 13602 ia64*) 13603 shrext_cmds='.so' 13604 hardcode_into_libs=yes 13605 dynamic_linker="$host_os dld.so" 13606 shlibpath_var=LD_LIBRARY_PATH 13607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13609 soname_spec='${libname}${release}${shared_ext}$major' 13610 if test "X$HPUX_IA64_MODE" = X32; then 13611 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13612 else 13613 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13614 fi 13615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13616 ;; 13617 hppa*64*) 13618 shrext_cmds='.sl' 13619 hardcode_into_libs=yes 13620 dynamic_linker="$host_os dld.sl" 13621 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13624 soname_spec='${libname}${release}${shared_ext}$major' 13625 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13627 ;; 13628 *) 13629 shrext_cmds='.sl' 13630 dynamic_linker="$host_os dld.sl" 13631 shlibpath_var=SHLIB_PATH 13632 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13634 soname_spec='${libname}${release}${shared_ext}$major' 13635 ;; 13636 esac 13637 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13638 postinstall_cmds='chmod 555 $lib' 13639 ;; 13640 13641interix[3-9]*) 13642 version_type=linux 13643 need_lib_prefix=no 13644 need_version=no 13645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13646 soname_spec='${libname}${release}${shared_ext}$major' 13647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13648 shlibpath_var=LD_LIBRARY_PATH 13649 shlibpath_overrides_runpath=no 13650 hardcode_into_libs=yes 13651 ;; 13652 13653irix5* | irix6* | nonstopux*) 13654 case $host_os in 13655 nonstopux*) version_type=nonstopux ;; 13656 *) 13657 if test "$lt_cv_prog_gnu_ld" = yes; then 13658 version_type=linux 13659 else 13660 version_type=irix 13661 fi ;; 13662 esac 13663 need_lib_prefix=no 13664 need_version=no 13665 soname_spec='${libname}${release}${shared_ext}$major' 13666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13667 case $host_os in 13668 irix5* | nonstopux*) 13669 libsuff= shlibsuff= 13670 ;; 13671 *) 13672 case $LD in # libtool.m4 will add one of these switches to LD 13673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13674 libsuff= shlibsuff= libmagic=32-bit;; 13675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13676 libsuff=32 shlibsuff=N32 libmagic=N32;; 13677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13678 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13679 *) libsuff= shlibsuff= libmagic=never-match;; 13680 esac 13681 ;; 13682 esac 13683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13684 shlibpath_overrides_runpath=no 13685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13687 hardcode_into_libs=yes 13688 ;; 13689 13690# No shared lib support for Linux oldld, aout, or coff. 13691linux*oldld* | linux*aout* | linux*coff*) 13692 dynamic_linker=no 13693 ;; 13694 13695# This must be Linux ELF. 13696linux* | k*bsd*-gnu) 13697 version_type=linux 13698 need_lib_prefix=no 13699 need_version=no 13700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13701 soname_spec='${libname}${release}${shared_ext}$major' 13702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13703 shlibpath_var=LD_LIBRARY_PATH 13704 shlibpath_overrides_runpath=no 13705 # This implies no fast_install, which is unacceptable. 13706 # Some rework will be needed to allow for fast_install 13707 # before this can be enabled. 13708 hardcode_into_libs=yes 13709 13710 # Append ld.so.conf contents to the search path 13711 if test -f /etc/ld.so.conf; then 13712 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' ' '` 13713 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13714 fi 13715 13716 # We used to test for /lib/ld.so.1 and disable shared libraries on 13717 # powerpc, because MkLinux only supported shared libraries with the 13718 # GNU dynamic linker. Since this was broken with cross compilers, 13719 # most powerpc-linux boxes support dynamic linking these days and 13720 # people can always --disable-shared, the test was removed, and we 13721 # assume the GNU/Linux dynamic linker is in use. 13722 dynamic_linker='GNU/Linux ld.so' 13723 ;; 13724 13725netbsdelf*-gnu) 13726 version_type=linux 13727 need_lib_prefix=no 13728 need_version=no 13729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13730 soname_spec='${libname}${release}${shared_ext}$major' 13731 shlibpath_var=LD_LIBRARY_PATH 13732 shlibpath_overrides_runpath=no 13733 hardcode_into_libs=yes 13734 dynamic_linker='NetBSD ld.elf_so' 13735 ;; 13736 13737netbsd*) 13738 version_type=sunos 13739 need_lib_prefix=no 13740 need_version=no 13741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13744 dynamic_linker='NetBSD (a.out) ld.so' 13745 else 13746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13747 soname_spec='${libname}${release}${shared_ext}$major' 13748 dynamic_linker='NetBSD ld.elf_so' 13749 fi 13750 shlibpath_var=LD_LIBRARY_PATH 13751 shlibpath_overrides_runpath=yes 13752 hardcode_into_libs=yes 13753 ;; 13754 13755newsos6) 13756 version_type=linux 13757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13758 shlibpath_var=LD_LIBRARY_PATH 13759 shlibpath_overrides_runpath=yes 13760 ;; 13761 13762nto-qnx*) 13763 version_type=linux 13764 need_lib_prefix=no 13765 need_version=no 13766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13767 soname_spec='${libname}${release}${shared_ext}$major' 13768 shlibpath_var=LD_LIBRARY_PATH 13769 shlibpath_overrides_runpath=yes 13770 ;; 13771 13772openbsd*) 13773 version_type=sunos 13774 sys_lib_dlsearch_path_spec="/usr/lib" 13775 need_lib_prefix=no 13776 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13777 case $host_os in 13778 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13779 *) need_version=no ;; 13780 esac 13781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13783 shlibpath_var=LD_LIBRARY_PATH 13784 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13785 case $host_os in 13786 openbsd2.[89] | openbsd2.[89].*) 13787 shlibpath_overrides_runpath=no 13788 ;; 13789 *) 13790 shlibpath_overrides_runpath=yes 13791 ;; 13792 esac 13793 else 13794 shlibpath_overrides_runpath=yes 13795 fi 13796 ;; 13797 13798os2*) 13799 libname_spec='$name' 13800 shrext_cmds=".dll" 13801 need_lib_prefix=no 13802 library_names_spec='$libname${shared_ext} $libname.a' 13803 dynamic_linker='OS/2 ld.exe' 13804 shlibpath_var=LIBPATH 13805 ;; 13806 13807osf3* | osf4* | osf5*) 13808 version_type=osf 13809 need_lib_prefix=no 13810 need_version=no 13811 soname_spec='${libname}${release}${shared_ext}$major' 13812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13813 shlibpath_var=LD_LIBRARY_PATH 13814 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13815 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13816 ;; 13817 13818rdos*) 13819 dynamic_linker=no 13820 ;; 13821 13822solaris*) 13823 version_type=linux 13824 need_lib_prefix=no 13825 need_version=no 13826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13827 soname_spec='${libname}${release}${shared_ext}$major' 13828 shlibpath_var=LD_LIBRARY_PATH 13829 shlibpath_overrides_runpath=yes 13830 hardcode_into_libs=yes 13831 # ldd complains unless libraries are executable 13832 postinstall_cmds='chmod +x $lib' 13833 ;; 13834 13835sunos4*) 13836 version_type=sunos 13837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13838 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13839 shlibpath_var=LD_LIBRARY_PATH 13840 shlibpath_overrides_runpath=yes 13841 if test "$with_gnu_ld" = yes; then 13842 need_lib_prefix=no 13843 fi 13844 need_version=yes 13845 ;; 13846 13847sysv4 | sysv4.3*) 13848 version_type=linux 13849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13850 soname_spec='${libname}${release}${shared_ext}$major' 13851 shlibpath_var=LD_LIBRARY_PATH 13852 case $host_vendor in 13853 sni) 13854 shlibpath_overrides_runpath=no 13855 need_lib_prefix=no 13856 export_dynamic_flag_spec='${wl}-Blargedynsym' 13857 runpath_var=LD_RUN_PATH 13858 ;; 13859 siemens) 13860 need_lib_prefix=no 13861 ;; 13862 motorola) 13863 need_lib_prefix=no 13864 need_version=no 13865 shlibpath_overrides_runpath=no 13866 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13867 ;; 13868 esac 13869 ;; 13870 13871sysv4*MP*) 13872 if test -d /usr/nec ;then 13873 version_type=linux 13874 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13875 soname_spec='$libname${shared_ext}.$major' 13876 shlibpath_var=LD_LIBRARY_PATH 13877 fi 13878 ;; 13879 13880sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13881 version_type=freebsd-elf 13882 need_lib_prefix=no 13883 need_version=no 13884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13885 soname_spec='${libname}${release}${shared_ext}$major' 13886 shlibpath_var=LD_LIBRARY_PATH 13887 hardcode_into_libs=yes 13888 if test "$with_gnu_ld" = yes; then 13889 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13890 shlibpath_overrides_runpath=no 13891 else 13892 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13893 shlibpath_overrides_runpath=yes 13894 case $host_os in 13895 sco3.2v5*) 13896 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13897 ;; 13898 esac 13899 fi 13900 sys_lib_dlsearch_path_spec='/usr/lib' 13901 ;; 13902 13903uts4*) 13904 version_type=linux 13905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13906 soname_spec='${libname}${release}${shared_ext}$major' 13907 shlibpath_var=LD_LIBRARY_PATH 13908 ;; 13909 13910*) 13911 dynamic_linker=no 13912 ;; 13913esac 13914{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13915echo "${ECHO_T}$dynamic_linker" >&6; } 13916test "$dynamic_linker" = no && can_build_shared=no 13917 13918if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13919 echo $ECHO_N "(cached) $ECHO_C" >&6 13920else 13921 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13922fi 13923 13924sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13925if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13926 echo $ECHO_N "(cached) $ECHO_C" >&6 13927else 13928 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13929fi 13930 13931sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13932 13933variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13934if test "$GCC" = yes; then 13935 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13936fi 13937 13938{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13939echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13940hardcode_action_CXX= 13941if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13942 test -n "$runpath_var_CXX" || \ 13943 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13944 13945 # We can hardcode non-existant directories. 13946 if test "$hardcode_direct_CXX" != no && 13947 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13948 # have to relink, otherwise we might link with an installed library 13949 # when we should be linking with a yet-to-be-installed one 13950 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13951 test "$hardcode_minus_L_CXX" != no; then 13952 # Linking always hardcodes the temporary library directory. 13953 hardcode_action_CXX=relink 13954 else 13955 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13956 hardcode_action_CXX=immediate 13957 fi 13958else 13959 # We cannot hardcode anything, or else we can only hardcode existing 13960 # directories. 13961 hardcode_action_CXX=unsupported 13962fi 13963{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13964echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13965 13966if test "$hardcode_action_CXX" = relink; then 13967 # Fast installation is not supported 13968 enable_fast_install=no 13969elif test "$shlibpath_overrides_runpath" = yes || 13970 test "$enable_shared" = no; then 13971 # Fast installation is not necessary 13972 enable_fast_install=needless 13973fi 13974 13975 13976# The else clause should only fire when bootstrapping the 13977# libtool distribution, otherwise you forgot to ship ltmain.sh 13978# with your package, and you will get complaints that there are 13979# no rules to generate ltmain.sh. 13980if test -f "$ltmain"; then 13981 # See if we are running on zsh, and set the options which allow our commands through 13982 # without removal of \ escapes. 13983 if test -n "${ZSH_VERSION+set}" ; then 13984 setopt NO_GLOB_SUBST 13985 fi 13986 # Now quote all the things that may contain metacharacters while being 13987 # careful not to overquote the AC_SUBSTed values. We take copies of the 13988 # variables and quote the copies for generation of the libtool script. 13989 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13990 SED SHELL STRIP \ 13991 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13992 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13993 deplibs_check_method reload_flag reload_cmds need_locks \ 13994 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13995 lt_cv_sys_global_symbol_to_c_name_address \ 13996 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13997 old_postinstall_cmds old_postuninstall_cmds \ 13998 compiler_CXX \ 13999 CC_CXX \ 14000 LD_CXX \ 14001 lt_prog_compiler_wl_CXX \ 14002 lt_prog_compiler_pic_CXX \ 14003 lt_prog_compiler_static_CXX \ 14004 lt_prog_compiler_no_builtin_flag_CXX \ 14005 export_dynamic_flag_spec_CXX \ 14006 thread_safe_flag_spec_CXX \ 14007 whole_archive_flag_spec_CXX \ 14008 enable_shared_with_static_runtimes_CXX \ 14009 old_archive_cmds_CXX \ 14010 old_archive_from_new_cmds_CXX \ 14011 predep_objects_CXX \ 14012 postdep_objects_CXX \ 14013 predeps_CXX \ 14014 postdeps_CXX \ 14015 compiler_lib_search_path_CXX \ 14016 compiler_lib_search_dirs_CXX \ 14017 archive_cmds_CXX \ 14018 archive_expsym_cmds_CXX \ 14019 postinstall_cmds_CXX \ 14020 postuninstall_cmds_CXX \ 14021 old_archive_from_expsyms_cmds_CXX \ 14022 allow_undefined_flag_CXX \ 14023 no_undefined_flag_CXX \ 14024 export_symbols_cmds_CXX \ 14025 hardcode_libdir_flag_spec_CXX \ 14026 hardcode_libdir_flag_spec_ld_CXX \ 14027 hardcode_libdir_separator_CXX \ 14028 hardcode_automatic_CXX \ 14029 module_cmds_CXX \ 14030 module_expsym_cmds_CXX \ 14031 lt_cv_prog_compiler_c_o_CXX \ 14032 fix_srcfile_path_CXX \ 14033 exclude_expsyms_CXX \ 14034 include_expsyms_CXX; do 14035 14036 case $var in 14037 old_archive_cmds_CXX | \ 14038 old_archive_from_new_cmds_CXX | \ 14039 archive_cmds_CXX | \ 14040 archive_expsym_cmds_CXX | \ 14041 module_cmds_CXX | \ 14042 module_expsym_cmds_CXX | \ 14043 old_archive_from_expsyms_cmds_CXX | \ 14044 export_symbols_cmds_CXX | \ 14045 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14046 postinstall_cmds | postuninstall_cmds | \ 14047 old_postinstall_cmds | old_postuninstall_cmds | \ 14048 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14049 # Double-quote double-evaled strings. 14050 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14051 ;; 14052 *) 14053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14054 ;; 14055 esac 14056 done 14057 14058 case $lt_echo in 14059 *'\$0 --fallback-echo"') 14060 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14061 ;; 14062 esac 14063 14064cfgfile="$ofile" 14065 14066 cat <<__EOF__ >> "$cfgfile" 14067# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14068 14069# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14070 14071# Shell to use when invoking shell scripts. 14072SHELL=$lt_SHELL 14073 14074# Whether or not to build shared libraries. 14075build_libtool_libs=$enable_shared 14076 14077# Whether or not to build static libraries. 14078build_old_libs=$enable_static 14079 14080# Whether or not to add -lc for building shared libraries. 14081build_libtool_need_lc=$archive_cmds_need_lc_CXX 14082 14083# Whether or not to disallow shared libs when runtime libs are static 14084allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14085 14086# Whether or not to optimize for fast installation. 14087fast_install=$enable_fast_install 14088 14089# The host system. 14090host_alias=$host_alias 14091host=$host 14092host_os=$host_os 14093 14094# The build system. 14095build_alias=$build_alias 14096build=$build 14097build_os=$build_os 14098 14099# An echo program that does not interpret backslashes. 14100echo=$lt_echo 14101 14102# The archiver. 14103AR=$lt_AR 14104AR_FLAGS=$lt_AR_FLAGS 14105 14106# A C compiler. 14107LTCC=$lt_LTCC 14108 14109# LTCC compiler flags. 14110LTCFLAGS=$lt_LTCFLAGS 14111 14112# A language-specific compiler. 14113CC=$lt_compiler_CXX 14114 14115# Is the compiler the GNU C compiler? 14116with_gcc=$GCC_CXX 14117 14118# An ERE matcher. 14119EGREP=$lt_EGREP 14120 14121# The linker used to build libraries. 14122LD=$lt_LD_CXX 14123 14124# Whether we need hard or soft links. 14125LN_S=$lt_LN_S 14126 14127# A BSD-compatible nm program. 14128NM=$lt_NM 14129 14130# A symbol stripping program 14131STRIP=$lt_STRIP 14132 14133# Used to examine libraries when file_magic_cmd begins "file" 14134MAGIC_CMD=$MAGIC_CMD 14135 14136# Used on cygwin: DLL creation program. 14137DLLTOOL="$DLLTOOL" 14138 14139# Used on cygwin: object dumper. 14140OBJDUMP="$OBJDUMP" 14141 14142# Used on cygwin: assembler. 14143AS="$AS" 14144 14145# The name of the directory that contains temporary libtool files. 14146objdir=$objdir 14147 14148# How to create reloadable object files. 14149reload_flag=$lt_reload_flag 14150reload_cmds=$lt_reload_cmds 14151 14152# How to pass a linker flag through the compiler. 14153wl=$lt_lt_prog_compiler_wl_CXX 14154 14155# Object file suffix (normally "o"). 14156objext="$ac_objext" 14157 14158# Old archive suffix (normally "a"). 14159libext="$libext" 14160 14161# Shared library suffix (normally ".so"). 14162shrext_cmds='$shrext_cmds' 14163 14164# Executable file suffix (normally ""). 14165exeext="$exeext" 14166 14167# Additional compiler flags for building library objects. 14168pic_flag=$lt_lt_prog_compiler_pic_CXX 14169pic_mode=$pic_mode 14170 14171# What is the maximum length of a command? 14172max_cmd_len=$lt_cv_sys_max_cmd_len 14173 14174# Does compiler simultaneously support -c and -o options? 14175compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14176 14177# Must we lock files when doing compilation? 14178need_locks=$lt_need_locks 14179 14180# Do we need the lib prefix for modules? 14181need_lib_prefix=$need_lib_prefix 14182 14183# Do we need a version for libraries? 14184need_version=$need_version 14185 14186# Whether dlopen is supported. 14187dlopen_support=$enable_dlopen 14188 14189# Whether dlopen of programs is supported. 14190dlopen_self=$enable_dlopen_self 14191 14192# Whether dlopen of statically linked programs is supported. 14193dlopen_self_static=$enable_dlopen_self_static 14194 14195# Compiler flag to prevent dynamic linking. 14196link_static_flag=$lt_lt_prog_compiler_static_CXX 14197 14198# Compiler flag to turn off builtin functions. 14199no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14200 14201# Compiler flag to allow reflexive dlopens. 14202export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14203 14204# Compiler flag to generate shared objects directly from archives. 14205whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14206 14207# Compiler flag to generate thread-safe objects. 14208thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14209 14210# Library versioning type. 14211version_type=$version_type 14212 14213# Format of library name prefix. 14214libname_spec=$lt_libname_spec 14215 14216# List of archive names. First name is the real one, the rest are links. 14217# The last name is the one that the linker finds with -lNAME. 14218library_names_spec=$lt_library_names_spec 14219 14220# The coded name of the library, if different from the real name. 14221soname_spec=$lt_soname_spec 14222 14223# Commands used to build and install an old-style archive. 14224RANLIB=$lt_RANLIB 14225old_archive_cmds=$lt_old_archive_cmds_CXX 14226old_postinstall_cmds=$lt_old_postinstall_cmds 14227old_postuninstall_cmds=$lt_old_postuninstall_cmds 14228 14229# Create an old-style archive from a shared archive. 14230old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14231 14232# Create a temporary old-style archive to link instead of a shared archive. 14233old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14234 14235# Commands used to build and install a shared archive. 14236archive_cmds=$lt_archive_cmds_CXX 14237archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14238postinstall_cmds=$lt_postinstall_cmds 14239postuninstall_cmds=$lt_postuninstall_cmds 14240 14241# Commands used to build a loadable module (assumed same as above if empty) 14242module_cmds=$lt_module_cmds_CXX 14243module_expsym_cmds=$lt_module_expsym_cmds_CXX 14244 14245# Commands to strip libraries. 14246old_striplib=$lt_old_striplib 14247striplib=$lt_striplib 14248 14249# Dependencies to place before the objects being linked to create a 14250# shared library. 14251predep_objects=$lt_predep_objects_CXX 14252 14253# Dependencies to place after the objects being linked to create a 14254# shared library. 14255postdep_objects=$lt_postdep_objects_CXX 14256 14257# Dependencies to place before the objects being linked to create a 14258# shared library. 14259predeps=$lt_predeps_CXX 14260 14261# Dependencies to place after the objects being linked to create a 14262# shared library. 14263postdeps=$lt_postdeps_CXX 14264 14265# The directories searched by this compiler when creating a shared 14266# library 14267compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14268 14269# The library search path used internally by the compiler when linking 14270# a shared library. 14271compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14272 14273# Method to check whether dependent libraries are shared objects. 14274deplibs_check_method=$lt_deplibs_check_method 14275 14276# Command to use when deplibs_check_method == file_magic. 14277file_magic_cmd=$lt_file_magic_cmd 14278 14279# Flag that allows shared libraries with undefined symbols to be built. 14280allow_undefined_flag=$lt_allow_undefined_flag_CXX 14281 14282# Flag that forces no undefined symbols. 14283no_undefined_flag=$lt_no_undefined_flag_CXX 14284 14285# Commands used to finish a libtool library installation in a directory. 14286finish_cmds=$lt_finish_cmds 14287 14288# Same as above, but a single script fragment to be evaled but not shown. 14289finish_eval=$lt_finish_eval 14290 14291# Take the output of nm and produce a listing of raw symbols and C names. 14292global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14293 14294# Transform the output of nm in a proper C declaration 14295global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14296 14297# Transform the output of nm in a C name address pair 14298global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14299 14300# This is the shared library runtime path variable. 14301runpath_var=$runpath_var 14302 14303# This is the shared library path variable. 14304shlibpath_var=$shlibpath_var 14305 14306# Is shlibpath searched before the hard-coded library search path? 14307shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14308 14309# How to hardcode a shared library path into an executable. 14310hardcode_action=$hardcode_action_CXX 14311 14312# Whether we should hardcode library paths into libraries. 14313hardcode_into_libs=$hardcode_into_libs 14314 14315# Flag to hardcode \$libdir into a binary during linking. 14316# This must work even if \$libdir does not exist. 14317hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14318 14319# If ld is used when linking, flag to hardcode \$libdir into 14320# a binary during linking. This must work even if \$libdir does 14321# not exist. 14322hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14323 14324# Whether we need a single -rpath flag with a separated argument. 14325hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14326 14327# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14328# resulting binary. 14329hardcode_direct=$hardcode_direct_CXX 14330 14331# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14332# resulting binary. 14333hardcode_minus_L=$hardcode_minus_L_CXX 14334 14335# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14336# the resulting binary. 14337hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14338 14339# Set to yes if building a shared library automatically hardcodes DIR into the library 14340# and all subsequent libraries and executables linked against it. 14341hardcode_automatic=$hardcode_automatic_CXX 14342 14343# Variables whose values should be saved in libtool wrapper scripts and 14344# restored at relink time. 14345variables_saved_for_relink="$variables_saved_for_relink" 14346 14347# Whether libtool must link a program against all its dependency libraries. 14348link_all_deplibs=$link_all_deplibs_CXX 14349 14350# Compile-time system search path for libraries 14351sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14352 14353# Run-time system search path for libraries 14354sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14355 14356# Fix the shell variable \$srcfile for the compiler. 14357fix_srcfile_path=$lt_fix_srcfile_path 14358 14359# Set to yes if exported symbols are required. 14360always_export_symbols=$always_export_symbols_CXX 14361 14362# The commands to list exported symbols. 14363export_symbols_cmds=$lt_export_symbols_cmds_CXX 14364 14365# The commands to extract the exported symbol list from a shared archive. 14366extract_expsyms_cmds=$lt_extract_expsyms_cmds 14367 14368# Symbols that should not be listed in the preloaded symbols. 14369exclude_expsyms=$lt_exclude_expsyms_CXX 14370 14371# Symbols that must always be exported. 14372include_expsyms=$lt_include_expsyms_CXX 14373 14374# ### END LIBTOOL TAG CONFIG: $tagname 14375 14376__EOF__ 14377 14378 14379else 14380 # If there is no Makefile yet, we rely on a make rule to execute 14381 # `config.status --recheck' to rerun these tests and create the 14382 # libtool script then. 14383 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14384 if test -f "$ltmain_in"; then 14385 test -f Makefile && make "$ltmain" 14386 fi 14387fi 14388 14389 14390ac_ext=c 14391ac_cpp='$CPP $CPPFLAGS' 14392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14394ac_compiler_gnu=$ac_cv_c_compiler_gnu 14395 14396CC=$lt_save_CC 14397LDCXX=$LD 14398LD=$lt_save_LD 14399GCC=$lt_save_GCC 14400with_gnu_ldcxx=$with_gnu_ld 14401with_gnu_ld=$lt_save_with_gnu_ld 14402lt_cv_path_LDCXX=$lt_cv_path_LD 14403lt_cv_path_LD=$lt_save_path_LD 14404lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14405lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14406 14407 else 14408 tagname="" 14409 fi 14410 ;; 14411 14412 F77) 14413 if test -n "$F77" && test "X$F77" != "Xno"; then 14414 14415ac_ext=f 14416ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14417ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14418ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14419 14420 14421archive_cmds_need_lc_F77=no 14422allow_undefined_flag_F77= 14423always_export_symbols_F77=no 14424archive_expsym_cmds_F77= 14425export_dynamic_flag_spec_F77= 14426hardcode_direct_F77=no 14427hardcode_libdir_flag_spec_F77= 14428hardcode_libdir_flag_spec_ld_F77= 14429hardcode_libdir_separator_F77= 14430hardcode_minus_L_F77=no 14431hardcode_automatic_F77=no 14432module_cmds_F77= 14433module_expsym_cmds_F77= 14434link_all_deplibs_F77=unknown 14435old_archive_cmds_F77=$old_archive_cmds 14436no_undefined_flag_F77= 14437whole_archive_flag_spec_F77= 14438enable_shared_with_static_runtimes_F77=no 14439 14440# Source file extension for f77 test sources. 14441ac_ext=f 14442 14443# Object file extension for compiled f77 test sources. 14444objext=o 14445objext_F77=$objext 14446 14447# Code to be used in simple compile tests 14448lt_simple_compile_test_code="\ 14449 subroutine t 14450 return 14451 end 14452" 14453 14454# Code to be used in simple link tests 14455lt_simple_link_test_code="\ 14456 program t 14457 end 14458" 14459 14460# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14461 14462# If no C compiler was specified, use CC. 14463LTCC=${LTCC-"$CC"} 14464 14465# If no C compiler flags were specified, use CFLAGS. 14466LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14467 14468# Allow CC to be a program name with arguments. 14469compiler=$CC 14470 14471 14472# save warnings/boilerplate of simple test code 14473ac_outfile=conftest.$ac_objext 14474echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14475eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14476_lt_compiler_boilerplate=`cat conftest.err` 14477$rm conftest* 14478 14479ac_outfile=conftest.$ac_objext 14480echo "$lt_simple_link_test_code" >conftest.$ac_ext 14481eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14482_lt_linker_boilerplate=`cat conftest.err` 14483$rm -r conftest* 14484 14485 14486# Allow CC to be a program name with arguments. 14487lt_save_CC="$CC" 14488CC=${F77-"f77"} 14489compiler=$CC 14490compiler_F77=$CC 14491for cc_temp in $compiler""; do 14492 case $cc_temp in 14493 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14494 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14495 \-*) ;; 14496 *) break;; 14497 esac 14498done 14499cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14500 14501 14502{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14503echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14504{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14505echo "${ECHO_T}$can_build_shared" >&6; } 14506 14507{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14508echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14509test "$can_build_shared" = "no" && enable_shared=no 14510 14511# On AIX, shared libraries and static libraries use the same namespace, and 14512# are all built from PIC. 14513case $host_os in 14514aix3*) 14515 test "$enable_shared" = yes && enable_static=no 14516 if test -n "$RANLIB"; then 14517 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14518 postinstall_cmds='$RANLIB $lib' 14519 fi 14520 ;; 14521aix[4-9]*) 14522 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14523 test "$enable_shared" = yes && enable_static=no 14524 fi 14525 ;; 14526esac 14527{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14528echo "${ECHO_T}$enable_shared" >&6; } 14529 14530{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14531echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14532# Make sure either enable_shared or enable_static is yes. 14533test "$enable_shared" = yes || enable_static=yes 14534{ echo "$as_me:$LINENO: result: $enable_static" >&5 14535echo "${ECHO_T}$enable_static" >&6; } 14536 14537GCC_F77="$G77" 14538LD_F77="$LD" 14539 14540lt_prog_compiler_wl_F77= 14541lt_prog_compiler_pic_F77= 14542lt_prog_compiler_static_F77= 14543 14544{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14545echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14546 14547 if test "$GCC" = yes; then 14548 lt_prog_compiler_wl_F77='-Wl,' 14549 lt_prog_compiler_static_F77='-static' 14550 14551 case $host_os in 14552 aix*) 14553 # All AIX code is PIC. 14554 if test "$host_cpu" = ia64; then 14555 # AIX 5 now supports IA64 processor 14556 lt_prog_compiler_static_F77='-Bstatic' 14557 fi 14558 ;; 14559 14560 amigaos*) 14561 # FIXME: we need at least 68020 code to build shared libraries, but 14562 # adding the `-m68020' flag to GCC prevents building anything better, 14563 # like `-m68040'. 14564 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14565 ;; 14566 14567 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14568 # PIC is the default for these OSes. 14569 ;; 14570 14571 mingw* | cygwin* | pw32* | os2*) 14572 # This hack is so that the source file can tell whether it is being 14573 # built for inclusion in a dll (and should export symbols for example). 14574 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14575 # (--disable-auto-import) libraries 14576 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14577 ;; 14578 14579 darwin* | rhapsody*) 14580 # PIC is the default on this platform 14581 # Common symbols not allowed in MH_DYLIB files 14582 lt_prog_compiler_pic_F77='-fno-common' 14583 ;; 14584 14585 interix[3-9]*) 14586 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14587 # Instead, we relocate shared libraries at runtime. 14588 ;; 14589 14590 msdosdjgpp*) 14591 # Just because we use GCC doesn't mean we suddenly get shared libraries 14592 # on systems that don't support them. 14593 lt_prog_compiler_can_build_shared_F77=no 14594 enable_shared=no 14595 ;; 14596 14597 sysv4*MP*) 14598 if test -d /usr/nec; then 14599 lt_prog_compiler_pic_F77=-Kconform_pic 14600 fi 14601 ;; 14602 14603 hpux*) 14604 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14605 # not for PA HP-UX. 14606 case $host_cpu in 14607 hppa*64*|ia64*) 14608 # +Z the default 14609 ;; 14610 *) 14611 lt_prog_compiler_pic_F77='-fPIC' 14612 ;; 14613 esac 14614 ;; 14615 14616 *) 14617 lt_prog_compiler_pic_F77='-fPIC' 14618 ;; 14619 esac 14620 else 14621 # PORTME Check for flag to pass linker flags through the system compiler. 14622 case $host_os in 14623 aix*) 14624 lt_prog_compiler_wl_F77='-Wl,' 14625 if test "$host_cpu" = ia64; then 14626 # AIX 5 now supports IA64 processor 14627 lt_prog_compiler_static_F77='-Bstatic' 14628 else 14629 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14630 fi 14631 ;; 14632 darwin*) 14633 # PIC is the default on this platform 14634 # Common symbols not allowed in MH_DYLIB files 14635 case $cc_basename in 14636 xlc*) 14637 lt_prog_compiler_pic_F77='-qnocommon' 14638 lt_prog_compiler_wl_F77='-Wl,' 14639 ;; 14640 esac 14641 ;; 14642 14643 mingw* | cygwin* | pw32* | os2*) 14644 # This hack is so that the source file can tell whether it is being 14645 # built for inclusion in a dll (and should export symbols for example). 14646 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14647 ;; 14648 14649 hpux9* | hpux10* | hpux11*) 14650 lt_prog_compiler_wl_F77='-Wl,' 14651 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14652 # not for PA HP-UX. 14653 case $host_cpu in 14654 hppa*64*|ia64*) 14655 # +Z the default 14656 ;; 14657 *) 14658 lt_prog_compiler_pic_F77='+Z' 14659 ;; 14660 esac 14661 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14662 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14663 ;; 14664 14665 irix5* | irix6* | nonstopux*) 14666 lt_prog_compiler_wl_F77='-Wl,' 14667 # PIC (with -KPIC) is the default. 14668 lt_prog_compiler_static_F77='-non_shared' 14669 ;; 14670 14671 newsos6) 14672 lt_prog_compiler_pic_F77='-KPIC' 14673 lt_prog_compiler_static_F77='-Bstatic' 14674 ;; 14675 14676 linux* | k*bsd*-gnu) 14677 case $cc_basename in 14678 icc* | ecc*) 14679 lt_prog_compiler_wl_F77='-Wl,' 14680 lt_prog_compiler_pic_F77='-KPIC' 14681 lt_prog_compiler_static_F77='-static' 14682 ;; 14683 pgcc* | pgf77* | pgf90* | pgf95*) 14684 # Portland Group compilers (*not* the Pentium gcc compiler, 14685 # which looks to be a dead project) 14686 lt_prog_compiler_wl_F77='-Wl,' 14687 lt_prog_compiler_pic_F77='-fpic' 14688 lt_prog_compiler_static_F77='-Bstatic' 14689 ;; 14690 ccc*) 14691 lt_prog_compiler_wl_F77='-Wl,' 14692 # All Alpha code is PIC. 14693 lt_prog_compiler_static_F77='-non_shared' 14694 ;; 14695 *) 14696 case `$CC -V 2>&1 | sed 5q` in 14697 *Sun\ C*) 14698 # Sun C 5.9 14699 lt_prog_compiler_pic_F77='-KPIC' 14700 lt_prog_compiler_static_F77='-Bstatic' 14701 lt_prog_compiler_wl_F77='-Wl,' 14702 ;; 14703 *Sun\ F*) 14704 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14705 lt_prog_compiler_pic_F77='-KPIC' 14706 lt_prog_compiler_static_F77='-Bstatic' 14707 lt_prog_compiler_wl_F77='' 14708 ;; 14709 esac 14710 ;; 14711 esac 14712 ;; 14713 14714 osf3* | osf4* | osf5*) 14715 lt_prog_compiler_wl_F77='-Wl,' 14716 # All OSF/1 code is PIC. 14717 lt_prog_compiler_static_F77='-non_shared' 14718 ;; 14719 14720 rdos*) 14721 lt_prog_compiler_static_F77='-non_shared' 14722 ;; 14723 14724 solaris*) 14725 lt_prog_compiler_pic_F77='-KPIC' 14726 lt_prog_compiler_static_F77='-Bstatic' 14727 case $cc_basename in 14728 f77* | f90* | f95*) 14729 lt_prog_compiler_wl_F77='-Qoption ld ';; 14730 *) 14731 lt_prog_compiler_wl_F77='-Wl,';; 14732 esac 14733 ;; 14734 14735 sunos4*) 14736 lt_prog_compiler_wl_F77='-Qoption ld ' 14737 lt_prog_compiler_pic_F77='-PIC' 14738 lt_prog_compiler_static_F77='-Bstatic' 14739 ;; 14740 14741 sysv4 | sysv4.2uw2* | sysv4.3*) 14742 lt_prog_compiler_wl_F77='-Wl,' 14743 lt_prog_compiler_pic_F77='-KPIC' 14744 lt_prog_compiler_static_F77='-Bstatic' 14745 ;; 14746 14747 sysv4*MP*) 14748 if test -d /usr/nec ;then 14749 lt_prog_compiler_pic_F77='-Kconform_pic' 14750 lt_prog_compiler_static_F77='-Bstatic' 14751 fi 14752 ;; 14753 14754 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14755 lt_prog_compiler_wl_F77='-Wl,' 14756 lt_prog_compiler_pic_F77='-KPIC' 14757 lt_prog_compiler_static_F77='-Bstatic' 14758 ;; 14759 14760 unicos*) 14761 lt_prog_compiler_wl_F77='-Wl,' 14762 lt_prog_compiler_can_build_shared_F77=no 14763 ;; 14764 14765 uts4*) 14766 lt_prog_compiler_pic_F77='-pic' 14767 lt_prog_compiler_static_F77='-Bstatic' 14768 ;; 14769 14770 *) 14771 lt_prog_compiler_can_build_shared_F77=no 14772 ;; 14773 esac 14774 fi 14775 14776{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14777echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14778 14779# 14780# Check to make sure the PIC flag actually works. 14781# 14782if test -n "$lt_prog_compiler_pic_F77"; then 14783 14784{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14785echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14786if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14787 echo $ECHO_N "(cached) $ECHO_C" >&6 14788else 14789 lt_cv_prog_compiler_pic_works_F77=no 14790 ac_outfile=conftest.$ac_objext 14791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14792 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14793 # Insert the option either (1) after the last *FLAGS variable, or 14794 # (2) before a word containing "conftest.", or (3) at the end. 14795 # Note that $ac_compile itself does not contain backslashes and begins 14796 # with a dollar sign (not a hyphen), so the echo should work correctly. 14797 # The option is referenced via a variable to avoid confusing sed. 14798 lt_compile=`echo "$ac_compile" | $SED \ 14799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14801 -e 's:$: $lt_compiler_flag:'` 14802 (eval echo "\"\$as_me:14802: $lt_compile\"" >&5) 14803 (eval "$lt_compile" 2>conftest.err) 14804 ac_status=$? 14805 cat conftest.err >&5 14806 echo "$as_me:14806: \$? = $ac_status" >&5 14807 if (exit $ac_status) && test -s "$ac_outfile"; then 14808 # The compiler can only warn and ignore the option if not recognized 14809 # So say no if there are warnings other than the usual output. 14810 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14813 lt_cv_prog_compiler_pic_works_F77=yes 14814 fi 14815 fi 14816 $rm conftest* 14817 14818fi 14819{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14820echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } 14821 14822if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14823 case $lt_prog_compiler_pic_F77 in 14824 "" | " "*) ;; 14825 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14826 esac 14827else 14828 lt_prog_compiler_pic_F77= 14829 lt_prog_compiler_can_build_shared_F77=no 14830fi 14831 14832fi 14833case $host_os in 14834 # For platforms which do not support PIC, -DPIC is meaningless: 14835 *djgpp*) 14836 lt_prog_compiler_pic_F77= 14837 ;; 14838 *) 14839 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14840 ;; 14841esac 14842 14843# 14844# Check to make sure the static flag actually works. 14845# 14846wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14847{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14848echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14849if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14850 echo $ECHO_N "(cached) $ECHO_C" >&6 14851else 14852 lt_cv_prog_compiler_static_works_F77=no 14853 save_LDFLAGS="$LDFLAGS" 14854 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14855 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14856 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14857 # The linker can only warn and ignore the option if not recognized 14858 # So say no if there are warnings 14859 if test -s conftest.err; then 14860 # Append any errors to the config.log. 14861 cat conftest.err 1>&5 14862 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14864 if diff conftest.exp conftest.er2 >/dev/null; then 14865 lt_cv_prog_compiler_static_works_F77=yes 14866 fi 14867 else 14868 lt_cv_prog_compiler_static_works_F77=yes 14869 fi 14870 fi 14871 $rm -r conftest* 14872 LDFLAGS="$save_LDFLAGS" 14873 14874fi 14875{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14876echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } 14877 14878if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14879 : 14880else 14881 lt_prog_compiler_static_F77= 14882fi 14883 14884 14885{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14886echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14887if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14888 echo $ECHO_N "(cached) $ECHO_C" >&6 14889else 14890 lt_cv_prog_compiler_c_o_F77=no 14891 $rm -r conftest 2>/dev/null 14892 mkdir conftest 14893 cd conftest 14894 mkdir out 14895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14896 14897 lt_compiler_flag="-o out/conftest2.$ac_objext" 14898 # Insert the option either (1) after the last *FLAGS variable, or 14899 # (2) before a word containing "conftest.", or (3) at the end. 14900 # Note that $ac_compile itself does not contain backslashes and begins 14901 # with a dollar sign (not a hyphen), so the echo should work correctly. 14902 lt_compile=`echo "$ac_compile" | $SED \ 14903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14905 -e 's:$: $lt_compiler_flag:'` 14906 (eval echo "\"\$as_me:14906: $lt_compile\"" >&5) 14907 (eval "$lt_compile" 2>out/conftest.err) 14908 ac_status=$? 14909 cat out/conftest.err >&5 14910 echo "$as_me:14910: \$? = $ac_status" >&5 14911 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14912 then 14913 # The compiler can only warn and ignore the option if not recognized 14914 # So say no if there are warnings 14915 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14916 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14917 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14918 lt_cv_prog_compiler_c_o_F77=yes 14919 fi 14920 fi 14921 chmod u+w . 2>&5 14922 $rm conftest* 14923 # SGI C++ compiler will create directory out/ii_files/ for 14924 # template instantiation 14925 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14926 $rm out/* && rmdir out 14927 cd .. 14928 rmdir conftest 14929 $rm conftest* 14930 14931fi 14932{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14933echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14934 14935 14936hard_links="nottested" 14937if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14938 # do not overwrite the value of need_locks provided by the user 14939 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14940echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14941 hard_links=yes 14942 $rm conftest* 14943 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14944 touch conftest.a 14945 ln conftest.a conftest.b 2>&5 || hard_links=no 14946 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14947 { echo "$as_me:$LINENO: result: $hard_links" >&5 14948echo "${ECHO_T}$hard_links" >&6; } 14949 if test "$hard_links" = no; then 14950 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14951echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14952 need_locks=warn 14953 fi 14954else 14955 need_locks=no 14956fi 14957 14958{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14959echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14960 14961 runpath_var= 14962 allow_undefined_flag_F77= 14963 enable_shared_with_static_runtimes_F77=no 14964 archive_cmds_F77= 14965 archive_expsym_cmds_F77= 14966 old_archive_From_new_cmds_F77= 14967 old_archive_from_expsyms_cmds_F77= 14968 export_dynamic_flag_spec_F77= 14969 whole_archive_flag_spec_F77= 14970 thread_safe_flag_spec_F77= 14971 hardcode_libdir_flag_spec_F77= 14972 hardcode_libdir_flag_spec_ld_F77= 14973 hardcode_libdir_separator_F77= 14974 hardcode_direct_F77=no 14975 hardcode_minus_L_F77=no 14976 hardcode_shlibpath_var_F77=unsupported 14977 link_all_deplibs_F77=unknown 14978 hardcode_automatic_F77=no 14979 module_cmds_F77= 14980 module_expsym_cmds_F77= 14981 always_export_symbols_F77=no 14982 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14983 # include_expsyms should be a list of space-separated symbols to be *always* 14984 # included in the symbol list 14985 include_expsyms_F77= 14986 # exclude_expsyms can be an extended regexp of symbols to exclude 14987 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14988 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14989 # as well as any symbol that contains `d'. 14990 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14991 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14992 # platforms (ab)use it in PIC code, but their linkers get confused if 14993 # the symbol is explicitly referenced. Since portable code cannot 14994 # rely on this symbol name, it's probably fine to never include it in 14995 # preloaded symbol tables. 14996 # Exclude shared library initialization/finalization symbols. 14997 extract_expsyms_cmds= 14998 # Just being paranoid about ensuring that cc_basename is set. 14999 for cc_temp in $compiler""; do 15000 case $cc_temp in 15001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15003 \-*) ;; 15004 *) break;; 15005 esac 15006done 15007cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15008 15009 case $host_os in 15010 cygwin* | mingw* | pw32*) 15011 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15012 # When not using gcc, we currently assume that we are using 15013 # Microsoft Visual C++. 15014 if test "$GCC" != yes; then 15015 with_gnu_ld=no 15016 fi 15017 ;; 15018 interix*) 15019 # we just hope/assume this is gcc and not c89 (= MSVC++) 15020 with_gnu_ld=yes 15021 ;; 15022 openbsd*) 15023 with_gnu_ld=no 15024 ;; 15025 esac 15026 15027 ld_shlibs_F77=yes 15028 if test "$with_gnu_ld" = yes; then 15029 # If archive_cmds runs LD, not CC, wlarc should be empty 15030 wlarc='${wl}' 15031 15032 # Set some defaults for GNU ld with shared library support. These 15033 # are reset later if shared libraries are not supported. Putting them 15034 # here allows them to be overridden if necessary. 15035 runpath_var=LD_RUN_PATH 15036 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15037 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15038 # ancient GNU ld didn't support --whole-archive et. al. 15039 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15040 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15041 else 15042 whole_archive_flag_spec_F77= 15043 fi 15044 supports_anon_versioning=no 15045 case `$LD -v 2>/dev/null` in 15046 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15047 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15048 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15049 *\ 2.11.*) ;; # other 2.11 versions 15050 *) supports_anon_versioning=yes ;; 15051 esac 15052 15053 # See if GNU ld supports shared libraries. 15054 case $host_os in 15055 aix[3-9]*) 15056 # On AIX/PPC, the GNU linker is very broken 15057 if test "$host_cpu" != ia64; then 15058 ld_shlibs_F77=no 15059 cat <<EOF 1>&2 15060 15061*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15062*** to be unable to reliably create shared libraries on AIX. 15063*** Therefore, libtool is disabling shared libraries support. If you 15064*** really care for shared libraries, you may want to modify your PATH 15065*** so that a non-GNU linker is found, and then restart. 15066 15067EOF 15068 fi 15069 ;; 15070 15071 amigaos*) 15072 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)' 15073 hardcode_libdir_flag_spec_F77='-L$libdir' 15074 hardcode_minus_L_F77=yes 15075 15076 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15077 # that the semantics of dynamic libraries on AmigaOS, at least up 15078 # to version 4, is to share data among multiple programs linked 15079 # with the same dynamic library. Since this doesn't match the 15080 # behavior of shared libraries on other platforms, we can't use 15081 # them. 15082 ld_shlibs_F77=no 15083 ;; 15084 15085 beos*) 15086 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15087 allow_undefined_flag_F77=unsupported 15088 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15089 # support --undefined. This deserves some investigation. FIXME 15090 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15091 else 15092 ld_shlibs_F77=no 15093 fi 15094 ;; 15095 15096 cygwin* | mingw* | pw32*) 15097 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15098 # as there is no search path for DLLs. 15099 hardcode_libdir_flag_spec_F77='-L$libdir' 15100 allow_undefined_flag_F77=unsupported 15101 always_export_symbols_F77=no 15102 enable_shared_with_static_runtimes_F77=yes 15103 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15104 15105 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15106 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15107 # If the export-symbols file already is a .def file (1st line 15108 # is EXPORTS), use it as is; otherwise, prepend... 15109 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15110 cp $export_symbols $output_objdir/$soname.def; 15111 else 15112 echo EXPORTS > $output_objdir/$soname.def; 15113 cat $export_symbols >> $output_objdir/$soname.def; 15114 fi~ 15115 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15116 else 15117 ld_shlibs_F77=no 15118 fi 15119 ;; 15120 15121 interix[3-9]*) 15122 hardcode_direct_F77=no 15123 hardcode_shlibpath_var_F77=no 15124 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15125 export_dynamic_flag_spec_F77='${wl}-E' 15126 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15127 # Instead, shared libraries are loaded at an image base (0x10000000 by 15128 # default) and relocated if they conflict, which is a slow very memory 15129 # consuming and fragmenting process. To avoid this, we pick a random, 15130 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15131 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15132 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' 15133 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' 15134 ;; 15135 15136 gnu* | linux* | k*bsd*-gnu) 15137 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15138 tmp_addflag= 15139 case $cc_basename,$host_cpu in 15140 pgcc*) # Portland Group C compiler 15141 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' 15142 tmp_addflag=' $pic_flag' 15143 ;; 15144 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15145 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' 15146 tmp_addflag=' $pic_flag -Mnomain' ;; 15147 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15148 tmp_addflag=' -i_dynamic' ;; 15149 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15150 tmp_addflag=' -i_dynamic -nofor_main' ;; 15151 ifc* | ifort*) # Intel Fortran compiler 15152 tmp_addflag=' -nofor_main' ;; 15153 esac 15154 case `$CC -V 2>&1 | sed 5q` in 15155 *Sun\ C*) # Sun C 5.9 15156 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' 15157 tmp_sharedflag='-G' ;; 15158 *Sun\ F*) # Sun Fortran 8.3 15159 tmp_sharedflag='-G' ;; 15160 *) 15161 tmp_sharedflag='-shared' ;; 15162 esac 15163 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15164 15165 if test $supports_anon_versioning = yes; then 15166 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15167 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15168 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15169 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15170 fi 15171 link_all_deplibs_F77=no 15172 else 15173 ld_shlibs_F77=no 15174 fi 15175 ;; 15176 15177 netbsd* | netbsdelf*-gnu) 15178 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15179 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15180 wlarc= 15181 else 15182 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15183 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15184 fi 15185 ;; 15186 15187 solaris*) 15188 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15189 ld_shlibs_F77=no 15190 cat <<EOF 1>&2 15191 15192*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15193*** create shared libraries on Solaris systems. Therefore, libtool 15194*** is disabling shared libraries support. We urge you to upgrade GNU 15195*** binutils to release 2.9.1 or newer. Another option is to modify 15196*** your PATH or compiler configuration so that the native linker is 15197*** used, and then restart. 15198 15199EOF 15200 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15201 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15202 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15203 else 15204 ld_shlibs_F77=no 15205 fi 15206 ;; 15207 15208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15209 case `$LD -v 2>&1` in 15210 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15211 ld_shlibs_F77=no 15212 cat <<_LT_EOF 1>&2 15213 15214*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15215*** reliably create shared libraries on SCO systems. Therefore, libtool 15216*** is disabling shared libraries support. We urge you to upgrade GNU 15217*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15218*** your PATH or compiler configuration so that the native linker is 15219*** used, and then restart. 15220 15221_LT_EOF 15222 ;; 15223 *) 15224 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15225 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15226 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15227 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15228 else 15229 ld_shlibs_F77=no 15230 fi 15231 ;; 15232 esac 15233 ;; 15234 15235 sunos4*) 15236 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15237 wlarc= 15238 hardcode_direct_F77=yes 15239 hardcode_shlibpath_var_F77=no 15240 ;; 15241 15242 *) 15243 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15244 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15245 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15246 else 15247 ld_shlibs_F77=no 15248 fi 15249 ;; 15250 esac 15251 15252 if test "$ld_shlibs_F77" = no; then 15253 runpath_var= 15254 hardcode_libdir_flag_spec_F77= 15255 export_dynamic_flag_spec_F77= 15256 whole_archive_flag_spec_F77= 15257 fi 15258 else 15259 # PORTME fill in a description of your system's linker (not GNU ld) 15260 case $host_os in 15261 aix3*) 15262 allow_undefined_flag_F77=unsupported 15263 always_export_symbols_F77=yes 15264 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' 15265 # Note: this linker hardcodes the directories in LIBPATH if there 15266 # are no directories specified by -L. 15267 hardcode_minus_L_F77=yes 15268 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15269 # Neither direct hardcoding nor static linking is supported with a 15270 # broken collect2. 15271 hardcode_direct_F77=unsupported 15272 fi 15273 ;; 15274 15275 aix[4-9]*) 15276 if test "$host_cpu" = ia64; then 15277 # On IA64, the linker does run time linking by default, so we don't 15278 # have to do anything special. 15279 aix_use_runtimelinking=no 15280 exp_sym_flag='-Bexport' 15281 no_entry_flag="" 15282 else 15283 # If we're using GNU nm, then we don't want the "-C" option. 15284 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15285 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15286 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' 15287 else 15288 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' 15289 fi 15290 aix_use_runtimelinking=no 15291 15292 # Test if we are trying to use run time linking or normal 15293 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15294 # need to do runtime linking. 15295 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15296 for ld_flag in $LDFLAGS; do 15297 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15298 aix_use_runtimelinking=yes 15299 break 15300 fi 15301 done 15302 ;; 15303 esac 15304 15305 exp_sym_flag='-bexport' 15306 no_entry_flag='-bnoentry' 15307 fi 15308 15309 # When large executables or shared objects are built, AIX ld can 15310 # have problems creating the table of contents. If linking a library 15311 # or program results in "error TOC overflow" add -mminimal-toc to 15312 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15313 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15314 15315 archive_cmds_F77='' 15316 hardcode_direct_F77=yes 15317 hardcode_libdir_separator_F77=':' 15318 link_all_deplibs_F77=yes 15319 15320 if test "$GCC" = yes; then 15321 case $host_os in aix4.[012]|aix4.[012].*) 15322 # We only want to do this on AIX 4.2 and lower, the check 15323 # below for broken collect2 doesn't work under 4.3+ 15324 collect2name=`${CC} -print-prog-name=collect2` 15325 if test -f "$collect2name" && \ 15326 strings "$collect2name" | grep resolve_lib_name >/dev/null 15327 then 15328 # We have reworked collect2 15329 : 15330 else 15331 # We have old collect2 15332 hardcode_direct_F77=unsupported 15333 # It fails to find uninstalled libraries when the uninstalled 15334 # path is not listed in the libpath. Setting hardcode_minus_L 15335 # to unsupported forces relinking 15336 hardcode_minus_L_F77=yes 15337 hardcode_libdir_flag_spec_F77='-L$libdir' 15338 hardcode_libdir_separator_F77= 15339 fi 15340 ;; 15341 esac 15342 shared_flag='-shared' 15343 if test "$aix_use_runtimelinking" = yes; then 15344 shared_flag="$shared_flag "'${wl}-G' 15345 fi 15346 else 15347 # not using gcc 15348 if test "$host_cpu" = ia64; then 15349 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15350 # chokes on -Wl,-G. The following line is correct: 15351 shared_flag='-G' 15352 else 15353 if test "$aix_use_runtimelinking" = yes; then 15354 shared_flag='${wl}-G' 15355 else 15356 shared_flag='${wl}-bM:SRE' 15357 fi 15358 fi 15359 fi 15360 15361 # It seems that -bexpall does not export symbols beginning with 15362 # underscore (_), so it is better to generate a list of symbols to export. 15363 always_export_symbols_F77=yes 15364 if test "$aix_use_runtimelinking" = yes; then 15365 # Warning - without using the other runtime loading flags (-brtl), 15366 # -berok will link without error, but may produce a broken library. 15367 allow_undefined_flag_F77='-berok' 15368 # Determine the default libpath from the value encoded in an empty executable. 15369 cat >conftest.$ac_ext <<_ACEOF 15370 program main 15371 15372 end 15373_ACEOF 15374rm -f conftest.$ac_objext conftest$ac_exeext 15375if { (ac_try="$ac_link" 15376case "(($ac_try" in 15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15378 *) ac_try_echo=$ac_try;; 15379esac 15380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15381 (eval "$ac_link") 2>conftest.er1 15382 ac_status=$? 15383 grep -v '^ *+' conftest.er1 >conftest.err 15384 rm -f conftest.er1 15385 cat conftest.err >&5 15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15387 (exit $ac_status); } && { 15388 test -z "$ac_f77_werror_flag" || 15389 test ! -s conftest.err 15390 } && test -s conftest$ac_exeext && 15391 $as_test_x conftest$ac_exeext; then 15392 15393lt_aix_libpath_sed=' 15394 /Import File Strings/,/^$/ { 15395 /^0/ { 15396 s/^0 *\(.*\)$/\1/ 15397 p 15398 } 15399 }' 15400aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15401# Check for a 64-bit object if we didn't find anything. 15402if test -z "$aix_libpath"; then 15403 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15404fi 15405else 15406 echo "$as_me: failed program was:" >&5 15407sed 's/^/| /' conftest.$ac_ext >&5 15408 15409 15410fi 15411 15412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15413 conftest$ac_exeext conftest.$ac_ext 15414if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15415 15416 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15417 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" 15418 else 15419 if test "$host_cpu" = ia64; then 15420 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15421 allow_undefined_flag_F77="-z nodefs" 15422 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" 15423 else 15424 # Determine the default libpath from the value encoded in an empty executable. 15425 cat >conftest.$ac_ext <<_ACEOF 15426 program main 15427 15428 end 15429_ACEOF 15430rm -f conftest.$ac_objext conftest$ac_exeext 15431if { (ac_try="$ac_link" 15432case "(($ac_try" in 15433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15434 *) ac_try_echo=$ac_try;; 15435esac 15436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15437 (eval "$ac_link") 2>conftest.er1 15438 ac_status=$? 15439 grep -v '^ *+' conftest.er1 >conftest.err 15440 rm -f conftest.er1 15441 cat conftest.err >&5 15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15443 (exit $ac_status); } && { 15444 test -z "$ac_f77_werror_flag" || 15445 test ! -s conftest.err 15446 } && test -s conftest$ac_exeext && 15447 $as_test_x conftest$ac_exeext; then 15448 15449lt_aix_libpath_sed=' 15450 /Import File Strings/,/^$/ { 15451 /^0/ { 15452 s/^0 *\(.*\)$/\1/ 15453 p 15454 } 15455 }' 15456aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15457# Check for a 64-bit object if we didn't find anything. 15458if test -z "$aix_libpath"; then 15459 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15460fi 15461else 15462 echo "$as_me: failed program was:" >&5 15463sed 's/^/| /' conftest.$ac_ext >&5 15464 15465 15466fi 15467 15468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15469 conftest$ac_exeext conftest.$ac_ext 15470if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15471 15472 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15473 # Warning - without using the other run time loading flags, 15474 # -berok will link without error, but may produce a broken library. 15475 no_undefined_flag_F77=' ${wl}-bernotok' 15476 allow_undefined_flag_F77=' ${wl}-berok' 15477 # Exported symbols can be pulled into shared objects from archives 15478 whole_archive_flag_spec_F77='$convenience' 15479 archive_cmds_need_lc_F77=yes 15480 # This is similar to how AIX traditionally builds its shared libraries. 15481 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' 15482 fi 15483 fi 15484 ;; 15485 15486 amigaos*) 15487 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)' 15488 hardcode_libdir_flag_spec_F77='-L$libdir' 15489 hardcode_minus_L_F77=yes 15490 # see comment about different semantics on the GNU ld section 15491 ld_shlibs_F77=no 15492 ;; 15493 15494 bsdi[45]*) 15495 export_dynamic_flag_spec_F77=-rdynamic 15496 ;; 15497 15498 cygwin* | mingw* | pw32*) 15499 # When not using gcc, we currently assume that we are using 15500 # Microsoft Visual C++. 15501 # hardcode_libdir_flag_spec is actually meaningless, as there is 15502 # no search path for DLLs. 15503 hardcode_libdir_flag_spec_F77=' ' 15504 allow_undefined_flag_F77=unsupported 15505 # Tell ltmain to make .lib files, not .a files. 15506 libext=lib 15507 # Tell ltmain to make .dll files, not .so files. 15508 shrext_cmds=".dll" 15509 # FIXME: Setting linknames here is a bad hack. 15510 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15511 # The linker will automatically build a .lib file if we build a DLL. 15512 old_archive_From_new_cmds_F77='true' 15513 # FIXME: Should let the user specify the lib program. 15514 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15515 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15516 enable_shared_with_static_runtimes_F77=yes 15517 ;; 15518 15519 darwin* | rhapsody*) 15520 case $host_os in 15521 rhapsody* | darwin1.[012]) 15522 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15523 ;; 15524 *) # Darwin 1.3 on 15525 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15526 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15527 else 15528 case ${MACOSX_DEPLOYMENT_TARGET} in 15529 10.[012]) 15530 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15531 ;; 15532 10.*) 15533 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15534 ;; 15535 esac 15536 fi 15537 ;; 15538 esac 15539 archive_cmds_need_lc_F77=no 15540 hardcode_direct_F77=no 15541 hardcode_automatic_F77=yes 15542 hardcode_shlibpath_var_F77=unsupported 15543 whole_archive_flag_spec_F77='' 15544 link_all_deplibs_F77=yes 15545 if test "$GCC" = yes ; then 15546 output_verbose_link_cmd='echo' 15547 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}" 15548 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15549 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}" 15550 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}" 15551 else 15552 case $cc_basename in 15553 xlc*) 15554 output_verbose_link_cmd='echo' 15555 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15556 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15557 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15558 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}' 15559 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}' 15560 ;; 15561 *) 15562 ld_shlibs_F77=no 15563 ;; 15564 esac 15565 fi 15566 ;; 15567 15568 dgux*) 15569 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15570 hardcode_libdir_flag_spec_F77='-L$libdir' 15571 hardcode_shlibpath_var_F77=no 15572 ;; 15573 15574 freebsd1*) 15575 ld_shlibs_F77=no 15576 ;; 15577 15578 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15579 # support. Future versions do this automatically, but an explicit c++rt0.o 15580 # does not break anything, and helps significantly (at the cost of a little 15581 # extra space). 15582 freebsd2.2*) 15583 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15584 hardcode_libdir_flag_spec_F77='-R$libdir' 15585 hardcode_direct_F77=yes 15586 hardcode_shlibpath_var_F77=no 15587 ;; 15588 15589 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15590 freebsd2*) 15591 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15592 hardcode_direct_F77=yes 15593 hardcode_minus_L_F77=yes 15594 hardcode_shlibpath_var_F77=no 15595 ;; 15596 15597 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15598 freebsd* | dragonfly*) 15599 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15600 hardcode_libdir_flag_spec_F77='-R$libdir' 15601 hardcode_direct_F77=yes 15602 hardcode_shlibpath_var_F77=no 15603 ;; 15604 15605 hpux9*) 15606 if test "$GCC" = yes; then 15607 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' 15608 else 15609 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' 15610 fi 15611 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15612 hardcode_libdir_separator_F77=: 15613 hardcode_direct_F77=yes 15614 15615 # hardcode_minus_L: Not really in the search PATH, 15616 # but as the default location of the library. 15617 hardcode_minus_L_F77=yes 15618 export_dynamic_flag_spec_F77='${wl}-E' 15619 ;; 15620 15621 hpux10*) 15622 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15623 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15624 else 15625 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15626 fi 15627 if test "$with_gnu_ld" = no; then 15628 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15629 hardcode_libdir_separator_F77=: 15630 15631 hardcode_direct_F77=yes 15632 export_dynamic_flag_spec_F77='${wl}-E' 15633 15634 # hardcode_minus_L: Not really in the search PATH, 15635 # but as the default location of the library. 15636 hardcode_minus_L_F77=yes 15637 fi 15638 ;; 15639 15640 hpux11*) 15641 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15642 case $host_cpu in 15643 hppa*64*) 15644 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15645 ;; 15646 ia64*) 15647 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15648 ;; 15649 *) 15650 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15651 ;; 15652 esac 15653 else 15654 case $host_cpu in 15655 hppa*64*) 15656 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15657 ;; 15658 ia64*) 15659 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15660 ;; 15661 *) 15662 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15663 ;; 15664 esac 15665 fi 15666 if test "$with_gnu_ld" = no; then 15667 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15668 hardcode_libdir_separator_F77=: 15669 15670 case $host_cpu in 15671 hppa*64*|ia64*) 15672 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15673 hardcode_direct_F77=no 15674 hardcode_shlibpath_var_F77=no 15675 ;; 15676 *) 15677 hardcode_direct_F77=yes 15678 export_dynamic_flag_spec_F77='${wl}-E' 15679 15680 # hardcode_minus_L: Not really in the search PATH, 15681 # but as the default location of the library. 15682 hardcode_minus_L_F77=yes 15683 ;; 15684 esac 15685 fi 15686 ;; 15687 15688 irix5* | irix6* | nonstopux*) 15689 if test "$GCC" = yes; then 15690 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' 15691 else 15692 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' 15693 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15694 fi 15695 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15696 hardcode_libdir_separator_F77=: 15697 link_all_deplibs_F77=yes 15698 ;; 15699 15700 netbsd* | netbsdelf*-gnu) 15701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15702 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15703 else 15704 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15705 fi 15706 hardcode_libdir_flag_spec_F77='-R$libdir' 15707 hardcode_direct_F77=yes 15708 hardcode_shlibpath_var_F77=no 15709 ;; 15710 15711 newsos6) 15712 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15713 hardcode_direct_F77=yes 15714 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15715 hardcode_libdir_separator_F77=: 15716 hardcode_shlibpath_var_F77=no 15717 ;; 15718 15719 openbsd*) 15720 if test -f /usr/libexec/ld.so; then 15721 hardcode_direct_F77=yes 15722 hardcode_shlibpath_var_F77=no 15723 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15724 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15725 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15726 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15727 export_dynamic_flag_spec_F77='${wl}-E' 15728 else 15729 case $host_os in 15730 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15731 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15732 hardcode_libdir_flag_spec_F77='-R$libdir' 15733 ;; 15734 *) 15735 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15736 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15737 ;; 15738 esac 15739 fi 15740 else 15741 ld_shlibs_F77=no 15742 fi 15743 ;; 15744 15745 os2*) 15746 hardcode_libdir_flag_spec_F77='-L$libdir' 15747 hardcode_minus_L_F77=yes 15748 allow_undefined_flag_F77=unsupported 15749 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' 15750 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15751 ;; 15752 15753 osf3*) 15754 if test "$GCC" = yes; then 15755 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15756 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' 15757 else 15758 allow_undefined_flag_F77=' -expect_unresolved \*' 15759 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' 15760 fi 15761 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15762 hardcode_libdir_separator_F77=: 15763 ;; 15764 15765 osf4* | osf5*) # as osf3* with the addition of -msym flag 15766 if test "$GCC" = yes; then 15767 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15768 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' 15769 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15770 else 15771 allow_undefined_flag_F77=' -expect_unresolved \*' 15772 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' 15773 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~ 15774 $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' 15775 15776 # Both c and cxx compiler support -rpath directly 15777 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15778 fi 15779 hardcode_libdir_separator_F77=: 15780 ;; 15781 15782 solaris*) 15783 no_undefined_flag_F77=' -z text' 15784 if test "$GCC" = yes; then 15785 wlarc='${wl}' 15786 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15787 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15788 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15789 else 15790 wlarc='' 15791 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15792 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15793 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15794 fi 15795 hardcode_libdir_flag_spec_F77='-R$libdir' 15796 hardcode_shlibpath_var_F77=no 15797 case $host_os in 15798 solaris2.[0-5] | solaris2.[0-5].*) ;; 15799 *) 15800 # The compiler driver will combine and reorder linker options, 15801 # but understands `-z linker_flag'. GCC discards it without `$wl', 15802 # but is careful enough not to reorder. 15803 # Supported since Solaris 2.6 (maybe 2.5.1?) 15804 if test "$GCC" = yes; then 15805 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15806 else 15807 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15808 fi 15809 ;; 15810 esac 15811 link_all_deplibs_F77=yes 15812 ;; 15813 15814 sunos4*) 15815 if test "x$host_vendor" = xsequent; then 15816 # Use $CC to link under sequent, because it throws in some extra .o 15817 # files that make .init and .fini sections work. 15818 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15819 else 15820 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15821 fi 15822 hardcode_libdir_flag_spec_F77='-L$libdir' 15823 hardcode_direct_F77=yes 15824 hardcode_minus_L_F77=yes 15825 hardcode_shlibpath_var_F77=no 15826 ;; 15827 15828 sysv4) 15829 case $host_vendor in 15830 sni) 15831 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15832 hardcode_direct_F77=yes # is this really true??? 15833 ;; 15834 siemens) 15835 ## LD is ld it makes a PLAMLIB 15836 ## CC just makes a GrossModule. 15837 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15838 reload_cmds_F77='$CC -r -o $output$reload_objs' 15839 hardcode_direct_F77=no 15840 ;; 15841 motorola) 15842 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15843 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15844 ;; 15845 esac 15846 runpath_var='LD_RUN_PATH' 15847 hardcode_shlibpath_var_F77=no 15848 ;; 15849 15850 sysv4.3*) 15851 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15852 hardcode_shlibpath_var_F77=no 15853 export_dynamic_flag_spec_F77='-Bexport' 15854 ;; 15855 15856 sysv4*MP*) 15857 if test -d /usr/nec; then 15858 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15859 hardcode_shlibpath_var_F77=no 15860 runpath_var=LD_RUN_PATH 15861 hardcode_runpath_var=yes 15862 ld_shlibs_F77=yes 15863 fi 15864 ;; 15865 15866 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15867 no_undefined_flag_F77='${wl}-z,text' 15868 archive_cmds_need_lc_F77=no 15869 hardcode_shlibpath_var_F77=no 15870 runpath_var='LD_RUN_PATH' 15871 15872 if test "$GCC" = yes; then 15873 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15874 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15875 else 15876 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15877 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15878 fi 15879 ;; 15880 15881 sysv5* | sco3.2v5* | sco5v6*) 15882 # Note: We can NOT use -z defs as we might desire, because we do not 15883 # link with -lc, and that would cause any symbols used from libc to 15884 # always be unresolved, which means just about no library would 15885 # ever link correctly. If we're not using GNU ld we use -z text 15886 # though, which does catch some bad symbols but isn't as heavy-handed 15887 # as -z defs. 15888 no_undefined_flag_F77='${wl}-z,text' 15889 allow_undefined_flag_F77='${wl}-z,nodefs' 15890 archive_cmds_need_lc_F77=no 15891 hardcode_shlibpath_var_F77=no 15892 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15893 hardcode_libdir_separator_F77=':' 15894 link_all_deplibs_F77=yes 15895 export_dynamic_flag_spec_F77='${wl}-Bexport' 15896 runpath_var='LD_RUN_PATH' 15897 15898 if test "$GCC" = yes; then 15899 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15900 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15901 else 15902 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15903 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15904 fi 15905 ;; 15906 15907 uts4*) 15908 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15909 hardcode_libdir_flag_spec_F77='-L$libdir' 15910 hardcode_shlibpath_var_F77=no 15911 ;; 15912 15913 *) 15914 ld_shlibs_F77=no 15915 ;; 15916 esac 15917 fi 15918 15919{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15920echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15921test "$ld_shlibs_F77" = no && can_build_shared=no 15922 15923# 15924# Do we need to explicitly link libc? 15925# 15926case "x$archive_cmds_need_lc_F77" in 15927x|xyes) 15928 # Assume -lc should be added 15929 archive_cmds_need_lc_F77=yes 15930 15931 if test "$enable_shared" = yes && test "$GCC" = yes; then 15932 case $archive_cmds_F77 in 15933 *'~'*) 15934 # FIXME: we may have to deal with multi-command sequences. 15935 ;; 15936 '$CC '*) 15937 # Test whether the compiler implicitly links with -lc since on some 15938 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15939 # to ld, don't add -lc before -lgcc. 15940 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15941echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15942 $rm conftest* 15943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15944 15945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15946 (eval $ac_compile) 2>&5 15947 ac_status=$? 15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15949 (exit $ac_status); } 2>conftest.err; then 15950 soname=conftest 15951 lib=conftest 15952 libobjs=conftest.$ac_objext 15953 deplibs= 15954 wl=$lt_prog_compiler_wl_F77 15955 pic_flag=$lt_prog_compiler_pic_F77 15956 compiler_flags=-v 15957 linker_flags=-v 15958 verstring= 15959 output_objdir=. 15960 libname=conftest 15961 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15962 allow_undefined_flag_F77= 15963 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15964 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15965 ac_status=$? 15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15967 (exit $ac_status); } 15968 then 15969 archive_cmds_need_lc_F77=no 15970 else 15971 archive_cmds_need_lc_F77=yes 15972 fi 15973 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15974 else 15975 cat conftest.err 1>&5 15976 fi 15977 $rm conftest* 15978 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15979echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15980 ;; 15981 esac 15982 fi 15983 ;; 15984esac 15985 15986{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15987echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15988library_names_spec= 15989libname_spec='lib$name' 15990soname_spec= 15991shrext_cmds=".so" 15992postinstall_cmds= 15993postuninstall_cmds= 15994finish_cmds= 15995finish_eval= 15996shlibpath_var= 15997shlibpath_overrides_runpath=unknown 15998version_type=none 15999dynamic_linker="$host_os ld.so" 16000sys_lib_dlsearch_path_spec="/lib /usr/lib" 16001 16002need_lib_prefix=unknown 16003hardcode_into_libs=no 16004 16005# when you set need_version to no, make sure it does not cause -set_version 16006# flags to be left without arguments 16007need_version=unknown 16008 16009case $host_os in 16010aix3*) 16011 version_type=linux 16012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16013 shlibpath_var=LIBPATH 16014 16015 # AIX 3 has no versioning support, so we append a major version to the name. 16016 soname_spec='${libname}${release}${shared_ext}$major' 16017 ;; 16018 16019aix[4-9]*) 16020 version_type=linux 16021 need_lib_prefix=no 16022 need_version=no 16023 hardcode_into_libs=yes 16024 if test "$host_cpu" = ia64; then 16025 # AIX 5 supports IA64 16026 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16027 shlibpath_var=LD_LIBRARY_PATH 16028 else 16029 # With GCC up to 2.95.x, collect2 would create an import file 16030 # for dependence libraries. The import file would start with 16031 # the line `#! .'. This would cause the generated library to 16032 # depend on `.', always an invalid library. This was fixed in 16033 # development snapshots of GCC prior to 3.0. 16034 case $host_os in 16035 aix4 | aix4.[01] | aix4.[01].*) 16036 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16037 echo ' yes ' 16038 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16039 : 16040 else 16041 can_build_shared=no 16042 fi 16043 ;; 16044 esac 16045 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16046 # soname into executable. Probably we can add versioning support to 16047 # collect2, so additional links can be useful in future. 16048 if test "$aix_use_runtimelinking" = yes; then 16049 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16050 # instead of lib<name>.a to let people know that these are not 16051 # typical AIX shared libraries. 16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16053 else 16054 # We preserve .a as extension for shared libraries through AIX4.2 16055 # and later when we are not doing run time linking. 16056 library_names_spec='${libname}${release}.a $libname.a' 16057 soname_spec='${libname}${release}${shared_ext}$major' 16058 fi 16059 shlibpath_var=LIBPATH 16060 fi 16061 ;; 16062 16063amigaos*) 16064 library_names_spec='$libname.ixlibrary $libname.a' 16065 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16066 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' 16067 ;; 16068 16069beos*) 16070 library_names_spec='${libname}${shared_ext}' 16071 dynamic_linker="$host_os ld.so" 16072 shlibpath_var=LIBRARY_PATH 16073 ;; 16074 16075bsdi[45]*) 16076 version_type=linux 16077 need_version=no 16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16079 soname_spec='${libname}${release}${shared_ext}$major' 16080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16081 shlibpath_var=LD_LIBRARY_PATH 16082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16084 # the default ld.so.conf also contains /usr/contrib/lib and 16085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16086 # libtool to hard-code these into programs 16087 ;; 16088 16089cygwin* | mingw* | pw32*) 16090 version_type=windows 16091 shrext_cmds=".dll" 16092 need_version=no 16093 need_lib_prefix=no 16094 16095 case $GCC,$host_os in 16096 yes,cygwin* | yes,mingw* | yes,pw32*) 16097 library_names_spec='$libname.dll.a' 16098 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16099 postinstall_cmds='base_file=`basename \${file}`~ 16100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16101 dldir=$destdir/`dirname \$dlpath`~ 16102 test -d \$dldir || mkdir -p \$dldir~ 16103 $install_prog $dir/$dlname \$dldir/$dlname~ 16104 chmod a+x \$dldir/$dlname' 16105 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16106 dlpath=$dir/\$dldll~ 16107 $rm \$dlpath' 16108 shlibpath_overrides_runpath=yes 16109 16110 case $host_os in 16111 cygwin*) 16112 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16113 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16114 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16115 ;; 16116 mingw*) 16117 # MinGW DLLs use traditional 'lib' prefix 16118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16120 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16121 # It is most probably a Windows format PATH printed by 16122 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16123 # path with ; separators, and with drive letters. We can handle the 16124 # drive letters (cygwin fileutils understands them), so leave them, 16125 # especially as we might pass files found there to a mingw objdump, 16126 # which wouldn't understand a cygwinified path. Ahh. 16127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16128 else 16129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16130 fi 16131 ;; 16132 pw32*) 16133 # pw32 DLLs use 'pw' prefix rather than 'lib' 16134 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16135 ;; 16136 esac 16137 ;; 16138 16139 *) 16140 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16141 ;; 16142 esac 16143 dynamic_linker='Win32 ld.exe' 16144 # FIXME: first we should search . and the directory the executable is in 16145 shlibpath_var=PATH 16146 ;; 16147 16148darwin* | rhapsody*) 16149 dynamic_linker="$host_os dyld" 16150 version_type=darwin 16151 need_lib_prefix=no 16152 need_version=no 16153 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16154 soname_spec='${libname}${release}${major}$shared_ext' 16155 shlibpath_overrides_runpath=yes 16156 shlibpath_var=DYLD_LIBRARY_PATH 16157 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16158 16159 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16160 ;; 16161 16162dgux*) 16163 version_type=linux 16164 need_lib_prefix=no 16165 need_version=no 16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16167 soname_spec='${libname}${release}${shared_ext}$major' 16168 shlibpath_var=LD_LIBRARY_PATH 16169 ;; 16170 16171freebsd1*) 16172 dynamic_linker=no 16173 ;; 16174 16175freebsd* | dragonfly*) 16176 # DragonFly does not have aout. When/if they implement a new 16177 # versioning mechanism, adjust this. 16178 if test -x /usr/bin/objformat; then 16179 objformat=`/usr/bin/objformat` 16180 else 16181 case $host_os in 16182 freebsd[123]*) objformat=aout ;; 16183 *) objformat=elf ;; 16184 esac 16185 fi 16186 version_type=freebsd-$objformat 16187 case $version_type in 16188 freebsd-elf*) 16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16190 need_version=no 16191 need_lib_prefix=no 16192 ;; 16193 freebsd-*) 16194 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16195 need_version=yes 16196 ;; 16197 esac 16198 shlibpath_var=LD_LIBRARY_PATH 16199 case $host_os in 16200 freebsd2*) 16201 shlibpath_overrides_runpath=yes 16202 ;; 16203 freebsd3.[01]* | freebsdelf3.[01]*) 16204 shlibpath_overrides_runpath=yes 16205 hardcode_into_libs=yes 16206 ;; 16207 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16208 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16209 shlibpath_overrides_runpath=no 16210 hardcode_into_libs=yes 16211 ;; 16212 *) # from 4.6 on, and DragonFly 16213 shlibpath_overrides_runpath=yes 16214 hardcode_into_libs=yes 16215 ;; 16216 esac 16217 ;; 16218 16219gnu*) 16220 version_type=linux 16221 need_lib_prefix=no 16222 need_version=no 16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16224 soname_spec='${libname}${release}${shared_ext}$major' 16225 shlibpath_var=LD_LIBRARY_PATH 16226 hardcode_into_libs=yes 16227 ;; 16228 16229hpux9* | hpux10* | hpux11*) 16230 # Give a soname corresponding to the major version so that dld.sl refuses to 16231 # link against other versions. 16232 version_type=sunos 16233 need_lib_prefix=no 16234 need_version=no 16235 case $host_cpu in 16236 ia64*) 16237 shrext_cmds='.so' 16238 hardcode_into_libs=yes 16239 dynamic_linker="$host_os dld.so" 16240 shlibpath_var=LD_LIBRARY_PATH 16241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16243 soname_spec='${libname}${release}${shared_ext}$major' 16244 if test "X$HPUX_IA64_MODE" = X32; then 16245 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16246 else 16247 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16248 fi 16249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16250 ;; 16251 hppa*64*) 16252 shrext_cmds='.sl' 16253 hardcode_into_libs=yes 16254 dynamic_linker="$host_os dld.sl" 16255 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16258 soname_spec='${libname}${release}${shared_ext}$major' 16259 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16261 ;; 16262 *) 16263 shrext_cmds='.sl' 16264 dynamic_linker="$host_os dld.sl" 16265 shlibpath_var=SHLIB_PATH 16266 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16268 soname_spec='${libname}${release}${shared_ext}$major' 16269 ;; 16270 esac 16271 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16272 postinstall_cmds='chmod 555 $lib' 16273 ;; 16274 16275interix[3-9]*) 16276 version_type=linux 16277 need_lib_prefix=no 16278 need_version=no 16279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16280 soname_spec='${libname}${release}${shared_ext}$major' 16281 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16282 shlibpath_var=LD_LIBRARY_PATH 16283 shlibpath_overrides_runpath=no 16284 hardcode_into_libs=yes 16285 ;; 16286 16287irix5* | irix6* | nonstopux*) 16288 case $host_os in 16289 nonstopux*) version_type=nonstopux ;; 16290 *) 16291 if test "$lt_cv_prog_gnu_ld" = yes; then 16292 version_type=linux 16293 else 16294 version_type=irix 16295 fi ;; 16296 esac 16297 need_lib_prefix=no 16298 need_version=no 16299 soname_spec='${libname}${release}${shared_ext}$major' 16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16301 case $host_os in 16302 irix5* | nonstopux*) 16303 libsuff= shlibsuff= 16304 ;; 16305 *) 16306 case $LD in # libtool.m4 will add one of these switches to LD 16307 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16308 libsuff= shlibsuff= libmagic=32-bit;; 16309 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16310 libsuff=32 shlibsuff=N32 libmagic=N32;; 16311 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16312 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16313 *) libsuff= shlibsuff= libmagic=never-match;; 16314 esac 16315 ;; 16316 esac 16317 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16318 shlibpath_overrides_runpath=no 16319 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16320 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16321 hardcode_into_libs=yes 16322 ;; 16323 16324# No shared lib support for Linux oldld, aout, or coff. 16325linux*oldld* | linux*aout* | linux*coff*) 16326 dynamic_linker=no 16327 ;; 16328 16329# This must be Linux ELF. 16330linux* | k*bsd*-gnu) 16331 version_type=linux 16332 need_lib_prefix=no 16333 need_version=no 16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16335 soname_spec='${libname}${release}${shared_ext}$major' 16336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16337 shlibpath_var=LD_LIBRARY_PATH 16338 shlibpath_overrides_runpath=no 16339 # This implies no fast_install, which is unacceptable. 16340 # Some rework will be needed to allow for fast_install 16341 # before this can be enabled. 16342 hardcode_into_libs=yes 16343 16344 # Append ld.so.conf contents to the search path 16345 if test -f /etc/ld.so.conf; then 16346 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' ' '` 16347 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16348 fi 16349 16350 # We used to test for /lib/ld.so.1 and disable shared libraries on 16351 # powerpc, because MkLinux only supported shared libraries with the 16352 # GNU dynamic linker. Since this was broken with cross compilers, 16353 # most powerpc-linux boxes support dynamic linking these days and 16354 # people can always --disable-shared, the test was removed, and we 16355 # assume the GNU/Linux dynamic linker is in use. 16356 dynamic_linker='GNU/Linux ld.so' 16357 ;; 16358 16359netbsdelf*-gnu) 16360 version_type=linux 16361 need_lib_prefix=no 16362 need_version=no 16363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16364 soname_spec='${libname}${release}${shared_ext}$major' 16365 shlibpath_var=LD_LIBRARY_PATH 16366 shlibpath_overrides_runpath=no 16367 hardcode_into_libs=yes 16368 dynamic_linker='NetBSD ld.elf_so' 16369 ;; 16370 16371netbsd*) 16372 version_type=sunos 16373 need_lib_prefix=no 16374 need_version=no 16375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16378 dynamic_linker='NetBSD (a.out) ld.so' 16379 else 16380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16381 soname_spec='${libname}${release}${shared_ext}$major' 16382 dynamic_linker='NetBSD ld.elf_so' 16383 fi 16384 shlibpath_var=LD_LIBRARY_PATH 16385 shlibpath_overrides_runpath=yes 16386 hardcode_into_libs=yes 16387 ;; 16388 16389newsos6) 16390 version_type=linux 16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16392 shlibpath_var=LD_LIBRARY_PATH 16393 shlibpath_overrides_runpath=yes 16394 ;; 16395 16396nto-qnx*) 16397 version_type=linux 16398 need_lib_prefix=no 16399 need_version=no 16400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16401 soname_spec='${libname}${release}${shared_ext}$major' 16402 shlibpath_var=LD_LIBRARY_PATH 16403 shlibpath_overrides_runpath=yes 16404 ;; 16405 16406openbsd*) 16407 version_type=sunos 16408 sys_lib_dlsearch_path_spec="/usr/lib" 16409 need_lib_prefix=no 16410 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16411 case $host_os in 16412 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16413 *) need_version=no ;; 16414 esac 16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16417 shlibpath_var=LD_LIBRARY_PATH 16418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16419 case $host_os in 16420 openbsd2.[89] | openbsd2.[89].*) 16421 shlibpath_overrides_runpath=no 16422 ;; 16423 *) 16424 shlibpath_overrides_runpath=yes 16425 ;; 16426 esac 16427 else 16428 shlibpath_overrides_runpath=yes 16429 fi 16430 ;; 16431 16432os2*) 16433 libname_spec='$name' 16434 shrext_cmds=".dll" 16435 need_lib_prefix=no 16436 library_names_spec='$libname${shared_ext} $libname.a' 16437 dynamic_linker='OS/2 ld.exe' 16438 shlibpath_var=LIBPATH 16439 ;; 16440 16441osf3* | osf4* | osf5*) 16442 version_type=osf 16443 need_lib_prefix=no 16444 need_version=no 16445 soname_spec='${libname}${release}${shared_ext}$major' 16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16447 shlibpath_var=LD_LIBRARY_PATH 16448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16449 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16450 ;; 16451 16452rdos*) 16453 dynamic_linker=no 16454 ;; 16455 16456solaris*) 16457 version_type=linux 16458 need_lib_prefix=no 16459 need_version=no 16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16461 soname_spec='${libname}${release}${shared_ext}$major' 16462 shlibpath_var=LD_LIBRARY_PATH 16463 shlibpath_overrides_runpath=yes 16464 hardcode_into_libs=yes 16465 # ldd complains unless libraries are executable 16466 postinstall_cmds='chmod +x $lib' 16467 ;; 16468 16469sunos4*) 16470 version_type=sunos 16471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16473 shlibpath_var=LD_LIBRARY_PATH 16474 shlibpath_overrides_runpath=yes 16475 if test "$with_gnu_ld" = yes; then 16476 need_lib_prefix=no 16477 fi 16478 need_version=yes 16479 ;; 16480 16481sysv4 | sysv4.3*) 16482 version_type=linux 16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16484 soname_spec='${libname}${release}${shared_ext}$major' 16485 shlibpath_var=LD_LIBRARY_PATH 16486 case $host_vendor in 16487 sni) 16488 shlibpath_overrides_runpath=no 16489 need_lib_prefix=no 16490 export_dynamic_flag_spec='${wl}-Blargedynsym' 16491 runpath_var=LD_RUN_PATH 16492 ;; 16493 siemens) 16494 need_lib_prefix=no 16495 ;; 16496 motorola) 16497 need_lib_prefix=no 16498 need_version=no 16499 shlibpath_overrides_runpath=no 16500 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16501 ;; 16502 esac 16503 ;; 16504 16505sysv4*MP*) 16506 if test -d /usr/nec ;then 16507 version_type=linux 16508 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16509 soname_spec='$libname${shared_ext}.$major' 16510 shlibpath_var=LD_LIBRARY_PATH 16511 fi 16512 ;; 16513 16514sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16515 version_type=freebsd-elf 16516 need_lib_prefix=no 16517 need_version=no 16518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16519 soname_spec='${libname}${release}${shared_ext}$major' 16520 shlibpath_var=LD_LIBRARY_PATH 16521 hardcode_into_libs=yes 16522 if test "$with_gnu_ld" = yes; then 16523 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16524 shlibpath_overrides_runpath=no 16525 else 16526 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16527 shlibpath_overrides_runpath=yes 16528 case $host_os in 16529 sco3.2v5*) 16530 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16531 ;; 16532 esac 16533 fi 16534 sys_lib_dlsearch_path_spec='/usr/lib' 16535 ;; 16536 16537uts4*) 16538 version_type=linux 16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16540 soname_spec='${libname}${release}${shared_ext}$major' 16541 shlibpath_var=LD_LIBRARY_PATH 16542 ;; 16543 16544*) 16545 dynamic_linker=no 16546 ;; 16547esac 16548{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16549echo "${ECHO_T}$dynamic_linker" >&6; } 16550test "$dynamic_linker" = no && can_build_shared=no 16551 16552if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16553 echo $ECHO_N "(cached) $ECHO_C" >&6 16554else 16555 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16556fi 16557 16558sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16559if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16560 echo $ECHO_N "(cached) $ECHO_C" >&6 16561else 16562 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16563fi 16564 16565sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16566 16567variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16568if test "$GCC" = yes; then 16569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16570fi 16571 16572{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16573echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16574hardcode_action_F77= 16575if test -n "$hardcode_libdir_flag_spec_F77" || \ 16576 test -n "$runpath_var_F77" || \ 16577 test "X$hardcode_automatic_F77" = "Xyes" ; then 16578 16579 # We can hardcode non-existant directories. 16580 if test "$hardcode_direct_F77" != no && 16581 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16582 # have to relink, otherwise we might link with an installed library 16583 # when we should be linking with a yet-to-be-installed one 16584 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16585 test "$hardcode_minus_L_F77" != no; then 16586 # Linking always hardcodes the temporary library directory. 16587 hardcode_action_F77=relink 16588 else 16589 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16590 hardcode_action_F77=immediate 16591 fi 16592else 16593 # We cannot hardcode anything, or else we can only hardcode existing 16594 # directories. 16595 hardcode_action_F77=unsupported 16596fi 16597{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16598echo "${ECHO_T}$hardcode_action_F77" >&6; } 16599 16600if test "$hardcode_action_F77" = relink; then 16601 # Fast installation is not supported 16602 enable_fast_install=no 16603elif test "$shlibpath_overrides_runpath" = yes || 16604 test "$enable_shared" = no; then 16605 # Fast installation is not necessary 16606 enable_fast_install=needless 16607fi 16608 16609 16610# The else clause should only fire when bootstrapping the 16611# libtool distribution, otherwise you forgot to ship ltmain.sh 16612# with your package, and you will get complaints that there are 16613# no rules to generate ltmain.sh. 16614if test -f "$ltmain"; then 16615 # See if we are running on zsh, and set the options which allow our commands through 16616 # without removal of \ escapes. 16617 if test -n "${ZSH_VERSION+set}" ; then 16618 setopt NO_GLOB_SUBST 16619 fi 16620 # Now quote all the things that may contain metacharacters while being 16621 # careful not to overquote the AC_SUBSTed values. We take copies of the 16622 # variables and quote the copies for generation of the libtool script. 16623 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16624 SED SHELL STRIP \ 16625 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16626 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16627 deplibs_check_method reload_flag reload_cmds need_locks \ 16628 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16629 lt_cv_sys_global_symbol_to_c_name_address \ 16630 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16631 old_postinstall_cmds old_postuninstall_cmds \ 16632 compiler_F77 \ 16633 CC_F77 \ 16634 LD_F77 \ 16635 lt_prog_compiler_wl_F77 \ 16636 lt_prog_compiler_pic_F77 \ 16637 lt_prog_compiler_static_F77 \ 16638 lt_prog_compiler_no_builtin_flag_F77 \ 16639 export_dynamic_flag_spec_F77 \ 16640 thread_safe_flag_spec_F77 \ 16641 whole_archive_flag_spec_F77 \ 16642 enable_shared_with_static_runtimes_F77 \ 16643 old_archive_cmds_F77 \ 16644 old_archive_from_new_cmds_F77 \ 16645 predep_objects_F77 \ 16646 postdep_objects_F77 \ 16647 predeps_F77 \ 16648 postdeps_F77 \ 16649 compiler_lib_search_path_F77 \ 16650 compiler_lib_search_dirs_F77 \ 16651 archive_cmds_F77 \ 16652 archive_expsym_cmds_F77 \ 16653 postinstall_cmds_F77 \ 16654 postuninstall_cmds_F77 \ 16655 old_archive_from_expsyms_cmds_F77 \ 16656 allow_undefined_flag_F77 \ 16657 no_undefined_flag_F77 \ 16658 export_symbols_cmds_F77 \ 16659 hardcode_libdir_flag_spec_F77 \ 16660 hardcode_libdir_flag_spec_ld_F77 \ 16661 hardcode_libdir_separator_F77 \ 16662 hardcode_automatic_F77 \ 16663 module_cmds_F77 \ 16664 module_expsym_cmds_F77 \ 16665 lt_cv_prog_compiler_c_o_F77 \ 16666 fix_srcfile_path_F77 \ 16667 exclude_expsyms_F77 \ 16668 include_expsyms_F77; do 16669 16670 case $var in 16671 old_archive_cmds_F77 | \ 16672 old_archive_from_new_cmds_F77 | \ 16673 archive_cmds_F77 | \ 16674 archive_expsym_cmds_F77 | \ 16675 module_cmds_F77 | \ 16676 module_expsym_cmds_F77 | \ 16677 old_archive_from_expsyms_cmds_F77 | \ 16678 export_symbols_cmds_F77 | \ 16679 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16680 postinstall_cmds | postuninstall_cmds | \ 16681 old_postinstall_cmds | old_postuninstall_cmds | \ 16682 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16683 # Double-quote double-evaled strings. 16684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16685 ;; 16686 *) 16687 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16688 ;; 16689 esac 16690 done 16691 16692 case $lt_echo in 16693 *'\$0 --fallback-echo"') 16694 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16695 ;; 16696 esac 16697 16698cfgfile="$ofile" 16699 16700 cat <<__EOF__ >> "$cfgfile" 16701# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16702 16703# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16704 16705# Shell to use when invoking shell scripts. 16706SHELL=$lt_SHELL 16707 16708# Whether or not to build shared libraries. 16709build_libtool_libs=$enable_shared 16710 16711# Whether or not to build static libraries. 16712build_old_libs=$enable_static 16713 16714# Whether or not to add -lc for building shared libraries. 16715build_libtool_need_lc=$archive_cmds_need_lc_F77 16716 16717# Whether or not to disallow shared libs when runtime libs are static 16718allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16719 16720# Whether or not to optimize for fast installation. 16721fast_install=$enable_fast_install 16722 16723# The host system. 16724host_alias=$host_alias 16725host=$host 16726host_os=$host_os 16727 16728# The build system. 16729build_alias=$build_alias 16730build=$build 16731build_os=$build_os 16732 16733# An echo program that does not interpret backslashes. 16734echo=$lt_echo 16735 16736# The archiver. 16737AR=$lt_AR 16738AR_FLAGS=$lt_AR_FLAGS 16739 16740# A C compiler. 16741LTCC=$lt_LTCC 16742 16743# LTCC compiler flags. 16744LTCFLAGS=$lt_LTCFLAGS 16745 16746# A language-specific compiler. 16747CC=$lt_compiler_F77 16748 16749# Is the compiler the GNU C compiler? 16750with_gcc=$GCC_F77 16751 16752# An ERE matcher. 16753EGREP=$lt_EGREP 16754 16755# The linker used to build libraries. 16756LD=$lt_LD_F77 16757 16758# Whether we need hard or soft links. 16759LN_S=$lt_LN_S 16760 16761# A BSD-compatible nm program. 16762NM=$lt_NM 16763 16764# A symbol stripping program 16765STRIP=$lt_STRIP 16766 16767# Used to examine libraries when file_magic_cmd begins "file" 16768MAGIC_CMD=$MAGIC_CMD 16769 16770# Used on cygwin: DLL creation program. 16771DLLTOOL="$DLLTOOL" 16772 16773# Used on cygwin: object dumper. 16774OBJDUMP="$OBJDUMP" 16775 16776# Used on cygwin: assembler. 16777AS="$AS" 16778 16779# The name of the directory that contains temporary libtool files. 16780objdir=$objdir 16781 16782# How to create reloadable object files. 16783reload_flag=$lt_reload_flag 16784reload_cmds=$lt_reload_cmds 16785 16786# How to pass a linker flag through the compiler. 16787wl=$lt_lt_prog_compiler_wl_F77 16788 16789# Object file suffix (normally "o"). 16790objext="$ac_objext" 16791 16792# Old archive suffix (normally "a"). 16793libext="$libext" 16794 16795# Shared library suffix (normally ".so"). 16796shrext_cmds='$shrext_cmds' 16797 16798# Executable file suffix (normally ""). 16799exeext="$exeext" 16800 16801# Additional compiler flags for building library objects. 16802pic_flag=$lt_lt_prog_compiler_pic_F77 16803pic_mode=$pic_mode 16804 16805# What is the maximum length of a command? 16806max_cmd_len=$lt_cv_sys_max_cmd_len 16807 16808# Does compiler simultaneously support -c and -o options? 16809compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16810 16811# Must we lock files when doing compilation? 16812need_locks=$lt_need_locks 16813 16814# Do we need the lib prefix for modules? 16815need_lib_prefix=$need_lib_prefix 16816 16817# Do we need a version for libraries? 16818need_version=$need_version 16819 16820# Whether dlopen is supported. 16821dlopen_support=$enable_dlopen 16822 16823# Whether dlopen of programs is supported. 16824dlopen_self=$enable_dlopen_self 16825 16826# Whether dlopen of statically linked programs is supported. 16827dlopen_self_static=$enable_dlopen_self_static 16828 16829# Compiler flag to prevent dynamic linking. 16830link_static_flag=$lt_lt_prog_compiler_static_F77 16831 16832# Compiler flag to turn off builtin functions. 16833no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16834 16835# Compiler flag to allow reflexive dlopens. 16836export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16837 16838# Compiler flag to generate shared objects directly from archives. 16839whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16840 16841# Compiler flag to generate thread-safe objects. 16842thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16843 16844# Library versioning type. 16845version_type=$version_type 16846 16847# Format of library name prefix. 16848libname_spec=$lt_libname_spec 16849 16850# List of archive names. First name is the real one, the rest are links. 16851# The last name is the one that the linker finds with -lNAME. 16852library_names_spec=$lt_library_names_spec 16853 16854# The coded name of the library, if different from the real name. 16855soname_spec=$lt_soname_spec 16856 16857# Commands used to build and install an old-style archive. 16858RANLIB=$lt_RANLIB 16859old_archive_cmds=$lt_old_archive_cmds_F77 16860old_postinstall_cmds=$lt_old_postinstall_cmds 16861old_postuninstall_cmds=$lt_old_postuninstall_cmds 16862 16863# Create an old-style archive from a shared archive. 16864old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16865 16866# Create a temporary old-style archive to link instead of a shared archive. 16867old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16868 16869# Commands used to build and install a shared archive. 16870archive_cmds=$lt_archive_cmds_F77 16871archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16872postinstall_cmds=$lt_postinstall_cmds 16873postuninstall_cmds=$lt_postuninstall_cmds 16874 16875# Commands used to build a loadable module (assumed same as above if empty) 16876module_cmds=$lt_module_cmds_F77 16877module_expsym_cmds=$lt_module_expsym_cmds_F77 16878 16879# Commands to strip libraries. 16880old_striplib=$lt_old_striplib 16881striplib=$lt_striplib 16882 16883# Dependencies to place before the objects being linked to create a 16884# shared library. 16885predep_objects=$lt_predep_objects_F77 16886 16887# Dependencies to place after the objects being linked to create a 16888# shared library. 16889postdep_objects=$lt_postdep_objects_F77 16890 16891# Dependencies to place before the objects being linked to create a 16892# shared library. 16893predeps=$lt_predeps_F77 16894 16895# Dependencies to place after the objects being linked to create a 16896# shared library. 16897postdeps=$lt_postdeps_F77 16898 16899# The directories searched by this compiler when creating a shared 16900# library 16901compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16902 16903# The library search path used internally by the compiler when linking 16904# a shared library. 16905compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16906 16907# Method to check whether dependent libraries are shared objects. 16908deplibs_check_method=$lt_deplibs_check_method 16909 16910# Command to use when deplibs_check_method == file_magic. 16911file_magic_cmd=$lt_file_magic_cmd 16912 16913# Flag that allows shared libraries with undefined symbols to be built. 16914allow_undefined_flag=$lt_allow_undefined_flag_F77 16915 16916# Flag that forces no undefined symbols. 16917no_undefined_flag=$lt_no_undefined_flag_F77 16918 16919# Commands used to finish a libtool library installation in a directory. 16920finish_cmds=$lt_finish_cmds 16921 16922# Same as above, but a single script fragment to be evaled but not shown. 16923finish_eval=$lt_finish_eval 16924 16925# Take the output of nm and produce a listing of raw symbols and C names. 16926global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16927 16928# Transform the output of nm in a proper C declaration 16929global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16930 16931# Transform the output of nm in a C name address pair 16932global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16933 16934# This is the shared library runtime path variable. 16935runpath_var=$runpath_var 16936 16937# This is the shared library path variable. 16938shlibpath_var=$shlibpath_var 16939 16940# Is shlibpath searched before the hard-coded library search path? 16941shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16942 16943# How to hardcode a shared library path into an executable. 16944hardcode_action=$hardcode_action_F77 16945 16946# Whether we should hardcode library paths into libraries. 16947hardcode_into_libs=$hardcode_into_libs 16948 16949# Flag to hardcode \$libdir into a binary during linking. 16950# This must work even if \$libdir does not exist. 16951hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16952 16953# If ld is used when linking, flag to hardcode \$libdir into 16954# a binary during linking. This must work even if \$libdir does 16955# not exist. 16956hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16957 16958# Whether we need a single -rpath flag with a separated argument. 16959hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16960 16961# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16962# resulting binary. 16963hardcode_direct=$hardcode_direct_F77 16964 16965# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16966# resulting binary. 16967hardcode_minus_L=$hardcode_minus_L_F77 16968 16969# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16970# the resulting binary. 16971hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16972 16973# Set to yes if building a shared library automatically hardcodes DIR into the library 16974# and all subsequent libraries and executables linked against it. 16975hardcode_automatic=$hardcode_automatic_F77 16976 16977# Variables whose values should be saved in libtool wrapper scripts and 16978# restored at relink time. 16979variables_saved_for_relink="$variables_saved_for_relink" 16980 16981# Whether libtool must link a program against all its dependency libraries. 16982link_all_deplibs=$link_all_deplibs_F77 16983 16984# Compile-time system search path for libraries 16985sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16986 16987# Run-time system search path for libraries 16988sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16989 16990# Fix the shell variable \$srcfile for the compiler. 16991fix_srcfile_path=$lt_fix_srcfile_path 16992 16993# Set to yes if exported symbols are required. 16994always_export_symbols=$always_export_symbols_F77 16995 16996# The commands to list exported symbols. 16997export_symbols_cmds=$lt_export_symbols_cmds_F77 16998 16999# The commands to extract the exported symbol list from a shared archive. 17000extract_expsyms_cmds=$lt_extract_expsyms_cmds 17001 17002# Symbols that should not be listed in the preloaded symbols. 17003exclude_expsyms=$lt_exclude_expsyms_F77 17004 17005# Symbols that must always be exported. 17006include_expsyms=$lt_include_expsyms_F77 17007 17008# ### END LIBTOOL TAG CONFIG: $tagname 17009 17010__EOF__ 17011 17012 17013else 17014 # If there is no Makefile yet, we rely on a make rule to execute 17015 # `config.status --recheck' to rerun these tests and create the 17016 # libtool script then. 17017 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17018 if test -f "$ltmain_in"; then 17019 test -f Makefile && make "$ltmain" 17020 fi 17021fi 17022 17023 17024ac_ext=c 17025ac_cpp='$CPP $CPPFLAGS' 17026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17028ac_compiler_gnu=$ac_cv_c_compiler_gnu 17029 17030CC="$lt_save_CC" 17031 17032 else 17033 tagname="" 17034 fi 17035 ;; 17036 17037 GCJ) 17038 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17039 17040 17041# Source file extension for Java test sources. 17042ac_ext=java 17043 17044# Object file extension for compiled Java test sources. 17045objext=o 17046objext_GCJ=$objext 17047 17048# Code to be used in simple compile tests 17049lt_simple_compile_test_code="class foo {}" 17050 17051# Code to be used in simple link tests 17052lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 17053 17054# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17055 17056# If no C compiler was specified, use CC. 17057LTCC=${LTCC-"$CC"} 17058 17059# If no C compiler flags were specified, use CFLAGS. 17060LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17061 17062# Allow CC to be a program name with arguments. 17063compiler=$CC 17064 17065 17066# save warnings/boilerplate of simple test code 17067ac_outfile=conftest.$ac_objext 17068echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17069eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17070_lt_compiler_boilerplate=`cat conftest.err` 17071$rm conftest* 17072 17073ac_outfile=conftest.$ac_objext 17074echo "$lt_simple_link_test_code" >conftest.$ac_ext 17075eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17076_lt_linker_boilerplate=`cat conftest.err` 17077$rm -r conftest* 17078 17079 17080# Allow CC to be a program name with arguments. 17081lt_save_CC="$CC" 17082CC=${GCJ-"gcj"} 17083compiler=$CC 17084compiler_GCJ=$CC 17085for cc_temp in $compiler""; do 17086 case $cc_temp in 17087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17089 \-*) ;; 17090 *) break;; 17091 esac 17092done 17093cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17094 17095 17096# GCJ did not exist at the time GCC didn't implicitly link libc in. 17097archive_cmds_need_lc_GCJ=no 17098 17099old_archive_cmds_GCJ=$old_archive_cmds 17100 17101 17102lt_prog_compiler_no_builtin_flag_GCJ= 17103 17104if test "$GCC" = yes; then 17105 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17106 17107 17108{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17109echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 17110if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17111 echo $ECHO_N "(cached) $ECHO_C" >&6 17112else 17113 lt_cv_prog_compiler_rtti_exceptions=no 17114 ac_outfile=conftest.$ac_objext 17115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17116 lt_compiler_flag="-fno-rtti -fno-exceptions" 17117 # Insert the option either (1) after the last *FLAGS variable, or 17118 # (2) before a word containing "conftest.", or (3) at the end. 17119 # Note that $ac_compile itself does not contain backslashes and begins 17120 # with a dollar sign (not a hyphen), so the echo should work correctly. 17121 # The option is referenced via a variable to avoid confusing sed. 17122 lt_compile=`echo "$ac_compile" | $SED \ 17123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17125 -e 's:$: $lt_compiler_flag:'` 17126 (eval echo "\"\$as_me:17126: $lt_compile\"" >&5) 17127 (eval "$lt_compile" 2>conftest.err) 17128 ac_status=$? 17129 cat conftest.err >&5 17130 echo "$as_me:17130: \$? = $ac_status" >&5 17131 if (exit $ac_status) && test -s "$ac_outfile"; then 17132 # The compiler can only warn and ignore the option if not recognized 17133 # So say no if there are warnings other than the usual output. 17134 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17136 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17137 lt_cv_prog_compiler_rtti_exceptions=yes 17138 fi 17139 fi 17140 $rm conftest* 17141 17142fi 17143{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17144echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 17145 17146if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17147 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17148else 17149 : 17150fi 17151 17152fi 17153 17154lt_prog_compiler_wl_GCJ= 17155lt_prog_compiler_pic_GCJ= 17156lt_prog_compiler_static_GCJ= 17157 17158{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17159echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 17160 17161 if test "$GCC" = yes; then 17162 lt_prog_compiler_wl_GCJ='-Wl,' 17163 lt_prog_compiler_static_GCJ='-static' 17164 17165 case $host_os in 17166 aix*) 17167 # All AIX code is PIC. 17168 if test "$host_cpu" = ia64; then 17169 # AIX 5 now supports IA64 processor 17170 lt_prog_compiler_static_GCJ='-Bstatic' 17171 fi 17172 ;; 17173 17174 amigaos*) 17175 # FIXME: we need at least 68020 code to build shared libraries, but 17176 # adding the `-m68020' flag to GCC prevents building anything better, 17177 # like `-m68040'. 17178 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17179 ;; 17180 17181 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17182 # PIC is the default for these OSes. 17183 ;; 17184 17185 mingw* | cygwin* | pw32* | os2*) 17186 # This hack is so that the source file can tell whether it is being 17187 # built for inclusion in a dll (and should export symbols for example). 17188 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17189 # (--disable-auto-import) libraries 17190 17191 ;; 17192 17193 darwin* | rhapsody*) 17194 # PIC is the default on this platform 17195 # Common symbols not allowed in MH_DYLIB files 17196 lt_prog_compiler_pic_GCJ='-fno-common' 17197 ;; 17198 17199 interix[3-9]*) 17200 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17201 # Instead, we relocate shared libraries at runtime. 17202 ;; 17203 17204 msdosdjgpp*) 17205 # Just because we use GCC doesn't mean we suddenly get shared libraries 17206 # on systems that don't support them. 17207 lt_prog_compiler_can_build_shared_GCJ=no 17208 enable_shared=no 17209 ;; 17210 17211 sysv4*MP*) 17212 if test -d /usr/nec; then 17213 lt_prog_compiler_pic_GCJ=-Kconform_pic 17214 fi 17215 ;; 17216 17217 hpux*) 17218 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17219 # not for PA HP-UX. 17220 case $host_cpu in 17221 hppa*64*|ia64*) 17222 # +Z the default 17223 ;; 17224 *) 17225 lt_prog_compiler_pic_GCJ='-fPIC' 17226 ;; 17227 esac 17228 ;; 17229 17230 *) 17231 lt_prog_compiler_pic_GCJ='-fPIC' 17232 ;; 17233 esac 17234 else 17235 # PORTME Check for flag to pass linker flags through the system compiler. 17236 case $host_os in 17237 aix*) 17238 lt_prog_compiler_wl_GCJ='-Wl,' 17239 if test "$host_cpu" = ia64; then 17240 # AIX 5 now supports IA64 processor 17241 lt_prog_compiler_static_GCJ='-Bstatic' 17242 else 17243 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17244 fi 17245 ;; 17246 darwin*) 17247 # PIC is the default on this platform 17248 # Common symbols not allowed in MH_DYLIB files 17249 case $cc_basename in 17250 xlc*) 17251 lt_prog_compiler_pic_GCJ='-qnocommon' 17252 lt_prog_compiler_wl_GCJ='-Wl,' 17253 ;; 17254 esac 17255 ;; 17256 17257 mingw* | cygwin* | pw32* | os2*) 17258 # This hack is so that the source file can tell whether it is being 17259 # built for inclusion in a dll (and should export symbols for example). 17260 17261 ;; 17262 17263 hpux9* | hpux10* | hpux11*) 17264 lt_prog_compiler_wl_GCJ='-Wl,' 17265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17266 # not for PA HP-UX. 17267 case $host_cpu in 17268 hppa*64*|ia64*) 17269 # +Z the default 17270 ;; 17271 *) 17272 lt_prog_compiler_pic_GCJ='+Z' 17273 ;; 17274 esac 17275 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17276 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17277 ;; 17278 17279 irix5* | irix6* | nonstopux*) 17280 lt_prog_compiler_wl_GCJ='-Wl,' 17281 # PIC (with -KPIC) is the default. 17282 lt_prog_compiler_static_GCJ='-non_shared' 17283 ;; 17284 17285 newsos6) 17286 lt_prog_compiler_pic_GCJ='-KPIC' 17287 lt_prog_compiler_static_GCJ='-Bstatic' 17288 ;; 17289 17290 linux* | k*bsd*-gnu) 17291 case $cc_basename in 17292 icc* | ecc*) 17293 lt_prog_compiler_wl_GCJ='-Wl,' 17294 lt_prog_compiler_pic_GCJ='-KPIC' 17295 lt_prog_compiler_static_GCJ='-static' 17296 ;; 17297 pgcc* | pgf77* | pgf90* | pgf95*) 17298 # Portland Group compilers (*not* the Pentium gcc compiler, 17299 # which looks to be a dead project) 17300 lt_prog_compiler_wl_GCJ='-Wl,' 17301 lt_prog_compiler_pic_GCJ='-fpic' 17302 lt_prog_compiler_static_GCJ='-Bstatic' 17303 ;; 17304 ccc*) 17305 lt_prog_compiler_wl_GCJ='-Wl,' 17306 # All Alpha code is PIC. 17307 lt_prog_compiler_static_GCJ='-non_shared' 17308 ;; 17309 *) 17310 case `$CC -V 2>&1 | sed 5q` in 17311 *Sun\ C*) 17312 # Sun C 5.9 17313 lt_prog_compiler_pic_GCJ='-KPIC' 17314 lt_prog_compiler_static_GCJ='-Bstatic' 17315 lt_prog_compiler_wl_GCJ='-Wl,' 17316 ;; 17317 *Sun\ F*) 17318 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17319 lt_prog_compiler_pic_GCJ='-KPIC' 17320 lt_prog_compiler_static_GCJ='-Bstatic' 17321 lt_prog_compiler_wl_GCJ='' 17322 ;; 17323 esac 17324 ;; 17325 esac 17326 ;; 17327 17328 osf3* | osf4* | osf5*) 17329 lt_prog_compiler_wl_GCJ='-Wl,' 17330 # All OSF/1 code is PIC. 17331 lt_prog_compiler_static_GCJ='-non_shared' 17332 ;; 17333 17334 rdos*) 17335 lt_prog_compiler_static_GCJ='-non_shared' 17336 ;; 17337 17338 solaris*) 17339 lt_prog_compiler_pic_GCJ='-KPIC' 17340 lt_prog_compiler_static_GCJ='-Bstatic' 17341 case $cc_basename in 17342 f77* | f90* | f95*) 17343 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17344 *) 17345 lt_prog_compiler_wl_GCJ='-Wl,';; 17346 esac 17347 ;; 17348 17349 sunos4*) 17350 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17351 lt_prog_compiler_pic_GCJ='-PIC' 17352 lt_prog_compiler_static_GCJ='-Bstatic' 17353 ;; 17354 17355 sysv4 | sysv4.2uw2* | sysv4.3*) 17356 lt_prog_compiler_wl_GCJ='-Wl,' 17357 lt_prog_compiler_pic_GCJ='-KPIC' 17358 lt_prog_compiler_static_GCJ='-Bstatic' 17359 ;; 17360 17361 sysv4*MP*) 17362 if test -d /usr/nec ;then 17363 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17364 lt_prog_compiler_static_GCJ='-Bstatic' 17365 fi 17366 ;; 17367 17368 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17369 lt_prog_compiler_wl_GCJ='-Wl,' 17370 lt_prog_compiler_pic_GCJ='-KPIC' 17371 lt_prog_compiler_static_GCJ='-Bstatic' 17372 ;; 17373 17374 unicos*) 17375 lt_prog_compiler_wl_GCJ='-Wl,' 17376 lt_prog_compiler_can_build_shared_GCJ=no 17377 ;; 17378 17379 uts4*) 17380 lt_prog_compiler_pic_GCJ='-pic' 17381 lt_prog_compiler_static_GCJ='-Bstatic' 17382 ;; 17383 17384 *) 17385 lt_prog_compiler_can_build_shared_GCJ=no 17386 ;; 17387 esac 17388 fi 17389 17390{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17391echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 17392 17393# 17394# Check to make sure the PIC flag actually works. 17395# 17396if test -n "$lt_prog_compiler_pic_GCJ"; then 17397 17398{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17399echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 17400if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17401 echo $ECHO_N "(cached) $ECHO_C" >&6 17402else 17403 lt_cv_prog_compiler_pic_works_GCJ=no 17404 ac_outfile=conftest.$ac_objext 17405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17406 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17407 # Insert the option either (1) after the last *FLAGS variable, or 17408 # (2) before a word containing "conftest.", or (3) at the end. 17409 # Note that $ac_compile itself does not contain backslashes and begins 17410 # with a dollar sign (not a hyphen), so the echo should work correctly. 17411 # The option is referenced via a variable to avoid confusing sed. 17412 lt_compile=`echo "$ac_compile" | $SED \ 17413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17415 -e 's:$: $lt_compiler_flag:'` 17416 (eval echo "\"\$as_me:17416: $lt_compile\"" >&5) 17417 (eval "$lt_compile" 2>conftest.err) 17418 ac_status=$? 17419 cat conftest.err >&5 17420 echo "$as_me:17420: \$? = $ac_status" >&5 17421 if (exit $ac_status) && test -s "$ac_outfile"; then 17422 # The compiler can only warn and ignore the option if not recognized 17423 # So say no if there are warnings other than the usual output. 17424 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17427 lt_cv_prog_compiler_pic_works_GCJ=yes 17428 fi 17429 fi 17430 $rm conftest* 17431 17432fi 17433{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17434echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17435 17436if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17437 case $lt_prog_compiler_pic_GCJ in 17438 "" | " "*) ;; 17439 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17440 esac 17441else 17442 lt_prog_compiler_pic_GCJ= 17443 lt_prog_compiler_can_build_shared_GCJ=no 17444fi 17445 17446fi 17447case $host_os in 17448 # For platforms which do not support PIC, -DPIC is meaningless: 17449 *djgpp*) 17450 lt_prog_compiler_pic_GCJ= 17451 ;; 17452 *) 17453 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17454 ;; 17455esac 17456 17457# 17458# Check to make sure the static flag actually works. 17459# 17460wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17461{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17462echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17463if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17464 echo $ECHO_N "(cached) $ECHO_C" >&6 17465else 17466 lt_cv_prog_compiler_static_works_GCJ=no 17467 save_LDFLAGS="$LDFLAGS" 17468 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17469 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17470 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17471 # The linker can only warn and ignore the option if not recognized 17472 # So say no if there are warnings 17473 if test -s conftest.err; then 17474 # Append any errors to the config.log. 17475 cat conftest.err 1>&5 17476 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17478 if diff conftest.exp conftest.er2 >/dev/null; then 17479 lt_cv_prog_compiler_static_works_GCJ=yes 17480 fi 17481 else 17482 lt_cv_prog_compiler_static_works_GCJ=yes 17483 fi 17484 fi 17485 $rm -r conftest* 17486 LDFLAGS="$save_LDFLAGS" 17487 17488fi 17489{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17490echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17491 17492if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17493 : 17494else 17495 lt_prog_compiler_static_GCJ= 17496fi 17497 17498 17499{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17500echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17501if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17502 echo $ECHO_N "(cached) $ECHO_C" >&6 17503else 17504 lt_cv_prog_compiler_c_o_GCJ=no 17505 $rm -r conftest 2>/dev/null 17506 mkdir conftest 17507 cd conftest 17508 mkdir out 17509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17510 17511 lt_compiler_flag="-o out/conftest2.$ac_objext" 17512 # Insert the option either (1) after the last *FLAGS variable, or 17513 # (2) before a word containing "conftest.", or (3) at the end. 17514 # Note that $ac_compile itself does not contain backslashes and begins 17515 # with a dollar sign (not a hyphen), so the echo should work correctly. 17516 lt_compile=`echo "$ac_compile" | $SED \ 17517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17519 -e 's:$: $lt_compiler_flag:'` 17520 (eval echo "\"\$as_me:17520: $lt_compile\"" >&5) 17521 (eval "$lt_compile" 2>out/conftest.err) 17522 ac_status=$? 17523 cat out/conftest.err >&5 17524 echo "$as_me:17524: \$? = $ac_status" >&5 17525 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17526 then 17527 # The compiler can only warn and ignore the option if not recognized 17528 # So say no if there are warnings 17529 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17530 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17531 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17532 lt_cv_prog_compiler_c_o_GCJ=yes 17533 fi 17534 fi 17535 chmod u+w . 2>&5 17536 $rm conftest* 17537 # SGI C++ compiler will create directory out/ii_files/ for 17538 # template instantiation 17539 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17540 $rm out/* && rmdir out 17541 cd .. 17542 rmdir conftest 17543 $rm conftest* 17544 17545fi 17546{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17547echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17548 17549 17550hard_links="nottested" 17551if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17552 # do not overwrite the value of need_locks provided by the user 17553 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17554echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17555 hard_links=yes 17556 $rm conftest* 17557 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17558 touch conftest.a 17559 ln conftest.a conftest.b 2>&5 || hard_links=no 17560 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17561 { echo "$as_me:$LINENO: result: $hard_links" >&5 17562echo "${ECHO_T}$hard_links" >&6; } 17563 if test "$hard_links" = no; then 17564 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17565echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17566 need_locks=warn 17567 fi 17568else 17569 need_locks=no 17570fi 17571 17572{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17573echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17574 17575 runpath_var= 17576 allow_undefined_flag_GCJ= 17577 enable_shared_with_static_runtimes_GCJ=no 17578 archive_cmds_GCJ= 17579 archive_expsym_cmds_GCJ= 17580 old_archive_From_new_cmds_GCJ= 17581 old_archive_from_expsyms_cmds_GCJ= 17582 export_dynamic_flag_spec_GCJ= 17583 whole_archive_flag_spec_GCJ= 17584 thread_safe_flag_spec_GCJ= 17585 hardcode_libdir_flag_spec_GCJ= 17586 hardcode_libdir_flag_spec_ld_GCJ= 17587 hardcode_libdir_separator_GCJ= 17588 hardcode_direct_GCJ=no 17589 hardcode_minus_L_GCJ=no 17590 hardcode_shlibpath_var_GCJ=unsupported 17591 link_all_deplibs_GCJ=unknown 17592 hardcode_automatic_GCJ=no 17593 module_cmds_GCJ= 17594 module_expsym_cmds_GCJ= 17595 always_export_symbols_GCJ=no 17596 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17597 # include_expsyms should be a list of space-separated symbols to be *always* 17598 # included in the symbol list 17599 include_expsyms_GCJ= 17600 # exclude_expsyms can be an extended regexp of symbols to exclude 17601 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17602 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17603 # as well as any symbol that contains `d'. 17604 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17605 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17606 # platforms (ab)use it in PIC code, but their linkers get confused if 17607 # the symbol is explicitly referenced. Since portable code cannot 17608 # rely on this symbol name, it's probably fine to never include it in 17609 # preloaded symbol tables. 17610 # Exclude shared library initialization/finalization symbols. 17611 extract_expsyms_cmds= 17612 # Just being paranoid about ensuring that cc_basename is set. 17613 for cc_temp in $compiler""; do 17614 case $cc_temp in 17615 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17616 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17617 \-*) ;; 17618 *) break;; 17619 esac 17620done 17621cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17622 17623 case $host_os in 17624 cygwin* | mingw* | pw32*) 17625 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17626 # When not using gcc, we currently assume that we are using 17627 # Microsoft Visual C++. 17628 if test "$GCC" != yes; then 17629 with_gnu_ld=no 17630 fi 17631 ;; 17632 interix*) 17633 # we just hope/assume this is gcc and not c89 (= MSVC++) 17634 with_gnu_ld=yes 17635 ;; 17636 openbsd*) 17637 with_gnu_ld=no 17638 ;; 17639 esac 17640 17641 ld_shlibs_GCJ=yes 17642 if test "$with_gnu_ld" = yes; then 17643 # If archive_cmds runs LD, not CC, wlarc should be empty 17644 wlarc='${wl}' 17645 17646 # Set some defaults for GNU ld with shared library support. These 17647 # are reset later if shared libraries are not supported. Putting them 17648 # here allows them to be overridden if necessary. 17649 runpath_var=LD_RUN_PATH 17650 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17651 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17652 # ancient GNU ld didn't support --whole-archive et. al. 17653 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17654 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17655 else 17656 whole_archive_flag_spec_GCJ= 17657 fi 17658 supports_anon_versioning=no 17659 case `$LD -v 2>/dev/null` in 17660 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17661 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17662 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17663 *\ 2.11.*) ;; # other 2.11 versions 17664 *) supports_anon_versioning=yes ;; 17665 esac 17666 17667 # See if GNU ld supports shared libraries. 17668 case $host_os in 17669 aix[3-9]*) 17670 # On AIX/PPC, the GNU linker is very broken 17671 if test "$host_cpu" != ia64; then 17672 ld_shlibs_GCJ=no 17673 cat <<EOF 1>&2 17674 17675*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17676*** to be unable to reliably create shared libraries on AIX. 17677*** Therefore, libtool is disabling shared libraries support. If you 17678*** really care for shared libraries, you may want to modify your PATH 17679*** so that a non-GNU linker is found, and then restart. 17680 17681EOF 17682 fi 17683 ;; 17684 17685 amigaos*) 17686 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)' 17687 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17688 hardcode_minus_L_GCJ=yes 17689 17690 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17691 # that the semantics of dynamic libraries on AmigaOS, at least up 17692 # to version 4, is to share data among multiple programs linked 17693 # with the same dynamic library. Since this doesn't match the 17694 # behavior of shared libraries on other platforms, we can't use 17695 # them. 17696 ld_shlibs_GCJ=no 17697 ;; 17698 17699 beos*) 17700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17701 allow_undefined_flag_GCJ=unsupported 17702 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17703 # support --undefined. This deserves some investigation. FIXME 17704 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17705 else 17706 ld_shlibs_GCJ=no 17707 fi 17708 ;; 17709 17710 cygwin* | mingw* | pw32*) 17711 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17712 # as there is no search path for DLLs. 17713 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17714 allow_undefined_flag_GCJ=unsupported 17715 always_export_symbols_GCJ=no 17716 enable_shared_with_static_runtimes_GCJ=yes 17717 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17718 17719 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17720 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17721 # If the export-symbols file already is a .def file (1st line 17722 # is EXPORTS), use it as is; otherwise, prepend... 17723 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17724 cp $export_symbols $output_objdir/$soname.def; 17725 else 17726 echo EXPORTS > $output_objdir/$soname.def; 17727 cat $export_symbols >> $output_objdir/$soname.def; 17728 fi~ 17729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17730 else 17731 ld_shlibs_GCJ=no 17732 fi 17733 ;; 17734 17735 interix[3-9]*) 17736 hardcode_direct_GCJ=no 17737 hardcode_shlibpath_var_GCJ=no 17738 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17739 export_dynamic_flag_spec_GCJ='${wl}-E' 17740 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17741 # Instead, shared libraries are loaded at an image base (0x10000000 by 17742 # default) and relocated if they conflict, which is a slow very memory 17743 # consuming and fragmenting process. To avoid this, we pick a random, 17744 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17745 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17746 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' 17747 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' 17748 ;; 17749 17750 gnu* | linux* | k*bsd*-gnu) 17751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17752 tmp_addflag= 17753 case $cc_basename,$host_cpu in 17754 pgcc*) # Portland Group C compiler 17755 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' 17756 tmp_addflag=' $pic_flag' 17757 ;; 17758 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17759 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' 17760 tmp_addflag=' $pic_flag -Mnomain' ;; 17761 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17762 tmp_addflag=' -i_dynamic' ;; 17763 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17764 tmp_addflag=' -i_dynamic -nofor_main' ;; 17765 ifc* | ifort*) # Intel Fortran compiler 17766 tmp_addflag=' -nofor_main' ;; 17767 esac 17768 case `$CC -V 2>&1 | sed 5q` in 17769 *Sun\ C*) # Sun C 5.9 17770 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' 17771 tmp_sharedflag='-G' ;; 17772 *Sun\ F*) # Sun Fortran 8.3 17773 tmp_sharedflag='-G' ;; 17774 *) 17775 tmp_sharedflag='-shared' ;; 17776 esac 17777 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17778 17779 if test $supports_anon_versioning = yes; then 17780 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17782 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17784 fi 17785 link_all_deplibs_GCJ=no 17786 else 17787 ld_shlibs_GCJ=no 17788 fi 17789 ;; 17790 17791 netbsd* | netbsdelf*-gnu) 17792 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17793 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17794 wlarc= 17795 else 17796 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17797 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17798 fi 17799 ;; 17800 17801 solaris*) 17802 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17803 ld_shlibs_GCJ=no 17804 cat <<EOF 1>&2 17805 17806*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17807*** create shared libraries on Solaris systems. Therefore, libtool 17808*** is disabling shared libraries support. We urge you to upgrade GNU 17809*** binutils to release 2.9.1 or newer. Another option is to modify 17810*** your PATH or compiler configuration so that the native linker is 17811*** used, and then restart. 17812 17813EOF 17814 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17815 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17816 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17817 else 17818 ld_shlibs_GCJ=no 17819 fi 17820 ;; 17821 17822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17823 case `$LD -v 2>&1` in 17824 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17825 ld_shlibs_GCJ=no 17826 cat <<_LT_EOF 1>&2 17827 17828*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17829*** reliably create shared libraries on SCO systems. Therefore, libtool 17830*** is disabling shared libraries support. We urge you to upgrade GNU 17831*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17832*** your PATH or compiler configuration so that the native linker is 17833*** used, and then restart. 17834 17835_LT_EOF 17836 ;; 17837 *) 17838 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17839 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17840 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17841 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17842 else 17843 ld_shlibs_GCJ=no 17844 fi 17845 ;; 17846 esac 17847 ;; 17848 17849 sunos4*) 17850 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17851 wlarc= 17852 hardcode_direct_GCJ=yes 17853 hardcode_shlibpath_var_GCJ=no 17854 ;; 17855 17856 *) 17857 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17858 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17859 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17860 else 17861 ld_shlibs_GCJ=no 17862 fi 17863 ;; 17864 esac 17865 17866 if test "$ld_shlibs_GCJ" = no; then 17867 runpath_var= 17868 hardcode_libdir_flag_spec_GCJ= 17869 export_dynamic_flag_spec_GCJ= 17870 whole_archive_flag_spec_GCJ= 17871 fi 17872 else 17873 # PORTME fill in a description of your system's linker (not GNU ld) 17874 case $host_os in 17875 aix3*) 17876 allow_undefined_flag_GCJ=unsupported 17877 always_export_symbols_GCJ=yes 17878 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' 17879 # Note: this linker hardcodes the directories in LIBPATH if there 17880 # are no directories specified by -L. 17881 hardcode_minus_L_GCJ=yes 17882 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17883 # Neither direct hardcoding nor static linking is supported with a 17884 # broken collect2. 17885 hardcode_direct_GCJ=unsupported 17886 fi 17887 ;; 17888 17889 aix[4-9]*) 17890 if test "$host_cpu" = ia64; then 17891 # On IA64, the linker does run time linking by default, so we don't 17892 # have to do anything special. 17893 aix_use_runtimelinking=no 17894 exp_sym_flag='-Bexport' 17895 no_entry_flag="" 17896 else 17897 # If we're using GNU nm, then we don't want the "-C" option. 17898 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17899 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17900 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' 17901 else 17902 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' 17903 fi 17904 aix_use_runtimelinking=no 17905 17906 # Test if we are trying to use run time linking or normal 17907 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17908 # need to do runtime linking. 17909 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17910 for ld_flag in $LDFLAGS; do 17911 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17912 aix_use_runtimelinking=yes 17913 break 17914 fi 17915 done 17916 ;; 17917 esac 17918 17919 exp_sym_flag='-bexport' 17920 no_entry_flag='-bnoentry' 17921 fi 17922 17923 # When large executables or shared objects are built, AIX ld can 17924 # have problems creating the table of contents. If linking a library 17925 # or program results in "error TOC overflow" add -mminimal-toc to 17926 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17927 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17928 17929 archive_cmds_GCJ='' 17930 hardcode_direct_GCJ=yes 17931 hardcode_libdir_separator_GCJ=':' 17932 link_all_deplibs_GCJ=yes 17933 17934 if test "$GCC" = yes; then 17935 case $host_os in aix4.[012]|aix4.[012].*) 17936 # We only want to do this on AIX 4.2 and lower, the check 17937 # below for broken collect2 doesn't work under 4.3+ 17938 collect2name=`${CC} -print-prog-name=collect2` 17939 if test -f "$collect2name" && \ 17940 strings "$collect2name" | grep resolve_lib_name >/dev/null 17941 then 17942 # We have reworked collect2 17943 : 17944 else 17945 # We have old collect2 17946 hardcode_direct_GCJ=unsupported 17947 # It fails to find uninstalled libraries when the uninstalled 17948 # path is not listed in the libpath. Setting hardcode_minus_L 17949 # to unsupported forces relinking 17950 hardcode_minus_L_GCJ=yes 17951 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17952 hardcode_libdir_separator_GCJ= 17953 fi 17954 ;; 17955 esac 17956 shared_flag='-shared' 17957 if test "$aix_use_runtimelinking" = yes; then 17958 shared_flag="$shared_flag "'${wl}-G' 17959 fi 17960 else 17961 # not using gcc 17962 if test "$host_cpu" = ia64; then 17963 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17964 # chokes on -Wl,-G. The following line is correct: 17965 shared_flag='-G' 17966 else 17967 if test "$aix_use_runtimelinking" = yes; then 17968 shared_flag='${wl}-G' 17969 else 17970 shared_flag='${wl}-bM:SRE' 17971 fi 17972 fi 17973 fi 17974 17975 # It seems that -bexpall does not export symbols beginning with 17976 # underscore (_), so it is better to generate a list of symbols to export. 17977 always_export_symbols_GCJ=yes 17978 if test "$aix_use_runtimelinking" = yes; then 17979 # Warning - without using the other runtime loading flags (-brtl), 17980 # -berok will link without error, but may produce a broken library. 17981 allow_undefined_flag_GCJ='-berok' 17982 # Determine the default libpath from the value encoded in an empty executable. 17983 cat >conftest.$ac_ext <<_ACEOF 17984/* confdefs.h. */ 17985_ACEOF 17986cat confdefs.h >>conftest.$ac_ext 17987cat >>conftest.$ac_ext <<_ACEOF 17988/* end confdefs.h. */ 17989 17990int 17991main () 17992{ 17993 17994 ; 17995 return 0; 17996} 17997_ACEOF 17998rm -f conftest.$ac_objext conftest$ac_exeext 17999if { (ac_try="$ac_link" 18000case "(($ac_try" in 18001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18002 *) ac_try_echo=$ac_try;; 18003esac 18004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18005 (eval "$ac_link") 2>conftest.er1 18006 ac_status=$? 18007 grep -v '^ *+' conftest.er1 >conftest.err 18008 rm -f conftest.er1 18009 cat conftest.err >&5 18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18011 (exit $ac_status); } && { 18012 test -z "$ac_c_werror_flag" || 18013 test ! -s conftest.err 18014 } && test -s conftest$ac_exeext && 18015 $as_test_x conftest$ac_exeext; then 18016 18017lt_aix_libpath_sed=' 18018 /Import File Strings/,/^$/ { 18019 /^0/ { 18020 s/^0 *\(.*\)$/\1/ 18021 p 18022 } 18023 }' 18024aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18025# Check for a 64-bit object if we didn't find anything. 18026if test -z "$aix_libpath"; then 18027 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18028fi 18029else 18030 echo "$as_me: failed program was:" >&5 18031sed 's/^/| /' conftest.$ac_ext >&5 18032 18033 18034fi 18035 18036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18037 conftest$ac_exeext conftest.$ac_ext 18038if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18039 18040 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18041 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" 18042 else 18043 if test "$host_cpu" = ia64; then 18044 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18045 allow_undefined_flag_GCJ="-z nodefs" 18046 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" 18047 else 18048 # Determine the default libpath from the value encoded in an empty executable. 18049 cat >conftest.$ac_ext <<_ACEOF 18050/* confdefs.h. */ 18051_ACEOF 18052cat confdefs.h >>conftest.$ac_ext 18053cat >>conftest.$ac_ext <<_ACEOF 18054/* end confdefs.h. */ 18055 18056int 18057main () 18058{ 18059 18060 ; 18061 return 0; 18062} 18063_ACEOF 18064rm -f conftest.$ac_objext conftest$ac_exeext 18065if { (ac_try="$ac_link" 18066case "(($ac_try" in 18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18068 *) ac_try_echo=$ac_try;; 18069esac 18070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18071 (eval "$ac_link") 2>conftest.er1 18072 ac_status=$? 18073 grep -v '^ *+' conftest.er1 >conftest.err 18074 rm -f conftest.er1 18075 cat conftest.err >&5 18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18077 (exit $ac_status); } && { 18078 test -z "$ac_c_werror_flag" || 18079 test ! -s conftest.err 18080 } && test -s conftest$ac_exeext && 18081 $as_test_x conftest$ac_exeext; then 18082 18083lt_aix_libpath_sed=' 18084 /Import File Strings/,/^$/ { 18085 /^0/ { 18086 s/^0 *\(.*\)$/\1/ 18087 p 18088 } 18089 }' 18090aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18091# Check for a 64-bit object if we didn't find anything. 18092if test -z "$aix_libpath"; then 18093 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18094fi 18095else 18096 echo "$as_me: failed program was:" >&5 18097sed 's/^/| /' conftest.$ac_ext >&5 18098 18099 18100fi 18101 18102rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18103 conftest$ac_exeext conftest.$ac_ext 18104if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18105 18106 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18107 # Warning - without using the other run time loading flags, 18108 # -berok will link without error, but may produce a broken library. 18109 no_undefined_flag_GCJ=' ${wl}-bernotok' 18110 allow_undefined_flag_GCJ=' ${wl}-berok' 18111 # Exported symbols can be pulled into shared objects from archives 18112 whole_archive_flag_spec_GCJ='$convenience' 18113 archive_cmds_need_lc_GCJ=yes 18114 # This is similar to how AIX traditionally builds its shared libraries. 18115 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' 18116 fi 18117 fi 18118 ;; 18119 18120 amigaos*) 18121 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)' 18122 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18123 hardcode_minus_L_GCJ=yes 18124 # see comment about different semantics on the GNU ld section 18125 ld_shlibs_GCJ=no 18126 ;; 18127 18128 bsdi[45]*) 18129 export_dynamic_flag_spec_GCJ=-rdynamic 18130 ;; 18131 18132 cygwin* | mingw* | pw32*) 18133 # When not using gcc, we currently assume that we are using 18134 # Microsoft Visual C++. 18135 # hardcode_libdir_flag_spec is actually meaningless, as there is 18136 # no search path for DLLs. 18137 hardcode_libdir_flag_spec_GCJ=' ' 18138 allow_undefined_flag_GCJ=unsupported 18139 # Tell ltmain to make .lib files, not .a files. 18140 libext=lib 18141 # Tell ltmain to make .dll files, not .so files. 18142 shrext_cmds=".dll" 18143 # FIXME: Setting linknames here is a bad hack. 18144 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18145 # The linker will automatically build a .lib file if we build a DLL. 18146 old_archive_From_new_cmds_GCJ='true' 18147 # FIXME: Should let the user specify the lib program. 18148 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 18149 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18150 enable_shared_with_static_runtimes_GCJ=yes 18151 ;; 18152 18153 darwin* | rhapsody*) 18154 case $host_os in 18155 rhapsody* | darwin1.[012]) 18156 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18157 ;; 18158 *) # Darwin 1.3 on 18159 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18160 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18161 else 18162 case ${MACOSX_DEPLOYMENT_TARGET} in 18163 10.[012]) 18164 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18165 ;; 18166 10.*) 18167 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18168 ;; 18169 esac 18170 fi 18171 ;; 18172 esac 18173 archive_cmds_need_lc_GCJ=no 18174 hardcode_direct_GCJ=no 18175 hardcode_automatic_GCJ=yes 18176 hardcode_shlibpath_var_GCJ=unsupported 18177 whole_archive_flag_spec_GCJ='' 18178 link_all_deplibs_GCJ=yes 18179 if test "$GCC" = yes ; then 18180 output_verbose_link_cmd='echo' 18181 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}" 18182 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 18183 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}" 18184 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}" 18185 else 18186 case $cc_basename in 18187 xlc*) 18188 output_verbose_link_cmd='echo' 18189 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 18190 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18191 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18192 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}' 18193 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}' 18194 ;; 18195 *) 18196 ld_shlibs_GCJ=no 18197 ;; 18198 esac 18199 fi 18200 ;; 18201 18202 dgux*) 18203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18204 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18205 hardcode_shlibpath_var_GCJ=no 18206 ;; 18207 18208 freebsd1*) 18209 ld_shlibs_GCJ=no 18210 ;; 18211 18212 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18213 # support. Future versions do this automatically, but an explicit c++rt0.o 18214 # does not break anything, and helps significantly (at the cost of a little 18215 # extra space). 18216 freebsd2.2*) 18217 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18218 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18219 hardcode_direct_GCJ=yes 18220 hardcode_shlibpath_var_GCJ=no 18221 ;; 18222 18223 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18224 freebsd2*) 18225 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18226 hardcode_direct_GCJ=yes 18227 hardcode_minus_L_GCJ=yes 18228 hardcode_shlibpath_var_GCJ=no 18229 ;; 18230 18231 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18232 freebsd* | dragonfly*) 18233 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18234 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18235 hardcode_direct_GCJ=yes 18236 hardcode_shlibpath_var_GCJ=no 18237 ;; 18238 18239 hpux9*) 18240 if test "$GCC" = yes; then 18241 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' 18242 else 18243 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' 18244 fi 18245 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18246 hardcode_libdir_separator_GCJ=: 18247 hardcode_direct_GCJ=yes 18248 18249 # hardcode_minus_L: Not really in the search PATH, 18250 # but as the default location of the library. 18251 hardcode_minus_L_GCJ=yes 18252 export_dynamic_flag_spec_GCJ='${wl}-E' 18253 ;; 18254 18255 hpux10*) 18256 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18257 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18258 else 18259 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18260 fi 18261 if test "$with_gnu_ld" = no; then 18262 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18263 hardcode_libdir_separator_GCJ=: 18264 18265 hardcode_direct_GCJ=yes 18266 export_dynamic_flag_spec_GCJ='${wl}-E' 18267 18268 # hardcode_minus_L: Not really in the search PATH, 18269 # but as the default location of the library. 18270 hardcode_minus_L_GCJ=yes 18271 fi 18272 ;; 18273 18274 hpux11*) 18275 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18276 case $host_cpu in 18277 hppa*64*) 18278 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18279 ;; 18280 ia64*) 18281 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18282 ;; 18283 *) 18284 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18285 ;; 18286 esac 18287 else 18288 case $host_cpu in 18289 hppa*64*) 18290 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18291 ;; 18292 ia64*) 18293 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18294 ;; 18295 *) 18296 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18297 ;; 18298 esac 18299 fi 18300 if test "$with_gnu_ld" = no; then 18301 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18302 hardcode_libdir_separator_GCJ=: 18303 18304 case $host_cpu in 18305 hppa*64*|ia64*) 18306 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18307 hardcode_direct_GCJ=no 18308 hardcode_shlibpath_var_GCJ=no 18309 ;; 18310 *) 18311 hardcode_direct_GCJ=yes 18312 export_dynamic_flag_spec_GCJ='${wl}-E' 18313 18314 # hardcode_minus_L: Not really in the search PATH, 18315 # but as the default location of the library. 18316 hardcode_minus_L_GCJ=yes 18317 ;; 18318 esac 18319 fi 18320 ;; 18321 18322 irix5* | irix6* | nonstopux*) 18323 if test "$GCC" = yes; then 18324 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' 18325 else 18326 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' 18327 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18328 fi 18329 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18330 hardcode_libdir_separator_GCJ=: 18331 link_all_deplibs_GCJ=yes 18332 ;; 18333 18334 netbsd* | netbsdelf*-gnu) 18335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18336 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18337 else 18338 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18339 fi 18340 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18341 hardcode_direct_GCJ=yes 18342 hardcode_shlibpath_var_GCJ=no 18343 ;; 18344 18345 newsos6) 18346 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18347 hardcode_direct_GCJ=yes 18348 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18349 hardcode_libdir_separator_GCJ=: 18350 hardcode_shlibpath_var_GCJ=no 18351 ;; 18352 18353 openbsd*) 18354 if test -f /usr/libexec/ld.so; then 18355 hardcode_direct_GCJ=yes 18356 hardcode_shlibpath_var_GCJ=no 18357 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18358 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18359 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18360 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18361 export_dynamic_flag_spec_GCJ='${wl}-E' 18362 else 18363 case $host_os in 18364 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18365 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18366 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18367 ;; 18368 *) 18369 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18370 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18371 ;; 18372 esac 18373 fi 18374 else 18375 ld_shlibs_GCJ=no 18376 fi 18377 ;; 18378 18379 os2*) 18380 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18381 hardcode_minus_L_GCJ=yes 18382 allow_undefined_flag_GCJ=unsupported 18383 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' 18384 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18385 ;; 18386 18387 osf3*) 18388 if test "$GCC" = yes; then 18389 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18390 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' 18391 else 18392 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18393 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' 18394 fi 18395 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18396 hardcode_libdir_separator_GCJ=: 18397 ;; 18398 18399 osf4* | osf5*) # as osf3* with the addition of -msym flag 18400 if test "$GCC" = yes; then 18401 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18402 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' 18403 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18404 else 18405 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18406 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' 18407 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~ 18408 $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' 18409 18410 # Both c and cxx compiler support -rpath directly 18411 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18412 fi 18413 hardcode_libdir_separator_GCJ=: 18414 ;; 18415 18416 solaris*) 18417 no_undefined_flag_GCJ=' -z text' 18418 if test "$GCC" = yes; then 18419 wlarc='${wl}' 18420 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18421 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18422 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18423 else 18424 wlarc='' 18425 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18426 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18427 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18428 fi 18429 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18430 hardcode_shlibpath_var_GCJ=no 18431 case $host_os in 18432 solaris2.[0-5] | solaris2.[0-5].*) ;; 18433 *) 18434 # The compiler driver will combine and reorder linker options, 18435 # but understands `-z linker_flag'. GCC discards it without `$wl', 18436 # but is careful enough not to reorder. 18437 # Supported since Solaris 2.6 (maybe 2.5.1?) 18438 if test "$GCC" = yes; then 18439 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18440 else 18441 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18442 fi 18443 ;; 18444 esac 18445 link_all_deplibs_GCJ=yes 18446 ;; 18447 18448 sunos4*) 18449 if test "x$host_vendor" = xsequent; then 18450 # Use $CC to link under sequent, because it throws in some extra .o 18451 # files that make .init and .fini sections work. 18452 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18453 else 18454 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18455 fi 18456 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18457 hardcode_direct_GCJ=yes 18458 hardcode_minus_L_GCJ=yes 18459 hardcode_shlibpath_var_GCJ=no 18460 ;; 18461 18462 sysv4) 18463 case $host_vendor in 18464 sni) 18465 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18466 hardcode_direct_GCJ=yes # is this really true??? 18467 ;; 18468 siemens) 18469 ## LD is ld it makes a PLAMLIB 18470 ## CC just makes a GrossModule. 18471 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18472 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18473 hardcode_direct_GCJ=no 18474 ;; 18475 motorola) 18476 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18477 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18478 ;; 18479 esac 18480 runpath_var='LD_RUN_PATH' 18481 hardcode_shlibpath_var_GCJ=no 18482 ;; 18483 18484 sysv4.3*) 18485 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18486 hardcode_shlibpath_var_GCJ=no 18487 export_dynamic_flag_spec_GCJ='-Bexport' 18488 ;; 18489 18490 sysv4*MP*) 18491 if test -d /usr/nec; then 18492 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18493 hardcode_shlibpath_var_GCJ=no 18494 runpath_var=LD_RUN_PATH 18495 hardcode_runpath_var=yes 18496 ld_shlibs_GCJ=yes 18497 fi 18498 ;; 18499 18500 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18501 no_undefined_flag_GCJ='${wl}-z,text' 18502 archive_cmds_need_lc_GCJ=no 18503 hardcode_shlibpath_var_GCJ=no 18504 runpath_var='LD_RUN_PATH' 18505 18506 if test "$GCC" = yes; then 18507 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18508 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18509 else 18510 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18511 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18512 fi 18513 ;; 18514 18515 sysv5* | sco3.2v5* | sco5v6*) 18516 # Note: We can NOT use -z defs as we might desire, because we do not 18517 # link with -lc, and that would cause any symbols used from libc to 18518 # always be unresolved, which means just about no library would 18519 # ever link correctly. If we're not using GNU ld we use -z text 18520 # though, which does catch some bad symbols but isn't as heavy-handed 18521 # as -z defs. 18522 no_undefined_flag_GCJ='${wl}-z,text' 18523 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18524 archive_cmds_need_lc_GCJ=no 18525 hardcode_shlibpath_var_GCJ=no 18526 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18527 hardcode_libdir_separator_GCJ=':' 18528 link_all_deplibs_GCJ=yes 18529 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18530 runpath_var='LD_RUN_PATH' 18531 18532 if test "$GCC" = yes; then 18533 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18534 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18535 else 18536 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18537 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18538 fi 18539 ;; 18540 18541 uts4*) 18542 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18543 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18544 hardcode_shlibpath_var_GCJ=no 18545 ;; 18546 18547 *) 18548 ld_shlibs_GCJ=no 18549 ;; 18550 esac 18551 fi 18552 18553{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18554echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18555test "$ld_shlibs_GCJ" = no && can_build_shared=no 18556 18557# 18558# Do we need to explicitly link libc? 18559# 18560case "x$archive_cmds_need_lc_GCJ" in 18561x|xyes) 18562 # Assume -lc should be added 18563 archive_cmds_need_lc_GCJ=yes 18564 18565 if test "$enable_shared" = yes && test "$GCC" = yes; then 18566 case $archive_cmds_GCJ in 18567 *'~'*) 18568 # FIXME: we may have to deal with multi-command sequences. 18569 ;; 18570 '$CC '*) 18571 # Test whether the compiler implicitly links with -lc since on some 18572 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18573 # to ld, don't add -lc before -lgcc. 18574 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18575echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18576 $rm conftest* 18577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18578 18579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18580 (eval $ac_compile) 2>&5 18581 ac_status=$? 18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18583 (exit $ac_status); } 2>conftest.err; then 18584 soname=conftest 18585 lib=conftest 18586 libobjs=conftest.$ac_objext 18587 deplibs= 18588 wl=$lt_prog_compiler_wl_GCJ 18589 pic_flag=$lt_prog_compiler_pic_GCJ 18590 compiler_flags=-v 18591 linker_flags=-v 18592 verstring= 18593 output_objdir=. 18594 libname=conftest 18595 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18596 allow_undefined_flag_GCJ= 18597 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18598 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18599 ac_status=$? 18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18601 (exit $ac_status); } 18602 then 18603 archive_cmds_need_lc_GCJ=no 18604 else 18605 archive_cmds_need_lc_GCJ=yes 18606 fi 18607 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18608 else 18609 cat conftest.err 1>&5 18610 fi 18611 $rm conftest* 18612 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18613echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18614 ;; 18615 esac 18616 fi 18617 ;; 18618esac 18619 18620{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18621echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18622library_names_spec= 18623libname_spec='lib$name' 18624soname_spec= 18625shrext_cmds=".so" 18626postinstall_cmds= 18627postuninstall_cmds= 18628finish_cmds= 18629finish_eval= 18630shlibpath_var= 18631shlibpath_overrides_runpath=unknown 18632version_type=none 18633dynamic_linker="$host_os ld.so" 18634sys_lib_dlsearch_path_spec="/lib /usr/lib" 18635 18636need_lib_prefix=unknown 18637hardcode_into_libs=no 18638 18639# when you set need_version to no, make sure it does not cause -set_version 18640# flags to be left without arguments 18641need_version=unknown 18642 18643case $host_os in 18644aix3*) 18645 version_type=linux 18646 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18647 shlibpath_var=LIBPATH 18648 18649 # AIX 3 has no versioning support, so we append a major version to the name. 18650 soname_spec='${libname}${release}${shared_ext}$major' 18651 ;; 18652 18653aix[4-9]*) 18654 version_type=linux 18655 need_lib_prefix=no 18656 need_version=no 18657 hardcode_into_libs=yes 18658 if test "$host_cpu" = ia64; then 18659 # AIX 5 supports IA64 18660 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18661 shlibpath_var=LD_LIBRARY_PATH 18662 else 18663 # With GCC up to 2.95.x, collect2 would create an import file 18664 # for dependence libraries. The import file would start with 18665 # the line `#! .'. This would cause the generated library to 18666 # depend on `.', always an invalid library. This was fixed in 18667 # development snapshots of GCC prior to 3.0. 18668 case $host_os in 18669 aix4 | aix4.[01] | aix4.[01].*) 18670 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18671 echo ' yes ' 18672 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18673 : 18674 else 18675 can_build_shared=no 18676 fi 18677 ;; 18678 esac 18679 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18680 # soname into executable. Probably we can add versioning support to 18681 # collect2, so additional links can be useful in future. 18682 if test "$aix_use_runtimelinking" = yes; then 18683 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18684 # instead of lib<name>.a to let people know that these are not 18685 # typical AIX shared libraries. 18686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18687 else 18688 # We preserve .a as extension for shared libraries through AIX4.2 18689 # and later when we are not doing run time linking. 18690 library_names_spec='${libname}${release}.a $libname.a' 18691 soname_spec='${libname}${release}${shared_ext}$major' 18692 fi 18693 shlibpath_var=LIBPATH 18694 fi 18695 ;; 18696 18697amigaos*) 18698 library_names_spec='$libname.ixlibrary $libname.a' 18699 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18700 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' 18701 ;; 18702 18703beos*) 18704 library_names_spec='${libname}${shared_ext}' 18705 dynamic_linker="$host_os ld.so" 18706 shlibpath_var=LIBRARY_PATH 18707 ;; 18708 18709bsdi[45]*) 18710 version_type=linux 18711 need_version=no 18712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18713 soname_spec='${libname}${release}${shared_ext}$major' 18714 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18715 shlibpath_var=LD_LIBRARY_PATH 18716 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18717 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18718 # the default ld.so.conf also contains /usr/contrib/lib and 18719 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18720 # libtool to hard-code these into programs 18721 ;; 18722 18723cygwin* | mingw* | pw32*) 18724 version_type=windows 18725 shrext_cmds=".dll" 18726 need_version=no 18727 need_lib_prefix=no 18728 18729 case $GCC,$host_os in 18730 yes,cygwin* | yes,mingw* | yes,pw32*) 18731 library_names_spec='$libname.dll.a' 18732 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18733 postinstall_cmds='base_file=`basename \${file}`~ 18734 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18735 dldir=$destdir/`dirname \$dlpath`~ 18736 test -d \$dldir || mkdir -p \$dldir~ 18737 $install_prog $dir/$dlname \$dldir/$dlname~ 18738 chmod a+x \$dldir/$dlname' 18739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18740 dlpath=$dir/\$dldll~ 18741 $rm \$dlpath' 18742 shlibpath_overrides_runpath=yes 18743 18744 case $host_os in 18745 cygwin*) 18746 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18747 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18748 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18749 ;; 18750 mingw*) 18751 # MinGW DLLs use traditional 'lib' prefix 18752 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18753 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18754 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18755 # It is most probably a Windows format PATH printed by 18756 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18757 # path with ; separators, and with drive letters. We can handle the 18758 # drive letters (cygwin fileutils understands them), so leave them, 18759 # especially as we might pass files found there to a mingw objdump, 18760 # which wouldn't understand a cygwinified path. Ahh. 18761 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18762 else 18763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18764 fi 18765 ;; 18766 pw32*) 18767 # pw32 DLLs use 'pw' prefix rather than 'lib' 18768 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18769 ;; 18770 esac 18771 ;; 18772 18773 *) 18774 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18775 ;; 18776 esac 18777 dynamic_linker='Win32 ld.exe' 18778 # FIXME: first we should search . and the directory the executable is in 18779 shlibpath_var=PATH 18780 ;; 18781 18782darwin* | rhapsody*) 18783 dynamic_linker="$host_os dyld" 18784 version_type=darwin 18785 need_lib_prefix=no 18786 need_version=no 18787 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18788 soname_spec='${libname}${release}${major}$shared_ext' 18789 shlibpath_overrides_runpath=yes 18790 shlibpath_var=DYLD_LIBRARY_PATH 18791 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18792 18793 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18794 ;; 18795 18796dgux*) 18797 version_type=linux 18798 need_lib_prefix=no 18799 need_version=no 18800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18801 soname_spec='${libname}${release}${shared_ext}$major' 18802 shlibpath_var=LD_LIBRARY_PATH 18803 ;; 18804 18805freebsd1*) 18806 dynamic_linker=no 18807 ;; 18808 18809freebsd* | dragonfly*) 18810 # DragonFly does not have aout. When/if they implement a new 18811 # versioning mechanism, adjust this. 18812 if test -x /usr/bin/objformat; then 18813 objformat=`/usr/bin/objformat` 18814 else 18815 case $host_os in 18816 freebsd[123]*) objformat=aout ;; 18817 *) objformat=elf ;; 18818 esac 18819 fi 18820 version_type=freebsd-$objformat 18821 case $version_type in 18822 freebsd-elf*) 18823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18824 need_version=no 18825 need_lib_prefix=no 18826 ;; 18827 freebsd-*) 18828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18829 need_version=yes 18830 ;; 18831 esac 18832 shlibpath_var=LD_LIBRARY_PATH 18833 case $host_os in 18834 freebsd2*) 18835 shlibpath_overrides_runpath=yes 18836 ;; 18837 freebsd3.[01]* | freebsdelf3.[01]*) 18838 shlibpath_overrides_runpath=yes 18839 hardcode_into_libs=yes 18840 ;; 18841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18843 shlibpath_overrides_runpath=no 18844 hardcode_into_libs=yes 18845 ;; 18846 *) # from 4.6 on, and DragonFly 18847 shlibpath_overrides_runpath=yes 18848 hardcode_into_libs=yes 18849 ;; 18850 esac 18851 ;; 18852 18853gnu*) 18854 version_type=linux 18855 need_lib_prefix=no 18856 need_version=no 18857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18858 soname_spec='${libname}${release}${shared_ext}$major' 18859 shlibpath_var=LD_LIBRARY_PATH 18860 hardcode_into_libs=yes 18861 ;; 18862 18863hpux9* | hpux10* | hpux11*) 18864 # Give a soname corresponding to the major version so that dld.sl refuses to 18865 # link against other versions. 18866 version_type=sunos 18867 need_lib_prefix=no 18868 need_version=no 18869 case $host_cpu in 18870 ia64*) 18871 shrext_cmds='.so' 18872 hardcode_into_libs=yes 18873 dynamic_linker="$host_os dld.so" 18874 shlibpath_var=LD_LIBRARY_PATH 18875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18877 soname_spec='${libname}${release}${shared_ext}$major' 18878 if test "X$HPUX_IA64_MODE" = X32; then 18879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18880 else 18881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18882 fi 18883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18884 ;; 18885 hppa*64*) 18886 shrext_cmds='.sl' 18887 hardcode_into_libs=yes 18888 dynamic_linker="$host_os dld.sl" 18889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18892 soname_spec='${libname}${release}${shared_ext}$major' 18893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18895 ;; 18896 *) 18897 shrext_cmds='.sl' 18898 dynamic_linker="$host_os dld.sl" 18899 shlibpath_var=SHLIB_PATH 18900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18902 soname_spec='${libname}${release}${shared_ext}$major' 18903 ;; 18904 esac 18905 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18906 postinstall_cmds='chmod 555 $lib' 18907 ;; 18908 18909interix[3-9]*) 18910 version_type=linux 18911 need_lib_prefix=no 18912 need_version=no 18913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18914 soname_spec='${libname}${release}${shared_ext}$major' 18915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18916 shlibpath_var=LD_LIBRARY_PATH 18917 shlibpath_overrides_runpath=no 18918 hardcode_into_libs=yes 18919 ;; 18920 18921irix5* | irix6* | nonstopux*) 18922 case $host_os in 18923 nonstopux*) version_type=nonstopux ;; 18924 *) 18925 if test "$lt_cv_prog_gnu_ld" = yes; then 18926 version_type=linux 18927 else 18928 version_type=irix 18929 fi ;; 18930 esac 18931 need_lib_prefix=no 18932 need_version=no 18933 soname_spec='${libname}${release}${shared_ext}$major' 18934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18935 case $host_os in 18936 irix5* | nonstopux*) 18937 libsuff= shlibsuff= 18938 ;; 18939 *) 18940 case $LD in # libtool.m4 will add one of these switches to LD 18941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18942 libsuff= shlibsuff= libmagic=32-bit;; 18943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18944 libsuff=32 shlibsuff=N32 libmagic=N32;; 18945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18946 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18947 *) libsuff= shlibsuff= libmagic=never-match;; 18948 esac 18949 ;; 18950 esac 18951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18952 shlibpath_overrides_runpath=no 18953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18955 hardcode_into_libs=yes 18956 ;; 18957 18958# No shared lib support for Linux oldld, aout, or coff. 18959linux*oldld* | linux*aout* | linux*coff*) 18960 dynamic_linker=no 18961 ;; 18962 18963# This must be Linux ELF. 18964linux* | k*bsd*-gnu) 18965 version_type=linux 18966 need_lib_prefix=no 18967 need_version=no 18968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18969 soname_spec='${libname}${release}${shared_ext}$major' 18970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18971 shlibpath_var=LD_LIBRARY_PATH 18972 shlibpath_overrides_runpath=no 18973 # This implies no fast_install, which is unacceptable. 18974 # Some rework will be needed to allow for fast_install 18975 # before this can be enabled. 18976 hardcode_into_libs=yes 18977 18978 # Append ld.so.conf contents to the search path 18979 if test -f /etc/ld.so.conf; then 18980 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' ' '` 18981 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18982 fi 18983 18984 # We used to test for /lib/ld.so.1 and disable shared libraries on 18985 # powerpc, because MkLinux only supported shared libraries with the 18986 # GNU dynamic linker. Since this was broken with cross compilers, 18987 # most powerpc-linux boxes support dynamic linking these days and 18988 # people can always --disable-shared, the test was removed, and we 18989 # assume the GNU/Linux dynamic linker is in use. 18990 dynamic_linker='GNU/Linux ld.so' 18991 ;; 18992 18993netbsdelf*-gnu) 18994 version_type=linux 18995 need_lib_prefix=no 18996 need_version=no 18997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18998 soname_spec='${libname}${release}${shared_ext}$major' 18999 shlibpath_var=LD_LIBRARY_PATH 19000 shlibpath_overrides_runpath=no 19001 hardcode_into_libs=yes 19002 dynamic_linker='NetBSD ld.elf_so' 19003 ;; 19004 19005netbsd*) 19006 version_type=sunos 19007 need_lib_prefix=no 19008 need_version=no 19009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19012 dynamic_linker='NetBSD (a.out) ld.so' 19013 else 19014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19015 soname_spec='${libname}${release}${shared_ext}$major' 19016 dynamic_linker='NetBSD ld.elf_so' 19017 fi 19018 shlibpath_var=LD_LIBRARY_PATH 19019 shlibpath_overrides_runpath=yes 19020 hardcode_into_libs=yes 19021 ;; 19022 19023newsos6) 19024 version_type=linux 19025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19026 shlibpath_var=LD_LIBRARY_PATH 19027 shlibpath_overrides_runpath=yes 19028 ;; 19029 19030nto-qnx*) 19031 version_type=linux 19032 need_lib_prefix=no 19033 need_version=no 19034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19035 soname_spec='${libname}${release}${shared_ext}$major' 19036 shlibpath_var=LD_LIBRARY_PATH 19037 shlibpath_overrides_runpath=yes 19038 ;; 19039 19040openbsd*) 19041 version_type=sunos 19042 sys_lib_dlsearch_path_spec="/usr/lib" 19043 need_lib_prefix=no 19044 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19045 case $host_os in 19046 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19047 *) need_version=no ;; 19048 esac 19049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19051 shlibpath_var=LD_LIBRARY_PATH 19052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19053 case $host_os in 19054 openbsd2.[89] | openbsd2.[89].*) 19055 shlibpath_overrides_runpath=no 19056 ;; 19057 *) 19058 shlibpath_overrides_runpath=yes 19059 ;; 19060 esac 19061 else 19062 shlibpath_overrides_runpath=yes 19063 fi 19064 ;; 19065 19066os2*) 19067 libname_spec='$name' 19068 shrext_cmds=".dll" 19069 need_lib_prefix=no 19070 library_names_spec='$libname${shared_ext} $libname.a' 19071 dynamic_linker='OS/2 ld.exe' 19072 shlibpath_var=LIBPATH 19073 ;; 19074 19075osf3* | osf4* | osf5*) 19076 version_type=osf 19077 need_lib_prefix=no 19078 need_version=no 19079 soname_spec='${libname}${release}${shared_ext}$major' 19080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19081 shlibpath_var=LD_LIBRARY_PATH 19082 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19083 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19084 ;; 19085 19086rdos*) 19087 dynamic_linker=no 19088 ;; 19089 19090solaris*) 19091 version_type=linux 19092 need_lib_prefix=no 19093 need_version=no 19094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19095 soname_spec='${libname}${release}${shared_ext}$major' 19096 shlibpath_var=LD_LIBRARY_PATH 19097 shlibpath_overrides_runpath=yes 19098 hardcode_into_libs=yes 19099 # ldd complains unless libraries are executable 19100 postinstall_cmds='chmod +x $lib' 19101 ;; 19102 19103sunos4*) 19104 version_type=sunos 19105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19106 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19107 shlibpath_var=LD_LIBRARY_PATH 19108 shlibpath_overrides_runpath=yes 19109 if test "$with_gnu_ld" = yes; then 19110 need_lib_prefix=no 19111 fi 19112 need_version=yes 19113 ;; 19114 19115sysv4 | sysv4.3*) 19116 version_type=linux 19117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19118 soname_spec='${libname}${release}${shared_ext}$major' 19119 shlibpath_var=LD_LIBRARY_PATH 19120 case $host_vendor in 19121 sni) 19122 shlibpath_overrides_runpath=no 19123 need_lib_prefix=no 19124 export_dynamic_flag_spec='${wl}-Blargedynsym' 19125 runpath_var=LD_RUN_PATH 19126 ;; 19127 siemens) 19128 need_lib_prefix=no 19129 ;; 19130 motorola) 19131 need_lib_prefix=no 19132 need_version=no 19133 shlibpath_overrides_runpath=no 19134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19135 ;; 19136 esac 19137 ;; 19138 19139sysv4*MP*) 19140 if test -d /usr/nec ;then 19141 version_type=linux 19142 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19143 soname_spec='$libname${shared_ext}.$major' 19144 shlibpath_var=LD_LIBRARY_PATH 19145 fi 19146 ;; 19147 19148sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19149 version_type=freebsd-elf 19150 need_lib_prefix=no 19151 need_version=no 19152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19153 soname_spec='${libname}${release}${shared_ext}$major' 19154 shlibpath_var=LD_LIBRARY_PATH 19155 hardcode_into_libs=yes 19156 if test "$with_gnu_ld" = yes; then 19157 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19158 shlibpath_overrides_runpath=no 19159 else 19160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19161 shlibpath_overrides_runpath=yes 19162 case $host_os in 19163 sco3.2v5*) 19164 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19165 ;; 19166 esac 19167 fi 19168 sys_lib_dlsearch_path_spec='/usr/lib' 19169 ;; 19170 19171uts4*) 19172 version_type=linux 19173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19174 soname_spec='${libname}${release}${shared_ext}$major' 19175 shlibpath_var=LD_LIBRARY_PATH 19176 ;; 19177 19178*) 19179 dynamic_linker=no 19180 ;; 19181esac 19182{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 19183echo "${ECHO_T}$dynamic_linker" >&6; } 19184test "$dynamic_linker" = no && can_build_shared=no 19185 19186if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 19187 echo $ECHO_N "(cached) $ECHO_C" >&6 19188else 19189 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 19190fi 19191 19192sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 19193if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 19194 echo $ECHO_N "(cached) $ECHO_C" >&6 19195else 19196 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 19197fi 19198 19199sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19200 19201variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19202if test "$GCC" = yes; then 19203 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19204fi 19205 19206{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 19207echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 19208hardcode_action_GCJ= 19209if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19210 test -n "$runpath_var_GCJ" || \ 19211 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19212 19213 # We can hardcode non-existant directories. 19214 if test "$hardcode_direct_GCJ" != no && 19215 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19216 # have to relink, otherwise we might link with an installed library 19217 # when we should be linking with a yet-to-be-installed one 19218 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19219 test "$hardcode_minus_L_GCJ" != no; then 19220 # Linking always hardcodes the temporary library directory. 19221 hardcode_action_GCJ=relink 19222 else 19223 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19224 hardcode_action_GCJ=immediate 19225 fi 19226else 19227 # We cannot hardcode anything, or else we can only hardcode existing 19228 # directories. 19229 hardcode_action_GCJ=unsupported 19230fi 19231{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 19232echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 19233 19234if test "$hardcode_action_GCJ" = relink; then 19235 # Fast installation is not supported 19236 enable_fast_install=no 19237elif test "$shlibpath_overrides_runpath" = yes || 19238 test "$enable_shared" = no; then 19239 # Fast installation is not necessary 19240 enable_fast_install=needless 19241fi 19242 19243 19244# The else clause should only fire when bootstrapping the 19245# libtool distribution, otherwise you forgot to ship ltmain.sh 19246# with your package, and you will get complaints that there are 19247# no rules to generate ltmain.sh. 19248if test -f "$ltmain"; then 19249 # See if we are running on zsh, and set the options which allow our commands through 19250 # without removal of \ escapes. 19251 if test -n "${ZSH_VERSION+set}" ; then 19252 setopt NO_GLOB_SUBST 19253 fi 19254 # Now quote all the things that may contain metacharacters while being 19255 # careful not to overquote the AC_SUBSTed values. We take copies of the 19256 # variables and quote the copies for generation of the libtool script. 19257 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19258 SED SHELL STRIP \ 19259 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19260 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19261 deplibs_check_method reload_flag reload_cmds need_locks \ 19262 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19263 lt_cv_sys_global_symbol_to_c_name_address \ 19264 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19265 old_postinstall_cmds old_postuninstall_cmds \ 19266 compiler_GCJ \ 19267 CC_GCJ \ 19268 LD_GCJ \ 19269 lt_prog_compiler_wl_GCJ \ 19270 lt_prog_compiler_pic_GCJ \ 19271 lt_prog_compiler_static_GCJ \ 19272 lt_prog_compiler_no_builtin_flag_GCJ \ 19273 export_dynamic_flag_spec_GCJ \ 19274 thread_safe_flag_spec_GCJ \ 19275 whole_archive_flag_spec_GCJ \ 19276 enable_shared_with_static_runtimes_GCJ \ 19277 old_archive_cmds_GCJ \ 19278 old_archive_from_new_cmds_GCJ \ 19279 predep_objects_GCJ \ 19280 postdep_objects_GCJ \ 19281 predeps_GCJ \ 19282 postdeps_GCJ \ 19283 compiler_lib_search_path_GCJ \ 19284 compiler_lib_search_dirs_GCJ \ 19285 archive_cmds_GCJ \ 19286 archive_expsym_cmds_GCJ \ 19287 postinstall_cmds_GCJ \ 19288 postuninstall_cmds_GCJ \ 19289 old_archive_from_expsyms_cmds_GCJ \ 19290 allow_undefined_flag_GCJ \ 19291 no_undefined_flag_GCJ \ 19292 export_symbols_cmds_GCJ \ 19293 hardcode_libdir_flag_spec_GCJ \ 19294 hardcode_libdir_flag_spec_ld_GCJ \ 19295 hardcode_libdir_separator_GCJ \ 19296 hardcode_automatic_GCJ \ 19297 module_cmds_GCJ \ 19298 module_expsym_cmds_GCJ \ 19299 lt_cv_prog_compiler_c_o_GCJ \ 19300 fix_srcfile_path_GCJ \ 19301 exclude_expsyms_GCJ \ 19302 include_expsyms_GCJ; do 19303 19304 case $var in 19305 old_archive_cmds_GCJ | \ 19306 old_archive_from_new_cmds_GCJ | \ 19307 archive_cmds_GCJ | \ 19308 archive_expsym_cmds_GCJ | \ 19309 module_cmds_GCJ | \ 19310 module_expsym_cmds_GCJ | \ 19311 old_archive_from_expsyms_cmds_GCJ | \ 19312 export_symbols_cmds_GCJ | \ 19313 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19314 postinstall_cmds | postuninstall_cmds | \ 19315 old_postinstall_cmds | old_postuninstall_cmds | \ 19316 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19317 # Double-quote double-evaled strings. 19318 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19319 ;; 19320 *) 19321 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19322 ;; 19323 esac 19324 done 19325 19326 case $lt_echo in 19327 *'\$0 --fallback-echo"') 19328 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19329 ;; 19330 esac 19331 19332cfgfile="$ofile" 19333 19334 cat <<__EOF__ >> "$cfgfile" 19335# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19336 19337# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19338 19339# Shell to use when invoking shell scripts. 19340SHELL=$lt_SHELL 19341 19342# Whether or not to build shared libraries. 19343build_libtool_libs=$enable_shared 19344 19345# Whether or not to build static libraries. 19346build_old_libs=$enable_static 19347 19348# Whether or not to add -lc for building shared libraries. 19349build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19350 19351# Whether or not to disallow shared libs when runtime libs are static 19352allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19353 19354# Whether or not to optimize for fast installation. 19355fast_install=$enable_fast_install 19356 19357# The host system. 19358host_alias=$host_alias 19359host=$host 19360host_os=$host_os 19361 19362# The build system. 19363build_alias=$build_alias 19364build=$build 19365build_os=$build_os 19366 19367# An echo program that does not interpret backslashes. 19368echo=$lt_echo 19369 19370# The archiver. 19371AR=$lt_AR 19372AR_FLAGS=$lt_AR_FLAGS 19373 19374# A C compiler. 19375LTCC=$lt_LTCC 19376 19377# LTCC compiler flags. 19378LTCFLAGS=$lt_LTCFLAGS 19379 19380# A language-specific compiler. 19381CC=$lt_compiler_GCJ 19382 19383# Is the compiler the GNU C compiler? 19384with_gcc=$GCC_GCJ 19385 19386# An ERE matcher. 19387EGREP=$lt_EGREP 19388 19389# The linker used to build libraries. 19390LD=$lt_LD_GCJ 19391 19392# Whether we need hard or soft links. 19393LN_S=$lt_LN_S 19394 19395# A BSD-compatible nm program. 19396NM=$lt_NM 19397 19398# A symbol stripping program 19399STRIP=$lt_STRIP 19400 19401# Used to examine libraries when file_magic_cmd begins "file" 19402MAGIC_CMD=$MAGIC_CMD 19403 19404# Used on cygwin: DLL creation program. 19405DLLTOOL="$DLLTOOL" 19406 19407# Used on cygwin: object dumper. 19408OBJDUMP="$OBJDUMP" 19409 19410# Used on cygwin: assembler. 19411AS="$AS" 19412 19413# The name of the directory that contains temporary libtool files. 19414objdir=$objdir 19415 19416# How to create reloadable object files. 19417reload_flag=$lt_reload_flag 19418reload_cmds=$lt_reload_cmds 19419 19420# How to pass a linker flag through the compiler. 19421wl=$lt_lt_prog_compiler_wl_GCJ 19422 19423# Object file suffix (normally "o"). 19424objext="$ac_objext" 19425 19426# Old archive suffix (normally "a"). 19427libext="$libext" 19428 19429# Shared library suffix (normally ".so"). 19430shrext_cmds='$shrext_cmds' 19431 19432# Executable file suffix (normally ""). 19433exeext="$exeext" 19434 19435# Additional compiler flags for building library objects. 19436pic_flag=$lt_lt_prog_compiler_pic_GCJ 19437pic_mode=$pic_mode 19438 19439# What is the maximum length of a command? 19440max_cmd_len=$lt_cv_sys_max_cmd_len 19441 19442# Does compiler simultaneously support -c and -o options? 19443compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19444 19445# Must we lock files when doing compilation? 19446need_locks=$lt_need_locks 19447 19448# Do we need the lib prefix for modules? 19449need_lib_prefix=$need_lib_prefix 19450 19451# Do we need a version for libraries? 19452need_version=$need_version 19453 19454# Whether dlopen is supported. 19455dlopen_support=$enable_dlopen 19456 19457# Whether dlopen of programs is supported. 19458dlopen_self=$enable_dlopen_self 19459 19460# Whether dlopen of statically linked programs is supported. 19461dlopen_self_static=$enable_dlopen_self_static 19462 19463# Compiler flag to prevent dynamic linking. 19464link_static_flag=$lt_lt_prog_compiler_static_GCJ 19465 19466# Compiler flag to turn off builtin functions. 19467no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19468 19469# Compiler flag to allow reflexive dlopens. 19470export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19471 19472# Compiler flag to generate shared objects directly from archives. 19473whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19474 19475# Compiler flag to generate thread-safe objects. 19476thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19477 19478# Library versioning type. 19479version_type=$version_type 19480 19481# Format of library name prefix. 19482libname_spec=$lt_libname_spec 19483 19484# List of archive names. First name is the real one, the rest are links. 19485# The last name is the one that the linker finds with -lNAME. 19486library_names_spec=$lt_library_names_spec 19487 19488# The coded name of the library, if different from the real name. 19489soname_spec=$lt_soname_spec 19490 19491# Commands used to build and install an old-style archive. 19492RANLIB=$lt_RANLIB 19493old_archive_cmds=$lt_old_archive_cmds_GCJ 19494old_postinstall_cmds=$lt_old_postinstall_cmds 19495old_postuninstall_cmds=$lt_old_postuninstall_cmds 19496 19497# Create an old-style archive from a shared archive. 19498old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19499 19500# Create a temporary old-style archive to link instead of a shared archive. 19501old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19502 19503# Commands used to build and install a shared archive. 19504archive_cmds=$lt_archive_cmds_GCJ 19505archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19506postinstall_cmds=$lt_postinstall_cmds 19507postuninstall_cmds=$lt_postuninstall_cmds 19508 19509# Commands used to build a loadable module (assumed same as above if empty) 19510module_cmds=$lt_module_cmds_GCJ 19511module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19512 19513# Commands to strip libraries. 19514old_striplib=$lt_old_striplib 19515striplib=$lt_striplib 19516 19517# Dependencies to place before the objects being linked to create a 19518# shared library. 19519predep_objects=$lt_predep_objects_GCJ 19520 19521# Dependencies to place after the objects being linked to create a 19522# shared library. 19523postdep_objects=$lt_postdep_objects_GCJ 19524 19525# Dependencies to place before the objects being linked to create a 19526# shared library. 19527predeps=$lt_predeps_GCJ 19528 19529# Dependencies to place after the objects being linked to create a 19530# shared library. 19531postdeps=$lt_postdeps_GCJ 19532 19533# The directories searched by this compiler when creating a shared 19534# library 19535compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19536 19537# The library search path used internally by the compiler when linking 19538# a shared library. 19539compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19540 19541# Method to check whether dependent libraries are shared objects. 19542deplibs_check_method=$lt_deplibs_check_method 19543 19544# Command to use when deplibs_check_method == file_magic. 19545file_magic_cmd=$lt_file_magic_cmd 19546 19547# Flag that allows shared libraries with undefined symbols to be built. 19548allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19549 19550# Flag that forces no undefined symbols. 19551no_undefined_flag=$lt_no_undefined_flag_GCJ 19552 19553# Commands used to finish a libtool library installation in a directory. 19554finish_cmds=$lt_finish_cmds 19555 19556# Same as above, but a single script fragment to be evaled but not shown. 19557finish_eval=$lt_finish_eval 19558 19559# Take the output of nm and produce a listing of raw symbols and C names. 19560global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19561 19562# Transform the output of nm in a proper C declaration 19563global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19564 19565# Transform the output of nm in a C name address pair 19566global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19567 19568# This is the shared library runtime path variable. 19569runpath_var=$runpath_var 19570 19571# This is the shared library path variable. 19572shlibpath_var=$shlibpath_var 19573 19574# Is shlibpath searched before the hard-coded library search path? 19575shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19576 19577# How to hardcode a shared library path into an executable. 19578hardcode_action=$hardcode_action_GCJ 19579 19580# Whether we should hardcode library paths into libraries. 19581hardcode_into_libs=$hardcode_into_libs 19582 19583# Flag to hardcode \$libdir into a binary during linking. 19584# This must work even if \$libdir does not exist. 19585hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19586 19587# If ld is used when linking, flag to hardcode \$libdir into 19588# a binary during linking. This must work even if \$libdir does 19589# not exist. 19590hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19591 19592# Whether we need a single -rpath flag with a separated argument. 19593hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19594 19595# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19596# resulting binary. 19597hardcode_direct=$hardcode_direct_GCJ 19598 19599# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19600# resulting binary. 19601hardcode_minus_L=$hardcode_minus_L_GCJ 19602 19603# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19604# the resulting binary. 19605hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19606 19607# Set to yes if building a shared library automatically hardcodes DIR into the library 19608# and all subsequent libraries and executables linked against it. 19609hardcode_automatic=$hardcode_automatic_GCJ 19610 19611# Variables whose values should be saved in libtool wrapper scripts and 19612# restored at relink time. 19613variables_saved_for_relink="$variables_saved_for_relink" 19614 19615# Whether libtool must link a program against all its dependency libraries. 19616link_all_deplibs=$link_all_deplibs_GCJ 19617 19618# Compile-time system search path for libraries 19619sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19620 19621# Run-time system search path for libraries 19622sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19623 19624# Fix the shell variable \$srcfile for the compiler. 19625fix_srcfile_path=$lt_fix_srcfile_path 19626 19627# Set to yes if exported symbols are required. 19628always_export_symbols=$always_export_symbols_GCJ 19629 19630# The commands to list exported symbols. 19631export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19632 19633# The commands to extract the exported symbol list from a shared archive. 19634extract_expsyms_cmds=$lt_extract_expsyms_cmds 19635 19636# Symbols that should not be listed in the preloaded symbols. 19637exclude_expsyms=$lt_exclude_expsyms_GCJ 19638 19639# Symbols that must always be exported. 19640include_expsyms=$lt_include_expsyms_GCJ 19641 19642# ### END LIBTOOL TAG CONFIG: $tagname 19643 19644__EOF__ 19645 19646 19647else 19648 # If there is no Makefile yet, we rely on a make rule to execute 19649 # `config.status --recheck' to rerun these tests and create the 19650 # libtool script then. 19651 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19652 if test -f "$ltmain_in"; then 19653 test -f Makefile && make "$ltmain" 19654 fi 19655fi 19656 19657 19658ac_ext=c 19659ac_cpp='$CPP $CPPFLAGS' 19660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19662ac_compiler_gnu=$ac_cv_c_compiler_gnu 19663 19664CC="$lt_save_CC" 19665 19666 else 19667 tagname="" 19668 fi 19669 ;; 19670 19671 RC) 19672 19673 19674# Source file extension for RC test sources. 19675ac_ext=rc 19676 19677# Object file extension for compiled RC test sources. 19678objext=o 19679objext_RC=$objext 19680 19681# Code to be used in simple compile tests 19682lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19683 19684# Code to be used in simple link tests 19685lt_simple_link_test_code="$lt_simple_compile_test_code" 19686 19687# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19688 19689# If no C compiler was specified, use CC. 19690LTCC=${LTCC-"$CC"} 19691 19692# If no C compiler flags were specified, use CFLAGS. 19693LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19694 19695# Allow CC to be a program name with arguments. 19696compiler=$CC 19697 19698 19699# save warnings/boilerplate of simple test code 19700ac_outfile=conftest.$ac_objext 19701echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19702eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19703_lt_compiler_boilerplate=`cat conftest.err` 19704$rm conftest* 19705 19706ac_outfile=conftest.$ac_objext 19707echo "$lt_simple_link_test_code" >conftest.$ac_ext 19708eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19709_lt_linker_boilerplate=`cat conftest.err` 19710$rm -r conftest* 19711 19712 19713# Allow CC to be a program name with arguments. 19714lt_save_CC="$CC" 19715CC=${RC-"windres"} 19716compiler=$CC 19717compiler_RC=$CC 19718for cc_temp in $compiler""; do 19719 case $cc_temp in 19720 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19721 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19722 \-*) ;; 19723 *) break;; 19724 esac 19725done 19726cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19727 19728lt_cv_prog_compiler_c_o_RC=yes 19729 19730# The else clause should only fire when bootstrapping the 19731# libtool distribution, otherwise you forgot to ship ltmain.sh 19732# with your package, and you will get complaints that there are 19733# no rules to generate ltmain.sh. 19734if test -f "$ltmain"; then 19735 # See if we are running on zsh, and set the options which allow our commands through 19736 # without removal of \ escapes. 19737 if test -n "${ZSH_VERSION+set}" ; then 19738 setopt NO_GLOB_SUBST 19739 fi 19740 # Now quote all the things that may contain metacharacters while being 19741 # careful not to overquote the AC_SUBSTed values. We take copies of the 19742 # variables and quote the copies for generation of the libtool script. 19743 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19744 SED SHELL STRIP \ 19745 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19746 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19747 deplibs_check_method reload_flag reload_cmds need_locks \ 19748 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19749 lt_cv_sys_global_symbol_to_c_name_address \ 19750 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19751 old_postinstall_cmds old_postuninstall_cmds \ 19752 compiler_RC \ 19753 CC_RC \ 19754 LD_RC \ 19755 lt_prog_compiler_wl_RC \ 19756 lt_prog_compiler_pic_RC \ 19757 lt_prog_compiler_static_RC \ 19758 lt_prog_compiler_no_builtin_flag_RC \ 19759 export_dynamic_flag_spec_RC \ 19760 thread_safe_flag_spec_RC \ 19761 whole_archive_flag_spec_RC \ 19762 enable_shared_with_static_runtimes_RC \ 19763 old_archive_cmds_RC \ 19764 old_archive_from_new_cmds_RC \ 19765 predep_objects_RC \ 19766 postdep_objects_RC \ 19767 predeps_RC \ 19768 postdeps_RC \ 19769 compiler_lib_search_path_RC \ 19770 compiler_lib_search_dirs_RC \ 19771 archive_cmds_RC \ 19772 archive_expsym_cmds_RC \ 19773 postinstall_cmds_RC \ 19774 postuninstall_cmds_RC \ 19775 old_archive_from_expsyms_cmds_RC \ 19776 allow_undefined_flag_RC \ 19777 no_undefined_flag_RC \ 19778 export_symbols_cmds_RC \ 19779 hardcode_libdir_flag_spec_RC \ 19780 hardcode_libdir_flag_spec_ld_RC \ 19781 hardcode_libdir_separator_RC \ 19782 hardcode_automatic_RC \ 19783 module_cmds_RC \ 19784 module_expsym_cmds_RC \ 19785 lt_cv_prog_compiler_c_o_RC \ 19786 fix_srcfile_path_RC \ 19787 exclude_expsyms_RC \ 19788 include_expsyms_RC; do 19789 19790 case $var in 19791 old_archive_cmds_RC | \ 19792 old_archive_from_new_cmds_RC | \ 19793 archive_cmds_RC | \ 19794 archive_expsym_cmds_RC | \ 19795 module_cmds_RC | \ 19796 module_expsym_cmds_RC | \ 19797 old_archive_from_expsyms_cmds_RC | \ 19798 export_symbols_cmds_RC | \ 19799 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19800 postinstall_cmds | postuninstall_cmds | \ 19801 old_postinstall_cmds | old_postuninstall_cmds | \ 19802 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19803 # Double-quote double-evaled strings. 19804 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19805 ;; 19806 *) 19807 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19808 ;; 19809 esac 19810 done 19811 19812 case $lt_echo in 19813 *'\$0 --fallback-echo"') 19814 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19815 ;; 19816 esac 19817 19818cfgfile="$ofile" 19819 19820 cat <<__EOF__ >> "$cfgfile" 19821# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19822 19823# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19824 19825# Shell to use when invoking shell scripts. 19826SHELL=$lt_SHELL 19827 19828# Whether or not to build shared libraries. 19829build_libtool_libs=$enable_shared 19830 19831# Whether or not to build static libraries. 19832build_old_libs=$enable_static 19833 19834# Whether or not to add -lc for building shared libraries. 19835build_libtool_need_lc=$archive_cmds_need_lc_RC 19836 19837# Whether or not to disallow shared libs when runtime libs are static 19838allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19839 19840# Whether or not to optimize for fast installation. 19841fast_install=$enable_fast_install 19842 19843# The host system. 19844host_alias=$host_alias 19845host=$host 19846host_os=$host_os 19847 19848# The build system. 19849build_alias=$build_alias 19850build=$build 19851build_os=$build_os 19852 19853# An echo program that does not interpret backslashes. 19854echo=$lt_echo 19855 19856# The archiver. 19857AR=$lt_AR 19858AR_FLAGS=$lt_AR_FLAGS 19859 19860# A C compiler. 19861LTCC=$lt_LTCC 19862 19863# LTCC compiler flags. 19864LTCFLAGS=$lt_LTCFLAGS 19865 19866# A language-specific compiler. 19867CC=$lt_compiler_RC 19868 19869# Is the compiler the GNU C compiler? 19870with_gcc=$GCC_RC 19871 19872# An ERE matcher. 19873EGREP=$lt_EGREP 19874 19875# The linker used to build libraries. 19876LD=$lt_LD_RC 19877 19878# Whether we need hard or soft links. 19879LN_S=$lt_LN_S 19880 19881# A BSD-compatible nm program. 19882NM=$lt_NM 19883 19884# A symbol stripping program 19885STRIP=$lt_STRIP 19886 19887# Used to examine libraries when file_magic_cmd begins "file" 19888MAGIC_CMD=$MAGIC_CMD 19889 19890# Used on cygwin: DLL creation program. 19891DLLTOOL="$DLLTOOL" 19892 19893# Used on cygwin: object dumper. 19894OBJDUMP="$OBJDUMP" 19895 19896# Used on cygwin: assembler. 19897AS="$AS" 19898 19899# The name of the directory that contains temporary libtool files. 19900objdir=$objdir 19901 19902# How to create reloadable object files. 19903reload_flag=$lt_reload_flag 19904reload_cmds=$lt_reload_cmds 19905 19906# How to pass a linker flag through the compiler. 19907wl=$lt_lt_prog_compiler_wl_RC 19908 19909# Object file suffix (normally "o"). 19910objext="$ac_objext" 19911 19912# Old archive suffix (normally "a"). 19913libext="$libext" 19914 19915# Shared library suffix (normally ".so"). 19916shrext_cmds='$shrext_cmds' 19917 19918# Executable file suffix (normally ""). 19919exeext="$exeext" 19920 19921# Additional compiler flags for building library objects. 19922pic_flag=$lt_lt_prog_compiler_pic_RC 19923pic_mode=$pic_mode 19924 19925# What is the maximum length of a command? 19926max_cmd_len=$lt_cv_sys_max_cmd_len 19927 19928# Does compiler simultaneously support -c and -o options? 19929compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19930 19931# Must we lock files when doing compilation? 19932need_locks=$lt_need_locks 19933 19934# Do we need the lib prefix for modules? 19935need_lib_prefix=$need_lib_prefix 19936 19937# Do we need a version for libraries? 19938need_version=$need_version 19939 19940# Whether dlopen is supported. 19941dlopen_support=$enable_dlopen 19942 19943# Whether dlopen of programs is supported. 19944dlopen_self=$enable_dlopen_self 19945 19946# Whether dlopen of statically linked programs is supported. 19947dlopen_self_static=$enable_dlopen_self_static 19948 19949# Compiler flag to prevent dynamic linking. 19950link_static_flag=$lt_lt_prog_compiler_static_RC 19951 19952# Compiler flag to turn off builtin functions. 19953no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19954 19955# Compiler flag to allow reflexive dlopens. 19956export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19957 19958# Compiler flag to generate shared objects directly from archives. 19959whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19960 19961# Compiler flag to generate thread-safe objects. 19962thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19963 19964# Library versioning type. 19965version_type=$version_type 19966 19967# Format of library name prefix. 19968libname_spec=$lt_libname_spec 19969 19970# List of archive names. First name is the real one, the rest are links. 19971# The last name is the one that the linker finds with -lNAME. 19972library_names_spec=$lt_library_names_spec 19973 19974# The coded name of the library, if different from the real name. 19975soname_spec=$lt_soname_spec 19976 19977# Commands used to build and install an old-style archive. 19978RANLIB=$lt_RANLIB 19979old_archive_cmds=$lt_old_archive_cmds_RC 19980old_postinstall_cmds=$lt_old_postinstall_cmds 19981old_postuninstall_cmds=$lt_old_postuninstall_cmds 19982 19983# Create an old-style archive from a shared archive. 19984old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19985 19986# Create a temporary old-style archive to link instead of a shared archive. 19987old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19988 19989# Commands used to build and install a shared archive. 19990archive_cmds=$lt_archive_cmds_RC 19991archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19992postinstall_cmds=$lt_postinstall_cmds 19993postuninstall_cmds=$lt_postuninstall_cmds 19994 19995# Commands used to build a loadable module (assumed same as above if empty) 19996module_cmds=$lt_module_cmds_RC 19997module_expsym_cmds=$lt_module_expsym_cmds_RC 19998 19999# Commands to strip libraries. 20000old_striplib=$lt_old_striplib 20001striplib=$lt_striplib 20002 20003# Dependencies to place before the objects being linked to create a 20004# shared library. 20005predep_objects=$lt_predep_objects_RC 20006 20007# Dependencies to place after the objects being linked to create a 20008# shared library. 20009postdep_objects=$lt_postdep_objects_RC 20010 20011# Dependencies to place before the objects being linked to create a 20012# shared library. 20013predeps=$lt_predeps_RC 20014 20015# Dependencies to place after the objects being linked to create a 20016# shared library. 20017postdeps=$lt_postdeps_RC 20018 20019# The directories searched by this compiler when creating a shared 20020# library 20021compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 20022 20023# The library search path used internally by the compiler when linking 20024# a shared library. 20025compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20026 20027# Method to check whether dependent libraries are shared objects. 20028deplibs_check_method=$lt_deplibs_check_method 20029 20030# Command to use when deplibs_check_method == file_magic. 20031file_magic_cmd=$lt_file_magic_cmd 20032 20033# Flag that allows shared libraries with undefined symbols to be built. 20034allow_undefined_flag=$lt_allow_undefined_flag_RC 20035 20036# Flag that forces no undefined symbols. 20037no_undefined_flag=$lt_no_undefined_flag_RC 20038 20039# Commands used to finish a libtool library installation in a directory. 20040finish_cmds=$lt_finish_cmds 20041 20042# Same as above, but a single script fragment to be evaled but not shown. 20043finish_eval=$lt_finish_eval 20044 20045# Take the output of nm and produce a listing of raw symbols and C names. 20046global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20047 20048# Transform the output of nm in a proper C declaration 20049global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20050 20051# Transform the output of nm in a C name address pair 20052global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20053 20054# This is the shared library runtime path variable. 20055runpath_var=$runpath_var 20056 20057# This is the shared library path variable. 20058shlibpath_var=$shlibpath_var 20059 20060# Is shlibpath searched before the hard-coded library search path? 20061shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20062 20063# How to hardcode a shared library path into an executable. 20064hardcode_action=$hardcode_action_RC 20065 20066# Whether we should hardcode library paths into libraries. 20067hardcode_into_libs=$hardcode_into_libs 20068 20069# Flag to hardcode \$libdir into a binary during linking. 20070# This must work even if \$libdir does not exist. 20071hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20072 20073# If ld is used when linking, flag to hardcode \$libdir into 20074# a binary during linking. This must work even if \$libdir does 20075# not exist. 20076hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20077 20078# Whether we need a single -rpath flag with a separated argument. 20079hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20080 20081# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20082# resulting binary. 20083hardcode_direct=$hardcode_direct_RC 20084 20085# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20086# resulting binary. 20087hardcode_minus_L=$hardcode_minus_L_RC 20088 20089# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20090# the resulting binary. 20091hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20092 20093# Set to yes if building a shared library automatically hardcodes DIR into the library 20094# and all subsequent libraries and executables linked against it. 20095hardcode_automatic=$hardcode_automatic_RC 20096 20097# Variables whose values should be saved in libtool wrapper scripts and 20098# restored at relink time. 20099variables_saved_for_relink="$variables_saved_for_relink" 20100 20101# Whether libtool must link a program against all its dependency libraries. 20102link_all_deplibs=$link_all_deplibs_RC 20103 20104# Compile-time system search path for libraries 20105sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20106 20107# Run-time system search path for libraries 20108sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20109 20110# Fix the shell variable \$srcfile for the compiler. 20111fix_srcfile_path=$lt_fix_srcfile_path 20112 20113# Set to yes if exported symbols are required. 20114always_export_symbols=$always_export_symbols_RC 20115 20116# The commands to list exported symbols. 20117export_symbols_cmds=$lt_export_symbols_cmds_RC 20118 20119# The commands to extract the exported symbol list from a shared archive. 20120extract_expsyms_cmds=$lt_extract_expsyms_cmds 20121 20122# Symbols that should not be listed in the preloaded symbols. 20123exclude_expsyms=$lt_exclude_expsyms_RC 20124 20125# Symbols that must always be exported. 20126include_expsyms=$lt_include_expsyms_RC 20127 20128# ### END LIBTOOL TAG CONFIG: $tagname 20129 20130__EOF__ 20131 20132 20133else 20134 # If there is no Makefile yet, we rely on a make rule to execute 20135 # `config.status --recheck' to rerun these tests and create the 20136 # libtool script then. 20137 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20138 if test -f "$ltmain_in"; then 20139 test -f Makefile && make "$ltmain" 20140 fi 20141fi 20142 20143 20144ac_ext=c 20145ac_cpp='$CPP $CPPFLAGS' 20146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20148ac_compiler_gnu=$ac_cv_c_compiler_gnu 20149 20150CC="$lt_save_CC" 20151 20152 ;; 20153 20154 *) 20155 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20156echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20157 { (exit 1); exit 1; }; } 20158 ;; 20159 esac 20160 20161 # Append the new tag name to the list of available tags. 20162 if test -n "$tagname" ; then 20163 available_tags="$available_tags $tagname" 20164 fi 20165 fi 20166 done 20167 IFS="$lt_save_ifs" 20168 20169 # Now substitute the updated list of available tags. 20170 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20171 mv "${ofile}T" "$ofile" 20172 chmod +x "$ofile" 20173 else 20174 rm -f "${ofile}T" 20175 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 20176echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 20177 { (exit 1); exit 1; }; } 20178 fi 20179fi 20180 20181 20182 20183# This can be used to rebuild libtool when needed 20184LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20185 20186# Always use our own libtool. 20187LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20188 20189# Prevent multiple expansion 20190 20191 20192 20193 20194 20195 20196 20197 20198 20199 20200 20201 20202 20203 20204 20205 20206 20207 20208 20209 20210 20211 20212# dolt, a replacement for libtool 20213# Josh Triplett <josh@freedesktop.org> 20214# Extract the first word of "bash", so it can be a program name with args. 20215set dummy bash; ac_word=$2 20216{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20218if test "${ac_cv_path_DOLT_BASH+set}" = set; then 20219 echo $ECHO_N "(cached) $ECHO_C" >&6 20220else 20221 case $DOLT_BASH in 20222 [\\/]* | ?:[\\/]*) 20223 ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path. 20224 ;; 20225 *) 20226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20227for as_dir in $PATH 20228do 20229 IFS=$as_save_IFS 20230 test -z "$as_dir" && as_dir=. 20231 for ac_exec_ext in '' $ac_executable_extensions; do 20232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20233 ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext" 20234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20235 break 2 20236 fi 20237done 20238done 20239IFS=$as_save_IFS 20240 20241 ;; 20242esac 20243fi 20244DOLT_BASH=$ac_cv_path_DOLT_BASH 20245if test -n "$DOLT_BASH"; then 20246 { echo "$as_me:$LINENO: result: $DOLT_BASH" >&5 20247echo "${ECHO_T}$DOLT_BASH" >&6; } 20248else 20249 { echo "$as_me:$LINENO: result: no" >&5 20250echo "${ECHO_T}no" >&6; } 20251fi 20252 20253 20254{ echo "$as_me:$LINENO: checking if dolt supports this host" >&5 20255echo $ECHO_N "checking if dolt supports this host... $ECHO_C" >&6; } 20256dolt_supported=yes 20257if test x$DOLT_BASH = x; then 20258 dolt_supported=no 20259fi 20260if test x$GCC != xyes; then 20261 dolt_supported=no 20262fi 20263case $host in 20264i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*) ;; 20265amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*) ;; 20266*) dolt_supported=no ;; 20267esac 20268if test x$dolt_supported = xno ; then 20269 { echo "$as_me:$LINENO: result: no, falling back to libtool" >&5 20270echo "${ECHO_T}no, falling back to libtool" >&6; } 20271 LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)' 20272 LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)' 20273else 20274 { echo "$as_me:$LINENO: result: yes, replacing libtool" >&5 20275echo "${ECHO_T}yes, replacing libtool" >&6; } 20276 20277 cat <<__DOLTCOMPILE__EOF__ >doltcompile 20278#!$DOLT_BASH 20279__DOLTCOMPILE__EOF__ 20280 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20281args=("$@") 20282for ((arg=0; arg<${#args[@]}; arg++)) ; do 20283 if test x"${args[$arg]}" = x-o ; then 20284 objarg=$((arg+1)) 20285 break 20286 fi 20287done 20288if test x$objarg = x ; then 20289 echo 'Error: no -o on compiler command line' 1>&2 20290 exit 1 20291fi 20292lo="${args[$objarg]}" 20293obj="${lo%.lo}" 20294if test x"$lo" = x"$obj" ; then 20295 echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2 20296 exit 1 20297fi 20298objbase="${obj##*/}" 20299__DOLTCOMPILE__EOF__ 20300 20301 if test x$enable_shared = xyes; then 20302 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20303libobjdir="${obj%$objbase}.libs" 20304if test ! -d "$libobjdir" ; then 20305 mkdir_out="$(mkdir "$libobjdir" 2>&1)" 20306 mkdir_ret=$? 20307 if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then 20308 echo "$mkdir_out" 1>&2 20309 exit $mkdir_ret 20310 fi 20311fi 20312pic_object="$libobjdir/$objbase.o" 20313args[$objarg]="$pic_object" 20314"${args[@]}" -fPIC -DPIC || exit $? 20315__DOLTCOMPILE__EOF__ 20316 fi 20317 20318 if test x$enable_static = xyes; then 20319 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20320non_pic_object="$obj.o" 20321args[$objarg]="$non_pic_object" 20322__DOLTCOMPILE__EOF__ 20323 if test x$enable_shared = xyes; then 20324 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20325"${args[@]}" >/dev/null 2>&1 || exit $? 20326__DOLTCOMPILE__EOF__ 20327 else 20328 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20329"${args[@]}" || exit $? 20330__DOLTCOMPILE__EOF__ 20331 fi 20332 fi 20333 20334 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20335{ 20336echo "# $lo - a libtool object file" 20337echo "# Generated by doltcompile, not libtool" 20338__DOLTCOMPILE__EOF__ 20339 20340 if test x$enable_shared = xyes; then 20341 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20342echo "pic_object='$pic_object'" 20343__DOLTCOMPILE__EOF__ 20344 else 20345 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20346echo pic_object=none 20347__DOLTCOMPILE__EOF__ 20348 fi 20349 20350 if test x$enable_static = xyes; then 20351 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20352echo "non_pic_object='$non_pic_object'" 20353__DOLTCOMPILE__EOF__ 20354 else 20355 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20356echo non_pic_object=none 20357__DOLTCOMPILE__EOF__ 20358 fi 20359 20360 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20361} > "$lo" 20362__DOLTCOMPILE__EOF__ 20363 20364 chmod +x doltcompile 20365 LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)' 20366 LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)' 20367fi 20368 20369 20370# end dolt 20371 20372{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 20373echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 20374set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 20375if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 20376 echo $ECHO_N "(cached) $ECHO_C" >&6 20377else 20378 cat >conftest.make <<\_ACEOF 20379SHELL = /bin/sh 20380all: 20381 @echo '@@@%%%=$(MAKE)=@@@%%%' 20382_ACEOF 20383# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 20384case `${MAKE-make} -f conftest.make 2>/dev/null` in 20385 *@@@%%%=?*=@@@%%%*) 20386 eval ac_cv_prog_make_${ac_make}_set=yes;; 20387 *) 20388 eval ac_cv_prog_make_${ac_make}_set=no;; 20389esac 20390rm -f conftest.make 20391fi 20392if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 20393 { echo "$as_me:$LINENO: result: yes" >&5 20394echo "${ECHO_T}yes" >&6; } 20395 SET_MAKE= 20396else 20397 { echo "$as_me:$LINENO: result: no" >&5 20398echo "${ECHO_T}no" >&6; } 20399 SET_MAKE="MAKE=${MAKE-make}" 20400fi 20401 20402 20403 20404case "$host" in 20405 *-*-mingw*) 20406 os_win32=yes 20407 ;; 20408 *) 20409 os_win32=no 20410esac 20411 20412 20413if test "$os_win32" = "yes"; then 20414 OS_WIN32_TRUE= 20415 OS_WIN32_FALSE='#' 20416else 20417 OS_WIN32_TRUE='#' 20418 OS_WIN32_FALSE= 20419fi 20420 20421 20422if test "$os_win32" = "yes"; then 20423 # Extract the first word of "lib.exe", so it can be a program name with args. 20424set dummy lib.exe; ac_word=$2 20425{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20427if test "${ac_cv_prog_ms_librarian+set}" = set; then 20428 echo $ECHO_N "(cached) $ECHO_C" >&6 20429else 20430 if test -n "$ms_librarian"; then 20431 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test. 20432else 20433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20434for as_dir in $PATH 20435do 20436 IFS=$as_save_IFS 20437 test -z "$as_dir" && as_dir=. 20438 for ac_exec_ext in '' $ac_executable_extensions; do 20439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20440 ac_cv_prog_ms_librarian="yes" 20441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20442 break 2 20443 fi 20444done 20445done 20446IFS=$as_save_IFS 20447 20448 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no" 20449fi 20450fi 20451ms_librarian=$ac_cv_prog_ms_librarian 20452if test -n "$ms_librarian"; then 20453 { echo "$as_me:$LINENO: result: $ms_librarian" >&5 20454echo "${ECHO_T}$ms_librarian" >&6; } 20455else 20456 { echo "$as_me:$LINENO: result: no" >&5 20457echo "${ECHO_T}no" >&6; } 20458fi 20459 20460 20461fi 20462 20463 20464if test x$ms_librarian = xyes; then 20465 MS_LIB_AVAILABLE_TRUE= 20466 MS_LIB_AVAILABLE_FALSE='#' 20467else 20468 MS_LIB_AVAILABLE_TRUE='#' 20469 MS_LIB_AVAILABLE_FALSE= 20470fi 20471 20472 20473WARN_CFLAGS="" 20474if test "x$GCC" = "xyes"; then 20475 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \ 20476 -Wmissing-prototypes -Wmissing-declarations \ 20477 -Wnested-externs -fno-strict-aliasing" 20478 20479cat >>confdefs.h <<_ACEOF 20480#define HAVE_WARNING_CPP_DIRECTIVE 1 20481_ACEOF 20482 20483fi 20484 20485 20486 20487 20488 20489 20490if test $cross_compiling = yes; then 20491 CROSS_COMPILING_TRUE= 20492 CROSS_COMPILING_FALSE='#' 20493else 20494 CROSS_COMPILING_TRUE='#' 20495 CROSS_COMPILING_FALSE= 20496fi 20497 20498 20499 20500# Setup for compiling build tools (fc-glyphname, etc) 20501{ echo "$as_me:$LINENO: checking for a C compiler for build tools" >&5 20502echo $ECHO_N "checking for a C compiler for build tools... $ECHO_C" >&6; } 20503if test $cross_compiling = yes; then 20504 for ac_prog in gcc cc 20505do 20506 # Extract the first word of "$ac_prog", so it can be a program name with args. 20507set dummy $ac_prog; ac_word=$2 20508{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20510if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then 20511 echo $ECHO_N "(cached) $ECHO_C" >&6 20512else 20513 if test -n "$CC_FOR_BUILD"; then 20514 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 20515else 20516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20517for as_dir in $PATH 20518do 20519 IFS=$as_save_IFS 20520 test -z "$as_dir" && as_dir=. 20521 for ac_exec_ext in '' $ac_executable_extensions; do 20522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20523 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 20524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20525 break 2 20526 fi 20527done 20528done 20529IFS=$as_save_IFS 20530 20531fi 20532fi 20533CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 20534if test -n "$CC_FOR_BUILD"; then 20535 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5 20536echo "${ECHO_T}$CC_FOR_BUILD" >&6; } 20537else 20538 { echo "$as_me:$LINENO: result: no" >&5 20539echo "${ECHO_T}no" >&6; } 20540fi 20541 20542 20543 test -n "$CC_FOR_BUILD" && break 20544done 20545 20546else 20547 CC_FOR_BUILD=$CC 20548fi 20549{ echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5 20550echo "${ECHO_T}$CC_FOR_BUILD" >&6; } 20551 20552 20553{ echo "$as_me:$LINENO: checking for suffix of executable build tools" >&5 20554echo $ECHO_N "checking for suffix of executable build tools... $ECHO_C" >&6; } 20555if test $cross_compiling = yes; then 20556 cat >conftest.c <<\_______EOF 20557int 20558main () 20559{ 20560 exit (0); 20561} 20562_______EOF 20563 for i in .exe ""; do 20564 compile="$CC_FOR_BUILD conftest.c -o conftest$i" 20565 if { (eval echo "$as_me:$LINENO: \"$compile\"") >&5 20566 (eval $compile) 2>&5 20567 ac_status=$? 20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20569 (exit $ac_status); }; then 20570 if (./conftest) 2>&5; then 20571 EXEEXT_FOR_BUILD=$i 20572 break 20573 fi 20574 fi 20575 done 20576 rm -f conftest* 20577 if test "${EXEEXT_FOR_BUILD+set}" != set; then 20578 { { echo "$as_me:$LINENO: error: Cannot determine suffix of executable build tools" >&5 20579echo "$as_me: error: Cannot determine suffix of executable build tools" >&2;} 20580 { (exit 1); exit 1; }; } 20581 fi 20582else 20583 EXEEXT_FOR_BUILD=$EXEEXT 20584fi 20585{ echo "$as_me:$LINENO: result: $EXEEXT_FOR_BUILD" >&5 20586echo "${ECHO_T}$EXEEXT_FOR_BUILD" >&6; } 20587 20588 20589 20590 20591# Check whether --with-arch was given. 20592if test "${with_arch+set}" = set; then 20593 withval=$with_arch; arch="$withval" 20594else 20595 arch=auto 20596fi 20597 20598 20599if test $cross_compiling = yes; then 20600 case "$arch" in 20601 auto) 20602 { { echo "$as_me:$LINENO: error: Cannot autodetect architecture in cross compile environment 20603 Use --with-arch=ARCH to specify architecture" >&5 20604echo "$as_me: error: Cannot autodetect architecture in cross compile environment 20605 Use --with-arch=ARCH to specify architecture" >&2;} 20606 { (exit 1); exit 1; }; } 20607 ;; 20608 esac 20609fi 20610 20611ARCHITECTURE=$arch 20612 20613 20614 20615# Checks for header files. 20616 20617 20618 20619 20620 20621ac_header_dirent=no 20622for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 20623 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 20624{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 20625echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 20626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20627 echo $ECHO_N "(cached) $ECHO_C" >&6 20628else 20629 cat >conftest.$ac_ext <<_ACEOF 20630/* confdefs.h. */ 20631_ACEOF 20632cat confdefs.h >>conftest.$ac_ext 20633cat >>conftest.$ac_ext <<_ACEOF 20634/* end confdefs.h. */ 20635#include <sys/types.h> 20636#include <$ac_hdr> 20637 20638int 20639main () 20640{ 20641if ((DIR *) 0) 20642return 0; 20643 ; 20644 return 0; 20645} 20646_ACEOF 20647rm -f conftest.$ac_objext 20648if { (ac_try="$ac_compile" 20649case "(($ac_try" in 20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20651 *) ac_try_echo=$ac_try;; 20652esac 20653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20654 (eval "$ac_compile") 2>conftest.er1 20655 ac_status=$? 20656 grep -v '^ *+' conftest.er1 >conftest.err 20657 rm -f conftest.er1 20658 cat conftest.err >&5 20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20660 (exit $ac_status); } && { 20661 test -z "$ac_c_werror_flag" || 20662 test ! -s conftest.err 20663 } && test -s conftest.$ac_objext; then 20664 eval "$as_ac_Header=yes" 20665else 20666 echo "$as_me: failed program was:" >&5 20667sed 's/^/| /' conftest.$ac_ext >&5 20668 20669 eval "$as_ac_Header=no" 20670fi 20671 20672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20673fi 20674ac_res=`eval echo '${'$as_ac_Header'}'` 20675 { echo "$as_me:$LINENO: result: $ac_res" >&5 20676echo "${ECHO_T}$ac_res" >&6; } 20677if test `eval echo '${'$as_ac_Header'}'` = yes; then 20678 cat >>confdefs.h <<_ACEOF 20679#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 20680_ACEOF 20681 20682ac_header_dirent=$ac_hdr; break 20683fi 20684 20685done 20686# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 20687if test $ac_header_dirent = dirent.h; then 20688 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 20689echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 20690if test "${ac_cv_search_opendir+set}" = set; then 20691 echo $ECHO_N "(cached) $ECHO_C" >&6 20692else 20693 ac_func_search_save_LIBS=$LIBS 20694cat >conftest.$ac_ext <<_ACEOF 20695/* confdefs.h. */ 20696_ACEOF 20697cat confdefs.h >>conftest.$ac_ext 20698cat >>conftest.$ac_ext <<_ACEOF 20699/* end confdefs.h. */ 20700 20701/* Override any GCC internal prototype to avoid an error. 20702 Use char because int might match the return type of a GCC 20703 builtin and then its argument prototype would still apply. */ 20704#ifdef __cplusplus 20705extern "C" 20706#endif 20707char opendir (); 20708int 20709main () 20710{ 20711return opendir (); 20712 ; 20713 return 0; 20714} 20715_ACEOF 20716for ac_lib in '' dir; do 20717 if test -z "$ac_lib"; then 20718 ac_res="none required" 20719 else 20720 ac_res=-l$ac_lib 20721 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20722 fi 20723 rm -f conftest.$ac_objext conftest$ac_exeext 20724if { (ac_try="$ac_link" 20725case "(($ac_try" in 20726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20727 *) ac_try_echo=$ac_try;; 20728esac 20729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20730 (eval "$ac_link") 2>conftest.er1 20731 ac_status=$? 20732 grep -v '^ *+' conftest.er1 >conftest.err 20733 rm -f conftest.er1 20734 cat conftest.err >&5 20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20736 (exit $ac_status); } && { 20737 test -z "$ac_c_werror_flag" || 20738 test ! -s conftest.err 20739 } && test -s conftest$ac_exeext && 20740 $as_test_x conftest$ac_exeext; then 20741 ac_cv_search_opendir=$ac_res 20742else 20743 echo "$as_me: failed program was:" >&5 20744sed 's/^/| /' conftest.$ac_ext >&5 20745 20746 20747fi 20748 20749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20750 conftest$ac_exeext 20751 if test "${ac_cv_search_opendir+set}" = set; then 20752 break 20753fi 20754done 20755if test "${ac_cv_search_opendir+set}" = set; then 20756 : 20757else 20758 ac_cv_search_opendir=no 20759fi 20760rm conftest.$ac_ext 20761LIBS=$ac_func_search_save_LIBS 20762fi 20763{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 20764echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 20765ac_res=$ac_cv_search_opendir 20766if test "$ac_res" != no; then 20767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20768 20769fi 20770 20771else 20772 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 20773echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 20774if test "${ac_cv_search_opendir+set}" = set; then 20775 echo $ECHO_N "(cached) $ECHO_C" >&6 20776else 20777 ac_func_search_save_LIBS=$LIBS 20778cat >conftest.$ac_ext <<_ACEOF 20779/* confdefs.h. */ 20780_ACEOF 20781cat confdefs.h >>conftest.$ac_ext 20782cat >>conftest.$ac_ext <<_ACEOF 20783/* end confdefs.h. */ 20784 20785/* Override any GCC internal prototype to avoid an error. 20786 Use char because int might match the return type of a GCC 20787 builtin and then its argument prototype would still apply. */ 20788#ifdef __cplusplus 20789extern "C" 20790#endif 20791char opendir (); 20792int 20793main () 20794{ 20795return opendir (); 20796 ; 20797 return 0; 20798} 20799_ACEOF 20800for ac_lib in '' x; do 20801 if test -z "$ac_lib"; then 20802 ac_res="none required" 20803 else 20804 ac_res=-l$ac_lib 20805 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20806 fi 20807 rm -f conftest.$ac_objext conftest$ac_exeext 20808if { (ac_try="$ac_link" 20809case "(($ac_try" in 20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20811 *) ac_try_echo=$ac_try;; 20812esac 20813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20814 (eval "$ac_link") 2>conftest.er1 20815 ac_status=$? 20816 grep -v '^ *+' conftest.er1 >conftest.err 20817 rm -f conftest.er1 20818 cat conftest.err >&5 20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20820 (exit $ac_status); } && { 20821 test -z "$ac_c_werror_flag" || 20822 test ! -s conftest.err 20823 } && test -s conftest$ac_exeext && 20824 $as_test_x conftest$ac_exeext; then 20825 ac_cv_search_opendir=$ac_res 20826else 20827 echo "$as_me: failed program was:" >&5 20828sed 's/^/| /' conftest.$ac_ext >&5 20829 20830 20831fi 20832 20833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20834 conftest$ac_exeext 20835 if test "${ac_cv_search_opendir+set}" = set; then 20836 break 20837fi 20838done 20839if test "${ac_cv_search_opendir+set}" = set; then 20840 : 20841else 20842 ac_cv_search_opendir=no 20843fi 20844rm conftest.$ac_ext 20845LIBS=$ac_func_search_save_LIBS 20846fi 20847{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 20848echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 20849ac_res=$ac_cv_search_opendir 20850if test "$ac_res" != no; then 20851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20852 20853fi 20854 20855fi 20856 20857{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20858echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 20859if test "${ac_cv_header_stdc+set}" = set; then 20860 echo $ECHO_N "(cached) $ECHO_C" >&6 20861else 20862 cat >conftest.$ac_ext <<_ACEOF 20863/* confdefs.h. */ 20864_ACEOF 20865cat confdefs.h >>conftest.$ac_ext 20866cat >>conftest.$ac_ext <<_ACEOF 20867/* end confdefs.h. */ 20868#include <stdlib.h> 20869#include <stdarg.h> 20870#include <string.h> 20871#include <float.h> 20872 20873int 20874main () 20875{ 20876 20877 ; 20878 return 0; 20879} 20880_ACEOF 20881rm -f conftest.$ac_objext 20882if { (ac_try="$ac_compile" 20883case "(($ac_try" in 20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20885 *) ac_try_echo=$ac_try;; 20886esac 20887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20888 (eval "$ac_compile") 2>conftest.er1 20889 ac_status=$? 20890 grep -v '^ *+' conftest.er1 >conftest.err 20891 rm -f conftest.er1 20892 cat conftest.err >&5 20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20894 (exit $ac_status); } && { 20895 test -z "$ac_c_werror_flag" || 20896 test ! -s conftest.err 20897 } && test -s conftest.$ac_objext; then 20898 ac_cv_header_stdc=yes 20899else 20900 echo "$as_me: failed program was:" >&5 20901sed 's/^/| /' conftest.$ac_ext >&5 20902 20903 ac_cv_header_stdc=no 20904fi 20905 20906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20907 20908if test $ac_cv_header_stdc = yes; then 20909 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20910 cat >conftest.$ac_ext <<_ACEOF 20911/* confdefs.h. */ 20912_ACEOF 20913cat confdefs.h >>conftest.$ac_ext 20914cat >>conftest.$ac_ext <<_ACEOF 20915/* end confdefs.h. */ 20916#include <string.h> 20917 20918_ACEOF 20919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20920 $EGREP "memchr" >/dev/null 2>&1; then 20921 : 20922else 20923 ac_cv_header_stdc=no 20924fi 20925rm -f conftest* 20926 20927fi 20928 20929if test $ac_cv_header_stdc = yes; then 20930 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20931 cat >conftest.$ac_ext <<_ACEOF 20932/* confdefs.h. */ 20933_ACEOF 20934cat confdefs.h >>conftest.$ac_ext 20935cat >>conftest.$ac_ext <<_ACEOF 20936/* end confdefs.h. */ 20937#include <stdlib.h> 20938 20939_ACEOF 20940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20941 $EGREP "free" >/dev/null 2>&1; then 20942 : 20943else 20944 ac_cv_header_stdc=no 20945fi 20946rm -f conftest* 20947 20948fi 20949 20950if test $ac_cv_header_stdc = yes; then 20951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20952 if test "$cross_compiling" = yes; then 20953 : 20954else 20955 cat >conftest.$ac_ext <<_ACEOF 20956/* confdefs.h. */ 20957_ACEOF 20958cat confdefs.h >>conftest.$ac_ext 20959cat >>conftest.$ac_ext <<_ACEOF 20960/* end confdefs.h. */ 20961#include <ctype.h> 20962#include <stdlib.h> 20963#if ((' ' & 0x0FF) == 0x020) 20964# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20965# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20966#else 20967# define ISLOWER(c) \ 20968 (('a' <= (c) && (c) <= 'i') \ 20969 || ('j' <= (c) && (c) <= 'r') \ 20970 || ('s' <= (c) && (c) <= 'z')) 20971# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20972#endif 20973 20974#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20975int 20976main () 20977{ 20978 int i; 20979 for (i = 0; i < 256; i++) 20980 if (XOR (islower (i), ISLOWER (i)) 20981 || toupper (i) != TOUPPER (i)) 20982 return 2; 20983 return 0; 20984} 20985_ACEOF 20986rm -f conftest$ac_exeext 20987if { (ac_try="$ac_link" 20988case "(($ac_try" in 20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20990 *) ac_try_echo=$ac_try;; 20991esac 20992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20993 (eval "$ac_link") 2>&5 20994 ac_status=$? 20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20997 { (case "(($ac_try" in 20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20999 *) ac_try_echo=$ac_try;; 21000esac 21001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21002 (eval "$ac_try") 2>&5 21003 ac_status=$? 21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21005 (exit $ac_status); }; }; then 21006 : 21007else 21008 echo "$as_me: program exited with status $ac_status" >&5 21009echo "$as_me: failed program was:" >&5 21010sed 's/^/| /' conftest.$ac_ext >&5 21011 21012( exit $ac_status ) 21013ac_cv_header_stdc=no 21014fi 21015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21016fi 21017 21018 21019fi 21020fi 21021{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 21022echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 21023if test $ac_cv_header_stdc = yes; then 21024 21025cat >>confdefs.h <<\_ACEOF 21026#define STDC_HEADERS 1 21027_ACEOF 21028 21029fi 21030 21031 21032 21033 21034 21035for ac_header in fcntl.h stdlib.h string.h unistd.h 21036do 21037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21039 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21042 echo $ECHO_N "(cached) $ECHO_C" >&6 21043fi 21044ac_res=`eval echo '${'$as_ac_Header'}'` 21045 { echo "$as_me:$LINENO: result: $ac_res" >&5 21046echo "${ECHO_T}$ac_res" >&6; } 21047else 21048 # Is the header compilable? 21049{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21050echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21051cat >conftest.$ac_ext <<_ACEOF 21052/* confdefs.h. */ 21053_ACEOF 21054cat confdefs.h >>conftest.$ac_ext 21055cat >>conftest.$ac_ext <<_ACEOF 21056/* end confdefs.h. */ 21057$ac_includes_default 21058#include <$ac_header> 21059_ACEOF 21060rm -f conftest.$ac_objext 21061if { (ac_try="$ac_compile" 21062case "(($ac_try" in 21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21064 *) ac_try_echo=$ac_try;; 21065esac 21066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21067 (eval "$ac_compile") 2>conftest.er1 21068 ac_status=$? 21069 grep -v '^ *+' conftest.er1 >conftest.err 21070 rm -f conftest.er1 21071 cat conftest.err >&5 21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21073 (exit $ac_status); } && { 21074 test -z "$ac_c_werror_flag" || 21075 test ! -s conftest.err 21076 } && test -s conftest.$ac_objext; then 21077 ac_header_compiler=yes 21078else 21079 echo "$as_me: failed program was:" >&5 21080sed 's/^/| /' conftest.$ac_ext >&5 21081 21082 ac_header_compiler=no 21083fi 21084 21085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21086{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21087echo "${ECHO_T}$ac_header_compiler" >&6; } 21088 21089# Is the header present? 21090{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21091echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21092cat >conftest.$ac_ext <<_ACEOF 21093/* confdefs.h. */ 21094_ACEOF 21095cat confdefs.h >>conftest.$ac_ext 21096cat >>conftest.$ac_ext <<_ACEOF 21097/* end confdefs.h. */ 21098#include <$ac_header> 21099_ACEOF 21100if { (ac_try="$ac_cpp conftest.$ac_ext" 21101case "(($ac_try" in 21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21103 *) ac_try_echo=$ac_try;; 21104esac 21105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21107 ac_status=$? 21108 grep -v '^ *+' conftest.er1 >conftest.err 21109 rm -f conftest.er1 21110 cat conftest.err >&5 21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21112 (exit $ac_status); } >/dev/null && { 21113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21114 test ! -s conftest.err 21115 }; then 21116 ac_header_preproc=yes 21117else 21118 echo "$as_me: failed program was:" >&5 21119sed 's/^/| /' conftest.$ac_ext >&5 21120 21121 ac_header_preproc=no 21122fi 21123 21124rm -f conftest.err conftest.$ac_ext 21125{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21126echo "${ECHO_T}$ac_header_preproc" >&6; } 21127 21128# So? What about this header? 21129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21130 yes:no: ) 21131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21132echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21134echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21135 ac_header_preproc=yes 21136 ;; 21137 no:yes:* ) 21138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21139echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21141echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21143echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21145echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21147echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21149echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21150 21151 ;; 21152esac 21153{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21156 echo $ECHO_N "(cached) $ECHO_C" >&6 21157else 21158 eval "$as_ac_Header=\$ac_header_preproc" 21159fi 21160ac_res=`eval echo '${'$as_ac_Header'}'` 21161 { echo "$as_me:$LINENO: result: $ac_res" >&5 21162echo "${ECHO_T}$ac_res" >&6; } 21163 21164fi 21165if test `eval echo '${'$as_ac_Header'}'` = yes; then 21166 cat >>confdefs.h <<_ACEOF 21167#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21168_ACEOF 21169 21170fi 21171 21172done 21173 21174 21175# Checks for typedefs, structures, and compiler characteristics. 21176{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 21177echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 21178if test "${ac_cv_c_const+set}" = set; then 21179 echo $ECHO_N "(cached) $ECHO_C" >&6 21180else 21181 cat >conftest.$ac_ext <<_ACEOF 21182/* confdefs.h. */ 21183_ACEOF 21184cat confdefs.h >>conftest.$ac_ext 21185cat >>conftest.$ac_ext <<_ACEOF 21186/* end confdefs.h. */ 21187 21188int 21189main () 21190{ 21191/* FIXME: Include the comments suggested by Paul. */ 21192#ifndef __cplusplus 21193 /* Ultrix mips cc rejects this. */ 21194 typedef int charset[2]; 21195 const charset cs; 21196 /* SunOS 4.1.1 cc rejects this. */ 21197 char const *const *pcpcc; 21198 char **ppc; 21199 /* NEC SVR4.0.2 mips cc rejects this. */ 21200 struct point {int x, y;}; 21201 static struct point const zero = {0,0}; 21202 /* AIX XL C 1.02.0.0 rejects this. 21203 It does not let you subtract one const X* pointer from another in 21204 an arm of an if-expression whose if-part is not a constant 21205 expression */ 21206 const char *g = "string"; 21207 pcpcc = &g + (g ? g-g : 0); 21208 /* HPUX 7.0 cc rejects these. */ 21209 ++pcpcc; 21210 ppc = (char**) pcpcc; 21211 pcpcc = (char const *const *) ppc; 21212 { /* SCO 3.2v4 cc rejects this. */ 21213 char *t; 21214 char const *s = 0 ? (char *) 0 : (char const *) 0; 21215 21216 *t++ = 0; 21217 if (s) return 0; 21218 } 21219 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 21220 int x[] = {25, 17}; 21221 const int *foo = &x[0]; 21222 ++foo; 21223 } 21224 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 21225 typedef const int *iptr; 21226 iptr p = 0; 21227 ++p; 21228 } 21229 { /* AIX XL C 1.02.0.0 rejects this saying 21230 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 21231 struct s { int j; const int *ap[3]; }; 21232 struct s *b; b->j = 5; 21233 } 21234 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 21235 const int foo = 10; 21236 if (!foo) return 0; 21237 } 21238 return !cs[0] && !zero.x; 21239#endif 21240 21241 ; 21242 return 0; 21243} 21244_ACEOF 21245rm -f conftest.$ac_objext 21246if { (ac_try="$ac_compile" 21247case "(($ac_try" in 21248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21249 *) ac_try_echo=$ac_try;; 21250esac 21251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21252 (eval "$ac_compile") 2>conftest.er1 21253 ac_status=$? 21254 grep -v '^ *+' conftest.er1 >conftest.err 21255 rm -f conftest.er1 21256 cat conftest.err >&5 21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21258 (exit $ac_status); } && { 21259 test -z "$ac_c_werror_flag" || 21260 test ! -s conftest.err 21261 } && test -s conftest.$ac_objext; then 21262 ac_cv_c_const=yes 21263else 21264 echo "$as_me: failed program was:" >&5 21265sed 's/^/| /' conftest.$ac_ext >&5 21266 21267 ac_cv_c_const=no 21268fi 21269 21270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21271fi 21272{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 21273echo "${ECHO_T}$ac_cv_c_const" >&6; } 21274if test $ac_cv_c_const = no; then 21275 21276cat >>confdefs.h <<\_ACEOF 21277#define const 21278_ACEOF 21279 21280fi 21281 21282{ echo "$as_me:$LINENO: checking for inline" >&5 21283echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 21284if test "${ac_cv_c_inline+set}" = set; then 21285 echo $ECHO_N "(cached) $ECHO_C" >&6 21286else 21287 ac_cv_c_inline=no 21288for ac_kw in inline __inline__ __inline; do 21289 cat >conftest.$ac_ext <<_ACEOF 21290/* confdefs.h. */ 21291_ACEOF 21292cat confdefs.h >>conftest.$ac_ext 21293cat >>conftest.$ac_ext <<_ACEOF 21294/* end confdefs.h. */ 21295#ifndef __cplusplus 21296typedef int foo_t; 21297static $ac_kw foo_t static_foo () {return 0; } 21298$ac_kw foo_t foo () {return 0; } 21299#endif 21300 21301_ACEOF 21302rm -f conftest.$ac_objext 21303if { (ac_try="$ac_compile" 21304case "(($ac_try" in 21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21306 *) ac_try_echo=$ac_try;; 21307esac 21308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21309 (eval "$ac_compile") 2>conftest.er1 21310 ac_status=$? 21311 grep -v '^ *+' conftest.er1 >conftest.err 21312 rm -f conftest.er1 21313 cat conftest.err >&5 21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21315 (exit $ac_status); } && { 21316 test -z "$ac_c_werror_flag" || 21317 test ! -s conftest.err 21318 } && test -s conftest.$ac_objext; then 21319 ac_cv_c_inline=$ac_kw 21320else 21321 echo "$as_me: failed program was:" >&5 21322sed 's/^/| /' conftest.$ac_ext >&5 21323 21324 21325fi 21326 21327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21328 test "$ac_cv_c_inline" != no && break 21329done 21330 21331fi 21332{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 21333echo "${ECHO_T}$ac_cv_c_inline" >&6; } 21334 21335 21336case $ac_cv_c_inline in 21337 inline | yes) ;; 21338 *) 21339 case $ac_cv_c_inline in 21340 no) ac_val=;; 21341 *) ac_val=$ac_cv_c_inline;; 21342 esac 21343 cat >>confdefs.h <<_ACEOF 21344#ifndef __cplusplus 21345#define inline $ac_val 21346#endif 21347_ACEOF 21348 ;; 21349esac 21350 21351{ echo "$as_me:$LINENO: checking for pid_t" >&5 21352echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 21353if test "${ac_cv_type_pid_t+set}" = set; then 21354 echo $ECHO_N "(cached) $ECHO_C" >&6 21355else 21356 cat >conftest.$ac_ext <<_ACEOF 21357/* confdefs.h. */ 21358_ACEOF 21359cat confdefs.h >>conftest.$ac_ext 21360cat >>conftest.$ac_ext <<_ACEOF 21361/* end confdefs.h. */ 21362$ac_includes_default 21363typedef pid_t ac__type_new_; 21364int 21365main () 21366{ 21367if ((ac__type_new_ *) 0) 21368 return 0; 21369if (sizeof (ac__type_new_)) 21370 return 0; 21371 ; 21372 return 0; 21373} 21374_ACEOF 21375rm -f conftest.$ac_objext 21376if { (ac_try="$ac_compile" 21377case "(($ac_try" in 21378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21379 *) ac_try_echo=$ac_try;; 21380esac 21381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21382 (eval "$ac_compile") 2>conftest.er1 21383 ac_status=$? 21384 grep -v '^ *+' conftest.er1 >conftest.err 21385 rm -f conftest.er1 21386 cat conftest.err >&5 21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21388 (exit $ac_status); } && { 21389 test -z "$ac_c_werror_flag" || 21390 test ! -s conftest.err 21391 } && test -s conftest.$ac_objext; then 21392 ac_cv_type_pid_t=yes 21393else 21394 echo "$as_me: failed program was:" >&5 21395sed 's/^/| /' conftest.$ac_ext >&5 21396 21397 ac_cv_type_pid_t=no 21398fi 21399 21400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21401fi 21402{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 21403echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 21404if test $ac_cv_type_pid_t = yes; then 21405 : 21406else 21407 21408cat >>confdefs.h <<_ACEOF 21409#define pid_t int 21410_ACEOF 21411 21412fi 21413 21414 21415# Checks for library functions. 21416 21417for ac_func in vprintf 21418do 21419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21420{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21422if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21423 echo $ECHO_N "(cached) $ECHO_C" >&6 21424else 21425 cat >conftest.$ac_ext <<_ACEOF 21426/* confdefs.h. */ 21427_ACEOF 21428cat confdefs.h >>conftest.$ac_ext 21429cat >>conftest.$ac_ext <<_ACEOF 21430/* end confdefs.h. */ 21431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21432 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21433#define $ac_func innocuous_$ac_func 21434 21435/* System header to define __stub macros and hopefully few prototypes, 21436 which can conflict with char $ac_func (); below. 21437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21438 <limits.h> exists even on freestanding compilers. */ 21439 21440#ifdef __STDC__ 21441# include <limits.h> 21442#else 21443# include <assert.h> 21444#endif 21445 21446#undef $ac_func 21447 21448/* Override any GCC internal prototype to avoid an error. 21449 Use char because int might match the return type of a GCC 21450 builtin and then its argument prototype would still apply. */ 21451#ifdef __cplusplus 21452extern "C" 21453#endif 21454char $ac_func (); 21455/* The GNU C library defines this for functions which it implements 21456 to always fail with ENOSYS. Some functions are actually named 21457 something starting with __ and the normal name is an alias. */ 21458#if defined __stub_$ac_func || defined __stub___$ac_func 21459choke me 21460#endif 21461 21462int 21463main () 21464{ 21465return $ac_func (); 21466 ; 21467 return 0; 21468} 21469_ACEOF 21470rm -f conftest.$ac_objext conftest$ac_exeext 21471if { (ac_try="$ac_link" 21472case "(($ac_try" in 21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21474 *) ac_try_echo=$ac_try;; 21475esac 21476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21477 (eval "$ac_link") 2>conftest.er1 21478 ac_status=$? 21479 grep -v '^ *+' conftest.er1 >conftest.err 21480 rm -f conftest.er1 21481 cat conftest.err >&5 21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21483 (exit $ac_status); } && { 21484 test -z "$ac_c_werror_flag" || 21485 test ! -s conftest.err 21486 } && test -s conftest$ac_exeext && 21487 $as_test_x conftest$ac_exeext; then 21488 eval "$as_ac_var=yes" 21489else 21490 echo "$as_me: failed program was:" >&5 21491sed 's/^/| /' conftest.$ac_ext >&5 21492 21493 eval "$as_ac_var=no" 21494fi 21495 21496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21497 conftest$ac_exeext conftest.$ac_ext 21498fi 21499ac_res=`eval echo '${'$as_ac_var'}'` 21500 { echo "$as_me:$LINENO: result: $ac_res" >&5 21501echo "${ECHO_T}$ac_res" >&6; } 21502if test `eval echo '${'$as_ac_var'}'` = yes; then 21503 cat >>confdefs.h <<_ACEOF 21504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21505_ACEOF 21506 21507{ echo "$as_me:$LINENO: checking for _doprnt" >&5 21508echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } 21509if test "${ac_cv_func__doprnt+set}" = set; then 21510 echo $ECHO_N "(cached) $ECHO_C" >&6 21511else 21512 cat >conftest.$ac_ext <<_ACEOF 21513/* confdefs.h. */ 21514_ACEOF 21515cat confdefs.h >>conftest.$ac_ext 21516cat >>conftest.$ac_ext <<_ACEOF 21517/* end confdefs.h. */ 21518/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 21519 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21520#define _doprnt innocuous__doprnt 21521 21522/* System header to define __stub macros and hopefully few prototypes, 21523 which can conflict with char _doprnt (); below. 21524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21525 <limits.h> exists even on freestanding compilers. */ 21526 21527#ifdef __STDC__ 21528# include <limits.h> 21529#else 21530# include <assert.h> 21531#endif 21532 21533#undef _doprnt 21534 21535/* Override any GCC internal prototype to avoid an error. 21536 Use char because int might match the return type of a GCC 21537 builtin and then its argument prototype would still apply. */ 21538#ifdef __cplusplus 21539extern "C" 21540#endif 21541char _doprnt (); 21542/* The GNU C library defines this for functions which it implements 21543 to always fail with ENOSYS. Some functions are actually named 21544 something starting with __ and the normal name is an alias. */ 21545#if defined __stub__doprnt || defined __stub____doprnt 21546choke me 21547#endif 21548 21549int 21550main () 21551{ 21552return _doprnt (); 21553 ; 21554 return 0; 21555} 21556_ACEOF 21557rm -f conftest.$ac_objext conftest$ac_exeext 21558if { (ac_try="$ac_link" 21559case "(($ac_try" in 21560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21561 *) ac_try_echo=$ac_try;; 21562esac 21563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21564 (eval "$ac_link") 2>conftest.er1 21565 ac_status=$? 21566 grep -v '^ *+' conftest.er1 >conftest.err 21567 rm -f conftest.er1 21568 cat conftest.err >&5 21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21570 (exit $ac_status); } && { 21571 test -z "$ac_c_werror_flag" || 21572 test ! -s conftest.err 21573 } && test -s conftest$ac_exeext && 21574 $as_test_x conftest$ac_exeext; then 21575 ac_cv_func__doprnt=yes 21576else 21577 echo "$as_me: failed program was:" >&5 21578sed 's/^/| /' conftest.$ac_ext >&5 21579 21580 ac_cv_func__doprnt=no 21581fi 21582 21583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21584 conftest$ac_exeext conftest.$ac_ext 21585fi 21586{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 21587echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } 21588if test $ac_cv_func__doprnt = yes; then 21589 21590cat >>confdefs.h <<\_ACEOF 21591#define HAVE_DOPRNT 1 21592_ACEOF 21593 21594fi 21595 21596fi 21597done 21598 21599 21600 21601 21602for ac_header in stdlib.h unistd.h 21603do 21604as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21606 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21609 echo $ECHO_N "(cached) $ECHO_C" >&6 21610fi 21611ac_res=`eval echo '${'$as_ac_Header'}'` 21612 { echo "$as_me:$LINENO: result: $ac_res" >&5 21613echo "${ECHO_T}$ac_res" >&6; } 21614else 21615 # Is the header compilable? 21616{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21617echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21618cat >conftest.$ac_ext <<_ACEOF 21619/* confdefs.h. */ 21620_ACEOF 21621cat confdefs.h >>conftest.$ac_ext 21622cat >>conftest.$ac_ext <<_ACEOF 21623/* end confdefs.h. */ 21624$ac_includes_default 21625#include <$ac_header> 21626_ACEOF 21627rm -f conftest.$ac_objext 21628if { (ac_try="$ac_compile" 21629case "(($ac_try" in 21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21631 *) ac_try_echo=$ac_try;; 21632esac 21633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21634 (eval "$ac_compile") 2>conftest.er1 21635 ac_status=$? 21636 grep -v '^ *+' conftest.er1 >conftest.err 21637 rm -f conftest.er1 21638 cat conftest.err >&5 21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21640 (exit $ac_status); } && { 21641 test -z "$ac_c_werror_flag" || 21642 test ! -s conftest.err 21643 } && test -s conftest.$ac_objext; then 21644 ac_header_compiler=yes 21645else 21646 echo "$as_me: failed program was:" >&5 21647sed 's/^/| /' conftest.$ac_ext >&5 21648 21649 ac_header_compiler=no 21650fi 21651 21652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21653{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21654echo "${ECHO_T}$ac_header_compiler" >&6; } 21655 21656# Is the header present? 21657{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21658echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21659cat >conftest.$ac_ext <<_ACEOF 21660/* confdefs.h. */ 21661_ACEOF 21662cat confdefs.h >>conftest.$ac_ext 21663cat >>conftest.$ac_ext <<_ACEOF 21664/* end confdefs.h. */ 21665#include <$ac_header> 21666_ACEOF 21667if { (ac_try="$ac_cpp conftest.$ac_ext" 21668case "(($ac_try" in 21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21670 *) ac_try_echo=$ac_try;; 21671esac 21672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21674 ac_status=$? 21675 grep -v '^ *+' conftest.er1 >conftest.err 21676 rm -f conftest.er1 21677 cat conftest.err >&5 21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21679 (exit $ac_status); } >/dev/null && { 21680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21681 test ! -s conftest.err 21682 }; then 21683 ac_header_preproc=yes 21684else 21685 echo "$as_me: failed program was:" >&5 21686sed 's/^/| /' conftest.$ac_ext >&5 21687 21688 ac_header_preproc=no 21689fi 21690 21691rm -f conftest.err conftest.$ac_ext 21692{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21693echo "${ECHO_T}$ac_header_preproc" >&6; } 21694 21695# So? What about this header? 21696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21697 yes:no: ) 21698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21699echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21701echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21702 ac_header_preproc=yes 21703 ;; 21704 no:yes:* ) 21705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21706echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21708echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21710echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21712echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21714echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21716echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21717 21718 ;; 21719esac 21720{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21723 echo $ECHO_N "(cached) $ECHO_C" >&6 21724else 21725 eval "$as_ac_Header=\$ac_header_preproc" 21726fi 21727ac_res=`eval echo '${'$as_ac_Header'}'` 21728 { echo "$as_me:$LINENO: result: $ac_res" >&5 21729echo "${ECHO_T}$ac_res" >&6; } 21730 21731fi 21732if test `eval echo '${'$as_ac_Header'}'` = yes; then 21733 cat >>confdefs.h <<_ACEOF 21734#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21735_ACEOF 21736 21737fi 21738 21739done 21740 21741 21742for ac_func in getpagesize 21743do 21744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21745{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21747if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21748 echo $ECHO_N "(cached) $ECHO_C" >&6 21749else 21750 cat >conftest.$ac_ext <<_ACEOF 21751/* confdefs.h. */ 21752_ACEOF 21753cat confdefs.h >>conftest.$ac_ext 21754cat >>conftest.$ac_ext <<_ACEOF 21755/* end confdefs.h. */ 21756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21757 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21758#define $ac_func innocuous_$ac_func 21759 21760/* System header to define __stub macros and hopefully few prototypes, 21761 which can conflict with char $ac_func (); below. 21762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21763 <limits.h> exists even on freestanding compilers. */ 21764 21765#ifdef __STDC__ 21766# include <limits.h> 21767#else 21768# include <assert.h> 21769#endif 21770 21771#undef $ac_func 21772 21773/* Override any GCC internal prototype to avoid an error. 21774 Use char because int might match the return type of a GCC 21775 builtin and then its argument prototype would still apply. */ 21776#ifdef __cplusplus 21777extern "C" 21778#endif 21779char $ac_func (); 21780/* The GNU C library defines this for functions which it implements 21781 to always fail with ENOSYS. Some functions are actually named 21782 something starting with __ and the normal name is an alias. */ 21783#if defined __stub_$ac_func || defined __stub___$ac_func 21784choke me 21785#endif 21786 21787int 21788main () 21789{ 21790return $ac_func (); 21791 ; 21792 return 0; 21793} 21794_ACEOF 21795rm -f conftest.$ac_objext conftest$ac_exeext 21796if { (ac_try="$ac_link" 21797case "(($ac_try" in 21798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21799 *) ac_try_echo=$ac_try;; 21800esac 21801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21802 (eval "$ac_link") 2>conftest.er1 21803 ac_status=$? 21804 grep -v '^ *+' conftest.er1 >conftest.err 21805 rm -f conftest.er1 21806 cat conftest.err >&5 21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21808 (exit $ac_status); } && { 21809 test -z "$ac_c_werror_flag" || 21810 test ! -s conftest.err 21811 } && test -s conftest$ac_exeext && 21812 $as_test_x conftest$ac_exeext; then 21813 eval "$as_ac_var=yes" 21814else 21815 echo "$as_me: failed program was:" >&5 21816sed 's/^/| /' conftest.$ac_ext >&5 21817 21818 eval "$as_ac_var=no" 21819fi 21820 21821rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21822 conftest$ac_exeext conftest.$ac_ext 21823fi 21824ac_res=`eval echo '${'$as_ac_var'}'` 21825 { echo "$as_me:$LINENO: result: $ac_res" >&5 21826echo "${ECHO_T}$ac_res" >&6; } 21827if test `eval echo '${'$as_ac_var'}'` = yes; then 21828 cat >>confdefs.h <<_ACEOF 21829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21830_ACEOF 21831 21832fi 21833done 21834 21835{ echo "$as_me:$LINENO: checking for working mmap" >&5 21836echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 21837if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 21838 echo $ECHO_N "(cached) $ECHO_C" >&6 21839else 21840 if test "$cross_compiling" = yes; then 21841 ac_cv_func_mmap_fixed_mapped=no 21842else 21843 cat >conftest.$ac_ext <<_ACEOF 21844/* confdefs.h. */ 21845_ACEOF 21846cat confdefs.h >>conftest.$ac_ext 21847cat >>conftest.$ac_ext <<_ACEOF 21848/* end confdefs.h. */ 21849$ac_includes_default 21850/* malloc might have been renamed as rpl_malloc. */ 21851#undef malloc 21852 21853/* Thanks to Mike Haertel and Jim Avera for this test. 21854 Here is a matrix of mmap possibilities: 21855 mmap private not fixed 21856 mmap private fixed at somewhere currently unmapped 21857 mmap private fixed at somewhere already mapped 21858 mmap shared not fixed 21859 mmap shared fixed at somewhere currently unmapped 21860 mmap shared fixed at somewhere already mapped 21861 For private mappings, we should verify that changes cannot be read() 21862 back from the file, nor mmap's back from the file at a different 21863 address. (There have been systems where private was not correctly 21864 implemented like the infamous i386 svr4.0, and systems where the 21865 VM page cache was not coherent with the file system buffer cache 21866 like early versions of FreeBSD and possibly contemporary NetBSD.) 21867 For shared mappings, we should conversely verify that changes get 21868 propagated back to all the places they're supposed to be. 21869 21870 Grep wants private fixed already mapped. 21871 The main things grep needs to know about mmap are: 21872 * does it exist and is it safe to write into the mmap'd area 21873 * how to use it (BSD variants) */ 21874 21875#include <fcntl.h> 21876#include <sys/mman.h> 21877 21878#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 21879char *malloc (); 21880#endif 21881 21882/* This mess was copied from the GNU getpagesize.h. */ 21883#ifndef HAVE_GETPAGESIZE 21884/* Assume that all systems that can run configure have sys/param.h. */ 21885# ifndef HAVE_SYS_PARAM_H 21886# define HAVE_SYS_PARAM_H 1 21887# endif 21888 21889# ifdef _SC_PAGESIZE 21890# define getpagesize() sysconf(_SC_PAGESIZE) 21891# else /* no _SC_PAGESIZE */ 21892# ifdef HAVE_SYS_PARAM_H 21893# include <sys/param.h> 21894# ifdef EXEC_PAGESIZE 21895# define getpagesize() EXEC_PAGESIZE 21896# else /* no EXEC_PAGESIZE */ 21897# ifdef NBPG 21898# define getpagesize() NBPG * CLSIZE 21899# ifndef CLSIZE 21900# define CLSIZE 1 21901# endif /* no CLSIZE */ 21902# else /* no NBPG */ 21903# ifdef NBPC 21904# define getpagesize() NBPC 21905# else /* no NBPC */ 21906# ifdef PAGESIZE 21907# define getpagesize() PAGESIZE 21908# endif /* PAGESIZE */ 21909# endif /* no NBPC */ 21910# endif /* no NBPG */ 21911# endif /* no EXEC_PAGESIZE */ 21912# else /* no HAVE_SYS_PARAM_H */ 21913# define getpagesize() 8192 /* punt totally */ 21914# endif /* no HAVE_SYS_PARAM_H */ 21915# endif /* no _SC_PAGESIZE */ 21916 21917#endif /* no HAVE_GETPAGESIZE */ 21918 21919int 21920main () 21921{ 21922 char *data, *data2, *data3; 21923 int i, pagesize; 21924 int fd; 21925 21926 pagesize = getpagesize (); 21927 21928 /* First, make a file with some known garbage in it. */ 21929 data = (char *) malloc (pagesize); 21930 if (!data) 21931 return 1; 21932 for (i = 0; i < pagesize; ++i) 21933 *(data + i) = rand (); 21934 umask (0); 21935 fd = creat ("conftest.mmap", 0600); 21936 if (fd < 0) 21937 return 1; 21938 if (write (fd, data, pagesize) != pagesize) 21939 return 1; 21940 close (fd); 21941 21942 /* Next, try to mmap the file at a fixed address which already has 21943 something else allocated at it. If we can, also make sure that 21944 we see the same garbage. */ 21945 fd = open ("conftest.mmap", O_RDWR); 21946 if (fd < 0) 21947 return 1; 21948 data2 = (char *) malloc (2 * pagesize); 21949 if (!data2) 21950 return 1; 21951 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 21952 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 21953 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 21954 return 1; 21955 for (i = 0; i < pagesize; ++i) 21956 if (*(data + i) != *(data2 + i)) 21957 return 1; 21958 21959 /* Finally, make sure that changes to the mapped area do not 21960 percolate back to the file as seen by read(). (This is a bug on 21961 some variants of i386 svr4.0.) */ 21962 for (i = 0; i < pagesize; ++i) 21963 *(data2 + i) = *(data2 + i) + 1; 21964 data3 = (char *) malloc (pagesize); 21965 if (!data3) 21966 return 1; 21967 if (read (fd, data3, pagesize) != pagesize) 21968 return 1; 21969 for (i = 0; i < pagesize; ++i) 21970 if (*(data + i) != *(data3 + i)) 21971 return 1; 21972 close (fd); 21973 return 0; 21974} 21975_ACEOF 21976rm -f conftest$ac_exeext 21977if { (ac_try="$ac_link" 21978case "(($ac_try" in 21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21980 *) ac_try_echo=$ac_try;; 21981esac 21982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21983 (eval "$ac_link") 2>&5 21984 ac_status=$? 21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21987 { (case "(($ac_try" in 21988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21989 *) ac_try_echo=$ac_try;; 21990esac 21991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21992 (eval "$ac_try") 2>&5 21993 ac_status=$? 21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21995 (exit $ac_status); }; }; then 21996 ac_cv_func_mmap_fixed_mapped=yes 21997else 21998 echo "$as_me: program exited with status $ac_status" >&5 21999echo "$as_me: failed program was:" >&5 22000sed 's/^/| /' conftest.$ac_ext >&5 22001 22002( exit $ac_status ) 22003ac_cv_func_mmap_fixed_mapped=no 22004fi 22005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22006fi 22007 22008 22009fi 22010{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 22011echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 22012if test $ac_cv_func_mmap_fixed_mapped = yes; then 22013 22014cat >>confdefs.h <<\_ACEOF 22015#define HAVE_MMAP 1 22016_ACEOF 22017 22018fi 22019rm -f conftest.mmap 22020 22021 22022 22023 22024 22025 22026 22027 22028 22029 22030 22031 22032 22033 22034 22035 22036 22037 22038for ac_func in geteuid getuid link memmove memset mkstemp strchr strrchr strtol getopt getopt_long sysconf ftruncate chsize rand random lrand48 22039do 22040as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22041{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22042echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22043if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22044 echo $ECHO_N "(cached) $ECHO_C" >&6 22045else 22046 cat >conftest.$ac_ext <<_ACEOF 22047/* confdefs.h. */ 22048_ACEOF 22049cat confdefs.h >>conftest.$ac_ext 22050cat >>conftest.$ac_ext <<_ACEOF 22051/* end confdefs.h. */ 22052/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22053 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22054#define $ac_func innocuous_$ac_func 22055 22056/* System header to define __stub macros and hopefully few prototypes, 22057 which can conflict with char $ac_func (); below. 22058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22059 <limits.h> exists even on freestanding compilers. */ 22060 22061#ifdef __STDC__ 22062# include <limits.h> 22063#else 22064# include <assert.h> 22065#endif 22066 22067#undef $ac_func 22068 22069/* Override any GCC internal prototype to avoid an error. 22070 Use char because int might match the return type of a GCC 22071 builtin and then its argument prototype would still apply. */ 22072#ifdef __cplusplus 22073extern "C" 22074#endif 22075char $ac_func (); 22076/* The GNU C library defines this for functions which it implements 22077 to always fail with ENOSYS. Some functions are actually named 22078 something starting with __ and the normal name is an alias. */ 22079#if defined __stub_$ac_func || defined __stub___$ac_func 22080choke me 22081#endif 22082 22083int 22084main () 22085{ 22086return $ac_func (); 22087 ; 22088 return 0; 22089} 22090_ACEOF 22091rm -f conftest.$ac_objext conftest$ac_exeext 22092if { (ac_try="$ac_link" 22093case "(($ac_try" in 22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22095 *) ac_try_echo=$ac_try;; 22096esac 22097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22098 (eval "$ac_link") 2>conftest.er1 22099 ac_status=$? 22100 grep -v '^ *+' conftest.er1 >conftest.err 22101 rm -f conftest.er1 22102 cat conftest.err >&5 22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22104 (exit $ac_status); } && { 22105 test -z "$ac_c_werror_flag" || 22106 test ! -s conftest.err 22107 } && test -s conftest$ac_exeext && 22108 $as_test_x conftest$ac_exeext; then 22109 eval "$as_ac_var=yes" 22110else 22111 echo "$as_me: failed program was:" >&5 22112sed 's/^/| /' conftest.$ac_ext >&5 22113 22114 eval "$as_ac_var=no" 22115fi 22116 22117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22118 conftest$ac_exeext conftest.$ac_ext 22119fi 22120ac_res=`eval echo '${'$as_ac_var'}'` 22121 { echo "$as_me:$LINENO: result: $ac_res" >&5 22122echo "${ECHO_T}$ac_res" >&6; } 22123if test `eval echo '${'$as_ac_var'}'` = yes; then 22124 cat >>confdefs.h <<_ACEOF 22125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22126_ACEOF 22127 22128fi 22129done 22130 22131 22132# 22133# Checks for iconv 22134# 22135{ echo "$as_me:$LINENO: checking for a usable iconv" >&5 22136echo $ECHO_N "checking for a usable iconv... $ECHO_C" >&6; } 22137ICONV_LIBS="" 22138cat >conftest.$ac_ext <<_ACEOF 22139/* confdefs.h. */ 22140_ACEOF 22141cat confdefs.h >>conftest.$ac_ext 22142cat >>conftest.$ac_ext <<_ACEOF 22143/* end confdefs.h. */ 22144#include <iconv.h> 22145int 22146main () 22147{ 22148iconv_open ("from", "to"); 22149 ; 22150 return 0; 22151} 22152_ACEOF 22153rm -f conftest.$ac_objext conftest$ac_exeext 22154if { (ac_try="$ac_link" 22155case "(($ac_try" in 22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22157 *) ac_try_echo=$ac_try;; 22158esac 22159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22160 (eval "$ac_link") 2>conftest.er1 22161 ac_status=$? 22162 grep -v '^ *+' conftest.er1 >conftest.err 22163 rm -f conftest.er1 22164 cat conftest.err >&5 22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22166 (exit $ac_status); } && { 22167 test -z "$ac_c_werror_flag" || 22168 test ! -s conftest.err 22169 } && test -s conftest$ac_exeext && 22170 $as_test_x conftest$ac_exeext; then 22171 use_iconv=1 22172else 22173 echo "$as_me: failed program was:" >&5 22174sed 's/^/| /' conftest.$ac_ext >&5 22175 22176 use_iconv=0 22177fi 22178 22179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22180 conftest$ac_exeext conftest.$ac_ext 22181if test x$use_iconv = x1; then 22182 { echo "$as_me:$LINENO: result: libc" >&5 22183echo "${ECHO_T}libc" >&6; } 22184else 22185 # try using libiconv 22186 fontconfig_save_libs="$LIBS" 22187 LIBS="$LIBS -liconv" 22188 22189 cat >conftest.$ac_ext <<_ACEOF 22190/* confdefs.h. */ 22191_ACEOF 22192cat confdefs.h >>conftest.$ac_ext 22193cat >>conftest.$ac_ext <<_ACEOF 22194/* end confdefs.h. */ 22195#include <iconv.h> 22196int 22197main () 22198{ 22199iconv_open ("from", "to"); 22200 ; 22201 return 0; 22202} 22203_ACEOF 22204rm -f conftest.$ac_objext conftest$ac_exeext 22205if { (ac_try="$ac_link" 22206case "(($ac_try" in 22207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22208 *) ac_try_echo=$ac_try;; 22209esac 22210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22211 (eval "$ac_link") 2>conftest.er1 22212 ac_status=$? 22213 grep -v '^ *+' conftest.er1 >conftest.err 22214 rm -f conftest.er1 22215 cat conftest.err >&5 22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22217 (exit $ac_status); } && { 22218 test -z "$ac_c_werror_flag" || 22219 test ! -s conftest.err 22220 } && test -s conftest$ac_exeext && 22221 $as_test_x conftest$ac_exeext; then 22222 use_iconv=1 22223else 22224 echo "$as_me: failed program was:" >&5 22225sed 's/^/| /' conftest.$ac_ext >&5 22226 22227 use_iconv=0 22228fi 22229 22230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22231 conftest$ac_exeext conftest.$ac_ext 22232 22233 if test x$use_iconv = x1; then 22234 ICONV_LIBS="-liconv" 22235 { echo "$as_me:$LINENO: result: libiconv" >&5 22236echo "${ECHO_T}libiconv" >&6; } 22237 else 22238 { echo "$as_me:$LINENO: result: no" >&5 22239echo "${ECHO_T}no" >&6; } 22240 fi 22241 22242 LIBS="$fontconfig_save_libs" 22243fi 22244 22245 22246cat >>confdefs.h <<_ACEOF 22247#define USE_ICONV $use_iconv 22248_ACEOF 22249 22250 22251# 22252# Checks for FreeType 22253# 22254 22255 22256# Check whether --with-freetype-config was given. 22257if test "${with_freetype_config+set}" = set; then 22258 withval=$with_freetype_config; freetype_config=$withval 22259else 22260 freetype_config=yes 22261fi 22262 22263 22264if test "$freetype_config" = "yes"; then 22265 # Extract the first word of "freetype-config", so it can be a program name with args. 22266set dummy freetype-config; ac_word=$2 22267{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22269if test "${ac_cv_path_ft_config+set}" = set; then 22270 echo $ECHO_N "(cached) $ECHO_C" >&6 22271else 22272 case $ft_config in 22273 [\\/]* | ?:[\\/]*) 22274 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path. 22275 ;; 22276 *) 22277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22278for as_dir in $PATH 22279do 22280 IFS=$as_save_IFS 22281 test -z "$as_dir" && as_dir=. 22282 for ac_exec_ext in '' $ac_executable_extensions; do 22283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22284 ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext" 22285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22286 break 2 22287 fi 22288done 22289done 22290IFS=$as_save_IFS 22291 22292 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no" 22293 ;; 22294esac 22295fi 22296ft_config=$ac_cv_path_ft_config 22297if test -n "$ft_config"; then 22298 { echo "$as_me:$LINENO: result: $ft_config" >&5 22299echo "${ECHO_T}$ft_config" >&6; } 22300else 22301 { echo "$as_me:$LINENO: result: no" >&5 22302echo "${ECHO_T}no" >&6; } 22303fi 22304 22305 22306 if test "$ft_config" = "no"; then 22307 { { echo "$as_me:$LINENO: error: You must have freetype installed; see http://www.freetype.org/" >&5 22308echo "$as_me: error: You must have freetype installed; see http://www.freetype.org/" >&2;} 22309 { (exit 1); exit 1; }; } 22310 fi 22311else 22312 ft_config="$freetype_config" 22313fi 22314 22315FREETYPE_CFLAGS="`$ft_config --cflags`" 22316FREETYPE_LIBS="`$ft_config --libs`" 22317 22318 22319 22320 22321# 22322# Check to see whether we have: 22323# FT_Get_Next_Char 22324# FT_Get_BDF_Property 22325# FT_Get_PS_Font_Info 22326# FT_Has_PS_Glyph_Names 22327# 22328 22329fontconfig_save_libs="$LIBS" 22330fontconfig_save_cflags="$CFLAGS" 22331LIBS="$LIBS $FREETYPE_LIBS" 22332CFLAGS="$CFLAGS $FREETYPE_CFLAGS" 22333 22334 22335 22336 22337 22338for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format 22339do 22340as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22341{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22343if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22344 echo $ECHO_N "(cached) $ECHO_C" >&6 22345else 22346 cat >conftest.$ac_ext <<_ACEOF 22347/* confdefs.h. */ 22348_ACEOF 22349cat confdefs.h >>conftest.$ac_ext 22350cat >>conftest.$ac_ext <<_ACEOF 22351/* end confdefs.h. */ 22352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22353 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22354#define $ac_func innocuous_$ac_func 22355 22356/* System header to define __stub macros and hopefully few prototypes, 22357 which can conflict with char $ac_func (); below. 22358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22359 <limits.h> exists even on freestanding compilers. */ 22360 22361#ifdef __STDC__ 22362# include <limits.h> 22363#else 22364# include <assert.h> 22365#endif 22366 22367#undef $ac_func 22368 22369/* Override any GCC internal prototype to avoid an error. 22370 Use char because int might match the return type of a GCC 22371 builtin and then its argument prototype would still apply. */ 22372#ifdef __cplusplus 22373extern "C" 22374#endif 22375char $ac_func (); 22376/* The GNU C library defines this for functions which it implements 22377 to always fail with ENOSYS. Some functions are actually named 22378 something starting with __ and the normal name is an alias. */ 22379#if defined __stub_$ac_func || defined __stub___$ac_func 22380choke me 22381#endif 22382 22383int 22384main () 22385{ 22386return $ac_func (); 22387 ; 22388 return 0; 22389} 22390_ACEOF 22391rm -f conftest.$ac_objext conftest$ac_exeext 22392if { (ac_try="$ac_link" 22393case "(($ac_try" in 22394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22395 *) ac_try_echo=$ac_try;; 22396esac 22397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22398 (eval "$ac_link") 2>conftest.er1 22399 ac_status=$? 22400 grep -v '^ *+' conftest.er1 >conftest.err 22401 rm -f conftest.er1 22402 cat conftest.err >&5 22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22404 (exit $ac_status); } && { 22405 test -z "$ac_c_werror_flag" || 22406 test ! -s conftest.err 22407 } && test -s conftest$ac_exeext && 22408 $as_test_x conftest$ac_exeext; then 22409 eval "$as_ac_var=yes" 22410else 22411 echo "$as_me: failed program was:" >&5 22412sed 's/^/| /' conftest.$ac_ext >&5 22413 22414 eval "$as_ac_var=no" 22415fi 22416 22417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22418 conftest$ac_exeext conftest.$ac_ext 22419fi 22420ac_res=`eval echo '${'$as_ac_var'}'` 22421 { echo "$as_me:$LINENO: result: $ac_res" >&5 22422echo "${ECHO_T}$ac_res" >&6; } 22423if test `eval echo '${'$as_ac_var'}'` = yes; then 22424 cat >>confdefs.h <<_ACEOF 22425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22426_ACEOF 22427 22428fi 22429done 22430 22431{ echo "$as_me:$LINENO: checking for FT_Bitmap_Size.y_ppem" >&5 22432echo $ECHO_N "checking for FT_Bitmap_Size.y_ppem... $ECHO_C" >&6; } 22433if test "${ac_cv_member_FT_Bitmap_Size_y_ppem+set}" = set; then 22434 echo $ECHO_N "(cached) $ECHO_C" >&6 22435else 22436 cat >conftest.$ac_ext <<_ACEOF 22437/* confdefs.h. */ 22438_ACEOF 22439cat confdefs.h >>conftest.$ac_ext 22440cat >>conftest.$ac_ext <<_ACEOF 22441/* end confdefs.h. */ 22442#include <ft2build.h> 22443#include FT_FREETYPE_H 22444 22445int 22446main () 22447{ 22448static FT_Bitmap_Size ac_aggr; 22449if (ac_aggr.y_ppem) 22450return 0; 22451 ; 22452 return 0; 22453} 22454_ACEOF 22455rm -f conftest.$ac_objext 22456if { (ac_try="$ac_compile" 22457case "(($ac_try" in 22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22459 *) ac_try_echo=$ac_try;; 22460esac 22461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22462 (eval "$ac_compile") 2>conftest.er1 22463 ac_status=$? 22464 grep -v '^ *+' conftest.er1 >conftest.err 22465 rm -f conftest.er1 22466 cat conftest.err >&5 22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22468 (exit $ac_status); } && { 22469 test -z "$ac_c_werror_flag" || 22470 test ! -s conftest.err 22471 } && test -s conftest.$ac_objext; then 22472 ac_cv_member_FT_Bitmap_Size_y_ppem=yes 22473else 22474 echo "$as_me: failed program was:" >&5 22475sed 's/^/| /' conftest.$ac_ext >&5 22476 22477 cat >conftest.$ac_ext <<_ACEOF 22478/* confdefs.h. */ 22479_ACEOF 22480cat confdefs.h >>conftest.$ac_ext 22481cat >>conftest.$ac_ext <<_ACEOF 22482/* end confdefs.h. */ 22483#include <ft2build.h> 22484#include FT_FREETYPE_H 22485 22486int 22487main () 22488{ 22489static FT_Bitmap_Size ac_aggr; 22490if (sizeof ac_aggr.y_ppem) 22491return 0; 22492 ; 22493 return 0; 22494} 22495_ACEOF 22496rm -f conftest.$ac_objext 22497if { (ac_try="$ac_compile" 22498case "(($ac_try" in 22499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22500 *) ac_try_echo=$ac_try;; 22501esac 22502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22503 (eval "$ac_compile") 2>conftest.er1 22504 ac_status=$? 22505 grep -v '^ *+' conftest.er1 >conftest.err 22506 rm -f conftest.er1 22507 cat conftest.err >&5 22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22509 (exit $ac_status); } && { 22510 test -z "$ac_c_werror_flag" || 22511 test ! -s conftest.err 22512 } && test -s conftest.$ac_objext; then 22513 ac_cv_member_FT_Bitmap_Size_y_ppem=yes 22514else 22515 echo "$as_me: failed program was:" >&5 22516sed 's/^/| /' conftest.$ac_ext >&5 22517 22518 ac_cv_member_FT_Bitmap_Size_y_ppem=no 22519fi 22520 22521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22522fi 22523 22524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22525fi 22526{ echo "$as_me:$LINENO: result: $ac_cv_member_FT_Bitmap_Size_y_ppem" >&5 22527echo "${ECHO_T}$ac_cv_member_FT_Bitmap_Size_y_ppem" >&6; } 22528if test $ac_cv_member_FT_Bitmap_Size_y_ppem = yes; then 22529 HAVE_FT_BITMAP_SIZE_Y_PPEM=1 22530else 22531 HAVE_FT_BITMAP_SIZE_Y_PPEM=0 22532fi 22533 22534 22535cat >>confdefs.h <<_ACEOF 22536#define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM 22537_ACEOF 22538 22539CFLAGS="$fontconfig_save_cflags" 22540LIBS="$fontconfig_save_libs" 22541 22542# 22543# Check expat configuration 22544# 22545 22546 22547# Check whether --with-expat was given. 22548if test "${with_expat+set}" = set; then 22549 withval=$with_expat; expat=$withval 22550else 22551 expat=yes 22552fi 22553 22554 22555# Check whether --with-expat-includes was given. 22556if test "${with_expat_includes+set}" = set; then 22557 withval=$with_expat_includes; expat_includes=$withval 22558else 22559 expat_includes=yes 22560fi 22561 22562 22563# Check whether --with-expat-lib was given. 22564if test "${with_expat_lib+set}" = set; then 22565 withval=$with_expat_lib; expat_lib=$withval 22566else 22567 expat_lib=yes 22568fi 22569 22570 22571if test "$enable_libxml2" != "yes"; then 22572 case "$expat" in 22573 no) 22574 ;; 22575 *) 22576 case "$expat_includes" in 22577 yes) 22578 case "$expat" in 22579 yes) 22580 ;; 22581 *) 22582 EXPAT_CFLAGS="-I$expat/include" 22583 ;; 22584 esac 22585 ;; 22586 no) 22587 EXPAT_CFLAGS="" 22588 ;; 22589 *) 22590 EXPAT_CFLAGS="-I$expat_includes" 22591 ;; 22592 esac 22593 case "$expat_lib" in 22594 yes) 22595 case "$expat" in 22596 yes) 22597 EXPAT_LIBS="-lexpat" 22598 ;; 22599 *) 22600 EXPAT_LIBS="-L$expat/lib -lexpat" 22601 ;; 22602 esac 22603 ;; 22604 no) 22605 ;; 22606 *) 22607 EXPAT_LIBS="-L$expat_lib -lexpat" 22608 ;; 22609 esac 22610 22611 expatsaved_CPPFLAGS="$CPPFLAGS" 22612 CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS" 22613 expatsaved_LIBS="$LIBS" 22614 LIBS="$LIBS $EXPAT_LIBS" 22615 22616 if test "${ac_cv_header_expat_h+set}" = set; then 22617 { echo "$as_me:$LINENO: checking for expat.h" >&5 22618echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; } 22619if test "${ac_cv_header_expat_h+set}" = set; then 22620 echo $ECHO_N "(cached) $ECHO_C" >&6 22621fi 22622{ echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 22623echo "${ECHO_T}$ac_cv_header_expat_h" >&6; } 22624else 22625 # Is the header compilable? 22626{ echo "$as_me:$LINENO: checking expat.h usability" >&5 22627echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6; } 22628cat >conftest.$ac_ext <<_ACEOF 22629/* confdefs.h. */ 22630_ACEOF 22631cat confdefs.h >>conftest.$ac_ext 22632cat >>conftest.$ac_ext <<_ACEOF 22633/* end confdefs.h. */ 22634$ac_includes_default 22635#include <expat.h> 22636_ACEOF 22637rm -f conftest.$ac_objext 22638if { (ac_try="$ac_compile" 22639case "(($ac_try" in 22640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22641 *) ac_try_echo=$ac_try;; 22642esac 22643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22644 (eval "$ac_compile") 2>conftest.er1 22645 ac_status=$? 22646 grep -v '^ *+' conftest.er1 >conftest.err 22647 rm -f conftest.er1 22648 cat conftest.err >&5 22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22650 (exit $ac_status); } && { 22651 test -z "$ac_c_werror_flag" || 22652 test ! -s conftest.err 22653 } && test -s conftest.$ac_objext; then 22654 ac_header_compiler=yes 22655else 22656 echo "$as_me: failed program was:" >&5 22657sed 's/^/| /' conftest.$ac_ext >&5 22658 22659 ac_header_compiler=no 22660fi 22661 22662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22663{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22664echo "${ECHO_T}$ac_header_compiler" >&6; } 22665 22666# Is the header present? 22667{ echo "$as_me:$LINENO: checking expat.h presence" >&5 22668echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6; } 22669cat >conftest.$ac_ext <<_ACEOF 22670/* confdefs.h. */ 22671_ACEOF 22672cat confdefs.h >>conftest.$ac_ext 22673cat >>conftest.$ac_ext <<_ACEOF 22674/* end confdefs.h. */ 22675#include <expat.h> 22676_ACEOF 22677if { (ac_try="$ac_cpp conftest.$ac_ext" 22678case "(($ac_try" in 22679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22680 *) ac_try_echo=$ac_try;; 22681esac 22682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 22684 ac_status=$? 22685 grep -v '^ *+' conftest.er1 >conftest.err 22686 rm -f conftest.er1 22687 cat conftest.err >&5 22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22689 (exit $ac_status); } >/dev/null && { 22690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 22691 test ! -s conftest.err 22692 }; then 22693 ac_header_preproc=yes 22694else 22695 echo "$as_me: failed program was:" >&5 22696sed 's/^/| /' conftest.$ac_ext >&5 22697 22698 ac_header_preproc=no 22699fi 22700 22701rm -f conftest.err conftest.$ac_ext 22702{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22703echo "${ECHO_T}$ac_header_preproc" >&6; } 22704 22705# So? What about this header? 22706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22707 yes:no: ) 22708 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 22709echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 22710 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 22711echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} 22712 ac_header_preproc=yes 22713 ;; 22714 no:yes:* ) 22715 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 22716echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} 22717 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 22718echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} 22719 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 22720echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} 22721 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 22722echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} 22723 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 22724echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} 22725 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 22726echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} 22727 22728 ;; 22729esac 22730{ echo "$as_me:$LINENO: checking for expat.h" >&5 22731echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; } 22732if test "${ac_cv_header_expat_h+set}" = set; then 22733 echo $ECHO_N "(cached) $ECHO_C" >&6 22734else 22735 ac_cv_header_expat_h=$ac_header_preproc 22736fi 22737{ echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 22738echo "${ECHO_T}$ac_cv_header_expat_h" >&6; } 22739 22740fi 22741 22742 22743 case "$ac_cv_header_expat_h" in 22744 no) 22745 if test "${ac_cv_header_xmlparse_h+set}" = set; then 22746 { echo "$as_me:$LINENO: checking for xmlparse.h" >&5 22747echo $ECHO_N "checking for xmlparse.h... $ECHO_C" >&6; } 22748if test "${ac_cv_header_xmlparse_h+set}" = set; then 22749 echo $ECHO_N "(cached) $ECHO_C" >&6 22750fi 22751{ echo "$as_me:$LINENO: result: $ac_cv_header_xmlparse_h" >&5 22752echo "${ECHO_T}$ac_cv_header_xmlparse_h" >&6; } 22753else 22754 # Is the header compilable? 22755{ echo "$as_me:$LINENO: checking xmlparse.h usability" >&5 22756echo $ECHO_N "checking xmlparse.h usability... $ECHO_C" >&6; } 22757cat >conftest.$ac_ext <<_ACEOF 22758/* confdefs.h. */ 22759_ACEOF 22760cat confdefs.h >>conftest.$ac_ext 22761cat >>conftest.$ac_ext <<_ACEOF 22762/* end confdefs.h. */ 22763$ac_includes_default 22764#include <xmlparse.h> 22765_ACEOF 22766rm -f conftest.$ac_objext 22767if { (ac_try="$ac_compile" 22768case "(($ac_try" in 22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22770 *) ac_try_echo=$ac_try;; 22771esac 22772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22773 (eval "$ac_compile") 2>conftest.er1 22774 ac_status=$? 22775 grep -v '^ *+' conftest.er1 >conftest.err 22776 rm -f conftest.er1 22777 cat conftest.err >&5 22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22779 (exit $ac_status); } && { 22780 test -z "$ac_c_werror_flag" || 22781 test ! -s conftest.err 22782 } && test -s conftest.$ac_objext; then 22783 ac_header_compiler=yes 22784else 22785 echo "$as_me: failed program was:" >&5 22786sed 's/^/| /' conftest.$ac_ext >&5 22787 22788 ac_header_compiler=no 22789fi 22790 22791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22792{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 22793echo "${ECHO_T}$ac_header_compiler" >&6; } 22794 22795# Is the header present? 22796{ echo "$as_me:$LINENO: checking xmlparse.h presence" >&5 22797echo $ECHO_N "checking xmlparse.h presence... $ECHO_C" >&6; } 22798cat >conftest.$ac_ext <<_ACEOF 22799/* confdefs.h. */ 22800_ACEOF 22801cat confdefs.h >>conftest.$ac_ext 22802cat >>conftest.$ac_ext <<_ACEOF 22803/* end confdefs.h. */ 22804#include <xmlparse.h> 22805_ACEOF 22806if { (ac_try="$ac_cpp conftest.$ac_ext" 22807case "(($ac_try" in 22808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22809 *) ac_try_echo=$ac_try;; 22810esac 22811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 22813 ac_status=$? 22814 grep -v '^ *+' conftest.er1 >conftest.err 22815 rm -f conftest.er1 22816 cat conftest.err >&5 22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22818 (exit $ac_status); } >/dev/null && { 22819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 22820 test ! -s conftest.err 22821 }; then 22822 ac_header_preproc=yes 22823else 22824 echo "$as_me: failed program was:" >&5 22825sed 's/^/| /' conftest.$ac_ext >&5 22826 22827 ac_header_preproc=no 22828fi 22829 22830rm -f conftest.err conftest.$ac_ext 22831{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22832echo "${ECHO_T}$ac_header_preproc" >&6; } 22833 22834# So? What about this header? 22835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22836 yes:no: ) 22837 { echo "$as_me:$LINENO: WARNING: xmlparse.h: accepted by the compiler, rejected by the preprocessor!" >&5 22838echo "$as_me: WARNING: xmlparse.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 22839 { echo "$as_me:$LINENO: WARNING: xmlparse.h: proceeding with the compiler's result" >&5 22840echo "$as_me: WARNING: xmlparse.h: proceeding with the compiler's result" >&2;} 22841 ac_header_preproc=yes 22842 ;; 22843 no:yes:* ) 22844 { echo "$as_me:$LINENO: WARNING: xmlparse.h: present but cannot be compiled" >&5 22845echo "$as_me: WARNING: xmlparse.h: present but cannot be compiled" >&2;} 22846 { echo "$as_me:$LINENO: WARNING: xmlparse.h: check for missing prerequisite headers?" >&5 22847echo "$as_me: WARNING: xmlparse.h: check for missing prerequisite headers?" >&2;} 22848 { echo "$as_me:$LINENO: WARNING: xmlparse.h: see the Autoconf documentation" >&5 22849echo "$as_me: WARNING: xmlparse.h: see the Autoconf documentation" >&2;} 22850 { echo "$as_me:$LINENO: WARNING: xmlparse.h: section \"Present But Cannot Be Compiled\"" >&5 22851echo "$as_me: WARNING: xmlparse.h: section \"Present But Cannot Be Compiled\"" >&2;} 22852 { echo "$as_me:$LINENO: WARNING: xmlparse.h: proceeding with the preprocessor's result" >&5 22853echo "$as_me: WARNING: xmlparse.h: proceeding with the preprocessor's result" >&2;} 22854 { echo "$as_me:$LINENO: WARNING: xmlparse.h: in the future, the compiler will take precedence" >&5 22855echo "$as_me: WARNING: xmlparse.h: in the future, the compiler will take precedence" >&2;} 22856 22857 ;; 22858esac 22859{ echo "$as_me:$LINENO: checking for xmlparse.h" >&5 22860echo $ECHO_N "checking for xmlparse.h... $ECHO_C" >&6; } 22861if test "${ac_cv_header_xmlparse_h+set}" = set; then 22862 echo $ECHO_N "(cached) $ECHO_C" >&6 22863else 22864 ac_cv_header_xmlparse_h=$ac_header_preproc 22865fi 22866{ echo "$as_me:$LINENO: result: $ac_cv_header_xmlparse_h" >&5 22867echo "${ECHO_T}$ac_cv_header_xmlparse_h" >&6; } 22868 22869fi 22870 22871 22872 case "$ac_cv_header_xmlparse_h" in 22873 no) 22874 have_expat_header=no; 22875 ;; 22876 yes) 22877 HAVE_XMLPARSE_H=1 22878 22879 22880cat >>confdefs.h <<_ACEOF 22881#define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H 22882_ACEOF 22883 22884 have_expat_header=yes 22885 ;; 22886 esac 22887 ;; 22888 yes) 22889 have_expat_header=yes 22890 ;; 22891 esac 22892 case "$have_expat_header" in 22893 no) 22894 expat=no 22895 ;; 22896 yes) 22897 22898for ac_func in XML_SetDoctypeDeclHandler 22899do 22900as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22901{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22902echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22903if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22904 echo $ECHO_N "(cached) $ECHO_C" >&6 22905else 22906 cat >conftest.$ac_ext <<_ACEOF 22907/* confdefs.h. */ 22908_ACEOF 22909cat confdefs.h >>conftest.$ac_ext 22910cat >>conftest.$ac_ext <<_ACEOF 22911/* end confdefs.h. */ 22912/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22913 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22914#define $ac_func innocuous_$ac_func 22915 22916/* System header to define __stub macros and hopefully few prototypes, 22917 which can conflict with char $ac_func (); below. 22918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22919 <limits.h> exists even on freestanding compilers. */ 22920 22921#ifdef __STDC__ 22922# include <limits.h> 22923#else 22924# include <assert.h> 22925#endif 22926 22927#undef $ac_func 22928 22929/* Override any GCC internal prototype to avoid an error. 22930 Use char because int might match the return type of a GCC 22931 builtin and then its argument prototype would still apply. */ 22932#ifdef __cplusplus 22933extern "C" 22934#endif 22935char $ac_func (); 22936/* The GNU C library defines this for functions which it implements 22937 to always fail with ENOSYS. Some functions are actually named 22938 something starting with __ and the normal name is an alias. */ 22939#if defined __stub_$ac_func || defined __stub___$ac_func 22940choke me 22941#endif 22942 22943int 22944main () 22945{ 22946return $ac_func (); 22947 ; 22948 return 0; 22949} 22950_ACEOF 22951rm -f conftest.$ac_objext conftest$ac_exeext 22952if { (ac_try="$ac_link" 22953case "(($ac_try" in 22954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22955 *) ac_try_echo=$ac_try;; 22956esac 22957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22958 (eval "$ac_link") 2>conftest.er1 22959 ac_status=$? 22960 grep -v '^ *+' conftest.er1 >conftest.err 22961 rm -f conftest.er1 22962 cat conftest.err >&5 22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22964 (exit $ac_status); } && { 22965 test -z "$ac_c_werror_flag" || 22966 test ! -s conftest.err 22967 } && test -s conftest$ac_exeext && 22968 $as_test_x conftest$ac_exeext; then 22969 eval "$as_ac_var=yes" 22970else 22971 echo "$as_me: failed program was:" >&5 22972sed 's/^/| /' conftest.$ac_ext >&5 22973 22974 eval "$as_ac_var=no" 22975fi 22976 22977rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22978 conftest$ac_exeext conftest.$ac_ext 22979fi 22980ac_res=`eval echo '${'$as_ac_var'}'` 22981 { echo "$as_me:$LINENO: result: $ac_res" >&5 22982echo "${ECHO_T}$ac_res" >&6; } 22983if test `eval echo '${'$as_ac_var'}'` = yes; then 22984 cat >>confdefs.h <<_ACEOF 22985#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22986_ACEOF 22987 22988fi 22989done 22990 22991 case "$ac_cv_func_XML_SetDoctypeDeclHandler" in 22992 yes) 22993 HAVE_EXPAT=1 22994 22995 22996cat >>confdefs.h <<_ACEOF 22997#define HAVE_EXPAT $HAVE_EXPAT 22998_ACEOF 22999 23000 ;; 23001 *) 23002 expat=no 23003 ;; 23004 esac 23005 ;; 23006 esac 23007 CPPFLAGS="$expatsaved_CPPFLAGS" 23008 LIBS="$expatsaved_LIBS" 23009 ;; 23010 esac 23011 23012 23013 23014 23015 case "$expat" in 23016 no) 23017 EXPAT_CFLAGS="" 23018 EXPAT_LIBS="" 23019 23020 { echo "$as_me:$LINENO: WARNING: Cannot find usable expat library. Trying to use libxml2 as fallback." >&5 23021echo "$as_me: WARNING: Cannot find usable expat library. Trying to use libxml2 as fallback." >&2;} 23022 ;; 23023 esac 23024fi 23025 23026# 23027# Check libxml2 configuration 23028# 23029 23030# Check whether --enable-libxml2 was given. 23031if test "${enable_libxml2+set}" = set; then 23032 enableval=$enable_libxml2; 23033fi 23034 23035 23036 23037 23038if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 23039 if test -n "$ac_tool_prefix"; then 23040 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 23041set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 23042{ echo "$as_me:$LINENO: checking for $ac_word" >&5 23043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 23044if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 23045 echo $ECHO_N "(cached) $ECHO_C" >&6 23046else 23047 case $PKG_CONFIG in 23048 [\\/]* | ?:[\\/]*) 23049 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 23050 ;; 23051 *) 23052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23053for as_dir in $PATH 23054do 23055 IFS=$as_save_IFS 23056 test -z "$as_dir" && as_dir=. 23057 for ac_exec_ext in '' $ac_executable_extensions; do 23058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23059 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23061 break 2 23062 fi 23063done 23064done 23065IFS=$as_save_IFS 23066 23067 ;; 23068esac 23069fi 23070PKG_CONFIG=$ac_cv_path_PKG_CONFIG 23071if test -n "$PKG_CONFIG"; then 23072 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 23073echo "${ECHO_T}$PKG_CONFIG" >&6; } 23074else 23075 { echo "$as_me:$LINENO: result: no" >&5 23076echo "${ECHO_T}no" >&6; } 23077fi 23078 23079 23080fi 23081if test -z "$ac_cv_path_PKG_CONFIG"; then 23082 ac_pt_PKG_CONFIG=$PKG_CONFIG 23083 # Extract the first word of "pkg-config", so it can be a program name with args. 23084set dummy pkg-config; ac_word=$2 23085{ echo "$as_me:$LINENO: checking for $ac_word" >&5 23086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 23087if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 23088 echo $ECHO_N "(cached) $ECHO_C" >&6 23089else 23090 case $ac_pt_PKG_CONFIG in 23091 [\\/]* | ?:[\\/]*) 23092 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 23093 ;; 23094 *) 23095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23096for as_dir in $PATH 23097do 23098 IFS=$as_save_IFS 23099 test -z "$as_dir" && as_dir=. 23100 for ac_exec_ext in '' $ac_executable_extensions; do 23101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23102 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23104 break 2 23105 fi 23106done 23107done 23108IFS=$as_save_IFS 23109 23110 ;; 23111esac 23112fi 23113ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 23114if test -n "$ac_pt_PKG_CONFIG"; then 23115 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 23116echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 23117else 23118 { echo "$as_me:$LINENO: result: no" >&5 23119echo "${ECHO_T}no" >&6; } 23120fi 23121 23122 if test "x$ac_pt_PKG_CONFIG" = x; then 23123 PKG_CONFIG="" 23124 else 23125 case $cross_compiling:$ac_tool_warned in 23126yes:) 23127{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 23128whose name does not start with the host triplet. If you think this 23129configuration is useful to you, please write to autoconf@gnu.org." >&5 23130echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 23131whose name does not start with the host triplet. If you think this 23132configuration is useful to you, please write to autoconf@gnu.org." >&2;} 23133ac_tool_warned=yes ;; 23134esac 23135 PKG_CONFIG=$ac_pt_PKG_CONFIG 23136 fi 23137else 23138 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 23139fi 23140 23141fi 23142if test -n "$PKG_CONFIG"; then 23143 _pkg_min_version=0.9.0 23144 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 23145echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 23146 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 23147 { echo "$as_me:$LINENO: result: yes" >&5 23148echo "${ECHO_T}yes" >&6; } 23149 else 23150 { echo "$as_me:$LINENO: result: no" >&5 23151echo "${ECHO_T}no" >&6; } 23152 PKG_CONFIG="" 23153 fi 23154 23155fi 23156 23157if test "$enable_libxml2" = "yes" -o "$expat" = "no"; then 23158 23159pkg_failed=no 23160{ echo "$as_me:$LINENO: checking for LIBXML2" >&5 23161echo $ECHO_N "checking for LIBXML2... $ECHO_C" >&6; } 23162 23163if test -n "$PKG_CONFIG"; then 23164 if test -n "$LIBXML2_CFLAGS"; then 23165 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS" 23166 else 23167 if test -n "$PKG_CONFIG" && \ 23168 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\"") >&5 23169 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5 23170 ac_status=$? 23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23172 (exit $ac_status); }; then 23173 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null` 23174else 23175 pkg_failed=yes 23176fi 23177 fi 23178else 23179 pkg_failed=untried 23180fi 23181if test -n "$PKG_CONFIG"; then 23182 if test -n "$LIBXML2_LIBS"; then 23183 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS" 23184 else 23185 if test -n "$PKG_CONFIG" && \ 23186 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\"") >&5 23187 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5 23188 ac_status=$? 23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23190 (exit $ac_status); }; then 23191 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null` 23192else 23193 pkg_failed=yes 23194fi 23195 fi 23196else 23197 pkg_failed=untried 23198fi 23199 23200 23201 23202if test $pkg_failed = yes; then 23203 23204if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23205 _pkg_short_errors_supported=yes 23206else 23207 _pkg_short_errors_supported=no 23208fi 23209 if test $_pkg_short_errors_supported = yes; then 23210 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0 >= 2.6"` 23211 else 23212 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6"` 23213 fi 23214 # Put the nasty error message in config.log where it belongs 23215 echo "$LIBXML2_PKG_ERRORS" >&5 23216 23217 { { echo "$as_me:$LINENO: error: Package requirements (libxml-2.0 >= 2.6) were not met: 23218 23219$LIBXML2_PKG_ERRORS 23220 23221Consider adjusting the PKG_CONFIG_PATH environment variable if you 23222installed software in a non-standard prefix. 23223 23224Alternatively, you may set the environment variables LIBXML2_CFLAGS 23225and LIBXML2_LIBS to avoid the need to call pkg-config. 23226See the pkg-config man page for more details. 23227" >&5 23228echo "$as_me: error: Package requirements (libxml-2.0 >= 2.6) were not met: 23229 23230$LIBXML2_PKG_ERRORS 23231 23232Consider adjusting the PKG_CONFIG_PATH environment variable if you 23233installed software in a non-standard prefix. 23234 23235Alternatively, you may set the environment variables LIBXML2_CFLAGS 23236and LIBXML2_LIBS to avoid the need to call pkg-config. 23237See the pkg-config man page for more details. 23238" >&2;} 23239 { (exit 1); exit 1; }; } 23240elif test $pkg_failed = untried; then 23241 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 23242is in your PATH or set the PKG_CONFIG environment variable to the full 23243path to pkg-config. 23244 23245Alternatively, you may set the environment variables LIBXML2_CFLAGS 23246and LIBXML2_LIBS to avoid the need to call pkg-config. 23247See the pkg-config man page for more details. 23248 23249To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23250See \`config.log' for more details." >&5 23251echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 23252is in your PATH or set the PKG_CONFIG environment variable to the full 23253path to pkg-config. 23254 23255Alternatively, you may set the environment variables LIBXML2_CFLAGS 23256and LIBXML2_LIBS to avoid the need to call pkg-config. 23257See the pkg-config man page for more details. 23258 23259To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23260See \`config.log' for more details." >&2;} 23261 { (exit 1); exit 1; }; } 23262else 23263 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS 23264 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS 23265 { echo "$as_me:$LINENO: result: yes" >&5 23266echo "${ECHO_T}yes" >&6; } 23267 : 23268fi 23269 23270cat >>confdefs.h <<_ACEOF 23271#define ENABLE_LIBXML2 1 23272_ACEOF 23273 23274 23275 23276 23277fi 23278 23279# 23280# Set default font directory 23281# 23282 23283 23284# Check whether --with-default-fonts was given. 23285if test "${with_default_fonts+set}" = set; then 23286 withval=$with_default_fonts; default_fonts="$withval" 23287else 23288 default_fonts=yes 23289fi 23290 23291 23292case "$default_fonts" in 23293yes) 23294 if test "$os_win32" = "yes"; then 23295 FC_DEFAULT_FONTS="WINDOWSFONTDIR" 23296 23297cat >>confdefs.h <<_ACEOF 23298#define FC_DEFAULT_FONTS "WINDOWSFONTDIR" 23299_ACEOF 23300 23301 else 23302 FC_DEFAULT_FONTS="/usr/share/fonts" 23303 23304cat >>confdefs.h <<_ACEOF 23305#define FC_DEFAULT_FONTS "/usr/share/fonts" 23306_ACEOF 23307 23308 fi 23309 ;; 23310*) 23311 FC_DEFAULT_FONTS="$default_fonts" 23312 23313cat >>confdefs.h <<_ACEOF 23314#define FC_DEFAULT_FONTS "$default_fonts" 23315_ACEOF 23316 23317 ;; 23318esac 23319 23320 23321 23322# 23323# Add more fonts if available. By default, add only the directories 23324# with outline fonts; those with bitmaps can be added as desired in 23325# local.conf or ~/.fonts.conf 23326# 23327 23328# Check whether --with-add-fonts was given. 23329if test "${with_add_fonts+set}" = set; then 23330 withval=$with_add_fonts; add_fonts="$withval" 23331else 23332 add_fonts=yes 23333fi 23334 23335 23336case "$add_fonts" in 23337yes) 23338 FC_ADD_FONTS="" 23339 for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do 23340 case x"$FC_ADD_FONTS" in 23341 x) 23342 sub="$dir/fonts" 23343 if test -d "$sub"; then 23344 case x$FC_ADD_FONTS in 23345 x) 23346 FC_ADD_FONTS="$sub" 23347 ;; 23348 *) 23349 FC_ADD_FONTS="$FC_ADD_FONTS,$sub" 23350 ;; 23351 esac 23352 fi 23353 ;; 23354 esac 23355 done 23356 23357cat >>confdefs.h <<_ACEOF 23358#define FC_ADD_FONTS "$add_fonts" 23359_ACEOF 23360 23361 ;; 23362no) 23363 FC_ADD_FONTS="" 23364 ;; 23365*) 23366 FC_ADD_FONTS="$add_fonts" 23367 23368cat >>confdefs.h <<_ACEOF 23369#define FC_ADD_FONTS "$add_fonts" 23370_ACEOF 23371 23372 ;; 23373esac 23374 23375 23376 23377FC_FONTPATH="" 23378 23379case "$FC_ADD_FONTS" in 23380"") 23381 ;; 23382*) 23383 FC_FONTPATH=`echo $FC_ADD_FONTS | 23384 sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'` 23385 ;; 23386esac 23387 23388 23389 23390# 23391# Set default cache directory path 23392# 23393 23394# Check whether --with-cache-dir was given. 23395if test "${with_cache_dir+set}" = set; then 23396 withval=$with_cache_dir; fc_cachedir="$withval" 23397else 23398 fc_cachedir=yes 23399fi 23400 23401 23402case $fc_cachedir in 23403no|yes) 23404 if test "$os_win32" = "yes"; then 23405 fc_cachedir="WINDOWSTEMPDIR_FONTCONFIG_CACHE" 23406 else 23407 fc_cachedir=`eval echo "${localstatedir}/cache/"${PACKAGE}` 23408 fi 23409 ;; 23410*) 23411 ;; 23412esac 23413 23414FC_CACHEDIR=${fc_cachedir} 23415 23416 23417FC_FONTDATE=`LC_ALL=C date` 23418 23419 23420 23421 23422# Check whether --with-confdir was given. 23423if test "${with_confdir+set}" = set; then 23424 withval=$with_confdir; confdir="$withval" 23425else 23426 confdir=yes 23427fi 23428 23429 23430# 23431# Set CONFDIR and FONTCONFIG_PATH 23432# 23433 23434case "$confdir" in 23435no|yes) 23436 confdir='${sysconfdir}'/fonts 23437 ;; 23438*) 23439 ;; 23440esac 23441 23442CONFDIR=${confdir} 23443 23444cat >>confdefs.h <<_ACEOF 23445#define CONFDIR "$CONFDIR" 23446_ACEOF 23447 23448 23449 23450# 23451# Find out what language orthographies are included 23452# 23453 23454ORTH_FILES=`cd ${srcdir}/fc-lang && echo *.orth` 23455 23456 23457# 23458# Let people not build/install docs if they don't have docbook 23459# 23460 23461# Extract the first word of "docbook2html", so it can be a program name with args. 23462set dummy docbook2html; ac_word=$2 23463{ echo "$as_me:$LINENO: checking for $ac_word" >&5 23464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 23465if test "${ac_cv_prog_HASDOCBOOK+set}" = set; then 23466 echo $ECHO_N "(cached) $ECHO_C" >&6 23467else 23468 if test -n "$HASDOCBOOK"; then 23469 ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test. 23470else 23471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23472for as_dir in $PATH 23473do 23474 IFS=$as_save_IFS 23475 test -z "$as_dir" && as_dir=. 23476 for ac_exec_ext in '' $ac_executable_extensions; do 23477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23478 ac_cv_prog_HASDOCBOOK="yes" 23479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23480 break 2 23481 fi 23482done 23483done 23484IFS=$as_save_IFS 23485 23486 test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no" 23487fi 23488fi 23489HASDOCBOOK=$ac_cv_prog_HASDOCBOOK 23490if test -n "$HASDOCBOOK"; then 23491 { echo "$as_me:$LINENO: result: $HASDOCBOOK" >&5 23492echo "${ECHO_T}$HASDOCBOOK" >&6; } 23493else 23494 { echo "$as_me:$LINENO: result: no" >&5 23495echo "${ECHO_T}no" >&6; } 23496fi 23497 23498 23499 23500 23501 23502if test "x$HASDOCBOOK" = xyes; then 23503 USEDOCBOOK_TRUE= 23504 USEDOCBOOK_FALSE='#' 23505else 23506 USEDOCBOOK_TRUE='#' 23507 USEDOCBOOK_FALSE= 23508fi 23509 23510 23511default_docs="yes" 23512# 23513# Check if docs exist or can be created 23514# 23515if test x$HASDOCBOOK = xno; then 23516 if test -f $srcdir/doc/fonts-conf.5; then 23517 : 23518 else 23519 default_docs="no" 23520 fi 23521fi 23522 23523# Check whether --enable-docs was given. 23524if test "${enable_docs+set}" = set; then 23525 enableval=$enable_docs; 23526else 23527 enable_docs=$default_docs 23528fi 23529 23530 23531 23532 23533if test "x$enable_docs" = xyes; then 23534 ENABLE_DOCS_TRUE= 23535 ENABLE_DOCS_FALSE='#' 23536else 23537 ENABLE_DOCS_TRUE='#' 23538 ENABLE_DOCS_FALSE= 23539fi 23540 23541 23542if test "x$enable_docs" = xyes; then 23543 DOCSRC="doc" 23544 tmp=funcs.$$ 23545 cat $srcdir/doc/*.fncs | awk ' 23546 /^@TITLE@/ { if (!done) { printf ("%s\n", $2); done = 1; } } 23547 /^@FUNC@/ { if (!done) { printf ("%s\n", $2); done = 1; } } 23548 /^@@/ { done = 0; }' > $tmp 23549 DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'` 23550 echo DOCMAN3 $DOCMAN3 23551 rm -f $tmp 23552else 23553 DOCSRC="" 23554 DOCMAN3="" 23555fi 23556 23557 23558 23559 23560# 23561# Figure out where to install documentation 23562# 23563 23564 23565# Check whether --with-docdir was given. 23566if test "${with_docdir+set}" = set; then 23567 withval=$with_docdir; confdir="$withval" 23568fi 23569 23570 23571if test "x$with_docdir" = "x" ; then 23572 DOCDIR='${datadir}/doc/fontconfig' 23573else 23574 DOCDIR=$with_docdir 23575fi 23576 23577 23578 23579 23580ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-glyphname/Makefile fc-case/Makefile fc-arch/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-list/Makefile fc-match/Makefile doc/Makefile doc/version.sgml test/Makefile fontconfig.spec fontconfig.pc fonts.conf fontconfig-zip" 23581 23582cat >confcache <<\_ACEOF 23583# This file is a shell script that caches the results of configure 23584# tests run on this system so they can be shared between configure 23585# scripts and configure runs, see configure's option --config-cache. 23586# It is not useful on other systems. If it contains results you don't 23587# want to keep, you may remove or edit it. 23588# 23589# config.status only pays attention to the cache file if you give it 23590# the --recheck option to rerun configure. 23591# 23592# `ac_cv_env_foo' variables (set or unset) will be overridden when 23593# loading this file, other *unset* `ac_cv_foo' will be assigned the 23594# following values. 23595 23596_ACEOF 23597 23598# The following way of writing the cache mishandles newlines in values, 23599# but we know of no workaround that is simple, portable, and efficient. 23600# So, we kill variables containing newlines. 23601# Ultrix sh set writes to stderr and can't be redirected directly, 23602# and sets the high bit in the cache file unless we assign to the vars. 23603( 23604 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23605 eval ac_val=\$$ac_var 23606 case $ac_val in #( 23607 *${as_nl}*) 23608 case $ac_var in #( 23609 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 23610echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 23611 esac 23612 case $ac_var in #( 23613 _ | IFS | as_nl) ;; #( 23614 *) $as_unset $ac_var ;; 23615 esac ;; 23616 esac 23617 done 23618 23619 (set) 2>&1 | 23620 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23621 *${as_nl}ac_space=\ *) 23622 # `set' does not quote correctly, so add quotes (double-quote 23623 # substitution turns \\\\ into \\, and sed turns \\ into \). 23624 sed -n \ 23625 "s/'/'\\\\''/g; 23626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23627 ;; #( 23628 *) 23629 # `set' quotes correctly as required by POSIX, so do not add quotes. 23630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23631 ;; 23632 esac | 23633 sort 23634) | 23635 sed ' 23636 /^ac_cv_env_/b end 23637 t clear 23638 :clear 23639 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23640 t end 23641 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23642 :end' >>confcache 23643if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23644 if test -w "$cache_file"; then 23645 test "x$cache_file" != "x/dev/null" && 23646 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 23647echo "$as_me: updating cache $cache_file" >&6;} 23648 cat confcache >$cache_file 23649 else 23650 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 23651echo "$as_me: not updating unwritable cache $cache_file" >&6;} 23652 fi 23653fi 23654rm -f confcache 23655 23656test "x$prefix" = xNONE && prefix=$ac_default_prefix 23657# Let make expand exec_prefix. 23658test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23659 23660DEFS=-DHAVE_CONFIG_H 23661 23662ac_libobjs= 23663ac_ltlibobjs= 23664for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23665 # 1. Remove the extension, and $U if already installed. 23666 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23667 ac_i=`echo "$ac_i" | sed "$ac_script"` 23668 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23669 # will be set to the directory where LIBOBJS objects are built. 23670 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23671 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 23672done 23673LIBOBJS=$ac_libobjs 23674 23675LTLIBOBJS=$ac_ltlibobjs 23676 23677 23678if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 23679 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 23680Usually this means the macro was only invoked conditionally." >&5 23681echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 23682Usually this means the macro was only invoked conditionally." >&2;} 23683 { (exit 1); exit 1; }; } 23684fi 23685if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23686 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 23687Usually this means the macro was only invoked conditionally." >&5 23688echo "$as_me: error: conditional \"AMDEP\" was never defined. 23689Usually this means the macro was only invoked conditionally." >&2;} 23690 { (exit 1); exit 1; }; } 23691fi 23692if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23693 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23694Usually this means the macro was only invoked conditionally." >&5 23695echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23696Usually this means the macro was only invoked conditionally." >&2;} 23697 { (exit 1); exit 1; }; } 23698fi 23699if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23700 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23701Usually this means the macro was only invoked conditionally." >&5 23702echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23703Usually this means the macro was only invoked conditionally." >&2;} 23704 { (exit 1); exit 1; }; } 23705fi 23706if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then 23707 { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined. 23708Usually this means the macro was only invoked conditionally." >&5 23709echo "$as_me: error: conditional \"OS_WIN32\" was never defined. 23710Usually this means the macro was only invoked conditionally." >&2;} 23711 { (exit 1); exit 1; }; } 23712fi 23713if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then 23714 { { echo "$as_me:$LINENO: error: conditional \"MS_LIB_AVAILABLE\" was never defined. 23715Usually this means the macro was only invoked conditionally." >&5 23716echo "$as_me: error: conditional \"MS_LIB_AVAILABLE\" was never defined. 23717Usually this means the macro was only invoked conditionally." >&2;} 23718 { (exit 1); exit 1; }; } 23719fi 23720if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then 23721 { { echo "$as_me:$LINENO: error: conditional \"CROSS_COMPILING\" was never defined. 23722Usually this means the macro was only invoked conditionally." >&5 23723echo "$as_me: error: conditional \"CROSS_COMPILING\" was never defined. 23724Usually this means the macro was only invoked conditionally." >&2;} 23725 { (exit 1); exit 1; }; } 23726fi 23727if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then 23728 { { echo "$as_me:$LINENO: error: conditional \"USEDOCBOOK\" was never defined. 23729Usually this means the macro was only invoked conditionally." >&5 23730echo "$as_me: error: conditional \"USEDOCBOOK\" was never defined. 23731Usually this means the macro was only invoked conditionally." >&2;} 23732 { (exit 1); exit 1; }; } 23733fi 23734if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 23735 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DOCS\" was never defined. 23736Usually this means the macro was only invoked conditionally." >&5 23737echo "$as_me: error: conditional \"ENABLE_DOCS\" was never defined. 23738Usually this means the macro was only invoked conditionally." >&2;} 23739 { (exit 1); exit 1; }; } 23740fi 23741 23742: ${CONFIG_STATUS=./config.status} 23743ac_clean_files_save=$ac_clean_files 23744ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23745{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23746echo "$as_me: creating $CONFIG_STATUS" >&6;} 23747cat >$CONFIG_STATUS <<_ACEOF 23748#! $SHELL 23749# Generated by $as_me. 23750# Run this file to recreate the current configuration. 23751# Compiler output produced by configure, useful for debugging 23752# configure, is in config.log if it exists. 23753 23754debug=false 23755ac_cs_recheck=false 23756ac_cs_silent=false 23757SHELL=\${CONFIG_SHELL-$SHELL} 23758_ACEOF 23759 23760cat >>$CONFIG_STATUS <<\_ACEOF 23761## --------------------- ## 23762## M4sh Initialization. ## 23763## --------------------- ## 23764 23765# Be more Bourne compatible 23766DUALCASE=1; export DUALCASE # for MKS sh 23767if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23768 emulate sh 23769 NULLCMD=: 23770 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23771 # is contrary to our usage. Disable this feature. 23772 alias -g '${1+"$@"}'='"$@"' 23773 setopt NO_GLOB_SUBST 23774else 23775 case `(set -o) 2>/dev/null` in 23776 *posix*) set -o posix ;; 23777esac 23778 23779fi 23780 23781 23782 23783 23784# PATH needs CR 23785# Avoid depending upon Character Ranges. 23786as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23787as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23788as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23789as_cr_digits='0123456789' 23790as_cr_alnum=$as_cr_Letters$as_cr_digits 23791 23792# The user is always right. 23793if test "${PATH_SEPARATOR+set}" != set; then 23794 echo "#! /bin/sh" >conf$$.sh 23795 echo "exit 0" >>conf$$.sh 23796 chmod +x conf$$.sh 23797 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23798 PATH_SEPARATOR=';' 23799 else 23800 PATH_SEPARATOR=: 23801 fi 23802 rm -f conf$$.sh 23803fi 23804 23805# Support unset when possible. 23806if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23807 as_unset=unset 23808else 23809 as_unset=false 23810fi 23811 23812 23813# IFS 23814# We need space, tab and new line, in precisely that order. Quoting is 23815# there to prevent editors from complaining about space-tab. 23816# (If _AS_PATH_WALK were called with IFS unset, it would disable word 23817# splitting by setting IFS to empty value.) 23818as_nl=' 23819' 23820IFS=" "" $as_nl" 23821 23822# Find who we are. Look in the path if we contain no directory separator. 23823case $0 in 23824 *[\\/]* ) as_myself=$0 ;; 23825 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23826for as_dir in $PATH 23827do 23828 IFS=$as_save_IFS 23829 test -z "$as_dir" && as_dir=. 23830 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23831done 23832IFS=$as_save_IFS 23833 23834 ;; 23835esac 23836# We did not find ourselves, most probably we were run as `sh COMMAND' 23837# in which case we are not to be found in the path. 23838if test "x$as_myself" = x; then 23839 as_myself=$0 23840fi 23841if test ! -f "$as_myself"; then 23842 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23843 { (exit 1); exit 1; } 23844fi 23845 23846# Work around bugs in pre-3.0 UWIN ksh. 23847for as_var in ENV MAIL MAILPATH 23848do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23849done 23850PS1='$ ' 23851PS2='> ' 23852PS4='+ ' 23853 23854# NLS nuisances. 23855for as_var in \ 23856 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 23857 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 23858 LC_TELEPHONE LC_TIME 23859do 23860 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 23861 eval $as_var=C; export $as_var 23862 else 23863 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23864 fi 23865done 23866 23867# Required to use basename. 23868if expr a : '\(a\)' >/dev/null 2>&1 && 23869 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23870 as_expr=expr 23871else 23872 as_expr=false 23873fi 23874 23875if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23876 as_basename=basename 23877else 23878 as_basename=false 23879fi 23880 23881 23882# Name of the executable. 23883as_me=`$as_basename -- "$0" || 23884$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23885 X"$0" : 'X\(//\)$' \| \ 23886 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23887echo X/"$0" | 23888 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23889 s//\1/ 23890 q 23891 } 23892 /^X\/\(\/\/\)$/{ 23893 s//\1/ 23894 q 23895 } 23896 /^X\/\(\/\).*/{ 23897 s//\1/ 23898 q 23899 } 23900 s/.*/./; q'` 23901 23902# CDPATH. 23903$as_unset CDPATH 23904 23905 23906 23907 as_lineno_1=$LINENO 23908 as_lineno_2=$LINENO 23909 test "x$as_lineno_1" != "x$as_lineno_2" && 23910 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 23911 23912 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23913 # uniformly replaced by the line number. The first 'sed' inserts a 23914 # line-number line after each line using $LINENO; the second 'sed' 23915 # does the real work. The second script uses 'N' to pair each 23916 # line-number line with the line containing $LINENO, and appends 23917 # trailing '-' during substitution so that $LINENO is not a special 23918 # case at line end. 23919 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23920 # scripts with optimization help from Paolo Bonzini. Blame Lee 23921 # E. McMahon (1931-1989) for sed's syntax. :-) 23922 sed -n ' 23923 p 23924 /[$]LINENO/= 23925 ' <$as_myself | 23926 sed ' 23927 s/[$]LINENO.*/&-/ 23928 t lineno 23929 b 23930 :lineno 23931 N 23932 :loop 23933 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 23934 t loop 23935 s/-\n.*// 23936 ' >$as_me.lineno && 23937 chmod +x "$as_me.lineno" || 23938 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 23939 { (exit 1); exit 1; }; } 23940 23941 # Don't try to exec as it changes $[0], causing all sort of problems 23942 # (the dirname of $[0] is not the place where we might find the 23943 # original and so on. Autoconf is especially sensitive to this). 23944 . "./$as_me.lineno" 23945 # Exit status is that of the last command. 23946 exit 23947} 23948 23949 23950if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23951 as_dirname=dirname 23952else 23953 as_dirname=false 23954fi 23955 23956ECHO_C= ECHO_N= ECHO_T= 23957case `echo -n x` in 23958-n*) 23959 case `echo 'x\c'` in 23960 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23961 *) ECHO_C='\c';; 23962 esac;; 23963*) 23964 ECHO_N='-n';; 23965esac 23966 23967if expr a : '\(a\)' >/dev/null 2>&1 && 23968 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23969 as_expr=expr 23970else 23971 as_expr=false 23972fi 23973 23974rm -f conf$$ conf$$.exe conf$$.file 23975if test -d conf$$.dir; then 23976 rm -f conf$$.dir/conf$$.file 23977else 23978 rm -f conf$$.dir 23979 mkdir conf$$.dir 23980fi 23981echo >conf$$.file 23982if ln -s conf$$.file conf$$ 2>/dev/null; then 23983 as_ln_s='ln -s' 23984 # ... but there are two gotchas: 23985 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23986 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23987 # In both cases, we have to default to `cp -p'. 23988 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23989 as_ln_s='cp -p' 23990elif ln conf$$.file conf$$ 2>/dev/null; then 23991 as_ln_s=ln 23992else 23993 as_ln_s='cp -p' 23994fi 23995rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23996rmdir conf$$.dir 2>/dev/null 23997 23998if mkdir -p . 2>/dev/null; then 23999 as_mkdir_p=: 24000else 24001 test -d ./-p && rmdir ./-p 24002 as_mkdir_p=false 24003fi 24004 24005if test -x / >/dev/null 2>&1; then 24006 as_test_x='test -x' 24007else 24008 if ls -dL / >/dev/null 2>&1; then 24009 as_ls_L_option=L 24010 else 24011 as_ls_L_option= 24012 fi 24013 as_test_x=' 24014 eval sh -c '\'' 24015 if test -d "$1"; then 24016 test -d "$1/."; 24017 else 24018 case $1 in 24019 -*)set "./$1";; 24020 esac; 24021 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 24022 ???[sx]*):;;*)false;;esac;fi 24023 '\'' sh 24024 ' 24025fi 24026as_executable_p=$as_test_x 24027 24028# Sed expression to map a string onto a valid CPP name. 24029as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24030 24031# Sed expression to map a string onto a valid variable name. 24032as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24033 24034 24035exec 6>&1 24036 24037# Save the log message, to keep $[0] and so on meaningful, and to 24038# report actual input values of CONFIG_FILES etc. instead of their 24039# values after options handling. 24040ac_log=" 24041This file was extended by $as_me, which was 24042generated by GNU Autoconf 2.61. Invocation command line was 24043 24044 CONFIG_FILES = $CONFIG_FILES 24045 CONFIG_HEADERS = $CONFIG_HEADERS 24046 CONFIG_LINKS = $CONFIG_LINKS 24047 CONFIG_COMMANDS = $CONFIG_COMMANDS 24048 $ $0 $@ 24049 24050on `(hostname || uname -n) 2>/dev/null | sed 1q` 24051" 24052 24053_ACEOF 24054 24055cat >>$CONFIG_STATUS <<_ACEOF 24056# Files that config.status was made for. 24057config_files="$ac_config_files" 24058config_headers="$ac_config_headers" 24059config_commands="$ac_config_commands" 24060 24061_ACEOF 24062 24063cat >>$CONFIG_STATUS <<\_ACEOF 24064ac_cs_usage="\ 24065\`$as_me' instantiates files from templates according to the 24066current configuration. 24067 24068Usage: $0 [OPTIONS] [FILE]... 24069 24070 -h, --help print this help, then exit 24071 -V, --version print version number and configuration settings, then exit 24072 -q, --quiet do not print progress messages 24073 -d, --debug don't remove temporary files 24074 --recheck update $as_me by reconfiguring in the same conditions 24075 --file=FILE[:TEMPLATE] 24076 instantiate the configuration file FILE 24077 --header=FILE[:TEMPLATE] 24078 instantiate the configuration header FILE 24079 24080Configuration files: 24081$config_files 24082 24083Configuration headers: 24084$config_headers 24085 24086Configuration commands: 24087$config_commands 24088 24089Report bugs to <bug-autoconf@gnu.org>." 24090 24091_ACEOF 24092cat >>$CONFIG_STATUS <<_ACEOF 24093ac_cs_version="\\ 24094config.status 24095configured by $0, generated by GNU Autoconf 2.61, 24096 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 24097 24098Copyright (C) 2006 Free Software Foundation, Inc. 24099This config.status script is free software; the Free Software Foundation 24100gives unlimited permission to copy, distribute and modify it." 24101 24102ac_pwd='$ac_pwd' 24103srcdir='$srcdir' 24104INSTALL='$INSTALL' 24105_ACEOF 24106 24107cat >>$CONFIG_STATUS <<\_ACEOF 24108# If no file are specified by the user, then we need to provide default 24109# value. By we need to know if files were specified by the user. 24110ac_need_defaults=: 24111while test $# != 0 24112do 24113 case $1 in 24114 --*=*) 24115 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24116 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24117 ac_shift=: 24118 ;; 24119 *) 24120 ac_option=$1 24121 ac_optarg=$2 24122 ac_shift=shift 24123 ;; 24124 esac 24125 24126 case $ac_option in 24127 # Handling of the options. 24128 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24129 ac_cs_recheck=: ;; 24130 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24131 echo "$ac_cs_version"; exit ;; 24132 --debug | --debu | --deb | --de | --d | -d ) 24133 debug=: ;; 24134 --file | --fil | --fi | --f ) 24135 $ac_shift 24136 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 24137 ac_need_defaults=false;; 24138 --header | --heade | --head | --hea ) 24139 $ac_shift 24140 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 24141 ac_need_defaults=false;; 24142 --he | --h) 24143 # Conflict between --help and --header 24144 { echo "$as_me: error: ambiguous option: $1 24145Try \`$0 --help' for more information." >&2 24146 { (exit 1); exit 1; }; };; 24147 --help | --hel | -h ) 24148 echo "$ac_cs_usage"; exit ;; 24149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24150 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24151 ac_cs_silent=: ;; 24152 24153 # This is an error. 24154 -*) { echo "$as_me: error: unrecognized option: $1 24155Try \`$0 --help' for more information." >&2 24156 { (exit 1); exit 1; }; } ;; 24157 24158 *) ac_config_targets="$ac_config_targets $1" 24159 ac_need_defaults=false ;; 24160 24161 esac 24162 shift 24163done 24164 24165ac_configure_extra_args= 24166 24167if $ac_cs_silent; then 24168 exec 6>/dev/null 24169 ac_configure_extra_args="$ac_configure_extra_args --silent" 24170fi 24171 24172_ACEOF 24173cat >>$CONFIG_STATUS <<_ACEOF 24174if \$ac_cs_recheck; then 24175 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 24176 CONFIG_SHELL=$SHELL 24177 export CONFIG_SHELL 24178 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24179fi 24180 24181_ACEOF 24182cat >>$CONFIG_STATUS <<\_ACEOF 24183exec 5>>config.log 24184{ 24185 echo 24186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24187## Running $as_me. ## 24188_ASBOX 24189 echo "$ac_log" 24190} >&5 24191 24192_ACEOF 24193cat >>$CONFIG_STATUS <<_ACEOF 24194# 24195# INIT-COMMANDS 24196# 24197AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 24198 24199_ACEOF 24200 24201cat >>$CONFIG_STATUS <<\_ACEOF 24202 24203# Handling of arguments. 24204for ac_config_target in $ac_config_targets 24205do 24206 case $ac_config_target in 24207 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 24208 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24209 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24210 "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;; 24211 "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;; 24212 "fc-glyphname/Makefile") CONFIG_FILES="$CONFIG_FILES fc-glyphname/Makefile" ;; 24213 "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;; 24214 "fc-arch/Makefile") CONFIG_FILES="$CONFIG_FILES fc-arch/Makefile" ;; 24215 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 24216 "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;; 24217 "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;; 24218 "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;; 24219 "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;; 24220 "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;; 24221 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 24222 "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;; 24223 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 24224 "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;; 24225 "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;; 24226 "fonts.conf") CONFIG_FILES="$CONFIG_FILES fonts.conf" ;; 24227 "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;; 24228 24229 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 24230echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 24231 { (exit 1); exit 1; }; };; 24232 esac 24233done 24234 24235 24236# If the user did not use the arguments to specify the items to instantiate, 24237# then the envvar interface is used. Set only those that are not. 24238# We use the long form for the default assignment because of an extremely 24239# bizarre bug on SunOS 4.1.3. 24240if $ac_need_defaults; then 24241 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24242 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24243 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24244fi 24245 24246# Have a temporary directory for convenience. Make it in the build tree 24247# simply because there is no reason against having it here, and in addition, 24248# creating and moving files from /tmp can sometimes cause problems. 24249# Hook for its removal unless debugging. 24250# Note that there is a small window in which the directory will not be cleaned: 24251# after its creation but before its name has been assigned to `$tmp'. 24252$debug || 24253{ 24254 tmp= 24255 trap 'exit_status=$? 24256 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 24257' 0 24258 trap '{ (exit 1); exit 1; }' 1 2 13 15 24259} 24260# Create a (secure) tmp directory for tmp files. 24261 24262{ 24263 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 24264 test -n "$tmp" && test -d "$tmp" 24265} || 24266{ 24267 tmp=./conf$$-$RANDOM 24268 (umask 077 && mkdir "$tmp") 24269} || 24270{ 24271 echo "$me: cannot create a temporary directory in ." >&2 24272 { (exit 1); exit 1; } 24273} 24274 24275# 24276# Set up the sed scripts for CONFIG_FILES section. 24277# 24278 24279# No need to generate the scripts if there are no CONFIG_FILES. 24280# This happens for instance when ./config.status config.h 24281if test -n "$CONFIG_FILES"; then 24282 24283_ACEOF 24284 24285 24286 24287ac_delim='%!_!# ' 24288for ac_last_try in false false false false false :; do 24289 cat >conf$$subs.sed <<_ACEOF 24290SHELL!$SHELL$ac_delim 24291PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 24292PACKAGE_NAME!$PACKAGE_NAME$ac_delim 24293PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 24294PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 24295PACKAGE_STRING!$PACKAGE_STRING$ac_delim 24296PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 24297exec_prefix!$exec_prefix$ac_delim 24298prefix!$prefix$ac_delim 24299program_transform_name!$program_transform_name$ac_delim 24300bindir!$bindir$ac_delim 24301sbindir!$sbindir$ac_delim 24302libexecdir!$libexecdir$ac_delim 24303datarootdir!$datarootdir$ac_delim 24304datadir!$datadir$ac_delim 24305sysconfdir!$sysconfdir$ac_delim 24306sharedstatedir!$sharedstatedir$ac_delim 24307localstatedir!$localstatedir$ac_delim 24308includedir!$includedir$ac_delim 24309oldincludedir!$oldincludedir$ac_delim 24310docdir!$docdir$ac_delim 24311infodir!$infodir$ac_delim 24312htmldir!$htmldir$ac_delim 24313dvidir!$dvidir$ac_delim 24314pdfdir!$pdfdir$ac_delim 24315psdir!$psdir$ac_delim 24316libdir!$libdir$ac_delim 24317localedir!$localedir$ac_delim 24318mandir!$mandir$ac_delim 24319DEFS!$DEFS$ac_delim 24320ECHO_C!$ECHO_C$ac_delim 24321ECHO_N!$ECHO_N$ac_delim 24322ECHO_T!$ECHO_T$ac_delim 24323LIBS!$LIBS$ac_delim 24324build_alias!$build_alias$ac_delim 24325host_alias!$host_alias$ac_delim 24326target_alias!$target_alias$ac_delim 24327INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 24328INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 24329INSTALL_DATA!$INSTALL_DATA$ac_delim 24330CYGPATH_W!$CYGPATH_W$ac_delim 24331PACKAGE!$PACKAGE$ac_delim 24332VERSION!$VERSION$ac_delim 24333ACLOCAL!$ACLOCAL$ac_delim 24334AUTOCONF!$AUTOCONF$ac_delim 24335AUTOMAKE!$AUTOMAKE$ac_delim 24336AUTOHEADER!$AUTOHEADER$ac_delim 24337MAKEINFO!$MAKEINFO$ac_delim 24338install_sh!$install_sh$ac_delim 24339STRIP!$STRIP$ac_delim 24340INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 24341mkdir_p!$mkdir_p$ac_delim 24342AWK!$AWK$ac_delim 24343SET_MAKE!$SET_MAKE$ac_delim 24344am__leading_dot!$am__leading_dot$ac_delim 24345AMTAR!$AMTAR$ac_delim 24346am__tar!$am__tar$ac_delim 24347am__untar!$am__untar$ac_delim 24348MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 24349MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 24350MAINT!$MAINT$ac_delim 24351LIBT_CURRENT!$LIBT_CURRENT$ac_delim 24352LIBT_REVISION!$LIBT_REVISION$ac_delim 24353LIBT_VERSION_INFO!$LIBT_VERSION_INFO$ac_delim 24354LIBT_CURRENT_MINUS_AGE!$LIBT_CURRENT_MINUS_AGE$ac_delim 24355CC!$CC$ac_delim 24356CFLAGS!$CFLAGS$ac_delim 24357LDFLAGS!$LDFLAGS$ac_delim 24358CPPFLAGS!$CPPFLAGS$ac_delim 24359ac_ct_CC!$ac_ct_CC$ac_delim 24360EXEEXT!$EXEEXT$ac_delim 24361OBJEXT!$OBJEXT$ac_delim 24362DEPDIR!$DEPDIR$ac_delim 24363am__include!$am__include$ac_delim 24364am__quote!$am__quote$ac_delim 24365AMDEP_TRUE!$AMDEP_TRUE$ac_delim 24366AMDEP_FALSE!$AMDEP_FALSE$ac_delim 24367AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 24368CCDEPMODE!$CCDEPMODE$ac_delim 24369am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 24370am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 24371LN_S!$LN_S$ac_delim 24372build!$build$ac_delim 24373build_cpu!$build_cpu$ac_delim 24374build_vendor!$build_vendor$ac_delim 24375build_os!$build_os$ac_delim 24376host!$host$ac_delim 24377host_cpu!$host_cpu$ac_delim 24378host_vendor!$host_vendor$ac_delim 24379host_os!$host_os$ac_delim 24380SED!$SED$ac_delim 24381GREP!$GREP$ac_delim 24382EGREP!$EGREP$ac_delim 24383ECHO!$ECHO$ac_delim 24384AR!$AR$ac_delim 24385RANLIB!$RANLIB$ac_delim 24386DSYMUTIL!$DSYMUTIL$ac_delim 24387_ACEOF 24388 24389 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 24390 break 24391 elif $ac_last_try; then 24392 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 24393echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 24394 { (exit 1); exit 1; }; } 24395 else 24396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24397 fi 24398done 24399 24400ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 24401if test -n "$ac_eof"; then 24402 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 24403 ac_eof=`expr $ac_eof + 1` 24404fi 24405 24406cat >>$CONFIG_STATUS <<_ACEOF 24407cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 24408/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24409_ACEOF 24410sed ' 24411s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 24412s/^/s,@/; s/!/@,|#_!!_#|/ 24413:n 24414t n 24415s/'"$ac_delim"'$/,g/; t 24416s/$/\\/; p 24417N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 24418' >>$CONFIG_STATUS <conf$$subs.sed 24419rm -f conf$$subs.sed 24420cat >>$CONFIG_STATUS <<_ACEOF 24421CEOF$ac_eof 24422_ACEOF 24423 24424 24425ac_delim='%!_!# ' 24426for ac_last_try in false false false false false :; do 24427 cat >conf$$subs.sed <<_ACEOF 24428NMEDIT!$NMEDIT$ac_delim 24429DLLTOOL!$DLLTOOL$ac_delim 24430AS!$AS$ac_delim 24431OBJDUMP!$OBJDUMP$ac_delim 24432CPP!$CPP$ac_delim 24433CXX!$CXX$ac_delim 24434CXXFLAGS!$CXXFLAGS$ac_delim 24435ac_ct_CXX!$ac_ct_CXX$ac_delim 24436CXXDEPMODE!$CXXDEPMODE$ac_delim 24437am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 24438am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 24439CXXCPP!$CXXCPP$ac_delim 24440F77!$F77$ac_delim 24441FFLAGS!$FFLAGS$ac_delim 24442ac_ct_F77!$ac_ct_F77$ac_delim 24443LIBTOOL!$LIBTOOL$ac_delim 24444DOLT_BASH!$DOLT_BASH$ac_delim 24445LTCOMPILE!$LTCOMPILE$ac_delim 24446LTCXXCOMPILE!$LTCXXCOMPILE$ac_delim 24447OS_WIN32_TRUE!$OS_WIN32_TRUE$ac_delim 24448OS_WIN32_FALSE!$OS_WIN32_FALSE$ac_delim 24449ms_librarian!$ms_librarian$ac_delim 24450MS_LIB_AVAILABLE_TRUE!$MS_LIB_AVAILABLE_TRUE$ac_delim 24451MS_LIB_AVAILABLE_FALSE!$MS_LIB_AVAILABLE_FALSE$ac_delim 24452WARN_CFLAGS!$WARN_CFLAGS$ac_delim 24453CROSS_COMPILING_TRUE!$CROSS_COMPILING_TRUE$ac_delim 24454CROSS_COMPILING_FALSE!$CROSS_COMPILING_FALSE$ac_delim 24455CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim 24456EXEEXT_FOR_BUILD!$EXEEXT_FOR_BUILD$ac_delim 24457ARCHITECTURE!$ARCHITECTURE$ac_delim 24458ICONV_LIBS!$ICONV_LIBS$ac_delim 24459ft_config!$ft_config$ac_delim 24460FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim 24461FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim 24462HAVE_XMLPARSE_H!$HAVE_XMLPARSE_H$ac_delim 24463HAVE_EXPAT!$HAVE_EXPAT$ac_delim 24464EXPAT_CFLAGS!$EXPAT_CFLAGS$ac_delim 24465EXPAT_LIBS!$EXPAT_LIBS$ac_delim 24466PKG_CONFIG!$PKG_CONFIG$ac_delim 24467LIBXML2_CFLAGS!$LIBXML2_CFLAGS$ac_delim 24468LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim 24469FC_DEFAULT_FONTS!$FC_DEFAULT_FONTS$ac_delim 24470FC_ADD_FONTS!$FC_ADD_FONTS$ac_delim 24471FC_FONTPATH!$FC_FONTPATH$ac_delim 24472fc_cachedir!$fc_cachedir$ac_delim 24473FC_CACHEDIR!$FC_CACHEDIR$ac_delim 24474FC_FONTDATE!$FC_FONTDATE$ac_delim 24475confdir!$confdir$ac_delim 24476CONFDIR!$CONFDIR$ac_delim 24477ORTH_FILES!$ORTH_FILES$ac_delim 24478HASDOCBOOK!$HASDOCBOOK$ac_delim 24479USEDOCBOOK_TRUE!$USEDOCBOOK_TRUE$ac_delim 24480USEDOCBOOK_FALSE!$USEDOCBOOK_FALSE$ac_delim 24481ENABLE_DOCS_TRUE!$ENABLE_DOCS_TRUE$ac_delim 24482ENABLE_DOCS_FALSE!$ENABLE_DOCS_FALSE$ac_delim 24483DOCSRC!$DOCSRC$ac_delim 24484DOCMAN3!$DOCMAN3$ac_delim 24485DOCDIR!$DOCDIR$ac_delim 24486LIBOBJS!$LIBOBJS$ac_delim 24487LTLIBOBJS!$LTLIBOBJS$ac_delim 24488_ACEOF 24489 24490 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then 24491 break 24492 elif $ac_last_try; then 24493 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 24494echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 24495 { (exit 1); exit 1; }; } 24496 else 24497 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24498 fi 24499done 24500 24501ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 24502if test -n "$ac_eof"; then 24503 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 24504 ac_eof=`expr $ac_eof + 1` 24505fi 24506 24507cat >>$CONFIG_STATUS <<_ACEOF 24508cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 24509/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 24510_ACEOF 24511sed ' 24512s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 24513s/^/s,@/; s/!/@,|#_!!_#|/ 24514:n 24515t n 24516s/'"$ac_delim"'$/,g/; t 24517s/$/\\/; p 24518N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 24519' >>$CONFIG_STATUS <conf$$subs.sed 24520rm -f conf$$subs.sed 24521cat >>$CONFIG_STATUS <<_ACEOF 24522:end 24523s/|#_!!_#|//g 24524CEOF$ac_eof 24525_ACEOF 24526 24527 24528# VPATH may cause trouble with some makes, so we remove $(srcdir), 24529# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 24530# trailing colons and then remove the whole line if VPATH becomes empty 24531# (actually we leave an empty line to preserve line numbers). 24532if test "x$srcdir" = x.; then 24533 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 24534s/:*\$(srcdir):*/:/ 24535s/:*\${srcdir}:*/:/ 24536s/:*@srcdir@:*/:/ 24537s/^\([^=]*=[ ]*\):*/\1/ 24538s/:*$// 24539s/^[^=]*=[ ]*$// 24540}' 24541fi 24542 24543cat >>$CONFIG_STATUS <<\_ACEOF 24544fi # test -n "$CONFIG_FILES" 24545 24546 24547for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 24548do 24549 case $ac_tag in 24550 :[FHLC]) ac_mode=$ac_tag; continue;; 24551 esac 24552 case $ac_mode$ac_tag in 24553 :[FHL]*:*);; 24554 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 24555echo "$as_me: error: Invalid tag $ac_tag." >&2;} 24556 { (exit 1); exit 1; }; };; 24557 :[FH]-) ac_tag=-:-;; 24558 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24559 esac 24560 ac_save_IFS=$IFS 24561 IFS=: 24562 set x $ac_tag 24563 IFS=$ac_save_IFS 24564 shift 24565 ac_file=$1 24566 shift 24567 24568 case $ac_mode in 24569 :L) ac_source=$1;; 24570 :[FH]) 24571 ac_file_inputs= 24572 for ac_f 24573 do 24574 case $ac_f in 24575 -) ac_f="$tmp/stdin";; 24576 *) # Look for the file first in the build tree, then in the source tree 24577 # (if the path is not absolute). The absolute path cannot be DOS-style, 24578 # because $ac_f cannot contain `:'. 24579 test -f "$ac_f" || 24580 case $ac_f in 24581 [\\/$]*) false;; 24582 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24583 esac || 24584 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 24585echo "$as_me: error: cannot find input file: $ac_f" >&2;} 24586 { (exit 1); exit 1; }; };; 24587 esac 24588 ac_file_inputs="$ac_file_inputs $ac_f" 24589 done 24590 24591 # Let's still pretend it is `configure' which instantiates (i.e., don't 24592 # use $as_me), people would be surprised to read: 24593 # /* config.h. Generated by config.status. */ 24594 configure_input="Generated from "`IFS=: 24595 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 24596 if test x"$ac_file" != x-; then 24597 configure_input="$ac_file. $configure_input" 24598 { echo "$as_me:$LINENO: creating $ac_file" >&5 24599echo "$as_me: creating $ac_file" >&6;} 24600 fi 24601 24602 case $ac_tag in 24603 *:-:* | *:-) cat >"$tmp/stdin";; 24604 esac 24605 ;; 24606 esac 24607 24608 ac_dir=`$as_dirname -- "$ac_file" || 24609$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24610 X"$ac_file" : 'X\(//\)[^/]' \| \ 24611 X"$ac_file" : 'X\(//\)$' \| \ 24612 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24613echo X"$ac_file" | 24614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24615 s//\1/ 24616 q 24617 } 24618 /^X\(\/\/\)[^/].*/{ 24619 s//\1/ 24620 q 24621 } 24622 /^X\(\/\/\)$/{ 24623 s//\1/ 24624 q 24625 } 24626 /^X\(\/\).*/{ 24627 s//\1/ 24628 q 24629 } 24630 s/.*/./; q'` 24631 { as_dir="$ac_dir" 24632 case $as_dir in #( 24633 -*) as_dir=./$as_dir;; 24634 esac 24635 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24636 as_dirs= 24637 while :; do 24638 case $as_dir in #( 24639 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24640 *) as_qdir=$as_dir;; 24641 esac 24642 as_dirs="'$as_qdir' $as_dirs" 24643 as_dir=`$as_dirname -- "$as_dir" || 24644$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24645 X"$as_dir" : 'X\(//\)[^/]' \| \ 24646 X"$as_dir" : 'X\(//\)$' \| \ 24647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24648echo X"$as_dir" | 24649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24650 s//\1/ 24651 q 24652 } 24653 /^X\(\/\/\)[^/].*/{ 24654 s//\1/ 24655 q 24656 } 24657 /^X\(\/\/\)$/{ 24658 s//\1/ 24659 q 24660 } 24661 /^X\(\/\).*/{ 24662 s//\1/ 24663 q 24664 } 24665 s/.*/./; q'` 24666 test -d "$as_dir" && break 24667 done 24668 test -z "$as_dirs" || eval "mkdir $as_dirs" 24669 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24670echo "$as_me: error: cannot create directory $as_dir" >&2;} 24671 { (exit 1); exit 1; }; }; } 24672 ac_builddir=. 24673 24674case "$ac_dir" in 24675.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24676*) 24677 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24678 # A ".." for each directory in $ac_dir_suffix. 24679 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 24680 case $ac_top_builddir_sub in 24681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24683 esac ;; 24684esac 24685ac_abs_top_builddir=$ac_pwd 24686ac_abs_builddir=$ac_pwd$ac_dir_suffix 24687# for backward compatibility: 24688ac_top_builddir=$ac_top_build_prefix 24689 24690case $srcdir in 24691 .) # We are building in place. 24692 ac_srcdir=. 24693 ac_top_srcdir=$ac_top_builddir_sub 24694 ac_abs_top_srcdir=$ac_pwd ;; 24695 [\\/]* | ?:[\\/]* ) # Absolute name. 24696 ac_srcdir=$srcdir$ac_dir_suffix; 24697 ac_top_srcdir=$srcdir 24698 ac_abs_top_srcdir=$srcdir ;; 24699 *) # Relative name. 24700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24701 ac_top_srcdir=$ac_top_build_prefix$srcdir 24702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24703esac 24704ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24705 24706 24707 case $ac_mode in 24708 :F) 24709 # 24710 # CONFIG_FILE 24711 # 24712 24713 case $INSTALL in 24714 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24715 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24716 esac 24717_ACEOF 24718 24719cat >>$CONFIG_STATUS <<\_ACEOF 24720# If the template does not know about datarootdir, expand it. 24721# FIXME: This hack should be removed a few years after 2.60. 24722ac_datarootdir_hack=; ac_datarootdir_seen= 24723 24724case `sed -n '/datarootdir/ { 24725 p 24726 q 24727} 24728/@datadir@/p 24729/@docdir@/p 24730/@infodir@/p 24731/@localedir@/p 24732/@mandir@/p 24733' $ac_file_inputs` in 24734*datarootdir*) ac_datarootdir_seen=yes;; 24735*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24736 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24737echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24738_ACEOF 24739cat >>$CONFIG_STATUS <<_ACEOF 24740 ac_datarootdir_hack=' 24741 s&@datadir@&$datadir&g 24742 s&@docdir@&$docdir&g 24743 s&@infodir@&$infodir&g 24744 s&@localedir@&$localedir&g 24745 s&@mandir@&$mandir&g 24746 s&\\\${datarootdir}&$datarootdir&g' ;; 24747esac 24748_ACEOF 24749 24750# Neutralize VPATH when `$srcdir' = `.'. 24751# Shell code in configure.ac might set extrasub. 24752# FIXME: do we really want to maintain this feature? 24753cat >>$CONFIG_STATUS <<_ACEOF 24754 sed "$ac_vpsub 24755$extrasub 24756_ACEOF 24757cat >>$CONFIG_STATUS <<\_ACEOF 24758:t 24759/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24760s&@configure_input@&$configure_input&;t t 24761s&@top_builddir@&$ac_top_builddir_sub&;t t 24762s&@srcdir@&$ac_srcdir&;t t 24763s&@abs_srcdir@&$ac_abs_srcdir&;t t 24764s&@top_srcdir@&$ac_top_srcdir&;t t 24765s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24766s&@builddir@&$ac_builddir&;t t 24767s&@abs_builddir@&$ac_abs_builddir&;t t 24768s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24769s&@INSTALL@&$ac_INSTALL&;t t 24770$ac_datarootdir_hack 24771" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 24772 24773test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24774 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 24775 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 24776 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24777which seems to be undefined. Please make sure it is defined." >&5 24778echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24779which seems to be undefined. Please make sure it is defined." >&2;} 24780 24781 rm -f "$tmp/stdin" 24782 case $ac_file in 24783 -) cat "$tmp/out"; rm -f "$tmp/out";; 24784 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 24785 esac 24786 ;; 24787 :H) 24788 # 24789 # CONFIG_HEADER 24790 # 24791_ACEOF 24792 24793# Transform confdefs.h into a sed script `conftest.defines', that 24794# substitutes the proper values into config.h.in to produce config.h. 24795rm -f conftest.defines conftest.tail 24796# First, append a space to every undef/define line, to ease matching. 24797echo 's/$/ /' >conftest.defines 24798# Then, protect against being on the right side of a sed subst, or in 24799# an unquoted here document, in config.status. If some macros were 24800# called several times there might be several #defines for the same 24801# symbol, which is useless. But do not sort them, since the last 24802# AC_DEFINE must be honored. 24803ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24804# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 24805# NAME is the cpp macro being defined, VALUE is the value it is being given. 24806# PARAMS is the parameter list in the macro definition--in most cases, it's 24807# just an empty string. 24808ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 24809ac_dB='\\)[ (].*,\\1define\\2' 24810ac_dC=' ' 24811ac_dD=' ,' 24812 24813uniq confdefs.h | 24814 sed -n ' 24815 t rset 24816 :rset 24817 s/^[ ]*#[ ]*define[ ][ ]*// 24818 t ok 24819 d 24820 :ok 24821 s/[\\&,]/\\&/g 24822 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 24823 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 24824 ' >>conftest.defines 24825 24826# Remove the space that was appended to ease matching. 24827# Then replace #undef with comments. This is necessary, for 24828# example, in the case of _POSIX_SOURCE, which is predefined and required 24829# on some systems where configure will not decide to define it. 24830# (The regexp can be short, since the line contains either #define or #undef.) 24831echo 's/ $// 24832s,^[ #]*u.*,/* & */,' >>conftest.defines 24833 24834# Break up conftest.defines: 24835ac_max_sed_lines=50 24836 24837# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 24838# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 24839# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 24840# et cetera. 24841ac_in='$ac_file_inputs' 24842ac_out='"$tmp/out1"' 24843ac_nxt='"$tmp/out2"' 24844 24845while : 24846do 24847 # Write a here document: 24848 cat >>$CONFIG_STATUS <<_ACEOF 24849 # First, check the format of the line: 24850 cat >"\$tmp/defines.sed" <<\\CEOF 24851/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 24852/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 24853b 24854:def 24855_ACEOF 24856 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 24857 echo 'CEOF 24858 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 24859 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 24860 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 24861 grep . conftest.tail >/dev/null || break 24862 rm -f conftest.defines 24863 mv conftest.tail conftest.defines 24864done 24865rm -f conftest.defines conftest.tail 24866 24867echo "ac_result=$ac_in" >>$CONFIG_STATUS 24868cat >>$CONFIG_STATUS <<\_ACEOF 24869 if test x"$ac_file" != x-; then 24870 echo "/* $configure_input */" >"$tmp/config.h" 24871 cat "$ac_result" >>"$tmp/config.h" 24872 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 24873 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24874echo "$as_me: $ac_file is unchanged" >&6;} 24875 else 24876 rm -f $ac_file 24877 mv "$tmp/config.h" $ac_file 24878 fi 24879 else 24880 echo "/* $configure_input */" 24881 cat "$ac_result" 24882 fi 24883 rm -f "$tmp/out12" 24884# Compute $ac_file's index in $config_headers. 24885_am_stamp_count=1 24886for _am_header in $config_headers :; do 24887 case $_am_header in 24888 $ac_file | $ac_file:* ) 24889 break ;; 24890 * ) 24891 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24892 esac 24893done 24894echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 24895$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24896 X$ac_file : 'X\(//\)[^/]' \| \ 24897 X$ac_file : 'X\(//\)$' \| \ 24898 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 24899echo X$ac_file | 24900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24901 s//\1/ 24902 q 24903 } 24904 /^X\(\/\/\)[^/].*/{ 24905 s//\1/ 24906 q 24907 } 24908 /^X\(\/\/\)$/{ 24909 s//\1/ 24910 q 24911 } 24912 /^X\(\/\).*/{ 24913 s//\1/ 24914 q 24915 } 24916 s/.*/./; q'`/stamp-h$_am_stamp_count 24917 ;; 24918 24919 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 24920echo "$as_me: executing $ac_file commands" >&6;} 24921 ;; 24922 esac 24923 24924 24925 case $ac_file$ac_mode in 24926 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 24927 # Strip MF so we end up with the name of the file. 24928 mf=`echo "$mf" | sed -e 's/:.*$//'` 24929 # Check whether this is an Automake generated Makefile or not. 24930 # We used to match only the files named `Makefile.in', but 24931 # some people rename them; so instead we look at the file content. 24932 # Grep'ing the first line is not enough: some people post-process 24933 # each Makefile.in and add a new line on top of each file to say so. 24934 # So let's grep whole file. 24935 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 24936 dirpart=`$as_dirname -- "$mf" || 24937$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24938 X"$mf" : 'X\(//\)[^/]' \| \ 24939 X"$mf" : 'X\(//\)$' \| \ 24940 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24941echo X"$mf" | 24942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24943 s//\1/ 24944 q 24945 } 24946 /^X\(\/\/\)[^/].*/{ 24947 s//\1/ 24948 q 24949 } 24950 /^X\(\/\/\)$/{ 24951 s//\1/ 24952 q 24953 } 24954 /^X\(\/\).*/{ 24955 s//\1/ 24956 q 24957 } 24958 s/.*/./; q'` 24959 else 24960 continue 24961 fi 24962 # Extract the definition of DEPDIR, am__include, and am__quote 24963 # from the Makefile without running `make'. 24964 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24965 test -z "$DEPDIR" && continue 24966 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24967 test -z "am__include" && continue 24968 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24969 # When using ansi2knr, U may be empty or an underscore; expand it 24970 U=`sed -n 's/^U = //p' < "$mf"` 24971 # Find all dependency output files, they are included files with 24972 # $(DEPDIR) in their names. We invoke sed twice because it is the 24973 # simplest approach to changing $(DEPDIR) to its actual value in the 24974 # expansion. 24975 for file in `sed -n " 24976 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24977 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24978 # Make sure the directory exists. 24979 test -f "$dirpart/$file" && continue 24980 fdir=`$as_dirname -- "$file" || 24981$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24982 X"$file" : 'X\(//\)[^/]' \| \ 24983 X"$file" : 'X\(//\)$' \| \ 24984 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24985echo X"$file" | 24986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24987 s//\1/ 24988 q 24989 } 24990 /^X\(\/\/\)[^/].*/{ 24991 s//\1/ 24992 q 24993 } 24994 /^X\(\/\/\)$/{ 24995 s//\1/ 24996 q 24997 } 24998 /^X\(\/\).*/{ 24999 s//\1/ 25000 q 25001 } 25002 s/.*/./; q'` 25003 { as_dir=$dirpart/$fdir 25004 case $as_dir in #( 25005 -*) as_dir=./$as_dir;; 25006 esac 25007 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 25008 as_dirs= 25009 while :; do 25010 case $as_dir in #( 25011 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 25012 *) as_qdir=$as_dir;; 25013 esac 25014 as_dirs="'$as_qdir' $as_dirs" 25015 as_dir=`$as_dirname -- "$as_dir" || 25016$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25017 X"$as_dir" : 'X\(//\)[^/]' \| \ 25018 X"$as_dir" : 'X\(//\)$' \| \ 25019 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25020echo X"$as_dir" | 25021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25022 s//\1/ 25023 q 25024 } 25025 /^X\(\/\/\)[^/].*/{ 25026 s//\1/ 25027 q 25028 } 25029 /^X\(\/\/\)$/{ 25030 s//\1/ 25031 q 25032 } 25033 /^X\(\/\).*/{ 25034 s//\1/ 25035 q 25036 } 25037 s/.*/./; q'` 25038 test -d "$as_dir" && break 25039 done 25040 test -z "$as_dirs" || eval "mkdir $as_dirs" 25041 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 25042echo "$as_me: error: cannot create directory $as_dir" >&2;} 25043 { (exit 1); exit 1; }; }; } 25044 # echo "creating $dirpart/$file" 25045 echo '# dummy' > "$dirpart/$file" 25046 done 25047done 25048 ;; 25049 25050 esac 25051done # for ac_tag 25052 25053 25054{ (exit 0); exit 0; } 25055_ACEOF 25056chmod +x $CONFIG_STATUS 25057ac_clean_files=$ac_clean_files_save 25058 25059 25060# configure is writing to config.log, and then calls config.status. 25061# config.status does its own redirection, appending to config.log. 25062# Unfortunately, on DOS this fails, as config.log is still kept open 25063# by configure, so config.status won't be able to write to it; its 25064# output is simply discarded. So we exec the FD to /dev/null, 25065# effectively closing config.log, so it can be properly (re)opened and 25066# appended to by config.status. When coming back to configure, we 25067# need to make the FD available again. 25068if test "$no_create" != yes; then 25069 ac_cs_success=: 25070 ac_config_status_args= 25071 test "$silent" = yes && 25072 ac_config_status_args="$ac_config_status_args --quiet" 25073 exec 5>/dev/null 25074 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25075 exec 5>>config.log 25076 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25077 # would make configure fail if this is the last instruction. 25078 $ac_cs_success || { (exit 1); exit 1; } 25079fi 25080 25081