1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for libmpeg2 0.5.1. 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='libmpeg2' 728PACKAGE_TARNAME='libmpeg2' 729PACKAGE_VERSION='0.5.1' 730PACKAGE_STRING='libmpeg2 0.5.1' 731PACKAGE_BUGREPORT='' 732 733ac_unique_file="src/mpeg2dec.c" 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 807build 808build_cpu 809build_vendor 810build_os 811host 812host_cpu 813host_vendor 814host_os 815INSTALL_PROGRAM 816INSTALL_SCRIPT 817INSTALL_DATA 818am__isrc 819CYGPATH_W 820PACKAGE 821VERSION 822ACLOCAL 823AUTOCONF 824AUTOMAKE 825AUTOHEADER 826MAKEINFO 827install_sh 828STRIP 829INSTALL_STRIP_PROGRAM 830mkdir_p 831AWK 832SET_MAKE 833am__leading_dot 834AMTAR 835am__tar 836am__untar 837MAINTAINER_MODE_TRUE 838MAINTAINER_MODE_FALSE 839MAINT 840CC 841CFLAGS 842LDFLAGS 843CPPFLAGS 844ac_ct_CC 845EXEEXT 846OBJEXT 847DEPDIR 848am__include 849am__quote 850AMDEP_TRUE 851AMDEP_FALSE 852AMDEPBACKSLASH 853CCDEPMODE 854am__fastdepCC_TRUE 855am__fastdepCC_FALSE 856CPP 857GREP 858EGREP 859CCAS 860CCASFLAGS 861CCASDEPMODE 862am__fastdepCCAS_TRUE 863am__fastdepCCAS_FALSE 864OPT_CFLAGS 865ARCH_OPT_CFLAGS 866ARCH_ARM_TRUE 867ARCH_ARM_FALSE 868SED 869LN_S 870ECHO 871AR 872RANLIB 873DSYMUTIL 874NMEDIT 875DLLTOOL 876AS 877OBJDUMP 878CXX 879CXXFLAGS 880ac_ct_CXX 881CXXDEPMODE 882am__fastdepCXX_TRUE 883am__fastdepCXX_FALSE 884CXXCPP 885F77 886FFLAGS 887ac_ct_F77 888LIBTOOL 889AM_CPPFLAGS 890LIBMPEG2_CFLAGS 891XMKMF 892X_CFLAGS 893X_PRE_LIBS 894X_LIBS 895X_EXTRA_LIBS 896SDLCONFIG 897LIBVO_CFLAGS 898LIBVO_LIBS 899MPEG2DEC_CFLAGS 900LIBOBJS 901LTLIBOBJS' 902ac_subst_files='' 903 ac_precious_vars='build_alias 904host_alias 905target_alias 906CC 907CFLAGS 908LDFLAGS 909LIBS 910CPPFLAGS 911CPP 912CCAS 913CCASFLAGS 914CXX 915CXXFLAGS 916CCC 917CXXCPP 918F77 919FFLAGS 920XMKMF' 921 922 923# Initialize some variables set by options. 924ac_init_help= 925ac_init_version=false 926# The variables have the same names as the options, with 927# dashes changed to underlines. 928cache_file=/dev/null 929exec_prefix=NONE 930no_create= 931no_recursion= 932prefix=NONE 933program_prefix=NONE 934program_suffix=NONE 935program_transform_name=s,x,x, 936silent= 937site= 938srcdir= 939verbose= 940x_includes=NONE 941x_libraries=NONE 942 943# Installation directory options. 944# These are left unexpanded so users can "make install exec_prefix=/foo" 945# and all the variables that are supposed to be based on exec_prefix 946# by default will actually change. 947# Use braces instead of parens because sh, perl, etc. also accept them. 948# (The list follows the same order as the GNU Coding Standards.) 949bindir='${exec_prefix}/bin' 950sbindir='${exec_prefix}/sbin' 951libexecdir='${exec_prefix}/libexec' 952datarootdir='${prefix}/share' 953datadir='${datarootdir}' 954sysconfdir='${prefix}/etc' 955sharedstatedir='${prefix}/com' 956localstatedir='${prefix}/var' 957includedir='${prefix}/include' 958oldincludedir='/usr/include' 959docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 960infodir='${datarootdir}/info' 961htmldir='${docdir}' 962dvidir='${docdir}' 963pdfdir='${docdir}' 964psdir='${docdir}' 965libdir='${exec_prefix}/lib' 966localedir='${datarootdir}/locale' 967mandir='${datarootdir}/man' 968 969ac_prev= 970ac_dashdash= 971for ac_option 972do 973 # If the previous option needs an argument, assign it. 974 if test -n "$ac_prev"; then 975 eval $ac_prev=\$ac_option 976 ac_prev= 977 continue 978 fi 979 980 case $ac_option in 981 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 982 *) ac_optarg=yes ;; 983 esac 984 985 # Accept the important Cygnus configure options, so we can diagnose typos. 986 987 case $ac_dashdash$ac_option in 988 --) 989 ac_dashdash=yes ;; 990 991 -bindir | --bindir | --bindi | --bind | --bin | --bi) 992 ac_prev=bindir ;; 993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 994 bindir=$ac_optarg ;; 995 996 -build | --build | --buil | --bui | --bu) 997 ac_prev=build_alias ;; 998 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 999 build_alias=$ac_optarg ;; 1000 1001 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1003 ac_prev=cache_file ;; 1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1006 cache_file=$ac_optarg ;; 1007 1008 --config-cache | -C) 1009 cache_file=config.cache ;; 1010 1011 -datadir | --datadir | --datadi | --datad) 1012 ac_prev=datadir ;; 1013 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1014 datadir=$ac_optarg ;; 1015 1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1017 | --dataroo | --dataro | --datar) 1018 ac_prev=datarootdir ;; 1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1021 datarootdir=$ac_optarg ;; 1022 1023 -disable-* | --disable-*) 1024 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1025 # Reject names that are not valid shell variable names. 1026 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1027 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1028 { (exit 1); exit 1; }; } 1029 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1030 eval enable_$ac_feature=no ;; 1031 1032 -docdir | --docdir | --docdi | --doc | --do) 1033 ac_prev=docdir ;; 1034 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1035 docdir=$ac_optarg ;; 1036 1037 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1038 ac_prev=dvidir ;; 1039 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1040 dvidir=$ac_optarg ;; 1041 1042 -enable-* | --enable-*) 1043 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1044 # Reject names that are not valid shell variable names. 1045 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1046 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1047 { (exit 1); exit 1; }; } 1048 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1049 eval enable_$ac_feature=\$ac_optarg ;; 1050 1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1053 | --exec | --exe | --ex) 1054 ac_prev=exec_prefix ;; 1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1057 | --exec=* | --exe=* | --ex=*) 1058 exec_prefix=$ac_optarg ;; 1059 1060 -gas | --gas | --ga | --g) 1061 # Obsolete; use --with-gas. 1062 with_gas=yes ;; 1063 1064 -help | --help | --hel | --he | -h) 1065 ac_init_help=long ;; 1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1067 ac_init_help=recursive ;; 1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1069 ac_init_help=short ;; 1070 1071 -host | --host | --hos | --ho) 1072 ac_prev=host_alias ;; 1073 -host=* | --host=* | --hos=* | --ho=*) 1074 host_alias=$ac_optarg ;; 1075 1076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1077 ac_prev=htmldir ;; 1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1079 | --ht=*) 1080 htmldir=$ac_optarg ;; 1081 1082 -includedir | --includedir | --includedi | --included | --include \ 1083 | --includ | --inclu | --incl | --inc) 1084 ac_prev=includedir ;; 1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1086 | --includ=* | --inclu=* | --incl=* | --inc=*) 1087 includedir=$ac_optarg ;; 1088 1089 -infodir | --infodir | --infodi | --infod | --info | --inf) 1090 ac_prev=infodir ;; 1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1092 infodir=$ac_optarg ;; 1093 1094 -libdir | --libdir | --libdi | --libd) 1095 ac_prev=libdir ;; 1096 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1097 libdir=$ac_optarg ;; 1098 1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1100 | --libexe | --libex | --libe) 1101 ac_prev=libexecdir ;; 1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1103 | --libexe=* | --libex=* | --libe=*) 1104 libexecdir=$ac_optarg ;; 1105 1106 -localedir | --localedir | --localedi | --localed | --locale) 1107 ac_prev=localedir ;; 1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1109 localedir=$ac_optarg ;; 1110 1111 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1112 | --localstate | --localstat | --localsta | --localst | --locals) 1113 ac_prev=localstatedir ;; 1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1116 localstatedir=$ac_optarg ;; 1117 1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1119 ac_prev=mandir ;; 1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1121 mandir=$ac_optarg ;; 1122 1123 -nfp | --nfp | --nf) 1124 # Obsolete; use --without-fp. 1125 with_fp=no ;; 1126 1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1128 | --no-cr | --no-c | -n) 1129 no_create=yes ;; 1130 1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1133 no_recursion=yes ;; 1134 1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1137 | --oldin | --oldi | --old | --ol | --o) 1138 ac_prev=oldincludedir ;; 1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1142 oldincludedir=$ac_optarg ;; 1143 1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1145 ac_prev=prefix ;; 1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1147 prefix=$ac_optarg ;; 1148 1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1150 | --program-pre | --program-pr | --program-p) 1151 ac_prev=program_prefix ;; 1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1154 program_prefix=$ac_optarg ;; 1155 1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1157 | --program-suf | --program-su | --program-s) 1158 ac_prev=program_suffix ;; 1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1161 program_suffix=$ac_optarg ;; 1162 1163 -program-transform-name | --program-transform-name \ 1164 | --program-transform-nam | --program-transform-na \ 1165 | --program-transform-n | --program-transform- \ 1166 | --program-transform | --program-transfor \ 1167 | --program-transfo | --program-transf \ 1168 | --program-trans | --program-tran \ 1169 | --progr-tra | --program-tr | --program-t) 1170 ac_prev=program_transform_name ;; 1171 -program-transform-name=* | --program-transform-name=* \ 1172 | --program-transform-nam=* | --program-transform-na=* \ 1173 | --program-transform-n=* | --program-transform-=* \ 1174 | --program-transform=* | --program-transfor=* \ 1175 | --program-transfo=* | --program-transf=* \ 1176 | --program-trans=* | --program-tran=* \ 1177 | --progr-tra=* | --program-tr=* | --program-t=*) 1178 program_transform_name=$ac_optarg ;; 1179 1180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1181 ac_prev=pdfdir ;; 1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1183 pdfdir=$ac_optarg ;; 1184 1185 -psdir | --psdir | --psdi | --psd | --ps) 1186 ac_prev=psdir ;; 1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1188 psdir=$ac_optarg ;; 1189 1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1191 | -silent | --silent | --silen | --sile | --sil) 1192 silent=yes ;; 1193 1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1195 ac_prev=sbindir ;; 1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1197 | --sbi=* | --sb=*) 1198 sbindir=$ac_optarg ;; 1199 1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1202 | --sharedst | --shareds | --shared | --share | --shar \ 1203 | --sha | --sh) 1204 ac_prev=sharedstatedir ;; 1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1208 | --sha=* | --sh=*) 1209 sharedstatedir=$ac_optarg ;; 1210 1211 -site | --site | --sit) 1212 ac_prev=site ;; 1213 -site=* | --site=* | --sit=*) 1214 site=$ac_optarg ;; 1215 1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1217 ac_prev=srcdir ;; 1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1219 srcdir=$ac_optarg ;; 1220 1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1222 | --syscon | --sysco | --sysc | --sys | --sy) 1223 ac_prev=sysconfdir ;; 1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1226 sysconfdir=$ac_optarg ;; 1227 1228 -target | --target | --targe | --targ | --tar | --ta | --t) 1229 ac_prev=target_alias ;; 1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1231 target_alias=$ac_optarg ;; 1232 1233 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1234 verbose=yes ;; 1235 1236 -version | --version | --versio | --versi | --vers | -V) 1237 ac_init_version=: ;; 1238 1239 -with-* | --with-*) 1240 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1241 # Reject names that are not valid shell variable names. 1242 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1243 { echo "$as_me: error: invalid package name: $ac_package" >&2 1244 { (exit 1); exit 1; }; } 1245 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1246 eval with_$ac_package=\$ac_optarg ;; 1247 1248 -without-* | --without-*) 1249 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1250 # Reject names that are not valid shell variable names. 1251 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1252 { echo "$as_me: error: invalid package name: $ac_package" >&2 1253 { (exit 1); exit 1; }; } 1254 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1255 eval with_$ac_package=no ;; 1256 1257 --x) 1258 # Obsolete; use --with-x. 1259 with_x=yes ;; 1260 1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1262 | --x-incl | --x-inc | --x-in | --x-i) 1263 ac_prev=x_includes ;; 1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1266 x_includes=$ac_optarg ;; 1267 1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1270 ac_prev=x_libraries ;; 1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1273 x_libraries=$ac_optarg ;; 1274 1275 -*) { echo "$as_me: error: unrecognized option: $ac_option 1276Try \`$0 --help' for more information." >&2 1277 { (exit 1); exit 1; }; } 1278 ;; 1279 1280 *=*) 1281 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1282 # Reject names that are not valid shell variable names. 1283 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1284 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1285 { (exit 1); exit 1; }; } 1286 eval $ac_envvar=\$ac_optarg 1287 export $ac_envvar ;; 1288 1289 *) 1290 # FIXME: should be removed in autoconf 3.0. 1291 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1293 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1294 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1295 ;; 1296 1297 esac 1298done 1299 1300if test -n "$ac_prev"; then 1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1302 { echo "$as_me: error: missing argument to $ac_option" >&2 1303 { (exit 1); exit 1; }; } 1304fi 1305 1306# Be sure to have absolute directory names. 1307for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1308 datadir sysconfdir sharedstatedir localstatedir includedir \ 1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1310 libdir localedir mandir 1311do 1312 eval ac_val=\$$ac_var 1313 case $ac_val in 1314 [\\/$]* | ?:[\\/]* ) continue;; 1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1316 esac 1317 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1318 { (exit 1); exit 1; }; } 1319done 1320 1321# There might be people who depend on the old broken behavior: `$host' 1322# used to hold the argument of --host etc. 1323# FIXME: To remove some day. 1324build=$build_alias 1325host=$host_alias 1326target=$target_alias 1327 1328# FIXME: To remove some day. 1329if test "x$host_alias" != x; then 1330 if test "x$build_alias" = x; then 1331 cross_compiling=maybe 1332 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1333 If a cross compiler is detected then cross compile mode will be used." >&2 1334 elif test "x$build_alias" != "x$host_alias"; then 1335 cross_compiling=yes 1336 fi 1337fi 1338 1339ac_tool_prefix= 1340test -n "$host_alias" && ac_tool_prefix=$host_alias- 1341 1342test "$silent" = yes && exec 6>/dev/null 1343 1344 1345ac_pwd=`pwd` && test -n "$ac_pwd" && 1346ac_ls_di=`ls -di .` && 1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1348 { echo "$as_me: error: Working directory cannot be determined" >&2 1349 { (exit 1); exit 1; }; } 1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1351 { echo "$as_me: error: pwd does not report name of working directory" >&2 1352 { (exit 1); exit 1; }; } 1353 1354 1355# Find the source files, if location was not specified. 1356if test -z "$srcdir"; then 1357 ac_srcdir_defaulted=yes 1358 # Try the directory containing this script, then the parent directory. 1359 ac_confdir=`$as_dirname -- "$0" || 1360$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1361 X"$0" : 'X\(//\)[^/]' \| \ 1362 X"$0" : 'X\(//\)$' \| \ 1363 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1364echo X"$0" | 1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1366 s//\1/ 1367 q 1368 } 1369 /^X\(\/\/\)[^/].*/{ 1370 s//\1/ 1371 q 1372 } 1373 /^X\(\/\/\)$/{ 1374 s//\1/ 1375 q 1376 } 1377 /^X\(\/\).*/{ 1378 s//\1/ 1379 q 1380 } 1381 s/.*/./; q'` 1382 srcdir=$ac_confdir 1383 if test ! -r "$srcdir/$ac_unique_file"; then 1384 srcdir=.. 1385 fi 1386else 1387 ac_srcdir_defaulted=no 1388fi 1389if test ! -r "$srcdir/$ac_unique_file"; then 1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1391 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1392 { (exit 1); exit 1; }; } 1393fi 1394ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1395ac_abs_confdir=`( 1396 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1397 { (exit 1); exit 1; }; } 1398 pwd)` 1399# When building in place, set srcdir=. 1400if test "$ac_abs_confdir" = "$ac_pwd"; then 1401 srcdir=. 1402fi 1403# Remove unnecessary trailing slashes from srcdir. 1404# Double slashes in file names in object file debugging info 1405# mess up M-x gdb in Emacs. 1406case $srcdir in 1407*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1408esac 1409for ac_var in $ac_precious_vars; do 1410 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1411 eval ac_env_${ac_var}_value=\$${ac_var} 1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1413 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1414done 1415 1416# 1417# Report the --help message. 1418# 1419if test "$ac_init_help" = "long"; then 1420 # Omit some internal or obsolete options to make the list less imposing. 1421 # This message is too long to be a string in the A/UX 3.1 sh. 1422 cat <<_ACEOF 1423\`configure' configures libmpeg2 0.5.1 to adapt to many kinds of systems. 1424 1425Usage: $0 [OPTION]... [VAR=VALUE]... 1426 1427To assign environment variables (e.g., CC, CFLAGS...), specify them as 1428VAR=VALUE. See below for descriptions of some of the useful variables. 1429 1430Defaults for the options are specified in brackets. 1431 1432Configuration: 1433 -h, --help display this help and exit 1434 --help=short display options specific to this package 1435 --help=recursive display the short help of all the included packages 1436 -V, --version display version information and exit 1437 -q, --quiet, --silent do not print \`checking...' messages 1438 --cache-file=FILE cache test results in FILE [disabled] 1439 -C, --config-cache alias for \`--cache-file=config.cache' 1440 -n, --no-create do not create output files 1441 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1442 1443Installation directories: 1444 --prefix=PREFIX install architecture-independent files in PREFIX 1445 [$ac_default_prefix] 1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1447 [PREFIX] 1448 1449By default, \`make install' will install all the files in 1450\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1451an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1452for instance \`--prefix=\$HOME'. 1453 1454For better control, use the options below. 1455 1456Fine tuning of the installation directories: 1457 --bindir=DIR user executables [EPREFIX/bin] 1458 --sbindir=DIR system admin executables [EPREFIX/sbin] 1459 --libexecdir=DIR program executables [EPREFIX/libexec] 1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1463 --libdir=DIR object code libraries [EPREFIX/lib] 1464 --includedir=DIR C header files [PREFIX/include] 1465 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1468 --infodir=DIR info documentation [DATAROOTDIR/info] 1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1470 --mandir=DIR man documentation [DATAROOTDIR/man] 1471 --docdir=DIR documentation root [DATAROOTDIR/doc/libmpeg2] 1472 --htmldir=DIR html documentation [DOCDIR] 1473 --dvidir=DIR dvi documentation [DOCDIR] 1474 --pdfdir=DIR pdf documentation [DOCDIR] 1475 --psdir=DIR ps documentation [DOCDIR] 1476_ACEOF 1477 1478 cat <<\_ACEOF 1479 1480Program names: 1481 --program-prefix=PREFIX prepend PREFIX to installed program names 1482 --program-suffix=SUFFIX append SUFFIX to installed program names 1483 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1484 1485X features: 1486 --x-includes=DIR X include files are in DIR 1487 --x-libraries=DIR X library files are in DIR 1488 1489System types: 1490 --build=BUILD configure for building on BUILD [guessed] 1491 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1492_ACEOF 1493fi 1494 1495if test -n "$ac_init_help"; then 1496 case $ac_init_help in 1497 short | recursive ) echo "Configuration of libmpeg2 0.5.1:";; 1498 esac 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-maintainer-mode enable make rules and dependencies not useful 1505 (and sometimes confusing) to the casual installer 1506 --disable-dependency-tracking speeds up one-time build 1507 --enable-dependency-tracking do not reject slow dependency extractors 1508 --enable-debug debug mode configuration 1509 --enable-shared[=PKGS] build shared libraries [default=yes] 1510 --enable-static[=PKGS] build static libraries [default=yes] 1511 --enable-fast-install[=PKGS] 1512 optimize for fast installation [default=yes] 1513 --disable-libtool-lock avoid locking (might break parallel builds) 1514 --disable-largefile omit support for large files 1515 --disable-accel-detect make a version without accel detection code 1516 --enable-directx=DIR use Win32 DirectX headers in DIR 1517 --disable-sdl make a version not using SDL 1518 --enable-warnings treat warnings as errors 1519 --enable-gprof make a version using gprof 1520 1521Optional Packages: 1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1524 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1525 --with-pic try to use only PIC/non-PIC objects [default=use 1526 both] 1527 --with-tags[=TAGS] include additional configurations [automatic] 1528 --with-x use the X Window System 1529 1530Some influential environment variables: 1531 CC C compiler command 1532 CFLAGS C compiler flags 1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1534 nonstandard directory <lib dir> 1535 LIBS libraries to pass to the linker, e.g. -l<library> 1536 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1537 you have headers in a nonstandard directory <include dir> 1538 CPP C preprocessor 1539 CCAS assembler compiler command (defaults to CC) 1540 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1541 CXX C++ compiler command 1542 CXXFLAGS C++ compiler flags 1543 CXXCPP C++ preprocessor 1544 F77 Fortran 77 compiler command 1545 FFLAGS Fortran 77 compiler flags 1546 XMKMF Path to xmkmf, Makefile generator for X Window System 1547 1548Use these variables to override the choices made by `configure' or to help 1549it to find libraries and programs with nonstandard names/locations. 1550 1551_ACEOF 1552ac_status=$? 1553fi 1554 1555if test "$ac_init_help" = "recursive"; then 1556 # If there are subdirs, report their specific --help. 1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1558 test -d "$ac_dir" || continue 1559 ac_builddir=. 1560 1561case "$ac_dir" in 1562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1563*) 1564 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1565 # A ".." for each directory in $ac_dir_suffix. 1566 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1567 case $ac_top_builddir_sub in 1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1570 esac ;; 1571esac 1572ac_abs_top_builddir=$ac_pwd 1573ac_abs_builddir=$ac_pwd$ac_dir_suffix 1574# for backward compatibility: 1575ac_top_builddir=$ac_top_build_prefix 1576 1577case $srcdir in 1578 .) # We are building in place. 1579 ac_srcdir=. 1580 ac_top_srcdir=$ac_top_builddir_sub 1581 ac_abs_top_srcdir=$ac_pwd ;; 1582 [\\/]* | ?:[\\/]* ) # Absolute name. 1583 ac_srcdir=$srcdir$ac_dir_suffix; 1584 ac_top_srcdir=$srcdir 1585 ac_abs_top_srcdir=$srcdir ;; 1586 *) # Relative name. 1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1588 ac_top_srcdir=$ac_top_build_prefix$srcdir 1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1590esac 1591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1592 1593 cd "$ac_dir" || { ac_status=$?; continue; } 1594 # Check for guested configure. 1595 if test -f "$ac_srcdir/configure.gnu"; then 1596 echo && 1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1598 elif test -f "$ac_srcdir/configure"; then 1599 echo && 1600 $SHELL "$ac_srcdir/configure" --help=recursive 1601 else 1602 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1603 fi || ac_status=$? 1604 cd "$ac_pwd" || { ac_status=$?; break; } 1605 done 1606fi 1607 1608test -n "$ac_init_help" && exit $ac_status 1609if $ac_init_version; then 1610 cat <<\_ACEOF 1611libmpeg2 configure 0.5.1 1612generated by GNU Autoconf 2.61 1613 1614Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16152002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1616This configure script is free software; the Free Software Foundation 1617gives unlimited permission to copy, distribute and modify it. 1618_ACEOF 1619 exit 1620fi 1621cat >config.log <<_ACEOF 1622This file contains any messages produced by compilers while 1623running configure, to aid debugging if configure makes a mistake. 1624 1625It was created by libmpeg2 $as_me 0.5.1, which was 1626generated by GNU Autoconf 2.61. Invocation command line was 1627 1628 $ $0 $@ 1629 1630_ACEOF 1631exec 5>>config.log 1632{ 1633cat <<_ASUNAME 1634## --------- ## 1635## Platform. ## 1636## --------- ## 1637 1638hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1639uname -m = `(uname -m) 2>/dev/null || echo unknown` 1640uname -r = `(uname -r) 2>/dev/null || echo unknown` 1641uname -s = `(uname -s) 2>/dev/null || echo unknown` 1642uname -v = `(uname -v) 2>/dev/null || echo unknown` 1643 1644/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1645/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1646 1647/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1648/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1649/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1650/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1651/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1652/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1653/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1654 1655_ASUNAME 1656 1657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1658for as_dir in $PATH 1659do 1660 IFS=$as_save_IFS 1661 test -z "$as_dir" && as_dir=. 1662 echo "PATH: $as_dir" 1663done 1664IFS=$as_save_IFS 1665 1666} >&5 1667 1668cat >&5 <<_ACEOF 1669 1670 1671## ----------- ## 1672## Core tests. ## 1673## ----------- ## 1674 1675_ACEOF 1676 1677 1678# Keep a trace of the command line. 1679# Strip out --no-create and --no-recursion so they do not pile up. 1680# Strip out --silent because we don't want to record it for future runs. 1681# Also quote any args containing shell meta-characters. 1682# Make two passes to allow for proper duplicate-argument suppression. 1683ac_configure_args= 1684ac_configure_args0= 1685ac_configure_args1= 1686ac_must_keep_next=false 1687for ac_pass in 1 2 1688do 1689 for ac_arg 1690 do 1691 case $ac_arg in 1692 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1694 | -silent | --silent | --silen | --sile | --sil) 1695 continue ;; 1696 *\'*) 1697 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1698 esac 1699 case $ac_pass in 1700 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1701 2) 1702 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1703 if test $ac_must_keep_next = true; then 1704 ac_must_keep_next=false # Got value, back to normal. 1705 else 1706 case $ac_arg in 1707 *=* | --config-cache | -C | -disable-* | --disable-* \ 1708 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1709 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1710 | -with-* | --with-* | -without-* | --without-* | --x) 1711 case "$ac_configure_args0 " in 1712 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1713 esac 1714 ;; 1715 -* ) ac_must_keep_next=true ;; 1716 esac 1717 fi 1718 ac_configure_args="$ac_configure_args '$ac_arg'" 1719 ;; 1720 esac 1721 done 1722done 1723$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1724$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1725 1726# When interrupted or exit'd, cleanup temporary files, and complete 1727# config.log. We remove comments because anyway the quotes in there 1728# would cause problems or look ugly. 1729# WARNING: Use '\'' to represent an apostrophe within the trap. 1730# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1731trap 'exit_status=$? 1732 # Save into config.log some information that might help in debugging. 1733 { 1734 echo 1735 1736 cat <<\_ASBOX 1737## ---------------- ## 1738## Cache variables. ## 1739## ---------------- ## 1740_ASBOX 1741 echo 1742 # The following way of writing the cache mishandles newlines in values, 1743( 1744 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1745 eval ac_val=\$$ac_var 1746 case $ac_val in #( 1747 *${as_nl}*) 1748 case $ac_var in #( 1749 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1750echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1751 esac 1752 case $ac_var in #( 1753 _ | IFS | as_nl) ;; #( 1754 *) $as_unset $ac_var ;; 1755 esac ;; 1756 esac 1757 done 1758 (set) 2>&1 | 1759 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1760 *${as_nl}ac_space=\ *) 1761 sed -n \ 1762 "s/'\''/'\''\\\\'\'''\''/g; 1763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1764 ;; #( 1765 *) 1766 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1767 ;; 1768 esac | 1769 sort 1770) 1771 echo 1772 1773 cat <<\_ASBOX 1774## ----------------- ## 1775## Output variables. ## 1776## ----------------- ## 1777_ASBOX 1778 echo 1779 for ac_var in $ac_subst_vars 1780 do 1781 eval ac_val=\$$ac_var 1782 case $ac_val in 1783 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1784 esac 1785 echo "$ac_var='\''$ac_val'\''" 1786 done | sort 1787 echo 1788 1789 if test -n "$ac_subst_files"; then 1790 cat <<\_ASBOX 1791## ------------------- ## 1792## File substitutions. ## 1793## ------------------- ## 1794_ASBOX 1795 echo 1796 for ac_var in $ac_subst_files 1797 do 1798 eval ac_val=\$$ac_var 1799 case $ac_val in 1800 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1801 esac 1802 echo "$ac_var='\''$ac_val'\''" 1803 done | sort 1804 echo 1805 fi 1806 1807 if test -s confdefs.h; then 1808 cat <<\_ASBOX 1809## ----------- ## 1810## confdefs.h. ## 1811## ----------- ## 1812_ASBOX 1813 echo 1814 cat confdefs.h 1815 echo 1816 fi 1817 test "$ac_signal" != 0 && 1818 echo "$as_me: caught signal $ac_signal" 1819 echo "$as_me: exit $exit_status" 1820 } >&5 1821 rm -f core *.core core.conftest.* && 1822 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1823 exit $exit_status 1824' 0 1825for ac_signal in 1 2 13 15; do 1826 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1827done 1828ac_signal=0 1829 1830# confdefs.h avoids OS command line length limits that DEFS can exceed. 1831rm -f -r conftest* confdefs.h 1832 1833# Predefined preprocessor variables. 1834 1835cat >>confdefs.h <<_ACEOF 1836#define PACKAGE_NAME "$PACKAGE_NAME" 1837_ACEOF 1838 1839 1840cat >>confdefs.h <<_ACEOF 1841#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1842_ACEOF 1843 1844 1845cat >>confdefs.h <<_ACEOF 1846#define PACKAGE_VERSION "$PACKAGE_VERSION" 1847_ACEOF 1848 1849 1850cat >>confdefs.h <<_ACEOF 1851#define PACKAGE_STRING "$PACKAGE_STRING" 1852_ACEOF 1853 1854 1855cat >>confdefs.h <<_ACEOF 1856#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1857_ACEOF 1858 1859 1860# Let the site file select an alternate cache file if it wants to. 1861# Prefer explicitly selected file to automatically selected ones. 1862if test -n "$CONFIG_SITE"; then 1863 set x "$CONFIG_SITE" 1864elif test "x$prefix" != xNONE; then 1865 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1866else 1867 set x "$ac_default_prefix/share/config.site" \ 1868 "$ac_default_prefix/etc/config.site" 1869fi 1870shift 1871for ac_site_file 1872do 1873 if test -r "$ac_site_file"; then 1874 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1875echo "$as_me: loading site script $ac_site_file" >&6;} 1876 sed 's/^/| /' "$ac_site_file" >&5 1877 . "$ac_site_file" 1878 fi 1879done 1880 1881if test -r "$cache_file"; then 1882 # Some versions of bash will fail to source /dev/null (special 1883 # files actually), so we avoid doing that. 1884 if test -f "$cache_file"; then 1885 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1886echo "$as_me: loading cache $cache_file" >&6;} 1887 case $cache_file in 1888 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1889 *) . "./$cache_file";; 1890 esac 1891 fi 1892else 1893 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1894echo "$as_me: creating cache $cache_file" >&6;} 1895 >$cache_file 1896fi 1897 1898# Check that the precious variables saved in the cache have kept the same 1899# value. 1900ac_cache_corrupted=false 1901for ac_var in $ac_precious_vars; do 1902 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1903 eval ac_new_set=\$ac_env_${ac_var}_set 1904 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1905 eval ac_new_val=\$ac_env_${ac_var}_value 1906 case $ac_old_set,$ac_new_set in 1907 set,) 1908 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1909echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1910 ac_cache_corrupted=: ;; 1911 ,set) 1912 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1913echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1914 ac_cache_corrupted=: ;; 1915 ,);; 1916 *) 1917 if test "x$ac_old_val" != "x$ac_new_val"; then 1918 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1919echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1920 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1921echo "$as_me: former value: $ac_old_val" >&2;} 1922 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1923echo "$as_me: current value: $ac_new_val" >&2;} 1924 ac_cache_corrupted=: 1925 fi;; 1926 esac 1927 # Pass precious variables to config.status. 1928 if test "$ac_new_set" = set; then 1929 case $ac_new_val in 1930 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1931 *) ac_arg=$ac_var=$ac_new_val ;; 1932 esac 1933 case " $ac_configure_args " in 1934 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1935 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1936 esac 1937 fi 1938done 1939if $ac_cache_corrupted; then 1940 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1941echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1942 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1943echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1944 { (exit 1); exit 1; }; } 1945fi 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971ac_ext=c 1972ac_cpp='$CPP $CPPFLAGS' 1973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1975ac_compiler_gnu=$ac_cv_c_compiler_gnu 1976 1977 1978 1979 1980ac_aux_dir= 1981for ac_dir in .auto "$srcdir"/.auto; do 1982 if test -f "$ac_dir/install-sh"; then 1983 ac_aux_dir=$ac_dir 1984 ac_install_sh="$ac_aux_dir/install-sh -c" 1985 break 1986 elif test -f "$ac_dir/install.sh"; then 1987 ac_aux_dir=$ac_dir 1988 ac_install_sh="$ac_aux_dir/install.sh -c" 1989 break 1990 elif test -f "$ac_dir/shtool"; then 1991 ac_aux_dir=$ac_dir 1992 ac_install_sh="$ac_aux_dir/shtool install -c" 1993 break 1994 fi 1995done 1996if test -z "$ac_aux_dir"; then 1997 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .auto \"$srcdir\"/.auto" >&5 1998echo "$as_me: error: cannot find install-sh or install.sh in .auto \"$srcdir\"/.auto" >&2;} 1999 { (exit 1); exit 1; }; } 2000fi 2001 2002# These three variables are undocumented and unsupported, 2003# and are intended to be withdrawn in a future Autoconf release. 2004# They can cause serious problems if a builder's source tree is in a directory 2005# whose full name contains unusual characters. 2006ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2007ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2008ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2009 2010 2011ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile doc/Makefile src/Makefile libmpeg2/Makefile libmpeg2/convert/Makefile libvo/Makefile vc++/Makefile libmpeg2/libmpeg2.pc libmpeg2/convert/libmpeg2convert.pc" 2012 2013ac_config_headers="$ac_config_headers include/config.h" 2014 2015# Make sure we can run config.sub. 2016$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2017 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2018echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2019 { (exit 1); exit 1; }; } 2020 2021{ echo "$as_me:$LINENO: checking build system type" >&5 2022echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2023if test "${ac_cv_build+set}" = set; then 2024 echo $ECHO_N "(cached) $ECHO_C" >&6 2025else 2026 ac_build_alias=$build_alias 2027test "x$ac_build_alias" = x && 2028 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2029test "x$ac_build_alias" = x && 2030 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2031echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2032 { (exit 1); exit 1; }; } 2033ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2035echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2036 { (exit 1); exit 1; }; } 2037 2038fi 2039{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2040echo "${ECHO_T}$ac_cv_build" >&6; } 2041case $ac_cv_build in 2042*-*-*) ;; 2043*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2044echo "$as_me: error: invalid value of canonical build" >&2;} 2045 { (exit 1); exit 1; }; };; 2046esac 2047build=$ac_cv_build 2048ac_save_IFS=$IFS; IFS='-' 2049set x $ac_cv_build 2050shift 2051build_cpu=$1 2052build_vendor=$2 2053shift; shift 2054# Remember, the first character of IFS is used to create $*, 2055# except with old shells: 2056build_os=$* 2057IFS=$ac_save_IFS 2058case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2059 2060 2061{ echo "$as_me:$LINENO: checking host system type" >&5 2062echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2063if test "${ac_cv_host+set}" = set; then 2064 echo $ECHO_N "(cached) $ECHO_C" >&6 2065else 2066 if test "x$host_alias" = x; then 2067 ac_cv_host=$ac_cv_build 2068else 2069 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2071echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2072 { (exit 1); exit 1; }; } 2073fi 2074 2075fi 2076{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2077echo "${ECHO_T}$ac_cv_host" >&6; } 2078case $ac_cv_host in 2079*-*-*) ;; 2080*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2081echo "$as_me: error: invalid value of canonical host" >&2;} 2082 { (exit 1); exit 1; }; };; 2083esac 2084host=$ac_cv_host 2085ac_save_IFS=$IFS; IFS='-' 2086set x $ac_cv_host 2087shift 2088host_cpu=$1 2089host_vendor=$2 2090shift; shift 2091# Remember, the first character of IFS is used to create $*, 2092# except with old shells: 2093host_os=$* 2094IFS=$ac_save_IFS 2095case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2096 2097 2098 2099am__api_version='1.10' 2100 2101# Find a good install program. We prefer a C program (faster), 2102# so one script is as good as another. But avoid the broken or 2103# incompatible versions: 2104# SysV /etc/install, /usr/sbin/install 2105# SunOS /usr/etc/install 2106# IRIX /sbin/install 2107# AIX /bin/install 2108# AmigaOS /C/install, which installs bootblocks on floppy discs 2109# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2110# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2111# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2112# OS/2's system install, which has a completely different semantic 2113# ./install, which can be erroneously created by make from ./install.sh. 2114{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2115echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2116if test -z "$INSTALL"; then 2117if test "${ac_cv_path_install+set}" = set; then 2118 echo $ECHO_N "(cached) $ECHO_C" >&6 2119else 2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2121for as_dir in $PATH 2122do 2123 IFS=$as_save_IFS 2124 test -z "$as_dir" && as_dir=. 2125 # Account for people who put trailing slashes in PATH elements. 2126case $as_dir/ in 2127 ./ | .// | /cC/* | \ 2128 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2129 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2130 /usr/ucb/* ) ;; 2131 *) 2132 # OSF1 and SCO ODT 3.0 have their own names for install. 2133 # Don't use installbsd from OSF since it installs stuff as root 2134 # by default. 2135 for ac_prog in ginstall scoinst install; do 2136 for ac_exec_ext in '' $ac_executable_extensions; do 2137 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2138 if test $ac_prog = install && 2139 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2140 # AIX install. It has an incompatible calling convention. 2141 : 2142 elif test $ac_prog = install && 2143 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2144 # program-specific install script used by HP pwplus--don't use. 2145 : 2146 else 2147 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2148 break 3 2149 fi 2150 fi 2151 done 2152 done 2153 ;; 2154esac 2155done 2156IFS=$as_save_IFS 2157 2158 2159fi 2160 if test "${ac_cv_path_install+set}" = set; then 2161 INSTALL=$ac_cv_path_install 2162 else 2163 # As a last resort, use the slow shell script. Don't cache a 2164 # value for INSTALL within a source directory, because that will 2165 # break other packages using the cache if that directory is 2166 # removed, or if the value is a relative name. 2167 INSTALL=$ac_install_sh 2168 fi 2169fi 2170{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2171echo "${ECHO_T}$INSTALL" >&6; } 2172 2173# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2174# It thinks the first close brace ends the variable substitution. 2175test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2176 2177test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2178 2179test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2180 2181{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2182echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2183# Just in case 2184sleep 1 2185echo timestamp > conftest.file 2186# Do `set' in a subshell so we don't clobber the current shell's 2187# arguments. Must try -L first in case configure is actually a 2188# symlink; some systems play weird games with the mod time of symlinks 2189# (eg FreeBSD returns the mod time of the symlink's containing 2190# directory). 2191if ( 2192 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2193 if test "$*" = "X"; then 2194 # -L didn't work. 2195 set X `ls -t $srcdir/configure conftest.file` 2196 fi 2197 rm -f conftest.file 2198 if test "$*" != "X $srcdir/configure conftest.file" \ 2199 && test "$*" != "X conftest.file $srcdir/configure"; then 2200 2201 # If neither matched, then we have a broken ls. This can happen 2202 # if, for instance, CONFIG_SHELL is bash and it inherits a 2203 # broken ls alias from the environment. This has actually 2204 # happened. Such a system could not be considered "sane". 2205 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2206alias in your environment" >&5 2207echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2208alias in your environment" >&2;} 2209 { (exit 1); exit 1; }; } 2210 fi 2211 2212 test "$2" = conftest.file 2213 ) 2214then 2215 # Ok. 2216 : 2217else 2218 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2219Check your system clock" >&5 2220echo "$as_me: error: newly created file is older than distributed files! 2221Check your system clock" >&2;} 2222 { (exit 1); exit 1; }; } 2223fi 2224{ echo "$as_me:$LINENO: result: yes" >&5 2225echo "${ECHO_T}yes" >&6; } 2226test "$program_prefix" != NONE && 2227 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2228# Use a double $ so make ignores it. 2229test "$program_suffix" != NONE && 2230 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2231# Double any \ or $. echo might interpret backslashes. 2232# By default was `s,x,x', remove it if useless. 2233cat <<\_ACEOF >conftest.sed 2234s/[\\$]/&&/g;s/;s,x,x,$// 2235_ACEOF 2236program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2237rm -f conftest.sed 2238 2239# expand $ac_aux_dir to an absolute path 2240am_aux_dir=`cd $ac_aux_dir && pwd` 2241 2242test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2243# Use eval to expand $SHELL 2244if eval "$MISSING --run true"; then 2245 am_missing_run="$MISSING --run " 2246else 2247 am_missing_run= 2248 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2249echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2250fi 2251 2252{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2253echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2254if test -z "$MKDIR_P"; then 2255 if test "${ac_cv_path_mkdir+set}" = set; then 2256 echo $ECHO_N "(cached) $ECHO_C" >&6 2257else 2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2259for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2260do 2261 IFS=$as_save_IFS 2262 test -z "$as_dir" && as_dir=. 2263 for ac_prog in mkdir gmkdir; do 2264 for ac_exec_ext in '' $ac_executable_extensions; do 2265 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2266 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2267 'mkdir (GNU coreutils) '* | \ 2268 'mkdir (coreutils) '* | \ 2269 'mkdir (fileutils) '4.1*) 2270 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2271 break 3;; 2272 esac 2273 done 2274 done 2275done 2276IFS=$as_save_IFS 2277 2278fi 2279 2280 if test "${ac_cv_path_mkdir+set}" = set; then 2281 MKDIR_P="$ac_cv_path_mkdir -p" 2282 else 2283 # As a last resort, use the slow shell script. Don't cache a 2284 # value for MKDIR_P within a source directory, because that will 2285 # break other packages using the cache if that directory is 2286 # removed, or if the value is a relative name. 2287 test -d ./--version && rmdir ./--version 2288 MKDIR_P="$ac_install_sh -d" 2289 fi 2290fi 2291{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2292echo "${ECHO_T}$MKDIR_P" >&6; } 2293 2294mkdir_p="$MKDIR_P" 2295case $mkdir_p in 2296 [\\/$]* | ?:[\\/]*) ;; 2297 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2298esac 2299 2300for ac_prog in gawk mawk nawk awk 2301do 2302 # Extract the first word of "$ac_prog", so it can be a program name with args. 2303set dummy $ac_prog; ac_word=$2 2304{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2306if test "${ac_cv_prog_AWK+set}" = set; then 2307 echo $ECHO_N "(cached) $ECHO_C" >&6 2308else 2309 if test -n "$AWK"; then 2310 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2311else 2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2313for as_dir in $PATH 2314do 2315 IFS=$as_save_IFS 2316 test -z "$as_dir" && as_dir=. 2317 for ac_exec_ext in '' $ac_executable_extensions; do 2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2319 ac_cv_prog_AWK="$ac_prog" 2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2321 break 2 2322 fi 2323done 2324done 2325IFS=$as_save_IFS 2326 2327fi 2328fi 2329AWK=$ac_cv_prog_AWK 2330if test -n "$AWK"; then 2331 { echo "$as_me:$LINENO: result: $AWK" >&5 2332echo "${ECHO_T}$AWK" >&6; } 2333else 2334 { echo "$as_me:$LINENO: result: no" >&5 2335echo "${ECHO_T}no" >&6; } 2336fi 2337 2338 2339 test -n "$AWK" && break 2340done 2341 2342{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2343echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2344set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2345if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2346 echo $ECHO_N "(cached) $ECHO_C" >&6 2347else 2348 cat >conftest.make <<\_ACEOF 2349SHELL = /bin/sh 2350all: 2351 @echo '@@@%%%=$(MAKE)=@@@%%%' 2352_ACEOF 2353# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2354case `${MAKE-make} -f conftest.make 2>/dev/null` in 2355 *@@@%%%=?*=@@@%%%*) 2356 eval ac_cv_prog_make_${ac_make}_set=yes;; 2357 *) 2358 eval ac_cv_prog_make_${ac_make}_set=no;; 2359esac 2360rm -f conftest.make 2361fi 2362if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2363 { echo "$as_me:$LINENO: result: yes" >&5 2364echo "${ECHO_T}yes" >&6; } 2365 SET_MAKE= 2366else 2367 { echo "$as_me:$LINENO: result: no" >&5 2368echo "${ECHO_T}no" >&6; } 2369 SET_MAKE="MAKE=${MAKE-make}" 2370fi 2371 2372rm -rf .tst 2>/dev/null 2373mkdir .tst 2>/dev/null 2374if test -d .tst; then 2375 am__leading_dot=. 2376else 2377 am__leading_dot=_ 2378fi 2379rmdir .tst 2>/dev/null 2380 2381if test "`cd $srcdir && pwd`" != "`pwd`"; then 2382 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2383 # is not polluted with repeated "-I." 2384 am__isrc=' -I$(srcdir)' 2385 # test to see if srcdir already configured 2386 if test -f $srcdir/config.status; then 2387 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2388echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2389 { (exit 1); exit 1; }; } 2390 fi 2391fi 2392 2393# test whether we have cygpath 2394if test -z "$CYGPATH_W"; then 2395 if (cygpath --version) >/dev/null 2>/dev/null; then 2396 CYGPATH_W='cygpath -w' 2397 else 2398 CYGPATH_W=echo 2399 fi 2400fi 2401 2402 2403# Define the identity of the package. 2404 PACKAGE='libmpeg2' 2405 VERSION='0.5.1' 2406 2407 2408cat >>confdefs.h <<_ACEOF 2409#define PACKAGE "$PACKAGE" 2410_ACEOF 2411 2412 2413cat >>confdefs.h <<_ACEOF 2414#define VERSION "$VERSION" 2415_ACEOF 2416 2417# Some tools Automake needs. 2418 2419ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2420 2421 2422AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2423 2424 2425AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2426 2427 2428AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2429 2430 2431MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2432 2433install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2434 2435# Installed binaries are usually stripped using `strip' when the user 2436# run `make install-strip'. However `strip' might not be the right 2437# tool to use in cross-compilation environments, therefore Automake 2438# will honor the `STRIP' environment variable to overrule this program. 2439if test "$cross_compiling" != no; then 2440 if test -n "$ac_tool_prefix"; then 2441 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2442set dummy ${ac_tool_prefix}strip; ac_word=$2 2443{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2445if test "${ac_cv_prog_STRIP+set}" = set; then 2446 echo $ECHO_N "(cached) $ECHO_C" >&6 2447else 2448 if test -n "$STRIP"; then 2449 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2450else 2451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2452for as_dir in $PATH 2453do 2454 IFS=$as_save_IFS 2455 test -z "$as_dir" && as_dir=. 2456 for ac_exec_ext in '' $ac_executable_extensions; do 2457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2458 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2460 break 2 2461 fi 2462done 2463done 2464IFS=$as_save_IFS 2465 2466fi 2467fi 2468STRIP=$ac_cv_prog_STRIP 2469if test -n "$STRIP"; then 2470 { echo "$as_me:$LINENO: result: $STRIP" >&5 2471echo "${ECHO_T}$STRIP" >&6; } 2472else 2473 { echo "$as_me:$LINENO: result: no" >&5 2474echo "${ECHO_T}no" >&6; } 2475fi 2476 2477 2478fi 2479if test -z "$ac_cv_prog_STRIP"; then 2480 ac_ct_STRIP=$STRIP 2481 # Extract the first word of "strip", so it can be a program name with args. 2482set dummy strip; ac_word=$2 2483{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2485if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2486 echo $ECHO_N "(cached) $ECHO_C" >&6 2487else 2488 if test -n "$ac_ct_STRIP"; then 2489 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2490else 2491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2492for as_dir in $PATH 2493do 2494 IFS=$as_save_IFS 2495 test -z "$as_dir" && as_dir=. 2496 for ac_exec_ext in '' $ac_executable_extensions; do 2497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2498 ac_cv_prog_ac_ct_STRIP="strip" 2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2500 break 2 2501 fi 2502done 2503done 2504IFS=$as_save_IFS 2505 2506fi 2507fi 2508ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2509if test -n "$ac_ct_STRIP"; then 2510 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2511echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2512else 2513 { echo "$as_me:$LINENO: result: no" >&5 2514echo "${ECHO_T}no" >&6; } 2515fi 2516 2517 if test "x$ac_ct_STRIP" = x; then 2518 STRIP=":" 2519 else 2520 case $cross_compiling:$ac_tool_warned in 2521yes:) 2522{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2523whose name does not start with the host triplet. If you think this 2524configuration is useful to you, please write to autoconf@gnu.org." >&5 2525echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2526whose name does not start with the host triplet. If you think this 2527configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2528ac_tool_warned=yes ;; 2529esac 2530 STRIP=$ac_ct_STRIP 2531 fi 2532else 2533 STRIP="$ac_cv_prog_STRIP" 2534fi 2535 2536fi 2537INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2538 2539# We need awk for the "check" target. The system "awk" is bad on 2540# some platforms. 2541# Always define AMTAR for backward compatibility. 2542 2543AMTAR=${AMTAR-"${am_missing_run}tar"} 2544 2545am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2546 2547 2548 2549 2550 2551{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2552echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2553 # Check whether --enable-maintainer-mode was given. 2554if test "${enable_maintainer_mode+set}" = set; then 2555 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2556else 2557 USE_MAINTAINER_MODE=no 2558fi 2559 2560 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2561echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2562 if test $USE_MAINTAINER_MODE = yes; then 2563 MAINTAINER_MODE_TRUE= 2564 MAINTAINER_MODE_FALSE='#' 2565else 2566 MAINTAINER_MODE_TRUE='#' 2567 MAINTAINER_MODE_FALSE= 2568fi 2569 2570 MAINT=$MAINTAINER_MODE_TRUE 2571 2572 2573 2574ac_ext=c 2575ac_cpp='$CPP $CPPFLAGS' 2576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2578ac_compiler_gnu=$ac_cv_c_compiler_gnu 2579if test -n "$ac_tool_prefix"; then 2580 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2581set dummy ${ac_tool_prefix}gcc; ac_word=$2 2582{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2584if test "${ac_cv_prog_CC+set}" = set; then 2585 echo $ECHO_N "(cached) $ECHO_C" >&6 2586else 2587 if test -n "$CC"; then 2588 ac_cv_prog_CC="$CC" # Let the user override the test. 2589else 2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2591for as_dir in $PATH 2592do 2593 IFS=$as_save_IFS 2594 test -z "$as_dir" && as_dir=. 2595 for ac_exec_ext in '' $ac_executable_extensions; do 2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2597 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2599 break 2 2600 fi 2601done 2602done 2603IFS=$as_save_IFS 2604 2605fi 2606fi 2607CC=$ac_cv_prog_CC 2608if test -n "$CC"; then 2609 { echo "$as_me:$LINENO: result: $CC" >&5 2610echo "${ECHO_T}$CC" >&6; } 2611else 2612 { echo "$as_me:$LINENO: result: no" >&5 2613echo "${ECHO_T}no" >&6; } 2614fi 2615 2616 2617fi 2618if test -z "$ac_cv_prog_CC"; then 2619 ac_ct_CC=$CC 2620 # Extract the first word of "gcc", so it can be a program name with args. 2621set dummy gcc; ac_word=$2 2622{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2624if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2625 echo $ECHO_N "(cached) $ECHO_C" >&6 2626else 2627 if test -n "$ac_ct_CC"; then 2628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2629else 2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2631for as_dir in $PATH 2632do 2633 IFS=$as_save_IFS 2634 test -z "$as_dir" && as_dir=. 2635 for ac_exec_ext in '' $ac_executable_extensions; do 2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2637 ac_cv_prog_ac_ct_CC="gcc" 2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2639 break 2 2640 fi 2641done 2642done 2643IFS=$as_save_IFS 2644 2645fi 2646fi 2647ac_ct_CC=$ac_cv_prog_ac_ct_CC 2648if test -n "$ac_ct_CC"; then 2649 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2650echo "${ECHO_T}$ac_ct_CC" >&6; } 2651else 2652 { echo "$as_me:$LINENO: result: no" >&5 2653echo "${ECHO_T}no" >&6; } 2654fi 2655 2656 if test "x$ac_ct_CC" = x; then 2657 CC="" 2658 else 2659 case $cross_compiling:$ac_tool_warned in 2660yes:) 2661{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2662whose name does not start with the host triplet. If you think this 2663configuration is useful to you, please write to autoconf@gnu.org." >&5 2664echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2665whose name does not start with the host triplet. If you think this 2666configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2667ac_tool_warned=yes ;; 2668esac 2669 CC=$ac_ct_CC 2670 fi 2671else 2672 CC="$ac_cv_prog_CC" 2673fi 2674 2675if test -z "$CC"; then 2676 if test -n "$ac_tool_prefix"; then 2677 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2678set dummy ${ac_tool_prefix}cc; ac_word=$2 2679{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2681if test "${ac_cv_prog_CC+set}" = set; then 2682 echo $ECHO_N "(cached) $ECHO_C" >&6 2683else 2684 if test -n "$CC"; then 2685 ac_cv_prog_CC="$CC" # Let the user override the test. 2686else 2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2688for as_dir in $PATH 2689do 2690 IFS=$as_save_IFS 2691 test -z "$as_dir" && as_dir=. 2692 for ac_exec_ext in '' $ac_executable_extensions; do 2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2694 ac_cv_prog_CC="${ac_tool_prefix}cc" 2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2696 break 2 2697 fi 2698done 2699done 2700IFS=$as_save_IFS 2701 2702fi 2703fi 2704CC=$ac_cv_prog_CC 2705if test -n "$CC"; then 2706 { echo "$as_me:$LINENO: result: $CC" >&5 2707echo "${ECHO_T}$CC" >&6; } 2708else 2709 { echo "$as_me:$LINENO: result: no" >&5 2710echo "${ECHO_T}no" >&6; } 2711fi 2712 2713 2714 fi 2715fi 2716if test -z "$CC"; then 2717 # Extract the first word of "cc", so it can be a program name with args. 2718set dummy cc; ac_word=$2 2719{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2721if test "${ac_cv_prog_CC+set}" = set; then 2722 echo $ECHO_N "(cached) $ECHO_C" >&6 2723else 2724 if test -n "$CC"; then 2725 ac_cv_prog_CC="$CC" # Let the user override the test. 2726else 2727 ac_prog_rejected=no 2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2729for as_dir in $PATH 2730do 2731 IFS=$as_save_IFS 2732 test -z "$as_dir" && as_dir=. 2733 for ac_exec_ext in '' $ac_executable_extensions; do 2734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2735 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2736 ac_prog_rejected=yes 2737 continue 2738 fi 2739 ac_cv_prog_CC="cc" 2740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2741 break 2 2742 fi 2743done 2744done 2745IFS=$as_save_IFS 2746 2747if test $ac_prog_rejected = yes; then 2748 # We found a bogon in the path, so make sure we never use it. 2749 set dummy $ac_cv_prog_CC 2750 shift 2751 if test $# != 0; then 2752 # We chose a different compiler from the bogus one. 2753 # However, it has the same basename, so the bogon will be chosen 2754 # first if we set CC to just the basename; use the full file name. 2755 shift 2756 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2757 fi 2758fi 2759fi 2760fi 2761CC=$ac_cv_prog_CC 2762if test -n "$CC"; then 2763 { echo "$as_me:$LINENO: result: $CC" >&5 2764echo "${ECHO_T}$CC" >&6; } 2765else 2766 { echo "$as_me:$LINENO: result: no" >&5 2767echo "${ECHO_T}no" >&6; } 2768fi 2769 2770 2771fi 2772if test -z "$CC"; then 2773 if test -n "$ac_tool_prefix"; then 2774 for ac_prog in cl.exe 2775 do 2776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2777set dummy $ac_tool_prefix$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_CC+set}" = set; then 2781 echo $ECHO_N "(cached) $ECHO_C" >&6 2782else 2783 if test -n "$CC"; then 2784 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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 2803CC=$ac_cv_prog_CC 2804if test -n "$CC"; then 2805 { echo "$as_me:$LINENO: result: $CC" >&5 2806echo "${ECHO_T}$CC" >&6; } 2807else 2808 { echo "$as_me:$LINENO: result: no" >&5 2809echo "${ECHO_T}no" >&6; } 2810fi 2811 2812 2813 test -n "$CC" && break 2814 done 2815fi 2816if test -z "$CC"; then 2817 ac_ct_CC=$CC 2818 for ac_prog in cl.exe 2819do 2820 # Extract the first word of "$ac_prog", so it can be a program name with args. 2821set dummy $ac_prog; ac_word=$2 2822{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2824if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2825 echo $ECHO_N "(cached) $ECHO_C" >&6 2826else 2827 if test -n "$ac_ct_CC"; then 2828 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2829else 2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2831for as_dir in $PATH 2832do 2833 IFS=$as_save_IFS 2834 test -z "$as_dir" && as_dir=. 2835 for ac_exec_ext in '' $ac_executable_extensions; do 2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2837 ac_cv_prog_ac_ct_CC="$ac_prog" 2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2839 break 2 2840 fi 2841done 2842done 2843IFS=$as_save_IFS 2844 2845fi 2846fi 2847ac_ct_CC=$ac_cv_prog_ac_ct_CC 2848if test -n "$ac_ct_CC"; then 2849 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2850echo "${ECHO_T}$ac_ct_CC" >&6; } 2851else 2852 { echo "$as_me:$LINENO: result: no" >&5 2853echo "${ECHO_T}no" >&6; } 2854fi 2855 2856 2857 test -n "$ac_ct_CC" && break 2858done 2859 2860 if test "x$ac_ct_CC" = x; then 2861 CC="" 2862 else 2863 case $cross_compiling:$ac_tool_warned in 2864yes:) 2865{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2866whose name does not start with the host triplet. If you think this 2867configuration is useful to you, please write to autoconf@gnu.org." >&5 2868echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2869whose name does not start with the host triplet. If you think this 2870configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2871ac_tool_warned=yes ;; 2872esac 2873 CC=$ac_ct_CC 2874 fi 2875fi 2876 2877fi 2878 2879 2880test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2881See \`config.log' for more details." >&5 2882echo "$as_me: error: no acceptable C compiler found in \$PATH 2883See \`config.log' for more details." >&2;} 2884 { (exit 1); exit 1; }; } 2885 2886# Provide some information about the compiler. 2887echo "$as_me:$LINENO: checking for C compiler version" >&5 2888ac_compiler=`set X $ac_compile; echo $2` 2889{ (ac_try="$ac_compiler --version >&5" 2890case "(($ac_try" in 2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2892 *) ac_try_echo=$ac_try;; 2893esac 2894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2895 (eval "$ac_compiler --version >&5") 2>&5 2896 ac_status=$? 2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2898 (exit $ac_status); } 2899{ (ac_try="$ac_compiler -v >&5" 2900case "(($ac_try" in 2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2902 *) ac_try_echo=$ac_try;; 2903esac 2904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2905 (eval "$ac_compiler -v >&5") 2>&5 2906 ac_status=$? 2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2908 (exit $ac_status); } 2909{ (ac_try="$ac_compiler -V >&5" 2910case "(($ac_try" in 2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2912 *) ac_try_echo=$ac_try;; 2913esac 2914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2915 (eval "$ac_compiler -V >&5") 2>&5 2916 ac_status=$? 2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2918 (exit $ac_status); } 2919 2920cat >conftest.$ac_ext <<_ACEOF 2921/* confdefs.h. */ 2922_ACEOF 2923cat confdefs.h >>conftest.$ac_ext 2924cat >>conftest.$ac_ext <<_ACEOF 2925/* end confdefs.h. */ 2926 2927int 2928main () 2929{ 2930 2931 ; 2932 return 0; 2933} 2934_ACEOF 2935ac_clean_files_save=$ac_clean_files 2936ac_clean_files="$ac_clean_files a.out a.exe b.out" 2937# Try to create an executable without -o first, disregard a.out. 2938# It will help us diagnose broken compilers, and finding out an intuition 2939# of exeext. 2940{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2941echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2942ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2943# 2944# List of possible output files, starting from the most likely. 2945# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2946# only as a last resort. b.out is created by i960 compilers. 2947ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2948# 2949# The IRIX 6 linker writes into existing files which may not be 2950# executable, retaining their permissions. Remove them first so a 2951# subsequent execution test works. 2952ac_rmfiles= 2953for ac_file in $ac_files 2954do 2955 case $ac_file in 2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2957 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2958 esac 2959done 2960rm -f $ac_rmfiles 2961 2962if { (ac_try="$ac_link_default" 2963case "(($ac_try" in 2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2965 *) ac_try_echo=$ac_try;; 2966esac 2967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2968 (eval "$ac_link_default") 2>&5 2969 ac_status=$? 2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2971 (exit $ac_status); }; then 2972 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2973# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2974# in a Makefile. We should not override ac_cv_exeext if it was cached, 2975# so that the user can short-circuit this test for compilers unknown to 2976# Autoconf. 2977for ac_file in $ac_files '' 2978do 2979 test -f "$ac_file" || continue 2980 case $ac_file in 2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2982 ;; 2983 [ab].out ) 2984 # We found the default executable, but exeext='' is most 2985 # certainly right. 2986 break;; 2987 *.* ) 2988 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2989 then :; else 2990 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2991 fi 2992 # We set ac_cv_exeext here because the later test for it is not 2993 # safe: cross compilers may not add the suffix if given an `-o' 2994 # argument, so we may need to know it at that point already. 2995 # Even if this section looks crufty: it has the advantage of 2996 # actually working. 2997 break;; 2998 * ) 2999 break;; 3000 esac 3001done 3002test "$ac_cv_exeext" = no && ac_cv_exeext= 3003 3004else 3005 ac_file='' 3006fi 3007 3008{ echo "$as_me:$LINENO: result: $ac_file" >&5 3009echo "${ECHO_T}$ac_file" >&6; } 3010if test -z "$ac_file"; then 3011 echo "$as_me: failed program was:" >&5 3012sed 's/^/| /' conftest.$ac_ext >&5 3013 3014{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3015See \`config.log' for more details." >&5 3016echo "$as_me: error: C compiler cannot create executables 3017See \`config.log' for more details." >&2;} 3018 { (exit 77); exit 77; }; } 3019fi 3020 3021ac_exeext=$ac_cv_exeext 3022 3023# Check that the compiler produces executables we can run. If not, either 3024# the compiler is broken, or we cross compile. 3025{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3026echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3027# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3028# If not cross compiling, check that we can run a simple program. 3029if test "$cross_compiling" != yes; then 3030 if { ac_try='./$ac_file' 3031 { (case "(($ac_try" in 3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3033 *) ac_try_echo=$ac_try;; 3034esac 3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3036 (eval "$ac_try") 2>&5 3037 ac_status=$? 3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3039 (exit $ac_status); }; }; then 3040 cross_compiling=no 3041 else 3042 if test "$cross_compiling" = maybe; then 3043 cross_compiling=yes 3044 else 3045 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3046If you meant to cross compile, use \`--host'. 3047See \`config.log' for more details." >&5 3048echo "$as_me: error: cannot run C compiled programs. 3049If you meant to cross compile, use \`--host'. 3050See \`config.log' for more details." >&2;} 3051 { (exit 1); exit 1; }; } 3052 fi 3053 fi 3054fi 3055{ echo "$as_me:$LINENO: result: yes" >&5 3056echo "${ECHO_T}yes" >&6; } 3057 3058rm -f a.out a.exe conftest$ac_cv_exeext b.out 3059ac_clean_files=$ac_clean_files_save 3060# Check that the compiler produces executables we can run. If not, either 3061# the compiler is broken, or we cross compile. 3062{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3063echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3064{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3065echo "${ECHO_T}$cross_compiling" >&6; } 3066 3067{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3068echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3069if { (ac_try="$ac_link" 3070case "(($ac_try" in 3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3072 *) ac_try_echo=$ac_try;; 3073esac 3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3075 (eval "$ac_link") 2>&5 3076 ac_status=$? 3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3078 (exit $ac_status); }; then 3079 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3080# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3081# work properly (i.e., refer to `conftest.exe'), while it won't with 3082# `rm'. 3083for ac_file in conftest.exe conftest conftest.*; do 3084 test -f "$ac_file" || continue 3085 case $ac_file in 3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3087 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3088 break;; 3089 * ) break;; 3090 esac 3091done 3092else 3093 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3094See \`config.log' for more details." >&5 3095echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3096See \`config.log' for more details." >&2;} 3097 { (exit 1); exit 1; }; } 3098fi 3099 3100rm -f conftest$ac_cv_exeext 3101{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3102echo "${ECHO_T}$ac_cv_exeext" >&6; } 3103 3104rm -f conftest.$ac_ext 3105EXEEXT=$ac_cv_exeext 3106ac_exeext=$EXEEXT 3107{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3108echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3109if test "${ac_cv_objext+set}" = set; then 3110 echo $ECHO_N "(cached) $ECHO_C" >&6 3111else 3112 cat >conftest.$ac_ext <<_ACEOF 3113/* confdefs.h. */ 3114_ACEOF 3115cat confdefs.h >>conftest.$ac_ext 3116cat >>conftest.$ac_ext <<_ACEOF 3117/* end confdefs.h. */ 3118 3119int 3120main () 3121{ 3122 3123 ; 3124 return 0; 3125} 3126_ACEOF 3127rm -f conftest.o conftest.obj 3128if { (ac_try="$ac_compile" 3129case "(($ac_try" in 3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3131 *) ac_try_echo=$ac_try;; 3132esac 3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3134 (eval "$ac_compile") 2>&5 3135 ac_status=$? 3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3137 (exit $ac_status); }; then 3138 for ac_file in conftest.o conftest.obj conftest.*; do 3139 test -f "$ac_file" || continue; 3140 case $ac_file in 3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3142 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3143 break;; 3144 esac 3145done 3146else 3147 echo "$as_me: failed program was:" >&5 3148sed 's/^/| /' conftest.$ac_ext >&5 3149 3150{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3151See \`config.log' for more details." >&5 3152echo "$as_me: error: cannot compute suffix of object files: cannot compile 3153See \`config.log' for more details." >&2;} 3154 { (exit 1); exit 1; }; } 3155fi 3156 3157rm -f conftest.$ac_cv_objext conftest.$ac_ext 3158fi 3159{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3160echo "${ECHO_T}$ac_cv_objext" >&6; } 3161OBJEXT=$ac_cv_objext 3162ac_objext=$OBJEXT 3163{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3164echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3165if test "${ac_cv_c_compiler_gnu+set}" = set; then 3166 echo $ECHO_N "(cached) $ECHO_C" >&6 3167else 3168 cat >conftest.$ac_ext <<_ACEOF 3169/* confdefs.h. */ 3170_ACEOF 3171cat confdefs.h >>conftest.$ac_ext 3172cat >>conftest.$ac_ext <<_ACEOF 3173/* end confdefs.h. */ 3174 3175int 3176main () 3177{ 3178#ifndef __GNUC__ 3179 choke me 3180#endif 3181 3182 ; 3183 return 0; 3184} 3185_ACEOF 3186rm -f conftest.$ac_objext 3187if { (ac_try="$ac_compile" 3188case "(($ac_try" in 3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3190 *) ac_try_echo=$ac_try;; 3191esac 3192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3193 (eval "$ac_compile") 2>conftest.er1 3194 ac_status=$? 3195 grep -v '^ *+' conftest.er1 >conftest.err 3196 rm -f conftest.er1 3197 cat conftest.err >&5 3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3199 (exit $ac_status); } && { 3200 test -z "$ac_c_werror_flag" || 3201 test ! -s conftest.err 3202 } && test -s conftest.$ac_objext; then 3203 ac_compiler_gnu=yes 3204else 3205 echo "$as_me: failed program was:" >&5 3206sed 's/^/| /' conftest.$ac_ext >&5 3207 3208 ac_compiler_gnu=no 3209fi 3210 3211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3212ac_cv_c_compiler_gnu=$ac_compiler_gnu 3213 3214fi 3215{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3216echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3217GCC=`test $ac_compiler_gnu = yes && echo yes` 3218ac_test_CFLAGS=${CFLAGS+set} 3219ac_save_CFLAGS=$CFLAGS 3220{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3221echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3222if test "${ac_cv_prog_cc_g+set}" = set; then 3223 echo $ECHO_N "(cached) $ECHO_C" >&6 3224else 3225 ac_save_c_werror_flag=$ac_c_werror_flag 3226 ac_c_werror_flag=yes 3227 ac_cv_prog_cc_g=no 3228 CFLAGS="-g" 3229 cat >conftest.$ac_ext <<_ACEOF 3230/* confdefs.h. */ 3231_ACEOF 3232cat confdefs.h >>conftest.$ac_ext 3233cat >>conftest.$ac_ext <<_ACEOF 3234/* end confdefs.h. */ 3235 3236int 3237main () 3238{ 3239 3240 ; 3241 return 0; 3242} 3243_ACEOF 3244rm -f conftest.$ac_objext 3245if { (ac_try="$ac_compile" 3246case "(($ac_try" in 3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3248 *) ac_try_echo=$ac_try;; 3249esac 3250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3251 (eval "$ac_compile") 2>conftest.er1 3252 ac_status=$? 3253 grep -v '^ *+' conftest.er1 >conftest.err 3254 rm -f conftest.er1 3255 cat conftest.err >&5 3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3257 (exit $ac_status); } && { 3258 test -z "$ac_c_werror_flag" || 3259 test ! -s conftest.err 3260 } && test -s conftest.$ac_objext; then 3261 ac_cv_prog_cc_g=yes 3262else 3263 echo "$as_me: failed program was:" >&5 3264sed 's/^/| /' conftest.$ac_ext >&5 3265 3266 CFLAGS="" 3267 cat >conftest.$ac_ext <<_ACEOF 3268/* confdefs.h. */ 3269_ACEOF 3270cat confdefs.h >>conftest.$ac_ext 3271cat >>conftest.$ac_ext <<_ACEOF 3272/* end confdefs.h. */ 3273 3274int 3275main () 3276{ 3277 3278 ; 3279 return 0; 3280} 3281_ACEOF 3282rm -f conftest.$ac_objext 3283if { (ac_try="$ac_compile" 3284case "(($ac_try" in 3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3286 *) ac_try_echo=$ac_try;; 3287esac 3288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3289 (eval "$ac_compile") 2>conftest.er1 3290 ac_status=$? 3291 grep -v '^ *+' conftest.er1 >conftest.err 3292 rm -f conftest.er1 3293 cat conftest.err >&5 3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3295 (exit $ac_status); } && { 3296 test -z "$ac_c_werror_flag" || 3297 test ! -s conftest.err 3298 } && test -s conftest.$ac_objext; then 3299 : 3300else 3301 echo "$as_me: failed program was:" >&5 3302sed 's/^/| /' conftest.$ac_ext >&5 3303 3304 ac_c_werror_flag=$ac_save_c_werror_flag 3305 CFLAGS="-g" 3306 cat >conftest.$ac_ext <<_ACEOF 3307/* confdefs.h. */ 3308_ACEOF 3309cat confdefs.h >>conftest.$ac_ext 3310cat >>conftest.$ac_ext <<_ACEOF 3311/* end confdefs.h. */ 3312 3313int 3314main () 3315{ 3316 3317 ; 3318 return 0; 3319} 3320_ACEOF 3321rm -f conftest.$ac_objext 3322if { (ac_try="$ac_compile" 3323case "(($ac_try" in 3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3325 *) ac_try_echo=$ac_try;; 3326esac 3327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3328 (eval "$ac_compile") 2>conftest.er1 3329 ac_status=$? 3330 grep -v '^ *+' conftest.er1 >conftest.err 3331 rm -f conftest.er1 3332 cat conftest.err >&5 3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3334 (exit $ac_status); } && { 3335 test -z "$ac_c_werror_flag" || 3336 test ! -s conftest.err 3337 } && test -s conftest.$ac_objext; then 3338 ac_cv_prog_cc_g=yes 3339else 3340 echo "$as_me: failed program was:" >&5 3341sed 's/^/| /' conftest.$ac_ext >&5 3342 3343 3344fi 3345 3346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3347fi 3348 3349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3350fi 3351 3352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3353 ac_c_werror_flag=$ac_save_c_werror_flag 3354fi 3355{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3356echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3357if test "$ac_test_CFLAGS" = set; then 3358 CFLAGS=$ac_save_CFLAGS 3359elif test $ac_cv_prog_cc_g = yes; then 3360 if test "$GCC" = yes; then 3361 CFLAGS="-g -O2" 3362 else 3363 CFLAGS="-g" 3364 fi 3365else 3366 if test "$GCC" = yes; then 3367 CFLAGS="-O2" 3368 else 3369 CFLAGS= 3370 fi 3371fi 3372{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3373echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3374if test "${ac_cv_prog_cc_c89+set}" = set; then 3375 echo $ECHO_N "(cached) $ECHO_C" >&6 3376else 3377 ac_cv_prog_cc_c89=no 3378ac_save_CC=$CC 3379cat >conftest.$ac_ext <<_ACEOF 3380/* confdefs.h. */ 3381_ACEOF 3382cat confdefs.h >>conftest.$ac_ext 3383cat >>conftest.$ac_ext <<_ACEOF 3384/* end confdefs.h. */ 3385#include <stdarg.h> 3386#include <stdio.h> 3387#include <sys/types.h> 3388#include <sys/stat.h> 3389/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3390struct buf { int x; }; 3391FILE * (*rcsopen) (struct buf *, struct stat *, int); 3392static char *e (p, i) 3393 char **p; 3394 int i; 3395{ 3396 return p[i]; 3397} 3398static char *f (char * (*g) (char **, int), char **p, ...) 3399{ 3400 char *s; 3401 va_list v; 3402 va_start (v,p); 3403 s = g (p, va_arg (v,int)); 3404 va_end (v); 3405 return s; 3406} 3407 3408/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3409 function prototypes and stuff, but not '\xHH' hex character constants. 3410 These don't provoke an error unfortunately, instead are silently treated 3411 as 'x'. The following induces an error, until -std is added to get 3412 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3413 array size at least. It's necessary to write '\x00'==0 to get something 3414 that's true only with -std. */ 3415int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3416 3417/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3418 inside strings and character constants. */ 3419#define FOO(x) 'x' 3420int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3421 3422int test (int i, double x); 3423struct s1 {int (*f) (int a);}; 3424struct s2 {int (*f) (double a);}; 3425int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3426int argc; 3427char **argv; 3428int 3429main () 3430{ 3431return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3432 ; 3433 return 0; 3434} 3435_ACEOF 3436for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3437 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3438do 3439 CC="$ac_save_CC $ac_arg" 3440 rm -f conftest.$ac_objext 3441if { (ac_try="$ac_compile" 3442case "(($ac_try" in 3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3444 *) ac_try_echo=$ac_try;; 3445esac 3446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3447 (eval "$ac_compile") 2>conftest.er1 3448 ac_status=$? 3449 grep -v '^ *+' conftest.er1 >conftest.err 3450 rm -f conftest.er1 3451 cat conftest.err >&5 3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3453 (exit $ac_status); } && { 3454 test -z "$ac_c_werror_flag" || 3455 test ! -s conftest.err 3456 } && test -s conftest.$ac_objext; then 3457 ac_cv_prog_cc_c89=$ac_arg 3458else 3459 echo "$as_me: failed program was:" >&5 3460sed 's/^/| /' conftest.$ac_ext >&5 3461 3462 3463fi 3464 3465rm -f core conftest.err conftest.$ac_objext 3466 test "x$ac_cv_prog_cc_c89" != "xno" && break 3467done 3468rm -f conftest.$ac_ext 3469CC=$ac_save_CC 3470 3471fi 3472# AC_CACHE_VAL 3473case "x$ac_cv_prog_cc_c89" in 3474 x) 3475 { echo "$as_me:$LINENO: result: none needed" >&5 3476echo "${ECHO_T}none needed" >&6; } ;; 3477 xno) 3478 { echo "$as_me:$LINENO: result: unsupported" >&5 3479echo "${ECHO_T}unsupported" >&6; } ;; 3480 *) 3481 CC="$CC $ac_cv_prog_cc_c89" 3482 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3483echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3484esac 3485 3486 3487ac_ext=c 3488ac_cpp='$CPP $CPPFLAGS' 3489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3491ac_compiler_gnu=$ac_cv_c_compiler_gnu 3492DEPDIR="${am__leading_dot}deps" 3493 3494ac_config_commands="$ac_config_commands depfiles" 3495 3496 3497am_make=${MAKE-make} 3498cat > confinc << 'END' 3499am__doit: 3500 @echo done 3501.PHONY: am__doit 3502END 3503# If we don't find an include directive, just comment out the code. 3504{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3505echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3506am__include="#" 3507am__quote= 3508_am_result=none 3509# First try GNU make style include. 3510echo "include confinc" > confmf 3511# We grep out `Entering directory' and `Leaving directory' 3512# messages which can occur if `w' ends up in MAKEFLAGS. 3513# In particular we don't look at `^make:' because GNU make might 3514# be invoked under some other name (usually "gmake"), in which 3515# case it prints its new name instead of `make'. 3516if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3517 am__include=include 3518 am__quote= 3519 _am_result=GNU 3520fi 3521# Now try BSD make style include. 3522if test "$am__include" = "#"; then 3523 echo '.include "confinc"' > confmf 3524 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3525 am__include=.include 3526 am__quote="\"" 3527 _am_result=BSD 3528 fi 3529fi 3530 3531 3532{ echo "$as_me:$LINENO: result: $_am_result" >&5 3533echo "${ECHO_T}$_am_result" >&6; } 3534rm -f confinc confmf 3535 3536# Check whether --enable-dependency-tracking was given. 3537if test "${enable_dependency_tracking+set}" = set; then 3538 enableval=$enable_dependency_tracking; 3539fi 3540 3541if test "x$enable_dependency_tracking" != xno; then 3542 am_depcomp="$ac_aux_dir/depcomp" 3543 AMDEPBACKSLASH='\' 3544fi 3545 if test "x$enable_dependency_tracking" != xno; then 3546 AMDEP_TRUE= 3547 AMDEP_FALSE='#' 3548else 3549 AMDEP_TRUE='#' 3550 AMDEP_FALSE= 3551fi 3552 3553 3554 3555depcc="$CC" am_compiler_list= 3556 3557{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3558echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3559if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3560 echo $ECHO_N "(cached) $ECHO_C" >&6 3561else 3562 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3563 # We make a subdir and do the tests there. Otherwise we can end up 3564 # making bogus files that we don't know about and never remove. For 3565 # instance it was reported that on HP-UX the gcc test will end up 3566 # making a dummy file named `D' -- because `-MD' means `put the output 3567 # in D'. 3568 mkdir conftest.dir 3569 # Copy depcomp to subdir because otherwise we won't find it if we're 3570 # using a relative directory. 3571 cp "$am_depcomp" conftest.dir 3572 cd conftest.dir 3573 # We will build objects and dependencies in a subdirectory because 3574 # it helps to detect inapplicable dependency modes. For instance 3575 # both Tru64's cc and ICC support -MD to output dependencies as a 3576 # side effect of compilation, but ICC will put the dependencies in 3577 # the current directory while Tru64 will put them in the object 3578 # directory. 3579 mkdir sub 3580 3581 am_cv_CC_dependencies_compiler_type=none 3582 if test "$am_compiler_list" = ""; then 3583 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3584 fi 3585 for depmode in $am_compiler_list; do 3586 # Setup a source with many dependencies, because some compilers 3587 # like to wrap large dependency lists on column 80 (with \), and 3588 # we should not choose a depcomp mode which is confused by this. 3589 # 3590 # We need to recreate these files for each test, as the compiler may 3591 # overwrite some of them when testing with obscure command lines. 3592 # This happens at least with the AIX C compiler. 3593 : > sub/conftest.c 3594 for i in 1 2 3 4 5 6; do 3595 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3596 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3597 # Solaris 8's {/usr,}/bin/sh. 3598 touch sub/conftst$i.h 3599 done 3600 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3601 3602 case $depmode in 3603 nosideeffect) 3604 # after this tag, mechanisms are not by side-effect, so they'll 3605 # only be used when explicitly requested 3606 if test "x$enable_dependency_tracking" = xyes; then 3607 continue 3608 else 3609 break 3610 fi 3611 ;; 3612 none) break ;; 3613 esac 3614 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3615 # mode. It turns out that the SunPro C++ compiler does not properly 3616 # handle `-M -o', and we need to detect this. 3617 if depmode=$depmode \ 3618 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3619 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3620 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3621 >/dev/null 2>conftest.err && 3622 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3623 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3624 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3625 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3626 # icc doesn't choke on unknown options, it will just issue warnings 3627 # or remarks (even with -Werror). So we grep stderr for any message 3628 # that says an option was ignored or not supported. 3629 # When given -MP, icc 7.0 and 7.1 complain thusly: 3630 # icc: Command line warning: ignoring option '-M'; no argument required 3631 # The diagnosis changed in icc 8.0: 3632 # icc: Command line remark: option '-MP' not supported 3633 if (grep 'ignoring option' conftest.err || 3634 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3635 am_cv_CC_dependencies_compiler_type=$depmode 3636 break 3637 fi 3638 fi 3639 done 3640 3641 cd .. 3642 rm -rf conftest.dir 3643else 3644 am_cv_CC_dependencies_compiler_type=none 3645fi 3646 3647fi 3648{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3649echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3650CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3651 3652 if 3653 test "x$enable_dependency_tracking" != xno \ 3654 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3655 am__fastdepCC_TRUE= 3656 am__fastdepCC_FALSE='#' 3657else 3658 am__fastdepCC_TRUE='#' 3659 am__fastdepCC_FALSE= 3660fi 3661 3662 3663 3664ac_ext=c 3665ac_cpp='$CPP $CPPFLAGS' 3666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3668ac_compiler_gnu=$ac_cv_c_compiler_gnu 3669{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3670echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3671# On Suns, sometimes $CPP names a directory. 3672if test -n "$CPP" && test -d "$CPP"; then 3673 CPP= 3674fi 3675if test -z "$CPP"; then 3676 if test "${ac_cv_prog_CPP+set}" = set; then 3677 echo $ECHO_N "(cached) $ECHO_C" >&6 3678else 3679 # Double quotes because CPP needs to be expanded 3680 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3681 do 3682 ac_preproc_ok=false 3683for ac_c_preproc_warn_flag in '' yes 3684do 3685 # Use a header file that comes with gcc, so configuring glibc 3686 # with a fresh cross-compiler works. 3687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3688 # <limits.h> exists even on freestanding compilers. 3689 # On the NeXT, cc -E runs the code through the compiler's parser, 3690 # not just through cpp. "Syntax error" is here to catch this case. 3691 cat >conftest.$ac_ext <<_ACEOF 3692/* confdefs.h. */ 3693_ACEOF 3694cat confdefs.h >>conftest.$ac_ext 3695cat >>conftest.$ac_ext <<_ACEOF 3696/* end confdefs.h. */ 3697#ifdef __STDC__ 3698# include <limits.h> 3699#else 3700# include <assert.h> 3701#endif 3702 Syntax error 3703_ACEOF 3704if { (ac_try="$ac_cpp conftest.$ac_ext" 3705case "(($ac_try" in 3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3707 *) ac_try_echo=$ac_try;; 3708esac 3709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3711 ac_status=$? 3712 grep -v '^ *+' conftest.er1 >conftest.err 3713 rm -f conftest.er1 3714 cat conftest.err >&5 3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3716 (exit $ac_status); } >/dev/null && { 3717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3718 test ! -s conftest.err 3719 }; then 3720 : 3721else 3722 echo "$as_me: failed program was:" >&5 3723sed 's/^/| /' conftest.$ac_ext >&5 3724 3725 # Broken: fails on valid input. 3726continue 3727fi 3728 3729rm -f conftest.err conftest.$ac_ext 3730 3731 # OK, works on sane cases. Now check whether nonexistent headers 3732 # can be detected and how. 3733 cat >conftest.$ac_ext <<_ACEOF 3734/* confdefs.h. */ 3735_ACEOF 3736cat confdefs.h >>conftest.$ac_ext 3737cat >>conftest.$ac_ext <<_ACEOF 3738/* end confdefs.h. */ 3739#include <ac_nonexistent.h> 3740_ACEOF 3741if { (ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 2>conftest.er1 3748 ac_status=$? 3749 grep -v '^ *+' conftest.er1 >conftest.err 3750 rm -f conftest.er1 3751 cat conftest.err >&5 3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3753 (exit $ac_status); } >/dev/null && { 3754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3755 test ! -s conftest.err 3756 }; then 3757 # Broken: success on invalid input. 3758continue 3759else 3760 echo "$as_me: failed program was:" >&5 3761sed 's/^/| /' conftest.$ac_ext >&5 3762 3763 # Passes both tests. 3764ac_preproc_ok=: 3765break 3766fi 3767 3768rm -f conftest.err conftest.$ac_ext 3769 3770done 3771# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3772rm -f conftest.err conftest.$ac_ext 3773if $ac_preproc_ok; then 3774 break 3775fi 3776 3777 done 3778 ac_cv_prog_CPP=$CPP 3779 3780fi 3781 CPP=$ac_cv_prog_CPP 3782else 3783 ac_cv_prog_CPP=$CPP 3784fi 3785{ echo "$as_me:$LINENO: result: $CPP" >&5 3786echo "${ECHO_T}$CPP" >&6; } 3787ac_preproc_ok=false 3788for ac_c_preproc_warn_flag in '' yes 3789do 3790 # Use a header file that comes with gcc, so configuring glibc 3791 # with a fresh cross-compiler works. 3792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3793 # <limits.h> exists even on freestanding compilers. 3794 # On the NeXT, cc -E runs the code through the compiler's parser, 3795 # not just through cpp. "Syntax error" is here to catch this case. 3796 cat >conftest.$ac_ext <<_ACEOF 3797/* confdefs.h. */ 3798_ACEOF 3799cat confdefs.h >>conftest.$ac_ext 3800cat >>conftest.$ac_ext <<_ACEOF 3801/* end confdefs.h. */ 3802#ifdef __STDC__ 3803# include <limits.h> 3804#else 3805# include <assert.h> 3806#endif 3807 Syntax error 3808_ACEOF 3809if { (ac_try="$ac_cpp conftest.$ac_ext" 3810case "(($ac_try" in 3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3812 *) ac_try_echo=$ac_try;; 3813esac 3814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3816 ac_status=$? 3817 grep -v '^ *+' conftest.er1 >conftest.err 3818 rm -f conftest.er1 3819 cat conftest.err >&5 3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3821 (exit $ac_status); } >/dev/null && { 3822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3823 test ! -s conftest.err 3824 }; then 3825 : 3826else 3827 echo "$as_me: failed program was:" >&5 3828sed 's/^/| /' conftest.$ac_ext >&5 3829 3830 # Broken: fails on valid input. 3831continue 3832fi 3833 3834rm -f conftest.err conftest.$ac_ext 3835 3836 # OK, works on sane cases. Now check whether nonexistent headers 3837 # can be detected and how. 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#include <ac_nonexistent.h> 3845_ACEOF 3846if { (ac_try="$ac_cpp conftest.$ac_ext" 3847case "(($ac_try" in 3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3849 *) ac_try_echo=$ac_try;; 3850esac 3851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3853 ac_status=$? 3854 grep -v '^ *+' conftest.er1 >conftest.err 3855 rm -f conftest.er1 3856 cat conftest.err >&5 3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3858 (exit $ac_status); } >/dev/null && { 3859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3860 test ! -s conftest.err 3861 }; then 3862 # Broken: success on invalid input. 3863continue 3864else 3865 echo "$as_me: failed program was:" >&5 3866sed 's/^/| /' conftest.$ac_ext >&5 3867 3868 # Passes both tests. 3869ac_preproc_ok=: 3870break 3871fi 3872 3873rm -f conftest.err conftest.$ac_ext 3874 3875done 3876# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3877rm -f conftest.err conftest.$ac_ext 3878if $ac_preproc_ok; then 3879 : 3880else 3881 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3882See \`config.log' for more details." >&5 3883echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3884See \`config.log' for more details." >&2;} 3885 { (exit 1); exit 1; }; } 3886fi 3887 3888ac_ext=c 3889ac_cpp='$CPP $CPPFLAGS' 3890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3892ac_compiler_gnu=$ac_cv_c_compiler_gnu 3893 3894 3895{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3896echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3897if test "${ac_cv_path_GREP+set}" = set; then 3898 echo $ECHO_N "(cached) $ECHO_C" >&6 3899else 3900 # Extract the first word of "grep ggrep" to use in msg output 3901if test -z "$GREP"; then 3902set dummy grep ggrep; ac_prog_name=$2 3903if test "${ac_cv_path_GREP+set}" = set; then 3904 echo $ECHO_N "(cached) $ECHO_C" >&6 3905else 3906 ac_path_GREP_found=false 3907# Loop through the user's path and test for each of PROGNAME-LIST 3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3909for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3910do 3911 IFS=$as_save_IFS 3912 test -z "$as_dir" && as_dir=. 3913 for ac_prog in grep ggrep; do 3914 for ac_exec_ext in '' $ac_executable_extensions; do 3915 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3916 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3917 # Check for GNU ac_path_GREP and select it if it is found. 3918 # Check for GNU $ac_path_GREP 3919case `"$ac_path_GREP" --version 2>&1` in 3920*GNU*) 3921 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3922*) 3923 ac_count=0 3924 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3925 while : 3926 do 3927 cat "conftest.in" "conftest.in" >"conftest.tmp" 3928 mv "conftest.tmp" "conftest.in" 3929 cp "conftest.in" "conftest.nl" 3930 echo 'GREP' >> "conftest.nl" 3931 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3933 ac_count=`expr $ac_count + 1` 3934 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3935 # Best one so far, save it but keep looking for a better one 3936 ac_cv_path_GREP="$ac_path_GREP" 3937 ac_path_GREP_max=$ac_count 3938 fi 3939 # 10*(2^10) chars as input seems more than enough 3940 test $ac_count -gt 10 && break 3941 done 3942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3943esac 3944 3945 3946 $ac_path_GREP_found && break 3 3947 done 3948done 3949 3950done 3951IFS=$as_save_IFS 3952 3953 3954fi 3955 3956GREP="$ac_cv_path_GREP" 3957if test -z "$GREP"; then 3958 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3959echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3960 { (exit 1); exit 1; }; } 3961fi 3962 3963else 3964 ac_cv_path_GREP=$GREP 3965fi 3966 3967 3968fi 3969{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3970echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3971 GREP="$ac_cv_path_GREP" 3972 3973 3974{ echo "$as_me:$LINENO: checking for egrep" >&5 3975echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3976if test "${ac_cv_path_EGREP+set}" = set; then 3977 echo $ECHO_N "(cached) $ECHO_C" >&6 3978else 3979 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3980 then ac_cv_path_EGREP="$GREP -E" 3981 else 3982 # Extract the first word of "egrep" to use in msg output 3983if test -z "$EGREP"; then 3984set dummy egrep; ac_prog_name=$2 3985if test "${ac_cv_path_EGREP+set}" = set; then 3986 echo $ECHO_N "(cached) $ECHO_C" >&6 3987else 3988 ac_path_EGREP_found=false 3989# Loop through the user's path and test for each of PROGNAME-LIST 3990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3991for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3992do 3993 IFS=$as_save_IFS 3994 test -z "$as_dir" && as_dir=. 3995 for ac_prog in egrep; do 3996 for ac_exec_ext in '' $ac_executable_extensions; do 3997 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3998 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3999 # Check for GNU ac_path_EGREP and select it if it is found. 4000 # Check for GNU $ac_path_EGREP 4001case `"$ac_path_EGREP" --version 2>&1` in 4002*GNU*) 4003 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4004*) 4005 ac_count=0 4006 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4007 while : 4008 do 4009 cat "conftest.in" "conftest.in" >"conftest.tmp" 4010 mv "conftest.tmp" "conftest.in" 4011 cp "conftest.in" "conftest.nl" 4012 echo 'EGREP' >> "conftest.nl" 4013 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4015 ac_count=`expr $ac_count + 1` 4016 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4017 # Best one so far, save it but keep looking for a better one 4018 ac_cv_path_EGREP="$ac_path_EGREP" 4019 ac_path_EGREP_max=$ac_count 4020 fi 4021 # 10*(2^10) chars as input seems more than enough 4022 test $ac_count -gt 10 && break 4023 done 4024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4025esac 4026 4027 4028 $ac_path_EGREP_found && break 3 4029 done 4030done 4031 4032done 4033IFS=$as_save_IFS 4034 4035 4036fi 4037 4038EGREP="$ac_cv_path_EGREP" 4039if test -z "$EGREP"; then 4040 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4041echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4042 { (exit 1); exit 1; }; } 4043fi 4044 4045else 4046 ac_cv_path_EGREP=$EGREP 4047fi 4048 4049 4050 fi 4051fi 4052{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4053echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4054 EGREP="$ac_cv_path_EGREP" 4055 4056 4057if test $ac_cv_c_compiler_gnu = yes; then 4058 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 4059echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } 4060if test "${ac_cv_prog_gcc_traditional+set}" = set; then 4061 echo $ECHO_N "(cached) $ECHO_C" >&6 4062else 4063 ac_pattern="Autoconf.*'x'" 4064 cat >conftest.$ac_ext <<_ACEOF 4065/* confdefs.h. */ 4066_ACEOF 4067cat confdefs.h >>conftest.$ac_ext 4068cat >>conftest.$ac_ext <<_ACEOF 4069/* end confdefs.h. */ 4070#include <sgtty.h> 4071Autoconf TIOCGETP 4072_ACEOF 4073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4074 $EGREP "$ac_pattern" >/dev/null 2>&1; then 4075 ac_cv_prog_gcc_traditional=yes 4076else 4077 ac_cv_prog_gcc_traditional=no 4078fi 4079rm -f conftest* 4080 4081 4082 if test $ac_cv_prog_gcc_traditional = no; then 4083 cat >conftest.$ac_ext <<_ACEOF 4084/* confdefs.h. */ 4085_ACEOF 4086cat confdefs.h >>conftest.$ac_ext 4087cat >>conftest.$ac_ext <<_ACEOF 4088/* end confdefs.h. */ 4089#include <termios.h> 4090Autoconf TCGETA 4091_ACEOF 4092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4093 $EGREP "$ac_pattern" >/dev/null 2>&1; then 4094 ac_cv_prog_gcc_traditional=yes 4095fi 4096rm -f conftest* 4097 4098 fi 4099fi 4100{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 4101echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } 4102 if test $ac_cv_prog_gcc_traditional = yes; then 4103 CC="$CC -traditional" 4104 fi 4105fi 4106 4107# By default we simply use the C compiler to build assembly code. 4108 4109test "${CCAS+set}" = set || CCAS=$CC 4110test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 4111 4112 4113 4114depcc="$CCAS" am_compiler_list= 4115 4116{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4117echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4118if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then 4119 echo $ECHO_N "(cached) $ECHO_C" >&6 4120else 4121 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4122 # We make a subdir and do the tests there. Otherwise we can end up 4123 # making bogus files that we don't know about and never remove. For 4124 # instance it was reported that on HP-UX the gcc test will end up 4125 # making a dummy file named `D' -- because `-MD' means `put the output 4126 # in D'. 4127 mkdir conftest.dir 4128 # Copy depcomp to subdir because otherwise we won't find it if we're 4129 # using a relative directory. 4130 cp "$am_depcomp" conftest.dir 4131 cd conftest.dir 4132 # We will build objects and dependencies in a subdirectory because 4133 # it helps to detect inapplicable dependency modes. For instance 4134 # both Tru64's cc and ICC support -MD to output dependencies as a 4135 # side effect of compilation, but ICC will put the dependencies in 4136 # the current directory while Tru64 will put them in the object 4137 # directory. 4138 mkdir sub 4139 4140 am_cv_CCAS_dependencies_compiler_type=none 4141 if test "$am_compiler_list" = ""; then 4142 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4143 fi 4144 for depmode in $am_compiler_list; do 4145 # Setup a source with many dependencies, because some compilers 4146 # like to wrap large dependency lists on column 80 (with \), and 4147 # we should not choose a depcomp mode which is confused by this. 4148 # 4149 # We need to recreate these files for each test, as the compiler may 4150 # overwrite some of them when testing with obscure command lines. 4151 # This happens at least with the AIX C compiler. 4152 : > sub/conftest.c 4153 for i in 1 2 3 4 5 6; do 4154 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4155 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4156 # Solaris 8's {/usr,}/bin/sh. 4157 touch sub/conftst$i.h 4158 done 4159 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4160 4161 case $depmode in 4162 nosideeffect) 4163 # after this tag, mechanisms are not by side-effect, so they'll 4164 # only be used when explicitly requested 4165 if test "x$enable_dependency_tracking" = xyes; then 4166 continue 4167 else 4168 break 4169 fi 4170 ;; 4171 none) break ;; 4172 esac 4173 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4174 # mode. It turns out that the SunPro C++ compiler does not properly 4175 # handle `-M -o', and we need to detect this. 4176 if depmode=$depmode \ 4177 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4178 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4179 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4180 >/dev/null 2>conftest.err && 4181 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4182 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4183 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4184 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4185 # icc doesn't choke on unknown options, it will just issue warnings 4186 # or remarks (even with -Werror). So we grep stderr for any message 4187 # that says an option was ignored or not supported. 4188 # When given -MP, icc 7.0 and 7.1 complain thusly: 4189 # icc: Command line warning: ignoring option '-M'; no argument required 4190 # The diagnosis changed in icc 8.0: 4191 # icc: Command line remark: option '-MP' not supported 4192 if (grep 'ignoring option' conftest.err || 4193 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4194 am_cv_CCAS_dependencies_compiler_type=$depmode 4195 break 4196 fi 4197 fi 4198 done 4199 4200 cd .. 4201 rm -rf conftest.dir 4202else 4203 am_cv_CCAS_dependencies_compiler_type=none 4204fi 4205 4206fi 4207{ echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5 4208echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; } 4209CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 4210 4211 if 4212 test "x$enable_dependency_tracking" != xno \ 4213 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 4214 am__fastdepCCAS_TRUE= 4215 am__fastdepCCAS_FALSE='#' 4216else 4217 am__fastdepCCAS_TRUE='#' 4218 am__fastdepCCAS_FALSE= 4219fi 4220 4221 4222 4223{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4224echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4225if test "${ac_cv_header_stdc+set}" = set; then 4226 echo $ECHO_N "(cached) $ECHO_C" >&6 4227else 4228 cat >conftest.$ac_ext <<_ACEOF 4229/* confdefs.h. */ 4230_ACEOF 4231cat confdefs.h >>conftest.$ac_ext 4232cat >>conftest.$ac_ext <<_ACEOF 4233/* end confdefs.h. */ 4234#include <stdlib.h> 4235#include <stdarg.h> 4236#include <string.h> 4237#include <float.h> 4238 4239int 4240main () 4241{ 4242 4243 ; 4244 return 0; 4245} 4246_ACEOF 4247rm -f conftest.$ac_objext 4248if { (ac_try="$ac_compile" 4249case "(($ac_try" in 4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4251 *) ac_try_echo=$ac_try;; 4252esac 4253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4254 (eval "$ac_compile") 2>conftest.er1 4255 ac_status=$? 4256 grep -v '^ *+' conftest.er1 >conftest.err 4257 rm -f conftest.er1 4258 cat conftest.err >&5 4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4260 (exit $ac_status); } && { 4261 test -z "$ac_c_werror_flag" || 4262 test ! -s conftest.err 4263 } && test -s conftest.$ac_objext; then 4264 ac_cv_header_stdc=yes 4265else 4266 echo "$as_me: failed program was:" >&5 4267sed 's/^/| /' conftest.$ac_ext >&5 4268 4269 ac_cv_header_stdc=no 4270fi 4271 4272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4273 4274if test $ac_cv_header_stdc = yes; then 4275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4276 cat >conftest.$ac_ext <<_ACEOF 4277/* confdefs.h. */ 4278_ACEOF 4279cat confdefs.h >>conftest.$ac_ext 4280cat >>conftest.$ac_ext <<_ACEOF 4281/* end confdefs.h. */ 4282#include <string.h> 4283 4284_ACEOF 4285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4286 $EGREP "memchr" >/dev/null 2>&1; then 4287 : 4288else 4289 ac_cv_header_stdc=no 4290fi 4291rm -f conftest* 4292 4293fi 4294 4295if test $ac_cv_header_stdc = yes; then 4296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4297 cat >conftest.$ac_ext <<_ACEOF 4298/* confdefs.h. */ 4299_ACEOF 4300cat confdefs.h >>conftest.$ac_ext 4301cat >>conftest.$ac_ext <<_ACEOF 4302/* end confdefs.h. */ 4303#include <stdlib.h> 4304 4305_ACEOF 4306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4307 $EGREP "free" >/dev/null 2>&1; then 4308 : 4309else 4310 ac_cv_header_stdc=no 4311fi 4312rm -f conftest* 4313 4314fi 4315 4316if test $ac_cv_header_stdc = yes; then 4317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4318 if test "$cross_compiling" = yes; then 4319 : 4320else 4321 cat >conftest.$ac_ext <<_ACEOF 4322/* confdefs.h. */ 4323_ACEOF 4324cat confdefs.h >>conftest.$ac_ext 4325cat >>conftest.$ac_ext <<_ACEOF 4326/* end confdefs.h. */ 4327#include <ctype.h> 4328#include <stdlib.h> 4329#if ((' ' & 0x0FF) == 0x020) 4330# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4331# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4332#else 4333# define ISLOWER(c) \ 4334 (('a' <= (c) && (c) <= 'i') \ 4335 || ('j' <= (c) && (c) <= 'r') \ 4336 || ('s' <= (c) && (c) <= 'z')) 4337# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4338#endif 4339 4340#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4341int 4342main () 4343{ 4344 int i; 4345 for (i = 0; i < 256; i++) 4346 if (XOR (islower (i), ISLOWER (i)) 4347 || toupper (i) != TOUPPER (i)) 4348 return 2; 4349 return 0; 4350} 4351_ACEOF 4352rm -f conftest$ac_exeext 4353if { (ac_try="$ac_link" 4354case "(($ac_try" in 4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4356 *) ac_try_echo=$ac_try;; 4357esac 4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4359 (eval "$ac_link") 2>&5 4360 ac_status=$? 4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4363 { (case "(($ac_try" in 4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4365 *) ac_try_echo=$ac_try;; 4366esac 4367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4368 (eval "$ac_try") 2>&5 4369 ac_status=$? 4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4371 (exit $ac_status); }; }; then 4372 : 4373else 4374 echo "$as_me: program exited with status $ac_status" >&5 4375echo "$as_me: failed program was:" >&5 4376sed 's/^/| /' conftest.$ac_ext >&5 4377 4378( exit $ac_status ) 4379ac_cv_header_stdc=no 4380fi 4381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4382fi 4383 4384 4385fi 4386fi 4387{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4388echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4389if test $ac_cv_header_stdc = yes; then 4390 4391cat >>confdefs.h <<\_ACEOF 4392#define STDC_HEADERS 1 4393_ACEOF 4394 4395fi 4396 4397# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4408 inttypes.h stdint.h unistd.h 4409do 4410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4411{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4414 echo $ECHO_N "(cached) $ECHO_C" >&6 4415else 4416 cat >conftest.$ac_ext <<_ACEOF 4417/* confdefs.h. */ 4418_ACEOF 4419cat confdefs.h >>conftest.$ac_ext 4420cat >>conftest.$ac_ext <<_ACEOF 4421/* end confdefs.h. */ 4422$ac_includes_default 4423 4424#include <$ac_header> 4425_ACEOF 4426rm -f conftest.$ac_objext 4427if { (ac_try="$ac_compile" 4428case "(($ac_try" in 4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4430 *) ac_try_echo=$ac_try;; 4431esac 4432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4433 (eval "$ac_compile") 2>conftest.er1 4434 ac_status=$? 4435 grep -v '^ *+' conftest.er1 >conftest.err 4436 rm -f conftest.er1 4437 cat conftest.err >&5 4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4439 (exit $ac_status); } && { 4440 test -z "$ac_c_werror_flag" || 4441 test ! -s conftest.err 4442 } && test -s conftest.$ac_objext; then 4443 eval "$as_ac_Header=yes" 4444else 4445 echo "$as_me: failed program was:" >&5 4446sed 's/^/| /' conftest.$ac_ext >&5 4447 4448 eval "$as_ac_Header=no" 4449fi 4450 4451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4452fi 4453ac_res=`eval echo '${'$as_ac_Header'}'` 4454 { echo "$as_me:$LINENO: result: $ac_res" >&5 4455echo "${ECHO_T}$ac_res" >&6; } 4456if test `eval echo '${'$as_ac_Header'}'` = yes; then 4457 cat >>confdefs.h <<_ACEOF 4458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4459_ACEOF 4460 4461fi 4462 4463done 4464 4465 4466 4467 4468 4469 4470for ac_header in sys/time.h time.h sys/timeb.h io.h 4471do 4472as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4474 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4477 echo $ECHO_N "(cached) $ECHO_C" >&6 4478fi 4479ac_res=`eval echo '${'$as_ac_Header'}'` 4480 { echo "$as_me:$LINENO: result: $ac_res" >&5 4481echo "${ECHO_T}$ac_res" >&6; } 4482else 4483 # Is the header compilable? 4484{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4485echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4486cat >conftest.$ac_ext <<_ACEOF 4487/* confdefs.h. */ 4488_ACEOF 4489cat confdefs.h >>conftest.$ac_ext 4490cat >>conftest.$ac_ext <<_ACEOF 4491/* end confdefs.h. */ 4492$ac_includes_default 4493#include <$ac_header> 4494_ACEOF 4495rm -f conftest.$ac_objext 4496if { (ac_try="$ac_compile" 4497case "(($ac_try" in 4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4499 *) ac_try_echo=$ac_try;; 4500esac 4501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4502 (eval "$ac_compile") 2>conftest.er1 4503 ac_status=$? 4504 grep -v '^ *+' conftest.er1 >conftest.err 4505 rm -f conftest.er1 4506 cat conftest.err >&5 4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4508 (exit $ac_status); } && { 4509 test -z "$ac_c_werror_flag" || 4510 test ! -s conftest.err 4511 } && test -s conftest.$ac_objext; then 4512 ac_header_compiler=yes 4513else 4514 echo "$as_me: failed program was:" >&5 4515sed 's/^/| /' conftest.$ac_ext >&5 4516 4517 ac_header_compiler=no 4518fi 4519 4520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4521{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4522echo "${ECHO_T}$ac_header_compiler" >&6; } 4523 4524# Is the header present? 4525{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 4526echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4527cat >conftest.$ac_ext <<_ACEOF 4528/* confdefs.h. */ 4529_ACEOF 4530cat confdefs.h >>conftest.$ac_ext 4531cat >>conftest.$ac_ext <<_ACEOF 4532/* end confdefs.h. */ 4533#include <$ac_header> 4534_ACEOF 4535if { (ac_try="$ac_cpp conftest.$ac_ext" 4536case "(($ac_try" in 4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4538 *) ac_try_echo=$ac_try;; 4539esac 4540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4542 ac_status=$? 4543 grep -v '^ *+' conftest.er1 >conftest.err 4544 rm -f conftest.er1 4545 cat conftest.err >&5 4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4547 (exit $ac_status); } >/dev/null && { 4548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4549 test ! -s conftest.err 4550 }; then 4551 ac_header_preproc=yes 4552else 4553 echo "$as_me: failed program was:" >&5 4554sed 's/^/| /' conftest.$ac_ext >&5 4555 4556 ac_header_preproc=no 4557fi 4558 4559rm -f conftest.err conftest.$ac_ext 4560{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4561echo "${ECHO_T}$ac_header_preproc" >&6; } 4562 4563# So? What about this header? 4564case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4565 yes:no: ) 4566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4567echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4569echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4570 ac_header_preproc=yes 4571 ;; 4572 no:yes:* ) 4573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4574echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4576echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4578echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4580echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4582echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4584echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4585 4586 ;; 4587esac 4588{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4591 echo $ECHO_N "(cached) $ECHO_C" >&6 4592else 4593 eval "$as_ac_Header=\$ac_header_preproc" 4594fi 4595ac_res=`eval echo '${'$as_ac_Header'}'` 4596 { echo "$as_me:$LINENO: result: $ac_res" >&5 4597echo "${ECHO_T}$ac_res" >&6; } 4598 4599fi 4600if test `eval echo '${'$as_ac_Header'}'` = yes; then 4601 cat >>confdefs.h <<_ACEOF 4602#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4603_ACEOF 4604 4605fi 4606 4607done 4608 4609 4610 4611 4612if test x"$CC" = x"checkergcc"; then 4613 enable_sdl=no 4614elif test x"$GCC" = x"yes"; then 4615 4616 4617 TRY_CFLAGS="$OPT_CFLAGS -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare" 4618 { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5 4619echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; } 4620 SAVE_CFLAGS="$CFLAGS" 4621 CFLAGS="$TRY_CFLAGS $CFLAGS" 4622 cat >conftest.$ac_ext <<_ACEOF 4623/* confdefs.h. */ 4624_ACEOF 4625cat confdefs.h >>conftest.$ac_ext 4626cat >>conftest.$ac_ext <<_ACEOF 4627/* end confdefs.h. */ 4628 4629int 4630main () 4631{ 4632 4633 ; 4634 return 0; 4635} 4636_ACEOF 4637rm -f conftest.$ac_objext 4638if { (ac_try="$ac_compile" 4639case "(($ac_try" in 4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4641 *) ac_try_echo=$ac_try;; 4642esac 4643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4644 (eval "$ac_compile") 2>conftest.er1 4645 ac_status=$? 4646 grep -v '^ *+' conftest.er1 >conftest.err 4647 rm -f conftest.er1 4648 cat conftest.err >&5 4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4650 (exit $ac_status); } && { 4651 test -z "$ac_c_werror_flag" || 4652 test ! -s conftest.err 4653 } && test -s conftest.$ac_objext; then 4654 ac_cv_try_cflags_ok=yes 4655else 4656 echo "$as_me: failed program was:" >&5 4657sed 's/^/| /' conftest.$ac_ext >&5 4658 4659 ac_cv_try_cflags_ok=no 4660fi 4661 4662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4663 CFLAGS="$SAVE_CFLAGS" 4664 { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 4665echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; } 4666 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 4667 OPT_CFLAGS="$TRY_CFLAGS" 4668 else 4669 : 4670 fi 4671 4672 4673 TRY_CFLAGS=`echo "$OPT_CFLAGS $CFLAGS"|sed "s/-O[0-9]*//g"` 4674 4675 TRY_CFLAGS="$TRY_CFLAGS" 4676 { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS flags" >&5 4677echo $ECHO_N "checking if $CC supports $TRY_CFLAGS flags... $ECHO_C" >&6; } 4678 SAVE_CFLAGS="$CFLAGS" 4679 CFLAGS="$TRY_CFLAGS" 4680 cat >conftest.$ac_ext <<_ACEOF 4681/* confdefs.h. */ 4682_ACEOF 4683cat confdefs.h >>conftest.$ac_ext 4684cat >>conftest.$ac_ext <<_ACEOF 4685/* end confdefs.h. */ 4686 4687int 4688main () 4689{ 4690 4691 ; 4692 return 0; 4693} 4694_ACEOF 4695rm -f conftest.$ac_objext 4696if { (ac_try="$ac_compile" 4697case "(($ac_try" in 4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4699 *) ac_try_echo=$ac_try;; 4700esac 4701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4702 (eval "$ac_compile") 2>conftest.er1 4703 ac_status=$? 4704 grep -v '^ *+' conftest.er1 >conftest.err 4705 rm -f conftest.er1 4706 cat conftest.err >&5 4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4708 (exit $ac_status); } && { 4709 test -z "$ac_c_werror_flag" || 4710 test ! -s conftest.err 4711 } && test -s conftest.$ac_objext; then 4712 ac_cv_try_cflags_ok=yes 4713else 4714 echo "$as_me: failed program was:" >&5 4715sed 's/^/| /' conftest.$ac_ext >&5 4716 4717 ac_cv_try_cflags_ok=no 4718fi 4719 4720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4721 CFLAGS="$SAVE_CFLAGS" 4722 { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 4723echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; } 4724 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 4725 OPT_CFLAGS="$TRY_CFLAGS" 4726 else 4727 : 4728 fi 4729 4730 # Check whether --enable-debug was given. 4731if test "${enable_debug+set}" = set; then 4732 enableval=$enable_debug; 4733fi 4734 4735 if test x"$enable_debug" = x"yes"; then 4736 4737cat >>confdefs.h <<\_ACEOF 4738#define DEBUG 4739_ACEOF 4740 4741 else 4742 TRY_CFLAGS="$OPT_CFLAGS -fomit-frame-pointer" 4743 { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5 4744echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; } 4745 SAVE_CFLAGS="$CFLAGS" 4746 CFLAGS="$TRY_CFLAGS $CFLAGS" 4747 cat >conftest.$ac_ext <<_ACEOF 4748/* confdefs.h. */ 4749_ACEOF 4750cat confdefs.h >>conftest.$ac_ext 4751cat >>conftest.$ac_ext <<_ACEOF 4752/* end confdefs.h. */ 4753 4754int 4755main () 4756{ 4757 4758 ; 4759 return 0; 4760} 4761_ACEOF 4762rm -f conftest.$ac_objext 4763if { (ac_try="$ac_compile" 4764case "(($ac_try" in 4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4766 *) ac_try_echo=$ac_try;; 4767esac 4768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4769 (eval "$ac_compile") 2>conftest.er1 4770 ac_status=$? 4771 grep -v '^ *+' conftest.er1 >conftest.err 4772 rm -f conftest.er1 4773 cat conftest.err >&5 4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4775 (exit $ac_status); } && { 4776 test -z "$ac_c_werror_flag" || 4777 test ! -s conftest.err 4778 } && test -s conftest.$ac_objext; then 4779 ac_cv_try_cflags_ok=yes 4780else 4781 echo "$as_me: failed program was:" >&5 4782sed 's/^/| /' conftest.$ac_ext >&5 4783 4784 ac_cv_try_cflags_ok=no 4785fi 4786 4787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4788 CFLAGS="$SAVE_CFLAGS" 4789 { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 4790echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; } 4791 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 4792 OPT_CFLAGS="$TRY_CFLAGS" 4793 else 4794 : 4795 fi 4796 fi 4797 4798 TRY_CFLAGS="$OPT_CFLAGS -fno-common" 4799 { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5 4800echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; } 4801 SAVE_CFLAGS="$CFLAGS" 4802 CFLAGS="$TRY_CFLAGS $CFLAGS" 4803 cat >conftest.$ac_ext <<_ACEOF 4804/* confdefs.h. */ 4805_ACEOF 4806cat confdefs.h >>conftest.$ac_ext 4807cat >>conftest.$ac_ext <<_ACEOF 4808/* end confdefs.h. */ 4809 4810int 4811main () 4812{ 4813 4814 ; 4815 return 0; 4816} 4817_ACEOF 4818rm -f conftest.$ac_objext 4819if { (ac_try="$ac_compile" 4820case "(($ac_try" in 4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4822 *) ac_try_echo=$ac_try;; 4823esac 4824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4825 (eval "$ac_compile") 2>conftest.er1 4826 ac_status=$? 4827 grep -v '^ *+' conftest.er1 >conftest.err 4828 rm -f conftest.er1 4829 cat conftest.err >&5 4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4831 (exit $ac_status); } && { 4832 test -z "$ac_c_werror_flag" || 4833 test ! -s conftest.err 4834 } && test -s conftest.$ac_objext; then 4835 ac_cv_try_cflags_ok=yes 4836else 4837 echo "$as_me: failed program was:" >&5 4838sed 's/^/| /' conftest.$ac_ext >&5 4839 4840 ac_cv_try_cflags_ok=no 4841fi 4842 4843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4844 CFLAGS="$SAVE_CFLAGS" 4845 { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 4846echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; } 4847 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 4848 OPT_CFLAGS="$TRY_CFLAGS" 4849 else 4850 : 4851 fi 4852 4853 arm_conditional=false 4854 case "$host" in 4855 i?86-* | k?-* | x86_64-* | amd64-*) 4856 4857cat >>confdefs.h <<\_ACEOF 4858#define ARCH_X86 4859_ACEOF 4860 4861 case "$host" in 4862 i386-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i386";; 4863 i486-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i486";; 4864 i586-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentium";; 4865 i686-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentiumpro";; 4866 k6-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=k6";; 4867 esac 4868 { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5 4869echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; } 4870 SAVE_CFLAGS="$CFLAGS" 4871 CFLAGS="$TRY_CFLAGS $CFLAGS" 4872 cat >conftest.$ac_ext <<_ACEOF 4873/* confdefs.h. */ 4874_ACEOF 4875cat confdefs.h >>conftest.$ac_ext 4876cat >>conftest.$ac_ext <<_ACEOF 4877/* end confdefs.h. */ 4878 4879int 4880main () 4881{ 4882 4883 ; 4884 return 0; 4885} 4886_ACEOF 4887rm -f conftest.$ac_objext 4888if { (ac_try="$ac_compile" 4889case "(($ac_try" in 4890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4891 *) ac_try_echo=$ac_try;; 4892esac 4893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4894 (eval "$ac_compile") 2>conftest.er1 4895 ac_status=$? 4896 grep -v '^ *+' conftest.er1 >conftest.err 4897 rm -f conftest.er1 4898 cat conftest.err >&5 4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4900 (exit $ac_status); } && { 4901 test -z "$ac_c_werror_flag" || 4902 test ! -s conftest.err 4903 } && test -s conftest.$ac_objext; then 4904 ac_cv_try_cflags_ok=yes 4905else 4906 echo "$as_me: failed program was:" >&5 4907sed 's/^/| /' conftest.$ac_ext >&5 4908 4909 ac_cv_try_cflags_ok=no 4910fi 4911 4912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4913 CFLAGS="$SAVE_CFLAGS" 4914 { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 4915echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; } 4916 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 4917 OPT_CFLAGS="$TRY_CFLAGS" 4918 else 4919 : 4920 fi;; 4921 ppc-* | powerpc-*) 4922 have_altivec=no 4923 for TRY_CFLAGS in "-mpim-altivec -force_cpusubtype_ALL" -faltivec -maltivec -fvec; do 4924 { echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS $TRY_CFLAGS $CFLAGS flags" >&5 4925echo $ECHO_N "checking if $CC supports $OPT_CFLAGS $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; } 4926 SAVE_CFLAGS="$CFLAGS" 4927 CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS" 4928 cat >conftest.$ac_ext <<_ACEOF 4929/* confdefs.h. */ 4930_ACEOF 4931cat confdefs.h >>conftest.$ac_ext 4932cat >>conftest.$ac_ext <<_ACEOF 4933/* end confdefs.h. */ 4934 4935int 4936main () 4937{ 4938 4939 ; 4940 return 0; 4941} 4942_ACEOF 4943rm -f conftest.$ac_objext 4944if { (ac_try="$ac_compile" 4945case "(($ac_try" in 4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4947 *) ac_try_echo=$ac_try;; 4948esac 4949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4950 (eval "$ac_compile") 2>conftest.er1 4951 ac_status=$? 4952 grep -v '^ *+' conftest.er1 >conftest.err 4953 rm -f conftest.er1 4954 cat conftest.err >&5 4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4956 (exit $ac_status); } && { 4957 test -z "$ac_c_werror_flag" || 4958 test ! -s conftest.err 4959 } && test -s conftest.$ac_objext; then 4960 ac_cv_try_cflags_ok=yes 4961else 4962 echo "$as_me: failed program was:" >&5 4963sed 's/^/| /' conftest.$ac_ext >&5 4964 4965 ac_cv_try_cflags_ok=no 4966fi 4967 4968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4969 CFLAGS="$SAVE_CFLAGS" 4970 { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 4971echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; } 4972 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 4973 save_CFLAGS="$CFLAGS" 4974 CFLAGS="$OPT_CFLAGS $TRY_CFLAGS $CFLAGS" 4975 { echo "$as_me:$LINENO: checking if <altivec.h> is needed" >&5 4976echo $ECHO_N "checking if <altivec.h> is needed... $ECHO_C" >&6; } 4977 cat >conftest.$ac_ext <<_ACEOF 4978/* confdefs.h. */ 4979_ACEOF 4980cat confdefs.h >>conftest.$ac_ext 4981cat >>conftest.$ac_ext <<_ACEOF 4982/* end confdefs.h. */ 4983 4984int 4985main () 4986{ 4987typedef vector int t; 4988 vec_ld(0, (unsigned char *)0); 4989 ; 4990 return 0; 4991} 4992_ACEOF 4993rm -f conftest.$ac_objext 4994if { (ac_try="$ac_compile" 4995case "(($ac_try" in 4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4997 *) ac_try_echo=$ac_try;; 4998esac 4999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5000 (eval "$ac_compile") 2>conftest.er1 5001 ac_status=$? 5002 grep -v '^ *+' conftest.er1 >conftest.err 5003 rm -f conftest.er1 5004 cat conftest.err >&5 5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5006 (exit $ac_status); } && { 5007 test -z "$ac_c_werror_flag" || 5008 test ! -s conftest.err 5009 } && test -s conftest.$ac_objext; then 5010 have_altivec=yes; { echo "$as_me:$LINENO: result: no" >&5 5011echo "${ECHO_T}no" >&6; } 5012else 5013 echo "$as_me: failed program was:" >&5 5014sed 's/^/| /' conftest.$ac_ext >&5 5015 5016 cat >conftest.$ac_ext <<_ACEOF 5017/* confdefs.h. */ 5018_ACEOF 5019cat confdefs.h >>conftest.$ac_ext 5020cat >>conftest.$ac_ext <<_ACEOF 5021/* end confdefs.h. */ 5022#include <altivec.h> 5023int 5024main () 5025{ 5026typedef vector int t; vec_ld(0, (unsigned char *)0); 5027 ; 5028 return 0; 5029} 5030_ACEOF 5031rm -f conftest.$ac_objext 5032if { (ac_try="$ac_compile" 5033case "(($ac_try" in 5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5035 *) ac_try_echo=$ac_try;; 5036esac 5037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5038 (eval "$ac_compile") 2>conftest.er1 5039 ac_status=$? 5040 grep -v '^ *+' conftest.er1 >conftest.err 5041 rm -f conftest.er1 5042 cat conftest.err >&5 5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5044 (exit $ac_status); } && { 5045 test -z "$ac_c_werror_flag" || 5046 test ! -s conftest.err 5047 } && test -s conftest.$ac_objext; then 5048 5049cat >>confdefs.h <<\_ACEOF 5050#define HAVE_ALTIVEC_H 5051_ACEOF 5052 5053 have_altivec=yes; { echo "$as_me:$LINENO: result: yes" >&5 5054echo "${ECHO_T}yes" >&6; } 5055else 5056 echo "$as_me: failed program was:" >&5 5057sed 's/^/| /' conftest.$ac_ext >&5 5058 5059 { echo "$as_me:$LINENO: result: unsupported" >&5 5060echo "${ECHO_T}unsupported" >&6; } 5061fi 5062 5063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5064fi 5065 5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5067 CFLAGS="$save_CFLAGS" 5068 else 5069 : 5070 fi 5071 if test "$have_altivec" = "yes"; then 5072 ARCH_OPT_CFLAGS="$TRY_CFLAGS" 5073 5074cat >>confdefs.h <<\_ACEOF 5075#define ARCH_PPC 5076_ACEOF 5077 5078 break 5079 fi 5080 done;; 5081 sparc-* | sparc64-*) 5082 5083cat >>confdefs.h <<\_ACEOF 5084#define ARCH_SPARC 5085_ACEOF 5086 5087 TRY_CFLAGS="$OPT_CFLAGS -mcpu=ultrasparc -mvis" 5088 { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5 5089echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; } 5090 SAVE_CFLAGS="$CFLAGS" 5091 CFLAGS="$TRY_CFLAGS $CFLAGS" 5092 cat >conftest.$ac_ext <<_ACEOF 5093/* confdefs.h. */ 5094_ACEOF 5095cat confdefs.h >>conftest.$ac_ext 5096cat >>conftest.$ac_ext <<_ACEOF 5097/* end confdefs.h. */ 5098 5099int 5100main () 5101{ 5102 5103 ; 5104 return 0; 5105} 5106_ACEOF 5107rm -f conftest.$ac_objext 5108if { (ac_try="$ac_compile" 5109case "(($ac_try" in 5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5111 *) ac_try_echo=$ac_try;; 5112esac 5113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5114 (eval "$ac_compile") 2>conftest.er1 5115 ac_status=$? 5116 grep -v '^ *+' conftest.er1 >conftest.err 5117 rm -f conftest.er1 5118 cat conftest.err >&5 5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5120 (exit $ac_status); } && { 5121 test -z "$ac_c_werror_flag" || 5122 test ! -s conftest.err 5123 } && test -s conftest.$ac_objext; then 5124 ac_cv_try_cflags_ok=yes 5125else 5126 echo "$as_me: failed program was:" >&5 5127sed 's/^/| /' conftest.$ac_ext >&5 5128 5129 ac_cv_try_cflags_ok=no 5130fi 5131 5132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5133 CFLAGS="$SAVE_CFLAGS" 5134 { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 5135echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; } 5136 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 5137 OPT_CFLAGS="$TRY_CFLAGS" 5138 else 5139 : 5140 fi;; 5141 alpha*) 5142 5143cat >>confdefs.h <<\_ACEOF 5144#define ARCH_ALPHA 5145_ACEOF 5146;; 5147 arm*) 5148 arm_conditional=: 5149 5150cat >>confdefs.h <<\_ACEOF 5151#define ARCH_ARM 5152_ACEOF 5153;; 5154 esac 5155elif test x"$CC" = x"tendracc"; then 5156 TENDRA=yes 5157 OPT_CFLAGS="-Xp -Yansi -f`pwd`/include/tendra.h -DELIDE_CODE" 5158 no_x=yes 5159 enable_sdl=no 5160elif test x"$CC" = x"icc" -a x"`$CC -V 2>&1 | grep Intel`" != x""; then 5161 OPT_CFLAGS="-g -unroll -ip" 5162else 5163 case "$host" in 5164 sparc-sun-solaris*) 5165 TRY_CFLAGS="$OPT_CFLAGS -xCC -fast -xO5" 5166 { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5 5167echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; } 5168 SAVE_CFLAGS="$CFLAGS" 5169 CFLAGS="$TRY_CFLAGS $CFLAGS" 5170 cat >conftest.$ac_ext <<_ACEOF 5171/* confdefs.h. */ 5172_ACEOF 5173cat confdefs.h >>conftest.$ac_ext 5174cat >>conftest.$ac_ext <<_ACEOF 5175/* end confdefs.h. */ 5176 5177int 5178main () 5179{ 5180 5181 ; 5182 return 0; 5183} 5184_ACEOF 5185rm -f conftest.$ac_objext 5186if { (ac_try="$ac_compile" 5187case "(($ac_try" in 5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5189 *) ac_try_echo=$ac_try;; 5190esac 5191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5192 (eval "$ac_compile") 2>conftest.er1 5193 ac_status=$? 5194 grep -v '^ *+' conftest.er1 >conftest.err 5195 rm -f conftest.er1 5196 cat conftest.err >&5 5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5198 (exit $ac_status); } && { 5199 test -z "$ac_c_werror_flag" || 5200 test ! -s conftest.err 5201 } && test -s conftest.$ac_objext; then 5202 ac_cv_try_cflags_ok=yes 5203else 5204 echo "$as_me: failed program was:" >&5 5205sed 's/^/| /' conftest.$ac_ext >&5 5206 5207 ac_cv_try_cflags_ok=no 5208fi 5209 5210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5211 CFLAGS="$SAVE_CFLAGS" 5212 { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 5213echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; } 5214 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 5215 OPT_CFLAGS="$TRY_CFLAGS" 5216 else 5217 : 5218 fi;; 5219 esac 5220fi 5221 5222 if ${arm_conditional}; then 5223 ARCH_ARM_TRUE= 5224 ARCH_ARM_FALSE='#' 5225else 5226 ARCH_ARM_TRUE='#' 5227 ARCH_ARM_FALSE= 5228fi 5229 5230 5231 5232 5233# Check whether --enable-shared was given. 5234if test "${enable_shared+set}" = set; then 5235 enableval=$enable_shared; p=${PACKAGE-default} 5236 case $enableval in 5237 yes) enable_shared=yes ;; 5238 no) enable_shared=no ;; 5239 *) 5240 enable_shared=no 5241 # Look at the argument we got. We use all the common list separators. 5242 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5243 for pkg in $enableval; do 5244 IFS="$lt_save_ifs" 5245 if test "X$pkg" = "X$p"; then 5246 enable_shared=yes 5247 fi 5248 done 5249 IFS="$lt_save_ifs" 5250 ;; 5251 esac 5252else 5253 enable_shared=yes 5254fi 5255 5256 5257# Check whether --enable-static was given. 5258if test "${enable_static+set}" = set; then 5259 enableval=$enable_static; p=${PACKAGE-default} 5260 case $enableval in 5261 yes) enable_static=yes ;; 5262 no) enable_static=no ;; 5263 *) 5264 enable_static=no 5265 # Look at the argument we got. We use all the common list separators. 5266 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5267 for pkg in $enableval; do 5268 IFS="$lt_save_ifs" 5269 if test "X$pkg" = "X$p"; then 5270 enable_static=yes 5271 fi 5272 done 5273 IFS="$lt_save_ifs" 5274 ;; 5275 esac 5276else 5277 enable_static=yes 5278fi 5279 5280 5281# Check whether --enable-fast-install was given. 5282if test "${enable_fast_install+set}" = set; then 5283 enableval=$enable_fast_install; p=${PACKAGE-default} 5284 case $enableval in 5285 yes) enable_fast_install=yes ;; 5286 no) enable_fast_install=no ;; 5287 *) 5288 enable_fast_install=no 5289 # Look at the argument we got. We use all the common list separators. 5290 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5291 for pkg in $enableval; do 5292 IFS="$lt_save_ifs" 5293 if test "X$pkg" = "X$p"; then 5294 enable_fast_install=yes 5295 fi 5296 done 5297 IFS="$lt_save_ifs" 5298 ;; 5299 esac 5300else 5301 enable_fast_install=yes 5302fi 5303 5304 5305{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5306echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 5307if test "${lt_cv_path_SED+set}" = set; then 5308 echo $ECHO_N "(cached) $ECHO_C" >&6 5309else 5310 # Loop through the user's path and test for sed and gsed. 5311# Then use that list of sed's as ones to test for truncation. 5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5313for as_dir in $PATH 5314do 5315 IFS=$as_save_IFS 5316 test -z "$as_dir" && as_dir=. 5317 for lt_ac_prog in sed gsed; do 5318 for ac_exec_ext in '' $ac_executable_extensions; do 5319 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 5320 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5321 fi 5322 done 5323 done 5324done 5325IFS=$as_save_IFS 5326lt_ac_max=0 5327lt_ac_count=0 5328# Add /usr/xpg4/bin/sed as it is typically found on Solaris 5329# along with /bin/sed that truncates output. 5330for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5331 test ! -f $lt_ac_sed && continue 5332 cat /dev/null > conftest.in 5333 lt_ac_count=0 5334 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5335 # Check for GNU sed and select it if it is found. 5336 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5337 lt_cv_path_SED=$lt_ac_sed 5338 break 5339 fi 5340 while true; do 5341 cat conftest.in conftest.in >conftest.tmp 5342 mv conftest.tmp conftest.in 5343 cp conftest.in conftest.nl 5344 echo >>conftest.nl 5345 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5346 cmp -s conftest.out conftest.nl || break 5347 # 10000 chars as input seems more than enough 5348 test $lt_ac_count -gt 10 && break 5349 lt_ac_count=`expr $lt_ac_count + 1` 5350 if test $lt_ac_count -gt $lt_ac_max; then 5351 lt_ac_max=$lt_ac_count 5352 lt_cv_path_SED=$lt_ac_sed 5353 fi 5354 done 5355done 5356 5357fi 5358 5359SED=$lt_cv_path_SED 5360 5361{ echo "$as_me:$LINENO: result: $SED" >&5 5362echo "${ECHO_T}$SED" >&6; } 5363 5364 5365# Check whether --with-gnu-ld was given. 5366if test "${with_gnu_ld+set}" = set; then 5367 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5368else 5369 with_gnu_ld=no 5370fi 5371 5372ac_prog=ld 5373if test "$GCC" = yes; then 5374 # Check if gcc -print-prog-name=ld gives a path. 5375 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5376echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 5377 case $host in 5378 *-*-mingw*) 5379 # gcc leaves a trailing carriage return which upsets mingw 5380 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5381 *) 5382 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5383 esac 5384 case $ac_prog in 5385 # Accept absolute paths. 5386 [\\/]* | ?:[\\/]*) 5387 re_direlt='/[^/][^/]*/\.\./' 5388 # Canonicalize the pathname of ld 5389 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5390 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5391 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5392 done 5393 test -z "$LD" && LD="$ac_prog" 5394 ;; 5395 "") 5396 # If it fails, then pretend we aren't using GCC. 5397 ac_prog=ld 5398 ;; 5399 *) 5400 # If it is relative, then search for the first ld in PATH. 5401 with_gnu_ld=unknown 5402 ;; 5403 esac 5404elif test "$with_gnu_ld" = yes; then 5405 { echo "$as_me:$LINENO: checking for GNU ld" >&5 5406echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 5407else 5408 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5409echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 5410fi 5411if test "${lt_cv_path_LD+set}" = set; then 5412 echo $ECHO_N "(cached) $ECHO_C" >&6 5413else 5414 if test -z "$LD"; then 5415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5416 for ac_dir in $PATH; do 5417 IFS="$lt_save_ifs" 5418 test -z "$ac_dir" && ac_dir=. 5419 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5420 lt_cv_path_LD="$ac_dir/$ac_prog" 5421 # Check to see if the program is GNU ld. I'd rather use --version, 5422 # but apparently some variants of GNU ld only accept -v. 5423 # Break only if it was the GNU/non-GNU ld that we prefer. 5424 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5425 *GNU* | *'with BFD'*) 5426 test "$with_gnu_ld" != no && break 5427 ;; 5428 *) 5429 test "$with_gnu_ld" != yes && break 5430 ;; 5431 esac 5432 fi 5433 done 5434 IFS="$lt_save_ifs" 5435else 5436 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5437fi 5438fi 5439 5440LD="$lt_cv_path_LD" 5441if test -n "$LD"; then 5442 { echo "$as_me:$LINENO: result: $LD" >&5 5443echo "${ECHO_T}$LD" >&6; } 5444else 5445 { echo "$as_me:$LINENO: result: no" >&5 5446echo "${ECHO_T}no" >&6; } 5447fi 5448test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5449echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5450 { (exit 1); exit 1; }; } 5451{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5452echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 5453if test "${lt_cv_prog_gnu_ld+set}" = set; then 5454 echo $ECHO_N "(cached) $ECHO_C" >&6 5455else 5456 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5457case `$LD -v 2>&1 </dev/null` in 5458*GNU* | *'with BFD'*) 5459 lt_cv_prog_gnu_ld=yes 5460 ;; 5461*) 5462 lt_cv_prog_gnu_ld=no 5463 ;; 5464esac 5465fi 5466{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5467echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 5468with_gnu_ld=$lt_cv_prog_gnu_ld 5469 5470 5471{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5472echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 5473if test "${lt_cv_ld_reload_flag+set}" = set; then 5474 echo $ECHO_N "(cached) $ECHO_C" >&6 5475else 5476 lt_cv_ld_reload_flag='-r' 5477fi 5478{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5479echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 5480reload_flag=$lt_cv_ld_reload_flag 5481case $reload_flag in 5482"" | " "*) ;; 5483*) reload_flag=" $reload_flag" ;; 5484esac 5485reload_cmds='$LD$reload_flag -o $output$reload_objs' 5486case $host_os in 5487 darwin*) 5488 if test "$GCC" = yes; then 5489 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5490 else 5491 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5492 fi 5493 ;; 5494esac 5495 5496{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5497echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 5498if test "${lt_cv_path_NM+set}" = set; then 5499 echo $ECHO_N "(cached) $ECHO_C" >&6 5500else 5501 if test -n "$NM"; then 5502 # Let the user override the test. 5503 lt_cv_path_NM="$NM" 5504else 5505 lt_nm_to_check="${ac_tool_prefix}nm" 5506 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5507 lt_nm_to_check="$lt_nm_to_check nm" 5508 fi 5509 for lt_tmp_nm in $lt_nm_to_check; do 5510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5511 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5512 IFS="$lt_save_ifs" 5513 test -z "$ac_dir" && ac_dir=. 5514 tmp_nm="$ac_dir/$lt_tmp_nm" 5515 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5516 # Check to see if the nm accepts a BSD-compat flag. 5517 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5518 # nm: unknown option "B" ignored 5519 # Tru64's nm complains that /dev/null is an invalid object file 5520 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5521 */dev/null* | *'Invalid file or object type'*) 5522 lt_cv_path_NM="$tmp_nm -B" 5523 break 5524 ;; 5525 *) 5526 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5527 */dev/null*) 5528 lt_cv_path_NM="$tmp_nm -p" 5529 break 5530 ;; 5531 *) 5532 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5533 continue # so that we can try to find one that supports BSD flags 5534 ;; 5535 esac 5536 ;; 5537 esac 5538 fi 5539 done 5540 IFS="$lt_save_ifs" 5541 done 5542 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5543fi 5544fi 5545{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5546echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5547NM="$lt_cv_path_NM" 5548 5549{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 5550echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 5551LN_S=$as_ln_s 5552if test "$LN_S" = "ln -s"; then 5553 { echo "$as_me:$LINENO: result: yes" >&5 5554echo "${ECHO_T}yes" >&6; } 5555else 5556 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5557echo "${ECHO_T}no, using $LN_S" >&6; } 5558fi 5559 5560{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5561echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 5562if test "${lt_cv_deplibs_check_method+set}" = set; then 5563 echo $ECHO_N "(cached) $ECHO_C" >&6 5564else 5565 lt_cv_file_magic_cmd='$MAGIC_CMD' 5566lt_cv_file_magic_test_file= 5567lt_cv_deplibs_check_method='unknown' 5568# Need to set the preceding variable on all platforms that support 5569# interlibrary dependencies. 5570# 'none' -- dependencies not supported. 5571# `unknown' -- same as none, but documents that we really don't know. 5572# 'pass_all' -- all dependencies passed with no checks. 5573# 'test_compile' -- check by making test program. 5574# 'file_magic [[regex]]' -- check by looking for files in library path 5575# which responds to the $file_magic_cmd with a given extended regex. 5576# If you have `file' or equivalent on your system and you're not sure 5577# whether `pass_all' will *always* work, you probably want this one. 5578 5579case $host_os in 5580aix[4-9]*) 5581 lt_cv_deplibs_check_method=pass_all 5582 ;; 5583 5584beos*) 5585 lt_cv_deplibs_check_method=pass_all 5586 ;; 5587 5588bsdi[45]*) 5589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5590 lt_cv_file_magic_cmd='/usr/bin/file -L' 5591 lt_cv_file_magic_test_file=/shlib/libc.so 5592 ;; 5593 5594cygwin*) 5595 # func_win32_libid is a shell function defined in ltmain.sh 5596 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5597 lt_cv_file_magic_cmd='func_win32_libid' 5598 ;; 5599 5600mingw* | pw32*) 5601 # Base MSYS/MinGW do not provide the 'file' command needed by 5602 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5603 # unless we find 'file', for example because we are cross-compiling. 5604 if ( file / ) >/dev/null 2>&1; then 5605 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5606 lt_cv_file_magic_cmd='func_win32_libid' 5607 else 5608 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5609 lt_cv_file_magic_cmd='$OBJDUMP -f' 5610 fi 5611 ;; 5612 5613darwin* | rhapsody*) 5614 lt_cv_deplibs_check_method=pass_all 5615 ;; 5616 5617freebsd* | dragonfly*) 5618 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5619 case $host_cpu in 5620 i*86 ) 5621 # Not sure whether the presence of OpenBSD here was a mistake. 5622 # Let's accept both of them until this is cleared up. 5623 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5624 lt_cv_file_magic_cmd=/usr/bin/file 5625 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5626 ;; 5627 esac 5628 else 5629 lt_cv_deplibs_check_method=pass_all 5630 fi 5631 ;; 5632 5633gnu*) 5634 lt_cv_deplibs_check_method=pass_all 5635 ;; 5636 5637hpux10.20* | hpux11*) 5638 lt_cv_file_magic_cmd=/usr/bin/file 5639 case $host_cpu in 5640 ia64*) 5641 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5642 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5643 ;; 5644 hppa*64*) 5645 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]' 5646 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5647 ;; 5648 *) 5649 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5650 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5651 ;; 5652 esac 5653 ;; 5654 5655interix[3-9]*) 5656 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5658 ;; 5659 5660irix5* | irix6* | nonstopux*) 5661 case $LD in 5662 *-32|*"-32 ") libmagic=32-bit;; 5663 *-n32|*"-n32 ") libmagic=N32;; 5664 *-64|*"-64 ") libmagic=64-bit;; 5665 *) libmagic=never-match;; 5666 esac 5667 lt_cv_deplibs_check_method=pass_all 5668 ;; 5669 5670# This must be Linux ELF. 5671linux* | k*bsd*-gnu) 5672 lt_cv_deplibs_check_method=pass_all 5673 ;; 5674 5675netbsd* | netbsdelf*-gnu) 5676 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5678 else 5679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5680 fi 5681 ;; 5682 5683newos6*) 5684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5685 lt_cv_file_magic_cmd=/usr/bin/file 5686 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5687 ;; 5688 5689nto-qnx*) 5690 lt_cv_deplibs_check_method=unknown 5691 ;; 5692 5693openbsd*) 5694 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5696 else 5697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5698 fi 5699 ;; 5700 5701osf3* | osf4* | osf5*) 5702 lt_cv_deplibs_check_method=pass_all 5703 ;; 5704 5705rdos*) 5706 lt_cv_deplibs_check_method=pass_all 5707 ;; 5708 5709solaris*) 5710 lt_cv_deplibs_check_method=pass_all 5711 ;; 5712 5713sysv4 | sysv4.3*) 5714 case $host_vendor in 5715 motorola) 5716 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]' 5717 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5718 ;; 5719 ncr) 5720 lt_cv_deplibs_check_method=pass_all 5721 ;; 5722 sequent) 5723 lt_cv_file_magic_cmd='/bin/file' 5724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5725 ;; 5726 sni) 5727 lt_cv_file_magic_cmd='/bin/file' 5728 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5729 lt_cv_file_magic_test_file=/lib/libc.so 5730 ;; 5731 siemens) 5732 lt_cv_deplibs_check_method=pass_all 5733 ;; 5734 pc) 5735 lt_cv_deplibs_check_method=pass_all 5736 ;; 5737 esac 5738 ;; 5739 5740sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5741 lt_cv_deplibs_check_method=pass_all 5742 ;; 5743esac 5744 5745fi 5746{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5747echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 5748file_magic_cmd=$lt_cv_file_magic_cmd 5749deplibs_check_method=$lt_cv_deplibs_check_method 5750test -z "$deplibs_check_method" && deplibs_check_method=unknown 5751 5752 5753 5754 5755# If no C compiler was specified, use CC. 5756LTCC=${LTCC-"$CC"} 5757 5758# If no C compiler flags were specified, use CFLAGS. 5759LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5760 5761# Allow CC to be a program name with arguments. 5762compiler=$CC 5763 5764# Check whether --enable-libtool-lock was given. 5765if test "${enable_libtool_lock+set}" = set; then 5766 enableval=$enable_libtool_lock; 5767fi 5768 5769test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5770 5771# Some flags need to be propagated to the compiler or linker for good 5772# libtool support. 5773case $host in 5774ia64-*-hpux*) 5775 # Find out which ABI we are using. 5776 echo 'int i;' > conftest.$ac_ext 5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5778 (eval $ac_compile) 2>&5 5779 ac_status=$? 5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5781 (exit $ac_status); }; then 5782 case `/usr/bin/file conftest.$ac_objext` in 5783 *ELF-32*) 5784 HPUX_IA64_MODE="32" 5785 ;; 5786 *ELF-64*) 5787 HPUX_IA64_MODE="64" 5788 ;; 5789 esac 5790 fi 5791 rm -rf conftest* 5792 ;; 5793*-*-irix6*) 5794 # Find out which ABI we are using. 5795 echo '#line 5795 "configure"' > conftest.$ac_ext 5796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5797 (eval $ac_compile) 2>&5 5798 ac_status=$? 5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5800 (exit $ac_status); }; then 5801 if test "$lt_cv_prog_gnu_ld" = yes; then 5802 case `/usr/bin/file conftest.$ac_objext` in 5803 *32-bit*) 5804 LD="${LD-ld} -melf32bsmip" 5805 ;; 5806 *N32*) 5807 LD="${LD-ld} -melf32bmipn32" 5808 ;; 5809 *64-bit*) 5810 LD="${LD-ld} -melf64bmip" 5811 ;; 5812 esac 5813 else 5814 case `/usr/bin/file conftest.$ac_objext` in 5815 *32-bit*) 5816 LD="${LD-ld} -32" 5817 ;; 5818 *N32*) 5819 LD="${LD-ld} -n32" 5820 ;; 5821 *64-bit*) 5822 LD="${LD-ld} -64" 5823 ;; 5824 esac 5825 fi 5826 fi 5827 rm -rf conftest* 5828 ;; 5829 5830x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5831s390*-*linux*|sparc*-*linux*) 5832 # Find out which ABI we are using. 5833 echo 'int i;' > conftest.$ac_ext 5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5835 (eval $ac_compile) 2>&5 5836 ac_status=$? 5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5838 (exit $ac_status); }; then 5839 case `/usr/bin/file conftest.o` in 5840 *32-bit*) 5841 case $host in 5842 x86_64-*kfreebsd*-gnu) 5843 LD="${LD-ld} -m elf_i386_fbsd" 5844 ;; 5845 x86_64-*linux*) 5846 LD="${LD-ld} -m elf_i386" 5847 ;; 5848 ppc64-*linux*|powerpc64-*linux*) 5849 LD="${LD-ld} -m elf32ppclinux" 5850 ;; 5851 s390x-*linux*) 5852 LD="${LD-ld} -m elf_s390" 5853 ;; 5854 sparc64-*linux*) 5855 LD="${LD-ld} -m elf32_sparc" 5856 ;; 5857 esac 5858 ;; 5859 *64-bit*) 5860 case $host in 5861 x86_64-*kfreebsd*-gnu) 5862 LD="${LD-ld} -m elf_x86_64_fbsd" 5863 ;; 5864 x86_64-*linux*) 5865 LD="${LD-ld} -m elf_x86_64" 5866 ;; 5867 ppc*-*linux*|powerpc*-*linux*) 5868 LD="${LD-ld} -m elf64ppc" 5869 ;; 5870 s390*-*linux*) 5871 LD="${LD-ld} -m elf64_s390" 5872 ;; 5873 sparc*-*linux*) 5874 LD="${LD-ld} -m elf64_sparc" 5875 ;; 5876 esac 5877 ;; 5878 esac 5879 fi 5880 rm -rf conftest* 5881 ;; 5882 5883*-*-sco3.2v5*) 5884 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5885 SAVE_CFLAGS="$CFLAGS" 5886 CFLAGS="$CFLAGS -belf" 5887 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5888echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 5889if test "${lt_cv_cc_needs_belf+set}" = set; then 5890 echo $ECHO_N "(cached) $ECHO_C" >&6 5891else 5892 ac_ext=c 5893ac_cpp='$CPP $CPPFLAGS' 5894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5896ac_compiler_gnu=$ac_cv_c_compiler_gnu 5897 5898 cat >conftest.$ac_ext <<_ACEOF 5899/* confdefs.h. */ 5900_ACEOF 5901cat confdefs.h >>conftest.$ac_ext 5902cat >>conftest.$ac_ext <<_ACEOF 5903/* end confdefs.h. */ 5904 5905int 5906main () 5907{ 5908 5909 ; 5910 return 0; 5911} 5912_ACEOF 5913rm -f conftest.$ac_objext conftest$ac_exeext 5914if { (ac_try="$ac_link" 5915case "(($ac_try" in 5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5917 *) ac_try_echo=$ac_try;; 5918esac 5919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5920 (eval "$ac_link") 2>conftest.er1 5921 ac_status=$? 5922 grep -v '^ *+' conftest.er1 >conftest.err 5923 rm -f conftest.er1 5924 cat conftest.err >&5 5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5926 (exit $ac_status); } && { 5927 test -z "$ac_c_werror_flag" || 5928 test ! -s conftest.err 5929 } && test -s conftest$ac_exeext && 5930 $as_test_x conftest$ac_exeext; then 5931 lt_cv_cc_needs_belf=yes 5932else 5933 echo "$as_me: failed program was:" >&5 5934sed 's/^/| /' conftest.$ac_ext >&5 5935 5936 lt_cv_cc_needs_belf=no 5937fi 5938 5939rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5940 conftest$ac_exeext conftest.$ac_ext 5941 ac_ext=c 5942ac_cpp='$CPP $CPPFLAGS' 5943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5945ac_compiler_gnu=$ac_cv_c_compiler_gnu 5946 5947fi 5948{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5949echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 5950 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5951 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5952 CFLAGS="$SAVE_CFLAGS" 5953 fi 5954 ;; 5955sparc*-*solaris*) 5956 # Find out which ABI we are using. 5957 echo 'int i;' > conftest.$ac_ext 5958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5959 (eval $ac_compile) 2>&5 5960 ac_status=$? 5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5962 (exit $ac_status); }; then 5963 case `/usr/bin/file conftest.o` in 5964 *64-bit*) 5965 case $lt_cv_prog_gnu_ld in 5966 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5967 *) 5968 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5969 LD="${LD-ld} -64" 5970 fi 5971 ;; 5972 esac 5973 ;; 5974 esac 5975 fi 5976 rm -rf conftest* 5977 ;; 5978 5979*-*-cygwin* | *-*-mingw* | *-*-pw32*) 5980 if test -n "$ac_tool_prefix"; then 5981 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5982set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5983{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5985if test "${ac_cv_prog_DLLTOOL+set}" = set; then 5986 echo $ECHO_N "(cached) $ECHO_C" >&6 5987else 5988 if test -n "$DLLTOOL"; then 5989 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5990else 5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5992for as_dir in $PATH 5993do 5994 IFS=$as_save_IFS 5995 test -z "$as_dir" && as_dir=. 5996 for ac_exec_ext in '' $ac_executable_extensions; do 5997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5998 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6000 break 2 6001 fi 6002done 6003done 6004IFS=$as_save_IFS 6005 6006fi 6007fi 6008DLLTOOL=$ac_cv_prog_DLLTOOL 6009if test -n "$DLLTOOL"; then 6010 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 6011echo "${ECHO_T}$DLLTOOL" >&6; } 6012else 6013 { echo "$as_me:$LINENO: result: no" >&5 6014echo "${ECHO_T}no" >&6; } 6015fi 6016 6017 6018fi 6019if test -z "$ac_cv_prog_DLLTOOL"; then 6020 ac_ct_DLLTOOL=$DLLTOOL 6021 # Extract the first word of "dlltool", so it can be a program name with args. 6022set dummy dlltool; ac_word=$2 6023{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6025if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then 6026 echo $ECHO_N "(cached) $ECHO_C" >&6 6027else 6028 if test -n "$ac_ct_DLLTOOL"; then 6029 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6030else 6031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6032for as_dir in $PATH 6033do 6034 IFS=$as_save_IFS 6035 test -z "$as_dir" && as_dir=. 6036 for ac_exec_ext in '' $ac_executable_extensions; do 6037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6038 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6040 break 2 6041 fi 6042done 6043done 6044IFS=$as_save_IFS 6045 6046fi 6047fi 6048ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6049if test -n "$ac_ct_DLLTOOL"; then 6050 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 6051echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } 6052else 6053 { echo "$as_me:$LINENO: result: no" >&5 6054echo "${ECHO_T}no" >&6; } 6055fi 6056 6057 if test "x$ac_ct_DLLTOOL" = x; then 6058 DLLTOOL="false" 6059 else 6060 case $cross_compiling:$ac_tool_warned in 6061yes:) 6062{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6063whose name does not start with the host triplet. If you think this 6064configuration is useful to you, please write to autoconf@gnu.org." >&5 6065echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6066whose name does not start with the host triplet. If you think this 6067configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6068ac_tool_warned=yes ;; 6069esac 6070 DLLTOOL=$ac_ct_DLLTOOL 6071 fi 6072else 6073 DLLTOOL="$ac_cv_prog_DLLTOOL" 6074fi 6075 6076 if test -n "$ac_tool_prefix"; then 6077 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6078set dummy ${ac_tool_prefix}as; ac_word=$2 6079{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6081if test "${ac_cv_prog_AS+set}" = set; then 6082 echo $ECHO_N "(cached) $ECHO_C" >&6 6083else 6084 if test -n "$AS"; then 6085 ac_cv_prog_AS="$AS" # Let the user override the test. 6086else 6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6088for as_dir in $PATH 6089do 6090 IFS=$as_save_IFS 6091 test -z "$as_dir" && as_dir=. 6092 for ac_exec_ext in '' $ac_executable_extensions; do 6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6094 ac_cv_prog_AS="${ac_tool_prefix}as" 6095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6096 break 2 6097 fi 6098done 6099done 6100IFS=$as_save_IFS 6101 6102fi 6103fi 6104AS=$ac_cv_prog_AS 6105if test -n "$AS"; then 6106 { echo "$as_me:$LINENO: result: $AS" >&5 6107echo "${ECHO_T}$AS" >&6; } 6108else 6109 { echo "$as_me:$LINENO: result: no" >&5 6110echo "${ECHO_T}no" >&6; } 6111fi 6112 6113 6114fi 6115if test -z "$ac_cv_prog_AS"; then 6116 ac_ct_AS=$AS 6117 # Extract the first word of "as", so it can be a program name with args. 6118set dummy as; ac_word=$2 6119{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6121if test "${ac_cv_prog_ac_ct_AS+set}" = set; then 6122 echo $ECHO_N "(cached) $ECHO_C" >&6 6123else 6124 if test -n "$ac_ct_AS"; then 6125 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 6126else 6127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6128for as_dir in $PATH 6129do 6130 IFS=$as_save_IFS 6131 test -z "$as_dir" && as_dir=. 6132 for ac_exec_ext in '' $ac_executable_extensions; do 6133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6134 ac_cv_prog_ac_ct_AS="as" 6135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6136 break 2 6137 fi 6138done 6139done 6140IFS=$as_save_IFS 6141 6142fi 6143fi 6144ac_ct_AS=$ac_cv_prog_ac_ct_AS 6145if test -n "$ac_ct_AS"; then 6146 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 6147echo "${ECHO_T}$ac_ct_AS" >&6; } 6148else 6149 { echo "$as_me:$LINENO: result: no" >&5 6150echo "${ECHO_T}no" >&6; } 6151fi 6152 6153 if test "x$ac_ct_AS" = x; then 6154 AS="false" 6155 else 6156 case $cross_compiling:$ac_tool_warned in 6157yes:) 6158{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6159whose name does not start with the host triplet. If you think this 6160configuration is useful to you, please write to autoconf@gnu.org." >&5 6161echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6162whose name does not start with the host triplet. If you think this 6163configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6164ac_tool_warned=yes ;; 6165esac 6166 AS=$ac_ct_AS 6167 fi 6168else 6169 AS="$ac_cv_prog_AS" 6170fi 6171 6172 if test -n "$ac_tool_prefix"; then 6173 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6174set dummy ${ac_tool_prefix}objdump; ac_word=$2 6175{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6177if test "${ac_cv_prog_OBJDUMP+set}" = set; then 6178 echo $ECHO_N "(cached) $ECHO_C" >&6 6179else 6180 if test -n "$OBJDUMP"; then 6181 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6182else 6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6184for as_dir in $PATH 6185do 6186 IFS=$as_save_IFS 6187 test -z "$as_dir" && as_dir=. 6188 for ac_exec_ext in '' $ac_executable_extensions; do 6189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6190 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6192 break 2 6193 fi 6194done 6195done 6196IFS=$as_save_IFS 6197 6198fi 6199fi 6200OBJDUMP=$ac_cv_prog_OBJDUMP 6201if test -n "$OBJDUMP"; then 6202 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 6203echo "${ECHO_T}$OBJDUMP" >&6; } 6204else 6205 { echo "$as_me:$LINENO: result: no" >&5 6206echo "${ECHO_T}no" >&6; } 6207fi 6208 6209 6210fi 6211if test -z "$ac_cv_prog_OBJDUMP"; then 6212 ac_ct_OBJDUMP=$OBJDUMP 6213 # Extract the first word of "objdump", so it can be a program name with args. 6214set dummy objdump; ac_word=$2 6215{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6217if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 6218 echo $ECHO_N "(cached) $ECHO_C" >&6 6219else 6220 if test -n "$ac_ct_OBJDUMP"; then 6221 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6222else 6223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6224for as_dir in $PATH 6225do 6226 IFS=$as_save_IFS 6227 test -z "$as_dir" && as_dir=. 6228 for ac_exec_ext in '' $ac_executable_extensions; do 6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6230 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6232 break 2 6233 fi 6234done 6235done 6236IFS=$as_save_IFS 6237 6238fi 6239fi 6240ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6241if test -n "$ac_ct_OBJDUMP"; then 6242 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 6243echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } 6244else 6245 { echo "$as_me:$LINENO: result: no" >&5 6246echo "${ECHO_T}no" >&6; } 6247fi 6248 6249 if test "x$ac_ct_OBJDUMP" = x; then 6250 OBJDUMP="false" 6251 else 6252 case $cross_compiling:$ac_tool_warned in 6253yes:) 6254{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6255whose name does not start with the host triplet. If you think this 6256configuration is useful to you, please write to autoconf@gnu.org." >&5 6257echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6258whose name does not start with the host triplet. If you think this 6259configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6260ac_tool_warned=yes ;; 6261esac 6262 OBJDUMP=$ac_ct_OBJDUMP 6263 fi 6264else 6265 OBJDUMP="$ac_cv_prog_OBJDUMP" 6266fi 6267 6268 ;; 6269 6270esac 6271 6272need_locks="$enable_libtool_lock" 6273 6274 6275 6276for ac_header in dlfcn.h 6277do 6278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6280 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6283 echo $ECHO_N "(cached) $ECHO_C" >&6 6284fi 6285ac_res=`eval echo '${'$as_ac_Header'}'` 6286 { echo "$as_me:$LINENO: result: $ac_res" >&5 6287echo "${ECHO_T}$ac_res" >&6; } 6288else 6289 # Is the header compilable? 6290{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6291echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6292cat >conftest.$ac_ext <<_ACEOF 6293/* confdefs.h. */ 6294_ACEOF 6295cat confdefs.h >>conftest.$ac_ext 6296cat >>conftest.$ac_ext <<_ACEOF 6297/* end confdefs.h. */ 6298$ac_includes_default 6299#include <$ac_header> 6300_ACEOF 6301rm -f conftest.$ac_objext 6302if { (ac_try="$ac_compile" 6303case "(($ac_try" in 6304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6305 *) ac_try_echo=$ac_try;; 6306esac 6307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6308 (eval "$ac_compile") 2>conftest.er1 6309 ac_status=$? 6310 grep -v '^ *+' conftest.er1 >conftest.err 6311 rm -f conftest.er1 6312 cat conftest.err >&5 6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6314 (exit $ac_status); } && { 6315 test -z "$ac_c_werror_flag" || 6316 test ! -s conftest.err 6317 } && test -s conftest.$ac_objext; then 6318 ac_header_compiler=yes 6319else 6320 echo "$as_me: failed program was:" >&5 6321sed 's/^/| /' conftest.$ac_ext >&5 6322 6323 ac_header_compiler=no 6324fi 6325 6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6327{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6328echo "${ECHO_T}$ac_header_compiler" >&6; } 6329 6330# Is the header present? 6331{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6332echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6333cat >conftest.$ac_ext <<_ACEOF 6334/* confdefs.h. */ 6335_ACEOF 6336cat confdefs.h >>conftest.$ac_ext 6337cat >>conftest.$ac_ext <<_ACEOF 6338/* end confdefs.h. */ 6339#include <$ac_header> 6340_ACEOF 6341if { (ac_try="$ac_cpp conftest.$ac_ext" 6342case "(($ac_try" in 6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6344 *) ac_try_echo=$ac_try;; 6345esac 6346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6348 ac_status=$? 6349 grep -v '^ *+' conftest.er1 >conftest.err 6350 rm -f conftest.er1 6351 cat conftest.err >&5 6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6353 (exit $ac_status); } >/dev/null && { 6354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6355 test ! -s conftest.err 6356 }; then 6357 ac_header_preproc=yes 6358else 6359 echo "$as_me: failed program was:" >&5 6360sed 's/^/| /' conftest.$ac_ext >&5 6361 6362 ac_header_preproc=no 6363fi 6364 6365rm -f conftest.err conftest.$ac_ext 6366{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6367echo "${ECHO_T}$ac_header_preproc" >&6; } 6368 6369# So? What about this header? 6370case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6371 yes:no: ) 6372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6373echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6375echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6376 ac_header_preproc=yes 6377 ;; 6378 no:yes:* ) 6379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6380echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6382echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6384echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6386echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6388echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6390echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6391 6392 ;; 6393esac 6394{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6396if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6397 echo $ECHO_N "(cached) $ECHO_C" >&6 6398else 6399 eval "$as_ac_Header=\$ac_header_preproc" 6400fi 6401ac_res=`eval echo '${'$as_ac_Header'}'` 6402 { echo "$as_me:$LINENO: result: $ac_res" >&5 6403echo "${ECHO_T}$ac_res" >&6; } 6404 6405fi 6406if test `eval echo '${'$as_ac_Header'}'` = yes; then 6407 cat >>confdefs.h <<_ACEOF 6408#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6409_ACEOF 6410 6411fi 6412 6413done 6414 6415ac_ext=cpp 6416ac_cpp='$CXXCPP $CPPFLAGS' 6417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6420if test -z "$CXX"; then 6421 if test -n "$CCC"; then 6422 CXX=$CCC 6423 else 6424 if test -n "$ac_tool_prefix"; then 6425 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6426 do 6427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6428set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6429{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6431if test "${ac_cv_prog_CXX+set}" = set; then 6432 echo $ECHO_N "(cached) $ECHO_C" >&6 6433else 6434 if test -n "$CXX"; then 6435 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6436else 6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6438for as_dir in $PATH 6439do 6440 IFS=$as_save_IFS 6441 test -z "$as_dir" && as_dir=. 6442 for ac_exec_ext in '' $ac_executable_extensions; do 6443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6444 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6446 break 2 6447 fi 6448done 6449done 6450IFS=$as_save_IFS 6451 6452fi 6453fi 6454CXX=$ac_cv_prog_CXX 6455if test -n "$CXX"; then 6456 { echo "$as_me:$LINENO: result: $CXX" >&5 6457echo "${ECHO_T}$CXX" >&6; } 6458else 6459 { echo "$as_me:$LINENO: result: no" >&5 6460echo "${ECHO_T}no" >&6; } 6461fi 6462 6463 6464 test -n "$CXX" && break 6465 done 6466fi 6467if test -z "$CXX"; then 6468 ac_ct_CXX=$CXX 6469 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6470do 6471 # Extract the first word of "$ac_prog", so it can be a program name with args. 6472set dummy $ac_prog; ac_word=$2 6473{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6475if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 6476 echo $ECHO_N "(cached) $ECHO_C" >&6 6477else 6478 if test -n "$ac_ct_CXX"; then 6479 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6480else 6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6482for as_dir in $PATH 6483do 6484 IFS=$as_save_IFS 6485 test -z "$as_dir" && as_dir=. 6486 for ac_exec_ext in '' $ac_executable_extensions; do 6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6488 ac_cv_prog_ac_ct_CXX="$ac_prog" 6489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6490 break 2 6491 fi 6492done 6493done 6494IFS=$as_save_IFS 6495 6496fi 6497fi 6498ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6499if test -n "$ac_ct_CXX"; then 6500 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 6501echo "${ECHO_T}$ac_ct_CXX" >&6; } 6502else 6503 { echo "$as_me:$LINENO: result: no" >&5 6504echo "${ECHO_T}no" >&6; } 6505fi 6506 6507 6508 test -n "$ac_ct_CXX" && break 6509done 6510 6511 if test "x$ac_ct_CXX" = x; then 6512 CXX="g++" 6513 else 6514 case $cross_compiling:$ac_tool_warned in 6515yes:) 6516{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6517whose name does not start with the host triplet. If you think this 6518configuration is useful to you, please write to autoconf@gnu.org." >&5 6519echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6520whose name does not start with the host triplet. If you think this 6521configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6522ac_tool_warned=yes ;; 6523esac 6524 CXX=$ac_ct_CXX 6525 fi 6526fi 6527 6528 fi 6529fi 6530# Provide some information about the compiler. 6531echo "$as_me:$LINENO: checking for C++ compiler version" >&5 6532ac_compiler=`set X $ac_compile; echo $2` 6533{ (ac_try="$ac_compiler --version >&5" 6534case "(($ac_try" in 6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6536 *) ac_try_echo=$ac_try;; 6537esac 6538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6539 (eval "$ac_compiler --version >&5") 2>&5 6540 ac_status=$? 6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6542 (exit $ac_status); } 6543{ (ac_try="$ac_compiler -v >&5" 6544case "(($ac_try" in 6545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6546 *) ac_try_echo=$ac_try;; 6547esac 6548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6549 (eval "$ac_compiler -v >&5") 2>&5 6550 ac_status=$? 6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6552 (exit $ac_status); } 6553{ (ac_try="$ac_compiler -V >&5" 6554case "(($ac_try" in 6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6556 *) ac_try_echo=$ac_try;; 6557esac 6558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6559 (eval "$ac_compiler -V >&5") 2>&5 6560 ac_status=$? 6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6562 (exit $ac_status); } 6563 6564{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 6565echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 6566if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 6567 echo $ECHO_N "(cached) $ECHO_C" >&6 6568else 6569 cat >conftest.$ac_ext <<_ACEOF 6570/* confdefs.h. */ 6571_ACEOF 6572cat confdefs.h >>conftest.$ac_ext 6573cat >>conftest.$ac_ext <<_ACEOF 6574/* end confdefs.h. */ 6575 6576int 6577main () 6578{ 6579#ifndef __GNUC__ 6580 choke me 6581#endif 6582 6583 ; 6584 return 0; 6585} 6586_ACEOF 6587rm -f conftest.$ac_objext 6588if { (ac_try="$ac_compile" 6589case "(($ac_try" in 6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6591 *) ac_try_echo=$ac_try;; 6592esac 6593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6594 (eval "$ac_compile") 2>conftest.er1 6595 ac_status=$? 6596 grep -v '^ *+' conftest.er1 >conftest.err 6597 rm -f conftest.er1 6598 cat conftest.err >&5 6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6600 (exit $ac_status); } && { 6601 test -z "$ac_cxx_werror_flag" || 6602 test ! -s conftest.err 6603 } && test -s conftest.$ac_objext; then 6604 ac_compiler_gnu=yes 6605else 6606 echo "$as_me: failed program was:" >&5 6607sed 's/^/| /' conftest.$ac_ext >&5 6608 6609 ac_compiler_gnu=no 6610fi 6611 6612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6613ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6614 6615fi 6616{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6617echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 6618GXX=`test $ac_compiler_gnu = yes && echo yes` 6619ac_test_CXXFLAGS=${CXXFLAGS+set} 6620ac_save_CXXFLAGS=$CXXFLAGS 6621{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6622echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 6623if test "${ac_cv_prog_cxx_g+set}" = set; then 6624 echo $ECHO_N "(cached) $ECHO_C" >&6 6625else 6626 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6627 ac_cxx_werror_flag=yes 6628 ac_cv_prog_cxx_g=no 6629 CXXFLAGS="-g" 6630 cat >conftest.$ac_ext <<_ACEOF 6631/* confdefs.h. */ 6632_ACEOF 6633cat confdefs.h >>conftest.$ac_ext 6634cat >>conftest.$ac_ext <<_ACEOF 6635/* end confdefs.h. */ 6636 6637int 6638main () 6639{ 6640 6641 ; 6642 return 0; 6643} 6644_ACEOF 6645rm -f conftest.$ac_objext 6646if { (ac_try="$ac_compile" 6647case "(($ac_try" in 6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6649 *) ac_try_echo=$ac_try;; 6650esac 6651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6652 (eval "$ac_compile") 2>conftest.er1 6653 ac_status=$? 6654 grep -v '^ *+' conftest.er1 >conftest.err 6655 rm -f conftest.er1 6656 cat conftest.err >&5 6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6658 (exit $ac_status); } && { 6659 test -z "$ac_cxx_werror_flag" || 6660 test ! -s conftest.err 6661 } && test -s conftest.$ac_objext; then 6662 ac_cv_prog_cxx_g=yes 6663else 6664 echo "$as_me: failed program was:" >&5 6665sed 's/^/| /' conftest.$ac_ext >&5 6666 6667 CXXFLAGS="" 6668 cat >conftest.$ac_ext <<_ACEOF 6669/* confdefs.h. */ 6670_ACEOF 6671cat confdefs.h >>conftest.$ac_ext 6672cat >>conftest.$ac_ext <<_ACEOF 6673/* end confdefs.h. */ 6674 6675int 6676main () 6677{ 6678 6679 ; 6680 return 0; 6681} 6682_ACEOF 6683rm -f conftest.$ac_objext 6684if { (ac_try="$ac_compile" 6685case "(($ac_try" in 6686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6687 *) ac_try_echo=$ac_try;; 6688esac 6689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6690 (eval "$ac_compile") 2>conftest.er1 6691 ac_status=$? 6692 grep -v '^ *+' conftest.er1 >conftest.err 6693 rm -f conftest.er1 6694 cat conftest.err >&5 6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6696 (exit $ac_status); } && { 6697 test -z "$ac_cxx_werror_flag" || 6698 test ! -s conftest.err 6699 } && test -s conftest.$ac_objext; then 6700 : 6701else 6702 echo "$as_me: failed program was:" >&5 6703sed 's/^/| /' conftest.$ac_ext >&5 6704 6705 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6706 CXXFLAGS="-g" 6707 cat >conftest.$ac_ext <<_ACEOF 6708/* confdefs.h. */ 6709_ACEOF 6710cat confdefs.h >>conftest.$ac_ext 6711cat >>conftest.$ac_ext <<_ACEOF 6712/* end confdefs.h. */ 6713 6714int 6715main () 6716{ 6717 6718 ; 6719 return 0; 6720} 6721_ACEOF 6722rm -f conftest.$ac_objext 6723if { (ac_try="$ac_compile" 6724case "(($ac_try" in 6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6726 *) ac_try_echo=$ac_try;; 6727esac 6728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6729 (eval "$ac_compile") 2>conftest.er1 6730 ac_status=$? 6731 grep -v '^ *+' conftest.er1 >conftest.err 6732 rm -f conftest.er1 6733 cat conftest.err >&5 6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6735 (exit $ac_status); } && { 6736 test -z "$ac_cxx_werror_flag" || 6737 test ! -s conftest.err 6738 } && test -s conftest.$ac_objext; then 6739 ac_cv_prog_cxx_g=yes 6740else 6741 echo "$as_me: failed program was:" >&5 6742sed 's/^/| /' conftest.$ac_ext >&5 6743 6744 6745fi 6746 6747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6748fi 6749 6750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6751fi 6752 6753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6754 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6755fi 6756{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6757echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 6758if test "$ac_test_CXXFLAGS" = set; then 6759 CXXFLAGS=$ac_save_CXXFLAGS 6760elif test $ac_cv_prog_cxx_g = yes; then 6761 if test "$GXX" = yes; then 6762 CXXFLAGS="-g -O2" 6763 else 6764 CXXFLAGS="-g" 6765 fi 6766else 6767 if test "$GXX" = yes; then 6768 CXXFLAGS="-O2" 6769 else 6770 CXXFLAGS= 6771 fi 6772fi 6773ac_ext=cpp 6774ac_cpp='$CXXCPP $CPPFLAGS' 6775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6778 6779depcc="$CXX" am_compiler_list= 6780 6781{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 6782echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 6783if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 6784 echo $ECHO_N "(cached) $ECHO_C" >&6 6785else 6786 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6787 # We make a subdir and do the tests there. Otherwise we can end up 6788 # making bogus files that we don't know about and never remove. For 6789 # instance it was reported that on HP-UX the gcc test will end up 6790 # making a dummy file named `D' -- because `-MD' means `put the output 6791 # in D'. 6792 mkdir conftest.dir 6793 # Copy depcomp to subdir because otherwise we won't find it if we're 6794 # using a relative directory. 6795 cp "$am_depcomp" conftest.dir 6796 cd conftest.dir 6797 # We will build objects and dependencies in a subdirectory because 6798 # it helps to detect inapplicable dependency modes. For instance 6799 # both Tru64's cc and ICC support -MD to output dependencies as a 6800 # side effect of compilation, but ICC will put the dependencies in 6801 # the current directory while Tru64 will put them in the object 6802 # directory. 6803 mkdir sub 6804 6805 am_cv_CXX_dependencies_compiler_type=none 6806 if test "$am_compiler_list" = ""; then 6807 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6808 fi 6809 for depmode in $am_compiler_list; do 6810 # Setup a source with many dependencies, because some compilers 6811 # like to wrap large dependency lists on column 80 (with \), and 6812 # we should not choose a depcomp mode which is confused by this. 6813 # 6814 # We need to recreate these files for each test, as the compiler may 6815 # overwrite some of them when testing with obscure command lines. 6816 # This happens at least with the AIX C compiler. 6817 : > sub/conftest.c 6818 for i in 1 2 3 4 5 6; do 6819 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6820 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6821 # Solaris 8's {/usr,}/bin/sh. 6822 touch sub/conftst$i.h 6823 done 6824 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6825 6826 case $depmode in 6827 nosideeffect) 6828 # after this tag, mechanisms are not by side-effect, so they'll 6829 # only be used when explicitly requested 6830 if test "x$enable_dependency_tracking" = xyes; then 6831 continue 6832 else 6833 break 6834 fi 6835 ;; 6836 none) break ;; 6837 esac 6838 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6839 # mode. It turns out that the SunPro C++ compiler does not properly 6840 # handle `-M -o', and we need to detect this. 6841 if depmode=$depmode \ 6842 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6843 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6844 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6845 >/dev/null 2>conftest.err && 6846 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6847 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6848 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6849 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6850 # icc doesn't choke on unknown options, it will just issue warnings 6851 # or remarks (even with -Werror). So we grep stderr for any message 6852 # that says an option was ignored or not supported. 6853 # When given -MP, icc 7.0 and 7.1 complain thusly: 6854 # icc: Command line warning: ignoring option '-M'; no argument required 6855 # The diagnosis changed in icc 8.0: 6856 # icc: Command line remark: option '-MP' not supported 6857 if (grep 'ignoring option' conftest.err || 6858 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6859 am_cv_CXX_dependencies_compiler_type=$depmode 6860 break 6861 fi 6862 fi 6863 done 6864 6865 cd .. 6866 rm -rf conftest.dir 6867else 6868 am_cv_CXX_dependencies_compiler_type=none 6869fi 6870 6871fi 6872{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 6873echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 6874CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6875 6876 if 6877 test "x$enable_dependency_tracking" != xno \ 6878 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6879 am__fastdepCXX_TRUE= 6880 am__fastdepCXX_FALSE='#' 6881else 6882 am__fastdepCXX_TRUE='#' 6883 am__fastdepCXX_FALSE= 6884fi 6885 6886 6887 6888 6889if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6890 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6891 (test "X$CXX" != "Xg++"))) ; then 6892 ac_ext=cpp 6893ac_cpp='$CXXCPP $CPPFLAGS' 6894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6897{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6898echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 6899if test -z "$CXXCPP"; then 6900 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6901 echo $ECHO_N "(cached) $ECHO_C" >&6 6902else 6903 # Double quotes because CXXCPP needs to be expanded 6904 for CXXCPP in "$CXX -E" "/lib/cpp" 6905 do 6906 ac_preproc_ok=false 6907for ac_cxx_preproc_warn_flag in '' yes 6908do 6909 # Use a header file that comes with gcc, so configuring glibc 6910 # with a fresh cross-compiler works. 6911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6912 # <limits.h> exists even on freestanding compilers. 6913 # On the NeXT, cc -E runs the code through the compiler's parser, 6914 # not just through cpp. "Syntax error" is here to catch this case. 6915 cat >conftest.$ac_ext <<_ACEOF 6916/* confdefs.h. */ 6917_ACEOF 6918cat confdefs.h >>conftest.$ac_ext 6919cat >>conftest.$ac_ext <<_ACEOF 6920/* end confdefs.h. */ 6921#ifdef __STDC__ 6922# include <limits.h> 6923#else 6924# include <assert.h> 6925#endif 6926 Syntax error 6927_ACEOF 6928if { (ac_try="$ac_cpp conftest.$ac_ext" 6929case "(($ac_try" in 6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6931 *) ac_try_echo=$ac_try;; 6932esac 6933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6935 ac_status=$? 6936 grep -v '^ *+' conftest.er1 >conftest.err 6937 rm -f conftest.er1 6938 cat conftest.err >&5 6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6940 (exit $ac_status); } >/dev/null && { 6941 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6942 test ! -s conftest.err 6943 }; then 6944 : 6945else 6946 echo "$as_me: failed program was:" >&5 6947sed 's/^/| /' conftest.$ac_ext >&5 6948 6949 # Broken: fails on valid input. 6950continue 6951fi 6952 6953rm -f conftest.err conftest.$ac_ext 6954 6955 # OK, works on sane cases. Now check whether nonexistent headers 6956 # can be detected and how. 6957 cat >conftest.$ac_ext <<_ACEOF 6958/* confdefs.h. */ 6959_ACEOF 6960cat confdefs.h >>conftest.$ac_ext 6961cat >>conftest.$ac_ext <<_ACEOF 6962/* end confdefs.h. */ 6963#include <ac_nonexistent.h> 6964_ACEOF 6965if { (ac_try="$ac_cpp conftest.$ac_ext" 6966case "(($ac_try" in 6967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6968 *) ac_try_echo=$ac_try;; 6969esac 6970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6972 ac_status=$? 6973 grep -v '^ *+' conftest.er1 >conftest.err 6974 rm -f conftest.er1 6975 cat conftest.err >&5 6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6977 (exit $ac_status); } >/dev/null && { 6978 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6979 test ! -s conftest.err 6980 }; then 6981 # Broken: success on invalid input. 6982continue 6983else 6984 echo "$as_me: failed program was:" >&5 6985sed 's/^/| /' conftest.$ac_ext >&5 6986 6987 # Passes both tests. 6988ac_preproc_ok=: 6989break 6990fi 6991 6992rm -f conftest.err conftest.$ac_ext 6993 6994done 6995# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6996rm -f conftest.err conftest.$ac_ext 6997if $ac_preproc_ok; then 6998 break 6999fi 7000 7001 done 7002 ac_cv_prog_CXXCPP=$CXXCPP 7003 7004fi 7005 CXXCPP=$ac_cv_prog_CXXCPP 7006else 7007 ac_cv_prog_CXXCPP=$CXXCPP 7008fi 7009{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 7010echo "${ECHO_T}$CXXCPP" >&6; } 7011ac_preproc_ok=false 7012for ac_cxx_preproc_warn_flag in '' yes 7013do 7014 # Use a header file that comes with gcc, so configuring glibc 7015 # with a fresh cross-compiler works. 7016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7017 # <limits.h> exists even on freestanding compilers. 7018 # On the NeXT, cc -E runs the code through the compiler's parser, 7019 # not just through cpp. "Syntax error" is here to catch this case. 7020 cat >conftest.$ac_ext <<_ACEOF 7021/* confdefs.h. */ 7022_ACEOF 7023cat confdefs.h >>conftest.$ac_ext 7024cat >>conftest.$ac_ext <<_ACEOF 7025/* end confdefs.h. */ 7026#ifdef __STDC__ 7027# include <limits.h> 7028#else 7029# include <assert.h> 7030#endif 7031 Syntax error 7032_ACEOF 7033if { (ac_try="$ac_cpp conftest.$ac_ext" 7034case "(($ac_try" in 7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7036 *) ac_try_echo=$ac_try;; 7037esac 7038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7040 ac_status=$? 7041 grep -v '^ *+' conftest.er1 >conftest.err 7042 rm -f conftest.er1 7043 cat conftest.err >&5 7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7045 (exit $ac_status); } >/dev/null && { 7046 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7047 test ! -s conftest.err 7048 }; then 7049 : 7050else 7051 echo "$as_me: failed program was:" >&5 7052sed 's/^/| /' conftest.$ac_ext >&5 7053 7054 # Broken: fails on valid input. 7055continue 7056fi 7057 7058rm -f conftest.err conftest.$ac_ext 7059 7060 # OK, works on sane cases. Now check whether nonexistent headers 7061 # can be detected and how. 7062 cat >conftest.$ac_ext <<_ACEOF 7063/* confdefs.h. */ 7064_ACEOF 7065cat confdefs.h >>conftest.$ac_ext 7066cat >>conftest.$ac_ext <<_ACEOF 7067/* end confdefs.h. */ 7068#include <ac_nonexistent.h> 7069_ACEOF 7070if { (ac_try="$ac_cpp conftest.$ac_ext" 7071case "(($ac_try" in 7072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7073 *) ac_try_echo=$ac_try;; 7074esac 7075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7077 ac_status=$? 7078 grep -v '^ *+' conftest.er1 >conftest.err 7079 rm -f conftest.er1 7080 cat conftest.err >&5 7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7082 (exit $ac_status); } >/dev/null && { 7083 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 7084 test ! -s conftest.err 7085 }; then 7086 # Broken: success on invalid input. 7087continue 7088else 7089 echo "$as_me: failed program was:" >&5 7090sed 's/^/| /' conftest.$ac_ext >&5 7091 7092 # Passes both tests. 7093ac_preproc_ok=: 7094break 7095fi 7096 7097rm -f conftest.err conftest.$ac_ext 7098 7099done 7100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7101rm -f conftest.err conftest.$ac_ext 7102if $ac_preproc_ok; then 7103 : 7104else 7105 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7106See \`config.log' for more details." >&5 7107echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 7108See \`config.log' for more details." >&2;} 7109 { (exit 1); exit 1; }; } 7110fi 7111 7112ac_ext=cpp 7113ac_cpp='$CXXCPP $CPPFLAGS' 7114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7117 7118fi 7119 7120 7121ac_ext=f 7122ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 7123ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7124ac_compiler_gnu=$ac_cv_f77_compiler_gnu 7125if test -n "$ac_tool_prefix"; then 7126 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 7127 do 7128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7129set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7130{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7132if test "${ac_cv_prog_F77+set}" = set; then 7133 echo $ECHO_N "(cached) $ECHO_C" >&6 7134else 7135 if test -n "$F77"; then 7136 ac_cv_prog_F77="$F77" # Let the user override the test. 7137else 7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7139for as_dir in $PATH 7140do 7141 IFS=$as_save_IFS 7142 test -z "$as_dir" && as_dir=. 7143 for ac_exec_ext in '' $ac_executable_extensions; do 7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7145 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7147 break 2 7148 fi 7149done 7150done 7151IFS=$as_save_IFS 7152 7153fi 7154fi 7155F77=$ac_cv_prog_F77 7156if test -n "$F77"; then 7157 { echo "$as_me:$LINENO: result: $F77" >&5 7158echo "${ECHO_T}$F77" >&6; } 7159else 7160 { echo "$as_me:$LINENO: result: no" >&5 7161echo "${ECHO_T}no" >&6; } 7162fi 7163 7164 7165 test -n "$F77" && break 7166 done 7167fi 7168if test -z "$F77"; then 7169 ac_ct_F77=$F77 7170 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 7171do 7172 # Extract the first word of "$ac_prog", so it can be a program name with args. 7173set dummy $ac_prog; ac_word=$2 7174{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7176if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 7177 echo $ECHO_N "(cached) $ECHO_C" >&6 7178else 7179 if test -n "$ac_ct_F77"; then 7180 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 7181else 7182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7183for as_dir in $PATH 7184do 7185 IFS=$as_save_IFS 7186 test -z "$as_dir" && as_dir=. 7187 for ac_exec_ext in '' $ac_executable_extensions; do 7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7189 ac_cv_prog_ac_ct_F77="$ac_prog" 7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7191 break 2 7192 fi 7193done 7194done 7195IFS=$as_save_IFS 7196 7197fi 7198fi 7199ac_ct_F77=$ac_cv_prog_ac_ct_F77 7200if test -n "$ac_ct_F77"; then 7201 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 7202echo "${ECHO_T}$ac_ct_F77" >&6; } 7203else 7204 { echo "$as_me:$LINENO: result: no" >&5 7205echo "${ECHO_T}no" >&6; } 7206fi 7207 7208 7209 test -n "$ac_ct_F77" && break 7210done 7211 7212 if test "x$ac_ct_F77" = x; then 7213 F77="" 7214 else 7215 case $cross_compiling:$ac_tool_warned in 7216yes:) 7217{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7218whose name does not start with the host triplet. If you think this 7219configuration is useful to you, please write to autoconf@gnu.org." >&5 7220echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7221whose name does not start with the host triplet. If you think this 7222configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7223ac_tool_warned=yes ;; 7224esac 7225 F77=$ac_ct_F77 7226 fi 7227fi 7228 7229 7230# Provide some information about the compiler. 7231echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 7232ac_compiler=`set X $ac_compile; echo $2` 7233{ (ac_try="$ac_compiler --version >&5" 7234case "(($ac_try" in 7235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7236 *) ac_try_echo=$ac_try;; 7237esac 7238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7239 (eval "$ac_compiler --version >&5") 2>&5 7240 ac_status=$? 7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7242 (exit $ac_status); } 7243{ (ac_try="$ac_compiler -v >&5" 7244case "(($ac_try" in 7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7246 *) ac_try_echo=$ac_try;; 7247esac 7248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7249 (eval "$ac_compiler -v >&5") 2>&5 7250 ac_status=$? 7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7252 (exit $ac_status); } 7253{ (ac_try="$ac_compiler -V >&5" 7254case "(($ac_try" in 7255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7256 *) ac_try_echo=$ac_try;; 7257esac 7258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7259 (eval "$ac_compiler -V >&5") 2>&5 7260 ac_status=$? 7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7262 (exit $ac_status); } 7263rm -f a.out 7264 7265# If we don't use `.F' as extension, the preprocessor is not run on the 7266# input file. (Note that this only needs to work for GNU compilers.) 7267ac_save_ext=$ac_ext 7268ac_ext=F 7269{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 7270echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 7271if test "${ac_cv_f77_compiler_gnu+set}" = set; then 7272 echo $ECHO_N "(cached) $ECHO_C" >&6 7273else 7274 cat >conftest.$ac_ext <<_ACEOF 7275 program main 7276#ifndef __GNUC__ 7277 choke me 7278#endif 7279 7280 end 7281_ACEOF 7282rm -f conftest.$ac_objext 7283if { (ac_try="$ac_compile" 7284case "(($ac_try" in 7285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7286 *) ac_try_echo=$ac_try;; 7287esac 7288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7289 (eval "$ac_compile") 2>conftest.er1 7290 ac_status=$? 7291 grep -v '^ *+' conftest.er1 >conftest.err 7292 rm -f conftest.er1 7293 cat conftest.err >&5 7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7295 (exit $ac_status); } && { 7296 test -z "$ac_f77_werror_flag" || 7297 test ! -s conftest.err 7298 } && test -s conftest.$ac_objext; then 7299 ac_compiler_gnu=yes 7300else 7301 echo "$as_me: failed program was:" >&5 7302sed 's/^/| /' conftest.$ac_ext >&5 7303 7304 ac_compiler_gnu=no 7305fi 7306 7307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7308ac_cv_f77_compiler_gnu=$ac_compiler_gnu 7309 7310fi 7311{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 7312echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 7313ac_ext=$ac_save_ext 7314ac_test_FFLAGS=${FFLAGS+set} 7315ac_save_FFLAGS=$FFLAGS 7316FFLAGS= 7317{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 7318echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 7319if test "${ac_cv_prog_f77_g+set}" = set; then 7320 echo $ECHO_N "(cached) $ECHO_C" >&6 7321else 7322 FFLAGS=-g 7323cat >conftest.$ac_ext <<_ACEOF 7324 program main 7325 7326 end 7327_ACEOF 7328rm -f conftest.$ac_objext 7329if { (ac_try="$ac_compile" 7330case "(($ac_try" in 7331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7332 *) ac_try_echo=$ac_try;; 7333esac 7334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7335 (eval "$ac_compile") 2>conftest.er1 7336 ac_status=$? 7337 grep -v '^ *+' conftest.er1 >conftest.err 7338 rm -f conftest.er1 7339 cat conftest.err >&5 7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7341 (exit $ac_status); } && { 7342 test -z "$ac_f77_werror_flag" || 7343 test ! -s conftest.err 7344 } && test -s conftest.$ac_objext; then 7345 ac_cv_prog_f77_g=yes 7346else 7347 echo "$as_me: failed program was:" >&5 7348sed 's/^/| /' conftest.$ac_ext >&5 7349 7350 ac_cv_prog_f77_g=no 7351fi 7352 7353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7354 7355fi 7356{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 7357echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 7358if test "$ac_test_FFLAGS" = set; then 7359 FFLAGS=$ac_save_FFLAGS 7360elif test $ac_cv_prog_f77_g = yes; then 7361 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7362 FFLAGS="-g -O2" 7363 else 7364 FFLAGS="-g" 7365 fi 7366else 7367 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7368 FFLAGS="-O2" 7369 else 7370 FFLAGS= 7371 fi 7372fi 7373 7374G77=`test $ac_compiler_gnu = yes && echo yes` 7375ac_ext=c 7376ac_cpp='$CPP $CPPFLAGS' 7377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7379ac_compiler_gnu=$ac_cv_c_compiler_gnu 7380 7381 7382 7383# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 7384# find the maximum length of command line arguments 7385{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 7386echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 7387if test "${lt_cv_sys_max_cmd_len+set}" = set; then 7388 echo $ECHO_N "(cached) $ECHO_C" >&6 7389else 7390 i=0 7391 teststring="ABCD" 7392 7393 case $build_os in 7394 msdosdjgpp*) 7395 # On DJGPP, this test can blow up pretty badly due to problems in libc 7396 # (any single argument exceeding 2000 bytes causes a buffer overrun 7397 # during glob expansion). Even if it were fixed, the result of this 7398 # check would be larger than it should be. 7399 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7400 ;; 7401 7402 gnu*) 7403 # Under GNU Hurd, this test is not required because there is 7404 # no limit to the length of command line arguments. 7405 # Libtool will interpret -1 as no limit whatsoever 7406 lt_cv_sys_max_cmd_len=-1; 7407 ;; 7408 7409 cygwin* | mingw*) 7410 # On Win9x/ME, this test blows up -- it succeeds, but takes 7411 # about 5 minutes as the teststring grows exponentially. 7412 # Worse, since 9x/ME are not pre-emptively multitasking, 7413 # you end up with a "frozen" computer, even though with patience 7414 # the test eventually succeeds (with a max line length of 256k). 7415 # Instead, let's just punt: use the minimum linelength reported by 7416 # all of the supported platforms: 8192 (on NT/2K/XP). 7417 lt_cv_sys_max_cmd_len=8192; 7418 ;; 7419 7420 amigaos*) 7421 # On AmigaOS with pdksh, this test takes hours, literally. 7422 # So we just punt and use a minimum line length of 8192. 7423 lt_cv_sys_max_cmd_len=8192; 7424 ;; 7425 7426 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7427 # This has been around since 386BSD, at least. Likely further. 7428 if test -x /sbin/sysctl; then 7429 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7430 elif test -x /usr/sbin/sysctl; then 7431 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7432 else 7433 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7434 fi 7435 # And add a safety zone 7436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7438 ;; 7439 7440 interix*) 7441 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7442 lt_cv_sys_max_cmd_len=196608 7443 ;; 7444 7445 osf*) 7446 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7447 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7448 # nice to cause kernel panics so lets avoid the loop below. 7449 # First set a reasonable default. 7450 lt_cv_sys_max_cmd_len=16384 7451 # 7452 if test -x /sbin/sysconfig; then 7453 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7454 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7455 esac 7456 fi 7457 ;; 7458 sco3.2v5*) 7459 lt_cv_sys_max_cmd_len=102400 7460 ;; 7461 sysv5* | sco5v6* | sysv4.2uw2*) 7462 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7463 if test -n "$kargmax"; then 7464 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7465 else 7466 lt_cv_sys_max_cmd_len=32768 7467 fi 7468 ;; 7469 *) 7470 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7471 if test -n "$lt_cv_sys_max_cmd_len"; then 7472 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7474 else 7475 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7476 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 7477 = "XX$teststring") >/dev/null 2>&1 && 7478 new_result=`expr "X$teststring" : ".*" 2>&1` && 7479 lt_cv_sys_max_cmd_len=$new_result && 7480 test $i != 17 # 1/2 MB should be enough 7481 do 7482 i=`expr $i + 1` 7483 teststring=$teststring$teststring 7484 done 7485 teststring= 7486 # Add a significant safety factor because C++ compilers can tack on massive 7487 # amounts of additional arguments before passing them to the linker. 7488 # It appears as though 1/2 is a usable value. 7489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7490 fi 7491 ;; 7492 esac 7493 7494fi 7495 7496if test -n $lt_cv_sys_max_cmd_len ; then 7497 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 7498echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 7499else 7500 { echo "$as_me:$LINENO: result: none" >&5 7501echo "${ECHO_T}none" >&6; } 7502fi 7503 7504 7505 7506 7507 7508# Check for command to grab the raw symbol name followed by C symbol from nm. 7509{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 7510echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 7511if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 7512 echo $ECHO_N "(cached) $ECHO_C" >&6 7513else 7514 7515# These are sane defaults that work on at least a few old systems. 7516# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7517 7518# Character class describing NM global symbol codes. 7519symcode='[BCDEGRST]' 7520 7521# Regexp to match symbols that can be accessed directly from C. 7522sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7523 7524# Transform an extracted symbol line into a proper C declaration 7525lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7526 7527# Transform an extracted symbol line into symbol name and symbol address 7528lt_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'" 7529 7530# Define system-specific variables. 7531case $host_os in 7532aix*) 7533 symcode='[BCDT]' 7534 ;; 7535cygwin* | mingw* | pw32*) 7536 symcode='[ABCDGISTW]' 7537 ;; 7538hpux*) # Its linker distinguishes data from code symbols 7539 if test "$host_cpu" = ia64; then 7540 symcode='[ABCDEGRST]' 7541 fi 7542 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7543 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'" 7544 ;; 7545linux* | k*bsd*-gnu) 7546 if test "$host_cpu" = ia64; then 7547 symcode='[ABCDGIRSTW]' 7548 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7549 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'" 7550 fi 7551 ;; 7552irix* | nonstopux*) 7553 symcode='[BCDEGRST]' 7554 ;; 7555osf*) 7556 symcode='[BCDEGQRST]' 7557 ;; 7558solaris*) 7559 symcode='[BDRT]' 7560 ;; 7561sco3.2v5*) 7562 symcode='[DT]' 7563 ;; 7564sysv4.2uw2*) 7565 symcode='[DT]' 7566 ;; 7567sysv5* | sco5v6* | unixware* | OpenUNIX*) 7568 symcode='[ABDT]' 7569 ;; 7570sysv4) 7571 symcode='[DFNSTU]' 7572 ;; 7573esac 7574 7575# Handle CRLF in mingw tool chain 7576opt_cr= 7577case $build_os in 7578mingw*) 7579 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7580 ;; 7581esac 7582 7583# If we're using GNU nm, then use its standard symbol codes. 7584case `$NM -V 2>&1` in 7585*GNU* | *'with BFD'*) 7586 symcode='[ABCDGIRSTW]' ;; 7587esac 7588 7589# Try without a prefix undercore, then with it. 7590for ac_symprfx in "" "_"; do 7591 7592 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7593 symxfrm="\\1 $ac_symprfx\\2 \\2" 7594 7595 # Write the raw and C identifiers. 7596 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7597 7598 # Check to see that the pipe works correctly. 7599 pipe_works=no 7600 7601 rm -f conftest* 7602 cat > conftest.$ac_ext <<EOF 7603#ifdef __cplusplus 7604extern "C" { 7605#endif 7606char nm_test_var; 7607void nm_test_func(){} 7608#ifdef __cplusplus 7609} 7610#endif 7611int main(){nm_test_var='a';nm_test_func();return(0);} 7612EOF 7613 7614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7615 (eval $ac_compile) 2>&5 7616 ac_status=$? 7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7618 (exit $ac_status); }; then 7619 # Now try to grab the symbols. 7620 nlist=conftest.nm 7621 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 7622 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7623 ac_status=$? 7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7625 (exit $ac_status); } && test -s "$nlist"; then 7626 # Try sorting and uniquifying the output. 7627 if sort "$nlist" | uniq > "$nlist"T; then 7628 mv -f "$nlist"T "$nlist" 7629 else 7630 rm -f "$nlist"T 7631 fi 7632 7633 # Make sure that we snagged all the symbols we need. 7634 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7635 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7636 cat <<EOF > conftest.$ac_ext 7637#ifdef __cplusplus 7638extern "C" { 7639#endif 7640 7641EOF 7642 # Now generate the symbol file. 7643 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7644 7645 cat <<EOF >> conftest.$ac_ext 7646#if defined (__STDC__) && __STDC__ 7647# define lt_ptr_t void * 7648#else 7649# define lt_ptr_t char * 7650# define const 7651#endif 7652 7653/* The mapping between symbol names and symbols. */ 7654const struct { 7655 const char *name; 7656 lt_ptr_t address; 7657} 7658lt_preloaded_symbols[] = 7659{ 7660EOF 7661 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7662 cat <<\EOF >> conftest.$ac_ext 7663 {0, (lt_ptr_t) 0} 7664}; 7665 7666#ifdef __cplusplus 7667} 7668#endif 7669EOF 7670 # Now try linking the two files. 7671 mv conftest.$ac_objext conftstm.$ac_objext 7672 lt_save_LIBS="$LIBS" 7673 lt_save_CFLAGS="$CFLAGS" 7674 LIBS="conftstm.$ac_objext" 7675 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7677 (eval $ac_link) 2>&5 7678 ac_status=$? 7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7680 (exit $ac_status); } && test -s conftest${ac_exeext}; then 7681 pipe_works=yes 7682 fi 7683 LIBS="$lt_save_LIBS" 7684 CFLAGS="$lt_save_CFLAGS" 7685 else 7686 echo "cannot find nm_test_func in $nlist" >&5 7687 fi 7688 else 7689 echo "cannot find nm_test_var in $nlist" >&5 7690 fi 7691 else 7692 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7693 fi 7694 else 7695 echo "$progname: failed program was:" >&5 7696 cat conftest.$ac_ext >&5 7697 fi 7698 rm -rf conftest* conftst* 7699 7700 # Do not use the global_symbol_pipe unless it works. 7701 if test "$pipe_works" = yes; then 7702 break 7703 else 7704 lt_cv_sys_global_symbol_pipe= 7705 fi 7706done 7707 7708fi 7709 7710if test -z "$lt_cv_sys_global_symbol_pipe"; then 7711 lt_cv_sys_global_symbol_to_cdecl= 7712fi 7713if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7714 { echo "$as_me:$LINENO: result: failed" >&5 7715echo "${ECHO_T}failed" >&6; } 7716else 7717 { echo "$as_me:$LINENO: result: ok" >&5 7718echo "${ECHO_T}ok" >&6; } 7719fi 7720 7721{ echo "$as_me:$LINENO: checking for objdir" >&5 7722echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 7723if test "${lt_cv_objdir+set}" = set; then 7724 echo $ECHO_N "(cached) $ECHO_C" >&6 7725else 7726 rm -f .libs 2>/dev/null 7727mkdir .libs 2>/dev/null 7728if test -d .libs; then 7729 lt_cv_objdir=.libs 7730else 7731 # MS-DOS does not allow filenames that begin with a dot. 7732 lt_cv_objdir=_libs 7733fi 7734rmdir .libs 2>/dev/null 7735fi 7736{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7737echo "${ECHO_T}$lt_cv_objdir" >&6; } 7738objdir=$lt_cv_objdir 7739 7740 7741 7742 7743 7744case $host_os in 7745aix3*) 7746 # AIX sometimes has problems with the GCC collect2 program. For some 7747 # reason, if we set the COLLECT_NAMES environment variable, the problems 7748 # vanish in a puff of smoke. 7749 if test "X${COLLECT_NAMES+set}" != Xset; then 7750 COLLECT_NAMES= 7751 export COLLECT_NAMES 7752 fi 7753 ;; 7754esac 7755 7756# Sed substitution that helps us do robust quoting. It backslashifies 7757# metacharacters that are still active within double-quoted strings. 7758Xsed='sed -e 1s/^X//' 7759sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7760 7761# Same as above, but do not quote variable references. 7762double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7763 7764# Sed substitution to delay expansion of an escaped shell variable in a 7765# double_quote_subst'ed string. 7766delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7767 7768# Sed substitution to avoid accidental globbing in evaled expressions 7769no_glob_subst='s/\*/\\\*/g' 7770 7771# Constants: 7772rm="rm -f" 7773 7774# Global variables: 7775default_ofile=libtool 7776can_build_shared=yes 7777 7778# All known linkers require a `.a' archive for static linking (except MSVC, 7779# which needs '.lib'). 7780libext=a 7781ltmain="$ac_aux_dir/ltmain.sh" 7782ofile="$default_ofile" 7783with_gnu_ld="$lt_cv_prog_gnu_ld" 7784 7785if test -n "$ac_tool_prefix"; then 7786 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7787set dummy ${ac_tool_prefix}ar; ac_word=$2 7788{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7790if test "${ac_cv_prog_AR+set}" = set; then 7791 echo $ECHO_N "(cached) $ECHO_C" >&6 7792else 7793 if test -n "$AR"; then 7794 ac_cv_prog_AR="$AR" # Let the user override the test. 7795else 7796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7797for as_dir in $PATH 7798do 7799 IFS=$as_save_IFS 7800 test -z "$as_dir" && as_dir=. 7801 for ac_exec_ext in '' $ac_executable_extensions; do 7802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7803 ac_cv_prog_AR="${ac_tool_prefix}ar" 7804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7805 break 2 7806 fi 7807done 7808done 7809IFS=$as_save_IFS 7810 7811fi 7812fi 7813AR=$ac_cv_prog_AR 7814if test -n "$AR"; then 7815 { echo "$as_me:$LINENO: result: $AR" >&5 7816echo "${ECHO_T}$AR" >&6; } 7817else 7818 { echo "$as_me:$LINENO: result: no" >&5 7819echo "${ECHO_T}no" >&6; } 7820fi 7821 7822 7823fi 7824if test -z "$ac_cv_prog_AR"; then 7825 ac_ct_AR=$AR 7826 # Extract the first word of "ar", so it can be a program name with args. 7827set dummy ar; ac_word=$2 7828{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7830if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7831 echo $ECHO_N "(cached) $ECHO_C" >&6 7832else 7833 if test -n "$ac_ct_AR"; then 7834 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7835else 7836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7837for as_dir in $PATH 7838do 7839 IFS=$as_save_IFS 7840 test -z "$as_dir" && as_dir=. 7841 for ac_exec_ext in '' $ac_executable_extensions; do 7842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7843 ac_cv_prog_ac_ct_AR="ar" 7844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7845 break 2 7846 fi 7847done 7848done 7849IFS=$as_save_IFS 7850 7851fi 7852fi 7853ac_ct_AR=$ac_cv_prog_ac_ct_AR 7854if test -n "$ac_ct_AR"; then 7855 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7856echo "${ECHO_T}$ac_ct_AR" >&6; } 7857else 7858 { echo "$as_me:$LINENO: result: no" >&5 7859echo "${ECHO_T}no" >&6; } 7860fi 7861 7862 if test "x$ac_ct_AR" = x; then 7863 AR="false" 7864 else 7865 case $cross_compiling:$ac_tool_warned in 7866yes:) 7867{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7868whose name does not start with the host triplet. If you think this 7869configuration is useful to you, please write to autoconf@gnu.org." >&5 7870echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7871whose name does not start with the host triplet. If you think this 7872configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7873ac_tool_warned=yes ;; 7874esac 7875 AR=$ac_ct_AR 7876 fi 7877else 7878 AR="$ac_cv_prog_AR" 7879fi 7880 7881if test -n "$ac_tool_prefix"; then 7882 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7883set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7884{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7886if test "${ac_cv_prog_RANLIB+set}" = set; then 7887 echo $ECHO_N "(cached) $ECHO_C" >&6 7888else 7889 if test -n "$RANLIB"; then 7890 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7891else 7892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7893for as_dir in $PATH 7894do 7895 IFS=$as_save_IFS 7896 test -z "$as_dir" && as_dir=. 7897 for ac_exec_ext in '' $ac_executable_extensions; do 7898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7899 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7901 break 2 7902 fi 7903done 7904done 7905IFS=$as_save_IFS 7906 7907fi 7908fi 7909RANLIB=$ac_cv_prog_RANLIB 7910if test -n "$RANLIB"; then 7911 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7912echo "${ECHO_T}$RANLIB" >&6; } 7913else 7914 { echo "$as_me:$LINENO: result: no" >&5 7915echo "${ECHO_T}no" >&6; } 7916fi 7917 7918 7919fi 7920if test -z "$ac_cv_prog_RANLIB"; then 7921 ac_ct_RANLIB=$RANLIB 7922 # Extract the first word of "ranlib", so it can be a program name with args. 7923set dummy ranlib; ac_word=$2 7924{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7926if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7927 echo $ECHO_N "(cached) $ECHO_C" >&6 7928else 7929 if test -n "$ac_ct_RANLIB"; then 7930 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7931else 7932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7933for as_dir in $PATH 7934do 7935 IFS=$as_save_IFS 7936 test -z "$as_dir" && as_dir=. 7937 for ac_exec_ext in '' $ac_executable_extensions; do 7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7939 ac_cv_prog_ac_ct_RANLIB="ranlib" 7940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7941 break 2 7942 fi 7943done 7944done 7945IFS=$as_save_IFS 7946 7947fi 7948fi 7949ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7950if test -n "$ac_ct_RANLIB"; then 7951 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7952echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7953else 7954 { echo "$as_me:$LINENO: result: no" >&5 7955echo "${ECHO_T}no" >&6; } 7956fi 7957 7958 if test "x$ac_ct_RANLIB" = x; then 7959 RANLIB=":" 7960 else 7961 case $cross_compiling:$ac_tool_warned in 7962yes:) 7963{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7964whose name does not start with the host triplet. If you think this 7965configuration is useful to you, please write to autoconf@gnu.org." >&5 7966echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7967whose name does not start with the host triplet. If you think this 7968configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7969ac_tool_warned=yes ;; 7970esac 7971 RANLIB=$ac_ct_RANLIB 7972 fi 7973else 7974 RANLIB="$ac_cv_prog_RANLIB" 7975fi 7976 7977if test -n "$ac_tool_prefix"; then 7978 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7979set dummy ${ac_tool_prefix}strip; ac_word=$2 7980{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7982if test "${ac_cv_prog_STRIP+set}" = set; then 7983 echo $ECHO_N "(cached) $ECHO_C" >&6 7984else 7985 if test -n "$STRIP"; then 7986 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7987else 7988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7989for as_dir in $PATH 7990do 7991 IFS=$as_save_IFS 7992 test -z "$as_dir" && as_dir=. 7993 for ac_exec_ext in '' $ac_executable_extensions; do 7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7995 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7997 break 2 7998 fi 7999done 8000done 8001IFS=$as_save_IFS 8002 8003fi 8004fi 8005STRIP=$ac_cv_prog_STRIP 8006if test -n "$STRIP"; then 8007 { echo "$as_me:$LINENO: result: $STRIP" >&5 8008echo "${ECHO_T}$STRIP" >&6; } 8009else 8010 { echo "$as_me:$LINENO: result: no" >&5 8011echo "${ECHO_T}no" >&6; } 8012fi 8013 8014 8015fi 8016if test -z "$ac_cv_prog_STRIP"; then 8017 ac_ct_STRIP=$STRIP 8018 # Extract the first word of "strip", so it can be a program name with args. 8019set dummy strip; ac_word=$2 8020{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8022if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 8023 echo $ECHO_N "(cached) $ECHO_C" >&6 8024else 8025 if test -n "$ac_ct_STRIP"; then 8026 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8027else 8028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8029for as_dir in $PATH 8030do 8031 IFS=$as_save_IFS 8032 test -z "$as_dir" && as_dir=. 8033 for ac_exec_ext in '' $ac_executable_extensions; do 8034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8035 ac_cv_prog_ac_ct_STRIP="strip" 8036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8037 break 2 8038 fi 8039done 8040done 8041IFS=$as_save_IFS 8042 8043fi 8044fi 8045ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8046if test -n "$ac_ct_STRIP"; then 8047 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 8048echo "${ECHO_T}$ac_ct_STRIP" >&6; } 8049else 8050 { echo "$as_me:$LINENO: result: no" >&5 8051echo "${ECHO_T}no" >&6; } 8052fi 8053 8054 if test "x$ac_ct_STRIP" = x; then 8055 STRIP=":" 8056 else 8057 case $cross_compiling:$ac_tool_warned in 8058yes:) 8059{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8060whose name does not start with the host triplet. If you think this 8061configuration is useful to you, please write to autoconf@gnu.org." >&5 8062echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8063whose name does not start with the host triplet. If you think this 8064configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8065ac_tool_warned=yes ;; 8066esac 8067 STRIP=$ac_ct_STRIP 8068 fi 8069else 8070 STRIP="$ac_cv_prog_STRIP" 8071fi 8072 8073 8074old_CC="$CC" 8075old_CFLAGS="$CFLAGS" 8076 8077# Set sane defaults for various variables 8078test -z "$AR" && AR=ar 8079test -z "$AR_FLAGS" && AR_FLAGS=cru 8080test -z "$AS" && AS=as 8081test -z "$CC" && CC=cc 8082test -z "$LTCC" && LTCC=$CC 8083test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8084test -z "$DLLTOOL" && DLLTOOL=dlltool 8085test -z "$LD" && LD=ld 8086test -z "$LN_S" && LN_S="ln -s" 8087test -z "$MAGIC_CMD" && MAGIC_CMD=file 8088test -z "$NM" && NM=nm 8089test -z "$SED" && SED=sed 8090test -z "$OBJDUMP" && OBJDUMP=objdump 8091test -z "$RANLIB" && RANLIB=: 8092test -z "$STRIP" && STRIP=: 8093test -z "$ac_objext" && ac_objext=o 8094 8095# Determine commands to create old-style static archives. 8096old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8097old_postinstall_cmds='chmod 644 $oldlib' 8098old_postuninstall_cmds= 8099 8100if test -n "$RANLIB"; then 8101 case $host_os in 8102 openbsd*) 8103 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8104 ;; 8105 *) 8106 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8107 ;; 8108 esac 8109 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8110fi 8111 8112for cc_temp in $compiler""; do 8113 case $cc_temp in 8114 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8115 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8116 \-*) ;; 8117 *) break;; 8118 esac 8119done 8120cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8121 8122 8123# Only perform the check for file, if the check method requires it 8124case $deplibs_check_method in 8125file_magic*) 8126 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8127 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8128echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 8129if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8130 echo $ECHO_N "(cached) $ECHO_C" >&6 8131else 8132 case $MAGIC_CMD in 8133[\\/*] | ?:[\\/]*) 8134 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8135 ;; 8136*) 8137 lt_save_MAGIC_CMD="$MAGIC_CMD" 8138 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8139 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8140 for ac_dir in $ac_dummy; do 8141 IFS="$lt_save_ifs" 8142 test -z "$ac_dir" && ac_dir=. 8143 if test -f $ac_dir/${ac_tool_prefix}file; then 8144 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8145 if test -n "$file_magic_test_file"; then 8146 case $deplibs_check_method in 8147 "file_magic "*) 8148 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8150 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8151 $EGREP "$file_magic_regex" > /dev/null; then 8152 : 8153 else 8154 cat <<EOF 1>&2 8155 8156*** Warning: the command libtool uses to detect shared libraries, 8157*** $file_magic_cmd, produces output that libtool cannot recognize. 8158*** The result is that libtool may fail to recognize shared libraries 8159*** as such. This will affect the creation of libtool libraries that 8160*** depend on shared libraries, but programs linked with such libtool 8161*** libraries will work regardless of this problem. Nevertheless, you 8162*** may want to report the problem to your system manager and/or to 8163*** bug-libtool@gnu.org 8164 8165EOF 8166 fi ;; 8167 esac 8168 fi 8169 break 8170 fi 8171 done 8172 IFS="$lt_save_ifs" 8173 MAGIC_CMD="$lt_save_MAGIC_CMD" 8174 ;; 8175esac 8176fi 8177 8178MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8179if test -n "$MAGIC_CMD"; then 8180 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8181echo "${ECHO_T}$MAGIC_CMD" >&6; } 8182else 8183 { echo "$as_me:$LINENO: result: no" >&5 8184echo "${ECHO_T}no" >&6; } 8185fi 8186 8187if test -z "$lt_cv_path_MAGIC_CMD"; then 8188 if test -n "$ac_tool_prefix"; then 8189 { echo "$as_me:$LINENO: checking for file" >&5 8190echo $ECHO_N "checking for file... $ECHO_C" >&6; } 8191if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8192 echo $ECHO_N "(cached) $ECHO_C" >&6 8193else 8194 case $MAGIC_CMD in 8195[\\/*] | ?:[\\/]*) 8196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8197 ;; 8198*) 8199 lt_save_MAGIC_CMD="$MAGIC_CMD" 8200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8201 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8202 for ac_dir in $ac_dummy; do 8203 IFS="$lt_save_ifs" 8204 test -z "$ac_dir" && ac_dir=. 8205 if test -f $ac_dir/file; then 8206 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8207 if test -n "$file_magic_test_file"; then 8208 case $deplibs_check_method in 8209 "file_magic "*) 8210 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8213 $EGREP "$file_magic_regex" > /dev/null; then 8214 : 8215 else 8216 cat <<EOF 1>&2 8217 8218*** Warning: the command libtool uses to detect shared libraries, 8219*** $file_magic_cmd, produces output that libtool cannot recognize. 8220*** The result is that libtool may fail to recognize shared libraries 8221*** as such. This will affect the creation of libtool libraries that 8222*** depend on shared libraries, but programs linked with such libtool 8223*** libraries will work regardless of this problem. Nevertheless, you 8224*** may want to report the problem to your system manager and/or to 8225*** bug-libtool@gnu.org 8226 8227EOF 8228 fi ;; 8229 esac 8230 fi 8231 break 8232 fi 8233 done 8234 IFS="$lt_save_ifs" 8235 MAGIC_CMD="$lt_save_MAGIC_CMD" 8236 ;; 8237esac 8238fi 8239 8240MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8241if test -n "$MAGIC_CMD"; then 8242 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8243echo "${ECHO_T}$MAGIC_CMD" >&6; } 8244else 8245 { echo "$as_me:$LINENO: result: no" >&5 8246echo "${ECHO_T}no" >&6; } 8247fi 8248 8249 else 8250 MAGIC_CMD=: 8251 fi 8252fi 8253 8254 fi 8255 ;; 8256esac 8257 8258 8259 case $host_os in 8260 rhapsody* | darwin*) 8261 if test -n "$ac_tool_prefix"; then 8262 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8263set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8264{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8266if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 8267 echo $ECHO_N "(cached) $ECHO_C" >&6 8268else 8269 if test -n "$DSYMUTIL"; then 8270 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8271else 8272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8273for as_dir in $PATH 8274do 8275 IFS=$as_save_IFS 8276 test -z "$as_dir" && as_dir=. 8277 for ac_exec_ext in '' $ac_executable_extensions; do 8278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8279 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8281 break 2 8282 fi 8283done 8284done 8285IFS=$as_save_IFS 8286 8287fi 8288fi 8289DSYMUTIL=$ac_cv_prog_DSYMUTIL 8290if test -n "$DSYMUTIL"; then 8291 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 8292echo "${ECHO_T}$DSYMUTIL" >&6; } 8293else 8294 { echo "$as_me:$LINENO: result: no" >&5 8295echo "${ECHO_T}no" >&6; } 8296fi 8297 8298 8299fi 8300if test -z "$ac_cv_prog_DSYMUTIL"; then 8301 ac_ct_DSYMUTIL=$DSYMUTIL 8302 # Extract the first word of "dsymutil", so it can be a program name with args. 8303set dummy dsymutil; ac_word=$2 8304{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8306if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 8307 echo $ECHO_N "(cached) $ECHO_C" >&6 8308else 8309 if test -n "$ac_ct_DSYMUTIL"; then 8310 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8311else 8312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8313for as_dir in $PATH 8314do 8315 IFS=$as_save_IFS 8316 test -z "$as_dir" && as_dir=. 8317 for ac_exec_ext in '' $ac_executable_extensions; do 8318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8319 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8321 break 2 8322 fi 8323done 8324done 8325IFS=$as_save_IFS 8326 8327fi 8328fi 8329ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8330if test -n "$ac_ct_DSYMUTIL"; then 8331 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 8332echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 8333else 8334 { echo "$as_me:$LINENO: result: no" >&5 8335echo "${ECHO_T}no" >&6; } 8336fi 8337 8338 if test "x$ac_ct_DSYMUTIL" = x; then 8339 DSYMUTIL=":" 8340 else 8341 case $cross_compiling:$ac_tool_warned in 8342yes:) 8343{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8344whose name does not start with the host triplet. If you think this 8345configuration is useful to you, please write to autoconf@gnu.org." >&5 8346echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8347whose name does not start with the host triplet. If you think this 8348configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8349ac_tool_warned=yes ;; 8350esac 8351 DSYMUTIL=$ac_ct_DSYMUTIL 8352 fi 8353else 8354 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8355fi 8356 8357 if test -n "$ac_tool_prefix"; then 8358 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8359set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8360{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8362if test "${ac_cv_prog_NMEDIT+set}" = set; then 8363 echo $ECHO_N "(cached) $ECHO_C" >&6 8364else 8365 if test -n "$NMEDIT"; then 8366 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8367else 8368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8369for as_dir in $PATH 8370do 8371 IFS=$as_save_IFS 8372 test -z "$as_dir" && as_dir=. 8373 for ac_exec_ext in '' $ac_executable_extensions; do 8374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8375 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8377 break 2 8378 fi 8379done 8380done 8381IFS=$as_save_IFS 8382 8383fi 8384fi 8385NMEDIT=$ac_cv_prog_NMEDIT 8386if test -n "$NMEDIT"; then 8387 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 8388echo "${ECHO_T}$NMEDIT" >&6; } 8389else 8390 { echo "$as_me:$LINENO: result: no" >&5 8391echo "${ECHO_T}no" >&6; } 8392fi 8393 8394 8395fi 8396if test -z "$ac_cv_prog_NMEDIT"; then 8397 ac_ct_NMEDIT=$NMEDIT 8398 # Extract the first word of "nmedit", so it can be a program name with args. 8399set dummy nmedit; ac_word=$2 8400{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8402if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 8403 echo $ECHO_N "(cached) $ECHO_C" >&6 8404else 8405 if test -n "$ac_ct_NMEDIT"; then 8406 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8407else 8408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8409for as_dir in $PATH 8410do 8411 IFS=$as_save_IFS 8412 test -z "$as_dir" && as_dir=. 8413 for ac_exec_ext in '' $ac_executable_extensions; do 8414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8415 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8417 break 2 8418 fi 8419done 8420done 8421IFS=$as_save_IFS 8422 8423fi 8424fi 8425ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8426if test -n "$ac_ct_NMEDIT"; then 8427 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 8428echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 8429else 8430 { echo "$as_me:$LINENO: result: no" >&5 8431echo "${ECHO_T}no" >&6; } 8432fi 8433 8434 if test "x$ac_ct_NMEDIT" = x; then 8435 NMEDIT=":" 8436 else 8437 case $cross_compiling:$ac_tool_warned in 8438yes:) 8439{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 8440whose name does not start with the host triplet. If you think this 8441configuration is useful to you, please write to autoconf@gnu.org." >&5 8442echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 8443whose name does not start with the host triplet. If you think this 8444configuration is useful to you, please write to autoconf@gnu.org." >&2;} 8445ac_tool_warned=yes ;; 8446esac 8447 NMEDIT=$ac_ct_NMEDIT 8448 fi 8449else 8450 NMEDIT="$ac_cv_prog_NMEDIT" 8451fi 8452 8453 8454 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 8455echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 8456if test "${lt_cv_apple_cc_single_mod+set}" = set; then 8457 echo $ECHO_N "(cached) $ECHO_C" >&6 8458else 8459 lt_cv_apple_cc_single_mod=no 8460 if test -z "${LT_MULTI_MODULE}"; then 8461 # By default we will add the -single_module flag. You can override 8462 # by either setting the environment variable LT_MULTI_MODULE 8463 # non-empty at configure time, or by adding -multi_module to the 8464 # link flags. 8465 echo "int foo(void){return 1;}" > conftest.c 8466 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8467 -dynamiclib ${wl}-single_module conftest.c 8468 if test -f libconftest.dylib; then 8469 lt_cv_apple_cc_single_mod=yes 8470 rm -rf libconftest.dylib* 8471 fi 8472 rm conftest.c 8473 fi 8474fi 8475{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 8476echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 8477 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 8478echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 8479if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 8480 echo $ECHO_N "(cached) $ECHO_C" >&6 8481else 8482 lt_cv_ld_exported_symbols_list=no 8483 save_LDFLAGS=$LDFLAGS 8484 echo "_main" > conftest.sym 8485 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8486 cat >conftest.$ac_ext <<_ACEOF 8487/* confdefs.h. */ 8488_ACEOF 8489cat confdefs.h >>conftest.$ac_ext 8490cat >>conftest.$ac_ext <<_ACEOF 8491/* end confdefs.h. */ 8492 8493int 8494main () 8495{ 8496 8497 ; 8498 return 0; 8499} 8500_ACEOF 8501rm -f conftest.$ac_objext conftest$ac_exeext 8502if { (ac_try="$ac_link" 8503case "(($ac_try" in 8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8505 *) ac_try_echo=$ac_try;; 8506esac 8507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8508 (eval "$ac_link") 2>conftest.er1 8509 ac_status=$? 8510 grep -v '^ *+' conftest.er1 >conftest.err 8511 rm -f conftest.er1 8512 cat conftest.err >&5 8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8514 (exit $ac_status); } && { 8515 test -z "$ac_c_werror_flag" || 8516 test ! -s conftest.err 8517 } && test -s conftest$ac_exeext && 8518 $as_test_x conftest$ac_exeext; then 8519 lt_cv_ld_exported_symbols_list=yes 8520else 8521 echo "$as_me: failed program was:" >&5 8522sed 's/^/| /' conftest.$ac_ext >&5 8523 8524 lt_cv_ld_exported_symbols_list=no 8525fi 8526 8527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8528 conftest$ac_exeext conftest.$ac_ext 8529 LDFLAGS="$save_LDFLAGS" 8530 8531fi 8532{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 8533echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 8534 case $host_os in 8535 rhapsody* | darwin1.[0123]) 8536 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8537 darwin1.*) 8538 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8539 darwin*) 8540 # if running on 10.5 or later, the deployment target defaults 8541 # to the OS version, if on x86, and 10.4, the deployment 8542 # target defaults to 10.4. Don't you love it? 8543 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8544 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8545 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8546 10.[012]*) 8547 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8548 10.*) 8549 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8550 esac 8551 ;; 8552 esac 8553 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8554 _lt_dar_single_mod='$single_module' 8555 fi 8556 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8557 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8558 else 8559 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 8560 fi 8561 if test "$DSYMUTIL" != ":"; then 8562 _lt_dsymutil="~$DSYMUTIL \$lib || :" 8563 else 8564 _lt_dsymutil= 8565 fi 8566 ;; 8567 esac 8568 8569 8570enable_dlopen=no 8571enable_win32_dll=yes 8572 8573# Check whether --enable-libtool-lock was given. 8574if test "${enable_libtool_lock+set}" = set; then 8575 enableval=$enable_libtool_lock; 8576fi 8577 8578test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8579 8580 8581# Check whether --with-pic was given. 8582if test "${with_pic+set}" = set; then 8583 withval=$with_pic; pic_mode="$withval" 8584else 8585 pic_mode=default 8586fi 8587 8588test -z "$pic_mode" && pic_mode=default 8589 8590# Use C for the default configuration in the libtool script 8591tagname= 8592lt_save_CC="$CC" 8593ac_ext=c 8594ac_cpp='$CPP $CPPFLAGS' 8595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8597ac_compiler_gnu=$ac_cv_c_compiler_gnu 8598 8599 8600# Source file extension for C test sources. 8601ac_ext=c 8602 8603# Object file extension for compiled C test sources. 8604objext=o 8605objext=$objext 8606 8607# Code to be used in simple compile tests 8608lt_simple_compile_test_code="int some_variable = 0;" 8609 8610# Code to be used in simple link tests 8611lt_simple_link_test_code='int main(){return(0);}' 8612 8613 8614# If no C compiler was specified, use CC. 8615LTCC=${LTCC-"$CC"} 8616 8617# If no C compiler flags were specified, use CFLAGS. 8618LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8619 8620# Allow CC to be a program name with arguments. 8621compiler=$CC 8622 8623 8624# save warnings/boilerplate of simple test code 8625ac_outfile=conftest.$ac_objext 8626echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8627eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8628_lt_compiler_boilerplate=`cat conftest.err` 8629$rm conftest* 8630 8631ac_outfile=conftest.$ac_objext 8632echo "$lt_simple_link_test_code" >conftest.$ac_ext 8633eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8634_lt_linker_boilerplate=`cat conftest.err` 8635$rm -r conftest* 8636 8637 8638 8639lt_prog_compiler_no_builtin_flag= 8640 8641if test "$GCC" = yes; then 8642 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8643 8644 8645{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8646echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 8647if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8648 echo $ECHO_N "(cached) $ECHO_C" >&6 8649else 8650 lt_cv_prog_compiler_rtti_exceptions=no 8651 ac_outfile=conftest.$ac_objext 8652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8653 lt_compiler_flag="-fno-rtti -fno-exceptions" 8654 # Insert the option either (1) after the last *FLAGS variable, or 8655 # (2) before a word containing "conftest.", or (3) at the end. 8656 # Note that $ac_compile itself does not contain backslashes and begins 8657 # with a dollar sign (not a hyphen), so the echo should work correctly. 8658 # The option is referenced via a variable to avoid confusing sed. 8659 lt_compile=`echo "$ac_compile" | $SED \ 8660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8662 -e 's:$: $lt_compiler_flag:'` 8663 (eval echo "\"\$as_me:8663: $lt_compile\"" >&5) 8664 (eval "$lt_compile" 2>conftest.err) 8665 ac_status=$? 8666 cat conftest.err >&5 8667 echo "$as_me:8667: \$? = $ac_status" >&5 8668 if (exit $ac_status) && test -s "$ac_outfile"; then 8669 # The compiler can only warn and ignore the option if not recognized 8670 # So say no if there are warnings other than the usual output. 8671 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8674 lt_cv_prog_compiler_rtti_exceptions=yes 8675 fi 8676 fi 8677 $rm conftest* 8678 8679fi 8680{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8681echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8682 8683if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8684 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8685else 8686 : 8687fi 8688 8689fi 8690 8691lt_prog_compiler_wl= 8692lt_prog_compiler_pic= 8693lt_prog_compiler_static= 8694 8695{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 8696echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 8697 8698 if test "$GCC" = yes; then 8699 lt_prog_compiler_wl='-Wl,' 8700 lt_prog_compiler_static='-static' 8701 8702 case $host_os in 8703 aix*) 8704 # All AIX code is PIC. 8705 if test "$host_cpu" = ia64; then 8706 # AIX 5 now supports IA64 processor 8707 lt_prog_compiler_static='-Bstatic' 8708 fi 8709 ;; 8710 8711 amigaos*) 8712 # FIXME: we need at least 68020 code to build shared libraries, but 8713 # adding the `-m68020' flag to GCC prevents building anything better, 8714 # like `-m68040'. 8715 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8716 ;; 8717 8718 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8719 # PIC is the default for these OSes. 8720 ;; 8721 8722 mingw* | cygwin* | pw32* | os2*) 8723 # This hack is so that the source file can tell whether it is being 8724 # built for inclusion in a dll (and should export symbols for example). 8725 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8726 # (--disable-auto-import) libraries 8727 lt_prog_compiler_pic='-DDLL_EXPORT' 8728 ;; 8729 8730 darwin* | rhapsody*) 8731 # PIC is the default on this platform 8732 # Common symbols not allowed in MH_DYLIB files 8733 lt_prog_compiler_pic='-fno-common' 8734 ;; 8735 8736 interix[3-9]*) 8737 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8738 # Instead, we relocate shared libraries at runtime. 8739 ;; 8740 8741 msdosdjgpp*) 8742 # Just because we use GCC doesn't mean we suddenly get shared libraries 8743 # on systems that don't support them. 8744 lt_prog_compiler_can_build_shared=no 8745 enable_shared=no 8746 ;; 8747 8748 sysv4*MP*) 8749 if test -d /usr/nec; then 8750 lt_prog_compiler_pic=-Kconform_pic 8751 fi 8752 ;; 8753 8754 hpux*) 8755 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8756 # not for PA HP-UX. 8757 case $host_cpu in 8758 hppa*64*|ia64*) 8759 # +Z the default 8760 ;; 8761 *) 8762 lt_prog_compiler_pic='-fPIC' 8763 ;; 8764 esac 8765 ;; 8766 8767 *) 8768 lt_prog_compiler_pic='-fPIC' 8769 ;; 8770 esac 8771 else 8772 # PORTME Check for flag to pass linker flags through the system compiler. 8773 case $host_os in 8774 aix*) 8775 lt_prog_compiler_wl='-Wl,' 8776 if test "$host_cpu" = ia64; then 8777 # AIX 5 now supports IA64 processor 8778 lt_prog_compiler_static='-Bstatic' 8779 else 8780 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8781 fi 8782 ;; 8783 darwin*) 8784 # PIC is the default on this platform 8785 # Common symbols not allowed in MH_DYLIB files 8786 case $cc_basename in 8787 xlc*) 8788 lt_prog_compiler_pic='-qnocommon' 8789 lt_prog_compiler_wl='-Wl,' 8790 ;; 8791 esac 8792 ;; 8793 8794 mingw* | cygwin* | pw32* | os2*) 8795 # This hack is so that the source file can tell whether it is being 8796 # built for inclusion in a dll (and should export symbols for example). 8797 lt_prog_compiler_pic='-DDLL_EXPORT' 8798 ;; 8799 8800 hpux9* | hpux10* | hpux11*) 8801 lt_prog_compiler_wl='-Wl,' 8802 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8803 # not for PA HP-UX. 8804 case $host_cpu in 8805 hppa*64*|ia64*) 8806 # +Z the default 8807 ;; 8808 *) 8809 lt_prog_compiler_pic='+Z' 8810 ;; 8811 esac 8812 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8813 lt_prog_compiler_static='${wl}-a ${wl}archive' 8814 ;; 8815 8816 irix5* | irix6* | nonstopux*) 8817 lt_prog_compiler_wl='-Wl,' 8818 # PIC (with -KPIC) is the default. 8819 lt_prog_compiler_static='-non_shared' 8820 ;; 8821 8822 newsos6) 8823 lt_prog_compiler_pic='-KPIC' 8824 lt_prog_compiler_static='-Bstatic' 8825 ;; 8826 8827 linux* | k*bsd*-gnu) 8828 case $cc_basename in 8829 icc* | ecc*) 8830 lt_prog_compiler_wl='-Wl,' 8831 lt_prog_compiler_pic='-KPIC' 8832 lt_prog_compiler_static='-static' 8833 ;; 8834 pgcc* | pgf77* | pgf90* | pgf95*) 8835 # Portland Group compilers (*not* the Pentium gcc compiler, 8836 # which looks to be a dead project) 8837 lt_prog_compiler_wl='-Wl,' 8838 lt_prog_compiler_pic='-fpic' 8839 lt_prog_compiler_static='-Bstatic' 8840 ;; 8841 ccc*) 8842 lt_prog_compiler_wl='-Wl,' 8843 # All Alpha code is PIC. 8844 lt_prog_compiler_static='-non_shared' 8845 ;; 8846 *) 8847 case `$CC -V 2>&1 | sed 5q` in 8848 *Sun\ C*) 8849 # Sun C 5.9 8850 lt_prog_compiler_pic='-KPIC' 8851 lt_prog_compiler_static='-Bstatic' 8852 lt_prog_compiler_wl='-Wl,' 8853 ;; 8854 *Sun\ F*) 8855 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8856 lt_prog_compiler_pic='-KPIC' 8857 lt_prog_compiler_static='-Bstatic' 8858 lt_prog_compiler_wl='' 8859 ;; 8860 esac 8861 ;; 8862 esac 8863 ;; 8864 8865 osf3* | osf4* | osf5*) 8866 lt_prog_compiler_wl='-Wl,' 8867 # All OSF/1 code is PIC. 8868 lt_prog_compiler_static='-non_shared' 8869 ;; 8870 8871 rdos*) 8872 lt_prog_compiler_static='-non_shared' 8873 ;; 8874 8875 solaris*) 8876 lt_prog_compiler_pic='-KPIC' 8877 lt_prog_compiler_static='-Bstatic' 8878 case $cc_basename in 8879 f77* | f90* | f95*) 8880 lt_prog_compiler_wl='-Qoption ld ';; 8881 *) 8882 lt_prog_compiler_wl='-Wl,';; 8883 esac 8884 ;; 8885 8886 sunos4*) 8887 lt_prog_compiler_wl='-Qoption ld ' 8888 lt_prog_compiler_pic='-PIC' 8889 lt_prog_compiler_static='-Bstatic' 8890 ;; 8891 8892 sysv4 | sysv4.2uw2* | sysv4.3*) 8893 lt_prog_compiler_wl='-Wl,' 8894 lt_prog_compiler_pic='-KPIC' 8895 lt_prog_compiler_static='-Bstatic' 8896 ;; 8897 8898 sysv4*MP*) 8899 if test -d /usr/nec ;then 8900 lt_prog_compiler_pic='-Kconform_pic' 8901 lt_prog_compiler_static='-Bstatic' 8902 fi 8903 ;; 8904 8905 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8906 lt_prog_compiler_wl='-Wl,' 8907 lt_prog_compiler_pic='-KPIC' 8908 lt_prog_compiler_static='-Bstatic' 8909 ;; 8910 8911 unicos*) 8912 lt_prog_compiler_wl='-Wl,' 8913 lt_prog_compiler_can_build_shared=no 8914 ;; 8915 8916 uts4*) 8917 lt_prog_compiler_pic='-pic' 8918 lt_prog_compiler_static='-Bstatic' 8919 ;; 8920 8921 *) 8922 lt_prog_compiler_can_build_shared=no 8923 ;; 8924 esac 8925 fi 8926 8927{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8928echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 8929 8930# 8931# Check to make sure the PIC flag actually works. 8932# 8933if test -n "$lt_prog_compiler_pic"; then 8934 8935{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8936echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 8937if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8938 echo $ECHO_N "(cached) $ECHO_C" >&6 8939else 8940 lt_cv_prog_compiler_pic_works=no 8941 ac_outfile=conftest.$ac_objext 8942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8943 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8944 # Insert the option either (1) after the last *FLAGS variable, or 8945 # (2) before a word containing "conftest.", or (3) at the end. 8946 # Note that $ac_compile itself does not contain backslashes and begins 8947 # with a dollar sign (not a hyphen), so the echo should work correctly. 8948 # The option is referenced via a variable to avoid confusing sed. 8949 lt_compile=`echo "$ac_compile" | $SED \ 8950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8952 -e 's:$: $lt_compiler_flag:'` 8953 (eval echo "\"\$as_me:8953: $lt_compile\"" >&5) 8954 (eval "$lt_compile" 2>conftest.err) 8955 ac_status=$? 8956 cat conftest.err >&5 8957 echo "$as_me:8957: \$? = $ac_status" >&5 8958 if (exit $ac_status) && test -s "$ac_outfile"; then 8959 # The compiler can only warn and ignore the option if not recognized 8960 # So say no if there are warnings other than the usual output. 8961 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8964 lt_cv_prog_compiler_pic_works=yes 8965 fi 8966 fi 8967 $rm conftest* 8968 8969fi 8970{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 8971echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 8972 8973if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8974 case $lt_prog_compiler_pic in 8975 "" | " "*) ;; 8976 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8977 esac 8978else 8979 lt_prog_compiler_pic= 8980 lt_prog_compiler_can_build_shared=no 8981fi 8982 8983fi 8984case $host_os in 8985 # For platforms which do not support PIC, -DPIC is meaningless: 8986 *djgpp*) 8987 lt_prog_compiler_pic= 8988 ;; 8989 *) 8990 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8991 ;; 8992esac 8993 8994# 8995# Check to make sure the static flag actually works. 8996# 8997wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8998{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8999echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 9000if test "${lt_cv_prog_compiler_static_works+set}" = set; then 9001 echo $ECHO_N "(cached) $ECHO_C" >&6 9002else 9003 lt_cv_prog_compiler_static_works=no 9004 save_LDFLAGS="$LDFLAGS" 9005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9006 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9008 # The linker can only warn and ignore the option if not recognized 9009 # So say no if there are warnings 9010 if test -s conftest.err; then 9011 # Append any errors to the config.log. 9012 cat conftest.err 1>&5 9013 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9015 if diff conftest.exp conftest.er2 >/dev/null; then 9016 lt_cv_prog_compiler_static_works=yes 9017 fi 9018 else 9019 lt_cv_prog_compiler_static_works=yes 9020 fi 9021 fi 9022 $rm -r conftest* 9023 LDFLAGS="$save_LDFLAGS" 9024 9025fi 9026{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 9027echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 9028 9029if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9030 : 9031else 9032 lt_prog_compiler_static= 9033fi 9034 9035 9036{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9037echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 9038if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9039 echo $ECHO_N "(cached) $ECHO_C" >&6 9040else 9041 lt_cv_prog_compiler_c_o=no 9042 $rm -r conftest 2>/dev/null 9043 mkdir conftest 9044 cd conftest 9045 mkdir out 9046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9047 9048 lt_compiler_flag="-o out/conftest2.$ac_objext" 9049 # Insert the option either (1) after the last *FLAGS variable, or 9050 # (2) before a word containing "conftest.", or (3) at the end. 9051 # Note that $ac_compile itself does not contain backslashes and begins 9052 # with a dollar sign (not a hyphen), so the echo should work correctly. 9053 lt_compile=`echo "$ac_compile" | $SED \ 9054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9056 -e 's:$: $lt_compiler_flag:'` 9057 (eval echo "\"\$as_me:9057: $lt_compile\"" >&5) 9058 (eval "$lt_compile" 2>out/conftest.err) 9059 ac_status=$? 9060 cat out/conftest.err >&5 9061 echo "$as_me:9061: \$? = $ac_status" >&5 9062 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9063 then 9064 # The compiler can only warn and ignore the option if not recognized 9065 # So say no if there are warnings 9066 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9069 lt_cv_prog_compiler_c_o=yes 9070 fi 9071 fi 9072 chmod u+w . 2>&5 9073 $rm conftest* 9074 # SGI C++ compiler will create directory out/ii_files/ for 9075 # template instantiation 9076 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 9077 $rm out/* && rmdir out 9078 cd .. 9079 rmdir conftest 9080 $rm conftest* 9081 9082fi 9083{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9084echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 9085 9086 9087hard_links="nottested" 9088if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9089 # do not overwrite the value of need_locks provided by the user 9090 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9091echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 9092 hard_links=yes 9093 $rm conftest* 9094 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9095 touch conftest.a 9096 ln conftest.a conftest.b 2>&5 || hard_links=no 9097 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9098 { echo "$as_me:$LINENO: result: $hard_links" >&5 9099echo "${ECHO_T}$hard_links" >&6; } 9100 if test "$hard_links" = no; then 9101 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9102echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9103 need_locks=warn 9104 fi 9105else 9106 need_locks=no 9107fi 9108 9109{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9110echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 9111 9112 runpath_var= 9113 allow_undefined_flag= 9114 enable_shared_with_static_runtimes=no 9115 archive_cmds= 9116 archive_expsym_cmds= 9117 old_archive_From_new_cmds= 9118 old_archive_from_expsyms_cmds= 9119 export_dynamic_flag_spec= 9120 whole_archive_flag_spec= 9121 thread_safe_flag_spec= 9122 hardcode_libdir_flag_spec= 9123 hardcode_libdir_flag_spec_ld= 9124 hardcode_libdir_separator= 9125 hardcode_direct=no 9126 hardcode_minus_L=no 9127 hardcode_shlibpath_var=unsupported 9128 link_all_deplibs=unknown 9129 hardcode_automatic=no 9130 module_cmds= 9131 module_expsym_cmds= 9132 always_export_symbols=no 9133 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9134 # include_expsyms should be a list of space-separated symbols to be *always* 9135 # included in the symbol list 9136 include_expsyms= 9137 # exclude_expsyms can be an extended regexp of symbols to exclude 9138 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9139 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9140 # as well as any symbol that contains `d'. 9141 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9142 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9143 # platforms (ab)use it in PIC code, but their linkers get confused if 9144 # the symbol is explicitly referenced. Since portable code cannot 9145 # rely on this symbol name, it's probably fine to never include it in 9146 # preloaded symbol tables. 9147 # Exclude shared library initialization/finalization symbols. 9148 extract_expsyms_cmds= 9149 # Just being paranoid about ensuring that cc_basename is set. 9150 for cc_temp in $compiler""; do 9151 case $cc_temp in 9152 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9153 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9154 \-*) ;; 9155 *) break;; 9156 esac 9157done 9158cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9159 9160 case $host_os in 9161 cygwin* | mingw* | pw32*) 9162 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9163 # When not using gcc, we currently assume that we are using 9164 # Microsoft Visual C++. 9165 if test "$GCC" != yes; then 9166 with_gnu_ld=no 9167 fi 9168 ;; 9169 interix*) 9170 # we just hope/assume this is gcc and not c89 (= MSVC++) 9171 with_gnu_ld=yes 9172 ;; 9173 openbsd*) 9174 with_gnu_ld=no 9175 ;; 9176 esac 9177 9178 ld_shlibs=yes 9179 if test "$with_gnu_ld" = yes; then 9180 # If archive_cmds runs LD, not CC, wlarc should be empty 9181 wlarc='${wl}' 9182 9183 # Set some defaults for GNU ld with shared library support. These 9184 # are reset later if shared libraries are not supported. Putting them 9185 # here allows them to be overridden if necessary. 9186 runpath_var=LD_RUN_PATH 9187 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 9188 export_dynamic_flag_spec='${wl}--export-dynamic' 9189 # ancient GNU ld didn't support --whole-archive et. al. 9190 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 9191 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9192 else 9193 whole_archive_flag_spec= 9194 fi 9195 supports_anon_versioning=no 9196 case `$LD -v 2>/dev/null` in 9197 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9198 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9199 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9200 *\ 2.11.*) ;; # other 2.11 versions 9201 *) supports_anon_versioning=yes ;; 9202 esac 9203 9204 # See if GNU ld supports shared libraries. 9205 case $host_os in 9206 aix[3-9]*) 9207 # On AIX/PPC, the GNU linker is very broken 9208 if test "$host_cpu" != ia64; then 9209 ld_shlibs=no 9210 cat <<EOF 1>&2 9211 9212*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9213*** to be unable to reliably create shared libraries on AIX. 9214*** Therefore, libtool is disabling shared libraries support. If you 9215*** really care for shared libraries, you may want to modify your PATH 9216*** so that a non-GNU linker is found, and then restart. 9217 9218EOF 9219 fi 9220 ;; 9221 9222 amigaos*) 9223 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)' 9224 hardcode_libdir_flag_spec='-L$libdir' 9225 hardcode_minus_L=yes 9226 9227 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 9228 # that the semantics of dynamic libraries on AmigaOS, at least up 9229 # to version 4, is to share data among multiple programs linked 9230 # with the same dynamic library. Since this doesn't match the 9231 # behavior of shared libraries on other platforms, we can't use 9232 # them. 9233 ld_shlibs=no 9234 ;; 9235 9236 beos*) 9237 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9238 allow_undefined_flag=unsupported 9239 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9240 # support --undefined. This deserves some investigation. FIXME 9241 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9242 else 9243 ld_shlibs=no 9244 fi 9245 ;; 9246 9247 cygwin* | mingw* | pw32*) 9248 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9249 # as there is no search path for DLLs. 9250 hardcode_libdir_flag_spec='-L$libdir' 9251 allow_undefined_flag=unsupported 9252 always_export_symbols=no 9253 enable_shared_with_static_runtimes=yes 9254 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9255 9256 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9258 # If the export-symbols file already is a .def file (1st line 9259 # is EXPORTS), use it as is; otherwise, prepend... 9260 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9261 cp $export_symbols $output_objdir/$soname.def; 9262 else 9263 echo EXPORTS > $output_objdir/$soname.def; 9264 cat $export_symbols >> $output_objdir/$soname.def; 9265 fi~ 9266 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9267 else 9268 ld_shlibs=no 9269 fi 9270 ;; 9271 9272 interix[3-9]*) 9273 hardcode_direct=no 9274 hardcode_shlibpath_var=no 9275 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9276 export_dynamic_flag_spec='${wl}-E' 9277 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9278 # Instead, shared libraries are loaded at an image base (0x10000000 by 9279 # default) and relocated if they conflict, which is a slow very memory 9280 # consuming and fragmenting process. To avoid this, we pick a random, 9281 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9282 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9284 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' 9285 ;; 9286 9287 gnu* | linux* | k*bsd*-gnu) 9288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9289 tmp_addflag= 9290 case $cc_basename,$host_cpu in 9291 pgcc*) # Portland Group C compiler 9292 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' 9293 tmp_addflag=' $pic_flag' 9294 ;; 9295 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9296 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' 9297 tmp_addflag=' $pic_flag -Mnomain' ;; 9298 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9299 tmp_addflag=' -i_dynamic' ;; 9300 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9301 tmp_addflag=' -i_dynamic -nofor_main' ;; 9302 ifc* | ifort*) # Intel Fortran compiler 9303 tmp_addflag=' -nofor_main' ;; 9304 esac 9305 case `$CC -V 2>&1 | sed 5q` in 9306 *Sun\ C*) # Sun C 5.9 9307 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 9308 tmp_sharedflag='-G' ;; 9309 *Sun\ F*) # Sun Fortran 8.3 9310 tmp_sharedflag='-G' ;; 9311 *) 9312 tmp_sharedflag='-shared' ;; 9313 esac 9314 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9315 9316 if test $supports_anon_versioning = yes; then 9317 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 9318 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9319 $echo "local: *; };" >> $output_objdir/$libname.ver~ 9320 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9321 fi 9322 link_all_deplibs=no 9323 else 9324 ld_shlibs=no 9325 fi 9326 ;; 9327 9328 netbsd* | netbsdelf*-gnu) 9329 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9330 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9331 wlarc= 9332 else 9333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9335 fi 9336 ;; 9337 9338 solaris*) 9339 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 9340 ld_shlibs=no 9341 cat <<EOF 1>&2 9342 9343*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9344*** create shared libraries on Solaris systems. Therefore, libtool 9345*** is disabling shared libraries support. We urge you to upgrade GNU 9346*** binutils to release 2.9.1 or newer. Another option is to modify 9347*** your PATH or compiler configuration so that the native linker is 9348*** used, and then restart. 9349 9350EOF 9351 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9354 else 9355 ld_shlibs=no 9356 fi 9357 ;; 9358 9359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9360 case `$LD -v 2>&1` in 9361 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9362 ld_shlibs=no 9363 cat <<_LT_EOF 1>&2 9364 9365*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9366*** reliably create shared libraries on SCO systems. Therefore, libtool 9367*** is disabling shared libraries support. We urge you to upgrade GNU 9368*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9369*** your PATH or compiler configuration so that the native linker is 9370*** used, and then restart. 9371 9372_LT_EOF 9373 ;; 9374 *) 9375 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9376 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 9377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 9378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 9379 else 9380 ld_shlibs=no 9381 fi 9382 ;; 9383 esac 9384 ;; 9385 9386 sunos4*) 9387 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9388 wlarc= 9389 hardcode_direct=yes 9390 hardcode_shlibpath_var=no 9391 ;; 9392 9393 *) 9394 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9395 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9396 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9397 else 9398 ld_shlibs=no 9399 fi 9400 ;; 9401 esac 9402 9403 if test "$ld_shlibs" = no; then 9404 runpath_var= 9405 hardcode_libdir_flag_spec= 9406 export_dynamic_flag_spec= 9407 whole_archive_flag_spec= 9408 fi 9409 else 9410 # PORTME fill in a description of your system's linker (not GNU ld) 9411 case $host_os in 9412 aix3*) 9413 allow_undefined_flag=unsupported 9414 always_export_symbols=yes 9415 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' 9416 # Note: this linker hardcodes the directories in LIBPATH if there 9417 # are no directories specified by -L. 9418 hardcode_minus_L=yes 9419 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9420 # Neither direct hardcoding nor static linking is supported with a 9421 # broken collect2. 9422 hardcode_direct=unsupported 9423 fi 9424 ;; 9425 9426 aix[4-9]*) 9427 if test "$host_cpu" = ia64; then 9428 # On IA64, the linker does run time linking by default, so we don't 9429 # have to do anything special. 9430 aix_use_runtimelinking=no 9431 exp_sym_flag='-Bexport' 9432 no_entry_flag="" 9433 else 9434 # If we're using GNU nm, then we don't want the "-C" option. 9435 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9436 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 9437 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' 9438 else 9439 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' 9440 fi 9441 aix_use_runtimelinking=no 9442 9443 # Test if we are trying to use run time linking or normal 9444 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9445 # need to do runtime linking. 9446 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9447 for ld_flag in $LDFLAGS; do 9448 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9449 aix_use_runtimelinking=yes 9450 break 9451 fi 9452 done 9453 ;; 9454 esac 9455 9456 exp_sym_flag='-bexport' 9457 no_entry_flag='-bnoentry' 9458 fi 9459 9460 # When large executables or shared objects are built, AIX ld can 9461 # have problems creating the table of contents. If linking a library 9462 # or program results in "error TOC overflow" add -mminimal-toc to 9463 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9464 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9465 9466 archive_cmds='' 9467 hardcode_direct=yes 9468 hardcode_libdir_separator=':' 9469 link_all_deplibs=yes 9470 9471 if test "$GCC" = yes; then 9472 case $host_os in aix4.[012]|aix4.[012].*) 9473 # We only want to do this on AIX 4.2 and lower, the check 9474 # below for broken collect2 doesn't work under 4.3+ 9475 collect2name=`${CC} -print-prog-name=collect2` 9476 if test -f "$collect2name" && \ 9477 strings "$collect2name" | grep resolve_lib_name >/dev/null 9478 then 9479 # We have reworked collect2 9480 : 9481 else 9482 # We have old collect2 9483 hardcode_direct=unsupported 9484 # It fails to find uninstalled libraries when the uninstalled 9485 # path is not listed in the libpath. Setting hardcode_minus_L 9486 # to unsupported forces relinking 9487 hardcode_minus_L=yes 9488 hardcode_libdir_flag_spec='-L$libdir' 9489 hardcode_libdir_separator= 9490 fi 9491 ;; 9492 esac 9493 shared_flag='-shared' 9494 if test "$aix_use_runtimelinking" = yes; then 9495 shared_flag="$shared_flag "'${wl}-G' 9496 fi 9497 else 9498 # not using gcc 9499 if test "$host_cpu" = ia64; then 9500 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9501 # chokes on -Wl,-G. The following line is correct: 9502 shared_flag='-G' 9503 else 9504 if test "$aix_use_runtimelinking" = yes; then 9505 shared_flag='${wl}-G' 9506 else 9507 shared_flag='${wl}-bM:SRE' 9508 fi 9509 fi 9510 fi 9511 9512 # It seems that -bexpall does not export symbols beginning with 9513 # underscore (_), so it is better to generate a list of symbols to export. 9514 always_export_symbols=yes 9515 if test "$aix_use_runtimelinking" = yes; then 9516 # Warning - without using the other runtime loading flags (-brtl), 9517 # -berok will link without error, but may produce a broken library. 9518 allow_undefined_flag='-berok' 9519 # Determine the default libpath from the value encoded in an empty executable. 9520 cat >conftest.$ac_ext <<_ACEOF 9521/* confdefs.h. */ 9522_ACEOF 9523cat confdefs.h >>conftest.$ac_ext 9524cat >>conftest.$ac_ext <<_ACEOF 9525/* end confdefs.h. */ 9526 9527int 9528main () 9529{ 9530 9531 ; 9532 return 0; 9533} 9534_ACEOF 9535rm -f conftest.$ac_objext conftest$ac_exeext 9536if { (ac_try="$ac_link" 9537case "(($ac_try" in 9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9539 *) ac_try_echo=$ac_try;; 9540esac 9541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9542 (eval "$ac_link") 2>conftest.er1 9543 ac_status=$? 9544 grep -v '^ *+' conftest.er1 >conftest.err 9545 rm -f conftest.er1 9546 cat conftest.err >&5 9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9548 (exit $ac_status); } && { 9549 test -z "$ac_c_werror_flag" || 9550 test ! -s conftest.err 9551 } && test -s conftest$ac_exeext && 9552 $as_test_x conftest$ac_exeext; then 9553 9554lt_aix_libpath_sed=' 9555 /Import File Strings/,/^$/ { 9556 /^0/ { 9557 s/^0 *\(.*\)$/\1/ 9558 p 9559 } 9560 }' 9561aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9562# Check for a 64-bit object if we didn't find anything. 9563if test -z "$aix_libpath"; then 9564 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9565fi 9566else 9567 echo "$as_me: failed program was:" >&5 9568sed 's/^/| /' conftest.$ac_ext >&5 9569 9570 9571fi 9572 9573rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9574 conftest$ac_exeext conftest.$ac_ext 9575if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9576 9577 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9578 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" 9579 else 9580 if test "$host_cpu" = ia64; then 9581 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9582 allow_undefined_flag="-z nodefs" 9583 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" 9584 else 9585 # Determine the default libpath from the value encoded in an empty executable. 9586 cat >conftest.$ac_ext <<_ACEOF 9587/* confdefs.h. */ 9588_ACEOF 9589cat confdefs.h >>conftest.$ac_ext 9590cat >>conftest.$ac_ext <<_ACEOF 9591/* end confdefs.h. */ 9592 9593int 9594main () 9595{ 9596 9597 ; 9598 return 0; 9599} 9600_ACEOF 9601rm -f conftest.$ac_objext conftest$ac_exeext 9602if { (ac_try="$ac_link" 9603case "(($ac_try" in 9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9605 *) ac_try_echo=$ac_try;; 9606esac 9607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9608 (eval "$ac_link") 2>conftest.er1 9609 ac_status=$? 9610 grep -v '^ *+' conftest.er1 >conftest.err 9611 rm -f conftest.er1 9612 cat conftest.err >&5 9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9614 (exit $ac_status); } && { 9615 test -z "$ac_c_werror_flag" || 9616 test ! -s conftest.err 9617 } && test -s conftest$ac_exeext && 9618 $as_test_x conftest$ac_exeext; then 9619 9620lt_aix_libpath_sed=' 9621 /Import File Strings/,/^$/ { 9622 /^0/ { 9623 s/^0 *\(.*\)$/\1/ 9624 p 9625 } 9626 }' 9627aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9628# Check for a 64-bit object if we didn't find anything. 9629if test -z "$aix_libpath"; then 9630 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9631fi 9632else 9633 echo "$as_me: failed program was:" >&5 9634sed 's/^/| /' conftest.$ac_ext >&5 9635 9636 9637fi 9638 9639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9640 conftest$ac_exeext conftest.$ac_ext 9641if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9642 9643 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9644 # Warning - without using the other run time loading flags, 9645 # -berok will link without error, but may produce a broken library. 9646 no_undefined_flag=' ${wl}-bernotok' 9647 allow_undefined_flag=' ${wl}-berok' 9648 # Exported symbols can be pulled into shared objects from archives 9649 whole_archive_flag_spec='$convenience' 9650 archive_cmds_need_lc=yes 9651 # This is similar to how AIX traditionally builds its shared libraries. 9652 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' 9653 fi 9654 fi 9655 ;; 9656 9657 amigaos*) 9658 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)' 9659 hardcode_libdir_flag_spec='-L$libdir' 9660 hardcode_minus_L=yes 9661 # see comment about different semantics on the GNU ld section 9662 ld_shlibs=no 9663 ;; 9664 9665 bsdi[45]*) 9666 export_dynamic_flag_spec=-rdynamic 9667 ;; 9668 9669 cygwin* | mingw* | pw32*) 9670 # When not using gcc, we currently assume that we are using 9671 # Microsoft Visual C++. 9672 # hardcode_libdir_flag_spec is actually meaningless, as there is 9673 # no search path for DLLs. 9674 hardcode_libdir_flag_spec=' ' 9675 allow_undefined_flag=unsupported 9676 # Tell ltmain to make .lib files, not .a files. 9677 libext=lib 9678 # Tell ltmain to make .dll files, not .so files. 9679 shrext_cmds=".dll" 9680 # FIXME: Setting linknames here is a bad hack. 9681 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9682 # The linker will automatically build a .lib file if we build a DLL. 9683 old_archive_From_new_cmds='true' 9684 # FIXME: Should let the user specify the lib program. 9685 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9686 fix_srcfile_path='`cygpath -w "$srcfile"`' 9687 enable_shared_with_static_runtimes=yes 9688 ;; 9689 9690 darwin* | rhapsody*) 9691 case $host_os in 9692 rhapsody* | darwin1.[012]) 9693 allow_undefined_flag='${wl}-undefined ${wl}suppress' 9694 ;; 9695 *) # Darwin 1.3 on 9696 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9697 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9698 else 9699 case ${MACOSX_DEPLOYMENT_TARGET} in 9700 10.[012]) 9701 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9702 ;; 9703 10.*) 9704 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9705 ;; 9706 esac 9707 fi 9708 ;; 9709 esac 9710 archive_cmds_need_lc=no 9711 hardcode_direct=no 9712 hardcode_automatic=yes 9713 hardcode_shlibpath_var=unsupported 9714 whole_archive_flag_spec='' 9715 link_all_deplibs=yes 9716 if test "$GCC" = yes ; then 9717 output_verbose_link_cmd='echo' 9718 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9719 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9720 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9721 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 9722 else 9723 case $cc_basename in 9724 xlc*) 9725 output_verbose_link_cmd='echo' 9726 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 9727 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9728 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9729 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9730 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}' 9731 ;; 9732 *) 9733 ld_shlibs=no 9734 ;; 9735 esac 9736 fi 9737 ;; 9738 9739 dgux*) 9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9741 hardcode_libdir_flag_spec='-L$libdir' 9742 hardcode_shlibpath_var=no 9743 ;; 9744 9745 freebsd1*) 9746 ld_shlibs=no 9747 ;; 9748 9749 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9750 # support. Future versions do this automatically, but an explicit c++rt0.o 9751 # does not break anything, and helps significantly (at the cost of a little 9752 # extra space). 9753 freebsd2.2*) 9754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9755 hardcode_libdir_flag_spec='-R$libdir' 9756 hardcode_direct=yes 9757 hardcode_shlibpath_var=no 9758 ;; 9759 9760 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9761 freebsd2*) 9762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9763 hardcode_direct=yes 9764 hardcode_minus_L=yes 9765 hardcode_shlibpath_var=no 9766 ;; 9767 9768 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9769 freebsd* | dragonfly*) 9770 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9771 hardcode_libdir_flag_spec='-R$libdir' 9772 hardcode_direct=yes 9773 hardcode_shlibpath_var=no 9774 ;; 9775 9776 hpux9*) 9777 if test "$GCC" = yes; then 9778 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' 9779 else 9780 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' 9781 fi 9782 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9783 hardcode_libdir_separator=: 9784 hardcode_direct=yes 9785 9786 # hardcode_minus_L: Not really in the search PATH, 9787 # but as the default location of the library. 9788 hardcode_minus_L=yes 9789 export_dynamic_flag_spec='${wl}-E' 9790 ;; 9791 9792 hpux10*) 9793 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9794 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9795 else 9796 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9797 fi 9798 if test "$with_gnu_ld" = no; then 9799 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9800 hardcode_libdir_separator=: 9801 9802 hardcode_direct=yes 9803 export_dynamic_flag_spec='${wl}-E' 9804 9805 # hardcode_minus_L: Not really in the search PATH, 9806 # but as the default location of the library. 9807 hardcode_minus_L=yes 9808 fi 9809 ;; 9810 9811 hpux11*) 9812 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9813 case $host_cpu in 9814 hppa*64*) 9815 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9816 ;; 9817 ia64*) 9818 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9819 ;; 9820 *) 9821 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9822 ;; 9823 esac 9824 else 9825 case $host_cpu in 9826 hppa*64*) 9827 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9828 ;; 9829 ia64*) 9830 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9831 ;; 9832 *) 9833 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9834 ;; 9835 esac 9836 fi 9837 if test "$with_gnu_ld" = no; then 9838 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9839 hardcode_libdir_separator=: 9840 9841 case $host_cpu in 9842 hppa*64*|ia64*) 9843 hardcode_libdir_flag_spec_ld='+b $libdir' 9844 hardcode_direct=no 9845 hardcode_shlibpath_var=no 9846 ;; 9847 *) 9848 hardcode_direct=yes 9849 export_dynamic_flag_spec='${wl}-E' 9850 9851 # hardcode_minus_L: Not really in the search PATH, 9852 # but as the default location of the library. 9853 hardcode_minus_L=yes 9854 ;; 9855 esac 9856 fi 9857 ;; 9858 9859 irix5* | irix6* | nonstopux*) 9860 if test "$GCC" = yes; then 9861 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' 9862 else 9863 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' 9864 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9865 fi 9866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9867 hardcode_libdir_separator=: 9868 link_all_deplibs=yes 9869 ;; 9870 9871 netbsd* | netbsdelf*-gnu) 9872 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9874 else 9875 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9876 fi 9877 hardcode_libdir_flag_spec='-R$libdir' 9878 hardcode_direct=yes 9879 hardcode_shlibpath_var=no 9880 ;; 9881 9882 newsos6) 9883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9884 hardcode_direct=yes 9885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9886 hardcode_libdir_separator=: 9887 hardcode_shlibpath_var=no 9888 ;; 9889 9890 openbsd*) 9891 if test -f /usr/libexec/ld.so; then 9892 hardcode_direct=yes 9893 hardcode_shlibpath_var=no 9894 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9895 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9896 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9897 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9898 export_dynamic_flag_spec='${wl}-E' 9899 else 9900 case $host_os in 9901 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9903 hardcode_libdir_flag_spec='-R$libdir' 9904 ;; 9905 *) 9906 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9907 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9908 ;; 9909 esac 9910 fi 9911 else 9912 ld_shlibs=no 9913 fi 9914 ;; 9915 9916 os2*) 9917 hardcode_libdir_flag_spec='-L$libdir' 9918 hardcode_minus_L=yes 9919 allow_undefined_flag=unsupported 9920 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' 9921 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9922 ;; 9923 9924 osf3*) 9925 if test "$GCC" = yes; then 9926 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9927 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' 9928 else 9929 allow_undefined_flag=' -expect_unresolved \*' 9930 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' 9931 fi 9932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9933 hardcode_libdir_separator=: 9934 ;; 9935 9936 osf4* | osf5*) # as osf3* with the addition of -msym flag 9937 if test "$GCC" = yes; then 9938 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9939 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' 9940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9941 else 9942 allow_undefined_flag=' -expect_unresolved \*' 9943 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' 9944 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9945 $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' 9946 9947 # Both c and cxx compiler support -rpath directly 9948 hardcode_libdir_flag_spec='-rpath $libdir' 9949 fi 9950 hardcode_libdir_separator=: 9951 ;; 9952 9953 solaris*) 9954 no_undefined_flag=' -z text' 9955 if test "$GCC" = yes; then 9956 wlarc='${wl}' 9957 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9958 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9959 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9960 else 9961 wlarc='' 9962 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9963 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9964 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9965 fi 9966 hardcode_libdir_flag_spec='-R$libdir' 9967 hardcode_shlibpath_var=no 9968 case $host_os in 9969 solaris2.[0-5] | solaris2.[0-5].*) ;; 9970 *) 9971 # The compiler driver will combine and reorder linker options, 9972 # but understands `-z linker_flag'. GCC discards it without `$wl', 9973 # but is careful enough not to reorder. 9974 # Supported since Solaris 2.6 (maybe 2.5.1?) 9975 if test "$GCC" = yes; then 9976 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9977 else 9978 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9979 fi 9980 ;; 9981 esac 9982 link_all_deplibs=yes 9983 ;; 9984 9985 sunos4*) 9986 if test "x$host_vendor" = xsequent; then 9987 # Use $CC to link under sequent, because it throws in some extra .o 9988 # files that make .init and .fini sections work. 9989 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9990 else 9991 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9992 fi 9993 hardcode_libdir_flag_spec='-L$libdir' 9994 hardcode_direct=yes 9995 hardcode_minus_L=yes 9996 hardcode_shlibpath_var=no 9997 ;; 9998 9999 sysv4) 10000 case $host_vendor in 10001 sni) 10002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10003 hardcode_direct=yes # is this really true??? 10004 ;; 10005 siemens) 10006 ## LD is ld it makes a PLAMLIB 10007 ## CC just makes a GrossModule. 10008 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10009 reload_cmds='$CC -r -o $output$reload_objs' 10010 hardcode_direct=no 10011 ;; 10012 motorola) 10013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10014 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10015 ;; 10016 esac 10017 runpath_var='LD_RUN_PATH' 10018 hardcode_shlibpath_var=no 10019 ;; 10020 10021 sysv4.3*) 10022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10023 hardcode_shlibpath_var=no 10024 export_dynamic_flag_spec='-Bexport' 10025 ;; 10026 10027 sysv4*MP*) 10028 if test -d /usr/nec; then 10029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10030 hardcode_shlibpath_var=no 10031 runpath_var=LD_RUN_PATH 10032 hardcode_runpath_var=yes 10033 ld_shlibs=yes 10034 fi 10035 ;; 10036 10037 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10038 no_undefined_flag='${wl}-z,text' 10039 archive_cmds_need_lc=no 10040 hardcode_shlibpath_var=no 10041 runpath_var='LD_RUN_PATH' 10042 10043 if test "$GCC" = yes; then 10044 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10045 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10046 else 10047 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10048 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10049 fi 10050 ;; 10051 10052 sysv5* | sco3.2v5* | sco5v6*) 10053 # Note: We can NOT use -z defs as we might desire, because we do not 10054 # link with -lc, and that would cause any symbols used from libc to 10055 # always be unresolved, which means just about no library would 10056 # ever link correctly. If we're not using GNU ld we use -z text 10057 # though, which does catch some bad symbols but isn't as heavy-handed 10058 # as -z defs. 10059 no_undefined_flag='${wl}-z,text' 10060 allow_undefined_flag='${wl}-z,nodefs' 10061 archive_cmds_need_lc=no 10062 hardcode_shlibpath_var=no 10063 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 10064 hardcode_libdir_separator=':' 10065 link_all_deplibs=yes 10066 export_dynamic_flag_spec='${wl}-Bexport' 10067 runpath_var='LD_RUN_PATH' 10068 10069 if test "$GCC" = yes; then 10070 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10071 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10072 else 10073 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10074 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 10075 fi 10076 ;; 10077 10078 uts4*) 10079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10080 hardcode_libdir_flag_spec='-L$libdir' 10081 hardcode_shlibpath_var=no 10082 ;; 10083 10084 *) 10085 ld_shlibs=no 10086 ;; 10087 esac 10088 fi 10089 10090{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10091echo "${ECHO_T}$ld_shlibs" >&6; } 10092test "$ld_shlibs" = no && can_build_shared=no 10093 10094# 10095# Do we need to explicitly link libc? 10096# 10097case "x$archive_cmds_need_lc" in 10098x|xyes) 10099 # Assume -lc should be added 10100 archive_cmds_need_lc=yes 10101 10102 if test "$enable_shared" = yes && test "$GCC" = yes; then 10103 case $archive_cmds in 10104 *'~'*) 10105 # FIXME: we may have to deal with multi-command sequences. 10106 ;; 10107 '$CC '*) 10108 # Test whether the compiler implicitly links with -lc since on some 10109 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10110 # to ld, don't add -lc before -lgcc. 10111 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10112echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 10113 $rm conftest* 10114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10115 10116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10117 (eval $ac_compile) 2>&5 10118 ac_status=$? 10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10120 (exit $ac_status); } 2>conftest.err; then 10121 soname=conftest 10122 lib=conftest 10123 libobjs=conftest.$ac_objext 10124 deplibs= 10125 wl=$lt_prog_compiler_wl 10126 pic_flag=$lt_prog_compiler_pic 10127 compiler_flags=-v 10128 linker_flags=-v 10129 verstring= 10130 output_objdir=. 10131 libname=conftest 10132 lt_save_allow_undefined_flag=$allow_undefined_flag 10133 allow_undefined_flag= 10134 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 10135 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 10136 ac_status=$? 10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10138 (exit $ac_status); } 10139 then 10140 archive_cmds_need_lc=no 10141 else 10142 archive_cmds_need_lc=yes 10143 fi 10144 allow_undefined_flag=$lt_save_allow_undefined_flag 10145 else 10146 cat conftest.err 1>&5 10147 fi 10148 $rm conftest* 10149 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10150echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 10151 ;; 10152 esac 10153 fi 10154 ;; 10155esac 10156 10157{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10158echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 10159library_names_spec= 10160libname_spec='lib$name' 10161soname_spec= 10162shrext_cmds=".so" 10163postinstall_cmds= 10164postuninstall_cmds= 10165finish_cmds= 10166finish_eval= 10167shlibpath_var= 10168shlibpath_overrides_runpath=unknown 10169version_type=none 10170dynamic_linker="$host_os ld.so" 10171sys_lib_dlsearch_path_spec="/lib /usr/lib" 10172 10173if test "$GCC" = yes; then 10174 case $host_os in 10175 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10176 *) lt_awk_arg="/^libraries:/" ;; 10177 esac 10178 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10179 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 10180 # if the path contains ";" then we assume it to be the separator 10181 # otherwise default to the standard path separator (i.e. ":") - it is 10182 # assumed that no part of a normal pathname contains ";" but that should 10183 # okay in the real world where ";" in dirpaths is itself problematic. 10184 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10185 else 10186 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10187 fi 10188 # Ok, now we have the path, separated by spaces, we can step through it 10189 # and add multilib dir if necessary. 10190 lt_tmp_lt_search_path_spec= 10191 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10192 for lt_sys_path in $lt_search_path_spec; do 10193 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10194 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10195 else 10196 test -d "$lt_sys_path" && \ 10197 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10198 fi 10199 done 10200 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 10201BEGIN {RS=" "; FS="/|\n";} { 10202 lt_foo=""; 10203 lt_count=0; 10204 for (lt_i = NF; lt_i > 0; lt_i--) { 10205 if ($lt_i != "" && $lt_i != ".") { 10206 if ($lt_i == "..") { 10207 lt_count++; 10208 } else { 10209 if (lt_count == 0) { 10210 lt_foo="/" $lt_i lt_foo; 10211 } else { 10212 lt_count--; 10213 } 10214 } 10215 } 10216 } 10217 if (lt_foo != "") { lt_freq[lt_foo]++; } 10218 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10219}'` 10220 sys_lib_search_path_spec=`echo $lt_search_path_spec` 10221else 10222 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10223fi 10224need_lib_prefix=unknown 10225hardcode_into_libs=no 10226 10227# when you set need_version to no, make sure it does not cause -set_version 10228# flags to be left without arguments 10229need_version=unknown 10230 10231case $host_os in 10232aix3*) 10233 version_type=linux 10234 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10235 shlibpath_var=LIBPATH 10236 10237 # AIX 3 has no versioning support, so we append a major version to the name. 10238 soname_spec='${libname}${release}${shared_ext}$major' 10239 ;; 10240 10241aix[4-9]*) 10242 version_type=linux 10243 need_lib_prefix=no 10244 need_version=no 10245 hardcode_into_libs=yes 10246 if test "$host_cpu" = ia64; then 10247 # AIX 5 supports IA64 10248 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10249 shlibpath_var=LD_LIBRARY_PATH 10250 else 10251 # With GCC up to 2.95.x, collect2 would create an import file 10252 # for dependence libraries. The import file would start with 10253 # the line `#! .'. This would cause the generated library to 10254 # depend on `.', always an invalid library. This was fixed in 10255 # development snapshots of GCC prior to 3.0. 10256 case $host_os in 10257 aix4 | aix4.[01] | aix4.[01].*) 10258 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10259 echo ' yes ' 10260 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 10261 : 10262 else 10263 can_build_shared=no 10264 fi 10265 ;; 10266 esac 10267 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10268 # soname into executable. Probably we can add versioning support to 10269 # collect2, so additional links can be useful in future. 10270 if test "$aix_use_runtimelinking" = yes; then 10271 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10272 # instead of lib<name>.a to let people know that these are not 10273 # typical AIX shared libraries. 10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10275 else 10276 # We preserve .a as extension for shared libraries through AIX4.2 10277 # and later when we are not doing run time linking. 10278 library_names_spec='${libname}${release}.a $libname.a' 10279 soname_spec='${libname}${release}${shared_ext}$major' 10280 fi 10281 shlibpath_var=LIBPATH 10282 fi 10283 ;; 10284 10285amigaos*) 10286 library_names_spec='$libname.ixlibrary $libname.a' 10287 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10288 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' 10289 ;; 10290 10291beos*) 10292 library_names_spec='${libname}${shared_ext}' 10293 dynamic_linker="$host_os ld.so" 10294 shlibpath_var=LIBRARY_PATH 10295 ;; 10296 10297bsdi[45]*) 10298 version_type=linux 10299 need_version=no 10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10301 soname_spec='${libname}${release}${shared_ext}$major' 10302 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10303 shlibpath_var=LD_LIBRARY_PATH 10304 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10305 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10306 # the default ld.so.conf also contains /usr/contrib/lib and 10307 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10308 # libtool to hard-code these into programs 10309 ;; 10310 10311cygwin* | mingw* | pw32*) 10312 version_type=windows 10313 shrext_cmds=".dll" 10314 need_version=no 10315 need_lib_prefix=no 10316 10317 case $GCC,$host_os in 10318 yes,cygwin* | yes,mingw* | yes,pw32*) 10319 library_names_spec='$libname.dll.a' 10320 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10321 postinstall_cmds='base_file=`basename \${file}`~ 10322 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 10323 dldir=$destdir/`dirname \$dlpath`~ 10324 test -d \$dldir || mkdir -p \$dldir~ 10325 $install_prog $dir/$dlname \$dldir/$dlname~ 10326 chmod a+x \$dldir/$dlname' 10327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10328 dlpath=$dir/\$dldll~ 10329 $rm \$dlpath' 10330 shlibpath_overrides_runpath=yes 10331 10332 case $host_os in 10333 cygwin*) 10334 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10335 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10336 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10337 ;; 10338 mingw*) 10339 # MinGW DLLs use traditional 'lib' prefix 10340 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10341 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10342 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 10343 # It is most probably a Windows format PATH printed by 10344 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10345 # path with ; separators, and with drive letters. We can handle the 10346 # drive letters (cygwin fileutils understands them), so leave them, 10347 # especially as we might pass files found there to a mingw objdump, 10348 # which wouldn't understand a cygwinified path. Ahh. 10349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10350 else 10351 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10352 fi 10353 ;; 10354 pw32*) 10355 # pw32 DLLs use 'pw' prefix rather than 'lib' 10356 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10357 ;; 10358 esac 10359 ;; 10360 10361 *) 10362 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10363 ;; 10364 esac 10365 dynamic_linker='Win32 ld.exe' 10366 # FIXME: first we should search . and the directory the executable is in 10367 shlibpath_var=PATH 10368 ;; 10369 10370darwin* | rhapsody*) 10371 dynamic_linker="$host_os dyld" 10372 version_type=darwin 10373 need_lib_prefix=no 10374 need_version=no 10375 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10376 soname_spec='${libname}${release}${major}$shared_ext' 10377 shlibpath_overrides_runpath=yes 10378 shlibpath_var=DYLD_LIBRARY_PATH 10379 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10380 10381 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10382 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10383 ;; 10384 10385dgux*) 10386 version_type=linux 10387 need_lib_prefix=no 10388 need_version=no 10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10390 soname_spec='${libname}${release}${shared_ext}$major' 10391 shlibpath_var=LD_LIBRARY_PATH 10392 ;; 10393 10394freebsd1*) 10395 dynamic_linker=no 10396 ;; 10397 10398freebsd* | dragonfly*) 10399 # DragonFly does not have aout. When/if they implement a new 10400 # versioning mechanism, adjust this. 10401 if test -x /usr/bin/objformat; then 10402 objformat=`/usr/bin/objformat` 10403 else 10404 case $host_os in 10405 freebsd[123]*) objformat=aout ;; 10406 *) objformat=elf ;; 10407 esac 10408 fi 10409 version_type=freebsd-$objformat 10410 case $version_type in 10411 freebsd-elf*) 10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10413 need_version=no 10414 need_lib_prefix=no 10415 ;; 10416 freebsd-*) 10417 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10418 need_version=yes 10419 ;; 10420 esac 10421 shlibpath_var=LD_LIBRARY_PATH 10422 case $host_os in 10423 freebsd2*) 10424 shlibpath_overrides_runpath=yes 10425 ;; 10426 freebsd3.[01]* | freebsdelf3.[01]*) 10427 shlibpath_overrides_runpath=yes 10428 hardcode_into_libs=yes 10429 ;; 10430 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10431 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10432 shlibpath_overrides_runpath=no 10433 hardcode_into_libs=yes 10434 ;; 10435 *) # from 4.6 on, and DragonFly 10436 shlibpath_overrides_runpath=yes 10437 hardcode_into_libs=yes 10438 ;; 10439 esac 10440 ;; 10441 10442gnu*) 10443 version_type=linux 10444 need_lib_prefix=no 10445 need_version=no 10446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10447 soname_spec='${libname}${release}${shared_ext}$major' 10448 shlibpath_var=LD_LIBRARY_PATH 10449 hardcode_into_libs=yes 10450 ;; 10451 10452hpux9* | hpux10* | hpux11*) 10453 # Give a soname corresponding to the major version so that dld.sl refuses to 10454 # link against other versions. 10455 version_type=sunos 10456 need_lib_prefix=no 10457 need_version=no 10458 case $host_cpu in 10459 ia64*) 10460 shrext_cmds='.so' 10461 hardcode_into_libs=yes 10462 dynamic_linker="$host_os dld.so" 10463 shlibpath_var=LD_LIBRARY_PATH 10464 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10466 soname_spec='${libname}${release}${shared_ext}$major' 10467 if test "X$HPUX_IA64_MODE" = X32; then 10468 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10469 else 10470 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10471 fi 10472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10473 ;; 10474 hppa*64*) 10475 shrext_cmds='.sl' 10476 hardcode_into_libs=yes 10477 dynamic_linker="$host_os dld.sl" 10478 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10481 soname_spec='${libname}${release}${shared_ext}$major' 10482 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10484 ;; 10485 *) 10486 shrext_cmds='.sl' 10487 dynamic_linker="$host_os dld.sl" 10488 shlibpath_var=SHLIB_PATH 10489 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10491 soname_spec='${libname}${release}${shared_ext}$major' 10492 ;; 10493 esac 10494 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10495 postinstall_cmds='chmod 555 $lib' 10496 ;; 10497 10498interix[3-9]*) 10499 version_type=linux 10500 need_lib_prefix=no 10501 need_version=no 10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10503 soname_spec='${libname}${release}${shared_ext}$major' 10504 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10505 shlibpath_var=LD_LIBRARY_PATH 10506 shlibpath_overrides_runpath=no 10507 hardcode_into_libs=yes 10508 ;; 10509 10510irix5* | irix6* | nonstopux*) 10511 case $host_os in 10512 nonstopux*) version_type=nonstopux ;; 10513 *) 10514 if test "$lt_cv_prog_gnu_ld" = yes; then 10515 version_type=linux 10516 else 10517 version_type=irix 10518 fi ;; 10519 esac 10520 need_lib_prefix=no 10521 need_version=no 10522 soname_spec='${libname}${release}${shared_ext}$major' 10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10524 case $host_os in 10525 irix5* | nonstopux*) 10526 libsuff= shlibsuff= 10527 ;; 10528 *) 10529 case $LD in # libtool.m4 will add one of these switches to LD 10530 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10531 libsuff= shlibsuff= libmagic=32-bit;; 10532 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10533 libsuff=32 shlibsuff=N32 libmagic=N32;; 10534 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10535 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10536 *) libsuff= shlibsuff= libmagic=never-match;; 10537 esac 10538 ;; 10539 esac 10540 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10541 shlibpath_overrides_runpath=no 10542 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10543 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10544 hardcode_into_libs=yes 10545 ;; 10546 10547# No shared lib support for Linux oldld, aout, or coff. 10548linux*oldld* | linux*aout* | linux*coff*) 10549 dynamic_linker=no 10550 ;; 10551 10552# This must be Linux ELF. 10553linux* | k*bsd*-gnu) 10554 version_type=linux 10555 need_lib_prefix=no 10556 need_version=no 10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10558 soname_spec='${libname}${release}${shared_ext}$major' 10559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10560 shlibpath_var=LD_LIBRARY_PATH 10561 shlibpath_overrides_runpath=no 10562 # This implies no fast_install, which is unacceptable. 10563 # Some rework will be needed to allow for fast_install 10564 # before this can be enabled. 10565 hardcode_into_libs=yes 10566 10567 # Append ld.so.conf contents to the search path 10568 if test -f /etc/ld.so.conf; then 10569 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10570 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10571 fi 10572 10573 # We used to test for /lib/ld.so.1 and disable shared libraries on 10574 # powerpc, because MkLinux only supported shared libraries with the 10575 # GNU dynamic linker. Since this was broken with cross compilers, 10576 # most powerpc-linux boxes support dynamic linking these days and 10577 # people can always --disable-shared, the test was removed, and we 10578 # assume the GNU/Linux dynamic linker is in use. 10579 dynamic_linker='GNU/Linux ld.so' 10580 ;; 10581 10582netbsdelf*-gnu) 10583 version_type=linux 10584 need_lib_prefix=no 10585 need_version=no 10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10587 soname_spec='${libname}${release}${shared_ext}$major' 10588 shlibpath_var=LD_LIBRARY_PATH 10589 shlibpath_overrides_runpath=no 10590 hardcode_into_libs=yes 10591 dynamic_linker='NetBSD ld.elf_so' 10592 ;; 10593 10594netbsd*) 10595 version_type=sunos 10596 need_lib_prefix=no 10597 need_version=no 10598 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10601 dynamic_linker='NetBSD (a.out) ld.so' 10602 else 10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10604 soname_spec='${libname}${release}${shared_ext}$major' 10605 dynamic_linker='NetBSD ld.elf_so' 10606 fi 10607 shlibpath_var=LD_LIBRARY_PATH 10608 shlibpath_overrides_runpath=yes 10609 hardcode_into_libs=yes 10610 ;; 10611 10612newsos6) 10613 version_type=linux 10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10615 shlibpath_var=LD_LIBRARY_PATH 10616 shlibpath_overrides_runpath=yes 10617 ;; 10618 10619nto-qnx*) 10620 version_type=linux 10621 need_lib_prefix=no 10622 need_version=no 10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10624 soname_spec='${libname}${release}${shared_ext}$major' 10625 shlibpath_var=LD_LIBRARY_PATH 10626 shlibpath_overrides_runpath=yes 10627 ;; 10628 10629openbsd*) 10630 version_type=sunos 10631 sys_lib_dlsearch_path_spec="/usr/lib" 10632 need_lib_prefix=no 10633 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10634 case $host_os in 10635 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10636 *) need_version=no ;; 10637 esac 10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10640 shlibpath_var=LD_LIBRARY_PATH 10641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10642 case $host_os in 10643 openbsd2.[89] | openbsd2.[89].*) 10644 shlibpath_overrides_runpath=no 10645 ;; 10646 *) 10647 shlibpath_overrides_runpath=yes 10648 ;; 10649 esac 10650 else 10651 shlibpath_overrides_runpath=yes 10652 fi 10653 ;; 10654 10655os2*) 10656 libname_spec='$name' 10657 shrext_cmds=".dll" 10658 need_lib_prefix=no 10659 library_names_spec='$libname${shared_ext} $libname.a' 10660 dynamic_linker='OS/2 ld.exe' 10661 shlibpath_var=LIBPATH 10662 ;; 10663 10664osf3* | osf4* | osf5*) 10665 version_type=osf 10666 need_lib_prefix=no 10667 need_version=no 10668 soname_spec='${libname}${release}${shared_ext}$major' 10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10670 shlibpath_var=LD_LIBRARY_PATH 10671 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10672 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10673 ;; 10674 10675rdos*) 10676 dynamic_linker=no 10677 ;; 10678 10679solaris*) 10680 version_type=linux 10681 need_lib_prefix=no 10682 need_version=no 10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10684 soname_spec='${libname}${release}${shared_ext}$major' 10685 shlibpath_var=LD_LIBRARY_PATH 10686 shlibpath_overrides_runpath=yes 10687 hardcode_into_libs=yes 10688 # ldd complains unless libraries are executable 10689 postinstall_cmds='chmod +x $lib' 10690 ;; 10691 10692sunos4*) 10693 version_type=sunos 10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10695 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10696 shlibpath_var=LD_LIBRARY_PATH 10697 shlibpath_overrides_runpath=yes 10698 if test "$with_gnu_ld" = yes; then 10699 need_lib_prefix=no 10700 fi 10701 need_version=yes 10702 ;; 10703 10704sysv4 | sysv4.3*) 10705 version_type=linux 10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10707 soname_spec='${libname}${release}${shared_ext}$major' 10708 shlibpath_var=LD_LIBRARY_PATH 10709 case $host_vendor in 10710 sni) 10711 shlibpath_overrides_runpath=no 10712 need_lib_prefix=no 10713 export_dynamic_flag_spec='${wl}-Blargedynsym' 10714 runpath_var=LD_RUN_PATH 10715 ;; 10716 siemens) 10717 need_lib_prefix=no 10718 ;; 10719 motorola) 10720 need_lib_prefix=no 10721 need_version=no 10722 shlibpath_overrides_runpath=no 10723 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10724 ;; 10725 esac 10726 ;; 10727 10728sysv4*MP*) 10729 if test -d /usr/nec ;then 10730 version_type=linux 10731 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10732 soname_spec='$libname${shared_ext}.$major' 10733 shlibpath_var=LD_LIBRARY_PATH 10734 fi 10735 ;; 10736 10737sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10738 version_type=freebsd-elf 10739 need_lib_prefix=no 10740 need_version=no 10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10742 soname_spec='${libname}${release}${shared_ext}$major' 10743 shlibpath_var=LD_LIBRARY_PATH 10744 hardcode_into_libs=yes 10745 if test "$with_gnu_ld" = yes; then 10746 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10747 shlibpath_overrides_runpath=no 10748 else 10749 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10750 shlibpath_overrides_runpath=yes 10751 case $host_os in 10752 sco3.2v5*) 10753 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10754 ;; 10755 esac 10756 fi 10757 sys_lib_dlsearch_path_spec='/usr/lib' 10758 ;; 10759 10760uts4*) 10761 version_type=linux 10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10763 soname_spec='${libname}${release}${shared_ext}$major' 10764 shlibpath_var=LD_LIBRARY_PATH 10765 ;; 10766 10767*) 10768 dynamic_linker=no 10769 ;; 10770esac 10771{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10772echo "${ECHO_T}$dynamic_linker" >&6; } 10773test "$dynamic_linker" = no && can_build_shared=no 10774 10775if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10776 echo $ECHO_N "(cached) $ECHO_C" >&6 10777else 10778 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 10779fi 10780 10781sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10782if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10783 echo $ECHO_N "(cached) $ECHO_C" >&6 10784else 10785 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 10786fi 10787 10788sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10789 10790variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10791if test "$GCC" = yes; then 10792 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10793fi 10794 10795{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10796echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 10797hardcode_action= 10798if test -n "$hardcode_libdir_flag_spec" || \ 10799 test -n "$runpath_var" || \ 10800 test "X$hardcode_automatic" = "Xyes" ; then 10801 10802 # We can hardcode non-existant directories. 10803 if test "$hardcode_direct" != no && 10804 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10805 # have to relink, otherwise we might link with an installed library 10806 # when we should be linking with a yet-to-be-installed one 10807 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10808 test "$hardcode_minus_L" != no; then 10809 # Linking always hardcodes the temporary library directory. 10810 hardcode_action=relink 10811 else 10812 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10813 hardcode_action=immediate 10814 fi 10815else 10816 # We cannot hardcode anything, or else we can only hardcode existing 10817 # directories. 10818 hardcode_action=unsupported 10819fi 10820{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 10821echo "${ECHO_T}$hardcode_action" >&6; } 10822 10823if test "$hardcode_action" = relink; then 10824 # Fast installation is not supported 10825 enable_fast_install=no 10826elif test "$shlibpath_overrides_runpath" = yes || 10827 test "$enable_shared" = no; then 10828 # Fast installation is not necessary 10829 enable_fast_install=needless 10830fi 10831 10832striplib= 10833old_striplib= 10834{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 10835echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 10836if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10837 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10838 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10839 { echo "$as_me:$LINENO: result: yes" >&5 10840echo "${ECHO_T}yes" >&6; } 10841else 10842# FIXME - insert some real tests, host_os isn't really good enough 10843 case $host_os in 10844 darwin*) 10845 if test -n "$STRIP" ; then 10846 striplib="$STRIP -x" 10847 old_striplib="$STRIP -S" 10848 { echo "$as_me:$LINENO: result: yes" >&5 10849echo "${ECHO_T}yes" >&6; } 10850 else 10851 { echo "$as_me:$LINENO: result: no" >&5 10852echo "${ECHO_T}no" >&6; } 10853fi 10854 ;; 10855 *) 10856 { echo "$as_me:$LINENO: result: no" >&5 10857echo "${ECHO_T}no" >&6; } 10858 ;; 10859 esac 10860fi 10861 10862if test "x$enable_dlopen" != xyes; then 10863 enable_dlopen=unknown 10864 enable_dlopen_self=unknown 10865 enable_dlopen_self_static=unknown 10866else 10867 lt_cv_dlopen=no 10868 lt_cv_dlopen_libs= 10869 10870 case $host_os in 10871 beos*) 10872 lt_cv_dlopen="load_add_on" 10873 lt_cv_dlopen_libs= 10874 lt_cv_dlopen_self=yes 10875 ;; 10876 10877 mingw* | pw32*) 10878 lt_cv_dlopen="LoadLibrary" 10879 lt_cv_dlopen_libs= 10880 ;; 10881 10882 cygwin*) 10883 lt_cv_dlopen="dlopen" 10884 lt_cv_dlopen_libs= 10885 ;; 10886 10887 darwin*) 10888 # if libdl is installed we need to link against it 10889 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10890echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10891if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10892 echo $ECHO_N "(cached) $ECHO_C" >&6 10893else 10894 ac_check_lib_save_LIBS=$LIBS 10895LIBS="-ldl $LIBS" 10896cat >conftest.$ac_ext <<_ACEOF 10897/* confdefs.h. */ 10898_ACEOF 10899cat confdefs.h >>conftest.$ac_ext 10900cat >>conftest.$ac_ext <<_ACEOF 10901/* end confdefs.h. */ 10902 10903/* Override any GCC internal prototype to avoid an error. 10904 Use char because int might match the return type of a GCC 10905 builtin and then its argument prototype would still apply. */ 10906#ifdef __cplusplus 10907extern "C" 10908#endif 10909char dlopen (); 10910int 10911main () 10912{ 10913return dlopen (); 10914 ; 10915 return 0; 10916} 10917_ACEOF 10918rm -f conftest.$ac_objext conftest$ac_exeext 10919if { (ac_try="$ac_link" 10920case "(($ac_try" in 10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10922 *) ac_try_echo=$ac_try;; 10923esac 10924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10925 (eval "$ac_link") 2>conftest.er1 10926 ac_status=$? 10927 grep -v '^ *+' conftest.er1 >conftest.err 10928 rm -f conftest.er1 10929 cat conftest.err >&5 10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10931 (exit $ac_status); } && { 10932 test -z "$ac_c_werror_flag" || 10933 test ! -s conftest.err 10934 } && test -s conftest$ac_exeext && 10935 $as_test_x conftest$ac_exeext; then 10936 ac_cv_lib_dl_dlopen=yes 10937else 10938 echo "$as_me: failed program was:" >&5 10939sed 's/^/| /' conftest.$ac_ext >&5 10940 10941 ac_cv_lib_dl_dlopen=no 10942fi 10943 10944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10945 conftest$ac_exeext conftest.$ac_ext 10946LIBS=$ac_check_lib_save_LIBS 10947fi 10948{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10949echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10950if test $ac_cv_lib_dl_dlopen = yes; then 10951 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10952else 10953 10954 lt_cv_dlopen="dyld" 10955 lt_cv_dlopen_libs= 10956 lt_cv_dlopen_self=yes 10957 10958fi 10959 10960 ;; 10961 10962 *) 10963 { echo "$as_me:$LINENO: checking for shl_load" >&5 10964echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 10965if test "${ac_cv_func_shl_load+set}" = set; then 10966 echo $ECHO_N "(cached) $ECHO_C" >&6 10967else 10968 cat >conftest.$ac_ext <<_ACEOF 10969/* confdefs.h. */ 10970_ACEOF 10971cat confdefs.h >>conftest.$ac_ext 10972cat >>conftest.$ac_ext <<_ACEOF 10973/* end confdefs.h. */ 10974/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10975 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10976#define shl_load innocuous_shl_load 10977 10978/* System header to define __stub macros and hopefully few prototypes, 10979 which can conflict with char shl_load (); below. 10980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10981 <limits.h> exists even on freestanding compilers. */ 10982 10983#ifdef __STDC__ 10984# include <limits.h> 10985#else 10986# include <assert.h> 10987#endif 10988 10989#undef shl_load 10990 10991/* Override any GCC internal prototype to avoid an error. 10992 Use char because int might match the return type of a GCC 10993 builtin and then its argument prototype would still apply. */ 10994#ifdef __cplusplus 10995extern "C" 10996#endif 10997char shl_load (); 10998/* The GNU C library defines this for functions which it implements 10999 to always fail with ENOSYS. Some functions are actually named 11000 something starting with __ and the normal name is an alias. */ 11001#if defined __stub_shl_load || defined __stub___shl_load 11002choke me 11003#endif 11004 11005int 11006main () 11007{ 11008return shl_load (); 11009 ; 11010 return 0; 11011} 11012_ACEOF 11013rm -f conftest.$ac_objext conftest$ac_exeext 11014if { (ac_try="$ac_link" 11015case "(($ac_try" in 11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11017 *) ac_try_echo=$ac_try;; 11018esac 11019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11020 (eval "$ac_link") 2>conftest.er1 11021 ac_status=$? 11022 grep -v '^ *+' conftest.er1 >conftest.err 11023 rm -f conftest.er1 11024 cat conftest.err >&5 11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11026 (exit $ac_status); } && { 11027 test -z "$ac_c_werror_flag" || 11028 test ! -s conftest.err 11029 } && test -s conftest$ac_exeext && 11030 $as_test_x conftest$ac_exeext; then 11031 ac_cv_func_shl_load=yes 11032else 11033 echo "$as_me: failed program was:" >&5 11034sed 's/^/| /' conftest.$ac_ext >&5 11035 11036 ac_cv_func_shl_load=no 11037fi 11038 11039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11040 conftest$ac_exeext conftest.$ac_ext 11041fi 11042{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11043echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 11044if test $ac_cv_func_shl_load = yes; then 11045 lt_cv_dlopen="shl_load" 11046else 11047 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11048echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 11049if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11050 echo $ECHO_N "(cached) $ECHO_C" >&6 11051else 11052 ac_check_lib_save_LIBS=$LIBS 11053LIBS="-ldld $LIBS" 11054cat >conftest.$ac_ext <<_ACEOF 11055/* confdefs.h. */ 11056_ACEOF 11057cat confdefs.h >>conftest.$ac_ext 11058cat >>conftest.$ac_ext <<_ACEOF 11059/* end confdefs.h. */ 11060 11061/* Override any GCC internal prototype to avoid an error. 11062 Use char because int might match the return type of a GCC 11063 builtin and then its argument prototype would still apply. */ 11064#ifdef __cplusplus 11065extern "C" 11066#endif 11067char shl_load (); 11068int 11069main () 11070{ 11071return shl_load (); 11072 ; 11073 return 0; 11074} 11075_ACEOF 11076rm -f conftest.$ac_objext conftest$ac_exeext 11077if { (ac_try="$ac_link" 11078case "(($ac_try" in 11079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11080 *) ac_try_echo=$ac_try;; 11081esac 11082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11083 (eval "$ac_link") 2>conftest.er1 11084 ac_status=$? 11085 grep -v '^ *+' conftest.er1 >conftest.err 11086 rm -f conftest.er1 11087 cat conftest.err >&5 11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11089 (exit $ac_status); } && { 11090 test -z "$ac_c_werror_flag" || 11091 test ! -s conftest.err 11092 } && test -s conftest$ac_exeext && 11093 $as_test_x conftest$ac_exeext; then 11094 ac_cv_lib_dld_shl_load=yes 11095else 11096 echo "$as_me: failed program was:" >&5 11097sed 's/^/| /' conftest.$ac_ext >&5 11098 11099 ac_cv_lib_dld_shl_load=no 11100fi 11101 11102rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11103 conftest$ac_exeext conftest.$ac_ext 11104LIBS=$ac_check_lib_save_LIBS 11105fi 11106{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11107echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 11108if test $ac_cv_lib_dld_shl_load = yes; then 11109 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11110else 11111 { echo "$as_me:$LINENO: checking for dlopen" >&5 11112echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 11113if test "${ac_cv_func_dlopen+set}" = set; then 11114 echo $ECHO_N "(cached) $ECHO_C" >&6 11115else 11116 cat >conftest.$ac_ext <<_ACEOF 11117/* confdefs.h. */ 11118_ACEOF 11119cat confdefs.h >>conftest.$ac_ext 11120cat >>conftest.$ac_ext <<_ACEOF 11121/* end confdefs.h. */ 11122/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11123 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11124#define dlopen innocuous_dlopen 11125 11126/* System header to define __stub macros and hopefully few prototypes, 11127 which can conflict with char dlopen (); below. 11128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11129 <limits.h> exists even on freestanding compilers. */ 11130 11131#ifdef __STDC__ 11132# include <limits.h> 11133#else 11134# include <assert.h> 11135#endif 11136 11137#undef dlopen 11138 11139/* Override any GCC internal prototype to avoid an error. 11140 Use char because int might match the return type of a GCC 11141 builtin and then its argument prototype would still apply. */ 11142#ifdef __cplusplus 11143extern "C" 11144#endif 11145char dlopen (); 11146/* The GNU C library defines this for functions which it implements 11147 to always fail with ENOSYS. Some functions are actually named 11148 something starting with __ and the normal name is an alias. */ 11149#if defined __stub_dlopen || defined __stub___dlopen 11150choke me 11151#endif 11152 11153int 11154main () 11155{ 11156return dlopen (); 11157 ; 11158 return 0; 11159} 11160_ACEOF 11161rm -f conftest.$ac_objext conftest$ac_exeext 11162if { (ac_try="$ac_link" 11163case "(($ac_try" in 11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11165 *) ac_try_echo=$ac_try;; 11166esac 11167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11168 (eval "$ac_link") 2>conftest.er1 11169 ac_status=$? 11170 grep -v '^ *+' conftest.er1 >conftest.err 11171 rm -f conftest.er1 11172 cat conftest.err >&5 11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11174 (exit $ac_status); } && { 11175 test -z "$ac_c_werror_flag" || 11176 test ! -s conftest.err 11177 } && test -s conftest$ac_exeext && 11178 $as_test_x conftest$ac_exeext; then 11179 ac_cv_func_dlopen=yes 11180else 11181 echo "$as_me: failed program was:" >&5 11182sed 's/^/| /' conftest.$ac_ext >&5 11183 11184 ac_cv_func_dlopen=no 11185fi 11186 11187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11188 conftest$ac_exeext conftest.$ac_ext 11189fi 11190{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11191echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 11192if test $ac_cv_func_dlopen = yes; then 11193 lt_cv_dlopen="dlopen" 11194else 11195 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11196echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 11197if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11198 echo $ECHO_N "(cached) $ECHO_C" >&6 11199else 11200 ac_check_lib_save_LIBS=$LIBS 11201LIBS="-ldl $LIBS" 11202cat >conftest.$ac_ext <<_ACEOF 11203/* confdefs.h. */ 11204_ACEOF 11205cat confdefs.h >>conftest.$ac_ext 11206cat >>conftest.$ac_ext <<_ACEOF 11207/* end confdefs.h. */ 11208 11209/* Override any GCC internal prototype to avoid an error. 11210 Use char because int might match the return type of a GCC 11211 builtin and then its argument prototype would still apply. */ 11212#ifdef __cplusplus 11213extern "C" 11214#endif 11215char dlopen (); 11216int 11217main () 11218{ 11219return dlopen (); 11220 ; 11221 return 0; 11222} 11223_ACEOF 11224rm -f conftest.$ac_objext conftest$ac_exeext 11225if { (ac_try="$ac_link" 11226case "(($ac_try" in 11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11228 *) ac_try_echo=$ac_try;; 11229esac 11230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11231 (eval "$ac_link") 2>conftest.er1 11232 ac_status=$? 11233 grep -v '^ *+' conftest.er1 >conftest.err 11234 rm -f conftest.er1 11235 cat conftest.err >&5 11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11237 (exit $ac_status); } && { 11238 test -z "$ac_c_werror_flag" || 11239 test ! -s conftest.err 11240 } && test -s conftest$ac_exeext && 11241 $as_test_x conftest$ac_exeext; then 11242 ac_cv_lib_dl_dlopen=yes 11243else 11244 echo "$as_me: failed program was:" >&5 11245sed 's/^/| /' conftest.$ac_ext >&5 11246 11247 ac_cv_lib_dl_dlopen=no 11248fi 11249 11250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11251 conftest$ac_exeext conftest.$ac_ext 11252LIBS=$ac_check_lib_save_LIBS 11253fi 11254{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11255echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 11256if test $ac_cv_lib_dl_dlopen = yes; then 11257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11258else 11259 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11260echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 11261if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11262 echo $ECHO_N "(cached) $ECHO_C" >&6 11263else 11264 ac_check_lib_save_LIBS=$LIBS 11265LIBS="-lsvld $LIBS" 11266cat >conftest.$ac_ext <<_ACEOF 11267/* confdefs.h. */ 11268_ACEOF 11269cat confdefs.h >>conftest.$ac_ext 11270cat >>conftest.$ac_ext <<_ACEOF 11271/* end confdefs.h. */ 11272 11273/* Override any GCC internal prototype to avoid an error. 11274 Use char because int might match the return type of a GCC 11275 builtin and then its argument prototype would still apply. */ 11276#ifdef __cplusplus 11277extern "C" 11278#endif 11279char dlopen (); 11280int 11281main () 11282{ 11283return dlopen (); 11284 ; 11285 return 0; 11286} 11287_ACEOF 11288rm -f conftest.$ac_objext conftest$ac_exeext 11289if { (ac_try="$ac_link" 11290case "(($ac_try" in 11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11292 *) ac_try_echo=$ac_try;; 11293esac 11294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11295 (eval "$ac_link") 2>conftest.er1 11296 ac_status=$? 11297 grep -v '^ *+' conftest.er1 >conftest.err 11298 rm -f conftest.er1 11299 cat conftest.err >&5 11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11301 (exit $ac_status); } && { 11302 test -z "$ac_c_werror_flag" || 11303 test ! -s conftest.err 11304 } && test -s conftest$ac_exeext && 11305 $as_test_x conftest$ac_exeext; then 11306 ac_cv_lib_svld_dlopen=yes 11307else 11308 echo "$as_me: failed program was:" >&5 11309sed 's/^/| /' conftest.$ac_ext >&5 11310 11311 ac_cv_lib_svld_dlopen=no 11312fi 11313 11314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11315 conftest$ac_exeext conftest.$ac_ext 11316LIBS=$ac_check_lib_save_LIBS 11317fi 11318{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11319echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 11320if test $ac_cv_lib_svld_dlopen = yes; then 11321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11322else 11323 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11324echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 11325if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11326 echo $ECHO_N "(cached) $ECHO_C" >&6 11327else 11328 ac_check_lib_save_LIBS=$LIBS 11329LIBS="-ldld $LIBS" 11330cat >conftest.$ac_ext <<_ACEOF 11331/* confdefs.h. */ 11332_ACEOF 11333cat confdefs.h >>conftest.$ac_ext 11334cat >>conftest.$ac_ext <<_ACEOF 11335/* end confdefs.h. */ 11336 11337/* Override any GCC internal prototype to avoid an error. 11338 Use char because int might match the return type of a GCC 11339 builtin and then its argument prototype would still apply. */ 11340#ifdef __cplusplus 11341extern "C" 11342#endif 11343char dld_link (); 11344int 11345main () 11346{ 11347return dld_link (); 11348 ; 11349 return 0; 11350} 11351_ACEOF 11352rm -f conftest.$ac_objext conftest$ac_exeext 11353if { (ac_try="$ac_link" 11354case "(($ac_try" in 11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11356 *) ac_try_echo=$ac_try;; 11357esac 11358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11359 (eval "$ac_link") 2>conftest.er1 11360 ac_status=$? 11361 grep -v '^ *+' conftest.er1 >conftest.err 11362 rm -f conftest.er1 11363 cat conftest.err >&5 11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11365 (exit $ac_status); } && { 11366 test -z "$ac_c_werror_flag" || 11367 test ! -s conftest.err 11368 } && test -s conftest$ac_exeext && 11369 $as_test_x conftest$ac_exeext; then 11370 ac_cv_lib_dld_dld_link=yes 11371else 11372 echo "$as_me: failed program was:" >&5 11373sed 's/^/| /' conftest.$ac_ext >&5 11374 11375 ac_cv_lib_dld_dld_link=no 11376fi 11377 11378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11379 conftest$ac_exeext conftest.$ac_ext 11380LIBS=$ac_check_lib_save_LIBS 11381fi 11382{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11383echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 11384if test $ac_cv_lib_dld_dld_link = yes; then 11385 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11386fi 11387 11388 11389fi 11390 11391 11392fi 11393 11394 11395fi 11396 11397 11398fi 11399 11400 11401fi 11402 11403 ;; 11404 esac 11405 11406 if test "x$lt_cv_dlopen" != xno; then 11407 enable_dlopen=yes 11408 else 11409 enable_dlopen=no 11410 fi 11411 11412 case $lt_cv_dlopen in 11413 dlopen) 11414 save_CPPFLAGS="$CPPFLAGS" 11415 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11416 11417 save_LDFLAGS="$LDFLAGS" 11418 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11419 11420 save_LIBS="$LIBS" 11421 LIBS="$lt_cv_dlopen_libs $LIBS" 11422 11423 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11424echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 11425if test "${lt_cv_dlopen_self+set}" = set; then 11426 echo $ECHO_N "(cached) $ECHO_C" >&6 11427else 11428 if test "$cross_compiling" = yes; then : 11429 lt_cv_dlopen_self=cross 11430else 11431 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11432 lt_status=$lt_dlunknown 11433 cat > conftest.$ac_ext <<EOF 11434#line 11434 "configure" 11435#include "confdefs.h" 11436 11437#if HAVE_DLFCN_H 11438#include <dlfcn.h> 11439#endif 11440 11441#include <stdio.h> 11442 11443#ifdef RTLD_GLOBAL 11444# define LT_DLGLOBAL RTLD_GLOBAL 11445#else 11446# ifdef DL_GLOBAL 11447# define LT_DLGLOBAL DL_GLOBAL 11448# else 11449# define LT_DLGLOBAL 0 11450# endif 11451#endif 11452 11453/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11454 find out it does not work in some platform. */ 11455#ifndef LT_DLLAZY_OR_NOW 11456# ifdef RTLD_LAZY 11457# define LT_DLLAZY_OR_NOW RTLD_LAZY 11458# else 11459# ifdef DL_LAZY 11460# define LT_DLLAZY_OR_NOW DL_LAZY 11461# else 11462# ifdef RTLD_NOW 11463# define LT_DLLAZY_OR_NOW RTLD_NOW 11464# else 11465# ifdef DL_NOW 11466# define LT_DLLAZY_OR_NOW DL_NOW 11467# else 11468# define LT_DLLAZY_OR_NOW 0 11469# endif 11470# endif 11471# endif 11472# endif 11473#endif 11474 11475#ifdef __cplusplus 11476extern "C" void exit (int); 11477#endif 11478 11479void fnord() { int i=42;} 11480int main () 11481{ 11482 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11483 int status = $lt_dlunknown; 11484 11485 if (self) 11486 { 11487 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11488 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11489 /* dlclose (self); */ 11490 } 11491 else 11492 puts (dlerror ()); 11493 11494 exit (status); 11495} 11496EOF 11497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11498 (eval $ac_link) 2>&5 11499 ac_status=$? 11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11501 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11502 (./conftest; exit; ) >&5 2>/dev/null 11503 lt_status=$? 11504 case x$lt_status in 11505 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11506 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11507 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11508 esac 11509 else : 11510 # compilation failed 11511 lt_cv_dlopen_self=no 11512 fi 11513fi 11514rm -fr conftest* 11515 11516 11517fi 11518{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 11519echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 11520 11521 if test "x$lt_cv_dlopen_self" = xyes; then 11522 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11523 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 11524echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 11525if test "${lt_cv_dlopen_self_static+set}" = set; then 11526 echo $ECHO_N "(cached) $ECHO_C" >&6 11527else 11528 if test "$cross_compiling" = yes; then : 11529 lt_cv_dlopen_self_static=cross 11530else 11531 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11532 lt_status=$lt_dlunknown 11533 cat > conftest.$ac_ext <<EOF 11534#line 11534 "configure" 11535#include "confdefs.h" 11536 11537#if HAVE_DLFCN_H 11538#include <dlfcn.h> 11539#endif 11540 11541#include <stdio.h> 11542 11543#ifdef RTLD_GLOBAL 11544# define LT_DLGLOBAL RTLD_GLOBAL 11545#else 11546# ifdef DL_GLOBAL 11547# define LT_DLGLOBAL DL_GLOBAL 11548# else 11549# define LT_DLGLOBAL 0 11550# endif 11551#endif 11552 11553/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11554 find out it does not work in some platform. */ 11555#ifndef LT_DLLAZY_OR_NOW 11556# ifdef RTLD_LAZY 11557# define LT_DLLAZY_OR_NOW RTLD_LAZY 11558# else 11559# ifdef DL_LAZY 11560# define LT_DLLAZY_OR_NOW DL_LAZY 11561# else 11562# ifdef RTLD_NOW 11563# define LT_DLLAZY_OR_NOW RTLD_NOW 11564# else 11565# ifdef DL_NOW 11566# define LT_DLLAZY_OR_NOW DL_NOW 11567# else 11568# define LT_DLLAZY_OR_NOW 0 11569# endif 11570# endif 11571# endif 11572# endif 11573#endif 11574 11575#ifdef __cplusplus 11576extern "C" void exit (int); 11577#endif 11578 11579void fnord() { int i=42;} 11580int main () 11581{ 11582 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11583 int status = $lt_dlunknown; 11584 11585 if (self) 11586 { 11587 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11588 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11589 /* dlclose (self); */ 11590 } 11591 else 11592 puts (dlerror ()); 11593 11594 exit (status); 11595} 11596EOF 11597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11598 (eval $ac_link) 2>&5 11599 ac_status=$? 11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11601 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11602 (./conftest; exit; ) >&5 2>/dev/null 11603 lt_status=$? 11604 case x$lt_status in 11605 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11606 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11607 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11608 esac 11609 else : 11610 # compilation failed 11611 lt_cv_dlopen_self_static=no 11612 fi 11613fi 11614rm -fr conftest* 11615 11616 11617fi 11618{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11619echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 11620 fi 11621 11622 CPPFLAGS="$save_CPPFLAGS" 11623 LDFLAGS="$save_LDFLAGS" 11624 LIBS="$save_LIBS" 11625 ;; 11626 esac 11627 11628 case $lt_cv_dlopen_self in 11629 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11630 *) enable_dlopen_self=unknown ;; 11631 esac 11632 11633 case $lt_cv_dlopen_self_static in 11634 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11635 *) enable_dlopen_self_static=unknown ;; 11636 esac 11637fi 11638 11639 11640# Report which library types will actually be built 11641{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11642echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 11643{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 11644echo "${ECHO_T}$can_build_shared" >&6; } 11645 11646{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11647echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 11648test "$can_build_shared" = "no" && enable_shared=no 11649 11650# On AIX, shared libraries and static libraries use the same namespace, and 11651# are all built from PIC. 11652case $host_os in 11653aix3*) 11654 test "$enable_shared" = yes && enable_static=no 11655 if test -n "$RANLIB"; then 11656 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11657 postinstall_cmds='$RANLIB $lib' 11658 fi 11659 ;; 11660 11661aix[4-9]*) 11662 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11663 test "$enable_shared" = yes && enable_static=no 11664 fi 11665 ;; 11666esac 11667{ echo "$as_me:$LINENO: result: $enable_shared" >&5 11668echo "${ECHO_T}$enable_shared" >&6; } 11669 11670{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11671echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 11672# Make sure either enable_shared or enable_static is yes. 11673test "$enable_shared" = yes || enable_static=yes 11674{ echo "$as_me:$LINENO: result: $enable_static" >&5 11675echo "${ECHO_T}$enable_static" >&6; } 11676 11677# The else clause should only fire when bootstrapping the 11678# libtool distribution, otherwise you forgot to ship ltmain.sh 11679# with your package, and you will get complaints that there are 11680# no rules to generate ltmain.sh. 11681if test -f "$ltmain"; then 11682 # See if we are running on zsh, and set the options which allow our commands through 11683 # without removal of \ escapes. 11684 if test -n "${ZSH_VERSION+set}" ; then 11685 setopt NO_GLOB_SUBST 11686 fi 11687 # Now quote all the things that may contain metacharacters while being 11688 # careful not to overquote the AC_SUBSTed values. We take copies of the 11689 # variables and quote the copies for generation of the libtool script. 11690 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 11691 SED SHELL STRIP \ 11692 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 11693 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 11694 deplibs_check_method reload_flag reload_cmds need_locks \ 11695 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 11696 lt_cv_sys_global_symbol_to_c_name_address \ 11697 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 11698 old_postinstall_cmds old_postuninstall_cmds \ 11699 compiler \ 11700 CC \ 11701 LD \ 11702 lt_prog_compiler_wl \ 11703 lt_prog_compiler_pic \ 11704 lt_prog_compiler_static \ 11705 lt_prog_compiler_no_builtin_flag \ 11706 export_dynamic_flag_spec \ 11707 thread_safe_flag_spec \ 11708 whole_archive_flag_spec \ 11709 enable_shared_with_static_runtimes \ 11710 old_archive_cmds \ 11711 old_archive_from_new_cmds \ 11712 predep_objects \ 11713 postdep_objects \ 11714 predeps \ 11715 postdeps \ 11716 compiler_lib_search_path \ 11717 compiler_lib_search_dirs \ 11718 archive_cmds \ 11719 archive_expsym_cmds \ 11720 postinstall_cmds \ 11721 postuninstall_cmds \ 11722 old_archive_from_expsyms_cmds \ 11723 allow_undefined_flag \ 11724 no_undefined_flag \ 11725 export_symbols_cmds \ 11726 hardcode_libdir_flag_spec \ 11727 hardcode_libdir_flag_spec_ld \ 11728 hardcode_libdir_separator \ 11729 hardcode_automatic \ 11730 module_cmds \ 11731 module_expsym_cmds \ 11732 lt_cv_prog_compiler_c_o \ 11733 fix_srcfile_path \ 11734 exclude_expsyms \ 11735 include_expsyms; do 11736 11737 case $var in 11738 old_archive_cmds | \ 11739 old_archive_from_new_cmds | \ 11740 archive_cmds | \ 11741 archive_expsym_cmds | \ 11742 module_cmds | \ 11743 module_expsym_cmds | \ 11744 old_archive_from_expsyms_cmds | \ 11745 export_symbols_cmds | \ 11746 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11747 postinstall_cmds | postuninstall_cmds | \ 11748 old_postinstall_cmds | old_postuninstall_cmds | \ 11749 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11750 # Double-quote double-evaled strings. 11751 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11752 ;; 11753 *) 11754 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11755 ;; 11756 esac 11757 done 11758 11759 case $lt_echo in 11760 *'\$0 --fallback-echo"') 11761 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11762 ;; 11763 esac 11764 11765cfgfile="${ofile}T" 11766 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11767 $rm -f "$cfgfile" 11768 { echo "$as_me:$LINENO: creating $ofile" >&5 11769echo "$as_me: creating $ofile" >&6;} 11770 11771 cat <<__EOF__ >> "$cfgfile" 11772#! $SHELL 11773 11774# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11775# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11776# NOTE: Changes made to this file will be lost: look at ltmain.sh. 11777# 11778# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 11779# Free Software Foundation, Inc. 11780# 11781# This file is part of GNU Libtool: 11782# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 11783# 11784# This program is free software; you can redistribute it and/or modify 11785# it under the terms of the GNU General Public License as published by 11786# the Free Software Foundation; either version 2 of the License, or 11787# (at your option) any later version. 11788# 11789# This program is distributed in the hope that it will be useful, but 11790# WITHOUT ANY WARRANTY; without even the implied warranty of 11791# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11792# General Public License for more details. 11793# 11794# You should have received a copy of the GNU General Public License 11795# along with this program; if not, write to the Free Software 11796# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11797# 11798# As a special exception to the GNU General Public License, if you 11799# distribute this file as part of a program that contains a 11800# configuration script generated by Autoconf, you may include it under 11801# the same distribution terms that you use for the rest of that program. 11802 11803# A sed program that does not truncate output. 11804SED=$lt_SED 11805 11806# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11807Xsed="$SED -e 1s/^X//" 11808 11809# The HP-UX ksh and POSIX shell print the target directory to stdout 11810# if CDPATH is set. 11811(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11812 11813# The names of the tagged configurations supported by this script. 11814available_tags= 11815 11816# ### BEGIN LIBTOOL CONFIG 11817 11818# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11819 11820# Shell to use when invoking shell scripts. 11821SHELL=$lt_SHELL 11822 11823# Whether or not to build shared libraries. 11824build_libtool_libs=$enable_shared 11825 11826# Whether or not to build static libraries. 11827build_old_libs=$enable_static 11828 11829# Whether or not to add -lc for building shared libraries. 11830build_libtool_need_lc=$archive_cmds_need_lc 11831 11832# Whether or not to disallow shared libs when runtime libs are static 11833allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11834 11835# Whether or not to optimize for fast installation. 11836fast_install=$enable_fast_install 11837 11838# The host system. 11839host_alias=$host_alias 11840host=$host 11841host_os=$host_os 11842 11843# The build system. 11844build_alias=$build_alias 11845build=$build 11846build_os=$build_os 11847 11848# An echo program that does not interpret backslashes. 11849echo=$lt_echo 11850 11851# The archiver. 11852AR=$lt_AR 11853AR_FLAGS=$lt_AR_FLAGS 11854 11855# A C compiler. 11856LTCC=$lt_LTCC 11857 11858# LTCC compiler flags. 11859LTCFLAGS=$lt_LTCFLAGS 11860 11861# A language-specific compiler. 11862CC=$lt_compiler 11863 11864# Is the compiler the GNU C compiler? 11865with_gcc=$GCC 11866 11867# An ERE matcher. 11868EGREP=$lt_EGREP 11869 11870# The linker used to build libraries. 11871LD=$lt_LD 11872 11873# Whether we need hard or soft links. 11874LN_S=$lt_LN_S 11875 11876# A BSD-compatible nm program. 11877NM=$lt_NM 11878 11879# A symbol stripping program 11880STRIP=$lt_STRIP 11881 11882# Used to examine libraries when file_magic_cmd begins "file" 11883MAGIC_CMD=$MAGIC_CMD 11884 11885# Used on cygwin: DLL creation program. 11886DLLTOOL="$DLLTOOL" 11887 11888# Used on cygwin: object dumper. 11889OBJDUMP="$OBJDUMP" 11890 11891# Used on cygwin: assembler. 11892AS="$AS" 11893 11894# The name of the directory that contains temporary libtool files. 11895objdir=$objdir 11896 11897# How to create reloadable object files. 11898reload_flag=$lt_reload_flag 11899reload_cmds=$lt_reload_cmds 11900 11901# How to pass a linker flag through the compiler. 11902wl=$lt_lt_prog_compiler_wl 11903 11904# Object file suffix (normally "o"). 11905objext="$ac_objext" 11906 11907# Old archive suffix (normally "a"). 11908libext="$libext" 11909 11910# Shared library suffix (normally ".so"). 11911shrext_cmds='$shrext_cmds' 11912 11913# Executable file suffix (normally ""). 11914exeext="$exeext" 11915 11916# Additional compiler flags for building library objects. 11917pic_flag=$lt_lt_prog_compiler_pic 11918pic_mode=$pic_mode 11919 11920# What is the maximum length of a command? 11921max_cmd_len=$lt_cv_sys_max_cmd_len 11922 11923# Does compiler simultaneously support -c and -o options? 11924compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11925 11926# Must we lock files when doing compilation? 11927need_locks=$lt_need_locks 11928 11929# Do we need the lib prefix for modules? 11930need_lib_prefix=$need_lib_prefix 11931 11932# Do we need a version for libraries? 11933need_version=$need_version 11934 11935# Whether dlopen is supported. 11936dlopen_support=$enable_dlopen 11937 11938# Whether dlopen of programs is supported. 11939dlopen_self=$enable_dlopen_self 11940 11941# Whether dlopen of statically linked programs is supported. 11942dlopen_self_static=$enable_dlopen_self_static 11943 11944# Compiler flag to prevent dynamic linking. 11945link_static_flag=$lt_lt_prog_compiler_static 11946 11947# Compiler flag to turn off builtin functions. 11948no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11949 11950# Compiler flag to allow reflexive dlopens. 11951export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11952 11953# Compiler flag to generate shared objects directly from archives. 11954whole_archive_flag_spec=$lt_whole_archive_flag_spec 11955 11956# Compiler flag to generate thread-safe objects. 11957thread_safe_flag_spec=$lt_thread_safe_flag_spec 11958 11959# Library versioning type. 11960version_type=$version_type 11961 11962# Format of library name prefix. 11963libname_spec=$lt_libname_spec 11964 11965# List of archive names. First name is the real one, the rest are links. 11966# The last name is the one that the linker finds with -lNAME. 11967library_names_spec=$lt_library_names_spec 11968 11969# The coded name of the library, if different from the real name. 11970soname_spec=$lt_soname_spec 11971 11972# Commands used to build and install an old-style archive. 11973RANLIB=$lt_RANLIB 11974old_archive_cmds=$lt_old_archive_cmds 11975old_postinstall_cmds=$lt_old_postinstall_cmds 11976old_postuninstall_cmds=$lt_old_postuninstall_cmds 11977 11978# Create an old-style archive from a shared archive. 11979old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11980 11981# Create a temporary old-style archive to link instead of a shared archive. 11982old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11983 11984# Commands used to build and install a shared archive. 11985archive_cmds=$lt_archive_cmds 11986archive_expsym_cmds=$lt_archive_expsym_cmds 11987postinstall_cmds=$lt_postinstall_cmds 11988postuninstall_cmds=$lt_postuninstall_cmds 11989 11990# Commands used to build a loadable module (assumed same as above if empty) 11991module_cmds=$lt_module_cmds 11992module_expsym_cmds=$lt_module_expsym_cmds 11993 11994# Commands to strip libraries. 11995old_striplib=$lt_old_striplib 11996striplib=$lt_striplib 11997 11998# Dependencies to place before the objects being linked to create a 11999# shared library. 12000predep_objects=$lt_predep_objects 12001 12002# Dependencies to place after the objects being linked to create a 12003# shared library. 12004postdep_objects=$lt_postdep_objects 12005 12006# Dependencies to place before the objects being linked to create a 12007# shared library. 12008predeps=$lt_predeps 12009 12010# Dependencies to place after the objects being linked to create a 12011# shared library. 12012postdeps=$lt_postdeps 12013 12014# The directories searched by this compiler when creating a shared 12015# library 12016compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 12017 12018# The library search path used internally by the compiler when linking 12019# a shared library. 12020compiler_lib_search_path=$lt_compiler_lib_search_path 12021 12022# Method to check whether dependent libraries are shared objects. 12023deplibs_check_method=$lt_deplibs_check_method 12024 12025# Command to use when deplibs_check_method == file_magic. 12026file_magic_cmd=$lt_file_magic_cmd 12027 12028# Flag that allows shared libraries with undefined symbols to be built. 12029allow_undefined_flag=$lt_allow_undefined_flag 12030 12031# Flag that forces no undefined symbols. 12032no_undefined_flag=$lt_no_undefined_flag 12033 12034# Commands used to finish a libtool library installation in a directory. 12035finish_cmds=$lt_finish_cmds 12036 12037# Same as above, but a single script fragment to be evaled but not shown. 12038finish_eval=$lt_finish_eval 12039 12040# Take the output of nm and produce a listing of raw symbols and C names. 12041global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12042 12043# Transform the output of nm in a proper C declaration 12044global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12045 12046# Transform the output of nm in a C name address pair 12047global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12048 12049# This is the shared library runtime path variable. 12050runpath_var=$runpath_var 12051 12052# This is the shared library path variable. 12053shlibpath_var=$shlibpath_var 12054 12055# Is shlibpath searched before the hard-coded library search path? 12056shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12057 12058# How to hardcode a shared library path into an executable. 12059hardcode_action=$hardcode_action 12060 12061# Whether we should hardcode library paths into libraries. 12062hardcode_into_libs=$hardcode_into_libs 12063 12064# Flag to hardcode \$libdir into a binary during linking. 12065# This must work even if \$libdir does not exist. 12066hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 12067 12068# If ld is used when linking, flag to hardcode \$libdir into 12069# a binary during linking. This must work even if \$libdir does 12070# not exist. 12071hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 12072 12073# Whether we need a single -rpath flag with a separated argument. 12074hardcode_libdir_separator=$lt_hardcode_libdir_separator 12075 12076# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12077# resulting binary. 12078hardcode_direct=$hardcode_direct 12079 12080# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12081# resulting binary. 12082hardcode_minus_L=$hardcode_minus_L 12083 12084# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12085# the resulting binary. 12086hardcode_shlibpath_var=$hardcode_shlibpath_var 12087 12088# Set to yes if building a shared library automatically hardcodes DIR into the library 12089# and all subsequent libraries and executables linked against it. 12090hardcode_automatic=$hardcode_automatic 12091 12092# Variables whose values should be saved in libtool wrapper scripts and 12093# restored at relink time. 12094variables_saved_for_relink="$variables_saved_for_relink" 12095 12096# Whether libtool must link a program against all its dependency libraries. 12097link_all_deplibs=$link_all_deplibs 12098 12099# Compile-time system search path for libraries 12100sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12101 12102# Run-time system search path for libraries 12103sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12104 12105# Fix the shell variable \$srcfile for the compiler. 12106fix_srcfile_path=$lt_fix_srcfile_path 12107 12108# Set to yes if exported symbols are required. 12109always_export_symbols=$always_export_symbols 12110 12111# The commands to list exported symbols. 12112export_symbols_cmds=$lt_export_symbols_cmds 12113 12114# The commands to extract the exported symbol list from a shared archive. 12115extract_expsyms_cmds=$lt_extract_expsyms_cmds 12116 12117# Symbols that should not be listed in the preloaded symbols. 12118exclude_expsyms=$lt_exclude_expsyms 12119 12120# Symbols that must always be exported. 12121include_expsyms=$lt_include_expsyms 12122 12123# ### END LIBTOOL CONFIG 12124 12125__EOF__ 12126 12127 12128 case $host_os in 12129 aix3*) 12130 cat <<\EOF >> "$cfgfile" 12131 12132# AIX sometimes has problems with the GCC collect2 program. For some 12133# reason, if we set the COLLECT_NAMES environment variable, the problems 12134# vanish in a puff of smoke. 12135if test "X${COLLECT_NAMES+set}" != Xset; then 12136 COLLECT_NAMES= 12137 export COLLECT_NAMES 12138fi 12139EOF 12140 ;; 12141 esac 12142 12143 # We use sed instead of cat because bash on DJGPP gets confused if 12144 # if finds mixed CR/LF and LF-only lines. Since sed operates in 12145 # text mode, it properly converts lines to CR/LF. This bash problem 12146 # is reportedly fixed, but why not run on old versions too? 12147 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 12148 12149 mv -f "$cfgfile" "$ofile" || \ 12150 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 12151 chmod +x "$ofile" 12152 12153else 12154 # If there is no Makefile yet, we rely on a make rule to execute 12155 # `config.status --recheck' to rerun these tests and create the 12156 # libtool script then. 12157 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12158 if test -f "$ltmain_in"; then 12159 test -f Makefile && make "$ltmain" 12160 fi 12161fi 12162 12163 12164ac_ext=c 12165ac_cpp='$CPP $CPPFLAGS' 12166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12168ac_compiler_gnu=$ac_cv_c_compiler_gnu 12169 12170CC="$lt_save_CC" 12171 12172 12173# Check whether --with-tags was given. 12174if test "${with_tags+set}" = set; then 12175 withval=$with_tags; tagnames="$withval" 12176fi 12177 12178 12179if test -f "$ltmain" && test -n "$tagnames"; then 12180 if test ! -f "${ofile}"; then 12181 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 12182echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 12183 fi 12184 12185 if test -z "$LTCC"; then 12186 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 12187 if test -z "$LTCC"; then 12188 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 12189echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 12190 else 12191 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 12192echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 12193 fi 12194 fi 12195 if test -z "$LTCFLAGS"; then 12196 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 12197 fi 12198 12199 # Extract list of available tagged configurations in $ofile. 12200 # Note that this assumes the entire list is on one line. 12201 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 12202 12203 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 12204 for tagname in $tagnames; do 12205 IFS="$lt_save_ifs" 12206 # Check whether tagname contains only valid characters 12207 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 12208 "") ;; 12209 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 12210echo "$as_me: error: invalid tag name: $tagname" >&2;} 12211 { (exit 1); exit 1; }; } 12212 ;; 12213 esac 12214 12215 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 12216 then 12217 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 12218echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 12219 { (exit 1); exit 1; }; } 12220 fi 12221 12222 # Update the list of available tags. 12223 if test -n "$tagname"; then 12224 echo appending configuration tag \"$tagname\" to $ofile 12225 12226 case $tagname in 12227 CXX) 12228 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12229 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12230 (test "X$CXX" != "Xg++"))) ; then 12231 ac_ext=cpp 12232ac_cpp='$CXXCPP $CPPFLAGS' 12233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12236 12237 12238 12239 12240archive_cmds_need_lc_CXX=no 12241allow_undefined_flag_CXX= 12242always_export_symbols_CXX=no 12243archive_expsym_cmds_CXX= 12244export_dynamic_flag_spec_CXX= 12245hardcode_direct_CXX=no 12246hardcode_libdir_flag_spec_CXX= 12247hardcode_libdir_flag_spec_ld_CXX= 12248hardcode_libdir_separator_CXX= 12249hardcode_minus_L_CXX=no 12250hardcode_shlibpath_var_CXX=unsupported 12251hardcode_automatic_CXX=no 12252module_cmds_CXX= 12253module_expsym_cmds_CXX= 12254link_all_deplibs_CXX=unknown 12255old_archive_cmds_CXX=$old_archive_cmds 12256no_undefined_flag_CXX= 12257whole_archive_flag_spec_CXX= 12258enable_shared_with_static_runtimes_CXX=no 12259 12260# Dependencies to place before and after the object being linked: 12261predep_objects_CXX= 12262postdep_objects_CXX= 12263predeps_CXX= 12264postdeps_CXX= 12265compiler_lib_search_path_CXX= 12266compiler_lib_search_dirs_CXX= 12267 12268# Source file extension for C++ test sources. 12269ac_ext=cpp 12270 12271# Object file extension for compiled C++ test sources. 12272objext=o 12273objext_CXX=$objext 12274 12275# Code to be used in simple compile tests 12276lt_simple_compile_test_code="int some_variable = 0;" 12277 12278# Code to be used in simple link tests 12279lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12280 12281# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12282 12283# If no C compiler was specified, use CC. 12284LTCC=${LTCC-"$CC"} 12285 12286# If no C compiler flags were specified, use CFLAGS. 12287LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12288 12289# Allow CC to be a program name with arguments. 12290compiler=$CC 12291 12292 12293# save warnings/boilerplate of simple test code 12294ac_outfile=conftest.$ac_objext 12295echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12296eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12297_lt_compiler_boilerplate=`cat conftest.err` 12298$rm conftest* 12299 12300ac_outfile=conftest.$ac_objext 12301echo "$lt_simple_link_test_code" >conftest.$ac_ext 12302eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12303_lt_linker_boilerplate=`cat conftest.err` 12304$rm -r conftest* 12305 12306 12307# Allow CC to be a program name with arguments. 12308lt_save_CC=$CC 12309lt_save_LD=$LD 12310lt_save_GCC=$GCC 12311GCC=$GXX 12312lt_save_with_gnu_ld=$with_gnu_ld 12313lt_save_path_LD=$lt_cv_path_LD 12314if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12315 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12316else 12317 $as_unset lt_cv_prog_gnu_ld 12318fi 12319if test -n "${lt_cv_path_LDCXX+set}"; then 12320 lt_cv_path_LD=$lt_cv_path_LDCXX 12321else 12322 $as_unset lt_cv_path_LD 12323fi 12324test -z "${LDCXX+set}" || LD=$LDCXX 12325CC=${CXX-"c++"} 12326compiler=$CC 12327compiler_CXX=$CC 12328for cc_temp in $compiler""; do 12329 case $cc_temp in 12330 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12331 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12332 \-*) ;; 12333 *) break;; 12334 esac 12335done 12336cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12337 12338 12339# We don't want -fno-exception wen compiling C++ code, so set the 12340# no_builtin_flag separately 12341if test "$GXX" = yes; then 12342 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12343else 12344 lt_prog_compiler_no_builtin_flag_CXX= 12345fi 12346 12347if test "$GXX" = yes; then 12348 # Set up default GNU C++ configuration 12349 12350 12351# Check whether --with-gnu-ld was given. 12352if test "${with_gnu_ld+set}" = set; then 12353 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12354else 12355 with_gnu_ld=no 12356fi 12357 12358ac_prog=ld 12359if test "$GCC" = yes; then 12360 # Check if gcc -print-prog-name=ld gives a path. 12361 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 12362echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 12363 case $host in 12364 *-*-mingw*) 12365 # gcc leaves a trailing carriage return which upsets mingw 12366 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12367 *) 12368 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12369 esac 12370 case $ac_prog in 12371 # Accept absolute paths. 12372 [\\/]* | ?:[\\/]*) 12373 re_direlt='/[^/][^/]*/\.\./' 12374 # Canonicalize the pathname of ld 12375 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 12376 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 12377 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 12378 done 12379 test -z "$LD" && LD="$ac_prog" 12380 ;; 12381 "") 12382 # If it fails, then pretend we aren't using GCC. 12383 ac_prog=ld 12384 ;; 12385 *) 12386 # If it is relative, then search for the first ld in PATH. 12387 with_gnu_ld=unknown 12388 ;; 12389 esac 12390elif test "$with_gnu_ld" = yes; then 12391 { echo "$as_me:$LINENO: checking for GNU ld" >&5 12392echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 12393else 12394 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12395echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 12396fi 12397if test "${lt_cv_path_LD+set}" = set; then 12398 echo $ECHO_N "(cached) $ECHO_C" >&6 12399else 12400 if test -z "$LD"; then 12401 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12402 for ac_dir in $PATH; do 12403 IFS="$lt_save_ifs" 12404 test -z "$ac_dir" && ac_dir=. 12405 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12406 lt_cv_path_LD="$ac_dir/$ac_prog" 12407 # Check to see if the program is GNU ld. I'd rather use --version, 12408 # but apparently some variants of GNU ld only accept -v. 12409 # Break only if it was the GNU/non-GNU ld that we prefer. 12410 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12411 *GNU* | *'with BFD'*) 12412 test "$with_gnu_ld" != no && break 12413 ;; 12414 *) 12415 test "$with_gnu_ld" != yes && break 12416 ;; 12417 esac 12418 fi 12419 done 12420 IFS="$lt_save_ifs" 12421else 12422 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12423fi 12424fi 12425 12426LD="$lt_cv_path_LD" 12427if test -n "$LD"; then 12428 { echo "$as_me:$LINENO: result: $LD" >&5 12429echo "${ECHO_T}$LD" >&6; } 12430else 12431 { echo "$as_me:$LINENO: result: no" >&5 12432echo "${ECHO_T}no" >&6; } 12433fi 12434test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12435echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12436 { (exit 1); exit 1; }; } 12437{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12438echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 12439if test "${lt_cv_prog_gnu_ld+set}" = set; then 12440 echo $ECHO_N "(cached) $ECHO_C" >&6 12441else 12442 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12443case `$LD -v 2>&1 </dev/null` in 12444*GNU* | *'with BFD'*) 12445 lt_cv_prog_gnu_ld=yes 12446 ;; 12447*) 12448 lt_cv_prog_gnu_ld=no 12449 ;; 12450esac 12451fi 12452{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12453echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 12454with_gnu_ld=$lt_cv_prog_gnu_ld 12455 12456 12457 12458 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12459 # archiving commands below assume that GNU ld is being used. 12460 if test "$with_gnu_ld" = yes; then 12461 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12462 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' 12463 12464 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12465 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12466 12467 # If archive_cmds runs LD, not CC, wlarc should be empty 12468 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12469 # investigate it a little bit more. (MM) 12470 wlarc='${wl}' 12471 12472 # ancient GNU ld didn't support --whole-archive et. al. 12473 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 12474 grep 'no-whole-archive' > /dev/null; then 12475 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12476 else 12477 whole_archive_flag_spec_CXX= 12478 fi 12479 else 12480 with_gnu_ld=no 12481 wlarc= 12482 12483 # A generic and very simple default shared library creation 12484 # command for GNU C++ for the case where it uses the native 12485 # linker, instead of GNU ld. If possible, this setting should 12486 # overridden to take advantage of the native linker features on 12487 # the platform it is being used on. 12488 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12489 fi 12490 12491 # Commands to make compiler produce verbose output that lists 12492 # what "hidden" libraries, object files and flags are used when 12493 # linking a shared library. 12494 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12495 12496else 12497 GXX=no 12498 with_gnu_ld=no 12499 wlarc= 12500fi 12501 12502# PORTME: fill in a description of your system's C++ link characteristics 12503{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12504echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12505ld_shlibs_CXX=yes 12506case $host_os in 12507 aix3*) 12508 # FIXME: insert proper C++ library support 12509 ld_shlibs_CXX=no 12510 ;; 12511 aix[4-9]*) 12512 if test "$host_cpu" = ia64; then 12513 # On IA64, the linker does run time linking by default, so we don't 12514 # have to do anything special. 12515 aix_use_runtimelinking=no 12516 exp_sym_flag='-Bexport' 12517 no_entry_flag="" 12518 else 12519 aix_use_runtimelinking=no 12520 12521 # Test if we are trying to use run time linking or normal 12522 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12523 # need to do runtime linking. 12524 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12525 for ld_flag in $LDFLAGS; do 12526 case $ld_flag in 12527 *-brtl*) 12528 aix_use_runtimelinking=yes 12529 break 12530 ;; 12531 esac 12532 done 12533 ;; 12534 esac 12535 12536 exp_sym_flag='-bexport' 12537 no_entry_flag='-bnoentry' 12538 fi 12539 12540 # When large executables or shared objects are built, AIX ld can 12541 # have problems creating the table of contents. If linking a library 12542 # or program results in "error TOC overflow" add -mminimal-toc to 12543 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12544 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12545 12546 archive_cmds_CXX='' 12547 hardcode_direct_CXX=yes 12548 hardcode_libdir_separator_CXX=':' 12549 link_all_deplibs_CXX=yes 12550 12551 if test "$GXX" = yes; then 12552 case $host_os in aix4.[012]|aix4.[012].*) 12553 # We only want to do this on AIX 4.2 and lower, the check 12554 # below for broken collect2 doesn't work under 4.3+ 12555 collect2name=`${CC} -print-prog-name=collect2` 12556 if test -f "$collect2name" && \ 12557 strings "$collect2name" | grep resolve_lib_name >/dev/null 12558 then 12559 # We have reworked collect2 12560 : 12561 else 12562 # We have old collect2 12563 hardcode_direct_CXX=unsupported 12564 # It fails to find uninstalled libraries when the uninstalled 12565 # path is not listed in the libpath. Setting hardcode_minus_L 12566 # to unsupported forces relinking 12567 hardcode_minus_L_CXX=yes 12568 hardcode_libdir_flag_spec_CXX='-L$libdir' 12569 hardcode_libdir_separator_CXX= 12570 fi 12571 ;; 12572 esac 12573 shared_flag='-shared' 12574 if test "$aix_use_runtimelinking" = yes; then 12575 shared_flag="$shared_flag "'${wl}-G' 12576 fi 12577 else 12578 # not using gcc 12579 if test "$host_cpu" = ia64; then 12580 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12581 # chokes on -Wl,-G. The following line is correct: 12582 shared_flag='-G' 12583 else 12584 if test "$aix_use_runtimelinking" = yes; then 12585 shared_flag='${wl}-G' 12586 else 12587 shared_flag='${wl}-bM:SRE' 12588 fi 12589 fi 12590 fi 12591 12592 # It seems that -bexpall does not export symbols beginning with 12593 # underscore (_), so it is better to generate a list of symbols to export. 12594 always_export_symbols_CXX=yes 12595 if test "$aix_use_runtimelinking" = yes; then 12596 # Warning - without using the other runtime loading flags (-brtl), 12597 # -berok will link without error, but may produce a broken library. 12598 allow_undefined_flag_CXX='-berok' 12599 # Determine the default libpath from the value encoded in an empty executable. 12600 cat >conftest.$ac_ext <<_ACEOF 12601/* confdefs.h. */ 12602_ACEOF 12603cat confdefs.h >>conftest.$ac_ext 12604cat >>conftest.$ac_ext <<_ACEOF 12605/* end confdefs.h. */ 12606 12607int 12608main () 12609{ 12610 12611 ; 12612 return 0; 12613} 12614_ACEOF 12615rm -f conftest.$ac_objext conftest$ac_exeext 12616if { (ac_try="$ac_link" 12617case "(($ac_try" in 12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12619 *) ac_try_echo=$ac_try;; 12620esac 12621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12622 (eval "$ac_link") 2>conftest.er1 12623 ac_status=$? 12624 grep -v '^ *+' conftest.er1 >conftest.err 12625 rm -f conftest.er1 12626 cat conftest.err >&5 12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12628 (exit $ac_status); } && { 12629 test -z "$ac_cxx_werror_flag" || 12630 test ! -s conftest.err 12631 } && test -s conftest$ac_exeext && 12632 $as_test_x conftest$ac_exeext; then 12633 12634lt_aix_libpath_sed=' 12635 /Import File Strings/,/^$/ { 12636 /^0/ { 12637 s/^0 *\(.*\)$/\1/ 12638 p 12639 } 12640 }' 12641aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12642# Check for a 64-bit object if we didn't find anything. 12643if test -z "$aix_libpath"; then 12644 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12645fi 12646else 12647 echo "$as_me: failed program was:" >&5 12648sed 's/^/| /' conftest.$ac_ext >&5 12649 12650 12651fi 12652 12653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12654 conftest$ac_exeext conftest.$ac_ext 12655if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12656 12657 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12658 12659 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" 12660 else 12661 if test "$host_cpu" = ia64; then 12662 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12663 allow_undefined_flag_CXX="-z nodefs" 12664 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" 12665 else 12666 # Determine the default libpath from the value encoded in an empty executable. 12667 cat >conftest.$ac_ext <<_ACEOF 12668/* confdefs.h. */ 12669_ACEOF 12670cat confdefs.h >>conftest.$ac_ext 12671cat >>conftest.$ac_ext <<_ACEOF 12672/* end confdefs.h. */ 12673 12674int 12675main () 12676{ 12677 12678 ; 12679 return 0; 12680} 12681_ACEOF 12682rm -f conftest.$ac_objext conftest$ac_exeext 12683if { (ac_try="$ac_link" 12684case "(($ac_try" in 12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12686 *) ac_try_echo=$ac_try;; 12687esac 12688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12689 (eval "$ac_link") 2>conftest.er1 12690 ac_status=$? 12691 grep -v '^ *+' conftest.er1 >conftest.err 12692 rm -f conftest.er1 12693 cat conftest.err >&5 12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12695 (exit $ac_status); } && { 12696 test -z "$ac_cxx_werror_flag" || 12697 test ! -s conftest.err 12698 } && test -s conftest$ac_exeext && 12699 $as_test_x conftest$ac_exeext; then 12700 12701lt_aix_libpath_sed=' 12702 /Import File Strings/,/^$/ { 12703 /^0/ { 12704 s/^0 *\(.*\)$/\1/ 12705 p 12706 } 12707 }' 12708aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12709# Check for a 64-bit object if we didn't find anything. 12710if test -z "$aix_libpath"; then 12711 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12712fi 12713else 12714 echo "$as_me: failed program was:" >&5 12715sed 's/^/| /' conftest.$ac_ext >&5 12716 12717 12718fi 12719 12720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12721 conftest$ac_exeext conftest.$ac_ext 12722if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12723 12724 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12725 # Warning - without using the other run time loading flags, 12726 # -berok will link without error, but may produce a broken library. 12727 no_undefined_flag_CXX=' ${wl}-bernotok' 12728 allow_undefined_flag_CXX=' ${wl}-berok' 12729 # Exported symbols can be pulled into shared objects from archives 12730 whole_archive_flag_spec_CXX='$convenience' 12731 archive_cmds_need_lc_CXX=yes 12732 # This is similar to how AIX traditionally builds its shared libraries. 12733 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' 12734 fi 12735 fi 12736 ;; 12737 12738 beos*) 12739 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 12740 allow_undefined_flag_CXX=unsupported 12741 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12742 # support --undefined. This deserves some investigation. FIXME 12743 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12744 else 12745 ld_shlibs_CXX=no 12746 fi 12747 ;; 12748 12749 chorus*) 12750 case $cc_basename in 12751 *) 12752 # FIXME: insert proper C++ library support 12753 ld_shlibs_CXX=no 12754 ;; 12755 esac 12756 ;; 12757 12758 cygwin* | mingw* | pw32*) 12759 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12760 # as there is no search path for DLLs. 12761 hardcode_libdir_flag_spec_CXX='-L$libdir' 12762 allow_undefined_flag_CXX=unsupported 12763 always_export_symbols_CXX=no 12764 enable_shared_with_static_runtimes_CXX=yes 12765 12766 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 12767 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' 12768 # If the export-symbols file already is a .def file (1st line 12769 # is EXPORTS), use it as is; otherwise, prepend... 12770 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12771 cp $export_symbols $output_objdir/$soname.def; 12772 else 12773 echo EXPORTS > $output_objdir/$soname.def; 12774 cat $export_symbols >> $output_objdir/$soname.def; 12775 fi~ 12776 $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' 12777 else 12778 ld_shlibs_CXX=no 12779 fi 12780 ;; 12781 darwin* | rhapsody*) 12782 archive_cmds_need_lc_CXX=no 12783 hardcode_direct_CXX=no 12784 hardcode_automatic_CXX=yes 12785 hardcode_shlibpath_var_CXX=unsupported 12786 whole_archive_flag_spec_CXX='' 12787 link_all_deplibs_CXX=yes 12788 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12789 if test "$GXX" = yes ; then 12790 output_verbose_link_cmd='echo' 12791 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12792 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12793 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 12794 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 12795 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12796 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 12797 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 12798 fi 12799 else 12800 case $cc_basename in 12801 xlc*) 12802 output_verbose_link_cmd='echo' 12803 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 12804 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12805 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12806 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12807 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}' 12808 ;; 12809 *) 12810 ld_shlibs_CXX=no 12811 ;; 12812 esac 12813 fi 12814 ;; 12815 12816 dgux*) 12817 case $cc_basename in 12818 ec++*) 12819 # FIXME: insert proper C++ library support 12820 ld_shlibs_CXX=no 12821 ;; 12822 ghcx*) 12823 # Green Hills C++ Compiler 12824 # FIXME: insert proper C++ library support 12825 ld_shlibs_CXX=no 12826 ;; 12827 *) 12828 # FIXME: insert proper C++ library support 12829 ld_shlibs_CXX=no 12830 ;; 12831 esac 12832 ;; 12833 freebsd[12]*) 12834 # C++ shared libraries reported to be fairly broken before switch to ELF 12835 ld_shlibs_CXX=no 12836 ;; 12837 freebsd-elf*) 12838 archive_cmds_need_lc_CXX=no 12839 ;; 12840 freebsd* | dragonfly*) 12841 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12842 # conventions 12843 ld_shlibs_CXX=yes 12844 ;; 12845 gnu*) 12846 ;; 12847 hpux9*) 12848 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12849 hardcode_libdir_separator_CXX=: 12850 export_dynamic_flag_spec_CXX='${wl}-E' 12851 hardcode_direct_CXX=yes 12852 hardcode_minus_L_CXX=yes # Not in the search PATH, 12853 # but as the default 12854 # location of the library. 12855 12856 case $cc_basename in 12857 CC*) 12858 # FIXME: insert proper C++ library support 12859 ld_shlibs_CXX=no 12860 ;; 12861 aCC*) 12862 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' 12863 # Commands to make compiler produce verbose output that lists 12864 # what "hidden" libraries, object files and flags are used when 12865 # linking a shared library. 12866 # 12867 # There doesn't appear to be a way to prevent this compiler from 12868 # explicitly linking system object files so we need to strip them 12869 # from the output so that they don't get included in the library 12870 # dependencies. 12871 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' 12872 ;; 12873 *) 12874 if test "$GXX" = yes; then 12875 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' 12876 else 12877 # FIXME: insert proper C++ library support 12878 ld_shlibs_CXX=no 12879 fi 12880 ;; 12881 esac 12882 ;; 12883 hpux10*|hpux11*) 12884 if test $with_gnu_ld = no; then 12885 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12886 hardcode_libdir_separator_CXX=: 12887 12888 case $host_cpu in 12889 hppa*64*|ia64*) ;; 12890 *) 12891 export_dynamic_flag_spec_CXX='${wl}-E' 12892 ;; 12893 esac 12894 fi 12895 case $host_cpu in 12896 hppa*64*|ia64*) 12897 hardcode_direct_CXX=no 12898 hardcode_shlibpath_var_CXX=no 12899 ;; 12900 *) 12901 hardcode_direct_CXX=yes 12902 hardcode_minus_L_CXX=yes # Not in the search PATH, 12903 # but as the default 12904 # location of the library. 12905 ;; 12906 esac 12907 12908 case $cc_basename in 12909 CC*) 12910 # FIXME: insert proper C++ library support 12911 ld_shlibs_CXX=no 12912 ;; 12913 aCC*) 12914 case $host_cpu in 12915 hppa*64*) 12916 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12917 ;; 12918 ia64*) 12919 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12920 ;; 12921 *) 12922 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12923 ;; 12924 esac 12925 # Commands to make compiler produce verbose output that lists 12926 # what "hidden" libraries, object files and flags are used when 12927 # linking a shared library. 12928 # 12929 # There doesn't appear to be a way to prevent this compiler from 12930 # explicitly linking system object files so we need to strip them 12931 # from the output so that they don't get included in the library 12932 # dependencies. 12933 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' 12934 ;; 12935 *) 12936 if test "$GXX" = yes; then 12937 if test $with_gnu_ld = no; then 12938 case $host_cpu in 12939 hppa*64*) 12940 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12941 ;; 12942 ia64*) 12943 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12944 ;; 12945 *) 12946 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' 12947 ;; 12948 esac 12949 fi 12950 else 12951 # FIXME: insert proper C++ library support 12952 ld_shlibs_CXX=no 12953 fi 12954 ;; 12955 esac 12956 ;; 12957 interix[3-9]*) 12958 hardcode_direct_CXX=no 12959 hardcode_shlibpath_var_CXX=no 12960 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12961 export_dynamic_flag_spec_CXX='${wl}-E' 12962 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12963 # Instead, shared libraries are loaded at an image base (0x10000000 by 12964 # default) and relocated if they conflict, which is a slow very memory 12965 # consuming and fragmenting process. To avoid this, we pick a random, 12966 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12967 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12968 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' 12969 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' 12970 ;; 12971 irix5* | irix6*) 12972 case $cc_basename in 12973 CC*) 12974 # SGI C++ 12975 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' 12976 12977 # Archives containing C++ object files must be created using 12978 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12979 # necessary to make sure instantiated templates are included 12980 # in the archive. 12981 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12982 ;; 12983 *) 12984 if test "$GXX" = yes; then 12985 if test "$with_gnu_ld" = no; then 12986 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' 12987 else 12988 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' 12989 fi 12990 fi 12991 link_all_deplibs_CXX=yes 12992 ;; 12993 esac 12994 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12995 hardcode_libdir_separator_CXX=: 12996 ;; 12997 linux* | k*bsd*-gnu) 12998 case $cc_basename in 12999 KCC*) 13000 # Kuck and Associates, Inc. (KAI) C++ Compiler 13001 13002 # KCC will only create a shared library if the output file 13003 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13004 # to its proper name (with version) after linking. 13005 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' 13006 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' 13007 # Commands to make compiler produce verbose output that lists 13008 # what "hidden" libraries, object files and flags are used when 13009 # linking a shared library. 13010 # 13011 # There doesn't appear to be a way to prevent this compiler from 13012 # explicitly linking system object files so we need to strip them 13013 # from the output so that they don't get included in the library 13014 # dependencies. 13015 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' 13016 13017 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 13018 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13019 13020 # Archives containing C++ object files must be created using 13021 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13022 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13023 ;; 13024 icpc*) 13025 # Intel C++ 13026 with_gnu_ld=yes 13027 # version 8.0 and above of icpc choke on multiply defined symbols 13028 # if we add $predep_objects and $postdep_objects, however 7.1 and 13029 # earlier do not add the objects themselves. 13030 case `$CC -V 2>&1` in 13031 *"Version 7."*) 13032 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13033 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' 13034 ;; 13035 *) # Version 8.0 or newer 13036 tmp_idyn= 13037 case $host_cpu in 13038 ia64*) tmp_idyn=' -i_dynamic';; 13039 esac 13040 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13041 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' 13042 ;; 13043 esac 13044 archive_cmds_need_lc_CXX=no 13045 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13046 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13047 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13048 ;; 13049 pgCC* | pgcpp*) 13050 # Portland Group C++ compiler 13051 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13052 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' 13053 13054 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13055 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13056 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' 13057 ;; 13058 cxx*) 13059 # Compaq C++ 13060 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13061 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' 13062 13063 runpath_var=LD_RUN_PATH 13064 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13065 hardcode_libdir_separator_CXX=: 13066 13067 # Commands to make compiler produce verbose output that lists 13068 # what "hidden" libraries, object files and flags are used when 13069 # linking a shared library. 13070 # 13071 # There doesn't appear to be a way to prevent this compiler from 13072 # explicitly linking system object files so we need to strip them 13073 # from the output so that they don't get included in the library 13074 # dependencies. 13075 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' 13076 ;; 13077 *) 13078 case `$CC -V 2>&1 | sed 5q` in 13079 *Sun\ C*) 13080 # Sun C++ 5.9 13081 no_undefined_flag_CXX=' -zdefs' 13082 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13083 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 13084 hardcode_libdir_flag_spec_CXX='-R$libdir' 13085 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 13086 13087 # Not sure whether something based on 13088 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13089 # would be better. 13090 output_verbose_link_cmd='echo' 13091 13092 # Archives containing C++ object files must be created using 13093 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13094 # necessary to make sure instantiated templates are included 13095 # in the archive. 13096 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13097 ;; 13098 esac 13099 ;; 13100 esac 13101 ;; 13102 lynxos*) 13103 # FIXME: insert proper C++ library support 13104 ld_shlibs_CXX=no 13105 ;; 13106 m88k*) 13107 # FIXME: insert proper C++ library support 13108 ld_shlibs_CXX=no 13109 ;; 13110 mvs*) 13111 case $cc_basename in 13112 cxx*) 13113 # FIXME: insert proper C++ library support 13114 ld_shlibs_CXX=no 13115 ;; 13116 *) 13117 # FIXME: insert proper C++ library support 13118 ld_shlibs_CXX=no 13119 ;; 13120 esac 13121 ;; 13122 netbsd* | netbsdelf*-gnu) 13123 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13124 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13125 wlarc= 13126 hardcode_libdir_flag_spec_CXX='-R$libdir' 13127 hardcode_direct_CXX=yes 13128 hardcode_shlibpath_var_CXX=no 13129 fi 13130 # Workaround some broken pre-1.5 toolchains 13131 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13132 ;; 13133 openbsd2*) 13134 # C++ shared libraries are fairly broken 13135 ld_shlibs_CXX=no 13136 ;; 13137 openbsd*) 13138 if test -f /usr/libexec/ld.so; then 13139 hardcode_direct_CXX=yes 13140 hardcode_shlibpath_var_CXX=no 13141 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13142 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13143 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13144 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13145 export_dynamic_flag_spec_CXX='${wl}-E' 13146 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13147 fi 13148 output_verbose_link_cmd='echo' 13149 else 13150 ld_shlibs_CXX=no 13151 fi 13152 ;; 13153 osf3*) 13154 case $cc_basename in 13155 KCC*) 13156 # Kuck and Associates, Inc. (KAI) C++ Compiler 13157 13158 # KCC will only create a shared library if the output file 13159 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13160 # to its proper name (with version) after linking. 13161 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' 13162 13163 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13164 hardcode_libdir_separator_CXX=: 13165 13166 # Archives containing C++ object files must be created using 13167 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13168 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13169 13170 ;; 13171 RCC*) 13172 # Rational C++ 2.4.1 13173 # FIXME: insert proper C++ library support 13174 ld_shlibs_CXX=no 13175 ;; 13176 cxx*) 13177 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13178 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' 13179 13180 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13181 hardcode_libdir_separator_CXX=: 13182 13183 # Commands to make compiler produce verbose output that lists 13184 # what "hidden" libraries, object files and flags are used when 13185 # linking a shared library. 13186 # 13187 # There doesn't appear to be a way to prevent this compiler from 13188 # explicitly linking system object files so we need to strip them 13189 # from the output so that they don't get included in the library 13190 # dependencies. 13191 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' 13192 ;; 13193 *) 13194 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13195 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13196 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' 13197 13198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13199 hardcode_libdir_separator_CXX=: 13200 13201 # Commands to make compiler produce verbose output that lists 13202 # what "hidden" libraries, object files and flags are used when 13203 # linking a shared library. 13204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13205 13206 else 13207 # FIXME: insert proper C++ library support 13208 ld_shlibs_CXX=no 13209 fi 13210 ;; 13211 esac 13212 ;; 13213 osf4* | osf5*) 13214 case $cc_basename in 13215 KCC*) 13216 # Kuck and Associates, Inc. (KAI) C++ Compiler 13217 13218 # KCC will only create a shared library if the output file 13219 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13220 # to its proper name (with version) after linking. 13221 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' 13222 13223 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13224 hardcode_libdir_separator_CXX=: 13225 13226 # Archives containing C++ object files must be created using 13227 # the KAI C++ compiler. 13228 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 13229 ;; 13230 RCC*) 13231 # Rational C++ 2.4.1 13232 # FIXME: insert proper C++ library support 13233 ld_shlibs_CXX=no 13234 ;; 13235 cxx*) 13236 allow_undefined_flag_CXX=' -expect_unresolved \*' 13237 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' 13238 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13239 echo "-hidden">> $lib.exp~ 13240 $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~ 13241 $rm $lib.exp' 13242 13243 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13244 hardcode_libdir_separator_CXX=: 13245 13246 # Commands to make compiler produce verbose output that lists 13247 # what "hidden" libraries, object files and flags are used when 13248 # linking a shared library. 13249 # 13250 # There doesn't appear to be a way to prevent this compiler from 13251 # explicitly linking system object files so we need to strip them 13252 # from the output so that they don't get included in the library 13253 # dependencies. 13254 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' 13255 ;; 13256 *) 13257 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13258 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13259 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' 13260 13261 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13262 hardcode_libdir_separator_CXX=: 13263 13264 # Commands to make compiler produce verbose output that lists 13265 # what "hidden" libraries, object files and flags are used when 13266 # linking a shared library. 13267 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 13268 13269 else 13270 # FIXME: insert proper C++ library support 13271 ld_shlibs_CXX=no 13272 fi 13273 ;; 13274 esac 13275 ;; 13276 psos*) 13277 # FIXME: insert proper C++ library support 13278 ld_shlibs_CXX=no 13279 ;; 13280 sunos4*) 13281 case $cc_basename in 13282 CC*) 13283 # Sun C++ 4.x 13284 # FIXME: insert proper C++ library support 13285 ld_shlibs_CXX=no 13286 ;; 13287 lcc*) 13288 # Lucid 13289 # FIXME: insert proper C++ library support 13290 ld_shlibs_CXX=no 13291 ;; 13292 *) 13293 # FIXME: insert proper C++ library support 13294 ld_shlibs_CXX=no 13295 ;; 13296 esac 13297 ;; 13298 solaris*) 13299 case $cc_basename in 13300 CC*) 13301 # Sun C++ 4.2, 5.x and Centerline C++ 13302 archive_cmds_need_lc_CXX=yes 13303 no_undefined_flag_CXX=' -zdefs' 13304 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13305 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13306 $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' 13307 13308 hardcode_libdir_flag_spec_CXX='-R$libdir' 13309 hardcode_shlibpath_var_CXX=no 13310 case $host_os in 13311 solaris2.[0-5] | solaris2.[0-5].*) ;; 13312 *) 13313 # The compiler driver will combine and reorder linker options, 13314 # but understands `-z linker_flag'. 13315 # Supported since Solaris 2.6 (maybe 2.5.1?) 13316 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13317 ;; 13318 esac 13319 link_all_deplibs_CXX=yes 13320 13321 output_verbose_link_cmd='echo' 13322 13323 # Archives containing C++ object files must be created using 13324 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13325 # necessary to make sure instantiated templates are included 13326 # in the archive. 13327 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13328 ;; 13329 gcx*) 13330 # Green Hills C++ Compiler 13331 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13332 13333 # The C++ compiler must be used to create the archive. 13334 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13335 ;; 13336 *) 13337 # GNU C++ compiler with Solaris linker 13338 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13339 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13340 if $CC --version | grep -v '^2\.7' > /dev/null; then 13341 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13342 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13343 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 13344 13345 # Commands to make compiler produce verbose output that lists 13346 # what "hidden" libraries, object files and flags are used when 13347 # linking a shared library. 13348 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13349 else 13350 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13351 # platform. 13352 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13353 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13354 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 13355 13356 # Commands to make compiler produce verbose output that lists 13357 # what "hidden" libraries, object files and flags are used when 13358 # linking a shared library. 13359 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 13360 fi 13361 13362 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13363 case $host_os in 13364 solaris2.[0-5] | solaris2.[0-5].*) ;; 13365 *) 13366 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13367 ;; 13368 esac 13369 fi 13370 ;; 13371 esac 13372 ;; 13373 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13374 no_undefined_flag_CXX='${wl}-z,text' 13375 archive_cmds_need_lc_CXX=no 13376 hardcode_shlibpath_var_CXX=no 13377 runpath_var='LD_RUN_PATH' 13378 13379 case $cc_basename in 13380 CC*) 13381 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13382 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13383 ;; 13384 *) 13385 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13386 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13387 ;; 13388 esac 13389 ;; 13390 sysv5* | sco3.2v5* | sco5v6*) 13391 # Note: We can NOT use -z defs as we might desire, because we do not 13392 # link with -lc, and that would cause any symbols used from libc to 13393 # always be unresolved, which means just about no library would 13394 # ever link correctly. If we're not using GNU ld we use -z text 13395 # though, which does catch some bad symbols but isn't as heavy-handed 13396 # as -z defs. 13397 # For security reasons, it is highly recommended that you always 13398 # use absolute paths for naming shared libraries, and exclude the 13399 # DT_RUNPATH tag from executables and libraries. But doing so 13400 # requires that you compile everything twice, which is a pain. 13401 # So that behaviour is only enabled if SCOABSPATH is set to a 13402 # non-empty value in the environment. Most likely only useful for 13403 # creating official distributions of packages. 13404 # This is a hack until libtool officially supports absolute path 13405 # names for shared libraries. 13406 no_undefined_flag_CXX='${wl}-z,text' 13407 allow_undefined_flag_CXX='${wl}-z,nodefs' 13408 archive_cmds_need_lc_CXX=no 13409 hardcode_shlibpath_var_CXX=no 13410 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 13411 hardcode_libdir_separator_CXX=':' 13412 link_all_deplibs_CXX=yes 13413 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13414 runpath_var='LD_RUN_PATH' 13415 13416 case $cc_basename in 13417 CC*) 13418 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13419 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13420 ;; 13421 *) 13422 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13423 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 13424 ;; 13425 esac 13426 ;; 13427 tandem*) 13428 case $cc_basename in 13429 NCC*) 13430 # NonStop-UX NCC 3.20 13431 # FIXME: insert proper C++ library support 13432 ld_shlibs_CXX=no 13433 ;; 13434 *) 13435 # FIXME: insert proper C++ library support 13436 ld_shlibs_CXX=no 13437 ;; 13438 esac 13439 ;; 13440 vxworks*) 13441 # FIXME: insert proper C++ library support 13442 ld_shlibs_CXX=no 13443 ;; 13444 *) 13445 # FIXME: insert proper C++ library support 13446 ld_shlibs_CXX=no 13447 ;; 13448esac 13449{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13450echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 13451test "$ld_shlibs_CXX" = no && can_build_shared=no 13452 13453GCC_CXX="$GXX" 13454LD_CXX="$LD" 13455 13456cat > conftest.$ac_ext <<EOF 13457class Foo 13458{ 13459public: 13460 Foo (void) { a = 0; } 13461private: 13462 int a; 13463}; 13464EOF 13465 13466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13467 (eval $ac_compile) 2>&5 13468 ac_status=$? 13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13470 (exit $ac_status); }; then 13471 # Parse the compiler output and extract the necessary 13472 # objects, libraries and library flags. 13473 13474 # Sentinel used to keep track of whether or not we are before 13475 # the conftest object file. 13476 pre_test_object_deps_done=no 13477 13478 # The `*' in the case matches for architectures that use `case' in 13479 # $output_verbose_cmd can trigger glob expansion during the loop 13480 # eval without this substitution. 13481 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 13482 13483 for p in `eval $output_verbose_link_cmd`; do 13484 case $p in 13485 13486 -L* | -R* | -l*) 13487 # Some compilers place space between "-{L,R}" and the path. 13488 # Remove the space. 13489 if test $p = "-L" \ 13490 || test $p = "-R"; then 13491 prev=$p 13492 continue 13493 else 13494 prev= 13495 fi 13496 13497 if test "$pre_test_object_deps_done" = no; then 13498 case $p in 13499 -L* | -R*) 13500 # Internal compiler library paths should come after those 13501 # provided the user. The postdeps already come after the 13502 # user supplied libs so there is no need to process them. 13503 if test -z "$compiler_lib_search_path_CXX"; then 13504 compiler_lib_search_path_CXX="${prev}${p}" 13505 else 13506 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13507 fi 13508 ;; 13509 # The "-l" case would never come before the object being 13510 # linked, so don't bother handling this case. 13511 esac 13512 else 13513 if test -z "$postdeps_CXX"; then 13514 postdeps_CXX="${prev}${p}" 13515 else 13516 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13517 fi 13518 fi 13519 ;; 13520 13521 *.$objext) 13522 # This assumes that the test object file only shows up 13523 # once in the compiler output. 13524 if test "$p" = "conftest.$objext"; then 13525 pre_test_object_deps_done=yes 13526 continue 13527 fi 13528 13529 if test "$pre_test_object_deps_done" = no; then 13530 if test -z "$predep_objects_CXX"; then 13531 predep_objects_CXX="$p" 13532 else 13533 predep_objects_CXX="$predep_objects_CXX $p" 13534 fi 13535 else 13536 if test -z "$postdep_objects_CXX"; then 13537 postdep_objects_CXX="$p" 13538 else 13539 postdep_objects_CXX="$postdep_objects_CXX $p" 13540 fi 13541 fi 13542 ;; 13543 13544 *) ;; # Ignore the rest. 13545 13546 esac 13547 done 13548 13549 # Clean up. 13550 rm -f a.out a.exe 13551else 13552 echo "libtool.m4: error: problem compiling CXX test program" 13553fi 13554 13555$rm -f confest.$objext 13556 13557compiler_lib_search_dirs_CXX= 13558if test -n "$compiler_lib_search_path_CXX"; then 13559 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13560fi 13561 13562# PORTME: override above test on systems where it is broken 13563case $host_os in 13564interix[3-9]*) 13565 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13566 # hack all around it, let's just trust "g++" to DTRT. 13567 predep_objects_CXX= 13568 postdep_objects_CXX= 13569 postdeps_CXX= 13570 ;; 13571 13572linux*) 13573 case `$CC -V 2>&1 | sed 5q` in 13574 *Sun\ C*) 13575 # Sun C++ 5.9 13576 # 13577 # The more standards-conforming stlport4 library is 13578 # incompatible with the Cstd library. Avoid specifying 13579 # it if it's in CXXFLAGS. Ignore libCrun as 13580 # -library=stlport4 depends on it. 13581 case " $CXX $CXXFLAGS " in 13582 *" -library=stlport4 "*) 13583 solaris_use_stlport4=yes 13584 ;; 13585 esac 13586 if test "$solaris_use_stlport4" != yes; then 13587 postdeps_CXX='-library=Cstd -library=Crun' 13588 fi 13589 ;; 13590 esac 13591 ;; 13592 13593solaris*) 13594 case $cc_basename in 13595 CC*) 13596 # The more standards-conforming stlport4 library is 13597 # incompatible with the Cstd library. Avoid specifying 13598 # it if it's in CXXFLAGS. Ignore libCrun as 13599 # -library=stlport4 depends on it. 13600 case " $CXX $CXXFLAGS " in 13601 *" -library=stlport4 "*) 13602 solaris_use_stlport4=yes 13603 ;; 13604 esac 13605 13606 # Adding this requires a known-good setup of shared libraries for 13607 # Sun compiler versions before 5.6, else PIC objects from an old 13608 # archive will be linked into the output, leading to subtle bugs. 13609 if test "$solaris_use_stlport4" != yes; then 13610 postdeps_CXX='-library=Cstd -library=Crun' 13611 fi 13612 ;; 13613 esac 13614 ;; 13615esac 13616 13617case " $postdeps_CXX " in 13618*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13619esac 13620 13621lt_prog_compiler_wl_CXX= 13622lt_prog_compiler_pic_CXX= 13623lt_prog_compiler_static_CXX= 13624 13625{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13626echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13627 13628 # C++ specific cases for pic, static, wl, etc. 13629 if test "$GXX" = yes; then 13630 lt_prog_compiler_wl_CXX='-Wl,' 13631 lt_prog_compiler_static_CXX='-static' 13632 13633 case $host_os in 13634 aix*) 13635 # All AIX code is PIC. 13636 if test "$host_cpu" = ia64; then 13637 # AIX 5 now supports IA64 processor 13638 lt_prog_compiler_static_CXX='-Bstatic' 13639 fi 13640 ;; 13641 amigaos*) 13642 # FIXME: we need at least 68020 code to build shared libraries, but 13643 # adding the `-m68020' flag to GCC prevents building anything better, 13644 # like `-m68040'. 13645 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13646 ;; 13647 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13648 # PIC is the default for these OSes. 13649 ;; 13650 mingw* | cygwin* | os2* | pw32*) 13651 # This hack is so that the source file can tell whether it is being 13652 # built for inclusion in a dll (and should export symbols for example). 13653 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13654 # (--disable-auto-import) libraries 13655 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13656 ;; 13657 darwin* | rhapsody*) 13658 # PIC is the default on this platform 13659 # Common symbols not allowed in MH_DYLIB files 13660 lt_prog_compiler_pic_CXX='-fno-common' 13661 ;; 13662 *djgpp*) 13663 # DJGPP does not support shared libraries at all 13664 lt_prog_compiler_pic_CXX= 13665 ;; 13666 interix[3-9]*) 13667 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13668 # Instead, we relocate shared libraries at runtime. 13669 ;; 13670 sysv4*MP*) 13671 if test -d /usr/nec; then 13672 lt_prog_compiler_pic_CXX=-Kconform_pic 13673 fi 13674 ;; 13675 hpux*) 13676 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13677 # not for PA HP-UX. 13678 case $host_cpu in 13679 hppa*64*|ia64*) 13680 ;; 13681 *) 13682 lt_prog_compiler_pic_CXX='-fPIC' 13683 ;; 13684 esac 13685 ;; 13686 *) 13687 lt_prog_compiler_pic_CXX='-fPIC' 13688 ;; 13689 esac 13690 else 13691 case $host_os in 13692 aix[4-9]*) 13693 # All AIX code is PIC. 13694 if test "$host_cpu" = ia64; then 13695 # AIX 5 now supports IA64 processor 13696 lt_prog_compiler_static_CXX='-Bstatic' 13697 else 13698 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13699 fi 13700 ;; 13701 chorus*) 13702 case $cc_basename in 13703 cxch68*) 13704 # Green Hills C++ Compiler 13705 # _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" 13706 ;; 13707 esac 13708 ;; 13709 darwin*) 13710 # PIC is the default on this platform 13711 # Common symbols not allowed in MH_DYLIB files 13712 case $cc_basename in 13713 xlc*) 13714 lt_prog_compiler_pic_CXX='-qnocommon' 13715 lt_prog_compiler_wl_CXX='-Wl,' 13716 ;; 13717 esac 13718 ;; 13719 dgux*) 13720 case $cc_basename in 13721 ec++*) 13722 lt_prog_compiler_pic_CXX='-KPIC' 13723 ;; 13724 ghcx*) 13725 # Green Hills C++ Compiler 13726 lt_prog_compiler_pic_CXX='-pic' 13727 ;; 13728 *) 13729 ;; 13730 esac 13731 ;; 13732 freebsd* | dragonfly*) 13733 # FreeBSD uses GNU C++ 13734 ;; 13735 hpux9* | hpux10* | hpux11*) 13736 case $cc_basename in 13737 CC*) 13738 lt_prog_compiler_wl_CXX='-Wl,' 13739 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13740 if test "$host_cpu" != ia64; then 13741 lt_prog_compiler_pic_CXX='+Z' 13742 fi 13743 ;; 13744 aCC*) 13745 lt_prog_compiler_wl_CXX='-Wl,' 13746 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13747 case $host_cpu in 13748 hppa*64*|ia64*) 13749 # +Z the default 13750 ;; 13751 *) 13752 lt_prog_compiler_pic_CXX='+Z' 13753 ;; 13754 esac 13755 ;; 13756 *) 13757 ;; 13758 esac 13759 ;; 13760 interix*) 13761 # This is c89, which is MS Visual C++ (no shared libs) 13762 # Anyone wants to do a port? 13763 ;; 13764 irix5* | irix6* | nonstopux*) 13765 case $cc_basename in 13766 CC*) 13767 lt_prog_compiler_wl_CXX='-Wl,' 13768 lt_prog_compiler_static_CXX='-non_shared' 13769 # CC pic flag -KPIC is the default. 13770 ;; 13771 *) 13772 ;; 13773 esac 13774 ;; 13775 linux* | k*bsd*-gnu) 13776 case $cc_basename in 13777 KCC*) 13778 # KAI C++ Compiler 13779 lt_prog_compiler_wl_CXX='--backend -Wl,' 13780 lt_prog_compiler_pic_CXX='-fPIC' 13781 ;; 13782 icpc* | ecpc*) 13783 # Intel C++ 13784 lt_prog_compiler_wl_CXX='-Wl,' 13785 lt_prog_compiler_pic_CXX='-KPIC' 13786 lt_prog_compiler_static_CXX='-static' 13787 ;; 13788 pgCC* | pgcpp*) 13789 # Portland Group C++ compiler. 13790 lt_prog_compiler_wl_CXX='-Wl,' 13791 lt_prog_compiler_pic_CXX='-fpic' 13792 lt_prog_compiler_static_CXX='-Bstatic' 13793 ;; 13794 cxx*) 13795 # Compaq C++ 13796 # Make sure the PIC flag is empty. It appears that all Alpha 13797 # Linux and Compaq Tru64 Unix objects are PIC. 13798 lt_prog_compiler_pic_CXX= 13799 lt_prog_compiler_static_CXX='-non_shared' 13800 ;; 13801 *) 13802 case `$CC -V 2>&1 | sed 5q` in 13803 *Sun\ C*) 13804 # Sun C++ 5.9 13805 lt_prog_compiler_pic_CXX='-KPIC' 13806 lt_prog_compiler_static_CXX='-Bstatic' 13807 lt_prog_compiler_wl_CXX='-Qoption ld ' 13808 ;; 13809 esac 13810 ;; 13811 esac 13812 ;; 13813 lynxos*) 13814 ;; 13815 m88k*) 13816 ;; 13817 mvs*) 13818 case $cc_basename in 13819 cxx*) 13820 lt_prog_compiler_pic_CXX='-W c,exportall' 13821 ;; 13822 *) 13823 ;; 13824 esac 13825 ;; 13826 netbsd* | netbsdelf*-gnu) 13827 ;; 13828 osf3* | osf4* | osf5*) 13829 case $cc_basename in 13830 KCC*) 13831 lt_prog_compiler_wl_CXX='--backend -Wl,' 13832 ;; 13833 RCC*) 13834 # Rational C++ 2.4.1 13835 lt_prog_compiler_pic_CXX='-pic' 13836 ;; 13837 cxx*) 13838 # Digital/Compaq C++ 13839 lt_prog_compiler_wl_CXX='-Wl,' 13840 # Make sure the PIC flag is empty. It appears that all Alpha 13841 # Linux and Compaq Tru64 Unix objects are PIC. 13842 lt_prog_compiler_pic_CXX= 13843 lt_prog_compiler_static_CXX='-non_shared' 13844 ;; 13845 *) 13846 ;; 13847 esac 13848 ;; 13849 psos*) 13850 ;; 13851 solaris*) 13852 case $cc_basename in 13853 CC*) 13854 # Sun C++ 4.2, 5.x and Centerline C++ 13855 lt_prog_compiler_pic_CXX='-KPIC' 13856 lt_prog_compiler_static_CXX='-Bstatic' 13857 lt_prog_compiler_wl_CXX='-Qoption ld ' 13858 ;; 13859 gcx*) 13860 # Green Hills C++ Compiler 13861 lt_prog_compiler_pic_CXX='-PIC' 13862 ;; 13863 *) 13864 ;; 13865 esac 13866 ;; 13867 sunos4*) 13868 case $cc_basename in 13869 CC*) 13870 # Sun C++ 4.x 13871 lt_prog_compiler_pic_CXX='-pic' 13872 lt_prog_compiler_static_CXX='-Bstatic' 13873 ;; 13874 lcc*) 13875 # Lucid 13876 lt_prog_compiler_pic_CXX='-pic' 13877 ;; 13878 *) 13879 ;; 13880 esac 13881 ;; 13882 tandem*) 13883 case $cc_basename in 13884 NCC*) 13885 # NonStop-UX NCC 3.20 13886 lt_prog_compiler_pic_CXX='-KPIC' 13887 ;; 13888 *) 13889 ;; 13890 esac 13891 ;; 13892 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13893 case $cc_basename in 13894 CC*) 13895 lt_prog_compiler_wl_CXX='-Wl,' 13896 lt_prog_compiler_pic_CXX='-KPIC' 13897 lt_prog_compiler_static_CXX='-Bstatic' 13898 ;; 13899 esac 13900 ;; 13901 vxworks*) 13902 ;; 13903 *) 13904 lt_prog_compiler_can_build_shared_CXX=no 13905 ;; 13906 esac 13907 fi 13908 13909{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13910echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 13911 13912# 13913# Check to make sure the PIC flag actually works. 13914# 13915if test -n "$lt_prog_compiler_pic_CXX"; then 13916 13917{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13918echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 13919if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 13920 echo $ECHO_N "(cached) $ECHO_C" >&6 13921else 13922 lt_cv_prog_compiler_pic_works_CXX=no 13923 ac_outfile=conftest.$ac_objext 13924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13925 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13926 # Insert the option either (1) after the last *FLAGS variable, or 13927 # (2) before a word containing "conftest.", or (3) at the end. 13928 # Note that $ac_compile itself does not contain backslashes and begins 13929 # with a dollar sign (not a hyphen), so the echo should work correctly. 13930 # The option is referenced via a variable to avoid confusing sed. 13931 lt_compile=`echo "$ac_compile" | $SED \ 13932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13934 -e 's:$: $lt_compiler_flag:'` 13935 (eval echo "\"\$as_me:13935: $lt_compile\"" >&5) 13936 (eval "$lt_compile" 2>conftest.err) 13937 ac_status=$? 13938 cat conftest.err >&5 13939 echo "$as_me:13939: \$? = $ac_status" >&5 13940 if (exit $ac_status) && test -s "$ac_outfile"; then 13941 # The compiler can only warn and ignore the option if not recognized 13942 # So say no if there are warnings other than the usual output. 13943 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13945 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13946 lt_cv_prog_compiler_pic_works_CXX=yes 13947 fi 13948 fi 13949 $rm conftest* 13950 13951fi 13952{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13953echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13954 13955if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13956 case $lt_prog_compiler_pic_CXX in 13957 "" | " "*) ;; 13958 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13959 esac 13960else 13961 lt_prog_compiler_pic_CXX= 13962 lt_prog_compiler_can_build_shared_CXX=no 13963fi 13964 13965fi 13966case $host_os in 13967 # For platforms which do not support PIC, -DPIC is meaningless: 13968 *djgpp*) 13969 lt_prog_compiler_pic_CXX= 13970 ;; 13971 *) 13972 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13973 ;; 13974esac 13975 13976# 13977# Check to make sure the static flag actually works. 13978# 13979wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13980{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13981echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13982if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 13983 echo $ECHO_N "(cached) $ECHO_C" >&6 13984else 13985 lt_cv_prog_compiler_static_works_CXX=no 13986 save_LDFLAGS="$LDFLAGS" 13987 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13988 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13989 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13990 # The linker can only warn and ignore the option if not recognized 13991 # So say no if there are warnings 13992 if test -s conftest.err; then 13993 # Append any errors to the config.log. 13994 cat conftest.err 1>&5 13995 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13997 if diff conftest.exp conftest.er2 >/dev/null; then 13998 lt_cv_prog_compiler_static_works_CXX=yes 13999 fi 14000 else 14001 lt_cv_prog_compiler_static_works_CXX=yes 14002 fi 14003 fi 14004 $rm -r conftest* 14005 LDFLAGS="$save_LDFLAGS" 14006 14007fi 14008{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14009echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } 14010 14011if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14012 : 14013else 14014 lt_prog_compiler_static_CXX= 14015fi 14016 14017 14018{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14019echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14020if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14021 echo $ECHO_N "(cached) $ECHO_C" >&6 14022else 14023 lt_cv_prog_compiler_c_o_CXX=no 14024 $rm -r conftest 2>/dev/null 14025 mkdir conftest 14026 cd conftest 14027 mkdir out 14028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14029 14030 lt_compiler_flag="-o out/conftest2.$ac_objext" 14031 # Insert the option either (1) after the last *FLAGS variable, or 14032 # (2) before a word containing "conftest.", or (3) at the end. 14033 # Note that $ac_compile itself does not contain backslashes and begins 14034 # with a dollar sign (not a hyphen), so the echo should work correctly. 14035 lt_compile=`echo "$ac_compile" | $SED \ 14036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14038 -e 's:$: $lt_compiler_flag:'` 14039 (eval echo "\"\$as_me:14039: $lt_compile\"" >&5) 14040 (eval "$lt_compile" 2>out/conftest.err) 14041 ac_status=$? 14042 cat out/conftest.err >&5 14043 echo "$as_me:14043: \$? = $ac_status" >&5 14044 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14045 then 14046 # The compiler can only warn and ignore the option if not recognized 14047 # So say no if there are warnings 14048 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14051 lt_cv_prog_compiler_c_o_CXX=yes 14052 fi 14053 fi 14054 chmod u+w . 2>&5 14055 $rm conftest* 14056 # SGI C++ compiler will create directory out/ii_files/ for 14057 # template instantiation 14058 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14059 $rm out/* && rmdir out 14060 cd .. 14061 rmdir conftest 14062 $rm conftest* 14063 14064fi 14065{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14066echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 14067 14068 14069hard_links="nottested" 14070if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14071 # do not overwrite the value of need_locks provided by the user 14072 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14073echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14074 hard_links=yes 14075 $rm conftest* 14076 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14077 touch conftest.a 14078 ln conftest.a conftest.b 2>&5 || hard_links=no 14079 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14080 { echo "$as_me:$LINENO: result: $hard_links" >&5 14081echo "${ECHO_T}$hard_links" >&6; } 14082 if test "$hard_links" = no; then 14083 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14084echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14085 need_locks=warn 14086 fi 14087else 14088 need_locks=no 14089fi 14090 14091{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14092echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14093 14094 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14095 case $host_os in 14096 aix[4-9]*) 14097 # If we're using GNU nm, then we don't want the "-C" option. 14098 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14099 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14100 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' 14101 else 14102 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' 14103 fi 14104 ;; 14105 pw32*) 14106 export_symbols_cmds_CXX="$ltdll_cmds" 14107 ;; 14108 cygwin* | mingw*) 14109 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' 14110 ;; 14111 linux* | k*bsd*-gnu) 14112 link_all_deplibs_CXX=no 14113 ;; 14114 *) 14115 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14116 ;; 14117 esac 14118 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14119 14120{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 14121echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 14122test "$ld_shlibs_CXX" = no && can_build_shared=no 14123 14124# 14125# Do we need to explicitly link libc? 14126# 14127case "x$archive_cmds_need_lc_CXX" in 14128x|xyes) 14129 # Assume -lc should be added 14130 archive_cmds_need_lc_CXX=yes 14131 14132 if test "$enable_shared" = yes && test "$GCC" = yes; then 14133 case $archive_cmds_CXX in 14134 *'~'*) 14135 # FIXME: we may have to deal with multi-command sequences. 14136 ;; 14137 '$CC '*) 14138 # Test whether the compiler implicitly links with -lc since on some 14139 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14140 # to ld, don't add -lc before -lgcc. 14141 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14142echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14143 $rm conftest* 14144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14145 14146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14147 (eval $ac_compile) 2>&5 14148 ac_status=$? 14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14150 (exit $ac_status); } 2>conftest.err; then 14151 soname=conftest 14152 lib=conftest 14153 libobjs=conftest.$ac_objext 14154 deplibs= 14155 wl=$lt_prog_compiler_wl_CXX 14156 pic_flag=$lt_prog_compiler_pic_CXX 14157 compiler_flags=-v 14158 linker_flags=-v 14159 verstring= 14160 output_objdir=. 14161 libname=conftest 14162 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14163 allow_undefined_flag_CXX= 14164 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14165 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14166 ac_status=$? 14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14168 (exit $ac_status); } 14169 then 14170 archive_cmds_need_lc_CXX=no 14171 else 14172 archive_cmds_need_lc_CXX=yes 14173 fi 14174 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14175 else 14176 cat conftest.err 1>&5 14177 fi 14178 $rm conftest* 14179 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 14180echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 14181 ;; 14182 esac 14183 fi 14184 ;; 14185esac 14186 14187{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14188echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 14189library_names_spec= 14190libname_spec='lib$name' 14191soname_spec= 14192shrext_cmds=".so" 14193postinstall_cmds= 14194postuninstall_cmds= 14195finish_cmds= 14196finish_eval= 14197shlibpath_var= 14198shlibpath_overrides_runpath=unknown 14199version_type=none 14200dynamic_linker="$host_os ld.so" 14201sys_lib_dlsearch_path_spec="/lib /usr/lib" 14202 14203need_lib_prefix=unknown 14204hardcode_into_libs=no 14205 14206# when you set need_version to no, make sure it does not cause -set_version 14207# flags to be left without arguments 14208need_version=unknown 14209 14210case $host_os in 14211aix3*) 14212 version_type=linux 14213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14214 shlibpath_var=LIBPATH 14215 14216 # AIX 3 has no versioning support, so we append a major version to the name. 14217 soname_spec='${libname}${release}${shared_ext}$major' 14218 ;; 14219 14220aix[4-9]*) 14221 version_type=linux 14222 need_lib_prefix=no 14223 need_version=no 14224 hardcode_into_libs=yes 14225 if test "$host_cpu" = ia64; then 14226 # AIX 5 supports IA64 14227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14228 shlibpath_var=LD_LIBRARY_PATH 14229 else 14230 # With GCC up to 2.95.x, collect2 would create an import file 14231 # for dependence libraries. The import file would start with 14232 # the line `#! .'. This would cause the generated library to 14233 # depend on `.', always an invalid library. This was fixed in 14234 # development snapshots of GCC prior to 3.0. 14235 case $host_os in 14236 aix4 | aix4.[01] | aix4.[01].*) 14237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14238 echo ' yes ' 14239 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14240 : 14241 else 14242 can_build_shared=no 14243 fi 14244 ;; 14245 esac 14246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14247 # soname into executable. Probably we can add versioning support to 14248 # collect2, so additional links can be useful in future. 14249 if test "$aix_use_runtimelinking" = yes; then 14250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14251 # instead of lib<name>.a to let people know that these are not 14252 # typical AIX shared libraries. 14253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14254 else 14255 # We preserve .a as extension for shared libraries through AIX4.2 14256 # and later when we are not doing run time linking. 14257 library_names_spec='${libname}${release}.a $libname.a' 14258 soname_spec='${libname}${release}${shared_ext}$major' 14259 fi 14260 shlibpath_var=LIBPATH 14261 fi 14262 ;; 14263 14264amigaos*) 14265 library_names_spec='$libname.ixlibrary $libname.a' 14266 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14267 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' 14268 ;; 14269 14270beos*) 14271 library_names_spec='${libname}${shared_ext}' 14272 dynamic_linker="$host_os ld.so" 14273 shlibpath_var=LIBRARY_PATH 14274 ;; 14275 14276bsdi[45]*) 14277 version_type=linux 14278 need_version=no 14279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14280 soname_spec='${libname}${release}${shared_ext}$major' 14281 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14282 shlibpath_var=LD_LIBRARY_PATH 14283 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14284 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14285 # the default ld.so.conf also contains /usr/contrib/lib and 14286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14287 # libtool to hard-code these into programs 14288 ;; 14289 14290cygwin* | mingw* | pw32*) 14291 version_type=windows 14292 shrext_cmds=".dll" 14293 need_version=no 14294 need_lib_prefix=no 14295 14296 case $GCC,$host_os in 14297 yes,cygwin* | yes,mingw* | yes,pw32*) 14298 library_names_spec='$libname.dll.a' 14299 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14300 postinstall_cmds='base_file=`basename \${file}`~ 14301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14302 dldir=$destdir/`dirname \$dlpath`~ 14303 test -d \$dldir || mkdir -p \$dldir~ 14304 $install_prog $dir/$dlname \$dldir/$dlname~ 14305 chmod a+x \$dldir/$dlname' 14306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14307 dlpath=$dir/\$dldll~ 14308 $rm \$dlpath' 14309 shlibpath_overrides_runpath=yes 14310 14311 case $host_os in 14312 cygwin*) 14313 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14314 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14315 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14316 ;; 14317 mingw*) 14318 # MinGW DLLs use traditional 'lib' prefix 14319 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14320 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14321 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14322 # It is most probably a Windows format PATH printed by 14323 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14324 # path with ; separators, and with drive letters. We can handle the 14325 # drive letters (cygwin fileutils understands them), so leave them, 14326 # especially as we might pass files found there to a mingw objdump, 14327 # which wouldn't understand a cygwinified path. Ahh. 14328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14329 else 14330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14331 fi 14332 ;; 14333 pw32*) 14334 # pw32 DLLs use 'pw' prefix rather than 'lib' 14335 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14336 ;; 14337 esac 14338 ;; 14339 14340 *) 14341 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14342 ;; 14343 esac 14344 dynamic_linker='Win32 ld.exe' 14345 # FIXME: first we should search . and the directory the executable is in 14346 shlibpath_var=PATH 14347 ;; 14348 14349darwin* | rhapsody*) 14350 dynamic_linker="$host_os dyld" 14351 version_type=darwin 14352 need_lib_prefix=no 14353 need_version=no 14354 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14355 soname_spec='${libname}${release}${major}$shared_ext' 14356 shlibpath_overrides_runpath=yes 14357 shlibpath_var=DYLD_LIBRARY_PATH 14358 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14359 14360 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14361 ;; 14362 14363dgux*) 14364 version_type=linux 14365 need_lib_prefix=no 14366 need_version=no 14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14368 soname_spec='${libname}${release}${shared_ext}$major' 14369 shlibpath_var=LD_LIBRARY_PATH 14370 ;; 14371 14372freebsd1*) 14373 dynamic_linker=no 14374 ;; 14375 14376freebsd* | dragonfly*) 14377 # DragonFly does not have aout. When/if they implement a new 14378 # versioning mechanism, adjust this. 14379 if test -x /usr/bin/objformat; then 14380 objformat=`/usr/bin/objformat` 14381 else 14382 case $host_os in 14383 freebsd[123]*) objformat=aout ;; 14384 *) objformat=elf ;; 14385 esac 14386 fi 14387 version_type=freebsd-$objformat 14388 case $version_type in 14389 freebsd-elf*) 14390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14391 need_version=no 14392 need_lib_prefix=no 14393 ;; 14394 freebsd-*) 14395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14396 need_version=yes 14397 ;; 14398 esac 14399 shlibpath_var=LD_LIBRARY_PATH 14400 case $host_os in 14401 freebsd2*) 14402 shlibpath_overrides_runpath=yes 14403 ;; 14404 freebsd3.[01]* | freebsdelf3.[01]*) 14405 shlibpath_overrides_runpath=yes 14406 hardcode_into_libs=yes 14407 ;; 14408 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14409 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14410 shlibpath_overrides_runpath=no 14411 hardcode_into_libs=yes 14412 ;; 14413 *) # from 4.6 on, and DragonFly 14414 shlibpath_overrides_runpath=yes 14415 hardcode_into_libs=yes 14416 ;; 14417 esac 14418 ;; 14419 14420gnu*) 14421 version_type=linux 14422 need_lib_prefix=no 14423 need_version=no 14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14425 soname_spec='${libname}${release}${shared_ext}$major' 14426 shlibpath_var=LD_LIBRARY_PATH 14427 hardcode_into_libs=yes 14428 ;; 14429 14430hpux9* | hpux10* | hpux11*) 14431 # Give a soname corresponding to the major version so that dld.sl refuses to 14432 # link against other versions. 14433 version_type=sunos 14434 need_lib_prefix=no 14435 need_version=no 14436 case $host_cpu in 14437 ia64*) 14438 shrext_cmds='.so' 14439 hardcode_into_libs=yes 14440 dynamic_linker="$host_os dld.so" 14441 shlibpath_var=LD_LIBRARY_PATH 14442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14444 soname_spec='${libname}${release}${shared_ext}$major' 14445 if test "X$HPUX_IA64_MODE" = X32; then 14446 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14447 else 14448 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14449 fi 14450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14451 ;; 14452 hppa*64*) 14453 shrext_cmds='.sl' 14454 hardcode_into_libs=yes 14455 dynamic_linker="$host_os dld.sl" 14456 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14459 soname_spec='${libname}${release}${shared_ext}$major' 14460 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14462 ;; 14463 *) 14464 shrext_cmds='.sl' 14465 dynamic_linker="$host_os dld.sl" 14466 shlibpath_var=SHLIB_PATH 14467 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14469 soname_spec='${libname}${release}${shared_ext}$major' 14470 ;; 14471 esac 14472 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14473 postinstall_cmds='chmod 555 $lib' 14474 ;; 14475 14476interix[3-9]*) 14477 version_type=linux 14478 need_lib_prefix=no 14479 need_version=no 14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14481 soname_spec='${libname}${release}${shared_ext}$major' 14482 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14483 shlibpath_var=LD_LIBRARY_PATH 14484 shlibpath_overrides_runpath=no 14485 hardcode_into_libs=yes 14486 ;; 14487 14488irix5* | irix6* | nonstopux*) 14489 case $host_os in 14490 nonstopux*) version_type=nonstopux ;; 14491 *) 14492 if test "$lt_cv_prog_gnu_ld" = yes; then 14493 version_type=linux 14494 else 14495 version_type=irix 14496 fi ;; 14497 esac 14498 need_lib_prefix=no 14499 need_version=no 14500 soname_spec='${libname}${release}${shared_ext}$major' 14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14502 case $host_os in 14503 irix5* | nonstopux*) 14504 libsuff= shlibsuff= 14505 ;; 14506 *) 14507 case $LD in # libtool.m4 will add one of these switches to LD 14508 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14509 libsuff= shlibsuff= libmagic=32-bit;; 14510 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14511 libsuff=32 shlibsuff=N32 libmagic=N32;; 14512 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14513 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14514 *) libsuff= shlibsuff= libmagic=never-match;; 14515 esac 14516 ;; 14517 esac 14518 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14519 shlibpath_overrides_runpath=no 14520 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14521 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14522 hardcode_into_libs=yes 14523 ;; 14524 14525# No shared lib support for Linux oldld, aout, or coff. 14526linux*oldld* | linux*aout* | linux*coff*) 14527 dynamic_linker=no 14528 ;; 14529 14530# This must be Linux ELF. 14531linux* | k*bsd*-gnu) 14532 version_type=linux 14533 need_lib_prefix=no 14534 need_version=no 14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14536 soname_spec='${libname}${release}${shared_ext}$major' 14537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14538 shlibpath_var=LD_LIBRARY_PATH 14539 shlibpath_overrides_runpath=no 14540 # This implies no fast_install, which is unacceptable. 14541 # Some rework will be needed to allow for fast_install 14542 # before this can be enabled. 14543 hardcode_into_libs=yes 14544 14545 # Append ld.so.conf contents to the search path 14546 if test -f /etc/ld.so.conf; then 14547 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 14548 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14549 fi 14550 14551 # We used to test for /lib/ld.so.1 and disable shared libraries on 14552 # powerpc, because MkLinux only supported shared libraries with the 14553 # GNU dynamic linker. Since this was broken with cross compilers, 14554 # most powerpc-linux boxes support dynamic linking these days and 14555 # people can always --disable-shared, the test was removed, and we 14556 # assume the GNU/Linux dynamic linker is in use. 14557 dynamic_linker='GNU/Linux ld.so' 14558 ;; 14559 14560netbsdelf*-gnu) 14561 version_type=linux 14562 need_lib_prefix=no 14563 need_version=no 14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14565 soname_spec='${libname}${release}${shared_ext}$major' 14566 shlibpath_var=LD_LIBRARY_PATH 14567 shlibpath_overrides_runpath=no 14568 hardcode_into_libs=yes 14569 dynamic_linker='NetBSD ld.elf_so' 14570 ;; 14571 14572netbsd*) 14573 version_type=sunos 14574 need_lib_prefix=no 14575 need_version=no 14576 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14579 dynamic_linker='NetBSD (a.out) ld.so' 14580 else 14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14582 soname_spec='${libname}${release}${shared_ext}$major' 14583 dynamic_linker='NetBSD ld.elf_so' 14584 fi 14585 shlibpath_var=LD_LIBRARY_PATH 14586 shlibpath_overrides_runpath=yes 14587 hardcode_into_libs=yes 14588 ;; 14589 14590newsos6) 14591 version_type=linux 14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14593 shlibpath_var=LD_LIBRARY_PATH 14594 shlibpath_overrides_runpath=yes 14595 ;; 14596 14597nto-qnx*) 14598 version_type=linux 14599 need_lib_prefix=no 14600 need_version=no 14601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14602 soname_spec='${libname}${release}${shared_ext}$major' 14603 shlibpath_var=LD_LIBRARY_PATH 14604 shlibpath_overrides_runpath=yes 14605 ;; 14606 14607openbsd*) 14608 version_type=sunos 14609 sys_lib_dlsearch_path_spec="/usr/lib" 14610 need_lib_prefix=no 14611 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14612 case $host_os in 14613 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14614 *) need_version=no ;; 14615 esac 14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14618 shlibpath_var=LD_LIBRARY_PATH 14619 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14620 case $host_os in 14621 openbsd2.[89] | openbsd2.[89].*) 14622 shlibpath_overrides_runpath=no 14623 ;; 14624 *) 14625 shlibpath_overrides_runpath=yes 14626 ;; 14627 esac 14628 else 14629 shlibpath_overrides_runpath=yes 14630 fi 14631 ;; 14632 14633os2*) 14634 libname_spec='$name' 14635 shrext_cmds=".dll" 14636 need_lib_prefix=no 14637 library_names_spec='$libname${shared_ext} $libname.a' 14638 dynamic_linker='OS/2 ld.exe' 14639 shlibpath_var=LIBPATH 14640 ;; 14641 14642osf3* | osf4* | osf5*) 14643 version_type=osf 14644 need_lib_prefix=no 14645 need_version=no 14646 soname_spec='${libname}${release}${shared_ext}$major' 14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14648 shlibpath_var=LD_LIBRARY_PATH 14649 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14650 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14651 ;; 14652 14653rdos*) 14654 dynamic_linker=no 14655 ;; 14656 14657solaris*) 14658 version_type=linux 14659 need_lib_prefix=no 14660 need_version=no 14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14662 soname_spec='${libname}${release}${shared_ext}$major' 14663 shlibpath_var=LD_LIBRARY_PATH 14664 shlibpath_overrides_runpath=yes 14665 hardcode_into_libs=yes 14666 # ldd complains unless libraries are executable 14667 postinstall_cmds='chmod +x $lib' 14668 ;; 14669 14670sunos4*) 14671 version_type=sunos 14672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14673 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14674 shlibpath_var=LD_LIBRARY_PATH 14675 shlibpath_overrides_runpath=yes 14676 if test "$with_gnu_ld" = yes; then 14677 need_lib_prefix=no 14678 fi 14679 need_version=yes 14680 ;; 14681 14682sysv4 | sysv4.3*) 14683 version_type=linux 14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14685 soname_spec='${libname}${release}${shared_ext}$major' 14686 shlibpath_var=LD_LIBRARY_PATH 14687 case $host_vendor in 14688 sni) 14689 shlibpath_overrides_runpath=no 14690 need_lib_prefix=no 14691 export_dynamic_flag_spec='${wl}-Blargedynsym' 14692 runpath_var=LD_RUN_PATH 14693 ;; 14694 siemens) 14695 need_lib_prefix=no 14696 ;; 14697 motorola) 14698 need_lib_prefix=no 14699 need_version=no 14700 shlibpath_overrides_runpath=no 14701 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14702 ;; 14703 esac 14704 ;; 14705 14706sysv4*MP*) 14707 if test -d /usr/nec ;then 14708 version_type=linux 14709 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14710 soname_spec='$libname${shared_ext}.$major' 14711 shlibpath_var=LD_LIBRARY_PATH 14712 fi 14713 ;; 14714 14715sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14716 version_type=freebsd-elf 14717 need_lib_prefix=no 14718 need_version=no 14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14720 soname_spec='${libname}${release}${shared_ext}$major' 14721 shlibpath_var=LD_LIBRARY_PATH 14722 hardcode_into_libs=yes 14723 if test "$with_gnu_ld" = yes; then 14724 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14725 shlibpath_overrides_runpath=no 14726 else 14727 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14728 shlibpath_overrides_runpath=yes 14729 case $host_os in 14730 sco3.2v5*) 14731 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14732 ;; 14733 esac 14734 fi 14735 sys_lib_dlsearch_path_spec='/usr/lib' 14736 ;; 14737 14738uts4*) 14739 version_type=linux 14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14741 soname_spec='${libname}${release}${shared_ext}$major' 14742 shlibpath_var=LD_LIBRARY_PATH 14743 ;; 14744 14745*) 14746 dynamic_linker=no 14747 ;; 14748esac 14749{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14750echo "${ECHO_T}$dynamic_linker" >&6; } 14751test "$dynamic_linker" = no && can_build_shared=no 14752 14753if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14754 echo $ECHO_N "(cached) $ECHO_C" >&6 14755else 14756 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 14757fi 14758 14759sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14760if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14761 echo $ECHO_N "(cached) $ECHO_C" >&6 14762else 14763 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 14764fi 14765 14766sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14767 14768variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14769if test "$GCC" = yes; then 14770 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14771fi 14772 14773{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14774echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 14775hardcode_action_CXX= 14776if test -n "$hardcode_libdir_flag_spec_CXX" || \ 14777 test -n "$runpath_var_CXX" || \ 14778 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14779 14780 # We can hardcode non-existant directories. 14781 if test "$hardcode_direct_CXX" != no && 14782 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14783 # have to relink, otherwise we might link with an installed library 14784 # when we should be linking with a yet-to-be-installed one 14785 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14786 test "$hardcode_minus_L_CXX" != no; then 14787 # Linking always hardcodes the temporary library directory. 14788 hardcode_action_CXX=relink 14789 else 14790 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14791 hardcode_action_CXX=immediate 14792 fi 14793else 14794 # We cannot hardcode anything, or else we can only hardcode existing 14795 # directories. 14796 hardcode_action_CXX=unsupported 14797fi 14798{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 14799echo "${ECHO_T}$hardcode_action_CXX" >&6; } 14800 14801if test "$hardcode_action_CXX" = relink; then 14802 # Fast installation is not supported 14803 enable_fast_install=no 14804elif test "$shlibpath_overrides_runpath" = yes || 14805 test "$enable_shared" = no; then 14806 # Fast installation is not necessary 14807 enable_fast_install=needless 14808fi 14809 14810 14811# The else clause should only fire when bootstrapping the 14812# libtool distribution, otherwise you forgot to ship ltmain.sh 14813# with your package, and you will get complaints that there are 14814# no rules to generate ltmain.sh. 14815if test -f "$ltmain"; then 14816 # See if we are running on zsh, and set the options which allow our commands through 14817 # without removal of \ escapes. 14818 if test -n "${ZSH_VERSION+set}" ; then 14819 setopt NO_GLOB_SUBST 14820 fi 14821 # Now quote all the things that may contain metacharacters while being 14822 # careful not to overquote the AC_SUBSTed values. We take copies of the 14823 # variables and quote the copies for generation of the libtool script. 14824 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14825 SED SHELL STRIP \ 14826 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14827 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14828 deplibs_check_method reload_flag reload_cmds need_locks \ 14829 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14830 lt_cv_sys_global_symbol_to_c_name_address \ 14831 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14832 old_postinstall_cmds old_postuninstall_cmds \ 14833 compiler_CXX \ 14834 CC_CXX \ 14835 LD_CXX \ 14836 lt_prog_compiler_wl_CXX \ 14837 lt_prog_compiler_pic_CXX \ 14838 lt_prog_compiler_static_CXX \ 14839 lt_prog_compiler_no_builtin_flag_CXX \ 14840 export_dynamic_flag_spec_CXX \ 14841 thread_safe_flag_spec_CXX \ 14842 whole_archive_flag_spec_CXX \ 14843 enable_shared_with_static_runtimes_CXX \ 14844 old_archive_cmds_CXX \ 14845 old_archive_from_new_cmds_CXX \ 14846 predep_objects_CXX \ 14847 postdep_objects_CXX \ 14848 predeps_CXX \ 14849 postdeps_CXX \ 14850 compiler_lib_search_path_CXX \ 14851 compiler_lib_search_dirs_CXX \ 14852 archive_cmds_CXX \ 14853 archive_expsym_cmds_CXX \ 14854 postinstall_cmds_CXX \ 14855 postuninstall_cmds_CXX \ 14856 old_archive_from_expsyms_cmds_CXX \ 14857 allow_undefined_flag_CXX \ 14858 no_undefined_flag_CXX \ 14859 export_symbols_cmds_CXX \ 14860 hardcode_libdir_flag_spec_CXX \ 14861 hardcode_libdir_flag_spec_ld_CXX \ 14862 hardcode_libdir_separator_CXX \ 14863 hardcode_automatic_CXX \ 14864 module_cmds_CXX \ 14865 module_expsym_cmds_CXX \ 14866 lt_cv_prog_compiler_c_o_CXX \ 14867 fix_srcfile_path_CXX \ 14868 exclude_expsyms_CXX \ 14869 include_expsyms_CXX; do 14870 14871 case $var in 14872 old_archive_cmds_CXX | \ 14873 old_archive_from_new_cmds_CXX | \ 14874 archive_cmds_CXX | \ 14875 archive_expsym_cmds_CXX | \ 14876 module_cmds_CXX | \ 14877 module_expsym_cmds_CXX | \ 14878 old_archive_from_expsyms_cmds_CXX | \ 14879 export_symbols_cmds_CXX | \ 14880 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14881 postinstall_cmds | postuninstall_cmds | \ 14882 old_postinstall_cmds | old_postuninstall_cmds | \ 14883 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14884 # Double-quote double-evaled strings. 14885 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14886 ;; 14887 *) 14888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14889 ;; 14890 esac 14891 done 14892 14893 case $lt_echo in 14894 *'\$0 --fallback-echo"') 14895 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14896 ;; 14897 esac 14898 14899cfgfile="$ofile" 14900 14901 cat <<__EOF__ >> "$cfgfile" 14902# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14903 14904# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14905 14906# Shell to use when invoking shell scripts. 14907SHELL=$lt_SHELL 14908 14909# Whether or not to build shared libraries. 14910build_libtool_libs=$enable_shared 14911 14912# Whether or not to build static libraries. 14913build_old_libs=$enable_static 14914 14915# Whether or not to add -lc for building shared libraries. 14916build_libtool_need_lc=$archive_cmds_need_lc_CXX 14917 14918# Whether or not to disallow shared libs when runtime libs are static 14919allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14920 14921# Whether or not to optimize for fast installation. 14922fast_install=$enable_fast_install 14923 14924# The host system. 14925host_alias=$host_alias 14926host=$host 14927host_os=$host_os 14928 14929# The build system. 14930build_alias=$build_alias 14931build=$build 14932build_os=$build_os 14933 14934# An echo program that does not interpret backslashes. 14935echo=$lt_echo 14936 14937# The archiver. 14938AR=$lt_AR 14939AR_FLAGS=$lt_AR_FLAGS 14940 14941# A C compiler. 14942LTCC=$lt_LTCC 14943 14944# LTCC compiler flags. 14945LTCFLAGS=$lt_LTCFLAGS 14946 14947# A language-specific compiler. 14948CC=$lt_compiler_CXX 14949 14950# Is the compiler the GNU C compiler? 14951with_gcc=$GCC_CXX 14952 14953# An ERE matcher. 14954EGREP=$lt_EGREP 14955 14956# The linker used to build libraries. 14957LD=$lt_LD_CXX 14958 14959# Whether we need hard or soft links. 14960LN_S=$lt_LN_S 14961 14962# A BSD-compatible nm program. 14963NM=$lt_NM 14964 14965# A symbol stripping program 14966STRIP=$lt_STRIP 14967 14968# Used to examine libraries when file_magic_cmd begins "file" 14969MAGIC_CMD=$MAGIC_CMD 14970 14971# Used on cygwin: DLL creation program. 14972DLLTOOL="$DLLTOOL" 14973 14974# Used on cygwin: object dumper. 14975OBJDUMP="$OBJDUMP" 14976 14977# Used on cygwin: assembler. 14978AS="$AS" 14979 14980# The name of the directory that contains temporary libtool files. 14981objdir=$objdir 14982 14983# How to create reloadable object files. 14984reload_flag=$lt_reload_flag 14985reload_cmds=$lt_reload_cmds 14986 14987# How to pass a linker flag through the compiler. 14988wl=$lt_lt_prog_compiler_wl_CXX 14989 14990# Object file suffix (normally "o"). 14991objext="$ac_objext" 14992 14993# Old archive suffix (normally "a"). 14994libext="$libext" 14995 14996# Shared library suffix (normally ".so"). 14997shrext_cmds='$shrext_cmds' 14998 14999# Executable file suffix (normally ""). 15000exeext="$exeext" 15001 15002# Additional compiler flags for building library objects. 15003pic_flag=$lt_lt_prog_compiler_pic_CXX 15004pic_mode=$pic_mode 15005 15006# What is the maximum length of a command? 15007max_cmd_len=$lt_cv_sys_max_cmd_len 15008 15009# Does compiler simultaneously support -c and -o options? 15010compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 15011 15012# Must we lock files when doing compilation? 15013need_locks=$lt_need_locks 15014 15015# Do we need the lib prefix for modules? 15016need_lib_prefix=$need_lib_prefix 15017 15018# Do we need a version for libraries? 15019need_version=$need_version 15020 15021# Whether dlopen is supported. 15022dlopen_support=$enable_dlopen 15023 15024# Whether dlopen of programs is supported. 15025dlopen_self=$enable_dlopen_self 15026 15027# Whether dlopen of statically linked programs is supported. 15028dlopen_self_static=$enable_dlopen_self_static 15029 15030# Compiler flag to prevent dynamic linking. 15031link_static_flag=$lt_lt_prog_compiler_static_CXX 15032 15033# Compiler flag to turn off builtin functions. 15034no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 15035 15036# Compiler flag to allow reflexive dlopens. 15037export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 15038 15039# Compiler flag to generate shared objects directly from archives. 15040whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 15041 15042# Compiler flag to generate thread-safe objects. 15043thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 15044 15045# Library versioning type. 15046version_type=$version_type 15047 15048# Format of library name prefix. 15049libname_spec=$lt_libname_spec 15050 15051# List of archive names. First name is the real one, the rest are links. 15052# The last name is the one that the linker finds with -lNAME. 15053library_names_spec=$lt_library_names_spec 15054 15055# The coded name of the library, if different from the real name. 15056soname_spec=$lt_soname_spec 15057 15058# Commands used to build and install an old-style archive. 15059RANLIB=$lt_RANLIB 15060old_archive_cmds=$lt_old_archive_cmds_CXX 15061old_postinstall_cmds=$lt_old_postinstall_cmds 15062old_postuninstall_cmds=$lt_old_postuninstall_cmds 15063 15064# Create an old-style archive from a shared archive. 15065old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 15066 15067# Create a temporary old-style archive to link instead of a shared archive. 15068old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 15069 15070# Commands used to build and install a shared archive. 15071archive_cmds=$lt_archive_cmds_CXX 15072archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 15073postinstall_cmds=$lt_postinstall_cmds 15074postuninstall_cmds=$lt_postuninstall_cmds 15075 15076# Commands used to build a loadable module (assumed same as above if empty) 15077module_cmds=$lt_module_cmds_CXX 15078module_expsym_cmds=$lt_module_expsym_cmds_CXX 15079 15080# Commands to strip libraries. 15081old_striplib=$lt_old_striplib 15082striplib=$lt_striplib 15083 15084# Dependencies to place before the objects being linked to create a 15085# shared library. 15086predep_objects=$lt_predep_objects_CXX 15087 15088# Dependencies to place after the objects being linked to create a 15089# shared library. 15090postdep_objects=$lt_postdep_objects_CXX 15091 15092# Dependencies to place before the objects being linked to create a 15093# shared library. 15094predeps=$lt_predeps_CXX 15095 15096# Dependencies to place after the objects being linked to create a 15097# shared library. 15098postdeps=$lt_postdeps_CXX 15099 15100# The directories searched by this compiler when creating a shared 15101# library 15102compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 15103 15104# The library search path used internally by the compiler when linking 15105# a shared library. 15106compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 15107 15108# Method to check whether dependent libraries are shared objects. 15109deplibs_check_method=$lt_deplibs_check_method 15110 15111# Command to use when deplibs_check_method == file_magic. 15112file_magic_cmd=$lt_file_magic_cmd 15113 15114# Flag that allows shared libraries with undefined symbols to be built. 15115allow_undefined_flag=$lt_allow_undefined_flag_CXX 15116 15117# Flag that forces no undefined symbols. 15118no_undefined_flag=$lt_no_undefined_flag_CXX 15119 15120# Commands used to finish a libtool library installation in a directory. 15121finish_cmds=$lt_finish_cmds 15122 15123# Same as above, but a single script fragment to be evaled but not shown. 15124finish_eval=$lt_finish_eval 15125 15126# Take the output of nm and produce a listing of raw symbols and C names. 15127global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15128 15129# Transform the output of nm in a proper C declaration 15130global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15131 15132# Transform the output of nm in a C name address pair 15133global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15134 15135# This is the shared library runtime path variable. 15136runpath_var=$runpath_var 15137 15138# This is the shared library path variable. 15139shlibpath_var=$shlibpath_var 15140 15141# Is shlibpath searched before the hard-coded library search path? 15142shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15143 15144# How to hardcode a shared library path into an executable. 15145hardcode_action=$hardcode_action_CXX 15146 15147# Whether we should hardcode library paths into libraries. 15148hardcode_into_libs=$hardcode_into_libs 15149 15150# Flag to hardcode \$libdir into a binary during linking. 15151# This must work even if \$libdir does not exist. 15152hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 15153 15154# If ld is used when linking, flag to hardcode \$libdir into 15155# a binary during linking. This must work even if \$libdir does 15156# not exist. 15157hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 15158 15159# Whether we need a single -rpath flag with a separated argument. 15160hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 15161 15162# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15163# resulting binary. 15164hardcode_direct=$hardcode_direct_CXX 15165 15166# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15167# resulting binary. 15168hardcode_minus_L=$hardcode_minus_L_CXX 15169 15170# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15171# the resulting binary. 15172hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 15173 15174# Set to yes if building a shared library automatically hardcodes DIR into the library 15175# and all subsequent libraries and executables linked against it. 15176hardcode_automatic=$hardcode_automatic_CXX 15177 15178# Variables whose values should be saved in libtool wrapper scripts and 15179# restored at relink time. 15180variables_saved_for_relink="$variables_saved_for_relink" 15181 15182# Whether libtool must link a program against all its dependency libraries. 15183link_all_deplibs=$link_all_deplibs_CXX 15184 15185# Compile-time system search path for libraries 15186sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15187 15188# Run-time system search path for libraries 15189sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15190 15191# Fix the shell variable \$srcfile for the compiler. 15192fix_srcfile_path=$lt_fix_srcfile_path 15193 15194# Set to yes if exported symbols are required. 15195always_export_symbols=$always_export_symbols_CXX 15196 15197# The commands to list exported symbols. 15198export_symbols_cmds=$lt_export_symbols_cmds_CXX 15199 15200# The commands to extract the exported symbol list from a shared archive. 15201extract_expsyms_cmds=$lt_extract_expsyms_cmds 15202 15203# Symbols that should not be listed in the preloaded symbols. 15204exclude_expsyms=$lt_exclude_expsyms_CXX 15205 15206# Symbols that must always be exported. 15207include_expsyms=$lt_include_expsyms_CXX 15208 15209# ### END LIBTOOL TAG CONFIG: $tagname 15210 15211__EOF__ 15212 15213 15214else 15215 # If there is no Makefile yet, we rely on a make rule to execute 15216 # `config.status --recheck' to rerun these tests and create the 15217 # libtool script then. 15218 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 15219 if test -f "$ltmain_in"; then 15220 test -f Makefile && make "$ltmain" 15221 fi 15222fi 15223 15224 15225ac_ext=c 15226ac_cpp='$CPP $CPPFLAGS' 15227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15229ac_compiler_gnu=$ac_cv_c_compiler_gnu 15230 15231CC=$lt_save_CC 15232LDCXX=$LD 15233LD=$lt_save_LD 15234GCC=$lt_save_GCC 15235with_gnu_ldcxx=$with_gnu_ld 15236with_gnu_ld=$lt_save_with_gnu_ld 15237lt_cv_path_LDCXX=$lt_cv_path_LD 15238lt_cv_path_LD=$lt_save_path_LD 15239lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15240lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15241 15242 else 15243 tagname="" 15244 fi 15245 ;; 15246 15247 F77) 15248 if test -n "$F77" && test "X$F77" != "Xno"; then 15249 15250ac_ext=f 15251ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 15252ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15253ac_compiler_gnu=$ac_cv_f77_compiler_gnu 15254 15255 15256archive_cmds_need_lc_F77=no 15257allow_undefined_flag_F77= 15258always_export_symbols_F77=no 15259archive_expsym_cmds_F77= 15260export_dynamic_flag_spec_F77= 15261hardcode_direct_F77=no 15262hardcode_libdir_flag_spec_F77= 15263hardcode_libdir_flag_spec_ld_F77= 15264hardcode_libdir_separator_F77= 15265hardcode_minus_L_F77=no 15266hardcode_automatic_F77=no 15267module_cmds_F77= 15268module_expsym_cmds_F77= 15269link_all_deplibs_F77=unknown 15270old_archive_cmds_F77=$old_archive_cmds 15271no_undefined_flag_F77= 15272whole_archive_flag_spec_F77= 15273enable_shared_with_static_runtimes_F77=no 15274 15275# Source file extension for f77 test sources. 15276ac_ext=f 15277 15278# Object file extension for compiled f77 test sources. 15279objext=o 15280objext_F77=$objext 15281 15282# Code to be used in simple compile tests 15283lt_simple_compile_test_code="\ 15284 subroutine t 15285 return 15286 end 15287" 15288 15289# Code to be used in simple link tests 15290lt_simple_link_test_code="\ 15291 program t 15292 end 15293" 15294 15295# ltmain only uses $CC for tagged configurations so make sure $CC is set. 15296 15297# If no C compiler was specified, use CC. 15298LTCC=${LTCC-"$CC"} 15299 15300# If no C compiler flags were specified, use CFLAGS. 15301LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15302 15303# Allow CC to be a program name with arguments. 15304compiler=$CC 15305 15306 15307# save warnings/boilerplate of simple test code 15308ac_outfile=conftest.$ac_objext 15309echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15310eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15311_lt_compiler_boilerplate=`cat conftest.err` 15312$rm conftest* 15313 15314ac_outfile=conftest.$ac_objext 15315echo "$lt_simple_link_test_code" >conftest.$ac_ext 15316eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15317_lt_linker_boilerplate=`cat conftest.err` 15318$rm -r conftest* 15319 15320 15321# Allow CC to be a program name with arguments. 15322lt_save_CC="$CC" 15323CC=${F77-"f77"} 15324compiler=$CC 15325compiler_F77=$CC 15326for cc_temp in $compiler""; do 15327 case $cc_temp in 15328 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15329 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15330 \-*) ;; 15331 *) break;; 15332 esac 15333done 15334cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15335 15336 15337{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 15338echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 15339{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 15340echo "${ECHO_T}$can_build_shared" >&6; } 15341 15342{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 15343echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 15344test "$can_build_shared" = "no" && enable_shared=no 15345 15346# On AIX, shared libraries and static libraries use the same namespace, and 15347# are all built from PIC. 15348case $host_os in 15349aix3*) 15350 test "$enable_shared" = yes && enable_static=no 15351 if test -n "$RANLIB"; then 15352 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15353 postinstall_cmds='$RANLIB $lib' 15354 fi 15355 ;; 15356aix[4-9]*) 15357 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 15358 test "$enable_shared" = yes && enable_static=no 15359 fi 15360 ;; 15361esac 15362{ echo "$as_me:$LINENO: result: $enable_shared" >&5 15363echo "${ECHO_T}$enable_shared" >&6; } 15364 15365{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 15366echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 15367# Make sure either enable_shared or enable_static is yes. 15368test "$enable_shared" = yes || enable_static=yes 15369{ echo "$as_me:$LINENO: result: $enable_static" >&5 15370echo "${ECHO_T}$enable_static" >&6; } 15371 15372GCC_F77="$G77" 15373LD_F77="$LD" 15374 15375lt_prog_compiler_wl_F77= 15376lt_prog_compiler_pic_F77= 15377lt_prog_compiler_static_F77= 15378 15379{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15380echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 15381 15382 if test "$GCC" = yes; then 15383 lt_prog_compiler_wl_F77='-Wl,' 15384 lt_prog_compiler_static_F77='-static' 15385 15386 case $host_os in 15387 aix*) 15388 # All AIX code is PIC. 15389 if test "$host_cpu" = ia64; then 15390 # AIX 5 now supports IA64 processor 15391 lt_prog_compiler_static_F77='-Bstatic' 15392 fi 15393 ;; 15394 15395 amigaos*) 15396 # FIXME: we need at least 68020 code to build shared libraries, but 15397 # adding the `-m68020' flag to GCC prevents building anything better, 15398 # like `-m68040'. 15399 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 15400 ;; 15401 15402 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15403 # PIC is the default for these OSes. 15404 ;; 15405 15406 mingw* | cygwin* | pw32* | os2*) 15407 # This hack is so that the source file can tell whether it is being 15408 # built for inclusion in a dll (and should export symbols for example). 15409 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15410 # (--disable-auto-import) libraries 15411 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15412 ;; 15413 15414 darwin* | rhapsody*) 15415 # PIC is the default on this platform 15416 # Common symbols not allowed in MH_DYLIB files 15417 lt_prog_compiler_pic_F77='-fno-common' 15418 ;; 15419 15420 interix[3-9]*) 15421 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15422 # Instead, we relocate shared libraries at runtime. 15423 ;; 15424 15425 msdosdjgpp*) 15426 # Just because we use GCC doesn't mean we suddenly get shared libraries 15427 # on systems that don't support them. 15428 lt_prog_compiler_can_build_shared_F77=no 15429 enable_shared=no 15430 ;; 15431 15432 sysv4*MP*) 15433 if test -d /usr/nec; then 15434 lt_prog_compiler_pic_F77=-Kconform_pic 15435 fi 15436 ;; 15437 15438 hpux*) 15439 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15440 # not for PA HP-UX. 15441 case $host_cpu in 15442 hppa*64*|ia64*) 15443 # +Z the default 15444 ;; 15445 *) 15446 lt_prog_compiler_pic_F77='-fPIC' 15447 ;; 15448 esac 15449 ;; 15450 15451 *) 15452 lt_prog_compiler_pic_F77='-fPIC' 15453 ;; 15454 esac 15455 else 15456 # PORTME Check for flag to pass linker flags through the system compiler. 15457 case $host_os in 15458 aix*) 15459 lt_prog_compiler_wl_F77='-Wl,' 15460 if test "$host_cpu" = ia64; then 15461 # AIX 5 now supports IA64 processor 15462 lt_prog_compiler_static_F77='-Bstatic' 15463 else 15464 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 15465 fi 15466 ;; 15467 darwin*) 15468 # PIC is the default on this platform 15469 # Common symbols not allowed in MH_DYLIB files 15470 case $cc_basename in 15471 xlc*) 15472 lt_prog_compiler_pic_F77='-qnocommon' 15473 lt_prog_compiler_wl_F77='-Wl,' 15474 ;; 15475 esac 15476 ;; 15477 15478 mingw* | cygwin* | pw32* | os2*) 15479 # This hack is so that the source file can tell whether it is being 15480 # built for inclusion in a dll (and should export symbols for example). 15481 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15482 ;; 15483 15484 hpux9* | hpux10* | hpux11*) 15485 lt_prog_compiler_wl_F77='-Wl,' 15486 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15487 # not for PA HP-UX. 15488 case $host_cpu in 15489 hppa*64*|ia64*) 15490 # +Z the default 15491 ;; 15492 *) 15493 lt_prog_compiler_pic_F77='+Z' 15494 ;; 15495 esac 15496 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15497 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 15498 ;; 15499 15500 irix5* | irix6* | nonstopux*) 15501 lt_prog_compiler_wl_F77='-Wl,' 15502 # PIC (with -KPIC) is the default. 15503 lt_prog_compiler_static_F77='-non_shared' 15504 ;; 15505 15506 newsos6) 15507 lt_prog_compiler_pic_F77='-KPIC' 15508 lt_prog_compiler_static_F77='-Bstatic' 15509 ;; 15510 15511 linux* | k*bsd*-gnu) 15512 case $cc_basename in 15513 icc* | ecc*) 15514 lt_prog_compiler_wl_F77='-Wl,' 15515 lt_prog_compiler_pic_F77='-KPIC' 15516 lt_prog_compiler_static_F77='-static' 15517 ;; 15518 pgcc* | pgf77* | pgf90* | pgf95*) 15519 # Portland Group compilers (*not* the Pentium gcc compiler, 15520 # which looks to be a dead project) 15521 lt_prog_compiler_wl_F77='-Wl,' 15522 lt_prog_compiler_pic_F77='-fpic' 15523 lt_prog_compiler_static_F77='-Bstatic' 15524 ;; 15525 ccc*) 15526 lt_prog_compiler_wl_F77='-Wl,' 15527 # All Alpha code is PIC. 15528 lt_prog_compiler_static_F77='-non_shared' 15529 ;; 15530 *) 15531 case `$CC -V 2>&1 | sed 5q` in 15532 *Sun\ C*) 15533 # Sun C 5.9 15534 lt_prog_compiler_pic_F77='-KPIC' 15535 lt_prog_compiler_static_F77='-Bstatic' 15536 lt_prog_compiler_wl_F77='-Wl,' 15537 ;; 15538 *Sun\ F*) 15539 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15540 lt_prog_compiler_pic_F77='-KPIC' 15541 lt_prog_compiler_static_F77='-Bstatic' 15542 lt_prog_compiler_wl_F77='' 15543 ;; 15544 esac 15545 ;; 15546 esac 15547 ;; 15548 15549 osf3* | osf4* | osf5*) 15550 lt_prog_compiler_wl_F77='-Wl,' 15551 # All OSF/1 code is PIC. 15552 lt_prog_compiler_static_F77='-non_shared' 15553 ;; 15554 15555 rdos*) 15556 lt_prog_compiler_static_F77='-non_shared' 15557 ;; 15558 15559 solaris*) 15560 lt_prog_compiler_pic_F77='-KPIC' 15561 lt_prog_compiler_static_F77='-Bstatic' 15562 case $cc_basename in 15563 f77* | f90* | f95*) 15564 lt_prog_compiler_wl_F77='-Qoption ld ';; 15565 *) 15566 lt_prog_compiler_wl_F77='-Wl,';; 15567 esac 15568 ;; 15569 15570 sunos4*) 15571 lt_prog_compiler_wl_F77='-Qoption ld ' 15572 lt_prog_compiler_pic_F77='-PIC' 15573 lt_prog_compiler_static_F77='-Bstatic' 15574 ;; 15575 15576 sysv4 | sysv4.2uw2* | sysv4.3*) 15577 lt_prog_compiler_wl_F77='-Wl,' 15578 lt_prog_compiler_pic_F77='-KPIC' 15579 lt_prog_compiler_static_F77='-Bstatic' 15580 ;; 15581 15582 sysv4*MP*) 15583 if test -d /usr/nec ;then 15584 lt_prog_compiler_pic_F77='-Kconform_pic' 15585 lt_prog_compiler_static_F77='-Bstatic' 15586 fi 15587 ;; 15588 15589 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15590 lt_prog_compiler_wl_F77='-Wl,' 15591 lt_prog_compiler_pic_F77='-KPIC' 15592 lt_prog_compiler_static_F77='-Bstatic' 15593 ;; 15594 15595 unicos*) 15596 lt_prog_compiler_wl_F77='-Wl,' 15597 lt_prog_compiler_can_build_shared_F77=no 15598 ;; 15599 15600 uts4*) 15601 lt_prog_compiler_pic_F77='-pic' 15602 lt_prog_compiler_static_F77='-Bstatic' 15603 ;; 15604 15605 *) 15606 lt_prog_compiler_can_build_shared_F77=no 15607 ;; 15608 esac 15609 fi 15610 15611{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 15612echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 15613 15614# 15615# Check to make sure the PIC flag actually works. 15616# 15617if test -n "$lt_prog_compiler_pic_F77"; then 15618 15619{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 15620echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 15621if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 15622 echo $ECHO_N "(cached) $ECHO_C" >&6 15623else 15624 lt_cv_prog_compiler_pic_works_F77=no 15625 ac_outfile=conftest.$ac_objext 15626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15627 lt_compiler_flag="$lt_prog_compiler_pic_F77" 15628 # Insert the option either (1) after the last *FLAGS variable, or 15629 # (2) before a word containing "conftest.", or (3) at the end. 15630 # Note that $ac_compile itself does not contain backslashes and begins 15631 # with a dollar sign (not a hyphen), so the echo should work correctly. 15632 # The option is referenced via a variable to avoid confusing sed. 15633 lt_compile=`echo "$ac_compile" | $SED \ 15634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15636 -e 's:$: $lt_compiler_flag:'` 15637 (eval echo "\"\$as_me:15637: $lt_compile\"" >&5) 15638 (eval "$lt_compile" 2>conftest.err) 15639 ac_status=$? 15640 cat conftest.err >&5 15641 echo "$as_me:15641: \$? = $ac_status" >&5 15642 if (exit $ac_status) && test -s "$ac_outfile"; then 15643 # The compiler can only warn and ignore the option if not recognized 15644 # So say no if there are warnings other than the usual output. 15645 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 15646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15647 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15648 lt_cv_prog_compiler_pic_works_F77=yes 15649 fi 15650 fi 15651 $rm conftest* 15652 15653fi 15654{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 15655echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } 15656 15657if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 15658 case $lt_prog_compiler_pic_F77 in 15659 "" | " "*) ;; 15660 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 15661 esac 15662else 15663 lt_prog_compiler_pic_F77= 15664 lt_prog_compiler_can_build_shared_F77=no 15665fi 15666 15667fi 15668case $host_os in 15669 # For platforms which do not support PIC, -DPIC is meaningless: 15670 *djgpp*) 15671 lt_prog_compiler_pic_F77= 15672 ;; 15673 *) 15674 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 15675 ;; 15676esac 15677 15678# 15679# Check to make sure the static flag actually works. 15680# 15681wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 15682{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15683echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 15684if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 15685 echo $ECHO_N "(cached) $ECHO_C" >&6 15686else 15687 lt_cv_prog_compiler_static_works_F77=no 15688 save_LDFLAGS="$LDFLAGS" 15689 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15690 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15691 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15692 # The linker can only warn and ignore the option if not recognized 15693 # So say no if there are warnings 15694 if test -s conftest.err; then 15695 # Append any errors to the config.log. 15696 cat conftest.err 1>&5 15697 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 15698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15699 if diff conftest.exp conftest.er2 >/dev/null; then 15700 lt_cv_prog_compiler_static_works_F77=yes 15701 fi 15702 else 15703 lt_cv_prog_compiler_static_works_F77=yes 15704 fi 15705 fi 15706 $rm -r conftest* 15707 LDFLAGS="$save_LDFLAGS" 15708 15709fi 15710{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 15711echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } 15712 15713if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 15714 : 15715else 15716 lt_prog_compiler_static_F77= 15717fi 15718 15719 15720{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15721echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 15722if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 15723 echo $ECHO_N "(cached) $ECHO_C" >&6 15724else 15725 lt_cv_prog_compiler_c_o_F77=no 15726 $rm -r conftest 2>/dev/null 15727 mkdir conftest 15728 cd conftest 15729 mkdir out 15730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15731 15732 lt_compiler_flag="-o out/conftest2.$ac_objext" 15733 # Insert the option either (1) after the last *FLAGS variable, or 15734 # (2) before a word containing "conftest.", or (3) at the end. 15735 # Note that $ac_compile itself does not contain backslashes and begins 15736 # with a dollar sign (not a hyphen), so the echo should work correctly. 15737 lt_compile=`echo "$ac_compile" | $SED \ 15738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15740 -e 's:$: $lt_compiler_flag:'` 15741 (eval echo "\"\$as_me:15741: $lt_compile\"" >&5) 15742 (eval "$lt_compile" 2>out/conftest.err) 15743 ac_status=$? 15744 cat out/conftest.err >&5 15745 echo "$as_me:15745: \$? = $ac_status" >&5 15746 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15747 then 15748 # The compiler can only warn and ignore the option if not recognized 15749 # So say no if there are warnings 15750 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 15751 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15752 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15753 lt_cv_prog_compiler_c_o_F77=yes 15754 fi 15755 fi 15756 chmod u+w . 2>&5 15757 $rm conftest* 15758 # SGI C++ compiler will create directory out/ii_files/ for 15759 # template instantiation 15760 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15761 $rm out/* && rmdir out 15762 cd .. 15763 rmdir conftest 15764 $rm conftest* 15765 15766fi 15767{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 15768echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 15769 15770 15771hard_links="nottested" 15772if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 15773 # do not overwrite the value of need_locks provided by the user 15774 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15775echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 15776 hard_links=yes 15777 $rm conftest* 15778 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15779 touch conftest.a 15780 ln conftest.a conftest.b 2>&5 || hard_links=no 15781 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15782 { echo "$as_me:$LINENO: result: $hard_links" >&5 15783echo "${ECHO_T}$hard_links" >&6; } 15784 if test "$hard_links" = no; then 15785 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15786echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15787 need_locks=warn 15788 fi 15789else 15790 need_locks=no 15791fi 15792 15793{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15794echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 15795 15796 runpath_var= 15797 allow_undefined_flag_F77= 15798 enable_shared_with_static_runtimes_F77=no 15799 archive_cmds_F77= 15800 archive_expsym_cmds_F77= 15801 old_archive_From_new_cmds_F77= 15802 old_archive_from_expsyms_cmds_F77= 15803 export_dynamic_flag_spec_F77= 15804 whole_archive_flag_spec_F77= 15805 thread_safe_flag_spec_F77= 15806 hardcode_libdir_flag_spec_F77= 15807 hardcode_libdir_flag_spec_ld_F77= 15808 hardcode_libdir_separator_F77= 15809 hardcode_direct_F77=no 15810 hardcode_minus_L_F77=no 15811 hardcode_shlibpath_var_F77=unsupported 15812 link_all_deplibs_F77=unknown 15813 hardcode_automatic_F77=no 15814 module_cmds_F77= 15815 module_expsym_cmds_F77= 15816 always_export_symbols_F77=no 15817 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15818 # include_expsyms should be a list of space-separated symbols to be *always* 15819 # included in the symbol list 15820 include_expsyms_F77= 15821 # exclude_expsyms can be an extended regexp of symbols to exclude 15822 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15823 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15824 # as well as any symbol that contains `d'. 15825 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15826 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15827 # platforms (ab)use it in PIC code, but their linkers get confused if 15828 # the symbol is explicitly referenced. Since portable code cannot 15829 # rely on this symbol name, it's probably fine to never include it in 15830 # preloaded symbol tables. 15831 # Exclude shared library initialization/finalization symbols. 15832 extract_expsyms_cmds= 15833 # Just being paranoid about ensuring that cc_basename is set. 15834 for cc_temp in $compiler""; do 15835 case $cc_temp in 15836 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15837 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15838 \-*) ;; 15839 *) break;; 15840 esac 15841done 15842cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15843 15844 case $host_os in 15845 cygwin* | mingw* | pw32*) 15846 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15847 # When not using gcc, we currently assume that we are using 15848 # Microsoft Visual C++. 15849 if test "$GCC" != yes; then 15850 with_gnu_ld=no 15851 fi 15852 ;; 15853 interix*) 15854 # we just hope/assume this is gcc and not c89 (= MSVC++) 15855 with_gnu_ld=yes 15856 ;; 15857 openbsd*) 15858 with_gnu_ld=no 15859 ;; 15860 esac 15861 15862 ld_shlibs_F77=yes 15863 if test "$with_gnu_ld" = yes; then 15864 # If archive_cmds runs LD, not CC, wlarc should be empty 15865 wlarc='${wl}' 15866 15867 # Set some defaults for GNU ld with shared library support. These 15868 # are reset later if shared libraries are not supported. Putting them 15869 # here allows them to be overridden if necessary. 15870 runpath_var=LD_RUN_PATH 15871 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15872 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15873 # ancient GNU ld didn't support --whole-archive et. al. 15874 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15875 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15876 else 15877 whole_archive_flag_spec_F77= 15878 fi 15879 supports_anon_versioning=no 15880 case `$LD -v 2>/dev/null` in 15881 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15882 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15883 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15884 *\ 2.11.*) ;; # other 2.11 versions 15885 *) supports_anon_versioning=yes ;; 15886 esac 15887 15888 # See if GNU ld supports shared libraries. 15889 case $host_os in 15890 aix[3-9]*) 15891 # On AIX/PPC, the GNU linker is very broken 15892 if test "$host_cpu" != ia64; then 15893 ld_shlibs_F77=no 15894 cat <<EOF 1>&2 15895 15896*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15897*** to be unable to reliably create shared libraries on AIX. 15898*** Therefore, libtool is disabling shared libraries support. If you 15899*** really care for shared libraries, you may want to modify your PATH 15900*** so that a non-GNU linker is found, and then restart. 15901 15902EOF 15903 fi 15904 ;; 15905 15906 amigaos*) 15907 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)' 15908 hardcode_libdir_flag_spec_F77='-L$libdir' 15909 hardcode_minus_L_F77=yes 15910 15911 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15912 # that the semantics of dynamic libraries on AmigaOS, at least up 15913 # to version 4, is to share data among multiple programs linked 15914 # with the same dynamic library. Since this doesn't match the 15915 # behavior of shared libraries on other platforms, we can't use 15916 # them. 15917 ld_shlibs_F77=no 15918 ;; 15919 15920 beos*) 15921 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15922 allow_undefined_flag_F77=unsupported 15923 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15924 # support --undefined. This deserves some investigation. FIXME 15925 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15926 else 15927 ld_shlibs_F77=no 15928 fi 15929 ;; 15930 15931 cygwin* | mingw* | pw32*) 15932 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15933 # as there is no search path for DLLs. 15934 hardcode_libdir_flag_spec_F77='-L$libdir' 15935 allow_undefined_flag_F77=unsupported 15936 always_export_symbols_F77=no 15937 enable_shared_with_static_runtimes_F77=yes 15938 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15939 15940 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15941 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15942 # If the export-symbols file already is a .def file (1st line 15943 # is EXPORTS), use it as is; otherwise, prepend... 15944 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15945 cp $export_symbols $output_objdir/$soname.def; 15946 else 15947 echo EXPORTS > $output_objdir/$soname.def; 15948 cat $export_symbols >> $output_objdir/$soname.def; 15949 fi~ 15950 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15951 else 15952 ld_shlibs_F77=no 15953 fi 15954 ;; 15955 15956 interix[3-9]*) 15957 hardcode_direct_F77=no 15958 hardcode_shlibpath_var_F77=no 15959 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15960 export_dynamic_flag_spec_F77='${wl}-E' 15961 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15962 # Instead, shared libraries are loaded at an image base (0x10000000 by 15963 # default) and relocated if they conflict, which is a slow very memory 15964 # consuming and fragmenting process. To avoid this, we pick a random, 15965 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15966 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15967 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' 15968 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' 15969 ;; 15970 15971 gnu* | linux* | k*bsd*-gnu) 15972 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15973 tmp_addflag= 15974 case $cc_basename,$host_cpu in 15975 pgcc*) # Portland Group C compiler 15976 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' 15977 tmp_addflag=' $pic_flag' 15978 ;; 15979 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15980 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' 15981 tmp_addflag=' $pic_flag -Mnomain' ;; 15982 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15983 tmp_addflag=' -i_dynamic' ;; 15984 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15985 tmp_addflag=' -i_dynamic -nofor_main' ;; 15986 ifc* | ifort*) # Intel Fortran compiler 15987 tmp_addflag=' -nofor_main' ;; 15988 esac 15989 case `$CC -V 2>&1 | sed 5q` in 15990 *Sun\ C*) # Sun C 5.9 15991 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15992 tmp_sharedflag='-G' ;; 15993 *Sun\ F*) # Sun Fortran 8.3 15994 tmp_sharedflag='-G' ;; 15995 *) 15996 tmp_sharedflag='-shared' ;; 15997 esac 15998 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15999 16000 if test $supports_anon_versioning = yes; then 16001 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 16002 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16003 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16004 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16005 fi 16006 link_all_deplibs_F77=no 16007 else 16008 ld_shlibs_F77=no 16009 fi 16010 ;; 16011 16012 netbsd* | netbsdelf*-gnu) 16013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16014 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16015 wlarc= 16016 else 16017 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16018 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16019 fi 16020 ;; 16021 16022 solaris*) 16023 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16024 ld_shlibs_F77=no 16025 cat <<EOF 1>&2 16026 16027*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16028*** create shared libraries on Solaris systems. Therefore, libtool 16029*** is disabling shared libraries support. We urge you to upgrade GNU 16030*** binutils to release 2.9.1 or newer. Another option is to modify 16031*** your PATH or compiler configuration so that the native linker is 16032*** used, and then restart. 16033 16034EOF 16035 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16036 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16037 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16038 else 16039 ld_shlibs_F77=no 16040 fi 16041 ;; 16042 16043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16044 case `$LD -v 2>&1` in 16045 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16046 ld_shlibs_F77=no 16047 cat <<_LT_EOF 1>&2 16048 16049*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16050*** reliably create shared libraries on SCO systems. Therefore, libtool 16051*** is disabling shared libraries support. We urge you to upgrade GNU 16052*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16053*** your PATH or compiler configuration so that the native linker is 16054*** used, and then restart. 16055 16056_LT_EOF 16057 ;; 16058 *) 16059 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16060 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16061 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16062 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16063 else 16064 ld_shlibs_F77=no 16065 fi 16066 ;; 16067 esac 16068 ;; 16069 16070 sunos4*) 16071 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16072 wlarc= 16073 hardcode_direct_F77=yes 16074 hardcode_shlibpath_var_F77=no 16075 ;; 16076 16077 *) 16078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16079 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16080 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16081 else 16082 ld_shlibs_F77=no 16083 fi 16084 ;; 16085 esac 16086 16087 if test "$ld_shlibs_F77" = no; then 16088 runpath_var= 16089 hardcode_libdir_flag_spec_F77= 16090 export_dynamic_flag_spec_F77= 16091 whole_archive_flag_spec_F77= 16092 fi 16093 else 16094 # PORTME fill in a description of your system's linker (not GNU ld) 16095 case $host_os in 16096 aix3*) 16097 allow_undefined_flag_F77=unsupported 16098 always_export_symbols_F77=yes 16099 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' 16100 # Note: this linker hardcodes the directories in LIBPATH if there 16101 # are no directories specified by -L. 16102 hardcode_minus_L_F77=yes 16103 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16104 # Neither direct hardcoding nor static linking is supported with a 16105 # broken collect2. 16106 hardcode_direct_F77=unsupported 16107 fi 16108 ;; 16109 16110 aix[4-9]*) 16111 if test "$host_cpu" = ia64; then 16112 # On IA64, the linker does run time linking by default, so we don't 16113 # have to do anything special. 16114 aix_use_runtimelinking=no 16115 exp_sym_flag='-Bexport' 16116 no_entry_flag="" 16117 else 16118 # If we're using GNU nm, then we don't want the "-C" option. 16119 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16120 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16121 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' 16122 else 16123 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' 16124 fi 16125 aix_use_runtimelinking=no 16126 16127 # Test if we are trying to use run time linking or normal 16128 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16129 # need to do runtime linking. 16130 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16131 for ld_flag in $LDFLAGS; do 16132 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16133 aix_use_runtimelinking=yes 16134 break 16135 fi 16136 done 16137 ;; 16138 esac 16139 16140 exp_sym_flag='-bexport' 16141 no_entry_flag='-bnoentry' 16142 fi 16143 16144 # When large executables or shared objects are built, AIX ld can 16145 # have problems creating the table of contents. If linking a library 16146 # or program results in "error TOC overflow" add -mminimal-toc to 16147 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16148 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16149 16150 archive_cmds_F77='' 16151 hardcode_direct_F77=yes 16152 hardcode_libdir_separator_F77=':' 16153 link_all_deplibs_F77=yes 16154 16155 if test "$GCC" = yes; then 16156 case $host_os in aix4.[012]|aix4.[012].*) 16157 # We only want to do this on AIX 4.2 and lower, the check 16158 # below for broken collect2 doesn't work under 4.3+ 16159 collect2name=`${CC} -print-prog-name=collect2` 16160 if test -f "$collect2name" && \ 16161 strings "$collect2name" | grep resolve_lib_name >/dev/null 16162 then 16163 # We have reworked collect2 16164 : 16165 else 16166 # We have old collect2 16167 hardcode_direct_F77=unsupported 16168 # It fails to find uninstalled libraries when the uninstalled 16169 # path is not listed in the libpath. Setting hardcode_minus_L 16170 # to unsupported forces relinking 16171 hardcode_minus_L_F77=yes 16172 hardcode_libdir_flag_spec_F77='-L$libdir' 16173 hardcode_libdir_separator_F77= 16174 fi 16175 ;; 16176 esac 16177 shared_flag='-shared' 16178 if test "$aix_use_runtimelinking" = yes; then 16179 shared_flag="$shared_flag "'${wl}-G' 16180 fi 16181 else 16182 # not using gcc 16183 if test "$host_cpu" = ia64; then 16184 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16185 # chokes on -Wl,-G. The following line is correct: 16186 shared_flag='-G' 16187 else 16188 if test "$aix_use_runtimelinking" = yes; then 16189 shared_flag='${wl}-G' 16190 else 16191 shared_flag='${wl}-bM:SRE' 16192 fi 16193 fi 16194 fi 16195 16196 # It seems that -bexpall does not export symbols beginning with 16197 # underscore (_), so it is better to generate a list of symbols to export. 16198 always_export_symbols_F77=yes 16199 if test "$aix_use_runtimelinking" = yes; then 16200 # Warning - without using the other runtime loading flags (-brtl), 16201 # -berok will link without error, but may produce a broken library. 16202 allow_undefined_flag_F77='-berok' 16203 # Determine the default libpath from the value encoded in an empty executable. 16204 cat >conftest.$ac_ext <<_ACEOF 16205 program main 16206 16207 end 16208_ACEOF 16209rm -f conftest.$ac_objext conftest$ac_exeext 16210if { (ac_try="$ac_link" 16211case "(($ac_try" in 16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16213 *) ac_try_echo=$ac_try;; 16214esac 16215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16216 (eval "$ac_link") 2>conftest.er1 16217 ac_status=$? 16218 grep -v '^ *+' conftest.er1 >conftest.err 16219 rm -f conftest.er1 16220 cat conftest.err >&5 16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16222 (exit $ac_status); } && { 16223 test -z "$ac_f77_werror_flag" || 16224 test ! -s conftest.err 16225 } && test -s conftest$ac_exeext && 16226 $as_test_x conftest$ac_exeext; then 16227 16228lt_aix_libpath_sed=' 16229 /Import File Strings/,/^$/ { 16230 /^0/ { 16231 s/^0 *\(.*\)$/\1/ 16232 p 16233 } 16234 }' 16235aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16236# Check for a 64-bit object if we didn't find anything. 16237if test -z "$aix_libpath"; then 16238 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16239fi 16240else 16241 echo "$as_me: failed program was:" >&5 16242sed 's/^/| /' conftest.$ac_ext >&5 16243 16244 16245fi 16246 16247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16248 conftest$ac_exeext conftest.$ac_ext 16249if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16250 16251 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16252 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" 16253 else 16254 if test "$host_cpu" = ia64; then 16255 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 16256 allow_undefined_flag_F77="-z nodefs" 16257 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" 16258 else 16259 # Determine the default libpath from the value encoded in an empty executable. 16260 cat >conftest.$ac_ext <<_ACEOF 16261 program main 16262 16263 end 16264_ACEOF 16265rm -f conftest.$ac_objext conftest$ac_exeext 16266if { (ac_try="$ac_link" 16267case "(($ac_try" in 16268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16269 *) ac_try_echo=$ac_try;; 16270esac 16271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16272 (eval "$ac_link") 2>conftest.er1 16273 ac_status=$? 16274 grep -v '^ *+' conftest.er1 >conftest.err 16275 rm -f conftest.er1 16276 cat conftest.err >&5 16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16278 (exit $ac_status); } && { 16279 test -z "$ac_f77_werror_flag" || 16280 test ! -s conftest.err 16281 } && test -s conftest$ac_exeext && 16282 $as_test_x conftest$ac_exeext; then 16283 16284lt_aix_libpath_sed=' 16285 /Import File Strings/,/^$/ { 16286 /^0/ { 16287 s/^0 *\(.*\)$/\1/ 16288 p 16289 } 16290 }' 16291aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16292# Check for a 64-bit object if we didn't find anything. 16293if test -z "$aix_libpath"; then 16294 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16295fi 16296else 16297 echo "$as_me: failed program was:" >&5 16298sed 's/^/| /' conftest.$ac_ext >&5 16299 16300 16301fi 16302 16303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16304 conftest$ac_exeext conftest.$ac_ext 16305if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16306 16307 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 16308 # Warning - without using the other run time loading flags, 16309 # -berok will link without error, but may produce a broken library. 16310 no_undefined_flag_F77=' ${wl}-bernotok' 16311 allow_undefined_flag_F77=' ${wl}-berok' 16312 # Exported symbols can be pulled into shared objects from archives 16313 whole_archive_flag_spec_F77='$convenience' 16314 archive_cmds_need_lc_F77=yes 16315 # This is similar to how AIX traditionally builds its shared libraries. 16316 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' 16317 fi 16318 fi 16319 ;; 16320 16321 amigaos*) 16322 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)' 16323 hardcode_libdir_flag_spec_F77='-L$libdir' 16324 hardcode_minus_L_F77=yes 16325 # see comment about different semantics on the GNU ld section 16326 ld_shlibs_F77=no 16327 ;; 16328 16329 bsdi[45]*) 16330 export_dynamic_flag_spec_F77=-rdynamic 16331 ;; 16332 16333 cygwin* | mingw* | pw32*) 16334 # When not using gcc, we currently assume that we are using 16335 # Microsoft Visual C++. 16336 # hardcode_libdir_flag_spec is actually meaningless, as there is 16337 # no search path for DLLs. 16338 hardcode_libdir_flag_spec_F77=' ' 16339 allow_undefined_flag_F77=unsupported 16340 # Tell ltmain to make .lib files, not .a files. 16341 libext=lib 16342 # Tell ltmain to make .dll files, not .so files. 16343 shrext_cmds=".dll" 16344 # FIXME: Setting linknames here is a bad hack. 16345 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 16346 # The linker will automatically build a .lib file if we build a DLL. 16347 old_archive_From_new_cmds_F77='true' 16348 # FIXME: Should let the user specify the lib program. 16349 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 16350 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 16351 enable_shared_with_static_runtimes_F77=yes 16352 ;; 16353 16354 darwin* | rhapsody*) 16355 case $host_os in 16356 rhapsody* | darwin1.[012]) 16357 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 16358 ;; 16359 *) # Darwin 1.3 on 16360 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 16361 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16362 else 16363 case ${MACOSX_DEPLOYMENT_TARGET} in 16364 10.[012]) 16365 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 16366 ;; 16367 10.*) 16368 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 16369 ;; 16370 esac 16371 fi 16372 ;; 16373 esac 16374 archive_cmds_need_lc_F77=no 16375 hardcode_direct_F77=no 16376 hardcode_automatic_F77=yes 16377 hardcode_shlibpath_var_F77=unsupported 16378 whole_archive_flag_spec_F77='' 16379 link_all_deplibs_F77=yes 16380 if test "$GCC" = yes ; then 16381 output_verbose_link_cmd='echo' 16382 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 16383 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 16384 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 16385 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 16386 else 16387 case $cc_basename in 16388 xlc*) 16389 output_verbose_link_cmd='echo' 16390 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 16391 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 16392 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 16393 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 16394 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}' 16395 ;; 16396 *) 16397 ld_shlibs_F77=no 16398 ;; 16399 esac 16400 fi 16401 ;; 16402 16403 dgux*) 16404 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16405 hardcode_libdir_flag_spec_F77='-L$libdir' 16406 hardcode_shlibpath_var_F77=no 16407 ;; 16408 16409 freebsd1*) 16410 ld_shlibs_F77=no 16411 ;; 16412 16413 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16414 # support. Future versions do this automatically, but an explicit c++rt0.o 16415 # does not break anything, and helps significantly (at the cost of a little 16416 # extra space). 16417 freebsd2.2*) 16418 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16419 hardcode_libdir_flag_spec_F77='-R$libdir' 16420 hardcode_direct_F77=yes 16421 hardcode_shlibpath_var_F77=no 16422 ;; 16423 16424 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16425 freebsd2*) 16426 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16427 hardcode_direct_F77=yes 16428 hardcode_minus_L_F77=yes 16429 hardcode_shlibpath_var_F77=no 16430 ;; 16431 16432 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16433 freebsd* | dragonfly*) 16434 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 16435 hardcode_libdir_flag_spec_F77='-R$libdir' 16436 hardcode_direct_F77=yes 16437 hardcode_shlibpath_var_F77=no 16438 ;; 16439 16440 hpux9*) 16441 if test "$GCC" = yes; then 16442 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' 16443 else 16444 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' 16445 fi 16446 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16447 hardcode_libdir_separator_F77=: 16448 hardcode_direct_F77=yes 16449 16450 # hardcode_minus_L: Not really in the search PATH, 16451 # but as the default location of the library. 16452 hardcode_minus_L_F77=yes 16453 export_dynamic_flag_spec_F77='${wl}-E' 16454 ;; 16455 16456 hpux10*) 16457 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16458 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16459 else 16460 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16461 fi 16462 if test "$with_gnu_ld" = no; then 16463 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16464 hardcode_libdir_separator_F77=: 16465 16466 hardcode_direct_F77=yes 16467 export_dynamic_flag_spec_F77='${wl}-E' 16468 16469 # hardcode_minus_L: Not really in the search PATH, 16470 # but as the default location of the library. 16471 hardcode_minus_L_F77=yes 16472 fi 16473 ;; 16474 16475 hpux11*) 16476 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 16477 case $host_cpu in 16478 hppa*64*) 16479 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16480 ;; 16481 ia64*) 16482 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16483 ;; 16484 *) 16485 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16486 ;; 16487 esac 16488 else 16489 case $host_cpu in 16490 hppa*64*) 16491 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16492 ;; 16493 ia64*) 16494 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16495 ;; 16496 *) 16497 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16498 ;; 16499 esac 16500 fi 16501 if test "$with_gnu_ld" = no; then 16502 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 16503 hardcode_libdir_separator_F77=: 16504 16505 case $host_cpu in 16506 hppa*64*|ia64*) 16507 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 16508 hardcode_direct_F77=no 16509 hardcode_shlibpath_var_F77=no 16510 ;; 16511 *) 16512 hardcode_direct_F77=yes 16513 export_dynamic_flag_spec_F77='${wl}-E' 16514 16515 # hardcode_minus_L: Not really in the search PATH, 16516 # but as the default location of the library. 16517 hardcode_minus_L_F77=yes 16518 ;; 16519 esac 16520 fi 16521 ;; 16522 16523 irix5* | irix6* | nonstopux*) 16524 if test "$GCC" = yes; then 16525 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' 16526 else 16527 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' 16528 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 16529 fi 16530 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16531 hardcode_libdir_separator_F77=: 16532 link_all_deplibs_F77=yes 16533 ;; 16534 16535 netbsd* | netbsdelf*-gnu) 16536 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16537 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16538 else 16539 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16540 fi 16541 hardcode_libdir_flag_spec_F77='-R$libdir' 16542 hardcode_direct_F77=yes 16543 hardcode_shlibpath_var_F77=no 16544 ;; 16545 16546 newsos6) 16547 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16548 hardcode_direct_F77=yes 16549 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16550 hardcode_libdir_separator_F77=: 16551 hardcode_shlibpath_var_F77=no 16552 ;; 16553 16554 openbsd*) 16555 if test -f /usr/libexec/ld.so; then 16556 hardcode_direct_F77=yes 16557 hardcode_shlibpath_var_F77=no 16558 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16559 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16560 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16561 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16562 export_dynamic_flag_spec_F77='${wl}-E' 16563 else 16564 case $host_os in 16565 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16566 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16567 hardcode_libdir_flag_spec_F77='-R$libdir' 16568 ;; 16569 *) 16570 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16571 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 16572 ;; 16573 esac 16574 fi 16575 else 16576 ld_shlibs_F77=no 16577 fi 16578 ;; 16579 16580 os2*) 16581 hardcode_libdir_flag_spec_F77='-L$libdir' 16582 hardcode_minus_L_F77=yes 16583 allow_undefined_flag_F77=unsupported 16584 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' 16585 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16586 ;; 16587 16588 osf3*) 16589 if test "$GCC" = yes; then 16590 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16591 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' 16592 else 16593 allow_undefined_flag_F77=' -expect_unresolved \*' 16594 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' 16595 fi 16596 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16597 hardcode_libdir_separator_F77=: 16598 ;; 16599 16600 osf4* | osf5*) # as osf3* with the addition of -msym flag 16601 if test "$GCC" = yes; then 16602 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 16603 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' 16604 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 16605 else 16606 allow_undefined_flag_F77=' -expect_unresolved \*' 16607 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' 16608 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~ 16609 $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' 16610 16611 # Both c and cxx compiler support -rpath directly 16612 hardcode_libdir_flag_spec_F77='-rpath $libdir' 16613 fi 16614 hardcode_libdir_separator_F77=: 16615 ;; 16616 16617 solaris*) 16618 no_undefined_flag_F77=' -z text' 16619 if test "$GCC" = yes; then 16620 wlarc='${wl}' 16621 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16622 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16623 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16624 else 16625 wlarc='' 16626 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16627 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16628 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16629 fi 16630 hardcode_libdir_flag_spec_F77='-R$libdir' 16631 hardcode_shlibpath_var_F77=no 16632 case $host_os in 16633 solaris2.[0-5] | solaris2.[0-5].*) ;; 16634 *) 16635 # The compiler driver will combine and reorder linker options, 16636 # but understands `-z linker_flag'. GCC discards it without `$wl', 16637 # but is careful enough not to reorder. 16638 # Supported since Solaris 2.6 (maybe 2.5.1?) 16639 if test "$GCC" = yes; then 16640 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 16641 else 16642 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 16643 fi 16644 ;; 16645 esac 16646 link_all_deplibs_F77=yes 16647 ;; 16648 16649 sunos4*) 16650 if test "x$host_vendor" = xsequent; then 16651 # Use $CC to link under sequent, because it throws in some extra .o 16652 # files that make .init and .fini sections work. 16653 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16654 else 16655 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16656 fi 16657 hardcode_libdir_flag_spec_F77='-L$libdir' 16658 hardcode_direct_F77=yes 16659 hardcode_minus_L_F77=yes 16660 hardcode_shlibpath_var_F77=no 16661 ;; 16662 16663 sysv4) 16664 case $host_vendor in 16665 sni) 16666 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16667 hardcode_direct_F77=yes # is this really true??? 16668 ;; 16669 siemens) 16670 ## LD is ld it makes a PLAMLIB 16671 ## CC just makes a GrossModule. 16672 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16673 reload_cmds_F77='$CC -r -o $output$reload_objs' 16674 hardcode_direct_F77=no 16675 ;; 16676 motorola) 16677 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16678 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 16679 ;; 16680 esac 16681 runpath_var='LD_RUN_PATH' 16682 hardcode_shlibpath_var_F77=no 16683 ;; 16684 16685 sysv4.3*) 16686 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16687 hardcode_shlibpath_var_F77=no 16688 export_dynamic_flag_spec_F77='-Bexport' 16689 ;; 16690 16691 sysv4*MP*) 16692 if test -d /usr/nec; then 16693 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16694 hardcode_shlibpath_var_F77=no 16695 runpath_var=LD_RUN_PATH 16696 hardcode_runpath_var=yes 16697 ld_shlibs_F77=yes 16698 fi 16699 ;; 16700 16701 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16702 no_undefined_flag_F77='${wl}-z,text' 16703 archive_cmds_need_lc_F77=no 16704 hardcode_shlibpath_var_F77=no 16705 runpath_var='LD_RUN_PATH' 16706 16707 if test "$GCC" = yes; then 16708 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16709 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16710 else 16711 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16712 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16713 fi 16714 ;; 16715 16716 sysv5* | sco3.2v5* | sco5v6*) 16717 # Note: We can NOT use -z defs as we might desire, because we do not 16718 # link with -lc, and that would cause any symbols used from libc to 16719 # always be unresolved, which means just about no library would 16720 # ever link correctly. If we're not using GNU ld we use -z text 16721 # though, which does catch some bad symbols but isn't as heavy-handed 16722 # as -z defs. 16723 no_undefined_flag_F77='${wl}-z,text' 16724 allow_undefined_flag_F77='${wl}-z,nodefs' 16725 archive_cmds_need_lc_F77=no 16726 hardcode_shlibpath_var_F77=no 16727 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 16728 hardcode_libdir_separator_F77=':' 16729 link_all_deplibs_F77=yes 16730 export_dynamic_flag_spec_F77='${wl}-Bexport' 16731 runpath_var='LD_RUN_PATH' 16732 16733 if test "$GCC" = yes; then 16734 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16735 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16736 else 16737 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16738 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 16739 fi 16740 ;; 16741 16742 uts4*) 16743 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16744 hardcode_libdir_flag_spec_F77='-L$libdir' 16745 hardcode_shlibpath_var_F77=no 16746 ;; 16747 16748 *) 16749 ld_shlibs_F77=no 16750 ;; 16751 esac 16752 fi 16753 16754{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 16755echo "${ECHO_T}$ld_shlibs_F77" >&6; } 16756test "$ld_shlibs_F77" = no && can_build_shared=no 16757 16758# 16759# Do we need to explicitly link libc? 16760# 16761case "x$archive_cmds_need_lc_F77" in 16762x|xyes) 16763 # Assume -lc should be added 16764 archive_cmds_need_lc_F77=yes 16765 16766 if test "$enable_shared" = yes && test "$GCC" = yes; then 16767 case $archive_cmds_F77 in 16768 *'~'*) 16769 # FIXME: we may have to deal with multi-command sequences. 16770 ;; 16771 '$CC '*) 16772 # Test whether the compiler implicitly links with -lc since on some 16773 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16774 # to ld, don't add -lc before -lgcc. 16775 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16776echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 16777 $rm conftest* 16778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16779 16780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16781 (eval $ac_compile) 2>&5 16782 ac_status=$? 16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16784 (exit $ac_status); } 2>conftest.err; then 16785 soname=conftest 16786 lib=conftest 16787 libobjs=conftest.$ac_objext 16788 deplibs= 16789 wl=$lt_prog_compiler_wl_F77 16790 pic_flag=$lt_prog_compiler_pic_F77 16791 compiler_flags=-v 16792 linker_flags=-v 16793 verstring= 16794 output_objdir=. 16795 libname=conftest 16796 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 16797 allow_undefined_flag_F77= 16798 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16799 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16800 ac_status=$? 16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16802 (exit $ac_status); } 16803 then 16804 archive_cmds_need_lc_F77=no 16805 else 16806 archive_cmds_need_lc_F77=yes 16807 fi 16808 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 16809 else 16810 cat conftest.err 1>&5 16811 fi 16812 $rm conftest* 16813 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 16814echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 16815 ;; 16816 esac 16817 fi 16818 ;; 16819esac 16820 16821{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16822echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 16823library_names_spec= 16824libname_spec='lib$name' 16825soname_spec= 16826shrext_cmds=".so" 16827postinstall_cmds= 16828postuninstall_cmds= 16829finish_cmds= 16830finish_eval= 16831shlibpath_var= 16832shlibpath_overrides_runpath=unknown 16833version_type=none 16834dynamic_linker="$host_os ld.so" 16835sys_lib_dlsearch_path_spec="/lib /usr/lib" 16836 16837need_lib_prefix=unknown 16838hardcode_into_libs=no 16839 16840# when you set need_version to no, make sure it does not cause -set_version 16841# flags to be left without arguments 16842need_version=unknown 16843 16844case $host_os in 16845aix3*) 16846 version_type=linux 16847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16848 shlibpath_var=LIBPATH 16849 16850 # AIX 3 has no versioning support, so we append a major version to the name. 16851 soname_spec='${libname}${release}${shared_ext}$major' 16852 ;; 16853 16854aix[4-9]*) 16855 version_type=linux 16856 need_lib_prefix=no 16857 need_version=no 16858 hardcode_into_libs=yes 16859 if test "$host_cpu" = ia64; then 16860 # AIX 5 supports IA64 16861 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16862 shlibpath_var=LD_LIBRARY_PATH 16863 else 16864 # With GCC up to 2.95.x, collect2 would create an import file 16865 # for dependence libraries. The import file would start with 16866 # the line `#! .'. This would cause the generated library to 16867 # depend on `.', always an invalid library. This was fixed in 16868 # development snapshots of GCC prior to 3.0. 16869 case $host_os in 16870 aix4 | aix4.[01] | aix4.[01].*) 16871 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16872 echo ' yes ' 16873 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16874 : 16875 else 16876 can_build_shared=no 16877 fi 16878 ;; 16879 esac 16880 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16881 # soname into executable. Probably we can add versioning support to 16882 # collect2, so additional links can be useful in future. 16883 if test "$aix_use_runtimelinking" = yes; then 16884 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16885 # instead of lib<name>.a to let people know that these are not 16886 # typical AIX shared libraries. 16887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16888 else 16889 # We preserve .a as extension for shared libraries through AIX4.2 16890 # and later when we are not doing run time linking. 16891 library_names_spec='${libname}${release}.a $libname.a' 16892 soname_spec='${libname}${release}${shared_ext}$major' 16893 fi 16894 shlibpath_var=LIBPATH 16895 fi 16896 ;; 16897 16898amigaos*) 16899 library_names_spec='$libname.ixlibrary $libname.a' 16900 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16901 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' 16902 ;; 16903 16904beos*) 16905 library_names_spec='${libname}${shared_ext}' 16906 dynamic_linker="$host_os ld.so" 16907 shlibpath_var=LIBRARY_PATH 16908 ;; 16909 16910bsdi[45]*) 16911 version_type=linux 16912 need_version=no 16913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16914 soname_spec='${libname}${release}${shared_ext}$major' 16915 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16916 shlibpath_var=LD_LIBRARY_PATH 16917 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16918 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16919 # the default ld.so.conf also contains /usr/contrib/lib and 16920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16921 # libtool to hard-code these into programs 16922 ;; 16923 16924cygwin* | mingw* | pw32*) 16925 version_type=windows 16926 shrext_cmds=".dll" 16927 need_version=no 16928 need_lib_prefix=no 16929 16930 case $GCC,$host_os in 16931 yes,cygwin* | yes,mingw* | yes,pw32*) 16932 library_names_spec='$libname.dll.a' 16933 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16934 postinstall_cmds='base_file=`basename \${file}`~ 16935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16936 dldir=$destdir/`dirname \$dlpath`~ 16937 test -d \$dldir || mkdir -p \$dldir~ 16938 $install_prog $dir/$dlname \$dldir/$dlname~ 16939 chmod a+x \$dldir/$dlname' 16940 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16941 dlpath=$dir/\$dldll~ 16942 $rm \$dlpath' 16943 shlibpath_overrides_runpath=yes 16944 16945 case $host_os in 16946 cygwin*) 16947 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16948 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16949 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16950 ;; 16951 mingw*) 16952 # MinGW DLLs use traditional 'lib' prefix 16953 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16954 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16955 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16956 # It is most probably a Windows format PATH printed by 16957 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16958 # path with ; separators, and with drive letters. We can handle the 16959 # drive letters (cygwin fileutils understands them), so leave them, 16960 # especially as we might pass files found there to a mingw objdump, 16961 # which wouldn't understand a cygwinified path. Ahh. 16962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16963 else 16964 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16965 fi 16966 ;; 16967 pw32*) 16968 # pw32 DLLs use 'pw' prefix rather than 'lib' 16969 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16970 ;; 16971 esac 16972 ;; 16973 16974 *) 16975 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16976 ;; 16977 esac 16978 dynamic_linker='Win32 ld.exe' 16979 # FIXME: first we should search . and the directory the executable is in 16980 shlibpath_var=PATH 16981 ;; 16982 16983darwin* | rhapsody*) 16984 dynamic_linker="$host_os dyld" 16985 version_type=darwin 16986 need_lib_prefix=no 16987 need_version=no 16988 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16989 soname_spec='${libname}${release}${major}$shared_ext' 16990 shlibpath_overrides_runpath=yes 16991 shlibpath_var=DYLD_LIBRARY_PATH 16992 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16993 16994 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16995 ;; 16996 16997dgux*) 16998 version_type=linux 16999 need_lib_prefix=no 17000 need_version=no 17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17002 soname_spec='${libname}${release}${shared_ext}$major' 17003 shlibpath_var=LD_LIBRARY_PATH 17004 ;; 17005 17006freebsd1*) 17007 dynamic_linker=no 17008 ;; 17009 17010freebsd* | dragonfly*) 17011 # DragonFly does not have aout. When/if they implement a new 17012 # versioning mechanism, adjust this. 17013 if test -x /usr/bin/objformat; then 17014 objformat=`/usr/bin/objformat` 17015 else 17016 case $host_os in 17017 freebsd[123]*) objformat=aout ;; 17018 *) objformat=elf ;; 17019 esac 17020 fi 17021 version_type=freebsd-$objformat 17022 case $version_type in 17023 freebsd-elf*) 17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17025 need_version=no 17026 need_lib_prefix=no 17027 ;; 17028 freebsd-*) 17029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17030 need_version=yes 17031 ;; 17032 esac 17033 shlibpath_var=LD_LIBRARY_PATH 17034 case $host_os in 17035 freebsd2*) 17036 shlibpath_overrides_runpath=yes 17037 ;; 17038 freebsd3.[01]* | freebsdelf3.[01]*) 17039 shlibpath_overrides_runpath=yes 17040 hardcode_into_libs=yes 17041 ;; 17042 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17043 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17044 shlibpath_overrides_runpath=no 17045 hardcode_into_libs=yes 17046 ;; 17047 *) # from 4.6 on, and DragonFly 17048 shlibpath_overrides_runpath=yes 17049 hardcode_into_libs=yes 17050 ;; 17051 esac 17052 ;; 17053 17054gnu*) 17055 version_type=linux 17056 need_lib_prefix=no 17057 need_version=no 17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17059 soname_spec='${libname}${release}${shared_ext}$major' 17060 shlibpath_var=LD_LIBRARY_PATH 17061 hardcode_into_libs=yes 17062 ;; 17063 17064hpux9* | hpux10* | hpux11*) 17065 # Give a soname corresponding to the major version so that dld.sl refuses to 17066 # link against other versions. 17067 version_type=sunos 17068 need_lib_prefix=no 17069 need_version=no 17070 case $host_cpu in 17071 ia64*) 17072 shrext_cmds='.so' 17073 hardcode_into_libs=yes 17074 dynamic_linker="$host_os dld.so" 17075 shlibpath_var=LD_LIBRARY_PATH 17076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17078 soname_spec='${libname}${release}${shared_ext}$major' 17079 if test "X$HPUX_IA64_MODE" = X32; then 17080 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17081 else 17082 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17083 fi 17084 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17085 ;; 17086 hppa*64*) 17087 shrext_cmds='.sl' 17088 hardcode_into_libs=yes 17089 dynamic_linker="$host_os dld.sl" 17090 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17093 soname_spec='${libname}${release}${shared_ext}$major' 17094 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17096 ;; 17097 *) 17098 shrext_cmds='.sl' 17099 dynamic_linker="$host_os dld.sl" 17100 shlibpath_var=SHLIB_PATH 17101 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17103 soname_spec='${libname}${release}${shared_ext}$major' 17104 ;; 17105 esac 17106 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17107 postinstall_cmds='chmod 555 $lib' 17108 ;; 17109 17110interix[3-9]*) 17111 version_type=linux 17112 need_lib_prefix=no 17113 need_version=no 17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17115 soname_spec='${libname}${release}${shared_ext}$major' 17116 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17117 shlibpath_var=LD_LIBRARY_PATH 17118 shlibpath_overrides_runpath=no 17119 hardcode_into_libs=yes 17120 ;; 17121 17122irix5* | irix6* | nonstopux*) 17123 case $host_os in 17124 nonstopux*) version_type=nonstopux ;; 17125 *) 17126 if test "$lt_cv_prog_gnu_ld" = yes; then 17127 version_type=linux 17128 else 17129 version_type=irix 17130 fi ;; 17131 esac 17132 need_lib_prefix=no 17133 need_version=no 17134 soname_spec='${libname}${release}${shared_ext}$major' 17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17136 case $host_os in 17137 irix5* | nonstopux*) 17138 libsuff= shlibsuff= 17139 ;; 17140 *) 17141 case $LD in # libtool.m4 will add one of these switches to LD 17142 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17143 libsuff= shlibsuff= libmagic=32-bit;; 17144 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17145 libsuff=32 shlibsuff=N32 libmagic=N32;; 17146 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17147 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17148 *) libsuff= shlibsuff= libmagic=never-match;; 17149 esac 17150 ;; 17151 esac 17152 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17153 shlibpath_overrides_runpath=no 17154 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17155 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17156 hardcode_into_libs=yes 17157 ;; 17158 17159# No shared lib support for Linux oldld, aout, or coff. 17160linux*oldld* | linux*aout* | linux*coff*) 17161 dynamic_linker=no 17162 ;; 17163 17164# This must be Linux ELF. 17165linux* | k*bsd*-gnu) 17166 version_type=linux 17167 need_lib_prefix=no 17168 need_version=no 17169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17170 soname_spec='${libname}${release}${shared_ext}$major' 17171 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17172 shlibpath_var=LD_LIBRARY_PATH 17173 shlibpath_overrides_runpath=no 17174 # This implies no fast_install, which is unacceptable. 17175 # Some rework will be needed to allow for fast_install 17176 # before this can be enabled. 17177 hardcode_into_libs=yes 17178 17179 # Append ld.so.conf contents to the search path 17180 if test -f /etc/ld.so.conf; then 17181 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17182 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17183 fi 17184 17185 # We used to test for /lib/ld.so.1 and disable shared libraries on 17186 # powerpc, because MkLinux only supported shared libraries with the 17187 # GNU dynamic linker. Since this was broken with cross compilers, 17188 # most powerpc-linux boxes support dynamic linking these days and 17189 # people can always --disable-shared, the test was removed, and we 17190 # assume the GNU/Linux dynamic linker is in use. 17191 dynamic_linker='GNU/Linux ld.so' 17192 ;; 17193 17194netbsdelf*-gnu) 17195 version_type=linux 17196 need_lib_prefix=no 17197 need_version=no 17198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17199 soname_spec='${libname}${release}${shared_ext}$major' 17200 shlibpath_var=LD_LIBRARY_PATH 17201 shlibpath_overrides_runpath=no 17202 hardcode_into_libs=yes 17203 dynamic_linker='NetBSD ld.elf_so' 17204 ;; 17205 17206netbsd*) 17207 version_type=sunos 17208 need_lib_prefix=no 17209 need_version=no 17210 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17213 dynamic_linker='NetBSD (a.out) ld.so' 17214 else 17215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17216 soname_spec='${libname}${release}${shared_ext}$major' 17217 dynamic_linker='NetBSD ld.elf_so' 17218 fi 17219 shlibpath_var=LD_LIBRARY_PATH 17220 shlibpath_overrides_runpath=yes 17221 hardcode_into_libs=yes 17222 ;; 17223 17224newsos6) 17225 version_type=linux 17226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17227 shlibpath_var=LD_LIBRARY_PATH 17228 shlibpath_overrides_runpath=yes 17229 ;; 17230 17231nto-qnx*) 17232 version_type=linux 17233 need_lib_prefix=no 17234 need_version=no 17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17236 soname_spec='${libname}${release}${shared_ext}$major' 17237 shlibpath_var=LD_LIBRARY_PATH 17238 shlibpath_overrides_runpath=yes 17239 ;; 17240 17241openbsd*) 17242 version_type=sunos 17243 sys_lib_dlsearch_path_spec="/usr/lib" 17244 need_lib_prefix=no 17245 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17246 case $host_os in 17247 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17248 *) need_version=no ;; 17249 esac 17250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17252 shlibpath_var=LD_LIBRARY_PATH 17253 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17254 case $host_os in 17255 openbsd2.[89] | openbsd2.[89].*) 17256 shlibpath_overrides_runpath=no 17257 ;; 17258 *) 17259 shlibpath_overrides_runpath=yes 17260 ;; 17261 esac 17262 else 17263 shlibpath_overrides_runpath=yes 17264 fi 17265 ;; 17266 17267os2*) 17268 libname_spec='$name' 17269 shrext_cmds=".dll" 17270 need_lib_prefix=no 17271 library_names_spec='$libname${shared_ext} $libname.a' 17272 dynamic_linker='OS/2 ld.exe' 17273 shlibpath_var=LIBPATH 17274 ;; 17275 17276osf3* | osf4* | osf5*) 17277 version_type=osf 17278 need_lib_prefix=no 17279 need_version=no 17280 soname_spec='${libname}${release}${shared_ext}$major' 17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17282 shlibpath_var=LD_LIBRARY_PATH 17283 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17284 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17285 ;; 17286 17287rdos*) 17288 dynamic_linker=no 17289 ;; 17290 17291solaris*) 17292 version_type=linux 17293 need_lib_prefix=no 17294 need_version=no 17295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17296 soname_spec='${libname}${release}${shared_ext}$major' 17297 shlibpath_var=LD_LIBRARY_PATH 17298 shlibpath_overrides_runpath=yes 17299 hardcode_into_libs=yes 17300 # ldd complains unless libraries are executable 17301 postinstall_cmds='chmod +x $lib' 17302 ;; 17303 17304sunos4*) 17305 version_type=sunos 17306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17307 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17308 shlibpath_var=LD_LIBRARY_PATH 17309 shlibpath_overrides_runpath=yes 17310 if test "$with_gnu_ld" = yes; then 17311 need_lib_prefix=no 17312 fi 17313 need_version=yes 17314 ;; 17315 17316sysv4 | sysv4.3*) 17317 version_type=linux 17318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17319 soname_spec='${libname}${release}${shared_ext}$major' 17320 shlibpath_var=LD_LIBRARY_PATH 17321 case $host_vendor in 17322 sni) 17323 shlibpath_overrides_runpath=no 17324 need_lib_prefix=no 17325 export_dynamic_flag_spec='${wl}-Blargedynsym' 17326 runpath_var=LD_RUN_PATH 17327 ;; 17328 siemens) 17329 need_lib_prefix=no 17330 ;; 17331 motorola) 17332 need_lib_prefix=no 17333 need_version=no 17334 shlibpath_overrides_runpath=no 17335 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17336 ;; 17337 esac 17338 ;; 17339 17340sysv4*MP*) 17341 if test -d /usr/nec ;then 17342 version_type=linux 17343 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17344 soname_spec='$libname${shared_ext}.$major' 17345 shlibpath_var=LD_LIBRARY_PATH 17346 fi 17347 ;; 17348 17349sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17350 version_type=freebsd-elf 17351 need_lib_prefix=no 17352 need_version=no 17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17354 soname_spec='${libname}${release}${shared_ext}$major' 17355 shlibpath_var=LD_LIBRARY_PATH 17356 hardcode_into_libs=yes 17357 if test "$with_gnu_ld" = yes; then 17358 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17359 shlibpath_overrides_runpath=no 17360 else 17361 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17362 shlibpath_overrides_runpath=yes 17363 case $host_os in 17364 sco3.2v5*) 17365 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17366 ;; 17367 esac 17368 fi 17369 sys_lib_dlsearch_path_spec='/usr/lib' 17370 ;; 17371 17372uts4*) 17373 version_type=linux 17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17375 soname_spec='${libname}${release}${shared_ext}$major' 17376 shlibpath_var=LD_LIBRARY_PATH 17377 ;; 17378 17379*) 17380 dynamic_linker=no 17381 ;; 17382esac 17383{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 17384echo "${ECHO_T}$dynamic_linker" >&6; } 17385test "$dynamic_linker" = no && can_build_shared=no 17386 17387if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 17388 echo $ECHO_N "(cached) $ECHO_C" >&6 17389else 17390 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 17391fi 17392 17393sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 17394if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 17395 echo $ECHO_N "(cached) $ECHO_C" >&6 17396else 17397 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 17398fi 17399 17400sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 17401 17402variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17403if test "$GCC" = yes; then 17404 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17405fi 17406 17407{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 17408echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 17409hardcode_action_F77= 17410if test -n "$hardcode_libdir_flag_spec_F77" || \ 17411 test -n "$runpath_var_F77" || \ 17412 test "X$hardcode_automatic_F77" = "Xyes" ; then 17413 17414 # We can hardcode non-existant directories. 17415 if test "$hardcode_direct_F77" != no && 17416 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17417 # have to relink, otherwise we might link with an installed library 17418 # when we should be linking with a yet-to-be-installed one 17419 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 17420 test "$hardcode_minus_L_F77" != no; then 17421 # Linking always hardcodes the temporary library directory. 17422 hardcode_action_F77=relink 17423 else 17424 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17425 hardcode_action_F77=immediate 17426 fi 17427else 17428 # We cannot hardcode anything, or else we can only hardcode existing 17429 # directories. 17430 hardcode_action_F77=unsupported 17431fi 17432{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 17433echo "${ECHO_T}$hardcode_action_F77" >&6; } 17434 17435if test "$hardcode_action_F77" = relink; then 17436 # Fast installation is not supported 17437 enable_fast_install=no 17438elif test "$shlibpath_overrides_runpath" = yes || 17439 test "$enable_shared" = no; then 17440 # Fast installation is not necessary 17441 enable_fast_install=needless 17442fi 17443 17444 17445# The else clause should only fire when bootstrapping the 17446# libtool distribution, otherwise you forgot to ship ltmain.sh 17447# with your package, and you will get complaints that there are 17448# no rules to generate ltmain.sh. 17449if test -f "$ltmain"; then 17450 # See if we are running on zsh, and set the options which allow our commands through 17451 # without removal of \ escapes. 17452 if test -n "${ZSH_VERSION+set}" ; then 17453 setopt NO_GLOB_SUBST 17454 fi 17455 # Now quote all the things that may contain metacharacters while being 17456 # careful not to overquote the AC_SUBSTed values. We take copies of the 17457 # variables and quote the copies for generation of the libtool script. 17458 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 17459 SED SHELL STRIP \ 17460 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17461 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17462 deplibs_check_method reload_flag reload_cmds need_locks \ 17463 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17464 lt_cv_sys_global_symbol_to_c_name_address \ 17465 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17466 old_postinstall_cmds old_postuninstall_cmds \ 17467 compiler_F77 \ 17468 CC_F77 \ 17469 LD_F77 \ 17470 lt_prog_compiler_wl_F77 \ 17471 lt_prog_compiler_pic_F77 \ 17472 lt_prog_compiler_static_F77 \ 17473 lt_prog_compiler_no_builtin_flag_F77 \ 17474 export_dynamic_flag_spec_F77 \ 17475 thread_safe_flag_spec_F77 \ 17476 whole_archive_flag_spec_F77 \ 17477 enable_shared_with_static_runtimes_F77 \ 17478 old_archive_cmds_F77 \ 17479 old_archive_from_new_cmds_F77 \ 17480 predep_objects_F77 \ 17481 postdep_objects_F77 \ 17482 predeps_F77 \ 17483 postdeps_F77 \ 17484 compiler_lib_search_path_F77 \ 17485 compiler_lib_search_dirs_F77 \ 17486 archive_cmds_F77 \ 17487 archive_expsym_cmds_F77 \ 17488 postinstall_cmds_F77 \ 17489 postuninstall_cmds_F77 \ 17490 old_archive_from_expsyms_cmds_F77 \ 17491 allow_undefined_flag_F77 \ 17492 no_undefined_flag_F77 \ 17493 export_symbols_cmds_F77 \ 17494 hardcode_libdir_flag_spec_F77 \ 17495 hardcode_libdir_flag_spec_ld_F77 \ 17496 hardcode_libdir_separator_F77 \ 17497 hardcode_automatic_F77 \ 17498 module_cmds_F77 \ 17499 module_expsym_cmds_F77 \ 17500 lt_cv_prog_compiler_c_o_F77 \ 17501 fix_srcfile_path_F77 \ 17502 exclude_expsyms_F77 \ 17503 include_expsyms_F77; do 17504 17505 case $var in 17506 old_archive_cmds_F77 | \ 17507 old_archive_from_new_cmds_F77 | \ 17508 archive_cmds_F77 | \ 17509 archive_expsym_cmds_F77 | \ 17510 module_cmds_F77 | \ 17511 module_expsym_cmds_F77 | \ 17512 old_archive_from_expsyms_cmds_F77 | \ 17513 export_symbols_cmds_F77 | \ 17514 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17515 postinstall_cmds | postuninstall_cmds | \ 17516 old_postinstall_cmds | old_postuninstall_cmds | \ 17517 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17518 # Double-quote double-evaled strings. 17519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17520 ;; 17521 *) 17522 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17523 ;; 17524 esac 17525 done 17526 17527 case $lt_echo in 17528 *'\$0 --fallback-echo"') 17529 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17530 ;; 17531 esac 17532 17533cfgfile="$ofile" 17534 17535 cat <<__EOF__ >> "$cfgfile" 17536# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17537 17538# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17539 17540# Shell to use when invoking shell scripts. 17541SHELL=$lt_SHELL 17542 17543# Whether or not to build shared libraries. 17544build_libtool_libs=$enable_shared 17545 17546# Whether or not to build static libraries. 17547build_old_libs=$enable_static 17548 17549# Whether or not to add -lc for building shared libraries. 17550build_libtool_need_lc=$archive_cmds_need_lc_F77 17551 17552# Whether or not to disallow shared libs when runtime libs are static 17553allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 17554 17555# Whether or not to optimize for fast installation. 17556fast_install=$enable_fast_install 17557 17558# The host system. 17559host_alias=$host_alias 17560host=$host 17561host_os=$host_os 17562 17563# The build system. 17564build_alias=$build_alias 17565build=$build 17566build_os=$build_os 17567 17568# An echo program that does not interpret backslashes. 17569echo=$lt_echo 17570 17571# The archiver. 17572AR=$lt_AR 17573AR_FLAGS=$lt_AR_FLAGS 17574 17575# A C compiler. 17576LTCC=$lt_LTCC 17577 17578# LTCC compiler flags. 17579LTCFLAGS=$lt_LTCFLAGS 17580 17581# A language-specific compiler. 17582CC=$lt_compiler_F77 17583 17584# Is the compiler the GNU C compiler? 17585with_gcc=$GCC_F77 17586 17587# An ERE matcher. 17588EGREP=$lt_EGREP 17589 17590# The linker used to build libraries. 17591LD=$lt_LD_F77 17592 17593# Whether we need hard or soft links. 17594LN_S=$lt_LN_S 17595 17596# A BSD-compatible nm program. 17597NM=$lt_NM 17598 17599# A symbol stripping program 17600STRIP=$lt_STRIP 17601 17602# Used to examine libraries when file_magic_cmd begins "file" 17603MAGIC_CMD=$MAGIC_CMD 17604 17605# Used on cygwin: DLL creation program. 17606DLLTOOL="$DLLTOOL" 17607 17608# Used on cygwin: object dumper. 17609OBJDUMP="$OBJDUMP" 17610 17611# Used on cygwin: assembler. 17612AS="$AS" 17613 17614# The name of the directory that contains temporary libtool files. 17615objdir=$objdir 17616 17617# How to create reloadable object files. 17618reload_flag=$lt_reload_flag 17619reload_cmds=$lt_reload_cmds 17620 17621# How to pass a linker flag through the compiler. 17622wl=$lt_lt_prog_compiler_wl_F77 17623 17624# Object file suffix (normally "o"). 17625objext="$ac_objext" 17626 17627# Old archive suffix (normally "a"). 17628libext="$libext" 17629 17630# Shared library suffix (normally ".so"). 17631shrext_cmds='$shrext_cmds' 17632 17633# Executable file suffix (normally ""). 17634exeext="$exeext" 17635 17636# Additional compiler flags for building library objects. 17637pic_flag=$lt_lt_prog_compiler_pic_F77 17638pic_mode=$pic_mode 17639 17640# What is the maximum length of a command? 17641max_cmd_len=$lt_cv_sys_max_cmd_len 17642 17643# Does compiler simultaneously support -c and -o options? 17644compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 17645 17646# Must we lock files when doing compilation? 17647need_locks=$lt_need_locks 17648 17649# Do we need the lib prefix for modules? 17650need_lib_prefix=$need_lib_prefix 17651 17652# Do we need a version for libraries? 17653need_version=$need_version 17654 17655# Whether dlopen is supported. 17656dlopen_support=$enable_dlopen 17657 17658# Whether dlopen of programs is supported. 17659dlopen_self=$enable_dlopen_self 17660 17661# Whether dlopen of statically linked programs is supported. 17662dlopen_self_static=$enable_dlopen_self_static 17663 17664# Compiler flag to prevent dynamic linking. 17665link_static_flag=$lt_lt_prog_compiler_static_F77 17666 17667# Compiler flag to turn off builtin functions. 17668no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 17669 17670# Compiler flag to allow reflexive dlopens. 17671export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 17672 17673# Compiler flag to generate shared objects directly from archives. 17674whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 17675 17676# Compiler flag to generate thread-safe objects. 17677thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 17678 17679# Library versioning type. 17680version_type=$version_type 17681 17682# Format of library name prefix. 17683libname_spec=$lt_libname_spec 17684 17685# List of archive names. First name is the real one, the rest are links. 17686# The last name is the one that the linker finds with -lNAME. 17687library_names_spec=$lt_library_names_spec 17688 17689# The coded name of the library, if different from the real name. 17690soname_spec=$lt_soname_spec 17691 17692# Commands used to build and install an old-style archive. 17693RANLIB=$lt_RANLIB 17694old_archive_cmds=$lt_old_archive_cmds_F77 17695old_postinstall_cmds=$lt_old_postinstall_cmds 17696old_postuninstall_cmds=$lt_old_postuninstall_cmds 17697 17698# Create an old-style archive from a shared archive. 17699old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 17700 17701# Create a temporary old-style archive to link instead of a shared archive. 17702old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 17703 17704# Commands used to build and install a shared archive. 17705archive_cmds=$lt_archive_cmds_F77 17706archive_expsym_cmds=$lt_archive_expsym_cmds_F77 17707postinstall_cmds=$lt_postinstall_cmds 17708postuninstall_cmds=$lt_postuninstall_cmds 17709 17710# Commands used to build a loadable module (assumed same as above if empty) 17711module_cmds=$lt_module_cmds_F77 17712module_expsym_cmds=$lt_module_expsym_cmds_F77 17713 17714# Commands to strip libraries. 17715old_striplib=$lt_old_striplib 17716striplib=$lt_striplib 17717 17718# Dependencies to place before the objects being linked to create a 17719# shared library. 17720predep_objects=$lt_predep_objects_F77 17721 17722# Dependencies to place after the objects being linked to create a 17723# shared library. 17724postdep_objects=$lt_postdep_objects_F77 17725 17726# Dependencies to place before the objects being linked to create a 17727# shared library. 17728predeps=$lt_predeps_F77 17729 17730# Dependencies to place after the objects being linked to create a 17731# shared library. 17732postdeps=$lt_postdeps_F77 17733 17734# The directories searched by this compiler when creating a shared 17735# library 17736compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 17737 17738# The library search path used internally by the compiler when linking 17739# a shared library. 17740compiler_lib_search_path=$lt_compiler_lib_search_path_F77 17741 17742# Method to check whether dependent libraries are shared objects. 17743deplibs_check_method=$lt_deplibs_check_method 17744 17745# Command to use when deplibs_check_method == file_magic. 17746file_magic_cmd=$lt_file_magic_cmd 17747 17748# Flag that allows shared libraries with undefined symbols to be built. 17749allow_undefined_flag=$lt_allow_undefined_flag_F77 17750 17751# Flag that forces no undefined symbols. 17752no_undefined_flag=$lt_no_undefined_flag_F77 17753 17754# Commands used to finish a libtool library installation in a directory. 17755finish_cmds=$lt_finish_cmds 17756 17757# Same as above, but a single script fragment to be evaled but not shown. 17758finish_eval=$lt_finish_eval 17759 17760# Take the output of nm and produce a listing of raw symbols and C names. 17761global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17762 17763# Transform the output of nm in a proper C declaration 17764global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17765 17766# Transform the output of nm in a C name address pair 17767global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17768 17769# This is the shared library runtime path variable. 17770runpath_var=$runpath_var 17771 17772# This is the shared library path variable. 17773shlibpath_var=$shlibpath_var 17774 17775# Is shlibpath searched before the hard-coded library search path? 17776shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17777 17778# How to hardcode a shared library path into an executable. 17779hardcode_action=$hardcode_action_F77 17780 17781# Whether we should hardcode library paths into libraries. 17782hardcode_into_libs=$hardcode_into_libs 17783 17784# Flag to hardcode \$libdir into a binary during linking. 17785# This must work even if \$libdir does not exist. 17786hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 17787 17788# If ld is used when linking, flag to hardcode \$libdir into 17789# a binary during linking. This must work even if \$libdir does 17790# not exist. 17791hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 17792 17793# Whether we need a single -rpath flag with a separated argument. 17794hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 17795 17796# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 17797# resulting binary. 17798hardcode_direct=$hardcode_direct_F77 17799 17800# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 17801# resulting binary. 17802hardcode_minus_L=$hardcode_minus_L_F77 17803 17804# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 17805# the resulting binary. 17806hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 17807 17808# Set to yes if building a shared library automatically hardcodes DIR into the library 17809# and all subsequent libraries and executables linked against it. 17810hardcode_automatic=$hardcode_automatic_F77 17811 17812# Variables whose values should be saved in libtool wrapper scripts and 17813# restored at relink time. 17814variables_saved_for_relink="$variables_saved_for_relink" 17815 17816# Whether libtool must link a program against all its dependency libraries. 17817link_all_deplibs=$link_all_deplibs_F77 17818 17819# Compile-time system search path for libraries 17820sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17821 17822# Run-time system search path for libraries 17823sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17824 17825# Fix the shell variable \$srcfile for the compiler. 17826fix_srcfile_path=$lt_fix_srcfile_path 17827 17828# Set to yes if exported symbols are required. 17829always_export_symbols=$always_export_symbols_F77 17830 17831# The commands to list exported symbols. 17832export_symbols_cmds=$lt_export_symbols_cmds_F77 17833 17834# The commands to extract the exported symbol list from a shared archive. 17835extract_expsyms_cmds=$lt_extract_expsyms_cmds 17836 17837# Symbols that should not be listed in the preloaded symbols. 17838exclude_expsyms=$lt_exclude_expsyms_F77 17839 17840# Symbols that must always be exported. 17841include_expsyms=$lt_include_expsyms_F77 17842 17843# ### END LIBTOOL TAG CONFIG: $tagname 17844 17845__EOF__ 17846 17847 17848else 17849 # If there is no Makefile yet, we rely on a make rule to execute 17850 # `config.status --recheck' to rerun these tests and create the 17851 # libtool script then. 17852 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 17853 if test -f "$ltmain_in"; then 17854 test -f Makefile && make "$ltmain" 17855 fi 17856fi 17857 17858 17859ac_ext=c 17860ac_cpp='$CPP $CPPFLAGS' 17861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17863ac_compiler_gnu=$ac_cv_c_compiler_gnu 17864 17865CC="$lt_save_CC" 17866 17867 else 17868 tagname="" 17869 fi 17870 ;; 17871 17872 GCJ) 17873 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17874 17875 17876# Source file extension for Java test sources. 17877ac_ext=java 17878 17879# Object file extension for compiled Java test sources. 17880objext=o 17881objext_GCJ=$objext 17882 17883# Code to be used in simple compile tests 17884lt_simple_compile_test_code="class foo {}" 17885 17886# Code to be used in simple link tests 17887lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 17888 17889# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17890 17891# If no C compiler was specified, use CC. 17892LTCC=${LTCC-"$CC"} 17893 17894# If no C compiler flags were specified, use CFLAGS. 17895LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17896 17897# Allow CC to be a program name with arguments. 17898compiler=$CC 17899 17900 17901# save warnings/boilerplate of simple test code 17902ac_outfile=conftest.$ac_objext 17903echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17904eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17905_lt_compiler_boilerplate=`cat conftest.err` 17906$rm conftest* 17907 17908ac_outfile=conftest.$ac_objext 17909echo "$lt_simple_link_test_code" >conftest.$ac_ext 17910eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17911_lt_linker_boilerplate=`cat conftest.err` 17912$rm -r conftest* 17913 17914 17915# Allow CC to be a program name with arguments. 17916lt_save_CC="$CC" 17917CC=${GCJ-"gcj"} 17918compiler=$CC 17919compiler_GCJ=$CC 17920for cc_temp in $compiler""; do 17921 case $cc_temp in 17922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17924 \-*) ;; 17925 *) break;; 17926 esac 17927done 17928cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17929 17930 17931# GCJ did not exist at the time GCC didn't implicitly link libc in. 17932archive_cmds_need_lc_GCJ=no 17933 17934old_archive_cmds_GCJ=$old_archive_cmds 17935 17936 17937lt_prog_compiler_no_builtin_flag_GCJ= 17938 17939if test "$GCC" = yes; then 17940 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17941 17942 17943{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17944echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 17945if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 17946 echo $ECHO_N "(cached) $ECHO_C" >&6 17947else 17948 lt_cv_prog_compiler_rtti_exceptions=no 17949 ac_outfile=conftest.$ac_objext 17950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17951 lt_compiler_flag="-fno-rtti -fno-exceptions" 17952 # Insert the option either (1) after the last *FLAGS variable, or 17953 # (2) before a word containing "conftest.", or (3) at the end. 17954 # Note that $ac_compile itself does not contain backslashes and begins 17955 # with a dollar sign (not a hyphen), so the echo should work correctly. 17956 # The option is referenced via a variable to avoid confusing sed. 17957 lt_compile=`echo "$ac_compile" | $SED \ 17958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17960 -e 's:$: $lt_compiler_flag:'` 17961 (eval echo "\"\$as_me:17961: $lt_compile\"" >&5) 17962 (eval "$lt_compile" 2>conftest.err) 17963 ac_status=$? 17964 cat conftest.err >&5 17965 echo "$as_me:17965: \$? = $ac_status" >&5 17966 if (exit $ac_status) && test -s "$ac_outfile"; then 17967 # The compiler can only warn and ignore the option if not recognized 17968 # So say no if there are warnings other than the usual output. 17969 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17971 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17972 lt_cv_prog_compiler_rtti_exceptions=yes 17973 fi 17974 fi 17975 $rm conftest* 17976 17977fi 17978{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17979echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 17980 17981if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17982 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17983else 17984 : 17985fi 17986 17987fi 17988 17989lt_prog_compiler_wl_GCJ= 17990lt_prog_compiler_pic_GCJ= 17991lt_prog_compiler_static_GCJ= 17992 17993{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 17994echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 17995 17996 if test "$GCC" = yes; then 17997 lt_prog_compiler_wl_GCJ='-Wl,' 17998 lt_prog_compiler_static_GCJ='-static' 17999 18000 case $host_os in 18001 aix*) 18002 # All AIX code is PIC. 18003 if test "$host_cpu" = ia64; then 18004 # AIX 5 now supports IA64 processor 18005 lt_prog_compiler_static_GCJ='-Bstatic' 18006 fi 18007 ;; 18008 18009 amigaos*) 18010 # FIXME: we need at least 68020 code to build shared libraries, but 18011 # adding the `-m68020' flag to GCC prevents building anything better, 18012 # like `-m68040'. 18013 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 18014 ;; 18015 18016 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 18017 # PIC is the default for these OSes. 18018 ;; 18019 18020 mingw* | cygwin* | pw32* | os2*) 18021 # This hack is so that the source file can tell whether it is being 18022 # built for inclusion in a dll (and should export symbols for example). 18023 # Although the cygwin gcc ignores -fPIC, still need this for old-style 18024 # (--disable-auto-import) libraries 18025 18026 ;; 18027 18028 darwin* | rhapsody*) 18029 # PIC is the default on this platform 18030 # Common symbols not allowed in MH_DYLIB files 18031 lt_prog_compiler_pic_GCJ='-fno-common' 18032 ;; 18033 18034 interix[3-9]*) 18035 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 18036 # Instead, we relocate shared libraries at runtime. 18037 ;; 18038 18039 msdosdjgpp*) 18040 # Just because we use GCC doesn't mean we suddenly get shared libraries 18041 # on systems that don't support them. 18042 lt_prog_compiler_can_build_shared_GCJ=no 18043 enable_shared=no 18044 ;; 18045 18046 sysv4*MP*) 18047 if test -d /usr/nec; then 18048 lt_prog_compiler_pic_GCJ=-Kconform_pic 18049 fi 18050 ;; 18051 18052 hpux*) 18053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18054 # not for PA HP-UX. 18055 case $host_cpu in 18056 hppa*64*|ia64*) 18057 # +Z the default 18058 ;; 18059 *) 18060 lt_prog_compiler_pic_GCJ='-fPIC' 18061 ;; 18062 esac 18063 ;; 18064 18065 *) 18066 lt_prog_compiler_pic_GCJ='-fPIC' 18067 ;; 18068 esac 18069 else 18070 # PORTME Check for flag to pass linker flags through the system compiler. 18071 case $host_os in 18072 aix*) 18073 lt_prog_compiler_wl_GCJ='-Wl,' 18074 if test "$host_cpu" = ia64; then 18075 # AIX 5 now supports IA64 processor 18076 lt_prog_compiler_static_GCJ='-Bstatic' 18077 else 18078 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 18079 fi 18080 ;; 18081 darwin*) 18082 # PIC is the default on this platform 18083 # Common symbols not allowed in MH_DYLIB files 18084 case $cc_basename in 18085 xlc*) 18086 lt_prog_compiler_pic_GCJ='-qnocommon' 18087 lt_prog_compiler_wl_GCJ='-Wl,' 18088 ;; 18089 esac 18090 ;; 18091 18092 mingw* | cygwin* | pw32* | os2*) 18093 # This hack is so that the source file can tell whether it is being 18094 # built for inclusion in a dll (and should export symbols for example). 18095 18096 ;; 18097 18098 hpux9* | hpux10* | hpux11*) 18099 lt_prog_compiler_wl_GCJ='-Wl,' 18100 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 18101 # not for PA HP-UX. 18102 case $host_cpu in 18103 hppa*64*|ia64*) 18104 # +Z the default 18105 ;; 18106 *) 18107 lt_prog_compiler_pic_GCJ='+Z' 18108 ;; 18109 esac 18110 # Is there a better lt_prog_compiler_static that works with the bundled CC? 18111 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 18112 ;; 18113 18114 irix5* | irix6* | nonstopux*) 18115 lt_prog_compiler_wl_GCJ='-Wl,' 18116 # PIC (with -KPIC) is the default. 18117 lt_prog_compiler_static_GCJ='-non_shared' 18118 ;; 18119 18120 newsos6) 18121 lt_prog_compiler_pic_GCJ='-KPIC' 18122 lt_prog_compiler_static_GCJ='-Bstatic' 18123 ;; 18124 18125 linux* | k*bsd*-gnu) 18126 case $cc_basename in 18127 icc* | ecc*) 18128 lt_prog_compiler_wl_GCJ='-Wl,' 18129 lt_prog_compiler_pic_GCJ='-KPIC' 18130 lt_prog_compiler_static_GCJ='-static' 18131 ;; 18132 pgcc* | pgf77* | pgf90* | pgf95*) 18133 # Portland Group compilers (*not* the Pentium gcc compiler, 18134 # which looks to be a dead project) 18135 lt_prog_compiler_wl_GCJ='-Wl,' 18136 lt_prog_compiler_pic_GCJ='-fpic' 18137 lt_prog_compiler_static_GCJ='-Bstatic' 18138 ;; 18139 ccc*) 18140 lt_prog_compiler_wl_GCJ='-Wl,' 18141 # All Alpha code is PIC. 18142 lt_prog_compiler_static_GCJ='-non_shared' 18143 ;; 18144 *) 18145 case `$CC -V 2>&1 | sed 5q` in 18146 *Sun\ C*) 18147 # Sun C 5.9 18148 lt_prog_compiler_pic_GCJ='-KPIC' 18149 lt_prog_compiler_static_GCJ='-Bstatic' 18150 lt_prog_compiler_wl_GCJ='-Wl,' 18151 ;; 18152 *Sun\ F*) 18153 # Sun Fortran 8.3 passes all unrecognized flags to the linker 18154 lt_prog_compiler_pic_GCJ='-KPIC' 18155 lt_prog_compiler_static_GCJ='-Bstatic' 18156 lt_prog_compiler_wl_GCJ='' 18157 ;; 18158 esac 18159 ;; 18160 esac 18161 ;; 18162 18163 osf3* | osf4* | osf5*) 18164 lt_prog_compiler_wl_GCJ='-Wl,' 18165 # All OSF/1 code is PIC. 18166 lt_prog_compiler_static_GCJ='-non_shared' 18167 ;; 18168 18169 rdos*) 18170 lt_prog_compiler_static_GCJ='-non_shared' 18171 ;; 18172 18173 solaris*) 18174 lt_prog_compiler_pic_GCJ='-KPIC' 18175 lt_prog_compiler_static_GCJ='-Bstatic' 18176 case $cc_basename in 18177 f77* | f90* | f95*) 18178 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 18179 *) 18180 lt_prog_compiler_wl_GCJ='-Wl,';; 18181 esac 18182 ;; 18183 18184 sunos4*) 18185 lt_prog_compiler_wl_GCJ='-Qoption ld ' 18186 lt_prog_compiler_pic_GCJ='-PIC' 18187 lt_prog_compiler_static_GCJ='-Bstatic' 18188 ;; 18189 18190 sysv4 | sysv4.2uw2* | sysv4.3*) 18191 lt_prog_compiler_wl_GCJ='-Wl,' 18192 lt_prog_compiler_pic_GCJ='-KPIC' 18193 lt_prog_compiler_static_GCJ='-Bstatic' 18194 ;; 18195 18196 sysv4*MP*) 18197 if test -d /usr/nec ;then 18198 lt_prog_compiler_pic_GCJ='-Kconform_pic' 18199 lt_prog_compiler_static_GCJ='-Bstatic' 18200 fi 18201 ;; 18202 18203 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 18204 lt_prog_compiler_wl_GCJ='-Wl,' 18205 lt_prog_compiler_pic_GCJ='-KPIC' 18206 lt_prog_compiler_static_GCJ='-Bstatic' 18207 ;; 18208 18209 unicos*) 18210 lt_prog_compiler_wl_GCJ='-Wl,' 18211 lt_prog_compiler_can_build_shared_GCJ=no 18212 ;; 18213 18214 uts4*) 18215 lt_prog_compiler_pic_GCJ='-pic' 18216 lt_prog_compiler_static_GCJ='-Bstatic' 18217 ;; 18218 18219 *) 18220 lt_prog_compiler_can_build_shared_GCJ=no 18221 ;; 18222 esac 18223 fi 18224 18225{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 18226echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 18227 18228# 18229# Check to make sure the PIC flag actually works. 18230# 18231if test -n "$lt_prog_compiler_pic_GCJ"; then 18232 18233{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 18234echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 18235if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 18236 echo $ECHO_N "(cached) $ECHO_C" >&6 18237else 18238 lt_cv_prog_compiler_pic_works_GCJ=no 18239 ac_outfile=conftest.$ac_objext 18240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18241 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 18242 # Insert the option either (1) after the last *FLAGS variable, or 18243 # (2) before a word containing "conftest.", or (3) at the end. 18244 # Note that $ac_compile itself does not contain backslashes and begins 18245 # with a dollar sign (not a hyphen), so the echo should work correctly. 18246 # The option is referenced via a variable to avoid confusing sed. 18247 lt_compile=`echo "$ac_compile" | $SED \ 18248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18250 -e 's:$: $lt_compiler_flag:'` 18251 (eval echo "\"\$as_me:18251: $lt_compile\"" >&5) 18252 (eval "$lt_compile" 2>conftest.err) 18253 ac_status=$? 18254 cat conftest.err >&5 18255 echo "$as_me:18255: \$? = $ac_status" >&5 18256 if (exit $ac_status) && test -s "$ac_outfile"; then 18257 # The compiler can only warn and ignore the option if not recognized 18258 # So say no if there are warnings other than the usual output. 18259 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 18260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 18262 lt_cv_prog_compiler_pic_works_GCJ=yes 18263 fi 18264 fi 18265 $rm conftest* 18266 18267fi 18268{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 18269echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 18270 18271if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 18272 case $lt_prog_compiler_pic_GCJ in 18273 "" | " "*) ;; 18274 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 18275 esac 18276else 18277 lt_prog_compiler_pic_GCJ= 18278 lt_prog_compiler_can_build_shared_GCJ=no 18279fi 18280 18281fi 18282case $host_os in 18283 # For platforms which do not support PIC, -DPIC is meaningless: 18284 *djgpp*) 18285 lt_prog_compiler_pic_GCJ= 18286 ;; 18287 *) 18288 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 18289 ;; 18290esac 18291 18292# 18293# Check to make sure the static flag actually works. 18294# 18295wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 18296{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 18297echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 18298if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 18299 echo $ECHO_N "(cached) $ECHO_C" >&6 18300else 18301 lt_cv_prog_compiler_static_works_GCJ=no 18302 save_LDFLAGS="$LDFLAGS" 18303 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 18304 echo "$lt_simple_link_test_code" > conftest.$ac_ext 18305 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 18306 # The linker can only warn and ignore the option if not recognized 18307 # So say no if there are warnings 18308 if test -s conftest.err; then 18309 # Append any errors to the config.log. 18310 cat conftest.err 1>&5 18311 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 18312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 18313 if diff conftest.exp conftest.er2 >/dev/null; then 18314 lt_cv_prog_compiler_static_works_GCJ=yes 18315 fi 18316 else 18317 lt_cv_prog_compiler_static_works_GCJ=yes 18318 fi 18319 fi 18320 $rm -r conftest* 18321 LDFLAGS="$save_LDFLAGS" 18322 18323fi 18324{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 18325echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; } 18326 18327if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 18328 : 18329else 18330 lt_prog_compiler_static_GCJ= 18331fi 18332 18333 18334{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 18335echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 18336if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 18337 echo $ECHO_N "(cached) $ECHO_C" >&6 18338else 18339 lt_cv_prog_compiler_c_o_GCJ=no 18340 $rm -r conftest 2>/dev/null 18341 mkdir conftest 18342 cd conftest 18343 mkdir out 18344 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18345 18346 lt_compiler_flag="-o out/conftest2.$ac_objext" 18347 # Insert the option either (1) after the last *FLAGS variable, or 18348 # (2) before a word containing "conftest.", or (3) at the end. 18349 # Note that $ac_compile itself does not contain backslashes and begins 18350 # with a dollar sign (not a hyphen), so the echo should work correctly. 18351 lt_compile=`echo "$ac_compile" | $SED \ 18352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 18353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18354 -e 's:$: $lt_compiler_flag:'` 18355 (eval echo "\"\$as_me:18355: $lt_compile\"" >&5) 18356 (eval "$lt_compile" 2>out/conftest.err) 18357 ac_status=$? 18358 cat out/conftest.err >&5 18359 echo "$as_me:18359: \$? = $ac_status" >&5 18360 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18361 then 18362 # The compiler can only warn and ignore the option if not recognized 18363 # So say no if there are warnings 18364 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 18365 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 18366 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 18367 lt_cv_prog_compiler_c_o_GCJ=yes 18368 fi 18369 fi 18370 chmod u+w . 2>&5 18371 $rm conftest* 18372 # SGI C++ compiler will create directory out/ii_files/ for 18373 # template instantiation 18374 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 18375 $rm out/* && rmdir out 18376 cd .. 18377 rmdir conftest 18378 $rm conftest* 18379 18380fi 18381{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 18382echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 18383 18384 18385hard_links="nottested" 18386if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 18387 # do not overwrite the value of need_locks provided by the user 18388 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 18389echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 18390 hard_links=yes 18391 $rm conftest* 18392 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18393 touch conftest.a 18394 ln conftest.a conftest.b 2>&5 || hard_links=no 18395 ln conftest.a conftest.b 2>/dev/null && hard_links=no 18396 { echo "$as_me:$LINENO: result: $hard_links" >&5 18397echo "${ECHO_T}$hard_links" >&6; } 18398 if test "$hard_links" = no; then 18399 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 18400echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 18401 need_locks=warn 18402 fi 18403else 18404 need_locks=no 18405fi 18406 18407{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 18408echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 18409 18410 runpath_var= 18411 allow_undefined_flag_GCJ= 18412 enable_shared_with_static_runtimes_GCJ=no 18413 archive_cmds_GCJ= 18414 archive_expsym_cmds_GCJ= 18415 old_archive_From_new_cmds_GCJ= 18416 old_archive_from_expsyms_cmds_GCJ= 18417 export_dynamic_flag_spec_GCJ= 18418 whole_archive_flag_spec_GCJ= 18419 thread_safe_flag_spec_GCJ= 18420 hardcode_libdir_flag_spec_GCJ= 18421 hardcode_libdir_flag_spec_ld_GCJ= 18422 hardcode_libdir_separator_GCJ= 18423 hardcode_direct_GCJ=no 18424 hardcode_minus_L_GCJ=no 18425 hardcode_shlibpath_var_GCJ=unsupported 18426 link_all_deplibs_GCJ=unknown 18427 hardcode_automatic_GCJ=no 18428 module_cmds_GCJ= 18429 module_expsym_cmds_GCJ= 18430 always_export_symbols_GCJ=no 18431 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 18432 # include_expsyms should be a list of space-separated symbols to be *always* 18433 # included in the symbol list 18434 include_expsyms_GCJ= 18435 # exclude_expsyms can be an extended regexp of symbols to exclude 18436 # it will be wrapped by ` (' and `)$', so one must not match beginning or 18437 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 18438 # as well as any symbol that contains `d'. 18439 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 18440 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 18441 # platforms (ab)use it in PIC code, but their linkers get confused if 18442 # the symbol is explicitly referenced. Since portable code cannot 18443 # rely on this symbol name, it's probably fine to never include it in 18444 # preloaded symbol tables. 18445 # Exclude shared library initialization/finalization symbols. 18446 extract_expsyms_cmds= 18447 # Just being paranoid about ensuring that cc_basename is set. 18448 for cc_temp in $compiler""; do 18449 case $cc_temp in 18450 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18451 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18452 \-*) ;; 18453 *) break;; 18454 esac 18455done 18456cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18457 18458 case $host_os in 18459 cygwin* | mingw* | pw32*) 18460 # FIXME: the MSVC++ port hasn't been tested in a loooong time 18461 # When not using gcc, we currently assume that we are using 18462 # Microsoft Visual C++. 18463 if test "$GCC" != yes; then 18464 with_gnu_ld=no 18465 fi 18466 ;; 18467 interix*) 18468 # we just hope/assume this is gcc and not c89 (= MSVC++) 18469 with_gnu_ld=yes 18470 ;; 18471 openbsd*) 18472 with_gnu_ld=no 18473 ;; 18474 esac 18475 18476 ld_shlibs_GCJ=yes 18477 if test "$with_gnu_ld" = yes; then 18478 # If archive_cmds runs LD, not CC, wlarc should be empty 18479 wlarc='${wl}' 18480 18481 # Set some defaults for GNU ld with shared library support. These 18482 # are reset later if shared libraries are not supported. Putting them 18483 # here allows them to be overridden if necessary. 18484 runpath_var=LD_RUN_PATH 18485 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 18486 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 18487 # ancient GNU ld didn't support --whole-archive et. al. 18488 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 18489 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18490 else 18491 whole_archive_flag_spec_GCJ= 18492 fi 18493 supports_anon_versioning=no 18494 case `$LD -v 2>/dev/null` in 18495 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 18496 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 18497 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 18498 *\ 2.11.*) ;; # other 2.11 versions 18499 *) supports_anon_versioning=yes ;; 18500 esac 18501 18502 # See if GNU ld supports shared libraries. 18503 case $host_os in 18504 aix[3-9]*) 18505 # On AIX/PPC, the GNU linker is very broken 18506 if test "$host_cpu" != ia64; then 18507 ld_shlibs_GCJ=no 18508 cat <<EOF 1>&2 18509 18510*** Warning: the GNU linker, at least up to release 2.9.1, is reported 18511*** to be unable to reliably create shared libraries on AIX. 18512*** Therefore, libtool is disabling shared libraries support. If you 18513*** really care for shared libraries, you may want to modify your PATH 18514*** so that a non-GNU linker is found, and then restart. 18515 18516EOF 18517 fi 18518 ;; 18519 18520 amigaos*) 18521 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)' 18522 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18523 hardcode_minus_L_GCJ=yes 18524 18525 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 18526 # that the semantics of dynamic libraries on AmigaOS, at least up 18527 # to version 4, is to share data among multiple programs linked 18528 # with the same dynamic library. Since this doesn't match the 18529 # behavior of shared libraries on other platforms, we can't use 18530 # them. 18531 ld_shlibs_GCJ=no 18532 ;; 18533 18534 beos*) 18535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18536 allow_undefined_flag_GCJ=unsupported 18537 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 18538 # support --undefined. This deserves some investigation. FIXME 18539 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18540 else 18541 ld_shlibs_GCJ=no 18542 fi 18543 ;; 18544 18545 cygwin* | mingw* | pw32*) 18546 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 18547 # as there is no search path for DLLs. 18548 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18549 allow_undefined_flag_GCJ=unsupported 18550 always_export_symbols_GCJ=no 18551 enable_shared_with_static_runtimes_GCJ=yes 18552 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 18553 18554 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 18555 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18556 # If the export-symbols file already is a .def file (1st line 18557 # is EXPORTS), use it as is; otherwise, prepend... 18558 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 18559 cp $export_symbols $output_objdir/$soname.def; 18560 else 18561 echo EXPORTS > $output_objdir/$soname.def; 18562 cat $export_symbols >> $output_objdir/$soname.def; 18563 fi~ 18564 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18565 else 18566 ld_shlibs_GCJ=no 18567 fi 18568 ;; 18569 18570 interix[3-9]*) 18571 hardcode_direct_GCJ=no 18572 hardcode_shlibpath_var_GCJ=no 18573 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18574 export_dynamic_flag_spec_GCJ='${wl}-E' 18575 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18576 # Instead, shared libraries are loaded at an image base (0x10000000 by 18577 # default) and relocated if they conflict, which is a slow very memory 18578 # consuming and fragmenting process. To avoid this, we pick a random, 18579 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18580 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18581 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' 18582 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' 18583 ;; 18584 18585 gnu* | linux* | k*bsd*-gnu) 18586 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18587 tmp_addflag= 18588 case $cc_basename,$host_cpu in 18589 pgcc*) # Portland Group C compiler 18590 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' 18591 tmp_addflag=' $pic_flag' 18592 ;; 18593 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 18594 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' 18595 tmp_addflag=' $pic_flag -Mnomain' ;; 18596 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 18597 tmp_addflag=' -i_dynamic' ;; 18598 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 18599 tmp_addflag=' -i_dynamic -nofor_main' ;; 18600 ifc* | ifort*) # Intel Fortran compiler 18601 tmp_addflag=' -nofor_main' ;; 18602 esac 18603 case `$CC -V 2>&1 | sed 5q` in 18604 *Sun\ C*) # Sun C 5.9 18605 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 18606 tmp_sharedflag='-G' ;; 18607 *Sun\ F*) # Sun Fortran 8.3 18608 tmp_sharedflag='-G' ;; 18609 *) 18610 tmp_sharedflag='-shared' ;; 18611 esac 18612 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18613 18614 if test $supports_anon_versioning = yes; then 18615 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 18616 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18617 $echo "local: *; };" >> $output_objdir/$libname.ver~ 18618 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18619 fi 18620 link_all_deplibs_GCJ=no 18621 else 18622 ld_shlibs_GCJ=no 18623 fi 18624 ;; 18625 18626 netbsd* | netbsdelf*-gnu) 18627 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18628 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 18629 wlarc= 18630 else 18631 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18632 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18633 fi 18634 ;; 18635 18636 solaris*) 18637 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 18638 ld_shlibs_GCJ=no 18639 cat <<EOF 1>&2 18640 18641*** Warning: The releases 2.8.* of the GNU linker cannot reliably 18642*** create shared libraries on Solaris systems. Therefore, libtool 18643*** is disabling shared libraries support. We urge you to upgrade GNU 18644*** binutils to release 2.9.1 or newer. Another option is to modify 18645*** your PATH or compiler configuration so that the native linker is 18646*** used, and then restart. 18647 18648EOF 18649 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18650 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18651 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18652 else 18653 ld_shlibs_GCJ=no 18654 fi 18655 ;; 18656 18657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 18658 case `$LD -v 2>&1` in 18659 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 18660 ld_shlibs_GCJ=no 18661 cat <<_LT_EOF 1>&2 18662 18663*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 18664*** reliably create shared libraries on SCO systems. Therefore, libtool 18665*** is disabling shared libraries support. We urge you to upgrade GNU 18666*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 18667*** your PATH or compiler configuration so that the native linker is 18668*** used, and then restart. 18669 18670_LT_EOF 18671 ;; 18672 *) 18673 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18674 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 18675 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 18676 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 18677 else 18678 ld_shlibs_GCJ=no 18679 fi 18680 ;; 18681 esac 18682 ;; 18683 18684 sunos4*) 18685 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18686 wlarc= 18687 hardcode_direct_GCJ=yes 18688 hardcode_shlibpath_var_GCJ=no 18689 ;; 18690 18691 *) 18692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 18693 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18694 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 18695 else 18696 ld_shlibs_GCJ=no 18697 fi 18698 ;; 18699 esac 18700 18701 if test "$ld_shlibs_GCJ" = no; then 18702 runpath_var= 18703 hardcode_libdir_flag_spec_GCJ= 18704 export_dynamic_flag_spec_GCJ= 18705 whole_archive_flag_spec_GCJ= 18706 fi 18707 else 18708 # PORTME fill in a description of your system's linker (not GNU ld) 18709 case $host_os in 18710 aix3*) 18711 allow_undefined_flag_GCJ=unsupported 18712 always_export_symbols_GCJ=yes 18713 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' 18714 # Note: this linker hardcodes the directories in LIBPATH if there 18715 # are no directories specified by -L. 18716 hardcode_minus_L_GCJ=yes 18717 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 18718 # Neither direct hardcoding nor static linking is supported with a 18719 # broken collect2. 18720 hardcode_direct_GCJ=unsupported 18721 fi 18722 ;; 18723 18724 aix[4-9]*) 18725 if test "$host_cpu" = ia64; then 18726 # On IA64, the linker does run time linking by default, so we don't 18727 # have to do anything special. 18728 aix_use_runtimelinking=no 18729 exp_sym_flag='-Bexport' 18730 no_entry_flag="" 18731 else 18732 # If we're using GNU nm, then we don't want the "-C" option. 18733 # -C means demangle to AIX nm, but means don't demangle with GNU nm 18734 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 18735 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' 18736 else 18737 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' 18738 fi 18739 aix_use_runtimelinking=no 18740 18741 # Test if we are trying to use run time linking or normal 18742 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 18743 # need to do runtime linking. 18744 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 18745 for ld_flag in $LDFLAGS; do 18746 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 18747 aix_use_runtimelinking=yes 18748 break 18749 fi 18750 done 18751 ;; 18752 esac 18753 18754 exp_sym_flag='-bexport' 18755 no_entry_flag='-bnoentry' 18756 fi 18757 18758 # When large executables or shared objects are built, AIX ld can 18759 # have problems creating the table of contents. If linking a library 18760 # or program results in "error TOC overflow" add -mminimal-toc to 18761 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 18762 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 18763 18764 archive_cmds_GCJ='' 18765 hardcode_direct_GCJ=yes 18766 hardcode_libdir_separator_GCJ=':' 18767 link_all_deplibs_GCJ=yes 18768 18769 if test "$GCC" = yes; then 18770 case $host_os in aix4.[012]|aix4.[012].*) 18771 # We only want to do this on AIX 4.2 and lower, the check 18772 # below for broken collect2 doesn't work under 4.3+ 18773 collect2name=`${CC} -print-prog-name=collect2` 18774 if test -f "$collect2name" && \ 18775 strings "$collect2name" | grep resolve_lib_name >/dev/null 18776 then 18777 # We have reworked collect2 18778 : 18779 else 18780 # We have old collect2 18781 hardcode_direct_GCJ=unsupported 18782 # It fails to find uninstalled libraries when the uninstalled 18783 # path is not listed in the libpath. Setting hardcode_minus_L 18784 # to unsupported forces relinking 18785 hardcode_minus_L_GCJ=yes 18786 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18787 hardcode_libdir_separator_GCJ= 18788 fi 18789 ;; 18790 esac 18791 shared_flag='-shared' 18792 if test "$aix_use_runtimelinking" = yes; then 18793 shared_flag="$shared_flag "'${wl}-G' 18794 fi 18795 else 18796 # not using gcc 18797 if test "$host_cpu" = ia64; then 18798 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 18799 # chokes on -Wl,-G. The following line is correct: 18800 shared_flag='-G' 18801 else 18802 if test "$aix_use_runtimelinking" = yes; then 18803 shared_flag='${wl}-G' 18804 else 18805 shared_flag='${wl}-bM:SRE' 18806 fi 18807 fi 18808 fi 18809 18810 # It seems that -bexpall does not export symbols beginning with 18811 # underscore (_), so it is better to generate a list of symbols to export. 18812 always_export_symbols_GCJ=yes 18813 if test "$aix_use_runtimelinking" = yes; then 18814 # Warning - without using the other runtime loading flags (-brtl), 18815 # -berok will link without error, but may produce a broken library. 18816 allow_undefined_flag_GCJ='-berok' 18817 # Determine the default libpath from the value encoded in an empty executable. 18818 cat >conftest.$ac_ext <<_ACEOF 18819/* confdefs.h. */ 18820_ACEOF 18821cat confdefs.h >>conftest.$ac_ext 18822cat >>conftest.$ac_ext <<_ACEOF 18823/* end confdefs.h. */ 18824 18825int 18826main () 18827{ 18828 18829 ; 18830 return 0; 18831} 18832_ACEOF 18833rm -f conftest.$ac_objext conftest$ac_exeext 18834if { (ac_try="$ac_link" 18835case "(($ac_try" in 18836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18837 *) ac_try_echo=$ac_try;; 18838esac 18839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18840 (eval "$ac_link") 2>conftest.er1 18841 ac_status=$? 18842 grep -v '^ *+' conftest.er1 >conftest.err 18843 rm -f conftest.er1 18844 cat conftest.err >&5 18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18846 (exit $ac_status); } && { 18847 test -z "$ac_c_werror_flag" || 18848 test ! -s conftest.err 18849 } && test -s conftest$ac_exeext && 18850 $as_test_x conftest$ac_exeext; then 18851 18852lt_aix_libpath_sed=' 18853 /Import File Strings/,/^$/ { 18854 /^0/ { 18855 s/^0 *\(.*\)$/\1/ 18856 p 18857 } 18858 }' 18859aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18860# Check for a 64-bit object if we didn't find anything. 18861if test -z "$aix_libpath"; then 18862 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18863fi 18864else 18865 echo "$as_me: failed program was:" >&5 18866sed 's/^/| /' conftest.$ac_ext >&5 18867 18868 18869fi 18870 18871rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18872 conftest$ac_exeext conftest.$ac_ext 18873if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18874 18875 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18876 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" 18877 else 18878 if test "$host_cpu" = ia64; then 18879 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18880 allow_undefined_flag_GCJ="-z nodefs" 18881 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" 18882 else 18883 # Determine the default libpath from the value encoded in an empty executable. 18884 cat >conftest.$ac_ext <<_ACEOF 18885/* confdefs.h. */ 18886_ACEOF 18887cat confdefs.h >>conftest.$ac_ext 18888cat >>conftest.$ac_ext <<_ACEOF 18889/* end confdefs.h. */ 18890 18891int 18892main () 18893{ 18894 18895 ; 18896 return 0; 18897} 18898_ACEOF 18899rm -f conftest.$ac_objext conftest$ac_exeext 18900if { (ac_try="$ac_link" 18901case "(($ac_try" in 18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18903 *) ac_try_echo=$ac_try;; 18904esac 18905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18906 (eval "$ac_link") 2>conftest.er1 18907 ac_status=$? 18908 grep -v '^ *+' conftest.er1 >conftest.err 18909 rm -f conftest.er1 18910 cat conftest.err >&5 18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18912 (exit $ac_status); } && { 18913 test -z "$ac_c_werror_flag" || 18914 test ! -s conftest.err 18915 } && test -s conftest$ac_exeext && 18916 $as_test_x conftest$ac_exeext; then 18917 18918lt_aix_libpath_sed=' 18919 /Import File Strings/,/^$/ { 18920 /^0/ { 18921 s/^0 *\(.*\)$/\1/ 18922 p 18923 } 18924 }' 18925aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18926# Check for a 64-bit object if we didn't find anything. 18927if test -z "$aix_libpath"; then 18928 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18929fi 18930else 18931 echo "$as_me: failed program was:" >&5 18932sed 's/^/| /' conftest.$ac_ext >&5 18933 18934 18935fi 18936 18937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 18938 conftest$ac_exeext conftest.$ac_ext 18939if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18940 18941 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18942 # Warning - without using the other run time loading flags, 18943 # -berok will link without error, but may produce a broken library. 18944 no_undefined_flag_GCJ=' ${wl}-bernotok' 18945 allow_undefined_flag_GCJ=' ${wl}-berok' 18946 # Exported symbols can be pulled into shared objects from archives 18947 whole_archive_flag_spec_GCJ='$convenience' 18948 archive_cmds_need_lc_GCJ=yes 18949 # This is similar to how AIX traditionally builds its shared libraries. 18950 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' 18951 fi 18952 fi 18953 ;; 18954 18955 amigaos*) 18956 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)' 18957 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18958 hardcode_minus_L_GCJ=yes 18959 # see comment about different semantics on the GNU ld section 18960 ld_shlibs_GCJ=no 18961 ;; 18962 18963 bsdi[45]*) 18964 export_dynamic_flag_spec_GCJ=-rdynamic 18965 ;; 18966 18967 cygwin* | mingw* | pw32*) 18968 # When not using gcc, we currently assume that we are using 18969 # Microsoft Visual C++. 18970 # hardcode_libdir_flag_spec is actually meaningless, as there is 18971 # no search path for DLLs. 18972 hardcode_libdir_flag_spec_GCJ=' ' 18973 allow_undefined_flag_GCJ=unsupported 18974 # Tell ltmain to make .lib files, not .a files. 18975 libext=lib 18976 # Tell ltmain to make .dll files, not .so files. 18977 shrext_cmds=".dll" 18978 # FIXME: Setting linknames here is a bad hack. 18979 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18980 # The linker will automatically build a .lib file if we build a DLL. 18981 old_archive_From_new_cmds_GCJ='true' 18982 # FIXME: Should let the user specify the lib program. 18983 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 18984 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18985 enable_shared_with_static_runtimes_GCJ=yes 18986 ;; 18987 18988 darwin* | rhapsody*) 18989 case $host_os in 18990 rhapsody* | darwin1.[012]) 18991 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18992 ;; 18993 *) # Darwin 1.3 on 18994 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18995 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18996 else 18997 case ${MACOSX_DEPLOYMENT_TARGET} in 18998 10.[012]) 18999 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 19000 ;; 19001 10.*) 19002 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 19003 ;; 19004 esac 19005 fi 19006 ;; 19007 esac 19008 archive_cmds_need_lc_GCJ=no 19009 hardcode_direct_GCJ=no 19010 hardcode_automatic_GCJ=yes 19011 hardcode_shlibpath_var_GCJ=unsupported 19012 whole_archive_flag_spec_GCJ='' 19013 link_all_deplibs_GCJ=yes 19014 if test "$GCC" = yes ; then 19015 output_verbose_link_cmd='echo' 19016 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 19017 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 19018 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 19019 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 19020 else 19021 case $cc_basename in 19022 xlc*) 19023 output_verbose_link_cmd='echo' 19024 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 19025 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 19026 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 19027 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 19028 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}' 19029 ;; 19030 *) 19031 ld_shlibs_GCJ=no 19032 ;; 19033 esac 19034 fi 19035 ;; 19036 19037 dgux*) 19038 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19039 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19040 hardcode_shlibpath_var_GCJ=no 19041 ;; 19042 19043 freebsd1*) 19044 ld_shlibs_GCJ=no 19045 ;; 19046 19047 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 19048 # support. Future versions do this automatically, but an explicit c++rt0.o 19049 # does not break anything, and helps significantly (at the cost of a little 19050 # extra space). 19051 freebsd2.2*) 19052 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 19053 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19054 hardcode_direct_GCJ=yes 19055 hardcode_shlibpath_var_GCJ=no 19056 ;; 19057 19058 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 19059 freebsd2*) 19060 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19061 hardcode_direct_GCJ=yes 19062 hardcode_minus_L_GCJ=yes 19063 hardcode_shlibpath_var_GCJ=no 19064 ;; 19065 19066 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 19067 freebsd* | dragonfly*) 19068 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 19069 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19070 hardcode_direct_GCJ=yes 19071 hardcode_shlibpath_var_GCJ=no 19072 ;; 19073 19074 hpux9*) 19075 if test "$GCC" = yes; then 19076 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' 19077 else 19078 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' 19079 fi 19080 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19081 hardcode_libdir_separator_GCJ=: 19082 hardcode_direct_GCJ=yes 19083 19084 # hardcode_minus_L: Not really in the search PATH, 19085 # but as the default location of the library. 19086 hardcode_minus_L_GCJ=yes 19087 export_dynamic_flag_spec_GCJ='${wl}-E' 19088 ;; 19089 19090 hpux10*) 19091 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 19092 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19093 else 19094 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 19095 fi 19096 if test "$with_gnu_ld" = no; then 19097 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19098 hardcode_libdir_separator_GCJ=: 19099 19100 hardcode_direct_GCJ=yes 19101 export_dynamic_flag_spec_GCJ='${wl}-E' 19102 19103 # hardcode_minus_L: Not really in the search PATH, 19104 # but as the default location of the library. 19105 hardcode_minus_L_GCJ=yes 19106 fi 19107 ;; 19108 19109 hpux11*) 19110 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 19111 case $host_cpu in 19112 hppa*64*) 19113 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19114 ;; 19115 ia64*) 19116 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19117 ;; 19118 *) 19119 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19120 ;; 19121 esac 19122 else 19123 case $host_cpu in 19124 hppa*64*) 19125 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19126 ;; 19127 ia64*) 19128 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 19129 ;; 19130 *) 19131 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 19132 ;; 19133 esac 19134 fi 19135 if test "$with_gnu_ld" = no; then 19136 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 19137 hardcode_libdir_separator_GCJ=: 19138 19139 case $host_cpu in 19140 hppa*64*|ia64*) 19141 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 19142 hardcode_direct_GCJ=no 19143 hardcode_shlibpath_var_GCJ=no 19144 ;; 19145 *) 19146 hardcode_direct_GCJ=yes 19147 export_dynamic_flag_spec_GCJ='${wl}-E' 19148 19149 # hardcode_minus_L: Not really in the search PATH, 19150 # but as the default location of the library. 19151 hardcode_minus_L_GCJ=yes 19152 ;; 19153 esac 19154 fi 19155 ;; 19156 19157 irix5* | irix6* | nonstopux*) 19158 if test "$GCC" = yes; then 19159 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' 19160 else 19161 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' 19162 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 19163 fi 19164 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19165 hardcode_libdir_separator_GCJ=: 19166 link_all_deplibs_GCJ=yes 19167 ;; 19168 19169 netbsd* | netbsdelf*-gnu) 19170 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19171 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 19172 else 19173 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 19174 fi 19175 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19176 hardcode_direct_GCJ=yes 19177 hardcode_shlibpath_var_GCJ=no 19178 ;; 19179 19180 newsos6) 19181 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19182 hardcode_direct_GCJ=yes 19183 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19184 hardcode_libdir_separator_GCJ=: 19185 hardcode_shlibpath_var_GCJ=no 19186 ;; 19187 19188 openbsd*) 19189 if test -f /usr/libexec/ld.so; then 19190 hardcode_direct_GCJ=yes 19191 hardcode_shlibpath_var_GCJ=no 19192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19193 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19194 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 19195 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19196 export_dynamic_flag_spec_GCJ='${wl}-E' 19197 else 19198 case $host_os in 19199 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 19200 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 19201 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19202 ;; 19203 *) 19204 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 19205 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 19206 ;; 19207 esac 19208 fi 19209 else 19210 ld_shlibs_GCJ=no 19211 fi 19212 ;; 19213 19214 os2*) 19215 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19216 hardcode_minus_L_GCJ=yes 19217 allow_undefined_flag_GCJ=unsupported 19218 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' 19219 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 19220 ;; 19221 19222 osf3*) 19223 if test "$GCC" = yes; then 19224 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19225 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' 19226 else 19227 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19228 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' 19229 fi 19230 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19231 hardcode_libdir_separator_GCJ=: 19232 ;; 19233 19234 osf4* | osf5*) # as osf3* with the addition of -msym flag 19235 if test "$GCC" = yes; then 19236 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 19237 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' 19238 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 19239 else 19240 allow_undefined_flag_GCJ=' -expect_unresolved \*' 19241 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' 19242 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~ 19243 $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' 19244 19245 # Both c and cxx compiler support -rpath directly 19246 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 19247 fi 19248 hardcode_libdir_separator_GCJ=: 19249 ;; 19250 19251 solaris*) 19252 no_undefined_flag_GCJ=' -z text' 19253 if test "$GCC" = yes; then 19254 wlarc='${wl}' 19255 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 19256 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19257 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 19258 else 19259 wlarc='' 19260 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 19261 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 19262 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 19263 fi 19264 hardcode_libdir_flag_spec_GCJ='-R$libdir' 19265 hardcode_shlibpath_var_GCJ=no 19266 case $host_os in 19267 solaris2.[0-5] | solaris2.[0-5].*) ;; 19268 *) 19269 # The compiler driver will combine and reorder linker options, 19270 # but understands `-z linker_flag'. GCC discards it without `$wl', 19271 # but is careful enough not to reorder. 19272 # Supported since Solaris 2.6 (maybe 2.5.1?) 19273 if test "$GCC" = yes; then 19274 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 19275 else 19276 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 19277 fi 19278 ;; 19279 esac 19280 link_all_deplibs_GCJ=yes 19281 ;; 19282 19283 sunos4*) 19284 if test "x$host_vendor" = xsequent; then 19285 # Use $CC to link under sequent, because it throws in some extra .o 19286 # files that make .init and .fini sections work. 19287 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 19288 else 19289 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 19290 fi 19291 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19292 hardcode_direct_GCJ=yes 19293 hardcode_minus_L_GCJ=yes 19294 hardcode_shlibpath_var_GCJ=no 19295 ;; 19296 19297 sysv4) 19298 case $host_vendor in 19299 sni) 19300 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19301 hardcode_direct_GCJ=yes # is this really true??? 19302 ;; 19303 siemens) 19304 ## LD is ld it makes a PLAMLIB 19305 ## CC just makes a GrossModule. 19306 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 19307 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 19308 hardcode_direct_GCJ=no 19309 ;; 19310 motorola) 19311 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19312 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 19313 ;; 19314 esac 19315 runpath_var='LD_RUN_PATH' 19316 hardcode_shlibpath_var_GCJ=no 19317 ;; 19318 19319 sysv4.3*) 19320 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19321 hardcode_shlibpath_var_GCJ=no 19322 export_dynamic_flag_spec_GCJ='-Bexport' 19323 ;; 19324 19325 sysv4*MP*) 19326 if test -d /usr/nec; then 19327 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19328 hardcode_shlibpath_var_GCJ=no 19329 runpath_var=LD_RUN_PATH 19330 hardcode_runpath_var=yes 19331 ld_shlibs_GCJ=yes 19332 fi 19333 ;; 19334 19335 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 19336 no_undefined_flag_GCJ='${wl}-z,text' 19337 archive_cmds_need_lc_GCJ=no 19338 hardcode_shlibpath_var_GCJ=no 19339 runpath_var='LD_RUN_PATH' 19340 19341 if test "$GCC" = yes; then 19342 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19343 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19344 else 19345 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19346 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 19347 fi 19348 ;; 19349 19350 sysv5* | sco3.2v5* | sco5v6*) 19351 # Note: We can NOT use -z defs as we might desire, because we do not 19352 # link with -lc, and that would cause any symbols used from libc to 19353 # always be unresolved, which means just about no library would 19354 # ever link correctly. If we're not using GNU ld we use -z text 19355 # though, which does catch some bad symbols but isn't as heavy-handed 19356 # as -z defs. 19357 no_undefined_flag_GCJ='${wl}-z,text' 19358 allow_undefined_flag_GCJ='${wl}-z,nodefs' 19359 archive_cmds_need_lc_GCJ=no 19360 hardcode_shlibpath_var_GCJ=no 19361 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 19362 hardcode_libdir_separator_GCJ=':' 19363 link_all_deplibs_GCJ=yes 19364 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 19365 runpath_var='LD_RUN_PATH' 19366 19367 if test "$GCC" = yes; then 19368 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19369 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19370 else 19371 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19372 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 19373 fi 19374 ;; 19375 19376 uts4*) 19377 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 19378 hardcode_libdir_flag_spec_GCJ='-L$libdir' 19379 hardcode_shlibpath_var_GCJ=no 19380 ;; 19381 19382 *) 19383 ld_shlibs_GCJ=no 19384 ;; 19385 esac 19386 fi 19387 19388{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 19389echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 19390test "$ld_shlibs_GCJ" = no && can_build_shared=no 19391 19392# 19393# Do we need to explicitly link libc? 19394# 19395case "x$archive_cmds_need_lc_GCJ" in 19396x|xyes) 19397 # Assume -lc should be added 19398 archive_cmds_need_lc_GCJ=yes 19399 19400 if test "$enable_shared" = yes && test "$GCC" = yes; then 19401 case $archive_cmds_GCJ in 19402 *'~'*) 19403 # FIXME: we may have to deal with multi-command sequences. 19404 ;; 19405 '$CC '*) 19406 # Test whether the compiler implicitly links with -lc since on some 19407 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19408 # to ld, don't add -lc before -lgcc. 19409 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 19410echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 19411 $rm conftest* 19412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19413 19414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19415 (eval $ac_compile) 2>&5 19416 ac_status=$? 19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19418 (exit $ac_status); } 2>conftest.err; then 19419 soname=conftest 19420 lib=conftest 19421 libobjs=conftest.$ac_objext 19422 deplibs= 19423 wl=$lt_prog_compiler_wl_GCJ 19424 pic_flag=$lt_prog_compiler_pic_GCJ 19425 compiler_flags=-v 19426 linker_flags=-v 19427 verstring= 19428 output_objdir=. 19429 libname=conftest 19430 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 19431 allow_undefined_flag_GCJ= 19432 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 19433 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 19434 ac_status=$? 19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19436 (exit $ac_status); } 19437 then 19438 archive_cmds_need_lc_GCJ=no 19439 else 19440 archive_cmds_need_lc_GCJ=yes 19441 fi 19442 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 19443 else 19444 cat conftest.err 1>&5 19445 fi 19446 $rm conftest* 19447 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 19448echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 19449 ;; 19450 esac 19451 fi 19452 ;; 19453esac 19454 19455{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 19456echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 19457library_names_spec= 19458libname_spec='lib$name' 19459soname_spec= 19460shrext_cmds=".so" 19461postinstall_cmds= 19462postuninstall_cmds= 19463finish_cmds= 19464finish_eval= 19465shlibpath_var= 19466shlibpath_overrides_runpath=unknown 19467version_type=none 19468dynamic_linker="$host_os ld.so" 19469sys_lib_dlsearch_path_spec="/lib /usr/lib" 19470 19471need_lib_prefix=unknown 19472hardcode_into_libs=no 19473 19474# when you set need_version to no, make sure it does not cause -set_version 19475# flags to be left without arguments 19476need_version=unknown 19477 19478case $host_os in 19479aix3*) 19480 version_type=linux 19481 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19482 shlibpath_var=LIBPATH 19483 19484 # AIX 3 has no versioning support, so we append a major version to the name. 19485 soname_spec='${libname}${release}${shared_ext}$major' 19486 ;; 19487 19488aix[4-9]*) 19489 version_type=linux 19490 need_lib_prefix=no 19491 need_version=no 19492 hardcode_into_libs=yes 19493 if test "$host_cpu" = ia64; then 19494 # AIX 5 supports IA64 19495 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 19496 shlibpath_var=LD_LIBRARY_PATH 19497 else 19498 # With GCC up to 2.95.x, collect2 would create an import file 19499 # for dependence libraries. The import file would start with 19500 # the line `#! .'. This would cause the generated library to 19501 # depend on `.', always an invalid library. This was fixed in 19502 # development snapshots of GCC prior to 3.0. 19503 case $host_os in 19504 aix4 | aix4.[01] | aix4.[01].*) 19505 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19506 echo ' yes ' 19507 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 19508 : 19509 else 19510 can_build_shared=no 19511 fi 19512 ;; 19513 esac 19514 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 19515 # soname into executable. Probably we can add versioning support to 19516 # collect2, so additional links can be useful in future. 19517 if test "$aix_use_runtimelinking" = yes; then 19518 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19519 # instead of lib<name>.a to let people know that these are not 19520 # typical AIX shared libraries. 19521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19522 else 19523 # We preserve .a as extension for shared libraries through AIX4.2 19524 # and later when we are not doing run time linking. 19525 library_names_spec='${libname}${release}.a $libname.a' 19526 soname_spec='${libname}${release}${shared_ext}$major' 19527 fi 19528 shlibpath_var=LIBPATH 19529 fi 19530 ;; 19531 19532amigaos*) 19533 library_names_spec='$libname.ixlibrary $libname.a' 19534 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19535 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' 19536 ;; 19537 19538beos*) 19539 library_names_spec='${libname}${shared_ext}' 19540 dynamic_linker="$host_os ld.so" 19541 shlibpath_var=LIBRARY_PATH 19542 ;; 19543 19544bsdi[45]*) 19545 version_type=linux 19546 need_version=no 19547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19548 soname_spec='${libname}${release}${shared_ext}$major' 19549 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19550 shlibpath_var=LD_LIBRARY_PATH 19551 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19552 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19553 # the default ld.so.conf also contains /usr/contrib/lib and 19554 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19555 # libtool to hard-code these into programs 19556 ;; 19557 19558cygwin* | mingw* | pw32*) 19559 version_type=windows 19560 shrext_cmds=".dll" 19561 need_version=no 19562 need_lib_prefix=no 19563 19564 case $GCC,$host_os in 19565 yes,cygwin* | yes,mingw* | yes,pw32*) 19566 library_names_spec='$libname.dll.a' 19567 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19568 postinstall_cmds='base_file=`basename \${file}`~ 19569 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 19570 dldir=$destdir/`dirname \$dlpath`~ 19571 test -d \$dldir || mkdir -p \$dldir~ 19572 $install_prog $dir/$dlname \$dldir/$dlname~ 19573 chmod a+x \$dldir/$dlname' 19574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19575 dlpath=$dir/\$dldll~ 19576 $rm \$dlpath' 19577 shlibpath_overrides_runpath=yes 19578 19579 case $host_os in 19580 cygwin*) 19581 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19582 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19583 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19584 ;; 19585 mingw*) 19586 # MinGW DLLs use traditional 'lib' prefix 19587 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19588 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19589 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 19590 # It is most probably a Windows format PATH printed by 19591 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19592 # path with ; separators, and with drive letters. We can handle the 19593 # drive letters (cygwin fileutils understands them), so leave them, 19594 # especially as we might pass files found there to a mingw objdump, 19595 # which wouldn't understand a cygwinified path. Ahh. 19596 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19597 else 19598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19599 fi 19600 ;; 19601 pw32*) 19602 # pw32 DLLs use 'pw' prefix rather than 'lib' 19603 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19604 ;; 19605 esac 19606 ;; 19607 19608 *) 19609 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19610 ;; 19611 esac 19612 dynamic_linker='Win32 ld.exe' 19613 # FIXME: first we should search . and the directory the executable is in 19614 shlibpath_var=PATH 19615 ;; 19616 19617darwin* | rhapsody*) 19618 dynamic_linker="$host_os dyld" 19619 version_type=darwin 19620 need_lib_prefix=no 19621 need_version=no 19622 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19623 soname_spec='${libname}${release}${major}$shared_ext' 19624 shlibpath_overrides_runpath=yes 19625 shlibpath_var=DYLD_LIBRARY_PATH 19626 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19627 19628 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19629 ;; 19630 19631dgux*) 19632 version_type=linux 19633 need_lib_prefix=no 19634 need_version=no 19635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19636 soname_spec='${libname}${release}${shared_ext}$major' 19637 shlibpath_var=LD_LIBRARY_PATH 19638 ;; 19639 19640freebsd1*) 19641 dynamic_linker=no 19642 ;; 19643 19644freebsd* | dragonfly*) 19645 # DragonFly does not have aout. When/if they implement a new 19646 # versioning mechanism, adjust this. 19647 if test -x /usr/bin/objformat; then 19648 objformat=`/usr/bin/objformat` 19649 else 19650 case $host_os in 19651 freebsd[123]*) objformat=aout ;; 19652 *) objformat=elf ;; 19653 esac 19654 fi 19655 version_type=freebsd-$objformat 19656 case $version_type in 19657 freebsd-elf*) 19658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19659 need_version=no 19660 need_lib_prefix=no 19661 ;; 19662 freebsd-*) 19663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19664 need_version=yes 19665 ;; 19666 esac 19667 shlibpath_var=LD_LIBRARY_PATH 19668 case $host_os in 19669 freebsd2*) 19670 shlibpath_overrides_runpath=yes 19671 ;; 19672 freebsd3.[01]* | freebsdelf3.[01]*) 19673 shlibpath_overrides_runpath=yes 19674 hardcode_into_libs=yes 19675 ;; 19676 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19677 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19678 shlibpath_overrides_runpath=no 19679 hardcode_into_libs=yes 19680 ;; 19681 *) # from 4.6 on, and DragonFly 19682 shlibpath_overrides_runpath=yes 19683 hardcode_into_libs=yes 19684 ;; 19685 esac 19686 ;; 19687 19688gnu*) 19689 version_type=linux 19690 need_lib_prefix=no 19691 need_version=no 19692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19693 soname_spec='${libname}${release}${shared_ext}$major' 19694 shlibpath_var=LD_LIBRARY_PATH 19695 hardcode_into_libs=yes 19696 ;; 19697 19698hpux9* | hpux10* | hpux11*) 19699 # Give a soname corresponding to the major version so that dld.sl refuses to 19700 # link against other versions. 19701 version_type=sunos 19702 need_lib_prefix=no 19703 need_version=no 19704 case $host_cpu in 19705 ia64*) 19706 shrext_cmds='.so' 19707 hardcode_into_libs=yes 19708 dynamic_linker="$host_os dld.so" 19709 shlibpath_var=LD_LIBRARY_PATH 19710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19712 soname_spec='${libname}${release}${shared_ext}$major' 19713 if test "X$HPUX_IA64_MODE" = X32; then 19714 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19715 else 19716 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19717 fi 19718 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19719 ;; 19720 hppa*64*) 19721 shrext_cmds='.sl' 19722 hardcode_into_libs=yes 19723 dynamic_linker="$host_os dld.sl" 19724 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19727 soname_spec='${libname}${release}${shared_ext}$major' 19728 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19730 ;; 19731 *) 19732 shrext_cmds='.sl' 19733 dynamic_linker="$host_os dld.sl" 19734 shlibpath_var=SHLIB_PATH 19735 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19737 soname_spec='${libname}${release}${shared_ext}$major' 19738 ;; 19739 esac 19740 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19741 postinstall_cmds='chmod 555 $lib' 19742 ;; 19743 19744interix[3-9]*) 19745 version_type=linux 19746 need_lib_prefix=no 19747 need_version=no 19748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19749 soname_spec='${libname}${release}${shared_ext}$major' 19750 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 19751 shlibpath_var=LD_LIBRARY_PATH 19752 shlibpath_overrides_runpath=no 19753 hardcode_into_libs=yes 19754 ;; 19755 19756irix5* | irix6* | nonstopux*) 19757 case $host_os in 19758 nonstopux*) version_type=nonstopux ;; 19759 *) 19760 if test "$lt_cv_prog_gnu_ld" = yes; then 19761 version_type=linux 19762 else 19763 version_type=irix 19764 fi ;; 19765 esac 19766 need_lib_prefix=no 19767 need_version=no 19768 soname_spec='${libname}${release}${shared_ext}$major' 19769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19770 case $host_os in 19771 irix5* | nonstopux*) 19772 libsuff= shlibsuff= 19773 ;; 19774 *) 19775 case $LD in # libtool.m4 will add one of these switches to LD 19776 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19777 libsuff= shlibsuff= libmagic=32-bit;; 19778 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19779 libsuff=32 shlibsuff=N32 libmagic=N32;; 19780 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19781 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19782 *) libsuff= shlibsuff= libmagic=never-match;; 19783 esac 19784 ;; 19785 esac 19786 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19787 shlibpath_overrides_runpath=no 19788 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19789 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19790 hardcode_into_libs=yes 19791 ;; 19792 19793# No shared lib support for Linux oldld, aout, or coff. 19794linux*oldld* | linux*aout* | linux*coff*) 19795 dynamic_linker=no 19796 ;; 19797 19798# This must be Linux ELF. 19799linux* | k*bsd*-gnu) 19800 version_type=linux 19801 need_lib_prefix=no 19802 need_version=no 19803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19804 soname_spec='${libname}${release}${shared_ext}$major' 19805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19806 shlibpath_var=LD_LIBRARY_PATH 19807 shlibpath_overrides_runpath=no 19808 # This implies no fast_install, which is unacceptable. 19809 # Some rework will be needed to allow for fast_install 19810 # before this can be enabled. 19811 hardcode_into_libs=yes 19812 19813 # Append ld.so.conf contents to the search path 19814 if test -f /etc/ld.so.conf; then 19815 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 19816 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19817 fi 19818 19819 # We used to test for /lib/ld.so.1 and disable shared libraries on 19820 # powerpc, because MkLinux only supported shared libraries with the 19821 # GNU dynamic linker. Since this was broken with cross compilers, 19822 # most powerpc-linux boxes support dynamic linking these days and 19823 # people can always --disable-shared, the test was removed, and we 19824 # assume the GNU/Linux dynamic linker is in use. 19825 dynamic_linker='GNU/Linux ld.so' 19826 ;; 19827 19828netbsdelf*-gnu) 19829 version_type=linux 19830 need_lib_prefix=no 19831 need_version=no 19832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19833 soname_spec='${libname}${release}${shared_ext}$major' 19834 shlibpath_var=LD_LIBRARY_PATH 19835 shlibpath_overrides_runpath=no 19836 hardcode_into_libs=yes 19837 dynamic_linker='NetBSD ld.elf_so' 19838 ;; 19839 19840netbsd*) 19841 version_type=sunos 19842 need_lib_prefix=no 19843 need_version=no 19844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 19845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19847 dynamic_linker='NetBSD (a.out) ld.so' 19848 else 19849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19850 soname_spec='${libname}${release}${shared_ext}$major' 19851 dynamic_linker='NetBSD ld.elf_so' 19852 fi 19853 shlibpath_var=LD_LIBRARY_PATH 19854 shlibpath_overrides_runpath=yes 19855 hardcode_into_libs=yes 19856 ;; 19857 19858newsos6) 19859 version_type=linux 19860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19861 shlibpath_var=LD_LIBRARY_PATH 19862 shlibpath_overrides_runpath=yes 19863 ;; 19864 19865nto-qnx*) 19866 version_type=linux 19867 need_lib_prefix=no 19868 need_version=no 19869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19870 soname_spec='${libname}${release}${shared_ext}$major' 19871 shlibpath_var=LD_LIBRARY_PATH 19872 shlibpath_overrides_runpath=yes 19873 ;; 19874 19875openbsd*) 19876 version_type=sunos 19877 sys_lib_dlsearch_path_spec="/usr/lib" 19878 need_lib_prefix=no 19879 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19880 case $host_os in 19881 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19882 *) need_version=no ;; 19883 esac 19884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19886 shlibpath_var=LD_LIBRARY_PATH 19887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19888 case $host_os in 19889 openbsd2.[89] | openbsd2.[89].*) 19890 shlibpath_overrides_runpath=no 19891 ;; 19892 *) 19893 shlibpath_overrides_runpath=yes 19894 ;; 19895 esac 19896 else 19897 shlibpath_overrides_runpath=yes 19898 fi 19899 ;; 19900 19901os2*) 19902 libname_spec='$name' 19903 shrext_cmds=".dll" 19904 need_lib_prefix=no 19905 library_names_spec='$libname${shared_ext} $libname.a' 19906 dynamic_linker='OS/2 ld.exe' 19907 shlibpath_var=LIBPATH 19908 ;; 19909 19910osf3* | osf4* | osf5*) 19911 version_type=osf 19912 need_lib_prefix=no 19913 need_version=no 19914 soname_spec='${libname}${release}${shared_ext}$major' 19915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19916 shlibpath_var=LD_LIBRARY_PATH 19917 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19918 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19919 ;; 19920 19921rdos*) 19922 dynamic_linker=no 19923 ;; 19924 19925solaris*) 19926 version_type=linux 19927 need_lib_prefix=no 19928 need_version=no 19929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19930 soname_spec='${libname}${release}${shared_ext}$major' 19931 shlibpath_var=LD_LIBRARY_PATH 19932 shlibpath_overrides_runpath=yes 19933 hardcode_into_libs=yes 19934 # ldd complains unless libraries are executable 19935 postinstall_cmds='chmod +x $lib' 19936 ;; 19937 19938sunos4*) 19939 version_type=sunos 19940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19941 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19942 shlibpath_var=LD_LIBRARY_PATH 19943 shlibpath_overrides_runpath=yes 19944 if test "$with_gnu_ld" = yes; then 19945 need_lib_prefix=no 19946 fi 19947 need_version=yes 19948 ;; 19949 19950sysv4 | sysv4.3*) 19951 version_type=linux 19952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19953 soname_spec='${libname}${release}${shared_ext}$major' 19954 shlibpath_var=LD_LIBRARY_PATH 19955 case $host_vendor in 19956 sni) 19957 shlibpath_overrides_runpath=no 19958 need_lib_prefix=no 19959 export_dynamic_flag_spec='${wl}-Blargedynsym' 19960 runpath_var=LD_RUN_PATH 19961 ;; 19962 siemens) 19963 need_lib_prefix=no 19964 ;; 19965 motorola) 19966 need_lib_prefix=no 19967 need_version=no 19968 shlibpath_overrides_runpath=no 19969 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19970 ;; 19971 esac 19972 ;; 19973 19974sysv4*MP*) 19975 if test -d /usr/nec ;then 19976 version_type=linux 19977 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19978 soname_spec='$libname${shared_ext}.$major' 19979 shlibpath_var=LD_LIBRARY_PATH 19980 fi 19981 ;; 19982 19983sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19984 version_type=freebsd-elf 19985 need_lib_prefix=no 19986 need_version=no 19987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19988 soname_spec='${libname}${release}${shared_ext}$major' 19989 shlibpath_var=LD_LIBRARY_PATH 19990 hardcode_into_libs=yes 19991 if test "$with_gnu_ld" = yes; then 19992 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19993 shlibpath_overrides_runpath=no 19994 else 19995 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19996 shlibpath_overrides_runpath=yes 19997 case $host_os in 19998 sco3.2v5*) 19999 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20000 ;; 20001 esac 20002 fi 20003 sys_lib_dlsearch_path_spec='/usr/lib' 20004 ;; 20005 20006uts4*) 20007 version_type=linux 20008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 20009 soname_spec='${libname}${release}${shared_ext}$major' 20010 shlibpath_var=LD_LIBRARY_PATH 20011 ;; 20012 20013*) 20014 dynamic_linker=no 20015 ;; 20016esac 20017{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 20018echo "${ECHO_T}$dynamic_linker" >&6; } 20019test "$dynamic_linker" = no && can_build_shared=no 20020 20021if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 20022 echo $ECHO_N "(cached) $ECHO_C" >&6 20023else 20024 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 20025fi 20026 20027sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 20028if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 20029 echo $ECHO_N "(cached) $ECHO_C" >&6 20030else 20031 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 20032fi 20033 20034sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 20035 20036variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 20037if test "$GCC" = yes; then 20038 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 20039fi 20040 20041{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 20042echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 20043hardcode_action_GCJ= 20044if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 20045 test -n "$runpath_var_GCJ" || \ 20046 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 20047 20048 # We can hardcode non-existant directories. 20049 if test "$hardcode_direct_GCJ" != no && 20050 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20051 # have to relink, otherwise we might link with an installed library 20052 # when we should be linking with a yet-to-be-installed one 20053 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 20054 test "$hardcode_minus_L_GCJ" != no; then 20055 # Linking always hardcodes the temporary library directory. 20056 hardcode_action_GCJ=relink 20057 else 20058 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20059 hardcode_action_GCJ=immediate 20060 fi 20061else 20062 # We cannot hardcode anything, or else we can only hardcode existing 20063 # directories. 20064 hardcode_action_GCJ=unsupported 20065fi 20066{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 20067echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 20068 20069if test "$hardcode_action_GCJ" = relink; then 20070 # Fast installation is not supported 20071 enable_fast_install=no 20072elif test "$shlibpath_overrides_runpath" = yes || 20073 test "$enable_shared" = no; then 20074 # Fast installation is not necessary 20075 enable_fast_install=needless 20076fi 20077 20078 20079# The else clause should only fire when bootstrapping the 20080# libtool distribution, otherwise you forgot to ship ltmain.sh 20081# with your package, and you will get complaints that there are 20082# no rules to generate ltmain.sh. 20083if test -f "$ltmain"; then 20084 # See if we are running on zsh, and set the options which allow our commands through 20085 # without removal of \ escapes. 20086 if test -n "${ZSH_VERSION+set}" ; then 20087 setopt NO_GLOB_SUBST 20088 fi 20089 # Now quote all the things that may contain metacharacters while being 20090 # careful not to overquote the AC_SUBSTed values. We take copies of the 20091 # variables and quote the copies for generation of the libtool script. 20092 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20093 SED SHELL STRIP \ 20094 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20095 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20096 deplibs_check_method reload_flag reload_cmds need_locks \ 20097 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20098 lt_cv_sys_global_symbol_to_c_name_address \ 20099 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20100 old_postinstall_cmds old_postuninstall_cmds \ 20101 compiler_GCJ \ 20102 CC_GCJ \ 20103 LD_GCJ \ 20104 lt_prog_compiler_wl_GCJ \ 20105 lt_prog_compiler_pic_GCJ \ 20106 lt_prog_compiler_static_GCJ \ 20107 lt_prog_compiler_no_builtin_flag_GCJ \ 20108 export_dynamic_flag_spec_GCJ \ 20109 thread_safe_flag_spec_GCJ \ 20110 whole_archive_flag_spec_GCJ \ 20111 enable_shared_with_static_runtimes_GCJ \ 20112 old_archive_cmds_GCJ \ 20113 old_archive_from_new_cmds_GCJ \ 20114 predep_objects_GCJ \ 20115 postdep_objects_GCJ \ 20116 predeps_GCJ \ 20117 postdeps_GCJ \ 20118 compiler_lib_search_path_GCJ \ 20119 compiler_lib_search_dirs_GCJ \ 20120 archive_cmds_GCJ \ 20121 archive_expsym_cmds_GCJ \ 20122 postinstall_cmds_GCJ \ 20123 postuninstall_cmds_GCJ \ 20124 old_archive_from_expsyms_cmds_GCJ \ 20125 allow_undefined_flag_GCJ \ 20126 no_undefined_flag_GCJ \ 20127 export_symbols_cmds_GCJ \ 20128 hardcode_libdir_flag_spec_GCJ \ 20129 hardcode_libdir_flag_spec_ld_GCJ \ 20130 hardcode_libdir_separator_GCJ \ 20131 hardcode_automatic_GCJ \ 20132 module_cmds_GCJ \ 20133 module_expsym_cmds_GCJ \ 20134 lt_cv_prog_compiler_c_o_GCJ \ 20135 fix_srcfile_path_GCJ \ 20136 exclude_expsyms_GCJ \ 20137 include_expsyms_GCJ; do 20138 20139 case $var in 20140 old_archive_cmds_GCJ | \ 20141 old_archive_from_new_cmds_GCJ | \ 20142 archive_cmds_GCJ | \ 20143 archive_expsym_cmds_GCJ | \ 20144 module_cmds_GCJ | \ 20145 module_expsym_cmds_GCJ | \ 20146 old_archive_from_expsyms_cmds_GCJ | \ 20147 export_symbols_cmds_GCJ | \ 20148 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20149 postinstall_cmds | postuninstall_cmds | \ 20150 old_postinstall_cmds | old_postuninstall_cmds | \ 20151 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20152 # Double-quote double-evaled strings. 20153 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20154 ;; 20155 *) 20156 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20157 ;; 20158 esac 20159 done 20160 20161 case $lt_echo in 20162 *'\$0 --fallback-echo"') 20163 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20164 ;; 20165 esac 20166 20167cfgfile="$ofile" 20168 20169 cat <<__EOF__ >> "$cfgfile" 20170# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20171 20172# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20173 20174# Shell to use when invoking shell scripts. 20175SHELL=$lt_SHELL 20176 20177# Whether or not to build shared libraries. 20178build_libtool_libs=$enable_shared 20179 20180# Whether or not to build static libraries. 20181build_old_libs=$enable_static 20182 20183# Whether or not to add -lc for building shared libraries. 20184build_libtool_need_lc=$archive_cmds_need_lc_GCJ 20185 20186# Whether or not to disallow shared libs when runtime libs are static 20187allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 20188 20189# Whether or not to optimize for fast installation. 20190fast_install=$enable_fast_install 20191 20192# The host system. 20193host_alias=$host_alias 20194host=$host 20195host_os=$host_os 20196 20197# The build system. 20198build_alias=$build_alias 20199build=$build 20200build_os=$build_os 20201 20202# An echo program that does not interpret backslashes. 20203echo=$lt_echo 20204 20205# The archiver. 20206AR=$lt_AR 20207AR_FLAGS=$lt_AR_FLAGS 20208 20209# A C compiler. 20210LTCC=$lt_LTCC 20211 20212# LTCC compiler flags. 20213LTCFLAGS=$lt_LTCFLAGS 20214 20215# A language-specific compiler. 20216CC=$lt_compiler_GCJ 20217 20218# Is the compiler the GNU C compiler? 20219with_gcc=$GCC_GCJ 20220 20221# An ERE matcher. 20222EGREP=$lt_EGREP 20223 20224# The linker used to build libraries. 20225LD=$lt_LD_GCJ 20226 20227# Whether we need hard or soft links. 20228LN_S=$lt_LN_S 20229 20230# A BSD-compatible nm program. 20231NM=$lt_NM 20232 20233# A symbol stripping program 20234STRIP=$lt_STRIP 20235 20236# Used to examine libraries when file_magic_cmd begins "file" 20237MAGIC_CMD=$MAGIC_CMD 20238 20239# Used on cygwin: DLL creation program. 20240DLLTOOL="$DLLTOOL" 20241 20242# Used on cygwin: object dumper. 20243OBJDUMP="$OBJDUMP" 20244 20245# Used on cygwin: assembler. 20246AS="$AS" 20247 20248# The name of the directory that contains temporary libtool files. 20249objdir=$objdir 20250 20251# How to create reloadable object files. 20252reload_flag=$lt_reload_flag 20253reload_cmds=$lt_reload_cmds 20254 20255# How to pass a linker flag through the compiler. 20256wl=$lt_lt_prog_compiler_wl_GCJ 20257 20258# Object file suffix (normally "o"). 20259objext="$ac_objext" 20260 20261# Old archive suffix (normally "a"). 20262libext="$libext" 20263 20264# Shared library suffix (normally ".so"). 20265shrext_cmds='$shrext_cmds' 20266 20267# Executable file suffix (normally ""). 20268exeext="$exeext" 20269 20270# Additional compiler flags for building library objects. 20271pic_flag=$lt_lt_prog_compiler_pic_GCJ 20272pic_mode=$pic_mode 20273 20274# What is the maximum length of a command? 20275max_cmd_len=$lt_cv_sys_max_cmd_len 20276 20277# Does compiler simultaneously support -c and -o options? 20278compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 20279 20280# Must we lock files when doing compilation? 20281need_locks=$lt_need_locks 20282 20283# Do we need the lib prefix for modules? 20284need_lib_prefix=$need_lib_prefix 20285 20286# Do we need a version for libraries? 20287need_version=$need_version 20288 20289# Whether dlopen is supported. 20290dlopen_support=$enable_dlopen 20291 20292# Whether dlopen of programs is supported. 20293dlopen_self=$enable_dlopen_self 20294 20295# Whether dlopen of statically linked programs is supported. 20296dlopen_self_static=$enable_dlopen_self_static 20297 20298# Compiler flag to prevent dynamic linking. 20299link_static_flag=$lt_lt_prog_compiler_static_GCJ 20300 20301# Compiler flag to turn off builtin functions. 20302no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 20303 20304# Compiler flag to allow reflexive dlopens. 20305export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 20306 20307# Compiler flag to generate shared objects directly from archives. 20308whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 20309 20310# Compiler flag to generate thread-safe objects. 20311thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 20312 20313# Library versioning type. 20314version_type=$version_type 20315 20316# Format of library name prefix. 20317libname_spec=$lt_libname_spec 20318 20319# List of archive names. First name is the real one, the rest are links. 20320# The last name is the one that the linker finds with -lNAME. 20321library_names_spec=$lt_library_names_spec 20322 20323# The coded name of the library, if different from the real name. 20324soname_spec=$lt_soname_spec 20325 20326# Commands used to build and install an old-style archive. 20327RANLIB=$lt_RANLIB 20328old_archive_cmds=$lt_old_archive_cmds_GCJ 20329old_postinstall_cmds=$lt_old_postinstall_cmds 20330old_postuninstall_cmds=$lt_old_postuninstall_cmds 20331 20332# Create an old-style archive from a shared archive. 20333old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 20334 20335# Create a temporary old-style archive to link instead of a shared archive. 20336old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 20337 20338# Commands used to build and install a shared archive. 20339archive_cmds=$lt_archive_cmds_GCJ 20340archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 20341postinstall_cmds=$lt_postinstall_cmds 20342postuninstall_cmds=$lt_postuninstall_cmds 20343 20344# Commands used to build a loadable module (assumed same as above if empty) 20345module_cmds=$lt_module_cmds_GCJ 20346module_expsym_cmds=$lt_module_expsym_cmds_GCJ 20347 20348# Commands to strip libraries. 20349old_striplib=$lt_old_striplib 20350striplib=$lt_striplib 20351 20352# Dependencies to place before the objects being linked to create a 20353# shared library. 20354predep_objects=$lt_predep_objects_GCJ 20355 20356# Dependencies to place after the objects being linked to create a 20357# shared library. 20358postdep_objects=$lt_postdep_objects_GCJ 20359 20360# Dependencies to place before the objects being linked to create a 20361# shared library. 20362predeps=$lt_predeps_GCJ 20363 20364# Dependencies to place after the objects being linked to create a 20365# shared library. 20366postdeps=$lt_postdeps_GCJ 20367 20368# The directories searched by this compiler when creating a shared 20369# library 20370compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 20371 20372# The library search path used internally by the compiler when linking 20373# a shared library. 20374compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 20375 20376# Method to check whether dependent libraries are shared objects. 20377deplibs_check_method=$lt_deplibs_check_method 20378 20379# Command to use when deplibs_check_method == file_magic. 20380file_magic_cmd=$lt_file_magic_cmd 20381 20382# Flag that allows shared libraries with undefined symbols to be built. 20383allow_undefined_flag=$lt_allow_undefined_flag_GCJ 20384 20385# Flag that forces no undefined symbols. 20386no_undefined_flag=$lt_no_undefined_flag_GCJ 20387 20388# Commands used to finish a libtool library installation in a directory. 20389finish_cmds=$lt_finish_cmds 20390 20391# Same as above, but a single script fragment to be evaled but not shown. 20392finish_eval=$lt_finish_eval 20393 20394# Take the output of nm and produce a listing of raw symbols and C names. 20395global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20396 20397# Transform the output of nm in a proper C declaration 20398global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20399 20400# Transform the output of nm in a C name address pair 20401global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20402 20403# This is the shared library runtime path variable. 20404runpath_var=$runpath_var 20405 20406# This is the shared library path variable. 20407shlibpath_var=$shlibpath_var 20408 20409# Is shlibpath searched before the hard-coded library search path? 20410shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20411 20412# How to hardcode a shared library path into an executable. 20413hardcode_action=$hardcode_action_GCJ 20414 20415# Whether we should hardcode library paths into libraries. 20416hardcode_into_libs=$hardcode_into_libs 20417 20418# Flag to hardcode \$libdir into a binary during linking. 20419# This must work even if \$libdir does not exist. 20420hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 20421 20422# If ld is used when linking, flag to hardcode \$libdir into 20423# a binary during linking. This must work even if \$libdir does 20424# not exist. 20425hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 20426 20427# Whether we need a single -rpath flag with a separated argument. 20428hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 20429 20430# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20431# resulting binary. 20432hardcode_direct=$hardcode_direct_GCJ 20433 20434# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20435# resulting binary. 20436hardcode_minus_L=$hardcode_minus_L_GCJ 20437 20438# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20439# the resulting binary. 20440hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 20441 20442# Set to yes if building a shared library automatically hardcodes DIR into the library 20443# and all subsequent libraries and executables linked against it. 20444hardcode_automatic=$hardcode_automatic_GCJ 20445 20446# Variables whose values should be saved in libtool wrapper scripts and 20447# restored at relink time. 20448variables_saved_for_relink="$variables_saved_for_relink" 20449 20450# Whether libtool must link a program against all its dependency libraries. 20451link_all_deplibs=$link_all_deplibs_GCJ 20452 20453# Compile-time system search path for libraries 20454sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20455 20456# Run-time system search path for libraries 20457sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20458 20459# Fix the shell variable \$srcfile for the compiler. 20460fix_srcfile_path=$lt_fix_srcfile_path 20461 20462# Set to yes if exported symbols are required. 20463always_export_symbols=$always_export_symbols_GCJ 20464 20465# The commands to list exported symbols. 20466export_symbols_cmds=$lt_export_symbols_cmds_GCJ 20467 20468# The commands to extract the exported symbol list from a shared archive. 20469extract_expsyms_cmds=$lt_extract_expsyms_cmds 20470 20471# Symbols that should not be listed in the preloaded symbols. 20472exclude_expsyms=$lt_exclude_expsyms_GCJ 20473 20474# Symbols that must always be exported. 20475include_expsyms=$lt_include_expsyms_GCJ 20476 20477# ### END LIBTOOL TAG CONFIG: $tagname 20478 20479__EOF__ 20480 20481 20482else 20483 # If there is no Makefile yet, we rely on a make rule to execute 20484 # `config.status --recheck' to rerun these tests and create the 20485 # libtool script then. 20486 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20487 if test -f "$ltmain_in"; then 20488 test -f Makefile && make "$ltmain" 20489 fi 20490fi 20491 20492 20493ac_ext=c 20494ac_cpp='$CPP $CPPFLAGS' 20495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20497ac_compiler_gnu=$ac_cv_c_compiler_gnu 20498 20499CC="$lt_save_CC" 20500 20501 else 20502 tagname="" 20503 fi 20504 ;; 20505 20506 RC) 20507 20508 20509# Source file extension for RC test sources. 20510ac_ext=rc 20511 20512# Object file extension for compiled RC test sources. 20513objext=o 20514objext_RC=$objext 20515 20516# Code to be used in simple compile tests 20517lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 20518 20519# Code to be used in simple link tests 20520lt_simple_link_test_code="$lt_simple_compile_test_code" 20521 20522# ltmain only uses $CC for tagged configurations so make sure $CC is set. 20523 20524# If no C compiler was specified, use CC. 20525LTCC=${LTCC-"$CC"} 20526 20527# If no C compiler flags were specified, use CFLAGS. 20528LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 20529 20530# Allow CC to be a program name with arguments. 20531compiler=$CC 20532 20533 20534# save warnings/boilerplate of simple test code 20535ac_outfile=conftest.$ac_objext 20536echo "$lt_simple_compile_test_code" >conftest.$ac_ext 20537eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20538_lt_compiler_boilerplate=`cat conftest.err` 20539$rm conftest* 20540 20541ac_outfile=conftest.$ac_objext 20542echo "$lt_simple_link_test_code" >conftest.$ac_ext 20543eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20544_lt_linker_boilerplate=`cat conftest.err` 20545$rm -r conftest* 20546 20547 20548# Allow CC to be a program name with arguments. 20549lt_save_CC="$CC" 20550CC=${RC-"windres"} 20551compiler=$CC 20552compiler_RC=$CC 20553for cc_temp in $compiler""; do 20554 case $cc_temp in 20555 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20556 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20557 \-*) ;; 20558 *) break;; 20559 esac 20560done 20561cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 20562 20563lt_cv_prog_compiler_c_o_RC=yes 20564 20565# The else clause should only fire when bootstrapping the 20566# libtool distribution, otherwise you forgot to ship ltmain.sh 20567# with your package, and you will get complaints that there are 20568# no rules to generate ltmain.sh. 20569if test -f "$ltmain"; then 20570 # See if we are running on zsh, and set the options which allow our commands through 20571 # without removal of \ escapes. 20572 if test -n "${ZSH_VERSION+set}" ; then 20573 setopt NO_GLOB_SUBST 20574 fi 20575 # Now quote all the things that may contain metacharacters while being 20576 # careful not to overquote the AC_SUBSTed values. We take copies of the 20577 # variables and quote the copies for generation of the libtool script. 20578 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20579 SED SHELL STRIP \ 20580 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 20581 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 20582 deplibs_check_method reload_flag reload_cmds need_locks \ 20583 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 20584 lt_cv_sys_global_symbol_to_c_name_address \ 20585 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 20586 old_postinstall_cmds old_postuninstall_cmds \ 20587 compiler_RC \ 20588 CC_RC \ 20589 LD_RC \ 20590 lt_prog_compiler_wl_RC \ 20591 lt_prog_compiler_pic_RC \ 20592 lt_prog_compiler_static_RC \ 20593 lt_prog_compiler_no_builtin_flag_RC \ 20594 export_dynamic_flag_spec_RC \ 20595 thread_safe_flag_spec_RC \ 20596 whole_archive_flag_spec_RC \ 20597 enable_shared_with_static_runtimes_RC \ 20598 old_archive_cmds_RC \ 20599 old_archive_from_new_cmds_RC \ 20600 predep_objects_RC \ 20601 postdep_objects_RC \ 20602 predeps_RC \ 20603 postdeps_RC \ 20604 compiler_lib_search_path_RC \ 20605 compiler_lib_search_dirs_RC \ 20606 archive_cmds_RC \ 20607 archive_expsym_cmds_RC \ 20608 postinstall_cmds_RC \ 20609 postuninstall_cmds_RC \ 20610 old_archive_from_expsyms_cmds_RC \ 20611 allow_undefined_flag_RC \ 20612 no_undefined_flag_RC \ 20613 export_symbols_cmds_RC \ 20614 hardcode_libdir_flag_spec_RC \ 20615 hardcode_libdir_flag_spec_ld_RC \ 20616 hardcode_libdir_separator_RC \ 20617 hardcode_automatic_RC \ 20618 module_cmds_RC \ 20619 module_expsym_cmds_RC \ 20620 lt_cv_prog_compiler_c_o_RC \ 20621 fix_srcfile_path_RC \ 20622 exclude_expsyms_RC \ 20623 include_expsyms_RC; do 20624 20625 case $var in 20626 old_archive_cmds_RC | \ 20627 old_archive_from_new_cmds_RC | \ 20628 archive_cmds_RC | \ 20629 archive_expsym_cmds_RC | \ 20630 module_cmds_RC | \ 20631 module_expsym_cmds_RC | \ 20632 old_archive_from_expsyms_cmds_RC | \ 20633 export_symbols_cmds_RC | \ 20634 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 20635 postinstall_cmds | postuninstall_cmds | \ 20636 old_postinstall_cmds | old_postuninstall_cmds | \ 20637 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 20638 # Double-quote double-evaled strings. 20639 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 20640 ;; 20641 *) 20642 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 20643 ;; 20644 esac 20645 done 20646 20647 case $lt_echo in 20648 *'\$0 --fallback-echo"') 20649 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 20650 ;; 20651 esac 20652 20653cfgfile="$ofile" 20654 20655 cat <<__EOF__ >> "$cfgfile" 20656# ### BEGIN LIBTOOL TAG CONFIG: $tagname 20657 20658# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20659 20660# Shell to use when invoking shell scripts. 20661SHELL=$lt_SHELL 20662 20663# Whether or not to build shared libraries. 20664build_libtool_libs=$enable_shared 20665 20666# Whether or not to build static libraries. 20667build_old_libs=$enable_static 20668 20669# Whether or not to add -lc for building shared libraries. 20670build_libtool_need_lc=$archive_cmds_need_lc_RC 20671 20672# Whether or not to disallow shared libs when runtime libs are static 20673allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 20674 20675# Whether or not to optimize for fast installation. 20676fast_install=$enable_fast_install 20677 20678# The host system. 20679host_alias=$host_alias 20680host=$host 20681host_os=$host_os 20682 20683# The build system. 20684build_alias=$build_alias 20685build=$build 20686build_os=$build_os 20687 20688# An echo program that does not interpret backslashes. 20689echo=$lt_echo 20690 20691# The archiver. 20692AR=$lt_AR 20693AR_FLAGS=$lt_AR_FLAGS 20694 20695# A C compiler. 20696LTCC=$lt_LTCC 20697 20698# LTCC compiler flags. 20699LTCFLAGS=$lt_LTCFLAGS 20700 20701# A language-specific compiler. 20702CC=$lt_compiler_RC 20703 20704# Is the compiler the GNU C compiler? 20705with_gcc=$GCC_RC 20706 20707# An ERE matcher. 20708EGREP=$lt_EGREP 20709 20710# The linker used to build libraries. 20711LD=$lt_LD_RC 20712 20713# Whether we need hard or soft links. 20714LN_S=$lt_LN_S 20715 20716# A BSD-compatible nm program. 20717NM=$lt_NM 20718 20719# A symbol stripping program 20720STRIP=$lt_STRIP 20721 20722# Used to examine libraries when file_magic_cmd begins "file" 20723MAGIC_CMD=$MAGIC_CMD 20724 20725# Used on cygwin: DLL creation program. 20726DLLTOOL="$DLLTOOL" 20727 20728# Used on cygwin: object dumper. 20729OBJDUMP="$OBJDUMP" 20730 20731# Used on cygwin: assembler. 20732AS="$AS" 20733 20734# The name of the directory that contains temporary libtool files. 20735objdir=$objdir 20736 20737# How to create reloadable object files. 20738reload_flag=$lt_reload_flag 20739reload_cmds=$lt_reload_cmds 20740 20741# How to pass a linker flag through the compiler. 20742wl=$lt_lt_prog_compiler_wl_RC 20743 20744# Object file suffix (normally "o"). 20745objext="$ac_objext" 20746 20747# Old archive suffix (normally "a"). 20748libext="$libext" 20749 20750# Shared library suffix (normally ".so"). 20751shrext_cmds='$shrext_cmds' 20752 20753# Executable file suffix (normally ""). 20754exeext="$exeext" 20755 20756# Additional compiler flags for building library objects. 20757pic_flag=$lt_lt_prog_compiler_pic_RC 20758pic_mode=$pic_mode 20759 20760# What is the maximum length of a command? 20761max_cmd_len=$lt_cv_sys_max_cmd_len 20762 20763# Does compiler simultaneously support -c and -o options? 20764compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 20765 20766# Must we lock files when doing compilation? 20767need_locks=$lt_need_locks 20768 20769# Do we need the lib prefix for modules? 20770need_lib_prefix=$need_lib_prefix 20771 20772# Do we need a version for libraries? 20773need_version=$need_version 20774 20775# Whether dlopen is supported. 20776dlopen_support=$enable_dlopen 20777 20778# Whether dlopen of programs is supported. 20779dlopen_self=$enable_dlopen_self 20780 20781# Whether dlopen of statically linked programs is supported. 20782dlopen_self_static=$enable_dlopen_self_static 20783 20784# Compiler flag to prevent dynamic linking. 20785link_static_flag=$lt_lt_prog_compiler_static_RC 20786 20787# Compiler flag to turn off builtin functions. 20788no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 20789 20790# Compiler flag to allow reflexive dlopens. 20791export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 20792 20793# Compiler flag to generate shared objects directly from archives. 20794whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 20795 20796# Compiler flag to generate thread-safe objects. 20797thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 20798 20799# Library versioning type. 20800version_type=$version_type 20801 20802# Format of library name prefix. 20803libname_spec=$lt_libname_spec 20804 20805# List of archive names. First name is the real one, the rest are links. 20806# The last name is the one that the linker finds with -lNAME. 20807library_names_spec=$lt_library_names_spec 20808 20809# The coded name of the library, if different from the real name. 20810soname_spec=$lt_soname_spec 20811 20812# Commands used to build and install an old-style archive. 20813RANLIB=$lt_RANLIB 20814old_archive_cmds=$lt_old_archive_cmds_RC 20815old_postinstall_cmds=$lt_old_postinstall_cmds 20816old_postuninstall_cmds=$lt_old_postuninstall_cmds 20817 20818# Create an old-style archive from a shared archive. 20819old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 20820 20821# Create a temporary old-style archive to link instead of a shared archive. 20822old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 20823 20824# Commands used to build and install a shared archive. 20825archive_cmds=$lt_archive_cmds_RC 20826archive_expsym_cmds=$lt_archive_expsym_cmds_RC 20827postinstall_cmds=$lt_postinstall_cmds 20828postuninstall_cmds=$lt_postuninstall_cmds 20829 20830# Commands used to build a loadable module (assumed same as above if empty) 20831module_cmds=$lt_module_cmds_RC 20832module_expsym_cmds=$lt_module_expsym_cmds_RC 20833 20834# Commands to strip libraries. 20835old_striplib=$lt_old_striplib 20836striplib=$lt_striplib 20837 20838# Dependencies to place before the objects being linked to create a 20839# shared library. 20840predep_objects=$lt_predep_objects_RC 20841 20842# Dependencies to place after the objects being linked to create a 20843# shared library. 20844postdep_objects=$lt_postdep_objects_RC 20845 20846# Dependencies to place before the objects being linked to create a 20847# shared library. 20848predeps=$lt_predeps_RC 20849 20850# Dependencies to place after the objects being linked to create a 20851# shared library. 20852postdeps=$lt_postdeps_RC 20853 20854# The directories searched by this compiler when creating a shared 20855# library 20856compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 20857 20858# The library search path used internally by the compiler when linking 20859# a shared library. 20860compiler_lib_search_path=$lt_compiler_lib_search_path_RC 20861 20862# Method to check whether dependent libraries are shared objects. 20863deplibs_check_method=$lt_deplibs_check_method 20864 20865# Command to use when deplibs_check_method == file_magic. 20866file_magic_cmd=$lt_file_magic_cmd 20867 20868# Flag that allows shared libraries with undefined symbols to be built. 20869allow_undefined_flag=$lt_allow_undefined_flag_RC 20870 20871# Flag that forces no undefined symbols. 20872no_undefined_flag=$lt_no_undefined_flag_RC 20873 20874# Commands used to finish a libtool library installation in a directory. 20875finish_cmds=$lt_finish_cmds 20876 20877# Same as above, but a single script fragment to be evaled but not shown. 20878finish_eval=$lt_finish_eval 20879 20880# Take the output of nm and produce a listing of raw symbols and C names. 20881global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20882 20883# Transform the output of nm in a proper C declaration 20884global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20885 20886# Transform the output of nm in a C name address pair 20887global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20888 20889# This is the shared library runtime path variable. 20890runpath_var=$runpath_var 20891 20892# This is the shared library path variable. 20893shlibpath_var=$shlibpath_var 20894 20895# Is shlibpath searched before the hard-coded library search path? 20896shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20897 20898# How to hardcode a shared library path into an executable. 20899hardcode_action=$hardcode_action_RC 20900 20901# Whether we should hardcode library paths into libraries. 20902hardcode_into_libs=$hardcode_into_libs 20903 20904# Flag to hardcode \$libdir into a binary during linking. 20905# This must work even if \$libdir does not exist. 20906hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 20907 20908# If ld is used when linking, flag to hardcode \$libdir into 20909# a binary during linking. This must work even if \$libdir does 20910# not exist. 20911hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 20912 20913# Whether we need a single -rpath flag with a separated argument. 20914hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 20915 20916# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 20917# resulting binary. 20918hardcode_direct=$hardcode_direct_RC 20919 20920# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 20921# resulting binary. 20922hardcode_minus_L=$hardcode_minus_L_RC 20923 20924# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 20925# the resulting binary. 20926hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 20927 20928# Set to yes if building a shared library automatically hardcodes DIR into the library 20929# and all subsequent libraries and executables linked against it. 20930hardcode_automatic=$hardcode_automatic_RC 20931 20932# Variables whose values should be saved in libtool wrapper scripts and 20933# restored at relink time. 20934variables_saved_for_relink="$variables_saved_for_relink" 20935 20936# Whether libtool must link a program against all its dependency libraries. 20937link_all_deplibs=$link_all_deplibs_RC 20938 20939# Compile-time system search path for libraries 20940sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20941 20942# Run-time system search path for libraries 20943sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20944 20945# Fix the shell variable \$srcfile for the compiler. 20946fix_srcfile_path=$lt_fix_srcfile_path 20947 20948# Set to yes if exported symbols are required. 20949always_export_symbols=$always_export_symbols_RC 20950 20951# The commands to list exported symbols. 20952export_symbols_cmds=$lt_export_symbols_cmds_RC 20953 20954# The commands to extract the exported symbol list from a shared archive. 20955extract_expsyms_cmds=$lt_extract_expsyms_cmds 20956 20957# Symbols that should not be listed in the preloaded symbols. 20958exclude_expsyms=$lt_exclude_expsyms_RC 20959 20960# Symbols that must always be exported. 20961include_expsyms=$lt_include_expsyms_RC 20962 20963# ### END LIBTOOL TAG CONFIG: $tagname 20964 20965__EOF__ 20966 20967 20968else 20969 # If there is no Makefile yet, we rely on a make rule to execute 20970 # `config.status --recheck' to rerun these tests and create the 20971 # libtool script then. 20972 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20973 if test -f "$ltmain_in"; then 20974 test -f Makefile && make "$ltmain" 20975 fi 20976fi 20977 20978 20979ac_ext=c 20980ac_cpp='$CPP $CPPFLAGS' 20981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20983ac_compiler_gnu=$ac_cv_c_compiler_gnu 20984 20985CC="$lt_save_CC" 20986 20987 ;; 20988 20989 *) 20990 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 20991echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 20992 { (exit 1); exit 1; }; } 20993 ;; 20994 esac 20995 20996 # Append the new tag name to the list of available tags. 20997 if test -n "$tagname" ; then 20998 available_tags="$available_tags $tagname" 20999 fi 21000 fi 21001 done 21002 IFS="$lt_save_ifs" 21003 21004 # Now substitute the updated list of available tags. 21005 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 21006 mv "${ofile}T" "$ofile" 21007 chmod +x "$ofile" 21008 else 21009 rm -f "${ofile}T" 21010 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 21011echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 21012 { (exit 1); exit 1; }; } 21013 fi 21014fi 21015 21016 21017 21018# This can be used to rebuild libtool when needed 21019LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 21020 21021# Always use our own libtool. 21022LIBTOOL='$(SHELL) $(top_builddir)/libtool' 21023 21024# Prevent multiple expansion 21025 21026 21027 21028 21029 21030 21031 21032 21033 21034 21035 21036 21037 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047AM_CPPFLAGS='-I$(top_srcdir)/include -I$(top_builddir)/include' 21048 21049{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 21050echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 21051if test "${ac_cv_header_time+set}" = set; then 21052 echo $ECHO_N "(cached) $ECHO_C" >&6 21053else 21054 cat >conftest.$ac_ext <<_ACEOF 21055/* confdefs.h. */ 21056_ACEOF 21057cat confdefs.h >>conftest.$ac_ext 21058cat >>conftest.$ac_ext <<_ACEOF 21059/* end confdefs.h. */ 21060#include <sys/types.h> 21061#include <sys/time.h> 21062#include <time.h> 21063 21064int 21065main () 21066{ 21067if ((struct tm *) 0) 21068return 0; 21069 ; 21070 return 0; 21071} 21072_ACEOF 21073rm -f conftest.$ac_objext 21074if { (ac_try="$ac_compile" 21075case "(($ac_try" in 21076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21077 *) ac_try_echo=$ac_try;; 21078esac 21079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21080 (eval "$ac_compile") 2>conftest.er1 21081 ac_status=$? 21082 grep -v '^ *+' conftest.er1 >conftest.err 21083 rm -f conftest.er1 21084 cat conftest.err >&5 21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21086 (exit $ac_status); } && { 21087 test -z "$ac_c_werror_flag" || 21088 test ! -s conftest.err 21089 } && test -s conftest.$ac_objext; then 21090 ac_cv_header_time=yes 21091else 21092 echo "$as_me: failed program was:" >&5 21093sed 's/^/| /' conftest.$ac_ext >&5 21094 21095 ac_cv_header_time=no 21096fi 21097 21098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21099fi 21100{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 21101echo "${ECHO_T}$ac_cv_header_time" >&6; } 21102if test $ac_cv_header_time = yes; then 21103 21104cat >>confdefs.h <<\_ACEOF 21105#define TIME_WITH_SYS_TIME 1 21106_ACEOF 21107 21108fi 21109 21110{ echo "$as_me:$LINENO: checking for struct timeval" >&5 21111echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } 21112if test "${ac_cv_type_struct_timeval+set}" = set; then 21113 echo $ECHO_N "(cached) $ECHO_C" >&6 21114else 21115 cat >conftest.$ac_ext <<_ACEOF 21116/* confdefs.h. */ 21117_ACEOF 21118cat confdefs.h >>conftest.$ac_ext 21119cat >>conftest.$ac_ext <<_ACEOF 21120/* end confdefs.h. */ 21121#include <sys/time.h> 21122 #include <time.h> 21123 21124typedef struct timeval ac__type_new_; 21125int 21126main () 21127{ 21128if ((ac__type_new_ *) 0) 21129 return 0; 21130if (sizeof (ac__type_new_)) 21131 return 0; 21132 ; 21133 return 0; 21134} 21135_ACEOF 21136rm -f conftest.$ac_objext 21137if { (ac_try="$ac_compile" 21138case "(($ac_try" in 21139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21140 *) ac_try_echo=$ac_try;; 21141esac 21142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21143 (eval "$ac_compile") 2>conftest.er1 21144 ac_status=$? 21145 grep -v '^ *+' conftest.er1 >conftest.err 21146 rm -f conftest.er1 21147 cat conftest.err >&5 21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21149 (exit $ac_status); } && { 21150 test -z "$ac_c_werror_flag" || 21151 test ! -s conftest.err 21152 } && test -s conftest.$ac_objext; then 21153 ac_cv_type_struct_timeval=yes 21154else 21155 echo "$as_me: failed program was:" >&5 21156sed 's/^/| /' conftest.$ac_ext >&5 21157 21158 ac_cv_type_struct_timeval=no 21159fi 21160 21161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21162fi 21163{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_timeval" >&5 21164echo "${ECHO_T}$ac_cv_type_struct_timeval" >&6; } 21165if test $ac_cv_type_struct_timeval = yes; then 21166 21167cat >>confdefs.h <<_ACEOF 21168#define HAVE_STRUCT_TIMEVAL 1 21169_ACEOF 21170 21171 21172fi 21173 21174rm -f include/inttypes.h 21175 if test "${ac_cv_header_inttypes_h+set}" = set; then 21176 { echo "$as_me:$LINENO: checking for inttypes.h" >&5 21177echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } 21178if test "${ac_cv_header_inttypes_h+set}" = set; then 21179 echo $ECHO_N "(cached) $ECHO_C" >&6 21180fi 21181{ echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 21182echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; } 21183else 21184 # Is the header compilable? 21185{ echo "$as_me:$LINENO: checking inttypes.h usability" >&5 21186echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; } 21187cat >conftest.$ac_ext <<_ACEOF 21188/* confdefs.h. */ 21189_ACEOF 21190cat confdefs.h >>conftest.$ac_ext 21191cat >>conftest.$ac_ext <<_ACEOF 21192/* end confdefs.h. */ 21193$ac_includes_default 21194#include <inttypes.h> 21195_ACEOF 21196rm -f conftest.$ac_objext 21197if { (ac_try="$ac_compile" 21198case "(($ac_try" in 21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21200 *) ac_try_echo=$ac_try;; 21201esac 21202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21203 (eval "$ac_compile") 2>conftest.er1 21204 ac_status=$? 21205 grep -v '^ *+' conftest.er1 >conftest.err 21206 rm -f conftest.er1 21207 cat conftest.err >&5 21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21209 (exit $ac_status); } && { 21210 test -z "$ac_c_werror_flag" || 21211 test ! -s conftest.err 21212 } && test -s conftest.$ac_objext; then 21213 ac_header_compiler=yes 21214else 21215 echo "$as_me: failed program was:" >&5 21216sed 's/^/| /' conftest.$ac_ext >&5 21217 21218 ac_header_compiler=no 21219fi 21220 21221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21222{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21223echo "${ECHO_T}$ac_header_compiler" >&6; } 21224 21225# Is the header present? 21226{ echo "$as_me:$LINENO: checking inttypes.h presence" >&5 21227echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; } 21228cat >conftest.$ac_ext <<_ACEOF 21229/* confdefs.h. */ 21230_ACEOF 21231cat confdefs.h >>conftest.$ac_ext 21232cat >>conftest.$ac_ext <<_ACEOF 21233/* end confdefs.h. */ 21234#include <inttypes.h> 21235_ACEOF 21236if { (ac_try="$ac_cpp conftest.$ac_ext" 21237case "(($ac_try" in 21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21239 *) ac_try_echo=$ac_try;; 21240esac 21241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21243 ac_status=$? 21244 grep -v '^ *+' conftest.er1 >conftest.err 21245 rm -f conftest.er1 21246 cat conftest.err >&5 21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21248 (exit $ac_status); } >/dev/null && { 21249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21250 test ! -s conftest.err 21251 }; then 21252 ac_header_preproc=yes 21253else 21254 echo "$as_me: failed program was:" >&5 21255sed 's/^/| /' conftest.$ac_ext >&5 21256 21257 ac_header_preproc=no 21258fi 21259 21260rm -f conftest.err conftest.$ac_ext 21261{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21262echo "${ECHO_T}$ac_header_preproc" >&6; } 21263 21264# So? What about this header? 21265case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21266 yes:no: ) 21267 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5 21268echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 21269 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5 21270echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;} 21271 ac_header_preproc=yes 21272 ;; 21273 no:yes:* ) 21274 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5 21275echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;} 21276 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5 21277echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;} 21278 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5 21279echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;} 21280 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5 21281echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;} 21282 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5 21283echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;} 21284 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5 21285echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;} 21286 21287 ;; 21288esac 21289{ echo "$as_me:$LINENO: checking for inttypes.h" >&5 21290echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } 21291if test "${ac_cv_header_inttypes_h+set}" = set; then 21292 echo $ECHO_N "(cached) $ECHO_C" >&6 21293else 21294 ac_cv_header_inttypes_h=$ac_header_preproc 21295fi 21296{ echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 21297echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; } 21298 21299fi 21300if test $ac_cv_header_inttypes_h = yes; then 21301 : 21302else 21303 # ------ AX CREATE STDINT H ------------------------------------- 21304{ echo "$as_me:$LINENO: checking for stdint types" >&5 21305echo $ECHO_N "checking for stdint types... $ECHO_C" >&6; } 21306ac_stdint_h=`echo include/inttypes.h` 21307# try to shortcircuit - if the default include path of the compiler 21308# can find a "stdint.h" header then we assume that all compilers can. 21309if test "${ac_cv_header_stdint_t+set}" = set; then 21310 echo $ECHO_N "(cached) $ECHO_C" >&6 21311else 21312 21313old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS="" 21314old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="" 21315old_CFLAGS="$CFLAGS" ; CFLAGS="" 21316cat >conftest.$ac_ext <<_ACEOF 21317/* confdefs.h. */ 21318_ACEOF 21319cat confdefs.h >>conftest.$ac_ext 21320cat >>conftest.$ac_ext <<_ACEOF 21321/* end confdefs.h. */ 21322#include <stdint.h> 21323int 21324main () 21325{ 21326int_least32_t v = 0; 21327 ; 21328 return 0; 21329} 21330_ACEOF 21331rm -f conftest.$ac_objext 21332if { (ac_try="$ac_compile" 21333case "(($ac_try" in 21334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21335 *) ac_try_echo=$ac_try;; 21336esac 21337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21338 (eval "$ac_compile") 2>conftest.er1 21339 ac_status=$? 21340 grep -v '^ *+' conftest.er1 >conftest.err 21341 rm -f conftest.er1 21342 cat conftest.err >&5 21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21344 (exit $ac_status); } && { 21345 test -z "$ac_c_werror_flag" || 21346 test ! -s conftest.err 21347 } && test -s conftest.$ac_objext; then 21348 ac_cv_stdint_result="(assuming C99 compatible system)" 21349 ac_cv_header_stdint_t="stdint.h"; 21350else 21351 echo "$as_me: failed program was:" >&5 21352sed 's/^/| /' conftest.$ac_ext >&5 21353 21354 ac_cv_header_stdint_t="" 21355fi 21356 21357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21358CXXFLAGS="$old_CXXFLAGS" 21359CPPFLAGS="$old_CPPFLAGS" 21360CFLAGS="$old_CFLAGS" 21361fi 21362 21363 21364v="... $ac_cv_header_stdint_h" 21365if test "$ac_stdint_h" = "stdint.h" ; then 21366 { echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5 21367echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6; } 21368elif test "$ac_stdint_h" = "inttypes.h" ; then 21369 { echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5 21370echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6; } 21371elif test "_$ac_cv_header_stdint_t" = "_" ; then 21372 { echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5 21373echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6; } 21374else 21375 ac_cv_header_stdint="$ac_cv_header_stdint_t" 21376 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5 21377echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6; } 21378fi 21379 21380if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit.. 21381 21382 21383inttype_headers=`echo | sed -e 's/,/ /g'` 21384 21385ac_cv_stdint_result="(no helpful system typedefs seen)" 21386{ echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5 21387echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6; } 21388if test "${ac_cv_header_stdint_x+set}" = set; then 21389 echo $ECHO_N "(cached) $ECHO_C" >&6 21390else 21391 21392 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h) 21393 { echo "$as_me:$LINENO: result: (..)" >&5 21394echo "${ECHO_T}(..)" >&6; } 21395 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do 21396 unset ac_cv_type_uintptr_t 21397 unset ac_cv_type_uint64_t 21398 { echo "$as_me:$LINENO: checking for uintptr_t" >&5 21399echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } 21400if test "${ac_cv_type_uintptr_t+set}" = set; then 21401 echo $ECHO_N "(cached) $ECHO_C" >&6 21402else 21403 cat >conftest.$ac_ext <<_ACEOF 21404/* confdefs.h. */ 21405_ACEOF 21406cat confdefs.h >>conftest.$ac_ext 21407cat >>conftest.$ac_ext <<_ACEOF 21408/* end confdefs.h. */ 21409#include <$i> 21410 21411typedef uintptr_t ac__type_new_; 21412int 21413main () 21414{ 21415if ((ac__type_new_ *) 0) 21416 return 0; 21417if (sizeof (ac__type_new_)) 21418 return 0; 21419 ; 21420 return 0; 21421} 21422_ACEOF 21423rm -f conftest.$ac_objext 21424if { (ac_try="$ac_compile" 21425case "(($ac_try" in 21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21427 *) ac_try_echo=$ac_try;; 21428esac 21429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21430 (eval "$ac_compile") 2>conftest.er1 21431 ac_status=$? 21432 grep -v '^ *+' conftest.er1 >conftest.err 21433 rm -f conftest.er1 21434 cat conftest.err >&5 21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21436 (exit $ac_status); } && { 21437 test -z "$ac_c_werror_flag" || 21438 test ! -s conftest.err 21439 } && test -s conftest.$ac_objext; then 21440 ac_cv_type_uintptr_t=yes 21441else 21442 echo "$as_me: failed program was:" >&5 21443sed 's/^/| /' conftest.$ac_ext >&5 21444 21445 ac_cv_type_uintptr_t=no 21446fi 21447 21448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21449fi 21450{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 21451echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } 21452if test $ac_cv_type_uintptr_t = yes; then 21453 ac_cv_header_stdint_x=$i 21454else 21455 continue 21456fi 21457 21458 { echo "$as_me:$LINENO: checking for uint64_t" >&5 21459echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 21460if test "${ac_cv_type_uint64_t+set}" = set; then 21461 echo $ECHO_N "(cached) $ECHO_C" >&6 21462else 21463 cat >conftest.$ac_ext <<_ACEOF 21464/* confdefs.h. */ 21465_ACEOF 21466cat confdefs.h >>conftest.$ac_ext 21467cat >>conftest.$ac_ext <<_ACEOF 21468/* end confdefs.h. */ 21469#include<$i> 21470 21471typedef uint64_t ac__type_new_; 21472int 21473main () 21474{ 21475if ((ac__type_new_ *) 0) 21476 return 0; 21477if (sizeof (ac__type_new_)) 21478 return 0; 21479 ; 21480 return 0; 21481} 21482_ACEOF 21483rm -f conftest.$ac_objext 21484if { (ac_try="$ac_compile" 21485case "(($ac_try" in 21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21487 *) ac_try_echo=$ac_try;; 21488esac 21489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21490 (eval "$ac_compile") 2>conftest.er1 21491 ac_status=$? 21492 grep -v '^ *+' conftest.er1 >conftest.err 21493 rm -f conftest.er1 21494 cat conftest.err >&5 21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21496 (exit $ac_status); } && { 21497 test -z "$ac_c_werror_flag" || 21498 test ! -s conftest.err 21499 } && test -s conftest.$ac_objext; then 21500 ac_cv_type_uint64_t=yes 21501else 21502 echo "$as_me: failed program was:" >&5 21503sed 's/^/| /' conftest.$ac_ext >&5 21504 21505 ac_cv_type_uint64_t=no 21506fi 21507 21508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21509fi 21510{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 21511echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 21512if test $ac_cv_type_uint64_t = yes; then 21513 and64="/uint64_t" 21514else 21515 and64="" 21516fi 21517 21518 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)" 21519 break; 21520 done 21521 { echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5 21522echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6; } 21523 21524fi 21525{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5 21526echo "${ECHO_T}$ac_cv_header_stdint_x" >&6; } 21527 21528if test "_$ac_cv_header_stdint_x" = "_" ; then 21529{ echo "$as_me:$LINENO: checking for stdint uint32_t" >&5 21530echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6; } 21531if test "${ac_cv_header_stdint_o+set}" = set; then 21532 echo $ECHO_N "(cached) $ECHO_C" >&6 21533else 21534 21535 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h) 21536 { echo "$as_me:$LINENO: result: (..)" >&5 21537echo "${ECHO_T}(..)" >&6; } 21538 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do 21539 unset ac_cv_type_uint32_t 21540 unset ac_cv_type_uint64_t 21541 { echo "$as_me:$LINENO: checking for uint32_t" >&5 21542echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } 21543if test "${ac_cv_type_uint32_t+set}" = set; then 21544 echo $ECHO_N "(cached) $ECHO_C" >&6 21545else 21546 cat >conftest.$ac_ext <<_ACEOF 21547/* confdefs.h. */ 21548_ACEOF 21549cat confdefs.h >>conftest.$ac_ext 21550cat >>conftest.$ac_ext <<_ACEOF 21551/* end confdefs.h. */ 21552#include <$i> 21553 21554typedef uint32_t ac__type_new_; 21555int 21556main () 21557{ 21558if ((ac__type_new_ *) 0) 21559 return 0; 21560if (sizeof (ac__type_new_)) 21561 return 0; 21562 ; 21563 return 0; 21564} 21565_ACEOF 21566rm -f conftest.$ac_objext 21567if { (ac_try="$ac_compile" 21568case "(($ac_try" in 21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21570 *) ac_try_echo=$ac_try;; 21571esac 21572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21573 (eval "$ac_compile") 2>conftest.er1 21574 ac_status=$? 21575 grep -v '^ *+' conftest.er1 >conftest.err 21576 rm -f conftest.er1 21577 cat conftest.err >&5 21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21579 (exit $ac_status); } && { 21580 test -z "$ac_c_werror_flag" || 21581 test ! -s conftest.err 21582 } && test -s conftest.$ac_objext; then 21583 ac_cv_type_uint32_t=yes 21584else 21585 echo "$as_me: failed program was:" >&5 21586sed 's/^/| /' conftest.$ac_ext >&5 21587 21588 ac_cv_type_uint32_t=no 21589fi 21590 21591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21592fi 21593{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 21594echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } 21595if test $ac_cv_type_uint32_t = yes; then 21596 ac_cv_header_stdint_o=$i 21597else 21598 continue 21599fi 21600 21601 { echo "$as_me:$LINENO: checking for uint64_t" >&5 21602echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 21603if test "${ac_cv_type_uint64_t+set}" = set; then 21604 echo $ECHO_N "(cached) $ECHO_C" >&6 21605else 21606 cat >conftest.$ac_ext <<_ACEOF 21607/* confdefs.h. */ 21608_ACEOF 21609cat confdefs.h >>conftest.$ac_ext 21610cat >>conftest.$ac_ext <<_ACEOF 21611/* end confdefs.h. */ 21612#include<$i> 21613 21614typedef uint64_t ac__type_new_; 21615int 21616main () 21617{ 21618if ((ac__type_new_ *) 0) 21619 return 0; 21620if (sizeof (ac__type_new_)) 21621 return 0; 21622 ; 21623 return 0; 21624} 21625_ACEOF 21626rm -f conftest.$ac_objext 21627if { (ac_try="$ac_compile" 21628case "(($ac_try" in 21629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21630 *) ac_try_echo=$ac_try;; 21631esac 21632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21633 (eval "$ac_compile") 2>conftest.er1 21634 ac_status=$? 21635 grep -v '^ *+' conftest.er1 >conftest.err 21636 rm -f conftest.er1 21637 cat conftest.err >&5 21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21639 (exit $ac_status); } && { 21640 test -z "$ac_c_werror_flag" || 21641 test ! -s conftest.err 21642 } && test -s conftest.$ac_objext; then 21643 ac_cv_type_uint64_t=yes 21644else 21645 echo "$as_me: failed program was:" >&5 21646sed 's/^/| /' conftest.$ac_ext >&5 21647 21648 ac_cv_type_uint64_t=no 21649fi 21650 21651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21652fi 21653{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 21654echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 21655if test $ac_cv_type_uint64_t = yes; then 21656 and64="/uint64_t" 21657else 21658 and64="" 21659fi 21660 21661 ac_cv_stdint_result="(seen uint32_t$and64 in $i)" 21662 break; 21663 done 21664 { echo "$as_me:$LINENO: checking for stdint uint32_t" >&5 21665echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6; } 21666 21667fi 21668{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5 21669echo "${ECHO_T}$ac_cv_header_stdint_o" >&6; } 21670fi 21671 21672if test "_$ac_cv_header_stdint_x" = "_" ; then 21673if test "_$ac_cv_header_stdint_o" = "_" ; then 21674{ echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5 21675echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6; } 21676if test "${ac_cv_header_stdint_u+set}" = set; then 21677 echo $ECHO_N "(cached) $ECHO_C" >&6 21678else 21679 21680 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h) 21681 { echo "$as_me:$LINENO: result: (..)" >&5 21682echo "${ECHO_T}(..)" >&6; } 21683 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do 21684 unset ac_cv_type_u_int32_t 21685 unset ac_cv_type_u_int64_t 21686 { echo "$as_me:$LINENO: checking for u_int32_t" >&5 21687echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } 21688if test "${ac_cv_type_u_int32_t+set}" = set; then 21689 echo $ECHO_N "(cached) $ECHO_C" >&6 21690else 21691 cat >conftest.$ac_ext <<_ACEOF 21692/* confdefs.h. */ 21693_ACEOF 21694cat confdefs.h >>conftest.$ac_ext 21695cat >>conftest.$ac_ext <<_ACEOF 21696/* end confdefs.h. */ 21697#include <$i> 21698 21699typedef u_int32_t ac__type_new_; 21700int 21701main () 21702{ 21703if ((ac__type_new_ *) 0) 21704 return 0; 21705if (sizeof (ac__type_new_)) 21706 return 0; 21707 ; 21708 return 0; 21709} 21710_ACEOF 21711rm -f conftest.$ac_objext 21712if { (ac_try="$ac_compile" 21713case "(($ac_try" in 21714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21715 *) ac_try_echo=$ac_try;; 21716esac 21717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21718 (eval "$ac_compile") 2>conftest.er1 21719 ac_status=$? 21720 grep -v '^ *+' conftest.er1 >conftest.err 21721 rm -f conftest.er1 21722 cat conftest.err >&5 21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21724 (exit $ac_status); } && { 21725 test -z "$ac_c_werror_flag" || 21726 test ! -s conftest.err 21727 } && test -s conftest.$ac_objext; then 21728 ac_cv_type_u_int32_t=yes 21729else 21730 echo "$as_me: failed program was:" >&5 21731sed 's/^/| /' conftest.$ac_ext >&5 21732 21733 ac_cv_type_u_int32_t=no 21734fi 21735 21736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21737fi 21738{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 21739echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } 21740if test $ac_cv_type_u_int32_t = yes; then 21741 ac_cv_header_stdint_u=$i 21742else 21743 continue 21744fi 21745 21746 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 21747echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 21748if test "${ac_cv_type_u_int64_t+set}" = set; then 21749 echo $ECHO_N "(cached) $ECHO_C" >&6 21750else 21751 cat >conftest.$ac_ext <<_ACEOF 21752/* confdefs.h. */ 21753_ACEOF 21754cat confdefs.h >>conftest.$ac_ext 21755cat >>conftest.$ac_ext <<_ACEOF 21756/* end confdefs.h. */ 21757#include<$i> 21758 21759typedef u_int64_t ac__type_new_; 21760int 21761main () 21762{ 21763if ((ac__type_new_ *) 0) 21764 return 0; 21765if (sizeof (ac__type_new_)) 21766 return 0; 21767 ; 21768 return 0; 21769} 21770_ACEOF 21771rm -f conftest.$ac_objext 21772if { (ac_try="$ac_compile" 21773case "(($ac_try" in 21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21775 *) ac_try_echo=$ac_try;; 21776esac 21777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21778 (eval "$ac_compile") 2>conftest.er1 21779 ac_status=$? 21780 grep -v '^ *+' conftest.er1 >conftest.err 21781 rm -f conftest.er1 21782 cat conftest.err >&5 21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21784 (exit $ac_status); } && { 21785 test -z "$ac_c_werror_flag" || 21786 test ! -s conftest.err 21787 } && test -s conftest.$ac_objext; then 21788 ac_cv_type_u_int64_t=yes 21789else 21790 echo "$as_me: failed program was:" >&5 21791sed 's/^/| /' conftest.$ac_ext >&5 21792 21793 ac_cv_type_u_int64_t=no 21794fi 21795 21796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21797fi 21798{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 21799echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 21800if test $ac_cv_type_u_int64_t = yes; then 21801 and64="/u_int64_t" 21802else 21803 and64="" 21804fi 21805 21806 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)" 21807 break; 21808 done 21809 { echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5 21810echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6; } 21811 21812fi 21813{ echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5 21814echo "${ECHO_T}$ac_cv_header_stdint_u" >&6; } 21815fi fi 21816 21817if test "_$ac_cv_header_stdint_x" = "_" ; then 21818 { echo "$as_me:$LINENO: checking for stdint datatype model" >&5 21819echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6; } 21820 { echo "$as_me:$LINENO: result: (..)" >&5 21821echo "${ECHO_T}(..)" >&6; } 21822 { echo "$as_me:$LINENO: checking for char" >&5 21823echo $ECHO_N "checking for char... $ECHO_C" >&6; } 21824if test "${ac_cv_type_char+set}" = set; then 21825 echo $ECHO_N "(cached) $ECHO_C" >&6 21826else 21827 cat >conftest.$ac_ext <<_ACEOF 21828/* confdefs.h. */ 21829_ACEOF 21830cat confdefs.h >>conftest.$ac_ext 21831cat >>conftest.$ac_ext <<_ACEOF 21832/* end confdefs.h. */ 21833$ac_includes_default 21834typedef char ac__type_new_; 21835int 21836main () 21837{ 21838if ((ac__type_new_ *) 0) 21839 return 0; 21840if (sizeof (ac__type_new_)) 21841 return 0; 21842 ; 21843 return 0; 21844} 21845_ACEOF 21846rm -f conftest.$ac_objext 21847if { (ac_try="$ac_compile" 21848case "(($ac_try" in 21849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21850 *) ac_try_echo=$ac_try;; 21851esac 21852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21853 (eval "$ac_compile") 2>conftest.er1 21854 ac_status=$? 21855 grep -v '^ *+' conftest.er1 >conftest.err 21856 rm -f conftest.er1 21857 cat conftest.err >&5 21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21859 (exit $ac_status); } && { 21860 test -z "$ac_c_werror_flag" || 21861 test ! -s conftest.err 21862 } && test -s conftest.$ac_objext; then 21863 ac_cv_type_char=yes 21864else 21865 echo "$as_me: failed program was:" >&5 21866sed 's/^/| /' conftest.$ac_ext >&5 21867 21868 ac_cv_type_char=no 21869fi 21870 21871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21872fi 21873{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 21874echo "${ECHO_T}$ac_cv_type_char" >&6; } 21875 21876# The cast to long int works around a bug in the HP C Compiler 21877# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 21878# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 21879# This bug is HP SR number 8606223364. 21880{ echo "$as_me:$LINENO: checking size of char" >&5 21881echo $ECHO_N "checking size of char... $ECHO_C" >&6; } 21882if test "${ac_cv_sizeof_char+set}" = set; then 21883 echo $ECHO_N "(cached) $ECHO_C" >&6 21884else 21885 if test "$cross_compiling" = yes; then 21886 # Depending upon the size, compute the lo and hi bounds. 21887cat >conftest.$ac_ext <<_ACEOF 21888/* confdefs.h. */ 21889_ACEOF 21890cat confdefs.h >>conftest.$ac_ext 21891cat >>conftest.$ac_ext <<_ACEOF 21892/* end confdefs.h. */ 21893$ac_includes_default 21894 typedef char ac__type_sizeof_; 21895int 21896main () 21897{ 21898static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 21899test_array [0] = 0 21900 21901 ; 21902 return 0; 21903} 21904_ACEOF 21905rm -f conftest.$ac_objext 21906if { (ac_try="$ac_compile" 21907case "(($ac_try" in 21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21909 *) ac_try_echo=$ac_try;; 21910esac 21911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21912 (eval "$ac_compile") 2>conftest.er1 21913 ac_status=$? 21914 grep -v '^ *+' conftest.er1 >conftest.err 21915 rm -f conftest.er1 21916 cat conftest.err >&5 21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21918 (exit $ac_status); } && { 21919 test -z "$ac_c_werror_flag" || 21920 test ! -s conftest.err 21921 } && test -s conftest.$ac_objext; then 21922 ac_lo=0 ac_mid=0 21923 while :; do 21924 cat >conftest.$ac_ext <<_ACEOF 21925/* confdefs.h. */ 21926_ACEOF 21927cat confdefs.h >>conftest.$ac_ext 21928cat >>conftest.$ac_ext <<_ACEOF 21929/* end confdefs.h. */ 21930$ac_includes_default 21931 typedef char ac__type_sizeof_; 21932int 21933main () 21934{ 21935static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 21936test_array [0] = 0 21937 21938 ; 21939 return 0; 21940} 21941_ACEOF 21942rm -f conftest.$ac_objext 21943if { (ac_try="$ac_compile" 21944case "(($ac_try" in 21945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21946 *) ac_try_echo=$ac_try;; 21947esac 21948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21949 (eval "$ac_compile") 2>conftest.er1 21950 ac_status=$? 21951 grep -v '^ *+' conftest.er1 >conftest.err 21952 rm -f conftest.er1 21953 cat conftest.err >&5 21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21955 (exit $ac_status); } && { 21956 test -z "$ac_c_werror_flag" || 21957 test ! -s conftest.err 21958 } && test -s conftest.$ac_objext; then 21959 ac_hi=$ac_mid; break 21960else 21961 echo "$as_me: failed program was:" >&5 21962sed 's/^/| /' conftest.$ac_ext >&5 21963 21964 ac_lo=`expr $ac_mid + 1` 21965 if test $ac_lo -le $ac_mid; then 21966 ac_lo= ac_hi= 21967 break 21968 fi 21969 ac_mid=`expr 2 '*' $ac_mid + 1` 21970fi 21971 21972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21973 done 21974else 21975 echo "$as_me: failed program was:" >&5 21976sed 's/^/| /' conftest.$ac_ext >&5 21977 21978 cat >conftest.$ac_ext <<_ACEOF 21979/* confdefs.h. */ 21980_ACEOF 21981cat confdefs.h >>conftest.$ac_ext 21982cat >>conftest.$ac_ext <<_ACEOF 21983/* end confdefs.h. */ 21984$ac_includes_default 21985 typedef char ac__type_sizeof_; 21986int 21987main () 21988{ 21989static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 21990test_array [0] = 0 21991 21992 ; 21993 return 0; 21994} 21995_ACEOF 21996rm -f conftest.$ac_objext 21997if { (ac_try="$ac_compile" 21998case "(($ac_try" in 21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22000 *) ac_try_echo=$ac_try;; 22001esac 22002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22003 (eval "$ac_compile") 2>conftest.er1 22004 ac_status=$? 22005 grep -v '^ *+' conftest.er1 >conftest.err 22006 rm -f conftest.er1 22007 cat conftest.err >&5 22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22009 (exit $ac_status); } && { 22010 test -z "$ac_c_werror_flag" || 22011 test ! -s conftest.err 22012 } && test -s conftest.$ac_objext; then 22013 ac_hi=-1 ac_mid=-1 22014 while :; do 22015 cat >conftest.$ac_ext <<_ACEOF 22016/* confdefs.h. */ 22017_ACEOF 22018cat confdefs.h >>conftest.$ac_ext 22019cat >>conftest.$ac_ext <<_ACEOF 22020/* end confdefs.h. */ 22021$ac_includes_default 22022 typedef char ac__type_sizeof_; 22023int 22024main () 22025{ 22026static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 22027test_array [0] = 0 22028 22029 ; 22030 return 0; 22031} 22032_ACEOF 22033rm -f conftest.$ac_objext 22034if { (ac_try="$ac_compile" 22035case "(($ac_try" in 22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22037 *) ac_try_echo=$ac_try;; 22038esac 22039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22040 (eval "$ac_compile") 2>conftest.er1 22041 ac_status=$? 22042 grep -v '^ *+' conftest.er1 >conftest.err 22043 rm -f conftest.er1 22044 cat conftest.err >&5 22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22046 (exit $ac_status); } && { 22047 test -z "$ac_c_werror_flag" || 22048 test ! -s conftest.err 22049 } && test -s conftest.$ac_objext; then 22050 ac_lo=$ac_mid; break 22051else 22052 echo "$as_me: failed program was:" >&5 22053sed 's/^/| /' conftest.$ac_ext >&5 22054 22055 ac_hi=`expr '(' $ac_mid ')' - 1` 22056 if test $ac_mid -le $ac_hi; then 22057 ac_lo= ac_hi= 22058 break 22059 fi 22060 ac_mid=`expr 2 '*' $ac_mid` 22061fi 22062 22063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22064 done 22065else 22066 echo "$as_me: failed program was:" >&5 22067sed 's/^/| /' conftest.$ac_ext >&5 22068 22069 ac_lo= ac_hi= 22070fi 22071 22072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22073fi 22074 22075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22076# Binary search between lo and hi bounds. 22077while test "x$ac_lo" != "x$ac_hi"; do 22078 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 22079 cat >conftest.$ac_ext <<_ACEOF 22080/* confdefs.h. */ 22081_ACEOF 22082cat confdefs.h >>conftest.$ac_ext 22083cat >>conftest.$ac_ext <<_ACEOF 22084/* end confdefs.h. */ 22085$ac_includes_default 22086 typedef char ac__type_sizeof_; 22087int 22088main () 22089{ 22090static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 22091test_array [0] = 0 22092 22093 ; 22094 return 0; 22095} 22096_ACEOF 22097rm -f conftest.$ac_objext 22098if { (ac_try="$ac_compile" 22099case "(($ac_try" in 22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22101 *) ac_try_echo=$ac_try;; 22102esac 22103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22104 (eval "$ac_compile") 2>conftest.er1 22105 ac_status=$? 22106 grep -v '^ *+' conftest.er1 >conftest.err 22107 rm -f conftest.er1 22108 cat conftest.err >&5 22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22110 (exit $ac_status); } && { 22111 test -z "$ac_c_werror_flag" || 22112 test ! -s conftest.err 22113 } && test -s conftest.$ac_objext; then 22114 ac_hi=$ac_mid 22115else 22116 echo "$as_me: failed program was:" >&5 22117sed 's/^/| /' conftest.$ac_ext >&5 22118 22119 ac_lo=`expr '(' $ac_mid ')' + 1` 22120fi 22121 22122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22123done 22124case $ac_lo in 22125?*) ac_cv_sizeof_char=$ac_lo;; 22126'') if test "$ac_cv_type_char" = yes; then 22127 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) 22128See \`config.log' for more details." >&5 22129echo "$as_me: error: cannot compute sizeof (char) 22130See \`config.log' for more details." >&2;} 22131 { (exit 77); exit 77; }; } 22132 else 22133 ac_cv_sizeof_char=0 22134 fi ;; 22135esac 22136else 22137 cat >conftest.$ac_ext <<_ACEOF 22138/* confdefs.h. */ 22139_ACEOF 22140cat confdefs.h >>conftest.$ac_ext 22141cat >>conftest.$ac_ext <<_ACEOF 22142/* end confdefs.h. */ 22143$ac_includes_default 22144 typedef char ac__type_sizeof_; 22145static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 22146static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 22147#include <stdio.h> 22148#include <stdlib.h> 22149int 22150main () 22151{ 22152 22153 FILE *f = fopen ("conftest.val", "w"); 22154 if (! f) 22155 return 1; 22156 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 22157 { 22158 long int i = longval (); 22159 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 22160 return 1; 22161 fprintf (f, "%ld\n", i); 22162 } 22163 else 22164 { 22165 unsigned long int i = ulongval (); 22166 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 22167 return 1; 22168 fprintf (f, "%lu\n", i); 22169 } 22170 return ferror (f) || fclose (f) != 0; 22171 22172 ; 22173 return 0; 22174} 22175_ACEOF 22176rm -f conftest$ac_exeext 22177if { (ac_try="$ac_link" 22178case "(($ac_try" in 22179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22180 *) ac_try_echo=$ac_try;; 22181esac 22182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22183 (eval "$ac_link") 2>&5 22184 ac_status=$? 22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22187 { (case "(($ac_try" in 22188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22189 *) ac_try_echo=$ac_try;; 22190esac 22191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22192 (eval "$ac_try") 2>&5 22193 ac_status=$? 22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22195 (exit $ac_status); }; }; then 22196 ac_cv_sizeof_char=`cat conftest.val` 22197else 22198 echo "$as_me: program exited with status $ac_status" >&5 22199echo "$as_me: failed program was:" >&5 22200sed 's/^/| /' conftest.$ac_ext >&5 22201 22202( exit $ac_status ) 22203if test "$ac_cv_type_char" = yes; then 22204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) 22205See \`config.log' for more details." >&5 22206echo "$as_me: error: cannot compute sizeof (char) 22207See \`config.log' for more details." >&2;} 22208 { (exit 77); exit 77; }; } 22209 else 22210 ac_cv_sizeof_char=0 22211 fi 22212fi 22213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22214fi 22215rm -f conftest.val 22216fi 22217{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 22218echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } 22219 22220 22221 22222cat >>confdefs.h <<_ACEOF 22223#define SIZEOF_CHAR $ac_cv_sizeof_char 22224_ACEOF 22225 22226 22227 { echo "$as_me:$LINENO: checking for short" >&5 22228echo $ECHO_N "checking for short... $ECHO_C" >&6; } 22229if test "${ac_cv_type_short+set}" = set; then 22230 echo $ECHO_N "(cached) $ECHO_C" >&6 22231else 22232 cat >conftest.$ac_ext <<_ACEOF 22233/* confdefs.h. */ 22234_ACEOF 22235cat confdefs.h >>conftest.$ac_ext 22236cat >>conftest.$ac_ext <<_ACEOF 22237/* end confdefs.h. */ 22238$ac_includes_default 22239typedef short ac__type_new_; 22240int 22241main () 22242{ 22243if ((ac__type_new_ *) 0) 22244 return 0; 22245if (sizeof (ac__type_new_)) 22246 return 0; 22247 ; 22248 return 0; 22249} 22250_ACEOF 22251rm -f conftest.$ac_objext 22252if { (ac_try="$ac_compile" 22253case "(($ac_try" in 22254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22255 *) ac_try_echo=$ac_try;; 22256esac 22257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22258 (eval "$ac_compile") 2>conftest.er1 22259 ac_status=$? 22260 grep -v '^ *+' conftest.er1 >conftest.err 22261 rm -f conftest.er1 22262 cat conftest.err >&5 22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22264 (exit $ac_status); } && { 22265 test -z "$ac_c_werror_flag" || 22266 test ! -s conftest.err 22267 } && test -s conftest.$ac_objext; then 22268 ac_cv_type_short=yes 22269else 22270 echo "$as_me: failed program was:" >&5 22271sed 's/^/| /' conftest.$ac_ext >&5 22272 22273 ac_cv_type_short=no 22274fi 22275 22276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22277fi 22278{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 22279echo "${ECHO_T}$ac_cv_type_short" >&6; } 22280 22281# The cast to long int works around a bug in the HP C Compiler 22282# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22283# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22284# This bug is HP SR number 8606223364. 22285{ echo "$as_me:$LINENO: checking size of short" >&5 22286echo $ECHO_N "checking size of short... $ECHO_C" >&6; } 22287if test "${ac_cv_sizeof_short+set}" = set; then 22288 echo $ECHO_N "(cached) $ECHO_C" >&6 22289else 22290 if test "$cross_compiling" = yes; then 22291 # Depending upon the size, compute the lo and hi bounds. 22292cat >conftest.$ac_ext <<_ACEOF 22293/* confdefs.h. */ 22294_ACEOF 22295cat confdefs.h >>conftest.$ac_ext 22296cat >>conftest.$ac_ext <<_ACEOF 22297/* end confdefs.h. */ 22298$ac_includes_default 22299 typedef short ac__type_sizeof_; 22300int 22301main () 22302{ 22303static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 22304test_array [0] = 0 22305 22306 ; 22307 return 0; 22308} 22309_ACEOF 22310rm -f conftest.$ac_objext 22311if { (ac_try="$ac_compile" 22312case "(($ac_try" in 22313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22314 *) ac_try_echo=$ac_try;; 22315esac 22316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22317 (eval "$ac_compile") 2>conftest.er1 22318 ac_status=$? 22319 grep -v '^ *+' conftest.er1 >conftest.err 22320 rm -f conftest.er1 22321 cat conftest.err >&5 22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22323 (exit $ac_status); } && { 22324 test -z "$ac_c_werror_flag" || 22325 test ! -s conftest.err 22326 } && test -s conftest.$ac_objext; then 22327 ac_lo=0 ac_mid=0 22328 while :; do 22329 cat >conftest.$ac_ext <<_ACEOF 22330/* confdefs.h. */ 22331_ACEOF 22332cat confdefs.h >>conftest.$ac_ext 22333cat >>conftest.$ac_ext <<_ACEOF 22334/* end confdefs.h. */ 22335$ac_includes_default 22336 typedef short ac__type_sizeof_; 22337int 22338main () 22339{ 22340static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 22341test_array [0] = 0 22342 22343 ; 22344 return 0; 22345} 22346_ACEOF 22347rm -f conftest.$ac_objext 22348if { (ac_try="$ac_compile" 22349case "(($ac_try" in 22350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22351 *) ac_try_echo=$ac_try;; 22352esac 22353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22354 (eval "$ac_compile") 2>conftest.er1 22355 ac_status=$? 22356 grep -v '^ *+' conftest.er1 >conftest.err 22357 rm -f conftest.er1 22358 cat conftest.err >&5 22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22360 (exit $ac_status); } && { 22361 test -z "$ac_c_werror_flag" || 22362 test ! -s conftest.err 22363 } && test -s conftest.$ac_objext; then 22364 ac_hi=$ac_mid; break 22365else 22366 echo "$as_me: failed program was:" >&5 22367sed 's/^/| /' conftest.$ac_ext >&5 22368 22369 ac_lo=`expr $ac_mid + 1` 22370 if test $ac_lo -le $ac_mid; then 22371 ac_lo= ac_hi= 22372 break 22373 fi 22374 ac_mid=`expr 2 '*' $ac_mid + 1` 22375fi 22376 22377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22378 done 22379else 22380 echo "$as_me: failed program was:" >&5 22381sed 's/^/| /' conftest.$ac_ext >&5 22382 22383 cat >conftest.$ac_ext <<_ACEOF 22384/* confdefs.h. */ 22385_ACEOF 22386cat confdefs.h >>conftest.$ac_ext 22387cat >>conftest.$ac_ext <<_ACEOF 22388/* end confdefs.h. */ 22389$ac_includes_default 22390 typedef short ac__type_sizeof_; 22391int 22392main () 22393{ 22394static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 22395test_array [0] = 0 22396 22397 ; 22398 return 0; 22399} 22400_ACEOF 22401rm -f conftest.$ac_objext 22402if { (ac_try="$ac_compile" 22403case "(($ac_try" in 22404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22405 *) ac_try_echo=$ac_try;; 22406esac 22407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22408 (eval "$ac_compile") 2>conftest.er1 22409 ac_status=$? 22410 grep -v '^ *+' conftest.er1 >conftest.err 22411 rm -f conftest.er1 22412 cat conftest.err >&5 22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22414 (exit $ac_status); } && { 22415 test -z "$ac_c_werror_flag" || 22416 test ! -s conftest.err 22417 } && test -s conftest.$ac_objext; then 22418 ac_hi=-1 ac_mid=-1 22419 while :; do 22420 cat >conftest.$ac_ext <<_ACEOF 22421/* confdefs.h. */ 22422_ACEOF 22423cat confdefs.h >>conftest.$ac_ext 22424cat >>conftest.$ac_ext <<_ACEOF 22425/* end confdefs.h. */ 22426$ac_includes_default 22427 typedef short ac__type_sizeof_; 22428int 22429main () 22430{ 22431static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 22432test_array [0] = 0 22433 22434 ; 22435 return 0; 22436} 22437_ACEOF 22438rm -f conftest.$ac_objext 22439if { (ac_try="$ac_compile" 22440case "(($ac_try" in 22441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22442 *) ac_try_echo=$ac_try;; 22443esac 22444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22445 (eval "$ac_compile") 2>conftest.er1 22446 ac_status=$? 22447 grep -v '^ *+' conftest.er1 >conftest.err 22448 rm -f conftest.er1 22449 cat conftest.err >&5 22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22451 (exit $ac_status); } && { 22452 test -z "$ac_c_werror_flag" || 22453 test ! -s conftest.err 22454 } && test -s conftest.$ac_objext; then 22455 ac_lo=$ac_mid; break 22456else 22457 echo "$as_me: failed program was:" >&5 22458sed 's/^/| /' conftest.$ac_ext >&5 22459 22460 ac_hi=`expr '(' $ac_mid ')' - 1` 22461 if test $ac_mid -le $ac_hi; then 22462 ac_lo= ac_hi= 22463 break 22464 fi 22465 ac_mid=`expr 2 '*' $ac_mid` 22466fi 22467 22468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22469 done 22470else 22471 echo "$as_me: failed program was:" >&5 22472sed 's/^/| /' conftest.$ac_ext >&5 22473 22474 ac_lo= ac_hi= 22475fi 22476 22477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22478fi 22479 22480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22481# Binary search between lo and hi bounds. 22482while test "x$ac_lo" != "x$ac_hi"; do 22483 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 22484 cat >conftest.$ac_ext <<_ACEOF 22485/* confdefs.h. */ 22486_ACEOF 22487cat confdefs.h >>conftest.$ac_ext 22488cat >>conftest.$ac_ext <<_ACEOF 22489/* end confdefs.h. */ 22490$ac_includes_default 22491 typedef short ac__type_sizeof_; 22492int 22493main () 22494{ 22495static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 22496test_array [0] = 0 22497 22498 ; 22499 return 0; 22500} 22501_ACEOF 22502rm -f conftest.$ac_objext 22503if { (ac_try="$ac_compile" 22504case "(($ac_try" in 22505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22506 *) ac_try_echo=$ac_try;; 22507esac 22508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22509 (eval "$ac_compile") 2>conftest.er1 22510 ac_status=$? 22511 grep -v '^ *+' conftest.er1 >conftest.err 22512 rm -f conftest.er1 22513 cat conftest.err >&5 22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22515 (exit $ac_status); } && { 22516 test -z "$ac_c_werror_flag" || 22517 test ! -s conftest.err 22518 } && test -s conftest.$ac_objext; then 22519 ac_hi=$ac_mid 22520else 22521 echo "$as_me: failed program was:" >&5 22522sed 's/^/| /' conftest.$ac_ext >&5 22523 22524 ac_lo=`expr '(' $ac_mid ')' + 1` 22525fi 22526 22527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22528done 22529case $ac_lo in 22530?*) ac_cv_sizeof_short=$ac_lo;; 22531'') if test "$ac_cv_type_short" = yes; then 22532 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 22533See \`config.log' for more details." >&5 22534echo "$as_me: error: cannot compute sizeof (short) 22535See \`config.log' for more details." >&2;} 22536 { (exit 77); exit 77; }; } 22537 else 22538 ac_cv_sizeof_short=0 22539 fi ;; 22540esac 22541else 22542 cat >conftest.$ac_ext <<_ACEOF 22543/* confdefs.h. */ 22544_ACEOF 22545cat confdefs.h >>conftest.$ac_ext 22546cat >>conftest.$ac_ext <<_ACEOF 22547/* end confdefs.h. */ 22548$ac_includes_default 22549 typedef short ac__type_sizeof_; 22550static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 22551static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 22552#include <stdio.h> 22553#include <stdlib.h> 22554int 22555main () 22556{ 22557 22558 FILE *f = fopen ("conftest.val", "w"); 22559 if (! f) 22560 return 1; 22561 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 22562 { 22563 long int i = longval (); 22564 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 22565 return 1; 22566 fprintf (f, "%ld\n", i); 22567 } 22568 else 22569 { 22570 unsigned long int i = ulongval (); 22571 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 22572 return 1; 22573 fprintf (f, "%lu\n", i); 22574 } 22575 return ferror (f) || fclose (f) != 0; 22576 22577 ; 22578 return 0; 22579} 22580_ACEOF 22581rm -f conftest$ac_exeext 22582if { (ac_try="$ac_link" 22583case "(($ac_try" in 22584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22585 *) ac_try_echo=$ac_try;; 22586esac 22587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22588 (eval "$ac_link") 2>&5 22589 ac_status=$? 22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22592 { (case "(($ac_try" in 22593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22594 *) ac_try_echo=$ac_try;; 22595esac 22596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22597 (eval "$ac_try") 2>&5 22598 ac_status=$? 22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22600 (exit $ac_status); }; }; then 22601 ac_cv_sizeof_short=`cat conftest.val` 22602else 22603 echo "$as_me: program exited with status $ac_status" >&5 22604echo "$as_me: failed program was:" >&5 22605sed 's/^/| /' conftest.$ac_ext >&5 22606 22607( exit $ac_status ) 22608if test "$ac_cv_type_short" = yes; then 22609 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 22610See \`config.log' for more details." >&5 22611echo "$as_me: error: cannot compute sizeof (short) 22612See \`config.log' for more details." >&2;} 22613 { (exit 77); exit 77; }; } 22614 else 22615 ac_cv_sizeof_short=0 22616 fi 22617fi 22618rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 22619fi 22620rm -f conftest.val 22621fi 22622{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 22623echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 22624 22625 22626 22627cat >>confdefs.h <<_ACEOF 22628#define SIZEOF_SHORT $ac_cv_sizeof_short 22629_ACEOF 22630 22631 22632 { echo "$as_me:$LINENO: checking for int" >&5 22633echo $ECHO_N "checking for int... $ECHO_C" >&6; } 22634if test "${ac_cv_type_int+set}" = set; then 22635 echo $ECHO_N "(cached) $ECHO_C" >&6 22636else 22637 cat >conftest.$ac_ext <<_ACEOF 22638/* confdefs.h. */ 22639_ACEOF 22640cat confdefs.h >>conftest.$ac_ext 22641cat >>conftest.$ac_ext <<_ACEOF 22642/* end confdefs.h. */ 22643$ac_includes_default 22644typedef int ac__type_new_; 22645int 22646main () 22647{ 22648if ((ac__type_new_ *) 0) 22649 return 0; 22650if (sizeof (ac__type_new_)) 22651 return 0; 22652 ; 22653 return 0; 22654} 22655_ACEOF 22656rm -f conftest.$ac_objext 22657if { (ac_try="$ac_compile" 22658case "(($ac_try" in 22659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22660 *) ac_try_echo=$ac_try;; 22661esac 22662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22663 (eval "$ac_compile") 2>conftest.er1 22664 ac_status=$? 22665 grep -v '^ *+' conftest.er1 >conftest.err 22666 rm -f conftest.er1 22667 cat conftest.err >&5 22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22669 (exit $ac_status); } && { 22670 test -z "$ac_c_werror_flag" || 22671 test ! -s conftest.err 22672 } && test -s conftest.$ac_objext; then 22673 ac_cv_type_int=yes 22674else 22675 echo "$as_me: failed program was:" >&5 22676sed 's/^/| /' conftest.$ac_ext >&5 22677 22678 ac_cv_type_int=no 22679fi 22680 22681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22682fi 22683{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 22684echo "${ECHO_T}$ac_cv_type_int" >&6; } 22685 22686# The cast to long int works around a bug in the HP C Compiler 22687# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22688# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22689# This bug is HP SR number 8606223364. 22690{ echo "$as_me:$LINENO: checking size of int" >&5 22691echo $ECHO_N "checking size of int... $ECHO_C" >&6; } 22692if test "${ac_cv_sizeof_int+set}" = set; then 22693 echo $ECHO_N "(cached) $ECHO_C" >&6 22694else 22695 if test "$cross_compiling" = yes; then 22696 # Depending upon the size, compute the lo and hi bounds. 22697cat >conftest.$ac_ext <<_ACEOF 22698/* confdefs.h. */ 22699_ACEOF 22700cat confdefs.h >>conftest.$ac_ext 22701cat >>conftest.$ac_ext <<_ACEOF 22702/* end confdefs.h. */ 22703$ac_includes_default 22704 typedef int ac__type_sizeof_; 22705int 22706main () 22707{ 22708static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 22709test_array [0] = 0 22710 22711 ; 22712 return 0; 22713} 22714_ACEOF 22715rm -f conftest.$ac_objext 22716if { (ac_try="$ac_compile" 22717case "(($ac_try" in 22718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22719 *) ac_try_echo=$ac_try;; 22720esac 22721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22722 (eval "$ac_compile") 2>conftest.er1 22723 ac_status=$? 22724 grep -v '^ *+' conftest.er1 >conftest.err 22725 rm -f conftest.er1 22726 cat conftest.err >&5 22727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22728 (exit $ac_status); } && { 22729 test -z "$ac_c_werror_flag" || 22730 test ! -s conftest.err 22731 } && test -s conftest.$ac_objext; then 22732 ac_lo=0 ac_mid=0 22733 while :; do 22734 cat >conftest.$ac_ext <<_ACEOF 22735/* confdefs.h. */ 22736_ACEOF 22737cat confdefs.h >>conftest.$ac_ext 22738cat >>conftest.$ac_ext <<_ACEOF 22739/* end confdefs.h. */ 22740$ac_includes_default 22741 typedef int ac__type_sizeof_; 22742int 22743main () 22744{ 22745static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 22746test_array [0] = 0 22747 22748 ; 22749 return 0; 22750} 22751_ACEOF 22752rm -f conftest.$ac_objext 22753if { (ac_try="$ac_compile" 22754case "(($ac_try" in 22755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22756 *) ac_try_echo=$ac_try;; 22757esac 22758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22759 (eval "$ac_compile") 2>conftest.er1 22760 ac_status=$? 22761 grep -v '^ *+' conftest.er1 >conftest.err 22762 rm -f conftest.er1 22763 cat conftest.err >&5 22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22765 (exit $ac_status); } && { 22766 test -z "$ac_c_werror_flag" || 22767 test ! -s conftest.err 22768 } && test -s conftest.$ac_objext; then 22769 ac_hi=$ac_mid; break 22770else 22771 echo "$as_me: failed program was:" >&5 22772sed 's/^/| /' conftest.$ac_ext >&5 22773 22774 ac_lo=`expr $ac_mid + 1` 22775 if test $ac_lo -le $ac_mid; then 22776 ac_lo= ac_hi= 22777 break 22778 fi 22779 ac_mid=`expr 2 '*' $ac_mid + 1` 22780fi 22781 22782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22783 done 22784else 22785 echo "$as_me: failed program was:" >&5 22786sed 's/^/| /' conftest.$ac_ext >&5 22787 22788 cat >conftest.$ac_ext <<_ACEOF 22789/* confdefs.h. */ 22790_ACEOF 22791cat confdefs.h >>conftest.$ac_ext 22792cat >>conftest.$ac_ext <<_ACEOF 22793/* end confdefs.h. */ 22794$ac_includes_default 22795 typedef int ac__type_sizeof_; 22796int 22797main () 22798{ 22799static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 22800test_array [0] = 0 22801 22802 ; 22803 return 0; 22804} 22805_ACEOF 22806rm -f conftest.$ac_objext 22807if { (ac_try="$ac_compile" 22808case "(($ac_try" in 22809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22810 *) ac_try_echo=$ac_try;; 22811esac 22812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22813 (eval "$ac_compile") 2>conftest.er1 22814 ac_status=$? 22815 grep -v '^ *+' conftest.er1 >conftest.err 22816 rm -f conftest.er1 22817 cat conftest.err >&5 22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22819 (exit $ac_status); } && { 22820 test -z "$ac_c_werror_flag" || 22821 test ! -s conftest.err 22822 } && test -s conftest.$ac_objext; then 22823 ac_hi=-1 ac_mid=-1 22824 while :; do 22825 cat >conftest.$ac_ext <<_ACEOF 22826/* confdefs.h. */ 22827_ACEOF 22828cat confdefs.h >>conftest.$ac_ext 22829cat >>conftest.$ac_ext <<_ACEOF 22830/* end confdefs.h. */ 22831$ac_includes_default 22832 typedef int ac__type_sizeof_; 22833int 22834main () 22835{ 22836static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 22837test_array [0] = 0 22838 22839 ; 22840 return 0; 22841} 22842_ACEOF 22843rm -f conftest.$ac_objext 22844if { (ac_try="$ac_compile" 22845case "(($ac_try" in 22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22847 *) ac_try_echo=$ac_try;; 22848esac 22849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22850 (eval "$ac_compile") 2>conftest.er1 22851 ac_status=$? 22852 grep -v '^ *+' conftest.er1 >conftest.err 22853 rm -f conftest.er1 22854 cat conftest.err >&5 22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22856 (exit $ac_status); } && { 22857 test -z "$ac_c_werror_flag" || 22858 test ! -s conftest.err 22859 } && test -s conftest.$ac_objext; then 22860 ac_lo=$ac_mid; break 22861else 22862 echo "$as_me: failed program was:" >&5 22863sed 's/^/| /' conftest.$ac_ext >&5 22864 22865 ac_hi=`expr '(' $ac_mid ')' - 1` 22866 if test $ac_mid -le $ac_hi; then 22867 ac_lo= ac_hi= 22868 break 22869 fi 22870 ac_mid=`expr 2 '*' $ac_mid` 22871fi 22872 22873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22874 done 22875else 22876 echo "$as_me: failed program was:" >&5 22877sed 's/^/| /' conftest.$ac_ext >&5 22878 22879 ac_lo= ac_hi= 22880fi 22881 22882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22883fi 22884 22885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22886# Binary search between lo and hi bounds. 22887while test "x$ac_lo" != "x$ac_hi"; do 22888 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 22889 cat >conftest.$ac_ext <<_ACEOF 22890/* confdefs.h. */ 22891_ACEOF 22892cat confdefs.h >>conftest.$ac_ext 22893cat >>conftest.$ac_ext <<_ACEOF 22894/* end confdefs.h. */ 22895$ac_includes_default 22896 typedef int ac__type_sizeof_; 22897int 22898main () 22899{ 22900static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 22901test_array [0] = 0 22902 22903 ; 22904 return 0; 22905} 22906_ACEOF 22907rm -f conftest.$ac_objext 22908if { (ac_try="$ac_compile" 22909case "(($ac_try" in 22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22911 *) ac_try_echo=$ac_try;; 22912esac 22913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22914 (eval "$ac_compile") 2>conftest.er1 22915 ac_status=$? 22916 grep -v '^ *+' conftest.er1 >conftest.err 22917 rm -f conftest.er1 22918 cat conftest.err >&5 22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22920 (exit $ac_status); } && { 22921 test -z "$ac_c_werror_flag" || 22922 test ! -s conftest.err 22923 } && test -s conftest.$ac_objext; then 22924 ac_hi=$ac_mid 22925else 22926 echo "$as_me: failed program was:" >&5 22927sed 's/^/| /' conftest.$ac_ext >&5 22928 22929 ac_lo=`expr '(' $ac_mid ')' + 1` 22930fi 22931 22932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22933done 22934case $ac_lo in 22935?*) ac_cv_sizeof_int=$ac_lo;; 22936'') if test "$ac_cv_type_int" = yes; then 22937 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 22938See \`config.log' for more details." >&5 22939echo "$as_me: error: cannot compute sizeof (int) 22940See \`config.log' for more details." >&2;} 22941 { (exit 77); exit 77; }; } 22942 else 22943 ac_cv_sizeof_int=0 22944 fi ;; 22945esac 22946else 22947 cat >conftest.$ac_ext <<_ACEOF 22948/* confdefs.h. */ 22949_ACEOF 22950cat confdefs.h >>conftest.$ac_ext 22951cat >>conftest.$ac_ext <<_ACEOF 22952/* end confdefs.h. */ 22953$ac_includes_default 22954 typedef int ac__type_sizeof_; 22955static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 22956static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 22957#include <stdio.h> 22958#include <stdlib.h> 22959int 22960main () 22961{ 22962 22963 FILE *f = fopen ("conftest.val", "w"); 22964 if (! f) 22965 return 1; 22966 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 22967 { 22968 long int i = longval (); 22969 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 22970 return 1; 22971 fprintf (f, "%ld\n", i); 22972 } 22973 else 22974 { 22975 unsigned long int i = ulongval (); 22976 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 22977 return 1; 22978 fprintf (f, "%lu\n", i); 22979 } 22980 return ferror (f) || fclose (f) != 0; 22981 22982 ; 22983 return 0; 22984} 22985_ACEOF 22986rm -f conftest$ac_exeext 22987if { (ac_try="$ac_link" 22988case "(($ac_try" in 22989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22990 *) ac_try_echo=$ac_try;; 22991esac 22992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22993 (eval "$ac_link") 2>&5 22994 ac_status=$? 22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 22997 { (case "(($ac_try" in 22998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22999 *) ac_try_echo=$ac_try;; 23000esac 23001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23002 (eval "$ac_try") 2>&5 23003 ac_status=$? 23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23005 (exit $ac_status); }; }; then 23006 ac_cv_sizeof_int=`cat conftest.val` 23007else 23008 echo "$as_me: program exited with status $ac_status" >&5 23009echo "$as_me: failed program was:" >&5 23010sed 's/^/| /' conftest.$ac_ext >&5 23011 23012( exit $ac_status ) 23013if test "$ac_cv_type_int" = yes; then 23014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 23015See \`config.log' for more details." >&5 23016echo "$as_me: error: cannot compute sizeof (int) 23017See \`config.log' for more details." >&2;} 23018 { (exit 77); exit 77; }; } 23019 else 23020 ac_cv_sizeof_int=0 23021 fi 23022fi 23023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23024fi 23025rm -f conftest.val 23026fi 23027{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 23028echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } 23029 23030 23031 23032cat >>confdefs.h <<_ACEOF 23033#define SIZEOF_INT $ac_cv_sizeof_int 23034_ACEOF 23035 23036 23037 { echo "$as_me:$LINENO: checking for long" >&5 23038echo $ECHO_N "checking for long... $ECHO_C" >&6; } 23039if test "${ac_cv_type_long+set}" = set; then 23040 echo $ECHO_N "(cached) $ECHO_C" >&6 23041else 23042 cat >conftest.$ac_ext <<_ACEOF 23043/* confdefs.h. */ 23044_ACEOF 23045cat confdefs.h >>conftest.$ac_ext 23046cat >>conftest.$ac_ext <<_ACEOF 23047/* end confdefs.h. */ 23048$ac_includes_default 23049typedef long ac__type_new_; 23050int 23051main () 23052{ 23053if ((ac__type_new_ *) 0) 23054 return 0; 23055if (sizeof (ac__type_new_)) 23056 return 0; 23057 ; 23058 return 0; 23059} 23060_ACEOF 23061rm -f conftest.$ac_objext 23062if { (ac_try="$ac_compile" 23063case "(($ac_try" in 23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23065 *) ac_try_echo=$ac_try;; 23066esac 23067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23068 (eval "$ac_compile") 2>conftest.er1 23069 ac_status=$? 23070 grep -v '^ *+' conftest.er1 >conftest.err 23071 rm -f conftest.er1 23072 cat conftest.err >&5 23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23074 (exit $ac_status); } && { 23075 test -z "$ac_c_werror_flag" || 23076 test ! -s conftest.err 23077 } && test -s conftest.$ac_objext; then 23078 ac_cv_type_long=yes 23079else 23080 echo "$as_me: failed program was:" >&5 23081sed 's/^/| /' conftest.$ac_ext >&5 23082 23083 ac_cv_type_long=no 23084fi 23085 23086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23087fi 23088{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 23089echo "${ECHO_T}$ac_cv_type_long" >&6; } 23090 23091# The cast to long int works around a bug in the HP C Compiler 23092# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23093# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23094# This bug is HP SR number 8606223364. 23095{ echo "$as_me:$LINENO: checking size of long" >&5 23096echo $ECHO_N "checking size of long... $ECHO_C" >&6; } 23097if test "${ac_cv_sizeof_long+set}" = set; then 23098 echo $ECHO_N "(cached) $ECHO_C" >&6 23099else 23100 if test "$cross_compiling" = yes; then 23101 # Depending upon the size, compute the lo and hi bounds. 23102cat >conftest.$ac_ext <<_ACEOF 23103/* confdefs.h. */ 23104_ACEOF 23105cat confdefs.h >>conftest.$ac_ext 23106cat >>conftest.$ac_ext <<_ACEOF 23107/* end confdefs.h. */ 23108$ac_includes_default 23109 typedef long ac__type_sizeof_; 23110int 23111main () 23112{ 23113static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 23114test_array [0] = 0 23115 23116 ; 23117 return 0; 23118} 23119_ACEOF 23120rm -f conftest.$ac_objext 23121if { (ac_try="$ac_compile" 23122case "(($ac_try" in 23123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23124 *) ac_try_echo=$ac_try;; 23125esac 23126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23127 (eval "$ac_compile") 2>conftest.er1 23128 ac_status=$? 23129 grep -v '^ *+' conftest.er1 >conftest.err 23130 rm -f conftest.er1 23131 cat conftest.err >&5 23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23133 (exit $ac_status); } && { 23134 test -z "$ac_c_werror_flag" || 23135 test ! -s conftest.err 23136 } && test -s conftest.$ac_objext; then 23137 ac_lo=0 ac_mid=0 23138 while :; do 23139 cat >conftest.$ac_ext <<_ACEOF 23140/* confdefs.h. */ 23141_ACEOF 23142cat confdefs.h >>conftest.$ac_ext 23143cat >>conftest.$ac_ext <<_ACEOF 23144/* end confdefs.h. */ 23145$ac_includes_default 23146 typedef long ac__type_sizeof_; 23147int 23148main () 23149{ 23150static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 23151test_array [0] = 0 23152 23153 ; 23154 return 0; 23155} 23156_ACEOF 23157rm -f conftest.$ac_objext 23158if { (ac_try="$ac_compile" 23159case "(($ac_try" in 23160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23161 *) ac_try_echo=$ac_try;; 23162esac 23163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23164 (eval "$ac_compile") 2>conftest.er1 23165 ac_status=$? 23166 grep -v '^ *+' conftest.er1 >conftest.err 23167 rm -f conftest.er1 23168 cat conftest.err >&5 23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23170 (exit $ac_status); } && { 23171 test -z "$ac_c_werror_flag" || 23172 test ! -s conftest.err 23173 } && test -s conftest.$ac_objext; then 23174 ac_hi=$ac_mid; break 23175else 23176 echo "$as_me: failed program was:" >&5 23177sed 's/^/| /' conftest.$ac_ext >&5 23178 23179 ac_lo=`expr $ac_mid + 1` 23180 if test $ac_lo -le $ac_mid; then 23181 ac_lo= ac_hi= 23182 break 23183 fi 23184 ac_mid=`expr 2 '*' $ac_mid + 1` 23185fi 23186 23187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23188 done 23189else 23190 echo "$as_me: failed program was:" >&5 23191sed 's/^/| /' conftest.$ac_ext >&5 23192 23193 cat >conftest.$ac_ext <<_ACEOF 23194/* confdefs.h. */ 23195_ACEOF 23196cat confdefs.h >>conftest.$ac_ext 23197cat >>conftest.$ac_ext <<_ACEOF 23198/* end confdefs.h. */ 23199$ac_includes_default 23200 typedef long ac__type_sizeof_; 23201int 23202main () 23203{ 23204static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 23205test_array [0] = 0 23206 23207 ; 23208 return 0; 23209} 23210_ACEOF 23211rm -f conftest.$ac_objext 23212if { (ac_try="$ac_compile" 23213case "(($ac_try" in 23214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23215 *) ac_try_echo=$ac_try;; 23216esac 23217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23218 (eval "$ac_compile") 2>conftest.er1 23219 ac_status=$? 23220 grep -v '^ *+' conftest.er1 >conftest.err 23221 rm -f conftest.er1 23222 cat conftest.err >&5 23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23224 (exit $ac_status); } && { 23225 test -z "$ac_c_werror_flag" || 23226 test ! -s conftest.err 23227 } && test -s conftest.$ac_objext; then 23228 ac_hi=-1 ac_mid=-1 23229 while :; do 23230 cat >conftest.$ac_ext <<_ACEOF 23231/* confdefs.h. */ 23232_ACEOF 23233cat confdefs.h >>conftest.$ac_ext 23234cat >>conftest.$ac_ext <<_ACEOF 23235/* end confdefs.h. */ 23236$ac_includes_default 23237 typedef long ac__type_sizeof_; 23238int 23239main () 23240{ 23241static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 23242test_array [0] = 0 23243 23244 ; 23245 return 0; 23246} 23247_ACEOF 23248rm -f conftest.$ac_objext 23249if { (ac_try="$ac_compile" 23250case "(($ac_try" in 23251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23252 *) ac_try_echo=$ac_try;; 23253esac 23254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23255 (eval "$ac_compile") 2>conftest.er1 23256 ac_status=$? 23257 grep -v '^ *+' conftest.er1 >conftest.err 23258 rm -f conftest.er1 23259 cat conftest.err >&5 23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23261 (exit $ac_status); } && { 23262 test -z "$ac_c_werror_flag" || 23263 test ! -s conftest.err 23264 } && test -s conftest.$ac_objext; then 23265 ac_lo=$ac_mid; break 23266else 23267 echo "$as_me: failed program was:" >&5 23268sed 's/^/| /' conftest.$ac_ext >&5 23269 23270 ac_hi=`expr '(' $ac_mid ')' - 1` 23271 if test $ac_mid -le $ac_hi; then 23272 ac_lo= ac_hi= 23273 break 23274 fi 23275 ac_mid=`expr 2 '*' $ac_mid` 23276fi 23277 23278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23279 done 23280else 23281 echo "$as_me: failed program was:" >&5 23282sed 's/^/| /' conftest.$ac_ext >&5 23283 23284 ac_lo= ac_hi= 23285fi 23286 23287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23288fi 23289 23290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23291# Binary search between lo and hi bounds. 23292while test "x$ac_lo" != "x$ac_hi"; do 23293 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 23294 cat >conftest.$ac_ext <<_ACEOF 23295/* confdefs.h. */ 23296_ACEOF 23297cat confdefs.h >>conftest.$ac_ext 23298cat >>conftest.$ac_ext <<_ACEOF 23299/* end confdefs.h. */ 23300$ac_includes_default 23301 typedef long ac__type_sizeof_; 23302int 23303main () 23304{ 23305static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 23306test_array [0] = 0 23307 23308 ; 23309 return 0; 23310} 23311_ACEOF 23312rm -f conftest.$ac_objext 23313if { (ac_try="$ac_compile" 23314case "(($ac_try" in 23315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23316 *) ac_try_echo=$ac_try;; 23317esac 23318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23319 (eval "$ac_compile") 2>conftest.er1 23320 ac_status=$? 23321 grep -v '^ *+' conftest.er1 >conftest.err 23322 rm -f conftest.er1 23323 cat conftest.err >&5 23324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23325 (exit $ac_status); } && { 23326 test -z "$ac_c_werror_flag" || 23327 test ! -s conftest.err 23328 } && test -s conftest.$ac_objext; then 23329 ac_hi=$ac_mid 23330else 23331 echo "$as_me: failed program was:" >&5 23332sed 's/^/| /' conftest.$ac_ext >&5 23333 23334 ac_lo=`expr '(' $ac_mid ')' + 1` 23335fi 23336 23337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23338done 23339case $ac_lo in 23340?*) ac_cv_sizeof_long=$ac_lo;; 23341'') if test "$ac_cv_type_long" = yes; then 23342 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 23343See \`config.log' for more details." >&5 23344echo "$as_me: error: cannot compute sizeof (long) 23345See \`config.log' for more details." >&2;} 23346 { (exit 77); exit 77; }; } 23347 else 23348 ac_cv_sizeof_long=0 23349 fi ;; 23350esac 23351else 23352 cat >conftest.$ac_ext <<_ACEOF 23353/* confdefs.h. */ 23354_ACEOF 23355cat confdefs.h >>conftest.$ac_ext 23356cat >>conftest.$ac_ext <<_ACEOF 23357/* end confdefs.h. */ 23358$ac_includes_default 23359 typedef long ac__type_sizeof_; 23360static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 23361static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 23362#include <stdio.h> 23363#include <stdlib.h> 23364int 23365main () 23366{ 23367 23368 FILE *f = fopen ("conftest.val", "w"); 23369 if (! f) 23370 return 1; 23371 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 23372 { 23373 long int i = longval (); 23374 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 23375 return 1; 23376 fprintf (f, "%ld\n", i); 23377 } 23378 else 23379 { 23380 unsigned long int i = ulongval (); 23381 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 23382 return 1; 23383 fprintf (f, "%lu\n", i); 23384 } 23385 return ferror (f) || fclose (f) != 0; 23386 23387 ; 23388 return 0; 23389} 23390_ACEOF 23391rm -f conftest$ac_exeext 23392if { (ac_try="$ac_link" 23393case "(($ac_try" in 23394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23395 *) ac_try_echo=$ac_try;; 23396esac 23397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23398 (eval "$ac_link") 2>&5 23399 ac_status=$? 23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23402 { (case "(($ac_try" in 23403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23404 *) ac_try_echo=$ac_try;; 23405esac 23406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23407 (eval "$ac_try") 2>&5 23408 ac_status=$? 23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23410 (exit $ac_status); }; }; then 23411 ac_cv_sizeof_long=`cat conftest.val` 23412else 23413 echo "$as_me: program exited with status $ac_status" >&5 23414echo "$as_me: failed program was:" >&5 23415sed 's/^/| /' conftest.$ac_ext >&5 23416 23417( exit $ac_status ) 23418if test "$ac_cv_type_long" = yes; then 23419 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 23420See \`config.log' for more details." >&5 23421echo "$as_me: error: cannot compute sizeof (long) 23422See \`config.log' for more details." >&2;} 23423 { (exit 77); exit 77; }; } 23424 else 23425 ac_cv_sizeof_long=0 23426 fi 23427fi 23428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23429fi 23430rm -f conftest.val 23431fi 23432{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 23433echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } 23434 23435 23436 23437cat >>confdefs.h <<_ACEOF 23438#define SIZEOF_LONG $ac_cv_sizeof_long 23439_ACEOF 23440 23441 23442 { echo "$as_me:$LINENO: checking for void*" >&5 23443echo $ECHO_N "checking for void*... $ECHO_C" >&6; } 23444if test "${ac_cv_type_voidp+set}" = set; then 23445 echo $ECHO_N "(cached) $ECHO_C" >&6 23446else 23447 cat >conftest.$ac_ext <<_ACEOF 23448/* confdefs.h. */ 23449_ACEOF 23450cat confdefs.h >>conftest.$ac_ext 23451cat >>conftest.$ac_ext <<_ACEOF 23452/* end confdefs.h. */ 23453$ac_includes_default 23454typedef void* ac__type_new_; 23455int 23456main () 23457{ 23458if ((ac__type_new_ *) 0) 23459 return 0; 23460if (sizeof (ac__type_new_)) 23461 return 0; 23462 ; 23463 return 0; 23464} 23465_ACEOF 23466rm -f conftest.$ac_objext 23467if { (ac_try="$ac_compile" 23468case "(($ac_try" in 23469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23470 *) ac_try_echo=$ac_try;; 23471esac 23472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23473 (eval "$ac_compile") 2>conftest.er1 23474 ac_status=$? 23475 grep -v '^ *+' conftest.er1 >conftest.err 23476 rm -f conftest.er1 23477 cat conftest.err >&5 23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23479 (exit $ac_status); } && { 23480 test -z "$ac_c_werror_flag" || 23481 test ! -s conftest.err 23482 } && test -s conftest.$ac_objext; then 23483 ac_cv_type_voidp=yes 23484else 23485 echo "$as_me: failed program was:" >&5 23486sed 's/^/| /' conftest.$ac_ext >&5 23487 23488 ac_cv_type_voidp=no 23489fi 23490 23491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23492fi 23493{ echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5 23494echo "${ECHO_T}$ac_cv_type_voidp" >&6; } 23495 23496# The cast to long int works around a bug in the HP C Compiler 23497# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23498# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23499# This bug is HP SR number 8606223364. 23500{ echo "$as_me:$LINENO: checking size of void*" >&5 23501echo $ECHO_N "checking size of void*... $ECHO_C" >&6; } 23502if test "${ac_cv_sizeof_voidp+set}" = set; then 23503 echo $ECHO_N "(cached) $ECHO_C" >&6 23504else 23505 if test "$cross_compiling" = yes; then 23506 # Depending upon the size, compute the lo and hi bounds. 23507cat >conftest.$ac_ext <<_ACEOF 23508/* confdefs.h. */ 23509_ACEOF 23510cat confdefs.h >>conftest.$ac_ext 23511cat >>conftest.$ac_ext <<_ACEOF 23512/* end confdefs.h. */ 23513$ac_includes_default 23514 typedef void* ac__type_sizeof_; 23515int 23516main () 23517{ 23518static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 23519test_array [0] = 0 23520 23521 ; 23522 return 0; 23523} 23524_ACEOF 23525rm -f conftest.$ac_objext 23526if { (ac_try="$ac_compile" 23527case "(($ac_try" in 23528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23529 *) ac_try_echo=$ac_try;; 23530esac 23531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23532 (eval "$ac_compile") 2>conftest.er1 23533 ac_status=$? 23534 grep -v '^ *+' conftest.er1 >conftest.err 23535 rm -f conftest.er1 23536 cat conftest.err >&5 23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23538 (exit $ac_status); } && { 23539 test -z "$ac_c_werror_flag" || 23540 test ! -s conftest.err 23541 } && test -s conftest.$ac_objext; then 23542 ac_lo=0 ac_mid=0 23543 while :; do 23544 cat >conftest.$ac_ext <<_ACEOF 23545/* confdefs.h. */ 23546_ACEOF 23547cat confdefs.h >>conftest.$ac_ext 23548cat >>conftest.$ac_ext <<_ACEOF 23549/* end confdefs.h. */ 23550$ac_includes_default 23551 typedef void* ac__type_sizeof_; 23552int 23553main () 23554{ 23555static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 23556test_array [0] = 0 23557 23558 ; 23559 return 0; 23560} 23561_ACEOF 23562rm -f conftest.$ac_objext 23563if { (ac_try="$ac_compile" 23564case "(($ac_try" in 23565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23566 *) ac_try_echo=$ac_try;; 23567esac 23568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23569 (eval "$ac_compile") 2>conftest.er1 23570 ac_status=$? 23571 grep -v '^ *+' conftest.er1 >conftest.err 23572 rm -f conftest.er1 23573 cat conftest.err >&5 23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23575 (exit $ac_status); } && { 23576 test -z "$ac_c_werror_flag" || 23577 test ! -s conftest.err 23578 } && test -s conftest.$ac_objext; then 23579 ac_hi=$ac_mid; break 23580else 23581 echo "$as_me: failed program was:" >&5 23582sed 's/^/| /' conftest.$ac_ext >&5 23583 23584 ac_lo=`expr $ac_mid + 1` 23585 if test $ac_lo -le $ac_mid; then 23586 ac_lo= ac_hi= 23587 break 23588 fi 23589 ac_mid=`expr 2 '*' $ac_mid + 1` 23590fi 23591 23592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23593 done 23594else 23595 echo "$as_me: failed program was:" >&5 23596sed 's/^/| /' conftest.$ac_ext >&5 23597 23598 cat >conftest.$ac_ext <<_ACEOF 23599/* confdefs.h. */ 23600_ACEOF 23601cat confdefs.h >>conftest.$ac_ext 23602cat >>conftest.$ac_ext <<_ACEOF 23603/* end confdefs.h. */ 23604$ac_includes_default 23605 typedef void* ac__type_sizeof_; 23606int 23607main () 23608{ 23609static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 23610test_array [0] = 0 23611 23612 ; 23613 return 0; 23614} 23615_ACEOF 23616rm -f conftest.$ac_objext 23617if { (ac_try="$ac_compile" 23618case "(($ac_try" in 23619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23620 *) ac_try_echo=$ac_try;; 23621esac 23622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23623 (eval "$ac_compile") 2>conftest.er1 23624 ac_status=$? 23625 grep -v '^ *+' conftest.er1 >conftest.err 23626 rm -f conftest.er1 23627 cat conftest.err >&5 23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23629 (exit $ac_status); } && { 23630 test -z "$ac_c_werror_flag" || 23631 test ! -s conftest.err 23632 } && test -s conftest.$ac_objext; then 23633 ac_hi=-1 ac_mid=-1 23634 while :; do 23635 cat >conftest.$ac_ext <<_ACEOF 23636/* confdefs.h. */ 23637_ACEOF 23638cat confdefs.h >>conftest.$ac_ext 23639cat >>conftest.$ac_ext <<_ACEOF 23640/* end confdefs.h. */ 23641$ac_includes_default 23642 typedef void* ac__type_sizeof_; 23643int 23644main () 23645{ 23646static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 23647test_array [0] = 0 23648 23649 ; 23650 return 0; 23651} 23652_ACEOF 23653rm -f conftest.$ac_objext 23654if { (ac_try="$ac_compile" 23655case "(($ac_try" in 23656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23657 *) ac_try_echo=$ac_try;; 23658esac 23659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23660 (eval "$ac_compile") 2>conftest.er1 23661 ac_status=$? 23662 grep -v '^ *+' conftest.er1 >conftest.err 23663 rm -f conftest.er1 23664 cat conftest.err >&5 23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23666 (exit $ac_status); } && { 23667 test -z "$ac_c_werror_flag" || 23668 test ! -s conftest.err 23669 } && test -s conftest.$ac_objext; then 23670 ac_lo=$ac_mid; break 23671else 23672 echo "$as_me: failed program was:" >&5 23673sed 's/^/| /' conftest.$ac_ext >&5 23674 23675 ac_hi=`expr '(' $ac_mid ')' - 1` 23676 if test $ac_mid -le $ac_hi; then 23677 ac_lo= ac_hi= 23678 break 23679 fi 23680 ac_mid=`expr 2 '*' $ac_mid` 23681fi 23682 23683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23684 done 23685else 23686 echo "$as_me: failed program was:" >&5 23687sed 's/^/| /' conftest.$ac_ext >&5 23688 23689 ac_lo= ac_hi= 23690fi 23691 23692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23693fi 23694 23695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23696# Binary search between lo and hi bounds. 23697while test "x$ac_lo" != "x$ac_hi"; do 23698 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 23699 cat >conftest.$ac_ext <<_ACEOF 23700/* confdefs.h. */ 23701_ACEOF 23702cat confdefs.h >>conftest.$ac_ext 23703cat >>conftest.$ac_ext <<_ACEOF 23704/* end confdefs.h. */ 23705$ac_includes_default 23706 typedef void* ac__type_sizeof_; 23707int 23708main () 23709{ 23710static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 23711test_array [0] = 0 23712 23713 ; 23714 return 0; 23715} 23716_ACEOF 23717rm -f conftest.$ac_objext 23718if { (ac_try="$ac_compile" 23719case "(($ac_try" in 23720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23721 *) ac_try_echo=$ac_try;; 23722esac 23723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23724 (eval "$ac_compile") 2>conftest.er1 23725 ac_status=$? 23726 grep -v '^ *+' conftest.er1 >conftest.err 23727 rm -f conftest.er1 23728 cat conftest.err >&5 23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23730 (exit $ac_status); } && { 23731 test -z "$ac_c_werror_flag" || 23732 test ! -s conftest.err 23733 } && test -s conftest.$ac_objext; then 23734 ac_hi=$ac_mid 23735else 23736 echo "$as_me: failed program was:" >&5 23737sed 's/^/| /' conftest.$ac_ext >&5 23738 23739 ac_lo=`expr '(' $ac_mid ')' + 1` 23740fi 23741 23742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23743done 23744case $ac_lo in 23745?*) ac_cv_sizeof_voidp=$ac_lo;; 23746'') if test "$ac_cv_type_voidp" = yes; then 23747 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*) 23748See \`config.log' for more details." >&5 23749echo "$as_me: error: cannot compute sizeof (void*) 23750See \`config.log' for more details." >&2;} 23751 { (exit 77); exit 77; }; } 23752 else 23753 ac_cv_sizeof_voidp=0 23754 fi ;; 23755esac 23756else 23757 cat >conftest.$ac_ext <<_ACEOF 23758/* confdefs.h. */ 23759_ACEOF 23760cat confdefs.h >>conftest.$ac_ext 23761cat >>conftest.$ac_ext <<_ACEOF 23762/* end confdefs.h. */ 23763$ac_includes_default 23764 typedef void* ac__type_sizeof_; 23765static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 23766static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 23767#include <stdio.h> 23768#include <stdlib.h> 23769int 23770main () 23771{ 23772 23773 FILE *f = fopen ("conftest.val", "w"); 23774 if (! f) 23775 return 1; 23776 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 23777 { 23778 long int i = longval (); 23779 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 23780 return 1; 23781 fprintf (f, "%ld\n", i); 23782 } 23783 else 23784 { 23785 unsigned long int i = ulongval (); 23786 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 23787 return 1; 23788 fprintf (f, "%lu\n", i); 23789 } 23790 return ferror (f) || fclose (f) != 0; 23791 23792 ; 23793 return 0; 23794} 23795_ACEOF 23796rm -f conftest$ac_exeext 23797if { (ac_try="$ac_link" 23798case "(($ac_try" in 23799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23800 *) ac_try_echo=$ac_try;; 23801esac 23802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23803 (eval "$ac_link") 2>&5 23804 ac_status=$? 23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 23807 { (case "(($ac_try" in 23808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23809 *) ac_try_echo=$ac_try;; 23810esac 23811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23812 (eval "$ac_try") 2>&5 23813 ac_status=$? 23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23815 (exit $ac_status); }; }; then 23816 ac_cv_sizeof_voidp=`cat conftest.val` 23817else 23818 echo "$as_me: program exited with status $ac_status" >&5 23819echo "$as_me: failed program was:" >&5 23820sed 's/^/| /' conftest.$ac_ext >&5 23821 23822( exit $ac_status ) 23823if test "$ac_cv_type_voidp" = yes; then 23824 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*) 23825See \`config.log' for more details." >&5 23826echo "$as_me: error: cannot compute sizeof (void*) 23827See \`config.log' for more details." >&2;} 23828 { (exit 77); exit 77; }; } 23829 else 23830 ac_cv_sizeof_voidp=0 23831 fi 23832fi 23833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 23834fi 23835rm -f conftest.val 23836fi 23837{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5 23838echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; } 23839 23840 23841 23842cat >>confdefs.h <<_ACEOF 23843#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 23844_ACEOF 23845 23846 23847 ac_cv_stdint_char_model="" 23848 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_char" 23849 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_short" 23850 ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_int" 23851 ac_cv_stdint_long_model="" 23852 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_int" 23853 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_long" 23854 ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_voidp" 23855 name="$ac_cv_stdint_long_model" 23856 case "$ac_cv_stdint_char_model/$ac_cv_stdint_long_model" in 23857 122/242) name="$name, IP16 (standard 16bit machine)" ;; 23858 122/244) name="$name, LP32 (standard 32bit mac/win)" ;; 23859 122/*) name="$name (unusual int16 model)" ;; 23860 124/444) name="$name, ILP32 (standard 32bit unixish)" ;; 23861 124/488) name="$name, LP64 (standard 64bit unixish)" ;; 23862 124/448) name="$name, LLP64 (unusual 64bit unixish)" ;; 23863 124/*) name="$name (unusual int32 model)" ;; 23864 128/888) name="$name, ILP64 (unusual 64bit numeric)" ;; 23865 128/*) name="$name (unusual int64 model)" ;; 23866 222/*|444/*) name="$name (unusual dsptype)" ;; 23867 *) name="$name (very unusal model)" ;; 23868 esac 23869 { echo "$as_me:$LINENO: result: combined for stdint datatype model... $name" >&5 23870echo "${ECHO_T}combined for stdint datatype model... $name" >&6; } 23871fi 23872 23873if test "_$ac_cv_header_stdint_x" != "_" ; then 23874 ac_cv_header_stdint="$ac_cv_header_stdint_x" 23875elif test "_$ac_cv_header_stdint_o" != "_" ; then 23876 ac_cv_header_stdint="$ac_cv_header_stdint_o" 23877elif test "_$ac_cv_header_stdint_u" != "_" ; then 23878 ac_cv_header_stdint="$ac_cv_header_stdint_u" 23879else 23880 ac_cv_header_stdint="stddef.h" 23881fi 23882 23883{ echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5 23884echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6; } 23885{ echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5 23886echo "${ECHO_T}($ac_cv_header_stdint)" >&6; } 23887unset ac_cv_type_int_least32_t 23888unset ac_cv_type_int_fast32_t 23889{ echo "$as_me:$LINENO: checking for int_least32_t" >&5 23890echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6; } 23891if test "${ac_cv_type_int_least32_t+set}" = set; then 23892 echo $ECHO_N "(cached) $ECHO_C" >&6 23893else 23894 cat >conftest.$ac_ext <<_ACEOF 23895/* confdefs.h. */ 23896_ACEOF 23897cat confdefs.h >>conftest.$ac_ext 23898cat >>conftest.$ac_ext <<_ACEOF 23899/* end confdefs.h. */ 23900#include <$ac_cv_header_stdint> 23901 23902typedef int_least32_t ac__type_new_; 23903int 23904main () 23905{ 23906if ((ac__type_new_ *) 0) 23907 return 0; 23908if (sizeof (ac__type_new_)) 23909 return 0; 23910 ; 23911 return 0; 23912} 23913_ACEOF 23914rm -f conftest.$ac_objext 23915if { (ac_try="$ac_compile" 23916case "(($ac_try" in 23917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23918 *) ac_try_echo=$ac_try;; 23919esac 23920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23921 (eval "$ac_compile") 2>conftest.er1 23922 ac_status=$? 23923 grep -v '^ *+' conftest.er1 >conftest.err 23924 rm -f conftest.er1 23925 cat conftest.err >&5 23926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23927 (exit $ac_status); } && { 23928 test -z "$ac_c_werror_flag" || 23929 test ! -s conftest.err 23930 } && test -s conftest.$ac_objext; then 23931 ac_cv_type_int_least32_t=yes 23932else 23933 echo "$as_me: failed program was:" >&5 23934sed 's/^/| /' conftest.$ac_ext >&5 23935 23936 ac_cv_type_int_least32_t=no 23937fi 23938 23939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23940fi 23941{ echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 23942echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6; } 23943 23944{ echo "$as_me:$LINENO: checking for int_fast32_t" >&5 23945echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6; } 23946if test "${ac_cv_type_int_fast32_t+set}" = set; then 23947 echo $ECHO_N "(cached) $ECHO_C" >&6 23948else 23949 cat >conftest.$ac_ext <<_ACEOF 23950/* confdefs.h. */ 23951_ACEOF 23952cat confdefs.h >>conftest.$ac_ext 23953cat >>conftest.$ac_ext <<_ACEOF 23954/* end confdefs.h. */ 23955#include<$ac_cv_header_stdint> 23956 23957typedef int_fast32_t ac__type_new_; 23958int 23959main () 23960{ 23961if ((ac__type_new_ *) 0) 23962 return 0; 23963if (sizeof (ac__type_new_)) 23964 return 0; 23965 ; 23966 return 0; 23967} 23968_ACEOF 23969rm -f conftest.$ac_objext 23970if { (ac_try="$ac_compile" 23971case "(($ac_try" in 23972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23973 *) ac_try_echo=$ac_try;; 23974esac 23975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23976 (eval "$ac_compile") 2>conftest.er1 23977 ac_status=$? 23978 grep -v '^ *+' conftest.er1 >conftest.err 23979 rm -f conftest.er1 23980 cat conftest.err >&5 23981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23982 (exit $ac_status); } && { 23983 test -z "$ac_c_werror_flag" || 23984 test ! -s conftest.err 23985 } && test -s conftest.$ac_objext; then 23986 ac_cv_type_int_fast32_t=yes 23987else 23988 echo "$as_me: failed program was:" >&5 23989sed 's/^/| /' conftest.$ac_ext >&5 23990 23991 ac_cv_type_int_fast32_t=no 23992fi 23993 23994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23995fi 23996{ echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 23997echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6; } 23998 23999{ echo "$as_me:$LINENO: checking for intmax_t" >&5 24000echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } 24001if test "${ac_cv_type_intmax_t+set}" = set; then 24002 echo $ECHO_N "(cached) $ECHO_C" >&6 24003else 24004 cat >conftest.$ac_ext <<_ACEOF 24005/* confdefs.h. */ 24006_ACEOF 24007cat confdefs.h >>conftest.$ac_ext 24008cat >>conftest.$ac_ext <<_ACEOF 24009/* end confdefs.h. */ 24010#include <$ac_cv_header_stdint> 24011 24012typedef intmax_t ac__type_new_; 24013int 24014main () 24015{ 24016if ((ac__type_new_ *) 0) 24017 return 0; 24018if (sizeof (ac__type_new_)) 24019 return 0; 24020 ; 24021 return 0; 24022} 24023_ACEOF 24024rm -f conftest.$ac_objext 24025if { (ac_try="$ac_compile" 24026case "(($ac_try" in 24027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24028 *) ac_try_echo=$ac_try;; 24029esac 24030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24031 (eval "$ac_compile") 2>conftest.er1 24032 ac_status=$? 24033 grep -v '^ *+' conftest.er1 >conftest.err 24034 rm -f conftest.er1 24035 cat conftest.err >&5 24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24037 (exit $ac_status); } && { 24038 test -z "$ac_c_werror_flag" || 24039 test ! -s conftest.err 24040 } && test -s conftest.$ac_objext; then 24041 ac_cv_type_intmax_t=yes 24042else 24043 echo "$as_me: failed program was:" >&5 24044sed 's/^/| /' conftest.$ac_ext >&5 24045 24046 ac_cv_type_intmax_t=no 24047fi 24048 24049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24050fi 24051{ echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5 24052echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; } 24053 24054 24055fi # shortcircut to system "stdint.h" 24056# ------------------ PREPARE VARIABLES ------------------------------ 24057if test "$GCC" = "yes" ; then 24058ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1` 24059else 24060ac_cv_stdint_message="using $CC" 24061fi 24062 24063{ echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5 24064echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; } 24065 24066# ----------------- DONE inttypes.h checks START header ------------- 24067ac_config_commands="$ac_config_commands $ac_stdint_h" 24068 24069 24070fi 24071 24072 24073 24074{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 24075echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 24076if test "${ac_cv_c_const+set}" = set; then 24077 echo $ECHO_N "(cached) $ECHO_C" >&6 24078else 24079 cat >conftest.$ac_ext <<_ACEOF 24080/* confdefs.h. */ 24081_ACEOF 24082cat confdefs.h >>conftest.$ac_ext 24083cat >>conftest.$ac_ext <<_ACEOF 24084/* end confdefs.h. */ 24085 24086int 24087main () 24088{ 24089/* FIXME: Include the comments suggested by Paul. */ 24090#ifndef __cplusplus 24091 /* Ultrix mips cc rejects this. */ 24092 typedef int charset[2]; 24093 const charset cs; 24094 /* SunOS 4.1.1 cc rejects this. */ 24095 char const *const *pcpcc; 24096 char **ppc; 24097 /* NEC SVR4.0.2 mips cc rejects this. */ 24098 struct point {int x, y;}; 24099 static struct point const zero = {0,0}; 24100 /* AIX XL C 1.02.0.0 rejects this. 24101 It does not let you subtract one const X* pointer from another in 24102 an arm of an if-expression whose if-part is not a constant 24103 expression */ 24104 const char *g = "string"; 24105 pcpcc = &g + (g ? g-g : 0); 24106 /* HPUX 7.0 cc rejects these. */ 24107 ++pcpcc; 24108 ppc = (char**) pcpcc; 24109 pcpcc = (char const *const *) ppc; 24110 { /* SCO 3.2v4 cc rejects this. */ 24111 char *t; 24112 char const *s = 0 ? (char *) 0 : (char const *) 0; 24113 24114 *t++ = 0; 24115 if (s) return 0; 24116 } 24117 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 24118 int x[] = {25, 17}; 24119 const int *foo = &x[0]; 24120 ++foo; 24121 } 24122 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 24123 typedef const int *iptr; 24124 iptr p = 0; 24125 ++p; 24126 } 24127 { /* AIX XL C 1.02.0.0 rejects this saying 24128 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 24129 struct s { int j; const int *ap[3]; }; 24130 struct s *b; b->j = 5; 24131 } 24132 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 24133 const int foo = 10; 24134 if (!foo) return 0; 24135 } 24136 return !cs[0] && !zero.x; 24137#endif 24138 24139 ; 24140 return 0; 24141} 24142_ACEOF 24143rm -f conftest.$ac_objext 24144if { (ac_try="$ac_compile" 24145case "(($ac_try" in 24146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24147 *) ac_try_echo=$ac_try;; 24148esac 24149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24150 (eval "$ac_compile") 2>conftest.er1 24151 ac_status=$? 24152 grep -v '^ *+' conftest.er1 >conftest.err 24153 rm -f conftest.er1 24154 cat conftest.err >&5 24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24156 (exit $ac_status); } && { 24157 test -z "$ac_c_werror_flag" || 24158 test ! -s conftest.err 24159 } && test -s conftest.$ac_objext; then 24160 ac_cv_c_const=yes 24161else 24162 echo "$as_me: failed program was:" >&5 24163sed 's/^/| /' conftest.$ac_ext >&5 24164 24165 ac_cv_c_const=no 24166fi 24167 24168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24169fi 24170{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 24171echo "${ECHO_T}$ac_cv_c_const" >&6; } 24172if test $ac_cv_c_const = no; then 24173 24174cat >>confdefs.h <<\_ACEOF 24175#define const 24176_ACEOF 24177 24178fi 24179 24180{ echo "$as_me:$LINENO: checking for inline" >&5 24181echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 24182if test "${ac_cv_c_inline+set}" = set; then 24183 echo $ECHO_N "(cached) $ECHO_C" >&6 24184else 24185 ac_cv_c_inline=no 24186for ac_kw in inline __inline__ __inline; do 24187 cat >conftest.$ac_ext <<_ACEOF 24188/* confdefs.h. */ 24189_ACEOF 24190cat confdefs.h >>conftest.$ac_ext 24191cat >>conftest.$ac_ext <<_ACEOF 24192/* end confdefs.h. */ 24193#ifndef __cplusplus 24194typedef int foo_t; 24195static $ac_kw foo_t static_foo () {return 0; } 24196$ac_kw foo_t foo () {return 0; } 24197#endif 24198 24199_ACEOF 24200rm -f conftest.$ac_objext 24201if { (ac_try="$ac_compile" 24202case "(($ac_try" in 24203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24204 *) ac_try_echo=$ac_try;; 24205esac 24206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24207 (eval "$ac_compile") 2>conftest.er1 24208 ac_status=$? 24209 grep -v '^ *+' conftest.er1 >conftest.err 24210 rm -f conftest.er1 24211 cat conftest.err >&5 24212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24213 (exit $ac_status); } && { 24214 test -z "$ac_c_werror_flag" || 24215 test ! -s conftest.err 24216 } && test -s conftest.$ac_objext; then 24217 ac_cv_c_inline=$ac_kw 24218else 24219 echo "$as_me: failed program was:" >&5 24220sed 's/^/| /' conftest.$ac_ext >&5 24221 24222 24223fi 24224 24225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24226 test "$ac_cv_c_inline" != no && break 24227done 24228 24229fi 24230{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 24231echo "${ECHO_T}$ac_cv_c_inline" >&6; } 24232 24233 24234case $ac_cv_c_inline in 24235 inline | yes) ;; 24236 *) 24237 case $ac_cv_c_inline in 24238 no) ac_val=;; 24239 *) ac_val=$ac_cv_c_inline;; 24240 esac 24241 cat >>confdefs.h <<_ACEOF 24242#ifndef __cplusplus 24243#define inline $ac_val 24244#endif 24245_ACEOF 24246 ;; 24247esac 24248 24249 if test x"$GCC" = x"yes" -a x"$ac_cv_c_inline" = x"inline"; then 24250 { echo "$as_me:$LINENO: checking for always_inline" >&5 24251echo $ECHO_N "checking for always_inline... $ECHO_C" >&6; } 24252 SAVE_CFLAGS="$CFLAGS" 24253 CFLAGS="$CFLAGS -Wall -Werror" 24254 cat >conftest.$ac_ext <<_ACEOF 24255/* confdefs.h. */ 24256_ACEOF 24257cat confdefs.h >>conftest.$ac_ext 24258cat >>conftest.$ac_ext <<_ACEOF 24259/* end confdefs.h. */ 24260 24261int 24262main () 24263{ 24264__attribute__ ((__always_inline__)) void f (void); 24265 #ifdef __cplusplus 24266 42 = 42; // obviously illegal - we want c++ to fail here 24267 #endif 24268 ; 24269 return 0; 24270} 24271_ACEOF 24272rm -f conftest.$ac_objext 24273if { (ac_try="$ac_compile" 24274case "(($ac_try" in 24275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24276 *) ac_try_echo=$ac_try;; 24277esac 24278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24279 (eval "$ac_compile") 2>conftest.er1 24280 ac_status=$? 24281 grep -v '^ *+' conftest.er1 >conftest.err 24282 rm -f conftest.er1 24283 cat conftest.err >&5 24284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24285 (exit $ac_status); } && { 24286 test -z "$ac_c_werror_flag" || 24287 test ! -s conftest.err 24288 } && test -s conftest.$ac_objext; then 24289 ac_cv_always_inline=yes 24290else 24291 echo "$as_me: failed program was:" >&5 24292sed 's/^/| /' conftest.$ac_ext >&5 24293 24294 ac_cv_always_inline=no 24295fi 24296 24297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24298 CFLAGS="$SAVE_CFLAGS" 24299 { echo "$as_me:$LINENO: result: $ac_cv_always_inline" >&5 24300echo "${ECHO_T}$ac_cv_always_inline" >&6; } 24301 if test x"$ac_cv_always_inline" = x"yes"; then 24302 cat >>confdefs.h <<_ACEOF 24303#define inline __attribute__ ((__always_inline__)) 24304_ACEOF 24305 24306 fi 24307 fi 24308{ echo "$as_me:$LINENO: checking for restrict" >&5 24309echo $ECHO_N "checking for restrict... $ECHO_C" >&6; } 24310 ac_cv_c_restrict=no 24311 for ac_kw in restrict __restrict__ __restrict; do 24312 cat >conftest.$ac_ext <<_ACEOF 24313/* confdefs.h. */ 24314_ACEOF 24315cat confdefs.h >>conftest.$ac_ext 24316cat >>conftest.$ac_ext <<_ACEOF 24317/* end confdefs.h. */ 24318 24319int 24320main () 24321{ 24322char * $ac_kw p; 24323 ; 24324 return 0; 24325} 24326_ACEOF 24327rm -f conftest.$ac_objext 24328if { (ac_try="$ac_compile" 24329case "(($ac_try" in 24330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24331 *) ac_try_echo=$ac_try;; 24332esac 24333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24334 (eval "$ac_compile") 2>conftest.er1 24335 ac_status=$? 24336 grep -v '^ *+' conftest.er1 >conftest.err 24337 rm -f conftest.er1 24338 cat conftest.err >&5 24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24340 (exit $ac_status); } && { 24341 test -z "$ac_c_werror_flag" || 24342 test ! -s conftest.err 24343 } && test -s conftest.$ac_objext; then 24344 ac_cv_c_restrict=$ac_kw; break 24345else 24346 echo "$as_me: failed program was:" >&5 24347sed 's/^/| /' conftest.$ac_ext >&5 24348 24349 24350fi 24351 24352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24353 done 24354 { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 24355echo "${ECHO_T}$ac_cv_c_restrict" >&6; } 24356 case $ac_cv_c_restrict in 24357 restrict) ;; 24358 no) 24359cat >>confdefs.h <<\_ACEOF 24360#define restrict 24361_ACEOF 24362 ;; 24363 *) cat >>confdefs.h <<_ACEOF 24364#define restrict $ac_cv_c_restrict 24365_ACEOF 24366 ;; 24367 esac 24368{ echo "$as_me:$LINENO: checking for __builtin_expect" >&5 24369echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; } 24370if test "${ac_cv_builtin_expect+set}" = set; then 24371 echo $ECHO_N "(cached) $ECHO_C" >&6 24372else 24373 cat > conftest.c <<EOF 24374#line 24374 "configure" 24375int foo (int a) 24376{ 24377 a = __builtin_expect (a, 10); 24378 return a == 10 ? 0 : 1; 24379} 24380EOF 24381 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles 24382 -o conftest conftest.c -lgcc >&5' 24383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24384 (eval $ac_try) 2>&5 24385 ac_status=$? 24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24387 (exit $ac_status); }; }; then 24388 ac_cv_builtin_expect=yes 24389 else 24390 ac_cv_builtin_expect=no 24391 fi 24392 rm -f conftest* 24393fi 24394{ echo "$as_me:$LINENO: result: $ac_cv_builtin_expect" >&5 24395echo "${ECHO_T}$ac_cv_builtin_expect" >&6; } 24396 if test x"$ac_cv_builtin_expect" = x"yes"; then 24397 24398cat >>confdefs.h <<\_ACEOF 24399#define HAVE_BUILTIN_EXPECT 24400_ACEOF 24401 24402 fi 24403{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 24404echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 24405if test "${ac_cv_c_bigendian+set}" = set; then 24406 echo $ECHO_N "(cached) $ECHO_C" >&6 24407else 24408 # See if sys/param.h defines the BYTE_ORDER macro. 24409cat >conftest.$ac_ext <<_ACEOF 24410/* confdefs.h. */ 24411_ACEOF 24412cat confdefs.h >>conftest.$ac_ext 24413cat >>conftest.$ac_ext <<_ACEOF 24414/* end confdefs.h. */ 24415#include <sys/types.h> 24416#include <sys/param.h> 24417 24418int 24419main () 24420{ 24421#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 24422 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 24423 bogus endian macros 24424#endif 24425 24426 ; 24427 return 0; 24428} 24429_ACEOF 24430rm -f conftest.$ac_objext 24431if { (ac_try="$ac_compile" 24432case "(($ac_try" in 24433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24434 *) ac_try_echo=$ac_try;; 24435esac 24436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24437 (eval "$ac_compile") 2>conftest.er1 24438 ac_status=$? 24439 grep -v '^ *+' conftest.er1 >conftest.err 24440 rm -f conftest.er1 24441 cat conftest.err >&5 24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24443 (exit $ac_status); } && { 24444 test -z "$ac_c_werror_flag" || 24445 test ! -s conftest.err 24446 } && test -s conftest.$ac_objext; then 24447 # It does; now see whether it defined to BIG_ENDIAN or not. 24448cat >conftest.$ac_ext <<_ACEOF 24449/* confdefs.h. */ 24450_ACEOF 24451cat confdefs.h >>conftest.$ac_ext 24452cat >>conftest.$ac_ext <<_ACEOF 24453/* end confdefs.h. */ 24454#include <sys/types.h> 24455#include <sys/param.h> 24456 24457int 24458main () 24459{ 24460#if BYTE_ORDER != BIG_ENDIAN 24461 not big endian 24462#endif 24463 24464 ; 24465 return 0; 24466} 24467_ACEOF 24468rm -f conftest.$ac_objext 24469if { (ac_try="$ac_compile" 24470case "(($ac_try" in 24471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24472 *) ac_try_echo=$ac_try;; 24473esac 24474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24475 (eval "$ac_compile") 2>conftest.er1 24476 ac_status=$? 24477 grep -v '^ *+' conftest.er1 >conftest.err 24478 rm -f conftest.er1 24479 cat conftest.err >&5 24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24481 (exit $ac_status); } && { 24482 test -z "$ac_c_werror_flag" || 24483 test ! -s conftest.err 24484 } && test -s conftest.$ac_objext; then 24485 ac_cv_c_bigendian=yes 24486else 24487 echo "$as_me: failed program was:" >&5 24488sed 's/^/| /' conftest.$ac_ext >&5 24489 24490 ac_cv_c_bigendian=no 24491fi 24492 24493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24494else 24495 echo "$as_me: failed program was:" >&5 24496sed 's/^/| /' conftest.$ac_ext >&5 24497 24498 # It does not; compile a test program. 24499if test "$cross_compiling" = yes; then 24500 # try to guess the endianness by grepping values into an object file 24501 ac_cv_c_bigendian=unknown 24502 cat >conftest.$ac_ext <<_ACEOF 24503/* confdefs.h. */ 24504_ACEOF 24505cat confdefs.h >>conftest.$ac_ext 24506cat >>conftest.$ac_ext <<_ACEOF 24507/* end confdefs.h. */ 24508short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 24509short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 24510void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 24511short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 24512short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 24513void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 24514int 24515main () 24516{ 24517 _ascii (); _ebcdic (); 24518 ; 24519 return 0; 24520} 24521_ACEOF 24522rm -f conftest.$ac_objext 24523if { (ac_try="$ac_compile" 24524case "(($ac_try" in 24525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24526 *) ac_try_echo=$ac_try;; 24527esac 24528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24529 (eval "$ac_compile") 2>conftest.er1 24530 ac_status=$? 24531 grep -v '^ *+' conftest.er1 >conftest.err 24532 rm -f conftest.er1 24533 cat conftest.err >&5 24534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24535 (exit $ac_status); } && { 24536 test -z "$ac_c_werror_flag" || 24537 test ! -s conftest.err 24538 } && test -s conftest.$ac_objext; then 24539 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 24540 ac_cv_c_bigendian=yes 24541fi 24542if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 24543 if test "$ac_cv_c_bigendian" = unknown; then 24544 ac_cv_c_bigendian=no 24545 else 24546 # finding both strings is unlikely to happen, but who knows? 24547 ac_cv_c_bigendian=unknown 24548 fi 24549fi 24550else 24551 echo "$as_me: failed program was:" >&5 24552sed 's/^/| /' conftest.$ac_ext >&5 24553 24554 24555fi 24556 24557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24558else 24559 cat >conftest.$ac_ext <<_ACEOF 24560/* confdefs.h. */ 24561_ACEOF 24562cat confdefs.h >>conftest.$ac_ext 24563cat >>conftest.$ac_ext <<_ACEOF 24564/* end confdefs.h. */ 24565$ac_includes_default 24566int 24567main () 24568{ 24569 24570 /* Are we little or big endian? From Harbison&Steele. */ 24571 union 24572 { 24573 long int l; 24574 char c[sizeof (long int)]; 24575 } u; 24576 u.l = 1; 24577 return u.c[sizeof (long int) - 1] == 1; 24578 24579 ; 24580 return 0; 24581} 24582_ACEOF 24583rm -f conftest$ac_exeext 24584if { (ac_try="$ac_link" 24585case "(($ac_try" in 24586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24587 *) ac_try_echo=$ac_try;; 24588esac 24589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24590 (eval "$ac_link") 2>&5 24591 ac_status=$? 24592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 24594 { (case "(($ac_try" in 24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24596 *) ac_try_echo=$ac_try;; 24597esac 24598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24599 (eval "$ac_try") 2>&5 24600 ac_status=$? 24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24602 (exit $ac_status); }; }; then 24603 ac_cv_c_bigendian=no 24604else 24605 echo "$as_me: program exited with status $ac_status" >&5 24606echo "$as_me: failed program was:" >&5 24607sed 's/^/| /' conftest.$ac_ext >&5 24608 24609( exit $ac_status ) 24610ac_cv_c_bigendian=yes 24611fi 24612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 24613fi 24614 24615 24616fi 24617 24618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24619fi 24620{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 24621echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 24622case $ac_cv_c_bigendian in 24623 yes) 24624 24625cat >>confdefs.h <<\_ACEOF 24626#define WORDS_BIGENDIAN 1 24627_ACEOF 24628 ;; 24629 no) 24630 ;; 24631 *) 24632 { { echo "$as_me:$LINENO: error: unknown endianness 24633presetting ac_cv_c_bigendian=no (or yes) will help" >&5 24634echo "$as_me: error: unknown endianness 24635presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 24636 { (exit 1); exit 1; }; } ;; 24637esac 24638 24639{ echo "$as_me:$LINENO: checking for working volatile" >&5 24640echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } 24641if test "${ac_cv_c_volatile+set}" = set; then 24642 echo $ECHO_N "(cached) $ECHO_C" >&6 24643else 24644 cat >conftest.$ac_ext <<_ACEOF 24645/* confdefs.h. */ 24646_ACEOF 24647cat confdefs.h >>conftest.$ac_ext 24648cat >>conftest.$ac_ext <<_ACEOF 24649/* end confdefs.h. */ 24650 24651int 24652main () 24653{ 24654 24655volatile int x; 24656int * volatile y = (int *) 0; 24657return !x && !y; 24658 ; 24659 return 0; 24660} 24661_ACEOF 24662rm -f conftest.$ac_objext 24663if { (ac_try="$ac_compile" 24664case "(($ac_try" in 24665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24666 *) ac_try_echo=$ac_try;; 24667esac 24668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24669 (eval "$ac_compile") 2>conftest.er1 24670 ac_status=$? 24671 grep -v '^ *+' conftest.er1 >conftest.err 24672 rm -f conftest.er1 24673 cat conftest.err >&5 24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24675 (exit $ac_status); } && { 24676 test -z "$ac_c_werror_flag" || 24677 test ! -s conftest.err 24678 } && test -s conftest.$ac_objext; then 24679 ac_cv_c_volatile=yes 24680else 24681 echo "$as_me: failed program was:" >&5 24682sed 's/^/| /' conftest.$ac_ext >&5 24683 24684 ac_cv_c_volatile=no 24685fi 24686 24687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24688fi 24689{ echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 24690echo "${ECHO_T}$ac_cv_c_volatile" >&6; } 24691if test $ac_cv_c_volatile = no; then 24692 24693cat >>confdefs.h <<\_ACEOF 24694#define volatile 24695_ACEOF 24696 24697fi 24698 24699{ echo "$as_me:$LINENO: checking for size_t" >&5 24700echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 24701if test "${ac_cv_type_size_t+set}" = set; then 24702 echo $ECHO_N "(cached) $ECHO_C" >&6 24703else 24704 cat >conftest.$ac_ext <<_ACEOF 24705/* confdefs.h. */ 24706_ACEOF 24707cat confdefs.h >>conftest.$ac_ext 24708cat >>conftest.$ac_ext <<_ACEOF 24709/* end confdefs.h. */ 24710$ac_includes_default 24711typedef size_t ac__type_new_; 24712int 24713main () 24714{ 24715if ((ac__type_new_ *) 0) 24716 return 0; 24717if (sizeof (ac__type_new_)) 24718 return 0; 24719 ; 24720 return 0; 24721} 24722_ACEOF 24723rm -f conftest.$ac_objext 24724if { (ac_try="$ac_compile" 24725case "(($ac_try" in 24726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24727 *) ac_try_echo=$ac_try;; 24728esac 24729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24730 (eval "$ac_compile") 2>conftest.er1 24731 ac_status=$? 24732 grep -v '^ *+' conftest.er1 >conftest.err 24733 rm -f conftest.er1 24734 cat conftest.err >&5 24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24736 (exit $ac_status); } && { 24737 test -z "$ac_c_werror_flag" || 24738 test ! -s conftest.err 24739 } && test -s conftest.$ac_objext; then 24740 ac_cv_type_size_t=yes 24741else 24742 echo "$as_me: failed program was:" >&5 24743sed 's/^/| /' conftest.$ac_ext >&5 24744 24745 ac_cv_type_size_t=no 24746fi 24747 24748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24749fi 24750{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 24751echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 24752if test $ac_cv_type_size_t = yes; then 24753 : 24754else 24755 24756cat >>confdefs.h <<_ACEOF 24757#define size_t unsigned int 24758_ACEOF 24759 24760fi 24761 24762{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 24763echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 24764if test "${ac_cv_type_signal+set}" = set; then 24765 echo $ECHO_N "(cached) $ECHO_C" >&6 24766else 24767 cat >conftest.$ac_ext <<_ACEOF 24768/* confdefs.h. */ 24769_ACEOF 24770cat confdefs.h >>conftest.$ac_ext 24771cat >>conftest.$ac_ext <<_ACEOF 24772/* end confdefs.h. */ 24773#include <sys/types.h> 24774#include <signal.h> 24775 24776int 24777main () 24778{ 24779return *(signal (0, 0)) (0) == 1; 24780 ; 24781 return 0; 24782} 24783_ACEOF 24784rm -f conftest.$ac_objext 24785if { (ac_try="$ac_compile" 24786case "(($ac_try" in 24787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24788 *) ac_try_echo=$ac_try;; 24789esac 24790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24791 (eval "$ac_compile") 2>conftest.er1 24792 ac_status=$? 24793 grep -v '^ *+' conftest.er1 >conftest.err 24794 rm -f conftest.er1 24795 cat conftest.err >&5 24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24797 (exit $ac_status); } && { 24798 test -z "$ac_c_werror_flag" || 24799 test ! -s conftest.err 24800 } && test -s conftest.$ac_objext; then 24801 ac_cv_type_signal=int 24802else 24803 echo "$as_me: failed program was:" >&5 24804sed 's/^/| /' conftest.$ac_ext >&5 24805 24806 ac_cv_type_signal=void 24807fi 24808 24809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24810fi 24811{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 24812echo "${ECHO_T}$ac_cv_type_signal" >&6; } 24813 24814cat >>confdefs.h <<_ACEOF 24815#define RETSIGTYPE $ac_cv_type_signal 24816_ACEOF 24817 24818 24819# Check whether --enable-largefile was given. 24820if test "${enable_largefile+set}" = set; then 24821 enableval=$enable_largefile; 24822fi 24823 24824if test "$enable_largefile" != no; then 24825 24826 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 24827echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } 24828if test "${ac_cv_sys_largefile_CC+set}" = set; then 24829 echo $ECHO_N "(cached) $ECHO_C" >&6 24830else 24831 ac_cv_sys_largefile_CC=no 24832 if test "$GCC" != yes; then 24833 ac_save_CC=$CC 24834 while :; do 24835 # IRIX 6.2 and later do not support large files by default, 24836 # so use the C compiler's -n32 option if that helps. 24837 cat >conftest.$ac_ext <<_ACEOF 24838/* confdefs.h. */ 24839_ACEOF 24840cat confdefs.h >>conftest.$ac_ext 24841cat >>conftest.$ac_ext <<_ACEOF 24842/* end confdefs.h. */ 24843#include <sys/types.h> 24844 /* Check that off_t can represent 2**63 - 1 correctly. 24845 We can't simply define LARGE_OFF_T to be 9223372036854775807, 24846 since some C++ compilers masquerading as C compilers 24847 incorrectly reject 9223372036854775807. */ 24848#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 24849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 24850 && LARGE_OFF_T % 2147483647 == 1) 24851 ? 1 : -1]; 24852int 24853main () 24854{ 24855 24856 ; 24857 return 0; 24858} 24859_ACEOF 24860 rm -f conftest.$ac_objext 24861if { (ac_try="$ac_compile" 24862case "(($ac_try" in 24863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24864 *) ac_try_echo=$ac_try;; 24865esac 24866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24867 (eval "$ac_compile") 2>conftest.er1 24868 ac_status=$? 24869 grep -v '^ *+' conftest.er1 >conftest.err 24870 rm -f conftest.er1 24871 cat conftest.err >&5 24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24873 (exit $ac_status); } && { 24874 test -z "$ac_c_werror_flag" || 24875 test ! -s conftest.err 24876 } && test -s conftest.$ac_objext; then 24877 break 24878else 24879 echo "$as_me: failed program was:" >&5 24880sed 's/^/| /' conftest.$ac_ext >&5 24881 24882 24883fi 24884 24885rm -f core conftest.err conftest.$ac_objext 24886 CC="$CC -n32" 24887 rm -f conftest.$ac_objext 24888if { (ac_try="$ac_compile" 24889case "(($ac_try" in 24890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24891 *) ac_try_echo=$ac_try;; 24892esac 24893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24894 (eval "$ac_compile") 2>conftest.er1 24895 ac_status=$? 24896 grep -v '^ *+' conftest.er1 >conftest.err 24897 rm -f conftest.er1 24898 cat conftest.err >&5 24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24900 (exit $ac_status); } && { 24901 test -z "$ac_c_werror_flag" || 24902 test ! -s conftest.err 24903 } && test -s conftest.$ac_objext; then 24904 ac_cv_sys_largefile_CC=' -n32'; break 24905else 24906 echo "$as_me: failed program was:" >&5 24907sed 's/^/| /' conftest.$ac_ext >&5 24908 24909 24910fi 24911 24912rm -f core conftest.err conftest.$ac_objext 24913 break 24914 done 24915 CC=$ac_save_CC 24916 rm -f conftest.$ac_ext 24917 fi 24918fi 24919{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 24920echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } 24921 if test "$ac_cv_sys_largefile_CC" != no; then 24922 CC=$CC$ac_cv_sys_largefile_CC 24923 fi 24924 24925 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 24926echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } 24927if test "${ac_cv_sys_file_offset_bits+set}" = set; then 24928 echo $ECHO_N "(cached) $ECHO_C" >&6 24929else 24930 while :; do 24931 cat >conftest.$ac_ext <<_ACEOF 24932/* confdefs.h. */ 24933_ACEOF 24934cat confdefs.h >>conftest.$ac_ext 24935cat >>conftest.$ac_ext <<_ACEOF 24936/* end confdefs.h. */ 24937#include <sys/types.h> 24938 /* Check that off_t can represent 2**63 - 1 correctly. 24939 We can't simply define LARGE_OFF_T to be 9223372036854775807, 24940 since some C++ compilers masquerading as C compilers 24941 incorrectly reject 9223372036854775807. */ 24942#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 24943 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 24944 && LARGE_OFF_T % 2147483647 == 1) 24945 ? 1 : -1]; 24946int 24947main () 24948{ 24949 24950 ; 24951 return 0; 24952} 24953_ACEOF 24954rm -f conftest.$ac_objext 24955if { (ac_try="$ac_compile" 24956case "(($ac_try" in 24957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 24958 *) ac_try_echo=$ac_try;; 24959esac 24960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 24961 (eval "$ac_compile") 2>conftest.er1 24962 ac_status=$? 24963 grep -v '^ *+' conftest.er1 >conftest.err 24964 rm -f conftest.er1 24965 cat conftest.err >&5 24966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24967 (exit $ac_status); } && { 24968 test -z "$ac_c_werror_flag" || 24969 test ! -s conftest.err 24970 } && test -s conftest.$ac_objext; then 24971 ac_cv_sys_file_offset_bits=no; break 24972else 24973 echo "$as_me: failed program was:" >&5 24974sed 's/^/| /' conftest.$ac_ext >&5 24975 24976 24977fi 24978 24979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24980 cat >conftest.$ac_ext <<_ACEOF 24981/* confdefs.h. */ 24982_ACEOF 24983cat confdefs.h >>conftest.$ac_ext 24984cat >>conftest.$ac_ext <<_ACEOF 24985/* end confdefs.h. */ 24986#define _FILE_OFFSET_BITS 64 24987#include <sys/types.h> 24988 /* Check that off_t can represent 2**63 - 1 correctly. 24989 We can't simply define LARGE_OFF_T to be 9223372036854775807, 24990 since some C++ compilers masquerading as C compilers 24991 incorrectly reject 9223372036854775807. */ 24992#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 24993 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 24994 && LARGE_OFF_T % 2147483647 == 1) 24995 ? 1 : -1]; 24996int 24997main () 24998{ 24999 25000 ; 25001 return 0; 25002} 25003_ACEOF 25004rm -f conftest.$ac_objext 25005if { (ac_try="$ac_compile" 25006case "(($ac_try" in 25007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25008 *) ac_try_echo=$ac_try;; 25009esac 25010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25011 (eval "$ac_compile") 2>conftest.er1 25012 ac_status=$? 25013 grep -v '^ *+' conftest.er1 >conftest.err 25014 rm -f conftest.er1 25015 cat conftest.err >&5 25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25017 (exit $ac_status); } && { 25018 test -z "$ac_c_werror_flag" || 25019 test ! -s conftest.err 25020 } && test -s conftest.$ac_objext; then 25021 ac_cv_sys_file_offset_bits=64; break 25022else 25023 echo "$as_me: failed program was:" >&5 25024sed 's/^/| /' conftest.$ac_ext >&5 25025 25026 25027fi 25028 25029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25030 ac_cv_sys_file_offset_bits=unknown 25031 break 25032done 25033fi 25034{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 25035echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } 25036case $ac_cv_sys_file_offset_bits in #( 25037 no | unknown) ;; 25038 *) 25039cat >>confdefs.h <<_ACEOF 25040#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 25041_ACEOF 25042;; 25043esac 25044rm -f conftest* 25045 if test $ac_cv_sys_file_offset_bits = unknown; then 25046 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 25047echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } 25048if test "${ac_cv_sys_large_files+set}" = set; then 25049 echo $ECHO_N "(cached) $ECHO_C" >&6 25050else 25051 while :; do 25052 cat >conftest.$ac_ext <<_ACEOF 25053/* confdefs.h. */ 25054_ACEOF 25055cat confdefs.h >>conftest.$ac_ext 25056cat >>conftest.$ac_ext <<_ACEOF 25057/* end confdefs.h. */ 25058#include <sys/types.h> 25059 /* Check that off_t can represent 2**63 - 1 correctly. 25060 We can't simply define LARGE_OFF_T to be 9223372036854775807, 25061 since some C++ compilers masquerading as C compilers 25062 incorrectly reject 9223372036854775807. */ 25063#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 25064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 25065 && LARGE_OFF_T % 2147483647 == 1) 25066 ? 1 : -1]; 25067int 25068main () 25069{ 25070 25071 ; 25072 return 0; 25073} 25074_ACEOF 25075rm -f conftest.$ac_objext 25076if { (ac_try="$ac_compile" 25077case "(($ac_try" in 25078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25079 *) ac_try_echo=$ac_try;; 25080esac 25081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25082 (eval "$ac_compile") 2>conftest.er1 25083 ac_status=$? 25084 grep -v '^ *+' conftest.er1 >conftest.err 25085 rm -f conftest.er1 25086 cat conftest.err >&5 25087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25088 (exit $ac_status); } && { 25089 test -z "$ac_c_werror_flag" || 25090 test ! -s conftest.err 25091 } && test -s conftest.$ac_objext; then 25092 ac_cv_sys_large_files=no; break 25093else 25094 echo "$as_me: failed program was:" >&5 25095sed 's/^/| /' conftest.$ac_ext >&5 25096 25097 25098fi 25099 25100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25101 cat >conftest.$ac_ext <<_ACEOF 25102/* confdefs.h. */ 25103_ACEOF 25104cat confdefs.h >>conftest.$ac_ext 25105cat >>conftest.$ac_ext <<_ACEOF 25106/* end confdefs.h. */ 25107#define _LARGE_FILES 1 25108#include <sys/types.h> 25109 /* Check that off_t can represent 2**63 - 1 correctly. 25110 We can't simply define LARGE_OFF_T to be 9223372036854775807, 25111 since some C++ compilers masquerading as C compilers 25112 incorrectly reject 9223372036854775807. */ 25113#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 25114 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 25115 && LARGE_OFF_T % 2147483647 == 1) 25116 ? 1 : -1]; 25117int 25118main () 25119{ 25120 25121 ; 25122 return 0; 25123} 25124_ACEOF 25125rm -f conftest.$ac_objext 25126if { (ac_try="$ac_compile" 25127case "(($ac_try" in 25128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25129 *) ac_try_echo=$ac_try;; 25130esac 25131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25132 (eval "$ac_compile") 2>conftest.er1 25133 ac_status=$? 25134 grep -v '^ *+' conftest.er1 >conftest.err 25135 rm -f conftest.er1 25136 cat conftest.err >&5 25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25138 (exit $ac_status); } && { 25139 test -z "$ac_c_werror_flag" || 25140 test ! -s conftest.err 25141 } && test -s conftest.$ac_objext; then 25142 ac_cv_sys_large_files=1; break 25143else 25144 echo "$as_me: failed program was:" >&5 25145sed 's/^/| /' conftest.$ac_ext >&5 25146 25147 25148fi 25149 25150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25151 ac_cv_sys_large_files=unknown 25152 break 25153done 25154fi 25155{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 25156echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } 25157case $ac_cv_sys_large_files in #( 25158 no | unknown) ;; 25159 *) 25160cat >>confdefs.h <<_ACEOF 25161#define _LARGE_FILES $ac_cv_sys_large_files 25162_ACEOF 25163;; 25164esac 25165rm -f conftest* 25166 fi 25167fi 25168 25169 25170 25171 25172for ac_func in gettimeofday ftime 25173do 25174as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 25175{ echo "$as_me:$LINENO: checking for $ac_func" >&5 25176echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 25177if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 25178 echo $ECHO_N "(cached) $ECHO_C" >&6 25179else 25180 cat >conftest.$ac_ext <<_ACEOF 25181/* confdefs.h. */ 25182_ACEOF 25183cat confdefs.h >>conftest.$ac_ext 25184cat >>conftest.$ac_ext <<_ACEOF 25185/* end confdefs.h. */ 25186/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 25187 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 25188#define $ac_func innocuous_$ac_func 25189 25190/* System header to define __stub macros and hopefully few prototypes, 25191 which can conflict with char $ac_func (); below. 25192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 25193 <limits.h> exists even on freestanding compilers. */ 25194 25195#ifdef __STDC__ 25196# include <limits.h> 25197#else 25198# include <assert.h> 25199#endif 25200 25201#undef $ac_func 25202 25203/* Override any GCC internal prototype to avoid an error. 25204 Use char because int might match the return type of a GCC 25205 builtin and then its argument prototype would still apply. */ 25206#ifdef __cplusplus 25207extern "C" 25208#endif 25209char $ac_func (); 25210/* The GNU C library defines this for functions which it implements 25211 to always fail with ENOSYS. Some functions are actually named 25212 something starting with __ and the normal name is an alias. */ 25213#if defined __stub_$ac_func || defined __stub___$ac_func 25214choke me 25215#endif 25216 25217int 25218main () 25219{ 25220return $ac_func (); 25221 ; 25222 return 0; 25223} 25224_ACEOF 25225rm -f conftest.$ac_objext conftest$ac_exeext 25226if { (ac_try="$ac_link" 25227case "(($ac_try" in 25228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25229 *) ac_try_echo=$ac_try;; 25230esac 25231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25232 (eval "$ac_link") 2>conftest.er1 25233 ac_status=$? 25234 grep -v '^ *+' conftest.er1 >conftest.err 25235 rm -f conftest.er1 25236 cat conftest.err >&5 25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25238 (exit $ac_status); } && { 25239 test -z "$ac_c_werror_flag" || 25240 test ! -s conftest.err 25241 } && test -s conftest$ac_exeext && 25242 $as_test_x conftest$ac_exeext; then 25243 eval "$as_ac_var=yes" 25244else 25245 echo "$as_me: failed program was:" >&5 25246sed 's/^/| /' conftest.$ac_ext >&5 25247 25248 eval "$as_ac_var=no" 25249fi 25250 25251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25252 conftest$ac_exeext conftest.$ac_ext 25253fi 25254ac_res=`eval echo '${'$as_ac_var'}'` 25255 { echo "$as_me:$LINENO: result: $ac_res" >&5 25256echo "${ECHO_T}$ac_res" >&6; } 25257if test `eval echo '${'$as_ac_var'}'` = yes; then 25258 cat >>confdefs.h <<_ACEOF 25259#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 25260_ACEOF 25261 25262fi 25263done 25264 25265 25266case "$target" in 25267 i?86-*|k?-*) 25268 { echo "$as_me:$LINENO: checking if libtool supports -prefer-non-pic flag" >&5 25269echo $ECHO_N "checking if libtool supports -prefer-non-pic flag... $ECHO_C" >&6; } 25270 mkdir ac_test_libtool; cd ac_test_libtool; ac_cv_libtool_non_pic=no 25271 echo "int g (int i); static int h (int i) {return g (i);} int f (int i) {return h (i);}" >f.c 25272 echo "int (* hook) (int) = 0; int g (int i) {if (hook) i = hook (i); return i + 1;}" >g.c 25273 ../libtool --mode=compile $CC $CFLAGS -prefer-non-pic \ 25274 -c f.c >/dev/null 2>&1 && \ 25275 ../libtool --mode=compile $CC $CFLAGS -prefer-non-pic \ 25276 -c g.c >/dev/null 2>&1 && \ 25277 ../libtool --mode=link $CC $CFLAGS -prefer-non-pic -o libfoo.la \ 25278 -rpath / f.lo g.lo >/dev/null 2>&1 && 25279 ac_cv_libtool_non_pic=yes 25280 cd ..; rm -fr ac_test_libtool; { echo "$as_me:$LINENO: result: $ac_cv_libtool_non_pic" >&5 25281echo "${ECHO_T}$ac_cv_libtool_non_pic" >&6; } 25282 if test x"$ac_cv_libtool_non_pic" = x"yes"; then 25283 LIBMPEG2_CFLAGS="$LIBMPEG2_CFLAGS -prefer-non-pic" 25284 else 25285 : 25286 fi 25287 ;; 25288esac 25289 25290 25291# Check whether --enable-accel-detect was given. 25292if test "${enable_accel_detect+set}" = set; then 25293 enableval=$enable_accel_detect; 25294fi 25295 25296if test x"$enable_accel_detect" != x"no"; then 25297 25298cat >>confdefs.h <<\_ACEOF 25299#define ACCEL_DETECT 25300_ACEOF 25301 25302fi 25303 25304{ echo "$as_me:$LINENO: checking for X" >&5 25305echo $ECHO_N "checking for X... $ECHO_C" >&6; } 25306 25307 25308# Check whether --with-x was given. 25309if test "${with_x+set}" = set; then 25310 withval=$with_x; 25311fi 25312 25313# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 25314if test "x$with_x" = xno; then 25315 # The user explicitly disabled X. 25316 have_x=disabled 25317else 25318 case $x_includes,$x_libraries in #( 25319 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 25320echo "$as_me: error: Cannot use X directory names containing '" >&2;} 25321 { (exit 1); exit 1; }; };; #( 25322 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 25323 echo $ECHO_N "(cached) $ECHO_C" >&6 25324else 25325 # One or both of the vars are not set, and there is no cached value. 25326ac_x_includes=no ac_x_libraries=no 25327rm -f -r conftest.dir 25328if mkdir conftest.dir; then 25329 cd conftest.dir 25330 cat >Imakefile <<'_ACEOF' 25331incroot: 25332 @echo incroot='${INCROOT}' 25333usrlibdir: 25334 @echo usrlibdir='${USRLIBDIR}' 25335libdir: 25336 @echo libdir='${LIBDIR}' 25337_ACEOF 25338 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 25339 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 25340 for ac_var in incroot usrlibdir libdir; do 25341 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 25342 done 25343 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 25344 for ac_extension in a so sl; do 25345 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 25346 test -f "$ac_im_libdir/libX11.$ac_extension"; then 25347 ac_im_usrlibdir=$ac_im_libdir; break 25348 fi 25349 done 25350 # Screen out bogus values from the imake configuration. They are 25351 # bogus both because they are the default anyway, and because 25352 # using them would break gcc on systems where it needs fixed includes. 25353 case $ac_im_incroot in 25354 /usr/include) ac_x_includes= ;; 25355 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 25356 esac 25357 case $ac_im_usrlibdir in 25358 /usr/lib | /lib) ;; 25359 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 25360 esac 25361 fi 25362 cd .. 25363 rm -f -r conftest.dir 25364fi 25365 25366# Standard set of common directories for X headers. 25367# Check X11 before X11Rn because it is often a symlink to the current release. 25368ac_x_header_dirs=' 25369/usr/X11/include 25370/usr/X11R6/include 25371/usr/X11R5/include 25372/usr/X11R4/include 25373 25374/usr/include/X11 25375/usr/include/X11R6 25376/usr/include/X11R5 25377/usr/include/X11R4 25378 25379/usr/local/X11/include 25380/usr/local/X11R6/include 25381/usr/local/X11R5/include 25382/usr/local/X11R4/include 25383 25384/usr/local/include/X11 25385/usr/local/include/X11R6 25386/usr/local/include/X11R5 25387/usr/local/include/X11R4 25388 25389/usr/X386/include 25390/usr/x386/include 25391/usr/XFree86/include/X11 25392 25393/usr/include 25394/usr/local/include 25395/usr/unsupported/include 25396/usr/athena/include 25397/usr/local/x11r5/include 25398/usr/lpp/Xamples/include 25399 25400/usr/openwin/include 25401/usr/openwin/share/include' 25402 25403if test "$ac_x_includes" = no; then 25404 # Guess where to find include files, by looking for Xlib.h. 25405 # First, try using that file with no special directory specified. 25406 cat >conftest.$ac_ext <<_ACEOF 25407/* confdefs.h. */ 25408_ACEOF 25409cat confdefs.h >>conftest.$ac_ext 25410cat >>conftest.$ac_ext <<_ACEOF 25411/* end confdefs.h. */ 25412#include <X11/Xlib.h> 25413_ACEOF 25414if { (ac_try="$ac_cpp conftest.$ac_ext" 25415case "(($ac_try" in 25416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25417 *) ac_try_echo=$ac_try;; 25418esac 25419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 25421 ac_status=$? 25422 grep -v '^ *+' conftest.er1 >conftest.err 25423 rm -f conftest.er1 25424 cat conftest.err >&5 25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25426 (exit $ac_status); } >/dev/null && { 25427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 25428 test ! -s conftest.err 25429 }; then 25430 # We can compile using X headers with no special include directory. 25431ac_x_includes= 25432else 25433 echo "$as_me: failed program was:" >&5 25434sed 's/^/| /' conftest.$ac_ext >&5 25435 25436 for ac_dir in $ac_x_header_dirs; do 25437 if test -r "$ac_dir/X11/Xlib.h"; then 25438 ac_x_includes=$ac_dir 25439 break 25440 fi 25441done 25442fi 25443 25444rm -f conftest.err conftest.$ac_ext 25445fi # $ac_x_includes = no 25446 25447if test "$ac_x_libraries" = no; then 25448 # Check for the libraries. 25449 # See if we find them without any special options. 25450 # Don't add to $LIBS permanently. 25451 ac_save_LIBS=$LIBS 25452 LIBS="-lX11 $LIBS" 25453 cat >conftest.$ac_ext <<_ACEOF 25454/* confdefs.h. */ 25455_ACEOF 25456cat confdefs.h >>conftest.$ac_ext 25457cat >>conftest.$ac_ext <<_ACEOF 25458/* end confdefs.h. */ 25459#include <X11/Xlib.h> 25460int 25461main () 25462{ 25463XrmInitialize () 25464 ; 25465 return 0; 25466} 25467_ACEOF 25468rm -f conftest.$ac_objext conftest$ac_exeext 25469if { (ac_try="$ac_link" 25470case "(($ac_try" in 25471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25472 *) ac_try_echo=$ac_try;; 25473esac 25474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25475 (eval "$ac_link") 2>conftest.er1 25476 ac_status=$? 25477 grep -v '^ *+' conftest.er1 >conftest.err 25478 rm -f conftest.er1 25479 cat conftest.err >&5 25480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25481 (exit $ac_status); } && { 25482 test -z "$ac_c_werror_flag" || 25483 test ! -s conftest.err 25484 } && test -s conftest$ac_exeext && 25485 $as_test_x conftest$ac_exeext; then 25486 LIBS=$ac_save_LIBS 25487# We can link X programs with no special library path. 25488ac_x_libraries= 25489else 25490 echo "$as_me: failed program was:" >&5 25491sed 's/^/| /' conftest.$ac_ext >&5 25492 25493 LIBS=$ac_save_LIBS 25494for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 25495do 25496 # Don't even attempt the hair of trying to link an X program! 25497 for ac_extension in a so sl; do 25498 if test -r "$ac_dir/libX11.$ac_extension"; then 25499 ac_x_libraries=$ac_dir 25500 break 2 25501 fi 25502 done 25503done 25504fi 25505 25506rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25507 conftest$ac_exeext conftest.$ac_ext 25508fi # $ac_x_libraries = no 25509 25510case $ac_x_includes,$ac_x_libraries in #( 25511 no,* | *,no | *\'*) 25512 # Didn't find X, or a directory has "'" in its name. 25513 ac_cv_have_x="have_x=no";; #( 25514 *) 25515 # Record where we found X for the cache. 25516 ac_cv_have_x="have_x=yes\ 25517 ac_x_includes='$ac_x_includes'\ 25518 ac_x_libraries='$ac_x_libraries'" 25519esac 25520fi 25521;; #( 25522 *) have_x=yes;; 25523 esac 25524 eval "$ac_cv_have_x" 25525fi # $with_x != no 25526 25527if test "$have_x" != yes; then 25528 { echo "$as_me:$LINENO: result: $have_x" >&5 25529echo "${ECHO_T}$have_x" >&6; } 25530 no_x=yes 25531else 25532 # If each of the values was on the command line, it overrides each guess. 25533 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 25534 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 25535 # Update the cache value to reflect the command line values. 25536 ac_cv_have_x="have_x=yes\ 25537 ac_x_includes='$x_includes'\ 25538 ac_x_libraries='$x_libraries'" 25539 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 25540echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 25541fi 25542 25543if test "$no_x" = yes; then 25544 # Not all programs may use this symbol, but it does not hurt to define it. 25545 25546cat >>confdefs.h <<\_ACEOF 25547#define X_DISPLAY_MISSING 1 25548_ACEOF 25549 25550 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 25551else 25552 if test -n "$x_includes"; then 25553 X_CFLAGS="$X_CFLAGS -I$x_includes" 25554 fi 25555 25556 # It would also be nice to do this for all -L options, not just this one. 25557 if test -n "$x_libraries"; then 25558 X_LIBS="$X_LIBS -L$x_libraries" 25559 # For Solaris; some versions of Sun CC require a space after -R and 25560 # others require no space. Words are not sufficient . . . . 25561 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 25562echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } 25563 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 25564 ac_xsave_c_werror_flag=$ac_c_werror_flag 25565 ac_c_werror_flag=yes 25566 cat >conftest.$ac_ext <<_ACEOF 25567/* confdefs.h. */ 25568_ACEOF 25569cat confdefs.h >>conftest.$ac_ext 25570cat >>conftest.$ac_ext <<_ACEOF 25571/* end confdefs.h. */ 25572 25573int 25574main () 25575{ 25576 25577 ; 25578 return 0; 25579} 25580_ACEOF 25581rm -f conftest.$ac_objext conftest$ac_exeext 25582if { (ac_try="$ac_link" 25583case "(($ac_try" in 25584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25585 *) ac_try_echo=$ac_try;; 25586esac 25587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25588 (eval "$ac_link") 2>conftest.er1 25589 ac_status=$? 25590 grep -v '^ *+' conftest.er1 >conftest.err 25591 rm -f conftest.er1 25592 cat conftest.err >&5 25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25594 (exit $ac_status); } && { 25595 test -z "$ac_c_werror_flag" || 25596 test ! -s conftest.err 25597 } && test -s conftest$ac_exeext && 25598 $as_test_x conftest$ac_exeext; then 25599 { echo "$as_me:$LINENO: result: no" >&5 25600echo "${ECHO_T}no" >&6; } 25601 X_LIBS="$X_LIBS -R$x_libraries" 25602else 25603 echo "$as_me: failed program was:" >&5 25604sed 's/^/| /' conftest.$ac_ext >&5 25605 25606 LIBS="$ac_xsave_LIBS -R $x_libraries" 25607 cat >conftest.$ac_ext <<_ACEOF 25608/* confdefs.h. */ 25609_ACEOF 25610cat confdefs.h >>conftest.$ac_ext 25611cat >>conftest.$ac_ext <<_ACEOF 25612/* end confdefs.h. */ 25613 25614int 25615main () 25616{ 25617 25618 ; 25619 return 0; 25620} 25621_ACEOF 25622rm -f conftest.$ac_objext conftest$ac_exeext 25623if { (ac_try="$ac_link" 25624case "(($ac_try" in 25625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25626 *) ac_try_echo=$ac_try;; 25627esac 25628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25629 (eval "$ac_link") 2>conftest.er1 25630 ac_status=$? 25631 grep -v '^ *+' conftest.er1 >conftest.err 25632 rm -f conftest.er1 25633 cat conftest.err >&5 25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25635 (exit $ac_status); } && { 25636 test -z "$ac_c_werror_flag" || 25637 test ! -s conftest.err 25638 } && test -s conftest$ac_exeext && 25639 $as_test_x conftest$ac_exeext; then 25640 { echo "$as_me:$LINENO: result: yes" >&5 25641echo "${ECHO_T}yes" >&6; } 25642 X_LIBS="$X_LIBS -R $x_libraries" 25643else 25644 echo "$as_me: failed program was:" >&5 25645sed 's/^/| /' conftest.$ac_ext >&5 25646 25647 { echo "$as_me:$LINENO: result: neither works" >&5 25648echo "${ECHO_T}neither works" >&6; } 25649fi 25650 25651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25652 conftest$ac_exeext conftest.$ac_ext 25653fi 25654 25655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25656 conftest$ac_exeext conftest.$ac_ext 25657 ac_c_werror_flag=$ac_xsave_c_werror_flag 25658 LIBS=$ac_xsave_LIBS 25659 fi 25660 25661 # Check for system-dependent libraries X programs must link with. 25662 # Do this before checking for the system-independent R6 libraries 25663 # (-lICE), since we may need -lsocket or whatever for X linking. 25664 25665 if test "$ISC" = yes; then 25666 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 25667 else 25668 # Martyn Johnson says this is needed for Ultrix, if the X 25669 # libraries were built with DECnet support. And Karl Berry says 25670 # the Alpha needs dnet_stub (dnet does not exist). 25671 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 25672 cat >conftest.$ac_ext <<_ACEOF 25673/* confdefs.h. */ 25674_ACEOF 25675cat confdefs.h >>conftest.$ac_ext 25676cat >>conftest.$ac_ext <<_ACEOF 25677/* end confdefs.h. */ 25678 25679/* Override any GCC internal prototype to avoid an error. 25680 Use char because int might match the return type of a GCC 25681 builtin and then its argument prototype would still apply. */ 25682#ifdef __cplusplus 25683extern "C" 25684#endif 25685char XOpenDisplay (); 25686int 25687main () 25688{ 25689return XOpenDisplay (); 25690 ; 25691 return 0; 25692} 25693_ACEOF 25694rm -f conftest.$ac_objext conftest$ac_exeext 25695if { (ac_try="$ac_link" 25696case "(($ac_try" in 25697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25698 *) ac_try_echo=$ac_try;; 25699esac 25700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25701 (eval "$ac_link") 2>conftest.er1 25702 ac_status=$? 25703 grep -v '^ *+' conftest.er1 >conftest.err 25704 rm -f conftest.er1 25705 cat conftest.err >&5 25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25707 (exit $ac_status); } && { 25708 test -z "$ac_c_werror_flag" || 25709 test ! -s conftest.err 25710 } && test -s conftest$ac_exeext && 25711 $as_test_x conftest$ac_exeext; then 25712 : 25713else 25714 echo "$as_me: failed program was:" >&5 25715sed 's/^/| /' conftest.$ac_ext >&5 25716 25717 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 25718echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } 25719if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 25720 echo $ECHO_N "(cached) $ECHO_C" >&6 25721else 25722 ac_check_lib_save_LIBS=$LIBS 25723LIBS="-ldnet $LIBS" 25724cat >conftest.$ac_ext <<_ACEOF 25725/* confdefs.h. */ 25726_ACEOF 25727cat confdefs.h >>conftest.$ac_ext 25728cat >>conftest.$ac_ext <<_ACEOF 25729/* end confdefs.h. */ 25730 25731/* Override any GCC internal prototype to avoid an error. 25732 Use char because int might match the return type of a GCC 25733 builtin and then its argument prototype would still apply. */ 25734#ifdef __cplusplus 25735extern "C" 25736#endif 25737char dnet_ntoa (); 25738int 25739main () 25740{ 25741return dnet_ntoa (); 25742 ; 25743 return 0; 25744} 25745_ACEOF 25746rm -f conftest.$ac_objext conftest$ac_exeext 25747if { (ac_try="$ac_link" 25748case "(($ac_try" in 25749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25750 *) ac_try_echo=$ac_try;; 25751esac 25752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25753 (eval "$ac_link") 2>conftest.er1 25754 ac_status=$? 25755 grep -v '^ *+' conftest.er1 >conftest.err 25756 rm -f conftest.er1 25757 cat conftest.err >&5 25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25759 (exit $ac_status); } && { 25760 test -z "$ac_c_werror_flag" || 25761 test ! -s conftest.err 25762 } && test -s conftest$ac_exeext && 25763 $as_test_x conftest$ac_exeext; then 25764 ac_cv_lib_dnet_dnet_ntoa=yes 25765else 25766 echo "$as_me: failed program was:" >&5 25767sed 's/^/| /' conftest.$ac_ext >&5 25768 25769 ac_cv_lib_dnet_dnet_ntoa=no 25770fi 25771 25772rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25773 conftest$ac_exeext conftest.$ac_ext 25774LIBS=$ac_check_lib_save_LIBS 25775fi 25776{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 25777echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } 25778if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 25779 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 25780fi 25781 25782 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 25783 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 25784echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } 25785if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 25786 echo $ECHO_N "(cached) $ECHO_C" >&6 25787else 25788 ac_check_lib_save_LIBS=$LIBS 25789LIBS="-ldnet_stub $LIBS" 25790cat >conftest.$ac_ext <<_ACEOF 25791/* confdefs.h. */ 25792_ACEOF 25793cat confdefs.h >>conftest.$ac_ext 25794cat >>conftest.$ac_ext <<_ACEOF 25795/* end confdefs.h. */ 25796 25797/* Override any GCC internal prototype to avoid an error. 25798 Use char because int might match the return type of a GCC 25799 builtin and then its argument prototype would still apply. */ 25800#ifdef __cplusplus 25801extern "C" 25802#endif 25803char dnet_ntoa (); 25804int 25805main () 25806{ 25807return dnet_ntoa (); 25808 ; 25809 return 0; 25810} 25811_ACEOF 25812rm -f conftest.$ac_objext conftest$ac_exeext 25813if { (ac_try="$ac_link" 25814case "(($ac_try" in 25815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25816 *) ac_try_echo=$ac_try;; 25817esac 25818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25819 (eval "$ac_link") 2>conftest.er1 25820 ac_status=$? 25821 grep -v '^ *+' conftest.er1 >conftest.err 25822 rm -f conftest.er1 25823 cat conftest.err >&5 25824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25825 (exit $ac_status); } && { 25826 test -z "$ac_c_werror_flag" || 25827 test ! -s conftest.err 25828 } && test -s conftest$ac_exeext && 25829 $as_test_x conftest$ac_exeext; then 25830 ac_cv_lib_dnet_stub_dnet_ntoa=yes 25831else 25832 echo "$as_me: failed program was:" >&5 25833sed 's/^/| /' conftest.$ac_ext >&5 25834 25835 ac_cv_lib_dnet_stub_dnet_ntoa=no 25836fi 25837 25838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25839 conftest$ac_exeext conftest.$ac_ext 25840LIBS=$ac_check_lib_save_LIBS 25841fi 25842{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 25843echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 25844if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 25845 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 25846fi 25847 25848 fi 25849fi 25850 25851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25852 conftest$ac_exeext conftest.$ac_ext 25853 LIBS="$ac_xsave_LIBS" 25854 25855 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 25856 # to get the SysV transport functions. 25857 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 25858 # needs -lnsl. 25859 # The nsl library prevents programs from opening the X display 25860 # on Irix 5.2, according to T.E. Dickey. 25861 # The functions gethostbyname, getservbyname, and inet_addr are 25862 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 25863 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 25864echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 25865if test "${ac_cv_func_gethostbyname+set}" = set; then 25866 echo $ECHO_N "(cached) $ECHO_C" >&6 25867else 25868 cat >conftest.$ac_ext <<_ACEOF 25869/* confdefs.h. */ 25870_ACEOF 25871cat confdefs.h >>conftest.$ac_ext 25872cat >>conftest.$ac_ext <<_ACEOF 25873/* end confdefs.h. */ 25874/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 25875 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 25876#define gethostbyname innocuous_gethostbyname 25877 25878/* System header to define __stub macros and hopefully few prototypes, 25879 which can conflict with char gethostbyname (); below. 25880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 25881 <limits.h> exists even on freestanding compilers. */ 25882 25883#ifdef __STDC__ 25884# include <limits.h> 25885#else 25886# include <assert.h> 25887#endif 25888 25889#undef gethostbyname 25890 25891/* Override any GCC internal prototype to avoid an error. 25892 Use char because int might match the return type of a GCC 25893 builtin and then its argument prototype would still apply. */ 25894#ifdef __cplusplus 25895extern "C" 25896#endif 25897char gethostbyname (); 25898/* The GNU C library defines this for functions which it implements 25899 to always fail with ENOSYS. Some functions are actually named 25900 something starting with __ and the normal name is an alias. */ 25901#if defined __stub_gethostbyname || defined __stub___gethostbyname 25902choke me 25903#endif 25904 25905int 25906main () 25907{ 25908return gethostbyname (); 25909 ; 25910 return 0; 25911} 25912_ACEOF 25913rm -f conftest.$ac_objext conftest$ac_exeext 25914if { (ac_try="$ac_link" 25915case "(($ac_try" in 25916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25917 *) ac_try_echo=$ac_try;; 25918esac 25919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25920 (eval "$ac_link") 2>conftest.er1 25921 ac_status=$? 25922 grep -v '^ *+' conftest.er1 >conftest.err 25923 rm -f conftest.er1 25924 cat conftest.err >&5 25925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25926 (exit $ac_status); } && { 25927 test -z "$ac_c_werror_flag" || 25928 test ! -s conftest.err 25929 } && test -s conftest$ac_exeext && 25930 $as_test_x conftest$ac_exeext; then 25931 ac_cv_func_gethostbyname=yes 25932else 25933 echo "$as_me: failed program was:" >&5 25934sed 's/^/| /' conftest.$ac_ext >&5 25935 25936 ac_cv_func_gethostbyname=no 25937fi 25938 25939rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 25940 conftest$ac_exeext conftest.$ac_ext 25941fi 25942{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 25943echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 25944 25945 if test $ac_cv_func_gethostbyname = no; then 25946 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 25947echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 25948if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 25949 echo $ECHO_N "(cached) $ECHO_C" >&6 25950else 25951 ac_check_lib_save_LIBS=$LIBS 25952LIBS="-lnsl $LIBS" 25953cat >conftest.$ac_ext <<_ACEOF 25954/* confdefs.h. */ 25955_ACEOF 25956cat confdefs.h >>conftest.$ac_ext 25957cat >>conftest.$ac_ext <<_ACEOF 25958/* end confdefs.h. */ 25959 25960/* Override any GCC internal prototype to avoid an error. 25961 Use char because int might match the return type of a GCC 25962 builtin and then its argument prototype would still apply. */ 25963#ifdef __cplusplus 25964extern "C" 25965#endif 25966char gethostbyname (); 25967int 25968main () 25969{ 25970return gethostbyname (); 25971 ; 25972 return 0; 25973} 25974_ACEOF 25975rm -f conftest.$ac_objext conftest$ac_exeext 25976if { (ac_try="$ac_link" 25977case "(($ac_try" in 25978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 25979 *) ac_try_echo=$ac_try;; 25980esac 25981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 25982 (eval "$ac_link") 2>conftest.er1 25983 ac_status=$? 25984 grep -v '^ *+' conftest.er1 >conftest.err 25985 rm -f conftest.er1 25986 cat conftest.err >&5 25987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25988 (exit $ac_status); } && { 25989 test -z "$ac_c_werror_flag" || 25990 test ! -s conftest.err 25991 } && test -s conftest$ac_exeext && 25992 $as_test_x conftest$ac_exeext; then 25993 ac_cv_lib_nsl_gethostbyname=yes 25994else 25995 echo "$as_me: failed program was:" >&5 25996sed 's/^/| /' conftest.$ac_ext >&5 25997 25998 ac_cv_lib_nsl_gethostbyname=no 25999fi 26000 26001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26002 conftest$ac_exeext conftest.$ac_ext 26003LIBS=$ac_check_lib_save_LIBS 26004fi 26005{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 26006echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 26007if test $ac_cv_lib_nsl_gethostbyname = yes; then 26008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 26009fi 26010 26011 if test $ac_cv_lib_nsl_gethostbyname = no; then 26012 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 26013echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 26014if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 26015 echo $ECHO_N "(cached) $ECHO_C" >&6 26016else 26017 ac_check_lib_save_LIBS=$LIBS 26018LIBS="-lbsd $LIBS" 26019cat >conftest.$ac_ext <<_ACEOF 26020/* confdefs.h. */ 26021_ACEOF 26022cat confdefs.h >>conftest.$ac_ext 26023cat >>conftest.$ac_ext <<_ACEOF 26024/* end confdefs.h. */ 26025 26026/* Override any GCC internal prototype to avoid an error. 26027 Use char because int might match the return type of a GCC 26028 builtin and then its argument prototype would still apply. */ 26029#ifdef __cplusplus 26030extern "C" 26031#endif 26032char gethostbyname (); 26033int 26034main () 26035{ 26036return gethostbyname (); 26037 ; 26038 return 0; 26039} 26040_ACEOF 26041rm -f conftest.$ac_objext conftest$ac_exeext 26042if { (ac_try="$ac_link" 26043case "(($ac_try" in 26044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26045 *) ac_try_echo=$ac_try;; 26046esac 26047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26048 (eval "$ac_link") 2>conftest.er1 26049 ac_status=$? 26050 grep -v '^ *+' conftest.er1 >conftest.err 26051 rm -f conftest.er1 26052 cat conftest.err >&5 26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26054 (exit $ac_status); } && { 26055 test -z "$ac_c_werror_flag" || 26056 test ! -s conftest.err 26057 } && test -s conftest$ac_exeext && 26058 $as_test_x conftest$ac_exeext; then 26059 ac_cv_lib_bsd_gethostbyname=yes 26060else 26061 echo "$as_me: failed program was:" >&5 26062sed 's/^/| /' conftest.$ac_ext >&5 26063 26064 ac_cv_lib_bsd_gethostbyname=no 26065fi 26066 26067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26068 conftest$ac_exeext conftest.$ac_ext 26069LIBS=$ac_check_lib_save_LIBS 26070fi 26071{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 26072echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 26073if test $ac_cv_lib_bsd_gethostbyname = yes; then 26074 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 26075fi 26076 26077 fi 26078 fi 26079 26080 # lieder@skyler.mavd.honeywell.com says without -lsocket, 26081 # socket/setsockopt and other routines are undefined under SCO ODT 26082 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 26083 # on later versions), says Simon Leinen: it contains gethostby* 26084 # variants that don't use the name server (or something). -lsocket 26085 # must be given before -lnsl if both are needed. We assume that 26086 # if connect needs -lnsl, so does gethostbyname. 26087 { echo "$as_me:$LINENO: checking for connect" >&5 26088echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 26089if test "${ac_cv_func_connect+set}" = set; then 26090 echo $ECHO_N "(cached) $ECHO_C" >&6 26091else 26092 cat >conftest.$ac_ext <<_ACEOF 26093/* confdefs.h. */ 26094_ACEOF 26095cat confdefs.h >>conftest.$ac_ext 26096cat >>conftest.$ac_ext <<_ACEOF 26097/* end confdefs.h. */ 26098/* Define connect to an innocuous variant, in case <limits.h> declares connect. 26099 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26100#define connect innocuous_connect 26101 26102/* System header to define __stub macros and hopefully few prototypes, 26103 which can conflict with char connect (); below. 26104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26105 <limits.h> exists even on freestanding compilers. */ 26106 26107#ifdef __STDC__ 26108# include <limits.h> 26109#else 26110# include <assert.h> 26111#endif 26112 26113#undef connect 26114 26115/* Override any GCC internal prototype to avoid an error. 26116 Use char because int might match the return type of a GCC 26117 builtin and then its argument prototype would still apply. */ 26118#ifdef __cplusplus 26119extern "C" 26120#endif 26121char connect (); 26122/* The GNU C library defines this for functions which it implements 26123 to always fail with ENOSYS. Some functions are actually named 26124 something starting with __ and the normal name is an alias. */ 26125#if defined __stub_connect || defined __stub___connect 26126choke me 26127#endif 26128 26129int 26130main () 26131{ 26132return connect (); 26133 ; 26134 return 0; 26135} 26136_ACEOF 26137rm -f conftest.$ac_objext conftest$ac_exeext 26138if { (ac_try="$ac_link" 26139case "(($ac_try" in 26140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26141 *) ac_try_echo=$ac_try;; 26142esac 26143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26144 (eval "$ac_link") 2>conftest.er1 26145 ac_status=$? 26146 grep -v '^ *+' conftest.er1 >conftest.err 26147 rm -f conftest.er1 26148 cat conftest.err >&5 26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26150 (exit $ac_status); } && { 26151 test -z "$ac_c_werror_flag" || 26152 test ! -s conftest.err 26153 } && test -s conftest$ac_exeext && 26154 $as_test_x conftest$ac_exeext; then 26155 ac_cv_func_connect=yes 26156else 26157 echo "$as_me: failed program was:" >&5 26158sed 's/^/| /' conftest.$ac_ext >&5 26159 26160 ac_cv_func_connect=no 26161fi 26162 26163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26164 conftest$ac_exeext conftest.$ac_ext 26165fi 26166{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 26167echo "${ECHO_T}$ac_cv_func_connect" >&6; } 26168 26169 if test $ac_cv_func_connect = no; then 26170 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 26171echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 26172if test "${ac_cv_lib_socket_connect+set}" = set; then 26173 echo $ECHO_N "(cached) $ECHO_C" >&6 26174else 26175 ac_check_lib_save_LIBS=$LIBS 26176LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 26177cat >conftest.$ac_ext <<_ACEOF 26178/* confdefs.h. */ 26179_ACEOF 26180cat confdefs.h >>conftest.$ac_ext 26181cat >>conftest.$ac_ext <<_ACEOF 26182/* end confdefs.h. */ 26183 26184/* Override any GCC internal prototype to avoid an error. 26185 Use char because int might match the return type of a GCC 26186 builtin and then its argument prototype would still apply. */ 26187#ifdef __cplusplus 26188extern "C" 26189#endif 26190char connect (); 26191int 26192main () 26193{ 26194return connect (); 26195 ; 26196 return 0; 26197} 26198_ACEOF 26199rm -f conftest.$ac_objext conftest$ac_exeext 26200if { (ac_try="$ac_link" 26201case "(($ac_try" in 26202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26203 *) ac_try_echo=$ac_try;; 26204esac 26205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26206 (eval "$ac_link") 2>conftest.er1 26207 ac_status=$? 26208 grep -v '^ *+' conftest.er1 >conftest.err 26209 rm -f conftest.er1 26210 cat conftest.err >&5 26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26212 (exit $ac_status); } && { 26213 test -z "$ac_c_werror_flag" || 26214 test ! -s conftest.err 26215 } && test -s conftest$ac_exeext && 26216 $as_test_x conftest$ac_exeext; then 26217 ac_cv_lib_socket_connect=yes 26218else 26219 echo "$as_me: failed program was:" >&5 26220sed 's/^/| /' conftest.$ac_ext >&5 26221 26222 ac_cv_lib_socket_connect=no 26223fi 26224 26225rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26226 conftest$ac_exeext conftest.$ac_ext 26227LIBS=$ac_check_lib_save_LIBS 26228fi 26229{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 26230echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 26231if test $ac_cv_lib_socket_connect = yes; then 26232 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 26233fi 26234 26235 fi 26236 26237 # Guillermo Gomez says -lposix is necessary on A/UX. 26238 { echo "$as_me:$LINENO: checking for remove" >&5 26239echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 26240if test "${ac_cv_func_remove+set}" = set; then 26241 echo $ECHO_N "(cached) $ECHO_C" >&6 26242else 26243 cat >conftest.$ac_ext <<_ACEOF 26244/* confdefs.h. */ 26245_ACEOF 26246cat confdefs.h >>conftest.$ac_ext 26247cat >>conftest.$ac_ext <<_ACEOF 26248/* end confdefs.h. */ 26249/* Define remove to an innocuous variant, in case <limits.h> declares remove. 26250 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26251#define remove innocuous_remove 26252 26253/* System header to define __stub macros and hopefully few prototypes, 26254 which can conflict with char remove (); below. 26255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26256 <limits.h> exists even on freestanding compilers. */ 26257 26258#ifdef __STDC__ 26259# include <limits.h> 26260#else 26261# include <assert.h> 26262#endif 26263 26264#undef remove 26265 26266/* Override any GCC internal prototype to avoid an error. 26267 Use char because int might match the return type of a GCC 26268 builtin and then its argument prototype would still apply. */ 26269#ifdef __cplusplus 26270extern "C" 26271#endif 26272char remove (); 26273/* The GNU C library defines this for functions which it implements 26274 to always fail with ENOSYS. Some functions are actually named 26275 something starting with __ and the normal name is an alias. */ 26276#if defined __stub_remove || defined __stub___remove 26277choke me 26278#endif 26279 26280int 26281main () 26282{ 26283return remove (); 26284 ; 26285 return 0; 26286} 26287_ACEOF 26288rm -f conftest.$ac_objext conftest$ac_exeext 26289if { (ac_try="$ac_link" 26290case "(($ac_try" in 26291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26292 *) ac_try_echo=$ac_try;; 26293esac 26294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26295 (eval "$ac_link") 2>conftest.er1 26296 ac_status=$? 26297 grep -v '^ *+' conftest.er1 >conftest.err 26298 rm -f conftest.er1 26299 cat conftest.err >&5 26300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26301 (exit $ac_status); } && { 26302 test -z "$ac_c_werror_flag" || 26303 test ! -s conftest.err 26304 } && test -s conftest$ac_exeext && 26305 $as_test_x conftest$ac_exeext; then 26306 ac_cv_func_remove=yes 26307else 26308 echo "$as_me: failed program was:" >&5 26309sed 's/^/| /' conftest.$ac_ext >&5 26310 26311 ac_cv_func_remove=no 26312fi 26313 26314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26315 conftest$ac_exeext conftest.$ac_ext 26316fi 26317{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 26318echo "${ECHO_T}$ac_cv_func_remove" >&6; } 26319 26320 if test $ac_cv_func_remove = no; then 26321 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 26322echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 26323if test "${ac_cv_lib_posix_remove+set}" = set; then 26324 echo $ECHO_N "(cached) $ECHO_C" >&6 26325else 26326 ac_check_lib_save_LIBS=$LIBS 26327LIBS="-lposix $LIBS" 26328cat >conftest.$ac_ext <<_ACEOF 26329/* confdefs.h. */ 26330_ACEOF 26331cat confdefs.h >>conftest.$ac_ext 26332cat >>conftest.$ac_ext <<_ACEOF 26333/* end confdefs.h. */ 26334 26335/* Override any GCC internal prototype to avoid an error. 26336 Use char because int might match the return type of a GCC 26337 builtin and then its argument prototype would still apply. */ 26338#ifdef __cplusplus 26339extern "C" 26340#endif 26341char remove (); 26342int 26343main () 26344{ 26345return remove (); 26346 ; 26347 return 0; 26348} 26349_ACEOF 26350rm -f conftest.$ac_objext conftest$ac_exeext 26351if { (ac_try="$ac_link" 26352case "(($ac_try" in 26353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26354 *) ac_try_echo=$ac_try;; 26355esac 26356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26357 (eval "$ac_link") 2>conftest.er1 26358 ac_status=$? 26359 grep -v '^ *+' conftest.er1 >conftest.err 26360 rm -f conftest.er1 26361 cat conftest.err >&5 26362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26363 (exit $ac_status); } && { 26364 test -z "$ac_c_werror_flag" || 26365 test ! -s conftest.err 26366 } && test -s conftest$ac_exeext && 26367 $as_test_x conftest$ac_exeext; then 26368 ac_cv_lib_posix_remove=yes 26369else 26370 echo "$as_me: failed program was:" >&5 26371sed 's/^/| /' conftest.$ac_ext >&5 26372 26373 ac_cv_lib_posix_remove=no 26374fi 26375 26376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26377 conftest$ac_exeext conftest.$ac_ext 26378LIBS=$ac_check_lib_save_LIBS 26379fi 26380{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 26381echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 26382if test $ac_cv_lib_posix_remove = yes; then 26383 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 26384fi 26385 26386 fi 26387 26388 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 26389 { echo "$as_me:$LINENO: checking for shmat" >&5 26390echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 26391if test "${ac_cv_func_shmat+set}" = set; then 26392 echo $ECHO_N "(cached) $ECHO_C" >&6 26393else 26394 cat >conftest.$ac_ext <<_ACEOF 26395/* confdefs.h. */ 26396_ACEOF 26397cat confdefs.h >>conftest.$ac_ext 26398cat >>conftest.$ac_ext <<_ACEOF 26399/* end confdefs.h. */ 26400/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 26401 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 26402#define shmat innocuous_shmat 26403 26404/* System header to define __stub macros and hopefully few prototypes, 26405 which can conflict with char shmat (); below. 26406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 26407 <limits.h> exists even on freestanding compilers. */ 26408 26409#ifdef __STDC__ 26410# include <limits.h> 26411#else 26412# include <assert.h> 26413#endif 26414 26415#undef shmat 26416 26417/* Override any GCC internal prototype to avoid an error. 26418 Use char because int might match the return type of a GCC 26419 builtin and then its argument prototype would still apply. */ 26420#ifdef __cplusplus 26421extern "C" 26422#endif 26423char shmat (); 26424/* The GNU C library defines this for functions which it implements 26425 to always fail with ENOSYS. Some functions are actually named 26426 something starting with __ and the normal name is an alias. */ 26427#if defined __stub_shmat || defined __stub___shmat 26428choke me 26429#endif 26430 26431int 26432main () 26433{ 26434return shmat (); 26435 ; 26436 return 0; 26437} 26438_ACEOF 26439rm -f conftest.$ac_objext conftest$ac_exeext 26440if { (ac_try="$ac_link" 26441case "(($ac_try" in 26442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26443 *) ac_try_echo=$ac_try;; 26444esac 26445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26446 (eval "$ac_link") 2>conftest.er1 26447 ac_status=$? 26448 grep -v '^ *+' conftest.er1 >conftest.err 26449 rm -f conftest.er1 26450 cat conftest.err >&5 26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26452 (exit $ac_status); } && { 26453 test -z "$ac_c_werror_flag" || 26454 test ! -s conftest.err 26455 } && test -s conftest$ac_exeext && 26456 $as_test_x conftest$ac_exeext; then 26457 ac_cv_func_shmat=yes 26458else 26459 echo "$as_me: failed program was:" >&5 26460sed 's/^/| /' conftest.$ac_ext >&5 26461 26462 ac_cv_func_shmat=no 26463fi 26464 26465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26466 conftest$ac_exeext conftest.$ac_ext 26467fi 26468{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 26469echo "${ECHO_T}$ac_cv_func_shmat" >&6; } 26470 26471 if test $ac_cv_func_shmat = no; then 26472 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 26473echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 26474if test "${ac_cv_lib_ipc_shmat+set}" = set; then 26475 echo $ECHO_N "(cached) $ECHO_C" >&6 26476else 26477 ac_check_lib_save_LIBS=$LIBS 26478LIBS="-lipc $LIBS" 26479cat >conftest.$ac_ext <<_ACEOF 26480/* confdefs.h. */ 26481_ACEOF 26482cat confdefs.h >>conftest.$ac_ext 26483cat >>conftest.$ac_ext <<_ACEOF 26484/* end confdefs.h. */ 26485 26486/* Override any GCC internal prototype to avoid an error. 26487 Use char because int might match the return type of a GCC 26488 builtin and then its argument prototype would still apply. */ 26489#ifdef __cplusplus 26490extern "C" 26491#endif 26492char shmat (); 26493int 26494main () 26495{ 26496return shmat (); 26497 ; 26498 return 0; 26499} 26500_ACEOF 26501rm -f conftest.$ac_objext conftest$ac_exeext 26502if { (ac_try="$ac_link" 26503case "(($ac_try" in 26504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26505 *) ac_try_echo=$ac_try;; 26506esac 26507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26508 (eval "$ac_link") 2>conftest.er1 26509 ac_status=$? 26510 grep -v '^ *+' conftest.er1 >conftest.err 26511 rm -f conftest.er1 26512 cat conftest.err >&5 26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26514 (exit $ac_status); } && { 26515 test -z "$ac_c_werror_flag" || 26516 test ! -s conftest.err 26517 } && test -s conftest$ac_exeext && 26518 $as_test_x conftest$ac_exeext; then 26519 ac_cv_lib_ipc_shmat=yes 26520else 26521 echo "$as_me: failed program was:" >&5 26522sed 's/^/| /' conftest.$ac_ext >&5 26523 26524 ac_cv_lib_ipc_shmat=no 26525fi 26526 26527rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26528 conftest$ac_exeext conftest.$ac_ext 26529LIBS=$ac_check_lib_save_LIBS 26530fi 26531{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 26532echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 26533if test $ac_cv_lib_ipc_shmat = yes; then 26534 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 26535fi 26536 26537 fi 26538 fi 26539 26540 # Check for libraries that X11R6 Xt/Xaw programs need. 26541 ac_save_LDFLAGS=$LDFLAGS 26542 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 26543 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 26544 # check for ICE first), but we must link in the order -lSM -lICE or 26545 # we get undefined symbols. So assume we have SM if we have ICE. 26546 # These have to be linked with before -lX11, unlike the other 26547 # libraries we check for below, so use a different variable. 26548 # John Interrante, Karl Berry 26549 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 26550echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 26551if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 26552 echo $ECHO_N "(cached) $ECHO_C" >&6 26553else 26554 ac_check_lib_save_LIBS=$LIBS 26555LIBS="-lICE $X_EXTRA_LIBS $LIBS" 26556cat >conftest.$ac_ext <<_ACEOF 26557/* confdefs.h. */ 26558_ACEOF 26559cat confdefs.h >>conftest.$ac_ext 26560cat >>conftest.$ac_ext <<_ACEOF 26561/* end confdefs.h. */ 26562 26563/* Override any GCC internal prototype to avoid an error. 26564 Use char because int might match the return type of a GCC 26565 builtin and then its argument prototype would still apply. */ 26566#ifdef __cplusplus 26567extern "C" 26568#endif 26569char IceConnectionNumber (); 26570int 26571main () 26572{ 26573return IceConnectionNumber (); 26574 ; 26575 return 0; 26576} 26577_ACEOF 26578rm -f conftest.$ac_objext conftest$ac_exeext 26579if { (ac_try="$ac_link" 26580case "(($ac_try" in 26581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26582 *) ac_try_echo=$ac_try;; 26583esac 26584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26585 (eval "$ac_link") 2>conftest.er1 26586 ac_status=$? 26587 grep -v '^ *+' conftest.er1 >conftest.err 26588 rm -f conftest.er1 26589 cat conftest.err >&5 26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26591 (exit $ac_status); } && { 26592 test -z "$ac_c_werror_flag" || 26593 test ! -s conftest.err 26594 } && test -s conftest$ac_exeext && 26595 $as_test_x conftest$ac_exeext; then 26596 ac_cv_lib_ICE_IceConnectionNumber=yes 26597else 26598 echo "$as_me: failed program was:" >&5 26599sed 's/^/| /' conftest.$ac_ext >&5 26600 26601 ac_cv_lib_ICE_IceConnectionNumber=no 26602fi 26603 26604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26605 conftest$ac_exeext conftest.$ac_ext 26606LIBS=$ac_check_lib_save_LIBS 26607fi 26608{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 26609echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 26610if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 26611 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 26612fi 26613 26614 LDFLAGS=$ac_save_LDFLAGS 26615 26616fi 26617 26618if test x"$no_x" != x"yes"; then 26619 { echo "$as_me:$LINENO: checking for XShmCreateImage in -lXext" >&5 26620echo $ECHO_N "checking for XShmCreateImage in -lXext... $ECHO_C" >&6; } 26621if test "${ac_cv_lib_Xext_XShmCreateImage+set}" = set; then 26622 echo $ECHO_N "(cached) $ECHO_C" >&6 26623else 26624 ac_check_lib_save_LIBS=$LIBS 26625LIBS="-lXext $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lX11 $LIBS" 26626cat >conftest.$ac_ext <<_ACEOF 26627/* confdefs.h. */ 26628_ACEOF 26629cat confdefs.h >>conftest.$ac_ext 26630cat >>conftest.$ac_ext <<_ACEOF 26631/* end confdefs.h. */ 26632 26633/* Override any GCC internal prototype to avoid an error. 26634 Use char because int might match the return type of a GCC 26635 builtin and then its argument prototype would still apply. */ 26636#ifdef __cplusplus 26637extern "C" 26638#endif 26639char XShmCreateImage (); 26640int 26641main () 26642{ 26643return XShmCreateImage (); 26644 ; 26645 return 0; 26646} 26647_ACEOF 26648rm -f conftest.$ac_objext conftest$ac_exeext 26649if { (ac_try="$ac_link" 26650case "(($ac_try" in 26651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26652 *) ac_try_echo=$ac_try;; 26653esac 26654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26655 (eval "$ac_link") 2>conftest.er1 26656 ac_status=$? 26657 grep -v '^ *+' conftest.er1 >conftest.err 26658 rm -f conftest.er1 26659 cat conftest.err >&5 26660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26661 (exit $ac_status); } && { 26662 test -z "$ac_c_werror_flag" || 26663 test ! -s conftest.err 26664 } && test -s conftest$ac_exeext && 26665 $as_test_x conftest$ac_exeext; then 26666 ac_cv_lib_Xext_XShmCreateImage=yes 26667else 26668 echo "$as_me: failed program was:" >&5 26669sed 's/^/| /' conftest.$ac_ext >&5 26670 26671 ac_cv_lib_Xext_XShmCreateImage=no 26672fi 26673 26674rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26675 conftest$ac_exeext conftest.$ac_ext 26676LIBS=$ac_check_lib_save_LIBS 26677fi 26678{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmCreateImage" >&5 26679echo "${ECHO_T}$ac_cv_lib_Xext_XShmCreateImage" >&6; } 26680if test $ac_cv_lib_Xext_XShmCreateImage = yes; then 26681 26682cat >>confdefs.h <<\_ACEOF 26683#define LIBVO_X11 26684_ACEOF 26685 26686 LIBVO_CFLAGS="$LIBVO_CFLAGS $X_CFLAGS" 26687 LIBVO_LIBS="$LIBVO_LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lXext -lX11" 26688 { echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5 26689echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6; } 26690if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then 26691 echo $ECHO_N "(cached) $ECHO_C" >&6 26692else 26693 ac_check_lib_save_LIBS=$LIBS 26694LIBS="-lXv $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lXext -lX11 $LIBS" 26695cat >conftest.$ac_ext <<_ACEOF 26696/* confdefs.h. */ 26697_ACEOF 26698cat confdefs.h >>conftest.$ac_ext 26699cat >>conftest.$ac_ext <<_ACEOF 26700/* end confdefs.h. */ 26701 26702/* Override any GCC internal prototype to avoid an error. 26703 Use char because int might match the return type of a GCC 26704 builtin and then its argument prototype would still apply. */ 26705#ifdef __cplusplus 26706extern "C" 26707#endif 26708char XvShmCreateImage (); 26709int 26710main () 26711{ 26712return XvShmCreateImage (); 26713 ; 26714 return 0; 26715} 26716_ACEOF 26717rm -f conftest.$ac_objext conftest$ac_exeext 26718if { (ac_try="$ac_link" 26719case "(($ac_try" in 26720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26721 *) ac_try_echo=$ac_try;; 26722esac 26723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26724 (eval "$ac_link") 2>conftest.er1 26725 ac_status=$? 26726 grep -v '^ *+' conftest.er1 >conftest.err 26727 rm -f conftest.er1 26728 cat conftest.err >&5 26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26730 (exit $ac_status); } && { 26731 test -z "$ac_c_werror_flag" || 26732 test ! -s conftest.err 26733 } && test -s conftest$ac_exeext && 26734 $as_test_x conftest$ac_exeext; then 26735 ac_cv_lib_Xv_XvShmCreateImage=yes 26736else 26737 echo "$as_me: failed program was:" >&5 26738sed 's/^/| /' conftest.$ac_ext >&5 26739 26740 ac_cv_lib_Xv_XvShmCreateImage=no 26741fi 26742 26743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 26744 conftest$ac_exeext conftest.$ac_ext 26745LIBS=$ac_check_lib_save_LIBS 26746fi 26747{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5 26748echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6; } 26749if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then 26750 26751cat >>confdefs.h <<\_ACEOF 26752#define LIBVO_XV 26753_ACEOF 26754 26755 LIBVO_LIBS="$LIBVO_LIBS -lXv" 26756fi 26757 26758fi 26759 26760fi 26761 26762# Check whether --enable-directx was given. 26763if test "${enable_directx+set}" = set; then 26764 enableval=$enable_directx; 26765fi 26766 26767case $enable_directx in 26768 ""|yes) if test "${ac_cv_header_ddraw_h+set}" = set; then 26769 { echo "$as_me:$LINENO: checking for ddraw.h" >&5 26770echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; } 26771if test "${ac_cv_header_ddraw_h+set}" = set; then 26772 echo $ECHO_N "(cached) $ECHO_C" >&6 26773fi 26774{ echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5 26775echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; } 26776else 26777 # Is the header compilable? 26778{ echo "$as_me:$LINENO: checking ddraw.h usability" >&5 26779echo $ECHO_N "checking ddraw.h usability... $ECHO_C" >&6; } 26780cat >conftest.$ac_ext <<_ACEOF 26781/* confdefs.h. */ 26782_ACEOF 26783cat confdefs.h >>conftest.$ac_ext 26784cat >>conftest.$ac_ext <<_ACEOF 26785/* end confdefs.h. */ 26786$ac_includes_default 26787#include <ddraw.h> 26788_ACEOF 26789rm -f conftest.$ac_objext 26790if { (ac_try="$ac_compile" 26791case "(($ac_try" in 26792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26793 *) ac_try_echo=$ac_try;; 26794esac 26795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26796 (eval "$ac_compile") 2>conftest.er1 26797 ac_status=$? 26798 grep -v '^ *+' conftest.er1 >conftest.err 26799 rm -f conftest.er1 26800 cat conftest.err >&5 26801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26802 (exit $ac_status); } && { 26803 test -z "$ac_c_werror_flag" || 26804 test ! -s conftest.err 26805 } && test -s conftest.$ac_objext; then 26806 ac_header_compiler=yes 26807else 26808 echo "$as_me: failed program was:" >&5 26809sed 's/^/| /' conftest.$ac_ext >&5 26810 26811 ac_header_compiler=no 26812fi 26813 26814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26815{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 26816echo "${ECHO_T}$ac_header_compiler" >&6; } 26817 26818# Is the header present? 26819{ echo "$as_me:$LINENO: checking ddraw.h presence" >&5 26820echo $ECHO_N "checking ddraw.h presence... $ECHO_C" >&6; } 26821cat >conftest.$ac_ext <<_ACEOF 26822/* confdefs.h. */ 26823_ACEOF 26824cat confdefs.h >>conftest.$ac_ext 26825cat >>conftest.$ac_ext <<_ACEOF 26826/* end confdefs.h. */ 26827#include <ddraw.h> 26828_ACEOF 26829if { (ac_try="$ac_cpp conftest.$ac_ext" 26830case "(($ac_try" in 26831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 26832 *) ac_try_echo=$ac_try;; 26833esac 26834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 26835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 26836 ac_status=$? 26837 grep -v '^ *+' conftest.er1 >conftest.err 26838 rm -f conftest.er1 26839 cat conftest.err >&5 26840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26841 (exit $ac_status); } >/dev/null && { 26842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 26843 test ! -s conftest.err 26844 }; then 26845 ac_header_preproc=yes 26846else 26847 echo "$as_me: failed program was:" >&5 26848sed 's/^/| /' conftest.$ac_ext >&5 26849 26850 ac_header_preproc=no 26851fi 26852 26853rm -f conftest.err conftest.$ac_ext 26854{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 26855echo "${ECHO_T}$ac_header_preproc" >&6; } 26856 26857# So? What about this header? 26858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 26859 yes:no: ) 26860 { echo "$as_me:$LINENO: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&5 26861echo "$as_me: WARNING: ddraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 26862 { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the compiler's result" >&5 26863echo "$as_me: WARNING: ddraw.h: proceeding with the compiler's result" >&2;} 26864 ac_header_preproc=yes 26865 ;; 26866 no:yes:* ) 26867 { echo "$as_me:$LINENO: WARNING: ddraw.h: present but cannot be compiled" >&5 26868echo "$as_me: WARNING: ddraw.h: present but cannot be compiled" >&2;} 26869 { echo "$as_me:$LINENO: WARNING: ddraw.h: check for missing prerequisite headers?" >&5 26870echo "$as_me: WARNING: ddraw.h: check for missing prerequisite headers?" >&2;} 26871 { echo "$as_me:$LINENO: WARNING: ddraw.h: see the Autoconf documentation" >&5 26872echo "$as_me: WARNING: ddraw.h: see the Autoconf documentation" >&2;} 26873 { echo "$as_me:$LINENO: WARNING: ddraw.h: section \"Present But Cannot Be Compiled\"" >&5 26874echo "$as_me: WARNING: ddraw.h: section \"Present But Cannot Be Compiled\"" >&2;} 26875 { echo "$as_me:$LINENO: WARNING: ddraw.h: proceeding with the preprocessor's result" >&5 26876echo "$as_me: WARNING: ddraw.h: proceeding with the preprocessor's result" >&2;} 26877 { echo "$as_me:$LINENO: WARNING: ddraw.h: in the future, the compiler will take precedence" >&5 26878echo "$as_me: WARNING: ddraw.h: in the future, the compiler will take precedence" >&2;} 26879 26880 ;; 26881esac 26882{ echo "$as_me:$LINENO: checking for ddraw.h" >&5 26883echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; } 26884if test "${ac_cv_header_ddraw_h+set}" = set; then 26885 echo $ECHO_N "(cached) $ECHO_C" >&6 26886else 26887 ac_cv_header_ddraw_h=$ac_header_preproc 26888fi 26889{ echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5 26890echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; } 26891 26892fi 26893if test $ac_cv_header_ddraw_h = yes; then 26894 26895cat >>confdefs.h <<\_ACEOF 26896#define LIBVO_DX 26897_ACEOF 26898 26899 LIBVO_LIBS="$LIBVO_LIBS -lgdi32" 26900fi 26901 26902;; 26903 no) ;; 26904 *) if test -f "$enable_directx/ddraw.h"; then 26905 26906cat >>confdefs.h <<\_ACEOF 26907#define LIBVO_DX 26908_ACEOF 26909 26910 LIBVO_CFLAGS="$LIBVO_CFLAGS -I$enable_directx" 26911 LIBVO_LIBS="$LIBVO_LIBS -lgdi32" 26912 else 26913 { { echo "$as_me:$LINENO: error: Cannot find $enable_directx/ddraw.h" >&5 26914echo "$as_me: error: Cannot find $enable_directx/ddraw.h" >&2;} 26915 { (exit 1); exit 1; }; } 26916 fi;; 26917esac 26918 26919# Check whether --enable-sdl was given. 26920if test "${enable_sdl+set}" = set; then 26921 enableval=$enable_sdl; 26922fi 26923 26924if test x"$enable_sdl" != x"no"; then 26925 # Extract the first word of "sdl-config", so it can be a program name with args. 26926set dummy sdl-config; ac_word=$2 26927{ echo "$as_me:$LINENO: checking for $ac_word" >&5 26928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 26929if test "${ac_cv_prog_SDLCONFIG+set}" = set; then 26930 echo $ECHO_N "(cached) $ECHO_C" >&6 26931else 26932 if test -n "$SDLCONFIG"; then 26933 ac_cv_prog_SDLCONFIG="$SDLCONFIG" # Let the user override the test. 26934else 26935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26936for as_dir in $PATH 26937do 26938 IFS=$as_save_IFS 26939 test -z "$as_dir" && as_dir=. 26940 for ac_exec_ext in '' $ac_executable_extensions; do 26941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 26942 ac_cv_prog_SDLCONFIG="yes" 26943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 26944 break 2 26945 fi 26946done 26947done 26948IFS=$as_save_IFS 26949 26950fi 26951fi 26952SDLCONFIG=$ac_cv_prog_SDLCONFIG 26953if test -n "$SDLCONFIG"; then 26954 { echo "$as_me:$LINENO: result: $SDLCONFIG" >&5 26955echo "${ECHO_T}$SDLCONFIG" >&6; } 26956else 26957 { echo "$as_me:$LINENO: result: no" >&5 26958echo "${ECHO_T}no" >&6; } 26959fi 26960 26961 26962 if test x"$SDLCONFIG" = x"yes"; then 26963 26964cat >>confdefs.h <<\_ACEOF 26965#define LIBVO_SDL 26966_ACEOF 26967 26968 LIBVO_CFLAGS="$LIBVO_CFLAGS `sdl-config --cflags`" 26969 LIBVO_LIBS="$LIBVO_LIBS `sdl-config --libs`" 26970 fi 26971fi 26972 26973 26974 26975 26976# Check whether --enable-warnings was given. 26977if test "${enable_warnings+set}" = set; then 26978 enableval=$enable_warnings; 26979fi 26980 26981if test x"$enable_warnings" = x"yes" -a x"$GCC" = x"yes"; then 26982 TRY_CFLAGS="$OPT_CFLAGS -Werror" 26983 { echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5 26984echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; } 26985 SAVE_CFLAGS="$CFLAGS" 26986 CFLAGS="$TRY_CFLAGS $CFLAGS" 26987 cat >conftest.$ac_ext <<_ACEOF 26988/* confdefs.h. */ 26989_ACEOF 26990cat confdefs.h >>conftest.$ac_ext 26991cat >>conftest.$ac_ext <<_ACEOF 26992/* end confdefs.h. */ 26993 26994int 26995main () 26996{ 26997 26998 ; 26999 return 0; 27000} 27001_ACEOF 27002rm -f conftest.$ac_objext 27003if { (ac_try="$ac_compile" 27004case "(($ac_try" in 27005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27006 *) ac_try_echo=$ac_try;; 27007esac 27008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27009 (eval "$ac_compile") 2>conftest.er1 27010 ac_status=$? 27011 grep -v '^ *+' conftest.er1 >conftest.err 27012 rm -f conftest.er1 27013 cat conftest.err >&5 27014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27015 (exit $ac_status); } && { 27016 test -z "$ac_c_werror_flag" || 27017 test ! -s conftest.err 27018 } && test -s conftest.$ac_objext; then 27019 ac_cv_try_cflags_ok=yes 27020else 27021 echo "$as_me: failed program was:" >&5 27022sed 's/^/| /' conftest.$ac_ext >&5 27023 27024 ac_cv_try_cflags_ok=no 27025fi 27026 27027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27028 CFLAGS="$SAVE_CFLAGS" 27029 { echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 27030echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6; } 27031 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 27032 OPT_CFLAGS="$TRY_CFLAGS" 27033 else 27034 : 27035 fi 27036elif test x"$TENDRA" = x"yes"; then 27037 OPT_CFLAGS="$OPT_CFLAGS -DTenDRA_check" 27038fi 27039 27040MPEG2DEC_CFLAGS="$OPT_CFLAGS" 27041 27042# Check whether --enable-gprof was given. 27043if test "${enable_gprof+set}" = set; then 27044 enableval=$enable_gprof; 27045fi 27046 27047if test x"$enable_gprof" = x"yes"; then 27048 27049cat >>confdefs.h <<\_ACEOF 27050#define MPEG2DEC_GPROF 27051_ACEOF 27052 27053 MPEG2DEC_CFLAGS=`echo "$MPEG2DEC_CFLAGS"|sed "s/-fomit-frame-pointer//g"` 27054 MPEG2DEC_CFLAGS="$MPEG2DEC_CFLAGS -p" 27055fi 27056 27057 27058 27059SAV_CFLAGS=$CFLAGS; 27060 if test x"$GCC" = xyes; then CFLAGS="$CFLAGS -Werror"; fi 27061 { echo "$as_me:$LINENO: checking __attribute__ ((aligned ())) support" >&5 27062echo $ECHO_N "checking __attribute__ ((aligned ())) support... $ECHO_C" >&6; } 27063if test "${ac_cv_c_attribute_aligned+set}" = set; then 27064 echo $ECHO_N "(cached) $ECHO_C" >&6 27065else 27066 ac_cv_c_attribute_aligned=0 27067 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do 27068 cat >conftest.$ac_ext <<_ACEOF 27069/* confdefs.h. */ 27070_ACEOF 27071cat confdefs.h >>conftest.$ac_ext 27072cat >>conftest.$ac_ext <<_ACEOF 27073/* end confdefs.h. */ 27074 27075int 27076main () 27077{ 27078static struct s { 27079 char a; 27080 char b __attribute__ ((aligned($ac_cv_c_attr_align_try))); 27081 } S = {0, 0}; 27082 switch (1) { 27083 case 0: 27084 case (long)(&((struct s *)0)->b) == $ac_cv_c_attr_align_try: 27085 return 0; 27086 } 27087 return (long)&S; 27088 ; 27089 return 0; 27090} 27091_ACEOF 27092rm -f conftest.$ac_objext 27093if { (ac_try="$ac_compile" 27094case "(($ac_try" in 27095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27096 *) ac_try_echo=$ac_try;; 27097esac 27098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 27099 (eval "$ac_compile") 2>conftest.er1 27100 ac_status=$? 27101 grep -v '^ *+' conftest.er1 >conftest.err 27102 rm -f conftest.er1 27103 cat conftest.err >&5 27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27105 (exit $ac_status); } && { 27106 test -z "$ac_c_werror_flag" || 27107 test ! -s conftest.err 27108 } && test -s conftest.$ac_objext; then 27109 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try 27110else 27111 echo "$as_me: failed program was:" >&5 27112sed 's/^/| /' conftest.$ac_ext >&5 27113 27114 27115fi 27116 27117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27118 done 27119fi 27120{ echo "$as_me:$LINENO: result: $ac_cv_c_attribute_aligned" >&5 27121echo "${ECHO_T}$ac_cv_c_attribute_aligned" >&6; } 27122 if test x"$ac_cv_c_attribute_aligned" != x"0"; then 27123 27124cat >>confdefs.h <<_ACEOF 27125#define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned 27126_ACEOF 27127 27128 fi 27129 CFLAGS=$SAV_CFLAGS 27130 27131cat >confcache <<\_ACEOF 27132# This file is a shell script that caches the results of configure 27133# tests run on this system so they can be shared between configure 27134# scripts and configure runs, see configure's option --config-cache. 27135# It is not useful on other systems. If it contains results you don't 27136# want to keep, you may remove or edit it. 27137# 27138# config.status only pays attention to the cache file if you give it 27139# the --recheck option to rerun configure. 27140# 27141# `ac_cv_env_foo' variables (set or unset) will be overridden when 27142# loading this file, other *unset* `ac_cv_foo' will be assigned the 27143# following values. 27144 27145_ACEOF 27146 27147# The following way of writing the cache mishandles newlines in values, 27148# but we know of no workaround that is simple, portable, and efficient. 27149# So, we kill variables containing newlines. 27150# Ultrix sh set writes to stderr and can't be redirected directly, 27151# and sets the high bit in the cache file unless we assign to the vars. 27152( 27153 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 27154 eval ac_val=\$$ac_var 27155 case $ac_val in #( 27156 *${as_nl}*) 27157 case $ac_var in #( 27158 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 27159echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 27160 esac 27161 case $ac_var in #( 27162 _ | IFS | as_nl) ;; #( 27163 *) $as_unset $ac_var ;; 27164 esac ;; 27165 esac 27166 done 27167 27168 (set) 2>&1 | 27169 case $as_nl`(ac_space=' '; set) 2>&1` in #( 27170 *${as_nl}ac_space=\ *) 27171 # `set' does not quote correctly, so add quotes (double-quote 27172 # substitution turns \\\\ into \\, and sed turns \\ into \). 27173 sed -n \ 27174 "s/'/'\\\\''/g; 27175 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 27176 ;; #( 27177 *) 27178 # `set' quotes correctly as required by POSIX, so do not add quotes. 27179 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 27180 ;; 27181 esac | 27182 sort 27183) | 27184 sed ' 27185 /^ac_cv_env_/b end 27186 t clear 27187 :clear 27188 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 27189 t end 27190 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 27191 :end' >>confcache 27192if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 27193 if test -w "$cache_file"; then 27194 test "x$cache_file" != "x/dev/null" && 27195 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 27196echo "$as_me: updating cache $cache_file" >&6;} 27197 cat confcache >$cache_file 27198 else 27199 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 27200echo "$as_me: not updating unwritable cache $cache_file" >&6;} 27201 fi 27202fi 27203rm -f confcache 27204 27205test "x$prefix" = xNONE && prefix=$ac_default_prefix 27206# Let make expand exec_prefix. 27207test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 27208 27209DEFS=-DHAVE_CONFIG_H 27210 27211ac_libobjs= 27212ac_ltlibobjs= 27213for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 27214 # 1. Remove the extension, and $U if already installed. 27215 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 27216 ac_i=`echo "$ac_i" | sed "$ac_script"` 27217 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 27218 # will be set to the directory where LIBOBJS objects are built. 27219 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 27220 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 27221done 27222LIBOBJS=$ac_libobjs 27223 27224LTLIBOBJS=$ac_ltlibobjs 27225 27226 27227if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 27228 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 27229Usually this means the macro was only invoked conditionally." >&5 27230echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 27231Usually this means the macro was only invoked conditionally." >&2;} 27232 { (exit 1); exit 1; }; } 27233fi 27234if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 27235 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 27236Usually this means the macro was only invoked conditionally." >&5 27237echo "$as_me: error: conditional \"AMDEP\" was never defined. 27238Usually this means the macro was only invoked conditionally." >&2;} 27239 { (exit 1); exit 1; }; } 27240fi 27241if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27242 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 27243Usually this means the macro was only invoked conditionally." >&5 27244echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 27245Usually this means the macro was only invoked conditionally." >&2;} 27246 { (exit 1); exit 1; }; } 27247fi 27248if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 27249 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined. 27250Usually this means the macro was only invoked conditionally." >&5 27251echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined. 27252Usually this means the macro was only invoked conditionally." >&2;} 27253 { (exit 1); exit 1; }; } 27254fi 27255if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then 27256 { { echo "$as_me:$LINENO: error: conditional \"ARCH_ARM\" was never defined. 27257Usually this means the macro was only invoked conditionally." >&5 27258echo "$as_me: error: conditional \"ARCH_ARM\" was never defined. 27259Usually this means the macro was only invoked conditionally." >&2;} 27260 { (exit 1); exit 1; }; } 27261fi 27262if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 27263 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 27264Usually this means the macro was only invoked conditionally." >&5 27265echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 27266Usually this means the macro was only invoked conditionally." >&2;} 27267 { (exit 1); exit 1; }; } 27268fi 27269 27270: ${CONFIG_STATUS=./config.status} 27271ac_clean_files_save=$ac_clean_files 27272ac_clean_files="$ac_clean_files $CONFIG_STATUS" 27273{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 27274echo "$as_me: creating $CONFIG_STATUS" >&6;} 27275cat >$CONFIG_STATUS <<_ACEOF 27276#! $SHELL 27277# Generated by $as_me. 27278# Run this file to recreate the current configuration. 27279# Compiler output produced by configure, useful for debugging 27280# configure, is in config.log if it exists. 27281 27282debug=false 27283ac_cs_recheck=false 27284ac_cs_silent=false 27285SHELL=\${CONFIG_SHELL-$SHELL} 27286_ACEOF 27287 27288cat >>$CONFIG_STATUS <<\_ACEOF 27289## --------------------- ## 27290## M4sh Initialization. ## 27291## --------------------- ## 27292 27293# Be more Bourne compatible 27294DUALCASE=1; export DUALCASE # for MKS sh 27295if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 27296 emulate sh 27297 NULLCMD=: 27298 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 27299 # is contrary to our usage. Disable this feature. 27300 alias -g '${1+"$@"}'='"$@"' 27301 setopt NO_GLOB_SUBST 27302else 27303 case `(set -o) 2>/dev/null` in 27304 *posix*) set -o posix ;; 27305esac 27306 27307fi 27308 27309 27310 27311 27312# PATH needs CR 27313# Avoid depending upon Character Ranges. 27314as_cr_letters='abcdefghijklmnopqrstuvwxyz' 27315as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 27316as_cr_Letters=$as_cr_letters$as_cr_LETTERS 27317as_cr_digits='0123456789' 27318as_cr_alnum=$as_cr_Letters$as_cr_digits 27319 27320# The user is always right. 27321if test "${PATH_SEPARATOR+set}" != set; then 27322 echo "#! /bin/sh" >conf$$.sh 27323 echo "exit 0" >>conf$$.sh 27324 chmod +x conf$$.sh 27325 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 27326 PATH_SEPARATOR=';' 27327 else 27328 PATH_SEPARATOR=: 27329 fi 27330 rm -f conf$$.sh 27331fi 27332 27333# Support unset when possible. 27334if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 27335 as_unset=unset 27336else 27337 as_unset=false 27338fi 27339 27340 27341# IFS 27342# We need space, tab and new line, in precisely that order. Quoting is 27343# there to prevent editors from complaining about space-tab. 27344# (If _AS_PATH_WALK were called with IFS unset, it would disable word 27345# splitting by setting IFS to empty value.) 27346as_nl=' 27347' 27348IFS=" "" $as_nl" 27349 27350# Find who we are. Look in the path if we contain no directory separator. 27351case $0 in 27352 *[\\/]* ) as_myself=$0 ;; 27353 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27354for as_dir in $PATH 27355do 27356 IFS=$as_save_IFS 27357 test -z "$as_dir" && as_dir=. 27358 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 27359done 27360IFS=$as_save_IFS 27361 27362 ;; 27363esac 27364# We did not find ourselves, most probably we were run as `sh COMMAND' 27365# in which case we are not to be found in the path. 27366if test "x$as_myself" = x; then 27367 as_myself=$0 27368fi 27369if test ! -f "$as_myself"; then 27370 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 27371 { (exit 1); exit 1; } 27372fi 27373 27374# Work around bugs in pre-3.0 UWIN ksh. 27375for as_var in ENV MAIL MAILPATH 27376do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 27377done 27378PS1='$ ' 27379PS2='> ' 27380PS4='+ ' 27381 27382# NLS nuisances. 27383for as_var in \ 27384 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 27385 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 27386 LC_TELEPHONE LC_TIME 27387do 27388 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 27389 eval $as_var=C; export $as_var 27390 else 27391 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 27392 fi 27393done 27394 27395# Required to use basename. 27396if expr a : '\(a\)' >/dev/null 2>&1 && 27397 test "X`expr 00001 : '.*\(...\)'`" = X001; then 27398 as_expr=expr 27399else 27400 as_expr=false 27401fi 27402 27403if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 27404 as_basename=basename 27405else 27406 as_basename=false 27407fi 27408 27409 27410# Name of the executable. 27411as_me=`$as_basename -- "$0" || 27412$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 27413 X"$0" : 'X\(//\)$' \| \ 27414 X"$0" : 'X\(/\)' \| . 2>/dev/null || 27415echo X/"$0" | 27416 sed '/^.*\/\([^/][^/]*\)\/*$/{ 27417 s//\1/ 27418 q 27419 } 27420 /^X\/\(\/\/\)$/{ 27421 s//\1/ 27422 q 27423 } 27424 /^X\/\(\/\).*/{ 27425 s//\1/ 27426 q 27427 } 27428 s/.*/./; q'` 27429 27430# CDPATH. 27431$as_unset CDPATH 27432 27433 27434 27435 as_lineno_1=$LINENO 27436 as_lineno_2=$LINENO 27437 test "x$as_lineno_1" != "x$as_lineno_2" && 27438 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 27439 27440 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 27441 # uniformly replaced by the line number. The first 'sed' inserts a 27442 # line-number line after each line using $LINENO; the second 'sed' 27443 # does the real work. The second script uses 'N' to pair each 27444 # line-number line with the line containing $LINENO, and appends 27445 # trailing '-' during substitution so that $LINENO is not a special 27446 # case at line end. 27447 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 27448 # scripts with optimization help from Paolo Bonzini. Blame Lee 27449 # E. McMahon (1931-1989) for sed's syntax. :-) 27450 sed -n ' 27451 p 27452 /[$]LINENO/= 27453 ' <$as_myself | 27454 sed ' 27455 s/[$]LINENO.*/&-/ 27456 t lineno 27457 b 27458 :lineno 27459 N 27460 :loop 27461 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 27462 t loop 27463 s/-\n.*// 27464 ' >$as_me.lineno && 27465 chmod +x "$as_me.lineno" || 27466 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 27467 { (exit 1); exit 1; }; } 27468 27469 # Don't try to exec as it changes $[0], causing all sort of problems 27470 # (the dirname of $[0] is not the place where we might find the 27471 # original and so on. Autoconf is especially sensitive to this). 27472 . "./$as_me.lineno" 27473 # Exit status is that of the last command. 27474 exit 27475} 27476 27477 27478if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 27479 as_dirname=dirname 27480else 27481 as_dirname=false 27482fi 27483 27484ECHO_C= ECHO_N= ECHO_T= 27485case `echo -n x` in 27486-n*) 27487 case `echo 'x\c'` in 27488 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 27489 *) ECHO_C='\c';; 27490 esac;; 27491*) 27492 ECHO_N='-n';; 27493esac 27494 27495if expr a : '\(a\)' >/dev/null 2>&1 && 27496 test "X`expr 00001 : '.*\(...\)'`" = X001; then 27497 as_expr=expr 27498else 27499 as_expr=false 27500fi 27501 27502rm -f conf$$ conf$$.exe conf$$.file 27503if test -d conf$$.dir; then 27504 rm -f conf$$.dir/conf$$.file 27505else 27506 rm -f conf$$.dir 27507 mkdir conf$$.dir 27508fi 27509echo >conf$$.file 27510if ln -s conf$$.file conf$$ 2>/dev/null; then 27511 as_ln_s='ln -s' 27512 # ... but there are two gotchas: 27513 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 27514 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 27515 # In both cases, we have to default to `cp -p'. 27516 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 27517 as_ln_s='cp -p' 27518elif ln conf$$.file conf$$ 2>/dev/null; then 27519 as_ln_s=ln 27520else 27521 as_ln_s='cp -p' 27522fi 27523rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 27524rmdir conf$$.dir 2>/dev/null 27525 27526if mkdir -p . 2>/dev/null; then 27527 as_mkdir_p=: 27528else 27529 test -d ./-p && rmdir ./-p 27530 as_mkdir_p=false 27531fi 27532 27533if test -x / >/dev/null 2>&1; then 27534 as_test_x='test -x' 27535else 27536 if ls -dL / >/dev/null 2>&1; then 27537 as_ls_L_option=L 27538 else 27539 as_ls_L_option= 27540 fi 27541 as_test_x=' 27542 eval sh -c '\'' 27543 if test -d "$1"; then 27544 test -d "$1/."; 27545 else 27546 case $1 in 27547 -*)set "./$1";; 27548 esac; 27549 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 27550 ???[sx]*):;;*)false;;esac;fi 27551 '\'' sh 27552 ' 27553fi 27554as_executable_p=$as_test_x 27555 27556# Sed expression to map a string onto a valid CPP name. 27557as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 27558 27559# Sed expression to map a string onto a valid variable name. 27560as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 27561 27562 27563exec 6>&1 27564 27565# Save the log message, to keep $[0] and so on meaningful, and to 27566# report actual input values of CONFIG_FILES etc. instead of their 27567# values after options handling. 27568ac_log=" 27569This file was extended by libmpeg2 $as_me 0.5.1, which was 27570generated by GNU Autoconf 2.61. Invocation command line was 27571 27572 CONFIG_FILES = $CONFIG_FILES 27573 CONFIG_HEADERS = $CONFIG_HEADERS 27574 CONFIG_LINKS = $CONFIG_LINKS 27575 CONFIG_COMMANDS = $CONFIG_COMMANDS 27576 $ $0 $@ 27577 27578on `(hostname || uname -n) 2>/dev/null | sed 1q` 27579" 27580 27581_ACEOF 27582 27583cat >>$CONFIG_STATUS <<_ACEOF 27584# Files that config.status was made for. 27585config_files="$ac_config_files" 27586config_headers="$ac_config_headers" 27587config_commands="$ac_config_commands" 27588 27589_ACEOF 27590 27591cat >>$CONFIG_STATUS <<\_ACEOF 27592ac_cs_usage="\ 27593\`$as_me' instantiates files from templates according to the 27594current configuration. 27595 27596Usage: $0 [OPTIONS] [FILE]... 27597 27598 -h, --help print this help, then exit 27599 -V, --version print version number and configuration settings, then exit 27600 -q, --quiet do not print progress messages 27601 -d, --debug don't remove temporary files 27602 --recheck update $as_me by reconfiguring in the same conditions 27603 --file=FILE[:TEMPLATE] 27604 instantiate the configuration file FILE 27605 --header=FILE[:TEMPLATE] 27606 instantiate the configuration header FILE 27607 27608Configuration files: 27609$config_files 27610 27611Configuration headers: 27612$config_headers 27613 27614Configuration commands: 27615$config_commands 27616 27617Report bugs to <bug-autoconf@gnu.org>." 27618 27619_ACEOF 27620cat >>$CONFIG_STATUS <<_ACEOF 27621ac_cs_version="\\ 27622libmpeg2 config.status 0.5.1 27623configured by $0, generated by GNU Autoconf 2.61, 27624 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 27625 27626Copyright (C) 2006 Free Software Foundation, Inc. 27627This config.status script is free software; the Free Software Foundation 27628gives unlimited permission to copy, distribute and modify it." 27629 27630ac_pwd='$ac_pwd' 27631srcdir='$srcdir' 27632INSTALL='$INSTALL' 27633MKDIR_P='$MKDIR_P' 27634_ACEOF 27635 27636cat >>$CONFIG_STATUS <<\_ACEOF 27637# If no file are specified by the user, then we need to provide default 27638# value. By we need to know if files were specified by the user. 27639ac_need_defaults=: 27640while test $# != 0 27641do 27642 case $1 in 27643 --*=*) 27644 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27645 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 27646 ac_shift=: 27647 ;; 27648 *) 27649 ac_option=$1 27650 ac_optarg=$2 27651 ac_shift=shift 27652 ;; 27653 esac 27654 27655 case $ac_option in 27656 # Handling of the options. 27657 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 27658 ac_cs_recheck=: ;; 27659 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 27660 echo "$ac_cs_version"; exit ;; 27661 --debug | --debu | --deb | --de | --d | -d ) 27662 debug=: ;; 27663 --file | --fil | --fi | --f ) 27664 $ac_shift 27665 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 27666 ac_need_defaults=false;; 27667 --header | --heade | --head | --hea ) 27668 $ac_shift 27669 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 27670 ac_need_defaults=false;; 27671 --he | --h) 27672 # Conflict between --help and --header 27673 { echo "$as_me: error: ambiguous option: $1 27674Try \`$0 --help' for more information." >&2 27675 { (exit 1); exit 1; }; };; 27676 --help | --hel | -h ) 27677 echo "$ac_cs_usage"; exit ;; 27678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 27679 | -silent | --silent | --silen | --sile | --sil | --si | --s) 27680 ac_cs_silent=: ;; 27681 27682 # This is an error. 27683 -*) { echo "$as_me: error: unrecognized option: $1 27684Try \`$0 --help' for more information." >&2 27685 { (exit 1); exit 1; }; } ;; 27686 27687 *) ac_config_targets="$ac_config_targets $1" 27688 ac_need_defaults=false ;; 27689 27690 esac 27691 shift 27692done 27693 27694ac_configure_extra_args= 27695 27696if $ac_cs_silent; then 27697 exec 6>/dev/null 27698 ac_configure_extra_args="$ac_configure_extra_args --silent" 27699fi 27700 27701_ACEOF 27702cat >>$CONFIG_STATUS <<_ACEOF 27703if \$ac_cs_recheck; then 27704 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 27705 CONFIG_SHELL=$SHELL 27706 export CONFIG_SHELL 27707 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 27708fi 27709 27710_ACEOF 27711cat >>$CONFIG_STATUS <<\_ACEOF 27712exec 5>>config.log 27713{ 27714 echo 27715 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 27716## Running $as_me. ## 27717_ASBOX 27718 echo "$ac_log" 27719} >&5 27720 27721_ACEOF 27722cat >>$CONFIG_STATUS <<_ACEOF 27723# 27724# INIT-COMMANDS 27725# 27726AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 27727# variables for create stdint.h replacement 27728PACKAGE="$PACKAGE" 27729VERSION="$VERSION" 27730ac_stdint_h="$ac_stdint_h" 27731_ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp` 27732ac_cv_stdint_message="$ac_cv_stdint_message" 27733ac_cv_header_stdint_t="$ac_cv_header_stdint_t" 27734ac_cv_header_stdint_x="$ac_cv_header_stdint_x" 27735ac_cv_header_stdint_o="$ac_cv_header_stdint_o" 27736ac_cv_header_stdint_u="$ac_cv_header_stdint_u" 27737ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 27738ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 27739ac_cv_stdint_char_model="$ac_cv_stdint_char_model" 27740ac_cv_stdint_long_model="$ac_cv_stdint_long_model" 27741ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 27742ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 27743ac_cv_type_intmax_t="$ac_cv_type_intmax_t" 27744 27745 27746_ACEOF 27747 27748cat >>$CONFIG_STATUS <<\_ACEOF 27749 27750# Handling of arguments. 27751for ac_config_target in $ac_config_targets 27752do 27753 case $ac_config_target in 27754 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 27755 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 27756 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 27757 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 27758 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 27759 "libmpeg2/Makefile") CONFIG_FILES="$CONFIG_FILES libmpeg2/Makefile" ;; 27760 "libmpeg2/convert/Makefile") CONFIG_FILES="$CONFIG_FILES libmpeg2/convert/Makefile" ;; 27761 "libvo/Makefile") CONFIG_FILES="$CONFIG_FILES libvo/Makefile" ;; 27762 "vc++/Makefile") CONFIG_FILES="$CONFIG_FILES vc++/Makefile" ;; 27763 "libmpeg2/libmpeg2.pc") CONFIG_FILES="$CONFIG_FILES libmpeg2/libmpeg2.pc" ;; 27764 "libmpeg2/convert/libmpeg2convert.pc") CONFIG_FILES="$CONFIG_FILES libmpeg2/convert/libmpeg2convert.pc" ;; 27765 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 27766 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 27767 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;; 27768 27769 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 27770echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 27771 { (exit 1); exit 1; }; };; 27772 esac 27773done 27774 27775 27776# If the user did not use the arguments to specify the items to instantiate, 27777# then the envvar interface is used. Set only those that are not. 27778# We use the long form for the default assignment because of an extremely 27779# bizarre bug on SunOS 4.1.3. 27780if $ac_need_defaults; then 27781 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 27782 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 27783 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 27784fi 27785 27786# Have a temporary directory for convenience. Make it in the build tree 27787# simply because there is no reason against having it here, and in addition, 27788# creating and moving files from /tmp can sometimes cause problems. 27789# Hook for its removal unless debugging. 27790# Note that there is a small window in which the directory will not be cleaned: 27791# after its creation but before its name has been assigned to `$tmp'. 27792$debug || 27793{ 27794 tmp= 27795 trap 'exit_status=$? 27796 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 27797' 0 27798 trap '{ (exit 1); exit 1; }' 1 2 13 15 27799} 27800# Create a (secure) tmp directory for tmp files. 27801 27802{ 27803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 27804 test -n "$tmp" && test -d "$tmp" 27805} || 27806{ 27807 tmp=./conf$$-$RANDOM 27808 (umask 077 && mkdir "$tmp") 27809} || 27810{ 27811 echo "$me: cannot create a temporary directory in ." >&2 27812 { (exit 1); exit 1; } 27813} 27814 27815# 27816# Set up the sed scripts for CONFIG_FILES section. 27817# 27818 27819# No need to generate the scripts if there are no CONFIG_FILES. 27820# This happens for instance when ./config.status config.h 27821if test -n "$CONFIG_FILES"; then 27822 27823_ACEOF 27824 27825 27826 27827ac_delim='%!_!# ' 27828for ac_last_try in false false false false false :; do 27829 cat >conf$$subs.sed <<_ACEOF 27830SHELL!$SHELL$ac_delim 27831PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 27832PACKAGE_NAME!$PACKAGE_NAME$ac_delim 27833PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 27834PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 27835PACKAGE_STRING!$PACKAGE_STRING$ac_delim 27836PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 27837exec_prefix!$exec_prefix$ac_delim 27838prefix!$prefix$ac_delim 27839program_transform_name!$program_transform_name$ac_delim 27840bindir!$bindir$ac_delim 27841sbindir!$sbindir$ac_delim 27842libexecdir!$libexecdir$ac_delim 27843datarootdir!$datarootdir$ac_delim 27844datadir!$datadir$ac_delim 27845sysconfdir!$sysconfdir$ac_delim 27846sharedstatedir!$sharedstatedir$ac_delim 27847localstatedir!$localstatedir$ac_delim 27848includedir!$includedir$ac_delim 27849oldincludedir!$oldincludedir$ac_delim 27850docdir!$docdir$ac_delim 27851infodir!$infodir$ac_delim 27852htmldir!$htmldir$ac_delim 27853dvidir!$dvidir$ac_delim 27854pdfdir!$pdfdir$ac_delim 27855psdir!$psdir$ac_delim 27856libdir!$libdir$ac_delim 27857localedir!$localedir$ac_delim 27858mandir!$mandir$ac_delim 27859DEFS!$DEFS$ac_delim 27860ECHO_C!$ECHO_C$ac_delim 27861ECHO_N!$ECHO_N$ac_delim 27862ECHO_T!$ECHO_T$ac_delim 27863LIBS!$LIBS$ac_delim 27864build_alias!$build_alias$ac_delim 27865host_alias!$host_alias$ac_delim 27866target_alias!$target_alias$ac_delim 27867build!$build$ac_delim 27868build_cpu!$build_cpu$ac_delim 27869build_vendor!$build_vendor$ac_delim 27870build_os!$build_os$ac_delim 27871host!$host$ac_delim 27872host_cpu!$host_cpu$ac_delim 27873host_vendor!$host_vendor$ac_delim 27874host_os!$host_os$ac_delim 27875INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 27876INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 27877INSTALL_DATA!$INSTALL_DATA$ac_delim 27878am__isrc!$am__isrc$ac_delim 27879CYGPATH_W!$CYGPATH_W$ac_delim 27880PACKAGE!$PACKAGE$ac_delim 27881VERSION!$VERSION$ac_delim 27882ACLOCAL!$ACLOCAL$ac_delim 27883AUTOCONF!$AUTOCONF$ac_delim 27884AUTOMAKE!$AUTOMAKE$ac_delim 27885AUTOHEADER!$AUTOHEADER$ac_delim 27886MAKEINFO!$MAKEINFO$ac_delim 27887install_sh!$install_sh$ac_delim 27888STRIP!$STRIP$ac_delim 27889INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 27890mkdir_p!$mkdir_p$ac_delim 27891AWK!$AWK$ac_delim 27892SET_MAKE!$SET_MAKE$ac_delim 27893am__leading_dot!$am__leading_dot$ac_delim 27894AMTAR!$AMTAR$ac_delim 27895am__tar!$am__tar$ac_delim 27896am__untar!$am__untar$ac_delim 27897MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 27898MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 27899MAINT!$MAINT$ac_delim 27900CC!$CC$ac_delim 27901CFLAGS!$CFLAGS$ac_delim 27902LDFLAGS!$LDFLAGS$ac_delim 27903CPPFLAGS!$CPPFLAGS$ac_delim 27904ac_ct_CC!$ac_ct_CC$ac_delim 27905EXEEXT!$EXEEXT$ac_delim 27906OBJEXT!$OBJEXT$ac_delim 27907DEPDIR!$DEPDIR$ac_delim 27908am__include!$am__include$ac_delim 27909am__quote!$am__quote$ac_delim 27910AMDEP_TRUE!$AMDEP_TRUE$ac_delim 27911AMDEP_FALSE!$AMDEP_FALSE$ac_delim 27912AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 27913CCDEPMODE!$CCDEPMODE$ac_delim 27914am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 27915am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 27916CPP!$CPP$ac_delim 27917GREP!$GREP$ac_delim 27918EGREP!$EGREP$ac_delim 27919CCAS!$CCAS$ac_delim 27920CCASFLAGS!$CCASFLAGS$ac_delim 27921CCASDEPMODE!$CCASDEPMODE$ac_delim 27922am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim 27923am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim 27924OPT_CFLAGS!$OPT_CFLAGS$ac_delim 27925ARCH_OPT_CFLAGS!$ARCH_OPT_CFLAGS$ac_delim 27926ARCH_ARM_TRUE!$ARCH_ARM_TRUE$ac_delim 27927_ACEOF 27928 27929 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 27930 break 27931 elif $ac_last_try; then 27932 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 27933echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 27934 { (exit 1); exit 1; }; } 27935 else 27936 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27937 fi 27938done 27939 27940ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 27941if test -n "$ac_eof"; then 27942 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 27943 ac_eof=`expr $ac_eof + 1` 27944fi 27945 27946cat >>$CONFIG_STATUS <<_ACEOF 27947cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 27948/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 27949_ACEOF 27950sed ' 27951s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 27952s/^/s,@/; s/!/@,|#_!!_#|/ 27953:n 27954t n 27955s/'"$ac_delim"'$/,g/; t 27956s/$/\\/; p 27957N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 27958' >>$CONFIG_STATUS <conf$$subs.sed 27959rm -f conf$$subs.sed 27960cat >>$CONFIG_STATUS <<_ACEOF 27961CEOF$ac_eof 27962_ACEOF 27963 27964 27965ac_delim='%!_!# ' 27966for ac_last_try in false false false false false :; do 27967 cat >conf$$subs.sed <<_ACEOF 27968ARCH_ARM_FALSE!$ARCH_ARM_FALSE$ac_delim 27969SED!$SED$ac_delim 27970LN_S!$LN_S$ac_delim 27971ECHO!$ECHO$ac_delim 27972AR!$AR$ac_delim 27973RANLIB!$RANLIB$ac_delim 27974DSYMUTIL!$DSYMUTIL$ac_delim 27975NMEDIT!$NMEDIT$ac_delim 27976DLLTOOL!$DLLTOOL$ac_delim 27977AS!$AS$ac_delim 27978OBJDUMP!$OBJDUMP$ac_delim 27979CXX!$CXX$ac_delim 27980CXXFLAGS!$CXXFLAGS$ac_delim 27981ac_ct_CXX!$ac_ct_CXX$ac_delim 27982CXXDEPMODE!$CXXDEPMODE$ac_delim 27983am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 27984am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 27985CXXCPP!$CXXCPP$ac_delim 27986F77!$F77$ac_delim 27987FFLAGS!$FFLAGS$ac_delim 27988ac_ct_F77!$ac_ct_F77$ac_delim 27989LIBTOOL!$LIBTOOL$ac_delim 27990AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim 27991LIBMPEG2_CFLAGS!$LIBMPEG2_CFLAGS$ac_delim 27992XMKMF!$XMKMF$ac_delim 27993X_CFLAGS!$X_CFLAGS$ac_delim 27994X_PRE_LIBS!$X_PRE_LIBS$ac_delim 27995X_LIBS!$X_LIBS$ac_delim 27996X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 27997SDLCONFIG!$SDLCONFIG$ac_delim 27998LIBVO_CFLAGS!$LIBVO_CFLAGS$ac_delim 27999LIBVO_LIBS!$LIBVO_LIBS$ac_delim 28000MPEG2DEC_CFLAGS!$MPEG2DEC_CFLAGS$ac_delim 28001LIBOBJS!$LIBOBJS$ac_delim 28002LTLIBOBJS!$LTLIBOBJS$ac_delim 28003_ACEOF 28004 28005 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then 28006 break 28007 elif $ac_last_try; then 28008 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 28009echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 28010 { (exit 1); exit 1; }; } 28011 else 28012 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 28013 fi 28014done 28015 28016ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 28017if test -n "$ac_eof"; then 28018 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 28019 ac_eof=`expr $ac_eof + 1` 28020fi 28021 28022cat >>$CONFIG_STATUS <<_ACEOF 28023cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 28024/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 28025_ACEOF 28026sed ' 28027s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 28028s/^/s,@/; s/!/@,|#_!!_#|/ 28029:n 28030t n 28031s/'"$ac_delim"'$/,g/; t 28032s/$/\\/; p 28033N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 28034' >>$CONFIG_STATUS <conf$$subs.sed 28035rm -f conf$$subs.sed 28036cat >>$CONFIG_STATUS <<_ACEOF 28037:end 28038s/|#_!!_#|//g 28039CEOF$ac_eof 28040_ACEOF 28041 28042 28043# VPATH may cause trouble with some makes, so we remove $(srcdir), 28044# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 28045# trailing colons and then remove the whole line if VPATH becomes empty 28046# (actually we leave an empty line to preserve line numbers). 28047if test "x$srcdir" = x.; then 28048 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 28049s/:*\$(srcdir):*/:/ 28050s/:*\${srcdir}:*/:/ 28051s/:*@srcdir@:*/:/ 28052s/^\([^=]*=[ ]*\):*/\1/ 28053s/:*$// 28054s/^[^=]*=[ ]*$// 28055}' 28056fi 28057 28058cat >>$CONFIG_STATUS <<\_ACEOF 28059fi # test -n "$CONFIG_FILES" 28060 28061 28062for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 28063do 28064 case $ac_tag in 28065 :[FHLC]) ac_mode=$ac_tag; continue;; 28066 esac 28067 case $ac_mode$ac_tag in 28068 :[FHL]*:*);; 28069 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 28070echo "$as_me: error: Invalid tag $ac_tag." >&2;} 28071 { (exit 1); exit 1; }; };; 28072 :[FH]-) ac_tag=-:-;; 28073 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 28074 esac 28075 ac_save_IFS=$IFS 28076 IFS=: 28077 set x $ac_tag 28078 IFS=$ac_save_IFS 28079 shift 28080 ac_file=$1 28081 shift 28082 28083 case $ac_mode in 28084 :L) ac_source=$1;; 28085 :[FH]) 28086 ac_file_inputs= 28087 for ac_f 28088 do 28089 case $ac_f in 28090 -) ac_f="$tmp/stdin";; 28091 *) # Look for the file first in the build tree, then in the source tree 28092 # (if the path is not absolute). The absolute path cannot be DOS-style, 28093 # because $ac_f cannot contain `:'. 28094 test -f "$ac_f" || 28095 case $ac_f in 28096 [\\/$]*) false;; 28097 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 28098 esac || 28099 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 28100echo "$as_me: error: cannot find input file: $ac_f" >&2;} 28101 { (exit 1); exit 1; }; };; 28102 esac 28103 ac_file_inputs="$ac_file_inputs $ac_f" 28104 done 28105 28106 # Let's still pretend it is `configure' which instantiates (i.e., don't 28107 # use $as_me), people would be surprised to read: 28108 # /* config.h. Generated by config.status. */ 28109 configure_input="Generated from "`IFS=: 28110 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 28111 if test x"$ac_file" != x-; then 28112 configure_input="$ac_file. $configure_input" 28113 { echo "$as_me:$LINENO: creating $ac_file" >&5 28114echo "$as_me: creating $ac_file" >&6;} 28115 fi 28116 28117 case $ac_tag in 28118 *:-:* | *:-) cat >"$tmp/stdin";; 28119 esac 28120 ;; 28121 esac 28122 28123 ac_dir=`$as_dirname -- "$ac_file" || 28124$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28125 X"$ac_file" : 'X\(//\)[^/]' \| \ 28126 X"$ac_file" : 'X\(//\)$' \| \ 28127 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 28128echo X"$ac_file" | 28129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28130 s//\1/ 28131 q 28132 } 28133 /^X\(\/\/\)[^/].*/{ 28134 s//\1/ 28135 q 28136 } 28137 /^X\(\/\/\)$/{ 28138 s//\1/ 28139 q 28140 } 28141 /^X\(\/\).*/{ 28142 s//\1/ 28143 q 28144 } 28145 s/.*/./; q'` 28146 { as_dir="$ac_dir" 28147 case $as_dir in #( 28148 -*) as_dir=./$as_dir;; 28149 esac 28150 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 28151 as_dirs= 28152 while :; do 28153 case $as_dir in #( 28154 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 28155 *) as_qdir=$as_dir;; 28156 esac 28157 as_dirs="'$as_qdir' $as_dirs" 28158 as_dir=`$as_dirname -- "$as_dir" || 28159$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28160 X"$as_dir" : 'X\(//\)[^/]' \| \ 28161 X"$as_dir" : 'X\(//\)$' \| \ 28162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 28163echo X"$as_dir" | 28164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28165 s//\1/ 28166 q 28167 } 28168 /^X\(\/\/\)[^/].*/{ 28169 s//\1/ 28170 q 28171 } 28172 /^X\(\/\/\)$/{ 28173 s//\1/ 28174 q 28175 } 28176 /^X\(\/\).*/{ 28177 s//\1/ 28178 q 28179 } 28180 s/.*/./; q'` 28181 test -d "$as_dir" && break 28182 done 28183 test -z "$as_dirs" || eval "mkdir $as_dirs" 28184 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 28185echo "$as_me: error: cannot create directory $as_dir" >&2;} 28186 { (exit 1); exit 1; }; }; } 28187 ac_builddir=. 28188 28189case "$ac_dir" in 28190.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 28191*) 28192 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 28193 # A ".." for each directory in $ac_dir_suffix. 28194 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 28195 case $ac_top_builddir_sub in 28196 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 28197 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 28198 esac ;; 28199esac 28200ac_abs_top_builddir=$ac_pwd 28201ac_abs_builddir=$ac_pwd$ac_dir_suffix 28202# for backward compatibility: 28203ac_top_builddir=$ac_top_build_prefix 28204 28205case $srcdir in 28206 .) # We are building in place. 28207 ac_srcdir=. 28208 ac_top_srcdir=$ac_top_builddir_sub 28209 ac_abs_top_srcdir=$ac_pwd ;; 28210 [\\/]* | ?:[\\/]* ) # Absolute name. 28211 ac_srcdir=$srcdir$ac_dir_suffix; 28212 ac_top_srcdir=$srcdir 28213 ac_abs_top_srcdir=$srcdir ;; 28214 *) # Relative name. 28215 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 28216 ac_top_srcdir=$ac_top_build_prefix$srcdir 28217 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 28218esac 28219ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 28220 28221 28222 case $ac_mode in 28223 :F) 28224 # 28225 # CONFIG_FILE 28226 # 28227 28228 case $INSTALL in 28229 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 28230 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 28231 esac 28232 ac_MKDIR_P=$MKDIR_P 28233 case $MKDIR_P in 28234 [\\/$]* | ?:[\\/]* ) ;; 28235 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 28236 esac 28237_ACEOF 28238 28239cat >>$CONFIG_STATUS <<\_ACEOF 28240# If the template does not know about datarootdir, expand it. 28241# FIXME: This hack should be removed a few years after 2.60. 28242ac_datarootdir_hack=; ac_datarootdir_seen= 28243 28244case `sed -n '/datarootdir/ { 28245 p 28246 q 28247} 28248/@datadir@/p 28249/@docdir@/p 28250/@infodir@/p 28251/@localedir@/p 28252/@mandir@/p 28253' $ac_file_inputs` in 28254*datarootdir*) ac_datarootdir_seen=yes;; 28255*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 28256 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 28257echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 28258_ACEOF 28259cat >>$CONFIG_STATUS <<_ACEOF 28260 ac_datarootdir_hack=' 28261 s&@datadir@&$datadir&g 28262 s&@docdir@&$docdir&g 28263 s&@infodir@&$infodir&g 28264 s&@localedir@&$localedir&g 28265 s&@mandir@&$mandir&g 28266 s&\\\${datarootdir}&$datarootdir&g' ;; 28267esac 28268_ACEOF 28269 28270# Neutralize VPATH when `$srcdir' = `.'. 28271# Shell code in configure.ac might set extrasub. 28272# FIXME: do we really want to maintain this feature? 28273cat >>$CONFIG_STATUS <<_ACEOF 28274 sed "$ac_vpsub 28275$extrasub 28276_ACEOF 28277cat >>$CONFIG_STATUS <<\_ACEOF 28278:t 28279/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 28280s&@configure_input@&$configure_input&;t t 28281s&@top_builddir@&$ac_top_builddir_sub&;t t 28282s&@srcdir@&$ac_srcdir&;t t 28283s&@abs_srcdir@&$ac_abs_srcdir&;t t 28284s&@top_srcdir@&$ac_top_srcdir&;t t 28285s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 28286s&@builddir@&$ac_builddir&;t t 28287s&@abs_builddir@&$ac_abs_builddir&;t t 28288s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 28289s&@INSTALL@&$ac_INSTALL&;t t 28290s&@MKDIR_P@&$ac_MKDIR_P&;t t 28291$ac_datarootdir_hack 28292" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 28293 28294test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 28295 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 28296 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 28297 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28298which seems to be undefined. Please make sure it is defined." >&5 28299echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28300which seems to be undefined. Please make sure it is defined." >&2;} 28301 28302 rm -f "$tmp/stdin" 28303 case $ac_file in 28304 -) cat "$tmp/out"; rm -f "$tmp/out";; 28305 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 28306 esac 28307 ;; 28308 :H) 28309 # 28310 # CONFIG_HEADER 28311 # 28312_ACEOF 28313 28314# Transform confdefs.h into a sed script `conftest.defines', that 28315# substitutes the proper values into config.h.in to produce config.h. 28316rm -f conftest.defines conftest.tail 28317# First, append a space to every undef/define line, to ease matching. 28318echo 's/$/ /' >conftest.defines 28319# Then, protect against being on the right side of a sed subst, or in 28320# an unquoted here document, in config.status. If some macros were 28321# called several times there might be several #defines for the same 28322# symbol, which is useless. But do not sort them, since the last 28323# AC_DEFINE must be honored. 28324ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 28325# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 28326# NAME is the cpp macro being defined, VALUE is the value it is being given. 28327# PARAMS is the parameter list in the macro definition--in most cases, it's 28328# just an empty string. 28329ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 28330ac_dB='\\)[ (].*,\\1define\\2' 28331ac_dC=' ' 28332ac_dD=' ,' 28333 28334uniq confdefs.h | 28335 sed -n ' 28336 t rset 28337 :rset 28338 s/^[ ]*#[ ]*define[ ][ ]*// 28339 t ok 28340 d 28341 :ok 28342 s/[\\&,]/\\&/g 28343 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 28344 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 28345 ' >>conftest.defines 28346 28347# Remove the space that was appended to ease matching. 28348# Then replace #undef with comments. This is necessary, for 28349# example, in the case of _POSIX_SOURCE, which is predefined and required 28350# on some systems where configure will not decide to define it. 28351# (The regexp can be short, since the line contains either #define or #undef.) 28352echo 's/ $// 28353s,^[ #]*u.*,/* & */,' >>conftest.defines 28354 28355# Break up conftest.defines: 28356ac_max_sed_lines=50 28357 28358# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 28359# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 28360# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 28361# et cetera. 28362ac_in='$ac_file_inputs' 28363ac_out='"$tmp/out1"' 28364ac_nxt='"$tmp/out2"' 28365 28366while : 28367do 28368 # Write a here document: 28369 cat >>$CONFIG_STATUS <<_ACEOF 28370 # First, check the format of the line: 28371 cat >"\$tmp/defines.sed" <<\\CEOF 28372/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 28373/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 28374b 28375:def 28376_ACEOF 28377 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 28378 echo 'CEOF 28379 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 28380 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 28381 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 28382 grep . conftest.tail >/dev/null || break 28383 rm -f conftest.defines 28384 mv conftest.tail conftest.defines 28385done 28386rm -f conftest.defines conftest.tail 28387 28388echo "ac_result=$ac_in" >>$CONFIG_STATUS 28389cat >>$CONFIG_STATUS <<\_ACEOF 28390 if test x"$ac_file" != x-; then 28391 echo "/* $configure_input */" >"$tmp/config.h" 28392 cat "$ac_result" >>"$tmp/config.h" 28393 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 28394 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 28395echo "$as_me: $ac_file is unchanged" >&6;} 28396 else 28397 rm -f $ac_file 28398 mv "$tmp/config.h" $ac_file 28399 fi 28400 else 28401 echo "/* $configure_input */" 28402 cat "$ac_result" 28403 fi 28404 rm -f "$tmp/out12" 28405# Compute $ac_file's index in $config_headers. 28406_am_arg=$ac_file 28407_am_stamp_count=1 28408for _am_header in $config_headers :; do 28409 case $_am_header in 28410 $_am_arg | $_am_arg:* ) 28411 break ;; 28412 * ) 28413 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 28414 esac 28415done 28416echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 28417$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28418 X"$_am_arg" : 'X\(//\)[^/]' \| \ 28419 X"$_am_arg" : 'X\(//\)$' \| \ 28420 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 28421echo X"$_am_arg" | 28422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28423 s//\1/ 28424 q 28425 } 28426 /^X\(\/\/\)[^/].*/{ 28427 s//\1/ 28428 q 28429 } 28430 /^X\(\/\/\)$/{ 28431 s//\1/ 28432 q 28433 } 28434 /^X\(\/\).*/{ 28435 s//\1/ 28436 q 28437 } 28438 s/.*/./; q'`/stamp-h$_am_stamp_count 28439 ;; 28440 28441 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 28442echo "$as_me: executing $ac_file commands" >&6;} 28443 ;; 28444 esac 28445 28446 28447 case $ac_file$ac_mode in 28448 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 28449 # Strip MF so we end up with the name of the file. 28450 mf=`echo "$mf" | sed -e 's/:.*$//'` 28451 # Check whether this is an Automake generated Makefile or not. 28452 # We used to match only the files named `Makefile.in', but 28453 # some people rename them; so instead we look at the file content. 28454 # Grep'ing the first line is not enough: some people post-process 28455 # each Makefile.in and add a new line on top of each file to say so. 28456 # Grep'ing the whole file is not good either: AIX grep has a line 28457 # limit of 2048, but all sed's we know have understand at least 4000. 28458 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 28459 dirpart=`$as_dirname -- "$mf" || 28460$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28461 X"$mf" : 'X\(//\)[^/]' \| \ 28462 X"$mf" : 'X\(//\)$' \| \ 28463 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 28464echo X"$mf" | 28465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28466 s//\1/ 28467 q 28468 } 28469 /^X\(\/\/\)[^/].*/{ 28470 s//\1/ 28471 q 28472 } 28473 /^X\(\/\/\)$/{ 28474 s//\1/ 28475 q 28476 } 28477 /^X\(\/\).*/{ 28478 s//\1/ 28479 q 28480 } 28481 s/.*/./; q'` 28482 else 28483 continue 28484 fi 28485 # Extract the definition of DEPDIR, am__include, and am__quote 28486 # from the Makefile without running `make'. 28487 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 28488 test -z "$DEPDIR" && continue 28489 am__include=`sed -n 's/^am__include = //p' < "$mf"` 28490 test -z "am__include" && continue 28491 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 28492 # When using ansi2knr, U may be empty or an underscore; expand it 28493 U=`sed -n 's/^U = //p' < "$mf"` 28494 # Find all dependency output files, they are included files with 28495 # $(DEPDIR) in their names. We invoke sed twice because it is the 28496 # simplest approach to changing $(DEPDIR) to its actual value in the 28497 # expansion. 28498 for file in `sed -n " 28499 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 28500 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 28501 # Make sure the directory exists. 28502 test -f "$dirpart/$file" && continue 28503 fdir=`$as_dirname -- "$file" || 28504$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28505 X"$file" : 'X\(//\)[^/]' \| \ 28506 X"$file" : 'X\(//\)$' \| \ 28507 X"$file" : 'X\(/\)' \| . 2>/dev/null || 28508echo X"$file" | 28509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28510 s//\1/ 28511 q 28512 } 28513 /^X\(\/\/\)[^/].*/{ 28514 s//\1/ 28515 q 28516 } 28517 /^X\(\/\/\)$/{ 28518 s//\1/ 28519 q 28520 } 28521 /^X\(\/\).*/{ 28522 s//\1/ 28523 q 28524 } 28525 s/.*/./; q'` 28526 { as_dir=$dirpart/$fdir 28527 case $as_dir in #( 28528 -*) as_dir=./$as_dir;; 28529 esac 28530 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 28531 as_dirs= 28532 while :; do 28533 case $as_dir in #( 28534 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 28535 *) as_qdir=$as_dir;; 28536 esac 28537 as_dirs="'$as_qdir' $as_dirs" 28538 as_dir=`$as_dirname -- "$as_dir" || 28539$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28540 X"$as_dir" : 'X\(//\)[^/]' \| \ 28541 X"$as_dir" : 'X\(//\)$' \| \ 28542 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 28543echo X"$as_dir" | 28544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28545 s//\1/ 28546 q 28547 } 28548 /^X\(\/\/\)[^/].*/{ 28549 s//\1/ 28550 q 28551 } 28552 /^X\(\/\/\)$/{ 28553 s//\1/ 28554 q 28555 } 28556 /^X\(\/\).*/{ 28557 s//\1/ 28558 q 28559 } 28560 s/.*/./; q'` 28561 test -d "$as_dir" && break 28562 done 28563 test -z "$as_dirs" || eval "mkdir $as_dirs" 28564 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 28565echo "$as_me: error: cannot create directory $as_dir" >&2;} 28566 { (exit 1); exit 1; }; }; } 28567 # echo "creating $dirpart/$file" 28568 echo '# dummy' > "$dirpart/$file" 28569 done 28570done 28571 ;; 28572 "$ac_stdint_h":C) 28573{ echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5 28574echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;} 28575ac_stdint=$tmp/_stdint.h 28576 28577echo "#ifndef" $_ac_stdint_h >$ac_stdint 28578echo "#define" $_ac_stdint_h "1" >>$ac_stdint 28579echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint 28580echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint 28581echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint 28582if test "_$ac_cv_header_stdint_t" != "_" ; then 28583echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint 28584fi 28585 28586cat >>$ac_stdint <<STDINT_EOF 28587 28588/* ................... shortcircuit part ........................... */ 28589 28590#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H 28591#include <stdint.h> 28592#else 28593#include <stddef.h> 28594 28595/* .................... configured part ............................ */ 28596 28597STDINT_EOF 28598 28599echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint 28600if test "_$ac_cv_header_stdint_x" != "_" ; then 28601 ac_header="$ac_cv_header_stdint_x" 28602 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint 28603else 28604 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint 28605fi 28606 28607echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint 28608if test "_$ac_cv_header_stdint_o" != "_" ; then 28609 ac_header="$ac_cv_header_stdint_o" 28610 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint 28611else 28612 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint 28613fi 28614 28615echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint 28616if test "_$ac_cv_header_stdint_u" != "_" ; then 28617 ac_header="$ac_cv_header_stdint_u" 28618 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint 28619else 28620 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint 28621fi 28622 28623echo "" >>$ac_stdint 28624 28625if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then 28626 echo "#include <$ac_header>" >>$ac_stdint 28627 echo "" >>$ac_stdint 28628fi fi 28629 28630echo "/* which 64bit typedef has been found */" >>$ac_stdint 28631if test "$ac_cv_type_uint64_t" = "yes" ; then 28632echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint 28633else 28634echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint 28635fi 28636if test "$ac_cv_type_u_int64_t" = "yes" ; then 28637echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint 28638else 28639echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint 28640fi 28641echo "" >>$ac_stdint 28642 28643echo "/* which type model has been detected */" >>$ac_stdint 28644if test "_$ac_cv_stdint_char_model" != "_" ; then 28645echo "#define _STDINT_CHAR_MODEL" "$ac_cv_stdint_char_model" >>$ac_stdint 28646echo "#define _STDINT_LONG_MODEL" "$ac_cv_stdint_long_model" >>$ac_stdint 28647else 28648echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint 28649echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint 28650fi 28651echo "" >>$ac_stdint 28652 28653echo "/* whether int_least types were detected */" >>$ac_stdint 28654if test "$ac_cv_type_int_least32_t" = "yes"; then 28655echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint 28656else 28657echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint 28658fi 28659echo "/* whether int_fast types were detected */" >>$ac_stdint 28660if test "$ac_cv_type_int_fast32_t" = "yes"; then 28661echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint 28662else 28663echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint 28664fi 28665echo "/* whether intmax_t type was detected */" >>$ac_stdint 28666if test "$ac_cv_type_intmax_t" = "yes"; then 28667echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint 28668else 28669echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint 28670fi 28671echo "" >>$ac_stdint 28672 28673 cat >>$ac_stdint <<STDINT_EOF 28674/* .................... detections part ............................ */ 28675 28676/* whether we need to define bitspecific types from compiler base types */ 28677#ifndef _STDINT_HEADER_INTPTR 28678#ifndef _STDINT_HEADER_UINT32 28679#ifndef _STDINT_HEADER_U_INT32 28680#define _STDINT_NEED_INT_MODEL_T 28681#else 28682#define _STDINT_HAVE_U_INT_TYPES 28683#endif 28684#endif 28685#endif 28686 28687#ifdef _STDINT_HAVE_U_INT_TYPES 28688#undef _STDINT_NEED_INT_MODEL_T 28689#endif 28690 28691#ifdef _STDINT_CHAR_MODEL 28692#if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124 28693#ifndef _STDINT_BYTE_MODEL 28694#define _STDINT_BYTE_MODEL 12 28695#endif 28696#endif 28697#endif 28698 28699#ifndef _STDINT_HAVE_INT_LEAST32_T 28700#define _STDINT_NEED_INT_LEAST_T 28701#endif 28702 28703#ifndef _STDINT_HAVE_INT_FAST32_T 28704#define _STDINT_NEED_INT_FAST_T 28705#endif 28706 28707#ifndef _STDINT_HEADER_INTPTR 28708#define _STDINT_NEED_INTPTR_T 28709#ifndef _STDINT_HAVE_INTMAX_T 28710#define _STDINT_NEED_INTMAX_T 28711#endif 28712#endif 28713 28714 28715/* .................... definition part ............................ */ 28716 28717/* some system headers have good uint64_t */ 28718#ifndef _HAVE_UINT64_T 28719#if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T 28720#define _HAVE_UINT64_T 28721#elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T 28722#define _HAVE_UINT64_T 28723typedef u_int64_t uint64_t; 28724#endif 28725#endif 28726 28727#ifndef _HAVE_UINT64_T 28728/* .. here are some common heuristics using compiler runtime specifics */ 28729#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L 28730#define _HAVE_UINT64_T 28731typedef long long int64_t; 28732typedef unsigned long long uint64_t; 28733 28734#elif !defined __STRICT_ANSI__ 28735#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 28736#define _HAVE_UINT64_T 28737typedef __int64 int64_t; 28738typedef unsigned __int64 uint64_t; 28739 28740#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__ 28741/* note: all ELF-systems seem to have loff-support which needs 64-bit */ 28742#if !defined _NO_LONGLONG 28743#define _HAVE_UINT64_T 28744typedef long long int64_t; 28745typedef unsigned long long uint64_t; 28746#endif 28747 28748#elif defined __alpha || (defined __mips && defined _ABIN32) 28749#if !defined _NO_LONGLONG 28750typedef long int64_t; 28751typedef unsigned long uint64_t; 28752#endif 28753 /* compiler/cpu type to define int64_t */ 28754#endif 28755#endif 28756#endif 28757 28758#if defined _STDINT_HAVE_U_INT_TYPES 28759/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */ 28760typedef u_int8_t uint8_t; 28761typedef u_int16_t uint16_t; 28762typedef u_int32_t uint32_t; 28763 28764/* glibc compatibility */ 28765#ifndef __int8_t_defined 28766#define __int8_t_defined 28767#endif 28768#endif 28769 28770#ifdef _STDINT_NEED_INT_MODEL_T 28771/* we must guess all the basic types. Apart from byte-adressable system, */ 28772/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */ 28773/* (btw, those nibble-addressable systems are way off, or so we assume) */ 28774 28775 28776#if defined _STDINT_BYTE_MODEL 28777#if _STDINT_LONG_MODEL+0 == 242 28778/* 2:4:2 = IP16 = a normal 16-bit system */ 28779typedef unsigned char uint8_t; 28780typedef unsigned short uint16_t; 28781typedef unsigned long uint32_t; 28782#ifndef __int8_t_defined 28783#define __int8_t_defined 28784typedef char int8_t; 28785typedef short int16_t; 28786typedef long int32_t; 28787#endif 28788#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444 28789/* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */ 28790/* 4:4:4 = ILP32 = a normal 32-bit system */ 28791typedef unsigned char uint8_t; 28792typedef unsigned short uint16_t; 28793typedef unsigned int uint32_t; 28794#ifndef __int8_t_defined 28795#define __int8_t_defined 28796typedef char int8_t; 28797typedef short int16_t; 28798typedef int int32_t; 28799#endif 28800#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488 28801/* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */ 28802/* 4:8:8 = LP64 = a normal 64-bit system */ 28803typedef unsigned char uint8_t; 28804typedef unsigned short uint16_t; 28805typedef unsigned int uint32_t; 28806#ifndef __int8_t_defined 28807#define __int8_t_defined 28808typedef char int8_t; 28809typedef short int16_t; 28810typedef int int32_t; 28811#endif 28812/* this system has a "long" of 64bit */ 28813#ifndef _HAVE_UINT64_T 28814#define _HAVE_UINT64_T 28815typedef unsigned long uint64_t; 28816typedef long int64_t; 28817#endif 28818#elif _STDINT_LONG_MODEL+0 == 448 28819/* LLP64 a 64-bit system derived from a 32-bit system */ 28820typedef unsigned char uint8_t; 28821typedef unsigned short uint16_t; 28822typedef unsigned int uint32_t; 28823#ifndef __int8_t_defined 28824#define __int8_t_defined 28825typedef char int8_t; 28826typedef short int16_t; 28827typedef int int32_t; 28828#endif 28829/* assuming the system has a "long long" */ 28830#ifndef _HAVE_UINT64_T 28831#define _HAVE_UINT64_T 28832typedef unsigned long long uint64_t; 28833typedef long long int64_t; 28834#endif 28835#else 28836#define _STDINT_NO_INT32_T 28837#endif 28838#else 28839#define _STDINT_NO_INT8_T 28840#define _STDINT_NO_INT32_T 28841#endif 28842#endif 28843 28844/* 28845 * quote from SunOS-5.8 sys/inttypes.h: 28846 * Use at your own risk. As of February 1996, the committee is squarely 28847 * behind the fixed sized types; the "least" and "fast" types are still being 28848 * discussed. The probability that the "fast" types may be removed before 28849 * the standard is finalized is high enough that they are not currently 28850 * implemented. 28851 */ 28852 28853#if defined _STDINT_NEED_INT_LEAST_T 28854typedef int8_t int_least8_t; 28855typedef int16_t int_least16_t; 28856typedef int32_t int_least32_t; 28857#ifdef _HAVE_UINT64_T 28858typedef int64_t int_least64_t; 28859#endif 28860 28861typedef uint8_t uint_least8_t; 28862typedef uint16_t uint_least16_t; 28863typedef uint32_t uint_least32_t; 28864#ifdef _HAVE_UINT64_T 28865typedef uint64_t uint_least64_t; 28866#endif 28867 /* least types */ 28868#endif 28869 28870#if defined _STDINT_NEED_INT_FAST_T 28871typedef int8_t int_fast8_t; 28872typedef int int_fast16_t; 28873typedef int32_t int_fast32_t; 28874#ifdef _HAVE_UINT64_T 28875typedef int64_t int_fast64_t; 28876#endif 28877 28878typedef uint8_t uint_fast8_t; 28879typedef unsigned uint_fast16_t; 28880typedef uint32_t uint_fast32_t; 28881#ifdef _HAVE_UINT64_T 28882typedef uint64_t uint_fast64_t; 28883#endif 28884 /* fast types */ 28885#endif 28886 28887#ifdef _STDINT_NEED_INTMAX_T 28888#ifdef _HAVE_UINT64_T 28889typedef int64_t intmax_t; 28890typedef uint64_t uintmax_t; 28891#else 28892typedef long intmax_t; 28893typedef unsigned long uintmax_t; 28894#endif 28895#endif 28896 28897#ifdef _STDINT_NEED_INTPTR_T 28898#ifndef __intptr_t_defined 28899#define __intptr_t_defined 28900/* we encourage using "long" to store pointer values, never use "int" ! */ 28901#if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484 28902typedef unsinged int uintptr_t; 28903typedef int intptr_t; 28904#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444 28905typedef unsigned long uintptr_t; 28906typedef long intptr_t; 28907#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T 28908typedef uint64_t uintptr_t; 28909typedef int64_t intptr_t; 28910#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */ 28911typedef unsigned long uintptr_t; 28912typedef long intptr_t; 28913#endif 28914#endif 28915#endif 28916 28917 /* shortcircuit*/ 28918#endif 28919 /* once */ 28920#endif 28921#endif 28922STDINT_EOF 28923 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then 28924 { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5 28925echo "$as_me: $ac_stdint_h is unchanged" >&6;} 28926 else 28927 ac_dir=`$as_dirname -- "$ac_stdint_h" || 28928$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28929 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \ 28930 X"$ac_stdint_h" : 'X\(//\)$' \| \ 28931 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null || 28932echo X"$ac_stdint_h" | 28933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28934 s//\1/ 28935 q 28936 } 28937 /^X\(\/\/\)[^/].*/{ 28938 s//\1/ 28939 q 28940 } 28941 /^X\(\/\/\)$/{ 28942 s//\1/ 28943 q 28944 } 28945 /^X\(\/\).*/{ 28946 s//\1/ 28947 q 28948 } 28949 s/.*/./; q'` 28950 { as_dir="$ac_dir" 28951 case $as_dir in #( 28952 -*) as_dir=./$as_dir;; 28953 esac 28954 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 28955 as_dirs= 28956 while :; do 28957 case $as_dir in #( 28958 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 28959 *) as_qdir=$as_dir;; 28960 esac 28961 as_dirs="'$as_qdir' $as_dirs" 28962 as_dir=`$as_dirname -- "$as_dir" || 28963$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28964 X"$as_dir" : 'X\(//\)[^/]' \| \ 28965 X"$as_dir" : 'X\(//\)$' \| \ 28966 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 28967echo X"$as_dir" | 28968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28969 s//\1/ 28970 q 28971 } 28972 /^X\(\/\/\)[^/].*/{ 28973 s//\1/ 28974 q 28975 } 28976 /^X\(\/\/\)$/{ 28977 s//\1/ 28978 q 28979 } 28980 /^X\(\/\).*/{ 28981 s//\1/ 28982 q 28983 } 28984 s/.*/./; q'` 28985 test -d "$as_dir" && break 28986 done 28987 test -z "$as_dirs" || eval "mkdir $as_dirs" 28988 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 28989echo "$as_me: error: cannot create directory $as_dir" >&2;} 28990 { (exit 1); exit 1; }; }; } 28991 rm -f $ac_stdint_h 28992 mv $ac_stdint $ac_stdint_h 28993 fi 28994 ;; 28995 28996 esac 28997done # for ac_tag 28998 28999 29000{ (exit 0); exit 0; } 29001_ACEOF 29002chmod +x $CONFIG_STATUS 29003ac_clean_files=$ac_clean_files_save 29004 29005 29006# configure is writing to config.log, and then calls config.status. 29007# config.status does its own redirection, appending to config.log. 29008# Unfortunately, on DOS this fails, as config.log is still kept open 29009# by configure, so config.status won't be able to write to it; its 29010# output is simply discarded. So we exec the FD to /dev/null, 29011# effectively closing config.log, so it can be properly (re)opened and 29012# appended to by config.status. When coming back to configure, we 29013# need to make the FD available again. 29014if test "$no_create" != yes; then 29015 ac_cs_success=: 29016 ac_config_status_args= 29017 test "$silent" = yes && 29018 ac_config_status_args="$ac_config_status_args --quiet" 29019 exec 5>/dev/null 29020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 29021 exec 5>>config.log 29022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 29023 # would make configure fail if this is the last instruction. 29024 $ac_cs_success || { (exit 1); exit 1; } 29025fi 29026 29027