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="src/shared/DOMString.hh.in" 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 807GMETADOM_VERSION_INFO 808INSTALL_PROGRAM 809INSTALL_SCRIPT 810INSTALL_DATA 811CYGPATH_W 812PACKAGE 813VERSION 814ACLOCAL 815AUTOCONF 816AUTOMAKE 817AUTOHEADER 818MAKEINFO 819install_sh 820STRIP 821INSTALL_STRIP_PROGRAM 822mkdir_p 823AWK 824SET_MAKE 825am__leading_dot 826AMTAR 827am__tar 828am__untar 829CC 830CFLAGS 831LDFLAGS 832CPPFLAGS 833ac_ct_CC 834EXEEXT 835OBJEXT 836DEPDIR 837am__include 838am__quote 839AMDEP_TRUE 840AMDEP_FALSE 841AMDEPBACKSLASH 842CCDEPMODE 843am__fastdepCC_TRUE 844am__fastdepCC_FALSE 845CXX 846CXXFLAGS 847ac_ct_CXX 848CXXDEPMODE 849am__fastdepCXX_TRUE 850am__fastdepCXX_FALSE 851CPP 852GREP 853EGREP 854CHAR_UNSIGNED 855GMETADOM_SIZEOF_CHAR 856GMETADOM_SIZEOF_SHORT 857GMETADOM_SIZEOF_INT 858GMETADOM_SIZEOF_LONG 859GMETADOM_SIZEOF_LONG_LONG 860GMETADOM_SIZEOF_WCHAR_T 861build 862build_cpu 863build_vendor 864build_os 865host 866host_cpu 867host_vendor 868host_os 869LN_S 870ECHO 871AR 872RANLIB 873CXXCPP 874F77 875FFLAGS 876ac_ct_F77 877LIBTOOL 878PKG_CONFIG 879GDOME_CFLAGS 880GDOME_LIBS 881HAVE_SED 882SED 883HAVE_SED_COND_TRUE 884HAVE_SED_COND_FALSE 885HAVE_XSLTPROC 886XSLTPROC 887HAVE_XSLTPROC_COND_TRUE 888HAVE_XSLTPROC_COND_FALSE 889STD_TRAITS 890ALL_TRAITS 891TRAIT_SPEC 892HAVE_ICONV 893OCAMLC 894OCAML_CFLAGS 895OCAML_LIB_PREFIX 896HAVE_OCAMLC 897OCAMLOPT 898HAVE_OCAMLOPT 899HAVE_OCAMLOPT_COND_TRUE 900HAVE_OCAMLOPT_COND_FALSE 901HAVE_OCAMLDEP 902OCAMLDEP 903HAVE_OCAMLFIND 904OCAMLFIND 905GMETADOM_MODULES 906LIBOBJS 907LTLIBOBJS' 908ac_subst_files='' 909 ac_precious_vars='build_alias 910host_alias 911target_alias 912CC 913CFLAGS 914LDFLAGS 915LIBS 916CPPFLAGS 917CXX 918CXXFLAGS 919CCC 920CPP 921CXXCPP 922F77 923FFLAGS 924PKG_CONFIG 925GDOME_CFLAGS 926GDOME_LIBS' 927 928 929# Initialize some variables set by options. 930ac_init_help= 931ac_init_version=false 932# The variables have the same names as the options, with 933# dashes changed to underlines. 934cache_file=/dev/null 935exec_prefix=NONE 936no_create= 937no_recursion= 938prefix=NONE 939program_prefix=NONE 940program_suffix=NONE 941program_transform_name=s,x,x, 942silent= 943site= 944srcdir= 945verbose= 946x_includes=NONE 947x_libraries=NONE 948 949# Installation directory options. 950# These are left unexpanded so users can "make install exec_prefix=/foo" 951# and all the variables that are supposed to be based on exec_prefix 952# by default will actually change. 953# Use braces instead of parens because sh, perl, etc. also accept them. 954# (The list follows the same order as the GNU Coding Standards.) 955bindir='${exec_prefix}/bin' 956sbindir='${exec_prefix}/sbin' 957libexecdir='${exec_prefix}/libexec' 958datarootdir='${prefix}/share' 959datadir='${datarootdir}' 960sysconfdir='${prefix}/etc' 961sharedstatedir='${prefix}/com' 962localstatedir='${prefix}/var' 963includedir='${prefix}/include' 964oldincludedir='/usr/include' 965docdir='${datarootdir}/doc/${PACKAGE}' 966infodir='${datarootdir}/info' 967htmldir='${docdir}' 968dvidir='${docdir}' 969pdfdir='${docdir}' 970psdir='${docdir}' 971libdir='${exec_prefix}/lib' 972localedir='${datarootdir}/locale' 973mandir='${datarootdir}/man' 974 975ac_prev= 976ac_dashdash= 977for ac_option 978do 979 # If the previous option needs an argument, assign it. 980 if test -n "$ac_prev"; then 981 eval $ac_prev=\$ac_option 982 ac_prev= 983 continue 984 fi 985 986 case $ac_option in 987 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 988 *) ac_optarg=yes ;; 989 esac 990 991 # Accept the important Cygnus configure options, so we can diagnose typos. 992 993 case $ac_dashdash$ac_option in 994 --) 995 ac_dashdash=yes ;; 996 997 -bindir | --bindir | --bindi | --bind | --bin | --bi) 998 ac_prev=bindir ;; 999 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1000 bindir=$ac_optarg ;; 1001 1002 -build | --build | --buil | --bui | --bu) 1003 ac_prev=build_alias ;; 1004 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1005 build_alias=$ac_optarg ;; 1006 1007 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1008 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1009 ac_prev=cache_file ;; 1010 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1011 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1012 cache_file=$ac_optarg ;; 1013 1014 --config-cache | -C) 1015 cache_file=config.cache ;; 1016 1017 -datadir | --datadir | --datadi | --datad) 1018 ac_prev=datadir ;; 1019 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1020 datadir=$ac_optarg ;; 1021 1022 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1023 | --dataroo | --dataro | --datar) 1024 ac_prev=datarootdir ;; 1025 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1026 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1027 datarootdir=$ac_optarg ;; 1028 1029 -disable-* | --disable-*) 1030 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1031 # Reject names that are not valid shell variable names. 1032 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1033 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1034 { (exit 1); exit 1; }; } 1035 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1036 eval enable_$ac_feature=no ;; 1037 1038 -docdir | --docdir | --docdi | --doc | --do) 1039 ac_prev=docdir ;; 1040 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1041 docdir=$ac_optarg ;; 1042 1043 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1044 ac_prev=dvidir ;; 1045 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1046 dvidir=$ac_optarg ;; 1047 1048 -enable-* | --enable-*) 1049 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 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=\$ac_optarg ;; 1056 1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1059 | --exec | --exe | --ex) 1060 ac_prev=exec_prefix ;; 1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1063 | --exec=* | --exe=* | --ex=*) 1064 exec_prefix=$ac_optarg ;; 1065 1066 -gas | --gas | --ga | --g) 1067 # Obsolete; use --with-gas. 1068 with_gas=yes ;; 1069 1070 -help | --help | --hel | --he | -h) 1071 ac_init_help=long ;; 1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1073 ac_init_help=recursive ;; 1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1075 ac_init_help=short ;; 1076 1077 -host | --host | --hos | --ho) 1078 ac_prev=host_alias ;; 1079 -host=* | --host=* | --hos=* | --ho=*) 1080 host_alias=$ac_optarg ;; 1081 1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1083 ac_prev=htmldir ;; 1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1085 | --ht=*) 1086 htmldir=$ac_optarg ;; 1087 1088 -includedir | --includedir | --includedi | --included | --include \ 1089 | --includ | --inclu | --incl | --inc) 1090 ac_prev=includedir ;; 1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1092 | --includ=* | --inclu=* | --incl=* | --inc=*) 1093 includedir=$ac_optarg ;; 1094 1095 -infodir | --infodir | --infodi | --infod | --info | --inf) 1096 ac_prev=infodir ;; 1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1098 infodir=$ac_optarg ;; 1099 1100 -libdir | --libdir | --libdi | --libd) 1101 ac_prev=libdir ;; 1102 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1103 libdir=$ac_optarg ;; 1104 1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1106 | --libexe | --libex | --libe) 1107 ac_prev=libexecdir ;; 1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1109 | --libexe=* | --libex=* | --libe=*) 1110 libexecdir=$ac_optarg ;; 1111 1112 -localedir | --localedir | --localedi | --localed | --locale) 1113 ac_prev=localedir ;; 1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1115 localedir=$ac_optarg ;; 1116 1117 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1118 | --localstate | --localstat | --localsta | --localst | --locals) 1119 ac_prev=localstatedir ;; 1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1122 localstatedir=$ac_optarg ;; 1123 1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1125 ac_prev=mandir ;; 1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1127 mandir=$ac_optarg ;; 1128 1129 -nfp | --nfp | --nf) 1130 # Obsolete; use --without-fp. 1131 with_fp=no ;; 1132 1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1134 | --no-cr | --no-c | -n) 1135 no_create=yes ;; 1136 1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1139 no_recursion=yes ;; 1140 1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1143 | --oldin | --oldi | --old | --ol | --o) 1144 ac_prev=oldincludedir ;; 1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1148 oldincludedir=$ac_optarg ;; 1149 1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1151 ac_prev=prefix ;; 1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1153 prefix=$ac_optarg ;; 1154 1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1156 | --program-pre | --program-pr | --program-p) 1157 ac_prev=program_prefix ;; 1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1160 program_prefix=$ac_optarg ;; 1161 1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1163 | --program-suf | --program-su | --program-s) 1164 ac_prev=program_suffix ;; 1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1167 program_suffix=$ac_optarg ;; 1168 1169 -program-transform-name | --program-transform-name \ 1170 | --program-transform-nam | --program-transform-na \ 1171 | --program-transform-n | --program-transform- \ 1172 | --program-transform | --program-transfor \ 1173 | --program-transfo | --program-transf \ 1174 | --program-trans | --program-tran \ 1175 | --progr-tra | --program-tr | --program-t) 1176 ac_prev=program_transform_name ;; 1177 -program-transform-name=* | --program-transform-name=* \ 1178 | --program-transform-nam=* | --program-transform-na=* \ 1179 | --program-transform-n=* | --program-transform-=* \ 1180 | --program-transform=* | --program-transfor=* \ 1181 | --program-transfo=* | --program-transf=* \ 1182 | --program-trans=* | --program-tran=* \ 1183 | --progr-tra=* | --program-tr=* | --program-t=*) 1184 program_transform_name=$ac_optarg ;; 1185 1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1187 ac_prev=pdfdir ;; 1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1189 pdfdir=$ac_optarg ;; 1190 1191 -psdir | --psdir | --psdi | --psd | --ps) 1192 ac_prev=psdir ;; 1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1194 psdir=$ac_optarg ;; 1195 1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1197 | -silent | --silent | --silen | --sile | --sil) 1198 silent=yes ;; 1199 1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1201 ac_prev=sbindir ;; 1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1203 | --sbi=* | --sb=*) 1204 sbindir=$ac_optarg ;; 1205 1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1208 | --sharedst | --shareds | --shared | --share | --shar \ 1209 | --sha | --sh) 1210 ac_prev=sharedstatedir ;; 1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1214 | --sha=* | --sh=*) 1215 sharedstatedir=$ac_optarg ;; 1216 1217 -site | --site | --sit) 1218 ac_prev=site ;; 1219 -site=* | --site=* | --sit=*) 1220 site=$ac_optarg ;; 1221 1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1223 ac_prev=srcdir ;; 1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1225 srcdir=$ac_optarg ;; 1226 1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1228 | --syscon | --sysco | --sysc | --sys | --sy) 1229 ac_prev=sysconfdir ;; 1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1232 sysconfdir=$ac_optarg ;; 1233 1234 -target | --target | --targe | --targ | --tar | --ta | --t) 1235 ac_prev=target_alias ;; 1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1237 target_alias=$ac_optarg ;; 1238 1239 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1240 verbose=yes ;; 1241 1242 -version | --version | --versio | --versi | --vers | -V) 1243 ac_init_version=: ;; 1244 1245 -with-* | --with-*) 1246 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1247 # Reject names that are not valid shell variable names. 1248 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1249 { echo "$as_me: error: invalid package name: $ac_package" >&2 1250 { (exit 1); exit 1; }; } 1251 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1252 eval with_$ac_package=\$ac_optarg ;; 1253 1254 -without-* | --without-*) 1255 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1256 # Reject names that are not valid shell variable names. 1257 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1258 { echo "$as_me: error: invalid package name: $ac_package" >&2 1259 { (exit 1); exit 1; }; } 1260 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1261 eval with_$ac_package=no ;; 1262 1263 --x) 1264 # Obsolete; use --with-x. 1265 with_x=yes ;; 1266 1267 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1268 | --x-incl | --x-inc | --x-in | --x-i) 1269 ac_prev=x_includes ;; 1270 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1271 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1272 x_includes=$ac_optarg ;; 1273 1274 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1275 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1276 ac_prev=x_libraries ;; 1277 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1278 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1279 x_libraries=$ac_optarg ;; 1280 1281 -*) { echo "$as_me: error: unrecognized option: $ac_option 1282Try \`$0 --help' for more information." >&2 1283 { (exit 1); exit 1; }; } 1284 ;; 1285 1286 *=*) 1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1288 # Reject names that are not valid shell variable names. 1289 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1290 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1291 { (exit 1); exit 1; }; } 1292 eval $ac_envvar=\$ac_optarg 1293 export $ac_envvar ;; 1294 1295 *) 1296 # FIXME: should be removed in autoconf 3.0. 1297 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1298 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1299 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1300 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1301 ;; 1302 1303 esac 1304done 1305 1306if test -n "$ac_prev"; then 1307 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1308 { echo "$as_me: error: missing argument to $ac_option" >&2 1309 { (exit 1); exit 1; }; } 1310fi 1311 1312# Be sure to have absolute directory names. 1313for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1314 datadir sysconfdir sharedstatedir localstatedir includedir \ 1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1316 libdir localedir mandir 1317do 1318 eval ac_val=\$$ac_var 1319 case $ac_val in 1320 [\\/$]* | ?:[\\/]* ) continue;; 1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1322 esac 1323 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1324 { (exit 1); exit 1; }; } 1325done 1326 1327# There might be people who depend on the old broken behavior: `$host' 1328# used to hold the argument of --host etc. 1329# FIXME: To remove some day. 1330build=$build_alias 1331host=$host_alias 1332target=$target_alias 1333 1334# FIXME: To remove some day. 1335if test "x$host_alias" != x; then 1336 if test "x$build_alias" = x; then 1337 cross_compiling=maybe 1338 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1339 If a cross compiler is detected then cross compile mode will be used." >&2 1340 elif test "x$build_alias" != "x$host_alias"; then 1341 cross_compiling=yes 1342 fi 1343fi 1344 1345ac_tool_prefix= 1346test -n "$host_alias" && ac_tool_prefix=$host_alias- 1347 1348test "$silent" = yes && exec 6>/dev/null 1349 1350 1351ac_pwd=`pwd` && test -n "$ac_pwd" && 1352ac_ls_di=`ls -di .` && 1353ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1354 { echo "$as_me: error: Working directory cannot be determined" >&2 1355 { (exit 1); exit 1; }; } 1356test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1357 { echo "$as_me: error: pwd does not report name of working directory" >&2 1358 { (exit 1); exit 1; }; } 1359 1360 1361# Find the source files, if location was not specified. 1362if test -z "$srcdir"; then 1363 ac_srcdir_defaulted=yes 1364 # Try the directory containing this script, then the parent directory. 1365 ac_confdir=`$as_dirname -- "$0" || 1366$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1367 X"$0" : 'X\(//\)[^/]' \| \ 1368 X"$0" : 'X\(//\)$' \| \ 1369 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1370echo X"$0" | 1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1372 s//\1/ 1373 q 1374 } 1375 /^X\(\/\/\)[^/].*/{ 1376 s//\1/ 1377 q 1378 } 1379 /^X\(\/\/\)$/{ 1380 s//\1/ 1381 q 1382 } 1383 /^X\(\/\).*/{ 1384 s//\1/ 1385 q 1386 } 1387 s/.*/./; q'` 1388 srcdir=$ac_confdir 1389 if test ! -r "$srcdir/$ac_unique_file"; then 1390 srcdir=.. 1391 fi 1392else 1393 ac_srcdir_defaulted=no 1394fi 1395if test ! -r "$srcdir/$ac_unique_file"; then 1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1397 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1398 { (exit 1); exit 1; }; } 1399fi 1400ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1401ac_abs_confdir=`( 1402 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1403 { (exit 1); exit 1; }; } 1404 pwd)` 1405# When building in place, set srcdir=. 1406if test "$ac_abs_confdir" = "$ac_pwd"; then 1407 srcdir=. 1408fi 1409# Remove unnecessary trailing slashes from srcdir. 1410# Double slashes in file names in object file debugging info 1411# mess up M-x gdb in Emacs. 1412case $srcdir in 1413*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1414esac 1415for ac_var in $ac_precious_vars; do 1416 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1417 eval ac_env_${ac_var}_value=\$${ac_var} 1418 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1419 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1420done 1421 1422# 1423# Report the --help message. 1424# 1425if test "$ac_init_help" = "long"; then 1426 # Omit some internal or obsolete options to make the list less imposing. 1427 # This message is too long to be a string in the A/UX 3.1 sh. 1428 cat <<_ACEOF 1429\`configure' configures this package to adapt to many kinds of systems. 1430 1431Usage: $0 [OPTION]... [VAR=VALUE]... 1432 1433To assign environment variables (e.g., CC, CFLAGS...), specify them as 1434VAR=VALUE. See below for descriptions of some of the useful variables. 1435 1436Defaults for the options are specified in brackets. 1437 1438Configuration: 1439 -h, --help display this help and exit 1440 --help=short display options specific to this package 1441 --help=recursive display the short help of all the included packages 1442 -V, --version display version information and exit 1443 -q, --quiet, --silent do not print \`checking...' messages 1444 --cache-file=FILE cache test results in FILE [disabled] 1445 -C, --config-cache alias for \`--cache-file=config.cache' 1446 -n, --no-create do not create output files 1447 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1448 1449Installation directories: 1450 --prefix=PREFIX install architecture-independent files in PREFIX 1451 [$ac_default_prefix] 1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1453 [PREFIX] 1454 1455By default, \`make install' will install all the files in 1456\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1457an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1458for instance \`--prefix=\$HOME'. 1459 1460For better control, use the options below. 1461 1462Fine tuning of the installation directories: 1463 --bindir=DIR user executables [EPREFIX/bin] 1464 --sbindir=DIR system admin executables [EPREFIX/sbin] 1465 --libexecdir=DIR program executables [EPREFIX/libexec] 1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1469 --libdir=DIR object code libraries [EPREFIX/lib] 1470 --includedir=DIR C header files [PREFIX/include] 1471 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1474 --infodir=DIR info documentation [DATAROOTDIR/info] 1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1476 --mandir=DIR man documentation [DATAROOTDIR/man] 1477 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1478 --htmldir=DIR html documentation [DOCDIR] 1479 --dvidir=DIR dvi documentation [DOCDIR] 1480 --pdfdir=DIR pdf documentation [DOCDIR] 1481 --psdir=DIR ps documentation [DOCDIR] 1482_ACEOF 1483 1484 cat <<\_ACEOF 1485 1486Program names: 1487 --program-prefix=PREFIX prepend PREFIX to installed program names 1488 --program-suffix=SUFFIX append SUFFIX to installed program names 1489 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1490 1491System types: 1492 --build=BUILD configure for building on BUILD [guessed] 1493 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1494_ACEOF 1495fi 1496 1497if test -n "$ac_init_help"; then 1498 1499 cat <<\_ACEOF 1500 1501Optional Features: 1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1504 --enable-profile=ARG include profiling information default=no 1505 --enable-debug=ARG include debugging debug default=yes 1506 --disable-dependency-tracking speeds up one-time build 1507 --enable-dependency-tracking do not reject slow dependency extractors 1508 --enable-shared[=PKGS] build shared libraries [default=yes] 1509 --enable-static[=PKGS] build static libraries [default=yes] 1510 --enable-fast-install[=PKGS] 1511 optimize for fast installation [default=yes] 1512 --disable-libtool-lock avoid locking (might break parallel builds) 1513 1514Optional Packages: 1515 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1516 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1517 --with-modules=module list|all Specify the set of modules to be built default=all 1518 --with-libxml-prefix=PFX Specify location of libxml 1519 --with-libxml-include-prefix=PFX Specify location of libxml headers 1520 --with-libxml-libs-prefix=PFX Specify location of libxml libs 1521 --with-ocaml-include-prefix=PFX Specify location of Ocaml include files 1522 --with-ocaml-with-prefix=PFX Specify location of Ocaml libraries 1523 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1524 --with-pic try to use only PIC/non-PIC objects [default=use 1525 both] 1526 --with-tags[=TAGS] include additional configurations [automatic] 1527 1528Some influential environment variables: 1529 CC C compiler command 1530 CFLAGS C compiler flags 1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1532 nonstandard directory <lib dir> 1533 LIBS libraries to pass to the linker, e.g. -l<library> 1534 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1535 you have headers in a nonstandard directory <include dir> 1536 CXX C++ compiler command 1537 CXXFLAGS C++ compiler flags 1538 CPP C preprocessor 1539 CXXCPP C++ preprocessor 1540 F77 Fortran 77 compiler command 1541 FFLAGS Fortran 77 compiler flags 1542 PKG_CONFIG path to pkg-config utility 1543 GDOME_CFLAGS 1544 C compiler flags for GDOME, overriding pkg-config 1545 GDOME_LIBS linker flags for GDOME, overriding pkg-config 1546 1547Use these variables to override the choices made by `configure' or to help 1548it to find libraries and programs with nonstandard names/locations. 1549 1550_ACEOF 1551ac_status=$? 1552fi 1553 1554if test "$ac_init_help" = "recursive"; then 1555 # If there are subdirs, report their specific --help. 1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1557 test -d "$ac_dir" || continue 1558 ac_builddir=. 1559 1560case "$ac_dir" in 1561.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1562*) 1563 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1564 # A ".." for each directory in $ac_dir_suffix. 1565 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1566 case $ac_top_builddir_sub in 1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1569 esac ;; 1570esac 1571ac_abs_top_builddir=$ac_pwd 1572ac_abs_builddir=$ac_pwd$ac_dir_suffix 1573# for backward compatibility: 1574ac_top_builddir=$ac_top_build_prefix 1575 1576case $srcdir in 1577 .) # We are building in place. 1578 ac_srcdir=. 1579 ac_top_srcdir=$ac_top_builddir_sub 1580 ac_abs_top_srcdir=$ac_pwd ;; 1581 [\\/]* | ?:[\\/]* ) # Absolute name. 1582 ac_srcdir=$srcdir$ac_dir_suffix; 1583 ac_top_srcdir=$srcdir 1584 ac_abs_top_srcdir=$srcdir ;; 1585 *) # Relative name. 1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1587 ac_top_srcdir=$ac_top_build_prefix$srcdir 1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1589esac 1590ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1591 1592 cd "$ac_dir" || { ac_status=$?; continue; } 1593 # Check for guested configure. 1594 if test -f "$ac_srcdir/configure.gnu"; then 1595 echo && 1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1597 elif test -f "$ac_srcdir/configure"; then 1598 echo && 1599 $SHELL "$ac_srcdir/configure" --help=recursive 1600 else 1601 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1602 fi || ac_status=$? 1603 cd "$ac_pwd" || { ac_status=$?; break; } 1604 done 1605fi 1606 1607test -n "$ac_init_help" && exit $ac_status 1608if $ac_init_version; then 1609 cat <<\_ACEOF 1610configure 1611generated by GNU Autoconf 2.61 1612 1613Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16142002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1615This configure script is free software; the Free Software Foundation 1616gives unlimited permission to copy, distribute and modify it. 1617_ACEOF 1618 exit 1619fi 1620cat >config.log <<_ACEOF 1621This file contains any messages produced by compilers while 1622running configure, to aid debugging if configure makes a mistake. 1623 1624It was created by $as_me, which was 1625generated by GNU Autoconf 2.61. Invocation command line was 1626 1627 $ $0 $@ 1628 1629_ACEOF 1630exec 5>>config.log 1631{ 1632cat <<_ASUNAME 1633## --------- ## 1634## Platform. ## 1635## --------- ## 1636 1637hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1638uname -m = `(uname -m) 2>/dev/null || echo unknown` 1639uname -r = `(uname -r) 2>/dev/null || echo unknown` 1640uname -s = `(uname -s) 2>/dev/null || echo unknown` 1641uname -v = `(uname -v) 2>/dev/null || echo unknown` 1642 1643/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1644/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1645 1646/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1647/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1648/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1649/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1650/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1651/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1652/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1653 1654_ASUNAME 1655 1656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1657for as_dir in $PATH 1658do 1659 IFS=$as_save_IFS 1660 test -z "$as_dir" && as_dir=. 1661 echo "PATH: $as_dir" 1662done 1663IFS=$as_save_IFS 1664 1665} >&5 1666 1667cat >&5 <<_ACEOF 1668 1669 1670## ----------- ## 1671## Core tests. ## 1672## ----------- ## 1673 1674_ACEOF 1675 1676 1677# Keep a trace of the command line. 1678# Strip out --no-create and --no-recursion so they do not pile up. 1679# Strip out --silent because we don't want to record it for future runs. 1680# Also quote any args containing shell meta-characters. 1681# Make two passes to allow for proper duplicate-argument suppression. 1682ac_configure_args= 1683ac_configure_args0= 1684ac_configure_args1= 1685ac_must_keep_next=false 1686for ac_pass in 1 2 1687do 1688 for ac_arg 1689 do 1690 case $ac_arg in 1691 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1693 | -silent | --silent | --silen | --sile | --sil) 1694 continue ;; 1695 *\'*) 1696 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1697 esac 1698 case $ac_pass in 1699 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1700 2) 1701 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1702 if test $ac_must_keep_next = true; then 1703 ac_must_keep_next=false # Got value, back to normal. 1704 else 1705 case $ac_arg in 1706 *=* | --config-cache | -C | -disable-* | --disable-* \ 1707 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1708 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1709 | -with-* | --with-* | -without-* | --without-* | --x) 1710 case "$ac_configure_args0 " in 1711 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1712 esac 1713 ;; 1714 -* ) ac_must_keep_next=true ;; 1715 esac 1716 fi 1717 ac_configure_args="$ac_configure_args '$ac_arg'" 1718 ;; 1719 esac 1720 done 1721done 1722$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1723$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1724 1725# When interrupted or exit'd, cleanup temporary files, and complete 1726# config.log. We remove comments because anyway the quotes in there 1727# would cause problems or look ugly. 1728# WARNING: Use '\'' to represent an apostrophe within the trap. 1729# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1730trap 'exit_status=$? 1731 # Save into config.log some information that might help in debugging. 1732 { 1733 echo 1734 1735 cat <<\_ASBOX 1736## ---------------- ## 1737## Cache variables. ## 1738## ---------------- ## 1739_ASBOX 1740 echo 1741 # The following way of writing the cache mishandles newlines in values, 1742( 1743 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1744 eval ac_val=\$$ac_var 1745 case $ac_val in #( 1746 *${as_nl}*) 1747 case $ac_var in #( 1748 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1749echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1750 esac 1751 case $ac_var in #( 1752 _ | IFS | as_nl) ;; #( 1753 *) $as_unset $ac_var ;; 1754 esac ;; 1755 esac 1756 done 1757 (set) 2>&1 | 1758 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1759 *${as_nl}ac_space=\ *) 1760 sed -n \ 1761 "s/'\''/'\''\\\\'\'''\''/g; 1762 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1763 ;; #( 1764 *) 1765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1766 ;; 1767 esac | 1768 sort 1769) 1770 echo 1771 1772 cat <<\_ASBOX 1773## ----------------- ## 1774## Output variables. ## 1775## ----------------- ## 1776_ASBOX 1777 echo 1778 for ac_var in $ac_subst_vars 1779 do 1780 eval ac_val=\$$ac_var 1781 case $ac_val in 1782 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1783 esac 1784 echo "$ac_var='\''$ac_val'\''" 1785 done | sort 1786 echo 1787 1788 if test -n "$ac_subst_files"; then 1789 cat <<\_ASBOX 1790## ------------------- ## 1791## File substitutions. ## 1792## ------------------- ## 1793_ASBOX 1794 echo 1795 for ac_var in $ac_subst_files 1796 do 1797 eval ac_val=\$$ac_var 1798 case $ac_val in 1799 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1800 esac 1801 echo "$ac_var='\''$ac_val'\''" 1802 done | sort 1803 echo 1804 fi 1805 1806 if test -s confdefs.h; then 1807 cat <<\_ASBOX 1808## ----------- ## 1809## confdefs.h. ## 1810## ----------- ## 1811_ASBOX 1812 echo 1813 cat confdefs.h 1814 echo 1815 fi 1816 test "$ac_signal" != 0 && 1817 echo "$as_me: caught signal $ac_signal" 1818 echo "$as_me: exit $exit_status" 1819 } >&5 1820 rm -f core *.core core.conftest.* && 1821 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1822 exit $exit_status 1823' 0 1824for ac_signal in 1 2 13 15; do 1825 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1826done 1827ac_signal=0 1828 1829# confdefs.h avoids OS command line length limits that DEFS can exceed. 1830rm -f -r conftest* confdefs.h 1831 1832# Predefined preprocessor variables. 1833 1834cat >>confdefs.h <<_ACEOF 1835#define PACKAGE_NAME "$PACKAGE_NAME" 1836_ACEOF 1837 1838 1839cat >>confdefs.h <<_ACEOF 1840#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1841_ACEOF 1842 1843 1844cat >>confdefs.h <<_ACEOF 1845#define PACKAGE_VERSION "$PACKAGE_VERSION" 1846_ACEOF 1847 1848 1849cat >>confdefs.h <<_ACEOF 1850#define PACKAGE_STRING "$PACKAGE_STRING" 1851_ACEOF 1852 1853 1854cat >>confdefs.h <<_ACEOF 1855#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1856_ACEOF 1857 1858 1859# Let the site file select an alternate cache file if it wants to. 1860# Prefer explicitly selected file to automatically selected ones. 1861if test -n "$CONFIG_SITE"; then 1862 set x "$CONFIG_SITE" 1863elif test "x$prefix" != xNONE; then 1864 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1865else 1866 set x "$ac_default_prefix/share/config.site" \ 1867 "$ac_default_prefix/etc/config.site" 1868fi 1869shift 1870for ac_site_file 1871do 1872 if test -r "$ac_site_file"; then 1873 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1874echo "$as_me: loading site script $ac_site_file" >&6;} 1875 sed 's/^/| /' "$ac_site_file" >&5 1876 . "$ac_site_file" 1877 fi 1878done 1879 1880if test -r "$cache_file"; then 1881 # Some versions of bash will fail to source /dev/null (special 1882 # files actually), so we avoid doing that. 1883 if test -f "$cache_file"; then 1884 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1885echo "$as_me: loading cache $cache_file" >&6;} 1886 case $cache_file in 1887 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1888 *) . "./$cache_file";; 1889 esac 1890 fi 1891else 1892 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1893echo "$as_me: creating cache $cache_file" >&6;} 1894 >$cache_file 1895fi 1896 1897# Check that the precious variables saved in the cache have kept the same 1898# value. 1899ac_cache_corrupted=false 1900for ac_var in $ac_precious_vars; do 1901 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1902 eval ac_new_set=\$ac_env_${ac_var}_set 1903 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1904 eval ac_new_val=\$ac_env_${ac_var}_value 1905 case $ac_old_set,$ac_new_set in 1906 set,) 1907 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1908echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1909 ac_cache_corrupted=: ;; 1910 ,set) 1911 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1912echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1913 ac_cache_corrupted=: ;; 1914 ,);; 1915 *) 1916 if test "x$ac_old_val" != "x$ac_new_val"; then 1917 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1918echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1919 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1920echo "$as_me: former value: $ac_old_val" >&2;} 1921 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1922echo "$as_me: current value: $ac_new_val" >&2;} 1923 ac_cache_corrupted=: 1924 fi;; 1925 esac 1926 # Pass precious variables to config.status. 1927 if test "$ac_new_set" = set; then 1928 case $ac_new_val in 1929 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1930 *) ac_arg=$ac_var=$ac_new_val ;; 1931 esac 1932 case " $ac_configure_args " in 1933 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1934 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1935 esac 1936 fi 1937done 1938if $ac_cache_corrupted; then 1939 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1940echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1941 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1942echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1943 { (exit 1); exit 1; }; } 1944fi 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962ac_ext=c 1963ac_cpp='$CPP $CPPFLAGS' 1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1966ac_compiler_gnu=$ac_cv_c_compiler_gnu 1967 1968 1969 1970 1971PACKAGE=gmetadom 1972VERSION=0.2.6 1973GMETADOM_VERSION_INFO=`echo $VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'` 1974 1975 1976# Check whether --enable-profile was given. 1977if test "${enable_profile+set}" = set; then 1978 enableval=$enable_profile; profile=$enableval 1979else 1980 profile=no 1981 1982fi 1983 1984 1985# Check whether --enable-debug was given. 1986if test "${enable_debug+set}" = set; then 1987 enableval=$enable_debug; enable_debug=$enableval 1988else 1989 enable_debug=yes 1990 1991fi 1992 1993 1994if test "x$enable_debug" = "xyes"; then 1995 1996cat >>confdefs.h <<\_ACEOF 1997#define ENABLE_DEBUG 1998_ACEOF 1999 2000fi 2001 2002 2003# Check whether --with-modules was given. 2004if test "${with_modules+set}" = set; then 2005 withval=$with_modules; GMETADOM_MODULES=$withval 2006else 2007 GMETADOM_MODULES=all 2008 2009fi 2010 2011 2012LIBXML_PREFIX="" 2013 2014# Check whether --with-libxml-prefix was given. 2015if test "${with_libxml_prefix+set}" = set; then 2016 withval=$with_libxml_prefix; LIBXML_PREFIX=$withval 2017 2018fi 2019 2020 2021 2022# Check whether --with-libxml-include-prefix was given. 2023if test "${with_libxml_include_prefix+set}" = set; then 2024 withval=$with_libxml_include_prefix; LIBXML_CFLAGS="-I$withval" 2025 2026fi 2027 2028 2029 2030# Check whether --with-libxml-libs-prefix was given. 2031if test "${with_libxml_libs_prefix+set}" = set; then 2032 withval=$with_libxml_libs_prefix; LIBXML_LIBS="-L$withval -lxml2 -lz" 2033 2034fi 2035 2036 2037 2038# Check whether --with-ocaml-include-prefix was given. 2039if test "${with_ocaml_include_prefix+set}" = set; then 2040 withval=$with_ocaml_include_prefix; OCAML_INCLUDE_PREFIX="-I$withval" 2041else 2042 OCAML_INCLUDE_PREFIX=no 2043 2044fi 2045 2046 2047 2048# Check whether --with-ocaml-lib-prefix was given. 2049if test "${with_ocaml_lib_prefix+set}" = set; then 2050 withval=$with_ocaml_lib_prefix; OCAML_LIB_PREFIX=$withval 2051else 2052 OCAML_LIB_PREFIX=no 2053 2054fi 2055 2056 2057# AC_CONFIG_HEADERS([config.h]) 2058am__api_version="1.9" 2059ac_aux_dir= 2060for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2061 if test -f "$ac_dir/install-sh"; then 2062 ac_aux_dir=$ac_dir 2063 ac_install_sh="$ac_aux_dir/install-sh -c" 2064 break 2065 elif test -f "$ac_dir/install.sh"; then 2066 ac_aux_dir=$ac_dir 2067 ac_install_sh="$ac_aux_dir/install.sh -c" 2068 break 2069 elif test -f "$ac_dir/shtool"; then 2070 ac_aux_dir=$ac_dir 2071 ac_install_sh="$ac_aux_dir/shtool install -c" 2072 break 2073 fi 2074done 2075if test -z "$ac_aux_dir"; then 2076 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2077echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2078 { (exit 1); exit 1; }; } 2079fi 2080 2081# These three variables are undocumented and unsupported, 2082# and are intended to be withdrawn in a future Autoconf release. 2083# They can cause serious problems if a builder's source tree is in a directory 2084# whose full name contains unusual characters. 2085ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2086ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2087ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2088 2089 2090# Find a good install program. We prefer a C program (faster), 2091# so one script is as good as another. But avoid the broken or 2092# incompatible versions: 2093# SysV /etc/install, /usr/sbin/install 2094# SunOS /usr/etc/install 2095# IRIX /sbin/install 2096# AIX /bin/install 2097# AmigaOS /C/install, which installs bootblocks on floppy discs 2098# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2099# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2100# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2101# OS/2's system install, which has a completely different semantic 2102# ./install, which can be erroneously created by make from ./install.sh. 2103{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2104echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2105if test -z "$INSTALL"; then 2106if test "${ac_cv_path_install+set}" = set; then 2107 echo $ECHO_N "(cached) $ECHO_C" >&6 2108else 2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2110for as_dir in $PATH 2111do 2112 IFS=$as_save_IFS 2113 test -z "$as_dir" && as_dir=. 2114 # Account for people who put trailing slashes in PATH elements. 2115case $as_dir/ in 2116 ./ | .// | /cC/* | \ 2117 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2118 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2119 /usr/ucb/* ) ;; 2120 *) 2121 # OSF1 and SCO ODT 3.0 have their own names for install. 2122 # Don't use installbsd from OSF since it installs stuff as root 2123 # by default. 2124 for ac_prog in ginstall scoinst install; do 2125 for ac_exec_ext in '' $ac_executable_extensions; do 2126 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2127 if test $ac_prog = install && 2128 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2129 # AIX install. It has an incompatible calling convention. 2130 : 2131 elif test $ac_prog = install && 2132 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2133 # program-specific install script used by HP pwplus--don't use. 2134 : 2135 else 2136 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2137 break 3 2138 fi 2139 fi 2140 done 2141 done 2142 ;; 2143esac 2144done 2145IFS=$as_save_IFS 2146 2147 2148fi 2149 if test "${ac_cv_path_install+set}" = set; then 2150 INSTALL=$ac_cv_path_install 2151 else 2152 # As a last resort, use the slow shell script. Don't cache a 2153 # value for INSTALL within a source directory, because that will 2154 # break other packages using the cache if that directory is 2155 # removed, or if the value is a relative name. 2156 INSTALL=$ac_install_sh 2157 fi 2158fi 2159{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2160echo "${ECHO_T}$INSTALL" >&6; } 2161 2162# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2163# It thinks the first close brace ends the variable substitution. 2164test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2165 2166test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2167 2168test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2169 2170{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2171echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2172# Just in case 2173sleep 1 2174echo timestamp > conftest.file 2175# Do `set' in a subshell so we don't clobber the current shell's 2176# arguments. Must try -L first in case configure is actually a 2177# symlink; some systems play weird games with the mod time of symlinks 2178# (eg FreeBSD returns the mod time of the symlink's containing 2179# directory). 2180if ( 2181 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2182 if test "$*" = "X"; then 2183 # -L didn't work. 2184 set X `ls -t $srcdir/configure conftest.file` 2185 fi 2186 rm -f conftest.file 2187 if test "$*" != "X $srcdir/configure conftest.file" \ 2188 && test "$*" != "X conftest.file $srcdir/configure"; then 2189 2190 # If neither matched, then we have a broken ls. This can happen 2191 # if, for instance, CONFIG_SHELL is bash and it inherits a 2192 # broken ls alias from the environment. This has actually 2193 # happened. Such a system could not be considered "sane". 2194 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2195alias in your environment" >&5 2196echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2197alias in your environment" >&2;} 2198 { (exit 1); exit 1; }; } 2199 fi 2200 2201 test "$2" = conftest.file 2202 ) 2203then 2204 # Ok. 2205 : 2206else 2207 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2208Check your system clock" >&5 2209echo "$as_me: error: newly created file is older than distributed files! 2210Check your system clock" >&2;} 2211 { (exit 1); exit 1; }; } 2212fi 2213{ echo "$as_me:$LINENO: result: yes" >&5 2214echo "${ECHO_T}yes" >&6; } 2215test "$program_prefix" != NONE && 2216 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2217# Use a double $ so make ignores it. 2218test "$program_suffix" != NONE && 2219 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2220# Double any \ or $. echo might interpret backslashes. 2221# By default was `s,x,x', remove it if useless. 2222cat <<\_ACEOF >conftest.sed 2223s/[\\$]/&&/g;s/;s,x,x,$// 2224_ACEOF 2225program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2226rm -f conftest.sed 2227 2228# expand $ac_aux_dir to an absolute path 2229am_aux_dir=`cd $ac_aux_dir && pwd` 2230 2231test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2232# Use eval to expand $SHELL 2233if eval "$MISSING --run true"; then 2234 am_missing_run="$MISSING --run " 2235else 2236 am_missing_run= 2237 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2238echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2239fi 2240 2241if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2242 # We used to keeping the `.' as first argument, in order to 2243 # allow $(mkdir_p) to be used without argument. As in 2244 # $(mkdir_p) $(somedir) 2245 # where $(somedir) is conditionally defined. However this is wrong 2246 # for two reasons: 2247 # 1. if the package is installed by a user who cannot write `.' 2248 # make install will fail, 2249 # 2. the above comment should most certainly read 2250 # $(mkdir_p) $(DESTDIR)$(somedir) 2251 # so it does not work when $(somedir) is undefined and 2252 # $(DESTDIR) is not. 2253 # To support the latter case, we have to write 2254 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2255 # so the `.' trick is pointless. 2256 mkdir_p='mkdir -p --' 2257else 2258 # On NextStep and OpenStep, the `mkdir' command does not 2259 # recognize any option. It will interpret all options as 2260 # directories to create, and then abort because `.' already 2261 # exists. 2262 for d in ./-p ./--version; 2263 do 2264 test -d $d && rmdir $d 2265 done 2266 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2267 if test -f "$ac_aux_dir/mkinstalldirs"; then 2268 mkdir_p='$(mkinstalldirs)' 2269 else 2270 mkdir_p='$(install_sh) -d' 2271 fi 2272fi 2273 2274for ac_prog in gawk mawk nawk awk 2275do 2276 # Extract the first word of "$ac_prog", so it can be a program name with args. 2277set dummy $ac_prog; ac_word=$2 2278{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2280if test "${ac_cv_prog_AWK+set}" = set; then 2281 echo $ECHO_N "(cached) $ECHO_C" >&6 2282else 2283 if test -n "$AWK"; then 2284 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2285else 2286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2287for as_dir in $PATH 2288do 2289 IFS=$as_save_IFS 2290 test -z "$as_dir" && as_dir=. 2291 for ac_exec_ext in '' $ac_executable_extensions; do 2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2293 ac_cv_prog_AWK="$ac_prog" 2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2295 break 2 2296 fi 2297done 2298done 2299IFS=$as_save_IFS 2300 2301fi 2302fi 2303AWK=$ac_cv_prog_AWK 2304if test -n "$AWK"; then 2305 { echo "$as_me:$LINENO: result: $AWK" >&5 2306echo "${ECHO_T}$AWK" >&6; } 2307else 2308 { echo "$as_me:$LINENO: result: no" >&5 2309echo "${ECHO_T}no" >&6; } 2310fi 2311 2312 2313 test -n "$AWK" && break 2314done 2315 2316{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2317echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2318set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2319if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2320 echo $ECHO_N "(cached) $ECHO_C" >&6 2321else 2322 cat >conftest.make <<\_ACEOF 2323SHELL = /bin/sh 2324all: 2325 @echo '@@@%%%=$(MAKE)=@@@%%%' 2326_ACEOF 2327# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2328case `${MAKE-make} -f conftest.make 2>/dev/null` in 2329 *@@@%%%=?*=@@@%%%*) 2330 eval ac_cv_prog_make_${ac_make}_set=yes;; 2331 *) 2332 eval ac_cv_prog_make_${ac_make}_set=no;; 2333esac 2334rm -f conftest.make 2335fi 2336if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2337 { echo "$as_me:$LINENO: result: yes" >&5 2338echo "${ECHO_T}yes" >&6; } 2339 SET_MAKE= 2340else 2341 { echo "$as_me:$LINENO: result: no" >&5 2342echo "${ECHO_T}no" >&6; } 2343 SET_MAKE="MAKE=${MAKE-make}" 2344fi 2345 2346rm -rf .tst 2>/dev/null 2347mkdir .tst 2>/dev/null 2348if test -d .tst; then 2349 am__leading_dot=. 2350else 2351 am__leading_dot=_ 2352fi 2353rmdir .tst 2>/dev/null 2354 2355# test to see if srcdir already configured 2356if test "`cd $srcdir && pwd`" != "`pwd`" && 2357 test -f $srcdir/config.status; then 2358 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2359echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2360 { (exit 1); exit 1; }; } 2361fi 2362 2363# test whether we have cygpath 2364if test -z "$CYGPATH_W"; then 2365 if (cygpath --version) >/dev/null 2>/dev/null; then 2366 CYGPATH_W='cygpath -w' 2367 else 2368 CYGPATH_W=echo 2369 fi 2370fi 2371 2372 2373# Define the identity of the package. 2374 PACKAGE=$PACKAGE 2375 VERSION=$VERSION 2376 2377 2378cat >>confdefs.h <<_ACEOF 2379#define PACKAGE "$PACKAGE" 2380_ACEOF 2381 2382 2383cat >>confdefs.h <<_ACEOF 2384#define VERSION "$VERSION" 2385_ACEOF 2386 2387# Some tools Automake needs. 2388 2389ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2390 2391 2392AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2393 2394 2395AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2396 2397 2398AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2399 2400 2401MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2402 2403install_sh=${install_sh-"$am_aux_dir/install-sh"} 2404 2405# Installed binaries are usually stripped using `strip' when the user 2406# run `make install-strip'. However `strip' might not be the right 2407# tool to use in cross-compilation environments, therefore Automake 2408# will honor the `STRIP' environment variable to overrule this program. 2409if test "$cross_compiling" != no; then 2410 if test -n "$ac_tool_prefix"; then 2411 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2412set dummy ${ac_tool_prefix}strip; ac_word=$2 2413{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2415if test "${ac_cv_prog_STRIP+set}" = set; then 2416 echo $ECHO_N "(cached) $ECHO_C" >&6 2417else 2418 if test -n "$STRIP"; then 2419 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2420else 2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2422for as_dir in $PATH 2423do 2424 IFS=$as_save_IFS 2425 test -z "$as_dir" && as_dir=. 2426 for ac_exec_ext in '' $ac_executable_extensions; do 2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2428 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2430 break 2 2431 fi 2432done 2433done 2434IFS=$as_save_IFS 2435 2436fi 2437fi 2438STRIP=$ac_cv_prog_STRIP 2439if test -n "$STRIP"; then 2440 { echo "$as_me:$LINENO: result: $STRIP" >&5 2441echo "${ECHO_T}$STRIP" >&6; } 2442else 2443 { echo "$as_me:$LINENO: result: no" >&5 2444echo "${ECHO_T}no" >&6; } 2445fi 2446 2447 2448fi 2449if test -z "$ac_cv_prog_STRIP"; then 2450 ac_ct_STRIP=$STRIP 2451 # Extract the first word of "strip", so it can be a program name with args. 2452set dummy strip; ac_word=$2 2453{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2455if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2456 echo $ECHO_N "(cached) $ECHO_C" >&6 2457else 2458 if test -n "$ac_ct_STRIP"; then 2459 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2460else 2461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2462for as_dir in $PATH 2463do 2464 IFS=$as_save_IFS 2465 test -z "$as_dir" && as_dir=. 2466 for ac_exec_ext in '' $ac_executable_extensions; do 2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2468 ac_cv_prog_ac_ct_STRIP="strip" 2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2470 break 2 2471 fi 2472done 2473done 2474IFS=$as_save_IFS 2475 2476fi 2477fi 2478ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2479if test -n "$ac_ct_STRIP"; then 2480 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2481echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2482else 2483 { echo "$as_me:$LINENO: result: no" >&5 2484echo "${ECHO_T}no" >&6; } 2485fi 2486 2487 if test "x$ac_ct_STRIP" = x; then 2488 STRIP=":" 2489 else 2490 case $cross_compiling:$ac_tool_warned in 2491yes:) 2492{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2493whose name does not start with the host triplet. If you think this 2494configuration is useful to you, please write to autoconf@gnu.org." >&5 2495echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2496whose name does not start with the host triplet. If you think this 2497configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2498ac_tool_warned=yes ;; 2499esac 2500 STRIP=$ac_ct_STRIP 2501 fi 2502else 2503 STRIP="$ac_cv_prog_STRIP" 2504fi 2505 2506fi 2507INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2508 2509# We need awk for the "check" target. The system "awk" is bad on 2510# some platforms. 2511# Always define AMTAR for backward compatibility. 2512 2513AMTAR=${AMTAR-"${am_missing_run}tar"} 2514 2515am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2516 2517 2518 2519 2520 2521ac_config_headers="$ac_config_headers config.h" 2522 2523 2524 2525 2526 2527 2528 2529 2530ac_ext=c 2531ac_cpp='$CPP $CPPFLAGS' 2532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2534ac_compiler_gnu=$ac_cv_c_compiler_gnu 2535if test -n "$ac_tool_prefix"; then 2536 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2537set dummy ${ac_tool_prefix}gcc; ac_word=$2 2538{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2540if test "${ac_cv_prog_CC+set}" = set; then 2541 echo $ECHO_N "(cached) $ECHO_C" >&6 2542else 2543 if test -n "$CC"; then 2544 ac_cv_prog_CC="$CC" # Let the user override the test. 2545else 2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2547for as_dir in $PATH 2548do 2549 IFS=$as_save_IFS 2550 test -z "$as_dir" && as_dir=. 2551 for ac_exec_ext in '' $ac_executable_extensions; do 2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2553 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2555 break 2 2556 fi 2557done 2558done 2559IFS=$as_save_IFS 2560 2561fi 2562fi 2563CC=$ac_cv_prog_CC 2564if test -n "$CC"; then 2565 { echo "$as_me:$LINENO: result: $CC" >&5 2566echo "${ECHO_T}$CC" >&6; } 2567else 2568 { echo "$as_me:$LINENO: result: no" >&5 2569echo "${ECHO_T}no" >&6; } 2570fi 2571 2572 2573fi 2574if test -z "$ac_cv_prog_CC"; then 2575 ac_ct_CC=$CC 2576 # Extract the first word of "gcc", so it can be a program name with args. 2577set dummy gcc; ac_word=$2 2578{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2580if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2581 echo $ECHO_N "(cached) $ECHO_C" >&6 2582else 2583 if test -n "$ac_ct_CC"; then 2584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2585else 2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2587for as_dir in $PATH 2588do 2589 IFS=$as_save_IFS 2590 test -z "$as_dir" && as_dir=. 2591 for ac_exec_ext in '' $ac_executable_extensions; do 2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2593 ac_cv_prog_ac_ct_CC="gcc" 2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2595 break 2 2596 fi 2597done 2598done 2599IFS=$as_save_IFS 2600 2601fi 2602fi 2603ac_ct_CC=$ac_cv_prog_ac_ct_CC 2604if test -n "$ac_ct_CC"; then 2605 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2606echo "${ECHO_T}$ac_ct_CC" >&6; } 2607else 2608 { echo "$as_me:$LINENO: result: no" >&5 2609echo "${ECHO_T}no" >&6; } 2610fi 2611 2612 if test "x$ac_ct_CC" = x; then 2613 CC="" 2614 else 2615 case $cross_compiling:$ac_tool_warned in 2616yes:) 2617{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2618whose name does not start with the host triplet. If you think this 2619configuration is useful to you, please write to autoconf@gnu.org." >&5 2620echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2621whose name does not start with the host triplet. If you think this 2622configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2623ac_tool_warned=yes ;; 2624esac 2625 CC=$ac_ct_CC 2626 fi 2627else 2628 CC="$ac_cv_prog_CC" 2629fi 2630 2631if test -z "$CC"; then 2632 if test -n "$ac_tool_prefix"; then 2633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2634set dummy ${ac_tool_prefix}cc; ac_word=$2 2635{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2637if test "${ac_cv_prog_CC+set}" = set; then 2638 echo $ECHO_N "(cached) $ECHO_C" >&6 2639else 2640 if test -n "$CC"; then 2641 ac_cv_prog_CC="$CC" # Let the user override the test. 2642else 2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2644for as_dir in $PATH 2645do 2646 IFS=$as_save_IFS 2647 test -z "$as_dir" && as_dir=. 2648 for ac_exec_ext in '' $ac_executable_extensions; do 2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2650 ac_cv_prog_CC="${ac_tool_prefix}cc" 2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2652 break 2 2653 fi 2654done 2655done 2656IFS=$as_save_IFS 2657 2658fi 2659fi 2660CC=$ac_cv_prog_CC 2661if test -n "$CC"; then 2662 { echo "$as_me:$LINENO: result: $CC" >&5 2663echo "${ECHO_T}$CC" >&6; } 2664else 2665 { echo "$as_me:$LINENO: result: no" >&5 2666echo "${ECHO_T}no" >&6; } 2667fi 2668 2669 2670 fi 2671fi 2672if test -z "$CC"; then 2673 # Extract the first word of "cc", so it can be a program name with args. 2674set dummy cc; ac_word=$2 2675{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2677if test "${ac_cv_prog_CC+set}" = set; then 2678 echo $ECHO_N "(cached) $ECHO_C" >&6 2679else 2680 if test -n "$CC"; then 2681 ac_cv_prog_CC="$CC" # Let the user override the test. 2682else 2683 ac_prog_rejected=no 2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2685for as_dir in $PATH 2686do 2687 IFS=$as_save_IFS 2688 test -z "$as_dir" && as_dir=. 2689 for ac_exec_ext in '' $ac_executable_extensions; do 2690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2692 ac_prog_rejected=yes 2693 continue 2694 fi 2695 ac_cv_prog_CC="cc" 2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2697 break 2 2698 fi 2699done 2700done 2701IFS=$as_save_IFS 2702 2703if test $ac_prog_rejected = yes; then 2704 # We found a bogon in the path, so make sure we never use it. 2705 set dummy $ac_cv_prog_CC 2706 shift 2707 if test $# != 0; then 2708 # We chose a different compiler from the bogus one. 2709 # However, it has the same basename, so the bogon will be chosen 2710 # first if we set CC to just the basename; use the full file name. 2711 shift 2712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2713 fi 2714fi 2715fi 2716fi 2717CC=$ac_cv_prog_CC 2718if test -n "$CC"; then 2719 { echo "$as_me:$LINENO: result: $CC" >&5 2720echo "${ECHO_T}$CC" >&6; } 2721else 2722 { echo "$as_me:$LINENO: result: no" >&5 2723echo "${ECHO_T}no" >&6; } 2724fi 2725 2726 2727fi 2728if test -z "$CC"; then 2729 if test -n "$ac_tool_prefix"; then 2730 for ac_prog in cl.exe 2731 do 2732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2733set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2734{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2736if test "${ac_cv_prog_CC+set}" = set; then 2737 echo $ECHO_N "(cached) $ECHO_C" >&6 2738else 2739 if test -n "$CC"; then 2740 ac_cv_prog_CC="$CC" # Let the user override the test. 2741else 2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2743for as_dir in $PATH 2744do 2745 IFS=$as_save_IFS 2746 test -z "$as_dir" && as_dir=. 2747 for ac_exec_ext in '' $ac_executable_extensions; do 2748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2751 break 2 2752 fi 2753done 2754done 2755IFS=$as_save_IFS 2756 2757fi 2758fi 2759CC=$ac_cv_prog_CC 2760if test -n "$CC"; then 2761 { echo "$as_me:$LINENO: result: $CC" >&5 2762echo "${ECHO_T}$CC" >&6; } 2763else 2764 { echo "$as_me:$LINENO: result: no" >&5 2765echo "${ECHO_T}no" >&6; } 2766fi 2767 2768 2769 test -n "$CC" && break 2770 done 2771fi 2772if test -z "$CC"; then 2773 ac_ct_CC=$CC 2774 for ac_prog in cl.exe 2775do 2776 # Extract the first word of "$ac_prog", so it can be a program name with args. 2777set dummy $ac_prog; ac_word=$2 2778{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2780if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2781 echo $ECHO_N "(cached) $ECHO_C" >&6 2782else 2783 if test -n "$ac_ct_CC"; then 2784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2785else 2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2787for as_dir in $PATH 2788do 2789 IFS=$as_save_IFS 2790 test -z "$as_dir" && as_dir=. 2791 for ac_exec_ext in '' $ac_executable_extensions; do 2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2793 ac_cv_prog_ac_ct_CC="$ac_prog" 2794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2795 break 2 2796 fi 2797done 2798done 2799IFS=$as_save_IFS 2800 2801fi 2802fi 2803ac_ct_CC=$ac_cv_prog_ac_ct_CC 2804if test -n "$ac_ct_CC"; then 2805 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2806echo "${ECHO_T}$ac_ct_CC" >&6; } 2807else 2808 { echo "$as_me:$LINENO: result: no" >&5 2809echo "${ECHO_T}no" >&6; } 2810fi 2811 2812 2813 test -n "$ac_ct_CC" && break 2814done 2815 2816 if test "x$ac_ct_CC" = x; then 2817 CC="" 2818 else 2819 case $cross_compiling:$ac_tool_warned in 2820yes:) 2821{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2822whose name does not start with the host triplet. If you think this 2823configuration is useful to you, please write to autoconf@gnu.org." >&5 2824echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2825whose name does not start with the host triplet. If you think this 2826configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2827ac_tool_warned=yes ;; 2828esac 2829 CC=$ac_ct_CC 2830 fi 2831fi 2832 2833fi 2834 2835 2836test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2837See \`config.log' for more details." >&5 2838echo "$as_me: error: no acceptable C compiler found in \$PATH 2839See \`config.log' for more details." >&2;} 2840 { (exit 1); exit 1; }; } 2841 2842# Provide some information about the compiler. 2843echo "$as_me:$LINENO: checking for C compiler version" >&5 2844ac_compiler=`set X $ac_compile; echo $2` 2845{ (ac_try="$ac_compiler --version >&5" 2846case "(($ac_try" in 2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2848 *) ac_try_echo=$ac_try;; 2849esac 2850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2851 (eval "$ac_compiler --version >&5") 2>&5 2852 ac_status=$? 2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2854 (exit $ac_status); } 2855{ (ac_try="$ac_compiler -v >&5" 2856case "(($ac_try" in 2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2858 *) ac_try_echo=$ac_try;; 2859esac 2860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2861 (eval "$ac_compiler -v >&5") 2>&5 2862 ac_status=$? 2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2864 (exit $ac_status); } 2865{ (ac_try="$ac_compiler -V >&5" 2866case "(($ac_try" in 2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2868 *) ac_try_echo=$ac_try;; 2869esac 2870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2871 (eval "$ac_compiler -V >&5") 2>&5 2872 ac_status=$? 2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2874 (exit $ac_status); } 2875 2876cat >conftest.$ac_ext <<_ACEOF 2877/* confdefs.h. */ 2878_ACEOF 2879cat confdefs.h >>conftest.$ac_ext 2880cat >>conftest.$ac_ext <<_ACEOF 2881/* end confdefs.h. */ 2882 2883int 2884main () 2885{ 2886 2887 ; 2888 return 0; 2889} 2890_ACEOF 2891ac_clean_files_save=$ac_clean_files 2892ac_clean_files="$ac_clean_files a.out a.exe b.out" 2893# Try to create an executable without -o first, disregard a.out. 2894# It will help us diagnose broken compilers, and finding out an intuition 2895# of exeext. 2896{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2897echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2898ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2899# 2900# List of possible output files, starting from the most likely. 2901# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2902# only as a last resort. b.out is created by i960 compilers. 2903ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2904# 2905# The IRIX 6 linker writes into existing files which may not be 2906# executable, retaining their permissions. Remove them first so a 2907# subsequent execution test works. 2908ac_rmfiles= 2909for ac_file in $ac_files 2910do 2911 case $ac_file in 2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2913 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2914 esac 2915done 2916rm -f $ac_rmfiles 2917 2918if { (ac_try="$ac_link_default" 2919case "(($ac_try" in 2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2921 *) ac_try_echo=$ac_try;; 2922esac 2923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2924 (eval "$ac_link_default") 2>&5 2925 ac_status=$? 2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2927 (exit $ac_status); }; then 2928 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2929# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2930# in a Makefile. We should not override ac_cv_exeext if it was cached, 2931# so that the user can short-circuit this test for compilers unknown to 2932# Autoconf. 2933for ac_file in $ac_files '' 2934do 2935 test -f "$ac_file" || continue 2936 case $ac_file in 2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2938 ;; 2939 [ab].out ) 2940 # We found the default executable, but exeext='' is most 2941 # certainly right. 2942 break;; 2943 *.* ) 2944 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2945 then :; else 2946 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2947 fi 2948 # We set ac_cv_exeext here because the later test for it is not 2949 # safe: cross compilers may not add the suffix if given an `-o' 2950 # argument, so we may need to know it at that point already. 2951 # Even if this section looks crufty: it has the advantage of 2952 # actually working. 2953 break;; 2954 * ) 2955 break;; 2956 esac 2957done 2958test "$ac_cv_exeext" = no && ac_cv_exeext= 2959 2960else 2961 ac_file='' 2962fi 2963 2964{ echo "$as_me:$LINENO: result: $ac_file" >&5 2965echo "${ECHO_T}$ac_file" >&6; } 2966if test -z "$ac_file"; then 2967 echo "$as_me: failed program was:" >&5 2968sed 's/^/| /' conftest.$ac_ext >&5 2969 2970{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2971See \`config.log' for more details." >&5 2972echo "$as_me: error: C compiler cannot create executables 2973See \`config.log' for more details." >&2;} 2974 { (exit 77); exit 77; }; } 2975fi 2976 2977ac_exeext=$ac_cv_exeext 2978 2979# Check that the compiler produces executables we can run. If not, either 2980# the compiler is broken, or we cross compile. 2981{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2982echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2983# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2984# If not cross compiling, check that we can run a simple program. 2985if test "$cross_compiling" != yes; then 2986 if { ac_try='./$ac_file' 2987 { (case "(($ac_try" in 2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2989 *) ac_try_echo=$ac_try;; 2990esac 2991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2992 (eval "$ac_try") 2>&5 2993 ac_status=$? 2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2995 (exit $ac_status); }; }; then 2996 cross_compiling=no 2997 else 2998 if test "$cross_compiling" = maybe; then 2999 cross_compiling=yes 3000 else 3001 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3002If you meant to cross compile, use \`--host'. 3003See \`config.log' for more details." >&5 3004echo "$as_me: error: cannot run C compiled programs. 3005If you meant to cross compile, use \`--host'. 3006See \`config.log' for more details." >&2;} 3007 { (exit 1); exit 1; }; } 3008 fi 3009 fi 3010fi 3011{ echo "$as_me:$LINENO: result: yes" >&5 3012echo "${ECHO_T}yes" >&6; } 3013 3014rm -f a.out a.exe conftest$ac_cv_exeext b.out 3015ac_clean_files=$ac_clean_files_save 3016# Check that the compiler produces executables we can run. If not, either 3017# the compiler is broken, or we cross compile. 3018{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3019echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3020{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3021echo "${ECHO_T}$cross_compiling" >&6; } 3022 3023{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3024echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3025if { (ac_try="$ac_link" 3026case "(($ac_try" in 3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3028 *) ac_try_echo=$ac_try;; 3029esac 3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3031 (eval "$ac_link") 2>&5 3032 ac_status=$? 3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3034 (exit $ac_status); }; then 3035 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3036# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3037# work properly (i.e., refer to `conftest.exe'), while it won't with 3038# `rm'. 3039for ac_file in conftest.exe conftest conftest.*; do 3040 test -f "$ac_file" || continue 3041 case $ac_file in 3042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3043 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3044 break;; 3045 * ) break;; 3046 esac 3047done 3048else 3049 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3050See \`config.log' for more details." >&5 3051echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3052See \`config.log' for more details." >&2;} 3053 { (exit 1); exit 1; }; } 3054fi 3055 3056rm -f conftest$ac_cv_exeext 3057{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3058echo "${ECHO_T}$ac_cv_exeext" >&6; } 3059 3060rm -f conftest.$ac_ext 3061EXEEXT=$ac_cv_exeext 3062ac_exeext=$EXEEXT 3063{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3064echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3065if test "${ac_cv_objext+set}" = set; then 3066 echo $ECHO_N "(cached) $ECHO_C" >&6 3067else 3068 cat >conftest.$ac_ext <<_ACEOF 3069/* confdefs.h. */ 3070_ACEOF 3071cat confdefs.h >>conftest.$ac_ext 3072cat >>conftest.$ac_ext <<_ACEOF 3073/* end confdefs.h. */ 3074 3075int 3076main () 3077{ 3078 3079 ; 3080 return 0; 3081} 3082_ACEOF 3083rm -f conftest.o conftest.obj 3084if { (ac_try="$ac_compile" 3085case "(($ac_try" in 3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3087 *) ac_try_echo=$ac_try;; 3088esac 3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3090 (eval "$ac_compile") 2>&5 3091 ac_status=$? 3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3093 (exit $ac_status); }; then 3094 for ac_file in conftest.o conftest.obj conftest.*; do 3095 test -f "$ac_file" || continue; 3096 case $ac_file in 3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3098 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3099 break;; 3100 esac 3101done 3102else 3103 echo "$as_me: failed program was:" >&5 3104sed 's/^/| /' conftest.$ac_ext >&5 3105 3106{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3107See \`config.log' for more details." >&5 3108echo "$as_me: error: cannot compute suffix of object files: cannot compile 3109See \`config.log' for more details." >&2;} 3110 { (exit 1); exit 1; }; } 3111fi 3112 3113rm -f conftest.$ac_cv_objext conftest.$ac_ext 3114fi 3115{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3116echo "${ECHO_T}$ac_cv_objext" >&6; } 3117OBJEXT=$ac_cv_objext 3118ac_objext=$OBJEXT 3119{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3120echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3121if test "${ac_cv_c_compiler_gnu+set}" = set; then 3122 echo $ECHO_N "(cached) $ECHO_C" >&6 3123else 3124 cat >conftest.$ac_ext <<_ACEOF 3125/* confdefs.h. */ 3126_ACEOF 3127cat confdefs.h >>conftest.$ac_ext 3128cat >>conftest.$ac_ext <<_ACEOF 3129/* end confdefs.h. */ 3130 3131int 3132main () 3133{ 3134#ifndef __GNUC__ 3135 choke me 3136#endif 3137 3138 ; 3139 return 0; 3140} 3141_ACEOF 3142rm -f conftest.$ac_objext 3143if { (ac_try="$ac_compile" 3144case "(($ac_try" in 3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3146 *) ac_try_echo=$ac_try;; 3147esac 3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3149 (eval "$ac_compile") 2>conftest.er1 3150 ac_status=$? 3151 grep -v '^ *+' conftest.er1 >conftest.err 3152 rm -f conftest.er1 3153 cat conftest.err >&5 3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3155 (exit $ac_status); } && { 3156 test -z "$ac_c_werror_flag" || 3157 test ! -s conftest.err 3158 } && test -s conftest.$ac_objext; then 3159 ac_compiler_gnu=yes 3160else 3161 echo "$as_me: failed program was:" >&5 3162sed 's/^/| /' conftest.$ac_ext >&5 3163 3164 ac_compiler_gnu=no 3165fi 3166 3167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3168ac_cv_c_compiler_gnu=$ac_compiler_gnu 3169 3170fi 3171{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3172echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3173GCC=`test $ac_compiler_gnu = yes && echo yes` 3174ac_test_CFLAGS=${CFLAGS+set} 3175ac_save_CFLAGS=$CFLAGS 3176{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3177echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3178if test "${ac_cv_prog_cc_g+set}" = set; then 3179 echo $ECHO_N "(cached) $ECHO_C" >&6 3180else 3181 ac_save_c_werror_flag=$ac_c_werror_flag 3182 ac_c_werror_flag=yes 3183 ac_cv_prog_cc_g=no 3184 CFLAGS="-g" 3185 cat >conftest.$ac_ext <<_ACEOF 3186/* confdefs.h. */ 3187_ACEOF 3188cat confdefs.h >>conftest.$ac_ext 3189cat >>conftest.$ac_ext <<_ACEOF 3190/* end confdefs.h. */ 3191 3192int 3193main () 3194{ 3195 3196 ; 3197 return 0; 3198} 3199_ACEOF 3200rm -f conftest.$ac_objext 3201if { (ac_try="$ac_compile" 3202case "(($ac_try" in 3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3204 *) ac_try_echo=$ac_try;; 3205esac 3206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3207 (eval "$ac_compile") 2>conftest.er1 3208 ac_status=$? 3209 grep -v '^ *+' conftest.er1 >conftest.err 3210 rm -f conftest.er1 3211 cat conftest.err >&5 3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3213 (exit $ac_status); } && { 3214 test -z "$ac_c_werror_flag" || 3215 test ! -s conftest.err 3216 } && test -s conftest.$ac_objext; then 3217 ac_cv_prog_cc_g=yes 3218else 3219 echo "$as_me: failed program was:" >&5 3220sed 's/^/| /' conftest.$ac_ext >&5 3221 3222 CFLAGS="" 3223 cat >conftest.$ac_ext <<_ACEOF 3224/* confdefs.h. */ 3225_ACEOF 3226cat confdefs.h >>conftest.$ac_ext 3227cat >>conftest.$ac_ext <<_ACEOF 3228/* end confdefs.h. */ 3229 3230int 3231main () 3232{ 3233 3234 ; 3235 return 0; 3236} 3237_ACEOF 3238rm -f conftest.$ac_objext 3239if { (ac_try="$ac_compile" 3240case "(($ac_try" in 3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3242 *) ac_try_echo=$ac_try;; 3243esac 3244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3245 (eval "$ac_compile") 2>conftest.er1 3246 ac_status=$? 3247 grep -v '^ *+' conftest.er1 >conftest.err 3248 rm -f conftest.er1 3249 cat conftest.err >&5 3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3251 (exit $ac_status); } && { 3252 test -z "$ac_c_werror_flag" || 3253 test ! -s conftest.err 3254 } && test -s conftest.$ac_objext; then 3255 : 3256else 3257 echo "$as_me: failed program was:" >&5 3258sed 's/^/| /' conftest.$ac_ext >&5 3259 3260 ac_c_werror_flag=$ac_save_c_werror_flag 3261 CFLAGS="-g" 3262 cat >conftest.$ac_ext <<_ACEOF 3263/* confdefs.h. */ 3264_ACEOF 3265cat confdefs.h >>conftest.$ac_ext 3266cat >>conftest.$ac_ext <<_ACEOF 3267/* end confdefs.h. */ 3268 3269int 3270main () 3271{ 3272 3273 ; 3274 return 0; 3275} 3276_ACEOF 3277rm -f conftest.$ac_objext 3278if { (ac_try="$ac_compile" 3279case "(($ac_try" in 3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3281 *) ac_try_echo=$ac_try;; 3282esac 3283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3284 (eval "$ac_compile") 2>conftest.er1 3285 ac_status=$? 3286 grep -v '^ *+' conftest.er1 >conftest.err 3287 rm -f conftest.er1 3288 cat conftest.err >&5 3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3290 (exit $ac_status); } && { 3291 test -z "$ac_c_werror_flag" || 3292 test ! -s conftest.err 3293 } && test -s conftest.$ac_objext; then 3294 ac_cv_prog_cc_g=yes 3295else 3296 echo "$as_me: failed program was:" >&5 3297sed 's/^/| /' conftest.$ac_ext >&5 3298 3299 3300fi 3301 3302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3303fi 3304 3305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3306fi 3307 3308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3309 ac_c_werror_flag=$ac_save_c_werror_flag 3310fi 3311{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3312echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3313if test "$ac_test_CFLAGS" = set; then 3314 CFLAGS=$ac_save_CFLAGS 3315elif test $ac_cv_prog_cc_g = yes; then 3316 if test "$GCC" = yes; then 3317 CFLAGS="-g -O2" 3318 else 3319 CFLAGS="-g" 3320 fi 3321else 3322 if test "$GCC" = yes; then 3323 CFLAGS="-O2" 3324 else 3325 CFLAGS= 3326 fi 3327fi 3328{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3329echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3330if test "${ac_cv_prog_cc_c89+set}" = set; then 3331 echo $ECHO_N "(cached) $ECHO_C" >&6 3332else 3333 ac_cv_prog_cc_c89=no 3334ac_save_CC=$CC 3335cat >conftest.$ac_ext <<_ACEOF 3336/* confdefs.h. */ 3337_ACEOF 3338cat confdefs.h >>conftest.$ac_ext 3339cat >>conftest.$ac_ext <<_ACEOF 3340/* end confdefs.h. */ 3341#include <stdarg.h> 3342#include <stdio.h> 3343#include <sys/types.h> 3344#include <sys/stat.h> 3345/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3346struct buf { int x; }; 3347FILE * (*rcsopen) (struct buf *, struct stat *, int); 3348static char *e (p, i) 3349 char **p; 3350 int i; 3351{ 3352 return p[i]; 3353} 3354static char *f (char * (*g) (char **, int), char **p, ...) 3355{ 3356 char *s; 3357 va_list v; 3358 va_start (v,p); 3359 s = g (p, va_arg (v,int)); 3360 va_end (v); 3361 return s; 3362} 3363 3364/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3365 function prototypes and stuff, but not '\xHH' hex character constants. 3366 These don't provoke an error unfortunately, instead are silently treated 3367 as 'x'. The following induces an error, until -std is added to get 3368 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3369 array size at least. It's necessary to write '\x00'==0 to get something 3370 that's true only with -std. */ 3371int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3372 3373/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3374 inside strings and character constants. */ 3375#define FOO(x) 'x' 3376int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3377 3378int test (int i, double x); 3379struct s1 {int (*f) (int a);}; 3380struct s2 {int (*f) (double a);}; 3381int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3382int argc; 3383char **argv; 3384int 3385main () 3386{ 3387return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3388 ; 3389 return 0; 3390} 3391_ACEOF 3392for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3393 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3394do 3395 CC="$ac_save_CC $ac_arg" 3396 rm -f conftest.$ac_objext 3397if { (ac_try="$ac_compile" 3398case "(($ac_try" in 3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3400 *) ac_try_echo=$ac_try;; 3401esac 3402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3403 (eval "$ac_compile") 2>conftest.er1 3404 ac_status=$? 3405 grep -v '^ *+' conftest.er1 >conftest.err 3406 rm -f conftest.er1 3407 cat conftest.err >&5 3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3409 (exit $ac_status); } && { 3410 test -z "$ac_c_werror_flag" || 3411 test ! -s conftest.err 3412 } && test -s conftest.$ac_objext; then 3413 ac_cv_prog_cc_c89=$ac_arg 3414else 3415 echo "$as_me: failed program was:" >&5 3416sed 's/^/| /' conftest.$ac_ext >&5 3417 3418 3419fi 3420 3421rm -f core conftest.err conftest.$ac_objext 3422 test "x$ac_cv_prog_cc_c89" != "xno" && break 3423done 3424rm -f conftest.$ac_ext 3425CC=$ac_save_CC 3426 3427fi 3428# AC_CACHE_VAL 3429case "x$ac_cv_prog_cc_c89" in 3430 x) 3431 { echo "$as_me:$LINENO: result: none needed" >&5 3432echo "${ECHO_T}none needed" >&6; } ;; 3433 xno) 3434 { echo "$as_me:$LINENO: result: unsupported" >&5 3435echo "${ECHO_T}unsupported" >&6; } ;; 3436 *) 3437 CC="$CC $ac_cv_prog_cc_c89" 3438 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3439echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3440esac 3441 3442 3443ac_ext=c 3444ac_cpp='$CPP $CPPFLAGS' 3445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3447ac_compiler_gnu=$ac_cv_c_compiler_gnu 3448DEPDIR="${am__leading_dot}deps" 3449 3450ac_config_commands="$ac_config_commands depfiles" 3451 3452 3453am_make=${MAKE-make} 3454cat > confinc << 'END' 3455am__doit: 3456 @echo done 3457.PHONY: am__doit 3458END 3459# If we don't find an include directive, just comment out the code. 3460{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3461echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3462am__include="#" 3463am__quote= 3464_am_result=none 3465# First try GNU make style include. 3466echo "include confinc" > confmf 3467# We grep out `Entering directory' and `Leaving directory' 3468# messages which can occur if `w' ends up in MAKEFLAGS. 3469# In particular we don't look at `^make:' because GNU make might 3470# be invoked under some other name (usually "gmake"), in which 3471# case it prints its new name instead of `make'. 3472if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3473 am__include=include 3474 am__quote= 3475 _am_result=GNU 3476fi 3477# Now try BSD make style include. 3478if test "$am__include" = "#"; then 3479 echo '.include "confinc"' > confmf 3480 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3481 am__include=.include 3482 am__quote="\"" 3483 _am_result=BSD 3484 fi 3485fi 3486 3487 3488{ echo "$as_me:$LINENO: result: $_am_result" >&5 3489echo "${ECHO_T}$_am_result" >&6; } 3490rm -f confinc confmf 3491 3492# Check whether --enable-dependency-tracking was given. 3493if test "${enable_dependency_tracking+set}" = set; then 3494 enableval=$enable_dependency_tracking; 3495fi 3496 3497if test "x$enable_dependency_tracking" != xno; then 3498 am_depcomp="$ac_aux_dir/depcomp" 3499 AMDEPBACKSLASH='\' 3500fi 3501 3502 3503if test "x$enable_dependency_tracking" != xno; then 3504 AMDEP_TRUE= 3505 AMDEP_FALSE='#' 3506else 3507 AMDEP_TRUE='#' 3508 AMDEP_FALSE= 3509fi 3510 3511 3512 3513 3514depcc="$CC" am_compiler_list= 3515 3516{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3517echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3518if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3519 echo $ECHO_N "(cached) $ECHO_C" >&6 3520else 3521 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3522 # We make a subdir and do the tests there. Otherwise we can end up 3523 # making bogus files that we don't know about and never remove. For 3524 # instance it was reported that on HP-UX the gcc test will end up 3525 # making a dummy file named `D' -- because `-MD' means `put the output 3526 # in D'. 3527 mkdir conftest.dir 3528 # Copy depcomp to subdir because otherwise we won't find it if we're 3529 # using a relative directory. 3530 cp "$am_depcomp" conftest.dir 3531 cd conftest.dir 3532 # We will build objects and dependencies in a subdirectory because 3533 # it helps to detect inapplicable dependency modes. For instance 3534 # both Tru64's cc and ICC support -MD to output dependencies as a 3535 # side effect of compilation, but ICC will put the dependencies in 3536 # the current directory while Tru64 will put them in the object 3537 # directory. 3538 mkdir sub 3539 3540 am_cv_CC_dependencies_compiler_type=none 3541 if test "$am_compiler_list" = ""; then 3542 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3543 fi 3544 for depmode in $am_compiler_list; do 3545 # Setup a source with many dependencies, because some compilers 3546 # like to wrap large dependency lists on column 80 (with \), and 3547 # we should not choose a depcomp mode which is confused by this. 3548 # 3549 # We need to recreate these files for each test, as the compiler may 3550 # overwrite some of them when testing with obscure command lines. 3551 # This happens at least with the AIX C compiler. 3552 : > sub/conftest.c 3553 for i in 1 2 3 4 5 6; do 3554 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3555 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3556 # Solaris 8's {/usr,}/bin/sh. 3557 touch sub/conftst$i.h 3558 done 3559 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3560 3561 case $depmode in 3562 nosideeffect) 3563 # after this tag, mechanisms are not by side-effect, so they'll 3564 # only be used when explicitly requested 3565 if test "x$enable_dependency_tracking" = xyes; then 3566 continue 3567 else 3568 break 3569 fi 3570 ;; 3571 none) break ;; 3572 esac 3573 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3574 # mode. It turns out that the SunPro C++ compiler does not properly 3575 # handle `-M -o', and we need to detect this. 3576 if depmode=$depmode \ 3577 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3578 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3579 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3580 >/dev/null 2>conftest.err && 3581 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3582 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3583 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3584 # icc doesn't choke on unknown options, it will just issue warnings 3585 # or remarks (even with -Werror). So we grep stderr for any message 3586 # that says an option was ignored or not supported. 3587 # When given -MP, icc 7.0 and 7.1 complain thusly: 3588 # icc: Command line warning: ignoring option '-M'; no argument required 3589 # The diagnosis changed in icc 8.0: 3590 # icc: Command line remark: option '-MP' not supported 3591 if (grep 'ignoring option' conftest.err || 3592 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3593 am_cv_CC_dependencies_compiler_type=$depmode 3594 break 3595 fi 3596 fi 3597 done 3598 3599 cd .. 3600 rm -rf conftest.dir 3601else 3602 am_cv_CC_dependencies_compiler_type=none 3603fi 3604 3605fi 3606{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3607echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3608CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3609 3610 3611 3612if 3613 test "x$enable_dependency_tracking" != xno \ 3614 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3615 am__fastdepCC_TRUE= 3616 am__fastdepCC_FALSE='#' 3617else 3618 am__fastdepCC_TRUE='#' 3619 am__fastdepCC_FALSE= 3620fi 3621 3622 3623ac_ext=cpp 3624ac_cpp='$CXXCPP $CPPFLAGS' 3625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3628if test -z "$CXX"; then 3629 if test -n "$CCC"; then 3630 CXX=$CCC 3631 else 3632 if test -n "$ac_tool_prefix"; then 3633 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3634 do 3635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3636set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3637{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3639if test "${ac_cv_prog_CXX+set}" = set; then 3640 echo $ECHO_N "(cached) $ECHO_C" >&6 3641else 3642 if test -n "$CXX"; then 3643 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3644else 3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3646for as_dir in $PATH 3647do 3648 IFS=$as_save_IFS 3649 test -z "$as_dir" && as_dir=. 3650 for ac_exec_ext in '' $ac_executable_extensions; do 3651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3652 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3654 break 2 3655 fi 3656done 3657done 3658IFS=$as_save_IFS 3659 3660fi 3661fi 3662CXX=$ac_cv_prog_CXX 3663if test -n "$CXX"; then 3664 { echo "$as_me:$LINENO: result: $CXX" >&5 3665echo "${ECHO_T}$CXX" >&6; } 3666else 3667 { echo "$as_me:$LINENO: result: no" >&5 3668echo "${ECHO_T}no" >&6; } 3669fi 3670 3671 3672 test -n "$CXX" && break 3673 done 3674fi 3675if test -z "$CXX"; then 3676 ac_ct_CXX=$CXX 3677 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3678do 3679 # Extract the first word of "$ac_prog", so it can be a program name with args. 3680set dummy $ac_prog; ac_word=$2 3681{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3683if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3684 echo $ECHO_N "(cached) $ECHO_C" >&6 3685else 3686 if test -n "$ac_ct_CXX"; then 3687 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3688else 3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3690for as_dir in $PATH 3691do 3692 IFS=$as_save_IFS 3693 test -z "$as_dir" && as_dir=. 3694 for ac_exec_ext in '' $ac_executable_extensions; do 3695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3696 ac_cv_prog_ac_ct_CXX="$ac_prog" 3697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3698 break 2 3699 fi 3700done 3701done 3702IFS=$as_save_IFS 3703 3704fi 3705fi 3706ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3707if test -n "$ac_ct_CXX"; then 3708 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3709echo "${ECHO_T}$ac_ct_CXX" >&6; } 3710else 3711 { echo "$as_me:$LINENO: result: no" >&5 3712echo "${ECHO_T}no" >&6; } 3713fi 3714 3715 3716 test -n "$ac_ct_CXX" && break 3717done 3718 3719 if test "x$ac_ct_CXX" = x; then 3720 CXX="g++" 3721 else 3722 case $cross_compiling:$ac_tool_warned in 3723yes:) 3724{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3725whose name does not start with the host triplet. If you think this 3726configuration is useful to you, please write to autoconf@gnu.org." >&5 3727echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3728whose name does not start with the host triplet. If you think this 3729configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3730ac_tool_warned=yes ;; 3731esac 3732 CXX=$ac_ct_CXX 3733 fi 3734fi 3735 3736 fi 3737fi 3738# Provide some information about the compiler. 3739echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3740ac_compiler=`set X $ac_compile; echo $2` 3741{ (ac_try="$ac_compiler --version >&5" 3742case "(($ac_try" in 3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3744 *) ac_try_echo=$ac_try;; 3745esac 3746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3747 (eval "$ac_compiler --version >&5") 2>&5 3748 ac_status=$? 3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3750 (exit $ac_status); } 3751{ (ac_try="$ac_compiler -v >&5" 3752case "(($ac_try" in 3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3754 *) ac_try_echo=$ac_try;; 3755esac 3756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3757 (eval "$ac_compiler -v >&5") 2>&5 3758 ac_status=$? 3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3760 (exit $ac_status); } 3761{ (ac_try="$ac_compiler -V >&5" 3762case "(($ac_try" in 3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3764 *) ac_try_echo=$ac_try;; 3765esac 3766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3767 (eval "$ac_compiler -V >&5") 2>&5 3768 ac_status=$? 3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3770 (exit $ac_status); } 3771 3772{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3773echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 3774if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3775 echo $ECHO_N "(cached) $ECHO_C" >&6 3776else 3777 cat >conftest.$ac_ext <<_ACEOF 3778/* confdefs.h. */ 3779_ACEOF 3780cat confdefs.h >>conftest.$ac_ext 3781cat >>conftest.$ac_ext <<_ACEOF 3782/* end confdefs.h. */ 3783 3784int 3785main () 3786{ 3787#ifndef __GNUC__ 3788 choke me 3789#endif 3790 3791 ; 3792 return 0; 3793} 3794_ACEOF 3795rm -f conftest.$ac_objext 3796if { (ac_try="$ac_compile" 3797case "(($ac_try" in 3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3799 *) ac_try_echo=$ac_try;; 3800esac 3801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3802 (eval "$ac_compile") 2>conftest.er1 3803 ac_status=$? 3804 grep -v '^ *+' conftest.er1 >conftest.err 3805 rm -f conftest.er1 3806 cat conftest.err >&5 3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3808 (exit $ac_status); } && { 3809 test -z "$ac_cxx_werror_flag" || 3810 test ! -s conftest.err 3811 } && test -s conftest.$ac_objext; then 3812 ac_compiler_gnu=yes 3813else 3814 echo "$as_me: failed program was:" >&5 3815sed 's/^/| /' conftest.$ac_ext >&5 3816 3817 ac_compiler_gnu=no 3818fi 3819 3820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3821ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3822 3823fi 3824{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3825echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3826GXX=`test $ac_compiler_gnu = yes && echo yes` 3827ac_test_CXXFLAGS=${CXXFLAGS+set} 3828ac_save_CXXFLAGS=$CXXFLAGS 3829{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3830echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3831if test "${ac_cv_prog_cxx_g+set}" = set; then 3832 echo $ECHO_N "(cached) $ECHO_C" >&6 3833else 3834 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3835 ac_cxx_werror_flag=yes 3836 ac_cv_prog_cxx_g=no 3837 CXXFLAGS="-g" 3838 cat >conftest.$ac_ext <<_ACEOF 3839/* confdefs.h. */ 3840_ACEOF 3841cat confdefs.h >>conftest.$ac_ext 3842cat >>conftest.$ac_ext <<_ACEOF 3843/* end confdefs.h. */ 3844 3845int 3846main () 3847{ 3848 3849 ; 3850 return 0; 3851} 3852_ACEOF 3853rm -f conftest.$ac_objext 3854if { (ac_try="$ac_compile" 3855case "(($ac_try" in 3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3857 *) ac_try_echo=$ac_try;; 3858esac 3859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3860 (eval "$ac_compile") 2>conftest.er1 3861 ac_status=$? 3862 grep -v '^ *+' conftest.er1 >conftest.err 3863 rm -f conftest.er1 3864 cat conftest.err >&5 3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3866 (exit $ac_status); } && { 3867 test -z "$ac_cxx_werror_flag" || 3868 test ! -s conftest.err 3869 } && test -s conftest.$ac_objext; then 3870 ac_cv_prog_cxx_g=yes 3871else 3872 echo "$as_me: failed program was:" >&5 3873sed 's/^/| /' conftest.$ac_ext >&5 3874 3875 CXXFLAGS="" 3876 cat >conftest.$ac_ext <<_ACEOF 3877/* confdefs.h. */ 3878_ACEOF 3879cat confdefs.h >>conftest.$ac_ext 3880cat >>conftest.$ac_ext <<_ACEOF 3881/* end confdefs.h. */ 3882 3883int 3884main () 3885{ 3886 3887 ; 3888 return 0; 3889} 3890_ACEOF 3891rm -f conftest.$ac_objext 3892if { (ac_try="$ac_compile" 3893case "(($ac_try" in 3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3895 *) ac_try_echo=$ac_try;; 3896esac 3897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3898 (eval "$ac_compile") 2>conftest.er1 3899 ac_status=$? 3900 grep -v '^ *+' conftest.er1 >conftest.err 3901 rm -f conftest.er1 3902 cat conftest.err >&5 3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3904 (exit $ac_status); } && { 3905 test -z "$ac_cxx_werror_flag" || 3906 test ! -s conftest.err 3907 } && test -s conftest.$ac_objext; then 3908 : 3909else 3910 echo "$as_me: failed program was:" >&5 3911sed 's/^/| /' conftest.$ac_ext >&5 3912 3913 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3914 CXXFLAGS="-g" 3915 cat >conftest.$ac_ext <<_ACEOF 3916/* confdefs.h. */ 3917_ACEOF 3918cat confdefs.h >>conftest.$ac_ext 3919cat >>conftest.$ac_ext <<_ACEOF 3920/* end confdefs.h. */ 3921 3922int 3923main () 3924{ 3925 3926 ; 3927 return 0; 3928} 3929_ACEOF 3930rm -f conftest.$ac_objext 3931if { (ac_try="$ac_compile" 3932case "(($ac_try" in 3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3934 *) ac_try_echo=$ac_try;; 3935esac 3936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3937 (eval "$ac_compile") 2>conftest.er1 3938 ac_status=$? 3939 grep -v '^ *+' conftest.er1 >conftest.err 3940 rm -f conftest.er1 3941 cat conftest.err >&5 3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3943 (exit $ac_status); } && { 3944 test -z "$ac_cxx_werror_flag" || 3945 test ! -s conftest.err 3946 } && test -s conftest.$ac_objext; then 3947 ac_cv_prog_cxx_g=yes 3948else 3949 echo "$as_me: failed program was:" >&5 3950sed 's/^/| /' conftest.$ac_ext >&5 3951 3952 3953fi 3954 3955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3956fi 3957 3958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3959fi 3960 3961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3962 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3963fi 3964{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3965echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3966if test "$ac_test_CXXFLAGS" = set; then 3967 CXXFLAGS=$ac_save_CXXFLAGS 3968elif test $ac_cv_prog_cxx_g = yes; then 3969 if test "$GXX" = yes; then 3970 CXXFLAGS="-g -O2" 3971 else 3972 CXXFLAGS="-g" 3973 fi 3974else 3975 if test "$GXX" = yes; then 3976 CXXFLAGS="-O2" 3977 else 3978 CXXFLAGS= 3979 fi 3980fi 3981ac_ext=c 3982ac_cpp='$CPP $CPPFLAGS' 3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3985ac_compiler_gnu=$ac_cv_c_compiler_gnu 3986 3987depcc="$CXX" am_compiler_list= 3988 3989{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3990echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3991if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3992 echo $ECHO_N "(cached) $ECHO_C" >&6 3993else 3994 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3995 # We make a subdir and do the tests there. Otherwise we can end up 3996 # making bogus files that we don't know about and never remove. For 3997 # instance it was reported that on HP-UX the gcc test will end up 3998 # making a dummy file named `D' -- because `-MD' means `put the output 3999 # in D'. 4000 mkdir conftest.dir 4001 # Copy depcomp to subdir because otherwise we won't find it if we're 4002 # using a relative directory. 4003 cp "$am_depcomp" conftest.dir 4004 cd conftest.dir 4005 # We will build objects and dependencies in a subdirectory because 4006 # it helps to detect inapplicable dependency modes. For instance 4007 # both Tru64's cc and ICC support -MD to output dependencies as a 4008 # side effect of compilation, but ICC will put the dependencies in 4009 # the current directory while Tru64 will put them in the object 4010 # directory. 4011 mkdir sub 4012 4013 am_cv_CXX_dependencies_compiler_type=none 4014 if test "$am_compiler_list" = ""; then 4015 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4016 fi 4017 for depmode in $am_compiler_list; do 4018 # Setup a source with many dependencies, because some compilers 4019 # like to wrap large dependency lists on column 80 (with \), and 4020 # we should not choose a depcomp mode which is confused by this. 4021 # 4022 # We need to recreate these files for each test, as the compiler may 4023 # overwrite some of them when testing with obscure command lines. 4024 # This happens at least with the AIX C compiler. 4025 : > sub/conftest.c 4026 for i in 1 2 3 4 5 6; do 4027 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4028 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4029 # Solaris 8's {/usr,}/bin/sh. 4030 touch sub/conftst$i.h 4031 done 4032 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4033 4034 case $depmode in 4035 nosideeffect) 4036 # after this tag, mechanisms are not by side-effect, so they'll 4037 # only be used when explicitly requested 4038 if test "x$enable_dependency_tracking" = xyes; then 4039 continue 4040 else 4041 break 4042 fi 4043 ;; 4044 none) break ;; 4045 esac 4046 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4047 # mode. It turns out that the SunPro C++ compiler does not properly 4048 # handle `-M -o', and we need to detect this. 4049 if depmode=$depmode \ 4050 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4051 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4052 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4053 >/dev/null 2>conftest.err && 4054 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4055 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4056 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4057 # icc doesn't choke on unknown options, it will just issue warnings 4058 # or remarks (even with -Werror). So we grep stderr for any message 4059 # that says an option was ignored or not supported. 4060 # When given -MP, icc 7.0 and 7.1 complain thusly: 4061 # icc: Command line warning: ignoring option '-M'; no argument required 4062 # The diagnosis changed in icc 8.0: 4063 # icc: Command line remark: option '-MP' not supported 4064 if (grep 'ignoring option' conftest.err || 4065 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4066 am_cv_CXX_dependencies_compiler_type=$depmode 4067 break 4068 fi 4069 fi 4070 done 4071 4072 cd .. 4073 rm -rf conftest.dir 4074else 4075 am_cv_CXX_dependencies_compiler_type=none 4076fi 4077 4078fi 4079{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4080echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 4081CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4082 4083 4084 4085if 4086 test "x$enable_dependency_tracking" != xno \ 4087 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4088 am__fastdepCXX_TRUE= 4089 am__fastdepCXX_FALSE='#' 4090else 4091 am__fastdepCXX_TRUE='#' 4092 am__fastdepCXX_FALSE= 4093fi 4094 4095 4096# Find a good install program. We prefer a C program (faster), 4097# so one script is as good as another. But avoid the broken or 4098# incompatible versions: 4099# SysV /etc/install, /usr/sbin/install 4100# SunOS /usr/etc/install 4101# IRIX /sbin/install 4102# AIX /bin/install 4103# AmigaOS /C/install, which installs bootblocks on floppy discs 4104# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4105# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4106# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4107# OS/2's system install, which has a completely different semantic 4108# ./install, which can be erroneously created by make from ./install.sh. 4109{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4110echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 4111if test -z "$INSTALL"; then 4112if test "${ac_cv_path_install+set}" = set; then 4113 echo $ECHO_N "(cached) $ECHO_C" >&6 4114else 4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4116for as_dir in $PATH 4117do 4118 IFS=$as_save_IFS 4119 test -z "$as_dir" && as_dir=. 4120 # Account for people who put trailing slashes in PATH elements. 4121case $as_dir/ in 4122 ./ | .// | /cC/* | \ 4123 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4124 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4125 /usr/ucb/* ) ;; 4126 *) 4127 # OSF1 and SCO ODT 3.0 have their own names for install. 4128 # Don't use installbsd from OSF since it installs stuff as root 4129 # by default. 4130 for ac_prog in ginstall scoinst install; do 4131 for ac_exec_ext in '' $ac_executable_extensions; do 4132 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4133 if test $ac_prog = install && 4134 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4135 # AIX install. It has an incompatible calling convention. 4136 : 4137 elif test $ac_prog = install && 4138 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4139 # program-specific install script used by HP pwplus--don't use. 4140 : 4141 else 4142 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4143 break 3 4144 fi 4145 fi 4146 done 4147 done 4148 ;; 4149esac 4150done 4151IFS=$as_save_IFS 4152 4153 4154fi 4155 if test "${ac_cv_path_install+set}" = set; then 4156 INSTALL=$ac_cv_path_install 4157 else 4158 # As a last resort, use the slow shell script. Don't cache a 4159 # value for INSTALL within a source directory, because that will 4160 # break other packages using the cache if that directory is 4161 # removed, or if the value is a relative name. 4162 INSTALL=$ac_install_sh 4163 fi 4164fi 4165{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4166echo "${ECHO_T}$INSTALL" >&6; } 4167 4168# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4169# It thinks the first close brace ends the variable substitution. 4170test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4171 4172test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4173 4174test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4175 4176 4177{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 4178echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 4179if test "${ac_cv_search_strerror+set}" = set; then 4180 echo $ECHO_N "(cached) $ECHO_C" >&6 4181else 4182 ac_func_search_save_LIBS=$LIBS 4183cat >conftest.$ac_ext <<_ACEOF 4184/* confdefs.h. */ 4185_ACEOF 4186cat confdefs.h >>conftest.$ac_ext 4187cat >>conftest.$ac_ext <<_ACEOF 4188/* end confdefs.h. */ 4189 4190/* Override any GCC internal prototype to avoid an error. 4191 Use char because int might match the return type of a GCC 4192 builtin and then its argument prototype would still apply. */ 4193#ifdef __cplusplus 4194extern "C" 4195#endif 4196char strerror (); 4197int 4198main () 4199{ 4200return strerror (); 4201 ; 4202 return 0; 4203} 4204_ACEOF 4205for ac_lib in '' cposix; do 4206 if test -z "$ac_lib"; then 4207 ac_res="none required" 4208 else 4209 ac_res=-l$ac_lib 4210 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4211 fi 4212 rm -f conftest.$ac_objext conftest$ac_exeext 4213if { (ac_try="$ac_link" 4214case "(($ac_try" in 4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4216 *) ac_try_echo=$ac_try;; 4217esac 4218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4219 (eval "$ac_link") 2>conftest.er1 4220 ac_status=$? 4221 grep -v '^ *+' conftest.er1 >conftest.err 4222 rm -f conftest.er1 4223 cat conftest.err >&5 4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4225 (exit $ac_status); } && { 4226 test -z "$ac_c_werror_flag" || 4227 test ! -s conftest.err 4228 } && test -s conftest$ac_exeext && 4229 $as_test_x conftest$ac_exeext; then 4230 ac_cv_search_strerror=$ac_res 4231else 4232 echo "$as_me: failed program was:" >&5 4233sed 's/^/| /' conftest.$ac_ext >&5 4234 4235 4236fi 4237 4238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4239 conftest$ac_exeext 4240 if test "${ac_cv_search_strerror+set}" = set; then 4241 break 4242fi 4243done 4244if test "${ac_cv_search_strerror+set}" = set; then 4245 : 4246else 4247 ac_cv_search_strerror=no 4248fi 4249rm conftest.$ac_ext 4250LIBS=$ac_func_search_save_LIBS 4251fi 4252{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 4253echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 4254ac_res=$ac_cv_search_strerror 4255if test "$ac_res" != no; then 4256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4257 4258fi 4259 4260ac_ext=c 4261ac_cpp='$CPP $CPPFLAGS' 4262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4264ac_compiler_gnu=$ac_cv_c_compiler_gnu 4265{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4266echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4267# On Suns, sometimes $CPP names a directory. 4268if test -n "$CPP" && test -d "$CPP"; then 4269 CPP= 4270fi 4271if test -z "$CPP"; then 4272 if test "${ac_cv_prog_CPP+set}" = set; then 4273 echo $ECHO_N "(cached) $ECHO_C" >&6 4274else 4275 # Double quotes because CPP needs to be expanded 4276 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4277 do 4278 ac_preproc_ok=false 4279for ac_c_preproc_warn_flag in '' yes 4280do 4281 # Use a header file that comes with gcc, so configuring glibc 4282 # with a fresh cross-compiler works. 4283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4284 # <limits.h> exists even on freestanding compilers. 4285 # On the NeXT, cc -E runs the code through the compiler's parser, 4286 # not just through cpp. "Syntax error" is here to catch this case. 4287 cat >conftest.$ac_ext <<_ACEOF 4288/* confdefs.h. */ 4289_ACEOF 4290cat confdefs.h >>conftest.$ac_ext 4291cat >>conftest.$ac_ext <<_ACEOF 4292/* end confdefs.h. */ 4293#ifdef __STDC__ 4294# include <limits.h> 4295#else 4296# include <assert.h> 4297#endif 4298 Syntax error 4299_ACEOF 4300if { (ac_try="$ac_cpp conftest.$ac_ext" 4301case "(($ac_try" in 4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4303 *) ac_try_echo=$ac_try;; 4304esac 4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4307 ac_status=$? 4308 grep -v '^ *+' conftest.er1 >conftest.err 4309 rm -f conftest.er1 4310 cat conftest.err >&5 4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4312 (exit $ac_status); } >/dev/null && { 4313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4314 test ! -s conftest.err 4315 }; then 4316 : 4317else 4318 echo "$as_me: failed program was:" >&5 4319sed 's/^/| /' conftest.$ac_ext >&5 4320 4321 # Broken: fails on valid input. 4322continue 4323fi 4324 4325rm -f conftest.err conftest.$ac_ext 4326 4327 # OK, works on sane cases. Now check whether nonexistent headers 4328 # can be detected and how. 4329 cat >conftest.$ac_ext <<_ACEOF 4330/* confdefs.h. */ 4331_ACEOF 4332cat confdefs.h >>conftest.$ac_ext 4333cat >>conftest.$ac_ext <<_ACEOF 4334/* end confdefs.h. */ 4335#include <ac_nonexistent.h> 4336_ACEOF 4337if { (ac_try="$ac_cpp conftest.$ac_ext" 4338case "(($ac_try" in 4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4340 *) ac_try_echo=$ac_try;; 4341esac 4342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4344 ac_status=$? 4345 grep -v '^ *+' conftest.er1 >conftest.err 4346 rm -f conftest.er1 4347 cat conftest.err >&5 4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4349 (exit $ac_status); } >/dev/null && { 4350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4351 test ! -s conftest.err 4352 }; then 4353 # Broken: success on invalid input. 4354continue 4355else 4356 echo "$as_me: failed program was:" >&5 4357sed 's/^/| /' conftest.$ac_ext >&5 4358 4359 # Passes both tests. 4360ac_preproc_ok=: 4361break 4362fi 4363 4364rm -f conftest.err conftest.$ac_ext 4365 4366done 4367# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4368rm -f conftest.err conftest.$ac_ext 4369if $ac_preproc_ok; then 4370 break 4371fi 4372 4373 done 4374 ac_cv_prog_CPP=$CPP 4375 4376fi 4377 CPP=$ac_cv_prog_CPP 4378else 4379 ac_cv_prog_CPP=$CPP 4380fi 4381{ echo "$as_me:$LINENO: result: $CPP" >&5 4382echo "${ECHO_T}$CPP" >&6; } 4383ac_preproc_ok=false 4384for ac_c_preproc_warn_flag in '' yes 4385do 4386 # Use a header file that comes with gcc, so configuring glibc 4387 # with a fresh cross-compiler works. 4388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4389 # <limits.h> exists even on freestanding compilers. 4390 # On the NeXT, cc -E runs the code through the compiler's parser, 4391 # not just through cpp. "Syntax error" is here to catch this case. 4392 cat >conftest.$ac_ext <<_ACEOF 4393/* confdefs.h. */ 4394_ACEOF 4395cat confdefs.h >>conftest.$ac_ext 4396cat >>conftest.$ac_ext <<_ACEOF 4397/* end confdefs.h. */ 4398#ifdef __STDC__ 4399# include <limits.h> 4400#else 4401# include <assert.h> 4402#endif 4403 Syntax error 4404_ACEOF 4405if { (ac_try="$ac_cpp conftest.$ac_ext" 4406case "(($ac_try" in 4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4408 *) ac_try_echo=$ac_try;; 4409esac 4410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4412 ac_status=$? 4413 grep -v '^ *+' conftest.er1 >conftest.err 4414 rm -f conftest.er1 4415 cat conftest.err >&5 4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4417 (exit $ac_status); } >/dev/null && { 4418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4419 test ! -s conftest.err 4420 }; then 4421 : 4422else 4423 echo "$as_me: failed program was:" >&5 4424sed 's/^/| /' conftest.$ac_ext >&5 4425 4426 # Broken: fails on valid input. 4427continue 4428fi 4429 4430rm -f conftest.err conftest.$ac_ext 4431 4432 # OK, works on sane cases. Now check whether nonexistent headers 4433 # can be detected and how. 4434 cat >conftest.$ac_ext <<_ACEOF 4435/* confdefs.h. */ 4436_ACEOF 4437cat confdefs.h >>conftest.$ac_ext 4438cat >>conftest.$ac_ext <<_ACEOF 4439/* end confdefs.h. */ 4440#include <ac_nonexistent.h> 4441_ACEOF 4442if { (ac_try="$ac_cpp conftest.$ac_ext" 4443case "(($ac_try" in 4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4445 *) ac_try_echo=$ac_try;; 4446esac 4447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4449 ac_status=$? 4450 grep -v '^ *+' conftest.er1 >conftest.err 4451 rm -f conftest.er1 4452 cat conftest.err >&5 4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4454 (exit $ac_status); } >/dev/null && { 4455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4456 test ! -s conftest.err 4457 }; then 4458 # Broken: success on invalid input. 4459continue 4460else 4461 echo "$as_me: failed program was:" >&5 4462sed 's/^/| /' conftest.$ac_ext >&5 4463 4464 # Passes both tests. 4465ac_preproc_ok=: 4466break 4467fi 4468 4469rm -f conftest.err conftest.$ac_ext 4470 4471done 4472# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4473rm -f conftest.err conftest.$ac_ext 4474if $ac_preproc_ok; then 4475 : 4476else 4477 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4478See \`config.log' for more details." >&5 4479echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4480See \`config.log' for more details." >&2;} 4481 { (exit 1); exit 1; }; } 4482fi 4483 4484ac_ext=c 4485ac_cpp='$CPP $CPPFLAGS' 4486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4488ac_compiler_gnu=$ac_cv_c_compiler_gnu 4489 4490 4491{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4492echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4493if test "${ac_cv_path_GREP+set}" = set; then 4494 echo $ECHO_N "(cached) $ECHO_C" >&6 4495else 4496 # Extract the first word of "grep ggrep" to use in msg output 4497if test -z "$GREP"; then 4498set dummy grep ggrep; ac_prog_name=$2 4499if test "${ac_cv_path_GREP+set}" = set; then 4500 echo $ECHO_N "(cached) $ECHO_C" >&6 4501else 4502 ac_path_GREP_found=false 4503# Loop through the user's path and test for each of PROGNAME-LIST 4504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4505for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4506do 4507 IFS=$as_save_IFS 4508 test -z "$as_dir" && as_dir=. 4509 for ac_prog in grep ggrep; do 4510 for ac_exec_ext in '' $ac_executable_extensions; do 4511 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4512 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4513 # Check for GNU ac_path_GREP and select it if it is found. 4514 # Check for GNU $ac_path_GREP 4515case `"$ac_path_GREP" --version 2>&1` in 4516*GNU*) 4517 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4518*) 4519 ac_count=0 4520 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4521 while : 4522 do 4523 cat "conftest.in" "conftest.in" >"conftest.tmp" 4524 mv "conftest.tmp" "conftest.in" 4525 cp "conftest.in" "conftest.nl" 4526 echo 'GREP' >> "conftest.nl" 4527 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4528 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4529 ac_count=`expr $ac_count + 1` 4530 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4531 # Best one so far, save it but keep looking for a better one 4532 ac_cv_path_GREP="$ac_path_GREP" 4533 ac_path_GREP_max=$ac_count 4534 fi 4535 # 10*(2^10) chars as input seems more than enough 4536 test $ac_count -gt 10 && break 4537 done 4538 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4539esac 4540 4541 4542 $ac_path_GREP_found && break 3 4543 done 4544done 4545 4546done 4547IFS=$as_save_IFS 4548 4549 4550fi 4551 4552GREP="$ac_cv_path_GREP" 4553if test -z "$GREP"; then 4554 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4555echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4556 { (exit 1); exit 1; }; } 4557fi 4558 4559else 4560 ac_cv_path_GREP=$GREP 4561fi 4562 4563 4564fi 4565{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4566echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4567 GREP="$ac_cv_path_GREP" 4568 4569 4570{ echo "$as_me:$LINENO: checking for egrep" >&5 4571echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4572if test "${ac_cv_path_EGREP+set}" = set; then 4573 echo $ECHO_N "(cached) $ECHO_C" >&6 4574else 4575 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4576 then ac_cv_path_EGREP="$GREP -E" 4577 else 4578 # Extract the first word of "egrep" to use in msg output 4579if test -z "$EGREP"; then 4580set dummy egrep; ac_prog_name=$2 4581if test "${ac_cv_path_EGREP+set}" = set; then 4582 echo $ECHO_N "(cached) $ECHO_C" >&6 4583else 4584 ac_path_EGREP_found=false 4585# Loop through the user's path and test for each of PROGNAME-LIST 4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4587for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4588do 4589 IFS=$as_save_IFS 4590 test -z "$as_dir" && as_dir=. 4591 for ac_prog in egrep; do 4592 for ac_exec_ext in '' $ac_executable_extensions; do 4593 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4594 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4595 # Check for GNU ac_path_EGREP and select it if it is found. 4596 # Check for GNU $ac_path_EGREP 4597case `"$ac_path_EGREP" --version 2>&1` in 4598*GNU*) 4599 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4600*) 4601 ac_count=0 4602 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4603 while : 4604 do 4605 cat "conftest.in" "conftest.in" >"conftest.tmp" 4606 mv "conftest.tmp" "conftest.in" 4607 cp "conftest.in" "conftest.nl" 4608 echo 'EGREP' >> "conftest.nl" 4609 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4611 ac_count=`expr $ac_count + 1` 4612 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4613 # Best one so far, save it but keep looking for a better one 4614 ac_cv_path_EGREP="$ac_path_EGREP" 4615 ac_path_EGREP_max=$ac_count 4616 fi 4617 # 10*(2^10) chars as input seems more than enough 4618 test $ac_count -gt 10 && break 4619 done 4620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4621esac 4622 4623 4624 $ac_path_EGREP_found && break 3 4625 done 4626done 4627 4628done 4629IFS=$as_save_IFS 4630 4631 4632fi 4633 4634EGREP="$ac_cv_path_EGREP" 4635if test -z "$EGREP"; then 4636 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4637echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4638 { (exit 1); exit 1; }; } 4639fi 4640 4641else 4642 ac_cv_path_EGREP=$EGREP 4643fi 4644 4645 4646 fi 4647fi 4648{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4649echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4650 EGREP="$ac_cv_path_EGREP" 4651 4652 4653{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4654echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4655if test "${ac_cv_header_stdc+set}" = set; then 4656 echo $ECHO_N "(cached) $ECHO_C" >&6 4657else 4658 cat >conftest.$ac_ext <<_ACEOF 4659/* confdefs.h. */ 4660_ACEOF 4661cat confdefs.h >>conftest.$ac_ext 4662cat >>conftest.$ac_ext <<_ACEOF 4663/* end confdefs.h. */ 4664#include <stdlib.h> 4665#include <stdarg.h> 4666#include <string.h> 4667#include <float.h> 4668 4669int 4670main () 4671{ 4672 4673 ; 4674 return 0; 4675} 4676_ACEOF 4677rm -f conftest.$ac_objext 4678if { (ac_try="$ac_compile" 4679case "(($ac_try" in 4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4681 *) ac_try_echo=$ac_try;; 4682esac 4683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4684 (eval "$ac_compile") 2>conftest.er1 4685 ac_status=$? 4686 grep -v '^ *+' conftest.er1 >conftest.err 4687 rm -f conftest.er1 4688 cat conftest.err >&5 4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4690 (exit $ac_status); } && { 4691 test -z "$ac_c_werror_flag" || 4692 test ! -s conftest.err 4693 } && test -s conftest.$ac_objext; then 4694 ac_cv_header_stdc=yes 4695else 4696 echo "$as_me: failed program was:" >&5 4697sed 's/^/| /' conftest.$ac_ext >&5 4698 4699 ac_cv_header_stdc=no 4700fi 4701 4702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4703 4704if test $ac_cv_header_stdc = yes; then 4705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4706 cat >conftest.$ac_ext <<_ACEOF 4707/* confdefs.h. */ 4708_ACEOF 4709cat confdefs.h >>conftest.$ac_ext 4710cat >>conftest.$ac_ext <<_ACEOF 4711/* end confdefs.h. */ 4712#include <string.h> 4713 4714_ACEOF 4715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4716 $EGREP "memchr" >/dev/null 2>&1; then 4717 : 4718else 4719 ac_cv_header_stdc=no 4720fi 4721rm -f conftest* 4722 4723fi 4724 4725if test $ac_cv_header_stdc = yes; then 4726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4727 cat >conftest.$ac_ext <<_ACEOF 4728/* confdefs.h. */ 4729_ACEOF 4730cat confdefs.h >>conftest.$ac_ext 4731cat >>conftest.$ac_ext <<_ACEOF 4732/* end confdefs.h. */ 4733#include <stdlib.h> 4734 4735_ACEOF 4736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4737 $EGREP "free" >/dev/null 2>&1; then 4738 : 4739else 4740 ac_cv_header_stdc=no 4741fi 4742rm -f conftest* 4743 4744fi 4745 4746if test $ac_cv_header_stdc = yes; then 4747 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4748 if test "$cross_compiling" = yes; then 4749 : 4750else 4751 cat >conftest.$ac_ext <<_ACEOF 4752/* confdefs.h. */ 4753_ACEOF 4754cat confdefs.h >>conftest.$ac_ext 4755cat >>conftest.$ac_ext <<_ACEOF 4756/* end confdefs.h. */ 4757#include <ctype.h> 4758#include <stdlib.h> 4759#if ((' ' & 0x0FF) == 0x020) 4760# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4761# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4762#else 4763# define ISLOWER(c) \ 4764 (('a' <= (c) && (c) <= 'i') \ 4765 || ('j' <= (c) && (c) <= 'r') \ 4766 || ('s' <= (c) && (c) <= 'z')) 4767# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4768#endif 4769 4770#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4771int 4772main () 4773{ 4774 int i; 4775 for (i = 0; i < 256; i++) 4776 if (XOR (islower (i), ISLOWER (i)) 4777 || toupper (i) != TOUPPER (i)) 4778 return 2; 4779 return 0; 4780} 4781_ACEOF 4782rm -f conftest$ac_exeext 4783if { (ac_try="$ac_link" 4784case "(($ac_try" in 4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4786 *) ac_try_echo=$ac_try;; 4787esac 4788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4789 (eval "$ac_link") 2>&5 4790 ac_status=$? 4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4793 { (case "(($ac_try" in 4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4795 *) ac_try_echo=$ac_try;; 4796esac 4797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4798 (eval "$ac_try") 2>&5 4799 ac_status=$? 4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4801 (exit $ac_status); }; }; then 4802 : 4803else 4804 echo "$as_me: program exited with status $ac_status" >&5 4805echo "$as_me: failed program was:" >&5 4806sed 's/^/| /' conftest.$ac_ext >&5 4807 4808( exit $ac_status ) 4809ac_cv_header_stdc=no 4810fi 4811rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4812fi 4813 4814 4815fi 4816fi 4817{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4818echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4819if test $ac_cv_header_stdc = yes; then 4820 4821cat >>confdefs.h <<\_ACEOF 4822#define STDC_HEADERS 1 4823_ACEOF 4824 4825fi 4826 4827# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4838 inttypes.h stdint.h unistd.h 4839do 4840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4841{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4844 echo $ECHO_N "(cached) $ECHO_C" >&6 4845else 4846 cat >conftest.$ac_ext <<_ACEOF 4847/* confdefs.h. */ 4848_ACEOF 4849cat confdefs.h >>conftest.$ac_ext 4850cat >>conftest.$ac_ext <<_ACEOF 4851/* end confdefs.h. */ 4852$ac_includes_default 4853 4854#include <$ac_header> 4855_ACEOF 4856rm -f conftest.$ac_objext 4857if { (ac_try="$ac_compile" 4858case "(($ac_try" in 4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4860 *) ac_try_echo=$ac_try;; 4861esac 4862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4863 (eval "$ac_compile") 2>conftest.er1 4864 ac_status=$? 4865 grep -v '^ *+' conftest.er1 >conftest.err 4866 rm -f conftest.er1 4867 cat conftest.err >&5 4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4869 (exit $ac_status); } && { 4870 test -z "$ac_c_werror_flag" || 4871 test ! -s conftest.err 4872 } && test -s conftest.$ac_objext; then 4873 eval "$as_ac_Header=yes" 4874else 4875 echo "$as_me: failed program was:" >&5 4876sed 's/^/| /' conftest.$ac_ext >&5 4877 4878 eval "$as_ac_Header=no" 4879fi 4880 4881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4882fi 4883ac_res=`eval echo '${'$as_ac_Header'}'` 4884 { echo "$as_me:$LINENO: result: $ac_res" >&5 4885echo "${ECHO_T}$ac_res" >&6; } 4886if test `eval echo '${'$as_ac_Header'}'` = yes; then 4887 cat >>confdefs.h <<_ACEOF 4888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4889_ACEOF 4890 4891fi 4892 4893done 4894 4895 4896{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4897echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4898if test "${ac_cv_c_bigendian+set}" = set; then 4899 echo $ECHO_N "(cached) $ECHO_C" >&6 4900else 4901 # See if sys/param.h defines the BYTE_ORDER macro. 4902cat >conftest.$ac_ext <<_ACEOF 4903/* confdefs.h. */ 4904_ACEOF 4905cat confdefs.h >>conftest.$ac_ext 4906cat >>conftest.$ac_ext <<_ACEOF 4907/* end confdefs.h. */ 4908#include <sys/types.h> 4909#include <sys/param.h> 4910 4911int 4912main () 4913{ 4914#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4915 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4916 bogus endian macros 4917#endif 4918 4919 ; 4920 return 0; 4921} 4922_ACEOF 4923rm -f conftest.$ac_objext 4924if { (ac_try="$ac_compile" 4925case "(($ac_try" in 4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4927 *) ac_try_echo=$ac_try;; 4928esac 4929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4930 (eval "$ac_compile") 2>conftest.er1 4931 ac_status=$? 4932 grep -v '^ *+' conftest.er1 >conftest.err 4933 rm -f conftest.er1 4934 cat conftest.err >&5 4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4936 (exit $ac_status); } && { 4937 test -z "$ac_c_werror_flag" || 4938 test ! -s conftest.err 4939 } && test -s conftest.$ac_objext; then 4940 # It does; now see whether it defined to BIG_ENDIAN or not. 4941cat >conftest.$ac_ext <<_ACEOF 4942/* confdefs.h. */ 4943_ACEOF 4944cat confdefs.h >>conftest.$ac_ext 4945cat >>conftest.$ac_ext <<_ACEOF 4946/* end confdefs.h. */ 4947#include <sys/types.h> 4948#include <sys/param.h> 4949 4950int 4951main () 4952{ 4953#if BYTE_ORDER != BIG_ENDIAN 4954 not big endian 4955#endif 4956 4957 ; 4958 return 0; 4959} 4960_ACEOF 4961rm -f conftest.$ac_objext 4962if { (ac_try="$ac_compile" 4963case "(($ac_try" in 4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4965 *) ac_try_echo=$ac_try;; 4966esac 4967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4968 (eval "$ac_compile") 2>conftest.er1 4969 ac_status=$? 4970 grep -v '^ *+' conftest.er1 >conftest.err 4971 rm -f conftest.er1 4972 cat conftest.err >&5 4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4974 (exit $ac_status); } && { 4975 test -z "$ac_c_werror_flag" || 4976 test ! -s conftest.err 4977 } && test -s conftest.$ac_objext; then 4978 ac_cv_c_bigendian=yes 4979else 4980 echo "$as_me: failed program was:" >&5 4981sed 's/^/| /' conftest.$ac_ext >&5 4982 4983 ac_cv_c_bigendian=no 4984fi 4985 4986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4987else 4988 echo "$as_me: failed program was:" >&5 4989sed 's/^/| /' conftest.$ac_ext >&5 4990 4991 # It does not; compile a test program. 4992if test "$cross_compiling" = yes; then 4993 # try to guess the endianness by grepping values into an object file 4994 ac_cv_c_bigendian=unknown 4995 cat >conftest.$ac_ext <<_ACEOF 4996/* confdefs.h. */ 4997_ACEOF 4998cat confdefs.h >>conftest.$ac_ext 4999cat >>conftest.$ac_ext <<_ACEOF 5000/* end confdefs.h. */ 5001short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5002short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5003void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 5004short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5005short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5006void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 5007int 5008main () 5009{ 5010 _ascii (); _ebcdic (); 5011 ; 5012 return 0; 5013} 5014_ACEOF 5015rm -f conftest.$ac_objext 5016if { (ac_try="$ac_compile" 5017case "(($ac_try" in 5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5019 *) ac_try_echo=$ac_try;; 5020esac 5021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5022 (eval "$ac_compile") 2>conftest.er1 5023 ac_status=$? 5024 grep -v '^ *+' conftest.er1 >conftest.err 5025 rm -f conftest.er1 5026 cat conftest.err >&5 5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5028 (exit $ac_status); } && { 5029 test -z "$ac_c_werror_flag" || 5030 test ! -s conftest.err 5031 } && test -s conftest.$ac_objext; then 5032 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 5033 ac_cv_c_bigendian=yes 5034fi 5035if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 5036 if test "$ac_cv_c_bigendian" = unknown; then 5037 ac_cv_c_bigendian=no 5038 else 5039 # finding both strings is unlikely to happen, but who knows? 5040 ac_cv_c_bigendian=unknown 5041 fi 5042fi 5043else 5044 echo "$as_me: failed program was:" >&5 5045sed 's/^/| /' conftest.$ac_ext >&5 5046 5047 5048fi 5049 5050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5051else 5052 cat >conftest.$ac_ext <<_ACEOF 5053/* confdefs.h. */ 5054_ACEOF 5055cat confdefs.h >>conftest.$ac_ext 5056cat >>conftest.$ac_ext <<_ACEOF 5057/* end confdefs.h. */ 5058$ac_includes_default 5059int 5060main () 5061{ 5062 5063 /* Are we little or big endian? From Harbison&Steele. */ 5064 union 5065 { 5066 long int l; 5067 char c[sizeof (long int)]; 5068 } u; 5069 u.l = 1; 5070 return u.c[sizeof (long int) - 1] == 1; 5071 5072 ; 5073 return 0; 5074} 5075_ACEOF 5076rm -f conftest$ac_exeext 5077if { (ac_try="$ac_link" 5078case "(($ac_try" in 5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5080 *) ac_try_echo=$ac_try;; 5081esac 5082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5083 (eval "$ac_link") 2>&5 5084 ac_status=$? 5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5087 { (case "(($ac_try" in 5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5089 *) ac_try_echo=$ac_try;; 5090esac 5091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5092 (eval "$ac_try") 2>&5 5093 ac_status=$? 5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5095 (exit $ac_status); }; }; then 5096 ac_cv_c_bigendian=no 5097else 5098 echo "$as_me: program exited with status $ac_status" >&5 5099echo "$as_me: failed program was:" >&5 5100sed 's/^/| /' conftest.$ac_ext >&5 5101 5102( exit $ac_status ) 5103ac_cv_c_bigendian=yes 5104fi 5105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5106fi 5107 5108 5109fi 5110 5111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5112fi 5113{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 5114echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 5115case $ac_cv_c_bigendian in 5116 yes) 5117 5118cat >>confdefs.h <<\_ACEOF 5119#define WORDS_BIGENDIAN 1 5120_ACEOF 5121 ;; 5122 no) 5123 ;; 5124 *) 5125 { { echo "$as_me:$LINENO: error: unknown endianness 5126presetting ac_cv_c_bigendian=no (or yes) will help" >&5 5127echo "$as_me: error: unknown endianness 5128presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 5129 { (exit 1); exit 1; }; } ;; 5130esac 5131 5132 5133{ echo "$as_me:$LINENO: checking whether char is unsigned" >&5 5134echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; } 5135if test "${ac_cv_c_char_unsigned+set}" = set; then 5136 echo $ECHO_N "(cached) $ECHO_C" >&6 5137else 5138 cat >conftest.$ac_ext <<_ACEOF 5139/* confdefs.h. */ 5140_ACEOF 5141cat confdefs.h >>conftest.$ac_ext 5142cat >>conftest.$ac_ext <<_ACEOF 5143/* end confdefs.h. */ 5144$ac_includes_default 5145int 5146main () 5147{ 5148static int test_array [1 - 2 * !(((char) -1) < 0)]; 5149test_array [0] = 0 5150 5151 ; 5152 return 0; 5153} 5154_ACEOF 5155rm -f conftest.$ac_objext 5156if { (ac_try="$ac_compile" 5157case "(($ac_try" in 5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5159 *) ac_try_echo=$ac_try;; 5160esac 5161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5162 (eval "$ac_compile") 2>conftest.er1 5163 ac_status=$? 5164 grep -v '^ *+' conftest.er1 >conftest.err 5165 rm -f conftest.er1 5166 cat conftest.err >&5 5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5168 (exit $ac_status); } && { 5169 test -z "$ac_c_werror_flag" || 5170 test ! -s conftest.err 5171 } && test -s conftest.$ac_objext; then 5172 ac_cv_c_char_unsigned=no 5173else 5174 echo "$as_me: failed program was:" >&5 5175sed 's/^/| /' conftest.$ac_ext >&5 5176 5177 ac_cv_c_char_unsigned=yes 5178fi 5179 5180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5181fi 5182{ echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 5183echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } 5184if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 5185 cat >>confdefs.h <<\_ACEOF 5186#define __CHAR_UNSIGNED__ 1 5187_ACEOF 5188 5189fi 5190 5191{ echo "$as_me:$LINENO: checking for unsigned char" >&5 5192echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; } 5193if test "${ac_cv_type_unsigned_char+set}" = set; then 5194 echo $ECHO_N "(cached) $ECHO_C" >&6 5195else 5196 cat >conftest.$ac_ext <<_ACEOF 5197/* confdefs.h. */ 5198_ACEOF 5199cat confdefs.h >>conftest.$ac_ext 5200cat >>conftest.$ac_ext <<_ACEOF 5201/* end confdefs.h. */ 5202$ac_includes_default 5203typedef unsigned char ac__type_new_; 5204int 5205main () 5206{ 5207if ((ac__type_new_ *) 0) 5208 return 0; 5209if (sizeof (ac__type_new_)) 5210 return 0; 5211 ; 5212 return 0; 5213} 5214_ACEOF 5215rm -f conftest.$ac_objext 5216if { (ac_try="$ac_compile" 5217case "(($ac_try" in 5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5219 *) ac_try_echo=$ac_try;; 5220esac 5221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5222 (eval "$ac_compile") 2>conftest.er1 5223 ac_status=$? 5224 grep -v '^ *+' conftest.er1 >conftest.err 5225 rm -f conftest.er1 5226 cat conftest.err >&5 5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5228 (exit $ac_status); } && { 5229 test -z "$ac_c_werror_flag" || 5230 test ! -s conftest.err 5231 } && test -s conftest.$ac_objext; then 5232 ac_cv_type_unsigned_char=yes 5233else 5234 echo "$as_me: failed program was:" >&5 5235sed 's/^/| /' conftest.$ac_ext >&5 5236 5237 ac_cv_type_unsigned_char=no 5238fi 5239 5240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5241fi 5242{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5 5243echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; } 5244 5245# The cast to long int works around a bug in the HP C Compiler 5246# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5247# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5248# This bug is HP SR number 8606223364. 5249{ echo "$as_me:$LINENO: checking size of unsigned char" >&5 5250echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; } 5251if test "${ac_cv_sizeof_unsigned_char+set}" = set; then 5252 echo $ECHO_N "(cached) $ECHO_C" >&6 5253else 5254 if test "$cross_compiling" = yes; then 5255 # Depending upon the size, compute the lo and hi bounds. 5256cat >conftest.$ac_ext <<_ACEOF 5257/* confdefs.h. */ 5258_ACEOF 5259cat confdefs.h >>conftest.$ac_ext 5260cat >>conftest.$ac_ext <<_ACEOF 5261/* end confdefs.h. */ 5262$ac_includes_default 5263 typedef unsigned char ac__type_sizeof_; 5264int 5265main () 5266{ 5267static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 5268test_array [0] = 0 5269 5270 ; 5271 return 0; 5272} 5273_ACEOF 5274rm -f conftest.$ac_objext 5275if { (ac_try="$ac_compile" 5276case "(($ac_try" in 5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5278 *) ac_try_echo=$ac_try;; 5279esac 5280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5281 (eval "$ac_compile") 2>conftest.er1 5282 ac_status=$? 5283 grep -v '^ *+' conftest.er1 >conftest.err 5284 rm -f conftest.er1 5285 cat conftest.err >&5 5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5287 (exit $ac_status); } && { 5288 test -z "$ac_c_werror_flag" || 5289 test ! -s conftest.err 5290 } && test -s conftest.$ac_objext; then 5291 ac_lo=0 ac_mid=0 5292 while :; do 5293 cat >conftest.$ac_ext <<_ACEOF 5294/* confdefs.h. */ 5295_ACEOF 5296cat confdefs.h >>conftest.$ac_ext 5297cat >>conftest.$ac_ext <<_ACEOF 5298/* end confdefs.h. */ 5299$ac_includes_default 5300 typedef unsigned char ac__type_sizeof_; 5301int 5302main () 5303{ 5304static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 5305test_array [0] = 0 5306 5307 ; 5308 return 0; 5309} 5310_ACEOF 5311rm -f conftest.$ac_objext 5312if { (ac_try="$ac_compile" 5313case "(($ac_try" in 5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5315 *) ac_try_echo=$ac_try;; 5316esac 5317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5318 (eval "$ac_compile") 2>conftest.er1 5319 ac_status=$? 5320 grep -v '^ *+' conftest.er1 >conftest.err 5321 rm -f conftest.er1 5322 cat conftest.err >&5 5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5324 (exit $ac_status); } && { 5325 test -z "$ac_c_werror_flag" || 5326 test ! -s conftest.err 5327 } && test -s conftest.$ac_objext; then 5328 ac_hi=$ac_mid; break 5329else 5330 echo "$as_me: failed program was:" >&5 5331sed 's/^/| /' conftest.$ac_ext >&5 5332 5333 ac_lo=`expr $ac_mid + 1` 5334 if test $ac_lo -le $ac_mid; then 5335 ac_lo= ac_hi= 5336 break 5337 fi 5338 ac_mid=`expr 2 '*' $ac_mid + 1` 5339fi 5340 5341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5342 done 5343else 5344 echo "$as_me: failed program was:" >&5 5345sed 's/^/| /' conftest.$ac_ext >&5 5346 5347 cat >conftest.$ac_ext <<_ACEOF 5348/* confdefs.h. */ 5349_ACEOF 5350cat confdefs.h >>conftest.$ac_ext 5351cat >>conftest.$ac_ext <<_ACEOF 5352/* end confdefs.h. */ 5353$ac_includes_default 5354 typedef unsigned char ac__type_sizeof_; 5355int 5356main () 5357{ 5358static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 5359test_array [0] = 0 5360 5361 ; 5362 return 0; 5363} 5364_ACEOF 5365rm -f conftest.$ac_objext 5366if { (ac_try="$ac_compile" 5367case "(($ac_try" in 5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5369 *) ac_try_echo=$ac_try;; 5370esac 5371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5372 (eval "$ac_compile") 2>conftest.er1 5373 ac_status=$? 5374 grep -v '^ *+' conftest.er1 >conftest.err 5375 rm -f conftest.er1 5376 cat conftest.err >&5 5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5378 (exit $ac_status); } && { 5379 test -z "$ac_c_werror_flag" || 5380 test ! -s conftest.err 5381 } && test -s conftest.$ac_objext; then 5382 ac_hi=-1 ac_mid=-1 5383 while :; do 5384 cat >conftest.$ac_ext <<_ACEOF 5385/* confdefs.h. */ 5386_ACEOF 5387cat confdefs.h >>conftest.$ac_ext 5388cat >>conftest.$ac_ext <<_ACEOF 5389/* end confdefs.h. */ 5390$ac_includes_default 5391 typedef unsigned char ac__type_sizeof_; 5392int 5393main () 5394{ 5395static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 5396test_array [0] = 0 5397 5398 ; 5399 return 0; 5400} 5401_ACEOF 5402rm -f conftest.$ac_objext 5403if { (ac_try="$ac_compile" 5404case "(($ac_try" in 5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5406 *) ac_try_echo=$ac_try;; 5407esac 5408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5409 (eval "$ac_compile") 2>conftest.er1 5410 ac_status=$? 5411 grep -v '^ *+' conftest.er1 >conftest.err 5412 rm -f conftest.er1 5413 cat conftest.err >&5 5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5415 (exit $ac_status); } && { 5416 test -z "$ac_c_werror_flag" || 5417 test ! -s conftest.err 5418 } && test -s conftest.$ac_objext; then 5419 ac_lo=$ac_mid; break 5420else 5421 echo "$as_me: failed program was:" >&5 5422sed 's/^/| /' conftest.$ac_ext >&5 5423 5424 ac_hi=`expr '(' $ac_mid ')' - 1` 5425 if test $ac_mid -le $ac_hi; then 5426 ac_lo= ac_hi= 5427 break 5428 fi 5429 ac_mid=`expr 2 '*' $ac_mid` 5430fi 5431 5432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5433 done 5434else 5435 echo "$as_me: failed program was:" >&5 5436sed 's/^/| /' conftest.$ac_ext >&5 5437 5438 ac_lo= ac_hi= 5439fi 5440 5441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5442fi 5443 5444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5445# Binary search between lo and hi bounds. 5446while test "x$ac_lo" != "x$ac_hi"; do 5447 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5448 cat >conftest.$ac_ext <<_ACEOF 5449/* confdefs.h. */ 5450_ACEOF 5451cat confdefs.h >>conftest.$ac_ext 5452cat >>conftest.$ac_ext <<_ACEOF 5453/* end confdefs.h. */ 5454$ac_includes_default 5455 typedef unsigned char ac__type_sizeof_; 5456int 5457main () 5458{ 5459static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 5460test_array [0] = 0 5461 5462 ; 5463 return 0; 5464} 5465_ACEOF 5466rm -f conftest.$ac_objext 5467if { (ac_try="$ac_compile" 5468case "(($ac_try" in 5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5470 *) ac_try_echo=$ac_try;; 5471esac 5472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5473 (eval "$ac_compile") 2>conftest.er1 5474 ac_status=$? 5475 grep -v '^ *+' conftest.er1 >conftest.err 5476 rm -f conftest.er1 5477 cat conftest.err >&5 5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5479 (exit $ac_status); } && { 5480 test -z "$ac_c_werror_flag" || 5481 test ! -s conftest.err 5482 } && test -s conftest.$ac_objext; then 5483 ac_hi=$ac_mid 5484else 5485 echo "$as_me: failed program was:" >&5 5486sed 's/^/| /' conftest.$ac_ext >&5 5487 5488 ac_lo=`expr '(' $ac_mid ')' + 1` 5489fi 5490 5491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5492done 5493case $ac_lo in 5494?*) ac_cv_sizeof_unsigned_char=$ac_lo;; 5495'') if test "$ac_cv_type_unsigned_char" = yes; then 5496 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char) 5497See \`config.log' for more details." >&5 5498echo "$as_me: error: cannot compute sizeof (unsigned char) 5499See \`config.log' for more details." >&2;} 5500 { (exit 77); exit 77; }; } 5501 else 5502 ac_cv_sizeof_unsigned_char=0 5503 fi ;; 5504esac 5505else 5506 cat >conftest.$ac_ext <<_ACEOF 5507/* confdefs.h. */ 5508_ACEOF 5509cat confdefs.h >>conftest.$ac_ext 5510cat >>conftest.$ac_ext <<_ACEOF 5511/* end confdefs.h. */ 5512$ac_includes_default 5513 typedef unsigned char ac__type_sizeof_; 5514static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 5515static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 5516#include <stdio.h> 5517#include <stdlib.h> 5518int 5519main () 5520{ 5521 5522 FILE *f = fopen ("conftest.val", "w"); 5523 if (! f) 5524 return 1; 5525 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 5526 { 5527 long int i = longval (); 5528 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 5529 return 1; 5530 fprintf (f, "%ld\n", i); 5531 } 5532 else 5533 { 5534 unsigned long int i = ulongval (); 5535 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 5536 return 1; 5537 fprintf (f, "%lu\n", i); 5538 } 5539 return ferror (f) || fclose (f) != 0; 5540 5541 ; 5542 return 0; 5543} 5544_ACEOF 5545rm -f conftest$ac_exeext 5546if { (ac_try="$ac_link" 5547case "(($ac_try" in 5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5549 *) ac_try_echo=$ac_try;; 5550esac 5551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5552 (eval "$ac_link") 2>&5 5553 ac_status=$? 5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5556 { (case "(($ac_try" in 5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5558 *) ac_try_echo=$ac_try;; 5559esac 5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5561 (eval "$ac_try") 2>&5 5562 ac_status=$? 5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5564 (exit $ac_status); }; }; then 5565 ac_cv_sizeof_unsigned_char=`cat conftest.val` 5566else 5567 echo "$as_me: program exited with status $ac_status" >&5 5568echo "$as_me: failed program was:" >&5 5569sed 's/^/| /' conftest.$ac_ext >&5 5570 5571( exit $ac_status ) 5572if test "$ac_cv_type_unsigned_char" = yes; then 5573 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char) 5574See \`config.log' for more details." >&5 5575echo "$as_me: error: cannot compute sizeof (unsigned char) 5576See \`config.log' for more details." >&2;} 5577 { (exit 77); exit 77; }; } 5578 else 5579 ac_cv_sizeof_unsigned_char=0 5580 fi 5581fi 5582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5583fi 5584rm -f conftest.val 5585fi 5586{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5 5587echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; } 5588 5589 5590 5591cat >>confdefs.h <<_ACEOF 5592#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char 5593_ACEOF 5594 5595 5596{ echo "$as_me:$LINENO: checking for unsigned short" >&5 5597echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; } 5598if test "${ac_cv_type_unsigned_short+set}" = set; then 5599 echo $ECHO_N "(cached) $ECHO_C" >&6 5600else 5601 cat >conftest.$ac_ext <<_ACEOF 5602/* confdefs.h. */ 5603_ACEOF 5604cat confdefs.h >>conftest.$ac_ext 5605cat >>conftest.$ac_ext <<_ACEOF 5606/* end confdefs.h. */ 5607$ac_includes_default 5608typedef unsigned short ac__type_new_; 5609int 5610main () 5611{ 5612if ((ac__type_new_ *) 0) 5613 return 0; 5614if (sizeof (ac__type_new_)) 5615 return 0; 5616 ; 5617 return 0; 5618} 5619_ACEOF 5620rm -f conftest.$ac_objext 5621if { (ac_try="$ac_compile" 5622case "(($ac_try" in 5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5624 *) ac_try_echo=$ac_try;; 5625esac 5626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5627 (eval "$ac_compile") 2>conftest.er1 5628 ac_status=$? 5629 grep -v '^ *+' conftest.er1 >conftest.err 5630 rm -f conftest.er1 5631 cat conftest.err >&5 5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5633 (exit $ac_status); } && { 5634 test -z "$ac_c_werror_flag" || 5635 test ! -s conftest.err 5636 } && test -s conftest.$ac_objext; then 5637 ac_cv_type_unsigned_short=yes 5638else 5639 echo "$as_me: failed program was:" >&5 5640sed 's/^/| /' conftest.$ac_ext >&5 5641 5642 ac_cv_type_unsigned_short=no 5643fi 5644 5645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5646fi 5647{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5 5648echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; } 5649 5650# The cast to long int works around a bug in the HP C Compiler 5651# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5652# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5653# This bug is HP SR number 8606223364. 5654{ echo "$as_me:$LINENO: checking size of unsigned short" >&5 5655echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; } 5656if test "${ac_cv_sizeof_unsigned_short+set}" = set; then 5657 echo $ECHO_N "(cached) $ECHO_C" >&6 5658else 5659 if test "$cross_compiling" = yes; then 5660 # Depending upon the size, compute the lo and hi bounds. 5661cat >conftest.$ac_ext <<_ACEOF 5662/* confdefs.h. */ 5663_ACEOF 5664cat confdefs.h >>conftest.$ac_ext 5665cat >>conftest.$ac_ext <<_ACEOF 5666/* end confdefs.h. */ 5667$ac_includes_default 5668 typedef unsigned short ac__type_sizeof_; 5669int 5670main () 5671{ 5672static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 5673test_array [0] = 0 5674 5675 ; 5676 return 0; 5677} 5678_ACEOF 5679rm -f conftest.$ac_objext 5680if { (ac_try="$ac_compile" 5681case "(($ac_try" in 5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5683 *) ac_try_echo=$ac_try;; 5684esac 5685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5686 (eval "$ac_compile") 2>conftest.er1 5687 ac_status=$? 5688 grep -v '^ *+' conftest.er1 >conftest.err 5689 rm -f conftest.er1 5690 cat conftest.err >&5 5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5692 (exit $ac_status); } && { 5693 test -z "$ac_c_werror_flag" || 5694 test ! -s conftest.err 5695 } && test -s conftest.$ac_objext; then 5696 ac_lo=0 ac_mid=0 5697 while :; do 5698 cat >conftest.$ac_ext <<_ACEOF 5699/* confdefs.h. */ 5700_ACEOF 5701cat confdefs.h >>conftest.$ac_ext 5702cat >>conftest.$ac_ext <<_ACEOF 5703/* end confdefs.h. */ 5704$ac_includes_default 5705 typedef unsigned short ac__type_sizeof_; 5706int 5707main () 5708{ 5709static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 5710test_array [0] = 0 5711 5712 ; 5713 return 0; 5714} 5715_ACEOF 5716rm -f conftest.$ac_objext 5717if { (ac_try="$ac_compile" 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_compile") 2>conftest.er1 5724 ac_status=$? 5725 grep -v '^ *+' conftest.er1 >conftest.err 5726 rm -f conftest.er1 5727 cat conftest.err >&5 5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5729 (exit $ac_status); } && { 5730 test -z "$ac_c_werror_flag" || 5731 test ! -s conftest.err 5732 } && test -s conftest.$ac_objext; then 5733 ac_hi=$ac_mid; break 5734else 5735 echo "$as_me: failed program was:" >&5 5736sed 's/^/| /' conftest.$ac_ext >&5 5737 5738 ac_lo=`expr $ac_mid + 1` 5739 if test $ac_lo -le $ac_mid; then 5740 ac_lo= ac_hi= 5741 break 5742 fi 5743 ac_mid=`expr 2 '*' $ac_mid + 1` 5744fi 5745 5746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5747 done 5748else 5749 echo "$as_me: failed program was:" >&5 5750sed 's/^/| /' conftest.$ac_ext >&5 5751 5752 cat >conftest.$ac_ext <<_ACEOF 5753/* confdefs.h. */ 5754_ACEOF 5755cat confdefs.h >>conftest.$ac_ext 5756cat >>conftest.$ac_ext <<_ACEOF 5757/* end confdefs.h. */ 5758$ac_includes_default 5759 typedef unsigned short ac__type_sizeof_; 5760int 5761main () 5762{ 5763static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 5764test_array [0] = 0 5765 5766 ; 5767 return 0; 5768} 5769_ACEOF 5770rm -f conftest.$ac_objext 5771if { (ac_try="$ac_compile" 5772case "(($ac_try" in 5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5774 *) ac_try_echo=$ac_try;; 5775esac 5776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5777 (eval "$ac_compile") 2>conftest.er1 5778 ac_status=$? 5779 grep -v '^ *+' conftest.er1 >conftest.err 5780 rm -f conftest.er1 5781 cat conftest.err >&5 5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5783 (exit $ac_status); } && { 5784 test -z "$ac_c_werror_flag" || 5785 test ! -s conftest.err 5786 } && test -s conftest.$ac_objext; then 5787 ac_hi=-1 ac_mid=-1 5788 while :; do 5789 cat >conftest.$ac_ext <<_ACEOF 5790/* confdefs.h. */ 5791_ACEOF 5792cat confdefs.h >>conftest.$ac_ext 5793cat >>conftest.$ac_ext <<_ACEOF 5794/* end confdefs.h. */ 5795$ac_includes_default 5796 typedef unsigned short ac__type_sizeof_; 5797int 5798main () 5799{ 5800static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 5801test_array [0] = 0 5802 5803 ; 5804 return 0; 5805} 5806_ACEOF 5807rm -f conftest.$ac_objext 5808if { (ac_try="$ac_compile" 5809case "(($ac_try" in 5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5811 *) ac_try_echo=$ac_try;; 5812esac 5813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5814 (eval "$ac_compile") 2>conftest.er1 5815 ac_status=$? 5816 grep -v '^ *+' conftest.er1 >conftest.err 5817 rm -f conftest.er1 5818 cat conftest.err >&5 5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5820 (exit $ac_status); } && { 5821 test -z "$ac_c_werror_flag" || 5822 test ! -s conftest.err 5823 } && test -s conftest.$ac_objext; then 5824 ac_lo=$ac_mid; break 5825else 5826 echo "$as_me: failed program was:" >&5 5827sed 's/^/| /' conftest.$ac_ext >&5 5828 5829 ac_hi=`expr '(' $ac_mid ')' - 1` 5830 if test $ac_mid -le $ac_hi; then 5831 ac_lo= ac_hi= 5832 break 5833 fi 5834 ac_mid=`expr 2 '*' $ac_mid` 5835fi 5836 5837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5838 done 5839else 5840 echo "$as_me: failed program was:" >&5 5841sed 's/^/| /' conftest.$ac_ext >&5 5842 5843 ac_lo= ac_hi= 5844fi 5845 5846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5847fi 5848 5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5850# Binary search between lo and hi bounds. 5851while test "x$ac_lo" != "x$ac_hi"; do 5852 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 5853 cat >conftest.$ac_ext <<_ACEOF 5854/* confdefs.h. */ 5855_ACEOF 5856cat confdefs.h >>conftest.$ac_ext 5857cat >>conftest.$ac_ext <<_ACEOF 5858/* end confdefs.h. */ 5859$ac_includes_default 5860 typedef unsigned short ac__type_sizeof_; 5861int 5862main () 5863{ 5864static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 5865test_array [0] = 0 5866 5867 ; 5868 return 0; 5869} 5870_ACEOF 5871rm -f conftest.$ac_objext 5872if { (ac_try="$ac_compile" 5873case "(($ac_try" in 5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5875 *) ac_try_echo=$ac_try;; 5876esac 5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5878 (eval "$ac_compile") 2>conftest.er1 5879 ac_status=$? 5880 grep -v '^ *+' conftest.er1 >conftest.err 5881 rm -f conftest.er1 5882 cat conftest.err >&5 5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5884 (exit $ac_status); } && { 5885 test -z "$ac_c_werror_flag" || 5886 test ! -s conftest.err 5887 } && test -s conftest.$ac_objext; then 5888 ac_hi=$ac_mid 5889else 5890 echo "$as_me: failed program was:" >&5 5891sed 's/^/| /' conftest.$ac_ext >&5 5892 5893 ac_lo=`expr '(' $ac_mid ')' + 1` 5894fi 5895 5896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5897done 5898case $ac_lo in 5899?*) ac_cv_sizeof_unsigned_short=$ac_lo;; 5900'') if test "$ac_cv_type_unsigned_short" = yes; then 5901 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short) 5902See \`config.log' for more details." >&5 5903echo "$as_me: error: cannot compute sizeof (unsigned short) 5904See \`config.log' for more details." >&2;} 5905 { (exit 77); exit 77; }; } 5906 else 5907 ac_cv_sizeof_unsigned_short=0 5908 fi ;; 5909esac 5910else 5911 cat >conftest.$ac_ext <<_ACEOF 5912/* confdefs.h. */ 5913_ACEOF 5914cat confdefs.h >>conftest.$ac_ext 5915cat >>conftest.$ac_ext <<_ACEOF 5916/* end confdefs.h. */ 5917$ac_includes_default 5918 typedef unsigned short ac__type_sizeof_; 5919static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 5920static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 5921#include <stdio.h> 5922#include <stdlib.h> 5923int 5924main () 5925{ 5926 5927 FILE *f = fopen ("conftest.val", "w"); 5928 if (! f) 5929 return 1; 5930 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 5931 { 5932 long int i = longval (); 5933 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 5934 return 1; 5935 fprintf (f, "%ld\n", i); 5936 } 5937 else 5938 { 5939 unsigned long int i = ulongval (); 5940 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 5941 return 1; 5942 fprintf (f, "%lu\n", i); 5943 } 5944 return ferror (f) || fclose (f) != 0; 5945 5946 ; 5947 return 0; 5948} 5949_ACEOF 5950rm -f conftest$ac_exeext 5951if { (ac_try="$ac_link" 5952case "(($ac_try" in 5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5954 *) ac_try_echo=$ac_try;; 5955esac 5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5957 (eval "$ac_link") 2>&5 5958 ac_status=$? 5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5961 { (case "(($ac_try" in 5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5963 *) ac_try_echo=$ac_try;; 5964esac 5965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5966 (eval "$ac_try") 2>&5 5967 ac_status=$? 5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5969 (exit $ac_status); }; }; then 5970 ac_cv_sizeof_unsigned_short=`cat conftest.val` 5971else 5972 echo "$as_me: program exited with status $ac_status" >&5 5973echo "$as_me: failed program was:" >&5 5974sed 's/^/| /' conftest.$ac_ext >&5 5975 5976( exit $ac_status ) 5977if test "$ac_cv_type_unsigned_short" = yes; then 5978 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short) 5979See \`config.log' for more details." >&5 5980echo "$as_me: error: cannot compute sizeof (unsigned short) 5981See \`config.log' for more details." >&2;} 5982 { (exit 77); exit 77; }; } 5983 else 5984 ac_cv_sizeof_unsigned_short=0 5985 fi 5986fi 5987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5988fi 5989rm -f conftest.val 5990fi 5991{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5 5992echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; } 5993 5994 5995 5996cat >>confdefs.h <<_ACEOF 5997#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 5998_ACEOF 5999 6000 6001{ echo "$as_me:$LINENO: checking for unsigned int" >&5 6002echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; } 6003if test "${ac_cv_type_unsigned_int+set}" = set; then 6004 echo $ECHO_N "(cached) $ECHO_C" >&6 6005else 6006 cat >conftest.$ac_ext <<_ACEOF 6007/* confdefs.h. */ 6008_ACEOF 6009cat confdefs.h >>conftest.$ac_ext 6010cat >>conftest.$ac_ext <<_ACEOF 6011/* end confdefs.h. */ 6012$ac_includes_default 6013typedef unsigned int ac__type_new_; 6014int 6015main () 6016{ 6017if ((ac__type_new_ *) 0) 6018 return 0; 6019if (sizeof (ac__type_new_)) 6020 return 0; 6021 ; 6022 return 0; 6023} 6024_ACEOF 6025rm -f conftest.$ac_objext 6026if { (ac_try="$ac_compile" 6027case "(($ac_try" in 6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6029 *) ac_try_echo=$ac_try;; 6030esac 6031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6032 (eval "$ac_compile") 2>conftest.er1 6033 ac_status=$? 6034 grep -v '^ *+' conftest.er1 >conftest.err 6035 rm -f conftest.er1 6036 cat conftest.err >&5 6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6038 (exit $ac_status); } && { 6039 test -z "$ac_c_werror_flag" || 6040 test ! -s conftest.err 6041 } && test -s conftest.$ac_objext; then 6042 ac_cv_type_unsigned_int=yes 6043else 6044 echo "$as_me: failed program was:" >&5 6045sed 's/^/| /' conftest.$ac_ext >&5 6046 6047 ac_cv_type_unsigned_int=no 6048fi 6049 6050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6051fi 6052{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5 6053echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; } 6054 6055# The cast to long int works around a bug in the HP C Compiler 6056# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6057# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6058# This bug is HP SR number 8606223364. 6059{ echo "$as_me:$LINENO: checking size of unsigned int" >&5 6060echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; } 6061if test "${ac_cv_sizeof_unsigned_int+set}" = set; then 6062 echo $ECHO_N "(cached) $ECHO_C" >&6 6063else 6064 if test "$cross_compiling" = yes; then 6065 # Depending upon the size, compute the lo and hi bounds. 6066cat >conftest.$ac_ext <<_ACEOF 6067/* confdefs.h. */ 6068_ACEOF 6069cat confdefs.h >>conftest.$ac_ext 6070cat >>conftest.$ac_ext <<_ACEOF 6071/* end confdefs.h. */ 6072$ac_includes_default 6073 typedef unsigned int ac__type_sizeof_; 6074int 6075main () 6076{ 6077static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 6078test_array [0] = 0 6079 6080 ; 6081 return 0; 6082} 6083_ACEOF 6084rm -f conftest.$ac_objext 6085if { (ac_try="$ac_compile" 6086case "(($ac_try" in 6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6088 *) ac_try_echo=$ac_try;; 6089esac 6090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6091 (eval "$ac_compile") 2>conftest.er1 6092 ac_status=$? 6093 grep -v '^ *+' conftest.er1 >conftest.err 6094 rm -f conftest.er1 6095 cat conftest.err >&5 6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6097 (exit $ac_status); } && { 6098 test -z "$ac_c_werror_flag" || 6099 test ! -s conftest.err 6100 } && test -s conftest.$ac_objext; then 6101 ac_lo=0 ac_mid=0 6102 while :; do 6103 cat >conftest.$ac_ext <<_ACEOF 6104/* confdefs.h. */ 6105_ACEOF 6106cat confdefs.h >>conftest.$ac_ext 6107cat >>conftest.$ac_ext <<_ACEOF 6108/* end confdefs.h. */ 6109$ac_includes_default 6110 typedef unsigned int ac__type_sizeof_; 6111int 6112main () 6113{ 6114static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6115test_array [0] = 0 6116 6117 ; 6118 return 0; 6119} 6120_ACEOF 6121rm -f conftest.$ac_objext 6122if { (ac_try="$ac_compile" 6123case "(($ac_try" in 6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6125 *) ac_try_echo=$ac_try;; 6126esac 6127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6128 (eval "$ac_compile") 2>conftest.er1 6129 ac_status=$? 6130 grep -v '^ *+' conftest.er1 >conftest.err 6131 rm -f conftest.er1 6132 cat conftest.err >&5 6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6134 (exit $ac_status); } && { 6135 test -z "$ac_c_werror_flag" || 6136 test ! -s conftest.err 6137 } && test -s conftest.$ac_objext; then 6138 ac_hi=$ac_mid; break 6139else 6140 echo "$as_me: failed program was:" >&5 6141sed 's/^/| /' conftest.$ac_ext >&5 6142 6143 ac_lo=`expr $ac_mid + 1` 6144 if test $ac_lo -le $ac_mid; then 6145 ac_lo= ac_hi= 6146 break 6147 fi 6148 ac_mid=`expr 2 '*' $ac_mid + 1` 6149fi 6150 6151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6152 done 6153else 6154 echo "$as_me: failed program was:" >&5 6155sed 's/^/| /' conftest.$ac_ext >&5 6156 6157 cat >conftest.$ac_ext <<_ACEOF 6158/* confdefs.h. */ 6159_ACEOF 6160cat confdefs.h >>conftest.$ac_ext 6161cat >>conftest.$ac_ext <<_ACEOF 6162/* end confdefs.h. */ 6163$ac_includes_default 6164 typedef unsigned int ac__type_sizeof_; 6165int 6166main () 6167{ 6168static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 6169test_array [0] = 0 6170 6171 ; 6172 return 0; 6173} 6174_ACEOF 6175rm -f conftest.$ac_objext 6176if { (ac_try="$ac_compile" 6177case "(($ac_try" in 6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6179 *) ac_try_echo=$ac_try;; 6180esac 6181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6182 (eval "$ac_compile") 2>conftest.er1 6183 ac_status=$? 6184 grep -v '^ *+' conftest.er1 >conftest.err 6185 rm -f conftest.er1 6186 cat conftest.err >&5 6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6188 (exit $ac_status); } && { 6189 test -z "$ac_c_werror_flag" || 6190 test ! -s conftest.err 6191 } && test -s conftest.$ac_objext; then 6192 ac_hi=-1 ac_mid=-1 6193 while :; do 6194 cat >conftest.$ac_ext <<_ACEOF 6195/* confdefs.h. */ 6196_ACEOF 6197cat confdefs.h >>conftest.$ac_ext 6198cat >>conftest.$ac_ext <<_ACEOF 6199/* end confdefs.h. */ 6200$ac_includes_default 6201 typedef unsigned int ac__type_sizeof_; 6202int 6203main () 6204{ 6205static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 6206test_array [0] = 0 6207 6208 ; 6209 return 0; 6210} 6211_ACEOF 6212rm -f conftest.$ac_objext 6213if { (ac_try="$ac_compile" 6214case "(($ac_try" in 6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6216 *) ac_try_echo=$ac_try;; 6217esac 6218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6219 (eval "$ac_compile") 2>conftest.er1 6220 ac_status=$? 6221 grep -v '^ *+' conftest.er1 >conftest.err 6222 rm -f conftest.er1 6223 cat conftest.err >&5 6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6225 (exit $ac_status); } && { 6226 test -z "$ac_c_werror_flag" || 6227 test ! -s conftest.err 6228 } && test -s conftest.$ac_objext; then 6229 ac_lo=$ac_mid; break 6230else 6231 echo "$as_me: failed program was:" >&5 6232sed 's/^/| /' conftest.$ac_ext >&5 6233 6234 ac_hi=`expr '(' $ac_mid ')' - 1` 6235 if test $ac_mid -le $ac_hi; then 6236 ac_lo= ac_hi= 6237 break 6238 fi 6239 ac_mid=`expr 2 '*' $ac_mid` 6240fi 6241 6242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6243 done 6244else 6245 echo "$as_me: failed program was:" >&5 6246sed 's/^/| /' conftest.$ac_ext >&5 6247 6248 ac_lo= ac_hi= 6249fi 6250 6251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6252fi 6253 6254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6255# Binary search between lo and hi bounds. 6256while test "x$ac_lo" != "x$ac_hi"; do 6257 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6258 cat >conftest.$ac_ext <<_ACEOF 6259/* confdefs.h. */ 6260_ACEOF 6261cat confdefs.h >>conftest.$ac_ext 6262cat >>conftest.$ac_ext <<_ACEOF 6263/* end confdefs.h. */ 6264$ac_includes_default 6265 typedef unsigned int ac__type_sizeof_; 6266int 6267main () 6268{ 6269static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6270test_array [0] = 0 6271 6272 ; 6273 return 0; 6274} 6275_ACEOF 6276rm -f conftest.$ac_objext 6277if { (ac_try="$ac_compile" 6278case "(($ac_try" in 6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6280 *) ac_try_echo=$ac_try;; 6281esac 6282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6283 (eval "$ac_compile") 2>conftest.er1 6284 ac_status=$? 6285 grep -v '^ *+' conftest.er1 >conftest.err 6286 rm -f conftest.er1 6287 cat conftest.err >&5 6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6289 (exit $ac_status); } && { 6290 test -z "$ac_c_werror_flag" || 6291 test ! -s conftest.err 6292 } && test -s conftest.$ac_objext; then 6293 ac_hi=$ac_mid 6294else 6295 echo "$as_me: failed program was:" >&5 6296sed 's/^/| /' conftest.$ac_ext >&5 6297 6298 ac_lo=`expr '(' $ac_mid ')' + 1` 6299fi 6300 6301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6302done 6303case $ac_lo in 6304?*) ac_cv_sizeof_unsigned_int=$ac_lo;; 6305'') if test "$ac_cv_type_unsigned_int" = yes; then 6306 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int) 6307See \`config.log' for more details." >&5 6308echo "$as_me: error: cannot compute sizeof (unsigned int) 6309See \`config.log' for more details." >&2;} 6310 { (exit 77); exit 77; }; } 6311 else 6312 ac_cv_sizeof_unsigned_int=0 6313 fi ;; 6314esac 6315else 6316 cat >conftest.$ac_ext <<_ACEOF 6317/* confdefs.h. */ 6318_ACEOF 6319cat confdefs.h >>conftest.$ac_ext 6320cat >>conftest.$ac_ext <<_ACEOF 6321/* end confdefs.h. */ 6322$ac_includes_default 6323 typedef unsigned int ac__type_sizeof_; 6324static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 6325static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 6326#include <stdio.h> 6327#include <stdlib.h> 6328int 6329main () 6330{ 6331 6332 FILE *f = fopen ("conftest.val", "w"); 6333 if (! f) 6334 return 1; 6335 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 6336 { 6337 long int i = longval (); 6338 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6339 return 1; 6340 fprintf (f, "%ld\n", i); 6341 } 6342 else 6343 { 6344 unsigned long int i = ulongval (); 6345 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6346 return 1; 6347 fprintf (f, "%lu\n", i); 6348 } 6349 return ferror (f) || fclose (f) != 0; 6350 6351 ; 6352 return 0; 6353} 6354_ACEOF 6355rm -f conftest$ac_exeext 6356if { (ac_try="$ac_link" 6357case "(($ac_try" in 6358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6359 *) ac_try_echo=$ac_try;; 6360esac 6361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6362 (eval "$ac_link") 2>&5 6363 ac_status=$? 6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6366 { (case "(($ac_try" in 6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6368 *) ac_try_echo=$ac_try;; 6369esac 6370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6371 (eval "$ac_try") 2>&5 6372 ac_status=$? 6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6374 (exit $ac_status); }; }; then 6375 ac_cv_sizeof_unsigned_int=`cat conftest.val` 6376else 6377 echo "$as_me: program exited with status $ac_status" >&5 6378echo "$as_me: failed program was:" >&5 6379sed 's/^/| /' conftest.$ac_ext >&5 6380 6381( exit $ac_status ) 6382if test "$ac_cv_type_unsigned_int" = yes; then 6383 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int) 6384See \`config.log' for more details." >&5 6385echo "$as_me: error: cannot compute sizeof (unsigned int) 6386See \`config.log' for more details." >&2;} 6387 { (exit 77); exit 77; }; } 6388 else 6389 ac_cv_sizeof_unsigned_int=0 6390 fi 6391fi 6392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6393fi 6394rm -f conftest.val 6395fi 6396{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5 6397echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; } 6398 6399 6400 6401cat >>confdefs.h <<_ACEOF 6402#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 6403_ACEOF 6404 6405 6406{ echo "$as_me:$LINENO: checking for unsigned long" >&5 6407echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; } 6408if test "${ac_cv_type_unsigned_long+set}" = set; then 6409 echo $ECHO_N "(cached) $ECHO_C" >&6 6410else 6411 cat >conftest.$ac_ext <<_ACEOF 6412/* confdefs.h. */ 6413_ACEOF 6414cat confdefs.h >>conftest.$ac_ext 6415cat >>conftest.$ac_ext <<_ACEOF 6416/* end confdefs.h. */ 6417$ac_includes_default 6418typedef unsigned long ac__type_new_; 6419int 6420main () 6421{ 6422if ((ac__type_new_ *) 0) 6423 return 0; 6424if (sizeof (ac__type_new_)) 6425 return 0; 6426 ; 6427 return 0; 6428} 6429_ACEOF 6430rm -f conftest.$ac_objext 6431if { (ac_try="$ac_compile" 6432case "(($ac_try" in 6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6434 *) ac_try_echo=$ac_try;; 6435esac 6436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6437 (eval "$ac_compile") 2>conftest.er1 6438 ac_status=$? 6439 grep -v '^ *+' conftest.er1 >conftest.err 6440 rm -f conftest.er1 6441 cat conftest.err >&5 6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6443 (exit $ac_status); } && { 6444 test -z "$ac_c_werror_flag" || 6445 test ! -s conftest.err 6446 } && test -s conftest.$ac_objext; then 6447 ac_cv_type_unsigned_long=yes 6448else 6449 echo "$as_me: failed program was:" >&5 6450sed 's/^/| /' conftest.$ac_ext >&5 6451 6452 ac_cv_type_unsigned_long=no 6453fi 6454 6455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6456fi 6457{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5 6458echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; } 6459 6460# The cast to long int works around a bug in the HP C Compiler 6461# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6462# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6463# This bug is HP SR number 8606223364. 6464{ echo "$as_me:$LINENO: checking size of unsigned long" >&5 6465echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; } 6466if test "${ac_cv_sizeof_unsigned_long+set}" = set; then 6467 echo $ECHO_N "(cached) $ECHO_C" >&6 6468else 6469 if test "$cross_compiling" = yes; then 6470 # Depending upon the size, compute the lo and hi bounds. 6471cat >conftest.$ac_ext <<_ACEOF 6472/* confdefs.h. */ 6473_ACEOF 6474cat confdefs.h >>conftest.$ac_ext 6475cat >>conftest.$ac_ext <<_ACEOF 6476/* end confdefs.h. */ 6477$ac_includes_default 6478 typedef unsigned long ac__type_sizeof_; 6479int 6480main () 6481{ 6482static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 6483test_array [0] = 0 6484 6485 ; 6486 return 0; 6487} 6488_ACEOF 6489rm -f conftest.$ac_objext 6490if { (ac_try="$ac_compile" 6491case "(($ac_try" in 6492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6493 *) ac_try_echo=$ac_try;; 6494esac 6495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6496 (eval "$ac_compile") 2>conftest.er1 6497 ac_status=$? 6498 grep -v '^ *+' conftest.er1 >conftest.err 6499 rm -f conftest.er1 6500 cat conftest.err >&5 6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6502 (exit $ac_status); } && { 6503 test -z "$ac_c_werror_flag" || 6504 test ! -s conftest.err 6505 } && test -s conftest.$ac_objext; then 6506 ac_lo=0 ac_mid=0 6507 while :; do 6508 cat >conftest.$ac_ext <<_ACEOF 6509/* confdefs.h. */ 6510_ACEOF 6511cat confdefs.h >>conftest.$ac_ext 6512cat >>conftest.$ac_ext <<_ACEOF 6513/* end confdefs.h. */ 6514$ac_includes_default 6515 typedef unsigned long ac__type_sizeof_; 6516int 6517main () 6518{ 6519static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6520test_array [0] = 0 6521 6522 ; 6523 return 0; 6524} 6525_ACEOF 6526rm -f conftest.$ac_objext 6527if { (ac_try="$ac_compile" 6528case "(($ac_try" in 6529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6530 *) ac_try_echo=$ac_try;; 6531esac 6532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6533 (eval "$ac_compile") 2>conftest.er1 6534 ac_status=$? 6535 grep -v '^ *+' conftest.er1 >conftest.err 6536 rm -f conftest.er1 6537 cat conftest.err >&5 6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6539 (exit $ac_status); } && { 6540 test -z "$ac_c_werror_flag" || 6541 test ! -s conftest.err 6542 } && test -s conftest.$ac_objext; then 6543 ac_hi=$ac_mid; break 6544else 6545 echo "$as_me: failed program was:" >&5 6546sed 's/^/| /' conftest.$ac_ext >&5 6547 6548 ac_lo=`expr $ac_mid + 1` 6549 if test $ac_lo -le $ac_mid; then 6550 ac_lo= ac_hi= 6551 break 6552 fi 6553 ac_mid=`expr 2 '*' $ac_mid + 1` 6554fi 6555 6556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6557 done 6558else 6559 echo "$as_me: failed program was:" >&5 6560sed 's/^/| /' conftest.$ac_ext >&5 6561 6562 cat >conftest.$ac_ext <<_ACEOF 6563/* confdefs.h. */ 6564_ACEOF 6565cat confdefs.h >>conftest.$ac_ext 6566cat >>conftest.$ac_ext <<_ACEOF 6567/* end confdefs.h. */ 6568$ac_includes_default 6569 typedef unsigned long ac__type_sizeof_; 6570int 6571main () 6572{ 6573static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 6574test_array [0] = 0 6575 6576 ; 6577 return 0; 6578} 6579_ACEOF 6580rm -f conftest.$ac_objext 6581if { (ac_try="$ac_compile" 6582case "(($ac_try" in 6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6584 *) ac_try_echo=$ac_try;; 6585esac 6586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6587 (eval "$ac_compile") 2>conftest.er1 6588 ac_status=$? 6589 grep -v '^ *+' conftest.er1 >conftest.err 6590 rm -f conftest.er1 6591 cat conftest.err >&5 6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6593 (exit $ac_status); } && { 6594 test -z "$ac_c_werror_flag" || 6595 test ! -s conftest.err 6596 } && test -s conftest.$ac_objext; then 6597 ac_hi=-1 ac_mid=-1 6598 while :; do 6599 cat >conftest.$ac_ext <<_ACEOF 6600/* confdefs.h. */ 6601_ACEOF 6602cat confdefs.h >>conftest.$ac_ext 6603cat >>conftest.$ac_ext <<_ACEOF 6604/* end confdefs.h. */ 6605$ac_includes_default 6606 typedef unsigned long ac__type_sizeof_; 6607int 6608main () 6609{ 6610static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 6611test_array [0] = 0 6612 6613 ; 6614 return 0; 6615} 6616_ACEOF 6617rm -f conftest.$ac_objext 6618if { (ac_try="$ac_compile" 6619case "(($ac_try" in 6620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6621 *) ac_try_echo=$ac_try;; 6622esac 6623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6624 (eval "$ac_compile") 2>conftest.er1 6625 ac_status=$? 6626 grep -v '^ *+' conftest.er1 >conftest.err 6627 rm -f conftest.er1 6628 cat conftest.err >&5 6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6630 (exit $ac_status); } && { 6631 test -z "$ac_c_werror_flag" || 6632 test ! -s conftest.err 6633 } && test -s conftest.$ac_objext; then 6634 ac_lo=$ac_mid; break 6635else 6636 echo "$as_me: failed program was:" >&5 6637sed 's/^/| /' conftest.$ac_ext >&5 6638 6639 ac_hi=`expr '(' $ac_mid ')' - 1` 6640 if test $ac_mid -le $ac_hi; then 6641 ac_lo= ac_hi= 6642 break 6643 fi 6644 ac_mid=`expr 2 '*' $ac_mid` 6645fi 6646 6647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6648 done 6649else 6650 echo "$as_me: failed program was:" >&5 6651sed 's/^/| /' conftest.$ac_ext >&5 6652 6653 ac_lo= ac_hi= 6654fi 6655 6656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6657fi 6658 6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6660# Binary search between lo and hi bounds. 6661while test "x$ac_lo" != "x$ac_hi"; do 6662 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6663 cat >conftest.$ac_ext <<_ACEOF 6664/* confdefs.h. */ 6665_ACEOF 6666cat confdefs.h >>conftest.$ac_ext 6667cat >>conftest.$ac_ext <<_ACEOF 6668/* end confdefs.h. */ 6669$ac_includes_default 6670 typedef unsigned long ac__type_sizeof_; 6671int 6672main () 6673{ 6674static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6675test_array [0] = 0 6676 6677 ; 6678 return 0; 6679} 6680_ACEOF 6681rm -f conftest.$ac_objext 6682if { (ac_try="$ac_compile" 6683case "(($ac_try" in 6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6685 *) ac_try_echo=$ac_try;; 6686esac 6687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6688 (eval "$ac_compile") 2>conftest.er1 6689 ac_status=$? 6690 grep -v '^ *+' conftest.er1 >conftest.err 6691 rm -f conftest.er1 6692 cat conftest.err >&5 6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6694 (exit $ac_status); } && { 6695 test -z "$ac_c_werror_flag" || 6696 test ! -s conftest.err 6697 } && test -s conftest.$ac_objext; then 6698 ac_hi=$ac_mid 6699else 6700 echo "$as_me: failed program was:" >&5 6701sed 's/^/| /' conftest.$ac_ext >&5 6702 6703 ac_lo=`expr '(' $ac_mid ')' + 1` 6704fi 6705 6706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6707done 6708case $ac_lo in 6709?*) ac_cv_sizeof_unsigned_long=$ac_lo;; 6710'') if test "$ac_cv_type_unsigned_long" = yes; then 6711 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long) 6712See \`config.log' for more details." >&5 6713echo "$as_me: error: cannot compute sizeof (unsigned long) 6714See \`config.log' for more details." >&2;} 6715 { (exit 77); exit 77; }; } 6716 else 6717 ac_cv_sizeof_unsigned_long=0 6718 fi ;; 6719esac 6720else 6721 cat >conftest.$ac_ext <<_ACEOF 6722/* confdefs.h. */ 6723_ACEOF 6724cat confdefs.h >>conftest.$ac_ext 6725cat >>conftest.$ac_ext <<_ACEOF 6726/* end confdefs.h. */ 6727$ac_includes_default 6728 typedef unsigned long ac__type_sizeof_; 6729static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 6730static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 6731#include <stdio.h> 6732#include <stdlib.h> 6733int 6734main () 6735{ 6736 6737 FILE *f = fopen ("conftest.val", "w"); 6738 if (! f) 6739 return 1; 6740 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 6741 { 6742 long int i = longval (); 6743 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6744 return 1; 6745 fprintf (f, "%ld\n", i); 6746 } 6747 else 6748 { 6749 unsigned long int i = ulongval (); 6750 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6751 return 1; 6752 fprintf (f, "%lu\n", i); 6753 } 6754 return ferror (f) || fclose (f) != 0; 6755 6756 ; 6757 return 0; 6758} 6759_ACEOF 6760rm -f conftest$ac_exeext 6761if { (ac_try="$ac_link" 6762case "(($ac_try" in 6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6764 *) ac_try_echo=$ac_try;; 6765esac 6766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6767 (eval "$ac_link") 2>&5 6768 ac_status=$? 6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6771 { (case "(($ac_try" in 6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6773 *) ac_try_echo=$ac_try;; 6774esac 6775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6776 (eval "$ac_try") 2>&5 6777 ac_status=$? 6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6779 (exit $ac_status); }; }; then 6780 ac_cv_sizeof_unsigned_long=`cat conftest.val` 6781else 6782 echo "$as_me: program exited with status $ac_status" >&5 6783echo "$as_me: failed program was:" >&5 6784sed 's/^/| /' conftest.$ac_ext >&5 6785 6786( exit $ac_status ) 6787if test "$ac_cv_type_unsigned_long" = yes; then 6788 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long) 6789See \`config.log' for more details." >&5 6790echo "$as_me: error: cannot compute sizeof (unsigned long) 6791See \`config.log' for more details." >&2;} 6792 { (exit 77); exit 77; }; } 6793 else 6794 ac_cv_sizeof_unsigned_long=0 6795 fi 6796fi 6797rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6798fi 6799rm -f conftest.val 6800fi 6801{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5 6802echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; } 6803 6804 6805 6806cat >>confdefs.h <<_ACEOF 6807#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 6808_ACEOF 6809 6810 6811{ echo "$as_me:$LINENO: checking for unsigned long long" >&5 6812echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } 6813if test "${ac_cv_type_unsigned_long_long+set}" = set; then 6814 echo $ECHO_N "(cached) $ECHO_C" >&6 6815else 6816 cat >conftest.$ac_ext <<_ACEOF 6817/* confdefs.h. */ 6818_ACEOF 6819cat confdefs.h >>conftest.$ac_ext 6820cat >>conftest.$ac_ext <<_ACEOF 6821/* end confdefs.h. */ 6822$ac_includes_default 6823typedef unsigned long long ac__type_new_; 6824int 6825main () 6826{ 6827if ((ac__type_new_ *) 0) 6828 return 0; 6829if (sizeof (ac__type_new_)) 6830 return 0; 6831 ; 6832 return 0; 6833} 6834_ACEOF 6835rm -f conftest.$ac_objext 6836if { (ac_try="$ac_compile" 6837case "(($ac_try" in 6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6839 *) ac_try_echo=$ac_try;; 6840esac 6841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6842 (eval "$ac_compile") 2>conftest.er1 6843 ac_status=$? 6844 grep -v '^ *+' conftest.er1 >conftest.err 6845 rm -f conftest.er1 6846 cat conftest.err >&5 6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6848 (exit $ac_status); } && { 6849 test -z "$ac_c_werror_flag" || 6850 test ! -s conftest.err 6851 } && test -s conftest.$ac_objext; then 6852 ac_cv_type_unsigned_long_long=yes 6853else 6854 echo "$as_me: failed program was:" >&5 6855sed 's/^/| /' conftest.$ac_ext >&5 6856 6857 ac_cv_type_unsigned_long_long=no 6858fi 6859 6860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6861fi 6862{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 6863echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } 6864 6865# The cast to long int works around a bug in the HP C Compiler 6866# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6867# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6868# This bug is HP SR number 8606223364. 6869{ echo "$as_me:$LINENO: checking size of unsigned long long" >&5 6870echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; } 6871if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then 6872 echo $ECHO_N "(cached) $ECHO_C" >&6 6873else 6874 if test "$cross_compiling" = yes; then 6875 # Depending upon the size, compute the lo and hi bounds. 6876cat >conftest.$ac_ext <<_ACEOF 6877/* confdefs.h. */ 6878_ACEOF 6879cat confdefs.h >>conftest.$ac_ext 6880cat >>conftest.$ac_ext <<_ACEOF 6881/* end confdefs.h. */ 6882$ac_includes_default 6883 typedef unsigned long long ac__type_sizeof_; 6884int 6885main () 6886{ 6887static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 6888test_array [0] = 0 6889 6890 ; 6891 return 0; 6892} 6893_ACEOF 6894rm -f conftest.$ac_objext 6895if { (ac_try="$ac_compile" 6896case "(($ac_try" in 6897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6898 *) ac_try_echo=$ac_try;; 6899esac 6900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6901 (eval "$ac_compile") 2>conftest.er1 6902 ac_status=$? 6903 grep -v '^ *+' conftest.er1 >conftest.err 6904 rm -f conftest.er1 6905 cat conftest.err >&5 6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6907 (exit $ac_status); } && { 6908 test -z "$ac_c_werror_flag" || 6909 test ! -s conftest.err 6910 } && test -s conftest.$ac_objext; then 6911 ac_lo=0 ac_mid=0 6912 while :; do 6913 cat >conftest.$ac_ext <<_ACEOF 6914/* confdefs.h. */ 6915_ACEOF 6916cat confdefs.h >>conftest.$ac_ext 6917cat >>conftest.$ac_ext <<_ACEOF 6918/* end confdefs.h. */ 6919$ac_includes_default 6920 typedef unsigned long long ac__type_sizeof_; 6921int 6922main () 6923{ 6924static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6925test_array [0] = 0 6926 6927 ; 6928 return 0; 6929} 6930_ACEOF 6931rm -f conftest.$ac_objext 6932if { (ac_try="$ac_compile" 6933case "(($ac_try" in 6934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6935 *) ac_try_echo=$ac_try;; 6936esac 6937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6938 (eval "$ac_compile") 2>conftest.er1 6939 ac_status=$? 6940 grep -v '^ *+' conftest.er1 >conftest.err 6941 rm -f conftest.er1 6942 cat conftest.err >&5 6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6944 (exit $ac_status); } && { 6945 test -z "$ac_c_werror_flag" || 6946 test ! -s conftest.err 6947 } && test -s conftest.$ac_objext; then 6948 ac_hi=$ac_mid; break 6949else 6950 echo "$as_me: failed program was:" >&5 6951sed 's/^/| /' conftest.$ac_ext >&5 6952 6953 ac_lo=`expr $ac_mid + 1` 6954 if test $ac_lo -le $ac_mid; then 6955 ac_lo= ac_hi= 6956 break 6957 fi 6958 ac_mid=`expr 2 '*' $ac_mid + 1` 6959fi 6960 6961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6962 done 6963else 6964 echo "$as_me: failed program was:" >&5 6965sed 's/^/| /' conftest.$ac_ext >&5 6966 6967 cat >conftest.$ac_ext <<_ACEOF 6968/* confdefs.h. */ 6969_ACEOF 6970cat confdefs.h >>conftest.$ac_ext 6971cat >>conftest.$ac_ext <<_ACEOF 6972/* end confdefs.h. */ 6973$ac_includes_default 6974 typedef unsigned long long ac__type_sizeof_; 6975int 6976main () 6977{ 6978static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 6979test_array [0] = 0 6980 6981 ; 6982 return 0; 6983} 6984_ACEOF 6985rm -f conftest.$ac_objext 6986if { (ac_try="$ac_compile" 6987case "(($ac_try" in 6988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6989 *) ac_try_echo=$ac_try;; 6990esac 6991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6992 (eval "$ac_compile") 2>conftest.er1 6993 ac_status=$? 6994 grep -v '^ *+' conftest.er1 >conftest.err 6995 rm -f conftest.er1 6996 cat conftest.err >&5 6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6998 (exit $ac_status); } && { 6999 test -z "$ac_c_werror_flag" || 7000 test ! -s conftest.err 7001 } && test -s conftest.$ac_objext; then 7002 ac_hi=-1 ac_mid=-1 7003 while :; do 7004 cat >conftest.$ac_ext <<_ACEOF 7005/* confdefs.h. */ 7006_ACEOF 7007cat confdefs.h >>conftest.$ac_ext 7008cat >>conftest.$ac_ext <<_ACEOF 7009/* end confdefs.h. */ 7010$ac_includes_default 7011 typedef unsigned long long ac__type_sizeof_; 7012int 7013main () 7014{ 7015static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 7016test_array [0] = 0 7017 7018 ; 7019 return 0; 7020} 7021_ACEOF 7022rm -f conftest.$ac_objext 7023if { (ac_try="$ac_compile" 7024case "(($ac_try" in 7025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7026 *) ac_try_echo=$ac_try;; 7027esac 7028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7029 (eval "$ac_compile") 2>conftest.er1 7030 ac_status=$? 7031 grep -v '^ *+' conftest.er1 >conftest.err 7032 rm -f conftest.er1 7033 cat conftest.err >&5 7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7035 (exit $ac_status); } && { 7036 test -z "$ac_c_werror_flag" || 7037 test ! -s conftest.err 7038 } && test -s conftest.$ac_objext; then 7039 ac_lo=$ac_mid; break 7040else 7041 echo "$as_me: failed program was:" >&5 7042sed 's/^/| /' conftest.$ac_ext >&5 7043 7044 ac_hi=`expr '(' $ac_mid ')' - 1` 7045 if test $ac_mid -le $ac_hi; then 7046 ac_lo= ac_hi= 7047 break 7048 fi 7049 ac_mid=`expr 2 '*' $ac_mid` 7050fi 7051 7052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7053 done 7054else 7055 echo "$as_me: failed program was:" >&5 7056sed 's/^/| /' conftest.$ac_ext >&5 7057 7058 ac_lo= ac_hi= 7059fi 7060 7061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7062fi 7063 7064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7065# Binary search between lo and hi bounds. 7066while test "x$ac_lo" != "x$ac_hi"; do 7067 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7068 cat >conftest.$ac_ext <<_ACEOF 7069/* confdefs.h. */ 7070_ACEOF 7071cat confdefs.h >>conftest.$ac_ext 7072cat >>conftest.$ac_ext <<_ACEOF 7073/* end confdefs.h. */ 7074$ac_includes_default 7075 typedef unsigned long long ac__type_sizeof_; 7076int 7077main () 7078{ 7079static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7080test_array [0] = 0 7081 7082 ; 7083 return 0; 7084} 7085_ACEOF 7086rm -f conftest.$ac_objext 7087if { (ac_try="$ac_compile" 7088case "(($ac_try" in 7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7090 *) ac_try_echo=$ac_try;; 7091esac 7092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7093 (eval "$ac_compile") 2>conftest.er1 7094 ac_status=$? 7095 grep -v '^ *+' conftest.er1 >conftest.err 7096 rm -f conftest.er1 7097 cat conftest.err >&5 7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7099 (exit $ac_status); } && { 7100 test -z "$ac_c_werror_flag" || 7101 test ! -s conftest.err 7102 } && test -s conftest.$ac_objext; then 7103 ac_hi=$ac_mid 7104else 7105 echo "$as_me: failed program was:" >&5 7106sed 's/^/| /' conftest.$ac_ext >&5 7107 7108 ac_lo=`expr '(' $ac_mid ')' + 1` 7109fi 7110 7111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7112done 7113case $ac_lo in 7114?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;; 7115'') if test "$ac_cv_type_unsigned_long_long" = yes; then 7116 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long) 7117See \`config.log' for more details." >&5 7118echo "$as_me: error: cannot compute sizeof (unsigned long long) 7119See \`config.log' for more details." >&2;} 7120 { (exit 77); exit 77; }; } 7121 else 7122 ac_cv_sizeof_unsigned_long_long=0 7123 fi ;; 7124esac 7125else 7126 cat >conftest.$ac_ext <<_ACEOF 7127/* confdefs.h. */ 7128_ACEOF 7129cat confdefs.h >>conftest.$ac_ext 7130cat >>conftest.$ac_ext <<_ACEOF 7131/* end confdefs.h. */ 7132$ac_includes_default 7133 typedef unsigned long long ac__type_sizeof_; 7134static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 7135static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 7136#include <stdio.h> 7137#include <stdlib.h> 7138int 7139main () 7140{ 7141 7142 FILE *f = fopen ("conftest.val", "w"); 7143 if (! f) 7144 return 1; 7145 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 7146 { 7147 long int i = longval (); 7148 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7149 return 1; 7150 fprintf (f, "%ld\n", i); 7151 } 7152 else 7153 { 7154 unsigned long int i = ulongval (); 7155 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7156 return 1; 7157 fprintf (f, "%lu\n", i); 7158 } 7159 return ferror (f) || fclose (f) != 0; 7160 7161 ; 7162 return 0; 7163} 7164_ACEOF 7165rm -f conftest$ac_exeext 7166if { (ac_try="$ac_link" 7167case "(($ac_try" in 7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7169 *) ac_try_echo=$ac_try;; 7170esac 7171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7172 (eval "$ac_link") 2>&5 7173 ac_status=$? 7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7176 { (case "(($ac_try" in 7177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7178 *) ac_try_echo=$ac_try;; 7179esac 7180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7181 (eval "$ac_try") 2>&5 7182 ac_status=$? 7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7184 (exit $ac_status); }; }; then 7185 ac_cv_sizeof_unsigned_long_long=`cat conftest.val` 7186else 7187 echo "$as_me: program exited with status $ac_status" >&5 7188echo "$as_me: failed program was:" >&5 7189sed 's/^/| /' conftest.$ac_ext >&5 7190 7191( exit $ac_status ) 7192if test "$ac_cv_type_unsigned_long_long" = yes; then 7193 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long) 7194See \`config.log' for more details." >&5 7195echo "$as_me: error: cannot compute sizeof (unsigned long long) 7196See \`config.log' for more details." >&2;} 7197 { (exit 77); exit 77; }; } 7198 else 7199 ac_cv_sizeof_unsigned_long_long=0 7200 fi 7201fi 7202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7203fi 7204rm -f conftest.val 7205fi 7206{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5 7207echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; } 7208 7209 7210 7211cat >>confdefs.h <<_ACEOF 7212#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 7213_ACEOF 7214 7215 7216{ echo "$as_me:$LINENO: checking for wchar_t" >&5 7217echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } 7218if test "${ac_cv_type_wchar_t+set}" = set; then 7219 echo $ECHO_N "(cached) $ECHO_C" >&6 7220else 7221 cat >conftest.$ac_ext <<_ACEOF 7222/* confdefs.h. */ 7223_ACEOF 7224cat confdefs.h >>conftest.$ac_ext 7225cat >>conftest.$ac_ext <<_ACEOF 7226/* end confdefs.h. */ 7227$ac_includes_default 7228typedef wchar_t ac__type_new_; 7229int 7230main () 7231{ 7232if ((ac__type_new_ *) 0) 7233 return 0; 7234if (sizeof (ac__type_new_)) 7235 return 0; 7236 ; 7237 return 0; 7238} 7239_ACEOF 7240rm -f conftest.$ac_objext 7241if { (ac_try="$ac_compile" 7242case "(($ac_try" in 7243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7244 *) ac_try_echo=$ac_try;; 7245esac 7246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7247 (eval "$ac_compile") 2>conftest.er1 7248 ac_status=$? 7249 grep -v '^ *+' conftest.er1 >conftest.err 7250 rm -f conftest.er1 7251 cat conftest.err >&5 7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7253 (exit $ac_status); } && { 7254 test -z "$ac_c_werror_flag" || 7255 test ! -s conftest.err 7256 } && test -s conftest.$ac_objext; then 7257 ac_cv_type_wchar_t=yes 7258else 7259 echo "$as_me: failed program was:" >&5 7260sed 's/^/| /' conftest.$ac_ext >&5 7261 7262 ac_cv_type_wchar_t=no 7263fi 7264 7265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7266fi 7267{ echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 7268echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; } 7269 7270# The cast to long int works around a bug in the HP C Compiler 7271# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7272# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7273# This bug is HP SR number 8606223364. 7274{ echo "$as_me:$LINENO: checking size of wchar_t" >&5 7275echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; } 7276if test "${ac_cv_sizeof_wchar_t+set}" = set; then 7277 echo $ECHO_N "(cached) $ECHO_C" >&6 7278else 7279 if test "$cross_compiling" = yes; then 7280 # Depending upon the size, compute the lo and hi bounds. 7281cat >conftest.$ac_ext <<_ACEOF 7282/* confdefs.h. */ 7283_ACEOF 7284cat confdefs.h >>conftest.$ac_ext 7285cat >>conftest.$ac_ext <<_ACEOF 7286/* end confdefs.h. */ 7287$ac_includes_default 7288 typedef wchar_t ac__type_sizeof_; 7289int 7290main () 7291{ 7292static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 7293test_array [0] = 0 7294 7295 ; 7296 return 0; 7297} 7298_ACEOF 7299rm -f conftest.$ac_objext 7300if { (ac_try="$ac_compile" 7301case "(($ac_try" in 7302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7303 *) ac_try_echo=$ac_try;; 7304esac 7305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7306 (eval "$ac_compile") 2>conftest.er1 7307 ac_status=$? 7308 grep -v '^ *+' conftest.er1 >conftest.err 7309 rm -f conftest.er1 7310 cat conftest.err >&5 7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7312 (exit $ac_status); } && { 7313 test -z "$ac_c_werror_flag" || 7314 test ! -s conftest.err 7315 } && test -s conftest.$ac_objext; then 7316 ac_lo=0 ac_mid=0 7317 while :; do 7318 cat >conftest.$ac_ext <<_ACEOF 7319/* confdefs.h. */ 7320_ACEOF 7321cat confdefs.h >>conftest.$ac_ext 7322cat >>conftest.$ac_ext <<_ACEOF 7323/* end confdefs.h. */ 7324$ac_includes_default 7325 typedef wchar_t ac__type_sizeof_; 7326int 7327main () 7328{ 7329static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7330test_array [0] = 0 7331 7332 ; 7333 return 0; 7334} 7335_ACEOF 7336rm -f conftest.$ac_objext 7337if { (ac_try="$ac_compile" 7338case "(($ac_try" in 7339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7340 *) ac_try_echo=$ac_try;; 7341esac 7342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7343 (eval "$ac_compile") 2>conftest.er1 7344 ac_status=$? 7345 grep -v '^ *+' conftest.er1 >conftest.err 7346 rm -f conftest.er1 7347 cat conftest.err >&5 7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7349 (exit $ac_status); } && { 7350 test -z "$ac_c_werror_flag" || 7351 test ! -s conftest.err 7352 } && test -s conftest.$ac_objext; then 7353 ac_hi=$ac_mid; break 7354else 7355 echo "$as_me: failed program was:" >&5 7356sed 's/^/| /' conftest.$ac_ext >&5 7357 7358 ac_lo=`expr $ac_mid + 1` 7359 if test $ac_lo -le $ac_mid; then 7360 ac_lo= ac_hi= 7361 break 7362 fi 7363 ac_mid=`expr 2 '*' $ac_mid + 1` 7364fi 7365 7366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7367 done 7368else 7369 echo "$as_me: failed program was:" >&5 7370sed 's/^/| /' conftest.$ac_ext >&5 7371 7372 cat >conftest.$ac_ext <<_ACEOF 7373/* confdefs.h. */ 7374_ACEOF 7375cat confdefs.h >>conftest.$ac_ext 7376cat >>conftest.$ac_ext <<_ACEOF 7377/* end confdefs.h. */ 7378$ac_includes_default 7379 typedef wchar_t ac__type_sizeof_; 7380int 7381main () 7382{ 7383static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 7384test_array [0] = 0 7385 7386 ; 7387 return 0; 7388} 7389_ACEOF 7390rm -f conftest.$ac_objext 7391if { (ac_try="$ac_compile" 7392case "(($ac_try" in 7393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7394 *) ac_try_echo=$ac_try;; 7395esac 7396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7397 (eval "$ac_compile") 2>conftest.er1 7398 ac_status=$? 7399 grep -v '^ *+' conftest.er1 >conftest.err 7400 rm -f conftest.er1 7401 cat conftest.err >&5 7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7403 (exit $ac_status); } && { 7404 test -z "$ac_c_werror_flag" || 7405 test ! -s conftest.err 7406 } && test -s conftest.$ac_objext; then 7407 ac_hi=-1 ac_mid=-1 7408 while :; do 7409 cat >conftest.$ac_ext <<_ACEOF 7410/* confdefs.h. */ 7411_ACEOF 7412cat confdefs.h >>conftest.$ac_ext 7413cat >>conftest.$ac_ext <<_ACEOF 7414/* end confdefs.h. */ 7415$ac_includes_default 7416 typedef wchar_t ac__type_sizeof_; 7417int 7418main () 7419{ 7420static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 7421test_array [0] = 0 7422 7423 ; 7424 return 0; 7425} 7426_ACEOF 7427rm -f conftest.$ac_objext 7428if { (ac_try="$ac_compile" 7429case "(($ac_try" in 7430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7431 *) ac_try_echo=$ac_try;; 7432esac 7433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7434 (eval "$ac_compile") 2>conftest.er1 7435 ac_status=$? 7436 grep -v '^ *+' conftest.er1 >conftest.err 7437 rm -f conftest.er1 7438 cat conftest.err >&5 7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7440 (exit $ac_status); } && { 7441 test -z "$ac_c_werror_flag" || 7442 test ! -s conftest.err 7443 } && test -s conftest.$ac_objext; then 7444 ac_lo=$ac_mid; break 7445else 7446 echo "$as_me: failed program was:" >&5 7447sed 's/^/| /' conftest.$ac_ext >&5 7448 7449 ac_hi=`expr '(' $ac_mid ')' - 1` 7450 if test $ac_mid -le $ac_hi; then 7451 ac_lo= ac_hi= 7452 break 7453 fi 7454 ac_mid=`expr 2 '*' $ac_mid` 7455fi 7456 7457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7458 done 7459else 7460 echo "$as_me: failed program was:" >&5 7461sed 's/^/| /' conftest.$ac_ext >&5 7462 7463 ac_lo= ac_hi= 7464fi 7465 7466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7467fi 7468 7469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7470# Binary search between lo and hi bounds. 7471while test "x$ac_lo" != "x$ac_hi"; do 7472 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7473 cat >conftest.$ac_ext <<_ACEOF 7474/* confdefs.h. */ 7475_ACEOF 7476cat confdefs.h >>conftest.$ac_ext 7477cat >>conftest.$ac_ext <<_ACEOF 7478/* end confdefs.h. */ 7479$ac_includes_default 7480 typedef wchar_t ac__type_sizeof_; 7481int 7482main () 7483{ 7484static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7485test_array [0] = 0 7486 7487 ; 7488 return 0; 7489} 7490_ACEOF 7491rm -f conftest.$ac_objext 7492if { (ac_try="$ac_compile" 7493case "(($ac_try" in 7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7495 *) ac_try_echo=$ac_try;; 7496esac 7497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7498 (eval "$ac_compile") 2>conftest.er1 7499 ac_status=$? 7500 grep -v '^ *+' conftest.er1 >conftest.err 7501 rm -f conftest.er1 7502 cat conftest.err >&5 7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7504 (exit $ac_status); } && { 7505 test -z "$ac_c_werror_flag" || 7506 test ! -s conftest.err 7507 } && test -s conftest.$ac_objext; then 7508 ac_hi=$ac_mid 7509else 7510 echo "$as_me: failed program was:" >&5 7511sed 's/^/| /' conftest.$ac_ext >&5 7512 7513 ac_lo=`expr '(' $ac_mid ')' + 1` 7514fi 7515 7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7517done 7518case $ac_lo in 7519?*) ac_cv_sizeof_wchar_t=$ac_lo;; 7520'') if test "$ac_cv_type_wchar_t" = yes; then 7521 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) 7522See \`config.log' for more details." >&5 7523echo "$as_me: error: cannot compute sizeof (wchar_t) 7524See \`config.log' for more details." >&2;} 7525 { (exit 77); exit 77; }; } 7526 else 7527 ac_cv_sizeof_wchar_t=0 7528 fi ;; 7529esac 7530else 7531 cat >conftest.$ac_ext <<_ACEOF 7532/* confdefs.h. */ 7533_ACEOF 7534cat confdefs.h >>conftest.$ac_ext 7535cat >>conftest.$ac_ext <<_ACEOF 7536/* end confdefs.h. */ 7537$ac_includes_default 7538 typedef wchar_t ac__type_sizeof_; 7539static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 7540static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 7541#include <stdio.h> 7542#include <stdlib.h> 7543int 7544main () 7545{ 7546 7547 FILE *f = fopen ("conftest.val", "w"); 7548 if (! f) 7549 return 1; 7550 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 7551 { 7552 long int i = longval (); 7553 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7554 return 1; 7555 fprintf (f, "%ld\n", i); 7556 } 7557 else 7558 { 7559 unsigned long int i = ulongval (); 7560 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7561 return 1; 7562 fprintf (f, "%lu\n", i); 7563 } 7564 return ferror (f) || fclose (f) != 0; 7565 7566 ; 7567 return 0; 7568} 7569_ACEOF 7570rm -f conftest$ac_exeext 7571if { (ac_try="$ac_link" 7572case "(($ac_try" in 7573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7574 *) ac_try_echo=$ac_try;; 7575esac 7576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7577 (eval "$ac_link") 2>&5 7578 ac_status=$? 7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7581 { (case "(($ac_try" in 7582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7583 *) ac_try_echo=$ac_try;; 7584esac 7585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7586 (eval "$ac_try") 2>&5 7587 ac_status=$? 7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7589 (exit $ac_status); }; }; then 7590 ac_cv_sizeof_wchar_t=`cat conftest.val` 7591else 7592 echo "$as_me: program exited with status $ac_status" >&5 7593echo "$as_me: failed program was:" >&5 7594sed 's/^/| /' conftest.$ac_ext >&5 7595 7596( exit $ac_status ) 7597if test "$ac_cv_type_wchar_t" = yes; then 7598 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t) 7599See \`config.log' for more details." >&5 7600echo "$as_me: error: cannot compute sizeof (wchar_t) 7601See \`config.log' for more details." >&2;} 7602 { (exit 77); exit 77; }; } 7603 else 7604 ac_cv_sizeof_wchar_t=0 7605 fi 7606fi 7607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7608fi 7609rm -f conftest.val 7610fi 7611{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 7612echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; } 7613 7614 7615 7616cat >>confdefs.h <<_ACEOF 7617#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 7618_ACEOF 7619 7620 7621 7622if test "x$ac_cv_c_char_unsigned" = "xyes"; then 7623 CHAR_UNSIGNED="1" 7624 7625else 7626 CHAR_UNSIGNED="0" 7627 7628fi 7629GMETADOM_SIZEOF_CHAR="$ac_cv_sizeof_unsigned_char" 7630 7631GMETADOM_SIZEOF_SHORT="$ac_cv_sizeof_unsigned_short" 7632 7633GMETADOM_SIZEOF_INT="$ac_cv_sizeof_unsigned_int" 7634 7635GMETADOM_SIZEOF_LONG="$ac_cv_sizeof_unsigned_long" 7636 7637GMETADOM_SIZEOF_LONG_LONG="$ac_cv_sizeof_unsigned_long_long" 7638 7639GMETADOM_SIZEOF_WCHAR_T="$ac_cv_sizeof_wchar_t" 7640 7641 7642 7643 7644 7645 7646# Check whether --enable-shared was given. 7647if test "${enable_shared+set}" = set; then 7648 enableval=$enable_shared; p=${PACKAGE-default} 7649 case $enableval in 7650 yes) enable_shared=yes ;; 7651 no) enable_shared=no ;; 7652 *) 7653 enable_shared=no 7654 # Look at the argument we got. We use all the common list separators. 7655 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7656 for pkg in $enableval; do 7657 IFS="$lt_save_ifs" 7658 if test "X$pkg" = "X$p"; then 7659 enable_shared=yes 7660 fi 7661 done 7662 IFS="$lt_save_ifs" 7663 ;; 7664 esac 7665else 7666 enable_shared=yes 7667fi 7668 7669 7670# Check whether --enable-static was given. 7671if test "${enable_static+set}" = set; then 7672 enableval=$enable_static; p=${PACKAGE-default} 7673 case $enableval in 7674 yes) enable_static=yes ;; 7675 no) enable_static=no ;; 7676 *) 7677 enable_static=no 7678 # Look at the argument we got. We use all the common list separators. 7679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7680 for pkg in $enableval; do 7681 IFS="$lt_save_ifs" 7682 if test "X$pkg" = "X$p"; then 7683 enable_static=yes 7684 fi 7685 done 7686 IFS="$lt_save_ifs" 7687 ;; 7688 esac 7689else 7690 enable_static=yes 7691fi 7692 7693 7694# Check whether --enable-fast-install was given. 7695if test "${enable_fast_install+set}" = set; then 7696 enableval=$enable_fast_install; p=${PACKAGE-default} 7697 case $enableval in 7698 yes) enable_fast_install=yes ;; 7699 no) enable_fast_install=no ;; 7700 *) 7701 enable_fast_install=no 7702 # Look at the argument we got. We use all the common list separators. 7703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7704 for pkg in $enableval; do 7705 IFS="$lt_save_ifs" 7706 if test "X$pkg" = "X$p"; then 7707 enable_fast_install=yes 7708 fi 7709 done 7710 IFS="$lt_save_ifs" 7711 ;; 7712 esac 7713else 7714 enable_fast_install=yes 7715fi 7716 7717 7718# Make sure we can run config.sub. 7719$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 7720 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 7721echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 7722 { (exit 1); exit 1; }; } 7723 7724{ echo "$as_me:$LINENO: checking build system type" >&5 7725echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 7726if test "${ac_cv_build+set}" = set; then 7727 echo $ECHO_N "(cached) $ECHO_C" >&6 7728else 7729 ac_build_alias=$build_alias 7730test "x$ac_build_alias" = x && 7731 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 7732test "x$ac_build_alias" = x && 7733 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 7734echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 7735 { (exit 1); exit 1; }; } 7736ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 7737 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 7738echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 7739 { (exit 1); exit 1; }; } 7740 7741fi 7742{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 7743echo "${ECHO_T}$ac_cv_build" >&6; } 7744case $ac_cv_build in 7745*-*-*) ;; 7746*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 7747echo "$as_me: error: invalid value of canonical build" >&2;} 7748 { (exit 1); exit 1; }; };; 7749esac 7750build=$ac_cv_build 7751ac_save_IFS=$IFS; IFS='-' 7752set x $ac_cv_build 7753shift 7754build_cpu=$1 7755build_vendor=$2 7756shift; shift 7757# Remember, the first character of IFS is used to create $*, 7758# except with old shells: 7759build_os=$* 7760IFS=$ac_save_IFS 7761case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 7762 7763 7764{ echo "$as_me:$LINENO: checking host system type" >&5 7765echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 7766if test "${ac_cv_host+set}" = set; then 7767 echo $ECHO_N "(cached) $ECHO_C" >&6 7768else 7769 if test "x$host_alias" = x; then 7770 ac_cv_host=$ac_cv_build 7771else 7772 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 7773 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 7774echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 7775 { (exit 1); exit 1; }; } 7776fi 7777 7778fi 7779{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 7780echo "${ECHO_T}$ac_cv_host" >&6; } 7781case $ac_cv_host in 7782*-*-*) ;; 7783*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 7784echo "$as_me: error: invalid value of canonical host" >&2;} 7785 { (exit 1); exit 1; }; };; 7786esac 7787host=$ac_cv_host 7788ac_save_IFS=$IFS; IFS='-' 7789set x $ac_cv_host 7790shift 7791host_cpu=$1 7792host_vendor=$2 7793shift; shift 7794# Remember, the first character of IFS is used to create $*, 7795# except with old shells: 7796host_os=$* 7797IFS=$ac_save_IFS 7798case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 7799 7800 7801{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 7802echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 7803if test "${lt_cv_path_SED+set}" = set; then 7804 echo $ECHO_N "(cached) $ECHO_C" >&6 7805else 7806 # Loop through the user's path and test for sed and gsed. 7807# Then use that list of sed's as ones to test for truncation. 7808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7809for as_dir in $PATH 7810do 7811 IFS=$as_save_IFS 7812 test -z "$as_dir" && as_dir=. 7813 for lt_ac_prog in sed gsed; do 7814 for ac_exec_ext in '' $ac_executable_extensions; do 7815 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 7816 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 7817 fi 7818 done 7819 done 7820done 7821lt_ac_max=0 7822lt_ac_count=0 7823# Add /usr/xpg4/bin/sed as it is typically found on Solaris 7824# along with /bin/sed that truncates output. 7825for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 7826 test ! -f $lt_ac_sed && continue 7827 cat /dev/null > conftest.in 7828 lt_ac_count=0 7829 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 7830 # Check for GNU sed and select it if it is found. 7831 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 7832 lt_cv_path_SED=$lt_ac_sed 7833 break 7834 fi 7835 while true; do 7836 cat conftest.in conftest.in >conftest.tmp 7837 mv conftest.tmp conftest.in 7838 cp conftest.in conftest.nl 7839 echo >>conftest.nl 7840 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 7841 cmp -s conftest.out conftest.nl || break 7842 # 10000 chars as input seems more than enough 7843 test $lt_ac_count -gt 10 && break 7844 lt_ac_count=`expr $lt_ac_count + 1` 7845 if test $lt_ac_count -gt $lt_ac_max; then 7846 lt_ac_max=$lt_ac_count 7847 lt_cv_path_SED=$lt_ac_sed 7848 fi 7849 done 7850done 7851 7852fi 7853 7854SED=$lt_cv_path_SED 7855{ echo "$as_me:$LINENO: result: $SED" >&5 7856echo "${ECHO_T}$SED" >&6; } 7857 7858 7859# Check whether --with-gnu-ld was given. 7860if test "${with_gnu_ld+set}" = set; then 7861 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7862else 7863 with_gnu_ld=no 7864fi 7865 7866ac_prog=ld 7867if test "$GCC" = yes; then 7868 # Check if gcc -print-prog-name=ld gives a path. 7869 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 7870echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 7871 case $host in 7872 *-*-mingw*) 7873 # gcc leaves a trailing carriage return which upsets mingw 7874 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7875 *) 7876 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7877 esac 7878 case $ac_prog in 7879 # Accept absolute paths. 7880 [\\/]* | ?:[\\/]*) 7881 re_direlt='/[^/][^/]*/\.\./' 7882 # Canonicalize the pathname of ld 7883 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 7884 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 7885 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 7886 done 7887 test -z "$LD" && LD="$ac_prog" 7888 ;; 7889 "") 7890 # If it fails, then pretend we aren't using GCC. 7891 ac_prog=ld 7892 ;; 7893 *) 7894 # If it is relative, then search for the first ld in PATH. 7895 with_gnu_ld=unknown 7896 ;; 7897 esac 7898elif test "$with_gnu_ld" = yes; then 7899 { echo "$as_me:$LINENO: checking for GNU ld" >&5 7900echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 7901else 7902 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 7903echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 7904fi 7905if test "${lt_cv_path_LD+set}" = set; then 7906 echo $ECHO_N "(cached) $ECHO_C" >&6 7907else 7908 if test -z "$LD"; then 7909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7910 for ac_dir in $PATH; do 7911 IFS="$lt_save_ifs" 7912 test -z "$ac_dir" && ac_dir=. 7913 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7914 lt_cv_path_LD="$ac_dir/$ac_prog" 7915 # Check to see if the program is GNU ld. I'd rather use --version, 7916 # but apparently some variants of GNU ld only accept -v. 7917 # Break only if it was the GNU/non-GNU ld that we prefer. 7918 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7919 *GNU* | *'with BFD'*) 7920 test "$with_gnu_ld" != no && break 7921 ;; 7922 *) 7923 test "$with_gnu_ld" != yes && break 7924 ;; 7925 esac 7926 fi 7927 done 7928 IFS="$lt_save_ifs" 7929else 7930 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7931fi 7932fi 7933 7934LD="$lt_cv_path_LD" 7935if test -n "$LD"; then 7936 { echo "$as_me:$LINENO: result: $LD" >&5 7937echo "${ECHO_T}$LD" >&6; } 7938else 7939 { echo "$as_me:$LINENO: result: no" >&5 7940echo "${ECHO_T}no" >&6; } 7941fi 7942test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 7943echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 7944 { (exit 1); exit 1; }; } 7945{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 7946echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 7947if test "${lt_cv_prog_gnu_ld+set}" = set; then 7948 echo $ECHO_N "(cached) $ECHO_C" >&6 7949else 7950 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7951case `$LD -v 2>&1 </dev/null` in 7952*GNU* | *'with BFD'*) 7953 lt_cv_prog_gnu_ld=yes 7954 ;; 7955*) 7956 lt_cv_prog_gnu_ld=no 7957 ;; 7958esac 7959fi 7960{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 7961echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 7962with_gnu_ld=$lt_cv_prog_gnu_ld 7963 7964 7965{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 7966echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 7967if test "${lt_cv_ld_reload_flag+set}" = set; then 7968 echo $ECHO_N "(cached) $ECHO_C" >&6 7969else 7970 lt_cv_ld_reload_flag='-r' 7971fi 7972{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 7973echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 7974reload_flag=$lt_cv_ld_reload_flag 7975case $reload_flag in 7976"" | " "*) ;; 7977*) reload_flag=" $reload_flag" ;; 7978esac 7979reload_cmds='$LD$reload_flag -o $output$reload_objs' 7980case $host_os in 7981 darwin*) 7982 if test "$GCC" = yes; then 7983 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7984 else 7985 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7986 fi 7987 ;; 7988esac 7989 7990{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 7991echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 7992if test "${lt_cv_path_NM+set}" = set; then 7993 echo $ECHO_N "(cached) $ECHO_C" >&6 7994else 7995 if test -n "$NM"; then 7996 # Let the user override the test. 7997 lt_cv_path_NM="$NM" 7998else 7999 lt_nm_to_check="${ac_tool_prefix}nm" 8000 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8001 lt_nm_to_check="$lt_nm_to_check nm" 8002 fi 8003 for lt_tmp_nm in $lt_nm_to_check; do 8004 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8005 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8006 IFS="$lt_save_ifs" 8007 test -z "$ac_dir" && ac_dir=. 8008 tmp_nm="$ac_dir/$lt_tmp_nm" 8009 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 8010 # Check to see if the nm accepts a BSD-compat flag. 8011 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 8012 # nm: unknown option "B" ignored 8013 # Tru64's nm complains that /dev/null is an invalid object file 8014 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 8015 */dev/null* | *'Invalid file or object type'*) 8016 lt_cv_path_NM="$tmp_nm -B" 8017 break 8018 ;; 8019 *) 8020 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 8021 */dev/null*) 8022 lt_cv_path_NM="$tmp_nm -p" 8023 break 8024 ;; 8025 *) 8026 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8027 continue # so that we can try to find one that supports BSD flags 8028 ;; 8029 esac 8030 ;; 8031 esac 8032 fi 8033 done 8034 IFS="$lt_save_ifs" 8035 done 8036 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 8037fi 8038fi 8039{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 8040echo "${ECHO_T}$lt_cv_path_NM" >&6; } 8041NM="$lt_cv_path_NM" 8042 8043{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 8044echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 8045LN_S=$as_ln_s 8046if test "$LN_S" = "ln -s"; then 8047 { echo "$as_me:$LINENO: result: yes" >&5 8048echo "${ECHO_T}yes" >&6; } 8049else 8050 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 8051echo "${ECHO_T}no, using $LN_S" >&6; } 8052fi 8053 8054{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 8055echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 8056if test "${lt_cv_deplibs_check_method+set}" = set; then 8057 echo $ECHO_N "(cached) $ECHO_C" >&6 8058else 8059 lt_cv_file_magic_cmd='$MAGIC_CMD' 8060lt_cv_file_magic_test_file= 8061lt_cv_deplibs_check_method='unknown' 8062# Need to set the preceding variable on all platforms that support 8063# interlibrary dependencies. 8064# 'none' -- dependencies not supported. 8065# `unknown' -- same as none, but documents that we really don't know. 8066# 'pass_all' -- all dependencies passed with no checks. 8067# 'test_compile' -- check by making test program. 8068# 'file_magic [[regex]]' -- check by looking for files in library path 8069# which responds to the $file_magic_cmd with a given extended regex. 8070# If you have `file' or equivalent on your system and you're not sure 8071# whether `pass_all' will *always* work, you probably want this one. 8072 8073case $host_os in 8074aix4* | aix5*) 8075 lt_cv_deplibs_check_method=pass_all 8076 ;; 8077 8078beos*) 8079 lt_cv_deplibs_check_method=pass_all 8080 ;; 8081 8082bsdi[45]*) 8083 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8084 lt_cv_file_magic_cmd='/usr/bin/file -L' 8085 lt_cv_file_magic_test_file=/shlib/libc.so 8086 ;; 8087 8088cygwin*) 8089 # func_win32_libid is a shell function defined in ltmain.sh 8090 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8091 lt_cv_file_magic_cmd='func_win32_libid' 8092 ;; 8093 8094mingw* | pw32*) 8095 # Base MSYS/MinGW do not provide the 'file' command needed by 8096 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 8097 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 8098 lt_cv_file_magic_cmd='$OBJDUMP -f' 8099 ;; 8100 8101darwin* | rhapsody*) 8102 lt_cv_deplibs_check_method=pass_all 8103 ;; 8104 8105freebsd* | dragonfly*) 8106 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 8107 case $host_cpu in 8108 i*86 ) 8109 # Not sure whether the presence of OpenBSD here was a mistake. 8110 # Let's accept both of them until this is cleared up. 8111 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8112 lt_cv_file_magic_cmd=/usr/bin/file 8113 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8114 ;; 8115 esac 8116 else 8117 lt_cv_deplibs_check_method=pass_all 8118 fi 8119 ;; 8120 8121gnu*) 8122 lt_cv_deplibs_check_method=pass_all 8123 ;; 8124 8125hpux10.20* | hpux11*) 8126 lt_cv_file_magic_cmd=/usr/bin/file 8127 case $host_cpu in 8128 ia64*) 8129 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8130 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8131 ;; 8132 hppa*64*) 8133 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]' 8134 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8135 ;; 8136 *) 8137 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 8138 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8139 ;; 8140 esac 8141 ;; 8142 8143interix3*) 8144 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8146 ;; 8147 8148irix5* | irix6* | nonstopux*) 8149 case $LD in 8150 *-32|*"-32 ") libmagic=32-bit;; 8151 *-n32|*"-n32 ") libmagic=N32;; 8152 *-64|*"-64 ") libmagic=64-bit;; 8153 *) libmagic=never-match;; 8154 esac 8155 lt_cv_deplibs_check_method=pass_all 8156 ;; 8157 8158# This must be Linux ELF. 8159linux* | k*bsd*-gnu) 8160 lt_cv_deplibs_check_method=pass_all 8161 ;; 8162 8163netbsd* | netbsdelf*-gnu) 8164 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 8165 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8166 else 8167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8168 fi 8169 ;; 8170 8171newos6*) 8172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8173 lt_cv_file_magic_cmd=/usr/bin/file 8174 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8175 ;; 8176 8177nto-qnx*) 8178 lt_cv_deplibs_check_method=unknown 8179 ;; 8180 8181openbsd*) 8182 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8184 else 8185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8186 fi 8187 ;; 8188 8189osf3* | osf4* | osf5*) 8190 lt_cv_deplibs_check_method=pass_all 8191 ;; 8192 8193solaris*) 8194 lt_cv_deplibs_check_method=pass_all 8195 ;; 8196 8197sysv4 | sysv4.3*) 8198 case $host_vendor in 8199 motorola) 8200 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]' 8201 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8202 ;; 8203 ncr) 8204 lt_cv_deplibs_check_method=pass_all 8205 ;; 8206 sequent) 8207 lt_cv_file_magic_cmd='/bin/file' 8208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8209 ;; 8210 sni) 8211 lt_cv_file_magic_cmd='/bin/file' 8212 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8213 lt_cv_file_magic_test_file=/lib/libc.so 8214 ;; 8215 siemens) 8216 lt_cv_deplibs_check_method=pass_all 8217 ;; 8218 pc) 8219 lt_cv_deplibs_check_method=pass_all 8220 ;; 8221 esac 8222 ;; 8223 8224sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8225 lt_cv_deplibs_check_method=pass_all 8226 ;; 8227esac 8228 8229fi 8230{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 8231echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 8232file_magic_cmd=$lt_cv_file_magic_cmd 8233deplibs_check_method=$lt_cv_deplibs_check_method 8234test -z "$deplibs_check_method" && deplibs_check_method=unknown 8235 8236 8237 8238 8239# If no C compiler was specified, use CC. 8240LTCC=${LTCC-"$CC"} 8241 8242# If no C compiler flags were specified, use CFLAGS. 8243LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8244 8245# Allow CC to be a program name with arguments. 8246compiler=$CC 8247 8248# Check whether --enable-libtool-lock was given. 8249if test "${enable_libtool_lock+set}" = set; then 8250 enableval=$enable_libtool_lock; 8251fi 8252 8253test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8254 8255# Some flags need to be propagated to the compiler or linker for good 8256# libtool support. 8257case $host in 8258ia64-*-hpux*) 8259 # Find out which ABI we are using. 8260 echo 'int i;' > conftest.$ac_ext 8261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8262 (eval $ac_compile) 2>&5 8263 ac_status=$? 8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8265 (exit $ac_status); }; then 8266 case `/usr/bin/file conftest.$ac_objext` in 8267 *ELF-32*) 8268 HPUX_IA64_MODE="32" 8269 ;; 8270 *ELF-64*) 8271 HPUX_IA64_MODE="64" 8272 ;; 8273 esac 8274 fi 8275 rm -rf conftest* 8276 ;; 8277*-*-irix6*) 8278 # Find out which ABI we are using. 8279 echo '#line 8279 "configure"' > conftest.$ac_ext 8280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8281 (eval $ac_compile) 2>&5 8282 ac_status=$? 8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8284 (exit $ac_status); }; then 8285 if test "$lt_cv_prog_gnu_ld" = yes; then 8286 case `/usr/bin/file conftest.$ac_objext` in 8287 *32-bit*) 8288 LD="${LD-ld} -melf32bsmip" 8289 ;; 8290 *N32*) 8291 LD="${LD-ld} -melf32bmipn32" 8292 ;; 8293 *64-bit*) 8294 LD="${LD-ld} -melf64bmip" 8295 ;; 8296 esac 8297 else 8298 case `/usr/bin/file conftest.$ac_objext` in 8299 *32-bit*) 8300 LD="${LD-ld} -32" 8301 ;; 8302 *N32*) 8303 LD="${LD-ld} -n32" 8304 ;; 8305 *64-bit*) 8306 LD="${LD-ld} -64" 8307 ;; 8308 esac 8309 fi 8310 fi 8311 rm -rf conftest* 8312 ;; 8313 8314x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 8315 # Find out which ABI we are using. 8316 echo 'int i;' > conftest.$ac_ext 8317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8318 (eval $ac_compile) 2>&5 8319 ac_status=$? 8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8321 (exit $ac_status); }; then 8322 case `/usr/bin/file conftest.o` in 8323 *32-bit*) 8324 case $host in 8325 x86_64-*linux*) 8326 LD="${LD-ld} -m elf_i386" 8327 ;; 8328 ppc64-*linux*|powerpc64-*linux*) 8329 LD="${LD-ld} -m elf32ppclinux" 8330 ;; 8331 s390x-*linux*) 8332 LD="${LD-ld} -m elf_s390" 8333 ;; 8334 sparc64-*linux*) 8335 LD="${LD-ld} -m elf32_sparc" 8336 ;; 8337 esac 8338 ;; 8339 *64-bit*) 8340 case $host in 8341 x86_64-*linux*) 8342 LD="${LD-ld} -m elf_x86_64" 8343 ;; 8344 ppc*-*linux*|powerpc*-*linux*) 8345 LD="${LD-ld} -m elf64ppc" 8346 ;; 8347 s390*-*linux*) 8348 LD="${LD-ld} -m elf64_s390" 8349 ;; 8350 sparc*-*linux*) 8351 LD="${LD-ld} -m elf64_sparc" 8352 ;; 8353 esac 8354 ;; 8355 esac 8356 fi 8357 rm -rf conftest* 8358 ;; 8359 8360*-*-sco3.2v5*) 8361 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8362 SAVE_CFLAGS="$CFLAGS" 8363 CFLAGS="$CFLAGS -belf" 8364 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 8365echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 8366if test "${lt_cv_cc_needs_belf+set}" = set; then 8367 echo $ECHO_N "(cached) $ECHO_C" >&6 8368else 8369 ac_ext=c 8370ac_cpp='$CPP $CPPFLAGS' 8371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8373ac_compiler_gnu=$ac_cv_c_compiler_gnu 8374 8375 cat >conftest.$ac_ext <<_ACEOF 8376/* confdefs.h. */ 8377_ACEOF 8378cat confdefs.h >>conftest.$ac_ext 8379cat >>conftest.$ac_ext <<_ACEOF 8380/* end confdefs.h. */ 8381 8382int 8383main () 8384{ 8385 8386 ; 8387 return 0; 8388} 8389_ACEOF 8390rm -f conftest.$ac_objext conftest$ac_exeext 8391if { (ac_try="$ac_link" 8392case "(($ac_try" in 8393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8394 *) ac_try_echo=$ac_try;; 8395esac 8396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8397 (eval "$ac_link") 2>conftest.er1 8398 ac_status=$? 8399 grep -v '^ *+' conftest.er1 >conftest.err 8400 rm -f conftest.er1 8401 cat conftest.err >&5 8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8403 (exit $ac_status); } && { 8404 test -z "$ac_c_werror_flag" || 8405 test ! -s conftest.err 8406 } && test -s conftest$ac_exeext && 8407 $as_test_x conftest$ac_exeext; then 8408 lt_cv_cc_needs_belf=yes 8409else 8410 echo "$as_me: failed program was:" >&5 8411sed 's/^/| /' conftest.$ac_ext >&5 8412 8413 lt_cv_cc_needs_belf=no 8414fi 8415 8416rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8417 conftest$ac_exeext conftest.$ac_ext 8418 ac_ext=c 8419ac_cpp='$CPP $CPPFLAGS' 8420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8422ac_compiler_gnu=$ac_cv_c_compiler_gnu 8423 8424fi 8425{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 8426echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 8427 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8428 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8429 CFLAGS="$SAVE_CFLAGS" 8430 fi 8431 ;; 8432sparc*-*solaris*) 8433 # Find out which ABI we are using. 8434 echo 'int i;' > conftest.$ac_ext 8435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8436 (eval $ac_compile) 2>&5 8437 ac_status=$? 8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8439 (exit $ac_status); }; then 8440 case `/usr/bin/file conftest.o` in 8441 *64-bit*) 8442 case $lt_cv_prog_gnu_ld in 8443 yes*) LD="${LD-ld} -m elf64_sparc" ;; 8444 *) LD="${LD-ld} -64" ;; 8445 esac 8446 ;; 8447 esac 8448 fi 8449 rm -rf conftest* 8450 ;; 8451 8452 8453esac 8454 8455need_locks="$enable_libtool_lock" 8456 8457 8458 8459for ac_header in dlfcn.h 8460do 8461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8463 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8466 echo $ECHO_N "(cached) $ECHO_C" >&6 8467fi 8468ac_res=`eval echo '${'$as_ac_Header'}'` 8469 { echo "$as_me:$LINENO: result: $ac_res" >&5 8470echo "${ECHO_T}$ac_res" >&6; } 8471else 8472 # Is the header compilable? 8473{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8474echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8475cat >conftest.$ac_ext <<_ACEOF 8476/* confdefs.h. */ 8477_ACEOF 8478cat confdefs.h >>conftest.$ac_ext 8479cat >>conftest.$ac_ext <<_ACEOF 8480/* end confdefs.h. */ 8481$ac_includes_default 8482#include <$ac_header> 8483_ACEOF 8484rm -f conftest.$ac_objext 8485if { (ac_try="$ac_compile" 8486case "(($ac_try" in 8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8488 *) ac_try_echo=$ac_try;; 8489esac 8490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8491 (eval "$ac_compile") 2>conftest.er1 8492 ac_status=$? 8493 grep -v '^ *+' conftest.er1 >conftest.err 8494 rm -f conftest.er1 8495 cat conftest.err >&5 8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8497 (exit $ac_status); } && { 8498 test -z "$ac_c_werror_flag" || 8499 test ! -s conftest.err 8500 } && test -s conftest.$ac_objext; then 8501 ac_header_compiler=yes 8502else 8503 echo "$as_me: failed program was:" >&5 8504sed 's/^/| /' conftest.$ac_ext >&5 8505 8506 ac_header_compiler=no 8507fi 8508 8509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8510{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8511echo "${ECHO_T}$ac_header_compiler" >&6; } 8512 8513# Is the header present? 8514{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8515echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8516cat >conftest.$ac_ext <<_ACEOF 8517/* confdefs.h. */ 8518_ACEOF 8519cat confdefs.h >>conftest.$ac_ext 8520cat >>conftest.$ac_ext <<_ACEOF 8521/* end confdefs.h. */ 8522#include <$ac_header> 8523_ACEOF 8524if { (ac_try="$ac_cpp conftest.$ac_ext" 8525case "(($ac_try" in 8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8527 *) ac_try_echo=$ac_try;; 8528esac 8529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8531 ac_status=$? 8532 grep -v '^ *+' conftest.er1 >conftest.err 8533 rm -f conftest.er1 8534 cat conftest.err >&5 8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8536 (exit $ac_status); } >/dev/null && { 8537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8538 test ! -s conftest.err 8539 }; then 8540 ac_header_preproc=yes 8541else 8542 echo "$as_me: failed program was:" >&5 8543sed 's/^/| /' conftest.$ac_ext >&5 8544 8545 ac_header_preproc=no 8546fi 8547 8548rm -f conftest.err conftest.$ac_ext 8549{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8550echo "${ECHO_T}$ac_header_preproc" >&6; } 8551 8552# So? What about this header? 8553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8554 yes:no: ) 8555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8559 ac_header_preproc=yes 8560 ;; 8561 no:yes:* ) 8562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8565echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8569echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8574 8575 ;; 8576esac 8577{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8580 echo $ECHO_N "(cached) $ECHO_C" >&6 8581else 8582 eval "$as_ac_Header=\$ac_header_preproc" 8583fi 8584ac_res=`eval echo '${'$as_ac_Header'}'` 8585 { echo "$as_me:$LINENO: result: $ac_res" >&5 8586echo "${ECHO_T}$ac_res" >&6; } 8587 8588fi 8589if test `eval echo '${'$as_ac_Header'}'` = yes; then 8590 cat >>confdefs.h <<_ACEOF 8591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8592_ACEOF 8593 8594fi 8595 8596done 8597 8598 8599 8600if test -n "$CXX" && ( test "X$CXX" != "Xno" && 8601 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 8602 (test "X$CXX" != "Xg++"))) ; then 8603 ac_ext=cpp 8604ac_cpp='$CXXCPP $CPPFLAGS' 8605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8608{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 8609echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 8610if test -z "$CXXCPP"; then 8611 if test "${ac_cv_prog_CXXCPP+set}" = set; then 8612 echo $ECHO_N "(cached) $ECHO_C" >&6 8613else 8614 # Double quotes because CXXCPP needs to be expanded 8615 for CXXCPP in "$CXX -E" "/lib/cpp" 8616 do 8617 ac_preproc_ok=false 8618for ac_cxx_preproc_warn_flag in '' yes 8619do 8620 # Use a header file that comes with gcc, so configuring glibc 8621 # with a fresh cross-compiler works. 8622 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8623 # <limits.h> exists even on freestanding compilers. 8624 # On the NeXT, cc -E runs the code through the compiler's parser, 8625 # not just through cpp. "Syntax error" is here to catch this case. 8626 cat >conftest.$ac_ext <<_ACEOF 8627/* confdefs.h. */ 8628_ACEOF 8629cat confdefs.h >>conftest.$ac_ext 8630cat >>conftest.$ac_ext <<_ACEOF 8631/* end confdefs.h. */ 8632#ifdef __STDC__ 8633# include <limits.h> 8634#else 8635# include <assert.h> 8636#endif 8637 Syntax error 8638_ACEOF 8639if { (ac_try="$ac_cpp conftest.$ac_ext" 8640case "(($ac_try" in 8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8642 *) ac_try_echo=$ac_try;; 8643esac 8644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8646 ac_status=$? 8647 grep -v '^ *+' conftest.er1 >conftest.err 8648 rm -f conftest.er1 8649 cat conftest.err >&5 8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8651 (exit $ac_status); } >/dev/null && { 8652 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8653 test ! -s conftest.err 8654 }; then 8655 : 8656else 8657 echo "$as_me: failed program was:" >&5 8658sed 's/^/| /' conftest.$ac_ext >&5 8659 8660 # Broken: fails on valid input. 8661continue 8662fi 8663 8664rm -f conftest.err conftest.$ac_ext 8665 8666 # OK, works on sane cases. Now check whether nonexistent headers 8667 # can be detected and how. 8668 cat >conftest.$ac_ext <<_ACEOF 8669/* confdefs.h. */ 8670_ACEOF 8671cat confdefs.h >>conftest.$ac_ext 8672cat >>conftest.$ac_ext <<_ACEOF 8673/* end confdefs.h. */ 8674#include <ac_nonexistent.h> 8675_ACEOF 8676if { (ac_try="$ac_cpp conftest.$ac_ext" 8677case "(($ac_try" in 8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8679 *) ac_try_echo=$ac_try;; 8680esac 8681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8683 ac_status=$? 8684 grep -v '^ *+' conftest.er1 >conftest.err 8685 rm -f conftest.er1 8686 cat conftest.err >&5 8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8688 (exit $ac_status); } >/dev/null && { 8689 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8690 test ! -s conftest.err 8691 }; then 8692 # Broken: success on invalid input. 8693continue 8694else 8695 echo "$as_me: failed program was:" >&5 8696sed 's/^/| /' conftest.$ac_ext >&5 8697 8698 # Passes both tests. 8699ac_preproc_ok=: 8700break 8701fi 8702 8703rm -f conftest.err conftest.$ac_ext 8704 8705done 8706# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8707rm -f conftest.err conftest.$ac_ext 8708if $ac_preproc_ok; then 8709 break 8710fi 8711 8712 done 8713 ac_cv_prog_CXXCPP=$CXXCPP 8714 8715fi 8716 CXXCPP=$ac_cv_prog_CXXCPP 8717else 8718 ac_cv_prog_CXXCPP=$CXXCPP 8719fi 8720{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 8721echo "${ECHO_T}$CXXCPP" >&6; } 8722ac_preproc_ok=false 8723for ac_cxx_preproc_warn_flag in '' yes 8724do 8725 # Use a header file that comes with gcc, so configuring glibc 8726 # with a fresh cross-compiler works. 8727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8728 # <limits.h> exists even on freestanding compilers. 8729 # On the NeXT, cc -E runs the code through the compiler's parser, 8730 # not just through cpp. "Syntax error" is here to catch this case. 8731 cat >conftest.$ac_ext <<_ACEOF 8732/* confdefs.h. */ 8733_ACEOF 8734cat confdefs.h >>conftest.$ac_ext 8735cat >>conftest.$ac_ext <<_ACEOF 8736/* end confdefs.h. */ 8737#ifdef __STDC__ 8738# include <limits.h> 8739#else 8740# include <assert.h> 8741#endif 8742 Syntax error 8743_ACEOF 8744if { (ac_try="$ac_cpp conftest.$ac_ext" 8745case "(($ac_try" in 8746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8747 *) ac_try_echo=$ac_try;; 8748esac 8749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8751 ac_status=$? 8752 grep -v '^ *+' conftest.er1 >conftest.err 8753 rm -f conftest.er1 8754 cat conftest.err >&5 8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8756 (exit $ac_status); } >/dev/null && { 8757 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8758 test ! -s conftest.err 8759 }; then 8760 : 8761else 8762 echo "$as_me: failed program was:" >&5 8763sed 's/^/| /' conftest.$ac_ext >&5 8764 8765 # Broken: fails on valid input. 8766continue 8767fi 8768 8769rm -f conftest.err conftest.$ac_ext 8770 8771 # OK, works on sane cases. Now check whether nonexistent headers 8772 # can be detected and how. 8773 cat >conftest.$ac_ext <<_ACEOF 8774/* confdefs.h. */ 8775_ACEOF 8776cat confdefs.h >>conftest.$ac_ext 8777cat >>conftest.$ac_ext <<_ACEOF 8778/* end confdefs.h. */ 8779#include <ac_nonexistent.h> 8780_ACEOF 8781if { (ac_try="$ac_cpp conftest.$ac_ext" 8782case "(($ac_try" in 8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8784 *) ac_try_echo=$ac_try;; 8785esac 8786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8788 ac_status=$? 8789 grep -v '^ *+' conftest.er1 >conftest.err 8790 rm -f conftest.er1 8791 cat conftest.err >&5 8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8793 (exit $ac_status); } >/dev/null && { 8794 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8795 test ! -s conftest.err 8796 }; then 8797 # Broken: success on invalid input. 8798continue 8799else 8800 echo "$as_me: failed program was:" >&5 8801sed 's/^/| /' conftest.$ac_ext >&5 8802 8803 # Passes both tests. 8804ac_preproc_ok=: 8805break 8806fi 8807 8808rm -f conftest.err conftest.$ac_ext 8809 8810done 8811# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8812rm -f conftest.err conftest.$ac_ext 8813if $ac_preproc_ok; then 8814 : 8815else 8816 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 8817See \`config.log' for more details." >&5 8818echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 8819See \`config.log' for more details." >&2;} 8820 { (exit 1); exit 1; }; } 8821fi 8822 8823ac_ext=cpp 8824ac_cpp='$CXXCPP $CPPFLAGS' 8825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8828 8829fi 8830 8831 8832ac_ext=f 8833ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 8834ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8835ac_compiler_gnu=$ac_cv_f77_compiler_gnu 8836if test -n "$ac_tool_prefix"; then 8837 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 8838 do 8839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8840set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8841{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8843if test "${ac_cv_prog_F77+set}" = set; then 8844 echo $ECHO_N "(cached) $ECHO_C" >&6 8845else 8846 if test -n "$F77"; then 8847 ac_cv_prog_F77="$F77" # Let the user override the test. 8848else 8849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8850for as_dir in $PATH 8851do 8852 IFS=$as_save_IFS 8853 test -z "$as_dir" && as_dir=. 8854 for ac_exec_ext in '' $ac_executable_extensions; do 8855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8856 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 8857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8858 break 2 8859 fi 8860done 8861done 8862IFS=$as_save_IFS 8863 8864fi 8865fi 8866F77=$ac_cv_prog_F77 8867if test -n "$F77"; then 8868 { echo "$as_me:$LINENO: result: $F77" >&5 8869echo "${ECHO_T}$F77" >&6; } 8870else 8871 { echo "$as_me:$LINENO: result: no" >&5 8872echo "${ECHO_T}no" >&6; } 8873fi 8874 8875 8876 test -n "$F77" && break 8877 done 8878fi 8879if test -z "$F77"; then 8880 ac_ct_F77=$F77 8881 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 8882do 8883 # Extract the first word of "$ac_prog", so it can be a program name with args. 8884set dummy $ac_prog; ac_word=$2 8885{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8887if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 8888 echo $ECHO_N "(cached) $ECHO_C" >&6 8889else 8890 if test -n "$ac_ct_F77"; then 8891 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 8892else 8893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8894for as_dir in $PATH 8895do 8896 IFS=$as_save_IFS 8897 test -z "$as_dir" && as_dir=. 8898 for ac_exec_ext in '' $ac_executable_extensions; do 8899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8900 ac_cv_prog_ac_ct_F77="$ac_prog" 8901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8902 break 2 8903 fi 8904done 8905done 8906IFS=$as_save_IFS 8907 8908fi 8909fi 8910ac_ct_F77=$ac_cv_prog_ac_ct_F77 8911if test -n "$ac_ct_F77"; then 8912 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 8913echo "${ECHO_T}$ac_ct_F77" >&6; } 8914else 8915 { echo "$as_me:$LINENO: result: no" >&5 8916echo "${ECHO_T}no" >&6; } 8917fi 8918 8919 8920 test -n "$ac_ct_F77" && break 8921done 8922 8923 if test "x$ac_ct_F77" = x; then 8924 F77="" 8925 else 8926 case $cross_compiling:$ac_tool_warned in 8927yes:) 8928{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8929whose name does not start with the host triplet. If you think this 8930configuration is useful to you, please write to autoconf@gnu.org." >&5 8931echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8932whose name does not start with the host triplet. If you think this 8933configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8934ac_tool_warned=yes ;; 8935esac 8936 F77=$ac_ct_F77 8937 fi 8938fi 8939 8940 8941# Provide some information about the compiler. 8942echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 8943ac_compiler=`set X $ac_compile; echo $2` 8944{ (ac_try="$ac_compiler --version >&5" 8945case "(($ac_try" in 8946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8947 *) ac_try_echo=$ac_try;; 8948esac 8949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8950 (eval "$ac_compiler --version >&5") 2>&5 8951 ac_status=$? 8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8953 (exit $ac_status); } 8954{ (ac_try="$ac_compiler -v >&5" 8955case "(($ac_try" in 8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8957 *) ac_try_echo=$ac_try;; 8958esac 8959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8960 (eval "$ac_compiler -v >&5") 2>&5 8961 ac_status=$? 8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8963 (exit $ac_status); } 8964{ (ac_try="$ac_compiler -V >&5" 8965case "(($ac_try" in 8966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8967 *) ac_try_echo=$ac_try;; 8968esac 8969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8970 (eval "$ac_compiler -V >&5") 2>&5 8971 ac_status=$? 8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8973 (exit $ac_status); } 8974rm -f a.out 8975 8976# If we don't use `.F' as extension, the preprocessor is not run on the 8977# input file. (Note that this only needs to work for GNU compilers.) 8978ac_save_ext=$ac_ext 8979ac_ext=F 8980{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 8981echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 8982if test "${ac_cv_f77_compiler_gnu+set}" = set; then 8983 echo $ECHO_N "(cached) $ECHO_C" >&6 8984else 8985 cat >conftest.$ac_ext <<_ACEOF 8986 program main 8987#ifndef __GNUC__ 8988 choke me 8989#endif 8990 8991 end 8992_ACEOF 8993rm -f conftest.$ac_objext 8994if { (ac_try="$ac_compile" 8995case "(($ac_try" in 8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8997 *) ac_try_echo=$ac_try;; 8998esac 8999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9000 (eval "$ac_compile") 2>conftest.er1 9001 ac_status=$? 9002 grep -v '^ *+' conftest.er1 >conftest.err 9003 rm -f conftest.er1 9004 cat conftest.err >&5 9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9006 (exit $ac_status); } && { 9007 test -z "$ac_f77_werror_flag" || 9008 test ! -s conftest.err 9009 } && test -s conftest.$ac_objext; then 9010 ac_compiler_gnu=yes 9011else 9012 echo "$as_me: failed program was:" >&5 9013sed 's/^/| /' conftest.$ac_ext >&5 9014 9015 ac_compiler_gnu=no 9016fi 9017 9018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9019ac_cv_f77_compiler_gnu=$ac_compiler_gnu 9020 9021fi 9022{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 9023echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 9024ac_ext=$ac_save_ext 9025ac_test_FFLAGS=${FFLAGS+set} 9026ac_save_FFLAGS=$FFLAGS 9027FFLAGS= 9028{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 9029echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 9030if test "${ac_cv_prog_f77_g+set}" = set; then 9031 echo $ECHO_N "(cached) $ECHO_C" >&6 9032else 9033 FFLAGS=-g 9034cat >conftest.$ac_ext <<_ACEOF 9035 program main 9036 9037 end 9038_ACEOF 9039rm -f conftest.$ac_objext 9040if { (ac_try="$ac_compile" 9041case "(($ac_try" in 9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9043 *) ac_try_echo=$ac_try;; 9044esac 9045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9046 (eval "$ac_compile") 2>conftest.er1 9047 ac_status=$? 9048 grep -v '^ *+' conftest.er1 >conftest.err 9049 rm -f conftest.er1 9050 cat conftest.err >&5 9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9052 (exit $ac_status); } && { 9053 test -z "$ac_f77_werror_flag" || 9054 test ! -s conftest.err 9055 } && test -s conftest.$ac_objext; then 9056 ac_cv_prog_f77_g=yes 9057else 9058 echo "$as_me: failed program was:" >&5 9059sed 's/^/| /' conftest.$ac_ext >&5 9060 9061 ac_cv_prog_f77_g=no 9062fi 9063 9064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9065 9066fi 9067{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 9068echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 9069if test "$ac_test_FFLAGS" = set; then 9070 FFLAGS=$ac_save_FFLAGS 9071elif test $ac_cv_prog_f77_g = yes; then 9072 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 9073 FFLAGS="-g -O2" 9074 else 9075 FFLAGS="-g" 9076 fi 9077else 9078 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 9079 FFLAGS="-O2" 9080 else 9081 FFLAGS= 9082 fi 9083fi 9084 9085G77=`test $ac_compiler_gnu = yes && echo yes` 9086ac_ext=c 9087ac_cpp='$CPP $CPPFLAGS' 9088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9090ac_compiler_gnu=$ac_cv_c_compiler_gnu 9091 9092 9093 9094# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 9095 9096# find the maximum length of command line arguments 9097{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 9098echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 9099if test "${lt_cv_sys_max_cmd_len+set}" = set; then 9100 echo $ECHO_N "(cached) $ECHO_C" >&6 9101else 9102 i=0 9103 teststring="ABCD" 9104 9105 case $build_os in 9106 msdosdjgpp*) 9107 # On DJGPP, this test can blow up pretty badly due to problems in libc 9108 # (any single argument exceeding 2000 bytes causes a buffer overrun 9109 # during glob expansion). Even if it were fixed, the result of this 9110 # check would be larger than it should be. 9111 lt_cv_sys_max_cmd_len=12288; # 12K is about right 9112 ;; 9113 9114 gnu*) 9115 # Under GNU Hurd, this test is not required because there is 9116 # no limit to the length of command line arguments. 9117 # Libtool will interpret -1 as no limit whatsoever 9118 lt_cv_sys_max_cmd_len=-1; 9119 ;; 9120 9121 cygwin* | mingw*) 9122 # On Win9x/ME, this test blows up -- it succeeds, but takes 9123 # about 5 minutes as the teststring grows exponentially. 9124 # Worse, since 9x/ME are not pre-emptively multitasking, 9125 # you end up with a "frozen" computer, even though with patience 9126 # the test eventually succeeds (with a max line length of 256k). 9127 # Instead, let's just punt: use the minimum linelength reported by 9128 # all of the supported platforms: 8192 (on NT/2K/XP). 9129 lt_cv_sys_max_cmd_len=8192; 9130 ;; 9131 9132 amigaos*) 9133 # On AmigaOS with pdksh, this test takes hours, literally. 9134 # So we just punt and use a minimum line length of 8192. 9135 lt_cv_sys_max_cmd_len=8192; 9136 ;; 9137 9138 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 9139 # This has been around since 386BSD, at least. Likely further. 9140 if test -x /sbin/sysctl; then 9141 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 9142 elif test -x /usr/sbin/sysctl; then 9143 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 9144 else 9145 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 9146 fi 9147 # And add a safety zone 9148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9150 ;; 9151 9152 interix*) 9153 # We know the value 262144 and hardcode it with a safety zone (like BSD) 9154 lt_cv_sys_max_cmd_len=196608 9155 ;; 9156 9157 osf*) 9158 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 9159 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 9160 # nice to cause kernel panics so lets avoid the loop below. 9161 # First set a reasonable default. 9162 lt_cv_sys_max_cmd_len=16384 9163 # 9164 if test -x /sbin/sysconfig; then 9165 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 9166 *1*) lt_cv_sys_max_cmd_len=-1 ;; 9167 esac 9168 fi 9169 ;; 9170 sco3.2v5*) 9171 lt_cv_sys_max_cmd_len=102400 9172 ;; 9173 sysv5* | sco5v6* | sysv4.2uw2*) 9174 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 9175 if test -n "$kargmax"; then 9176 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 9177 else 9178 lt_cv_sys_max_cmd_len=32768 9179 fi 9180 ;; 9181 *) 9182 # If test is not a shell built-in, we'll probably end up computing a 9183 # maximum length that is only half of the actual maximum length, but 9184 # we can't tell. 9185 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 9186 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 9187 = "XX$teststring") >/dev/null 2>&1 && 9188 new_result=`expr "X$teststring" : ".*" 2>&1` && 9189 lt_cv_sys_max_cmd_len=$new_result && 9190 test $i != 17 # 1/2 MB should be enough 9191 do 9192 i=`expr $i + 1` 9193 teststring=$teststring$teststring 9194 done 9195 teststring= 9196 # Add a significant safety factor because C++ compilers can tack on massive 9197 # amounts of additional arguments before passing them to the linker. 9198 # It appears as though 1/2 is a usable value. 9199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 9200 ;; 9201 esac 9202 9203fi 9204 9205if test -n $lt_cv_sys_max_cmd_len ; then 9206 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 9207echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 9208else 9209 { echo "$as_me:$LINENO: result: none" >&5 9210echo "${ECHO_T}none" >&6; } 9211fi 9212 9213 9214 9215 9216# Check for command to grab the raw symbol name followed by C symbol from nm. 9217{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9218echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9219if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9220 echo $ECHO_N "(cached) $ECHO_C" >&6 9221else 9222 9223# These are sane defaults that work on at least a few old systems. 9224# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9225 9226# Character class describing NM global symbol codes. 9227symcode='[BCDEGRST]' 9228 9229# Regexp to match symbols that can be accessed directly from C. 9230sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9231 9232# Transform an extracted symbol line into a proper C declaration 9233lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9234 9235# Transform an extracted symbol line into symbol name and symbol address 9236lt_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'" 9237 9238# Define system-specific variables. 9239case $host_os in 9240aix*) 9241 symcode='[BCDT]' 9242 ;; 9243cygwin* | mingw* | pw32*) 9244 symcode='[ABCDGISTW]' 9245 ;; 9246hpux*) # Its linker distinguishes data from code symbols 9247 if test "$host_cpu" = ia64; then 9248 symcode='[ABCDEGRST]' 9249 fi 9250 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9251 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'" 9252 ;; 9253linux* | k*bsd*-gnu) 9254 if test "$host_cpu" = ia64; then 9255 symcode='[ABCDGIRSTW]' 9256 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9257 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'" 9258 fi 9259 ;; 9260irix* | nonstopux*) 9261 symcode='[BCDEGRST]' 9262 ;; 9263osf*) 9264 symcode='[BCDEGQRST]' 9265 ;; 9266solaris*) 9267 symcode='[BDRT]' 9268 ;; 9269sco3.2v5*) 9270 symcode='[DT]' 9271 ;; 9272sysv4.2uw2*) 9273 symcode='[DT]' 9274 ;; 9275sysv5* | sco5v6* | unixware* | OpenUNIX*) 9276 symcode='[ABDT]' 9277 ;; 9278sysv4) 9279 symcode='[DFNSTU]' 9280 ;; 9281esac 9282 9283# Handle CRLF in mingw tool chain 9284opt_cr= 9285case $build_os in 9286mingw*) 9287 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9288 ;; 9289esac 9290 9291# If we're using GNU nm, then use its standard symbol codes. 9292case `$NM -V 2>&1` in 9293*GNU* | *'with BFD'*) 9294 symcode='[ABCDGIRSTW]' ;; 9295esac 9296 9297# Try without a prefix undercore, then with it. 9298for ac_symprfx in "" "_"; do 9299 9300 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9301 symxfrm="\\1 $ac_symprfx\\2 \\2" 9302 9303 # Write the raw and C identifiers. 9304 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9305 9306 # Check to see that the pipe works correctly. 9307 pipe_works=no 9308 9309 rm -f conftest* 9310 cat > conftest.$ac_ext <<EOF 9311#ifdef __cplusplus 9312extern "C" { 9313#endif 9314char nm_test_var; 9315void nm_test_func(){} 9316#ifdef __cplusplus 9317} 9318#endif 9319int main(){nm_test_var='a';nm_test_func();return(0);} 9320EOF 9321 9322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9323 (eval $ac_compile) 2>&5 9324 ac_status=$? 9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9326 (exit $ac_status); }; then 9327 # Now try to grab the symbols. 9328 nlist=conftest.nm 9329 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9330 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9331 ac_status=$? 9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9333 (exit $ac_status); } && test -s "$nlist"; then 9334 # Try sorting and uniquifying the output. 9335 if sort "$nlist" | uniq > "$nlist"T; then 9336 mv -f "$nlist"T "$nlist" 9337 else 9338 rm -f "$nlist"T 9339 fi 9340 9341 # Make sure that we snagged all the symbols we need. 9342 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9343 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9344 cat <<EOF > conftest.$ac_ext 9345#ifdef __cplusplus 9346extern "C" { 9347#endif 9348 9349EOF 9350 # Now generate the symbol file. 9351 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9352 9353 cat <<EOF >> conftest.$ac_ext 9354#if defined (__STDC__) && __STDC__ 9355# define lt_ptr_t void * 9356#else 9357# define lt_ptr_t char * 9358# define const 9359#endif 9360 9361/* The mapping between symbol names and symbols. */ 9362const struct { 9363 const char *name; 9364 lt_ptr_t address; 9365} 9366lt_preloaded_symbols[] = 9367{ 9368EOF 9369 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9370 cat <<\EOF >> conftest.$ac_ext 9371 {0, (lt_ptr_t) 0} 9372}; 9373 9374#ifdef __cplusplus 9375} 9376#endif 9377EOF 9378 # Now try linking the two files. 9379 mv conftest.$ac_objext conftstm.$ac_objext 9380 lt_save_LIBS="$LIBS" 9381 lt_save_CFLAGS="$CFLAGS" 9382 LIBS="conftstm.$ac_objext" 9383 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9385 (eval $ac_link) 2>&5 9386 ac_status=$? 9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9388 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9389 pipe_works=yes 9390 fi 9391 LIBS="$lt_save_LIBS" 9392 CFLAGS="$lt_save_CFLAGS" 9393 else 9394 echo "cannot find nm_test_func in $nlist" >&5 9395 fi 9396 else 9397 echo "cannot find nm_test_var in $nlist" >&5 9398 fi 9399 else 9400 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9401 fi 9402 else 9403 echo "$progname: failed program was:" >&5 9404 cat conftest.$ac_ext >&5 9405 fi 9406 rm -f conftest* conftst* 9407 9408 # Do not use the global_symbol_pipe unless it works. 9409 if test "$pipe_works" = yes; then 9410 break 9411 else 9412 lt_cv_sys_global_symbol_pipe= 9413 fi 9414done 9415 9416fi 9417 9418if test -z "$lt_cv_sys_global_symbol_pipe"; then 9419 lt_cv_sys_global_symbol_to_cdecl= 9420fi 9421if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9422 { echo "$as_me:$LINENO: result: failed" >&5 9423echo "${ECHO_T}failed" >&6; } 9424else 9425 { echo "$as_me:$LINENO: result: ok" >&5 9426echo "${ECHO_T}ok" >&6; } 9427fi 9428 9429{ echo "$as_me:$LINENO: checking for objdir" >&5 9430echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9431if test "${lt_cv_objdir+set}" = set; then 9432 echo $ECHO_N "(cached) $ECHO_C" >&6 9433else 9434 rm -f .libs 2>/dev/null 9435mkdir .libs 2>/dev/null 9436if test -d .libs; then 9437 lt_cv_objdir=.libs 9438else 9439 # MS-DOS does not allow filenames that begin with a dot. 9440 lt_cv_objdir=_libs 9441fi 9442rmdir .libs 2>/dev/null 9443fi 9444{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 9445echo "${ECHO_T}$lt_cv_objdir" >&6; } 9446objdir=$lt_cv_objdir 9447 9448 9449 9450 9451 9452case $host_os in 9453aix3*) 9454 # AIX sometimes has problems with the GCC collect2 program. For some 9455 # reason, if we set the COLLECT_NAMES environment variable, the problems 9456 # vanish in a puff of smoke. 9457 if test "X${COLLECT_NAMES+set}" != Xset; then 9458 COLLECT_NAMES= 9459 export COLLECT_NAMES 9460 fi 9461 ;; 9462esac 9463 9464# Sed substitution that helps us do robust quoting. It backslashifies 9465# metacharacters that are still active within double-quoted strings. 9466Xsed='sed -e 1s/^X//' 9467sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 9468 9469# Same as above, but do not quote variable references. 9470double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 9471 9472# Sed substitution to delay expansion of an escaped shell variable in a 9473# double_quote_subst'ed string. 9474delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 9475 9476# Sed substitution to avoid accidental globbing in evaled expressions 9477no_glob_subst='s/\*/\\\*/g' 9478 9479# Constants: 9480rm="rm -f" 9481 9482# Global variables: 9483default_ofile=libtool 9484can_build_shared=yes 9485 9486# All known linkers require a `.a' archive for static linking (except MSVC, 9487# which needs '.lib'). 9488libext=a 9489ltmain="$ac_aux_dir/ltmain.sh" 9490ofile="$default_ofile" 9491with_gnu_ld="$lt_cv_prog_gnu_ld" 9492 9493if test -n "$ac_tool_prefix"; then 9494 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 9495set dummy ${ac_tool_prefix}ar; ac_word=$2 9496{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9498if test "${ac_cv_prog_AR+set}" = set; then 9499 echo $ECHO_N "(cached) $ECHO_C" >&6 9500else 9501 if test -n "$AR"; then 9502 ac_cv_prog_AR="$AR" # Let the user override the test. 9503else 9504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9505for as_dir in $PATH 9506do 9507 IFS=$as_save_IFS 9508 test -z "$as_dir" && as_dir=. 9509 for ac_exec_ext in '' $ac_executable_extensions; do 9510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9511 ac_cv_prog_AR="${ac_tool_prefix}ar" 9512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9513 break 2 9514 fi 9515done 9516done 9517IFS=$as_save_IFS 9518 9519fi 9520fi 9521AR=$ac_cv_prog_AR 9522if test -n "$AR"; then 9523 { echo "$as_me:$LINENO: result: $AR" >&5 9524echo "${ECHO_T}$AR" >&6; } 9525else 9526 { echo "$as_me:$LINENO: result: no" >&5 9527echo "${ECHO_T}no" >&6; } 9528fi 9529 9530 9531fi 9532if test -z "$ac_cv_prog_AR"; then 9533 ac_ct_AR=$AR 9534 # Extract the first word of "ar", so it can be a program name with args. 9535set dummy ar; ac_word=$2 9536{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9538if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 9539 echo $ECHO_N "(cached) $ECHO_C" >&6 9540else 9541 if test -n "$ac_ct_AR"; then 9542 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9543else 9544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9545for as_dir in $PATH 9546do 9547 IFS=$as_save_IFS 9548 test -z "$as_dir" && as_dir=. 9549 for ac_exec_ext in '' $ac_executable_extensions; do 9550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9551 ac_cv_prog_ac_ct_AR="ar" 9552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9553 break 2 9554 fi 9555done 9556done 9557IFS=$as_save_IFS 9558 9559fi 9560fi 9561ac_ct_AR=$ac_cv_prog_ac_ct_AR 9562if test -n "$ac_ct_AR"; then 9563 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 9564echo "${ECHO_T}$ac_ct_AR" >&6; } 9565else 9566 { echo "$as_me:$LINENO: result: no" >&5 9567echo "${ECHO_T}no" >&6; } 9568fi 9569 9570 if test "x$ac_ct_AR" = x; then 9571 AR="false" 9572 else 9573 case $cross_compiling:$ac_tool_warned in 9574yes:) 9575{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 9576whose name does not start with the host triplet. If you think this 9577configuration is useful to you, please write to autoconf@gnu.org." >&5 9578echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 9579whose name does not start with the host triplet. If you think this 9580configuration is useful to you, please write to autoconf@gnu.org." >&2;} 9581ac_tool_warned=yes ;; 9582esac 9583 AR=$ac_ct_AR 9584 fi 9585else 9586 AR="$ac_cv_prog_AR" 9587fi 9588 9589if test -n "$ac_tool_prefix"; then 9590 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9591set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9592{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9594if test "${ac_cv_prog_RANLIB+set}" = set; then 9595 echo $ECHO_N "(cached) $ECHO_C" >&6 9596else 9597 if test -n "$RANLIB"; then 9598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9599else 9600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9601for as_dir in $PATH 9602do 9603 IFS=$as_save_IFS 9604 test -z "$as_dir" && as_dir=. 9605 for ac_exec_ext in '' $ac_executable_extensions; do 9606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9607 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9609 break 2 9610 fi 9611done 9612done 9613IFS=$as_save_IFS 9614 9615fi 9616fi 9617RANLIB=$ac_cv_prog_RANLIB 9618if test -n "$RANLIB"; then 9619 { echo "$as_me:$LINENO: result: $RANLIB" >&5 9620echo "${ECHO_T}$RANLIB" >&6; } 9621else 9622 { echo "$as_me:$LINENO: result: no" >&5 9623echo "${ECHO_T}no" >&6; } 9624fi 9625 9626 9627fi 9628if test -z "$ac_cv_prog_RANLIB"; then 9629 ac_ct_RANLIB=$RANLIB 9630 # Extract the first word of "ranlib", so it can be a program name with args. 9631set dummy ranlib; ac_word=$2 9632{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9634if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 9635 echo $ECHO_N "(cached) $ECHO_C" >&6 9636else 9637 if test -n "$ac_ct_RANLIB"; then 9638 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9639else 9640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9641for as_dir in $PATH 9642do 9643 IFS=$as_save_IFS 9644 test -z "$as_dir" && as_dir=. 9645 for ac_exec_ext in '' $ac_executable_extensions; do 9646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9647 ac_cv_prog_ac_ct_RANLIB="ranlib" 9648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9649 break 2 9650 fi 9651done 9652done 9653IFS=$as_save_IFS 9654 9655fi 9656fi 9657ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9658if test -n "$ac_ct_RANLIB"; then 9659 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 9660echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 9661else 9662 { echo "$as_me:$LINENO: result: no" >&5 9663echo "${ECHO_T}no" >&6; } 9664fi 9665 9666 if test "x$ac_ct_RANLIB" = x; then 9667 RANLIB=":" 9668 else 9669 case $cross_compiling:$ac_tool_warned in 9670yes:) 9671{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 9672whose name does not start with the host triplet. If you think this 9673configuration is useful to you, please write to autoconf@gnu.org." >&5 9674echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 9675whose name does not start with the host triplet. If you think this 9676configuration is useful to you, please write to autoconf@gnu.org." >&2;} 9677ac_tool_warned=yes ;; 9678esac 9679 RANLIB=$ac_ct_RANLIB 9680 fi 9681else 9682 RANLIB="$ac_cv_prog_RANLIB" 9683fi 9684 9685if test -n "$ac_tool_prefix"; then 9686 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9687set dummy ${ac_tool_prefix}strip; ac_word=$2 9688{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9690if test "${ac_cv_prog_STRIP+set}" = set; then 9691 echo $ECHO_N "(cached) $ECHO_C" >&6 9692else 9693 if test -n "$STRIP"; then 9694 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9695else 9696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9697for as_dir in $PATH 9698do 9699 IFS=$as_save_IFS 9700 test -z "$as_dir" && as_dir=. 9701 for ac_exec_ext in '' $ac_executable_extensions; do 9702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9703 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9705 break 2 9706 fi 9707done 9708done 9709IFS=$as_save_IFS 9710 9711fi 9712fi 9713STRIP=$ac_cv_prog_STRIP 9714if test -n "$STRIP"; then 9715 { echo "$as_me:$LINENO: result: $STRIP" >&5 9716echo "${ECHO_T}$STRIP" >&6; } 9717else 9718 { echo "$as_me:$LINENO: result: no" >&5 9719echo "${ECHO_T}no" >&6; } 9720fi 9721 9722 9723fi 9724if test -z "$ac_cv_prog_STRIP"; then 9725 ac_ct_STRIP=$STRIP 9726 # Extract the first word of "strip", so it can be a program name with args. 9727set dummy strip; ac_word=$2 9728{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9730if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 9731 echo $ECHO_N "(cached) $ECHO_C" >&6 9732else 9733 if test -n "$ac_ct_STRIP"; then 9734 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9735else 9736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9737for as_dir in $PATH 9738do 9739 IFS=$as_save_IFS 9740 test -z "$as_dir" && as_dir=. 9741 for ac_exec_ext in '' $ac_executable_extensions; do 9742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9743 ac_cv_prog_ac_ct_STRIP="strip" 9744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9745 break 2 9746 fi 9747done 9748done 9749IFS=$as_save_IFS 9750 9751fi 9752fi 9753ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9754if test -n "$ac_ct_STRIP"; then 9755 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 9756echo "${ECHO_T}$ac_ct_STRIP" >&6; } 9757else 9758 { echo "$as_me:$LINENO: result: no" >&5 9759echo "${ECHO_T}no" >&6; } 9760fi 9761 9762 if test "x$ac_ct_STRIP" = x; then 9763 STRIP=":" 9764 else 9765 case $cross_compiling:$ac_tool_warned in 9766yes:) 9767{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 9768whose name does not start with the host triplet. If you think this 9769configuration is useful to you, please write to autoconf@gnu.org." >&5 9770echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 9771whose name does not start with the host triplet. If you think this 9772configuration is useful to you, please write to autoconf@gnu.org." >&2;} 9773ac_tool_warned=yes ;; 9774esac 9775 STRIP=$ac_ct_STRIP 9776 fi 9777else 9778 STRIP="$ac_cv_prog_STRIP" 9779fi 9780 9781 9782old_CC="$CC" 9783old_CFLAGS="$CFLAGS" 9784 9785# Set sane defaults for various variables 9786test -z "$AR" && AR=ar 9787test -z "$AR_FLAGS" && AR_FLAGS=cru 9788test -z "$AS" && AS=as 9789test -z "$CC" && CC=cc 9790test -z "$LTCC" && LTCC=$CC 9791test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9792test -z "$DLLTOOL" && DLLTOOL=dlltool 9793test -z "$LD" && LD=ld 9794test -z "$LN_S" && LN_S="ln -s" 9795test -z "$MAGIC_CMD" && MAGIC_CMD=file 9796test -z "$NM" && NM=nm 9797test -z "$SED" && SED=sed 9798test -z "$OBJDUMP" && OBJDUMP=objdump 9799test -z "$RANLIB" && RANLIB=: 9800test -z "$STRIP" && STRIP=: 9801test -z "$ac_objext" && ac_objext=o 9802 9803# Determine commands to create old-style static archives. 9804old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 9805old_postinstall_cmds='chmod 644 $oldlib' 9806old_postuninstall_cmds= 9807 9808if test -n "$RANLIB"; then 9809 case $host_os in 9810 openbsd*) 9811 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 9812 ;; 9813 *) 9814 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 9815 ;; 9816 esac 9817 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 9818fi 9819 9820for cc_temp in $compiler""; do 9821 case $cc_temp in 9822 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9823 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9824 \-*) ;; 9825 *) break;; 9826 esac 9827done 9828cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9829 9830 9831# Only perform the check for file, if the check method requires it 9832case $deplibs_check_method in 9833file_magic*) 9834 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9835 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 9836echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 9837if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 9838 echo $ECHO_N "(cached) $ECHO_C" >&6 9839else 9840 case $MAGIC_CMD in 9841[\\/*] | ?:[\\/]*) 9842 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9843 ;; 9844*) 9845 lt_save_MAGIC_CMD="$MAGIC_CMD" 9846 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9847 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9848 for ac_dir in $ac_dummy; do 9849 IFS="$lt_save_ifs" 9850 test -z "$ac_dir" && ac_dir=. 9851 if test -f $ac_dir/${ac_tool_prefix}file; then 9852 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9853 if test -n "$file_magic_test_file"; then 9854 case $deplibs_check_method in 9855 "file_magic "*) 9856 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9857 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9858 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9859 $EGREP "$file_magic_regex" > /dev/null; then 9860 : 9861 else 9862 cat <<EOF 1>&2 9863 9864*** Warning: the command libtool uses to detect shared libraries, 9865*** $file_magic_cmd, produces output that libtool cannot recognize. 9866*** The result is that libtool may fail to recognize shared libraries 9867*** as such. This will affect the creation of libtool libraries that 9868*** depend on shared libraries, but programs linked with such libtool 9869*** libraries will work regardless of this problem. Nevertheless, you 9870*** may want to report the problem to your system manager and/or to 9871*** bug-libtool@gnu.org 9872 9873EOF 9874 fi ;; 9875 esac 9876 fi 9877 break 9878 fi 9879 done 9880 IFS="$lt_save_ifs" 9881 MAGIC_CMD="$lt_save_MAGIC_CMD" 9882 ;; 9883esac 9884fi 9885 9886MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9887if test -n "$MAGIC_CMD"; then 9888 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 9889echo "${ECHO_T}$MAGIC_CMD" >&6; } 9890else 9891 { echo "$as_me:$LINENO: result: no" >&5 9892echo "${ECHO_T}no" >&6; } 9893fi 9894 9895if test -z "$lt_cv_path_MAGIC_CMD"; then 9896 if test -n "$ac_tool_prefix"; then 9897 { echo "$as_me:$LINENO: checking for file" >&5 9898echo $ECHO_N "checking for file... $ECHO_C" >&6; } 9899if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 9900 echo $ECHO_N "(cached) $ECHO_C" >&6 9901else 9902 case $MAGIC_CMD in 9903[\\/*] | ?:[\\/]*) 9904 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9905 ;; 9906*) 9907 lt_save_MAGIC_CMD="$MAGIC_CMD" 9908 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9909 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9910 for ac_dir in $ac_dummy; do 9911 IFS="$lt_save_ifs" 9912 test -z "$ac_dir" && ac_dir=. 9913 if test -f $ac_dir/file; then 9914 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9915 if test -n "$file_magic_test_file"; then 9916 case $deplibs_check_method in 9917 "file_magic "*) 9918 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9919 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9920 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9921 $EGREP "$file_magic_regex" > /dev/null; then 9922 : 9923 else 9924 cat <<EOF 1>&2 9925 9926*** Warning: the command libtool uses to detect shared libraries, 9927*** $file_magic_cmd, produces output that libtool cannot recognize. 9928*** The result is that libtool may fail to recognize shared libraries 9929*** as such. This will affect the creation of libtool libraries that 9930*** depend on shared libraries, but programs linked with such libtool 9931*** libraries will work regardless of this problem. Nevertheless, you 9932*** may want to report the problem to your system manager and/or to 9933*** bug-libtool@gnu.org 9934 9935EOF 9936 fi ;; 9937 esac 9938 fi 9939 break 9940 fi 9941 done 9942 IFS="$lt_save_ifs" 9943 MAGIC_CMD="$lt_save_MAGIC_CMD" 9944 ;; 9945esac 9946fi 9947 9948MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9949if test -n "$MAGIC_CMD"; then 9950 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 9951echo "${ECHO_T}$MAGIC_CMD" >&6; } 9952else 9953 { echo "$as_me:$LINENO: result: no" >&5 9954echo "${ECHO_T}no" >&6; } 9955fi 9956 9957 else 9958 MAGIC_CMD=: 9959 fi 9960fi 9961 9962 fi 9963 ;; 9964esac 9965 9966enable_dlopen=no 9967enable_win32_dll=no 9968 9969# Check whether --enable-libtool-lock was given. 9970if test "${enable_libtool_lock+set}" = set; then 9971 enableval=$enable_libtool_lock; 9972fi 9973 9974test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 9975 9976 9977# Check whether --with-pic was given. 9978if test "${with_pic+set}" = set; then 9979 withval=$with_pic; pic_mode="$withval" 9980else 9981 pic_mode=default 9982fi 9983 9984test -z "$pic_mode" && pic_mode=default 9985 9986# Use C for the default configuration in the libtool script 9987tagname= 9988lt_save_CC="$CC" 9989ac_ext=c 9990ac_cpp='$CPP $CPPFLAGS' 9991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9993ac_compiler_gnu=$ac_cv_c_compiler_gnu 9994 9995 9996# Source file extension for C test sources. 9997ac_ext=c 9998 9999# Object file extension for compiled C test sources. 10000objext=o 10001objext=$objext 10002 10003# Code to be used in simple compile tests 10004lt_simple_compile_test_code="int some_variable = 0;\n" 10005 10006# Code to be used in simple link tests 10007lt_simple_link_test_code='int main(){return(0);}\n' 10008 10009 10010# If no C compiler was specified, use CC. 10011LTCC=${LTCC-"$CC"} 10012 10013# If no C compiler flags were specified, use CFLAGS. 10014LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10015 10016# Allow CC to be a program name with arguments. 10017compiler=$CC 10018 10019 10020# save warnings/boilerplate of simple test code 10021ac_outfile=conftest.$ac_objext 10022printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10023eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10024_lt_compiler_boilerplate=`cat conftest.err` 10025$rm conftest* 10026 10027ac_outfile=conftest.$ac_objext 10028printf "$lt_simple_link_test_code" >conftest.$ac_ext 10029eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10030_lt_linker_boilerplate=`cat conftest.err` 10031$rm conftest* 10032 10033 10034 10035lt_prog_compiler_no_builtin_flag= 10036 10037if test "$GCC" = yes; then 10038 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 10039 10040 10041{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10042echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 10043if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 10044 echo $ECHO_N "(cached) $ECHO_C" >&6 10045else 10046 lt_cv_prog_compiler_rtti_exceptions=no 10047 ac_outfile=conftest.$ac_objext 10048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10049 lt_compiler_flag="-fno-rtti -fno-exceptions" 10050 # Insert the option either (1) after the last *FLAGS variable, or 10051 # (2) before a word containing "conftest.", or (3) at the end. 10052 # Note that $ac_compile itself does not contain backslashes and begins 10053 # with a dollar sign (not a hyphen), so the echo should work correctly. 10054 # The option is referenced via a variable to avoid confusing sed. 10055 lt_compile=`echo "$ac_compile" | $SED \ 10056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10058 -e 's:$: $lt_compiler_flag:'` 10059 (eval echo "\"\$as_me:10059: $lt_compile\"" >&5) 10060 (eval "$lt_compile" 2>conftest.err) 10061 ac_status=$? 10062 cat conftest.err >&5 10063 echo "$as_me:10063: \$? = $ac_status" >&5 10064 if (exit $ac_status) && test -s "$ac_outfile"; then 10065 # The compiler can only warn and ignore the option if not recognized 10066 # So say no if there are warnings other than the usual output. 10067 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 10068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10069 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10070 lt_cv_prog_compiler_rtti_exceptions=yes 10071 fi 10072 fi 10073 $rm conftest* 10074 10075fi 10076{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10077echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10078 10079if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10080 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10081else 10082 : 10083fi 10084 10085fi 10086 10087lt_prog_compiler_wl= 10088lt_prog_compiler_pic= 10089lt_prog_compiler_static= 10090 10091{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10092echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 10093 10094 if test "$GCC" = yes; then 10095 lt_prog_compiler_wl='-Wl,' 10096 lt_prog_compiler_static='-static' 10097 10098 case $host_os in 10099 aix*) 10100 # All AIX code is PIC. 10101 if test "$host_cpu" = ia64; then 10102 # AIX 5 now supports IA64 processor 10103 lt_prog_compiler_static='-Bstatic' 10104 fi 10105 ;; 10106 10107 amigaos*) 10108 # FIXME: we need at least 68020 code to build shared libraries, but 10109 # adding the `-m68020' flag to GCC prevents building anything better, 10110 # like `-m68040'. 10111 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10112 ;; 10113 10114 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10115 # PIC is the default for these OSes. 10116 ;; 10117 10118 mingw* | pw32* | os2*) 10119 # This hack is so that the source file can tell whether it is being 10120 # built for inclusion in a dll (and should export symbols for example). 10121 lt_prog_compiler_pic='-DDLL_EXPORT' 10122 ;; 10123 10124 darwin* | rhapsody*) 10125 # PIC is the default on this platform 10126 # Common symbols not allowed in MH_DYLIB files 10127 lt_prog_compiler_pic='-fno-common' 10128 ;; 10129 10130 interix3*) 10131 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10132 # Instead, we relocate shared libraries at runtime. 10133 ;; 10134 10135 msdosdjgpp*) 10136 # Just because we use GCC doesn't mean we suddenly get shared libraries 10137 # on systems that don't support them. 10138 lt_prog_compiler_can_build_shared=no 10139 enable_shared=no 10140 ;; 10141 10142 sysv4*MP*) 10143 if test -d /usr/nec; then 10144 lt_prog_compiler_pic=-Kconform_pic 10145 fi 10146 ;; 10147 10148 hpux*) 10149 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10150 # not for PA HP-UX. 10151 case $host_cpu in 10152 hppa*64*|ia64*) 10153 # +Z the default 10154 ;; 10155 *) 10156 lt_prog_compiler_pic='-fPIC' 10157 ;; 10158 esac 10159 ;; 10160 10161 *) 10162 lt_prog_compiler_pic='-fPIC' 10163 ;; 10164 esac 10165 else 10166 # PORTME Check for flag to pass linker flags through the system compiler. 10167 case $host_os in 10168 aix*) 10169 lt_prog_compiler_wl='-Wl,' 10170 if test "$host_cpu" = ia64; then 10171 # AIX 5 now supports IA64 processor 10172 lt_prog_compiler_static='-Bstatic' 10173 else 10174 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10175 fi 10176 ;; 10177 darwin*) 10178 # PIC is the default on this platform 10179 # Common symbols not allowed in MH_DYLIB files 10180 case $cc_basename in 10181 xlc*) 10182 lt_prog_compiler_pic='-qnocommon' 10183 lt_prog_compiler_wl='-Wl,' 10184 ;; 10185 esac 10186 ;; 10187 10188 mingw* | pw32* | os2*) 10189 # This hack is so that the source file can tell whether it is being 10190 # built for inclusion in a dll (and should export symbols for example). 10191 lt_prog_compiler_pic='-DDLL_EXPORT' 10192 ;; 10193 10194 hpux9* | hpux10* | hpux11*) 10195 lt_prog_compiler_wl='-Wl,' 10196 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10197 # not for PA HP-UX. 10198 case $host_cpu in 10199 hppa*64*|ia64*) 10200 # +Z the default 10201 ;; 10202 *) 10203 lt_prog_compiler_pic='+Z' 10204 ;; 10205 esac 10206 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10207 lt_prog_compiler_static='${wl}-a ${wl}archive' 10208 ;; 10209 10210 irix5* | irix6* | nonstopux*) 10211 lt_prog_compiler_wl='-Wl,' 10212 # PIC (with -KPIC) is the default. 10213 lt_prog_compiler_static='-non_shared' 10214 ;; 10215 10216 newsos6) 10217 lt_prog_compiler_pic='-KPIC' 10218 lt_prog_compiler_static='-Bstatic' 10219 ;; 10220 10221 linux* | k*bsd*-gnu) 10222 case $cc_basename in 10223 icc* | ecc*) 10224 lt_prog_compiler_wl='-Wl,' 10225 lt_prog_compiler_pic='-KPIC' 10226 lt_prog_compiler_static='-static' 10227 ;; 10228 pgcc* | pgf77* | pgf90* | pgf95*) 10229 # Portland Group compilers (*not* the Pentium gcc compiler, 10230 # which looks to be a dead project) 10231 lt_prog_compiler_wl='-Wl,' 10232 lt_prog_compiler_pic='-fpic' 10233 lt_prog_compiler_static='-Bstatic' 10234 ;; 10235 ccc*) 10236 lt_prog_compiler_wl='-Wl,' 10237 # All Alpha code is PIC. 10238 lt_prog_compiler_static='-non_shared' 10239 ;; 10240 esac 10241 ;; 10242 10243 osf3* | osf4* | osf5*) 10244 lt_prog_compiler_wl='-Wl,' 10245 # All OSF/1 code is PIC. 10246 lt_prog_compiler_static='-non_shared' 10247 ;; 10248 10249 solaris*) 10250 lt_prog_compiler_pic='-KPIC' 10251 lt_prog_compiler_static='-Bstatic' 10252 case $cc_basename in 10253 f77* | f90* | f95*) 10254 lt_prog_compiler_wl='-Qoption ld ';; 10255 *) 10256 lt_prog_compiler_wl='-Wl,';; 10257 esac 10258 ;; 10259 10260 sunos4*) 10261 lt_prog_compiler_wl='-Qoption ld ' 10262 lt_prog_compiler_pic='-PIC' 10263 lt_prog_compiler_static='-Bstatic' 10264 ;; 10265 10266 sysv4 | sysv4.2uw2* | sysv4.3*) 10267 lt_prog_compiler_wl='-Wl,' 10268 lt_prog_compiler_pic='-KPIC' 10269 lt_prog_compiler_static='-Bstatic' 10270 ;; 10271 10272 sysv4*MP*) 10273 if test -d /usr/nec ;then 10274 lt_prog_compiler_pic='-Kconform_pic' 10275 lt_prog_compiler_static='-Bstatic' 10276 fi 10277 ;; 10278 10279 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10280 lt_prog_compiler_wl='-Wl,' 10281 lt_prog_compiler_pic='-KPIC' 10282 lt_prog_compiler_static='-Bstatic' 10283 ;; 10284 10285 unicos*) 10286 lt_prog_compiler_wl='-Wl,' 10287 lt_prog_compiler_can_build_shared=no 10288 ;; 10289 10290 uts4*) 10291 lt_prog_compiler_pic='-pic' 10292 lt_prog_compiler_static='-Bstatic' 10293 ;; 10294 10295 *) 10296 lt_prog_compiler_can_build_shared=no 10297 ;; 10298 esac 10299 fi 10300 10301{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 10302echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 10303 10304# 10305# Check to make sure the PIC flag actually works. 10306# 10307if test -n "$lt_prog_compiler_pic"; then 10308 10309{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10310echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 10311if test "${lt_prog_compiler_pic_works+set}" = set; then 10312 echo $ECHO_N "(cached) $ECHO_C" >&6 10313else 10314 lt_prog_compiler_pic_works=no 10315 ac_outfile=conftest.$ac_objext 10316 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10318 # Insert the option either (1) after the last *FLAGS variable, or 10319 # (2) before a word containing "conftest.", or (3) at the end. 10320 # Note that $ac_compile itself does not contain backslashes and begins 10321 # with a dollar sign (not a hyphen), so the echo should work correctly. 10322 # The option is referenced via a variable to avoid confusing sed. 10323 lt_compile=`echo "$ac_compile" | $SED \ 10324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10326 -e 's:$: $lt_compiler_flag:'` 10327 (eval echo "\"\$as_me:10327: $lt_compile\"" >&5) 10328 (eval "$lt_compile" 2>conftest.err) 10329 ac_status=$? 10330 cat conftest.err >&5 10331 echo "$as_me:10331: \$? = $ac_status" >&5 10332 if (exit $ac_status) && test -s "$ac_outfile"; then 10333 # The compiler can only warn and ignore the option if not recognized 10334 # So say no if there are warnings other than the usual output. 10335 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 10336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10338 lt_prog_compiler_pic_works=yes 10339 fi 10340 fi 10341 $rm conftest* 10342 10343fi 10344{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 10345echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 10346 10347if test x"$lt_prog_compiler_pic_works" = xyes; then 10348 case $lt_prog_compiler_pic in 10349 "" | " "*) ;; 10350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10351 esac 10352else 10353 lt_prog_compiler_pic= 10354 lt_prog_compiler_can_build_shared=no 10355fi 10356 10357fi 10358case $host_os in 10359 # For platforms which do not support PIC, -DPIC is meaningless: 10360 *djgpp*) 10361 lt_prog_compiler_pic= 10362 ;; 10363 *) 10364 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10365 ;; 10366esac 10367 10368# 10369# Check to make sure the static flag actually works. 10370# 10371wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10372{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10373echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 10374if test "${lt_prog_compiler_static_works+set}" = set; then 10375 echo $ECHO_N "(cached) $ECHO_C" >&6 10376else 10377 lt_prog_compiler_static_works=no 10378 save_LDFLAGS="$LDFLAGS" 10379 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10380 printf "$lt_simple_link_test_code" > conftest.$ac_ext 10381 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10382 # The linker can only warn and ignore the option if not recognized 10383 # So say no if there are warnings 10384 if test -s conftest.err; then 10385 # Append any errors to the config.log. 10386 cat conftest.err 1>&5 10387 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 10388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10389 if diff conftest.exp conftest.er2 >/dev/null; then 10390 lt_prog_compiler_static_works=yes 10391 fi 10392 else 10393 lt_prog_compiler_static_works=yes 10394 fi 10395 fi 10396 $rm conftest* 10397 LDFLAGS="$save_LDFLAGS" 10398 10399fi 10400{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 10401echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 10402 10403if test x"$lt_prog_compiler_static_works" = xyes; then 10404 : 10405else 10406 lt_prog_compiler_static= 10407fi 10408 10409 10410{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 10411echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 10412if test "${lt_cv_prog_compiler_c_o+set}" = set; then 10413 echo $ECHO_N "(cached) $ECHO_C" >&6 10414else 10415 lt_cv_prog_compiler_c_o=no 10416 $rm -r conftest 2>/dev/null 10417 mkdir conftest 10418 cd conftest 10419 mkdir out 10420 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10421 10422 lt_compiler_flag="-o out/conftest2.$ac_objext" 10423 # Insert the option either (1) after the last *FLAGS variable, or 10424 # (2) before a word containing "conftest.", or (3) at the end. 10425 # Note that $ac_compile itself does not contain backslashes and begins 10426 # with a dollar sign (not a hyphen), so the echo should work correctly. 10427 lt_compile=`echo "$ac_compile" | $SED \ 10428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10430 -e 's:$: $lt_compiler_flag:'` 10431 (eval echo "\"\$as_me:10431: $lt_compile\"" >&5) 10432 (eval "$lt_compile" 2>out/conftest.err) 10433 ac_status=$? 10434 cat out/conftest.err >&5 10435 echo "$as_me:10435: \$? = $ac_status" >&5 10436 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10437 then 10438 # The compiler can only warn and ignore the option if not recognized 10439 # So say no if there are warnings 10440 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 10441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10443 lt_cv_prog_compiler_c_o=yes 10444 fi 10445 fi 10446 chmod u+w . 2>&5 10447 $rm conftest* 10448 # SGI C++ compiler will create directory out/ii_files/ for 10449 # template instantiation 10450 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 10451 $rm out/* && rmdir out 10452 cd .. 10453 rmdir conftest 10454 $rm conftest* 10455 10456fi 10457{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 10458echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 10459 10460 10461hard_links="nottested" 10462if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10463 # do not overwrite the value of need_locks provided by the user 10464 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 10465echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 10466 hard_links=yes 10467 $rm conftest* 10468 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10469 touch conftest.a 10470 ln conftest.a conftest.b 2>&5 || hard_links=no 10471 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10472 { echo "$as_me:$LINENO: result: $hard_links" >&5 10473echo "${ECHO_T}$hard_links" >&6; } 10474 if test "$hard_links" = no; then 10475 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10476echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10477 need_locks=warn 10478 fi 10479else 10480 need_locks=no 10481fi 10482 10483{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10484echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10485 10486 runpath_var= 10487 allow_undefined_flag= 10488 enable_shared_with_static_runtimes=no 10489 archive_cmds= 10490 archive_expsym_cmds= 10491 old_archive_From_new_cmds= 10492 old_archive_from_expsyms_cmds= 10493 export_dynamic_flag_spec= 10494 whole_archive_flag_spec= 10495 thread_safe_flag_spec= 10496 hardcode_libdir_flag_spec= 10497 hardcode_libdir_flag_spec_ld= 10498 hardcode_libdir_separator= 10499 hardcode_direct=no 10500 hardcode_minus_L=no 10501 hardcode_shlibpath_var=unsupported 10502 link_all_deplibs=unknown 10503 hardcode_automatic=no 10504 module_cmds= 10505 module_expsym_cmds= 10506 always_export_symbols=no 10507 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10508 # include_expsyms should be a list of space-separated symbols to be *always* 10509 # included in the symbol list 10510 include_expsyms= 10511 # exclude_expsyms can be an extended regexp of symbols to exclude 10512 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10513 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10514 # as well as any symbol that contains `d'. 10515 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 10516 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10517 # platforms (ab)use it in PIC code, but their linkers get confused if 10518 # the symbol is explicitly referenced. Since portable code cannot 10519 # rely on this symbol name, it's probably fine to never include it in 10520 # preloaded symbol tables. 10521 extract_expsyms_cmds= 10522 # Just being paranoid about ensuring that cc_basename is set. 10523 for cc_temp in $compiler""; do 10524 case $cc_temp in 10525 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10526 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10527 \-*) ;; 10528 *) break;; 10529 esac 10530done 10531cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10532 10533 case $host_os in 10534 cygwin* | mingw* | pw32*) 10535 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10536 # When not using gcc, we currently assume that we are using 10537 # Microsoft Visual C++. 10538 if test "$GCC" != yes; then 10539 with_gnu_ld=no 10540 fi 10541 ;; 10542 interix*) 10543 # we just hope/assume this is gcc and not c89 (= MSVC++) 10544 with_gnu_ld=yes 10545 ;; 10546 openbsd*) 10547 with_gnu_ld=no 10548 ;; 10549 esac 10550 10551 ld_shlibs=yes 10552 if test "$with_gnu_ld" = yes; then 10553 # If archive_cmds runs LD, not CC, wlarc should be empty 10554 wlarc='${wl}' 10555 10556 # Set some defaults for GNU ld with shared library support. These 10557 # are reset later if shared libraries are not supported. Putting them 10558 # here allows them to be overridden if necessary. 10559 runpath_var=LD_RUN_PATH 10560 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 10561 export_dynamic_flag_spec='${wl}--export-dynamic' 10562 # ancient GNU ld didn't support --whole-archive et. al. 10563 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 10564 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10565 else 10566 whole_archive_flag_spec= 10567 fi 10568 supports_anon_versioning=no 10569 case `$LD -v 2>/dev/null` in 10570 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10571 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10572 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10573 *\ 2.11.*) ;; # other 2.11 versions 10574 *) supports_anon_versioning=yes ;; 10575 esac 10576 10577 # See if GNU ld supports shared libraries. 10578 case $host_os in 10579 aix3* | aix4* | aix5*) 10580 # On AIX/PPC, the GNU linker is very broken 10581 if test "$host_cpu" != ia64; then 10582 ld_shlibs=no 10583 cat <<EOF 1>&2 10584 10585*** Warning: the GNU linker, at least up to release 2.9.1, is reported 10586*** to be unable to reliably create shared libraries on AIX. 10587*** Therefore, libtool is disabling shared libraries support. If you 10588*** really care for shared libraries, you may want to modify your PATH 10589*** so that a non-GNU linker is found, and then restart. 10590 10591EOF 10592 fi 10593 ;; 10594 10595 amigaos*) 10596 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)' 10597 hardcode_libdir_flag_spec='-L$libdir' 10598 hardcode_minus_L=yes 10599 10600 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 10601 # that the semantics of dynamic libraries on AmigaOS, at least up 10602 # to version 4, is to share data among multiple programs linked 10603 # with the same dynamic library. Since this doesn't match the 10604 # behavior of shared libraries on other platforms, we can't use 10605 # them. 10606 ld_shlibs=no 10607 ;; 10608 10609 beos*) 10610 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10611 allow_undefined_flag=unsupported 10612 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10613 # support --undefined. This deserves some investigation. FIXME 10614 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10615 else 10616 ld_shlibs=no 10617 fi 10618 ;; 10619 10620 cygwin* | mingw* | pw32*) 10621 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10622 # as there is no search path for DLLs. 10623 hardcode_libdir_flag_spec='-L$libdir' 10624 allow_undefined_flag=unsupported 10625 always_export_symbols=no 10626 enable_shared_with_static_runtimes=yes 10627 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 10628 10629 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10631 # If the export-symbols file already is a .def file (1st line 10632 # is EXPORTS), use it as is; otherwise, prepend... 10633 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10634 cp $export_symbols $output_objdir/$soname.def; 10635 else 10636 echo EXPORTS > $output_objdir/$soname.def; 10637 cat $export_symbols >> $output_objdir/$soname.def; 10638 fi~ 10639 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10640 else 10641 ld_shlibs=no 10642 fi 10643 ;; 10644 10645 interix3*) 10646 hardcode_direct=no 10647 hardcode_shlibpath_var=no 10648 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10649 export_dynamic_flag_spec='${wl}-E' 10650 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10651 # Instead, shared libraries are loaded at an image base (0x10000000 by 10652 # default) and relocated if they conflict, which is a slow very memory 10653 # consuming and fragmenting process. To avoid this, we pick a random, 10654 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10655 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10656 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10657 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' 10658 ;; 10659 10660 linux* | k*bsd*-gnu) 10661 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10662 tmp_addflag= 10663 case $cc_basename,$host_cpu in 10664 pgcc*) # Portland Group C compiler 10665 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' 10666 tmp_addflag=' $pic_flag' 10667 ;; 10668 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 10669 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' 10670 tmp_addflag=' $pic_flag -Mnomain' ;; 10671 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10672 tmp_addflag=' -i_dynamic' ;; 10673 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10674 tmp_addflag=' -i_dynamic -nofor_main' ;; 10675 ifc* | ifort*) # Intel Fortran compiler 10676 tmp_addflag=' -nofor_main' ;; 10677 esac 10678 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10679 10680 if test $supports_anon_versioning = yes; then 10681 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 10682 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10683 $echo "local: *; };" >> $output_objdir/$libname.ver~ 10684 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10685 fi 10686 link_all_deplibs=no 10687 else 10688 ld_shlibs=no 10689 fi 10690 ;; 10691 10692 netbsd* | netbsdelf*-gnu) 10693 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10694 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10695 wlarc= 10696 else 10697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10698 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10699 fi 10700 ;; 10701 10702 solaris*) 10703 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 10704 ld_shlibs=no 10705 cat <<EOF 1>&2 10706 10707*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10708*** create shared libraries on Solaris systems. Therefore, libtool 10709*** is disabling shared libraries support. We urge you to upgrade GNU 10710*** binutils to release 2.9.1 or newer. Another option is to modify 10711*** your PATH or compiler configuration so that the native linker is 10712*** used, and then restart. 10713 10714EOF 10715 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10717 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10718 else 10719 ld_shlibs=no 10720 fi 10721 ;; 10722 10723 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10724 case `$LD -v 2>&1` in 10725 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10726 ld_shlibs=no 10727 cat <<_LT_EOF 1>&2 10728 10729*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10730*** reliably create shared libraries on SCO systems. Therefore, libtool 10731*** is disabling shared libraries support. We urge you to upgrade GNU 10732*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10733*** your PATH or compiler configuration so that the native linker is 10734*** used, and then restart. 10735 10736_LT_EOF 10737 ;; 10738 *) 10739 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10740 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 10741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 10742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 10743 else 10744 ld_shlibs=no 10745 fi 10746 ;; 10747 esac 10748 ;; 10749 10750 sunos4*) 10751 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10752 wlarc= 10753 hardcode_direct=yes 10754 hardcode_shlibpath_var=no 10755 ;; 10756 10757 *) 10758 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 10759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10761 else 10762 ld_shlibs=no 10763 fi 10764 ;; 10765 esac 10766 10767 if test "$ld_shlibs" = no; then 10768 runpath_var= 10769 hardcode_libdir_flag_spec= 10770 export_dynamic_flag_spec= 10771 whole_archive_flag_spec= 10772 fi 10773 else 10774 # PORTME fill in a description of your system's linker (not GNU ld) 10775 case $host_os in 10776 aix3*) 10777 allow_undefined_flag=unsupported 10778 always_export_symbols=yes 10779 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' 10780 # Note: this linker hardcodes the directories in LIBPATH if there 10781 # are no directories specified by -L. 10782 hardcode_minus_L=yes 10783 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10784 # Neither direct hardcoding nor static linking is supported with a 10785 # broken collect2. 10786 hardcode_direct=unsupported 10787 fi 10788 ;; 10789 10790 aix4* | aix5*) 10791 if test "$host_cpu" = ia64; then 10792 # On IA64, the linker does run time linking by default, so we don't 10793 # have to do anything special. 10794 aix_use_runtimelinking=no 10795 exp_sym_flag='-Bexport' 10796 no_entry_flag="" 10797 else 10798 # If we're using GNU nm, then we don't want the "-C" option. 10799 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10800 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 10801 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' 10802 else 10803 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' 10804 fi 10805 aix_use_runtimelinking=no 10806 10807 # Test if we are trying to use run time linking or normal 10808 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10809 # need to do runtime linking. 10810 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10811 for ld_flag in $LDFLAGS; do 10812 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10813 aix_use_runtimelinking=yes 10814 break 10815 fi 10816 done 10817 ;; 10818 esac 10819 10820 exp_sym_flag='-bexport' 10821 no_entry_flag='-bnoentry' 10822 fi 10823 10824 # When large executables or shared objects are built, AIX ld can 10825 # have problems creating the table of contents. If linking a library 10826 # or program results in "error TOC overflow" add -mminimal-toc to 10827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10829 10830 archive_cmds='' 10831 hardcode_direct=yes 10832 hardcode_libdir_separator=':' 10833 link_all_deplibs=yes 10834 10835 if test "$GCC" = yes; then 10836 case $host_os in aix4.[012]|aix4.[012].*) 10837 # We only want to do this on AIX 4.2 and lower, the check 10838 # below for broken collect2 doesn't work under 4.3+ 10839 collect2name=`${CC} -print-prog-name=collect2` 10840 if test -f "$collect2name" && \ 10841 strings "$collect2name" | grep resolve_lib_name >/dev/null 10842 then 10843 # We have reworked collect2 10844 hardcode_direct=yes 10845 else 10846 # We have old collect2 10847 hardcode_direct=unsupported 10848 # It fails to find uninstalled libraries when the uninstalled 10849 # path is not listed in the libpath. Setting hardcode_minus_L 10850 # to unsupported forces relinking 10851 hardcode_minus_L=yes 10852 hardcode_libdir_flag_spec='-L$libdir' 10853 hardcode_libdir_separator= 10854 fi 10855 ;; 10856 esac 10857 shared_flag='-shared' 10858 if test "$aix_use_runtimelinking" = yes; then 10859 shared_flag="$shared_flag "'${wl}-G' 10860 fi 10861 else 10862 # not using gcc 10863 if test "$host_cpu" = ia64; then 10864 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10865 # chokes on -Wl,-G. The following line is correct: 10866 shared_flag='-G' 10867 else 10868 if test "$aix_use_runtimelinking" = yes; then 10869 shared_flag='${wl}-G' 10870 else 10871 shared_flag='${wl}-bM:SRE' 10872 fi 10873 fi 10874 fi 10875 10876 # It seems that -bexpall does not export symbols beginning with 10877 # underscore (_), so it is better to generate a list of symbols to export. 10878 always_export_symbols=yes 10879 if test "$aix_use_runtimelinking" = yes; then 10880 # Warning - without using the other runtime loading flags (-brtl), 10881 # -berok will link without error, but may produce a broken library. 10882 allow_undefined_flag='-berok' 10883 # Determine the default libpath from the value encoded in an empty executable. 10884 cat >conftest.$ac_ext <<_ACEOF 10885/* confdefs.h. */ 10886_ACEOF 10887cat confdefs.h >>conftest.$ac_ext 10888cat >>conftest.$ac_ext <<_ACEOF 10889/* end confdefs.h. */ 10890 10891int 10892main () 10893{ 10894 10895 ; 10896 return 0; 10897} 10898_ACEOF 10899rm -f conftest.$ac_objext conftest$ac_exeext 10900if { (ac_try="$ac_link" 10901case "(($ac_try" in 10902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10903 *) ac_try_echo=$ac_try;; 10904esac 10905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10906 (eval "$ac_link") 2>conftest.er1 10907 ac_status=$? 10908 grep -v '^ *+' conftest.er1 >conftest.err 10909 rm -f conftest.er1 10910 cat conftest.err >&5 10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10912 (exit $ac_status); } && { 10913 test -z "$ac_c_werror_flag" || 10914 test ! -s conftest.err 10915 } && test -s conftest$ac_exeext && 10916 $as_test_x conftest$ac_exeext; then 10917 10918aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10919}'` 10920# Check for a 64-bit object if we didn't find anything. 10921if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10922}'`; fi 10923else 10924 echo "$as_me: failed program was:" >&5 10925sed 's/^/| /' conftest.$ac_ext >&5 10926 10927 10928fi 10929 10930rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10931 conftest$ac_exeext conftest.$ac_ext 10932if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10933 10934 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10935 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" 10936 else 10937 if test "$host_cpu" = ia64; then 10938 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10939 allow_undefined_flag="-z nodefs" 10940 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" 10941 else 10942 # Determine the default libpath from the value encoded in an empty executable. 10943 cat >conftest.$ac_ext <<_ACEOF 10944/* confdefs.h. */ 10945_ACEOF 10946cat confdefs.h >>conftest.$ac_ext 10947cat >>conftest.$ac_ext <<_ACEOF 10948/* end confdefs.h. */ 10949 10950int 10951main () 10952{ 10953 10954 ; 10955 return 0; 10956} 10957_ACEOF 10958rm -f conftest.$ac_objext conftest$ac_exeext 10959if { (ac_try="$ac_link" 10960case "(($ac_try" in 10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10962 *) ac_try_echo=$ac_try;; 10963esac 10964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10965 (eval "$ac_link") 2>conftest.er1 10966 ac_status=$? 10967 grep -v '^ *+' conftest.er1 >conftest.err 10968 rm -f conftest.er1 10969 cat conftest.err >&5 10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10971 (exit $ac_status); } && { 10972 test -z "$ac_c_werror_flag" || 10973 test ! -s conftest.err 10974 } && test -s conftest$ac_exeext && 10975 $as_test_x conftest$ac_exeext; then 10976 10977aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10978}'` 10979# Check for a 64-bit object if we didn't find anything. 10980if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10981}'`; fi 10982else 10983 echo "$as_me: failed program was:" >&5 10984sed 's/^/| /' conftest.$ac_ext >&5 10985 10986 10987fi 10988 10989rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10990 conftest$ac_exeext conftest.$ac_ext 10991if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10992 10993 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10994 # Warning - without using the other run time loading flags, 10995 # -berok will link without error, but may produce a broken library. 10996 no_undefined_flag=' ${wl}-bernotok' 10997 allow_undefined_flag=' ${wl}-berok' 10998 # Exported symbols can be pulled into shared objects from archives 10999 whole_archive_flag_spec='$convenience' 11000 archive_cmds_need_lc=yes 11001 # This is similar to how AIX traditionally builds its shared libraries. 11002 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' 11003 fi 11004 fi 11005 ;; 11006 11007 amigaos*) 11008 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)' 11009 hardcode_libdir_flag_spec='-L$libdir' 11010 hardcode_minus_L=yes 11011 # see comment about different semantics on the GNU ld section 11012 ld_shlibs=no 11013 ;; 11014 11015 bsdi[45]*) 11016 export_dynamic_flag_spec=-rdynamic 11017 ;; 11018 11019 cygwin* | mingw* | pw32*) 11020 # When not using gcc, we currently assume that we are using 11021 # Microsoft Visual C++. 11022 # hardcode_libdir_flag_spec is actually meaningless, as there is 11023 # no search path for DLLs. 11024 hardcode_libdir_flag_spec=' ' 11025 allow_undefined_flag=unsupported 11026 # Tell ltmain to make .lib files, not .a files. 11027 libext=lib 11028 # Tell ltmain to make .dll files, not .so files. 11029 shrext_cmds=".dll" 11030 # FIXME: Setting linknames here is a bad hack. 11031 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 11032 # The linker will automatically build a .lib file if we build a DLL. 11033 old_archive_From_new_cmds='true' 11034 # FIXME: Should let the user specify the lib program. 11035 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 11036 fix_srcfile_path='`cygpath -w "$srcfile"`' 11037 enable_shared_with_static_runtimes=yes 11038 ;; 11039 11040 darwin* | rhapsody*) 11041 case $host_os in 11042 rhapsody* | darwin1.[012]) 11043 allow_undefined_flag='${wl}-undefined ${wl}suppress' 11044 ;; 11045 *) # Darwin 1.3 on 11046 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11047 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11048 else 11049 case ${MACOSX_DEPLOYMENT_TARGET} in 11050 10.[012]) 11051 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11052 ;; 11053 10.*) 11054 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 11055 ;; 11056 esac 11057 fi 11058 ;; 11059 esac 11060 archive_cmds_need_lc=no 11061 hardcode_direct=no 11062 hardcode_automatic=yes 11063 hardcode_shlibpath_var=unsupported 11064 whole_archive_flag_spec='' 11065 link_all_deplibs=yes 11066 if test "$GCC" = yes ; then 11067 output_verbose_link_cmd='echo' 11068 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11069 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11070 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11071 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11072 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}' 11073 else 11074 case $cc_basename in 11075 xlc*) 11076 output_verbose_link_cmd='echo' 11077 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11078 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11079 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11080 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11081 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}' 11082 ;; 11083 *) 11084 ld_shlibs=no 11085 ;; 11086 esac 11087 fi 11088 ;; 11089 11090 dgux*) 11091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11092 hardcode_libdir_flag_spec='-L$libdir' 11093 hardcode_shlibpath_var=no 11094 ;; 11095 11096 freebsd1*) 11097 ld_shlibs=no 11098 ;; 11099 11100 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11101 # support. Future versions do this automatically, but an explicit c++rt0.o 11102 # does not break anything, and helps significantly (at the cost of a little 11103 # extra space). 11104 freebsd2.2*) 11105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11106 hardcode_libdir_flag_spec='-R$libdir' 11107 hardcode_direct=yes 11108 hardcode_shlibpath_var=no 11109 ;; 11110 11111 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11112 freebsd2*) 11113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11114 hardcode_direct=yes 11115 hardcode_minus_L=yes 11116 hardcode_shlibpath_var=no 11117 ;; 11118 11119 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11120 freebsd* | dragonfly*) 11121 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 11122 hardcode_libdir_flag_spec='-R$libdir' 11123 hardcode_direct=yes 11124 hardcode_shlibpath_var=no 11125 ;; 11126 11127 hpux9*) 11128 if test "$GCC" = yes; then 11129 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' 11130 else 11131 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' 11132 fi 11133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11134 hardcode_libdir_separator=: 11135 hardcode_direct=yes 11136 11137 # hardcode_minus_L: Not really in the search PATH, 11138 # but as the default location of the library. 11139 hardcode_minus_L=yes 11140 export_dynamic_flag_spec='${wl}-E' 11141 ;; 11142 11143 hpux10*) 11144 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 11145 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11146 else 11147 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11148 fi 11149 if test "$with_gnu_ld" = no; then 11150 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11151 hardcode_libdir_separator=: 11152 11153 hardcode_direct=yes 11154 export_dynamic_flag_spec='${wl}-E' 11155 11156 # hardcode_minus_L: Not really in the search PATH, 11157 # but as the default location of the library. 11158 hardcode_minus_L=yes 11159 fi 11160 ;; 11161 11162 hpux11*) 11163 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 11164 case $host_cpu in 11165 hppa*64*) 11166 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11167 ;; 11168 ia64*) 11169 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11170 ;; 11171 *) 11172 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11173 ;; 11174 esac 11175 else 11176 case $host_cpu in 11177 hppa*64*) 11178 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11179 ;; 11180 ia64*) 11181 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11182 ;; 11183 *) 11184 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11185 ;; 11186 esac 11187 fi 11188 if test "$with_gnu_ld" = no; then 11189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11190 hardcode_libdir_separator=: 11191 11192 case $host_cpu in 11193 hppa*64*|ia64*) 11194 hardcode_libdir_flag_spec_ld='+b $libdir' 11195 hardcode_direct=no 11196 hardcode_shlibpath_var=no 11197 ;; 11198 *) 11199 hardcode_direct=yes 11200 export_dynamic_flag_spec='${wl}-E' 11201 11202 # hardcode_minus_L: Not really in the search PATH, 11203 # but as the default location of the library. 11204 hardcode_minus_L=yes 11205 ;; 11206 esac 11207 fi 11208 ;; 11209 11210 irix5* | irix6* | nonstopux*) 11211 if test "$GCC" = yes; then 11212 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' 11213 else 11214 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' 11215 hardcode_libdir_flag_spec_ld='-rpath $libdir' 11216 fi 11217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11218 hardcode_libdir_separator=: 11219 link_all_deplibs=yes 11220 ;; 11221 11222 netbsd* | netbsdelf*-gnu) 11223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11225 else 11226 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11227 fi 11228 hardcode_libdir_flag_spec='-R$libdir' 11229 hardcode_direct=yes 11230 hardcode_shlibpath_var=no 11231 ;; 11232 11233 newsos6) 11234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11235 hardcode_direct=yes 11236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11237 hardcode_libdir_separator=: 11238 hardcode_shlibpath_var=no 11239 ;; 11240 11241 openbsd*) 11242 hardcode_direct=yes 11243 hardcode_shlibpath_var=no 11244 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11245 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11246 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11247 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11248 export_dynamic_flag_spec='${wl}-E' 11249 else 11250 case $host_os in 11251 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11253 hardcode_libdir_flag_spec='-R$libdir' 11254 ;; 11255 *) 11256 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11258 ;; 11259 esac 11260 fi 11261 ;; 11262 11263 os2*) 11264 hardcode_libdir_flag_spec='-L$libdir' 11265 hardcode_minus_L=yes 11266 allow_undefined_flag=unsupported 11267 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' 11268 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11269 ;; 11270 11271 osf3*) 11272 if test "$GCC" = yes; then 11273 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11274 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' 11275 else 11276 allow_undefined_flag=' -expect_unresolved \*' 11277 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' 11278 fi 11279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11280 hardcode_libdir_separator=: 11281 ;; 11282 11283 osf4* | osf5*) # as osf3* with the addition of -msym flag 11284 if test "$GCC" = yes; then 11285 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11286 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' 11287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11288 else 11289 allow_undefined_flag=' -expect_unresolved \*' 11290 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' 11291 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 11292 $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' 11293 11294 # Both c and cxx compiler support -rpath directly 11295 hardcode_libdir_flag_spec='-rpath $libdir' 11296 fi 11297 hardcode_libdir_separator=: 11298 ;; 11299 11300 solaris*) 11301 no_undefined_flag=' -z text' 11302 if test "$GCC" = yes; then 11303 wlarc='${wl}' 11304 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11305 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11306 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 11307 else 11308 wlarc='' 11309 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11310 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11311 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 11312 fi 11313 hardcode_libdir_flag_spec='-R$libdir' 11314 hardcode_shlibpath_var=no 11315 case $host_os in 11316 solaris2.[0-5] | solaris2.[0-5].*) ;; 11317 *) 11318 # The compiler driver will combine linker options so we 11319 # cannot just pass the convience library names through 11320 # without $wl, iff we do not link with $LD. 11321 # Luckily, gcc supports the same syntax we need for Sun Studio. 11322 # Supported since Solaris 2.6 (maybe 2.5.1?) 11323 case $wlarc in 11324 '') 11325 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 11326 *) 11327 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 11328 esac ;; 11329 esac 11330 link_all_deplibs=yes 11331 ;; 11332 11333 sunos4*) 11334 if test "x$host_vendor" = xsequent; then 11335 # Use $CC to link under sequent, because it throws in some extra .o 11336 # files that make .init and .fini sections work. 11337 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11338 else 11339 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11340 fi 11341 hardcode_libdir_flag_spec='-L$libdir' 11342 hardcode_direct=yes 11343 hardcode_minus_L=yes 11344 hardcode_shlibpath_var=no 11345 ;; 11346 11347 sysv4) 11348 case $host_vendor in 11349 sni) 11350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11351 hardcode_direct=yes # is this really true??? 11352 ;; 11353 siemens) 11354 ## LD is ld it makes a PLAMLIB 11355 ## CC just makes a GrossModule. 11356 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11357 reload_cmds='$CC -r -o $output$reload_objs' 11358 hardcode_direct=no 11359 ;; 11360 motorola) 11361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11362 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11363 ;; 11364 esac 11365 runpath_var='LD_RUN_PATH' 11366 hardcode_shlibpath_var=no 11367 ;; 11368 11369 sysv4.3*) 11370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11371 hardcode_shlibpath_var=no 11372 export_dynamic_flag_spec='-Bexport' 11373 ;; 11374 11375 sysv4*MP*) 11376 if test -d /usr/nec; then 11377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11378 hardcode_shlibpath_var=no 11379 runpath_var=LD_RUN_PATH 11380 hardcode_runpath_var=yes 11381 ld_shlibs=yes 11382 fi 11383 ;; 11384 11385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 11386 no_undefined_flag='${wl}-z,text' 11387 archive_cmds_need_lc=no 11388 hardcode_shlibpath_var=no 11389 runpath_var='LD_RUN_PATH' 11390 11391 if test "$GCC" = yes; then 11392 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11393 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11394 else 11395 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11396 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11397 fi 11398 ;; 11399 11400 sysv5* | sco3.2v5* | sco5v6*) 11401 # Note: We can NOT use -z defs as we might desire, because we do not 11402 # link with -lc, and that would cause any symbols used from libc to 11403 # always be unresolved, which means just about no library would 11404 # ever link correctly. If we're not using GNU ld we use -z text 11405 # though, which does catch some bad symbols but isn't as heavy-handed 11406 # as -z defs. 11407 no_undefined_flag='${wl}-z,text' 11408 allow_undefined_flag='${wl}-z,nodefs' 11409 archive_cmds_need_lc=no 11410 hardcode_shlibpath_var=no 11411 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11412 hardcode_libdir_separator=':' 11413 link_all_deplibs=yes 11414 export_dynamic_flag_spec='${wl}-Bexport' 11415 runpath_var='LD_RUN_PATH' 11416 11417 if test "$GCC" = yes; then 11418 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11420 else 11421 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11423 fi 11424 ;; 11425 11426 uts4*) 11427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11428 hardcode_libdir_flag_spec='-L$libdir' 11429 hardcode_shlibpath_var=no 11430 ;; 11431 11432 *) 11433 ld_shlibs=no 11434 ;; 11435 esac 11436 fi 11437 11438{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 11439echo "${ECHO_T}$ld_shlibs" >&6; } 11440test "$ld_shlibs" = no && can_build_shared=no 11441 11442# 11443# Do we need to explicitly link libc? 11444# 11445case "x$archive_cmds_need_lc" in 11446x|xyes) 11447 # Assume -lc should be added 11448 archive_cmds_need_lc=yes 11449 11450 if test "$enable_shared" = yes && test "$GCC" = yes; then 11451 case $archive_cmds in 11452 *'~'*) 11453 # FIXME: we may have to deal with multi-command sequences. 11454 ;; 11455 '$CC '*) 11456 # Test whether the compiler implicitly links with -lc since on some 11457 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11458 # to ld, don't add -lc before -lgcc. 11459 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11460echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 11461 $rm conftest* 11462 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11463 11464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11465 (eval $ac_compile) 2>&5 11466 ac_status=$? 11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11468 (exit $ac_status); } 2>conftest.err; then 11469 soname=conftest 11470 lib=conftest 11471 libobjs=conftest.$ac_objext 11472 deplibs= 11473 wl=$lt_prog_compiler_wl 11474 pic_flag=$lt_prog_compiler_pic 11475 compiler_flags=-v 11476 linker_flags=-v 11477 verstring= 11478 output_objdir=. 11479 libname=conftest 11480 lt_save_allow_undefined_flag=$allow_undefined_flag 11481 allow_undefined_flag= 11482 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11483 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11484 ac_status=$? 11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11486 (exit $ac_status); } 11487 then 11488 archive_cmds_need_lc=no 11489 else 11490 archive_cmds_need_lc=yes 11491 fi 11492 allow_undefined_flag=$lt_save_allow_undefined_flag 11493 else 11494 cat conftest.err 1>&5 11495 fi 11496 $rm conftest* 11497 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 11498echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 11499 ;; 11500 esac 11501 fi 11502 ;; 11503esac 11504 11505{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11506echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 11507library_names_spec= 11508libname_spec='lib$name' 11509soname_spec= 11510shrext_cmds=".so" 11511postinstall_cmds= 11512postuninstall_cmds= 11513finish_cmds= 11514finish_eval= 11515shlibpath_var= 11516shlibpath_overrides_runpath=unknown 11517version_type=none 11518dynamic_linker="$host_os ld.so" 11519sys_lib_dlsearch_path_spec="/lib /usr/lib" 11520if test "$GCC" = yes; then 11521 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11522 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11523 # if the path contains ";" then we assume it to be the separator 11524 # otherwise default to the standard path separator (i.e. ":") - it is 11525 # assumed that no part of a normal pathname contains ";" but that should 11526 # okay in the real world where ";" in dirpaths is itself problematic. 11527 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11528 else 11529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11530 fi 11531else 11532 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11533fi 11534need_lib_prefix=unknown 11535hardcode_into_libs=no 11536 11537# when you set need_version to no, make sure it does not cause -set_version 11538# flags to be left without arguments 11539need_version=unknown 11540 11541case $host_os in 11542aix3*) 11543 version_type=linux 11544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11545 shlibpath_var=LIBPATH 11546 11547 # AIX 3 has no versioning support, so we append a major version to the name. 11548 soname_spec='${libname}${release}${shared_ext}$major' 11549 ;; 11550 11551aix4* | aix5*) 11552 version_type=linux 11553 need_lib_prefix=no 11554 need_version=no 11555 hardcode_into_libs=yes 11556 if test "$host_cpu" = ia64; then 11557 # AIX 5 supports IA64 11558 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11559 shlibpath_var=LD_LIBRARY_PATH 11560 else 11561 # With GCC up to 2.95.x, collect2 would create an import file 11562 # for dependence libraries. The import file would start with 11563 # the line `#! .'. This would cause the generated library to 11564 # depend on `.', always an invalid library. This was fixed in 11565 # development snapshots of GCC prior to 3.0. 11566 case $host_os in 11567 aix4 | aix4.[01] | aix4.[01].*) 11568 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11569 echo ' yes ' 11570 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11571 : 11572 else 11573 can_build_shared=no 11574 fi 11575 ;; 11576 esac 11577 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11578 # soname into executable. Probably we can add versioning support to 11579 # collect2, so additional links can be useful in future. 11580 if test "$aix_use_runtimelinking" = yes; then 11581 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11582 # instead of lib<name>.a to let people know that these are not 11583 # typical AIX shared libraries. 11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11585 else 11586 # We preserve .a as extension for shared libraries through AIX4.2 11587 # and later when we are not doing run time linking. 11588 library_names_spec='${libname}${release}.a $libname.a' 11589 soname_spec='${libname}${release}${shared_ext}$major' 11590 fi 11591 shlibpath_var=LIBPATH 11592 fi 11593 ;; 11594 11595amigaos*) 11596 library_names_spec='$libname.ixlibrary $libname.a' 11597 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11598 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' 11599 ;; 11600 11601beos*) 11602 library_names_spec='${libname}${shared_ext}' 11603 dynamic_linker="$host_os ld.so" 11604 shlibpath_var=LIBRARY_PATH 11605 ;; 11606 11607bsdi[45]*) 11608 version_type=linux 11609 need_version=no 11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11611 soname_spec='${libname}${release}${shared_ext}$major' 11612 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11613 shlibpath_var=LD_LIBRARY_PATH 11614 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11615 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11616 # the default ld.so.conf also contains /usr/contrib/lib and 11617 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11618 # libtool to hard-code these into programs 11619 ;; 11620 11621cygwin* | mingw* | pw32*) 11622 version_type=windows 11623 shrext_cmds=".dll" 11624 need_version=no 11625 need_lib_prefix=no 11626 11627 case $GCC,$host_os in 11628 yes,cygwin* | yes,mingw* | yes,pw32*) 11629 library_names_spec='$libname.dll.a' 11630 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11631 postinstall_cmds='base_file=`basename \${file}`~ 11632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11633 dldir=$destdir/`dirname \$dlpath`~ 11634 test -d \$dldir || mkdir -p \$dldir~ 11635 $install_prog $dir/$dlname \$dldir/$dlname~ 11636 chmod a+x \$dldir/$dlname' 11637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11638 dlpath=$dir/\$dldll~ 11639 $rm \$dlpath' 11640 shlibpath_overrides_runpath=yes 11641 11642 case $host_os in 11643 cygwin*) 11644 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11645 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11646 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11647 ;; 11648 mingw*) 11649 # MinGW DLLs use traditional 'lib' prefix 11650 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11651 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11652 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11653 # It is most probably a Windows format PATH printed by 11654 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11655 # path with ; separators, and with drive letters. We can handle the 11656 # drive letters (cygwin fileutils understands them), so leave them, 11657 # especially as we might pass files found there to a mingw objdump, 11658 # which wouldn't understand a cygwinified path. Ahh. 11659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11660 else 11661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11662 fi 11663 ;; 11664 pw32*) 11665 # pw32 DLLs use 'pw' prefix rather than 'lib' 11666 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11667 ;; 11668 esac 11669 ;; 11670 11671 *) 11672 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11673 ;; 11674 esac 11675 dynamic_linker='Win32 ld.exe' 11676 # FIXME: first we should search . and the directory the executable is in 11677 shlibpath_var=PATH 11678 ;; 11679 11680darwin* | rhapsody*) 11681 dynamic_linker="$host_os dyld" 11682 version_type=darwin 11683 need_lib_prefix=no 11684 need_version=no 11685 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11686 soname_spec='${libname}${release}${major}$shared_ext' 11687 shlibpath_overrides_runpath=yes 11688 shlibpath_var=DYLD_LIBRARY_PATH 11689 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11690 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11691 if test "$GCC" = yes; then 11692 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 11693 else 11694 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11695 fi 11696 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11697 ;; 11698 11699dgux*) 11700 version_type=linux 11701 need_lib_prefix=no 11702 need_version=no 11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11704 soname_spec='${libname}${release}${shared_ext}$major' 11705 shlibpath_var=LD_LIBRARY_PATH 11706 ;; 11707 11708freebsd1*) 11709 dynamic_linker=no 11710 ;; 11711 11712freebsd* | dragonfly*) 11713 # DragonFly does not have aout. When/if they implement a new 11714 # versioning mechanism, adjust this. 11715 if test -x /usr/bin/objformat; then 11716 objformat=`/usr/bin/objformat` 11717 else 11718 case $host_os in 11719 freebsd[123]*) objformat=aout ;; 11720 *) objformat=elf ;; 11721 esac 11722 fi 11723 version_type=freebsd-$objformat 11724 case $version_type in 11725 freebsd-elf*) 11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11727 need_version=no 11728 need_lib_prefix=no 11729 ;; 11730 freebsd-*) 11731 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11732 need_version=yes 11733 ;; 11734 esac 11735 shlibpath_var=LD_LIBRARY_PATH 11736 case $host_os in 11737 freebsd2*) 11738 shlibpath_overrides_runpath=yes 11739 ;; 11740 freebsd3.[01]* | freebsdelf3.[01]*) 11741 shlibpath_overrides_runpath=yes 11742 hardcode_into_libs=yes 11743 ;; 11744 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11745 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11746 shlibpath_overrides_runpath=no 11747 hardcode_into_libs=yes 11748 ;; 11749 freebsd*) # from 4.6 on 11750 shlibpath_overrides_runpath=yes 11751 hardcode_into_libs=yes 11752 ;; 11753 esac 11754 ;; 11755 11756gnu*) 11757 version_type=linux 11758 need_lib_prefix=no 11759 need_version=no 11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11761 soname_spec='${libname}${release}${shared_ext}$major' 11762 shlibpath_var=LD_LIBRARY_PATH 11763 hardcode_into_libs=yes 11764 ;; 11765 11766hpux9* | hpux10* | hpux11*) 11767 # Give a soname corresponding to the major version so that dld.sl refuses to 11768 # link against other versions. 11769 version_type=sunos 11770 need_lib_prefix=no 11771 need_version=no 11772 case $host_cpu in 11773 ia64*) 11774 shrext_cmds='.so' 11775 hardcode_into_libs=yes 11776 dynamic_linker="$host_os dld.so" 11777 shlibpath_var=LD_LIBRARY_PATH 11778 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11780 soname_spec='${libname}${release}${shared_ext}$major' 11781 if test "X$HPUX_IA64_MODE" = X32; then 11782 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11783 else 11784 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11785 fi 11786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11787 ;; 11788 hppa*64*) 11789 shrext_cmds='.sl' 11790 hardcode_into_libs=yes 11791 dynamic_linker="$host_os dld.sl" 11792 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11795 soname_spec='${libname}${release}${shared_ext}$major' 11796 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11798 ;; 11799 *) 11800 shrext_cmds='.sl' 11801 dynamic_linker="$host_os dld.sl" 11802 shlibpath_var=SHLIB_PATH 11803 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11805 soname_spec='${libname}${release}${shared_ext}$major' 11806 ;; 11807 esac 11808 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11809 postinstall_cmds='chmod 555 $lib' 11810 ;; 11811 11812interix3*) 11813 version_type=linux 11814 need_lib_prefix=no 11815 need_version=no 11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11817 soname_spec='${libname}${release}${shared_ext}$major' 11818 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11819 shlibpath_var=LD_LIBRARY_PATH 11820 shlibpath_overrides_runpath=no 11821 hardcode_into_libs=yes 11822 ;; 11823 11824irix5* | irix6* | nonstopux*) 11825 case $host_os in 11826 nonstopux*) version_type=nonstopux ;; 11827 *) 11828 if test "$lt_cv_prog_gnu_ld" = yes; then 11829 version_type=linux 11830 else 11831 version_type=irix 11832 fi ;; 11833 esac 11834 need_lib_prefix=no 11835 need_version=no 11836 soname_spec='${libname}${release}${shared_ext}$major' 11837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11838 case $host_os in 11839 irix5* | nonstopux*) 11840 libsuff= shlibsuff= 11841 ;; 11842 *) 11843 case $LD in # libtool.m4 will add one of these switches to LD 11844 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11845 libsuff= shlibsuff= libmagic=32-bit;; 11846 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11847 libsuff=32 shlibsuff=N32 libmagic=N32;; 11848 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11849 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11850 *) libsuff= shlibsuff= libmagic=never-match;; 11851 esac 11852 ;; 11853 esac 11854 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11855 shlibpath_overrides_runpath=no 11856 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11857 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11858 hardcode_into_libs=yes 11859 ;; 11860 11861# No shared lib support for Linux oldld, aout, or coff. 11862linux*oldld* | linux*aout* | linux*coff*) 11863 dynamic_linker=no 11864 ;; 11865 11866# This must be Linux ELF. 11867linux* | k*bsd*-gnu) 11868 version_type=linux 11869 need_lib_prefix=no 11870 need_version=no 11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11872 soname_spec='${libname}${release}${shared_ext}$major' 11873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11874 shlibpath_var=LD_LIBRARY_PATH 11875 shlibpath_overrides_runpath=no 11876 # This implies no fast_install, which is unacceptable. 11877 # Some rework will be needed to allow for fast_install 11878 # before this can be enabled. 11879 hardcode_into_libs=yes 11880 11881 # Append ld.so.conf contents to the search path 11882 if test -f /etc/ld.so.conf; then 11883 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 11884 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11885 fi 11886 11887 # We used to test for /lib/ld.so.1 and disable shared libraries on 11888 # powerpc, because MkLinux only supported shared libraries with the 11889 # GNU dynamic linker. Since this was broken with cross compilers, 11890 # most powerpc-linux boxes support dynamic linking these days and 11891 # people can always --disable-shared, the test was removed, and we 11892 # assume the GNU/Linux dynamic linker is in use. 11893 dynamic_linker='GNU/Linux ld.so' 11894 ;; 11895 11896netbsdelf*-gnu) 11897 version_type=linux 11898 need_lib_prefix=no 11899 need_version=no 11900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11901 soname_spec='${libname}${release}${shared_ext}$major' 11902 shlibpath_var=LD_LIBRARY_PATH 11903 shlibpath_overrides_runpath=no 11904 hardcode_into_libs=yes 11905 dynamic_linker='NetBSD ld.elf_so' 11906 ;; 11907 11908netbsd*) 11909 version_type=sunos 11910 need_lib_prefix=no 11911 need_version=no 11912 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11915 dynamic_linker='NetBSD (a.out) ld.so' 11916 else 11917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11918 soname_spec='${libname}${release}${shared_ext}$major' 11919 dynamic_linker='NetBSD ld.elf_so' 11920 fi 11921 shlibpath_var=LD_LIBRARY_PATH 11922 shlibpath_overrides_runpath=yes 11923 hardcode_into_libs=yes 11924 ;; 11925 11926newsos6) 11927 version_type=linux 11928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11929 shlibpath_var=LD_LIBRARY_PATH 11930 shlibpath_overrides_runpath=yes 11931 ;; 11932 11933nto-qnx*) 11934 version_type=linux 11935 need_lib_prefix=no 11936 need_version=no 11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11938 soname_spec='${libname}${release}${shared_ext}$major' 11939 shlibpath_var=LD_LIBRARY_PATH 11940 shlibpath_overrides_runpath=yes 11941 ;; 11942 11943openbsd*) 11944 version_type=sunos 11945 sys_lib_dlsearch_path_spec="/usr/lib" 11946 need_lib_prefix=no 11947 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11948 case $host_os in 11949 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11950 *) need_version=no ;; 11951 esac 11952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11954 shlibpath_var=LD_LIBRARY_PATH 11955 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11956 case $host_os in 11957 openbsd2.[89] | openbsd2.[89].*) 11958 shlibpath_overrides_runpath=no 11959 ;; 11960 *) 11961 shlibpath_overrides_runpath=yes 11962 ;; 11963 esac 11964 else 11965 shlibpath_overrides_runpath=yes 11966 fi 11967 ;; 11968 11969os2*) 11970 libname_spec='$name' 11971 shrext_cmds=".dll" 11972 need_lib_prefix=no 11973 library_names_spec='$libname${shared_ext} $libname.a' 11974 dynamic_linker='OS/2 ld.exe' 11975 shlibpath_var=LIBPATH 11976 ;; 11977 11978osf3* | osf4* | osf5*) 11979 version_type=osf 11980 need_lib_prefix=no 11981 need_version=no 11982 soname_spec='${libname}${release}${shared_ext}$major' 11983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11984 shlibpath_var=LD_LIBRARY_PATH 11985 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11986 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11987 ;; 11988 11989solaris*) 11990 version_type=linux 11991 need_lib_prefix=no 11992 need_version=no 11993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11994 soname_spec='${libname}${release}${shared_ext}$major' 11995 shlibpath_var=LD_LIBRARY_PATH 11996 shlibpath_overrides_runpath=yes 11997 hardcode_into_libs=yes 11998 # ldd complains unless libraries are executable 11999 postinstall_cmds='chmod +x $lib' 12000 ;; 12001 12002sunos4*) 12003 version_type=sunos 12004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12005 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12006 shlibpath_var=LD_LIBRARY_PATH 12007 shlibpath_overrides_runpath=yes 12008 if test "$with_gnu_ld" = yes; then 12009 need_lib_prefix=no 12010 fi 12011 need_version=yes 12012 ;; 12013 12014sysv4 | sysv4.3*) 12015 version_type=linux 12016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12017 soname_spec='${libname}${release}${shared_ext}$major' 12018 shlibpath_var=LD_LIBRARY_PATH 12019 case $host_vendor in 12020 sni) 12021 shlibpath_overrides_runpath=no 12022 need_lib_prefix=no 12023 export_dynamic_flag_spec='${wl}-Blargedynsym' 12024 runpath_var=LD_RUN_PATH 12025 ;; 12026 siemens) 12027 need_lib_prefix=no 12028 ;; 12029 motorola) 12030 need_lib_prefix=no 12031 need_version=no 12032 shlibpath_overrides_runpath=no 12033 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12034 ;; 12035 esac 12036 ;; 12037 12038sysv4*MP*) 12039 if test -d /usr/nec ;then 12040 version_type=linux 12041 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12042 soname_spec='$libname${shared_ext}.$major' 12043 shlibpath_var=LD_LIBRARY_PATH 12044 fi 12045 ;; 12046 12047sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12048 version_type=freebsd-elf 12049 need_lib_prefix=no 12050 need_version=no 12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12052 soname_spec='${libname}${release}${shared_ext}$major' 12053 shlibpath_var=LD_LIBRARY_PATH 12054 hardcode_into_libs=yes 12055 if test "$with_gnu_ld" = yes; then 12056 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12057 shlibpath_overrides_runpath=no 12058 else 12059 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12060 shlibpath_overrides_runpath=yes 12061 case $host_os in 12062 sco3.2v5*) 12063 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12064 ;; 12065 esac 12066 fi 12067 sys_lib_dlsearch_path_spec='/usr/lib' 12068 ;; 12069 12070uts4*) 12071 version_type=linux 12072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12073 soname_spec='${libname}${release}${shared_ext}$major' 12074 shlibpath_var=LD_LIBRARY_PATH 12075 ;; 12076 12077*) 12078 dynamic_linker=no 12079 ;; 12080esac 12081{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12082echo "${ECHO_T}$dynamic_linker" >&6; } 12083test "$dynamic_linker" = no && can_build_shared=no 12084 12085variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12086if test "$GCC" = yes; then 12087 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12088fi 12089 12090{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12091echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 12092hardcode_action= 12093if test -n "$hardcode_libdir_flag_spec" || \ 12094 test -n "$runpath_var" || \ 12095 test "X$hardcode_automatic" = "Xyes" ; then 12096 12097 # We can hardcode non-existant directories. 12098 if test "$hardcode_direct" != no && 12099 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12100 # have to relink, otherwise we might link with an installed library 12101 # when we should be linking with a yet-to-be-installed one 12102 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 12103 test "$hardcode_minus_L" != no; then 12104 # Linking always hardcodes the temporary library directory. 12105 hardcode_action=relink 12106 else 12107 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12108 hardcode_action=immediate 12109 fi 12110else 12111 # We cannot hardcode anything, or else we can only hardcode existing 12112 # directories. 12113 hardcode_action=unsupported 12114fi 12115{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 12116echo "${ECHO_T}$hardcode_action" >&6; } 12117 12118if test "$hardcode_action" = relink; then 12119 # Fast installation is not supported 12120 enable_fast_install=no 12121elif test "$shlibpath_overrides_runpath" = yes || 12122 test "$enable_shared" = no; then 12123 # Fast installation is not necessary 12124 enable_fast_install=needless 12125fi 12126 12127striplib= 12128old_striplib= 12129{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12130echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 12131if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12132 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12133 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12134 { echo "$as_me:$LINENO: result: yes" >&5 12135echo "${ECHO_T}yes" >&6; } 12136else 12137# FIXME - insert some real tests, host_os isn't really good enough 12138 case $host_os in 12139 darwin*) 12140 if test -n "$STRIP" ; then 12141 striplib="$STRIP -x" 12142 { echo "$as_me:$LINENO: result: yes" >&5 12143echo "${ECHO_T}yes" >&6; } 12144 else 12145 { echo "$as_me:$LINENO: result: no" >&5 12146echo "${ECHO_T}no" >&6; } 12147fi 12148 ;; 12149 *) 12150 { echo "$as_me:$LINENO: result: no" >&5 12151echo "${ECHO_T}no" >&6; } 12152 ;; 12153 esac 12154fi 12155 12156if test "x$enable_dlopen" != xyes; then 12157 enable_dlopen=unknown 12158 enable_dlopen_self=unknown 12159 enable_dlopen_self_static=unknown 12160else 12161 lt_cv_dlopen=no 12162 lt_cv_dlopen_libs= 12163 12164 case $host_os in 12165 beos*) 12166 lt_cv_dlopen="load_add_on" 12167 lt_cv_dlopen_libs= 12168 lt_cv_dlopen_self=yes 12169 ;; 12170 12171 mingw* | pw32*) 12172 lt_cv_dlopen="LoadLibrary" 12173 lt_cv_dlopen_libs= 12174 ;; 12175 12176 cygwin*) 12177 lt_cv_dlopen="dlopen" 12178 lt_cv_dlopen_libs= 12179 ;; 12180 12181 darwin*) 12182 # if libdl is installed we need to link against it 12183 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12184echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 12185if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12186 echo $ECHO_N "(cached) $ECHO_C" >&6 12187else 12188 ac_check_lib_save_LIBS=$LIBS 12189LIBS="-ldl $LIBS" 12190cat >conftest.$ac_ext <<_ACEOF 12191/* confdefs.h. */ 12192_ACEOF 12193cat confdefs.h >>conftest.$ac_ext 12194cat >>conftest.$ac_ext <<_ACEOF 12195/* end confdefs.h. */ 12196 12197/* Override any GCC internal prototype to avoid an error. 12198 Use char because int might match the return type of a GCC 12199 builtin and then its argument prototype would still apply. */ 12200#ifdef __cplusplus 12201extern "C" 12202#endif 12203char dlopen (); 12204int 12205main () 12206{ 12207return dlopen (); 12208 ; 12209 return 0; 12210} 12211_ACEOF 12212rm -f conftest.$ac_objext conftest$ac_exeext 12213if { (ac_try="$ac_link" 12214case "(($ac_try" in 12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12216 *) ac_try_echo=$ac_try;; 12217esac 12218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12219 (eval "$ac_link") 2>conftest.er1 12220 ac_status=$? 12221 grep -v '^ *+' conftest.er1 >conftest.err 12222 rm -f conftest.er1 12223 cat conftest.err >&5 12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12225 (exit $ac_status); } && { 12226 test -z "$ac_c_werror_flag" || 12227 test ! -s conftest.err 12228 } && test -s conftest$ac_exeext && 12229 $as_test_x conftest$ac_exeext; then 12230 ac_cv_lib_dl_dlopen=yes 12231else 12232 echo "$as_me: failed program was:" >&5 12233sed 's/^/| /' conftest.$ac_ext >&5 12234 12235 ac_cv_lib_dl_dlopen=no 12236fi 12237 12238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12239 conftest$ac_exeext conftest.$ac_ext 12240LIBS=$ac_check_lib_save_LIBS 12241fi 12242{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12243echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 12244if test $ac_cv_lib_dl_dlopen = yes; then 12245 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12246else 12247 12248 lt_cv_dlopen="dyld" 12249 lt_cv_dlopen_libs= 12250 lt_cv_dlopen_self=yes 12251 12252fi 12253 12254 ;; 12255 12256 *) 12257 { echo "$as_me:$LINENO: checking for shl_load" >&5 12258echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 12259if test "${ac_cv_func_shl_load+set}" = set; then 12260 echo $ECHO_N "(cached) $ECHO_C" >&6 12261else 12262 cat >conftest.$ac_ext <<_ACEOF 12263/* confdefs.h. */ 12264_ACEOF 12265cat confdefs.h >>conftest.$ac_ext 12266cat >>conftest.$ac_ext <<_ACEOF 12267/* end confdefs.h. */ 12268/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12269 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12270#define shl_load innocuous_shl_load 12271 12272/* System header to define __stub macros and hopefully few prototypes, 12273 which can conflict with char shl_load (); below. 12274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12275 <limits.h> exists even on freestanding compilers. */ 12276 12277#ifdef __STDC__ 12278# include <limits.h> 12279#else 12280# include <assert.h> 12281#endif 12282 12283#undef shl_load 12284 12285/* Override any GCC internal prototype to avoid an error. 12286 Use char because int might match the return type of a GCC 12287 builtin and then its argument prototype would still apply. */ 12288#ifdef __cplusplus 12289extern "C" 12290#endif 12291char shl_load (); 12292/* The GNU C library defines this for functions which it implements 12293 to always fail with ENOSYS. Some functions are actually named 12294 something starting with __ and the normal name is an alias. */ 12295#if defined __stub_shl_load || defined __stub___shl_load 12296choke me 12297#endif 12298 12299int 12300main () 12301{ 12302return shl_load (); 12303 ; 12304 return 0; 12305} 12306_ACEOF 12307rm -f conftest.$ac_objext conftest$ac_exeext 12308if { (ac_try="$ac_link" 12309case "(($ac_try" in 12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12311 *) ac_try_echo=$ac_try;; 12312esac 12313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12314 (eval "$ac_link") 2>conftest.er1 12315 ac_status=$? 12316 grep -v '^ *+' conftest.er1 >conftest.err 12317 rm -f conftest.er1 12318 cat conftest.err >&5 12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12320 (exit $ac_status); } && { 12321 test -z "$ac_c_werror_flag" || 12322 test ! -s conftest.err 12323 } && test -s conftest$ac_exeext && 12324 $as_test_x conftest$ac_exeext; then 12325 ac_cv_func_shl_load=yes 12326else 12327 echo "$as_me: failed program was:" >&5 12328sed 's/^/| /' conftest.$ac_ext >&5 12329 12330 ac_cv_func_shl_load=no 12331fi 12332 12333rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12334 conftest$ac_exeext conftest.$ac_ext 12335fi 12336{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12337echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 12338if test $ac_cv_func_shl_load = yes; then 12339 lt_cv_dlopen="shl_load" 12340else 12341 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12342echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 12343if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12344 echo $ECHO_N "(cached) $ECHO_C" >&6 12345else 12346 ac_check_lib_save_LIBS=$LIBS 12347LIBS="-ldld $LIBS" 12348cat >conftest.$ac_ext <<_ACEOF 12349/* confdefs.h. */ 12350_ACEOF 12351cat confdefs.h >>conftest.$ac_ext 12352cat >>conftest.$ac_ext <<_ACEOF 12353/* end confdefs.h. */ 12354 12355/* Override any GCC internal prototype to avoid an error. 12356 Use char because int might match the return type of a GCC 12357 builtin and then its argument prototype would still apply. */ 12358#ifdef __cplusplus 12359extern "C" 12360#endif 12361char shl_load (); 12362int 12363main () 12364{ 12365return shl_load (); 12366 ; 12367 return 0; 12368} 12369_ACEOF 12370rm -f conftest.$ac_objext conftest$ac_exeext 12371if { (ac_try="$ac_link" 12372case "(($ac_try" in 12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12374 *) ac_try_echo=$ac_try;; 12375esac 12376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12377 (eval "$ac_link") 2>conftest.er1 12378 ac_status=$? 12379 grep -v '^ *+' conftest.er1 >conftest.err 12380 rm -f conftest.er1 12381 cat conftest.err >&5 12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12383 (exit $ac_status); } && { 12384 test -z "$ac_c_werror_flag" || 12385 test ! -s conftest.err 12386 } && test -s conftest$ac_exeext && 12387 $as_test_x conftest$ac_exeext; then 12388 ac_cv_lib_dld_shl_load=yes 12389else 12390 echo "$as_me: failed program was:" >&5 12391sed 's/^/| /' conftest.$ac_ext >&5 12392 12393 ac_cv_lib_dld_shl_load=no 12394fi 12395 12396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12397 conftest$ac_exeext conftest.$ac_ext 12398LIBS=$ac_check_lib_save_LIBS 12399fi 12400{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12401echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 12402if test $ac_cv_lib_dld_shl_load = yes; then 12403 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12404else 12405 { echo "$as_me:$LINENO: checking for dlopen" >&5 12406echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 12407if test "${ac_cv_func_dlopen+set}" = set; then 12408 echo $ECHO_N "(cached) $ECHO_C" >&6 12409else 12410 cat >conftest.$ac_ext <<_ACEOF 12411/* confdefs.h. */ 12412_ACEOF 12413cat confdefs.h >>conftest.$ac_ext 12414cat >>conftest.$ac_ext <<_ACEOF 12415/* end confdefs.h. */ 12416/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12417 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12418#define dlopen innocuous_dlopen 12419 12420/* System header to define __stub macros and hopefully few prototypes, 12421 which can conflict with char dlopen (); below. 12422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12423 <limits.h> exists even on freestanding compilers. */ 12424 12425#ifdef __STDC__ 12426# include <limits.h> 12427#else 12428# include <assert.h> 12429#endif 12430 12431#undef dlopen 12432 12433/* Override any GCC internal prototype to avoid an error. 12434 Use char because int might match the return type of a GCC 12435 builtin and then its argument prototype would still apply. */ 12436#ifdef __cplusplus 12437extern "C" 12438#endif 12439char dlopen (); 12440/* The GNU C library defines this for functions which it implements 12441 to always fail with ENOSYS. Some functions are actually named 12442 something starting with __ and the normal name is an alias. */ 12443#if defined __stub_dlopen || defined __stub___dlopen 12444choke me 12445#endif 12446 12447int 12448main () 12449{ 12450return dlopen (); 12451 ; 12452 return 0; 12453} 12454_ACEOF 12455rm -f conftest.$ac_objext conftest$ac_exeext 12456if { (ac_try="$ac_link" 12457case "(($ac_try" in 12458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12459 *) ac_try_echo=$ac_try;; 12460esac 12461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12462 (eval "$ac_link") 2>conftest.er1 12463 ac_status=$? 12464 grep -v '^ *+' conftest.er1 >conftest.err 12465 rm -f conftest.er1 12466 cat conftest.err >&5 12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12468 (exit $ac_status); } && { 12469 test -z "$ac_c_werror_flag" || 12470 test ! -s conftest.err 12471 } && test -s conftest$ac_exeext && 12472 $as_test_x conftest$ac_exeext; then 12473 ac_cv_func_dlopen=yes 12474else 12475 echo "$as_me: failed program was:" >&5 12476sed 's/^/| /' conftest.$ac_ext >&5 12477 12478 ac_cv_func_dlopen=no 12479fi 12480 12481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12482 conftest$ac_exeext conftest.$ac_ext 12483fi 12484{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12485echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 12486if test $ac_cv_func_dlopen = yes; then 12487 lt_cv_dlopen="dlopen" 12488else 12489 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12490echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 12491if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12492 echo $ECHO_N "(cached) $ECHO_C" >&6 12493else 12494 ac_check_lib_save_LIBS=$LIBS 12495LIBS="-ldl $LIBS" 12496cat >conftest.$ac_ext <<_ACEOF 12497/* confdefs.h. */ 12498_ACEOF 12499cat confdefs.h >>conftest.$ac_ext 12500cat >>conftest.$ac_ext <<_ACEOF 12501/* end confdefs.h. */ 12502 12503/* Override any GCC internal prototype to avoid an error. 12504 Use char because int might match the return type of a GCC 12505 builtin and then its argument prototype would still apply. */ 12506#ifdef __cplusplus 12507extern "C" 12508#endif 12509char dlopen (); 12510int 12511main () 12512{ 12513return dlopen (); 12514 ; 12515 return 0; 12516} 12517_ACEOF 12518rm -f conftest.$ac_objext conftest$ac_exeext 12519if { (ac_try="$ac_link" 12520case "(($ac_try" in 12521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12522 *) ac_try_echo=$ac_try;; 12523esac 12524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12525 (eval "$ac_link") 2>conftest.er1 12526 ac_status=$? 12527 grep -v '^ *+' conftest.er1 >conftest.err 12528 rm -f conftest.er1 12529 cat conftest.err >&5 12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12531 (exit $ac_status); } && { 12532 test -z "$ac_c_werror_flag" || 12533 test ! -s conftest.err 12534 } && test -s conftest$ac_exeext && 12535 $as_test_x conftest$ac_exeext; then 12536 ac_cv_lib_dl_dlopen=yes 12537else 12538 echo "$as_me: failed program was:" >&5 12539sed 's/^/| /' conftest.$ac_ext >&5 12540 12541 ac_cv_lib_dl_dlopen=no 12542fi 12543 12544rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12545 conftest$ac_exeext conftest.$ac_ext 12546LIBS=$ac_check_lib_save_LIBS 12547fi 12548{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12549echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 12550if test $ac_cv_lib_dl_dlopen = yes; then 12551 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12552else 12553 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12554echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 12555if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12556 echo $ECHO_N "(cached) $ECHO_C" >&6 12557else 12558 ac_check_lib_save_LIBS=$LIBS 12559LIBS="-lsvld $LIBS" 12560cat >conftest.$ac_ext <<_ACEOF 12561/* confdefs.h. */ 12562_ACEOF 12563cat confdefs.h >>conftest.$ac_ext 12564cat >>conftest.$ac_ext <<_ACEOF 12565/* end confdefs.h. */ 12566 12567/* Override any GCC internal prototype to avoid an error. 12568 Use char because int might match the return type of a GCC 12569 builtin and then its argument prototype would still apply. */ 12570#ifdef __cplusplus 12571extern "C" 12572#endif 12573char dlopen (); 12574int 12575main () 12576{ 12577return dlopen (); 12578 ; 12579 return 0; 12580} 12581_ACEOF 12582rm -f conftest.$ac_objext conftest$ac_exeext 12583if { (ac_try="$ac_link" 12584case "(($ac_try" in 12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12586 *) ac_try_echo=$ac_try;; 12587esac 12588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12589 (eval "$ac_link") 2>conftest.er1 12590 ac_status=$? 12591 grep -v '^ *+' conftest.er1 >conftest.err 12592 rm -f conftest.er1 12593 cat conftest.err >&5 12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12595 (exit $ac_status); } && { 12596 test -z "$ac_c_werror_flag" || 12597 test ! -s conftest.err 12598 } && test -s conftest$ac_exeext && 12599 $as_test_x conftest$ac_exeext; then 12600 ac_cv_lib_svld_dlopen=yes 12601else 12602 echo "$as_me: failed program was:" >&5 12603sed 's/^/| /' conftest.$ac_ext >&5 12604 12605 ac_cv_lib_svld_dlopen=no 12606fi 12607 12608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12609 conftest$ac_exeext conftest.$ac_ext 12610LIBS=$ac_check_lib_save_LIBS 12611fi 12612{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12613echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 12614if test $ac_cv_lib_svld_dlopen = yes; then 12615 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12616else 12617 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12618echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 12619if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12620 echo $ECHO_N "(cached) $ECHO_C" >&6 12621else 12622 ac_check_lib_save_LIBS=$LIBS 12623LIBS="-ldld $LIBS" 12624cat >conftest.$ac_ext <<_ACEOF 12625/* confdefs.h. */ 12626_ACEOF 12627cat confdefs.h >>conftest.$ac_ext 12628cat >>conftest.$ac_ext <<_ACEOF 12629/* end confdefs.h. */ 12630 12631/* Override any GCC internal prototype to avoid an error. 12632 Use char because int might match the return type of a GCC 12633 builtin and then its argument prototype would still apply. */ 12634#ifdef __cplusplus 12635extern "C" 12636#endif 12637char dld_link (); 12638int 12639main () 12640{ 12641return dld_link (); 12642 ; 12643 return 0; 12644} 12645_ACEOF 12646rm -f conftest.$ac_objext conftest$ac_exeext 12647if { (ac_try="$ac_link" 12648case "(($ac_try" in 12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12650 *) ac_try_echo=$ac_try;; 12651esac 12652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12653 (eval "$ac_link") 2>conftest.er1 12654 ac_status=$? 12655 grep -v '^ *+' conftest.er1 >conftest.err 12656 rm -f conftest.er1 12657 cat conftest.err >&5 12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12659 (exit $ac_status); } && { 12660 test -z "$ac_c_werror_flag" || 12661 test ! -s conftest.err 12662 } && test -s conftest$ac_exeext && 12663 $as_test_x conftest$ac_exeext; then 12664 ac_cv_lib_dld_dld_link=yes 12665else 12666 echo "$as_me: failed program was:" >&5 12667sed 's/^/| /' conftest.$ac_ext >&5 12668 12669 ac_cv_lib_dld_dld_link=no 12670fi 12671 12672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12673 conftest$ac_exeext conftest.$ac_ext 12674LIBS=$ac_check_lib_save_LIBS 12675fi 12676{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12677echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 12678if test $ac_cv_lib_dld_dld_link = yes; then 12679 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12680fi 12681 12682 12683fi 12684 12685 12686fi 12687 12688 12689fi 12690 12691 12692fi 12693 12694 12695fi 12696 12697 ;; 12698 esac 12699 12700 if test "x$lt_cv_dlopen" != xno; then 12701 enable_dlopen=yes 12702 else 12703 enable_dlopen=no 12704 fi 12705 12706 case $lt_cv_dlopen in 12707 dlopen) 12708 save_CPPFLAGS="$CPPFLAGS" 12709 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12710 12711 save_LDFLAGS="$LDFLAGS" 12712 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12713 12714 save_LIBS="$LIBS" 12715 LIBS="$lt_cv_dlopen_libs $LIBS" 12716 12717 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12718echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 12719if test "${lt_cv_dlopen_self+set}" = set; then 12720 echo $ECHO_N "(cached) $ECHO_C" >&6 12721else 12722 if test "$cross_compiling" = yes; then : 12723 lt_cv_dlopen_self=cross 12724else 12725 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12726 lt_status=$lt_dlunknown 12727 cat > conftest.$ac_ext <<EOF 12728#line 12728 "configure" 12729#include "confdefs.h" 12730 12731#if HAVE_DLFCN_H 12732#include <dlfcn.h> 12733#endif 12734 12735#include <stdio.h> 12736 12737#ifdef RTLD_GLOBAL 12738# define LT_DLGLOBAL RTLD_GLOBAL 12739#else 12740# ifdef DL_GLOBAL 12741# define LT_DLGLOBAL DL_GLOBAL 12742# else 12743# define LT_DLGLOBAL 0 12744# endif 12745#endif 12746 12747/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12748 find out it does not work in some platform. */ 12749#ifndef LT_DLLAZY_OR_NOW 12750# ifdef RTLD_LAZY 12751# define LT_DLLAZY_OR_NOW RTLD_LAZY 12752# else 12753# ifdef DL_LAZY 12754# define LT_DLLAZY_OR_NOW DL_LAZY 12755# else 12756# ifdef RTLD_NOW 12757# define LT_DLLAZY_OR_NOW RTLD_NOW 12758# else 12759# ifdef DL_NOW 12760# define LT_DLLAZY_OR_NOW DL_NOW 12761# else 12762# define LT_DLLAZY_OR_NOW 0 12763# endif 12764# endif 12765# endif 12766# endif 12767#endif 12768 12769#ifdef __cplusplus 12770extern "C" void exit (int); 12771#endif 12772 12773void fnord() { int i=42;} 12774int main () 12775{ 12776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12777 int status = $lt_dlunknown; 12778 12779 if (self) 12780 { 12781 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12782 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12783 /* dlclose (self); */ 12784 } 12785 else 12786 puts (dlerror ()); 12787 12788 exit (status); 12789} 12790EOF 12791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12792 (eval $ac_link) 2>&5 12793 ac_status=$? 12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12795 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12796 (./conftest; exit; ) >&5 2>/dev/null 12797 lt_status=$? 12798 case x$lt_status in 12799 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12800 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12801 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12802 esac 12803 else : 12804 # compilation failed 12805 lt_cv_dlopen_self=no 12806 fi 12807fi 12808rm -fr conftest* 12809 12810 12811fi 12812{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12813echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 12814 12815 if test "x$lt_cv_dlopen_self" = xyes; then 12816 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12817 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12818echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 12819if test "${lt_cv_dlopen_self_static+set}" = set; then 12820 echo $ECHO_N "(cached) $ECHO_C" >&6 12821else 12822 if test "$cross_compiling" = yes; then : 12823 lt_cv_dlopen_self_static=cross 12824else 12825 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12826 lt_status=$lt_dlunknown 12827 cat > conftest.$ac_ext <<EOF 12828#line 12828 "configure" 12829#include "confdefs.h" 12830 12831#if HAVE_DLFCN_H 12832#include <dlfcn.h> 12833#endif 12834 12835#include <stdio.h> 12836 12837#ifdef RTLD_GLOBAL 12838# define LT_DLGLOBAL RTLD_GLOBAL 12839#else 12840# ifdef DL_GLOBAL 12841# define LT_DLGLOBAL DL_GLOBAL 12842# else 12843# define LT_DLGLOBAL 0 12844# endif 12845#endif 12846 12847/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12848 find out it does not work in some platform. */ 12849#ifndef LT_DLLAZY_OR_NOW 12850# ifdef RTLD_LAZY 12851# define LT_DLLAZY_OR_NOW RTLD_LAZY 12852# else 12853# ifdef DL_LAZY 12854# define LT_DLLAZY_OR_NOW DL_LAZY 12855# else 12856# ifdef RTLD_NOW 12857# define LT_DLLAZY_OR_NOW RTLD_NOW 12858# else 12859# ifdef DL_NOW 12860# define LT_DLLAZY_OR_NOW DL_NOW 12861# else 12862# define LT_DLLAZY_OR_NOW 0 12863# endif 12864# endif 12865# endif 12866# endif 12867#endif 12868 12869#ifdef __cplusplus 12870extern "C" void exit (int); 12871#endif 12872 12873void fnord() { int i=42;} 12874int main () 12875{ 12876 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12877 int status = $lt_dlunknown; 12878 12879 if (self) 12880 { 12881 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12882 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12883 /* dlclose (self); */ 12884 } 12885 else 12886 puts (dlerror ()); 12887 12888 exit (status); 12889} 12890EOF 12891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12892 (eval $ac_link) 2>&5 12893 ac_status=$? 12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12895 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12896 (./conftest; exit; ) >&5 2>/dev/null 12897 lt_status=$? 12898 case x$lt_status in 12899 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12900 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12901 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12902 esac 12903 else : 12904 # compilation failed 12905 lt_cv_dlopen_self_static=no 12906 fi 12907fi 12908rm -fr conftest* 12909 12910 12911fi 12912{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12913echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 12914 fi 12915 12916 CPPFLAGS="$save_CPPFLAGS" 12917 LDFLAGS="$save_LDFLAGS" 12918 LIBS="$save_LIBS" 12919 ;; 12920 esac 12921 12922 case $lt_cv_dlopen_self in 12923 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12924 *) enable_dlopen_self=unknown ;; 12925 esac 12926 12927 case $lt_cv_dlopen_self_static in 12928 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12929 *) enable_dlopen_self_static=unknown ;; 12930 esac 12931fi 12932 12933 12934# Report which library types will actually be built 12935{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12936echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 12937{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 12938echo "${ECHO_T}$can_build_shared" >&6; } 12939 12940{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12941echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 12942test "$can_build_shared" = "no" && enable_shared=no 12943 12944# On AIX, shared libraries and static libraries use the same namespace, and 12945# are all built from PIC. 12946case $host_os in 12947aix3*) 12948 test "$enable_shared" = yes && enable_static=no 12949 if test -n "$RANLIB"; then 12950 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12951 postinstall_cmds='$RANLIB $lib' 12952 fi 12953 ;; 12954 12955aix4* | aix5*) 12956 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12957 test "$enable_shared" = yes && enable_static=no 12958 fi 12959 ;; 12960esac 12961{ echo "$as_me:$LINENO: result: $enable_shared" >&5 12962echo "${ECHO_T}$enable_shared" >&6; } 12963 12964{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12965echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 12966# Make sure either enable_shared or enable_static is yes. 12967test "$enable_shared" = yes || enable_static=yes 12968{ echo "$as_me:$LINENO: result: $enable_static" >&5 12969echo "${ECHO_T}$enable_static" >&6; } 12970 12971# The else clause should only fire when bootstrapping the 12972# libtool distribution, otherwise you forgot to ship ltmain.sh 12973# with your package, and you will get complaints that there are 12974# no rules to generate ltmain.sh. 12975if test -f "$ltmain"; then 12976 # See if we are running on zsh, and set the options which allow our commands through 12977 # without removal of \ escapes. 12978 if test -n "${ZSH_VERSION+set}" ; then 12979 setopt NO_GLOB_SUBST 12980 fi 12981 # Now quote all the things that may contain metacharacters while being 12982 # careful not to overquote the AC_SUBSTed values. We take copies of the 12983 # variables and quote the copies for generation of the libtool script. 12984 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 12985 SED SHELL STRIP \ 12986 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12987 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12988 deplibs_check_method reload_flag reload_cmds need_locks \ 12989 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12990 lt_cv_sys_global_symbol_to_c_name_address \ 12991 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12992 old_postinstall_cmds old_postuninstall_cmds \ 12993 compiler \ 12994 CC \ 12995 LD \ 12996 lt_prog_compiler_wl \ 12997 lt_prog_compiler_pic \ 12998 lt_prog_compiler_static \ 12999 lt_prog_compiler_no_builtin_flag \ 13000 export_dynamic_flag_spec \ 13001 thread_safe_flag_spec \ 13002 whole_archive_flag_spec \ 13003 enable_shared_with_static_runtimes \ 13004 old_archive_cmds \ 13005 old_archive_from_new_cmds \ 13006 predep_objects \ 13007 postdep_objects \ 13008 predeps \ 13009 postdeps \ 13010 compiler_lib_search_path \ 13011 archive_cmds \ 13012 archive_expsym_cmds \ 13013 postinstall_cmds \ 13014 postuninstall_cmds \ 13015 old_archive_from_expsyms_cmds \ 13016 allow_undefined_flag \ 13017 no_undefined_flag \ 13018 export_symbols_cmds \ 13019 hardcode_libdir_flag_spec \ 13020 hardcode_libdir_flag_spec_ld \ 13021 hardcode_libdir_separator \ 13022 hardcode_automatic \ 13023 module_cmds \ 13024 module_expsym_cmds \ 13025 lt_cv_prog_compiler_c_o \ 13026 exclude_expsyms \ 13027 include_expsyms; do 13028 13029 case $var in 13030 old_archive_cmds | \ 13031 old_archive_from_new_cmds | \ 13032 archive_cmds | \ 13033 archive_expsym_cmds | \ 13034 module_cmds | \ 13035 module_expsym_cmds | \ 13036 old_archive_from_expsyms_cmds | \ 13037 export_symbols_cmds | \ 13038 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13039 postinstall_cmds | postuninstall_cmds | \ 13040 old_postinstall_cmds | old_postuninstall_cmds | \ 13041 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13042 # Double-quote double-evaled strings. 13043 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13044 ;; 13045 *) 13046 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13047 ;; 13048 esac 13049 done 13050 13051 case $lt_echo in 13052 *'\$0 --fallback-echo"') 13053 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13054 ;; 13055 esac 13056 13057cfgfile="${ofile}T" 13058 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 13059 $rm -f "$cfgfile" 13060 { echo "$as_me:$LINENO: creating $ofile" >&5 13061echo "$as_me: creating $ofile" >&6;} 13062 13063 cat <<__EOF__ >> "$cfgfile" 13064#! $SHELL 13065 13066# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13067# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 13068# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13069# 13070# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 13071# Free Software Foundation, Inc. 13072# 13073# This file is part of GNU Libtool: 13074# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 13075# 13076# This program is free software; you can redistribute it and/or modify 13077# it under the terms of the GNU General Public License as published by 13078# the Free Software Foundation; either version 2 of the License, or 13079# (at your option) any later version. 13080# 13081# This program is distributed in the hope that it will be useful, but 13082# WITHOUT ANY WARRANTY; without even the implied warranty of 13083# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13084# General Public License for more details. 13085# 13086# You should have received a copy of the GNU General Public License 13087# along with this program; if not, write to the Free Software 13088# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13089# 13090# As a special exception to the GNU General Public License, if you 13091# distribute this file as part of a program that contains a 13092# configuration script generated by Autoconf, you may include it under 13093# the same distribution terms that you use for the rest of that program. 13094 13095# A sed program that does not truncate output. 13096SED=$lt_SED 13097 13098# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13099Xsed="$SED -e 1s/^X//" 13100 13101# The HP-UX ksh and POSIX shell print the target directory to stdout 13102# if CDPATH is set. 13103(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13104 13105# The names of the tagged configurations supported by this script. 13106available_tags= 13107 13108# ### BEGIN LIBTOOL CONFIG 13109 13110# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13111 13112# Shell to use when invoking shell scripts. 13113SHELL=$lt_SHELL 13114 13115# Whether or not to build shared libraries. 13116build_libtool_libs=$enable_shared 13117 13118# Whether or not to build static libraries. 13119build_old_libs=$enable_static 13120 13121# Whether or not to add -lc for building shared libraries. 13122build_libtool_need_lc=$archive_cmds_need_lc 13123 13124# Whether or not to disallow shared libs when runtime libs are static 13125allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13126 13127# Whether or not to optimize for fast installation. 13128fast_install=$enable_fast_install 13129 13130# The host system. 13131host_alias=$host_alias 13132host=$host 13133host_os=$host_os 13134 13135# The build system. 13136build_alias=$build_alias 13137build=$build 13138build_os=$build_os 13139 13140# An echo program that does not interpret backslashes. 13141echo=$lt_echo 13142 13143# The archiver. 13144AR=$lt_AR 13145AR_FLAGS=$lt_AR_FLAGS 13146 13147# A C compiler. 13148LTCC=$lt_LTCC 13149 13150# LTCC compiler flags. 13151LTCFLAGS=$lt_LTCFLAGS 13152 13153# A language-specific compiler. 13154CC=$lt_compiler 13155 13156# Is the compiler the GNU C compiler? 13157with_gcc=$GCC 13158 13159# An ERE matcher. 13160EGREP=$lt_EGREP 13161 13162# The linker used to build libraries. 13163LD=$lt_LD 13164 13165# Whether we need hard or soft links. 13166LN_S=$lt_LN_S 13167 13168# A BSD-compatible nm program. 13169NM=$lt_NM 13170 13171# A symbol stripping program 13172STRIP=$lt_STRIP 13173 13174# Used to examine libraries when file_magic_cmd begins "file" 13175MAGIC_CMD=$MAGIC_CMD 13176 13177# Used on cygwin: DLL creation program. 13178DLLTOOL="$DLLTOOL" 13179 13180# Used on cygwin: object dumper. 13181OBJDUMP="$OBJDUMP" 13182 13183# Used on cygwin: assembler. 13184AS="$AS" 13185 13186# The name of the directory that contains temporary libtool files. 13187objdir=$objdir 13188 13189# How to create reloadable object files. 13190reload_flag=$lt_reload_flag 13191reload_cmds=$lt_reload_cmds 13192 13193# How to pass a linker flag through the compiler. 13194wl=$lt_lt_prog_compiler_wl 13195 13196# Object file suffix (normally "o"). 13197objext="$ac_objext" 13198 13199# Old archive suffix (normally "a"). 13200libext="$libext" 13201 13202# Shared library suffix (normally ".so"). 13203shrext_cmds='$shrext_cmds' 13204 13205# Executable file suffix (normally ""). 13206exeext="$exeext" 13207 13208# Additional compiler flags for building library objects. 13209pic_flag=$lt_lt_prog_compiler_pic 13210pic_mode=$pic_mode 13211 13212# What is the maximum length of a command? 13213max_cmd_len=$lt_cv_sys_max_cmd_len 13214 13215# Does compiler simultaneously support -c and -o options? 13216compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13217 13218# Must we lock files when doing compilation? 13219need_locks=$lt_need_locks 13220 13221# Do we need the lib prefix for modules? 13222need_lib_prefix=$need_lib_prefix 13223 13224# Do we need a version for libraries? 13225need_version=$need_version 13226 13227# Whether dlopen is supported. 13228dlopen_support=$enable_dlopen 13229 13230# Whether dlopen of programs is supported. 13231dlopen_self=$enable_dlopen_self 13232 13233# Whether dlopen of statically linked programs is supported. 13234dlopen_self_static=$enable_dlopen_self_static 13235 13236# Compiler flag to prevent dynamic linking. 13237link_static_flag=$lt_lt_prog_compiler_static 13238 13239# Compiler flag to turn off builtin functions. 13240no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13241 13242# Compiler flag to allow reflexive dlopens. 13243export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13244 13245# Compiler flag to generate shared objects directly from archives. 13246whole_archive_flag_spec=$lt_whole_archive_flag_spec 13247 13248# Compiler flag to generate thread-safe objects. 13249thread_safe_flag_spec=$lt_thread_safe_flag_spec 13250 13251# Library versioning type. 13252version_type=$version_type 13253 13254# Format of library name prefix. 13255libname_spec=$lt_libname_spec 13256 13257# List of archive names. First name is the real one, the rest are links. 13258# The last name is the one that the linker finds with -lNAME. 13259library_names_spec=$lt_library_names_spec 13260 13261# The coded name of the library, if different from the real name. 13262soname_spec=$lt_soname_spec 13263 13264# Commands used to build and install an old-style archive. 13265RANLIB=$lt_RANLIB 13266old_archive_cmds=$lt_old_archive_cmds 13267old_postinstall_cmds=$lt_old_postinstall_cmds 13268old_postuninstall_cmds=$lt_old_postuninstall_cmds 13269 13270# Create an old-style archive from a shared archive. 13271old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13272 13273# Create a temporary old-style archive to link instead of a shared archive. 13274old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13275 13276# Commands used to build and install a shared archive. 13277archive_cmds=$lt_archive_cmds 13278archive_expsym_cmds=$lt_archive_expsym_cmds 13279postinstall_cmds=$lt_postinstall_cmds 13280postuninstall_cmds=$lt_postuninstall_cmds 13281 13282# Commands used to build a loadable module (assumed same as above if empty) 13283module_cmds=$lt_module_cmds 13284module_expsym_cmds=$lt_module_expsym_cmds 13285 13286# Commands to strip libraries. 13287old_striplib=$lt_old_striplib 13288striplib=$lt_striplib 13289 13290# Dependencies to place before the objects being linked to create a 13291# shared library. 13292predep_objects=$lt_predep_objects 13293 13294# Dependencies to place after the objects being linked to create a 13295# shared library. 13296postdep_objects=$lt_postdep_objects 13297 13298# Dependencies to place before the objects being linked to create a 13299# shared library. 13300predeps=$lt_predeps 13301 13302# Dependencies to place after the objects being linked to create a 13303# shared library. 13304postdeps=$lt_postdeps 13305 13306# The library search path used internally by the compiler when linking 13307# a shared library. 13308compiler_lib_search_path=$lt_compiler_lib_search_path 13309 13310# Method to check whether dependent libraries are shared objects. 13311deplibs_check_method=$lt_deplibs_check_method 13312 13313# Command to use when deplibs_check_method == file_magic. 13314file_magic_cmd=$lt_file_magic_cmd 13315 13316# Flag that allows shared libraries with undefined symbols to be built. 13317allow_undefined_flag=$lt_allow_undefined_flag 13318 13319# Flag that forces no undefined symbols. 13320no_undefined_flag=$lt_no_undefined_flag 13321 13322# Commands used to finish a libtool library installation in a directory. 13323finish_cmds=$lt_finish_cmds 13324 13325# Same as above, but a single script fragment to be evaled but not shown. 13326finish_eval=$lt_finish_eval 13327 13328# Take the output of nm and produce a listing of raw symbols and C names. 13329global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13330 13331# Transform the output of nm in a proper C declaration 13332global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13333 13334# Transform the output of nm in a C name address pair 13335global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13336 13337# This is the shared library runtime path variable. 13338runpath_var=$runpath_var 13339 13340# This is the shared library path variable. 13341shlibpath_var=$shlibpath_var 13342 13343# Is shlibpath searched before the hard-coded library search path? 13344shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13345 13346# How to hardcode a shared library path into an executable. 13347hardcode_action=$hardcode_action 13348 13349# Whether we should hardcode library paths into libraries. 13350hardcode_into_libs=$hardcode_into_libs 13351 13352# Flag to hardcode \$libdir into a binary during linking. 13353# This must work even if \$libdir does not exist. 13354hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13355 13356# If ld is used when linking, flag to hardcode \$libdir into 13357# a binary during linking. This must work even if \$libdir does 13358# not exist. 13359hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13360 13361# Whether we need a single -rpath flag with a separated argument. 13362hardcode_libdir_separator=$lt_hardcode_libdir_separator 13363 13364# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13365# resulting binary. 13366hardcode_direct=$hardcode_direct 13367 13368# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13369# resulting binary. 13370hardcode_minus_L=$hardcode_minus_L 13371 13372# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13373# the resulting binary. 13374hardcode_shlibpath_var=$hardcode_shlibpath_var 13375 13376# Set to yes if building a shared library automatically hardcodes DIR into the library 13377# and all subsequent libraries and executables linked against it. 13378hardcode_automatic=$hardcode_automatic 13379 13380# Variables whose values should be saved in libtool wrapper scripts and 13381# restored at relink time. 13382variables_saved_for_relink="$variables_saved_for_relink" 13383 13384# Whether libtool must link a program against all its dependency libraries. 13385link_all_deplibs=$link_all_deplibs 13386 13387# Compile-time system search path for libraries 13388sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13389 13390# Run-time system search path for libraries 13391sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13392 13393# Fix the shell variable \$srcfile for the compiler. 13394fix_srcfile_path="$fix_srcfile_path" 13395 13396# Set to yes if exported symbols are required. 13397always_export_symbols=$always_export_symbols 13398 13399# The commands to list exported symbols. 13400export_symbols_cmds=$lt_export_symbols_cmds 13401 13402# The commands to extract the exported symbol list from a shared archive. 13403extract_expsyms_cmds=$lt_extract_expsyms_cmds 13404 13405# Symbols that should not be listed in the preloaded symbols. 13406exclude_expsyms=$lt_exclude_expsyms 13407 13408# Symbols that must always be exported. 13409include_expsyms=$lt_include_expsyms 13410 13411# ### END LIBTOOL CONFIG 13412 13413__EOF__ 13414 13415 13416 case $host_os in 13417 aix3*) 13418 cat <<\EOF >> "$cfgfile" 13419 13420# AIX sometimes has problems with the GCC collect2 program. For some 13421# reason, if we set the COLLECT_NAMES environment variable, the problems 13422# vanish in a puff of smoke. 13423if test "X${COLLECT_NAMES+set}" != Xset; then 13424 COLLECT_NAMES= 13425 export COLLECT_NAMES 13426fi 13427EOF 13428 ;; 13429 esac 13430 13431 # We use sed instead of cat because bash on DJGPP gets confused if 13432 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13433 # text mode, it properly converts lines to CR/LF. This bash problem 13434 # is reportedly fixed, but why not run on old versions too? 13435 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 13436 13437 mv -f "$cfgfile" "$ofile" || \ 13438 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13439 chmod +x "$ofile" 13440 13441else 13442 # If there is no Makefile yet, we rely on a make rule to execute 13443 # `config.status --recheck' to rerun these tests and create the 13444 # libtool script then. 13445 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13446 if test -f "$ltmain_in"; then 13447 test -f Makefile && make "$ltmain" 13448 fi 13449fi 13450 13451 13452ac_ext=c 13453ac_cpp='$CPP $CPPFLAGS' 13454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13456ac_compiler_gnu=$ac_cv_c_compiler_gnu 13457 13458CC="$lt_save_CC" 13459 13460 13461# Check whether --with-tags was given. 13462if test "${with_tags+set}" = set; then 13463 withval=$with_tags; tagnames="$withval" 13464fi 13465 13466 13467if test -f "$ltmain" && test -n "$tagnames"; then 13468 if test ! -f "${ofile}"; then 13469 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 13470echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 13471 fi 13472 13473 if test -z "$LTCC"; then 13474 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 13475 if test -z "$LTCC"; then 13476 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 13477echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 13478 else 13479 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 13480echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 13481 fi 13482 fi 13483 if test -z "$LTCFLAGS"; then 13484 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 13485 fi 13486 13487 # Extract list of available tagged configurations in $ofile. 13488 # Note that this assumes the entire list is on one line. 13489 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 13490 13491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13492 for tagname in $tagnames; do 13493 IFS="$lt_save_ifs" 13494 # Check whether tagname contains only valid characters 13495 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 13496 "") ;; 13497 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 13498echo "$as_me: error: invalid tag name: $tagname" >&2;} 13499 { (exit 1); exit 1; }; } 13500 ;; 13501 esac 13502 13503 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 13504 then 13505 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 13506echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 13507 { (exit 1); exit 1; }; } 13508 fi 13509 13510 # Update the list of available tags. 13511 if test -n "$tagname"; then 13512 echo appending configuration tag \"$tagname\" to $ofile 13513 13514 case $tagname in 13515 CXX) 13516 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 13517 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 13518 (test "X$CXX" != "Xg++"))) ; then 13519 ac_ext=cpp 13520ac_cpp='$CXXCPP $CPPFLAGS' 13521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13524 13525 13526 13527 13528archive_cmds_need_lc_CXX=no 13529allow_undefined_flag_CXX= 13530always_export_symbols_CXX=no 13531archive_expsym_cmds_CXX= 13532export_dynamic_flag_spec_CXX= 13533hardcode_direct_CXX=no 13534hardcode_libdir_flag_spec_CXX= 13535hardcode_libdir_flag_spec_ld_CXX= 13536hardcode_libdir_separator_CXX= 13537hardcode_minus_L_CXX=no 13538hardcode_shlibpath_var_CXX=unsupported 13539hardcode_automatic_CXX=no 13540module_cmds_CXX= 13541module_expsym_cmds_CXX= 13542link_all_deplibs_CXX=unknown 13543old_archive_cmds_CXX=$old_archive_cmds 13544no_undefined_flag_CXX= 13545whole_archive_flag_spec_CXX= 13546enable_shared_with_static_runtimes_CXX=no 13547 13548# Dependencies to place before and after the object being linked: 13549predep_objects_CXX= 13550postdep_objects_CXX= 13551predeps_CXX= 13552postdeps_CXX= 13553compiler_lib_search_path_CXX= 13554 13555# Source file extension for C++ test sources. 13556ac_ext=cpp 13557 13558# Object file extension for compiled C++ test sources. 13559objext=o 13560objext_CXX=$objext 13561 13562# Code to be used in simple compile tests 13563lt_simple_compile_test_code="int some_variable = 0;\n" 13564 13565# Code to be used in simple link tests 13566lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 13567 13568# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13569 13570# If no C compiler was specified, use CC. 13571LTCC=${LTCC-"$CC"} 13572 13573# If no C compiler flags were specified, use CFLAGS. 13574LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13575 13576# Allow CC to be a program name with arguments. 13577compiler=$CC 13578 13579 13580# save warnings/boilerplate of simple test code 13581ac_outfile=conftest.$ac_objext 13582printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13583eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13584_lt_compiler_boilerplate=`cat conftest.err` 13585$rm conftest* 13586 13587ac_outfile=conftest.$ac_objext 13588printf "$lt_simple_link_test_code" >conftest.$ac_ext 13589eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13590_lt_linker_boilerplate=`cat conftest.err` 13591$rm conftest* 13592 13593 13594# Allow CC to be a program name with arguments. 13595lt_save_CC=$CC 13596lt_save_LD=$LD 13597lt_save_GCC=$GCC 13598GCC=$GXX 13599lt_save_with_gnu_ld=$with_gnu_ld 13600lt_save_path_LD=$lt_cv_path_LD 13601if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13602 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13603else 13604 $as_unset lt_cv_prog_gnu_ld 13605fi 13606if test -n "${lt_cv_path_LDCXX+set}"; then 13607 lt_cv_path_LD=$lt_cv_path_LDCXX 13608else 13609 $as_unset lt_cv_path_LD 13610fi 13611test -z "${LDCXX+set}" || LD=$LDCXX 13612CC=${CXX-"c++"} 13613compiler=$CC 13614compiler_CXX=$CC 13615for cc_temp in $compiler""; do 13616 case $cc_temp in 13617 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13618 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13619 \-*) ;; 13620 *) break;; 13621 esac 13622done 13623cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13624 13625 13626# We don't want -fno-exception wen compiling C++ code, so set the 13627# no_builtin_flag separately 13628if test "$GXX" = yes; then 13629 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13630else 13631 lt_prog_compiler_no_builtin_flag_CXX= 13632fi 13633 13634if test "$GXX" = yes; then 13635 # Set up default GNU C++ configuration 13636 13637 13638# Check whether --with-gnu-ld was given. 13639if test "${with_gnu_ld+set}" = set; then 13640 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13641else 13642 with_gnu_ld=no 13643fi 13644 13645ac_prog=ld 13646if test "$GCC" = yes; then 13647 # Check if gcc -print-prog-name=ld gives a path. 13648 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 13649echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 13650 case $host in 13651 *-*-mingw*) 13652 # gcc leaves a trailing carriage return which upsets mingw 13653 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13654 *) 13655 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13656 esac 13657 case $ac_prog in 13658 # Accept absolute paths. 13659 [\\/]* | ?:[\\/]*) 13660 re_direlt='/[^/][^/]*/\.\./' 13661 # Canonicalize the pathname of ld 13662 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 13663 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 13664 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 13665 done 13666 test -z "$LD" && LD="$ac_prog" 13667 ;; 13668 "") 13669 # If it fails, then pretend we aren't using GCC. 13670 ac_prog=ld 13671 ;; 13672 *) 13673 # If it is relative, then search for the first ld in PATH. 13674 with_gnu_ld=unknown 13675 ;; 13676 esac 13677elif test "$with_gnu_ld" = yes; then 13678 { echo "$as_me:$LINENO: checking for GNU ld" >&5 13679echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 13680else 13681 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 13682echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 13683fi 13684if test "${lt_cv_path_LD+set}" = set; then 13685 echo $ECHO_N "(cached) $ECHO_C" >&6 13686else 13687 if test -z "$LD"; then 13688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13689 for ac_dir in $PATH; do 13690 IFS="$lt_save_ifs" 13691 test -z "$ac_dir" && ac_dir=. 13692 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13693 lt_cv_path_LD="$ac_dir/$ac_prog" 13694 # Check to see if the program is GNU ld. I'd rather use --version, 13695 # but apparently some variants of GNU ld only accept -v. 13696 # Break only if it was the GNU/non-GNU ld that we prefer. 13697 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13698 *GNU* | *'with BFD'*) 13699 test "$with_gnu_ld" != no && break 13700 ;; 13701 *) 13702 test "$with_gnu_ld" != yes && break 13703 ;; 13704 esac 13705 fi 13706 done 13707 IFS="$lt_save_ifs" 13708else 13709 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13710fi 13711fi 13712 13713LD="$lt_cv_path_LD" 13714if test -n "$LD"; then 13715 { echo "$as_me:$LINENO: result: $LD" >&5 13716echo "${ECHO_T}$LD" >&6; } 13717else 13718 { echo "$as_me:$LINENO: result: no" >&5 13719echo "${ECHO_T}no" >&6; } 13720fi 13721test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 13722echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 13723 { (exit 1); exit 1; }; } 13724{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 13725echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 13726if test "${lt_cv_prog_gnu_ld+set}" = set; then 13727 echo $ECHO_N "(cached) $ECHO_C" >&6 13728else 13729 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13730case `$LD -v 2>&1 </dev/null` in 13731*GNU* | *'with BFD'*) 13732 lt_cv_prog_gnu_ld=yes 13733 ;; 13734*) 13735 lt_cv_prog_gnu_ld=no 13736 ;; 13737esac 13738fi 13739{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 13740echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 13741with_gnu_ld=$lt_cv_prog_gnu_ld 13742 13743 13744 13745 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13746 # archiving commands below assume that GNU ld is being used. 13747 if test "$with_gnu_ld" = yes; then 13748 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13749 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' 13750 13751 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13752 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13753 13754 # If archive_cmds runs LD, not CC, wlarc should be empty 13755 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13756 # investigate it a little bit more. (MM) 13757 wlarc='${wl}' 13758 13759 # ancient GNU ld didn't support --whole-archive et. al. 13760 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 13761 grep 'no-whole-archive' > /dev/null; then 13762 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13763 else 13764 whole_archive_flag_spec_CXX= 13765 fi 13766 else 13767 with_gnu_ld=no 13768 wlarc= 13769 13770 # A generic and very simple default shared library creation 13771 # command for GNU C++ for the case where it uses the native 13772 # linker, instead of GNU ld. If possible, this setting should 13773 # overridden to take advantage of the native linker features on 13774 # the platform it is being used on. 13775 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13776 fi 13777 13778 # Commands to make compiler produce verbose output that lists 13779 # what "hidden" libraries, object files and flags are used when 13780 # linking a shared library. 13781 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13782 13783else 13784 GXX=no 13785 with_gnu_ld=no 13786 wlarc= 13787fi 13788 13789# PORTME: fill in a description of your system's C++ link characteristics 13790{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13791echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 13792ld_shlibs_CXX=yes 13793case $host_os in 13794 aix3*) 13795 # FIXME: insert proper C++ library support 13796 ld_shlibs_CXX=no 13797 ;; 13798 aix4* | aix5*) 13799 if test "$host_cpu" = ia64; then 13800 # On IA64, the linker does run time linking by default, so we don't 13801 # have to do anything special. 13802 aix_use_runtimelinking=no 13803 exp_sym_flag='-Bexport' 13804 no_entry_flag="" 13805 else 13806 aix_use_runtimelinking=no 13807 13808 # Test if we are trying to use run time linking or normal 13809 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13810 # need to do runtime linking. 13811 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13812 for ld_flag in $LDFLAGS; do 13813 case $ld_flag in 13814 *-brtl*) 13815 aix_use_runtimelinking=yes 13816 break 13817 ;; 13818 esac 13819 done 13820 ;; 13821 esac 13822 13823 exp_sym_flag='-bexport' 13824 no_entry_flag='-bnoentry' 13825 fi 13826 13827 # When large executables or shared objects are built, AIX ld can 13828 # have problems creating the table of contents. If linking a library 13829 # or program results in "error TOC overflow" add -mminimal-toc to 13830 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13831 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13832 13833 archive_cmds_CXX='' 13834 hardcode_direct_CXX=yes 13835 hardcode_libdir_separator_CXX=':' 13836 link_all_deplibs_CXX=yes 13837 13838 if test "$GXX" = yes; then 13839 case $host_os in aix4.[012]|aix4.[012].*) 13840 # We only want to do this on AIX 4.2 and lower, the check 13841 # below for broken collect2 doesn't work under 4.3+ 13842 collect2name=`${CC} -print-prog-name=collect2` 13843 if test -f "$collect2name" && \ 13844 strings "$collect2name" | grep resolve_lib_name >/dev/null 13845 then 13846 # We have reworked collect2 13847 hardcode_direct_CXX=yes 13848 else 13849 # We have old collect2 13850 hardcode_direct_CXX=unsupported 13851 # It fails to find uninstalled libraries when the uninstalled 13852 # path is not listed in the libpath. Setting hardcode_minus_L 13853 # to unsupported forces relinking 13854 hardcode_minus_L_CXX=yes 13855 hardcode_libdir_flag_spec_CXX='-L$libdir' 13856 hardcode_libdir_separator_CXX= 13857 fi 13858 ;; 13859 esac 13860 shared_flag='-shared' 13861 if test "$aix_use_runtimelinking" = yes; then 13862 shared_flag="$shared_flag "'${wl}-G' 13863 fi 13864 else 13865 # not using gcc 13866 if test "$host_cpu" = ia64; then 13867 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13868 # chokes on -Wl,-G. The following line is correct: 13869 shared_flag='-G' 13870 else 13871 if test "$aix_use_runtimelinking" = yes; then 13872 shared_flag='${wl}-G' 13873 else 13874 shared_flag='${wl}-bM:SRE' 13875 fi 13876 fi 13877 fi 13878 13879 # It seems that -bexpall does not export symbols beginning with 13880 # underscore (_), so it is better to generate a list of symbols to export. 13881 always_export_symbols_CXX=yes 13882 if test "$aix_use_runtimelinking" = yes; then 13883 # Warning - without using the other runtime loading flags (-brtl), 13884 # -berok will link without error, but may produce a broken library. 13885 allow_undefined_flag_CXX='-berok' 13886 # Determine the default libpath from the value encoded in an empty executable. 13887 cat >conftest.$ac_ext <<_ACEOF 13888/* confdefs.h. */ 13889_ACEOF 13890cat confdefs.h >>conftest.$ac_ext 13891cat >>conftest.$ac_ext <<_ACEOF 13892/* end confdefs.h. */ 13893 13894int 13895main () 13896{ 13897 13898 ; 13899 return 0; 13900} 13901_ACEOF 13902rm -f conftest.$ac_objext conftest$ac_exeext 13903if { (ac_try="$ac_link" 13904case "(($ac_try" in 13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13906 *) ac_try_echo=$ac_try;; 13907esac 13908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13909 (eval "$ac_link") 2>conftest.er1 13910 ac_status=$? 13911 grep -v '^ *+' conftest.er1 >conftest.err 13912 rm -f conftest.er1 13913 cat conftest.err >&5 13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13915 (exit $ac_status); } && { 13916 test -z "$ac_cxx_werror_flag" || 13917 test ! -s conftest.err 13918 } && test -s conftest$ac_exeext && 13919 $as_test_x conftest$ac_exeext; then 13920 13921aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13922}'` 13923# Check for a 64-bit object if we didn't find anything. 13924if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13925}'`; fi 13926else 13927 echo "$as_me: failed program was:" >&5 13928sed 's/^/| /' conftest.$ac_ext >&5 13929 13930 13931fi 13932 13933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13934 conftest$ac_exeext conftest.$ac_ext 13935if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13936 13937 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13938 13939 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" 13940 else 13941 if test "$host_cpu" = ia64; then 13942 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13943 allow_undefined_flag_CXX="-z nodefs" 13944 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" 13945 else 13946 # Determine the default libpath from the value encoded in an empty executable. 13947 cat >conftest.$ac_ext <<_ACEOF 13948/* confdefs.h. */ 13949_ACEOF 13950cat confdefs.h >>conftest.$ac_ext 13951cat >>conftest.$ac_ext <<_ACEOF 13952/* end confdefs.h. */ 13953 13954int 13955main () 13956{ 13957 13958 ; 13959 return 0; 13960} 13961_ACEOF 13962rm -f conftest.$ac_objext conftest$ac_exeext 13963if { (ac_try="$ac_link" 13964case "(($ac_try" in 13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13966 *) ac_try_echo=$ac_try;; 13967esac 13968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13969 (eval "$ac_link") 2>conftest.er1 13970 ac_status=$? 13971 grep -v '^ *+' conftest.er1 >conftest.err 13972 rm -f conftest.er1 13973 cat conftest.err >&5 13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13975 (exit $ac_status); } && { 13976 test -z "$ac_cxx_werror_flag" || 13977 test ! -s conftest.err 13978 } && test -s conftest$ac_exeext && 13979 $as_test_x conftest$ac_exeext; then 13980 13981aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13982}'` 13983# Check for a 64-bit object if we didn't find anything. 13984if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13985}'`; fi 13986else 13987 echo "$as_me: failed program was:" >&5 13988sed 's/^/| /' conftest.$ac_ext >&5 13989 13990 13991fi 13992 13993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13994 conftest$ac_exeext conftest.$ac_ext 13995if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13996 13997 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13998 # Warning - without using the other run time loading flags, 13999 # -berok will link without error, but may produce a broken library. 14000 no_undefined_flag_CXX=' ${wl}-bernotok' 14001 allow_undefined_flag_CXX=' ${wl}-berok' 14002 # Exported symbols can be pulled into shared objects from archives 14003 whole_archive_flag_spec_CXX='$convenience' 14004 archive_cmds_need_lc_CXX=yes 14005 # This is similar to how AIX traditionally builds its shared libraries. 14006 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' 14007 fi 14008 fi 14009 ;; 14010 14011 beos*) 14012 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14013 allow_undefined_flag_CXX=unsupported 14014 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14015 # support --undefined. This deserves some investigation. FIXME 14016 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14017 else 14018 ld_shlibs_CXX=no 14019 fi 14020 ;; 14021 14022 chorus*) 14023 case $cc_basename in 14024 *) 14025 # FIXME: insert proper C++ library support 14026 ld_shlibs_CXX=no 14027 ;; 14028 esac 14029 ;; 14030 14031 cygwin* | mingw* | pw32*) 14032 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14033 # as there is no search path for DLLs. 14034 hardcode_libdir_flag_spec_CXX='-L$libdir' 14035 allow_undefined_flag_CXX=unsupported 14036 always_export_symbols_CXX=no 14037 enable_shared_with_static_runtimes_CXX=yes 14038 14039 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14040 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' 14041 # If the export-symbols file already is a .def file (1st line 14042 # is EXPORTS), use it as is; otherwise, prepend... 14043 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14044 cp $export_symbols $output_objdir/$soname.def; 14045 else 14046 echo EXPORTS > $output_objdir/$soname.def; 14047 cat $export_symbols >> $output_objdir/$soname.def; 14048 fi~ 14049 $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' 14050 else 14051 ld_shlibs_CXX=no 14052 fi 14053 ;; 14054 darwin* | rhapsody*) 14055 case $host_os in 14056 rhapsody* | darwin1.[012]) 14057 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 14058 ;; 14059 *) # Darwin 1.3 on 14060 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14061 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14062 else 14063 case ${MACOSX_DEPLOYMENT_TARGET} in 14064 10.[012]) 14065 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14066 ;; 14067 10.*) 14068 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 14069 ;; 14070 esac 14071 fi 14072 ;; 14073 esac 14074 archive_cmds_need_lc_CXX=no 14075 hardcode_direct_CXX=no 14076 hardcode_automatic_CXX=yes 14077 hardcode_shlibpath_var_CXX=unsupported 14078 whole_archive_flag_spec_CXX='' 14079 link_all_deplibs_CXX=yes 14080 14081 if test "$GXX" = yes ; then 14082 lt_int_apple_cc_single_mod=no 14083 output_verbose_link_cmd='echo' 14084 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 14085 lt_int_apple_cc_single_mod=yes 14086 fi 14087 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 14088 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14089 else 14090 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' 14091 fi 14092 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14093 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14094 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 14095 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14096 else 14097 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14098 fi 14099 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}' 14100 else 14101 case $cc_basename in 14102 xlc*) 14103 output_verbose_link_cmd='echo' 14104 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14105 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14106 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14107 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14108 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}' 14109 ;; 14110 *) 14111 ld_shlibs_CXX=no 14112 ;; 14113 esac 14114 fi 14115 ;; 14116 14117 dgux*) 14118 case $cc_basename in 14119 ec++*) 14120 # FIXME: insert proper C++ library support 14121 ld_shlibs_CXX=no 14122 ;; 14123 ghcx*) 14124 # Green Hills C++ Compiler 14125 # FIXME: insert proper C++ library support 14126 ld_shlibs_CXX=no 14127 ;; 14128 *) 14129 # FIXME: insert proper C++ library support 14130 ld_shlibs_CXX=no 14131 ;; 14132 esac 14133 ;; 14134 freebsd[12]*) 14135 # C++ shared libraries reported to be fairly broken before switch to ELF 14136 ld_shlibs_CXX=no 14137 ;; 14138 freebsd-elf*) 14139 archive_cmds_need_lc_CXX=no 14140 ;; 14141 freebsd* | dragonfly*) 14142 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14143 # conventions 14144 ld_shlibs_CXX=yes 14145 ;; 14146 gnu*) 14147 ;; 14148 hpux9*) 14149 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14150 hardcode_libdir_separator_CXX=: 14151 export_dynamic_flag_spec_CXX='${wl}-E' 14152 hardcode_direct_CXX=yes 14153 hardcode_minus_L_CXX=yes # Not in the search PATH, 14154 # but as the default 14155 # location of the library. 14156 14157 case $cc_basename in 14158 CC*) 14159 # FIXME: insert proper C++ library support 14160 ld_shlibs_CXX=no 14161 ;; 14162 aCC*) 14163 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' 14164 # Commands to make compiler produce verbose output that lists 14165 # what "hidden" libraries, object files and flags are used when 14166 # linking a shared library. 14167 # 14168 # There doesn't appear to be a way to prevent this compiler from 14169 # explicitly linking system object files so we need to strip them 14170 # from the output so that they don't get included in the library 14171 # dependencies. 14172 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' 14173 ;; 14174 *) 14175 if test "$GXX" = yes; then 14176 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' 14177 else 14178 # FIXME: insert proper C++ library support 14179 ld_shlibs_CXX=no 14180 fi 14181 ;; 14182 esac 14183 ;; 14184 hpux10*|hpux11*) 14185 if test $with_gnu_ld = no; then 14186 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14187 hardcode_libdir_separator_CXX=: 14188 14189 case $host_cpu in 14190 hppa*64*|ia64*) 14191 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 14192 ;; 14193 *) 14194 export_dynamic_flag_spec_CXX='${wl}-E' 14195 ;; 14196 esac 14197 fi 14198 case $host_cpu in 14199 hppa*64*|ia64*) 14200 hardcode_direct_CXX=no 14201 hardcode_shlibpath_var_CXX=no 14202 ;; 14203 *) 14204 hardcode_direct_CXX=yes 14205 hardcode_minus_L_CXX=yes # Not in the search PATH, 14206 # but as the default 14207 # location of the library. 14208 ;; 14209 esac 14210 14211 case $cc_basename in 14212 CC*) 14213 # FIXME: insert proper C++ library support 14214 ld_shlibs_CXX=no 14215 ;; 14216 aCC*) 14217 case $host_cpu in 14218 hppa*64*) 14219 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14220 ;; 14221 ia64*) 14222 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14223 ;; 14224 *) 14225 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14226 ;; 14227 esac 14228 # Commands to make compiler produce verbose output that lists 14229 # what "hidden" libraries, object files and flags are used when 14230 # linking a shared library. 14231 # 14232 # There doesn't appear to be a way to prevent this compiler from 14233 # explicitly linking system object files so we need to strip them 14234 # from the output so that they don't get included in the library 14235 # dependencies. 14236 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' 14237 ;; 14238 *) 14239 if test "$GXX" = yes; then 14240 if test $with_gnu_ld = no; then 14241 case $host_cpu in 14242 hppa*64*) 14243 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14244 ;; 14245 ia64*) 14246 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14247 ;; 14248 *) 14249 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' 14250 ;; 14251 esac 14252 fi 14253 else 14254 # FIXME: insert proper C++ library support 14255 ld_shlibs_CXX=no 14256 fi 14257 ;; 14258 esac 14259 ;; 14260 interix3*) 14261 hardcode_direct_CXX=no 14262 hardcode_shlibpath_var_CXX=no 14263 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14264 export_dynamic_flag_spec_CXX='${wl}-E' 14265 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14266 # Instead, shared libraries are loaded at an image base (0x10000000 by 14267 # default) and relocated if they conflict, which is a slow very memory 14268 # consuming and fragmenting process. To avoid this, we pick a random, 14269 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14270 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14271 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' 14272 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' 14273 ;; 14274 irix5* | irix6*) 14275 case $cc_basename in 14276 CC*) 14277 # SGI C++ 14278 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' 14279 14280 # Archives containing C++ object files must be created using 14281 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14282 # necessary to make sure instantiated templates are included 14283 # in the archive. 14284 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14285 ;; 14286 *) 14287 if test "$GXX" = yes; then 14288 if test "$with_gnu_ld" = no; then 14289 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' 14290 else 14291 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' 14292 fi 14293 fi 14294 link_all_deplibs_CXX=yes 14295 ;; 14296 esac 14297 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14298 hardcode_libdir_separator_CXX=: 14299 ;; 14300 linux* | k*bsd*-gnu) 14301 case $cc_basename in 14302 KCC*) 14303 # Kuck and Associates, Inc. (KAI) C++ Compiler 14304 14305 # KCC will only create a shared library if the output file 14306 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14307 # to its proper name (with version) after linking. 14308 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' 14309 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' 14310 # Commands to make compiler produce verbose output that lists 14311 # what "hidden" libraries, object files and flags are used when 14312 # linking a shared library. 14313 # 14314 # There doesn't appear to be a way to prevent this compiler from 14315 # explicitly linking system object files so we need to strip them 14316 # from the output so that they don't get included in the library 14317 # dependencies. 14318 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' 14319 14320 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 14321 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14322 14323 # Archives containing C++ object files must be created using 14324 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14325 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14326 ;; 14327 icpc*) 14328 # Intel C++ 14329 with_gnu_ld=yes 14330 # version 8.0 and above of icpc choke on multiply defined symbols 14331 # if we add $predep_objects and $postdep_objects, however 7.1 and 14332 # earlier do not add the objects themselves. 14333 case `$CC -V 2>&1` in 14334 *"Version 7."*) 14335 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14336 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' 14337 ;; 14338 *) # Version 8.0 or newer 14339 tmp_idyn= 14340 case $host_cpu in 14341 ia64*) tmp_idyn=' -i_dynamic';; 14342 esac 14343 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14344 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' 14345 ;; 14346 esac 14347 archive_cmds_need_lc_CXX=no 14348 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14349 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14350 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14351 ;; 14352 pgCC*) 14353 # Portland Group C++ compiler 14354 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14355 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' 14356 14357 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 14358 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14359 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' 14360 ;; 14361 cxx*) 14362 # Compaq C++ 14363 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14364 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' 14365 14366 runpath_var=LD_RUN_PATH 14367 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14368 hardcode_libdir_separator_CXX=: 14369 14370 # Commands to make compiler produce verbose output that lists 14371 # what "hidden" libraries, object files and flags are used when 14372 # linking a shared library. 14373 # 14374 # There doesn't appear to be a way to prevent this compiler from 14375 # explicitly linking system object files so we need to strip them 14376 # from the output so that they don't get included in the library 14377 # dependencies. 14378 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' 14379 ;; 14380 esac 14381 ;; 14382 lynxos*) 14383 # FIXME: insert proper C++ library support 14384 ld_shlibs_CXX=no 14385 ;; 14386 m88k*) 14387 # FIXME: insert proper C++ library support 14388 ld_shlibs_CXX=no 14389 ;; 14390 mvs*) 14391 case $cc_basename in 14392 cxx*) 14393 # FIXME: insert proper C++ library support 14394 ld_shlibs_CXX=no 14395 ;; 14396 *) 14397 # FIXME: insert proper C++ library support 14398 ld_shlibs_CXX=no 14399 ;; 14400 esac 14401 ;; 14402 netbsd* | netbsdelf*-gnu) 14403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14404 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14405 wlarc= 14406 hardcode_libdir_flag_spec_CXX='-R$libdir' 14407 hardcode_direct_CXX=yes 14408 hardcode_shlibpath_var_CXX=no 14409 fi 14410 # Workaround some broken pre-1.5 toolchains 14411 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14412 ;; 14413 openbsd2*) 14414 # C++ shared libraries are fairly broken 14415 ld_shlibs_CXX=no 14416 ;; 14417 openbsd*) 14418 hardcode_direct_CXX=yes 14419 hardcode_shlibpath_var_CXX=no 14420 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14421 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14423 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 14424 export_dynamic_flag_spec_CXX='${wl}-E' 14425 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14426 fi 14427 output_verbose_link_cmd='echo' 14428 ;; 14429 osf3*) 14430 case $cc_basename in 14431 KCC*) 14432 # Kuck and Associates, Inc. (KAI) C++ Compiler 14433 14434 # KCC will only create a shared library if the output file 14435 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14436 # to its proper name (with version) after linking. 14437 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' 14438 14439 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14440 hardcode_libdir_separator_CXX=: 14441 14442 # Archives containing C++ object files must be created using 14443 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14444 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14445 14446 ;; 14447 RCC*) 14448 # Rational C++ 2.4.1 14449 # FIXME: insert proper C++ library support 14450 ld_shlibs_CXX=no 14451 ;; 14452 cxx*) 14453 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14454 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' 14455 14456 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14457 hardcode_libdir_separator_CXX=: 14458 14459 # Commands to make compiler produce verbose output that lists 14460 # what "hidden" libraries, object files and flags are used when 14461 # linking a shared library. 14462 # 14463 # There doesn't appear to be a way to prevent this compiler from 14464 # explicitly linking system object files so we need to strip them 14465 # from the output so that they don't get included in the library 14466 # dependencies. 14467 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' 14468 ;; 14469 *) 14470 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14471 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14472 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' 14473 14474 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14475 hardcode_libdir_separator_CXX=: 14476 14477 # Commands to make compiler produce verbose output that lists 14478 # what "hidden" libraries, object files and flags are used when 14479 # linking a shared library. 14480 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 14481 14482 else 14483 # FIXME: insert proper C++ library support 14484 ld_shlibs_CXX=no 14485 fi 14486 ;; 14487 esac 14488 ;; 14489 osf4* | osf5*) 14490 case $cc_basename in 14491 KCC*) 14492 # Kuck and Associates, Inc. (KAI) C++ Compiler 14493 14494 # KCC will only create a shared library if the output file 14495 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14496 # to its proper name (with version) after linking. 14497 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' 14498 14499 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14500 hardcode_libdir_separator_CXX=: 14501 14502 # Archives containing C++ object files must be created using 14503 # the KAI C++ compiler. 14504 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 14505 ;; 14506 RCC*) 14507 # Rational C++ 2.4.1 14508 # FIXME: insert proper C++ library support 14509 ld_shlibs_CXX=no 14510 ;; 14511 cxx*) 14512 allow_undefined_flag_CXX=' -expect_unresolved \*' 14513 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' 14514 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14515 echo "-hidden">> $lib.exp~ 14516 $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~ 14517 $rm $lib.exp' 14518 14519 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14520 hardcode_libdir_separator_CXX=: 14521 14522 # Commands to make compiler produce verbose output that lists 14523 # what "hidden" libraries, object files and flags are used when 14524 # linking a shared library. 14525 # 14526 # There doesn't appear to be a way to prevent this compiler from 14527 # explicitly linking system object files so we need to strip them 14528 # from the output so that they don't get included in the library 14529 # dependencies. 14530 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' 14531 ;; 14532 *) 14533 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14534 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14535 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' 14536 14537 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14538 hardcode_libdir_separator_CXX=: 14539 14540 # Commands to make compiler produce verbose output that lists 14541 # what "hidden" libraries, object files and flags are used when 14542 # linking a shared library. 14543 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 14544 14545 else 14546 # FIXME: insert proper C++ library support 14547 ld_shlibs_CXX=no 14548 fi 14549 ;; 14550 esac 14551 ;; 14552 psos*) 14553 # FIXME: insert proper C++ library support 14554 ld_shlibs_CXX=no 14555 ;; 14556 sunos4*) 14557 case $cc_basename in 14558 CC*) 14559 # Sun C++ 4.x 14560 # FIXME: insert proper C++ library support 14561 ld_shlibs_CXX=no 14562 ;; 14563 lcc*) 14564 # Lucid 14565 # FIXME: insert proper C++ library support 14566 ld_shlibs_CXX=no 14567 ;; 14568 *) 14569 # FIXME: insert proper C++ library support 14570 ld_shlibs_CXX=no 14571 ;; 14572 esac 14573 ;; 14574 solaris*) 14575 case $cc_basename in 14576 CC*) 14577 # Sun C++ 4.2, 5.x and Centerline C++ 14578 archive_cmds_need_lc_CXX=yes 14579 no_undefined_flag_CXX=' -zdefs' 14580 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14581 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14582 $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' 14583 14584 hardcode_libdir_flag_spec_CXX='-R$libdir' 14585 hardcode_shlibpath_var_CXX=no 14586 case $host_os in 14587 solaris2.[0-5] | solaris2.[0-5].*) ;; 14588 *) 14589 # The C++ compiler is used as linker so we must use $wl 14590 # flag to pass the commands to the underlying system 14591 # linker. We must also pass each convience library through 14592 # to the system linker between allextract/defaultextract. 14593 # The C++ compiler will combine linker options so we 14594 # cannot just pass the convience library names through 14595 # without $wl. 14596 # Supported since Solaris 2.6 (maybe 2.5.1?) 14597 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 14598 ;; 14599 esac 14600 link_all_deplibs_CXX=yes 14601 14602 output_verbose_link_cmd='echo' 14603 14604 # Archives containing C++ object files must be created using 14605 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14606 # necessary to make sure instantiated templates are included 14607 # in the archive. 14608 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14609 ;; 14610 gcx*) 14611 # Green Hills C++ Compiler 14612 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14613 14614 # The C++ compiler must be used to create the archive. 14615 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14616 ;; 14617 *) 14618 # GNU C++ compiler with Solaris linker 14619 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14620 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 14621 if $CC --version | grep -v '^2\.7' > /dev/null; then 14622 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14623 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14624 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 14625 14626 # Commands to make compiler produce verbose output that lists 14627 # what "hidden" libraries, object files and flags are used when 14628 # linking a shared library. 14629 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 14630 else 14631 # g++ 2.7 appears to require `-G' NOT `-shared' on this 14632 # platform. 14633 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14634 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14635 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 14636 14637 # Commands to make compiler produce verbose output that lists 14638 # what "hidden" libraries, object files and flags are used when 14639 # linking a shared library. 14640 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 14641 fi 14642 14643 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 14644 fi 14645 ;; 14646 esac 14647 ;; 14648 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14649 no_undefined_flag_CXX='${wl}-z,text' 14650 archive_cmds_need_lc_CXX=no 14651 hardcode_shlibpath_var_CXX=no 14652 runpath_var='LD_RUN_PATH' 14653 14654 case $cc_basename in 14655 CC*) 14656 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14657 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14658 ;; 14659 *) 14660 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14661 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14662 ;; 14663 esac 14664 ;; 14665 sysv5* | sco3.2v5* | sco5v6*) 14666 # Note: We can NOT use -z defs as we might desire, because we do not 14667 # link with -lc, and that would cause any symbols used from libc to 14668 # always be unresolved, which means just about no library would 14669 # ever link correctly. If we're not using GNU ld we use -z text 14670 # though, which does catch some bad symbols but isn't as heavy-handed 14671 # as -z defs. 14672 # For security reasons, it is highly recommended that you always 14673 # use absolute paths for naming shared libraries, and exclude the 14674 # DT_RUNPATH tag from executables and libraries. But doing so 14675 # requires that you compile everything twice, which is a pain. 14676 # So that behaviour is only enabled if SCOABSPATH is set to a 14677 # non-empty value in the environment. Most likely only useful for 14678 # creating official distributions of packages. 14679 # This is a hack until libtool officially supports absolute path 14680 # names for shared libraries. 14681 no_undefined_flag_CXX='${wl}-z,text' 14682 allow_undefined_flag_CXX='${wl}-z,nodefs' 14683 archive_cmds_need_lc_CXX=no 14684 hardcode_shlibpath_var_CXX=no 14685 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 14686 hardcode_libdir_separator_CXX=':' 14687 link_all_deplibs_CXX=yes 14688 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14689 runpath_var='LD_RUN_PATH' 14690 14691 case $cc_basename in 14692 CC*) 14693 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14694 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14695 ;; 14696 *) 14697 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14698 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 14699 ;; 14700 esac 14701 ;; 14702 tandem*) 14703 case $cc_basename in 14704 NCC*) 14705 # NonStop-UX NCC 3.20 14706 # FIXME: insert proper C++ library support 14707 ld_shlibs_CXX=no 14708 ;; 14709 *) 14710 # FIXME: insert proper C++ library support 14711 ld_shlibs_CXX=no 14712 ;; 14713 esac 14714 ;; 14715 vxworks*) 14716 # FIXME: insert proper C++ library support 14717 ld_shlibs_CXX=no 14718 ;; 14719 *) 14720 # FIXME: insert proper C++ library support 14721 ld_shlibs_CXX=no 14722 ;; 14723esac 14724{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 14725echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 14726test "$ld_shlibs_CXX" = no && can_build_shared=no 14727 14728GCC_CXX="$GXX" 14729LD_CXX="$LD" 14730 14731 14732cat > conftest.$ac_ext <<EOF 14733class Foo 14734{ 14735public: 14736 Foo (void) { a = 0; } 14737private: 14738 int a; 14739}; 14740EOF 14741 14742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14743 (eval $ac_compile) 2>&5 14744 ac_status=$? 14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14746 (exit $ac_status); }; then 14747 # Parse the compiler output and extract the necessary 14748 # objects, libraries and library flags. 14749 14750 # Sentinel used to keep track of whether or not we are before 14751 # the conftest object file. 14752 pre_test_object_deps_done=no 14753 14754 # The `*' in the case matches for architectures that use `case' in 14755 # $output_verbose_cmd can trigger glob expansion during the loop 14756 # eval without this substitution. 14757 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 14758 14759 for p in `eval $output_verbose_link_cmd`; do 14760 case $p in 14761 14762 -L* | -R* | -l*) 14763 # Some compilers place space between "-{L,R}" and the path. 14764 # Remove the space. 14765 if test $p = "-L" \ 14766 || test $p = "-R"; then 14767 prev=$p 14768 continue 14769 else 14770 prev= 14771 fi 14772 14773 if test "$pre_test_object_deps_done" = no; then 14774 case $p in 14775 -L* | -R*) 14776 # Internal compiler library paths should come after those 14777 # provided the user. The postdeps already come after the 14778 # user supplied libs so there is no need to process them. 14779 if test -z "$compiler_lib_search_path_CXX"; then 14780 compiler_lib_search_path_CXX="${prev}${p}" 14781 else 14782 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14783 fi 14784 ;; 14785 # The "-l" case would never come before the object being 14786 # linked, so don't bother handling this case. 14787 esac 14788 else 14789 if test -z "$postdeps_CXX"; then 14790 postdeps_CXX="${prev}${p}" 14791 else 14792 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14793 fi 14794 fi 14795 ;; 14796 14797 *.$objext) 14798 # This assumes that the test object file only shows up 14799 # once in the compiler output. 14800 if test "$p" = "conftest.$objext"; then 14801 pre_test_object_deps_done=yes 14802 continue 14803 fi 14804 14805 if test "$pre_test_object_deps_done" = no; then 14806 if test -z "$predep_objects_CXX"; then 14807 predep_objects_CXX="$p" 14808 else 14809 predep_objects_CXX="$predep_objects_CXX $p" 14810 fi 14811 else 14812 if test -z "$postdep_objects_CXX"; then 14813 postdep_objects_CXX="$p" 14814 else 14815 postdep_objects_CXX="$postdep_objects_CXX $p" 14816 fi 14817 fi 14818 ;; 14819 14820 *) ;; # Ignore the rest. 14821 14822 esac 14823 done 14824 14825 # Clean up. 14826 rm -f a.out a.exe 14827else 14828 echo "libtool.m4: error: problem compiling CXX test program" 14829fi 14830 14831$rm -f confest.$objext 14832 14833# PORTME: override above test on systems where it is broken 14834case $host_os in 14835interix3*) 14836 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14837 # hack all around it, let's just trust "g++" to DTRT. 14838 predep_objects_CXX= 14839 postdep_objects_CXX= 14840 postdeps_CXX= 14841 ;; 14842 14843solaris*) 14844 case $cc_basename in 14845 CC*) 14846 # Adding this requires a known-good setup of shared libraries for 14847 # Sun compiler versions before 5.6, else PIC objects from an old 14848 # archive will be linked into the output, leading to subtle bugs. 14849 postdeps_CXX='-lCstd -lCrun' 14850 ;; 14851 esac 14852 ;; 14853esac 14854 14855 14856case " $postdeps_CXX " in 14857*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14858esac 14859 14860lt_prog_compiler_wl_CXX= 14861lt_prog_compiler_pic_CXX= 14862lt_prog_compiler_static_CXX= 14863 14864{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14865echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14866 14867 # C++ specific cases for pic, static, wl, etc. 14868 if test "$GXX" = yes; then 14869 lt_prog_compiler_wl_CXX='-Wl,' 14870 lt_prog_compiler_static_CXX='-static' 14871 14872 case $host_os in 14873 aix*) 14874 # All AIX code is PIC. 14875 if test "$host_cpu" = ia64; then 14876 # AIX 5 now supports IA64 processor 14877 lt_prog_compiler_static_CXX='-Bstatic' 14878 fi 14879 ;; 14880 amigaos*) 14881 # FIXME: we need at least 68020 code to build shared libraries, but 14882 # adding the `-m68020' flag to GCC prevents building anything better, 14883 # like `-m68040'. 14884 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14885 ;; 14886 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14887 # PIC is the default for these OSes. 14888 ;; 14889 mingw* | os2* | pw32*) 14890 # This hack is so that the source file can tell whether it is being 14891 # built for inclusion in a dll (and should export symbols for example). 14892 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14893 ;; 14894 darwin* | rhapsody*) 14895 # PIC is the default on this platform 14896 # Common symbols not allowed in MH_DYLIB files 14897 lt_prog_compiler_pic_CXX='-fno-common' 14898 ;; 14899 *djgpp*) 14900 # DJGPP does not support shared libraries at all 14901 lt_prog_compiler_pic_CXX= 14902 ;; 14903 interix3*) 14904 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14905 # Instead, we relocate shared libraries at runtime. 14906 ;; 14907 sysv4*MP*) 14908 if test -d /usr/nec; then 14909 lt_prog_compiler_pic_CXX=-Kconform_pic 14910 fi 14911 ;; 14912 hpux*) 14913 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14914 # not for PA HP-UX. 14915 case $host_cpu in 14916 hppa*64*|ia64*) 14917 ;; 14918 *) 14919 lt_prog_compiler_pic_CXX='-fPIC' 14920 ;; 14921 esac 14922 ;; 14923 *) 14924 lt_prog_compiler_pic_CXX='-fPIC' 14925 ;; 14926 esac 14927 else 14928 case $host_os in 14929 aix4* | aix5*) 14930 # All AIX code is PIC. 14931 if test "$host_cpu" = ia64; then 14932 # AIX 5 now supports IA64 processor 14933 lt_prog_compiler_static_CXX='-Bstatic' 14934 else 14935 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14936 fi 14937 ;; 14938 chorus*) 14939 case $cc_basename in 14940 cxch68*) 14941 # Green Hills C++ Compiler 14942 # _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" 14943 ;; 14944 esac 14945 ;; 14946 darwin*) 14947 # PIC is the default on this platform 14948 # Common symbols not allowed in MH_DYLIB files 14949 case $cc_basename in 14950 xlc*) 14951 lt_prog_compiler_pic_CXX='-qnocommon' 14952 lt_prog_compiler_wl_CXX='-Wl,' 14953 ;; 14954 esac 14955 ;; 14956 dgux*) 14957 case $cc_basename in 14958 ec++*) 14959 lt_prog_compiler_pic_CXX='-KPIC' 14960 ;; 14961 ghcx*) 14962 # Green Hills C++ Compiler 14963 lt_prog_compiler_pic_CXX='-pic' 14964 ;; 14965 *) 14966 ;; 14967 esac 14968 ;; 14969 freebsd* | dragonfly*) 14970 # FreeBSD uses GNU C++ 14971 ;; 14972 hpux9* | hpux10* | hpux11*) 14973 case $cc_basename in 14974 CC*) 14975 lt_prog_compiler_wl_CXX='-Wl,' 14976 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14977 if test "$host_cpu" != ia64; then 14978 lt_prog_compiler_pic_CXX='+Z' 14979 fi 14980 ;; 14981 aCC*) 14982 lt_prog_compiler_wl_CXX='-Wl,' 14983 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14984 case $host_cpu in 14985 hppa*64*|ia64*) 14986 # +Z the default 14987 ;; 14988 *) 14989 lt_prog_compiler_pic_CXX='+Z' 14990 ;; 14991 esac 14992 ;; 14993 *) 14994 ;; 14995 esac 14996 ;; 14997 interix*) 14998 # This is c89, which is MS Visual C++ (no shared libs) 14999 # Anyone wants to do a port? 15000 ;; 15001 irix5* | irix6* | nonstopux*) 15002 case $cc_basename in 15003 CC*) 15004 lt_prog_compiler_wl_CXX='-Wl,' 15005 lt_prog_compiler_static_CXX='-non_shared' 15006 # CC pic flag -KPIC is the default. 15007 ;; 15008 *) 15009 ;; 15010 esac 15011 ;; 15012 linux* | k*bsd*-gnu) 15013 case $cc_basename in 15014 KCC*) 15015 # KAI C++ Compiler 15016 lt_prog_compiler_wl_CXX='--backend -Wl,' 15017 lt_prog_compiler_pic_CXX='-fPIC' 15018 ;; 15019 icpc* | ecpc*) 15020 # Intel C++ 15021 lt_prog_compiler_wl_CXX='-Wl,' 15022 lt_prog_compiler_pic_CXX='-KPIC' 15023 lt_prog_compiler_static_CXX='-static' 15024 ;; 15025 pgCC*) 15026 # Portland Group C++ compiler. 15027 lt_prog_compiler_wl_CXX='-Wl,' 15028 lt_prog_compiler_pic_CXX='-fpic' 15029 lt_prog_compiler_static_CXX='-Bstatic' 15030 ;; 15031 cxx*) 15032 # Compaq C++ 15033 # Make sure the PIC flag is empty. It appears that all Alpha 15034 # Linux and Compaq Tru64 Unix objects are PIC. 15035 lt_prog_compiler_pic_CXX= 15036 lt_prog_compiler_static_CXX='-non_shared' 15037 ;; 15038 *) 15039 ;; 15040 esac 15041 ;; 15042 lynxos*) 15043 ;; 15044 m88k*) 15045 ;; 15046 mvs*) 15047 case $cc_basename in 15048 cxx*) 15049 lt_prog_compiler_pic_CXX='-W c,exportall' 15050 ;; 15051 *) 15052 ;; 15053 esac 15054 ;; 15055 netbsd* | netbsdelf*-gnu) 15056 ;; 15057 osf3* | osf4* | osf5*) 15058 case $cc_basename in 15059 KCC*) 15060 lt_prog_compiler_wl_CXX='--backend -Wl,' 15061 ;; 15062 RCC*) 15063 # Rational C++ 2.4.1 15064 lt_prog_compiler_pic_CXX='-pic' 15065 ;; 15066 cxx*) 15067 # Digital/Compaq C++ 15068 lt_prog_compiler_wl_CXX='-Wl,' 15069 # Make sure the PIC flag is empty. It appears that all Alpha 15070 # Linux and Compaq Tru64 Unix objects are PIC. 15071 lt_prog_compiler_pic_CXX= 15072 lt_prog_compiler_static_CXX='-non_shared' 15073 ;; 15074 *) 15075 ;; 15076 esac 15077 ;; 15078 psos*) 15079 ;; 15080 solaris*) 15081 case $cc_basename in 15082 CC*) 15083 # Sun C++ 4.2, 5.x and Centerline C++ 15084 lt_prog_compiler_pic_CXX='-KPIC' 15085 lt_prog_compiler_static_CXX='-Bstatic' 15086 lt_prog_compiler_wl_CXX='-Qoption ld ' 15087 ;; 15088 gcx*) 15089 # Green Hills C++ Compiler 15090 lt_prog_compiler_pic_CXX='-PIC' 15091 ;; 15092 *) 15093 ;; 15094 esac 15095 ;; 15096 sunos4*) 15097 case $cc_basename in 15098 CC*) 15099 # Sun C++ 4.x 15100 lt_prog_compiler_pic_CXX='-pic' 15101 lt_prog_compiler_static_CXX='-Bstatic' 15102 ;; 15103 lcc*) 15104 # Lucid 15105 lt_prog_compiler_pic_CXX='-pic' 15106 ;; 15107 *) 15108 ;; 15109 esac 15110 ;; 15111 tandem*) 15112 case $cc_basename in 15113 NCC*) 15114 # NonStop-UX NCC 3.20 15115 lt_prog_compiler_pic_CXX='-KPIC' 15116 ;; 15117 *) 15118 ;; 15119 esac 15120 ;; 15121 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15122 case $cc_basename in 15123 CC*) 15124 lt_prog_compiler_wl_CXX='-Wl,' 15125 lt_prog_compiler_pic_CXX='-KPIC' 15126 lt_prog_compiler_static_CXX='-Bstatic' 15127 ;; 15128 esac 15129 ;; 15130 vxworks*) 15131 ;; 15132 *) 15133 lt_prog_compiler_can_build_shared_CXX=no 15134 ;; 15135 esac 15136 fi 15137 15138{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 15139echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 15140 15141# 15142# Check to make sure the PIC flag actually works. 15143# 15144if test -n "$lt_prog_compiler_pic_CXX"; then 15145 15146{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15147echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 15148if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 15149 echo $ECHO_N "(cached) $ECHO_C" >&6 15150else 15151 lt_prog_compiler_pic_works_CXX=no 15152 ac_outfile=conftest.$ac_objext 15153 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15154 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 15155 # Insert the option either (1) after the last *FLAGS variable, or 15156 # (2) before a word containing "conftest.", or (3) at the end. 15157 # Note that $ac_compile itself does not contain backslashes and begins 15158 # with a dollar sign (not a hyphen), so the echo should work correctly. 15159 # The option is referenced via a variable to avoid confusing sed. 15160 lt_compile=`echo "$ac_compile" | $SED \ 15161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15163 -e 's:$: $lt_compiler_flag:'` 15164 (eval echo "\"\$as_me:15164: $lt_compile\"" >&5) 15165 (eval "$lt_compile" 2>conftest.err) 15166 ac_status=$? 15167 cat conftest.err >&5 15168 echo "$as_me:15168: \$? = $ac_status" >&5 15169 if (exit $ac_status) && test -s "$ac_outfile"; then 15170 # The compiler can only warn and ignore the option if not recognized 15171 # So say no if there are warnings other than the usual output. 15172 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15175 lt_prog_compiler_pic_works_CXX=yes 15176 fi 15177 fi 15178 $rm conftest* 15179 15180fi 15181{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 15182echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 15183 15184if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 15185 case $lt_prog_compiler_pic_CXX in 15186 "" | " "*) ;; 15187 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15188 esac 15189else 15190 lt_prog_compiler_pic_CXX= 15191 lt_prog_compiler_can_build_shared_CXX=no 15192fi 15193 15194fi 15195case $host_os in 15196 # For platforms which do not support PIC, -DPIC is meaningless: 15197 *djgpp*) 15198 lt_prog_compiler_pic_CXX= 15199 ;; 15200 *) 15201 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15202 ;; 15203esac 15204 15205# 15206# Check to make sure the static flag actually works. 15207# 15208wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15209{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15210echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 15211if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 15212 echo $ECHO_N "(cached) $ECHO_C" >&6 15213else 15214 lt_prog_compiler_static_works_CXX=no 15215 save_LDFLAGS="$LDFLAGS" 15216 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15217 printf "$lt_simple_link_test_code" > conftest.$ac_ext 15218 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15219 # The linker can only warn and ignore the option if not recognized 15220 # So say no if there are warnings 15221 if test -s conftest.err; then 15222 # Append any errors to the config.log. 15223 cat conftest.err 1>&5 15224 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15226 if diff conftest.exp conftest.er2 >/dev/null; then 15227 lt_prog_compiler_static_works_CXX=yes 15228 fi 15229 else 15230 lt_prog_compiler_static_works_CXX=yes 15231 fi 15232 fi 15233 $rm conftest* 15234 LDFLAGS="$save_LDFLAGS" 15235 15236fi 15237{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 15238echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 15239 15240if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 15241 : 15242else 15243 lt_prog_compiler_static_CXX= 15244fi 15245 15246 15247{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15248echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 15249if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 15250 echo $ECHO_N "(cached) $ECHO_C" >&6 15251else 15252 lt_cv_prog_compiler_c_o_CXX=no 15253 $rm -r conftest 2>/dev/null 15254 mkdir conftest 15255 cd conftest 15256 mkdir out 15257 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15258 15259 lt_compiler_flag="-o out/conftest2.$ac_objext" 15260 # Insert the option either (1) after the last *FLAGS variable, or 15261 # (2) before a word containing "conftest.", or (3) at the end. 15262 # Note that $ac_compile itself does not contain backslashes and begins 15263 # with a dollar sign (not a hyphen), so the echo should work correctly. 15264 lt_compile=`echo "$ac_compile" | $SED \ 15265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15267 -e 's:$: $lt_compiler_flag:'` 15268 (eval echo "\"\$as_me:15268: $lt_compile\"" >&5) 15269 (eval "$lt_compile" 2>out/conftest.err) 15270 ac_status=$? 15271 cat out/conftest.err >&5 15272 echo "$as_me:15272: \$? = $ac_status" >&5 15273 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15274 then 15275 # The compiler can only warn and ignore the option if not recognized 15276 # So say no if there are warnings 15277 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15278 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15279 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15280 lt_cv_prog_compiler_c_o_CXX=yes 15281 fi 15282 fi 15283 chmod u+w . 2>&5 15284 $rm conftest* 15285 # SGI C++ compiler will create directory out/ii_files/ for 15286 # template instantiation 15287 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15288 $rm out/* && rmdir out 15289 cd .. 15290 rmdir conftest 15291 $rm conftest* 15292 15293fi 15294{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15295echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 15296 15297 15298hard_links="nottested" 15299if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 15300 # do not overwrite the value of need_locks provided by the user 15301 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15302echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 15303 hard_links=yes 15304 $rm conftest* 15305 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15306 touch conftest.a 15307 ln conftest.a conftest.b 2>&5 || hard_links=no 15308 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15309 { echo "$as_me:$LINENO: result: $hard_links" >&5 15310echo "${ECHO_T}$hard_links" >&6; } 15311 if test "$hard_links" = no; then 15312 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15313echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15314 need_locks=warn 15315 fi 15316else 15317 need_locks=no 15318fi 15319 15320{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15321echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 15322 15323 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15324 case $host_os in 15325 aix4* | aix5*) 15326 # If we're using GNU nm, then we don't want the "-C" option. 15327 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15328 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15329 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' 15330 else 15331 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' 15332 fi 15333 ;; 15334 pw32*) 15335 export_symbols_cmds_CXX="$ltdll_cmds" 15336 ;; 15337 cygwin* | mingw*) 15338 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' 15339 ;; 15340 linux* | k*bsd*-gnu) 15341 link_all_deplibs_CXX=no 15342 ;; 15343 *) 15344 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15345 ;; 15346 esac 15347 15348{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 15349echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 15350test "$ld_shlibs_CXX" = no && can_build_shared=no 15351 15352# 15353# Do we need to explicitly link libc? 15354# 15355case "x$archive_cmds_need_lc_CXX" in 15356x|xyes) 15357 # Assume -lc should be added 15358 archive_cmds_need_lc_CXX=yes 15359 15360 if test "$enable_shared" = yes && test "$GCC" = yes; then 15361 case $archive_cmds_CXX in 15362 *'~'*) 15363 # FIXME: we may have to deal with multi-command sequences. 15364 ;; 15365 '$CC '*) 15366 # Test whether the compiler implicitly links with -lc since on some 15367 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15368 # to ld, don't add -lc before -lgcc. 15369 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15370echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15371 $rm conftest* 15372 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15373 15374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15375 (eval $ac_compile) 2>&5 15376 ac_status=$? 15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15378 (exit $ac_status); } 2>conftest.err; then 15379 soname=conftest 15380 lib=conftest 15381 libobjs=conftest.$ac_objext 15382 deplibs= 15383 wl=$lt_prog_compiler_wl_CXX 15384 pic_flag=$lt_prog_compiler_pic_CXX 15385 compiler_flags=-v 15386 linker_flags=-v 15387 verstring= 15388 output_objdir=. 15389 libname=conftest 15390 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15391 allow_undefined_flag_CXX= 15392 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15393 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15394 ac_status=$? 15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15396 (exit $ac_status); } 15397 then 15398 archive_cmds_need_lc_CXX=no 15399 else 15400 archive_cmds_need_lc_CXX=yes 15401 fi 15402 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15403 else 15404 cat conftest.err 1>&5 15405 fi 15406 $rm conftest* 15407 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 15408echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 15409 ;; 15410 esac 15411 fi 15412 ;; 15413esac 15414 15415{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15416echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15417library_names_spec= 15418libname_spec='lib$name' 15419soname_spec= 15420shrext_cmds=".so" 15421postinstall_cmds= 15422postuninstall_cmds= 15423finish_cmds= 15424finish_eval= 15425shlibpath_var= 15426shlibpath_overrides_runpath=unknown 15427version_type=none 15428dynamic_linker="$host_os ld.so" 15429sys_lib_dlsearch_path_spec="/lib /usr/lib" 15430if test "$GCC" = yes; then 15431 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15432 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15433 # if the path contains ";" then we assume it to be the separator 15434 # otherwise default to the standard path separator (i.e. ":") - it is 15435 # assumed that no part of a normal pathname contains ";" but that should 15436 # okay in the real world where ";" in dirpaths is itself problematic. 15437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15438 else 15439 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15440 fi 15441else 15442 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15443fi 15444need_lib_prefix=unknown 15445hardcode_into_libs=no 15446 15447# when you set need_version to no, make sure it does not cause -set_version 15448# flags to be left without arguments 15449need_version=unknown 15450 15451case $host_os in 15452aix3*) 15453 version_type=linux 15454 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15455 shlibpath_var=LIBPATH 15456 15457 # AIX 3 has no versioning support, so we append a major version to the name. 15458 soname_spec='${libname}${release}${shared_ext}$major' 15459 ;; 15460 15461aix4* | aix5*) 15462 version_type=linux 15463 need_lib_prefix=no 15464 need_version=no 15465 hardcode_into_libs=yes 15466 if test "$host_cpu" = ia64; then 15467 # AIX 5 supports IA64 15468 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15469 shlibpath_var=LD_LIBRARY_PATH 15470 else 15471 # With GCC up to 2.95.x, collect2 would create an import file 15472 # for dependence libraries. The import file would start with 15473 # the line `#! .'. This would cause the generated library to 15474 # depend on `.', always an invalid library. This was fixed in 15475 # development snapshots of GCC prior to 3.0. 15476 case $host_os in 15477 aix4 | aix4.[01] | aix4.[01].*) 15478 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15479 echo ' yes ' 15480 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15481 : 15482 else 15483 can_build_shared=no 15484 fi 15485 ;; 15486 esac 15487 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15488 # soname into executable. Probably we can add versioning support to 15489 # collect2, so additional links can be useful in future. 15490 if test "$aix_use_runtimelinking" = yes; then 15491 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15492 # instead of lib<name>.a to let people know that these are not 15493 # typical AIX shared libraries. 15494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15495 else 15496 # We preserve .a as extension for shared libraries through AIX4.2 15497 # and later when we are not doing run time linking. 15498 library_names_spec='${libname}${release}.a $libname.a' 15499 soname_spec='${libname}${release}${shared_ext}$major' 15500 fi 15501 shlibpath_var=LIBPATH 15502 fi 15503 ;; 15504 15505amigaos*) 15506 library_names_spec='$libname.ixlibrary $libname.a' 15507 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15508 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' 15509 ;; 15510 15511beos*) 15512 library_names_spec='${libname}${shared_ext}' 15513 dynamic_linker="$host_os ld.so" 15514 shlibpath_var=LIBRARY_PATH 15515 ;; 15516 15517bsdi[45]*) 15518 version_type=linux 15519 need_version=no 15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15521 soname_spec='${libname}${release}${shared_ext}$major' 15522 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15523 shlibpath_var=LD_LIBRARY_PATH 15524 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15525 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15526 # the default ld.so.conf also contains /usr/contrib/lib and 15527 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15528 # libtool to hard-code these into programs 15529 ;; 15530 15531cygwin* | mingw* | pw32*) 15532 version_type=windows 15533 shrext_cmds=".dll" 15534 need_version=no 15535 need_lib_prefix=no 15536 15537 case $GCC,$host_os in 15538 yes,cygwin* | yes,mingw* | yes,pw32*) 15539 library_names_spec='$libname.dll.a' 15540 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15541 postinstall_cmds='base_file=`basename \${file}`~ 15542 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15543 dldir=$destdir/`dirname \$dlpath`~ 15544 test -d \$dldir || mkdir -p \$dldir~ 15545 $install_prog $dir/$dlname \$dldir/$dlname~ 15546 chmod a+x \$dldir/$dlname' 15547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15548 dlpath=$dir/\$dldll~ 15549 $rm \$dlpath' 15550 shlibpath_overrides_runpath=yes 15551 15552 case $host_os in 15553 cygwin*) 15554 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15555 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15556 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15557 ;; 15558 mingw*) 15559 # MinGW DLLs use traditional 'lib' prefix 15560 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15561 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15562 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15563 # It is most probably a Windows format PATH printed by 15564 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15565 # path with ; separators, and with drive letters. We can handle the 15566 # drive letters (cygwin fileutils understands them), so leave them, 15567 # especially as we might pass files found there to a mingw objdump, 15568 # which wouldn't understand a cygwinified path. Ahh. 15569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15570 else 15571 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15572 fi 15573 ;; 15574 pw32*) 15575 # pw32 DLLs use 'pw' prefix rather than 'lib' 15576 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15577 ;; 15578 esac 15579 ;; 15580 15581 *) 15582 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15583 ;; 15584 esac 15585 dynamic_linker='Win32 ld.exe' 15586 # FIXME: first we should search . and the directory the executable is in 15587 shlibpath_var=PATH 15588 ;; 15589 15590darwin* | rhapsody*) 15591 dynamic_linker="$host_os dyld" 15592 version_type=darwin 15593 need_lib_prefix=no 15594 need_version=no 15595 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15596 soname_spec='${libname}${release}${major}$shared_ext' 15597 shlibpath_overrides_runpath=yes 15598 shlibpath_var=DYLD_LIBRARY_PATH 15599 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15600 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15601 if test "$GCC" = yes; then 15602 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15603 else 15604 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15605 fi 15606 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15607 ;; 15608 15609dgux*) 15610 version_type=linux 15611 need_lib_prefix=no 15612 need_version=no 15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15614 soname_spec='${libname}${release}${shared_ext}$major' 15615 shlibpath_var=LD_LIBRARY_PATH 15616 ;; 15617 15618freebsd1*) 15619 dynamic_linker=no 15620 ;; 15621 15622freebsd* | dragonfly*) 15623 # DragonFly does not have aout. When/if they implement a new 15624 # versioning mechanism, adjust this. 15625 if test -x /usr/bin/objformat; then 15626 objformat=`/usr/bin/objformat` 15627 else 15628 case $host_os in 15629 freebsd[123]*) objformat=aout ;; 15630 *) objformat=elf ;; 15631 esac 15632 fi 15633 version_type=freebsd-$objformat 15634 case $version_type in 15635 freebsd-elf*) 15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15637 need_version=no 15638 need_lib_prefix=no 15639 ;; 15640 freebsd-*) 15641 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15642 need_version=yes 15643 ;; 15644 esac 15645 shlibpath_var=LD_LIBRARY_PATH 15646 case $host_os in 15647 freebsd2*) 15648 shlibpath_overrides_runpath=yes 15649 ;; 15650 freebsd3.[01]* | freebsdelf3.[01]*) 15651 shlibpath_overrides_runpath=yes 15652 hardcode_into_libs=yes 15653 ;; 15654 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15655 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15656 shlibpath_overrides_runpath=no 15657 hardcode_into_libs=yes 15658 ;; 15659 freebsd*) # from 4.6 on 15660 shlibpath_overrides_runpath=yes 15661 hardcode_into_libs=yes 15662 ;; 15663 esac 15664 ;; 15665 15666gnu*) 15667 version_type=linux 15668 need_lib_prefix=no 15669 need_version=no 15670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15671 soname_spec='${libname}${release}${shared_ext}$major' 15672 shlibpath_var=LD_LIBRARY_PATH 15673 hardcode_into_libs=yes 15674 ;; 15675 15676hpux9* | hpux10* | hpux11*) 15677 # Give a soname corresponding to the major version so that dld.sl refuses to 15678 # link against other versions. 15679 version_type=sunos 15680 need_lib_prefix=no 15681 need_version=no 15682 case $host_cpu in 15683 ia64*) 15684 shrext_cmds='.so' 15685 hardcode_into_libs=yes 15686 dynamic_linker="$host_os dld.so" 15687 shlibpath_var=LD_LIBRARY_PATH 15688 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15690 soname_spec='${libname}${release}${shared_ext}$major' 15691 if test "X$HPUX_IA64_MODE" = X32; then 15692 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15693 else 15694 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15695 fi 15696 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15697 ;; 15698 hppa*64*) 15699 shrext_cmds='.sl' 15700 hardcode_into_libs=yes 15701 dynamic_linker="$host_os dld.sl" 15702 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15703 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15705 soname_spec='${libname}${release}${shared_ext}$major' 15706 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15707 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15708 ;; 15709 *) 15710 shrext_cmds='.sl' 15711 dynamic_linker="$host_os dld.sl" 15712 shlibpath_var=SHLIB_PATH 15713 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15715 soname_spec='${libname}${release}${shared_ext}$major' 15716 ;; 15717 esac 15718 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15719 postinstall_cmds='chmod 555 $lib' 15720 ;; 15721 15722interix3*) 15723 version_type=linux 15724 need_lib_prefix=no 15725 need_version=no 15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15727 soname_spec='${libname}${release}${shared_ext}$major' 15728 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15729 shlibpath_var=LD_LIBRARY_PATH 15730 shlibpath_overrides_runpath=no 15731 hardcode_into_libs=yes 15732 ;; 15733 15734irix5* | irix6* | nonstopux*) 15735 case $host_os in 15736 nonstopux*) version_type=nonstopux ;; 15737 *) 15738 if test "$lt_cv_prog_gnu_ld" = yes; then 15739 version_type=linux 15740 else 15741 version_type=irix 15742 fi ;; 15743 esac 15744 need_lib_prefix=no 15745 need_version=no 15746 soname_spec='${libname}${release}${shared_ext}$major' 15747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15748 case $host_os in 15749 irix5* | nonstopux*) 15750 libsuff= shlibsuff= 15751 ;; 15752 *) 15753 case $LD in # libtool.m4 will add one of these switches to LD 15754 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15755 libsuff= shlibsuff= libmagic=32-bit;; 15756 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15757 libsuff=32 shlibsuff=N32 libmagic=N32;; 15758 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15759 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15760 *) libsuff= shlibsuff= libmagic=never-match;; 15761 esac 15762 ;; 15763 esac 15764 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15765 shlibpath_overrides_runpath=no 15766 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15767 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15768 hardcode_into_libs=yes 15769 ;; 15770 15771# No shared lib support for Linux oldld, aout, or coff. 15772linux*oldld* | linux*aout* | linux*coff*) 15773 dynamic_linker=no 15774 ;; 15775 15776# This must be Linux ELF. 15777linux* | k*bsd*-gnu) 15778 version_type=linux 15779 need_lib_prefix=no 15780 need_version=no 15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15782 soname_spec='${libname}${release}${shared_ext}$major' 15783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15784 shlibpath_var=LD_LIBRARY_PATH 15785 shlibpath_overrides_runpath=no 15786 # This implies no fast_install, which is unacceptable. 15787 # Some rework will be needed to allow for fast_install 15788 # before this can be enabled. 15789 hardcode_into_libs=yes 15790 15791 # Append ld.so.conf contents to the search path 15792 if test -f /etc/ld.so.conf; then 15793 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15794 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15795 fi 15796 15797 # We used to test for /lib/ld.so.1 and disable shared libraries on 15798 # powerpc, because MkLinux only supported shared libraries with the 15799 # GNU dynamic linker. Since this was broken with cross compilers, 15800 # most powerpc-linux boxes support dynamic linking these days and 15801 # people can always --disable-shared, the test was removed, and we 15802 # assume the GNU/Linux dynamic linker is in use. 15803 dynamic_linker='GNU/Linux ld.so' 15804 ;; 15805 15806netbsdelf*-gnu) 15807 version_type=linux 15808 need_lib_prefix=no 15809 need_version=no 15810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15811 soname_spec='${libname}${release}${shared_ext}$major' 15812 shlibpath_var=LD_LIBRARY_PATH 15813 shlibpath_overrides_runpath=no 15814 hardcode_into_libs=yes 15815 dynamic_linker='NetBSD ld.elf_so' 15816 ;; 15817 15818netbsd*) 15819 version_type=sunos 15820 need_lib_prefix=no 15821 need_version=no 15822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15825 dynamic_linker='NetBSD (a.out) ld.so' 15826 else 15827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15828 soname_spec='${libname}${release}${shared_ext}$major' 15829 dynamic_linker='NetBSD ld.elf_so' 15830 fi 15831 shlibpath_var=LD_LIBRARY_PATH 15832 shlibpath_overrides_runpath=yes 15833 hardcode_into_libs=yes 15834 ;; 15835 15836newsos6) 15837 version_type=linux 15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15839 shlibpath_var=LD_LIBRARY_PATH 15840 shlibpath_overrides_runpath=yes 15841 ;; 15842 15843nto-qnx*) 15844 version_type=linux 15845 need_lib_prefix=no 15846 need_version=no 15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15848 soname_spec='${libname}${release}${shared_ext}$major' 15849 shlibpath_var=LD_LIBRARY_PATH 15850 shlibpath_overrides_runpath=yes 15851 ;; 15852 15853openbsd*) 15854 version_type=sunos 15855 sys_lib_dlsearch_path_spec="/usr/lib" 15856 need_lib_prefix=no 15857 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15858 case $host_os in 15859 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15860 *) need_version=no ;; 15861 esac 15862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15864 shlibpath_var=LD_LIBRARY_PATH 15865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15866 case $host_os in 15867 openbsd2.[89] | openbsd2.[89].*) 15868 shlibpath_overrides_runpath=no 15869 ;; 15870 *) 15871 shlibpath_overrides_runpath=yes 15872 ;; 15873 esac 15874 else 15875 shlibpath_overrides_runpath=yes 15876 fi 15877 ;; 15878 15879os2*) 15880 libname_spec='$name' 15881 shrext_cmds=".dll" 15882 need_lib_prefix=no 15883 library_names_spec='$libname${shared_ext} $libname.a' 15884 dynamic_linker='OS/2 ld.exe' 15885 shlibpath_var=LIBPATH 15886 ;; 15887 15888osf3* | osf4* | osf5*) 15889 version_type=osf 15890 need_lib_prefix=no 15891 need_version=no 15892 soname_spec='${libname}${release}${shared_ext}$major' 15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15894 shlibpath_var=LD_LIBRARY_PATH 15895 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15896 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15897 ;; 15898 15899solaris*) 15900 version_type=linux 15901 need_lib_prefix=no 15902 need_version=no 15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15904 soname_spec='${libname}${release}${shared_ext}$major' 15905 shlibpath_var=LD_LIBRARY_PATH 15906 shlibpath_overrides_runpath=yes 15907 hardcode_into_libs=yes 15908 # ldd complains unless libraries are executable 15909 postinstall_cmds='chmod +x $lib' 15910 ;; 15911 15912sunos4*) 15913 version_type=sunos 15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15916 shlibpath_var=LD_LIBRARY_PATH 15917 shlibpath_overrides_runpath=yes 15918 if test "$with_gnu_ld" = yes; then 15919 need_lib_prefix=no 15920 fi 15921 need_version=yes 15922 ;; 15923 15924sysv4 | sysv4.3*) 15925 version_type=linux 15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15927 soname_spec='${libname}${release}${shared_ext}$major' 15928 shlibpath_var=LD_LIBRARY_PATH 15929 case $host_vendor in 15930 sni) 15931 shlibpath_overrides_runpath=no 15932 need_lib_prefix=no 15933 export_dynamic_flag_spec='${wl}-Blargedynsym' 15934 runpath_var=LD_RUN_PATH 15935 ;; 15936 siemens) 15937 need_lib_prefix=no 15938 ;; 15939 motorola) 15940 need_lib_prefix=no 15941 need_version=no 15942 shlibpath_overrides_runpath=no 15943 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15944 ;; 15945 esac 15946 ;; 15947 15948sysv4*MP*) 15949 if test -d /usr/nec ;then 15950 version_type=linux 15951 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15952 soname_spec='$libname${shared_ext}.$major' 15953 shlibpath_var=LD_LIBRARY_PATH 15954 fi 15955 ;; 15956 15957sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15958 version_type=freebsd-elf 15959 need_lib_prefix=no 15960 need_version=no 15961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15962 soname_spec='${libname}${release}${shared_ext}$major' 15963 shlibpath_var=LD_LIBRARY_PATH 15964 hardcode_into_libs=yes 15965 if test "$with_gnu_ld" = yes; then 15966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15967 shlibpath_overrides_runpath=no 15968 else 15969 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15970 shlibpath_overrides_runpath=yes 15971 case $host_os in 15972 sco3.2v5*) 15973 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15974 ;; 15975 esac 15976 fi 15977 sys_lib_dlsearch_path_spec='/usr/lib' 15978 ;; 15979 15980uts4*) 15981 version_type=linux 15982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15983 soname_spec='${libname}${release}${shared_ext}$major' 15984 shlibpath_var=LD_LIBRARY_PATH 15985 ;; 15986 15987*) 15988 dynamic_linker=no 15989 ;; 15990esac 15991{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15992echo "${ECHO_T}$dynamic_linker" >&6; } 15993test "$dynamic_linker" = no && can_build_shared=no 15994 15995variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15996if test "$GCC" = yes; then 15997 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15998fi 15999 16000{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16001echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16002hardcode_action_CXX= 16003if test -n "$hardcode_libdir_flag_spec_CXX" || \ 16004 test -n "$runpath_var_CXX" || \ 16005 test "X$hardcode_automatic_CXX" = "Xyes" ; then 16006 16007 # We can hardcode non-existant directories. 16008 if test "$hardcode_direct_CXX" != no && 16009 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16010 # have to relink, otherwise we might link with an installed library 16011 # when we should be linking with a yet-to-be-installed one 16012 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 16013 test "$hardcode_minus_L_CXX" != no; then 16014 # Linking always hardcodes the temporary library directory. 16015 hardcode_action_CXX=relink 16016 else 16017 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16018 hardcode_action_CXX=immediate 16019 fi 16020else 16021 # We cannot hardcode anything, or else we can only hardcode existing 16022 # directories. 16023 hardcode_action_CXX=unsupported 16024fi 16025{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 16026echo "${ECHO_T}$hardcode_action_CXX" >&6; } 16027 16028if test "$hardcode_action_CXX" = relink; then 16029 # Fast installation is not supported 16030 enable_fast_install=no 16031elif test "$shlibpath_overrides_runpath" = yes || 16032 test "$enable_shared" = no; then 16033 # Fast installation is not necessary 16034 enable_fast_install=needless 16035fi 16036 16037 16038# The else clause should only fire when bootstrapping the 16039# libtool distribution, otherwise you forgot to ship ltmain.sh 16040# with your package, and you will get complaints that there are 16041# no rules to generate ltmain.sh. 16042if test -f "$ltmain"; then 16043 # See if we are running on zsh, and set the options which allow our commands through 16044 # without removal of \ escapes. 16045 if test -n "${ZSH_VERSION+set}" ; then 16046 setopt NO_GLOB_SUBST 16047 fi 16048 # Now quote all the things that may contain metacharacters while being 16049 # careful not to overquote the AC_SUBSTed values. We take copies of the 16050 # variables and quote the copies for generation of the libtool script. 16051 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16052 SED SHELL STRIP \ 16053 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16054 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16055 deplibs_check_method reload_flag reload_cmds need_locks \ 16056 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16057 lt_cv_sys_global_symbol_to_c_name_address \ 16058 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16059 old_postinstall_cmds old_postuninstall_cmds \ 16060 compiler_CXX \ 16061 CC_CXX \ 16062 LD_CXX \ 16063 lt_prog_compiler_wl_CXX \ 16064 lt_prog_compiler_pic_CXX \ 16065 lt_prog_compiler_static_CXX \ 16066 lt_prog_compiler_no_builtin_flag_CXX \ 16067 export_dynamic_flag_spec_CXX \ 16068 thread_safe_flag_spec_CXX \ 16069 whole_archive_flag_spec_CXX \ 16070 enable_shared_with_static_runtimes_CXX \ 16071 old_archive_cmds_CXX \ 16072 old_archive_from_new_cmds_CXX \ 16073 predep_objects_CXX \ 16074 postdep_objects_CXX \ 16075 predeps_CXX \ 16076 postdeps_CXX \ 16077 compiler_lib_search_path_CXX \ 16078 archive_cmds_CXX \ 16079 archive_expsym_cmds_CXX \ 16080 postinstall_cmds_CXX \ 16081 postuninstall_cmds_CXX \ 16082 old_archive_from_expsyms_cmds_CXX \ 16083 allow_undefined_flag_CXX \ 16084 no_undefined_flag_CXX \ 16085 export_symbols_cmds_CXX \ 16086 hardcode_libdir_flag_spec_CXX \ 16087 hardcode_libdir_flag_spec_ld_CXX \ 16088 hardcode_libdir_separator_CXX \ 16089 hardcode_automatic_CXX \ 16090 module_cmds_CXX \ 16091 module_expsym_cmds_CXX \ 16092 lt_cv_prog_compiler_c_o_CXX \ 16093 exclude_expsyms_CXX \ 16094 include_expsyms_CXX; do 16095 16096 case $var in 16097 old_archive_cmds_CXX | \ 16098 old_archive_from_new_cmds_CXX | \ 16099 archive_cmds_CXX | \ 16100 archive_expsym_cmds_CXX | \ 16101 module_cmds_CXX | \ 16102 module_expsym_cmds_CXX | \ 16103 old_archive_from_expsyms_cmds_CXX | \ 16104 export_symbols_cmds_CXX | \ 16105 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16106 postinstall_cmds | postuninstall_cmds | \ 16107 old_postinstall_cmds | old_postuninstall_cmds | \ 16108 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16109 # Double-quote double-evaled strings. 16110 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16111 ;; 16112 *) 16113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16114 ;; 16115 esac 16116 done 16117 16118 case $lt_echo in 16119 *'\$0 --fallback-echo"') 16120 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16121 ;; 16122 esac 16123 16124cfgfile="$ofile" 16125 16126 cat <<__EOF__ >> "$cfgfile" 16127# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16128 16129# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16130 16131# Shell to use when invoking shell scripts. 16132SHELL=$lt_SHELL 16133 16134# Whether or not to build shared libraries. 16135build_libtool_libs=$enable_shared 16136 16137# Whether or not to build static libraries. 16138build_old_libs=$enable_static 16139 16140# Whether or not to add -lc for building shared libraries. 16141build_libtool_need_lc=$archive_cmds_need_lc_CXX 16142 16143# Whether or not to disallow shared libs when runtime libs are static 16144allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 16145 16146# Whether or not to optimize for fast installation. 16147fast_install=$enable_fast_install 16148 16149# The host system. 16150host_alias=$host_alias 16151host=$host 16152host_os=$host_os 16153 16154# The build system. 16155build_alias=$build_alias 16156build=$build 16157build_os=$build_os 16158 16159# An echo program that does not interpret backslashes. 16160echo=$lt_echo 16161 16162# The archiver. 16163AR=$lt_AR 16164AR_FLAGS=$lt_AR_FLAGS 16165 16166# A C compiler. 16167LTCC=$lt_LTCC 16168 16169# LTCC compiler flags. 16170LTCFLAGS=$lt_LTCFLAGS 16171 16172# A language-specific compiler. 16173CC=$lt_compiler_CXX 16174 16175# Is the compiler the GNU C compiler? 16176with_gcc=$GCC_CXX 16177 16178# An ERE matcher. 16179EGREP=$lt_EGREP 16180 16181# The linker used to build libraries. 16182LD=$lt_LD_CXX 16183 16184# Whether we need hard or soft links. 16185LN_S=$lt_LN_S 16186 16187# A BSD-compatible nm program. 16188NM=$lt_NM 16189 16190# A symbol stripping program 16191STRIP=$lt_STRIP 16192 16193# Used to examine libraries when file_magic_cmd begins "file" 16194MAGIC_CMD=$MAGIC_CMD 16195 16196# Used on cygwin: DLL creation program. 16197DLLTOOL="$DLLTOOL" 16198 16199# Used on cygwin: object dumper. 16200OBJDUMP="$OBJDUMP" 16201 16202# Used on cygwin: assembler. 16203AS="$AS" 16204 16205# The name of the directory that contains temporary libtool files. 16206objdir=$objdir 16207 16208# How to create reloadable object files. 16209reload_flag=$lt_reload_flag 16210reload_cmds=$lt_reload_cmds 16211 16212# How to pass a linker flag through the compiler. 16213wl=$lt_lt_prog_compiler_wl_CXX 16214 16215# Object file suffix (normally "o"). 16216objext="$ac_objext" 16217 16218# Old archive suffix (normally "a"). 16219libext="$libext" 16220 16221# Shared library suffix (normally ".so"). 16222shrext_cmds='$shrext_cmds' 16223 16224# Executable file suffix (normally ""). 16225exeext="$exeext" 16226 16227# Additional compiler flags for building library objects. 16228pic_flag=$lt_lt_prog_compiler_pic_CXX 16229pic_mode=$pic_mode 16230 16231# What is the maximum length of a command? 16232max_cmd_len=$lt_cv_sys_max_cmd_len 16233 16234# Does compiler simultaneously support -c and -o options? 16235compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 16236 16237# Must we lock files when doing compilation? 16238need_locks=$lt_need_locks 16239 16240# Do we need the lib prefix for modules? 16241need_lib_prefix=$need_lib_prefix 16242 16243# Do we need a version for libraries? 16244need_version=$need_version 16245 16246# Whether dlopen is supported. 16247dlopen_support=$enable_dlopen 16248 16249# Whether dlopen of programs is supported. 16250dlopen_self=$enable_dlopen_self 16251 16252# Whether dlopen of statically linked programs is supported. 16253dlopen_self_static=$enable_dlopen_self_static 16254 16255# Compiler flag to prevent dynamic linking. 16256link_static_flag=$lt_lt_prog_compiler_static_CXX 16257 16258# Compiler flag to turn off builtin functions. 16259no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 16260 16261# Compiler flag to allow reflexive dlopens. 16262export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 16263 16264# Compiler flag to generate shared objects directly from archives. 16265whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 16266 16267# Compiler flag to generate thread-safe objects. 16268thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 16269 16270# Library versioning type. 16271version_type=$version_type 16272 16273# Format of library name prefix. 16274libname_spec=$lt_libname_spec 16275 16276# List of archive names. First name is the real one, the rest are links. 16277# The last name is the one that the linker finds with -lNAME. 16278library_names_spec=$lt_library_names_spec 16279 16280# The coded name of the library, if different from the real name. 16281soname_spec=$lt_soname_spec 16282 16283# Commands used to build and install an old-style archive. 16284RANLIB=$lt_RANLIB 16285old_archive_cmds=$lt_old_archive_cmds_CXX 16286old_postinstall_cmds=$lt_old_postinstall_cmds 16287old_postuninstall_cmds=$lt_old_postuninstall_cmds 16288 16289# Create an old-style archive from a shared archive. 16290old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 16291 16292# Create a temporary old-style archive to link instead of a shared archive. 16293old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 16294 16295# Commands used to build and install a shared archive. 16296archive_cmds=$lt_archive_cmds_CXX 16297archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 16298postinstall_cmds=$lt_postinstall_cmds 16299postuninstall_cmds=$lt_postuninstall_cmds 16300 16301# Commands used to build a loadable module (assumed same as above if empty) 16302module_cmds=$lt_module_cmds_CXX 16303module_expsym_cmds=$lt_module_expsym_cmds_CXX 16304 16305# Commands to strip libraries. 16306old_striplib=$lt_old_striplib 16307striplib=$lt_striplib 16308 16309# Dependencies to place before the objects being linked to create a 16310# shared library. 16311predep_objects=$lt_predep_objects_CXX 16312 16313# Dependencies to place after the objects being linked to create a 16314# shared library. 16315postdep_objects=$lt_postdep_objects_CXX 16316 16317# Dependencies to place before the objects being linked to create a 16318# shared library. 16319predeps=$lt_predeps_CXX 16320 16321# Dependencies to place after the objects being linked to create a 16322# shared library. 16323postdeps=$lt_postdeps_CXX 16324 16325# The library search path used internally by the compiler when linking 16326# a shared library. 16327compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 16328 16329# Method to check whether dependent libraries are shared objects. 16330deplibs_check_method=$lt_deplibs_check_method 16331 16332# Command to use when deplibs_check_method == file_magic. 16333file_magic_cmd=$lt_file_magic_cmd 16334 16335# Flag that allows shared libraries with undefined symbols to be built. 16336allow_undefined_flag=$lt_allow_undefined_flag_CXX 16337 16338# Flag that forces no undefined symbols. 16339no_undefined_flag=$lt_no_undefined_flag_CXX 16340 16341# Commands used to finish a libtool library installation in a directory. 16342finish_cmds=$lt_finish_cmds 16343 16344# Same as above, but a single script fragment to be evaled but not shown. 16345finish_eval=$lt_finish_eval 16346 16347# Take the output of nm and produce a listing of raw symbols and C names. 16348global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16349 16350# Transform the output of nm in a proper C declaration 16351global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16352 16353# Transform the output of nm in a C name address pair 16354global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16355 16356# This is the shared library runtime path variable. 16357runpath_var=$runpath_var 16358 16359# This is the shared library path variable. 16360shlibpath_var=$shlibpath_var 16361 16362# Is shlibpath searched before the hard-coded library search path? 16363shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16364 16365# How to hardcode a shared library path into an executable. 16366hardcode_action=$hardcode_action_CXX 16367 16368# Whether we should hardcode library paths into libraries. 16369hardcode_into_libs=$hardcode_into_libs 16370 16371# Flag to hardcode \$libdir into a binary during linking. 16372# This must work even if \$libdir does not exist. 16373hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 16374 16375# If ld is used when linking, flag to hardcode \$libdir into 16376# a binary during linking. This must work even if \$libdir does 16377# not exist. 16378hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 16379 16380# Whether we need a single -rpath flag with a separated argument. 16381hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 16382 16383# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16384# resulting binary. 16385hardcode_direct=$hardcode_direct_CXX 16386 16387# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16388# resulting binary. 16389hardcode_minus_L=$hardcode_minus_L_CXX 16390 16391# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16392# the resulting binary. 16393hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 16394 16395# Set to yes if building a shared library automatically hardcodes DIR into the library 16396# and all subsequent libraries and executables linked against it. 16397hardcode_automatic=$hardcode_automatic_CXX 16398 16399# Variables whose values should be saved in libtool wrapper scripts and 16400# restored at relink time. 16401variables_saved_for_relink="$variables_saved_for_relink" 16402 16403# Whether libtool must link a program against all its dependency libraries. 16404link_all_deplibs=$link_all_deplibs_CXX 16405 16406# Compile-time system search path for libraries 16407sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16408 16409# Run-time system search path for libraries 16410sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16411 16412# Fix the shell variable \$srcfile for the compiler. 16413fix_srcfile_path="$fix_srcfile_path_CXX" 16414 16415# Set to yes if exported symbols are required. 16416always_export_symbols=$always_export_symbols_CXX 16417 16418# The commands to list exported symbols. 16419export_symbols_cmds=$lt_export_symbols_cmds_CXX 16420 16421# The commands to extract the exported symbol list from a shared archive. 16422extract_expsyms_cmds=$lt_extract_expsyms_cmds 16423 16424# Symbols that should not be listed in the preloaded symbols. 16425exclude_expsyms=$lt_exclude_expsyms_CXX 16426 16427# Symbols that must always be exported. 16428include_expsyms=$lt_include_expsyms_CXX 16429 16430# ### END LIBTOOL TAG CONFIG: $tagname 16431 16432__EOF__ 16433 16434 16435else 16436 # If there is no Makefile yet, we rely on a make rule to execute 16437 # `config.status --recheck' to rerun these tests and create the 16438 # libtool script then. 16439 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16440 if test -f "$ltmain_in"; then 16441 test -f Makefile && make "$ltmain" 16442 fi 16443fi 16444 16445 16446ac_ext=c 16447ac_cpp='$CPP $CPPFLAGS' 16448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16450ac_compiler_gnu=$ac_cv_c_compiler_gnu 16451 16452CC=$lt_save_CC 16453LDCXX=$LD 16454LD=$lt_save_LD 16455GCC=$lt_save_GCC 16456with_gnu_ldcxx=$with_gnu_ld 16457with_gnu_ld=$lt_save_with_gnu_ld 16458lt_cv_path_LDCXX=$lt_cv_path_LD 16459lt_cv_path_LD=$lt_save_path_LD 16460lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16461lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16462 16463 else 16464 tagname="" 16465 fi 16466 ;; 16467 16468 F77) 16469 if test -n "$F77" && test "X$F77" != "Xno"; then 16470 16471ac_ext=f 16472ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 16473ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16474ac_compiler_gnu=$ac_cv_f77_compiler_gnu 16475 16476 16477archive_cmds_need_lc_F77=no 16478allow_undefined_flag_F77= 16479always_export_symbols_F77=no 16480archive_expsym_cmds_F77= 16481export_dynamic_flag_spec_F77= 16482hardcode_direct_F77=no 16483hardcode_libdir_flag_spec_F77= 16484hardcode_libdir_flag_spec_ld_F77= 16485hardcode_libdir_separator_F77= 16486hardcode_minus_L_F77=no 16487hardcode_automatic_F77=no 16488module_cmds_F77= 16489module_expsym_cmds_F77= 16490link_all_deplibs_F77=unknown 16491old_archive_cmds_F77=$old_archive_cmds 16492no_undefined_flag_F77= 16493whole_archive_flag_spec_F77= 16494enable_shared_with_static_runtimes_F77=no 16495 16496# Source file extension for f77 test sources. 16497ac_ext=f 16498 16499# Object file extension for compiled f77 test sources. 16500objext=o 16501objext_F77=$objext 16502 16503# Code to be used in simple compile tests 16504lt_simple_compile_test_code=" subroutine t\n return\n end\n" 16505 16506# Code to be used in simple link tests 16507lt_simple_link_test_code=" program t\n end\n" 16508 16509# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16510 16511# If no C compiler was specified, use CC. 16512LTCC=${LTCC-"$CC"} 16513 16514# If no C compiler flags were specified, use CFLAGS. 16515LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16516 16517# Allow CC to be a program name with arguments. 16518compiler=$CC 16519 16520 16521# save warnings/boilerplate of simple test code 16522ac_outfile=conftest.$ac_objext 16523printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16524eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16525_lt_compiler_boilerplate=`cat conftest.err` 16526$rm conftest* 16527 16528ac_outfile=conftest.$ac_objext 16529printf "$lt_simple_link_test_code" >conftest.$ac_ext 16530eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16531_lt_linker_boilerplate=`cat conftest.err` 16532$rm conftest* 16533 16534 16535# Allow CC to be a program name with arguments. 16536lt_save_CC="$CC" 16537CC=${F77-"f77"} 16538compiler=$CC 16539compiler_F77=$CC 16540for cc_temp in $compiler""; do 16541 case $cc_temp in 16542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16544 \-*) ;; 16545 *) break;; 16546 esac 16547done 16548cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16549 16550 16551{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 16552echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 16553{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 16554echo "${ECHO_T}$can_build_shared" >&6; } 16555 16556{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 16557echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 16558test "$can_build_shared" = "no" && enable_shared=no 16559 16560# On AIX, shared libraries and static libraries use the same namespace, and 16561# are all built from PIC. 16562case $host_os in 16563aix3*) 16564 test "$enable_shared" = yes && enable_static=no 16565 if test -n "$RANLIB"; then 16566 archive_cmds="$archive_cmds~\$RANLIB \$lib" 16567 postinstall_cmds='$RANLIB $lib' 16568 fi 16569 ;; 16570aix4* | aix5*) 16571 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 16572 test "$enable_shared" = yes && enable_static=no 16573 fi 16574 ;; 16575esac 16576{ echo "$as_me:$LINENO: result: $enable_shared" >&5 16577echo "${ECHO_T}$enable_shared" >&6; } 16578 16579{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 16580echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 16581# Make sure either enable_shared or enable_static is yes. 16582test "$enable_shared" = yes || enable_static=yes 16583{ echo "$as_me:$LINENO: result: $enable_static" >&5 16584echo "${ECHO_T}$enable_static" >&6; } 16585 16586GCC_F77="$G77" 16587LD_F77="$LD" 16588 16589lt_prog_compiler_wl_F77= 16590lt_prog_compiler_pic_F77= 16591lt_prog_compiler_static_F77= 16592 16593{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16594echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16595 16596 if test "$GCC" = yes; then 16597 lt_prog_compiler_wl_F77='-Wl,' 16598 lt_prog_compiler_static_F77='-static' 16599 16600 case $host_os in 16601 aix*) 16602 # All AIX code is PIC. 16603 if test "$host_cpu" = ia64; then 16604 # AIX 5 now supports IA64 processor 16605 lt_prog_compiler_static_F77='-Bstatic' 16606 fi 16607 ;; 16608 16609 amigaos*) 16610 # FIXME: we need at least 68020 code to build shared libraries, but 16611 # adding the `-m68020' flag to GCC prevents building anything better, 16612 # like `-m68040'. 16613 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 16614 ;; 16615 16616 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16617 # PIC is the default for these OSes. 16618 ;; 16619 16620 mingw* | pw32* | os2*) 16621 # This hack is so that the source file can tell whether it is being 16622 # built for inclusion in a dll (and should export symbols for example). 16623 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 16624 ;; 16625 16626 darwin* | rhapsody*) 16627 # PIC is the default on this platform 16628 # Common symbols not allowed in MH_DYLIB files 16629 lt_prog_compiler_pic_F77='-fno-common' 16630 ;; 16631 16632 interix3*) 16633 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16634 # Instead, we relocate shared libraries at runtime. 16635 ;; 16636 16637 msdosdjgpp*) 16638 # Just because we use GCC doesn't mean we suddenly get shared libraries 16639 # on systems that don't support them. 16640 lt_prog_compiler_can_build_shared_F77=no 16641 enable_shared=no 16642 ;; 16643 16644 sysv4*MP*) 16645 if test -d /usr/nec; then 16646 lt_prog_compiler_pic_F77=-Kconform_pic 16647 fi 16648 ;; 16649 16650 hpux*) 16651 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16652 # not for PA HP-UX. 16653 case $host_cpu in 16654 hppa*64*|ia64*) 16655 # +Z the default 16656 ;; 16657 *) 16658 lt_prog_compiler_pic_F77='-fPIC' 16659 ;; 16660 esac 16661 ;; 16662 16663 *) 16664 lt_prog_compiler_pic_F77='-fPIC' 16665 ;; 16666 esac 16667 else 16668 # PORTME Check for flag to pass linker flags through the system compiler. 16669 case $host_os in 16670 aix*) 16671 lt_prog_compiler_wl_F77='-Wl,' 16672 if test "$host_cpu" = ia64; then 16673 # AIX 5 now supports IA64 processor 16674 lt_prog_compiler_static_F77='-Bstatic' 16675 else 16676 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 16677 fi 16678 ;; 16679 darwin*) 16680 # PIC is the default on this platform 16681 # Common symbols not allowed in MH_DYLIB files 16682 case $cc_basename in 16683 xlc*) 16684 lt_prog_compiler_pic_F77='-qnocommon' 16685 lt_prog_compiler_wl_F77='-Wl,' 16686 ;; 16687 esac 16688 ;; 16689 16690 mingw* | pw32* | os2*) 16691 # This hack is so that the source file can tell whether it is being 16692 # built for inclusion in a dll (and should export symbols for example). 16693 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 16694 ;; 16695 16696 hpux9* | hpux10* | hpux11*) 16697 lt_prog_compiler_wl_F77='-Wl,' 16698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16699 # not for PA HP-UX. 16700 case $host_cpu in 16701 hppa*64*|ia64*) 16702 # +Z the default 16703 ;; 16704 *) 16705 lt_prog_compiler_pic_F77='+Z' 16706 ;; 16707 esac 16708 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16709 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 16710 ;; 16711 16712 irix5* | irix6* | nonstopux*) 16713 lt_prog_compiler_wl_F77='-Wl,' 16714 # PIC (with -KPIC) is the default. 16715 lt_prog_compiler_static_F77='-non_shared' 16716 ;; 16717 16718 newsos6) 16719 lt_prog_compiler_pic_F77='-KPIC' 16720 lt_prog_compiler_static_F77='-Bstatic' 16721 ;; 16722 16723 linux* | k*bsd*-gnu) 16724 case $cc_basename in 16725 icc* | ecc*) 16726 lt_prog_compiler_wl_F77='-Wl,' 16727 lt_prog_compiler_pic_F77='-KPIC' 16728 lt_prog_compiler_static_F77='-static' 16729 ;; 16730 pgcc* | pgf77* | pgf90* | pgf95*) 16731 # Portland Group compilers (*not* the Pentium gcc compiler, 16732 # which looks to be a dead project) 16733 lt_prog_compiler_wl_F77='-Wl,' 16734 lt_prog_compiler_pic_F77='-fpic' 16735 lt_prog_compiler_static_F77='-Bstatic' 16736 ;; 16737 ccc*) 16738 lt_prog_compiler_wl_F77='-Wl,' 16739 # All Alpha code is PIC. 16740 lt_prog_compiler_static_F77='-non_shared' 16741 ;; 16742 esac 16743 ;; 16744 16745 osf3* | osf4* | osf5*) 16746 lt_prog_compiler_wl_F77='-Wl,' 16747 # All OSF/1 code is PIC. 16748 lt_prog_compiler_static_F77='-non_shared' 16749 ;; 16750 16751 solaris*) 16752 lt_prog_compiler_pic_F77='-KPIC' 16753 lt_prog_compiler_static_F77='-Bstatic' 16754 case $cc_basename in 16755 f77* | f90* | f95*) 16756 lt_prog_compiler_wl_F77='-Qoption ld ';; 16757 *) 16758 lt_prog_compiler_wl_F77='-Wl,';; 16759 esac 16760 ;; 16761 16762 sunos4*) 16763 lt_prog_compiler_wl_F77='-Qoption ld ' 16764 lt_prog_compiler_pic_F77='-PIC' 16765 lt_prog_compiler_static_F77='-Bstatic' 16766 ;; 16767 16768 sysv4 | sysv4.2uw2* | sysv4.3*) 16769 lt_prog_compiler_wl_F77='-Wl,' 16770 lt_prog_compiler_pic_F77='-KPIC' 16771 lt_prog_compiler_static_F77='-Bstatic' 16772 ;; 16773 16774 sysv4*MP*) 16775 if test -d /usr/nec ;then 16776 lt_prog_compiler_pic_F77='-Kconform_pic' 16777 lt_prog_compiler_static_F77='-Bstatic' 16778 fi 16779 ;; 16780 16781 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16782 lt_prog_compiler_wl_F77='-Wl,' 16783 lt_prog_compiler_pic_F77='-KPIC' 16784 lt_prog_compiler_static_F77='-Bstatic' 16785 ;; 16786 16787 unicos*) 16788 lt_prog_compiler_wl_F77='-Wl,' 16789 lt_prog_compiler_can_build_shared_F77=no 16790 ;; 16791 16792 uts4*) 16793 lt_prog_compiler_pic_F77='-pic' 16794 lt_prog_compiler_static_F77='-Bstatic' 16795 ;; 16796 16797 *) 16798 lt_prog_compiler_can_build_shared_F77=no 16799 ;; 16800 esac 16801 fi 16802 16803{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 16804echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 16805 16806# 16807# Check to make sure the PIC flag actually works. 16808# 16809if test -n "$lt_prog_compiler_pic_F77"; then 16810 16811{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 16812echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 16813if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 16814 echo $ECHO_N "(cached) $ECHO_C" >&6 16815else 16816 lt_prog_compiler_pic_works_F77=no 16817 ac_outfile=conftest.$ac_objext 16818 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16819 lt_compiler_flag="$lt_prog_compiler_pic_F77" 16820 # Insert the option either (1) after the last *FLAGS variable, or 16821 # (2) before a word containing "conftest.", or (3) at the end. 16822 # Note that $ac_compile itself does not contain backslashes and begins 16823 # with a dollar sign (not a hyphen), so the echo should work correctly. 16824 # The option is referenced via a variable to avoid confusing sed. 16825 lt_compile=`echo "$ac_compile" | $SED \ 16826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16828 -e 's:$: $lt_compiler_flag:'` 16829 (eval echo "\"\$as_me:16829: $lt_compile\"" >&5) 16830 (eval "$lt_compile" 2>conftest.err) 16831 ac_status=$? 16832 cat conftest.err >&5 16833 echo "$as_me:16833: \$? = $ac_status" >&5 16834 if (exit $ac_status) && test -s "$ac_outfile"; then 16835 # The compiler can only warn and ignore the option if not recognized 16836 # So say no if there are warnings other than the usual output. 16837 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16839 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16840 lt_prog_compiler_pic_works_F77=yes 16841 fi 16842 fi 16843 $rm conftest* 16844 16845fi 16846{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 16847echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 16848 16849if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 16850 case $lt_prog_compiler_pic_F77 in 16851 "" | " "*) ;; 16852 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 16853 esac 16854else 16855 lt_prog_compiler_pic_F77= 16856 lt_prog_compiler_can_build_shared_F77=no 16857fi 16858 16859fi 16860case $host_os in 16861 # For platforms which do not support PIC, -DPIC is meaningless: 16862 *djgpp*) 16863 lt_prog_compiler_pic_F77= 16864 ;; 16865 *) 16866 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 16867 ;; 16868esac 16869 16870# 16871# Check to make sure the static flag actually works. 16872# 16873wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 16874{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16875echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16876if test "${lt_prog_compiler_static_works_F77+set}" = set; then 16877 echo $ECHO_N "(cached) $ECHO_C" >&6 16878else 16879 lt_prog_compiler_static_works_F77=no 16880 save_LDFLAGS="$LDFLAGS" 16881 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16882 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16883 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16884 # The linker can only warn and ignore the option if not recognized 16885 # So say no if there are warnings 16886 if test -s conftest.err; then 16887 # Append any errors to the config.log. 16888 cat conftest.err 1>&5 16889 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16891 if diff conftest.exp conftest.er2 >/dev/null; then 16892 lt_prog_compiler_static_works_F77=yes 16893 fi 16894 else 16895 lt_prog_compiler_static_works_F77=yes 16896 fi 16897 fi 16898 $rm conftest* 16899 LDFLAGS="$save_LDFLAGS" 16900 16901fi 16902{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 16903echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 16904 16905if test x"$lt_prog_compiler_static_works_F77" = xyes; then 16906 : 16907else 16908 lt_prog_compiler_static_F77= 16909fi 16910 16911 16912{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16913echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16914if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 16915 echo $ECHO_N "(cached) $ECHO_C" >&6 16916else 16917 lt_cv_prog_compiler_c_o_F77=no 16918 $rm -r conftest 2>/dev/null 16919 mkdir conftest 16920 cd conftest 16921 mkdir out 16922 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16923 16924 lt_compiler_flag="-o out/conftest2.$ac_objext" 16925 # Insert the option either (1) after the last *FLAGS variable, or 16926 # (2) before a word containing "conftest.", or (3) at the end. 16927 # Note that $ac_compile itself does not contain backslashes and begins 16928 # with a dollar sign (not a hyphen), so the echo should work correctly. 16929 lt_compile=`echo "$ac_compile" | $SED \ 16930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16932 -e 's:$: $lt_compiler_flag:'` 16933 (eval echo "\"\$as_me:16933: $lt_compile\"" >&5) 16934 (eval "$lt_compile" 2>out/conftest.err) 16935 ac_status=$? 16936 cat out/conftest.err >&5 16937 echo "$as_me:16937: \$? = $ac_status" >&5 16938 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16939 then 16940 # The compiler can only warn and ignore the option if not recognized 16941 # So say no if there are warnings 16942 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16943 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16944 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16945 lt_cv_prog_compiler_c_o_F77=yes 16946 fi 16947 fi 16948 chmod u+w . 2>&5 16949 $rm conftest* 16950 # SGI C++ compiler will create directory out/ii_files/ for 16951 # template instantiation 16952 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16953 $rm out/* && rmdir out 16954 cd .. 16955 rmdir conftest 16956 $rm conftest* 16957 16958fi 16959{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 16960echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 16961 16962 16963hard_links="nottested" 16964if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 16965 # do not overwrite the value of need_locks provided by the user 16966 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16967echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16968 hard_links=yes 16969 $rm conftest* 16970 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16971 touch conftest.a 16972 ln conftest.a conftest.b 2>&5 || hard_links=no 16973 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16974 { echo "$as_me:$LINENO: result: $hard_links" >&5 16975echo "${ECHO_T}$hard_links" >&6; } 16976 if test "$hard_links" = no; then 16977 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16978echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16979 need_locks=warn 16980 fi 16981else 16982 need_locks=no 16983fi 16984 16985{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16986echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16987 16988 runpath_var= 16989 allow_undefined_flag_F77= 16990 enable_shared_with_static_runtimes_F77=no 16991 archive_cmds_F77= 16992 archive_expsym_cmds_F77= 16993 old_archive_From_new_cmds_F77= 16994 old_archive_from_expsyms_cmds_F77= 16995 export_dynamic_flag_spec_F77= 16996 whole_archive_flag_spec_F77= 16997 thread_safe_flag_spec_F77= 16998 hardcode_libdir_flag_spec_F77= 16999 hardcode_libdir_flag_spec_ld_F77= 17000 hardcode_libdir_separator_F77= 17001 hardcode_direct_F77=no 17002 hardcode_minus_L_F77=no 17003 hardcode_shlibpath_var_F77=unsupported 17004 link_all_deplibs_F77=unknown 17005 hardcode_automatic_F77=no 17006 module_cmds_F77= 17007 module_expsym_cmds_F77= 17008 always_export_symbols_F77=no 17009 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17010 # include_expsyms should be a list of space-separated symbols to be *always* 17011 # included in the symbol list 17012 include_expsyms_F77= 17013 # exclude_expsyms can be an extended regexp of symbols to exclude 17014 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17015 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17016 # as well as any symbol that contains `d'. 17017 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 17018 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17019 # platforms (ab)use it in PIC code, but their linkers get confused if 17020 # the symbol is explicitly referenced. Since portable code cannot 17021 # rely on this symbol name, it's probably fine to never include it in 17022 # preloaded symbol tables. 17023 extract_expsyms_cmds= 17024 # Just being paranoid about ensuring that cc_basename is set. 17025 for cc_temp in $compiler""; do 17026 case $cc_temp in 17027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17029 \-*) ;; 17030 *) break;; 17031 esac 17032done 17033cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17034 17035 case $host_os in 17036 cygwin* | mingw* | pw32*) 17037 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17038 # When not using gcc, we currently assume that we are using 17039 # Microsoft Visual C++. 17040 if test "$GCC" != yes; then 17041 with_gnu_ld=no 17042 fi 17043 ;; 17044 interix*) 17045 # we just hope/assume this is gcc and not c89 (= MSVC++) 17046 with_gnu_ld=yes 17047 ;; 17048 openbsd*) 17049 with_gnu_ld=no 17050 ;; 17051 esac 17052 17053 ld_shlibs_F77=yes 17054 if test "$with_gnu_ld" = yes; then 17055 # If archive_cmds runs LD, not CC, wlarc should be empty 17056 wlarc='${wl}' 17057 17058 # Set some defaults for GNU ld with shared library support. These 17059 # are reset later if shared libraries are not supported. Putting them 17060 # here allows them to be overridden if necessary. 17061 runpath_var=LD_RUN_PATH 17062 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 17063 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 17064 # ancient GNU ld didn't support --whole-archive et. al. 17065 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17066 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17067 else 17068 whole_archive_flag_spec_F77= 17069 fi 17070 supports_anon_versioning=no 17071 case `$LD -v 2>/dev/null` in 17072 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17073 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17074 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17075 *\ 2.11.*) ;; # other 2.11 versions 17076 *) supports_anon_versioning=yes ;; 17077 esac 17078 17079 # See if GNU ld supports shared libraries. 17080 case $host_os in 17081 aix3* | aix4* | aix5*) 17082 # On AIX/PPC, the GNU linker is very broken 17083 if test "$host_cpu" != ia64; then 17084 ld_shlibs_F77=no 17085 cat <<EOF 1>&2 17086 17087*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17088*** to be unable to reliably create shared libraries on AIX. 17089*** Therefore, libtool is disabling shared libraries support. If you 17090*** really care for shared libraries, you may want to modify your PATH 17091*** so that a non-GNU linker is found, and then restart. 17092 17093EOF 17094 fi 17095 ;; 17096 17097 amigaos*) 17098 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)' 17099 hardcode_libdir_flag_spec_F77='-L$libdir' 17100 hardcode_minus_L_F77=yes 17101 17102 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17103 # that the semantics of dynamic libraries on AmigaOS, at least up 17104 # to version 4, is to share data among multiple programs linked 17105 # with the same dynamic library. Since this doesn't match the 17106 # behavior of shared libraries on other platforms, we can't use 17107 # them. 17108 ld_shlibs_F77=no 17109 ;; 17110 17111 beos*) 17112 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17113 allow_undefined_flag_F77=unsupported 17114 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17115 # support --undefined. This deserves some investigation. FIXME 17116 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17117 else 17118 ld_shlibs_F77=no 17119 fi 17120 ;; 17121 17122 cygwin* | mingw* | pw32*) 17123 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 17124 # as there is no search path for DLLs. 17125 hardcode_libdir_flag_spec_F77='-L$libdir' 17126 allow_undefined_flag_F77=unsupported 17127 always_export_symbols_F77=no 17128 enable_shared_with_static_runtimes_F77=yes 17129 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17130 17131 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17132 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17133 # If the export-symbols file already is a .def file (1st line 17134 # is EXPORTS), use it as is; otherwise, prepend... 17135 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17136 cp $export_symbols $output_objdir/$soname.def; 17137 else 17138 echo EXPORTS > $output_objdir/$soname.def; 17139 cat $export_symbols >> $output_objdir/$soname.def; 17140 fi~ 17141 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17142 else 17143 ld_shlibs_F77=no 17144 fi 17145 ;; 17146 17147 interix3*) 17148 hardcode_direct_F77=no 17149 hardcode_shlibpath_var_F77=no 17150 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 17151 export_dynamic_flag_spec_F77='${wl}-E' 17152 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17153 # Instead, shared libraries are loaded at an image base (0x10000000 by 17154 # default) and relocated if they conflict, which is a slow very memory 17155 # consuming and fragmenting process. To avoid this, we pick a random, 17156 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17157 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17158 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' 17159 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' 17160 ;; 17161 17162 linux* | k*bsd*-gnu) 17163 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17164 tmp_addflag= 17165 case $cc_basename,$host_cpu in 17166 pgcc*) # Portland Group C compiler 17167 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' 17168 tmp_addflag=' $pic_flag' 17169 ;; 17170 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17171 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' 17172 tmp_addflag=' $pic_flag -Mnomain' ;; 17173 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17174 tmp_addflag=' -i_dynamic' ;; 17175 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17176 tmp_addflag=' -i_dynamic -nofor_main' ;; 17177 ifc* | ifort*) # Intel Fortran compiler 17178 tmp_addflag=' -nofor_main' ;; 17179 esac 17180 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17181 17182 if test $supports_anon_versioning = yes; then 17183 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 17184 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17185 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17186 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17187 fi 17188 link_all_deplibs_F77=no 17189 else 17190 ld_shlibs_F77=no 17191 fi 17192 ;; 17193 17194 netbsd* | netbsdelf*-gnu) 17195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17196 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17197 wlarc= 17198 else 17199 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17200 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17201 fi 17202 ;; 17203 17204 solaris*) 17205 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17206 ld_shlibs_F77=no 17207 cat <<EOF 1>&2 17208 17209*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17210*** create shared libraries on Solaris systems. Therefore, libtool 17211*** is disabling shared libraries support. We urge you to upgrade GNU 17212*** binutils to release 2.9.1 or newer. Another option is to modify 17213*** your PATH or compiler configuration so that the native linker is 17214*** used, and then restart. 17215 17216EOF 17217 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17218 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17219 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17220 else 17221 ld_shlibs_F77=no 17222 fi 17223 ;; 17224 17225 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17226 case `$LD -v 2>&1` in 17227 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17228 ld_shlibs_F77=no 17229 cat <<_LT_EOF 1>&2 17230 17231*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17232*** reliably create shared libraries on SCO systems. Therefore, libtool 17233*** is disabling shared libraries support. We urge you to upgrade GNU 17234*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17235*** your PATH or compiler configuration so that the native linker is 17236*** used, and then restart. 17237 17238_LT_EOF 17239 ;; 17240 *) 17241 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17242 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17243 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17244 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17245 else 17246 ld_shlibs_F77=no 17247 fi 17248 ;; 17249 esac 17250 ;; 17251 17252 sunos4*) 17253 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17254 wlarc= 17255 hardcode_direct_F77=yes 17256 hardcode_shlibpath_var_F77=no 17257 ;; 17258 17259 *) 17260 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17261 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17262 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17263 else 17264 ld_shlibs_F77=no 17265 fi 17266 ;; 17267 esac 17268 17269 if test "$ld_shlibs_F77" = no; then 17270 runpath_var= 17271 hardcode_libdir_flag_spec_F77= 17272 export_dynamic_flag_spec_F77= 17273 whole_archive_flag_spec_F77= 17274 fi 17275 else 17276 # PORTME fill in a description of your system's linker (not GNU ld) 17277 case $host_os in 17278 aix3*) 17279 allow_undefined_flag_F77=unsupported 17280 always_export_symbols_F77=yes 17281 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' 17282 # Note: this linker hardcodes the directories in LIBPATH if there 17283 # are no directories specified by -L. 17284 hardcode_minus_L_F77=yes 17285 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17286 # Neither direct hardcoding nor static linking is supported with a 17287 # broken collect2. 17288 hardcode_direct_F77=unsupported 17289 fi 17290 ;; 17291 17292 aix4* | aix5*) 17293 if test "$host_cpu" = ia64; then 17294 # On IA64, the linker does run time linking by default, so we don't 17295 # have to do anything special. 17296 aix_use_runtimelinking=no 17297 exp_sym_flag='-Bexport' 17298 no_entry_flag="" 17299 else 17300 # If we're using GNU nm, then we don't want the "-C" option. 17301 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17302 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17303 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' 17304 else 17305 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' 17306 fi 17307 aix_use_runtimelinking=no 17308 17309 # Test if we are trying to use run time linking or normal 17310 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17311 # need to do runtime linking. 17312 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17313 for ld_flag in $LDFLAGS; do 17314 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17315 aix_use_runtimelinking=yes 17316 break 17317 fi 17318 done 17319 ;; 17320 esac 17321 17322 exp_sym_flag='-bexport' 17323 no_entry_flag='-bnoentry' 17324 fi 17325 17326 # When large executables or shared objects are built, AIX ld can 17327 # have problems creating the table of contents. If linking a library 17328 # or program results in "error TOC overflow" add -mminimal-toc to 17329 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17330 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17331 17332 archive_cmds_F77='' 17333 hardcode_direct_F77=yes 17334 hardcode_libdir_separator_F77=':' 17335 link_all_deplibs_F77=yes 17336 17337 if test "$GCC" = yes; then 17338 case $host_os in aix4.[012]|aix4.[012].*) 17339 # We only want to do this on AIX 4.2 and lower, the check 17340 # below for broken collect2 doesn't work under 4.3+ 17341 collect2name=`${CC} -print-prog-name=collect2` 17342 if test -f "$collect2name" && \ 17343 strings "$collect2name" | grep resolve_lib_name >/dev/null 17344 then 17345 # We have reworked collect2 17346 hardcode_direct_F77=yes 17347 else 17348 # We have old collect2 17349 hardcode_direct_F77=unsupported 17350 # It fails to find uninstalled libraries when the uninstalled 17351 # path is not listed in the libpath. Setting hardcode_minus_L 17352 # to unsupported forces relinking 17353 hardcode_minus_L_F77=yes 17354 hardcode_libdir_flag_spec_F77='-L$libdir' 17355 hardcode_libdir_separator_F77= 17356 fi 17357 ;; 17358 esac 17359 shared_flag='-shared' 17360 if test "$aix_use_runtimelinking" = yes; then 17361 shared_flag="$shared_flag "'${wl}-G' 17362 fi 17363 else 17364 # not using gcc 17365 if test "$host_cpu" = ia64; then 17366 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17367 # chokes on -Wl,-G. The following line is correct: 17368 shared_flag='-G' 17369 else 17370 if test "$aix_use_runtimelinking" = yes; then 17371 shared_flag='${wl}-G' 17372 else 17373 shared_flag='${wl}-bM:SRE' 17374 fi 17375 fi 17376 fi 17377 17378 # It seems that -bexpall does not export symbols beginning with 17379 # underscore (_), so it is better to generate a list of symbols to export. 17380 always_export_symbols_F77=yes 17381 if test "$aix_use_runtimelinking" = yes; then 17382 # Warning - without using the other runtime loading flags (-brtl), 17383 # -berok will link without error, but may produce a broken library. 17384 allow_undefined_flag_F77='-berok' 17385 # Determine the default libpath from the value encoded in an empty executable. 17386 cat >conftest.$ac_ext <<_ACEOF 17387 program main 17388 17389 end 17390_ACEOF 17391rm -f conftest.$ac_objext conftest$ac_exeext 17392if { (ac_try="$ac_link" 17393case "(($ac_try" in 17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17395 *) ac_try_echo=$ac_try;; 17396esac 17397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17398 (eval "$ac_link") 2>conftest.er1 17399 ac_status=$? 17400 grep -v '^ *+' conftest.er1 >conftest.err 17401 rm -f conftest.er1 17402 cat conftest.err >&5 17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17404 (exit $ac_status); } && { 17405 test -z "$ac_f77_werror_flag" || 17406 test ! -s conftest.err 17407 } && test -s conftest$ac_exeext && 17408 $as_test_x conftest$ac_exeext; then 17409 17410aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17411}'` 17412# Check for a 64-bit object if we didn't find anything. 17413if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17414}'`; fi 17415else 17416 echo "$as_me: failed program was:" >&5 17417sed 's/^/| /' conftest.$ac_ext >&5 17418 17419 17420fi 17421 17422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17423 conftest$ac_exeext conftest.$ac_ext 17424if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17425 17426 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 17427 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" 17428 else 17429 if test "$host_cpu" = ia64; then 17430 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 17431 allow_undefined_flag_F77="-z nodefs" 17432 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" 17433 else 17434 # Determine the default libpath from the value encoded in an empty executable. 17435 cat >conftest.$ac_ext <<_ACEOF 17436 program main 17437 17438 end 17439_ACEOF 17440rm -f conftest.$ac_objext conftest$ac_exeext 17441if { (ac_try="$ac_link" 17442case "(($ac_try" in 17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17444 *) ac_try_echo=$ac_try;; 17445esac 17446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17447 (eval "$ac_link") 2>conftest.er1 17448 ac_status=$? 17449 grep -v '^ *+' conftest.er1 >conftest.err 17450 rm -f conftest.er1 17451 cat conftest.err >&5 17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17453 (exit $ac_status); } && { 17454 test -z "$ac_f77_werror_flag" || 17455 test ! -s conftest.err 17456 } && test -s conftest$ac_exeext && 17457 $as_test_x conftest$ac_exeext; then 17458 17459aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17460}'` 17461# Check for a 64-bit object if we didn't find anything. 17462if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17463}'`; fi 17464else 17465 echo "$as_me: failed program was:" >&5 17466sed 's/^/| /' conftest.$ac_ext >&5 17467 17468 17469fi 17470 17471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17472 conftest$ac_exeext conftest.$ac_ext 17473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17474 17475 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 17476 # Warning - without using the other run time loading flags, 17477 # -berok will link without error, but may produce a broken library. 17478 no_undefined_flag_F77=' ${wl}-bernotok' 17479 allow_undefined_flag_F77=' ${wl}-berok' 17480 # Exported symbols can be pulled into shared objects from archives 17481 whole_archive_flag_spec_F77='$convenience' 17482 archive_cmds_need_lc_F77=yes 17483 # This is similar to how AIX traditionally builds its shared libraries. 17484 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' 17485 fi 17486 fi 17487 ;; 17488 17489 amigaos*) 17490 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)' 17491 hardcode_libdir_flag_spec_F77='-L$libdir' 17492 hardcode_minus_L_F77=yes 17493 # see comment about different semantics on the GNU ld section 17494 ld_shlibs_F77=no 17495 ;; 17496 17497 bsdi[45]*) 17498 export_dynamic_flag_spec_F77=-rdynamic 17499 ;; 17500 17501 cygwin* | mingw* | pw32*) 17502 # When not using gcc, we currently assume that we are using 17503 # Microsoft Visual C++. 17504 # hardcode_libdir_flag_spec is actually meaningless, as there is 17505 # no search path for DLLs. 17506 hardcode_libdir_flag_spec_F77=' ' 17507 allow_undefined_flag_F77=unsupported 17508 # Tell ltmain to make .lib files, not .a files. 17509 libext=lib 17510 # Tell ltmain to make .dll files, not .so files. 17511 shrext_cmds=".dll" 17512 # FIXME: Setting linknames here is a bad hack. 17513 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17514 # The linker will automatically build a .lib file if we build a DLL. 17515 old_archive_From_new_cmds_F77='true' 17516 # FIXME: Should let the user specify the lib program. 17517 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 17518 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 17519 enable_shared_with_static_runtimes_F77=yes 17520 ;; 17521 17522 darwin* | rhapsody*) 17523 case $host_os in 17524 rhapsody* | darwin1.[012]) 17525 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 17526 ;; 17527 *) # Darwin 1.3 on 17528 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17529 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17530 else 17531 case ${MACOSX_DEPLOYMENT_TARGET} in 17532 10.[012]) 17533 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17534 ;; 17535 10.*) 17536 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 17537 ;; 17538 esac 17539 fi 17540 ;; 17541 esac 17542 archive_cmds_need_lc_F77=no 17543 hardcode_direct_F77=no 17544 hardcode_automatic_F77=yes 17545 hardcode_shlibpath_var_F77=unsupported 17546 whole_archive_flag_spec_F77='' 17547 link_all_deplibs_F77=yes 17548 if test "$GCC" = yes ; then 17549 output_verbose_link_cmd='echo' 17550 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17551 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17552 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17553 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17554 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}' 17555 else 17556 case $cc_basename in 17557 xlc*) 17558 output_verbose_link_cmd='echo' 17559 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17560 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17561 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17562 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17563 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}' 17564 ;; 17565 *) 17566 ld_shlibs_F77=no 17567 ;; 17568 esac 17569 fi 17570 ;; 17571 17572 dgux*) 17573 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17574 hardcode_libdir_flag_spec_F77='-L$libdir' 17575 hardcode_shlibpath_var_F77=no 17576 ;; 17577 17578 freebsd1*) 17579 ld_shlibs_F77=no 17580 ;; 17581 17582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17583 # support. Future versions do this automatically, but an explicit c++rt0.o 17584 # does not break anything, and helps significantly (at the cost of a little 17585 # extra space). 17586 freebsd2.2*) 17587 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17588 hardcode_libdir_flag_spec_F77='-R$libdir' 17589 hardcode_direct_F77=yes 17590 hardcode_shlibpath_var_F77=no 17591 ;; 17592 17593 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17594 freebsd2*) 17595 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17596 hardcode_direct_F77=yes 17597 hardcode_minus_L_F77=yes 17598 hardcode_shlibpath_var_F77=no 17599 ;; 17600 17601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17602 freebsd* | dragonfly*) 17603 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17604 hardcode_libdir_flag_spec_F77='-R$libdir' 17605 hardcode_direct_F77=yes 17606 hardcode_shlibpath_var_F77=no 17607 ;; 17608 17609 hpux9*) 17610 if test "$GCC" = yes; then 17611 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' 17612 else 17613 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' 17614 fi 17615 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 17616 hardcode_libdir_separator_F77=: 17617 hardcode_direct_F77=yes 17618 17619 # hardcode_minus_L: Not really in the search PATH, 17620 # but as the default location of the library. 17621 hardcode_minus_L_F77=yes 17622 export_dynamic_flag_spec_F77='${wl}-E' 17623 ;; 17624 17625 hpux10*) 17626 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17627 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17628 else 17629 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17630 fi 17631 if test "$with_gnu_ld" = no; then 17632 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 17633 hardcode_libdir_separator_F77=: 17634 17635 hardcode_direct_F77=yes 17636 export_dynamic_flag_spec_F77='${wl}-E' 17637 17638 # hardcode_minus_L: Not really in the search PATH, 17639 # but as the default location of the library. 17640 hardcode_minus_L_F77=yes 17641 fi 17642 ;; 17643 17644 hpux11*) 17645 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17646 case $host_cpu in 17647 hppa*64*) 17648 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17649 ;; 17650 ia64*) 17651 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17652 ;; 17653 *) 17654 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17655 ;; 17656 esac 17657 else 17658 case $host_cpu in 17659 hppa*64*) 17660 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17661 ;; 17662 ia64*) 17663 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17664 ;; 17665 *) 17666 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17667 ;; 17668 esac 17669 fi 17670 if test "$with_gnu_ld" = no; then 17671 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 17672 hardcode_libdir_separator_F77=: 17673 17674 case $host_cpu in 17675 hppa*64*|ia64*) 17676 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 17677 hardcode_direct_F77=no 17678 hardcode_shlibpath_var_F77=no 17679 ;; 17680 *) 17681 hardcode_direct_F77=yes 17682 export_dynamic_flag_spec_F77='${wl}-E' 17683 17684 # hardcode_minus_L: Not really in the search PATH, 17685 # but as the default location of the library. 17686 hardcode_minus_L_F77=yes 17687 ;; 17688 esac 17689 fi 17690 ;; 17691 17692 irix5* | irix6* | nonstopux*) 17693 if test "$GCC" = yes; then 17694 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' 17695 else 17696 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' 17697 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 17698 fi 17699 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 17700 hardcode_libdir_separator_F77=: 17701 link_all_deplibs_F77=yes 17702 ;; 17703 17704 netbsd* | netbsdelf*-gnu) 17705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17706 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17707 else 17708 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17709 fi 17710 hardcode_libdir_flag_spec_F77='-R$libdir' 17711 hardcode_direct_F77=yes 17712 hardcode_shlibpath_var_F77=no 17713 ;; 17714 17715 newsos6) 17716 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17717 hardcode_direct_F77=yes 17718 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 17719 hardcode_libdir_separator_F77=: 17720 hardcode_shlibpath_var_F77=no 17721 ;; 17722 17723 openbsd*) 17724 hardcode_direct_F77=yes 17725 hardcode_shlibpath_var_F77=no 17726 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17727 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17728 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17729 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 17730 export_dynamic_flag_spec_F77='${wl}-E' 17731 else 17732 case $host_os in 17733 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17734 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17735 hardcode_libdir_flag_spec_F77='-R$libdir' 17736 ;; 17737 *) 17738 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17739 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 17740 ;; 17741 esac 17742 fi 17743 ;; 17744 17745 os2*) 17746 hardcode_libdir_flag_spec_F77='-L$libdir' 17747 hardcode_minus_L_F77=yes 17748 allow_undefined_flag_F77=unsupported 17749 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' 17750 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17751 ;; 17752 17753 osf3*) 17754 if test "$GCC" = yes; then 17755 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 17756 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' 17757 else 17758 allow_undefined_flag_F77=' -expect_unresolved \*' 17759 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' 17760 fi 17761 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 17762 hardcode_libdir_separator_F77=: 17763 ;; 17764 17765 osf4* | osf5*) # as osf3* with the addition of -msym flag 17766 if test "$GCC" = yes; then 17767 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 17768 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' 17769 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 17770 else 17771 allow_undefined_flag_F77=' -expect_unresolved \*' 17772 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' 17773 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~ 17774 $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' 17775 17776 # Both c and cxx compiler support -rpath directly 17777 hardcode_libdir_flag_spec_F77='-rpath $libdir' 17778 fi 17779 hardcode_libdir_separator_F77=: 17780 ;; 17781 17782 solaris*) 17783 no_undefined_flag_F77=' -z text' 17784 if test "$GCC" = yes; then 17785 wlarc='${wl}' 17786 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17787 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17788 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17789 else 17790 wlarc='' 17791 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17792 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17793 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17794 fi 17795 hardcode_libdir_flag_spec_F77='-R$libdir' 17796 hardcode_shlibpath_var_F77=no 17797 case $host_os in 17798 solaris2.[0-5] | solaris2.[0-5].*) ;; 17799 *) 17800 # The compiler driver will combine linker options so we 17801 # cannot just pass the convience library names through 17802 # without $wl, iff we do not link with $LD. 17803 # Luckily, gcc supports the same syntax we need for Sun Studio. 17804 # Supported since Solaris 2.6 (maybe 2.5.1?) 17805 case $wlarc in 17806 '') 17807 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 17808 *) 17809 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17810 esac ;; 17811 esac 17812 link_all_deplibs_F77=yes 17813 ;; 17814 17815 sunos4*) 17816 if test "x$host_vendor" = xsequent; then 17817 # Use $CC to link under sequent, because it throws in some extra .o 17818 # files that make .init and .fini sections work. 17819 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17820 else 17821 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17822 fi 17823 hardcode_libdir_flag_spec_F77='-L$libdir' 17824 hardcode_direct_F77=yes 17825 hardcode_minus_L_F77=yes 17826 hardcode_shlibpath_var_F77=no 17827 ;; 17828 17829 sysv4) 17830 case $host_vendor in 17831 sni) 17832 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17833 hardcode_direct_F77=yes # is this really true??? 17834 ;; 17835 siemens) 17836 ## LD is ld it makes a PLAMLIB 17837 ## CC just makes a GrossModule. 17838 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17839 reload_cmds_F77='$CC -r -o $output$reload_objs' 17840 hardcode_direct_F77=no 17841 ;; 17842 motorola) 17843 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17844 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 17845 ;; 17846 esac 17847 runpath_var='LD_RUN_PATH' 17848 hardcode_shlibpath_var_F77=no 17849 ;; 17850 17851 sysv4.3*) 17852 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17853 hardcode_shlibpath_var_F77=no 17854 export_dynamic_flag_spec_F77='-Bexport' 17855 ;; 17856 17857 sysv4*MP*) 17858 if test -d /usr/nec; then 17859 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17860 hardcode_shlibpath_var_F77=no 17861 runpath_var=LD_RUN_PATH 17862 hardcode_runpath_var=yes 17863 ld_shlibs_F77=yes 17864 fi 17865 ;; 17866 17867 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17868 no_undefined_flag_F77='${wl}-z,text' 17869 archive_cmds_need_lc_F77=no 17870 hardcode_shlibpath_var_F77=no 17871 runpath_var='LD_RUN_PATH' 17872 17873 if test "$GCC" = yes; then 17874 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17875 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17876 else 17877 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17878 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17879 fi 17880 ;; 17881 17882 sysv5* | sco3.2v5* | sco5v6*) 17883 # Note: We can NOT use -z defs as we might desire, because we do not 17884 # link with -lc, and that would cause any symbols used from libc to 17885 # always be unresolved, which means just about no library would 17886 # ever link correctly. If we're not using GNU ld we use -z text 17887 # though, which does catch some bad symbols but isn't as heavy-handed 17888 # as -z defs. 17889 no_undefined_flag_F77='${wl}-z,text' 17890 allow_undefined_flag_F77='${wl}-z,nodefs' 17891 archive_cmds_need_lc_F77=no 17892 hardcode_shlibpath_var_F77=no 17893 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17894 hardcode_libdir_separator_F77=':' 17895 link_all_deplibs_F77=yes 17896 export_dynamic_flag_spec_F77='${wl}-Bexport' 17897 runpath_var='LD_RUN_PATH' 17898 17899 if test "$GCC" = yes; then 17900 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17901 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17902 else 17903 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17904 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17905 fi 17906 ;; 17907 17908 uts4*) 17909 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17910 hardcode_libdir_flag_spec_F77='-L$libdir' 17911 hardcode_shlibpath_var_F77=no 17912 ;; 17913 17914 *) 17915 ld_shlibs_F77=no 17916 ;; 17917 esac 17918 fi 17919 17920{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 17921echo "${ECHO_T}$ld_shlibs_F77" >&6; } 17922test "$ld_shlibs_F77" = no && can_build_shared=no 17923 17924# 17925# Do we need to explicitly link libc? 17926# 17927case "x$archive_cmds_need_lc_F77" in 17928x|xyes) 17929 # Assume -lc should be added 17930 archive_cmds_need_lc_F77=yes 17931 17932 if test "$enable_shared" = yes && test "$GCC" = yes; then 17933 case $archive_cmds_F77 in 17934 *'~'*) 17935 # FIXME: we may have to deal with multi-command sequences. 17936 ;; 17937 '$CC '*) 17938 # Test whether the compiler implicitly links with -lc since on some 17939 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17940 # to ld, don't add -lc before -lgcc. 17941 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17942echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17943 $rm conftest* 17944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17945 17946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17947 (eval $ac_compile) 2>&5 17948 ac_status=$? 17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17950 (exit $ac_status); } 2>conftest.err; then 17951 soname=conftest 17952 lib=conftest 17953 libobjs=conftest.$ac_objext 17954 deplibs= 17955 wl=$lt_prog_compiler_wl_F77 17956 pic_flag=$lt_prog_compiler_pic_F77 17957 compiler_flags=-v 17958 linker_flags=-v 17959 verstring= 17960 output_objdir=. 17961 libname=conftest 17962 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 17963 allow_undefined_flag_F77= 17964 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17965 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17966 ac_status=$? 17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17968 (exit $ac_status); } 17969 then 17970 archive_cmds_need_lc_F77=no 17971 else 17972 archive_cmds_need_lc_F77=yes 17973 fi 17974 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 17975 else 17976 cat conftest.err 1>&5 17977 fi 17978 $rm conftest* 17979 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 17980echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 17981 ;; 17982 esac 17983 fi 17984 ;; 17985esac 17986 17987{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17988echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17989library_names_spec= 17990libname_spec='lib$name' 17991soname_spec= 17992shrext_cmds=".so" 17993postinstall_cmds= 17994postuninstall_cmds= 17995finish_cmds= 17996finish_eval= 17997shlibpath_var= 17998shlibpath_overrides_runpath=unknown 17999version_type=none 18000dynamic_linker="$host_os ld.so" 18001sys_lib_dlsearch_path_spec="/lib /usr/lib" 18002if test "$GCC" = yes; then 18003 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18004 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18005 # if the path contains ";" then we assume it to be the separator 18006 # otherwise default to the standard path separator (i.e. ":") - it is 18007 # assumed that no part of a normal pathname contains ";" but that should 18008 # okay in the real world where ";" in dirpaths is itself problematic. 18009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18010 else 18011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18012 fi 18013else 18014 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18015fi 18016need_lib_prefix=unknown 18017hardcode_into_libs=no 18018 18019# when you set need_version to no, make sure it does not cause -set_version 18020# flags to be left without arguments 18021need_version=unknown 18022 18023case $host_os in 18024aix3*) 18025 version_type=linux 18026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18027 shlibpath_var=LIBPATH 18028 18029 # AIX 3 has no versioning support, so we append a major version to the name. 18030 soname_spec='${libname}${release}${shared_ext}$major' 18031 ;; 18032 18033aix4* | aix5*) 18034 version_type=linux 18035 need_lib_prefix=no 18036 need_version=no 18037 hardcode_into_libs=yes 18038 if test "$host_cpu" = ia64; then 18039 # AIX 5 supports IA64 18040 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18041 shlibpath_var=LD_LIBRARY_PATH 18042 else 18043 # With GCC up to 2.95.x, collect2 would create an import file 18044 # for dependence libraries. The import file would start with 18045 # the line `#! .'. This would cause the generated library to 18046 # depend on `.', always an invalid library. This was fixed in 18047 # development snapshots of GCC prior to 3.0. 18048 case $host_os in 18049 aix4 | aix4.[01] | aix4.[01].*) 18050 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18051 echo ' yes ' 18052 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18053 : 18054 else 18055 can_build_shared=no 18056 fi 18057 ;; 18058 esac 18059 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18060 # soname into executable. Probably we can add versioning support to 18061 # collect2, so additional links can be useful in future. 18062 if test "$aix_use_runtimelinking" = yes; then 18063 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18064 # instead of lib<name>.a to let people know that these are not 18065 # typical AIX shared libraries. 18066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18067 else 18068 # We preserve .a as extension for shared libraries through AIX4.2 18069 # and later when we are not doing run time linking. 18070 library_names_spec='${libname}${release}.a $libname.a' 18071 soname_spec='${libname}${release}${shared_ext}$major' 18072 fi 18073 shlibpath_var=LIBPATH 18074 fi 18075 ;; 18076 18077amigaos*) 18078 library_names_spec='$libname.ixlibrary $libname.a' 18079 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18080 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' 18081 ;; 18082 18083beos*) 18084 library_names_spec='${libname}${shared_ext}' 18085 dynamic_linker="$host_os ld.so" 18086 shlibpath_var=LIBRARY_PATH 18087 ;; 18088 18089bsdi[45]*) 18090 version_type=linux 18091 need_version=no 18092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18093 soname_spec='${libname}${release}${shared_ext}$major' 18094 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18095 shlibpath_var=LD_LIBRARY_PATH 18096 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18097 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18098 # the default ld.so.conf also contains /usr/contrib/lib and 18099 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18100 # libtool to hard-code these into programs 18101 ;; 18102 18103cygwin* | mingw* | pw32*) 18104 version_type=windows 18105 shrext_cmds=".dll" 18106 need_version=no 18107 need_lib_prefix=no 18108 18109 case $GCC,$host_os in 18110 yes,cygwin* | yes,mingw* | yes,pw32*) 18111 library_names_spec='$libname.dll.a' 18112 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18113 postinstall_cmds='base_file=`basename \${file}`~ 18114 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18115 dldir=$destdir/`dirname \$dlpath`~ 18116 test -d \$dldir || mkdir -p \$dldir~ 18117 $install_prog $dir/$dlname \$dldir/$dlname~ 18118 chmod a+x \$dldir/$dlname' 18119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18120 dlpath=$dir/\$dldll~ 18121 $rm \$dlpath' 18122 shlibpath_overrides_runpath=yes 18123 18124 case $host_os in 18125 cygwin*) 18126 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18127 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18128 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18129 ;; 18130 mingw*) 18131 # MinGW DLLs use traditional 'lib' prefix 18132 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18133 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18134 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18135 # It is most probably a Windows format PATH printed by 18136 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18137 # path with ; separators, and with drive letters. We can handle the 18138 # drive letters (cygwin fileutils understands them), so leave them, 18139 # especially as we might pass files found there to a mingw objdump, 18140 # which wouldn't understand a cygwinified path. Ahh. 18141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18142 else 18143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18144 fi 18145 ;; 18146 pw32*) 18147 # pw32 DLLs use 'pw' prefix rather than 'lib' 18148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18149 ;; 18150 esac 18151 ;; 18152 18153 *) 18154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18155 ;; 18156 esac 18157 dynamic_linker='Win32 ld.exe' 18158 # FIXME: first we should search . and the directory the executable is in 18159 shlibpath_var=PATH 18160 ;; 18161 18162darwin* | rhapsody*) 18163 dynamic_linker="$host_os dyld" 18164 version_type=darwin 18165 need_lib_prefix=no 18166 need_version=no 18167 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18168 soname_spec='${libname}${release}${major}$shared_ext' 18169 shlibpath_overrides_runpath=yes 18170 shlibpath_var=DYLD_LIBRARY_PATH 18171 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18172 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18173 if test "$GCC" = yes; then 18174 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18175 else 18176 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18177 fi 18178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18179 ;; 18180 18181dgux*) 18182 version_type=linux 18183 need_lib_prefix=no 18184 need_version=no 18185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18186 soname_spec='${libname}${release}${shared_ext}$major' 18187 shlibpath_var=LD_LIBRARY_PATH 18188 ;; 18189 18190freebsd1*) 18191 dynamic_linker=no 18192 ;; 18193 18194freebsd* | dragonfly*) 18195 # DragonFly does not have aout. When/if they implement a new 18196 # versioning mechanism, adjust this. 18197 if test -x /usr/bin/objformat; then 18198 objformat=`/usr/bin/objformat` 18199 else 18200 case $host_os in 18201 freebsd[123]*) objformat=aout ;; 18202 *) objformat=elf ;; 18203 esac 18204 fi 18205 version_type=freebsd-$objformat 18206 case $version_type in 18207 freebsd-elf*) 18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18209 need_version=no 18210 need_lib_prefix=no 18211 ;; 18212 freebsd-*) 18213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18214 need_version=yes 18215 ;; 18216 esac 18217 shlibpath_var=LD_LIBRARY_PATH 18218 case $host_os in 18219 freebsd2*) 18220 shlibpath_overrides_runpath=yes 18221 ;; 18222 freebsd3.[01]* | freebsdelf3.[01]*) 18223 shlibpath_overrides_runpath=yes 18224 hardcode_into_libs=yes 18225 ;; 18226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18228 shlibpath_overrides_runpath=no 18229 hardcode_into_libs=yes 18230 ;; 18231 freebsd*) # from 4.6 on 18232 shlibpath_overrides_runpath=yes 18233 hardcode_into_libs=yes 18234 ;; 18235 esac 18236 ;; 18237 18238gnu*) 18239 version_type=linux 18240 need_lib_prefix=no 18241 need_version=no 18242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18243 soname_spec='${libname}${release}${shared_ext}$major' 18244 shlibpath_var=LD_LIBRARY_PATH 18245 hardcode_into_libs=yes 18246 ;; 18247 18248hpux9* | hpux10* | hpux11*) 18249 # Give a soname corresponding to the major version so that dld.sl refuses to 18250 # link against other versions. 18251 version_type=sunos 18252 need_lib_prefix=no 18253 need_version=no 18254 case $host_cpu in 18255 ia64*) 18256 shrext_cmds='.so' 18257 hardcode_into_libs=yes 18258 dynamic_linker="$host_os dld.so" 18259 shlibpath_var=LD_LIBRARY_PATH 18260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18262 soname_spec='${libname}${release}${shared_ext}$major' 18263 if test "X$HPUX_IA64_MODE" = X32; then 18264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18265 else 18266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18267 fi 18268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18269 ;; 18270 hppa*64*) 18271 shrext_cmds='.sl' 18272 hardcode_into_libs=yes 18273 dynamic_linker="$host_os dld.sl" 18274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18277 soname_spec='${libname}${release}${shared_ext}$major' 18278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18280 ;; 18281 *) 18282 shrext_cmds='.sl' 18283 dynamic_linker="$host_os dld.sl" 18284 shlibpath_var=SHLIB_PATH 18285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18287 soname_spec='${libname}${release}${shared_ext}$major' 18288 ;; 18289 esac 18290 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18291 postinstall_cmds='chmod 555 $lib' 18292 ;; 18293 18294interix3*) 18295 version_type=linux 18296 need_lib_prefix=no 18297 need_version=no 18298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18299 soname_spec='${libname}${release}${shared_ext}$major' 18300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18301 shlibpath_var=LD_LIBRARY_PATH 18302 shlibpath_overrides_runpath=no 18303 hardcode_into_libs=yes 18304 ;; 18305 18306irix5* | irix6* | nonstopux*) 18307 case $host_os in 18308 nonstopux*) version_type=nonstopux ;; 18309 *) 18310 if test "$lt_cv_prog_gnu_ld" = yes; then 18311 version_type=linux 18312 else 18313 version_type=irix 18314 fi ;; 18315 esac 18316 need_lib_prefix=no 18317 need_version=no 18318 soname_spec='${libname}${release}${shared_ext}$major' 18319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18320 case $host_os in 18321 irix5* | nonstopux*) 18322 libsuff= shlibsuff= 18323 ;; 18324 *) 18325 case $LD in # libtool.m4 will add one of these switches to LD 18326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18327 libsuff= shlibsuff= libmagic=32-bit;; 18328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18329 libsuff=32 shlibsuff=N32 libmagic=N32;; 18330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18331 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18332 *) libsuff= shlibsuff= libmagic=never-match;; 18333 esac 18334 ;; 18335 esac 18336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18337 shlibpath_overrides_runpath=no 18338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18340 hardcode_into_libs=yes 18341 ;; 18342 18343# No shared lib support for Linux oldld, aout, or coff. 18344linux*oldld* | linux*aout* | linux*coff*) 18345 dynamic_linker=no 18346 ;; 18347 18348# This must be Linux ELF. 18349linux* | k*bsd*-gnu) 18350 version_type=linux 18351 need_lib_prefix=no 18352 need_version=no 18353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18354 soname_spec='${libname}${release}${shared_ext}$major' 18355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18356 shlibpath_var=LD_LIBRARY_PATH 18357 shlibpath_overrides_runpath=no 18358 # This implies no fast_install, which is unacceptable. 18359 # Some rework will be needed to allow for fast_install 18360 # before this can be enabled. 18361 hardcode_into_libs=yes 18362 18363 # Append ld.so.conf contents to the search path 18364 if test -f /etc/ld.so.conf; then 18365 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18366 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18367 fi 18368 18369 # We used to test for /lib/ld.so.1 and disable shared libraries on 18370 # powerpc, because MkLinux only supported shared libraries with the 18371 # GNU dynamic linker. Since this was broken with cross compilers, 18372 # most powerpc-linux boxes support dynamic linking these days and 18373 # people can always --disable-shared, the test was removed, and we 18374 # assume the GNU/Linux dynamic linker is in use. 18375 dynamic_linker='GNU/Linux ld.so' 18376 ;; 18377 18378netbsdelf*-gnu) 18379 version_type=linux 18380 need_lib_prefix=no 18381 need_version=no 18382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18383 soname_spec='${libname}${release}${shared_ext}$major' 18384 shlibpath_var=LD_LIBRARY_PATH 18385 shlibpath_overrides_runpath=no 18386 hardcode_into_libs=yes 18387 dynamic_linker='NetBSD ld.elf_so' 18388 ;; 18389 18390netbsd*) 18391 version_type=sunos 18392 need_lib_prefix=no 18393 need_version=no 18394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18397 dynamic_linker='NetBSD (a.out) ld.so' 18398 else 18399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18400 soname_spec='${libname}${release}${shared_ext}$major' 18401 dynamic_linker='NetBSD ld.elf_so' 18402 fi 18403 shlibpath_var=LD_LIBRARY_PATH 18404 shlibpath_overrides_runpath=yes 18405 hardcode_into_libs=yes 18406 ;; 18407 18408newsos6) 18409 version_type=linux 18410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18411 shlibpath_var=LD_LIBRARY_PATH 18412 shlibpath_overrides_runpath=yes 18413 ;; 18414 18415nto-qnx*) 18416 version_type=linux 18417 need_lib_prefix=no 18418 need_version=no 18419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18420 soname_spec='${libname}${release}${shared_ext}$major' 18421 shlibpath_var=LD_LIBRARY_PATH 18422 shlibpath_overrides_runpath=yes 18423 ;; 18424 18425openbsd*) 18426 version_type=sunos 18427 sys_lib_dlsearch_path_spec="/usr/lib" 18428 need_lib_prefix=no 18429 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18430 case $host_os in 18431 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18432 *) need_version=no ;; 18433 esac 18434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18436 shlibpath_var=LD_LIBRARY_PATH 18437 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18438 case $host_os in 18439 openbsd2.[89] | openbsd2.[89].*) 18440 shlibpath_overrides_runpath=no 18441 ;; 18442 *) 18443 shlibpath_overrides_runpath=yes 18444 ;; 18445 esac 18446 else 18447 shlibpath_overrides_runpath=yes 18448 fi 18449 ;; 18450 18451os2*) 18452 libname_spec='$name' 18453 shrext_cmds=".dll" 18454 need_lib_prefix=no 18455 library_names_spec='$libname${shared_ext} $libname.a' 18456 dynamic_linker='OS/2 ld.exe' 18457 shlibpath_var=LIBPATH 18458 ;; 18459 18460osf3* | osf4* | osf5*) 18461 version_type=osf 18462 need_lib_prefix=no 18463 need_version=no 18464 soname_spec='${libname}${release}${shared_ext}$major' 18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18466 shlibpath_var=LD_LIBRARY_PATH 18467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18469 ;; 18470 18471solaris*) 18472 version_type=linux 18473 need_lib_prefix=no 18474 need_version=no 18475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18476 soname_spec='${libname}${release}${shared_ext}$major' 18477 shlibpath_var=LD_LIBRARY_PATH 18478 shlibpath_overrides_runpath=yes 18479 hardcode_into_libs=yes 18480 # ldd complains unless libraries are executable 18481 postinstall_cmds='chmod +x $lib' 18482 ;; 18483 18484sunos4*) 18485 version_type=sunos 18486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18487 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18488 shlibpath_var=LD_LIBRARY_PATH 18489 shlibpath_overrides_runpath=yes 18490 if test "$with_gnu_ld" = yes; then 18491 need_lib_prefix=no 18492 fi 18493 need_version=yes 18494 ;; 18495 18496sysv4 | sysv4.3*) 18497 version_type=linux 18498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18499 soname_spec='${libname}${release}${shared_ext}$major' 18500 shlibpath_var=LD_LIBRARY_PATH 18501 case $host_vendor in 18502 sni) 18503 shlibpath_overrides_runpath=no 18504 need_lib_prefix=no 18505 export_dynamic_flag_spec='${wl}-Blargedynsym' 18506 runpath_var=LD_RUN_PATH 18507 ;; 18508 siemens) 18509 need_lib_prefix=no 18510 ;; 18511 motorola) 18512 need_lib_prefix=no 18513 need_version=no 18514 shlibpath_overrides_runpath=no 18515 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18516 ;; 18517 esac 18518 ;; 18519 18520sysv4*MP*) 18521 if test -d /usr/nec ;then 18522 version_type=linux 18523 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18524 soname_spec='$libname${shared_ext}.$major' 18525 shlibpath_var=LD_LIBRARY_PATH 18526 fi 18527 ;; 18528 18529sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18530 version_type=freebsd-elf 18531 need_lib_prefix=no 18532 need_version=no 18533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18534 soname_spec='${libname}${release}${shared_ext}$major' 18535 shlibpath_var=LD_LIBRARY_PATH 18536 hardcode_into_libs=yes 18537 if test "$with_gnu_ld" = yes; then 18538 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18539 shlibpath_overrides_runpath=no 18540 else 18541 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18542 shlibpath_overrides_runpath=yes 18543 case $host_os in 18544 sco3.2v5*) 18545 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18546 ;; 18547 esac 18548 fi 18549 sys_lib_dlsearch_path_spec='/usr/lib' 18550 ;; 18551 18552uts4*) 18553 version_type=linux 18554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18555 soname_spec='${libname}${release}${shared_ext}$major' 18556 shlibpath_var=LD_LIBRARY_PATH 18557 ;; 18558 18559*) 18560 dynamic_linker=no 18561 ;; 18562esac 18563{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18564echo "${ECHO_T}$dynamic_linker" >&6; } 18565test "$dynamic_linker" = no && can_build_shared=no 18566 18567variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18568if test "$GCC" = yes; then 18569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18570fi 18571 18572{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18573echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18574hardcode_action_F77= 18575if test -n "$hardcode_libdir_flag_spec_F77" || \ 18576 test -n "$runpath_var_F77" || \ 18577 test "X$hardcode_automatic_F77" = "Xyes" ; then 18578 18579 # We can hardcode non-existant directories. 18580 if test "$hardcode_direct_F77" != no && 18581 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18582 # have to relink, otherwise we might link with an installed library 18583 # when we should be linking with a yet-to-be-installed one 18584 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 18585 test "$hardcode_minus_L_F77" != no; then 18586 # Linking always hardcodes the temporary library directory. 18587 hardcode_action_F77=relink 18588 else 18589 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18590 hardcode_action_F77=immediate 18591 fi 18592else 18593 # We cannot hardcode anything, or else we can only hardcode existing 18594 # directories. 18595 hardcode_action_F77=unsupported 18596fi 18597{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 18598echo "${ECHO_T}$hardcode_action_F77" >&6; } 18599 18600if test "$hardcode_action_F77" = relink; then 18601 # Fast installation is not supported 18602 enable_fast_install=no 18603elif test "$shlibpath_overrides_runpath" = yes || 18604 test "$enable_shared" = no; then 18605 # Fast installation is not necessary 18606 enable_fast_install=needless 18607fi 18608 18609 18610# The else clause should only fire when bootstrapping the 18611# libtool distribution, otherwise you forgot to ship ltmain.sh 18612# with your package, and you will get complaints that there are 18613# no rules to generate ltmain.sh. 18614if test -f "$ltmain"; then 18615 # See if we are running on zsh, and set the options which allow our commands through 18616 # without removal of \ escapes. 18617 if test -n "${ZSH_VERSION+set}" ; then 18618 setopt NO_GLOB_SUBST 18619 fi 18620 # Now quote all the things that may contain metacharacters while being 18621 # careful not to overquote the AC_SUBSTed values. We take copies of the 18622 # variables and quote the copies for generation of the libtool script. 18623 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18624 SED SHELL STRIP \ 18625 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18626 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18627 deplibs_check_method reload_flag reload_cmds need_locks \ 18628 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18629 lt_cv_sys_global_symbol_to_c_name_address \ 18630 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18631 old_postinstall_cmds old_postuninstall_cmds \ 18632 compiler_F77 \ 18633 CC_F77 \ 18634 LD_F77 \ 18635 lt_prog_compiler_wl_F77 \ 18636 lt_prog_compiler_pic_F77 \ 18637 lt_prog_compiler_static_F77 \ 18638 lt_prog_compiler_no_builtin_flag_F77 \ 18639 export_dynamic_flag_spec_F77 \ 18640 thread_safe_flag_spec_F77 \ 18641 whole_archive_flag_spec_F77 \ 18642 enable_shared_with_static_runtimes_F77 \ 18643 old_archive_cmds_F77 \ 18644 old_archive_from_new_cmds_F77 \ 18645 predep_objects_F77 \ 18646 postdep_objects_F77 \ 18647 predeps_F77 \ 18648 postdeps_F77 \ 18649 compiler_lib_search_path_F77 \ 18650 archive_cmds_F77 \ 18651 archive_expsym_cmds_F77 \ 18652 postinstall_cmds_F77 \ 18653 postuninstall_cmds_F77 \ 18654 old_archive_from_expsyms_cmds_F77 \ 18655 allow_undefined_flag_F77 \ 18656 no_undefined_flag_F77 \ 18657 export_symbols_cmds_F77 \ 18658 hardcode_libdir_flag_spec_F77 \ 18659 hardcode_libdir_flag_spec_ld_F77 \ 18660 hardcode_libdir_separator_F77 \ 18661 hardcode_automatic_F77 \ 18662 module_cmds_F77 \ 18663 module_expsym_cmds_F77 \ 18664 lt_cv_prog_compiler_c_o_F77 \ 18665 exclude_expsyms_F77 \ 18666 include_expsyms_F77; do 18667 18668 case $var in 18669 old_archive_cmds_F77 | \ 18670 old_archive_from_new_cmds_F77 | \ 18671 archive_cmds_F77 | \ 18672 archive_expsym_cmds_F77 | \ 18673 module_cmds_F77 | \ 18674 module_expsym_cmds_F77 | \ 18675 old_archive_from_expsyms_cmds_F77 | \ 18676 export_symbols_cmds_F77 | \ 18677 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18678 postinstall_cmds | postuninstall_cmds | \ 18679 old_postinstall_cmds | old_postuninstall_cmds | \ 18680 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18681 # Double-quote double-evaled strings. 18682 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18683 ;; 18684 *) 18685 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18686 ;; 18687 esac 18688 done 18689 18690 case $lt_echo in 18691 *'\$0 --fallback-echo"') 18692 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18693 ;; 18694 esac 18695 18696cfgfile="$ofile" 18697 18698 cat <<__EOF__ >> "$cfgfile" 18699# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18700 18701# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18702 18703# Shell to use when invoking shell scripts. 18704SHELL=$lt_SHELL 18705 18706# Whether or not to build shared libraries. 18707build_libtool_libs=$enable_shared 18708 18709# Whether or not to build static libraries. 18710build_old_libs=$enable_static 18711 18712# Whether or not to add -lc for building shared libraries. 18713build_libtool_need_lc=$archive_cmds_need_lc_F77 18714 18715# Whether or not to disallow shared libs when runtime libs are static 18716allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 18717 18718# Whether or not to optimize for fast installation. 18719fast_install=$enable_fast_install 18720 18721# The host system. 18722host_alias=$host_alias 18723host=$host 18724host_os=$host_os 18725 18726# The build system. 18727build_alias=$build_alias 18728build=$build 18729build_os=$build_os 18730 18731# An echo program that does not interpret backslashes. 18732echo=$lt_echo 18733 18734# The archiver. 18735AR=$lt_AR 18736AR_FLAGS=$lt_AR_FLAGS 18737 18738# A C compiler. 18739LTCC=$lt_LTCC 18740 18741# LTCC compiler flags. 18742LTCFLAGS=$lt_LTCFLAGS 18743 18744# A language-specific compiler. 18745CC=$lt_compiler_F77 18746 18747# Is the compiler the GNU C compiler? 18748with_gcc=$GCC_F77 18749 18750# An ERE matcher. 18751EGREP=$lt_EGREP 18752 18753# The linker used to build libraries. 18754LD=$lt_LD_F77 18755 18756# Whether we need hard or soft links. 18757LN_S=$lt_LN_S 18758 18759# A BSD-compatible nm program. 18760NM=$lt_NM 18761 18762# A symbol stripping program 18763STRIP=$lt_STRIP 18764 18765# Used to examine libraries when file_magic_cmd begins "file" 18766MAGIC_CMD=$MAGIC_CMD 18767 18768# Used on cygwin: DLL creation program. 18769DLLTOOL="$DLLTOOL" 18770 18771# Used on cygwin: object dumper. 18772OBJDUMP="$OBJDUMP" 18773 18774# Used on cygwin: assembler. 18775AS="$AS" 18776 18777# The name of the directory that contains temporary libtool files. 18778objdir=$objdir 18779 18780# How to create reloadable object files. 18781reload_flag=$lt_reload_flag 18782reload_cmds=$lt_reload_cmds 18783 18784# How to pass a linker flag through the compiler. 18785wl=$lt_lt_prog_compiler_wl_F77 18786 18787# Object file suffix (normally "o"). 18788objext="$ac_objext" 18789 18790# Old archive suffix (normally "a"). 18791libext="$libext" 18792 18793# Shared library suffix (normally ".so"). 18794shrext_cmds='$shrext_cmds' 18795 18796# Executable file suffix (normally ""). 18797exeext="$exeext" 18798 18799# Additional compiler flags for building library objects. 18800pic_flag=$lt_lt_prog_compiler_pic_F77 18801pic_mode=$pic_mode 18802 18803# What is the maximum length of a command? 18804max_cmd_len=$lt_cv_sys_max_cmd_len 18805 18806# Does compiler simultaneously support -c and -o options? 18807compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 18808 18809# Must we lock files when doing compilation? 18810need_locks=$lt_need_locks 18811 18812# Do we need the lib prefix for modules? 18813need_lib_prefix=$need_lib_prefix 18814 18815# Do we need a version for libraries? 18816need_version=$need_version 18817 18818# Whether dlopen is supported. 18819dlopen_support=$enable_dlopen 18820 18821# Whether dlopen of programs is supported. 18822dlopen_self=$enable_dlopen_self 18823 18824# Whether dlopen of statically linked programs is supported. 18825dlopen_self_static=$enable_dlopen_self_static 18826 18827# Compiler flag to prevent dynamic linking. 18828link_static_flag=$lt_lt_prog_compiler_static_F77 18829 18830# Compiler flag to turn off builtin functions. 18831no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 18832 18833# Compiler flag to allow reflexive dlopens. 18834export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 18835 18836# Compiler flag to generate shared objects directly from archives. 18837whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 18838 18839# Compiler flag to generate thread-safe objects. 18840thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 18841 18842# Library versioning type. 18843version_type=$version_type 18844 18845# Format of library name prefix. 18846libname_spec=$lt_libname_spec 18847 18848# List of archive names. First name is the real one, the rest are links. 18849# The last name is the one that the linker finds with -lNAME. 18850library_names_spec=$lt_library_names_spec 18851 18852# The coded name of the library, if different from the real name. 18853soname_spec=$lt_soname_spec 18854 18855# Commands used to build and install an old-style archive. 18856RANLIB=$lt_RANLIB 18857old_archive_cmds=$lt_old_archive_cmds_F77 18858old_postinstall_cmds=$lt_old_postinstall_cmds 18859old_postuninstall_cmds=$lt_old_postuninstall_cmds 18860 18861# Create an old-style archive from a shared archive. 18862old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 18863 18864# Create a temporary old-style archive to link instead of a shared archive. 18865old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 18866 18867# Commands used to build and install a shared archive. 18868archive_cmds=$lt_archive_cmds_F77 18869archive_expsym_cmds=$lt_archive_expsym_cmds_F77 18870postinstall_cmds=$lt_postinstall_cmds 18871postuninstall_cmds=$lt_postuninstall_cmds 18872 18873# Commands used to build a loadable module (assumed same as above if empty) 18874module_cmds=$lt_module_cmds_F77 18875module_expsym_cmds=$lt_module_expsym_cmds_F77 18876 18877# Commands to strip libraries. 18878old_striplib=$lt_old_striplib 18879striplib=$lt_striplib 18880 18881# Dependencies to place before the objects being linked to create a 18882# shared library. 18883predep_objects=$lt_predep_objects_F77 18884 18885# Dependencies to place after the objects being linked to create a 18886# shared library. 18887postdep_objects=$lt_postdep_objects_F77 18888 18889# Dependencies to place before the objects being linked to create a 18890# shared library. 18891predeps=$lt_predeps_F77 18892 18893# Dependencies to place after the objects being linked to create a 18894# shared library. 18895postdeps=$lt_postdeps_F77 18896 18897# The library search path used internally by the compiler when linking 18898# a shared library. 18899compiler_lib_search_path=$lt_compiler_lib_search_path_F77 18900 18901# Method to check whether dependent libraries are shared objects. 18902deplibs_check_method=$lt_deplibs_check_method 18903 18904# Command to use when deplibs_check_method == file_magic. 18905file_magic_cmd=$lt_file_magic_cmd 18906 18907# Flag that allows shared libraries with undefined symbols to be built. 18908allow_undefined_flag=$lt_allow_undefined_flag_F77 18909 18910# Flag that forces no undefined symbols. 18911no_undefined_flag=$lt_no_undefined_flag_F77 18912 18913# Commands used to finish a libtool library installation in a directory. 18914finish_cmds=$lt_finish_cmds 18915 18916# Same as above, but a single script fragment to be evaled but not shown. 18917finish_eval=$lt_finish_eval 18918 18919# Take the output of nm and produce a listing of raw symbols and C names. 18920global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18921 18922# Transform the output of nm in a proper C declaration 18923global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18924 18925# Transform the output of nm in a C name address pair 18926global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18927 18928# This is the shared library runtime path variable. 18929runpath_var=$runpath_var 18930 18931# This is the shared library path variable. 18932shlibpath_var=$shlibpath_var 18933 18934# Is shlibpath searched before the hard-coded library search path? 18935shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18936 18937# How to hardcode a shared library path into an executable. 18938hardcode_action=$hardcode_action_F77 18939 18940# Whether we should hardcode library paths into libraries. 18941hardcode_into_libs=$hardcode_into_libs 18942 18943# Flag to hardcode \$libdir into a binary during linking. 18944# This must work even if \$libdir does not exist. 18945hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 18946 18947# If ld is used when linking, flag to hardcode \$libdir into 18948# a binary during linking. This must work even if \$libdir does 18949# not exist. 18950hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 18951 18952# Whether we need a single -rpath flag with a separated argument. 18953hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 18954 18955# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18956# resulting binary. 18957hardcode_direct=$hardcode_direct_F77 18958 18959# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18960# resulting binary. 18961hardcode_minus_L=$hardcode_minus_L_F77 18962 18963# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18964# the resulting binary. 18965hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 18966 18967# Set to yes if building a shared library automatically hardcodes DIR into the library 18968# and all subsequent libraries and executables linked against it. 18969hardcode_automatic=$hardcode_automatic_F77 18970 18971# Variables whose values should be saved in libtool wrapper scripts and 18972# restored at relink time. 18973variables_saved_for_relink="$variables_saved_for_relink" 18974 18975# Whether libtool must link a program against all its dependency libraries. 18976link_all_deplibs=$link_all_deplibs_F77 18977 18978# Compile-time system search path for libraries 18979sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18980 18981# Run-time system search path for libraries 18982sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18983 18984# Fix the shell variable \$srcfile for the compiler. 18985fix_srcfile_path="$fix_srcfile_path_F77" 18986 18987# Set to yes if exported symbols are required. 18988always_export_symbols=$always_export_symbols_F77 18989 18990# The commands to list exported symbols. 18991export_symbols_cmds=$lt_export_symbols_cmds_F77 18992 18993# The commands to extract the exported symbol list from a shared archive. 18994extract_expsyms_cmds=$lt_extract_expsyms_cmds 18995 18996# Symbols that should not be listed in the preloaded symbols. 18997exclude_expsyms=$lt_exclude_expsyms_F77 18998 18999# Symbols that must always be exported. 19000include_expsyms=$lt_include_expsyms_F77 19001 19002# ### END LIBTOOL TAG CONFIG: $tagname 19003 19004__EOF__ 19005 19006 19007else 19008 # If there is no Makefile yet, we rely on a make rule to execute 19009 # `config.status --recheck' to rerun these tests and create the 19010 # libtool script then. 19011 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19012 if test -f "$ltmain_in"; then 19013 test -f Makefile && make "$ltmain" 19014 fi 19015fi 19016 19017 19018ac_ext=c 19019ac_cpp='$CPP $CPPFLAGS' 19020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19022ac_compiler_gnu=$ac_cv_c_compiler_gnu 19023 19024CC="$lt_save_CC" 19025 19026 else 19027 tagname="" 19028 fi 19029 ;; 19030 19031 GCJ) 19032 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 19033 19034 19035# Source file extension for Java test sources. 19036ac_ext=java 19037 19038# Object file extension for compiled Java test sources. 19039objext=o 19040objext_GCJ=$objext 19041 19042# Code to be used in simple compile tests 19043lt_simple_compile_test_code="class foo {}\n" 19044 19045# Code to be used in simple link tests 19046lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 19047 19048# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19049 19050# If no C compiler was specified, use CC. 19051LTCC=${LTCC-"$CC"} 19052 19053# If no C compiler flags were specified, use CFLAGS. 19054LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19055 19056# Allow CC to be a program name with arguments. 19057compiler=$CC 19058 19059 19060# save warnings/boilerplate of simple test code 19061ac_outfile=conftest.$ac_objext 19062printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19063eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19064_lt_compiler_boilerplate=`cat conftest.err` 19065$rm conftest* 19066 19067ac_outfile=conftest.$ac_objext 19068printf "$lt_simple_link_test_code" >conftest.$ac_ext 19069eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19070_lt_linker_boilerplate=`cat conftest.err` 19071$rm conftest* 19072 19073 19074# Allow CC to be a program name with arguments. 19075lt_save_CC="$CC" 19076CC=${GCJ-"gcj"} 19077compiler=$CC 19078compiler_GCJ=$CC 19079for cc_temp in $compiler""; do 19080 case $cc_temp in 19081 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19082 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19083 \-*) ;; 19084 *) break;; 19085 esac 19086done 19087cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19088 19089 19090# GCJ did not exist at the time GCC didn't implicitly link libc in. 19091archive_cmds_need_lc_GCJ=no 19092 19093old_archive_cmds_GCJ=$old_archive_cmds 19094 19095 19096lt_prog_compiler_no_builtin_flag_GCJ= 19097 19098if test "$GCC" = yes; then 19099 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 19100 19101 19102{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 19103echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 19104if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 19105 echo $ECHO_N "(cached) $ECHO_C" >&6 19106else 19107 lt_cv_prog_compiler_rtti_exceptions=no 19108 ac_outfile=conftest.$ac_objext 19109 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 19110 lt_compiler_flag="-fno-rtti -fno-exceptions" 19111 # Insert the option either (1) after the last *FLAGS variable, or 19112 # (2) before a word containing "conftest.", or (3) at the end. 19113 # Note that $ac_compile itself does not contain backslashes and begins 19114 # with a dollar sign (not a hyphen), so the echo should work correctly. 19115 # The option is referenced via a variable to avoid confusing sed. 19116 lt_compile=`echo "$ac_compile" | $SED \ 19117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19119 -e 's:$: $lt_compiler_flag:'` 19120 (eval echo "\"\$as_me:19120: $lt_compile\"" >&5) 19121 (eval "$lt_compile" 2>conftest.err) 19122 ac_status=$? 19123 cat conftest.err >&5 19124 echo "$as_me:19124: \$? = $ac_status" >&5 19125 if (exit $ac_status) && test -s "$ac_outfile"; then 19126 # The compiler can only warn and ignore the option if not recognized 19127 # So say no if there are warnings other than the usual output. 19128 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 19129 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19130 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19131 lt_cv_prog_compiler_rtti_exceptions=yes 19132 fi 19133 fi 19134 $rm conftest* 19135 19136fi 19137{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 19138echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 19139 19140if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 19141 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 19142else 19143 : 19144fi 19145 19146fi 19147 19148lt_prog_compiler_wl_GCJ= 19149lt_prog_compiler_pic_GCJ= 19150lt_prog_compiler_static_GCJ= 19151 19152{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 19153echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 19154 19155 if test "$GCC" = yes; then 19156 lt_prog_compiler_wl_GCJ='-Wl,' 19157 lt_prog_compiler_static_GCJ='-static' 19158 19159 case $host_os in 19160 aix*) 19161 # All AIX code is PIC. 19162 if test "$host_cpu" = ia64; then 19163 # AIX 5 now supports IA64 processor 19164 lt_prog_compiler_static_GCJ='-Bstatic' 19165 fi 19166 ;; 19167 19168 amigaos*) 19169 # FIXME: we need at least 68020 code to build shared libraries, but 19170 # adding the `-m68020' flag to GCC prevents building anything better, 19171 # like `-m68040'. 19172 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 19173 ;; 19174 19175 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19176 # PIC is the default for these OSes. 19177 ;; 19178 19179 mingw* | pw32* | os2*) 19180 # This hack is so that the source file can tell whether it is being 19181 # built for inclusion in a dll (and should export symbols for example). 19182 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 19183 ;; 19184 19185 darwin* | rhapsody*) 19186 # PIC is the default on this platform 19187 # Common symbols not allowed in MH_DYLIB files 19188 lt_prog_compiler_pic_GCJ='-fno-common' 19189 ;; 19190 19191 interix3*) 19192 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19193 # Instead, we relocate shared libraries at runtime. 19194 ;; 19195 19196 msdosdjgpp*) 19197 # Just because we use GCC doesn't mean we suddenly get shared libraries 19198 # on systems that don't support them. 19199 lt_prog_compiler_can_build_shared_GCJ=no 19200 enable_shared=no 19201 ;; 19202 19203 sysv4*MP*) 19204 if test -d /usr/nec; then 19205 lt_prog_compiler_pic_GCJ=-Kconform_pic 19206 fi 19207 ;; 19208 19209 hpux*) 19210 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19211 # not for PA HP-UX. 19212 case $host_cpu in 19213 hppa*64*|ia64*) 19214 # +Z the default 19215 ;; 19216 *) 19217 lt_prog_compiler_pic_GCJ='-fPIC' 19218 ;; 19219 esac 19220 ;; 19221 19222 *) 19223 lt_prog_compiler_pic_GCJ='-fPIC' 19224 ;; 19225 esac 19226 else 19227 # PORTME Check for flag to pass linker flags through the system compiler. 19228 case $host_os in 19229 aix*) 19230 lt_prog_compiler_wl_GCJ='-Wl,' 19231 if test "$host_cpu" = ia64; then 19232 # AIX 5 now supports IA64 processor 19233 lt_prog_compiler_static_GCJ='-Bstatic' 19234 else 19235 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 19236 fi 19237 ;; 19238 darwin*) 19239 # PIC is the default on this platform 19240 # Common symbols not allowed in MH_DYLIB files 19241 case $cc_basename in 19242 xlc*) 19243 lt_prog_compiler_pic_GCJ='-qnocommon' 19244 lt_prog_compiler_wl_GCJ='-Wl,' 19245 ;; 19246 esac 19247 ;; 19248 19249 mingw* | pw32* | os2*) 19250 # This hack is so that the source file can tell whether it is being 19251 # built for inclusion in a dll (and should export symbols for example). 19252 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 19253 ;; 19254 19255 hpux9* | hpux10* | hpux11*) 19256 lt_prog_compiler_wl_GCJ='-Wl,' 19257 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19258 # not for PA HP-UX. 19259 case $host_cpu in 19260 hppa*64*|ia64*) 19261 # +Z the default 19262 ;; 19263 *) 19264 lt_prog_compiler_pic_GCJ='+Z' 19265 ;; 19266 esac 19267 # Is there a better lt_prog_compiler_static that works with the bundled CC? 19268 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 19269 ;; 19270 19271 irix5* | irix6* | nonstopux*) 19272 lt_prog_compiler_wl_GCJ='-Wl,' 19273 # PIC (with -KPIC) is the default. 19274 lt_prog_compiler_static_GCJ='-non_shared' 19275 ;; 19276 19277 newsos6) 19278 lt_prog_compiler_pic_GCJ='-KPIC' 19279 lt_prog_compiler_static_GCJ='-Bstatic' 19280 ;; 19281 19282 linux* | k*bsd*-gnu) 19283 case $cc_basename in 19284 icc* | ecc*) 19285 lt_prog_compiler_wl_GCJ='-Wl,' 19286 lt_prog_compiler_pic_GCJ='-KPIC' 19287 lt_prog_compiler_static_GCJ='-static' 19288 ;; 19289 pgcc* | pgf77* | pgf90* | pgf95*) 19290 # Portland Group compilers (*not* the Pentium gcc compiler, 19291 # which looks to be a dead project) 19292 lt_prog_compiler_wl_GCJ='-Wl,' 19293 lt_prog_compiler_pic_GCJ='-fpic' 19294 lt_prog_compiler_static_GCJ='-Bstatic' 19295 ;; 19296 ccc*) 19297 lt_prog_compiler_wl_GCJ='-Wl,' 19298 # All Alpha code is PIC. 19299 lt_prog_compiler_static_GCJ='-non_shared' 19300 ;; 19301 esac 19302 ;; 19303 19304 osf3* | osf4* | osf5*) 19305 lt_prog_compiler_wl_GCJ='-Wl,' 19306 # All OSF/1 code is PIC. 19307 lt_prog_compiler_static_GCJ='-non_shared' 19308 ;; 19309 19310 solaris*) 19311 lt_prog_compiler_pic_GCJ='-KPIC' 19312 lt_prog_compiler_static_GCJ='-Bstatic' 19313 case $cc_basename in 19314 f77* | f90* | f95*) 19315 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 19316 *) 19317 lt_prog_compiler_wl_GCJ='-Wl,';; 19318 esac 19319 ;; 19320 19321 sunos4*) 19322 lt_prog_compiler_wl_GCJ='-Qoption ld ' 19323 lt_prog_compiler_pic_GCJ='-PIC' 19324 lt_prog_compiler_static_GCJ='-Bstatic' 19325 ;; 19326 19327 sysv4 | sysv4.2uw2* | sysv4.3*) 19328 lt_prog_compiler_wl_GCJ='-Wl,' 19329 lt_prog_compiler_pic_GCJ='-KPIC' 19330 lt_prog_compiler_static_GCJ='-Bstatic' 19331 ;; 19332 19333 sysv4*MP*) 19334 if test -d /usr/nec ;then 19335 lt_prog_compiler_pic_GCJ='-Kconform_pic' 19336 lt_prog_compiler_static_GCJ='-Bstatic' 19337 fi 19338 ;; 19339 19340 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19341 lt_prog_compiler_wl_GCJ='-Wl,' 19342 lt_prog_compiler_pic_GCJ='-KPIC' 19343 lt_prog_compiler_static_GCJ='-Bstatic' 19344 ;; 19345 19346 unicos*) 19347 lt_prog_compiler_wl_GCJ='-Wl,' 19348 lt_prog_compiler_can_build_shared_GCJ=no 19349 ;; 19350 19351 uts4*) 19352 lt_prog_compiler_pic_GCJ='-pic' 19353 lt_prog_compiler_static_GCJ='-Bstatic' 19354 ;; 19355 19356 *) 19357 lt_prog_compiler_can_build_shared_GCJ=no 19358 ;; 19359 esac 19360 fi 19361 19362{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 19363echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 19364 19365# 19366# Check to make sure the PIC flag actually works. 19367# 19368if test -n "$lt_prog_compiler_pic_GCJ"; then 19369 19370{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 19371echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 19372if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 19373 echo $ECHO_N "(cached) $ECHO_C" >&6 19374else 19375 lt_prog_compiler_pic_works_GCJ=no 19376 ac_outfile=conftest.$ac_objext 19377 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 19378 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 19379 # Insert the option either (1) after the last *FLAGS variable, or 19380 # (2) before a word containing "conftest.", or (3) at the end. 19381 # Note that $ac_compile itself does not contain backslashes and begins 19382 # with a dollar sign (not a hyphen), so the echo should work correctly. 19383 # The option is referenced via a variable to avoid confusing sed. 19384 lt_compile=`echo "$ac_compile" | $SED \ 19385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19387 -e 's:$: $lt_compiler_flag:'` 19388 (eval echo "\"\$as_me:19388: $lt_compile\"" >&5) 19389 (eval "$lt_compile" 2>conftest.err) 19390 ac_status=$? 19391 cat conftest.err >&5 19392 echo "$as_me:19392: \$? = $ac_status" >&5 19393 if (exit $ac_status) && test -s "$ac_outfile"; then 19394 # The compiler can only warn and ignore the option if not recognized 19395 # So say no if there are warnings other than the usual output. 19396 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 19397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19399 lt_prog_compiler_pic_works_GCJ=yes 19400 fi 19401 fi 19402 $rm conftest* 19403 19404fi 19405{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 19406echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 19407 19408if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 19409 case $lt_prog_compiler_pic_GCJ in 19410 "" | " "*) ;; 19411 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 19412 esac 19413else 19414 lt_prog_compiler_pic_GCJ= 19415 lt_prog_compiler_can_build_shared_GCJ=no 19416fi 19417 19418fi 19419case $host_os in 19420 # For platforms which do not support PIC, -DPIC is meaningless: 19421 *djgpp*) 19422 lt_prog_compiler_pic_GCJ= 19423 ;; 19424 *) 19425 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 19426 ;; 19427esac 19428 19429# 19430# Check to make sure the static flag actually works. 19431# 19432wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 19433{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19434echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 19435if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 19436 echo $ECHO_N "(cached) $ECHO_C" >&6 19437else 19438 lt_prog_compiler_static_works_GCJ=no 19439 save_LDFLAGS="$LDFLAGS" 19440 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19441 printf "$lt_simple_link_test_code" > conftest.$ac_ext 19442 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19443 # The linker can only warn and ignore the option if not recognized 19444 # So say no if there are warnings 19445 if test -s conftest.err; then 19446 # Append any errors to the config.log. 19447 cat conftest.err 1>&5 19448 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 19449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19450 if diff conftest.exp conftest.er2 >/dev/null; then 19451 lt_prog_compiler_static_works_GCJ=yes 19452 fi 19453 else 19454 lt_prog_compiler_static_works_GCJ=yes 19455 fi 19456 fi 19457 $rm conftest* 19458 LDFLAGS="$save_LDFLAGS" 19459 19460fi 19461{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 19462echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 19463 19464if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 19465 : 19466else 19467 lt_prog_compiler_static_GCJ= 19468fi 19469 19470 19471{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 19472echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 19473if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 19474 echo $ECHO_N "(cached) $ECHO_C" >&6 19475else 19476 lt_cv_prog_compiler_c_o_GCJ=no 19477 $rm -r conftest 2>/dev/null 19478 mkdir conftest 19479 cd conftest 19480 mkdir out 19481 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 19482 19483 lt_compiler_flag="-o out/conftest2.$ac_objext" 19484 # Insert the option either (1) after the last *FLAGS variable, or 19485 # (2) before a word containing "conftest.", or (3) at the end. 19486 # Note that $ac_compile itself does not contain backslashes and begins 19487 # with a dollar sign (not a hyphen), so the echo should work correctly. 19488 lt_compile=`echo "$ac_compile" | $SED \ 19489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19491 -e 's:$: $lt_compiler_flag:'` 19492 (eval echo "\"\$as_me:19492: $lt_compile\"" >&5) 19493 (eval "$lt_compile" 2>out/conftest.err) 19494 ac_status=$? 19495 cat out/conftest.err >&5 19496 echo "$as_me:19496: \$? = $ac_status" >&5 19497 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19498 then 19499 # The compiler can only warn and ignore the option if not recognized 19500 # So say no if there are warnings 19501 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 19502 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19503 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19504 lt_cv_prog_compiler_c_o_GCJ=yes 19505 fi 19506 fi 19507 chmod u+w . 2>&5 19508 $rm conftest* 19509 # SGI C++ compiler will create directory out/ii_files/ for 19510 # template instantiation 19511 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 19512 $rm out/* && rmdir out 19513 cd .. 19514 rmdir conftest 19515 $rm conftest* 19516 19517fi 19518{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 19519echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 19520 19521 19522hard_links="nottested" 19523if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 19524 # do not overwrite the value of need_locks provided by the user 19525 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 19526echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 19527 hard_links=yes 19528 $rm conftest* 19529 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19530 touch conftest.a 19531 ln conftest.a conftest.b 2>&5 || hard_links=no 19532 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19533 { echo "$as_me:$LINENO: result: $hard_links" >&5 19534echo "${ECHO_T}$hard_links" >&6; } 19535 if test "$hard_links" = no; then 19536 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 19537echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 19538 need_locks=warn 19539 fi 19540else 19541 need_locks=no 19542fi 19543 19544{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19545echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 19546 19547 runpath_var= 19548 allow_undefined_flag_GCJ= 19549 enable_shared_with_static_runtimes_GCJ=no 19550 archive_cmds_GCJ= 19551 archive_expsym_cmds_GCJ= 19552 old_archive_From_new_cmds_GCJ= 19553 old_archive_from_expsyms_cmds_GCJ= 19554 export_dynamic_flag_spec_GCJ= 19555 whole_archive_flag_spec_GCJ= 19556 thread_safe_flag_spec_GCJ= 19557 hardcode_libdir_flag_spec_GCJ= 19558 hardcode_libdir_flag_spec_ld_GCJ= 19559 hardcode_libdir_separator_GCJ= 19560 hardcode_direct_GCJ=no 19561 hardcode_minus_L_GCJ=no 19562 hardcode_shlibpath_var_GCJ=unsupported 19563 link_all_deplibs_GCJ=unknown 19564 hardcode_automatic_GCJ=no 19565 module_cmds_GCJ= 19566 module_expsym_cmds_GCJ= 19567 always_export_symbols_GCJ=no 19568 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19569 # include_expsyms should be a list of space-separated symbols to be *always* 19570 # included in the symbol list 19571 include_expsyms_GCJ= 19572 # exclude_expsyms can be an extended regexp of symbols to exclude 19573 # it will be wrapped by ` (' and `)$', so one must not match beginning or 19574 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 19575 # as well as any symbol that contains `d'. 19576 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 19577 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 19578 # platforms (ab)use it in PIC code, but their linkers get confused if 19579 # the symbol is explicitly referenced. Since portable code cannot 19580 # rely on this symbol name, it's probably fine to never include it in 19581 # preloaded symbol tables. 19582 extract_expsyms_cmds= 19583 # Just being paranoid about ensuring that cc_basename is set. 19584 for cc_temp in $compiler""; do 19585 case $cc_temp in 19586 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19587 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19588 \-*) ;; 19589 *) break;; 19590 esac 19591done 19592cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19593 19594 case $host_os in 19595 cygwin* | mingw* | pw32*) 19596 # FIXME: the MSVC++ port hasn't been tested in a loooong time 19597 # When not using gcc, we currently assume that we are using 19598 # Microsoft Visual C++. 19599 if test "$GCC" != yes; then 19600 with_gnu_ld=no 19601 fi 19602 ;; 19603 interix*) 19604 # we just hope/assume this is gcc and not c89 (= MSVC++) 19605 with_gnu_ld=yes 19606 ;; 19607 openbsd*) 19608 with_gnu_ld=no 19609 ;; 19610 esac 19611 19612 ld_shlibs_GCJ=yes 19613 if test "$with_gnu_ld" = yes; then 19614 # If archive_cmds runs LD, not CC, wlarc should be empty 19615 wlarc='${wl}' 19616 19617 # Set some defaults for GNU ld with shared library support. These 19618 # are reset later if shared libraries are not supported. Putting them 19619 # here allows them to be overridden if necessary. 19620 runpath_var=LD_RUN_PATH 19621 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 19622 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 19623 # ancient GNU ld didn't support --whole-archive et. al. 19624 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 19625 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 19626 else 19627 whole_archive_flag_spec_GCJ= 19628 fi 19629 supports_anon_versioning=no 19630 case `$LD -v 2>/dev/null` in 19631 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 19632 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 19633 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 19634 *\ 2.11.*) ;; # other 2.11 versions 19635 *) supports_anon_versioning=yes ;; 19636 esac 19637 19638 # See if GNU ld supports shared libraries. 19639 case $host_os in 19640 aix3* | aix4* | aix5*) 19641 # On AIX/PPC, the GNU linker is very broken 19642 if test "$host_cpu" != ia64; then 19643 ld_shlibs_GCJ=no 19644 cat <<EOF 1>&2 19645 19646*** Warning: the GNU linker, at least up to release 2.9.1, is reported 19647*** to be unable to reliably create shared libraries on AIX. 19648*** Therefore, libtool is disabling shared libraries support. If you 19649*** really care for shared libraries, you may want to modify your PATH 19650*** so that a non-GNU linker is found, and then restart. 19651 19652EOF 19653 fi 19654 ;; 19655 19656 amigaos*) 19657 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)' 19658 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19659 hardcode_minus_L_GCJ=yes 19660 19661 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 19662 # that the semantics of dynamic libraries on AmigaOS, at least up 19663 # to version 4, is to share data among multiple programs linked 19664 # with the same dynamic library. Since this doesn't match the 19665 # behavior of shared libraries on other platforms, we can't use 19666 # them. 19667 ld_shlibs_GCJ=no 19668 ;; 19669 19670 beos*) 19671 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 19672 allow_undefined_flag_GCJ=unsupported 19673 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19674 # support --undefined. This deserves some investigation. FIXME 19675 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19676 else 19677 ld_shlibs_GCJ=no 19678 fi 19679 ;; 19680 19681 cygwin* | mingw* | pw32*) 19682 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 19683 # as there is no search path for DLLs. 19684 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19685 allow_undefined_flag_GCJ=unsupported 19686 always_export_symbols_GCJ=no 19687 enable_shared_with_static_runtimes_GCJ=yes 19688 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 19689 19690 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 19691 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19692 # If the export-symbols file already is a .def file (1st line 19693 # is EXPORTS), use it as is; otherwise, prepend... 19694 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 19695 cp $export_symbols $output_objdir/$soname.def; 19696 else 19697 echo EXPORTS > $output_objdir/$soname.def; 19698 cat $export_symbols >> $output_objdir/$soname.def; 19699 fi~ 19700 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19701 else 19702 ld_shlibs_GCJ=no 19703 fi 19704 ;; 19705 19706 interix3*) 19707 hardcode_direct_GCJ=no 19708 hardcode_shlibpath_var_GCJ=no 19709 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19710 export_dynamic_flag_spec_GCJ='${wl}-E' 19711 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19712 # Instead, shared libraries are loaded at an image base (0x10000000 by 19713 # default) and relocated if they conflict, which is a slow very memory 19714 # consuming and fragmenting process. To avoid this, we pick a random, 19715 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19716 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19717 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' 19718 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' 19719 ;; 19720 19721 linux* | k*bsd*-gnu) 19722 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 19723 tmp_addflag= 19724 case $cc_basename,$host_cpu in 19725 pgcc*) # Portland Group C compiler 19726 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' 19727 tmp_addflag=' $pic_flag' 19728 ;; 19729 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 19730 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' 19731 tmp_addflag=' $pic_flag -Mnomain' ;; 19732 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 19733 tmp_addflag=' -i_dynamic' ;; 19734 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 19735 tmp_addflag=' -i_dynamic -nofor_main' ;; 19736 ifc* | ifort*) # Intel Fortran compiler 19737 tmp_addflag=' -nofor_main' ;; 19738 esac 19739 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19740 19741 if test $supports_anon_versioning = yes; then 19742 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 19743 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19744 $echo "local: *; };" >> $output_objdir/$libname.ver~ 19745 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 19746 fi 19747 link_all_deplibs_GCJ=no 19748 else 19749 ld_shlibs_GCJ=no 19750 fi 19751 ;; 19752 19753 netbsd* | netbsdelf*-gnu) 19754 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19755 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 19756 wlarc= 19757 else 19758 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19759 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19760 fi 19761 ;; 19762 19763 solaris*) 19764 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 19765 ld_shlibs_GCJ=no 19766 cat <<EOF 1>&2 19767 19768*** Warning: The releases 2.8.* of the GNU linker cannot reliably 19769*** create shared libraries on Solaris systems. Therefore, libtool 19770*** is disabling shared libraries support. We urge you to upgrade GNU 19771*** binutils to release 2.9.1 or newer. Another option is to modify 19772*** your PATH or compiler configuration so that the native linker is 19773*** used, and then restart. 19774 19775EOF 19776 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 19777 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19778 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19779 else 19780 ld_shlibs_GCJ=no 19781 fi 19782 ;; 19783 19784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 19785 case `$LD -v 2>&1` in 19786 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 19787 ld_shlibs_GCJ=no 19788 cat <<_LT_EOF 1>&2 19789 19790*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 19791*** reliably create shared libraries on SCO systems. Therefore, libtool 19792*** is disabling shared libraries support. We urge you to upgrade GNU 19793*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 19794*** your PATH or compiler configuration so that the native linker is 19795*** used, and then restart. 19796 19797_LT_EOF 19798 ;; 19799 *) 19800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 19801 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 19802 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 19803 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 19804 else 19805 ld_shlibs_GCJ=no 19806 fi 19807 ;; 19808 esac 19809 ;; 19810 19811 sunos4*) 19812 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19813 wlarc= 19814 hardcode_direct_GCJ=yes 19815 hardcode_shlibpath_var_GCJ=no 19816 ;; 19817 19818 *) 19819 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 19820 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19821 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19822 else 19823 ld_shlibs_GCJ=no 19824 fi 19825 ;; 19826 esac 19827 19828 if test "$ld_shlibs_GCJ" = no; then 19829 runpath_var= 19830 hardcode_libdir_flag_spec_GCJ= 19831 export_dynamic_flag_spec_GCJ= 19832 whole_archive_flag_spec_GCJ= 19833 fi 19834 else 19835 # PORTME fill in a description of your system's linker (not GNU ld) 19836 case $host_os in 19837 aix3*) 19838 allow_undefined_flag_GCJ=unsupported 19839 always_export_symbols_GCJ=yes 19840 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' 19841 # Note: this linker hardcodes the directories in LIBPATH if there 19842 # are no directories specified by -L. 19843 hardcode_minus_L_GCJ=yes 19844 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 19845 # Neither direct hardcoding nor static linking is supported with a 19846 # broken collect2. 19847 hardcode_direct_GCJ=unsupported 19848 fi 19849 ;; 19850 19851 aix4* | aix5*) 19852 if test "$host_cpu" = ia64; then 19853 # On IA64, the linker does run time linking by default, so we don't 19854 # have to do anything special. 19855 aix_use_runtimelinking=no 19856 exp_sym_flag='-Bexport' 19857 no_entry_flag="" 19858 else 19859 # If we're using GNU nm, then we don't want the "-C" option. 19860 # -C means demangle to AIX nm, but means don't demangle with GNU nm 19861 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 19862 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' 19863 else 19864 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' 19865 fi 19866 aix_use_runtimelinking=no 19867 19868 # Test if we are trying to use run time linking or normal 19869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 19870 # need to do runtime linking. 19871 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 19872 for ld_flag in $LDFLAGS; do 19873 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 19874 aix_use_runtimelinking=yes 19875 break 19876 fi 19877 done 19878 ;; 19879 esac 19880 19881 exp_sym_flag='-bexport' 19882 no_entry_flag='-bnoentry' 19883 fi 19884 19885 # When large executables or shared objects are built, AIX ld can 19886 # have problems creating the table of contents. If linking a library 19887 # or program results in "error TOC overflow" add -mminimal-toc to 19888 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 19889 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 19890 19891 archive_cmds_GCJ='' 19892 hardcode_direct_GCJ=yes 19893 hardcode_libdir_separator_GCJ=':' 19894 link_all_deplibs_GCJ=yes 19895 19896 if test "$GCC" = yes; then 19897 case $host_os in aix4.[012]|aix4.[012].*) 19898 # We only want to do this on AIX 4.2 and lower, the check 19899 # below for broken collect2 doesn't work under 4.3+ 19900 collect2name=`${CC} -print-prog-name=collect2` 19901 if test -f "$collect2name" && \ 19902 strings "$collect2name" | grep resolve_lib_name >/dev/null 19903 then 19904 # We have reworked collect2 19905 hardcode_direct_GCJ=yes 19906 else 19907 # We have old collect2 19908 hardcode_direct_GCJ=unsupported 19909 # It fails to find uninstalled libraries when the uninstalled 19910 # path is not listed in the libpath. Setting hardcode_minus_L 19911 # to unsupported forces relinking 19912 hardcode_minus_L_GCJ=yes 19913 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19914 hardcode_libdir_separator_GCJ= 19915 fi 19916 ;; 19917 esac 19918 shared_flag='-shared' 19919 if test "$aix_use_runtimelinking" = yes; then 19920 shared_flag="$shared_flag "'${wl}-G' 19921 fi 19922 else 19923 # not using gcc 19924 if test "$host_cpu" = ia64; then 19925 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 19926 # chokes on -Wl,-G. The following line is correct: 19927 shared_flag='-G' 19928 else 19929 if test "$aix_use_runtimelinking" = yes; then 19930 shared_flag='${wl}-G' 19931 else 19932 shared_flag='${wl}-bM:SRE' 19933 fi 19934 fi 19935 fi 19936 19937 # It seems that -bexpall does not export symbols beginning with 19938 # underscore (_), so it is better to generate a list of symbols to export. 19939 always_export_symbols_GCJ=yes 19940 if test "$aix_use_runtimelinking" = yes; then 19941 # Warning - without using the other runtime loading flags (-brtl), 19942 # -berok will link without error, but may produce a broken library. 19943 allow_undefined_flag_GCJ='-berok' 19944 # Determine the default libpath from the value encoded in an empty executable. 19945 cat >conftest.$ac_ext <<_ACEOF 19946/* confdefs.h. */ 19947_ACEOF 19948cat confdefs.h >>conftest.$ac_ext 19949cat >>conftest.$ac_ext <<_ACEOF 19950/* end confdefs.h. */ 19951 19952int 19953main () 19954{ 19955 19956 ; 19957 return 0; 19958} 19959_ACEOF 19960rm -f conftest.$ac_objext conftest$ac_exeext 19961if { (ac_try="$ac_link" 19962case "(($ac_try" in 19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19964 *) ac_try_echo=$ac_try;; 19965esac 19966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19967 (eval "$ac_link") 2>conftest.er1 19968 ac_status=$? 19969 grep -v '^ *+' conftest.er1 >conftest.err 19970 rm -f conftest.er1 19971 cat conftest.err >&5 19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19973 (exit $ac_status); } && { 19974 test -z "$ac_c_werror_flag" || 19975 test ! -s conftest.err 19976 } && test -s conftest$ac_exeext && 19977 $as_test_x conftest$ac_exeext; then 19978 19979aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 19980}'` 19981# Check for a 64-bit object if we didn't find anything. 19982if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 19983}'`; fi 19984else 19985 echo "$as_me: failed program was:" >&5 19986sed 's/^/| /' conftest.$ac_ext >&5 19987 19988 19989fi 19990 19991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19992 conftest$ac_exeext conftest.$ac_ext 19993if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 19994 19995 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 19996 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" 19997 else 19998 if test "$host_cpu" = ia64; then 19999 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 20000 allow_undefined_flag_GCJ="-z nodefs" 20001 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" 20002 else 20003 # Determine the default libpath from the value encoded in an empty executable. 20004 cat >conftest.$ac_ext <<_ACEOF 20005/* confdefs.h. */ 20006_ACEOF 20007cat confdefs.h >>conftest.$ac_ext 20008cat >>conftest.$ac_ext <<_ACEOF 20009/* end confdefs.h. */ 20010 20011int 20012main () 20013{ 20014 20015 ; 20016 return 0; 20017} 20018_ACEOF 20019rm -f conftest.$ac_objext conftest$ac_exeext 20020if { (ac_try="$ac_link" 20021case "(($ac_try" in 20022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20023 *) ac_try_echo=$ac_try;; 20024esac 20025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20026 (eval "$ac_link") 2>conftest.er1 20027 ac_status=$? 20028 grep -v '^ *+' conftest.er1 >conftest.err 20029 rm -f conftest.er1 20030 cat conftest.err >&5 20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20032 (exit $ac_status); } && { 20033 test -z "$ac_c_werror_flag" || 20034 test ! -s conftest.err 20035 } && test -s conftest$ac_exeext && 20036 $as_test_x conftest$ac_exeext; then 20037 20038aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 20039}'` 20040# Check for a 64-bit object if we didn't find anything. 20041if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 20042}'`; fi 20043else 20044 echo "$as_me: failed program was:" >&5 20045sed 's/^/| /' conftest.$ac_ext >&5 20046 20047 20048fi 20049 20050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20051 conftest$ac_exeext conftest.$ac_ext 20052if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 20053 20054 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 20055 # Warning - without using the other run time loading flags, 20056 # -berok will link without error, but may produce a broken library. 20057 no_undefined_flag_GCJ=' ${wl}-bernotok' 20058 allow_undefined_flag_GCJ=' ${wl}-berok' 20059 # Exported symbols can be pulled into shared objects from archives 20060 whole_archive_flag_spec_GCJ='$convenience' 20061 archive_cmds_need_lc_GCJ=yes 20062 # This is similar to how AIX traditionally builds its shared libraries. 20063 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' 20064 fi 20065 fi 20066 ;; 20067 20068 amigaos*) 20069 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)' 20070 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20071 hardcode_minus_L_GCJ=yes 20072 # see comment about different semantics on the GNU ld section 20073 ld_shlibs_GCJ=no 20074 ;; 20075 20076 bsdi[45]*) 20077 export_dynamic_flag_spec_GCJ=-rdynamic 20078 ;; 20079 20080 cygwin* | mingw* | pw32*) 20081 # When not using gcc, we currently assume that we are using 20082 # Microsoft Visual C++. 20083 # hardcode_libdir_flag_spec is actually meaningless, as there is 20084 # no search path for DLLs. 20085 hardcode_libdir_flag_spec_GCJ=' ' 20086 allow_undefined_flag_GCJ=unsupported 20087 # Tell ltmain to make .lib files, not .a files. 20088 libext=lib 20089 # Tell ltmain to make .dll files, not .so files. 20090 shrext_cmds=".dll" 20091 # FIXME: Setting linknames here is a bad hack. 20092 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 20093 # The linker will automatically build a .lib file if we build a DLL. 20094 old_archive_From_new_cmds_GCJ='true' 20095 # FIXME: Should let the user specify the lib program. 20096 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 20097 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 20098 enable_shared_with_static_runtimes_GCJ=yes 20099 ;; 20100 20101 darwin* | rhapsody*) 20102 case $host_os in 20103 rhapsody* | darwin1.[012]) 20104 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 20105 ;; 20106 *) # Darwin 1.3 on 20107 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 20108 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 20109 else 20110 case ${MACOSX_DEPLOYMENT_TARGET} in 20111 10.[012]) 20112 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 20113 ;; 20114 10.*) 20115 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 20116 ;; 20117 esac 20118 fi 20119 ;; 20120 esac 20121 archive_cmds_need_lc_GCJ=no 20122 hardcode_direct_GCJ=no 20123 hardcode_automatic_GCJ=yes 20124 hardcode_shlibpath_var_GCJ=unsupported 20125 whole_archive_flag_spec_GCJ='' 20126 link_all_deplibs_GCJ=yes 20127 if test "$GCC" = yes ; then 20128 output_verbose_link_cmd='echo' 20129 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 20130 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 20131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 20132 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 20133 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}' 20134 else 20135 case $cc_basename in 20136 xlc*) 20137 output_verbose_link_cmd='echo' 20138 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 20139 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 20140 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 20141 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 20142 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}' 20143 ;; 20144 *) 20145 ld_shlibs_GCJ=no 20146 ;; 20147 esac 20148 fi 20149 ;; 20150 20151 dgux*) 20152 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20153 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20154 hardcode_shlibpath_var_GCJ=no 20155 ;; 20156 20157 freebsd1*) 20158 ld_shlibs_GCJ=no 20159 ;; 20160 20161 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 20162 # support. Future versions do this automatically, but an explicit c++rt0.o 20163 # does not break anything, and helps significantly (at the cost of a little 20164 # extra space). 20165 freebsd2.2*) 20166 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 20167 hardcode_libdir_flag_spec_GCJ='-R$libdir' 20168 hardcode_direct_GCJ=yes 20169 hardcode_shlibpath_var_GCJ=no 20170 ;; 20171 20172 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 20173 freebsd2*) 20174 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20175 hardcode_direct_GCJ=yes 20176 hardcode_minus_L_GCJ=yes 20177 hardcode_shlibpath_var_GCJ=no 20178 ;; 20179 20180 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 20181 freebsd* | dragonfly*) 20182 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 20183 hardcode_libdir_flag_spec_GCJ='-R$libdir' 20184 hardcode_direct_GCJ=yes 20185 hardcode_shlibpath_var_GCJ=no 20186 ;; 20187 20188 hpux9*) 20189 if test "$GCC" = yes; then 20190 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' 20191 else 20192 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' 20193 fi 20194 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 20195 hardcode_libdir_separator_GCJ=: 20196 hardcode_direct_GCJ=yes 20197 20198 # hardcode_minus_L: Not really in the search PATH, 20199 # but as the default location of the library. 20200 hardcode_minus_L_GCJ=yes 20201 export_dynamic_flag_spec_GCJ='${wl}-E' 20202 ;; 20203 20204 hpux10*) 20205 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 20206 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20207 else 20208 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20209 fi 20210 if test "$with_gnu_ld" = no; then 20211 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 20212 hardcode_libdir_separator_GCJ=: 20213 20214 hardcode_direct_GCJ=yes 20215 export_dynamic_flag_spec_GCJ='${wl}-E' 20216 20217 # hardcode_minus_L: Not really in the search PATH, 20218 # but as the default location of the library. 20219 hardcode_minus_L_GCJ=yes 20220 fi 20221 ;; 20222 20223 hpux11*) 20224 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 20225 case $host_cpu in 20226 hppa*64*) 20227 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 20228 ;; 20229 ia64*) 20230 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20231 ;; 20232 *) 20233 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20234 ;; 20235 esac 20236 else 20237 case $host_cpu in 20238 hppa*64*) 20239 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 20240 ;; 20241 ia64*) 20242 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20243 ;; 20244 *) 20245 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20246 ;; 20247 esac 20248 fi 20249 if test "$with_gnu_ld" = no; then 20250 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 20251 hardcode_libdir_separator_GCJ=: 20252 20253 case $host_cpu in 20254 hppa*64*|ia64*) 20255 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 20256 hardcode_direct_GCJ=no 20257 hardcode_shlibpath_var_GCJ=no 20258 ;; 20259 *) 20260 hardcode_direct_GCJ=yes 20261 export_dynamic_flag_spec_GCJ='${wl}-E' 20262 20263 # hardcode_minus_L: Not really in the search PATH, 20264 # but as the default location of the library. 20265 hardcode_minus_L_GCJ=yes 20266 ;; 20267 esac 20268 fi 20269 ;; 20270 20271 irix5* | irix6* | nonstopux*) 20272 if test "$GCC" = yes; then 20273 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' 20274 else 20275 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' 20276 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 20277 fi 20278 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 20279 hardcode_libdir_separator_GCJ=: 20280 link_all_deplibs_GCJ=yes 20281 ;; 20282 20283 netbsd* | netbsdelf*-gnu) 20284 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 20285 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 20286 else 20287 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 20288 fi 20289 hardcode_libdir_flag_spec_GCJ='-R$libdir' 20290 hardcode_direct_GCJ=yes 20291 hardcode_shlibpath_var_GCJ=no 20292 ;; 20293 20294 newsos6) 20295 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20296 hardcode_direct_GCJ=yes 20297 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 20298 hardcode_libdir_separator_GCJ=: 20299 hardcode_shlibpath_var_GCJ=no 20300 ;; 20301 20302 openbsd*) 20303 hardcode_direct_GCJ=yes 20304 hardcode_shlibpath_var_GCJ=no 20305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 20306 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20307 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 20308 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 20309 export_dynamic_flag_spec_GCJ='${wl}-E' 20310 else 20311 case $host_os in 20312 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 20313 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20314 hardcode_libdir_flag_spec_GCJ='-R$libdir' 20315 ;; 20316 *) 20317 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20318 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 20319 ;; 20320 esac 20321 fi 20322 ;; 20323 20324 os2*) 20325 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20326 hardcode_minus_L_GCJ=yes 20327 allow_undefined_flag_GCJ=unsupported 20328 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' 20329 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 20330 ;; 20331 20332 osf3*) 20333 if test "$GCC" = yes; then 20334 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 20335 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' 20336 else 20337 allow_undefined_flag_GCJ=' -expect_unresolved \*' 20338 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' 20339 fi 20340 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 20341 hardcode_libdir_separator_GCJ=: 20342 ;; 20343 20344 osf4* | osf5*) # as osf3* with the addition of -msym flag 20345 if test "$GCC" = yes; then 20346 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 20347 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' 20348 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 20349 else 20350 allow_undefined_flag_GCJ=' -expect_unresolved \*' 20351 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' 20352 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~ 20353 $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' 20354 20355 # Both c and cxx compiler support -rpath directly 20356 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 20357 fi 20358 hardcode_libdir_separator_GCJ=: 20359 ;; 20360 20361 solaris*) 20362 no_undefined_flag_GCJ=' -z text' 20363 if test "$GCC" = yes; then 20364 wlarc='${wl}' 20365 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 20366 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 20367 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 20368 else 20369 wlarc='' 20370 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 20371 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 20372 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 20373 fi 20374 hardcode_libdir_flag_spec_GCJ='-R$libdir' 20375 hardcode_shlibpath_var_GCJ=no 20376 case $host_os in 20377 solaris2.[0-5] | solaris2.[0-5].*) ;; 20378 *) 20379 # The compiler driver will combine linker options so we 20380 # cannot just pass the convience library names through 20381 # without $wl, iff we do not link with $LD. 20382 # Luckily, gcc supports the same syntax we need for Sun Studio. 20383 # Supported since Solaris 2.6 (maybe 2.5.1?) 20384 case $wlarc in 20385 '') 20386 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 20387 *) 20388 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 20389 esac ;; 20390 esac 20391 link_all_deplibs_GCJ=yes 20392 ;; 20393 20394 sunos4*) 20395 if test "x$host_vendor" = xsequent; then 20396 # Use $CC to link under sequent, because it throws in some extra .o 20397 # files that make .init and .fini sections work. 20398 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 20399 else 20400 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 20401 fi 20402 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20403 hardcode_direct_GCJ=yes 20404 hardcode_minus_L_GCJ=yes 20405 hardcode_shlibpath_var_GCJ=no 20406 ;; 20407 20408 sysv4) 20409 case $host_vendor in 20410 sni) 20411 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20412 hardcode_direct_GCJ=yes # is this really true??? 20413 ;; 20414 siemens) 20415 ## LD is ld it makes a PLAMLIB 20416 ## CC just makes a GrossModule. 20417 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 20418 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 20419 hardcode_direct_GCJ=no 20420 ;; 20421 motorola) 20422 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20423 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 20424 ;; 20425 esac 20426 runpath_var='LD_RUN_PATH' 20427 hardcode_shlibpath_var_GCJ=no 20428 ;; 20429 20430 sysv4.3*) 20431 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20432 hardcode_shlibpath_var_GCJ=no 20433 export_dynamic_flag_spec_GCJ='-Bexport' 20434 ;; 20435 20436 sysv4*MP*) 20437 if test -d /usr/nec; then 20438 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20439 hardcode_shlibpath_var_GCJ=no 20440 runpath_var=LD_RUN_PATH 20441 hardcode_runpath_var=yes 20442 ld_shlibs_GCJ=yes 20443 fi 20444 ;; 20445 20446 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 20447 no_undefined_flag_GCJ='${wl}-z,text' 20448 archive_cmds_need_lc_GCJ=no 20449 hardcode_shlibpath_var_GCJ=no 20450 runpath_var='LD_RUN_PATH' 20451 20452 if test "$GCC" = yes; then 20453 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20454 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20455 else 20456 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20457 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20458 fi 20459 ;; 20460 20461 sysv5* | sco3.2v5* | sco5v6*) 20462 # Note: We can NOT use -z defs as we might desire, because we do not 20463 # link with -lc, and that would cause any symbols used from libc to 20464 # always be unresolved, which means just about no library would 20465 # ever link correctly. If we're not using GNU ld we use -z text 20466 # though, which does catch some bad symbols but isn't as heavy-handed 20467 # as -z defs. 20468 no_undefined_flag_GCJ='${wl}-z,text' 20469 allow_undefined_flag_GCJ='${wl}-z,nodefs' 20470 archive_cmds_need_lc_GCJ=no 20471 hardcode_shlibpath_var_GCJ=no 20472 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 20473 hardcode_libdir_separator_GCJ=':' 20474 link_all_deplibs_GCJ=yes 20475 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 20476 runpath_var='LD_RUN_PATH' 20477 20478 if test "$GCC" = yes; then 20479 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 20480 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 20481 else 20482 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 20483 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 20484 fi 20485 ;; 20486 20487 uts4*) 20488 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20489 hardcode_libdir_flag_spec_GCJ='-L$libdir' 20490 hardcode_shlibpath_var_GCJ=no 20491 ;; 20492 20493 *) 20494 ld_shlibs_GCJ=no 20495 ;; 20496 esac 20497 fi 20498 20499{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 20500echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 20501test "$ld_shlibs_GCJ" = no && can_build_shared=no 20502 20503# 20504# Do we need to explicitly link libc? 20505# 20506case "x$archive_cmds_need_lc_GCJ" in 20507x|xyes) 20508 # Assume -lc should be added 20509 archive_cmds_need_lc_GCJ=yes 20510 20511 if test "$enable_shared" = yes && test "$GCC" = yes; then 20512 case $archive_cmds_GCJ in 20513 *'~'*) 20514 # FIXME: we may have to deal with multi-command sequences. 20515 ;; 20516 '$CC '*) 20517 # Test whether the compiler implicitly links with -lc since on some 20518 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20519 # to ld, don't add -lc before -lgcc. 20520 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 20521echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 20522 $rm conftest* 20523 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 20524 20525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20526 (eval $ac_compile) 2>&5 20527 ac_status=$? 20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20529 (exit $ac_status); } 2>conftest.err; then 20530 soname=conftest 20531 lib=conftest 20532 libobjs=conftest.$ac_objext 20533 deplibs= 20534 wl=$lt_prog_compiler_wl_GCJ 20535 pic_flag=$lt_prog_compiler_pic_GCJ 20536 compiler_flags=-v 20537 linker_flags=-v 20538 verstring= 20539 output_objdir=. 20540 libname=conftest 20541 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 20542 allow_undefined_flag_GCJ= 20543 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 20544 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 20545 ac_status=$? 20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20547 (exit $ac_status); } 20548 then 20549 archive_cmds_need_lc_GCJ=no 20550 else 20551 archive_cmds_need_lc_GCJ=yes 20552 fi 20553 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 20554 else 20555 cat conftest.err 1>&5 20556 fi 20557 $rm conftest* 20558 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 20559echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 20560 ;; 20561 esac 20562 fi 20563 ;; 20564esac 20565 20566{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 20567echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 20568library_names_spec= 20569libname_spec='lib$name' 20570soname_spec= 20571shrext_cmds=".so" 20572postinstall_cmds= 20573postuninstall_cmds= 20574finish_cmds= 20575finish_eval= 20576shlibpath_var= 20577shlibpath_overrides_runpath=unknown 20578version_type=none 20579dynamic_linker="$host_os ld.so" 20580sys_lib_dlsearch_path_spec="/lib /usr/lib" 20581if test "$GCC" = yes; then 20582 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 20583 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 20584 # if the path contains ";" then we assume it to be the separator 20585 # otherwise default to the standard path separator (i.e. ":") - it is 20586 # assumed that no part of a normal pathname contains ";" but that should 20587 # okay in the real world where ";" in dirpaths is itself problematic. 20588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 20589 else 20590 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20591 fi 20592else 20593 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 20594fi 20595need_lib_prefix=unknown 20596hardcode_into_libs=no 20597 20598# when you set need_version to no, make sure it does not cause -set_version 20599# flags to be left without arguments 20600need_version=unknown 20601 20602case $host_os in 20603aix3*) 20604 version_type=linux 20605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 20606 shlibpath_var=LIBPATH 20607 20608 # AIX 3 has no versioning support, so we append a major version to the name. 20609 soname_spec='${libname}${release}${shared_ext}$major' 20610 ;; 20611 20612aix4* | aix5*) 20613 version_type=linux 20614 need_lib_prefix=no 20615 need_version=no 20616 hardcode_into_libs=yes 20617 if test "$host_cpu" = ia64; then 20618 # AIX 5 supports IA64 20619 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 20620 shlibpath_var=LD_LIBRARY_PATH 20621 else 20622 # With GCC up to 2.95.x, collect2 would create an import file 20623 # for dependence libraries. The import file would start with 20624 # the line `#! .'. This would cause the generated library to 20625 # depend on `.', always an invalid library. This was fixed in 20626 # development snapshots of GCC prior to 3.0. 20627 case $host_os in 20628 aix4 | aix4.[01] | aix4.[01].*) 20629 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 20630 echo ' yes ' 20631 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 20632 : 20633 else 20634 can_build_shared=no 20635 fi 20636 ;; 20637 esac 20638 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 20639 # soname into executable. Probably we can add versioning support to 20640 # collect2, so additional links can be useful in future. 20641 if test "$aix_use_runtimelinking" = yes; then 20642 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 20643 # instead of lib<name>.a to let people know that these are not 20644 # typical AIX shared libraries. 20645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20646 else 20647 # We preserve .a as extension for shared libraries through AIX4.2 20648 # and later when we are not doing run time linking. 20649 library_names_spec='${libname}${release}.a $libname.a' 20650 soname_spec='${libname}${release}${shared_ext}$major' 20651 fi 20652 shlibpath_var=LIBPATH 20653 fi 20654 ;; 20655 20656amigaos*) 20657 library_names_spec='$libname.ixlibrary $libname.a' 20658 # Create ${libname}_ixlibrary.a entries in /sys/libs. 20659 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' 20660 ;; 20661 20662beos*) 20663 library_names_spec='${libname}${shared_ext}' 20664 dynamic_linker="$host_os ld.so" 20665 shlibpath_var=LIBRARY_PATH 20666 ;; 20667 20668bsdi[45]*) 20669 version_type=linux 20670 need_version=no 20671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20672 soname_spec='${libname}${release}${shared_ext}$major' 20673 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 20674 shlibpath_var=LD_LIBRARY_PATH 20675 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 20676 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 20677 # the default ld.so.conf also contains /usr/contrib/lib and 20678 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 20679 # libtool to hard-code these into programs 20680 ;; 20681 20682cygwin* | mingw* | pw32*) 20683 version_type=windows 20684 shrext_cmds=".dll" 20685 need_version=no 20686 need_lib_prefix=no 20687 20688 case $GCC,$host_os in 20689 yes,cygwin* | yes,mingw* | yes,pw32*) 20690 library_names_spec='$libname.dll.a' 20691 # DLL is installed to $(libdir)/../bin by postinstall_cmds 20692 postinstall_cmds='base_file=`basename \${file}`~ 20693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 20694 dldir=$destdir/`dirname \$dlpath`~ 20695 test -d \$dldir || mkdir -p \$dldir~ 20696 $install_prog $dir/$dlname \$dldir/$dlname~ 20697 chmod a+x \$dldir/$dlname' 20698 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 20699 dlpath=$dir/\$dldll~ 20700 $rm \$dlpath' 20701 shlibpath_overrides_runpath=yes 20702 20703 case $host_os in 20704 cygwin*) 20705 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 20706 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20707 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 20708 ;; 20709 mingw*) 20710 # MinGW DLLs use traditional 'lib' prefix 20711 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 20713 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 20714 # It is most probably a Windows format PATH printed by 20715 # mingw gcc, but we are running on Cygwin. Gcc prints its search 20716 # path with ; separators, and with drive letters. We can handle the 20717 # drive letters (cygwin fileutils understands them), so leave them, 20718 # especially as we might pass files found there to a mingw objdump, 20719 # which wouldn't understand a cygwinified path. Ahh. 20720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 20721 else 20722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 20723 fi 20724 ;; 20725 pw32*) 20726 # pw32 DLLs use 'pw' prefix rather than 'lib' 20727 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 20728 ;; 20729 esac 20730 ;; 20731 20732 *) 20733 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 20734 ;; 20735 esac 20736 dynamic_linker='Win32 ld.exe' 20737 # FIXME: first we should search . and the directory the executable is in 20738 shlibpath_var=PATH 20739 ;; 20740 20741darwin* | rhapsody*) 20742 dynamic_linker="$host_os dyld" 20743 version_type=darwin 20744 need_lib_prefix=no 20745 need_version=no 20746 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 20747 soname_spec='${libname}${release}${major}$shared_ext' 20748 shlibpath_overrides_runpath=yes 20749 shlibpath_var=DYLD_LIBRARY_PATH 20750 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 20751 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 20752 if test "$GCC" = yes; then 20753 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 20754 else 20755 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 20756 fi 20757 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 20758 ;; 20759 20760dgux*) 20761 version_type=linux 20762 need_lib_prefix=no 20763 need_version=no 20764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 20765 soname_spec='${libname}${release}${shared_ext}$major' 20766 shlibpath_var=LD_LIBRARY_PATH 20767 ;; 20768 20769freebsd1*) 20770 dynamic_linker=no 20771 ;; 20772 20773freebsd* | dragonfly*) 20774 # DragonFly does not have aout. When/if they implement a new 20775 # versioning mechanism, adjust this. 20776 if test -x /usr/bin/objformat; then 20777 objformat=`/usr/bin/objformat` 20778 else 20779 case $host_os in 20780 freebsd[123]*) objformat=aout ;; 20781 *) objformat=elf ;; 20782 esac 20783 fi 20784 version_type=freebsd-$objformat 20785 case $version_type in 20786 freebsd-elf*) 20787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 20788 need_version=no 20789 need_lib_prefix=no 20790 ;; 20791 freebsd-*) 20792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 20793 need_version=yes 20794 ;; 20795 esac 20796 shlibpath_var=LD_LIBRARY_PATH 20797 case $host_os in 20798 freebsd2*) 20799 shlibpath_overrides_runpath=yes 20800 ;; 20801 freebsd3.[01]* | freebsdelf3.[01]*) 20802 shlibpath_overrides_runpath=yes 20803 hardcode_into_libs=yes 20804 ;; 20805 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 20806 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 20807 shlibpath_overrides_runpath=no 20808 hardcode_into_libs=yes 20809 ;; 20810 freebsd*) # from 4.6 on 20811 shlibpath_overrides_runpath=yes 20812 hardcode_into_libs=yes 20813 ;; 20814 esac 20815 ;; 20816 20817gnu*) 20818 version_type=linux 20819 need_lib_prefix=no 20820 need_version=no 20821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 20822 soname_spec='${libname}${release}${shared_ext}$major' 20823 shlibpath_var=LD_LIBRARY_PATH 20824 hardcode_into_libs=yes 20825 ;; 20826 20827hpux9* | hpux10* | hpux11*) 20828 # Give a soname corresponding to the major version so that dld.sl refuses to 20829 # link against other versions. 20830 version_type=sunos 20831 need_lib_prefix=no 20832 need_version=no 20833 case $host_cpu in 20834 ia64*) 20835 shrext_cmds='.so' 20836 hardcode_into_libs=yes 20837 dynamic_linker="$host_os dld.so" 20838 shlibpath_var=LD_LIBRARY_PATH 20839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20841 soname_spec='${libname}${release}${shared_ext}$major' 20842 if test "X$HPUX_IA64_MODE" = X32; then 20843 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 20844 else 20845 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 20846 fi 20847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20848 ;; 20849 hppa*64*) 20850 shrext_cmds='.sl' 20851 hardcode_into_libs=yes 20852 dynamic_linker="$host_os dld.sl" 20853 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 20854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20856 soname_spec='${libname}${release}${shared_ext}$major' 20857 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20859 ;; 20860 *) 20861 shrext_cmds='.sl' 20862 dynamic_linker="$host_os dld.sl" 20863 shlibpath_var=SHLIB_PATH 20864 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20866 soname_spec='${libname}${release}${shared_ext}$major' 20867 ;; 20868 esac 20869 # HP-UX runs *really* slowly unless shared libraries are mode 555. 20870 postinstall_cmds='chmod 555 $lib' 20871 ;; 20872 20873interix3*) 20874 version_type=linux 20875 need_lib_prefix=no 20876 need_version=no 20877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20878 soname_spec='${libname}${release}${shared_ext}$major' 20879 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20880 shlibpath_var=LD_LIBRARY_PATH 20881 shlibpath_overrides_runpath=no 20882 hardcode_into_libs=yes 20883 ;; 20884 20885irix5* | irix6* | nonstopux*) 20886 case $host_os in 20887 nonstopux*) version_type=nonstopux ;; 20888 *) 20889 if test "$lt_cv_prog_gnu_ld" = yes; then 20890 version_type=linux 20891 else 20892 version_type=irix 20893 fi ;; 20894 esac 20895 need_lib_prefix=no 20896 need_version=no 20897 soname_spec='${libname}${release}${shared_ext}$major' 20898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 20899 case $host_os in 20900 irix5* | nonstopux*) 20901 libsuff= shlibsuff= 20902 ;; 20903 *) 20904 case $LD in # libtool.m4 will add one of these switches to LD 20905 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 20906 libsuff= shlibsuff= libmagic=32-bit;; 20907 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 20908 libsuff=32 shlibsuff=N32 libmagic=N32;; 20909 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 20910 libsuff=64 shlibsuff=64 libmagic=64-bit;; 20911 *) libsuff= shlibsuff= libmagic=never-match;; 20912 esac 20913 ;; 20914 esac 20915 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 20916 shlibpath_overrides_runpath=no 20917 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 20918 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 20919 hardcode_into_libs=yes 20920 ;; 20921 20922# No shared lib support for Linux oldld, aout, or coff. 20923linux*oldld* | linux*aout* | linux*coff*) 20924 dynamic_linker=no 20925 ;; 20926 20927# This must be Linux ELF. 20928linux* | k*bsd*-gnu) 20929 version_type=linux 20930 need_lib_prefix=no 20931 need_version=no 20932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20933 soname_spec='${libname}${release}${shared_ext}$major' 20934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 20935 shlibpath_var=LD_LIBRARY_PATH 20936 shlibpath_overrides_runpath=no 20937 # This implies no fast_install, which is unacceptable. 20938 # Some rework will be needed to allow for fast_install 20939 # before this can be enabled. 20940 hardcode_into_libs=yes 20941 20942 # Append ld.so.conf contents to the search path 20943 if test -f /etc/ld.so.conf; then 20944 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 20945 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 20946 fi 20947 20948 # We used to test for /lib/ld.so.1 and disable shared libraries on 20949 # powerpc, because MkLinux only supported shared libraries with the 20950 # GNU dynamic linker. Since this was broken with cross compilers, 20951 # most powerpc-linux boxes support dynamic linking these days and 20952 # people can always --disable-shared, the test was removed, and we 20953 # assume the GNU/Linux dynamic linker is in use. 20954 dynamic_linker='GNU/Linux ld.so' 20955 ;; 20956 20957netbsdelf*-gnu) 20958 version_type=linux 20959 need_lib_prefix=no 20960 need_version=no 20961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20962 soname_spec='${libname}${release}${shared_ext}$major' 20963 shlibpath_var=LD_LIBRARY_PATH 20964 shlibpath_overrides_runpath=no 20965 hardcode_into_libs=yes 20966 dynamic_linker='NetBSD ld.elf_so' 20967 ;; 20968 20969netbsd*) 20970 version_type=sunos 20971 need_lib_prefix=no 20972 need_version=no 20973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 20974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 20975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20976 dynamic_linker='NetBSD (a.out) ld.so' 20977 else 20978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20979 soname_spec='${libname}${release}${shared_ext}$major' 20980 dynamic_linker='NetBSD ld.elf_so' 20981 fi 20982 shlibpath_var=LD_LIBRARY_PATH 20983 shlibpath_overrides_runpath=yes 20984 hardcode_into_libs=yes 20985 ;; 20986 20987newsos6) 20988 version_type=linux 20989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20990 shlibpath_var=LD_LIBRARY_PATH 20991 shlibpath_overrides_runpath=yes 20992 ;; 20993 20994nto-qnx*) 20995 version_type=linux 20996 need_lib_prefix=no 20997 need_version=no 20998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20999 soname_spec='${libname}${release}${shared_ext}$major' 21000 shlibpath_var=LD_LIBRARY_PATH 21001 shlibpath_overrides_runpath=yes 21002 ;; 21003 21004openbsd*) 21005 version_type=sunos 21006 sys_lib_dlsearch_path_spec="/usr/lib" 21007 need_lib_prefix=no 21008 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 21009 case $host_os in 21010 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 21011 *) need_version=no ;; 21012 esac 21013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21015 shlibpath_var=LD_LIBRARY_PATH 21016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 21017 case $host_os in 21018 openbsd2.[89] | openbsd2.[89].*) 21019 shlibpath_overrides_runpath=no 21020 ;; 21021 *) 21022 shlibpath_overrides_runpath=yes 21023 ;; 21024 esac 21025 else 21026 shlibpath_overrides_runpath=yes 21027 fi 21028 ;; 21029 21030os2*) 21031 libname_spec='$name' 21032 shrext_cmds=".dll" 21033 need_lib_prefix=no 21034 library_names_spec='$libname${shared_ext} $libname.a' 21035 dynamic_linker='OS/2 ld.exe' 21036 shlibpath_var=LIBPATH 21037 ;; 21038 21039osf3* | osf4* | osf5*) 21040 version_type=osf 21041 need_lib_prefix=no 21042 need_version=no 21043 soname_spec='${libname}${release}${shared_ext}$major' 21044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21045 shlibpath_var=LD_LIBRARY_PATH 21046 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21047 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 21048 ;; 21049 21050solaris*) 21051 version_type=linux 21052 need_lib_prefix=no 21053 need_version=no 21054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21055 soname_spec='${libname}${release}${shared_ext}$major' 21056 shlibpath_var=LD_LIBRARY_PATH 21057 shlibpath_overrides_runpath=yes 21058 hardcode_into_libs=yes 21059 # ldd complains unless libraries are executable 21060 postinstall_cmds='chmod +x $lib' 21061 ;; 21062 21063sunos4*) 21064 version_type=sunos 21065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21066 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21067 shlibpath_var=LD_LIBRARY_PATH 21068 shlibpath_overrides_runpath=yes 21069 if test "$with_gnu_ld" = yes; then 21070 need_lib_prefix=no 21071 fi 21072 need_version=yes 21073 ;; 21074 21075sysv4 | sysv4.3*) 21076 version_type=linux 21077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21078 soname_spec='${libname}${release}${shared_ext}$major' 21079 shlibpath_var=LD_LIBRARY_PATH 21080 case $host_vendor in 21081 sni) 21082 shlibpath_overrides_runpath=no 21083 need_lib_prefix=no 21084 export_dynamic_flag_spec='${wl}-Blargedynsym' 21085 runpath_var=LD_RUN_PATH 21086 ;; 21087 siemens) 21088 need_lib_prefix=no 21089 ;; 21090 motorola) 21091 need_lib_prefix=no 21092 need_version=no 21093 shlibpath_overrides_runpath=no 21094 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21095 ;; 21096 esac 21097 ;; 21098 21099sysv4*MP*) 21100 if test -d /usr/nec ;then 21101 version_type=linux 21102 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 21103 soname_spec='$libname${shared_ext}.$major' 21104 shlibpath_var=LD_LIBRARY_PATH 21105 fi 21106 ;; 21107 21108sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 21109 version_type=freebsd-elf 21110 need_lib_prefix=no 21111 need_version=no 21112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 21113 soname_spec='${libname}${release}${shared_ext}$major' 21114 shlibpath_var=LD_LIBRARY_PATH 21115 hardcode_into_libs=yes 21116 if test "$with_gnu_ld" = yes; then 21117 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 21118 shlibpath_overrides_runpath=no 21119 else 21120 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 21121 shlibpath_overrides_runpath=yes 21122 case $host_os in 21123 sco3.2v5*) 21124 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 21125 ;; 21126 esac 21127 fi 21128 sys_lib_dlsearch_path_spec='/usr/lib' 21129 ;; 21130 21131uts4*) 21132 version_type=linux 21133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21134 soname_spec='${libname}${release}${shared_ext}$major' 21135 shlibpath_var=LD_LIBRARY_PATH 21136 ;; 21137 21138*) 21139 dynamic_linker=no 21140 ;; 21141esac 21142{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 21143echo "${ECHO_T}$dynamic_linker" >&6; } 21144test "$dynamic_linker" = no && can_build_shared=no 21145 21146variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21147if test "$GCC" = yes; then 21148 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21149fi 21150 21151{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 21152echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 21153hardcode_action_GCJ= 21154if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 21155 test -n "$runpath_var_GCJ" || \ 21156 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 21157 21158 # We can hardcode non-existant directories. 21159 if test "$hardcode_direct_GCJ" != no && 21160 # If the only mechanism to avoid hardcoding is shlibpath_var, we 21161 # have to relink, otherwise we might link with an installed library 21162 # when we should be linking with a yet-to-be-installed one 21163 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 21164 test "$hardcode_minus_L_GCJ" != no; then 21165 # Linking always hardcodes the temporary library directory. 21166 hardcode_action_GCJ=relink 21167 else 21168 # We can link without hardcoding, and we can hardcode nonexisting dirs. 21169 hardcode_action_GCJ=immediate 21170 fi 21171else 21172 # We cannot hardcode anything, or else we can only hardcode existing 21173 # directories. 21174 hardcode_action_GCJ=unsupported 21175fi 21176{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 21177echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 21178 21179if test "$hardcode_action_GCJ" = relink; then 21180 # Fast installation is not supported 21181 enable_fast_install=no 21182elif test "$shlibpath_overrides_runpath" = yes || 21183 test "$enable_shared" = no; then 21184 # Fast installation is not necessary 21185 enable_fast_install=needless 21186fi 21187 21188 21189# The else clause should only fire when bootstrapping the 21190# libtool distribution, otherwise you forgot to ship ltmain.sh 21191# with your package, and you will get complaints that there are 21192# no rules to generate ltmain.sh. 21193if test -f "$ltmain"; then 21194 # See if we are running on zsh, and set the options which allow our commands through 21195 # without removal of \ escapes. 21196 if test -n "${ZSH_VERSION+set}" ; then 21197 setopt NO_GLOB_SUBST 21198 fi 21199 # Now quote all the things that may contain metacharacters while being 21200 # careful not to overquote the AC_SUBSTed values. We take copies of the 21201 # variables and quote the copies for generation of the libtool script. 21202 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 21203 SED SHELL STRIP \ 21204 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 21205 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 21206 deplibs_check_method reload_flag reload_cmds need_locks \ 21207 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 21208 lt_cv_sys_global_symbol_to_c_name_address \ 21209 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 21210 old_postinstall_cmds old_postuninstall_cmds \ 21211 compiler_GCJ \ 21212 CC_GCJ \ 21213 LD_GCJ \ 21214 lt_prog_compiler_wl_GCJ \ 21215 lt_prog_compiler_pic_GCJ \ 21216 lt_prog_compiler_static_GCJ \ 21217 lt_prog_compiler_no_builtin_flag_GCJ \ 21218 export_dynamic_flag_spec_GCJ \ 21219 thread_safe_flag_spec_GCJ \ 21220 whole_archive_flag_spec_GCJ \ 21221 enable_shared_with_static_runtimes_GCJ \ 21222 old_archive_cmds_GCJ \ 21223 old_archive_from_new_cmds_GCJ \ 21224 predep_objects_GCJ \ 21225 postdep_objects_GCJ \ 21226 predeps_GCJ \ 21227 postdeps_GCJ \ 21228 compiler_lib_search_path_GCJ \ 21229 archive_cmds_GCJ \ 21230 archive_expsym_cmds_GCJ \ 21231 postinstall_cmds_GCJ \ 21232 postuninstall_cmds_GCJ \ 21233 old_archive_from_expsyms_cmds_GCJ \ 21234 allow_undefined_flag_GCJ \ 21235 no_undefined_flag_GCJ \ 21236 export_symbols_cmds_GCJ \ 21237 hardcode_libdir_flag_spec_GCJ \ 21238 hardcode_libdir_flag_spec_ld_GCJ \ 21239 hardcode_libdir_separator_GCJ \ 21240 hardcode_automatic_GCJ \ 21241 module_cmds_GCJ \ 21242 module_expsym_cmds_GCJ \ 21243 lt_cv_prog_compiler_c_o_GCJ \ 21244 exclude_expsyms_GCJ \ 21245 include_expsyms_GCJ; do 21246 21247 case $var in 21248 old_archive_cmds_GCJ | \ 21249 old_archive_from_new_cmds_GCJ | \ 21250 archive_cmds_GCJ | \ 21251 archive_expsym_cmds_GCJ | \ 21252 module_cmds_GCJ | \ 21253 module_expsym_cmds_GCJ | \ 21254 old_archive_from_expsyms_cmds_GCJ | \ 21255 export_symbols_cmds_GCJ | \ 21256 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 21257 postinstall_cmds | postuninstall_cmds | \ 21258 old_postinstall_cmds | old_postuninstall_cmds | \ 21259 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 21260 # Double-quote double-evaled strings. 21261 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 21262 ;; 21263 *) 21264 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 21265 ;; 21266 esac 21267 done 21268 21269 case $lt_echo in 21270 *'\$0 --fallback-echo"') 21271 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 21272 ;; 21273 esac 21274 21275cfgfile="$ofile" 21276 21277 cat <<__EOF__ >> "$cfgfile" 21278# ### BEGIN LIBTOOL TAG CONFIG: $tagname 21279 21280# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21281 21282# Shell to use when invoking shell scripts. 21283SHELL=$lt_SHELL 21284 21285# Whether or not to build shared libraries. 21286build_libtool_libs=$enable_shared 21287 21288# Whether or not to build static libraries. 21289build_old_libs=$enable_static 21290 21291# Whether or not to add -lc for building shared libraries. 21292build_libtool_need_lc=$archive_cmds_need_lc_GCJ 21293 21294# Whether or not to disallow shared libs when runtime libs are static 21295allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 21296 21297# Whether or not to optimize for fast installation. 21298fast_install=$enable_fast_install 21299 21300# The host system. 21301host_alias=$host_alias 21302host=$host 21303host_os=$host_os 21304 21305# The build system. 21306build_alias=$build_alias 21307build=$build 21308build_os=$build_os 21309 21310# An echo program that does not interpret backslashes. 21311echo=$lt_echo 21312 21313# The archiver. 21314AR=$lt_AR 21315AR_FLAGS=$lt_AR_FLAGS 21316 21317# A C compiler. 21318LTCC=$lt_LTCC 21319 21320# LTCC compiler flags. 21321LTCFLAGS=$lt_LTCFLAGS 21322 21323# A language-specific compiler. 21324CC=$lt_compiler_GCJ 21325 21326# Is the compiler the GNU C compiler? 21327with_gcc=$GCC_GCJ 21328 21329# An ERE matcher. 21330EGREP=$lt_EGREP 21331 21332# The linker used to build libraries. 21333LD=$lt_LD_GCJ 21334 21335# Whether we need hard or soft links. 21336LN_S=$lt_LN_S 21337 21338# A BSD-compatible nm program. 21339NM=$lt_NM 21340 21341# A symbol stripping program 21342STRIP=$lt_STRIP 21343 21344# Used to examine libraries when file_magic_cmd begins "file" 21345MAGIC_CMD=$MAGIC_CMD 21346 21347# Used on cygwin: DLL creation program. 21348DLLTOOL="$DLLTOOL" 21349 21350# Used on cygwin: object dumper. 21351OBJDUMP="$OBJDUMP" 21352 21353# Used on cygwin: assembler. 21354AS="$AS" 21355 21356# The name of the directory that contains temporary libtool files. 21357objdir=$objdir 21358 21359# How to create reloadable object files. 21360reload_flag=$lt_reload_flag 21361reload_cmds=$lt_reload_cmds 21362 21363# How to pass a linker flag through the compiler. 21364wl=$lt_lt_prog_compiler_wl_GCJ 21365 21366# Object file suffix (normally "o"). 21367objext="$ac_objext" 21368 21369# Old archive suffix (normally "a"). 21370libext="$libext" 21371 21372# Shared library suffix (normally ".so"). 21373shrext_cmds='$shrext_cmds' 21374 21375# Executable file suffix (normally ""). 21376exeext="$exeext" 21377 21378# Additional compiler flags for building library objects. 21379pic_flag=$lt_lt_prog_compiler_pic_GCJ 21380pic_mode=$pic_mode 21381 21382# What is the maximum length of a command? 21383max_cmd_len=$lt_cv_sys_max_cmd_len 21384 21385# Does compiler simultaneously support -c and -o options? 21386compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 21387 21388# Must we lock files when doing compilation? 21389need_locks=$lt_need_locks 21390 21391# Do we need the lib prefix for modules? 21392need_lib_prefix=$need_lib_prefix 21393 21394# Do we need a version for libraries? 21395need_version=$need_version 21396 21397# Whether dlopen is supported. 21398dlopen_support=$enable_dlopen 21399 21400# Whether dlopen of programs is supported. 21401dlopen_self=$enable_dlopen_self 21402 21403# Whether dlopen of statically linked programs is supported. 21404dlopen_self_static=$enable_dlopen_self_static 21405 21406# Compiler flag to prevent dynamic linking. 21407link_static_flag=$lt_lt_prog_compiler_static_GCJ 21408 21409# Compiler flag to turn off builtin functions. 21410no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 21411 21412# Compiler flag to allow reflexive dlopens. 21413export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 21414 21415# Compiler flag to generate shared objects directly from archives. 21416whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 21417 21418# Compiler flag to generate thread-safe objects. 21419thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 21420 21421# Library versioning type. 21422version_type=$version_type 21423 21424# Format of library name prefix. 21425libname_spec=$lt_libname_spec 21426 21427# List of archive names. First name is the real one, the rest are links. 21428# The last name is the one that the linker finds with -lNAME. 21429library_names_spec=$lt_library_names_spec 21430 21431# The coded name of the library, if different from the real name. 21432soname_spec=$lt_soname_spec 21433 21434# Commands used to build and install an old-style archive. 21435RANLIB=$lt_RANLIB 21436old_archive_cmds=$lt_old_archive_cmds_GCJ 21437old_postinstall_cmds=$lt_old_postinstall_cmds 21438old_postuninstall_cmds=$lt_old_postuninstall_cmds 21439 21440# Create an old-style archive from a shared archive. 21441old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 21442 21443# Create a temporary old-style archive to link instead of a shared archive. 21444old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 21445 21446# Commands used to build and install a shared archive. 21447archive_cmds=$lt_archive_cmds_GCJ 21448archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 21449postinstall_cmds=$lt_postinstall_cmds 21450postuninstall_cmds=$lt_postuninstall_cmds 21451 21452# Commands used to build a loadable module (assumed same as above if empty) 21453module_cmds=$lt_module_cmds_GCJ 21454module_expsym_cmds=$lt_module_expsym_cmds_GCJ 21455 21456# Commands to strip libraries. 21457old_striplib=$lt_old_striplib 21458striplib=$lt_striplib 21459 21460# Dependencies to place before the objects being linked to create a 21461# shared library. 21462predep_objects=$lt_predep_objects_GCJ 21463 21464# Dependencies to place after the objects being linked to create a 21465# shared library. 21466postdep_objects=$lt_postdep_objects_GCJ 21467 21468# Dependencies to place before the objects being linked to create a 21469# shared library. 21470predeps=$lt_predeps_GCJ 21471 21472# Dependencies to place after the objects being linked to create a 21473# shared library. 21474postdeps=$lt_postdeps_GCJ 21475 21476# The library search path used internally by the compiler when linking 21477# a shared library. 21478compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 21479 21480# Method to check whether dependent libraries are shared objects. 21481deplibs_check_method=$lt_deplibs_check_method 21482 21483# Command to use when deplibs_check_method == file_magic. 21484file_magic_cmd=$lt_file_magic_cmd 21485 21486# Flag that allows shared libraries with undefined symbols to be built. 21487allow_undefined_flag=$lt_allow_undefined_flag_GCJ 21488 21489# Flag that forces no undefined symbols. 21490no_undefined_flag=$lt_no_undefined_flag_GCJ 21491 21492# Commands used to finish a libtool library installation in a directory. 21493finish_cmds=$lt_finish_cmds 21494 21495# Same as above, but a single script fragment to be evaled but not shown. 21496finish_eval=$lt_finish_eval 21497 21498# Take the output of nm and produce a listing of raw symbols and C names. 21499global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21500 21501# Transform the output of nm in a proper C declaration 21502global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21503 21504# Transform the output of nm in a C name address pair 21505global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21506 21507# This is the shared library runtime path variable. 21508runpath_var=$runpath_var 21509 21510# This is the shared library path variable. 21511shlibpath_var=$shlibpath_var 21512 21513# Is shlibpath searched before the hard-coded library search path? 21514shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21515 21516# How to hardcode a shared library path into an executable. 21517hardcode_action=$hardcode_action_GCJ 21518 21519# Whether we should hardcode library paths into libraries. 21520hardcode_into_libs=$hardcode_into_libs 21521 21522# Flag to hardcode \$libdir into a binary during linking. 21523# This must work even if \$libdir does not exist. 21524hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 21525 21526# If ld is used when linking, flag to hardcode \$libdir into 21527# a binary during linking. This must work even if \$libdir does 21528# not exist. 21529hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 21530 21531# Whether we need a single -rpath flag with a separated argument. 21532hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 21533 21534# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 21535# resulting binary. 21536hardcode_direct=$hardcode_direct_GCJ 21537 21538# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 21539# resulting binary. 21540hardcode_minus_L=$hardcode_minus_L_GCJ 21541 21542# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 21543# the resulting binary. 21544hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 21545 21546# Set to yes if building a shared library automatically hardcodes DIR into the library 21547# and all subsequent libraries and executables linked against it. 21548hardcode_automatic=$hardcode_automatic_GCJ 21549 21550# Variables whose values should be saved in libtool wrapper scripts and 21551# restored at relink time. 21552variables_saved_for_relink="$variables_saved_for_relink" 21553 21554# Whether libtool must link a program against all its dependency libraries. 21555link_all_deplibs=$link_all_deplibs_GCJ 21556 21557# Compile-time system search path for libraries 21558sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21559 21560# Run-time system search path for libraries 21561sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21562 21563# Fix the shell variable \$srcfile for the compiler. 21564fix_srcfile_path="$fix_srcfile_path_GCJ" 21565 21566# Set to yes if exported symbols are required. 21567always_export_symbols=$always_export_symbols_GCJ 21568 21569# The commands to list exported symbols. 21570export_symbols_cmds=$lt_export_symbols_cmds_GCJ 21571 21572# The commands to extract the exported symbol list from a shared archive. 21573extract_expsyms_cmds=$lt_extract_expsyms_cmds 21574 21575# Symbols that should not be listed in the preloaded symbols. 21576exclude_expsyms=$lt_exclude_expsyms_GCJ 21577 21578# Symbols that must always be exported. 21579include_expsyms=$lt_include_expsyms_GCJ 21580 21581# ### END LIBTOOL TAG CONFIG: $tagname 21582 21583__EOF__ 21584 21585 21586else 21587 # If there is no Makefile yet, we rely on a make rule to execute 21588 # `config.status --recheck' to rerun these tests and create the 21589 # libtool script then. 21590 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 21591 if test -f "$ltmain_in"; then 21592 test -f Makefile && make "$ltmain" 21593 fi 21594fi 21595 21596 21597ac_ext=c 21598ac_cpp='$CPP $CPPFLAGS' 21599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21601ac_compiler_gnu=$ac_cv_c_compiler_gnu 21602 21603CC="$lt_save_CC" 21604 21605 else 21606 tagname="" 21607 fi 21608 ;; 21609 21610 RC) 21611 21612 21613# Source file extension for RC test sources. 21614ac_ext=rc 21615 21616# Object file extension for compiled RC test sources. 21617objext=o 21618objext_RC=$objext 21619 21620# Code to be used in simple compile tests 21621lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 21622 21623# Code to be used in simple link tests 21624lt_simple_link_test_code="$lt_simple_compile_test_code" 21625 21626# ltmain only uses $CC for tagged configurations so make sure $CC is set. 21627 21628# If no C compiler was specified, use CC. 21629LTCC=${LTCC-"$CC"} 21630 21631# If no C compiler flags were specified, use CFLAGS. 21632LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 21633 21634# Allow CC to be a program name with arguments. 21635compiler=$CC 21636 21637 21638# save warnings/boilerplate of simple test code 21639ac_outfile=conftest.$ac_objext 21640printf "$lt_simple_compile_test_code" >conftest.$ac_ext 21641eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 21642_lt_compiler_boilerplate=`cat conftest.err` 21643$rm conftest* 21644 21645ac_outfile=conftest.$ac_objext 21646printf "$lt_simple_link_test_code" >conftest.$ac_ext 21647eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 21648_lt_linker_boilerplate=`cat conftest.err` 21649$rm conftest* 21650 21651 21652# Allow CC to be a program name with arguments. 21653lt_save_CC="$CC" 21654CC=${RC-"windres"} 21655compiler=$CC 21656compiler_RC=$CC 21657for cc_temp in $compiler""; do 21658 case $cc_temp in 21659 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21660 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21661 \-*) ;; 21662 *) break;; 21663 esac 21664done 21665cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 21666 21667lt_cv_prog_compiler_c_o_RC=yes 21668 21669# The else clause should only fire when bootstrapping the 21670# libtool distribution, otherwise you forgot to ship ltmain.sh 21671# with your package, and you will get complaints that there are 21672# no rules to generate ltmain.sh. 21673if test -f "$ltmain"; then 21674 # See if we are running on zsh, and set the options which allow our commands through 21675 # without removal of \ escapes. 21676 if test -n "${ZSH_VERSION+set}" ; then 21677 setopt NO_GLOB_SUBST 21678 fi 21679 # Now quote all the things that may contain metacharacters while being 21680 # careful not to overquote the AC_SUBSTed values. We take copies of the 21681 # variables and quote the copies for generation of the libtool script. 21682 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 21683 SED SHELL STRIP \ 21684 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 21685 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 21686 deplibs_check_method reload_flag reload_cmds need_locks \ 21687 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 21688 lt_cv_sys_global_symbol_to_c_name_address \ 21689 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 21690 old_postinstall_cmds old_postuninstall_cmds \ 21691 compiler_RC \ 21692 CC_RC \ 21693 LD_RC \ 21694 lt_prog_compiler_wl_RC \ 21695 lt_prog_compiler_pic_RC \ 21696 lt_prog_compiler_static_RC \ 21697 lt_prog_compiler_no_builtin_flag_RC \ 21698 export_dynamic_flag_spec_RC \ 21699 thread_safe_flag_spec_RC \ 21700 whole_archive_flag_spec_RC \ 21701 enable_shared_with_static_runtimes_RC \ 21702 old_archive_cmds_RC \ 21703 old_archive_from_new_cmds_RC \ 21704 predep_objects_RC \ 21705 postdep_objects_RC \ 21706 predeps_RC \ 21707 postdeps_RC \ 21708 compiler_lib_search_path_RC \ 21709 archive_cmds_RC \ 21710 archive_expsym_cmds_RC \ 21711 postinstall_cmds_RC \ 21712 postuninstall_cmds_RC \ 21713 old_archive_from_expsyms_cmds_RC \ 21714 allow_undefined_flag_RC \ 21715 no_undefined_flag_RC \ 21716 export_symbols_cmds_RC \ 21717 hardcode_libdir_flag_spec_RC \ 21718 hardcode_libdir_flag_spec_ld_RC \ 21719 hardcode_libdir_separator_RC \ 21720 hardcode_automatic_RC \ 21721 module_cmds_RC \ 21722 module_expsym_cmds_RC \ 21723 lt_cv_prog_compiler_c_o_RC \ 21724 exclude_expsyms_RC \ 21725 include_expsyms_RC; do 21726 21727 case $var in 21728 old_archive_cmds_RC | \ 21729 old_archive_from_new_cmds_RC | \ 21730 archive_cmds_RC | \ 21731 archive_expsym_cmds_RC | \ 21732 module_cmds_RC | \ 21733 module_expsym_cmds_RC | \ 21734 old_archive_from_expsyms_cmds_RC | \ 21735 export_symbols_cmds_RC | \ 21736 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 21737 postinstall_cmds | postuninstall_cmds | \ 21738 old_postinstall_cmds | old_postuninstall_cmds | \ 21739 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 21740 # Double-quote double-evaled strings. 21741 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 21742 ;; 21743 *) 21744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 21745 ;; 21746 esac 21747 done 21748 21749 case $lt_echo in 21750 *'\$0 --fallback-echo"') 21751 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 21752 ;; 21753 esac 21754 21755cfgfile="$ofile" 21756 21757 cat <<__EOF__ >> "$cfgfile" 21758# ### BEGIN LIBTOOL TAG CONFIG: $tagname 21759 21760# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21761 21762# Shell to use when invoking shell scripts. 21763SHELL=$lt_SHELL 21764 21765# Whether or not to build shared libraries. 21766build_libtool_libs=$enable_shared 21767 21768# Whether or not to build static libraries. 21769build_old_libs=$enable_static 21770 21771# Whether or not to add -lc for building shared libraries. 21772build_libtool_need_lc=$archive_cmds_need_lc_RC 21773 21774# Whether or not to disallow shared libs when runtime libs are static 21775allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 21776 21777# Whether or not to optimize for fast installation. 21778fast_install=$enable_fast_install 21779 21780# The host system. 21781host_alias=$host_alias 21782host=$host 21783host_os=$host_os 21784 21785# The build system. 21786build_alias=$build_alias 21787build=$build 21788build_os=$build_os 21789 21790# An echo program that does not interpret backslashes. 21791echo=$lt_echo 21792 21793# The archiver. 21794AR=$lt_AR 21795AR_FLAGS=$lt_AR_FLAGS 21796 21797# A C compiler. 21798LTCC=$lt_LTCC 21799 21800# LTCC compiler flags. 21801LTCFLAGS=$lt_LTCFLAGS 21802 21803# A language-specific compiler. 21804CC=$lt_compiler_RC 21805 21806# Is the compiler the GNU C compiler? 21807with_gcc=$GCC_RC 21808 21809# An ERE matcher. 21810EGREP=$lt_EGREP 21811 21812# The linker used to build libraries. 21813LD=$lt_LD_RC 21814 21815# Whether we need hard or soft links. 21816LN_S=$lt_LN_S 21817 21818# A BSD-compatible nm program. 21819NM=$lt_NM 21820 21821# A symbol stripping program 21822STRIP=$lt_STRIP 21823 21824# Used to examine libraries when file_magic_cmd begins "file" 21825MAGIC_CMD=$MAGIC_CMD 21826 21827# Used on cygwin: DLL creation program. 21828DLLTOOL="$DLLTOOL" 21829 21830# Used on cygwin: object dumper. 21831OBJDUMP="$OBJDUMP" 21832 21833# Used on cygwin: assembler. 21834AS="$AS" 21835 21836# The name of the directory that contains temporary libtool files. 21837objdir=$objdir 21838 21839# How to create reloadable object files. 21840reload_flag=$lt_reload_flag 21841reload_cmds=$lt_reload_cmds 21842 21843# How to pass a linker flag through the compiler. 21844wl=$lt_lt_prog_compiler_wl_RC 21845 21846# Object file suffix (normally "o"). 21847objext="$ac_objext" 21848 21849# Old archive suffix (normally "a"). 21850libext="$libext" 21851 21852# Shared library suffix (normally ".so"). 21853shrext_cmds='$shrext_cmds' 21854 21855# Executable file suffix (normally ""). 21856exeext="$exeext" 21857 21858# Additional compiler flags for building library objects. 21859pic_flag=$lt_lt_prog_compiler_pic_RC 21860pic_mode=$pic_mode 21861 21862# What is the maximum length of a command? 21863max_cmd_len=$lt_cv_sys_max_cmd_len 21864 21865# Does compiler simultaneously support -c and -o options? 21866compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 21867 21868# Must we lock files when doing compilation? 21869need_locks=$lt_need_locks 21870 21871# Do we need the lib prefix for modules? 21872need_lib_prefix=$need_lib_prefix 21873 21874# Do we need a version for libraries? 21875need_version=$need_version 21876 21877# Whether dlopen is supported. 21878dlopen_support=$enable_dlopen 21879 21880# Whether dlopen of programs is supported. 21881dlopen_self=$enable_dlopen_self 21882 21883# Whether dlopen of statically linked programs is supported. 21884dlopen_self_static=$enable_dlopen_self_static 21885 21886# Compiler flag to prevent dynamic linking. 21887link_static_flag=$lt_lt_prog_compiler_static_RC 21888 21889# Compiler flag to turn off builtin functions. 21890no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 21891 21892# Compiler flag to allow reflexive dlopens. 21893export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 21894 21895# Compiler flag to generate shared objects directly from archives. 21896whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 21897 21898# Compiler flag to generate thread-safe objects. 21899thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 21900 21901# Library versioning type. 21902version_type=$version_type 21903 21904# Format of library name prefix. 21905libname_spec=$lt_libname_spec 21906 21907# List of archive names. First name is the real one, the rest are links. 21908# The last name is the one that the linker finds with -lNAME. 21909library_names_spec=$lt_library_names_spec 21910 21911# The coded name of the library, if different from the real name. 21912soname_spec=$lt_soname_spec 21913 21914# Commands used to build and install an old-style archive. 21915RANLIB=$lt_RANLIB 21916old_archive_cmds=$lt_old_archive_cmds_RC 21917old_postinstall_cmds=$lt_old_postinstall_cmds 21918old_postuninstall_cmds=$lt_old_postuninstall_cmds 21919 21920# Create an old-style archive from a shared archive. 21921old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 21922 21923# Create a temporary old-style archive to link instead of a shared archive. 21924old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 21925 21926# Commands used to build and install a shared archive. 21927archive_cmds=$lt_archive_cmds_RC 21928archive_expsym_cmds=$lt_archive_expsym_cmds_RC 21929postinstall_cmds=$lt_postinstall_cmds 21930postuninstall_cmds=$lt_postuninstall_cmds 21931 21932# Commands used to build a loadable module (assumed same as above if empty) 21933module_cmds=$lt_module_cmds_RC 21934module_expsym_cmds=$lt_module_expsym_cmds_RC 21935 21936# Commands to strip libraries. 21937old_striplib=$lt_old_striplib 21938striplib=$lt_striplib 21939 21940# Dependencies to place before the objects being linked to create a 21941# shared library. 21942predep_objects=$lt_predep_objects_RC 21943 21944# Dependencies to place after the objects being linked to create a 21945# shared library. 21946postdep_objects=$lt_postdep_objects_RC 21947 21948# Dependencies to place before the objects being linked to create a 21949# shared library. 21950predeps=$lt_predeps_RC 21951 21952# Dependencies to place after the objects being linked to create a 21953# shared library. 21954postdeps=$lt_postdeps_RC 21955 21956# The library search path used internally by the compiler when linking 21957# a shared library. 21958compiler_lib_search_path=$lt_compiler_lib_search_path_RC 21959 21960# Method to check whether dependent libraries are shared objects. 21961deplibs_check_method=$lt_deplibs_check_method 21962 21963# Command to use when deplibs_check_method == file_magic. 21964file_magic_cmd=$lt_file_magic_cmd 21965 21966# Flag that allows shared libraries with undefined symbols to be built. 21967allow_undefined_flag=$lt_allow_undefined_flag_RC 21968 21969# Flag that forces no undefined symbols. 21970no_undefined_flag=$lt_no_undefined_flag_RC 21971 21972# Commands used to finish a libtool library installation in a directory. 21973finish_cmds=$lt_finish_cmds 21974 21975# Same as above, but a single script fragment to be evaled but not shown. 21976finish_eval=$lt_finish_eval 21977 21978# Take the output of nm and produce a listing of raw symbols and C names. 21979global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21980 21981# Transform the output of nm in a proper C declaration 21982global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21983 21984# Transform the output of nm in a C name address pair 21985global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21986 21987# This is the shared library runtime path variable. 21988runpath_var=$runpath_var 21989 21990# This is the shared library path variable. 21991shlibpath_var=$shlibpath_var 21992 21993# Is shlibpath searched before the hard-coded library search path? 21994shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21995 21996# How to hardcode a shared library path into an executable. 21997hardcode_action=$hardcode_action_RC 21998 21999# Whether we should hardcode library paths into libraries. 22000hardcode_into_libs=$hardcode_into_libs 22001 22002# Flag to hardcode \$libdir into a binary during linking. 22003# This must work even if \$libdir does not exist. 22004hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 22005 22006# If ld is used when linking, flag to hardcode \$libdir into 22007# a binary during linking. This must work even if \$libdir does 22008# not exist. 22009hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 22010 22011# Whether we need a single -rpath flag with a separated argument. 22012hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 22013 22014# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 22015# resulting binary. 22016hardcode_direct=$hardcode_direct_RC 22017 22018# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 22019# resulting binary. 22020hardcode_minus_L=$hardcode_minus_L_RC 22021 22022# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 22023# the resulting binary. 22024hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 22025 22026# Set to yes if building a shared library automatically hardcodes DIR into the library 22027# and all subsequent libraries and executables linked against it. 22028hardcode_automatic=$hardcode_automatic_RC 22029 22030# Variables whose values should be saved in libtool wrapper scripts and 22031# restored at relink time. 22032variables_saved_for_relink="$variables_saved_for_relink" 22033 22034# Whether libtool must link a program against all its dependency libraries. 22035link_all_deplibs=$link_all_deplibs_RC 22036 22037# Compile-time system search path for libraries 22038sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22039 22040# Run-time system search path for libraries 22041sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 22042 22043# Fix the shell variable \$srcfile for the compiler. 22044fix_srcfile_path="$fix_srcfile_path_RC" 22045 22046# Set to yes if exported symbols are required. 22047always_export_symbols=$always_export_symbols_RC 22048 22049# The commands to list exported symbols. 22050export_symbols_cmds=$lt_export_symbols_cmds_RC 22051 22052# The commands to extract the exported symbol list from a shared archive. 22053extract_expsyms_cmds=$lt_extract_expsyms_cmds 22054 22055# Symbols that should not be listed in the preloaded symbols. 22056exclude_expsyms=$lt_exclude_expsyms_RC 22057 22058# Symbols that must always be exported. 22059include_expsyms=$lt_include_expsyms_RC 22060 22061# ### END LIBTOOL TAG CONFIG: $tagname 22062 22063__EOF__ 22064 22065 22066else 22067 # If there is no Makefile yet, we rely on a make rule to execute 22068 # `config.status --recheck' to rerun these tests and create the 22069 # libtool script then. 22070 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 22071 if test -f "$ltmain_in"; then 22072 test -f Makefile && make "$ltmain" 22073 fi 22074fi 22075 22076 22077ac_ext=c 22078ac_cpp='$CPP $CPPFLAGS' 22079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22081ac_compiler_gnu=$ac_cv_c_compiler_gnu 22082 22083CC="$lt_save_CC" 22084 22085 ;; 22086 22087 *) 22088 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 22089echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 22090 { (exit 1); exit 1; }; } 22091 ;; 22092 esac 22093 22094 # Append the new tag name to the list of available tags. 22095 if test -n "$tagname" ; then 22096 available_tags="$available_tags $tagname" 22097 fi 22098 fi 22099 done 22100 IFS="$lt_save_ifs" 22101 22102 # Now substitute the updated list of available tags. 22103 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 22104 mv "${ofile}T" "$ofile" 22105 chmod +x "$ofile" 22106 else 22107 rm -f "${ofile}T" 22108 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 22109echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 22110 { (exit 1); exit 1; }; } 22111 fi 22112fi 22113 22114 22115 22116# This can be used to rebuild libtool when needed 22117LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 22118 22119# Always use our own libtool. 22120LIBTOOL='$(SHELL) $(top_builddir)/libtool' 22121 22122# Prevent multiple expansion 22123 22124 22125 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135 22136 22137 22138 22139 22140 22141 22142 22143 22144 22145 22146 22147if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 22148 if test -n "$ac_tool_prefix"; then 22149 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 22150set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 22151{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22153if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 22154 echo $ECHO_N "(cached) $ECHO_C" >&6 22155else 22156 case $PKG_CONFIG in 22157 [\\/]* | ?:[\\/]*) 22158 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 22159 ;; 22160 *) 22161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22162for as_dir in $PATH 22163do 22164 IFS=$as_save_IFS 22165 test -z "$as_dir" && as_dir=. 22166 for ac_exec_ext in '' $ac_executable_extensions; do 22167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22168 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22170 break 2 22171 fi 22172done 22173done 22174IFS=$as_save_IFS 22175 22176 ;; 22177esac 22178fi 22179PKG_CONFIG=$ac_cv_path_PKG_CONFIG 22180if test -n "$PKG_CONFIG"; then 22181 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 22182echo "${ECHO_T}$PKG_CONFIG" >&6; } 22183else 22184 { echo "$as_me:$LINENO: result: no" >&5 22185echo "${ECHO_T}no" >&6; } 22186fi 22187 22188 22189fi 22190if test -z "$ac_cv_path_PKG_CONFIG"; then 22191 ac_pt_PKG_CONFIG=$PKG_CONFIG 22192 # Extract the first word of "pkg-config", so it can be a program name with args. 22193set dummy pkg-config; ac_word=$2 22194{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22196if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 22197 echo $ECHO_N "(cached) $ECHO_C" >&6 22198else 22199 case $ac_pt_PKG_CONFIG in 22200 [\\/]* | ?:[\\/]*) 22201 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 22202 ;; 22203 *) 22204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22205for as_dir in $PATH 22206do 22207 IFS=$as_save_IFS 22208 test -z "$as_dir" && as_dir=. 22209 for ac_exec_ext in '' $ac_executable_extensions; do 22210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22211 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22213 break 2 22214 fi 22215done 22216done 22217IFS=$as_save_IFS 22218 22219 ;; 22220esac 22221fi 22222ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 22223if test -n "$ac_pt_PKG_CONFIG"; then 22224 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 22225echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 22226else 22227 { echo "$as_me:$LINENO: result: no" >&5 22228echo "${ECHO_T}no" >&6; } 22229fi 22230 22231 if test "x$ac_pt_PKG_CONFIG" = x; then 22232 PKG_CONFIG="" 22233 else 22234 case $cross_compiling:$ac_tool_warned in 22235yes:) 22236{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 22237whose name does not start with the host triplet. If you think this 22238configuration is useful to you, please write to autoconf@gnu.org." >&5 22239echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 22240whose name does not start with the host triplet. If you think this 22241configuration is useful to you, please write to autoconf@gnu.org." >&2;} 22242ac_tool_warned=yes ;; 22243esac 22244 PKG_CONFIG=$ac_pt_PKG_CONFIG 22245 fi 22246else 22247 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 22248fi 22249 22250fi 22251if test -n "$PKG_CONFIG"; then 22252 _pkg_min_version=0.9.0 22253 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 22254echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 22255 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 22256 { echo "$as_me:$LINENO: result: yes" >&5 22257echo "${ECHO_T}yes" >&6; } 22258 else 22259 { echo "$as_me:$LINENO: result: no" >&5 22260echo "${ECHO_T}no" >&6; } 22261 PKG_CONFIG="" 22262 fi 22263 22264fi 22265 22266pkg_failed=no 22267{ echo "$as_me:$LINENO: checking for GDOME" >&5 22268echo $ECHO_N "checking for GDOME... $ECHO_C" >&6; } 22269 22270if test -n "$PKG_CONFIG"; then 22271 if test -n "$GDOME_CFLAGS"; then 22272 pkg_cv_GDOME_CFLAGS="$GDOME_CFLAGS" 22273 else 22274 if test -n "$PKG_CONFIG" && \ 22275 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdome2 >= 0.8.0\"") >&5 22276 ($PKG_CONFIG --exists --print-errors "gdome2 >= 0.8.0") 2>&5 22277 ac_status=$? 22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22279 (exit $ac_status); }; then 22280 pkg_cv_GDOME_CFLAGS=`$PKG_CONFIG --cflags "gdome2 >= 0.8.0" 2>/dev/null` 22281else 22282 pkg_failed=yes 22283fi 22284 fi 22285else 22286 pkg_failed=untried 22287fi 22288if test -n "$PKG_CONFIG"; then 22289 if test -n "$GDOME_LIBS"; then 22290 pkg_cv_GDOME_LIBS="$GDOME_LIBS" 22291 else 22292 if test -n "$PKG_CONFIG" && \ 22293 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gdome2 >= 0.8.0\"") >&5 22294 ($PKG_CONFIG --exists --print-errors "gdome2 >= 0.8.0") 2>&5 22295 ac_status=$? 22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22297 (exit $ac_status); }; then 22298 pkg_cv_GDOME_LIBS=`$PKG_CONFIG --libs "gdome2 >= 0.8.0" 2>/dev/null` 22299else 22300 pkg_failed=yes 22301fi 22302 fi 22303else 22304 pkg_failed=untried 22305fi 22306 22307 22308 22309if test $pkg_failed = yes; then 22310 22311if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22312 _pkg_short_errors_supported=yes 22313else 22314 _pkg_short_errors_supported=no 22315fi 22316 if test $_pkg_short_errors_supported = yes; then 22317 GDOME_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gdome2 >= 0.8.0"` 22318 else 22319 GDOME_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdome2 >= 0.8.0"` 22320 fi 22321 # Put the nasty error message in config.log where it belongs 22322 echo "$GDOME_PKG_ERRORS" >&5 22323 22324 { { echo "$as_me:$LINENO: error: Package requirements (gdome2 >= 0.8.0) were not met: 22325 22326$GDOME_PKG_ERRORS 22327 22328Consider adjusting the PKG_CONFIG_PATH environment variable if you 22329installed software in a non-standard prefix. 22330 22331Alternatively, you may set the environment variables GDOME_CFLAGS 22332and GDOME_LIBS to avoid the need to call pkg-config. 22333See the pkg-config man page for more details. 22334" >&5 22335echo "$as_me: error: Package requirements (gdome2 >= 0.8.0) were not met: 22336 22337$GDOME_PKG_ERRORS 22338 22339Consider adjusting the PKG_CONFIG_PATH environment variable if you 22340installed software in a non-standard prefix. 22341 22342Alternatively, you may set the environment variables GDOME_CFLAGS 22343and GDOME_LIBS to avoid the need to call pkg-config. 22344See the pkg-config man page for more details. 22345" >&2;} 22346 { (exit 1); exit 1; }; } 22347elif test $pkg_failed = untried; then 22348 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 22349is in your PATH or set the PKG_CONFIG environment variable to the full 22350path to pkg-config. 22351 22352Alternatively, you may set the environment variables GDOME_CFLAGS 22353and GDOME_LIBS to avoid the need to call pkg-config. 22354See the pkg-config man page for more details. 22355 22356To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 22357See \`config.log' for more details." >&5 22358echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 22359is in your PATH or set the PKG_CONFIG environment variable to the full 22360path to pkg-config. 22361 22362Alternatively, you may set the environment variables GDOME_CFLAGS 22363and GDOME_LIBS to avoid the need to call pkg-config. 22364See the pkg-config man page for more details. 22365 22366To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 22367See \`config.log' for more details." >&2;} 22368 { (exit 1); exit 1; }; } 22369else 22370 GDOME_CFLAGS=$pkg_cv_GDOME_CFLAGS 22371 GDOME_LIBS=$pkg_cv_GDOME_LIBS 22372 { echo "$as_me:$LINENO: result: yes" >&5 22373echo "${ECHO_T}yes" >&6; } 22374 : 22375fi 22376 22377 22378 22379# Extract the first word of "sed", so it can be a program name with args. 22380set dummy sed; ac_word=$2 22381{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22383if test "${ac_cv_prog_HAVE_SED+set}" = set; then 22384 echo $ECHO_N "(cached) $ECHO_C" >&6 22385else 22386 if test -n "$HAVE_SED"; then 22387 ac_cv_prog_HAVE_SED="$HAVE_SED" # Let the user override the test. 22388else 22389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22390for as_dir in $PATH 22391do 22392 IFS=$as_save_IFS 22393 test -z "$as_dir" && as_dir=. 22394 for ac_exec_ext in '' $ac_executable_extensions; do 22395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22396 ac_cv_prog_HAVE_SED="yes" 22397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22398 break 2 22399 fi 22400done 22401done 22402IFS=$as_save_IFS 22403 22404 test -z "$ac_cv_prog_HAVE_SED" && ac_cv_prog_HAVE_SED="no" 22405fi 22406fi 22407HAVE_SED=$ac_cv_prog_HAVE_SED 22408if test -n "$HAVE_SED"; then 22409 { echo "$as_me:$LINENO: result: $HAVE_SED" >&5 22410echo "${ECHO_T}$HAVE_SED" >&6; } 22411else 22412 { echo "$as_me:$LINENO: result: no" >&5 22413echo "${ECHO_T}no" >&6; } 22414fi 22415 22416 22417if test $HAVE_SED = no; then 22418 { echo "$as_me:$LINENO: WARNING: sed is needed to generate some source files" >&5 22419echo "$as_me: WARNING: sed is needed to generate some source files" >&2;} 22420else 22421 SED=sed 22422 22423fi 22424 22425 22426if test $HAVE_SED = yes; then 22427 HAVE_SED_COND_TRUE= 22428 HAVE_SED_COND_FALSE='#' 22429else 22430 HAVE_SED_COND_TRUE='#' 22431 HAVE_SED_COND_FALSE= 22432fi 22433 22434 22435# Extract the first word of "xsltproc", so it can be a program name with args. 22436set dummy xsltproc; ac_word=$2 22437{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22439if test "${ac_cv_prog_HAVE_XSLTPROC+set}" = set; then 22440 echo $ECHO_N "(cached) $ECHO_C" >&6 22441else 22442 if test -n "$HAVE_XSLTPROC"; then 22443 ac_cv_prog_HAVE_XSLTPROC="$HAVE_XSLTPROC" # Let the user override the test. 22444else 22445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22446for as_dir in $PATH 22447do 22448 IFS=$as_save_IFS 22449 test -z "$as_dir" && as_dir=. 22450 for ac_exec_ext in '' $ac_executable_extensions; do 22451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22452 ac_cv_prog_HAVE_XSLTPROC="yes" 22453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22454 break 2 22455 fi 22456done 22457done 22458IFS=$as_save_IFS 22459 22460 test -z "$ac_cv_prog_HAVE_XSLTPROC" && ac_cv_prog_HAVE_XSLTPROC="no" 22461fi 22462fi 22463HAVE_XSLTPROC=$ac_cv_prog_HAVE_XSLTPROC 22464if test -n "$HAVE_XSLTPROC"; then 22465 { echo "$as_me:$LINENO: result: $HAVE_XSLTPROC" >&5 22466echo "${ECHO_T}$HAVE_XSLTPROC" >&6; } 22467else 22468 { echo "$as_me:$LINENO: result: no" >&5 22469echo "${ECHO_T}no" >&6; } 22470fi 22471 22472 22473if test $HAVE_XSLTPROC = no; then 22474 { echo "$as_me:$LINENO: WARNING: xsltproc is needed to generate many source files" >&5 22475echo "$as_me: WARNING: xsltproc is needed to generate many source files" >&2;} 22476else 22477 XSLTPROC=xsltproc 22478 22479fi 22480 22481 22482if test $HAVE_XSLTPROC = yes; then 22483 HAVE_XSLTPROC_COND_TRUE= 22484 HAVE_XSLTPROC_COND_FALSE='#' 22485else 22486 HAVE_XSLTPROC_COND_TRUE='#' 22487 HAVE_XSLTPROC_COND_FALSE= 22488fi 22489 22490 22491ac_ext=cpp 22492ac_cpp='$CXXCPP $CPPFLAGS' 22493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22496 22497{ echo "$as_me:$LINENO: checking whether iconv has a const argument" >&5 22498echo $ECHO_N "checking whether iconv has a const argument... $ECHO_C" >&6; } 22499cat >conftest.$ac_ext <<_ACEOF 22500/* confdefs.h. */ 22501_ACEOF 22502cat confdefs.h >>conftest.$ac_ext 22503cat >>conftest.$ac_ext <<_ACEOF 22504/* end confdefs.h. */ 22505#include <iconv.h> 22506int 22507main () 22508{ 22509 22510 const char* inbuf; 22511 iconv_t cd; 22512 iconv(cd, &inbuf, 0, 0, 0); 22513 22514 ; 22515 return 0; 22516} 22517_ACEOF 22518rm -f conftest.$ac_objext 22519if { (ac_try="$ac_compile" 22520case "(($ac_try" in 22521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22522 *) ac_try_echo=$ac_try;; 22523esac 22524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22525 (eval "$ac_compile") 2>conftest.er1 22526 ac_status=$? 22527 grep -v '^ *+' conftest.er1 >conftest.err 22528 rm -f conftest.er1 22529 cat conftest.err >&5 22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22531 (exit $ac_status); } && { 22532 test -z "$ac_cxx_werror_flag" || 22533 test ! -s conftest.err 22534 } && test -s conftest.$ac_objext; then 22535 22536 22537cat >>confdefs.h <<\_ACEOF 22538#define ICONV_CONST 22539_ACEOF 22540 22541 { echo "$as_me:$LINENO: result: yes" >&5 22542echo "${ECHO_T}yes" >&6; } 22543 22544else 22545 echo "$as_me: failed program was:" >&5 22546sed 's/^/| /' conftest.$ac_ext >&5 22547 22548 22549 { echo "$as_me:$LINENO: result: no" >&5 22550echo "${ECHO_T}no" >&6; } 22551 22552 22553fi 22554 22555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22556 22557{ echo "$as_me:$LINENO: checking for the name of ios class" >&5 22558echo $ECHO_N "checking for the name of ios class... $ECHO_C" >&6; } 22559cat >conftest.$ac_ext <<_ACEOF 22560/* confdefs.h. */ 22561_ACEOF 22562cat confdefs.h >>conftest.$ac_ext 22563cat >>conftest.$ac_ext <<_ACEOF 22564/* end confdefs.h. */ 22565#include <iostream> 22566int 22567main () 22568{ 22569 22570 ios::fmtflags a; 22571 22572 ; 22573 return 0; 22574} 22575_ACEOF 22576rm -f conftest.$ac_objext 22577if { (ac_try="$ac_compile" 22578case "(($ac_try" in 22579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22580 *) ac_try_echo=$ac_try;; 22581esac 22582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22583 (eval "$ac_compile") 2>conftest.er1 22584 ac_status=$? 22585 grep -v '^ *+' conftest.er1 >conftest.err 22586 rm -f conftest.er1 22587 cat conftest.err >&5 22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22589 (exit $ac_status); } && { 22590 test -z "$ac_cxx_werror_flag" || 22591 test ! -s conftest.err 22592 } && test -s conftest.$ac_objext; then 22593 22594 22595cat >>confdefs.h <<\_ACEOF 22596#define HAVE_IOS_CLASS 22597_ACEOF 22598 22599 { echo "$as_me:$LINENO: result: apparently ios" >&5 22600echo "${ECHO_T}apparently ios" >&6; } 22601 22602else 22603 echo "$as_me: failed program was:" >&5 22604sed 's/^/| /' conftest.$ac_ext >&5 22605 22606 22607 { echo "$as_me:$LINENO: result: hopefully ios_base with explicit std namespace" >&5 22608echo "${ECHO_T}hopefully ios_base with explicit std namespace" >&6; } 22609 22610 22611fi 22612 22613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22614 22615{ echo "$as_me:$LINENO: checking whether the C++ compiler supports the standard character traits" >&5 22616echo $ECHO_N "checking whether the C++ compiler supports the standard character traits... $ECHO_C" >&6; } 22617cat >conftest.$ac_ext <<_ACEOF 22618/* confdefs.h. */ 22619_ACEOF 22620cat confdefs.h >>conftest.$ac_ext 22621cat >>conftest.$ac_ext <<_ACEOF 22622/* end confdefs.h. */ 22623#include <string> 22624int 22625main () 22626{ 22627 22628 std::basic_string<char> s1; 22629 std::basic_string<wchar_t> s2; 22630 22631 ; 22632 return 0; 22633} 22634_ACEOF 22635rm -f conftest.$ac_objext 22636if { (ac_try="$ac_compile" 22637case "(($ac_try" in 22638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22639 *) ac_try_echo=$ac_try;; 22640esac 22641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22642 (eval "$ac_compile") 2>conftest.er1 22643 ac_status=$? 22644 grep -v '^ *+' conftest.er1 >conftest.err 22645 rm -f conftest.er1 22646 cat conftest.err >&5 22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22648 (exit $ac_status); } && { 22649 test -z "$ac_cxx_werror_flag" || 22650 test ! -s conftest.err 22651 } && test -s conftest.$ac_objext; then 22652 22653 { echo "$as_me:$LINENO: result: yes" >&5 22654echo "${ECHO_T}yes" >&6; } 22655 STD_TRAITS="yes" 22656 22657else 22658 echo "$as_me: failed program was:" >&5 22659sed 's/^/| /' conftest.$ac_ext >&5 22660 22661 22662 { echo "$as_me:$LINENO: result: no" >&5 22663echo "${ECHO_T}no" >&6; } 22664 STD_TRAITS="no" 22665 22666 22667fi 22668 22669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22670 22671 22672{ echo "$as_me:$LINENO: checking whether the C++ compiler supports non-standard character traits" >&5 22673echo $ECHO_N "checking whether the C++ compiler supports non-standard character traits... $ECHO_C" >&6; } 22674cat >conftest.$ac_ext <<_ACEOF 22675/* confdefs.h. */ 22676_ACEOF 22677cat confdefs.h >>conftest.$ac_ext 22678cat >>conftest.$ac_ext <<_ACEOF 22679/* end confdefs.h. */ 22680#include <string> 22681int 22682main () 22683{ 22684 22685 std::basic_string<unsigned short> s1; 22686 std::basic_string<unsigned int> s2; 22687 std::basic_string<unsigned long> s3; 22688 22689 ; 22690 return 0; 22691} 22692_ACEOF 22693rm -f conftest.$ac_objext 22694if { (ac_try="$ac_compile" 22695case "(($ac_try" in 22696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22697 *) ac_try_echo=$ac_try;; 22698esac 22699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22700 (eval "$ac_compile") 2>conftest.er1 22701 ac_status=$? 22702 grep -v '^ *+' conftest.er1 >conftest.err 22703 rm -f conftest.er1 22704 cat conftest.err >&5 22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22706 (exit $ac_status); } && { 22707 test -z "$ac_cxx_werror_flag" || 22708 test ! -s conftest.err 22709 } && test -s conftest.$ac_objext; then 22710 22711 { echo "$as_me:$LINENO: result: yes" >&5 22712echo "${ECHO_T}yes" >&6; } 22713 ALL_TRAITS="1" 22714 22715else 22716 echo "$as_me: failed program was:" >&5 22717sed 's/^/| /' conftest.$ac_ext >&5 22718 22719 22720 { echo "$as_me:$LINENO: result: no" >&5 22721echo "${ECHO_T}no" >&6; } 22722 ALL_TRAITS="0" 22723 22724 22725fi 22726 22727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22728 22729 22730{ echo "$as_me:$LINENO: checking whether the C++ compiler supports template specialization" >&5 22731echo $ECHO_N "checking whether the C++ compiler supports template specialization... $ECHO_C" >&6; } 22732cat >conftest.$ac_ext <<_ACEOF 22733/* confdefs.h. */ 22734_ACEOF 22735cat confdefs.h >>conftest.$ac_ext 22736cat >>conftest.$ac_ext <<_ACEOF 22737/* end confdefs.h. */ 22738 22739 #include <string> 22740 22741 namespace std 22742 { 22743 template<> struct char_traits<unsigned short> { }; 22744 } 22745 22746int 22747main () 22748{ 22749 22750 ; 22751 return 0; 22752} 22753_ACEOF 22754rm -f conftest.$ac_objext 22755if { (ac_try="$ac_compile" 22756case "(($ac_try" in 22757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22758 *) ac_try_echo=$ac_try;; 22759esac 22760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22761 (eval "$ac_compile") 2>conftest.er1 22762 ac_status=$? 22763 grep -v '^ *+' conftest.er1 >conftest.err 22764 rm -f conftest.er1 22765 cat conftest.err >&5 22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22767 (exit $ac_status); } && { 22768 test -z "$ac_cxx_werror_flag" || 22769 test ! -s conftest.err 22770 } && test -s conftest.$ac_objext; then 22771 22772 { echo "$as_me:$LINENO: result: yes" >&5 22773echo "${ECHO_T}yes" >&6; } 22774 TRAIT_SPEC="1" 22775 22776else 22777 echo "$as_me: failed program was:" >&5 22778sed 's/^/| /' conftest.$ac_ext >&5 22779 22780 22781 { echo "$as_me:$LINENO: result: no" >&5 22782echo "${ECHO_T}no" >&6; } 22783 TRAIT_SPEC="0" 22784 22785 22786fi 22787 22788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22789 22790 22791ac_ext=c 22792ac_cpp='$CPP $CPPFLAGS' 22793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22795ac_compiler_gnu=$ac_cv_c_compiler_gnu 22796 22797 22798# Extract the first word of "iconv", so it can be a program name with args. 22799set dummy iconv; ac_word=$2 22800{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22802if test "${ac_cv_prog_HAVE_ICONV+set}" = set; then 22803 echo $ECHO_N "(cached) $ECHO_C" >&6 22804else 22805 if test -n "$HAVE_ICONV"; then 22806 ac_cv_prog_HAVE_ICONV="$HAVE_ICONV" # Let the user override the test. 22807else 22808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22809for as_dir in $PATH 22810do 22811 IFS=$as_save_IFS 22812 test -z "$as_dir" && as_dir=. 22813 for ac_exec_ext in '' $ac_executable_extensions; do 22814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22815 ac_cv_prog_HAVE_ICONV="yes" 22816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22817 break 2 22818 fi 22819done 22820done 22821IFS=$as_save_IFS 22822 22823 test -z "$ac_cv_prog_HAVE_ICONV" && ac_cv_prog_HAVE_ICONV="no" 22824fi 22825fi 22826HAVE_ICONV=$ac_cv_prog_HAVE_ICONV 22827if test -n "$HAVE_ICONV"; then 22828 { echo "$as_me:$LINENO: result: $HAVE_ICONV" >&5 22829echo "${ECHO_T}$HAVE_ICONV" >&6; } 22830else 22831 { echo "$as_me:$LINENO: result: no" >&5 22832echo "${ECHO_T}no" >&6; } 22833fi 22834 22835 22836if test $HAVE_ICONV = "yes"; then 22837 if iconv -t UTF-8 -f UTF-8 </dev/null >/dev/null 2>&1; then 22838 ICONV_UTF8="UTF-8" 22839 else 22840 { echo "$as_me:$LINENO: WARNING: iconv UTF-8 is not supported, this may result in failed assertions" >&5 22841echo "$as_me: WARNING: iconv UTF-8 is not supported, this may result in failed assertions" >&2;} 22842 ICONV_UTF8="UTF-8" 22843 fi 22844 22845 if iconv -t UTF-16BE -f UTF-16BE </dev/null >/dev/null 2>&1; then 22846 ICONV_UTF16BE="UTF-16BE" 22847 elif iconv -t UTF-16 -f UTF-16 </dev/null >/dev/null 2>&1; then 22848 { echo "$as_me:$LINENO: WARNING: assuming that iconv UTF-16 is bigendian" >&5 22849echo "$as_me: WARNING: assuming that iconv UTF-16 is bigendian" >&2;} 22850 ICONV_UTF16BE="UTF-16" 22851 else 22852 { echo "$as_me:$LINENO: WARNING: iconv UTF-16 is not supported, this may result in failed assertions" >&5 22853echo "$as_me: WARNING: iconv UTF-16 is not supported, this may result in failed assertions" >&2;} 22854 ICONV_UTF16BE="UTF-16" 22855 fi 22856 22857 if iconv -t UTF-16LE -f UTF-16LE </dev/null >/dev/null 2>&1; then 22858 ICONV_UTF16LE="UTF-16LE" 22859 else 22860 ICONV_UTF16LE="no" 22861 fi 22862 22863 if iconv -t UCS-4BE -f UCS-4BE </dev/null >/dev/null 2>&1; then 22864 ICONV_UCS4BE="UCS-4BE" 22865 elif iconv -t UCS-4 -f UCS-4 </dev/null >/dev/null 2>&1; then 22866 { echo "$as_me:$LINENO: WARNING: assuming that iconv UCS-4 is bigendian" >&5 22867echo "$as_me: WARNING: assuming that iconv UCS-4 is bigendian" >&2;} 22868 ICONV_UCS4BE="UCS-4" 22869 else 22870 { echo "$as_me:$LINENO: WARNING: iconv UCS-4 is not supported, this may result in failed assertions" >&5 22871echo "$as_me: WARNING: iconv UCS-4 is not supported, this may result in failed assertions" >&2;} 22872 ICONV_UCS4BE="UCS-4" 22873 fi 22874 22875 if iconv -t UCS-4LE -f UCS-4LE </dev/null >/dev/null 2>&1; then 22876 ICONV_UCS4LE="UCS-4LE" 22877 else 22878 ICONV_UCS4LE="no" 22879 fi 22880else 22881 { echo "$as_me:$LINENO: WARNING: iconv not found, assuming that UTF-8, UTF-16, UCS-4 exist, this may result in failed assertions" >&5 22882echo "$as_me: WARNING: iconv not found, assuming that UTF-8, UTF-16, UCS-4 exist, this may result in failed assertions" >&2;} 22883 ICONV_UTF8="UTF-8" 22884 ICONV_UTF16BE="UTF-16" 22885 ICONV_UTF16LE="no" 22886 ICONV_UCS4BE="UCS-4" 22887 ICONV_UCS4LE="no" 22888fi 22889 22890cat >>confdefs.h <<_ACEOF 22891#define ICONV_UTF8 "$ICONV_UTF8" 22892_ACEOF 22893 22894 22895cat >>confdefs.h <<_ACEOF 22896#define ICONV_UTF16BE "$ICONV_UTF16BE" 22897_ACEOF 22898 22899if test $ICONV_UTF16LE != "no"; then 22900 22901cat >>confdefs.h <<_ACEOF 22902#define ICONV_UTF16LE "$ICONV_UTF16LE" 22903_ACEOF 22904 22905fi 22906 22907cat >>confdefs.h <<_ACEOF 22908#define ICONV_UCS4BE "$ICONV_UCS4BE" 22909_ACEOF 22910 22911if test $ICONV_UCS4LE != "no"; then 22912 22913cat >>confdefs.h <<_ACEOF 22914#define ICONV_UCS4LE "$ICONV_UCS4LE" 22915_ACEOF 22916 22917fi 22918 22919for ac_prog in ocamlc.opt ocamlc 22920do 22921 # Extract the first word of "$ac_prog", so it can be a program name with args. 22922set dummy $ac_prog; ac_word=$2 22923{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22925if test "${ac_cv_prog_OCAMLC+set}" = set; then 22926 echo $ECHO_N "(cached) $ECHO_C" >&6 22927else 22928 if test -n "$OCAMLC"; then 22929 ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test. 22930else 22931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22932for as_dir in $PATH 22933do 22934 IFS=$as_save_IFS 22935 test -z "$as_dir" && as_dir=. 22936 for ac_exec_ext in '' $ac_executable_extensions; do 22937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22938 ac_cv_prog_OCAMLC="$ac_prog" 22939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22940 break 2 22941 fi 22942done 22943done 22944IFS=$as_save_IFS 22945 22946fi 22947fi 22948OCAMLC=$ac_cv_prog_OCAMLC 22949if test -n "$OCAMLC"; then 22950 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 22951echo "${ECHO_T}$OCAMLC" >&6; } 22952else 22953 { echo "$as_me:$LINENO: result: no" >&5 22954echo "${ECHO_T}no" >&6; } 22955fi 22956 22957 22958 test -n "$OCAMLC" && break 22959done 22960test -n "$OCAMLC" || OCAMLC="no" 22961 22962if test "$OCAMLC" = no; then 22963 { echo "$as_me:$LINENO: WARNING: Ocaml related modules won't be compiled since ocamlc was not found" >&5 22964echo "$as_me: WARNING: Ocaml related modules won't be compiled since ocamlc was not found" >&2;} 22965 HAVE_OCAMLC=no 22966else 22967 HAVE_OCAMLC=yes 22968 OCAML_LIB=`$OCAMLC -v | tail -1 | cut -d ':' -f2 | tr -d ' '` 22969 22970 if test $OCAML_INCLUDE_PREFIX = no; then 22971 OCAML_CFLAGS=-I$OCAML_LIB 22972 else 22973 OCAML_CFLAGS=$OCAML_INCLUDE_PREFIX 22974 fi 22975 22976 if test $OCAML_LIB_PREFIX = no; then 22977 if test "x$prefix" != "xNONE" -a "x$srcdir" = "x.."; then 22978 OCAML_LIB_PREFIX=$prefix/lib/ocaml 22979 { echo "$as_me:$LINENO: WARNING: if you are not doing a distcheck Ocaml files will be installed in $OCAML_LIB_PREFIX" >&5 22980echo "$as_me: WARNING: if you are not doing a distcheck Ocaml files will be installed in $OCAML_LIB_PREFIX" >&2;} 22981 else 22982 OCAML_LIB_PREFIX=$OCAML_LIB 22983 fi 22984 fi 22985 22986 22987 22988fi 22989 22990 22991for ac_prog in ocamlopt.opt ocamlopt 22992do 22993 # Extract the first word of "$ac_prog", so it can be a program name with args. 22994set dummy $ac_prog; ac_word=$2 22995{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22997if test "${ac_cv_prog_OCAMLOPT+set}" = set; then 22998 echo $ECHO_N "(cached) $ECHO_C" >&6 22999else 23000 if test -n "$OCAMLOPT"; then 23001 ac_cv_prog_OCAMLOPT="$OCAMLOPT" # Let the user override the test. 23002else 23003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23004for as_dir in $PATH 23005do 23006 IFS=$as_save_IFS 23007 test -z "$as_dir" && as_dir=. 23008 for ac_exec_ext in '' $ac_executable_extensions; do 23009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23010 ac_cv_prog_OCAMLOPT="$ac_prog" 23011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23012 break 2 23013 fi 23014done 23015done 23016IFS=$as_save_IFS 23017 23018fi 23019fi 23020OCAMLOPT=$ac_cv_prog_OCAMLOPT 23021if test -n "$OCAMLOPT"; then 23022 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 23023echo "${ECHO_T}$OCAMLOPT" >&6; } 23024else 23025 { echo "$as_me:$LINENO: result: no" >&5 23026echo "${ECHO_T}no" >&6; } 23027fi 23028 23029 23030 test -n "$OCAMLOPT" && break 23031done 23032test -n "$OCAMLOPT" || OCAMLOPT="no" 23033 23034if test "$OCAMLOPT" = no; then 23035 { echo "$as_me:$LINENO: WARNING: ocaml native libraries won't be compiled since ocamlopt was not found" >&5 23036echo "$as_me: WARNING: ocaml native libraries won't be compiled since ocamlopt was not found" >&2;} 23037 HAVE_OCAMLOPT=no 23038else 23039 HAVE_OCAMLOPT=yes 23040fi 23041 23042 23043 23044 23045if test x$HAVE_OCAMLOPT = xyes; then 23046 HAVE_OCAMLOPT_COND_TRUE= 23047 HAVE_OCAMLOPT_COND_FALSE='#' 23048else 23049 HAVE_OCAMLOPT_COND_TRUE='#' 23050 HAVE_OCAMLOPT_COND_FALSE= 23051fi 23052 23053 23054# Extract the first word of "ocamldep", so it can be a program name with args. 23055set dummy ocamldep; ac_word=$2 23056{ echo "$as_me:$LINENO: checking for $ac_word" >&5 23057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 23058if test "${ac_cv_prog_HAVE_OCAMLDEP+set}" = set; then 23059 echo $ECHO_N "(cached) $ECHO_C" >&6 23060else 23061 if test -n "$HAVE_OCAMLDEP"; then 23062 ac_cv_prog_HAVE_OCAMLDEP="$HAVE_OCAMLDEP" # Let the user override the test. 23063else 23064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23065for as_dir in $PATH 23066do 23067 IFS=$as_save_IFS 23068 test -z "$as_dir" && as_dir=. 23069 for ac_exec_ext in '' $ac_executable_extensions; do 23070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23071 ac_cv_prog_HAVE_OCAMLDEP="yes" 23072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23073 break 2 23074 fi 23075done 23076done 23077IFS=$as_save_IFS 23078 23079 test -z "$ac_cv_prog_HAVE_OCAMLDEP" && ac_cv_prog_HAVE_OCAMLDEP="no" 23080fi 23081fi 23082HAVE_OCAMLDEP=$ac_cv_prog_HAVE_OCAMLDEP 23083if test -n "$HAVE_OCAMLDEP"; then 23084 { echo "$as_me:$LINENO: result: $HAVE_OCAMLDEP" >&5 23085echo "${ECHO_T}$HAVE_OCAMLDEP" >&6; } 23086else 23087 { echo "$as_me:$LINENO: result: no" >&5 23088echo "${ECHO_T}no" >&6; } 23089fi 23090 23091 23092if test $HAVE_OCAMLDEP = no; then 23093 { echo "$as_me:$LINENO: WARNING: ocaml related modules won't be compiled since ocamldep was not found" >&5 23094echo "$as_me: WARNING: ocaml related modules won't be compiled since ocamldep was not found" >&2;} 23095else 23096 OCAMLDEP=ocamldep 23097 23098fi 23099 23100# Extract the first word of "ocamlfind", so it can be a program name with args. 23101set dummy ocamlfind; ac_word=$2 23102{ echo "$as_me:$LINENO: checking for $ac_word" >&5 23103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 23104if test "${ac_cv_prog_HAVE_OCAMLFIND+set}" = set; then 23105 echo $ECHO_N "(cached) $ECHO_C" >&6 23106else 23107 if test -n "$HAVE_OCAMLFIND"; then 23108 ac_cv_prog_HAVE_OCAMLFIND="$HAVE_OCAMLFIND" # Let the user override the test. 23109else 23110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23111for as_dir in $PATH 23112do 23113 IFS=$as_save_IFS 23114 test -z "$as_dir" && as_dir=. 23115 for ac_exec_ext in '' $ac_executable_extensions; do 23116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23117 ac_cv_prog_HAVE_OCAMLFIND="yes" 23118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23119 break 2 23120 fi 23121done 23122done 23123IFS=$as_save_IFS 23124 23125 test -z "$ac_cv_prog_HAVE_OCAMLFIND" && ac_cv_prog_HAVE_OCAMLFIND="no" 23126fi 23127fi 23128HAVE_OCAMLFIND=$ac_cv_prog_HAVE_OCAMLFIND 23129if test -n "$HAVE_OCAMLFIND"; then 23130 { echo "$as_me:$LINENO: result: $HAVE_OCAMLFIND" >&5 23131echo "${ECHO_T}$HAVE_OCAMLFIND" >&6; } 23132else 23133 { echo "$as_me:$LINENO: result: no" >&5 23134echo "${ECHO_T}no" >&6; } 23135fi 23136 23137 23138if test $HAVE_OCAMLFIND = no; then 23139 { echo "$as_me:$LINENO: WARNING: findlib not found. The META file will be installed anyway but /usr/lib/ocaml/ld.conf will not be updated automatically" >&5 23140echo "$as_me: WARNING: findlib not found. The META file will be installed anyway but /usr/lib/ocaml/ld.conf will not be updated automatically" >&2;} 23141else 23142 OCAMLFIND=ocamlfind 23143 23144fi 23145 23146if test "$GMETADOM_MODULES" = all; then 23147 GMETADOM_MODULES="gdome_cpp_smart" 23148 23149 if test $HAVE_OCAMLC = yes -a $HAVE_OCAMLOPT = yes -a $HAVE_OCAMLDEP = yes; then 23150 GMETADOM_MODULES="$GMETADOM_MODULES gdome_caml" 23151 fi 23152fi 23153 23154 23155ac_config_files="$ac_config_files Makefile xml/Makefile src/Makefile src/shared/Makefile src/shared/Char.hh.in src/gdome_cpp_smart/Makefile src/gdome_cpp_smart/xsl/Makefile src/gdome_cpp_smart/include/Makefile src/gdome_cpp_smart/basic/Makefile src/gdome_cpp_smart/core/Makefile src/gdome_cpp_smart/events/Makefile src/gdome_cpp_smart/test/Makefile src/gdome_caml/META src/gdome_caml/Makefile src/gdome_caml/xsl/Makefile src/gdome_caml/xml/Makefile src/gdome_caml/xml/Core/Makefile src/gdome_caml/xml/Events/Makefile src/gdome_caml/include/Makefile src/gdome_caml/types/Makefile src/gdome_caml/basic/Makefile src/gdome_caml/core/Makefile src/gdome_caml/events/Makefile src/gdome_caml/test/Makefile src/gdome_caml/ocaml/Makefile gdome2-cpp-smart.pc libgdome2.spec" 23156 23157cat >confcache <<\_ACEOF 23158# This file is a shell script that caches the results of configure 23159# tests run on this system so they can be shared between configure 23160# scripts and configure runs, see configure's option --config-cache. 23161# It is not useful on other systems. If it contains results you don't 23162# want to keep, you may remove or edit it. 23163# 23164# config.status only pays attention to the cache file if you give it 23165# the --recheck option to rerun configure. 23166# 23167# `ac_cv_env_foo' variables (set or unset) will be overridden when 23168# loading this file, other *unset* `ac_cv_foo' will be assigned the 23169# following values. 23170 23171_ACEOF 23172 23173# The following way of writing the cache mishandles newlines in values, 23174# but we know of no workaround that is simple, portable, and efficient. 23175# So, we kill variables containing newlines. 23176# Ultrix sh set writes to stderr and can't be redirected directly, 23177# and sets the high bit in the cache file unless we assign to the vars. 23178( 23179 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23180 eval ac_val=\$$ac_var 23181 case $ac_val in #( 23182 *${as_nl}*) 23183 case $ac_var in #( 23184 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 23185echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 23186 esac 23187 case $ac_var in #( 23188 _ | IFS | as_nl) ;; #( 23189 *) $as_unset $ac_var ;; 23190 esac ;; 23191 esac 23192 done 23193 23194 (set) 2>&1 | 23195 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23196 *${as_nl}ac_space=\ *) 23197 # `set' does not quote correctly, so add quotes (double-quote 23198 # substitution turns \\\\ into \\, and sed turns \\ into \). 23199 sed -n \ 23200 "s/'/'\\\\''/g; 23201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23202 ;; #( 23203 *) 23204 # `set' quotes correctly as required by POSIX, so do not add quotes. 23205 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23206 ;; 23207 esac | 23208 sort 23209) | 23210 sed ' 23211 /^ac_cv_env_/b end 23212 t clear 23213 :clear 23214 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23215 t end 23216 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23217 :end' >>confcache 23218if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23219 if test -w "$cache_file"; then 23220 test "x$cache_file" != "x/dev/null" && 23221 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 23222echo "$as_me: updating cache $cache_file" >&6;} 23223 cat confcache >$cache_file 23224 else 23225 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 23226echo "$as_me: not updating unwritable cache $cache_file" >&6;} 23227 fi 23228fi 23229rm -f confcache 23230 23231test "x$prefix" = xNONE && prefix=$ac_default_prefix 23232# Let make expand exec_prefix. 23233test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23234 23235DEFS=-DHAVE_CONFIG_H 23236 23237ac_libobjs= 23238ac_ltlibobjs= 23239for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23240 # 1. Remove the extension, and $U if already installed. 23241 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23242 ac_i=`echo "$ac_i" | sed "$ac_script"` 23243 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23244 # will be set to the directory where LIBOBJS objects are built. 23245 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23246 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 23247done 23248LIBOBJS=$ac_libobjs 23249 23250LTLIBOBJS=$ac_ltlibobjs 23251 23252 23253if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23254 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 23255Usually this means the macro was only invoked conditionally." >&5 23256echo "$as_me: error: conditional \"AMDEP\" was never defined. 23257Usually this means the macro was only invoked conditionally." >&2;} 23258 { (exit 1); exit 1; }; } 23259fi 23260if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23261 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23262Usually this means the macro was only invoked conditionally." >&5 23263echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23264Usually this means the macro was only invoked conditionally." >&2;} 23265 { (exit 1); exit 1; }; } 23266fi 23267if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23268 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23269Usually this means the macro was only invoked conditionally." >&5 23270echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23271Usually this means the macro was only invoked conditionally." >&2;} 23272 { (exit 1); exit 1; }; } 23273fi 23274if test -z "${HAVE_SED_COND_TRUE}" && test -z "${HAVE_SED_COND_FALSE}"; then 23275 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SED_COND\" was never defined. 23276Usually this means the macro was only invoked conditionally." >&5 23277echo "$as_me: error: conditional \"HAVE_SED_COND\" was never defined. 23278Usually this means the macro was only invoked conditionally." >&2;} 23279 { (exit 1); exit 1; }; } 23280fi 23281if test -z "${HAVE_XSLTPROC_COND_TRUE}" && test -z "${HAVE_XSLTPROC_COND_FALSE}"; then 23282 { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC_COND\" was never defined. 23283Usually this means the macro was only invoked conditionally." >&5 23284echo "$as_me: error: conditional \"HAVE_XSLTPROC_COND\" was never defined. 23285Usually this means the macro was only invoked conditionally." >&2;} 23286 { (exit 1); exit 1; }; } 23287fi 23288if test -z "${HAVE_OCAMLOPT_COND_TRUE}" && test -z "${HAVE_OCAMLOPT_COND_FALSE}"; then 23289 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OCAMLOPT_COND\" was never defined. 23290Usually this means the macro was only invoked conditionally." >&5 23291echo "$as_me: error: conditional \"HAVE_OCAMLOPT_COND\" was never defined. 23292Usually this means the macro was only invoked conditionally." >&2;} 23293 { (exit 1); exit 1; }; } 23294fi 23295 23296: ${CONFIG_STATUS=./config.status} 23297ac_clean_files_save=$ac_clean_files 23298ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23299{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23300echo "$as_me: creating $CONFIG_STATUS" >&6;} 23301cat >$CONFIG_STATUS <<_ACEOF 23302#! $SHELL 23303# Generated by $as_me. 23304# Run this file to recreate the current configuration. 23305# Compiler output produced by configure, useful for debugging 23306# configure, is in config.log if it exists. 23307 23308debug=false 23309ac_cs_recheck=false 23310ac_cs_silent=false 23311SHELL=\${CONFIG_SHELL-$SHELL} 23312_ACEOF 23313 23314cat >>$CONFIG_STATUS <<\_ACEOF 23315## --------------------- ## 23316## M4sh Initialization. ## 23317## --------------------- ## 23318 23319# Be more Bourne compatible 23320DUALCASE=1; export DUALCASE # for MKS sh 23321if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23322 emulate sh 23323 NULLCMD=: 23324 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23325 # is contrary to our usage. Disable this feature. 23326 alias -g '${1+"$@"}'='"$@"' 23327 setopt NO_GLOB_SUBST 23328else 23329 case `(set -o) 2>/dev/null` in 23330 *posix*) set -o posix ;; 23331esac 23332 23333fi 23334 23335 23336 23337 23338# PATH needs CR 23339# Avoid depending upon Character Ranges. 23340as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23341as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23342as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23343as_cr_digits='0123456789' 23344as_cr_alnum=$as_cr_Letters$as_cr_digits 23345 23346# The user is always right. 23347if test "${PATH_SEPARATOR+set}" != set; then 23348 echo "#! /bin/sh" >conf$$.sh 23349 echo "exit 0" >>conf$$.sh 23350 chmod +x conf$$.sh 23351 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23352 PATH_SEPARATOR=';' 23353 else 23354 PATH_SEPARATOR=: 23355 fi 23356 rm -f conf$$.sh 23357fi 23358 23359# Support unset when possible. 23360if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23361 as_unset=unset 23362else 23363 as_unset=false 23364fi 23365 23366 23367# IFS 23368# We need space, tab and new line, in precisely that order. Quoting is 23369# there to prevent editors from complaining about space-tab. 23370# (If _AS_PATH_WALK were called with IFS unset, it would disable word 23371# splitting by setting IFS to empty value.) 23372as_nl=' 23373' 23374IFS=" "" $as_nl" 23375 23376# Find who we are. Look in the path if we contain no directory separator. 23377case $0 in 23378 *[\\/]* ) as_myself=$0 ;; 23379 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23380for as_dir in $PATH 23381do 23382 IFS=$as_save_IFS 23383 test -z "$as_dir" && as_dir=. 23384 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23385done 23386IFS=$as_save_IFS 23387 23388 ;; 23389esac 23390# We did not find ourselves, most probably we were run as `sh COMMAND' 23391# in which case we are not to be found in the path. 23392if test "x$as_myself" = x; then 23393 as_myself=$0 23394fi 23395if test ! -f "$as_myself"; then 23396 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23397 { (exit 1); exit 1; } 23398fi 23399 23400# Work around bugs in pre-3.0 UWIN ksh. 23401for as_var in ENV MAIL MAILPATH 23402do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23403done 23404PS1='$ ' 23405PS2='> ' 23406PS4='+ ' 23407 23408# NLS nuisances. 23409for as_var in \ 23410 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 23411 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 23412 LC_TELEPHONE LC_TIME 23413do 23414 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 23415 eval $as_var=C; export $as_var 23416 else 23417 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23418 fi 23419done 23420 23421# Required to use basename. 23422if expr a : '\(a\)' >/dev/null 2>&1 && 23423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23424 as_expr=expr 23425else 23426 as_expr=false 23427fi 23428 23429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23430 as_basename=basename 23431else 23432 as_basename=false 23433fi 23434 23435 23436# Name of the executable. 23437as_me=`$as_basename -- "$0" || 23438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23439 X"$0" : 'X\(//\)$' \| \ 23440 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23441echo X/"$0" | 23442 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23443 s//\1/ 23444 q 23445 } 23446 /^X\/\(\/\/\)$/{ 23447 s//\1/ 23448 q 23449 } 23450 /^X\/\(\/\).*/{ 23451 s//\1/ 23452 q 23453 } 23454 s/.*/./; q'` 23455 23456# CDPATH. 23457$as_unset CDPATH 23458 23459 23460 23461 as_lineno_1=$LINENO 23462 as_lineno_2=$LINENO 23463 test "x$as_lineno_1" != "x$as_lineno_2" && 23464 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 23465 23466 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23467 # uniformly replaced by the line number. The first 'sed' inserts a 23468 # line-number line after each line using $LINENO; the second 'sed' 23469 # does the real work. The second script uses 'N' to pair each 23470 # line-number line with the line containing $LINENO, and appends 23471 # trailing '-' during substitution so that $LINENO is not a special 23472 # case at line end. 23473 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23474 # scripts with optimization help from Paolo Bonzini. Blame Lee 23475 # E. McMahon (1931-1989) for sed's syntax. :-) 23476 sed -n ' 23477 p 23478 /[$]LINENO/= 23479 ' <$as_myself | 23480 sed ' 23481 s/[$]LINENO.*/&-/ 23482 t lineno 23483 b 23484 :lineno 23485 N 23486 :loop 23487 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 23488 t loop 23489 s/-\n.*// 23490 ' >$as_me.lineno && 23491 chmod +x "$as_me.lineno" || 23492 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 23493 { (exit 1); exit 1; }; } 23494 23495 # Don't try to exec as it changes $[0], causing all sort of problems 23496 # (the dirname of $[0] is not the place where we might find the 23497 # original and so on. Autoconf is especially sensitive to this). 23498 . "./$as_me.lineno" 23499 # Exit status is that of the last command. 23500 exit 23501} 23502 23503 23504if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23505 as_dirname=dirname 23506else 23507 as_dirname=false 23508fi 23509 23510ECHO_C= ECHO_N= ECHO_T= 23511case `echo -n x` in 23512-n*) 23513 case `echo 'x\c'` in 23514 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23515 *) ECHO_C='\c';; 23516 esac;; 23517*) 23518 ECHO_N='-n';; 23519esac 23520 23521if expr a : '\(a\)' >/dev/null 2>&1 && 23522 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23523 as_expr=expr 23524else 23525 as_expr=false 23526fi 23527 23528rm -f conf$$ conf$$.exe conf$$.file 23529if test -d conf$$.dir; then 23530 rm -f conf$$.dir/conf$$.file 23531else 23532 rm -f conf$$.dir 23533 mkdir conf$$.dir 23534fi 23535echo >conf$$.file 23536if ln -s conf$$.file conf$$ 2>/dev/null; then 23537 as_ln_s='ln -s' 23538 # ... but there are two gotchas: 23539 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23540 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23541 # In both cases, we have to default to `cp -p'. 23542 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23543 as_ln_s='cp -p' 23544elif ln conf$$.file conf$$ 2>/dev/null; then 23545 as_ln_s=ln 23546else 23547 as_ln_s='cp -p' 23548fi 23549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23550rmdir conf$$.dir 2>/dev/null 23551 23552if mkdir -p . 2>/dev/null; then 23553 as_mkdir_p=: 23554else 23555 test -d ./-p && rmdir ./-p 23556 as_mkdir_p=false 23557fi 23558 23559if test -x / >/dev/null 2>&1; then 23560 as_test_x='test -x' 23561else 23562 if ls -dL / >/dev/null 2>&1; then 23563 as_ls_L_option=L 23564 else 23565 as_ls_L_option= 23566 fi 23567 as_test_x=' 23568 eval sh -c '\'' 23569 if test -d "$1"; then 23570 test -d "$1/."; 23571 else 23572 case $1 in 23573 -*)set "./$1";; 23574 esac; 23575 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 23576 ???[sx]*):;;*)false;;esac;fi 23577 '\'' sh 23578 ' 23579fi 23580as_executable_p=$as_test_x 23581 23582# Sed expression to map a string onto a valid CPP name. 23583as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23584 23585# Sed expression to map a string onto a valid variable name. 23586as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23587 23588 23589exec 6>&1 23590 23591# Save the log message, to keep $[0] and so on meaningful, and to 23592# report actual input values of CONFIG_FILES etc. instead of their 23593# values after options handling. 23594ac_log=" 23595This file was extended by $as_me, which was 23596generated by GNU Autoconf 2.61. Invocation command line was 23597 23598 CONFIG_FILES = $CONFIG_FILES 23599 CONFIG_HEADERS = $CONFIG_HEADERS 23600 CONFIG_LINKS = $CONFIG_LINKS 23601 CONFIG_COMMANDS = $CONFIG_COMMANDS 23602 $ $0 $@ 23603 23604on `(hostname || uname -n) 2>/dev/null | sed 1q` 23605" 23606 23607_ACEOF 23608 23609cat >>$CONFIG_STATUS <<_ACEOF 23610# Files that config.status was made for. 23611config_files="$ac_config_files" 23612config_headers="$ac_config_headers" 23613config_commands="$ac_config_commands" 23614 23615_ACEOF 23616 23617cat >>$CONFIG_STATUS <<\_ACEOF 23618ac_cs_usage="\ 23619\`$as_me' instantiates files from templates according to the 23620current configuration. 23621 23622Usage: $0 [OPTIONS] [FILE]... 23623 23624 -h, --help print this help, then exit 23625 -V, --version print version number and configuration settings, then exit 23626 -q, --quiet do not print progress messages 23627 -d, --debug don't remove temporary files 23628 --recheck update $as_me by reconfiguring in the same conditions 23629 --file=FILE[:TEMPLATE] 23630 instantiate the configuration file FILE 23631 --header=FILE[:TEMPLATE] 23632 instantiate the configuration header FILE 23633 23634Configuration files: 23635$config_files 23636 23637Configuration headers: 23638$config_headers 23639 23640Configuration commands: 23641$config_commands 23642 23643Report bugs to <bug-autoconf@gnu.org>." 23644 23645_ACEOF 23646cat >>$CONFIG_STATUS <<_ACEOF 23647ac_cs_version="\\ 23648config.status 23649configured by $0, generated by GNU Autoconf 2.61, 23650 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 23651 23652Copyright (C) 2006 Free Software Foundation, Inc. 23653This config.status script is free software; the Free Software Foundation 23654gives unlimited permission to copy, distribute and modify it." 23655 23656ac_pwd='$ac_pwd' 23657srcdir='$srcdir' 23658INSTALL='$INSTALL' 23659_ACEOF 23660 23661cat >>$CONFIG_STATUS <<\_ACEOF 23662# If no file are specified by the user, then we need to provide default 23663# value. By we need to know if files were specified by the user. 23664ac_need_defaults=: 23665while test $# != 0 23666do 23667 case $1 in 23668 --*=*) 23669 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23670 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23671 ac_shift=: 23672 ;; 23673 *) 23674 ac_option=$1 23675 ac_optarg=$2 23676 ac_shift=shift 23677 ;; 23678 esac 23679 23680 case $ac_option in 23681 # Handling of the options. 23682 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23683 ac_cs_recheck=: ;; 23684 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23685 echo "$ac_cs_version"; exit ;; 23686 --debug | --debu | --deb | --de | --d | -d ) 23687 debug=: ;; 23688 --file | --fil | --fi | --f ) 23689 $ac_shift 23690 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23691 ac_need_defaults=false;; 23692 --header | --heade | --head | --hea ) 23693 $ac_shift 23694 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23695 ac_need_defaults=false;; 23696 --he | --h) 23697 # Conflict between --help and --header 23698 { echo "$as_me: error: ambiguous option: $1 23699Try \`$0 --help' for more information." >&2 23700 { (exit 1); exit 1; }; };; 23701 --help | --hel | -h ) 23702 echo "$ac_cs_usage"; exit ;; 23703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23704 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23705 ac_cs_silent=: ;; 23706 23707 # This is an error. 23708 -*) { echo "$as_me: error: unrecognized option: $1 23709Try \`$0 --help' for more information." >&2 23710 { (exit 1); exit 1; }; } ;; 23711 23712 *) ac_config_targets="$ac_config_targets $1" 23713 ac_need_defaults=false ;; 23714 23715 esac 23716 shift 23717done 23718 23719ac_configure_extra_args= 23720 23721if $ac_cs_silent; then 23722 exec 6>/dev/null 23723 ac_configure_extra_args="$ac_configure_extra_args --silent" 23724fi 23725 23726_ACEOF 23727cat >>$CONFIG_STATUS <<_ACEOF 23728if \$ac_cs_recheck; then 23729 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23730 CONFIG_SHELL=$SHELL 23731 export CONFIG_SHELL 23732 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23733fi 23734 23735_ACEOF 23736cat >>$CONFIG_STATUS <<\_ACEOF 23737exec 5>>config.log 23738{ 23739 echo 23740 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23741## Running $as_me. ## 23742_ASBOX 23743 echo "$ac_log" 23744} >&5 23745 23746_ACEOF 23747cat >>$CONFIG_STATUS <<_ACEOF 23748# 23749# INIT-COMMANDS 23750# 23751AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 23752 23753_ACEOF 23754 23755cat >>$CONFIG_STATUS <<\_ACEOF 23756 23757# Handling of arguments. 23758for ac_config_target in $ac_config_targets 23759do 23760 case $ac_config_target in 23761 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23762 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23763 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23764 "xml/Makefile") CONFIG_FILES="$CONFIG_FILES xml/Makefile" ;; 23765 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23766 "src/shared/Makefile") CONFIG_FILES="$CONFIG_FILES src/shared/Makefile" ;; 23767 "src/shared/Char.hh.in") CONFIG_FILES="$CONFIG_FILES src/shared/Char.hh.in" ;; 23768 "src/gdome_cpp_smart/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_cpp_smart/Makefile" ;; 23769 "src/gdome_cpp_smart/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_cpp_smart/xsl/Makefile" ;; 23770 "src/gdome_cpp_smart/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_cpp_smart/include/Makefile" ;; 23771 "src/gdome_cpp_smart/basic/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_cpp_smart/basic/Makefile" ;; 23772 "src/gdome_cpp_smart/core/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_cpp_smart/core/Makefile" ;; 23773 "src/gdome_cpp_smart/events/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_cpp_smart/events/Makefile" ;; 23774 "src/gdome_cpp_smart/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_cpp_smart/test/Makefile" ;; 23775 "src/gdome_caml/META") CONFIG_FILES="$CONFIG_FILES src/gdome_caml/META" ;; 23776 "src/gdome_caml/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_caml/Makefile" ;; 23777 "src/gdome_caml/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_caml/xsl/Makefile" ;; 23778 "src/gdome_caml/xml/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_caml/xml/Makefile" ;; 23779 "src/gdome_caml/xml/Core/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_caml/xml/Core/Makefile" ;; 23780 "src/gdome_caml/xml/Events/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_caml/xml/Events/Makefile" ;; 23781 "src/gdome_caml/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_caml/include/Makefile" ;; 23782 "src/gdome_caml/types/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_caml/types/Makefile" ;; 23783 "src/gdome_caml/basic/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_caml/basic/Makefile" ;; 23784 "src/gdome_caml/core/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_caml/core/Makefile" ;; 23785 "src/gdome_caml/events/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_caml/events/Makefile" ;; 23786 "src/gdome_caml/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_caml/test/Makefile" ;; 23787 "src/gdome_caml/ocaml/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdome_caml/ocaml/Makefile" ;; 23788 "gdome2-cpp-smart.pc") CONFIG_FILES="$CONFIG_FILES gdome2-cpp-smart.pc" ;; 23789 "libgdome2.spec") CONFIG_FILES="$CONFIG_FILES libgdome2.spec" ;; 23790 23791 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23792echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23793 { (exit 1); exit 1; }; };; 23794 esac 23795done 23796 23797 23798# If the user did not use the arguments to specify the items to instantiate, 23799# then the envvar interface is used. Set only those that are not. 23800# We use the long form for the default assignment because of an extremely 23801# bizarre bug on SunOS 4.1.3. 23802if $ac_need_defaults; then 23803 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23804 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23805 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23806fi 23807 23808# Have a temporary directory for convenience. Make it in the build tree 23809# simply because there is no reason against having it here, and in addition, 23810# creating and moving files from /tmp can sometimes cause problems. 23811# Hook for its removal unless debugging. 23812# Note that there is a small window in which the directory will not be cleaned: 23813# after its creation but before its name has been assigned to `$tmp'. 23814$debug || 23815{ 23816 tmp= 23817 trap 'exit_status=$? 23818 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23819' 0 23820 trap '{ (exit 1); exit 1; }' 1 2 13 15 23821} 23822# Create a (secure) tmp directory for tmp files. 23823 23824{ 23825 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23826 test -n "$tmp" && test -d "$tmp" 23827} || 23828{ 23829 tmp=./conf$$-$RANDOM 23830 (umask 077 && mkdir "$tmp") 23831} || 23832{ 23833 echo "$me: cannot create a temporary directory in ." >&2 23834 { (exit 1); exit 1; } 23835} 23836 23837# 23838# Set up the sed scripts for CONFIG_FILES section. 23839# 23840 23841# No need to generate the scripts if there are no CONFIG_FILES. 23842# This happens for instance when ./config.status config.h 23843if test -n "$CONFIG_FILES"; then 23844 23845_ACEOF 23846 23847 23848 23849ac_delim='%!_!# ' 23850for ac_last_try in false false false false false :; do 23851 cat >conf$$subs.sed <<_ACEOF 23852SHELL!$SHELL$ac_delim 23853PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 23854PACKAGE_NAME!$PACKAGE_NAME$ac_delim 23855PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 23856PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 23857PACKAGE_STRING!$PACKAGE_STRING$ac_delim 23858PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 23859exec_prefix!$exec_prefix$ac_delim 23860prefix!$prefix$ac_delim 23861program_transform_name!$program_transform_name$ac_delim 23862bindir!$bindir$ac_delim 23863sbindir!$sbindir$ac_delim 23864libexecdir!$libexecdir$ac_delim 23865datarootdir!$datarootdir$ac_delim 23866datadir!$datadir$ac_delim 23867sysconfdir!$sysconfdir$ac_delim 23868sharedstatedir!$sharedstatedir$ac_delim 23869localstatedir!$localstatedir$ac_delim 23870includedir!$includedir$ac_delim 23871oldincludedir!$oldincludedir$ac_delim 23872docdir!$docdir$ac_delim 23873infodir!$infodir$ac_delim 23874htmldir!$htmldir$ac_delim 23875dvidir!$dvidir$ac_delim 23876pdfdir!$pdfdir$ac_delim 23877psdir!$psdir$ac_delim 23878libdir!$libdir$ac_delim 23879localedir!$localedir$ac_delim 23880mandir!$mandir$ac_delim 23881DEFS!$DEFS$ac_delim 23882ECHO_C!$ECHO_C$ac_delim 23883ECHO_N!$ECHO_N$ac_delim 23884ECHO_T!$ECHO_T$ac_delim 23885LIBS!$LIBS$ac_delim 23886build_alias!$build_alias$ac_delim 23887host_alias!$host_alias$ac_delim 23888target_alias!$target_alias$ac_delim 23889GMETADOM_VERSION_INFO!$GMETADOM_VERSION_INFO$ac_delim 23890INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 23891INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 23892INSTALL_DATA!$INSTALL_DATA$ac_delim 23893CYGPATH_W!$CYGPATH_W$ac_delim 23894PACKAGE!$PACKAGE$ac_delim 23895VERSION!$VERSION$ac_delim 23896ACLOCAL!$ACLOCAL$ac_delim 23897AUTOCONF!$AUTOCONF$ac_delim 23898AUTOMAKE!$AUTOMAKE$ac_delim 23899AUTOHEADER!$AUTOHEADER$ac_delim 23900MAKEINFO!$MAKEINFO$ac_delim 23901install_sh!$install_sh$ac_delim 23902STRIP!$STRIP$ac_delim 23903INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 23904mkdir_p!$mkdir_p$ac_delim 23905AWK!$AWK$ac_delim 23906SET_MAKE!$SET_MAKE$ac_delim 23907am__leading_dot!$am__leading_dot$ac_delim 23908AMTAR!$AMTAR$ac_delim 23909am__tar!$am__tar$ac_delim 23910am__untar!$am__untar$ac_delim 23911CC!$CC$ac_delim 23912CFLAGS!$CFLAGS$ac_delim 23913LDFLAGS!$LDFLAGS$ac_delim 23914CPPFLAGS!$CPPFLAGS$ac_delim 23915ac_ct_CC!$ac_ct_CC$ac_delim 23916EXEEXT!$EXEEXT$ac_delim 23917OBJEXT!$OBJEXT$ac_delim 23918DEPDIR!$DEPDIR$ac_delim 23919am__include!$am__include$ac_delim 23920am__quote!$am__quote$ac_delim 23921AMDEP_TRUE!$AMDEP_TRUE$ac_delim 23922AMDEP_FALSE!$AMDEP_FALSE$ac_delim 23923AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 23924CCDEPMODE!$CCDEPMODE$ac_delim 23925am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 23926am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 23927CXX!$CXX$ac_delim 23928CXXFLAGS!$CXXFLAGS$ac_delim 23929ac_ct_CXX!$ac_ct_CXX$ac_delim 23930CXXDEPMODE!$CXXDEPMODE$ac_delim 23931am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 23932am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 23933CPP!$CPP$ac_delim 23934GREP!$GREP$ac_delim 23935EGREP!$EGREP$ac_delim 23936CHAR_UNSIGNED!$CHAR_UNSIGNED$ac_delim 23937GMETADOM_SIZEOF_CHAR!$GMETADOM_SIZEOF_CHAR$ac_delim 23938GMETADOM_SIZEOF_SHORT!$GMETADOM_SIZEOF_SHORT$ac_delim 23939GMETADOM_SIZEOF_INT!$GMETADOM_SIZEOF_INT$ac_delim 23940GMETADOM_SIZEOF_LONG!$GMETADOM_SIZEOF_LONG$ac_delim 23941GMETADOM_SIZEOF_LONG_LONG!$GMETADOM_SIZEOF_LONG_LONG$ac_delim 23942GMETADOM_SIZEOF_WCHAR_T!$GMETADOM_SIZEOF_WCHAR_T$ac_delim 23943build!$build$ac_delim 23944build_cpu!$build_cpu$ac_delim 23945build_vendor!$build_vendor$ac_delim 23946build_os!$build_os$ac_delim 23947host!$host$ac_delim 23948host_cpu!$host_cpu$ac_delim 23949_ACEOF 23950 23951 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23952 break 23953 elif $ac_last_try; then 23954 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23955echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23956 { (exit 1); exit 1; }; } 23957 else 23958 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23959 fi 23960done 23961 23962ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23963if test -n "$ac_eof"; then 23964 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23965 ac_eof=`expr $ac_eof + 1` 23966fi 23967 23968cat >>$CONFIG_STATUS <<_ACEOF 23969cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 23970/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23971_ACEOF 23972sed ' 23973s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23974s/^/s,@/; s/!/@,|#_!!_#|/ 23975:n 23976t n 23977s/'"$ac_delim"'$/,g/; t 23978s/$/\\/; p 23979N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23980' >>$CONFIG_STATUS <conf$$subs.sed 23981rm -f conf$$subs.sed 23982cat >>$CONFIG_STATUS <<_ACEOF 23983CEOF$ac_eof 23984_ACEOF 23985 23986 23987ac_delim='%!_!# ' 23988for ac_last_try in false false false false false :; do 23989 cat >conf$$subs.sed <<_ACEOF 23990host_vendor!$host_vendor$ac_delim 23991host_os!$host_os$ac_delim 23992LN_S!$LN_S$ac_delim 23993ECHO!$ECHO$ac_delim 23994AR!$AR$ac_delim 23995RANLIB!$RANLIB$ac_delim 23996CXXCPP!$CXXCPP$ac_delim 23997F77!$F77$ac_delim 23998FFLAGS!$FFLAGS$ac_delim 23999ac_ct_F77!$ac_ct_F77$ac_delim 24000LIBTOOL!$LIBTOOL$ac_delim 24001PKG_CONFIG!$PKG_CONFIG$ac_delim 24002GDOME_CFLAGS!$GDOME_CFLAGS$ac_delim 24003GDOME_LIBS!$GDOME_LIBS$ac_delim 24004HAVE_SED!$HAVE_SED$ac_delim 24005SED!$SED$ac_delim 24006HAVE_SED_COND_TRUE!$HAVE_SED_COND_TRUE$ac_delim 24007HAVE_SED_COND_FALSE!$HAVE_SED_COND_FALSE$ac_delim 24008HAVE_XSLTPROC!$HAVE_XSLTPROC$ac_delim 24009XSLTPROC!$XSLTPROC$ac_delim 24010HAVE_XSLTPROC_COND_TRUE!$HAVE_XSLTPROC_COND_TRUE$ac_delim 24011HAVE_XSLTPROC_COND_FALSE!$HAVE_XSLTPROC_COND_FALSE$ac_delim 24012STD_TRAITS!$STD_TRAITS$ac_delim 24013ALL_TRAITS!$ALL_TRAITS$ac_delim 24014TRAIT_SPEC!$TRAIT_SPEC$ac_delim 24015HAVE_ICONV!$HAVE_ICONV$ac_delim 24016OCAMLC!$OCAMLC$ac_delim 24017OCAML_CFLAGS!$OCAML_CFLAGS$ac_delim 24018OCAML_LIB_PREFIX!$OCAML_LIB_PREFIX$ac_delim 24019HAVE_OCAMLC!$HAVE_OCAMLC$ac_delim 24020OCAMLOPT!$OCAMLOPT$ac_delim 24021HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim 24022HAVE_OCAMLOPT_COND_TRUE!$HAVE_OCAMLOPT_COND_TRUE$ac_delim 24023HAVE_OCAMLOPT_COND_FALSE!$HAVE_OCAMLOPT_COND_FALSE$ac_delim 24024HAVE_OCAMLDEP!$HAVE_OCAMLDEP$ac_delim 24025OCAMLDEP!$OCAMLDEP$ac_delim 24026HAVE_OCAMLFIND!$HAVE_OCAMLFIND$ac_delim 24027OCAMLFIND!$OCAMLFIND$ac_delim 24028GMETADOM_MODULES!$GMETADOM_MODULES$ac_delim 24029LIBOBJS!$LIBOBJS$ac_delim 24030LTLIBOBJS!$LTLIBOBJS$ac_delim 24031_ACEOF 24032 24033 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 41; then 24034 break 24035 elif $ac_last_try; then 24036 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 24037echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 24038 { (exit 1); exit 1; }; } 24039 else 24040 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24041 fi 24042done 24043 24044ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 24045if test -n "$ac_eof"; then 24046 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 24047 ac_eof=`expr $ac_eof + 1` 24048fi 24049 24050cat >>$CONFIG_STATUS <<_ACEOF 24051cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 24052/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 24053_ACEOF 24054sed ' 24055s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 24056s/^/s,@/; s/!/@,|#_!!_#|/ 24057:n 24058t n 24059s/'"$ac_delim"'$/,g/; t 24060s/$/\\/; p 24061N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 24062' >>$CONFIG_STATUS <conf$$subs.sed 24063rm -f conf$$subs.sed 24064cat >>$CONFIG_STATUS <<_ACEOF 24065:end 24066s/|#_!!_#|//g 24067CEOF$ac_eof 24068_ACEOF 24069 24070 24071# VPATH may cause trouble with some makes, so we remove $(srcdir), 24072# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 24073# trailing colons and then remove the whole line if VPATH becomes empty 24074# (actually we leave an empty line to preserve line numbers). 24075if test "x$srcdir" = x.; then 24076 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 24077s/:*\$(srcdir):*/:/ 24078s/:*\${srcdir}:*/:/ 24079s/:*@srcdir@:*/:/ 24080s/^\([^=]*=[ ]*\):*/\1/ 24081s/:*$// 24082s/^[^=]*=[ ]*$// 24083}' 24084fi 24085 24086cat >>$CONFIG_STATUS <<\_ACEOF 24087fi # test -n "$CONFIG_FILES" 24088 24089 24090for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 24091do 24092 case $ac_tag in 24093 :[FHLC]) ac_mode=$ac_tag; continue;; 24094 esac 24095 case $ac_mode$ac_tag in 24096 :[FHL]*:*);; 24097 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 24098echo "$as_me: error: Invalid tag $ac_tag." >&2;} 24099 { (exit 1); exit 1; }; };; 24100 :[FH]-) ac_tag=-:-;; 24101 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24102 esac 24103 ac_save_IFS=$IFS 24104 IFS=: 24105 set x $ac_tag 24106 IFS=$ac_save_IFS 24107 shift 24108 ac_file=$1 24109 shift 24110 24111 case $ac_mode in 24112 :L) ac_source=$1;; 24113 :[FH]) 24114 ac_file_inputs= 24115 for ac_f 24116 do 24117 case $ac_f in 24118 -) ac_f="$tmp/stdin";; 24119 *) # Look for the file first in the build tree, then in the source tree 24120 # (if the path is not absolute). The absolute path cannot be DOS-style, 24121 # because $ac_f cannot contain `:'. 24122 test -f "$ac_f" || 24123 case $ac_f in 24124 [\\/$]*) false;; 24125 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24126 esac || 24127 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 24128echo "$as_me: error: cannot find input file: $ac_f" >&2;} 24129 { (exit 1); exit 1; }; };; 24130 esac 24131 ac_file_inputs="$ac_file_inputs $ac_f" 24132 done 24133 24134 # Let's still pretend it is `configure' which instantiates (i.e., don't 24135 # use $as_me), people would be surprised to read: 24136 # /* config.h. Generated by config.status. */ 24137 configure_input="Generated from "`IFS=: 24138 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 24139 if test x"$ac_file" != x-; then 24140 configure_input="$ac_file. $configure_input" 24141 { echo "$as_me:$LINENO: creating $ac_file" >&5 24142echo "$as_me: creating $ac_file" >&6;} 24143 fi 24144 24145 case $ac_tag in 24146 *:-:* | *:-) cat >"$tmp/stdin";; 24147 esac 24148 ;; 24149 esac 24150 24151 ac_dir=`$as_dirname -- "$ac_file" || 24152$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24153 X"$ac_file" : 'X\(//\)[^/]' \| \ 24154 X"$ac_file" : 'X\(//\)$' \| \ 24155 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24156echo X"$ac_file" | 24157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24158 s//\1/ 24159 q 24160 } 24161 /^X\(\/\/\)[^/].*/{ 24162 s//\1/ 24163 q 24164 } 24165 /^X\(\/\/\)$/{ 24166 s//\1/ 24167 q 24168 } 24169 /^X\(\/\).*/{ 24170 s//\1/ 24171 q 24172 } 24173 s/.*/./; q'` 24174 { as_dir="$ac_dir" 24175 case $as_dir in #( 24176 -*) as_dir=./$as_dir;; 24177 esac 24178 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24179 as_dirs= 24180 while :; do 24181 case $as_dir in #( 24182 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24183 *) as_qdir=$as_dir;; 24184 esac 24185 as_dirs="'$as_qdir' $as_dirs" 24186 as_dir=`$as_dirname -- "$as_dir" || 24187$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24188 X"$as_dir" : 'X\(//\)[^/]' \| \ 24189 X"$as_dir" : 'X\(//\)$' \| \ 24190 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24191echo X"$as_dir" | 24192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24193 s//\1/ 24194 q 24195 } 24196 /^X\(\/\/\)[^/].*/{ 24197 s//\1/ 24198 q 24199 } 24200 /^X\(\/\/\)$/{ 24201 s//\1/ 24202 q 24203 } 24204 /^X\(\/\).*/{ 24205 s//\1/ 24206 q 24207 } 24208 s/.*/./; q'` 24209 test -d "$as_dir" && break 24210 done 24211 test -z "$as_dirs" || eval "mkdir $as_dirs" 24212 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24213echo "$as_me: error: cannot create directory $as_dir" >&2;} 24214 { (exit 1); exit 1; }; }; } 24215 ac_builddir=. 24216 24217case "$ac_dir" in 24218.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24219*) 24220 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24221 # A ".." for each directory in $ac_dir_suffix. 24222 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 24223 case $ac_top_builddir_sub in 24224 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24225 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24226 esac ;; 24227esac 24228ac_abs_top_builddir=$ac_pwd 24229ac_abs_builddir=$ac_pwd$ac_dir_suffix 24230# for backward compatibility: 24231ac_top_builddir=$ac_top_build_prefix 24232 24233case $srcdir in 24234 .) # We are building in place. 24235 ac_srcdir=. 24236 ac_top_srcdir=$ac_top_builddir_sub 24237 ac_abs_top_srcdir=$ac_pwd ;; 24238 [\\/]* | ?:[\\/]* ) # Absolute name. 24239 ac_srcdir=$srcdir$ac_dir_suffix; 24240 ac_top_srcdir=$srcdir 24241 ac_abs_top_srcdir=$srcdir ;; 24242 *) # Relative name. 24243 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24244 ac_top_srcdir=$ac_top_build_prefix$srcdir 24245 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24246esac 24247ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24248 24249 24250 case $ac_mode in 24251 :F) 24252 # 24253 # CONFIG_FILE 24254 # 24255 24256 case $INSTALL in 24257 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24258 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24259 esac 24260_ACEOF 24261 24262cat >>$CONFIG_STATUS <<\_ACEOF 24263# If the template does not know about datarootdir, expand it. 24264# FIXME: This hack should be removed a few years after 2.60. 24265ac_datarootdir_hack=; ac_datarootdir_seen= 24266 24267case `sed -n '/datarootdir/ { 24268 p 24269 q 24270} 24271/@datadir@/p 24272/@docdir@/p 24273/@infodir@/p 24274/@localedir@/p 24275/@mandir@/p 24276' $ac_file_inputs` in 24277*datarootdir*) ac_datarootdir_seen=yes;; 24278*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24279 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24280echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24281_ACEOF 24282cat >>$CONFIG_STATUS <<_ACEOF 24283 ac_datarootdir_hack=' 24284 s&@datadir@&$datadir&g 24285 s&@docdir@&$docdir&g 24286 s&@infodir@&$infodir&g 24287 s&@localedir@&$localedir&g 24288 s&@mandir@&$mandir&g 24289 s&\\\${datarootdir}&$datarootdir&g' ;; 24290esac 24291_ACEOF 24292 24293# Neutralize VPATH when `$srcdir' = `.'. 24294# Shell code in configure.ac might set extrasub. 24295# FIXME: do we really want to maintain this feature? 24296cat >>$CONFIG_STATUS <<_ACEOF 24297 sed "$ac_vpsub 24298$extrasub 24299_ACEOF 24300cat >>$CONFIG_STATUS <<\_ACEOF 24301:t 24302/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24303s&@configure_input@&$configure_input&;t t 24304s&@top_builddir@&$ac_top_builddir_sub&;t t 24305s&@srcdir@&$ac_srcdir&;t t 24306s&@abs_srcdir@&$ac_abs_srcdir&;t t 24307s&@top_srcdir@&$ac_top_srcdir&;t t 24308s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24309s&@builddir@&$ac_builddir&;t t 24310s&@abs_builddir@&$ac_abs_builddir&;t t 24311s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24312s&@INSTALL@&$ac_INSTALL&;t t 24313$ac_datarootdir_hack 24314" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 24315 24316test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24317 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 24318 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 24319 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24320which seems to be undefined. Please make sure it is defined." >&5 24321echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24322which seems to be undefined. Please make sure it is defined." >&2;} 24323 24324 rm -f "$tmp/stdin" 24325 case $ac_file in 24326 -) cat "$tmp/out"; rm -f "$tmp/out";; 24327 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 24328 esac 24329 ;; 24330 :H) 24331 # 24332 # CONFIG_HEADER 24333 # 24334_ACEOF 24335 24336# Transform confdefs.h into a sed script `conftest.defines', that 24337# substitutes the proper values into config.h.in to produce config.h. 24338rm -f conftest.defines conftest.tail 24339# First, append a space to every undef/define line, to ease matching. 24340echo 's/$/ /' >conftest.defines 24341# Then, protect against being on the right side of a sed subst, or in 24342# an unquoted here document, in config.status. If some macros were 24343# called several times there might be several #defines for the same 24344# symbol, which is useless. But do not sort them, since the last 24345# AC_DEFINE must be honored. 24346ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24347# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 24348# NAME is the cpp macro being defined, VALUE is the value it is being given. 24349# PARAMS is the parameter list in the macro definition--in most cases, it's 24350# just an empty string. 24351ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 24352ac_dB='\\)[ (].*,\\1define\\2' 24353ac_dC=' ' 24354ac_dD=' ,' 24355 24356uniq confdefs.h | 24357 sed -n ' 24358 t rset 24359 :rset 24360 s/^[ ]*#[ ]*define[ ][ ]*// 24361 t ok 24362 d 24363 :ok 24364 s/[\\&,]/\\&/g 24365 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 24366 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 24367 ' >>conftest.defines 24368 24369# Remove the space that was appended to ease matching. 24370# Then replace #undef with comments. This is necessary, for 24371# example, in the case of _POSIX_SOURCE, which is predefined and required 24372# on some systems where configure will not decide to define it. 24373# (The regexp can be short, since the line contains either #define or #undef.) 24374echo 's/ $// 24375s,^[ #]*u.*,/* & */,' >>conftest.defines 24376 24377# Break up conftest.defines: 24378ac_max_sed_lines=50 24379 24380# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 24381# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 24382# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 24383# et cetera. 24384ac_in='$ac_file_inputs' 24385ac_out='"$tmp/out1"' 24386ac_nxt='"$tmp/out2"' 24387 24388while : 24389do 24390 # Write a here document: 24391 cat >>$CONFIG_STATUS <<_ACEOF 24392 # First, check the format of the line: 24393 cat >"\$tmp/defines.sed" <<\\CEOF 24394/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 24395/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 24396b 24397:def 24398_ACEOF 24399 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 24400 echo 'CEOF 24401 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 24402 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 24403 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 24404 grep . conftest.tail >/dev/null || break 24405 rm -f conftest.defines 24406 mv conftest.tail conftest.defines 24407done 24408rm -f conftest.defines conftest.tail 24409 24410echo "ac_result=$ac_in" >>$CONFIG_STATUS 24411cat >>$CONFIG_STATUS <<\_ACEOF 24412 if test x"$ac_file" != x-; then 24413 echo "/* $configure_input */" >"$tmp/config.h" 24414 cat "$ac_result" >>"$tmp/config.h" 24415 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 24416 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24417echo "$as_me: $ac_file is unchanged" >&6;} 24418 else 24419 rm -f $ac_file 24420 mv "$tmp/config.h" $ac_file 24421 fi 24422 else 24423 echo "/* $configure_input */" 24424 cat "$ac_result" 24425 fi 24426 rm -f "$tmp/out12" 24427# Compute $ac_file's index in $config_headers. 24428_am_stamp_count=1 24429for _am_header in $config_headers :; do 24430 case $_am_header in 24431 $ac_file | $ac_file:* ) 24432 break ;; 24433 * ) 24434 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24435 esac 24436done 24437echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 24438$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24439 X$ac_file : 'X\(//\)[^/]' \| \ 24440 X$ac_file : 'X\(//\)$' \| \ 24441 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 24442echo X$ac_file | 24443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24444 s//\1/ 24445 q 24446 } 24447 /^X\(\/\/\)[^/].*/{ 24448 s//\1/ 24449 q 24450 } 24451 /^X\(\/\/\)$/{ 24452 s//\1/ 24453 q 24454 } 24455 /^X\(\/\).*/{ 24456 s//\1/ 24457 q 24458 } 24459 s/.*/./; q'`/stamp-h$_am_stamp_count 24460 ;; 24461 24462 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 24463echo "$as_me: executing $ac_file commands" >&6;} 24464 ;; 24465 esac 24466 24467 24468 case $ac_file$ac_mode in 24469 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 24470 # Strip MF so we end up with the name of the file. 24471 mf=`echo "$mf" | sed -e 's/:.*$//'` 24472 # Check whether this is an Automake generated Makefile or not. 24473 # We used to match only the files named `Makefile.in', but 24474 # some people rename them; so instead we look at the file content. 24475 # Grep'ing the first line is not enough: some people post-process 24476 # each Makefile.in and add a new line on top of each file to say so. 24477 # So let's grep whole file. 24478 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 24479 dirpart=`$as_dirname -- "$mf" || 24480$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24481 X"$mf" : 'X\(//\)[^/]' \| \ 24482 X"$mf" : 'X\(//\)$' \| \ 24483 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24484echo X"$mf" | 24485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24486 s//\1/ 24487 q 24488 } 24489 /^X\(\/\/\)[^/].*/{ 24490 s//\1/ 24491 q 24492 } 24493 /^X\(\/\/\)$/{ 24494 s//\1/ 24495 q 24496 } 24497 /^X\(\/\).*/{ 24498 s//\1/ 24499 q 24500 } 24501 s/.*/./; q'` 24502 else 24503 continue 24504 fi 24505 # Extract the definition of DEPDIR, am__include, and am__quote 24506 # from the Makefile without running `make'. 24507 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24508 test -z "$DEPDIR" && continue 24509 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24510 test -z "am__include" && continue 24511 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24512 # When using ansi2knr, U may be empty or an underscore; expand it 24513 U=`sed -n 's/^U = //p' < "$mf"` 24514 # Find all dependency output files, they are included files with 24515 # $(DEPDIR) in their names. We invoke sed twice because it is the 24516 # simplest approach to changing $(DEPDIR) to its actual value in the 24517 # expansion. 24518 for file in `sed -n " 24519 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24520 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24521 # Make sure the directory exists. 24522 test -f "$dirpart/$file" && continue 24523 fdir=`$as_dirname -- "$file" || 24524$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24525 X"$file" : 'X\(//\)[^/]' \| \ 24526 X"$file" : 'X\(//\)$' \| \ 24527 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24528echo X"$file" | 24529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24530 s//\1/ 24531 q 24532 } 24533 /^X\(\/\/\)[^/].*/{ 24534 s//\1/ 24535 q 24536 } 24537 /^X\(\/\/\)$/{ 24538 s//\1/ 24539 q 24540 } 24541 /^X\(\/\).*/{ 24542 s//\1/ 24543 q 24544 } 24545 s/.*/./; q'` 24546 { as_dir=$dirpart/$fdir 24547 case $as_dir in #( 24548 -*) as_dir=./$as_dir;; 24549 esac 24550 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24551 as_dirs= 24552 while :; do 24553 case $as_dir in #( 24554 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24555 *) as_qdir=$as_dir;; 24556 esac 24557 as_dirs="'$as_qdir' $as_dirs" 24558 as_dir=`$as_dirname -- "$as_dir" || 24559$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24560 X"$as_dir" : 'X\(//\)[^/]' \| \ 24561 X"$as_dir" : 'X\(//\)$' \| \ 24562 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24563echo X"$as_dir" | 24564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24565 s//\1/ 24566 q 24567 } 24568 /^X\(\/\/\)[^/].*/{ 24569 s//\1/ 24570 q 24571 } 24572 /^X\(\/\/\)$/{ 24573 s//\1/ 24574 q 24575 } 24576 /^X\(\/\).*/{ 24577 s//\1/ 24578 q 24579 } 24580 s/.*/./; q'` 24581 test -d "$as_dir" && break 24582 done 24583 test -z "$as_dirs" || eval "mkdir $as_dirs" 24584 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24585echo "$as_me: error: cannot create directory $as_dir" >&2;} 24586 { (exit 1); exit 1; }; }; } 24587 # echo "creating $dirpart/$file" 24588 echo '# dummy' > "$dirpart/$file" 24589 done 24590done 24591 ;; 24592 24593 esac 24594done # for ac_tag 24595 24596 24597{ (exit 0); exit 0; } 24598_ACEOF 24599chmod +x $CONFIG_STATUS 24600ac_clean_files=$ac_clean_files_save 24601 24602 24603# configure is writing to config.log, and then calls config.status. 24604# config.status does its own redirection, appending to config.log. 24605# Unfortunately, on DOS this fails, as config.log is still kept open 24606# by configure, so config.status won't be able to write to it; its 24607# output is simply discarded. So we exec the FD to /dev/null, 24608# effectively closing config.log, so it can be properly (re)opened and 24609# appended to by config.status. When coming back to configure, we 24610# need to make the FD available again. 24611if test "$no_create" != yes; then 24612 ac_cs_success=: 24613 ac_config_status_args= 24614 test "$silent" = yes && 24615 ac_config_status_args="$ac_config_status_args --quiet" 24616 exec 5>/dev/null 24617 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24618 exec 5>>config.log 24619 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24620 # would make configure fail if this is the last instruction. 24621 $ac_cs_success || { (exit 1); exit 1; } 24622fi 24623 24624 24625