1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for Apache HTTP Server Request Library 2.13. 4# 5# Report bugs to <apreq-dev@httpd.apache.org>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554 555# Check that we are running under the correct shell. 556SHELL=${CONFIG_SHELL-/bin/sh} 557 558case X$ECHO in 559X*--fallback-echo) 560 # Remove one level of quotation (which was required for Make). 561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 562 ;; 563esac 564 565echo=${ECHO-echo} 566if test "X$1" = X--no-reexec; then 567 # Discard the --no-reexec flag, and continue. 568 shift 569elif test "X$1" = X--fallback-echo; then 570 # Avoid inline document here, it may be left over 571 : 572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 573 # Yippee, $echo works! 574 : 575else 576 # Restart under the correct shell. 577 exec $SHELL "$0" --no-reexec ${1+"$@"} 578fi 579 580if test "X$1" = X--fallback-echo; then 581 # used as fallback echo 582 shift 583 cat <<EOF 584$* 585EOF 586 exit 0 587fi 588 589# The HP-UX ksh and POSIX shell print the target directory to stdout 590# if CDPATH is set. 591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 592 593if test -z "$ECHO"; then 594if test "X${echo_test_string+set}" != Xset; then 595# find a string as large as possible, as long as the shell can cope with it 596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 598 if (echo_test_string=`eval $cmd`) 2>/dev/null && 599 echo_test_string=`eval $cmd` && 600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 601 then 602 break 603 fi 604 done 605fi 606 607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 : 611else 612 # The Solaris, AIX, and Digital Unix default echo programs unquote 613 # backslashes. This makes it impossible to quote backslashes using 614 # echo "$something" | sed 's/\\/\\\\/g' 615 # 616 # So, first we look for a working echo in the user's PATH. 617 618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 619 for dir in $PATH /usr/ucb; do 620 IFS="$lt_save_ifs" 621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 624 test "X$echo_testing_string" = "X$echo_test_string"; then 625 echo="$dir/echo" 626 break 627 fi 628 done 629 IFS="$lt_save_ifs" 630 631 if test "X$echo" = Xecho; then 632 # We didn't find a better echo, so look for alternatives. 633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 # This shell has a builtin print -r that does the trick. 637 echo='print -r' 638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 639 test "X$CONFIG_SHELL" != X/bin/ksh; then 640 # If we have ksh, try running configure again with it. 641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 642 export ORIGINAL_CONFIG_SHELL 643 CONFIG_SHELL=/bin/ksh 644 export CONFIG_SHELL 645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 646 else 647 # Try using printf. 648 echo='printf %s\n' 649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 # Cool, printf works 653 : 654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 655 test "X$echo_testing_string" = 'X\t' && 656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 659 export CONFIG_SHELL 660 SHELL="$CONFIG_SHELL" 661 export SHELL 662 echo="$CONFIG_SHELL $0 --fallback-echo" 663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 664 test "X$echo_testing_string" = 'X\t' && 665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 666 test "X$echo_testing_string" = "X$echo_test_string"; then 667 echo="$CONFIG_SHELL $0 --fallback-echo" 668 else 669 # maybe with a smaller string... 670 prev=: 671 672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 674 then 675 break 676 fi 677 prev="$cmd" 678 done 679 680 if test "$prev" != 'sed 50q "$0"'; then 681 echo_test_string=`eval $prev` 682 export echo_test_string 683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 684 else 685 # Oops. We lost completely, so just stick with echo. 686 echo=echo 687 fi 688 fi 689 fi 690 fi 691fi 692fi 693 694# Copy echo and quote the copy suitably for passing to libtool from 695# the Makefile, instead of quoting the original, which is used later. 696ECHO=$echo 697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 699fi 700 701 702 703 704tagnames=${tagnames+${tagnames},}CXX 705 706tagnames=${tagnames+${tagnames},}F77 707 708exec 7<&0 </dev/null 6>&1 709 710# Name of the host. 711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 712# so uname gets run too. 713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 714 715# 716# Initializations. 717# 718ac_default_prefix=/usr/local 719ac_clean_files= 720ac_config_libobj_dir=. 721LIBOBJS= 722cross_compiling=no 723subdirs= 724MFLAGS= 725MAKEFLAGS= 726SHELL=${CONFIG_SHELL-/bin/sh} 727 728# Identity of this package. 729PACKAGE_NAME='Apache HTTP Server Request Library' 730PACKAGE_TARNAME='libapreq2' 731PACKAGE_VERSION='2.13' 732PACKAGE_STRING='Apache HTTP Server Request Library 2.13' 733PACKAGE_BUGREPORT='apreq-dev@httpd.apache.org' 734 735# Factoring default headers for most tests. 736ac_includes_default="\ 737#include <stdio.h> 738#ifdef HAVE_SYS_TYPES_H 739# include <sys/types.h> 740#endif 741#ifdef HAVE_SYS_STAT_H 742# include <sys/stat.h> 743#endif 744#ifdef STDC_HEADERS 745# include <stdlib.h> 746# include <stddef.h> 747#else 748# ifdef HAVE_STDLIB_H 749# include <stdlib.h> 750# endif 751#endif 752#ifdef HAVE_STRING_H 753# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 754# include <memory.h> 755# endif 756# include <string.h> 757#endif 758#ifdef HAVE_STRINGS_H 759# include <strings.h> 760#endif 761#ifdef HAVE_INTTYPES_H 762# include <inttypes.h> 763#endif 764#ifdef HAVE_STDINT_H 765# include <stdint.h> 766#endif 767#ifdef HAVE_UNISTD_H 768# include <unistd.h> 769#endif" 770 771ac_subst_vars='SHELL 772PATH_SEPARATOR 773PACKAGE_NAME 774PACKAGE_TARNAME 775PACKAGE_VERSION 776PACKAGE_STRING 777PACKAGE_BUGREPORT 778exec_prefix 779prefix 780program_transform_name 781bindir 782sbindir 783libexecdir 784datarootdir 785datadir 786sysconfdir 787sharedstatedir 788localstatedir 789includedir 790oldincludedir 791docdir 792infodir 793htmldir 794dvidir 795pdfdir 796psdir 797libdir 798localedir 799mandir 800DEFS 801ECHO_C 802ECHO_N 803ECHO_T 804LIBS 805build_alias 806host_alias 807target_alias 808INSTALL_PROGRAM 809INSTALL_SCRIPT 810INSTALL_DATA 811am__isrc 812CYGPATH_W 813PACKAGE 814VERSION 815ACLOCAL 816AUTOCONF 817AUTOMAKE 818AUTOHEADER 819MAKEINFO 820install_sh 821STRIP 822INSTALL_STRIP_PROGRAM 823mkdir_p 824AWK 825SET_MAKE 826am__leading_dot 827AMTAR 828am__tar 829am__untar 830CC 831CFLAGS 832LDFLAGS 833CPPFLAGS 834ac_ct_CC 835EXEEXT 836OBJEXT 837DEPDIR 838am__include 839am__quote 840AMDEP_TRUE 841AMDEP_FALSE 842AMDEPBACKSLASH 843CCDEPMODE 844am__fastdepCC_TRUE 845am__fastdepCC_FALSE 846build 847build_cpu 848build_vendor 849build_os 850host 851host_cpu 852host_vendor 853host_os 854SED 855GREP 856EGREP 857LN_S 858ECHO 859AR 860RANLIB 861DSYMUTIL 862NMEDIT 863CPP 864CXX 865CXXFLAGS 866ac_ct_CXX 867CXXDEPMODE 868am__fastdepCXX_TRUE 869am__fastdepCXX_FALSE 870CXXCPP 871F77 872FFLAGS 873ac_ct_F77 874LIBTOOL 875MAINTAINER_MODE_TRUE 876MAINTAINER_MODE_FALSE 877MAINT 878ENABLE_PROFILE_TRUE 879ENABLE_PROFILE_FALSE 880BUILD_PERL_GLUE_TRUE 881BUILD_PERL_GLUE_FALSE 882HAVE_APACHE_TEST_TRUE 883HAVE_APACHE_TEST_FALSE 884BUILD_HTTPD_TRUE 885BUILD_HTTPD_FALSE 886BUILD_APR_TRUE 887BUILD_APR_FALSE 888BUILD_APU_TRUE 889BUILD_APU_FALSE 890HAVE_APACHE1_TRUE 891HAVE_APACHE1_FALSE 892APREQ_CONFIG 893APREQ_LIBNAME 894APREQ_LIBTOOL_VERSION 895APREQ_MAJOR_VERSION 896APREQ_DOTTED_VERSION 897APACHE2_APXS 898APACHE2_SRC 899APACHE2_INCLUDES 900APACHE2_HTTPD 901APACHE1_APXS 902APU_CONFIG 903APR_CONFIG 904APR_INCLUDES 905APR_LDFLAGS 906APR_LTFLAGS 907APR_LIBS 908APR_LA 909APU_LA 910PERL 911PERL_OPTS 912MM_OPTS 913TAR 914APR_DOC_VERSION 915APU_DOC_VERSION 916LIBOBJS 917LTLIBOBJS' 918ac_subst_files='' 919 ac_precious_vars='build_alias 920host_alias 921target_alias 922CC 923CFLAGS 924LDFLAGS 925LIBS 926CPPFLAGS 927CPP 928CXX 929CXXFLAGS 930CCC 931CXXCPP 932F77 933FFLAGS' 934 935 936# Initialize some variables set by options. 937ac_init_help= 938ac_init_version=false 939# The variables have the same names as the options, with 940# dashes changed to underlines. 941cache_file=/dev/null 942exec_prefix=NONE 943no_create= 944no_recursion= 945prefix=NONE 946program_prefix=NONE 947program_suffix=NONE 948program_transform_name=s,x,x, 949silent= 950site= 951srcdir= 952verbose= 953x_includes=NONE 954x_libraries=NONE 955 956# Installation directory options. 957# These are left unexpanded so users can "make install exec_prefix=/foo" 958# and all the variables that are supposed to be based on exec_prefix 959# by default will actually change. 960# Use braces instead of parens because sh, perl, etc. also accept them. 961# (The list follows the same order as the GNU Coding Standards.) 962bindir='${exec_prefix}/bin' 963sbindir='${exec_prefix}/sbin' 964libexecdir='${exec_prefix}/libexec' 965datarootdir='${prefix}/share' 966datadir='${datarootdir}' 967sysconfdir='${prefix}/etc' 968sharedstatedir='${prefix}/com' 969localstatedir='${prefix}/var' 970includedir='${prefix}/include' 971oldincludedir='/usr/include' 972docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 973infodir='${datarootdir}/info' 974htmldir='${docdir}' 975dvidir='${docdir}' 976pdfdir='${docdir}' 977psdir='${docdir}' 978libdir='${exec_prefix}/lib' 979localedir='${datarootdir}/locale' 980mandir='${datarootdir}/man' 981 982ac_prev= 983ac_dashdash= 984for ac_option 985do 986 # If the previous option needs an argument, assign it. 987 if test -n "$ac_prev"; then 988 eval $ac_prev=\$ac_option 989 ac_prev= 990 continue 991 fi 992 993 case $ac_option in 994 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 995 *) ac_optarg=yes ;; 996 esac 997 998 # Accept the important Cygnus configure options, so we can diagnose typos. 999 1000 case $ac_dashdash$ac_option in 1001 --) 1002 ac_dashdash=yes ;; 1003 1004 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1005 ac_prev=bindir ;; 1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1007 bindir=$ac_optarg ;; 1008 1009 -build | --build | --buil | --bui | --bu) 1010 ac_prev=build_alias ;; 1011 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1012 build_alias=$ac_optarg ;; 1013 1014 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1016 ac_prev=cache_file ;; 1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1019 cache_file=$ac_optarg ;; 1020 1021 --config-cache | -C) 1022 cache_file=config.cache ;; 1023 1024 -datadir | --datadir | --datadi | --datad) 1025 ac_prev=datadir ;; 1026 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1027 datadir=$ac_optarg ;; 1028 1029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1030 | --dataroo | --dataro | --datar) 1031 ac_prev=datarootdir ;; 1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1034 datarootdir=$ac_optarg ;; 1035 1036 -disable-* | --disable-*) 1037 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1038 # Reject names that are not valid shell variable names. 1039 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1040 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1041 { (exit 1); exit 1; }; } 1042 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1043 eval enable_$ac_feature=no ;; 1044 1045 -docdir | --docdir | --docdi | --doc | --do) 1046 ac_prev=docdir ;; 1047 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1048 docdir=$ac_optarg ;; 1049 1050 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1051 ac_prev=dvidir ;; 1052 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1053 dvidir=$ac_optarg ;; 1054 1055 -enable-* | --enable-*) 1056 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1057 # Reject names that are not valid shell variable names. 1058 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1059 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1060 { (exit 1); exit 1; }; } 1061 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1062 eval enable_$ac_feature=\$ac_optarg ;; 1063 1064 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1065 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1066 | --exec | --exe | --ex) 1067 ac_prev=exec_prefix ;; 1068 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1069 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1070 | --exec=* | --exe=* | --ex=*) 1071 exec_prefix=$ac_optarg ;; 1072 1073 -gas | --gas | --ga | --g) 1074 # Obsolete; use --with-gas. 1075 with_gas=yes ;; 1076 1077 -help | --help | --hel | --he | -h) 1078 ac_init_help=long ;; 1079 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1080 ac_init_help=recursive ;; 1081 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1082 ac_init_help=short ;; 1083 1084 -host | --host | --hos | --ho) 1085 ac_prev=host_alias ;; 1086 -host=* | --host=* | --hos=* | --ho=*) 1087 host_alias=$ac_optarg ;; 1088 1089 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1090 ac_prev=htmldir ;; 1091 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1092 | --ht=*) 1093 htmldir=$ac_optarg ;; 1094 1095 -includedir | --includedir | --includedi | --included | --include \ 1096 | --includ | --inclu | --incl | --inc) 1097 ac_prev=includedir ;; 1098 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1099 | --includ=* | --inclu=* | --incl=* | --inc=*) 1100 includedir=$ac_optarg ;; 1101 1102 -infodir | --infodir | --infodi | --infod | --info | --inf) 1103 ac_prev=infodir ;; 1104 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1105 infodir=$ac_optarg ;; 1106 1107 -libdir | --libdir | --libdi | --libd) 1108 ac_prev=libdir ;; 1109 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1110 libdir=$ac_optarg ;; 1111 1112 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1113 | --libexe | --libex | --libe) 1114 ac_prev=libexecdir ;; 1115 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1116 | --libexe=* | --libex=* | --libe=*) 1117 libexecdir=$ac_optarg ;; 1118 1119 -localedir | --localedir | --localedi | --localed | --locale) 1120 ac_prev=localedir ;; 1121 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1122 localedir=$ac_optarg ;; 1123 1124 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1125 | --localstate | --localstat | --localsta | --localst | --locals) 1126 ac_prev=localstatedir ;; 1127 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1128 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1129 localstatedir=$ac_optarg ;; 1130 1131 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1132 ac_prev=mandir ;; 1133 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1134 mandir=$ac_optarg ;; 1135 1136 -nfp | --nfp | --nf) 1137 # Obsolete; use --without-fp. 1138 with_fp=no ;; 1139 1140 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1141 | --no-cr | --no-c | -n) 1142 no_create=yes ;; 1143 1144 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1145 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1146 no_recursion=yes ;; 1147 1148 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1149 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1150 | --oldin | --oldi | --old | --ol | --o) 1151 ac_prev=oldincludedir ;; 1152 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1153 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1154 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1155 oldincludedir=$ac_optarg ;; 1156 1157 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1158 ac_prev=prefix ;; 1159 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1160 prefix=$ac_optarg ;; 1161 1162 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1163 | --program-pre | --program-pr | --program-p) 1164 ac_prev=program_prefix ;; 1165 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1166 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1167 program_prefix=$ac_optarg ;; 1168 1169 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1170 | --program-suf | --program-su | --program-s) 1171 ac_prev=program_suffix ;; 1172 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1173 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1174 program_suffix=$ac_optarg ;; 1175 1176 -program-transform-name | --program-transform-name \ 1177 | --program-transform-nam | --program-transform-na \ 1178 | --program-transform-n | --program-transform- \ 1179 | --program-transform | --program-transfor \ 1180 | --program-transfo | --program-transf \ 1181 | --program-trans | --program-tran \ 1182 | --progr-tra | --program-tr | --program-t) 1183 ac_prev=program_transform_name ;; 1184 -program-transform-name=* | --program-transform-name=* \ 1185 | --program-transform-nam=* | --program-transform-na=* \ 1186 | --program-transform-n=* | --program-transform-=* \ 1187 | --program-transform=* | --program-transfor=* \ 1188 | --program-transfo=* | --program-transf=* \ 1189 | --program-trans=* | --program-tran=* \ 1190 | --progr-tra=* | --program-tr=* | --program-t=*) 1191 program_transform_name=$ac_optarg ;; 1192 1193 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1194 ac_prev=pdfdir ;; 1195 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1196 pdfdir=$ac_optarg ;; 1197 1198 -psdir | --psdir | --psdi | --psd | --ps) 1199 ac_prev=psdir ;; 1200 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1201 psdir=$ac_optarg ;; 1202 1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1204 | -silent | --silent | --silen | --sile | --sil) 1205 silent=yes ;; 1206 1207 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1208 ac_prev=sbindir ;; 1209 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1210 | --sbi=* | --sb=*) 1211 sbindir=$ac_optarg ;; 1212 1213 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1214 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1215 | --sharedst | --shareds | --shared | --share | --shar \ 1216 | --sha | --sh) 1217 ac_prev=sharedstatedir ;; 1218 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1219 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1220 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1221 | --sha=* | --sh=*) 1222 sharedstatedir=$ac_optarg ;; 1223 1224 -site | --site | --sit) 1225 ac_prev=site ;; 1226 -site=* | --site=* | --sit=*) 1227 site=$ac_optarg ;; 1228 1229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1230 ac_prev=srcdir ;; 1231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1232 srcdir=$ac_optarg ;; 1233 1234 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1235 | --syscon | --sysco | --sysc | --sys | --sy) 1236 ac_prev=sysconfdir ;; 1237 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1238 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1239 sysconfdir=$ac_optarg ;; 1240 1241 -target | --target | --targe | --targ | --tar | --ta | --t) 1242 ac_prev=target_alias ;; 1243 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1244 target_alias=$ac_optarg ;; 1245 1246 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1247 verbose=yes ;; 1248 1249 -version | --version | --versio | --versi | --vers | -V) 1250 ac_init_version=: ;; 1251 1252 -with-* | --with-*) 1253 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1254 # Reject names that are not valid shell variable names. 1255 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1256 { echo "$as_me: error: invalid package name: $ac_package" >&2 1257 { (exit 1); exit 1; }; } 1258 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1259 eval with_$ac_package=\$ac_optarg ;; 1260 1261 -without-* | --without-*) 1262 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1263 # Reject names that are not valid shell variable names. 1264 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1265 { echo "$as_me: error: invalid package name: $ac_package" >&2 1266 { (exit 1); exit 1; }; } 1267 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1268 eval with_$ac_package=no ;; 1269 1270 --x) 1271 # Obsolete; use --with-x. 1272 with_x=yes ;; 1273 1274 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1275 | --x-incl | --x-inc | --x-in | --x-i) 1276 ac_prev=x_includes ;; 1277 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1278 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1279 x_includes=$ac_optarg ;; 1280 1281 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1282 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1283 ac_prev=x_libraries ;; 1284 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1285 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1286 x_libraries=$ac_optarg ;; 1287 1288 -*) { echo "$as_me: error: unrecognized option: $ac_option 1289Try \`$0 --help' for more information." >&2 1290 { (exit 1); exit 1; }; } 1291 ;; 1292 1293 *=*) 1294 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1295 # Reject names that are not valid shell variable names. 1296 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1297 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1298 { (exit 1); exit 1; }; } 1299 eval $ac_envvar=\$ac_optarg 1300 export $ac_envvar ;; 1301 1302 *) 1303 # FIXME: should be removed in autoconf 3.0. 1304 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1306 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1307 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1308 ;; 1309 1310 esac 1311done 1312 1313if test -n "$ac_prev"; then 1314 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1315 { echo "$as_me: error: missing argument to $ac_option" >&2 1316 { (exit 1); exit 1; }; } 1317fi 1318 1319# Be sure to have absolute directory names. 1320for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1321 datadir sysconfdir sharedstatedir localstatedir includedir \ 1322 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1323 libdir localedir mandir 1324do 1325 eval ac_val=\$$ac_var 1326 case $ac_val in 1327 [\\/$]* | ?:[\\/]* ) continue;; 1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1329 esac 1330 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1331 { (exit 1); exit 1; }; } 1332done 1333 1334# There might be people who depend on the old broken behavior: `$host' 1335# used to hold the argument of --host etc. 1336# FIXME: To remove some day. 1337build=$build_alias 1338host=$host_alias 1339target=$target_alias 1340 1341# FIXME: To remove some day. 1342if test "x$host_alias" != x; then 1343 if test "x$build_alias" = x; then 1344 cross_compiling=maybe 1345 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1346 If a cross compiler is detected then cross compile mode will be used." >&2 1347 elif test "x$build_alias" != "x$host_alias"; then 1348 cross_compiling=yes 1349 fi 1350fi 1351 1352ac_tool_prefix= 1353test -n "$host_alias" && ac_tool_prefix=$host_alias- 1354 1355test "$silent" = yes && exec 6>/dev/null 1356 1357 1358ac_pwd=`pwd` && test -n "$ac_pwd" && 1359ac_ls_di=`ls -di .` && 1360ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1361 { echo "$as_me: error: Working directory cannot be determined" >&2 1362 { (exit 1); exit 1; }; } 1363test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1364 { echo "$as_me: error: pwd does not report name of working directory" >&2 1365 { (exit 1); exit 1; }; } 1366 1367 1368# Find the source files, if location was not specified. 1369if test -z "$srcdir"; then 1370 ac_srcdir_defaulted=yes 1371 # Try the directory containing this script, then the parent directory. 1372 ac_confdir=`$as_dirname -- "$0" || 1373$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1374 X"$0" : 'X\(//\)[^/]' \| \ 1375 X"$0" : 'X\(//\)$' \| \ 1376 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1377echo X"$0" | 1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1379 s//\1/ 1380 q 1381 } 1382 /^X\(\/\/\)[^/].*/{ 1383 s//\1/ 1384 q 1385 } 1386 /^X\(\/\/\)$/{ 1387 s//\1/ 1388 q 1389 } 1390 /^X\(\/\).*/{ 1391 s//\1/ 1392 q 1393 } 1394 s/.*/./; q'` 1395 srcdir=$ac_confdir 1396 if test ! -r "$srcdir/$ac_unique_file"; then 1397 srcdir=.. 1398 fi 1399else 1400 ac_srcdir_defaulted=no 1401fi 1402if test ! -r "$srcdir/$ac_unique_file"; then 1403 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1404 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1405 { (exit 1); exit 1; }; } 1406fi 1407ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1408ac_abs_confdir=`( 1409 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1410 { (exit 1); exit 1; }; } 1411 pwd)` 1412# When building in place, set srcdir=. 1413if test "$ac_abs_confdir" = "$ac_pwd"; then 1414 srcdir=. 1415fi 1416# Remove unnecessary trailing slashes from srcdir. 1417# Double slashes in file names in object file debugging info 1418# mess up M-x gdb in Emacs. 1419case $srcdir in 1420*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1421esac 1422for ac_var in $ac_precious_vars; do 1423 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1424 eval ac_env_${ac_var}_value=\$${ac_var} 1425 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1426 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1427done 1428 1429# 1430# Report the --help message. 1431# 1432if test "$ac_init_help" = "long"; then 1433 # Omit some internal or obsolete options to make the list less imposing. 1434 # This message is too long to be a string in the A/UX 3.1 sh. 1435 cat <<_ACEOF 1436\`configure' configures Apache HTTP Server Request Library 2.13 to adapt to many kinds of systems. 1437 1438Usage: $0 [OPTION]... [VAR=VALUE]... 1439 1440To assign environment variables (e.g., CC, CFLAGS...), specify them as 1441VAR=VALUE. See below for descriptions of some of the useful variables. 1442 1443Defaults for the options are specified in brackets. 1444 1445Configuration: 1446 -h, --help display this help and exit 1447 --help=short display options specific to this package 1448 --help=recursive display the short help of all the included packages 1449 -V, --version display version information and exit 1450 -q, --quiet, --silent do not print \`checking...' messages 1451 --cache-file=FILE cache test results in FILE [disabled] 1452 -C, --config-cache alias for \`--cache-file=config.cache' 1453 -n, --no-create do not create output files 1454 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1455 1456Installation directories: 1457 --prefix=PREFIX install architecture-independent files in PREFIX 1458 [$ac_default_prefix] 1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1460 [PREFIX] 1461 1462By default, \`make install' will install all the files in 1463\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1464an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1465for instance \`--prefix=\$HOME'. 1466 1467For better control, use the options below. 1468 1469Fine tuning of the installation directories: 1470 --bindir=DIR user executables [EPREFIX/bin] 1471 --sbindir=DIR system admin executables [EPREFIX/sbin] 1472 --libexecdir=DIR program executables [EPREFIX/libexec] 1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1476 --libdir=DIR object code libraries [EPREFIX/lib] 1477 --includedir=DIR C header files [PREFIX/include] 1478 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1481 --infodir=DIR info documentation [DATAROOTDIR/info] 1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1483 --mandir=DIR man documentation [DATAROOTDIR/man] 1484 --docdir=DIR documentation root [DATAROOTDIR/doc/libapreq2] 1485 --htmldir=DIR html documentation [DOCDIR] 1486 --dvidir=DIR dvi documentation [DOCDIR] 1487 --pdfdir=DIR pdf documentation [DOCDIR] 1488 --psdir=DIR ps documentation [DOCDIR] 1489_ACEOF 1490 1491 cat <<\_ACEOF 1492 1493Program names: 1494 --program-prefix=PREFIX prepend PREFIX to installed program names 1495 --program-suffix=SUFFIX append SUFFIX to installed program names 1496 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1497 1498System types: 1499 --build=BUILD configure for building on BUILD [guessed] 1500 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1501_ACEOF 1502fi 1503 1504if test -n "$ac_init_help"; then 1505 case $ac_init_help in 1506 short | recursive ) echo "Configuration of Apache HTTP Server Request Library 2.13:";; 1507 esac 1508 cat <<\_ACEOF 1509 1510Optional Features: 1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1513 --disable-dependency-tracking speeds up one-time build 1514 --enable-dependency-tracking do not reject slow dependency extractors 1515 --enable-shared[=PKGS] build shared libraries [default=yes] 1516 --enable-static[=PKGS] build static libraries [default=yes] 1517 --enable-fast-install[=PKGS] 1518 optimize for fast installation [default=yes] 1519 --disable-libtool-lock avoid locking (might break parallel builds) 1520 --enable-maintainer-mode enable make rules and dependencies not useful 1521 (and sometimes confusing) to the casual installer 1522 --enable-profile compile libapreq2 with "-pg -fprofile-arcs 1523 -ftest-coverage" for gcov/gprof 1524 --enable-perl-glue build perl modules Apache::Request and 1525 Apache::Cookie 1526 1527Optional Packages: 1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1530 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1531 --with-pic try to use only PIC/non-PIC objects [default=use 1532 both] 1533 --with-tags[=TAGS] include additional configurations [automatic] 1534 --with-perl path to perl executable 1535 --with-apache2-apxs path to apache2's apxs 1536 --with-apache2-src path to httpd source 1537 --with-apache2-httpd path to httpd binary 1538 --with-apr-config path to apr-*-config script 1539 --with-apu-config path to apu-*-config script 1540 --with-apache1-apxs path to apache1's apxs 1541 --with-perl-opts extra PERL options 1542 --with-mm-opts extra ExtUtils::MakeMaker options 1543 --with-expat specify expat location 1544 1545Some influential environment variables: 1546 CC C compiler command 1547 CFLAGS C compiler flags 1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1549 nonstandard directory <lib dir> 1550 LIBS libraries to pass to the linker, e.g. -l<library> 1551 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1552 you have headers in a nonstandard directory <include dir> 1553 CPP C preprocessor 1554 CXX C++ compiler command 1555 CXXFLAGS C++ compiler flags 1556 CXXCPP C++ preprocessor 1557 F77 Fortran 77 compiler command 1558 FFLAGS Fortran 77 compiler flags 1559 1560Use these variables to override the choices made by `configure' or to help 1561it to find libraries and programs with nonstandard names/locations. 1562 1563Report bugs to <apreq-dev@httpd.apache.org>. 1564_ACEOF 1565ac_status=$? 1566fi 1567 1568if test "$ac_init_help" = "recursive"; then 1569 # If there are subdirs, report their specific --help. 1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1571 test -d "$ac_dir" || continue 1572 ac_builddir=. 1573 1574case "$ac_dir" in 1575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1576*) 1577 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1578 # A ".." for each directory in $ac_dir_suffix. 1579 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1580 case $ac_top_builddir_sub in 1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1583 esac ;; 1584esac 1585ac_abs_top_builddir=$ac_pwd 1586ac_abs_builddir=$ac_pwd$ac_dir_suffix 1587# for backward compatibility: 1588ac_top_builddir=$ac_top_build_prefix 1589 1590case $srcdir in 1591 .) # We are building in place. 1592 ac_srcdir=. 1593 ac_top_srcdir=$ac_top_builddir_sub 1594 ac_abs_top_srcdir=$ac_pwd ;; 1595 [\\/]* | ?:[\\/]* ) # Absolute name. 1596 ac_srcdir=$srcdir$ac_dir_suffix; 1597 ac_top_srcdir=$srcdir 1598 ac_abs_top_srcdir=$srcdir ;; 1599 *) # Relative name. 1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1601 ac_top_srcdir=$ac_top_build_prefix$srcdir 1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1603esac 1604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1605 1606 cd "$ac_dir" || { ac_status=$?; continue; } 1607 # Check for guested configure. 1608 if test -f "$ac_srcdir/configure.gnu"; then 1609 echo && 1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1611 elif test -f "$ac_srcdir/configure"; then 1612 echo && 1613 $SHELL "$ac_srcdir/configure" --help=recursive 1614 else 1615 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1616 fi || ac_status=$? 1617 cd "$ac_pwd" || { ac_status=$?; break; } 1618 done 1619fi 1620 1621test -n "$ac_init_help" && exit $ac_status 1622if $ac_init_version; then 1623 cat <<\_ACEOF 1624Apache HTTP Server Request Library configure 2.13 1625generated by GNU Autoconf 2.61 1626 1627Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16282002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1629This configure script is free software; the Free Software Foundation 1630gives unlimited permission to copy, distribute and modify it. 1631_ACEOF 1632 exit 1633fi 1634cat >config.log <<_ACEOF 1635This file contains any messages produced by compilers while 1636running configure, to aid debugging if configure makes a mistake. 1637 1638It was created by Apache HTTP Server Request Library $as_me 2.13, which was 1639generated by GNU Autoconf 2.61. Invocation command line was 1640 1641 $ $0 $@ 1642 1643_ACEOF 1644exec 5>>config.log 1645{ 1646cat <<_ASUNAME 1647## --------- ## 1648## Platform. ## 1649## --------- ## 1650 1651hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1652uname -m = `(uname -m) 2>/dev/null || echo unknown` 1653uname -r = `(uname -r) 2>/dev/null || echo unknown` 1654uname -s = `(uname -s) 2>/dev/null || echo unknown` 1655uname -v = `(uname -v) 2>/dev/null || echo unknown` 1656 1657/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1658/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1659 1660/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1661/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1662/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1663/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1664/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1665/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1666/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1667 1668_ASUNAME 1669 1670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1671for as_dir in $PATH 1672do 1673 IFS=$as_save_IFS 1674 test -z "$as_dir" && as_dir=. 1675 echo "PATH: $as_dir" 1676done 1677IFS=$as_save_IFS 1678 1679} >&5 1680 1681cat >&5 <<_ACEOF 1682 1683 1684## ----------- ## 1685## Core tests. ## 1686## ----------- ## 1687 1688_ACEOF 1689 1690 1691# Keep a trace of the command line. 1692# Strip out --no-create and --no-recursion so they do not pile up. 1693# Strip out --silent because we don't want to record it for future runs. 1694# Also quote any args containing shell meta-characters. 1695# Make two passes to allow for proper duplicate-argument suppression. 1696ac_configure_args= 1697ac_configure_args0= 1698ac_configure_args1= 1699ac_must_keep_next=false 1700for ac_pass in 1 2 1701do 1702 for ac_arg 1703 do 1704 case $ac_arg in 1705 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1707 | -silent | --silent | --silen | --sile | --sil) 1708 continue ;; 1709 *\'*) 1710 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1711 esac 1712 case $ac_pass in 1713 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1714 2) 1715 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1716 if test $ac_must_keep_next = true; then 1717 ac_must_keep_next=false # Got value, back to normal. 1718 else 1719 case $ac_arg in 1720 *=* | --config-cache | -C | -disable-* | --disable-* \ 1721 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1722 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1723 | -with-* | --with-* | -without-* | --without-* | --x) 1724 case "$ac_configure_args0 " in 1725 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1726 esac 1727 ;; 1728 -* ) ac_must_keep_next=true ;; 1729 esac 1730 fi 1731 ac_configure_args="$ac_configure_args '$ac_arg'" 1732 ;; 1733 esac 1734 done 1735done 1736$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1737$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1738 1739# When interrupted or exit'd, cleanup temporary files, and complete 1740# config.log. We remove comments because anyway the quotes in there 1741# would cause problems or look ugly. 1742# WARNING: Use '\'' to represent an apostrophe within the trap. 1743# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1744trap 'exit_status=$? 1745 # Save into config.log some information that might help in debugging. 1746 { 1747 echo 1748 1749 cat <<\_ASBOX 1750## ---------------- ## 1751## Cache variables. ## 1752## ---------------- ## 1753_ASBOX 1754 echo 1755 # The following way of writing the cache mishandles newlines in values, 1756( 1757 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1758 eval ac_val=\$$ac_var 1759 case $ac_val in #( 1760 *${as_nl}*) 1761 case $ac_var in #( 1762 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1763echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1764 esac 1765 case $ac_var in #( 1766 _ | IFS | as_nl) ;; #( 1767 *) $as_unset $ac_var ;; 1768 esac ;; 1769 esac 1770 done 1771 (set) 2>&1 | 1772 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1773 *${as_nl}ac_space=\ *) 1774 sed -n \ 1775 "s/'\''/'\''\\\\'\'''\''/g; 1776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1777 ;; #( 1778 *) 1779 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1780 ;; 1781 esac | 1782 sort 1783) 1784 echo 1785 1786 cat <<\_ASBOX 1787## ----------------- ## 1788## Output variables. ## 1789## ----------------- ## 1790_ASBOX 1791 echo 1792 for ac_var in $ac_subst_vars 1793 do 1794 eval ac_val=\$$ac_var 1795 case $ac_val in 1796 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1797 esac 1798 echo "$ac_var='\''$ac_val'\''" 1799 done | sort 1800 echo 1801 1802 if test -n "$ac_subst_files"; then 1803 cat <<\_ASBOX 1804## ------------------- ## 1805## File substitutions. ## 1806## ------------------- ## 1807_ASBOX 1808 echo 1809 for ac_var in $ac_subst_files 1810 do 1811 eval ac_val=\$$ac_var 1812 case $ac_val in 1813 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1814 esac 1815 echo "$ac_var='\''$ac_val'\''" 1816 done | sort 1817 echo 1818 fi 1819 1820 if test -s confdefs.h; then 1821 cat <<\_ASBOX 1822## ----------- ## 1823## confdefs.h. ## 1824## ----------- ## 1825_ASBOX 1826 echo 1827 cat confdefs.h 1828 echo 1829 fi 1830 test "$ac_signal" != 0 && 1831 echo "$as_me: caught signal $ac_signal" 1832 echo "$as_me: exit $exit_status" 1833 } >&5 1834 rm -f core *.core core.conftest.* && 1835 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1836 exit $exit_status 1837' 0 1838for ac_signal in 1 2 13 15; do 1839 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1840done 1841ac_signal=0 1842 1843# confdefs.h avoids OS command line length limits that DEFS can exceed. 1844rm -f -r conftest* confdefs.h 1845 1846# Predefined preprocessor variables. 1847 1848cat >>confdefs.h <<_ACEOF 1849#define PACKAGE_NAME "$PACKAGE_NAME" 1850_ACEOF 1851 1852 1853cat >>confdefs.h <<_ACEOF 1854#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1855_ACEOF 1856 1857 1858cat >>confdefs.h <<_ACEOF 1859#define PACKAGE_VERSION "$PACKAGE_VERSION" 1860_ACEOF 1861 1862 1863cat >>confdefs.h <<_ACEOF 1864#define PACKAGE_STRING "$PACKAGE_STRING" 1865_ACEOF 1866 1867 1868cat >>confdefs.h <<_ACEOF 1869#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1870_ACEOF 1871 1872 1873# Let the site file select an alternate cache file if it wants to. 1874# Prefer explicitly selected file to automatically selected ones. 1875if test -n "$CONFIG_SITE"; then 1876 set x "$CONFIG_SITE" 1877elif test "x$prefix" != xNONE; then 1878 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1879else 1880 set x "$ac_default_prefix/share/config.site" \ 1881 "$ac_default_prefix/etc/config.site" 1882fi 1883shift 1884for ac_site_file 1885do 1886 if test -r "$ac_site_file"; then 1887 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1888echo "$as_me: loading site script $ac_site_file" >&6;} 1889 sed 's/^/| /' "$ac_site_file" >&5 1890 . "$ac_site_file" 1891 fi 1892done 1893 1894if test -r "$cache_file"; then 1895 # Some versions of bash will fail to source /dev/null (special 1896 # files actually), so we avoid doing that. 1897 if test -f "$cache_file"; then 1898 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1899echo "$as_me: loading cache $cache_file" >&6;} 1900 case $cache_file in 1901 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1902 *) . "./$cache_file";; 1903 esac 1904 fi 1905else 1906 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1907echo "$as_me: creating cache $cache_file" >&6;} 1908 >$cache_file 1909fi 1910 1911# Check that the precious variables saved in the cache have kept the same 1912# value. 1913ac_cache_corrupted=false 1914for ac_var in $ac_precious_vars; do 1915 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1916 eval ac_new_set=\$ac_env_${ac_var}_set 1917 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1918 eval ac_new_val=\$ac_env_${ac_var}_value 1919 case $ac_old_set,$ac_new_set in 1920 set,) 1921 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1922echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1923 ac_cache_corrupted=: ;; 1924 ,set) 1925 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1926echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1927 ac_cache_corrupted=: ;; 1928 ,);; 1929 *) 1930 if test "x$ac_old_val" != "x$ac_new_val"; then 1931 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1932echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1933 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1934echo "$as_me: former value: $ac_old_val" >&2;} 1935 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1936echo "$as_me: current value: $ac_new_val" >&2;} 1937 ac_cache_corrupted=: 1938 fi;; 1939 esac 1940 # Pass precious variables to config.status. 1941 if test "$ac_new_set" = set; then 1942 case $ac_new_val in 1943 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1944 *) ac_arg=$ac_var=$ac_new_val ;; 1945 esac 1946 case " $ac_configure_args " in 1947 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1948 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1949 esac 1950 fi 1951done 1952if $ac_cache_corrupted; then 1953 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1954echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1955 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1956echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1957 { (exit 1); exit 1; }; } 1958fi 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984ac_ext=c 1985ac_cpp='$CPP $CPPFLAGS' 1986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1988ac_compiler_gnu=$ac_cv_c_compiler_gnu 1989 1990 1991 1992 rm -f config.nice 1993 cat >config.nice<<EOF 1994#! /bin/sh 1995# 1996# Created by configure 1997 1998EOF 1999 if test -n "$CC"; then 2000 echo "CC=\"$CC\"; export CC" >> config.nice 2001 fi 2002 if test -n "$CFLAGS"; then 2003 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice 2004 fi 2005 if test -n "$CPPFLAGS"; then 2006 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice 2007 fi 2008 if test -n "$LDFLAGS"; then 2009 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice 2010 fi 2011 if test -n "$LTFLAGS"; then 2012 echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice 2013 fi 2014 if test -n "$LIBS"; then 2015 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice 2016 fi 2017 if test -n "$INCLUDES"; then 2018 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice 2019 fi 2020 if test -n "$NOTEST_CFLAGS"; then 2021 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice 2022 fi 2023 if test -n "$NOTEST_CPPFLAGS"; then 2024 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice 2025 fi 2026 if test -n "$NOTEST_LDFLAGS"; then 2027 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice 2028 fi 2029 if test -n "$NOTEST_LIBS"; then 2030 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice 2031 fi 2032 2033 echo $0 $ac_configure_args '"$@"' >> config.nice 2034 chmod +x config.nice 2035 2036 2037 2038am__api_version='1.10' 2039 2040ac_aux_dir= 2041for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2042 if test -f "$ac_dir/install-sh"; then 2043 ac_aux_dir=$ac_dir 2044 ac_install_sh="$ac_aux_dir/install-sh -c" 2045 break 2046 elif test -f "$ac_dir/install.sh"; then 2047 ac_aux_dir=$ac_dir 2048 ac_install_sh="$ac_aux_dir/install.sh -c" 2049 break 2050 elif test -f "$ac_dir/shtool"; then 2051 ac_aux_dir=$ac_dir 2052 ac_install_sh="$ac_aux_dir/shtool install -c" 2053 break 2054 fi 2055done 2056if test -z "$ac_aux_dir"; then 2057 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2058echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2059 { (exit 1); exit 1; }; } 2060fi 2061 2062# These three variables are undocumented and unsupported, 2063# and are intended to be withdrawn in a future Autoconf release. 2064# They can cause serious problems if a builder's source tree is in a directory 2065# whose full name contains unusual characters. 2066ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2067ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2068ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2069 2070 2071# Find a good install program. We prefer a C program (faster), 2072# so one script is as good as another. But avoid the broken or 2073# incompatible versions: 2074# SysV /etc/install, /usr/sbin/install 2075# SunOS /usr/etc/install 2076# IRIX /sbin/install 2077# AIX /bin/install 2078# AmigaOS /C/install, which installs bootblocks on floppy discs 2079# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2080# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2081# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2082# OS/2's system install, which has a completely different semantic 2083# ./install, which can be erroneously created by make from ./install.sh. 2084{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2085echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2086if test -z "$INSTALL"; then 2087if test "${ac_cv_path_install+set}" = set; then 2088 echo $ECHO_N "(cached) $ECHO_C" >&6 2089else 2090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2091for as_dir in $PATH 2092do 2093 IFS=$as_save_IFS 2094 test -z "$as_dir" && as_dir=. 2095 # Account for people who put trailing slashes in PATH elements. 2096case $as_dir/ in 2097 ./ | .// | /cC/* | \ 2098 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2099 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2100 /usr/ucb/* ) ;; 2101 *) 2102 # OSF1 and SCO ODT 3.0 have their own names for install. 2103 # Don't use installbsd from OSF since it installs stuff as root 2104 # by default. 2105 for ac_prog in ginstall scoinst install; do 2106 for ac_exec_ext in '' $ac_executable_extensions; do 2107 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2108 if test $ac_prog = install && 2109 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2110 # AIX install. It has an incompatible calling convention. 2111 : 2112 elif test $ac_prog = install && 2113 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2114 # program-specific install script used by HP pwplus--don't use. 2115 : 2116 else 2117 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2118 break 3 2119 fi 2120 fi 2121 done 2122 done 2123 ;; 2124esac 2125done 2126IFS=$as_save_IFS 2127 2128 2129fi 2130 if test "${ac_cv_path_install+set}" = set; then 2131 INSTALL=$ac_cv_path_install 2132 else 2133 # As a last resort, use the slow shell script. Don't cache a 2134 # value for INSTALL within a source directory, because that will 2135 # break other packages using the cache if that directory is 2136 # removed, or if the value is a relative name. 2137 INSTALL=$ac_install_sh 2138 fi 2139fi 2140{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2141echo "${ECHO_T}$INSTALL" >&6; } 2142 2143# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2144# It thinks the first close brace ends the variable substitution. 2145test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2146 2147test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2148 2149test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2150 2151{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2152echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2153# Just in case 2154sleep 1 2155echo timestamp > conftest.file 2156# Do `set' in a subshell so we don't clobber the current shell's 2157# arguments. Must try -L first in case configure is actually a 2158# symlink; some systems play weird games with the mod time of symlinks 2159# (eg FreeBSD returns the mod time of the symlink's containing 2160# directory). 2161if ( 2162 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2163 if test "$*" = "X"; then 2164 # -L didn't work. 2165 set X `ls -t $srcdir/configure conftest.file` 2166 fi 2167 rm -f conftest.file 2168 if test "$*" != "X $srcdir/configure conftest.file" \ 2169 && test "$*" != "X conftest.file $srcdir/configure"; then 2170 2171 # If neither matched, then we have a broken ls. This can happen 2172 # if, for instance, CONFIG_SHELL is bash and it inherits a 2173 # broken ls alias from the environment. This has actually 2174 # happened. Such a system could not be considered "sane". 2175 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2176alias in your environment" >&5 2177echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2178alias in your environment" >&2;} 2179 { (exit 1); exit 1; }; } 2180 fi 2181 2182 test "$2" = conftest.file 2183 ) 2184then 2185 # Ok. 2186 : 2187else 2188 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2189Check your system clock" >&5 2190echo "$as_me: error: newly created file is older than distributed files! 2191Check your system clock" >&2;} 2192 { (exit 1); exit 1; }; } 2193fi 2194{ echo "$as_me:$LINENO: result: yes" >&5 2195echo "${ECHO_T}yes" >&6; } 2196test "$program_prefix" != NONE && 2197 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2198# Use a double $ so make ignores it. 2199test "$program_suffix" != NONE && 2200 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2201# Double any \ or $. echo might interpret backslashes. 2202# By default was `s,x,x', remove it if useless. 2203cat <<\_ACEOF >conftest.sed 2204s/[\\$]/&&/g;s/;s,x,x,$// 2205_ACEOF 2206program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2207rm -f conftest.sed 2208 2209# expand $ac_aux_dir to an absolute path 2210am_aux_dir=`cd $ac_aux_dir && pwd` 2211 2212test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2213# Use eval to expand $SHELL 2214if eval "$MISSING --run true"; then 2215 am_missing_run="$MISSING --run " 2216else 2217 am_missing_run= 2218 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2219echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2220fi 2221 2222{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2223echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2224if test -z "$MKDIR_P"; then 2225 if test "${ac_cv_path_mkdir+set}" = set; then 2226 echo $ECHO_N "(cached) $ECHO_C" >&6 2227else 2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2229for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2230do 2231 IFS=$as_save_IFS 2232 test -z "$as_dir" && as_dir=. 2233 for ac_prog in mkdir gmkdir; do 2234 for ac_exec_ext in '' $ac_executable_extensions; do 2235 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2236 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2237 'mkdir (GNU coreutils) '* | \ 2238 'mkdir (coreutils) '* | \ 2239 'mkdir (fileutils) '4.1*) 2240 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2241 break 3;; 2242 esac 2243 done 2244 done 2245done 2246IFS=$as_save_IFS 2247 2248fi 2249 2250 if test "${ac_cv_path_mkdir+set}" = set; then 2251 MKDIR_P="$ac_cv_path_mkdir -p" 2252 else 2253 # As a last resort, use the slow shell script. Don't cache a 2254 # value for MKDIR_P within a source directory, because that will 2255 # break other packages using the cache if that directory is 2256 # removed, or if the value is a relative name. 2257 test -d ./--version && rmdir ./--version 2258 MKDIR_P="$ac_install_sh -d" 2259 fi 2260fi 2261{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2262echo "${ECHO_T}$MKDIR_P" >&6; } 2263 2264mkdir_p="$MKDIR_P" 2265case $mkdir_p in 2266 [\\/$]* | ?:[\\/]*) ;; 2267 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2268esac 2269 2270for ac_prog in gawk mawk nawk awk 2271do 2272 # Extract the first word of "$ac_prog", so it can be a program name with args. 2273set dummy $ac_prog; ac_word=$2 2274{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2276if test "${ac_cv_prog_AWK+set}" = set; then 2277 echo $ECHO_N "(cached) $ECHO_C" >&6 2278else 2279 if test -n "$AWK"; then 2280 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2281else 2282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2283for as_dir in $PATH 2284do 2285 IFS=$as_save_IFS 2286 test -z "$as_dir" && as_dir=. 2287 for ac_exec_ext in '' $ac_executable_extensions; do 2288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2289 ac_cv_prog_AWK="$ac_prog" 2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2291 break 2 2292 fi 2293done 2294done 2295IFS=$as_save_IFS 2296 2297fi 2298fi 2299AWK=$ac_cv_prog_AWK 2300if test -n "$AWK"; then 2301 { echo "$as_me:$LINENO: result: $AWK" >&5 2302echo "${ECHO_T}$AWK" >&6; } 2303else 2304 { echo "$as_me:$LINENO: result: no" >&5 2305echo "${ECHO_T}no" >&6; } 2306fi 2307 2308 2309 test -n "$AWK" && break 2310done 2311 2312{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2313echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2314set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2315if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2316 echo $ECHO_N "(cached) $ECHO_C" >&6 2317else 2318 cat >conftest.make <<\_ACEOF 2319SHELL = /bin/sh 2320all: 2321 @echo '@@@%%%=$(MAKE)=@@@%%%' 2322_ACEOF 2323# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2324case `${MAKE-make} -f conftest.make 2>/dev/null` in 2325 *@@@%%%=?*=@@@%%%*) 2326 eval ac_cv_prog_make_${ac_make}_set=yes;; 2327 *) 2328 eval ac_cv_prog_make_${ac_make}_set=no;; 2329esac 2330rm -f conftest.make 2331fi 2332if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2333 { echo "$as_me:$LINENO: result: yes" >&5 2334echo "${ECHO_T}yes" >&6; } 2335 SET_MAKE= 2336else 2337 { echo "$as_me:$LINENO: result: no" >&5 2338echo "${ECHO_T}no" >&6; } 2339 SET_MAKE="MAKE=${MAKE-make}" 2340fi 2341 2342rm -rf .tst 2>/dev/null 2343mkdir .tst 2>/dev/null 2344if test -d .tst; then 2345 am__leading_dot=. 2346else 2347 am__leading_dot=_ 2348fi 2349rmdir .tst 2>/dev/null 2350 2351if test "`cd $srcdir && pwd`" != "`pwd`"; then 2352 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2353 # is not polluted with repeated "-I." 2354 am__isrc=' -I$(srcdir)' 2355 # test to see if srcdir already configured 2356 if test -f $srcdir/config.status; then 2357 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2358echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2359 { (exit 1); exit 1; }; } 2360 fi 2361fi 2362 2363# test whether we have cygpath 2364if test -z "$CYGPATH_W"; then 2365 if (cygpath --version) >/dev/null 2>/dev/null; then 2366 CYGPATH_W='cygpath -w' 2367 else 2368 CYGPATH_W=echo 2369 fi 2370fi 2371 2372 2373# Define the identity of the package. 2374 PACKAGE=libapreq2 2375 VERSION=2.13 2376 2377 2378cat >>confdefs.h <<_ACEOF 2379#define PACKAGE "$PACKAGE" 2380_ACEOF 2381 2382 2383cat >>confdefs.h <<_ACEOF 2384#define VERSION "$VERSION" 2385_ACEOF 2386 2387# Some tools Automake needs. 2388 2389ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2390 2391 2392AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2393 2394 2395AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2396 2397 2398AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2399 2400 2401MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2402 2403install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2404 2405# Installed binaries are usually stripped using `strip' when the user 2406# run `make install-strip'. However `strip' might not be the right 2407# tool to use in cross-compilation environments, therefore Automake 2408# will honor the `STRIP' environment variable to overrule this program. 2409if test "$cross_compiling" != no; then 2410 if test -n "$ac_tool_prefix"; then 2411 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2412set dummy ${ac_tool_prefix}strip; ac_word=$2 2413{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2415if test "${ac_cv_prog_STRIP+set}" = set; then 2416 echo $ECHO_N "(cached) $ECHO_C" >&6 2417else 2418 if test -n "$STRIP"; then 2419 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2420else 2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2422for as_dir in $PATH 2423do 2424 IFS=$as_save_IFS 2425 test -z "$as_dir" && as_dir=. 2426 for ac_exec_ext in '' $ac_executable_extensions; do 2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2428 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2430 break 2 2431 fi 2432done 2433done 2434IFS=$as_save_IFS 2435 2436fi 2437fi 2438STRIP=$ac_cv_prog_STRIP 2439if test -n "$STRIP"; then 2440 { echo "$as_me:$LINENO: result: $STRIP" >&5 2441echo "${ECHO_T}$STRIP" >&6; } 2442else 2443 { echo "$as_me:$LINENO: result: no" >&5 2444echo "${ECHO_T}no" >&6; } 2445fi 2446 2447 2448fi 2449if test -z "$ac_cv_prog_STRIP"; then 2450 ac_ct_STRIP=$STRIP 2451 # Extract the first word of "strip", so it can be a program name with args. 2452set dummy strip; ac_word=$2 2453{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2455if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2456 echo $ECHO_N "(cached) $ECHO_C" >&6 2457else 2458 if test -n "$ac_ct_STRIP"; then 2459 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2460else 2461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2462for as_dir in $PATH 2463do 2464 IFS=$as_save_IFS 2465 test -z "$as_dir" && as_dir=. 2466 for ac_exec_ext in '' $ac_executable_extensions; do 2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2468 ac_cv_prog_ac_ct_STRIP="strip" 2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2470 break 2 2471 fi 2472done 2473done 2474IFS=$as_save_IFS 2475 2476fi 2477fi 2478ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2479if test -n "$ac_ct_STRIP"; then 2480 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2481echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2482else 2483 { echo "$as_me:$LINENO: result: no" >&5 2484echo "${ECHO_T}no" >&6; } 2485fi 2486 2487 if test "x$ac_ct_STRIP" = x; then 2488 STRIP=":" 2489 else 2490 case $cross_compiling:$ac_tool_warned in 2491yes:) 2492{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2493whose name does not start with the host triplet. If you think this 2494configuration is useful to you, please write to autoconf@gnu.org." >&5 2495echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2496whose name does not start with the host triplet. If you think this 2497configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2498ac_tool_warned=yes ;; 2499esac 2500 STRIP=$ac_ct_STRIP 2501 fi 2502else 2503 STRIP="$ac_cv_prog_STRIP" 2504fi 2505 2506fi 2507INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2508 2509# We need awk for the "check" target. The system "awk" is bad on 2510# some platforms. 2511# Always define AMTAR for backward compatibility. 2512 2513AMTAR=${AMTAR-"${am_missing_run}tar"} 2514 2515am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2516 2517 2518 2519 2520 2521 2522{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2523echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2524set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2525if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2526 echo $ECHO_N "(cached) $ECHO_C" >&6 2527else 2528 cat >conftest.make <<\_ACEOF 2529SHELL = /bin/sh 2530all: 2531 @echo '@@@%%%=$(MAKE)=@@@%%%' 2532_ACEOF 2533# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2534case `${MAKE-make} -f conftest.make 2>/dev/null` in 2535 *@@@%%%=?*=@@@%%%*) 2536 eval ac_cv_prog_make_${ac_make}_set=yes;; 2537 *) 2538 eval ac_cv_prog_make_${ac_make}_set=no;; 2539esac 2540rm -f conftest.make 2541fi 2542if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2543 { echo "$as_me:$LINENO: result: yes" >&5 2544echo "${ECHO_T}yes" >&6; } 2545 SET_MAKE= 2546else 2547 { echo "$as_me:$LINENO: result: no" >&5 2548echo "${ECHO_T}no" >&6; } 2549 SET_MAKE="MAKE=${MAKE-make}" 2550fi 2551 2552 2553ac_ext=c 2554ac_cpp='$CPP $CPPFLAGS' 2555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2557ac_compiler_gnu=$ac_cv_c_compiler_gnu 2558if test -n "$ac_tool_prefix"; then 2559 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2560set dummy ${ac_tool_prefix}gcc; ac_word=$2 2561{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2563if test "${ac_cv_prog_CC+set}" = set; then 2564 echo $ECHO_N "(cached) $ECHO_C" >&6 2565else 2566 if test -n "$CC"; then 2567 ac_cv_prog_CC="$CC" # Let the user override the test. 2568else 2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2570for as_dir in $PATH 2571do 2572 IFS=$as_save_IFS 2573 test -z "$as_dir" && as_dir=. 2574 for ac_exec_ext in '' $ac_executable_extensions; do 2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2576 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2578 break 2 2579 fi 2580done 2581done 2582IFS=$as_save_IFS 2583 2584fi 2585fi 2586CC=$ac_cv_prog_CC 2587if test -n "$CC"; then 2588 { echo "$as_me:$LINENO: result: $CC" >&5 2589echo "${ECHO_T}$CC" >&6; } 2590else 2591 { echo "$as_me:$LINENO: result: no" >&5 2592echo "${ECHO_T}no" >&6; } 2593fi 2594 2595 2596fi 2597if test -z "$ac_cv_prog_CC"; then 2598 ac_ct_CC=$CC 2599 # Extract the first word of "gcc", so it can be a program name with args. 2600set dummy gcc; ac_word=$2 2601{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2603if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2604 echo $ECHO_N "(cached) $ECHO_C" >&6 2605else 2606 if test -n "$ac_ct_CC"; then 2607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2608else 2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2610for as_dir in $PATH 2611do 2612 IFS=$as_save_IFS 2613 test -z "$as_dir" && as_dir=. 2614 for ac_exec_ext in '' $ac_executable_extensions; do 2615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2616 ac_cv_prog_ac_ct_CC="gcc" 2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2618 break 2 2619 fi 2620done 2621done 2622IFS=$as_save_IFS 2623 2624fi 2625fi 2626ac_ct_CC=$ac_cv_prog_ac_ct_CC 2627if test -n "$ac_ct_CC"; then 2628 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2629echo "${ECHO_T}$ac_ct_CC" >&6; } 2630else 2631 { echo "$as_me:$LINENO: result: no" >&5 2632echo "${ECHO_T}no" >&6; } 2633fi 2634 2635 if test "x$ac_ct_CC" = x; then 2636 CC="" 2637 else 2638 case $cross_compiling:$ac_tool_warned in 2639yes:) 2640{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2641whose name does not start with the host triplet. If you think this 2642configuration is useful to you, please write to autoconf@gnu.org." >&5 2643echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2644whose name does not start with the host triplet. If you think this 2645configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2646ac_tool_warned=yes ;; 2647esac 2648 CC=$ac_ct_CC 2649 fi 2650else 2651 CC="$ac_cv_prog_CC" 2652fi 2653 2654if test -z "$CC"; then 2655 if test -n "$ac_tool_prefix"; then 2656 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2657set dummy ${ac_tool_prefix}cc; ac_word=$2 2658{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2660if test "${ac_cv_prog_CC+set}" = set; then 2661 echo $ECHO_N "(cached) $ECHO_C" >&6 2662else 2663 if test -n "$CC"; then 2664 ac_cv_prog_CC="$CC" # Let the user override the test. 2665else 2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2667for as_dir in $PATH 2668do 2669 IFS=$as_save_IFS 2670 test -z "$as_dir" && as_dir=. 2671 for ac_exec_ext in '' $ac_executable_extensions; do 2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2673 ac_cv_prog_CC="${ac_tool_prefix}cc" 2674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2675 break 2 2676 fi 2677done 2678done 2679IFS=$as_save_IFS 2680 2681fi 2682fi 2683CC=$ac_cv_prog_CC 2684if test -n "$CC"; then 2685 { echo "$as_me:$LINENO: result: $CC" >&5 2686echo "${ECHO_T}$CC" >&6; } 2687else 2688 { echo "$as_me:$LINENO: result: no" >&5 2689echo "${ECHO_T}no" >&6; } 2690fi 2691 2692 2693 fi 2694fi 2695if test -z "$CC"; then 2696 # Extract the first word of "cc", so it can be a program name with args. 2697set dummy cc; ac_word=$2 2698{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2700if test "${ac_cv_prog_CC+set}" = set; then 2701 echo $ECHO_N "(cached) $ECHO_C" >&6 2702else 2703 if test -n "$CC"; then 2704 ac_cv_prog_CC="$CC" # Let the user override the test. 2705else 2706 ac_prog_rejected=no 2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2708for as_dir in $PATH 2709do 2710 IFS=$as_save_IFS 2711 test -z "$as_dir" && as_dir=. 2712 for ac_exec_ext in '' $ac_executable_extensions; do 2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2714 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2715 ac_prog_rejected=yes 2716 continue 2717 fi 2718 ac_cv_prog_CC="cc" 2719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2720 break 2 2721 fi 2722done 2723done 2724IFS=$as_save_IFS 2725 2726if test $ac_prog_rejected = yes; then 2727 # We found a bogon in the path, so make sure we never use it. 2728 set dummy $ac_cv_prog_CC 2729 shift 2730 if test $# != 0; then 2731 # We chose a different compiler from the bogus one. 2732 # However, it has the same basename, so the bogon will be chosen 2733 # first if we set CC to just the basename; use the full file name. 2734 shift 2735 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2736 fi 2737fi 2738fi 2739fi 2740CC=$ac_cv_prog_CC 2741if test -n "$CC"; then 2742 { echo "$as_me:$LINENO: result: $CC" >&5 2743echo "${ECHO_T}$CC" >&6; } 2744else 2745 { echo "$as_me:$LINENO: result: no" >&5 2746echo "${ECHO_T}no" >&6; } 2747fi 2748 2749 2750fi 2751if test -z "$CC"; then 2752 if test -n "$ac_tool_prefix"; then 2753 for ac_prog in cl.exe 2754 do 2755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2756set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2757{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2759if test "${ac_cv_prog_CC+set}" = set; then 2760 echo $ECHO_N "(cached) $ECHO_C" >&6 2761else 2762 if test -n "$CC"; then 2763 ac_cv_prog_CC="$CC" # Let the user override the test. 2764else 2765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2766for as_dir in $PATH 2767do 2768 IFS=$as_save_IFS 2769 test -z "$as_dir" && as_dir=. 2770 for ac_exec_ext in '' $ac_executable_extensions; do 2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2772 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2774 break 2 2775 fi 2776done 2777done 2778IFS=$as_save_IFS 2779 2780fi 2781fi 2782CC=$ac_cv_prog_CC 2783if test -n "$CC"; then 2784 { echo "$as_me:$LINENO: result: $CC" >&5 2785echo "${ECHO_T}$CC" >&6; } 2786else 2787 { echo "$as_me:$LINENO: result: no" >&5 2788echo "${ECHO_T}no" >&6; } 2789fi 2790 2791 2792 test -n "$CC" && break 2793 done 2794fi 2795if test -z "$CC"; then 2796 ac_ct_CC=$CC 2797 for ac_prog in cl.exe 2798do 2799 # Extract the first word of "$ac_prog", so it can be a program name with args. 2800set dummy $ac_prog; ac_word=$2 2801{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2803if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2804 echo $ECHO_N "(cached) $ECHO_C" >&6 2805else 2806 if test -n "$ac_ct_CC"; then 2807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2808else 2809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2810for as_dir in $PATH 2811do 2812 IFS=$as_save_IFS 2813 test -z "$as_dir" && as_dir=. 2814 for ac_exec_ext in '' $ac_executable_extensions; do 2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2816 ac_cv_prog_ac_ct_CC="$ac_prog" 2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2818 break 2 2819 fi 2820done 2821done 2822IFS=$as_save_IFS 2823 2824fi 2825fi 2826ac_ct_CC=$ac_cv_prog_ac_ct_CC 2827if test -n "$ac_ct_CC"; then 2828 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2829echo "${ECHO_T}$ac_ct_CC" >&6; } 2830else 2831 { echo "$as_me:$LINENO: result: no" >&5 2832echo "${ECHO_T}no" >&6; } 2833fi 2834 2835 2836 test -n "$ac_ct_CC" && break 2837done 2838 2839 if test "x$ac_ct_CC" = x; then 2840 CC="" 2841 else 2842 case $cross_compiling:$ac_tool_warned in 2843yes:) 2844{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2845whose name does not start with the host triplet. If you think this 2846configuration is useful to you, please write to autoconf@gnu.org." >&5 2847echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2848whose name does not start with the host triplet. If you think this 2849configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2850ac_tool_warned=yes ;; 2851esac 2852 CC=$ac_ct_CC 2853 fi 2854fi 2855 2856fi 2857 2858 2859test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2860See \`config.log' for more details." >&5 2861echo "$as_me: error: no acceptable C compiler found in \$PATH 2862See \`config.log' for more details." >&2;} 2863 { (exit 1); exit 1; }; } 2864 2865# Provide some information about the compiler. 2866echo "$as_me:$LINENO: checking for C compiler version" >&5 2867ac_compiler=`set X $ac_compile; echo $2` 2868{ (ac_try="$ac_compiler --version >&5" 2869case "(($ac_try" in 2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2871 *) ac_try_echo=$ac_try;; 2872esac 2873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2874 (eval "$ac_compiler --version >&5") 2>&5 2875 ac_status=$? 2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2877 (exit $ac_status); } 2878{ (ac_try="$ac_compiler -v >&5" 2879case "(($ac_try" in 2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2881 *) ac_try_echo=$ac_try;; 2882esac 2883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2884 (eval "$ac_compiler -v >&5") 2>&5 2885 ac_status=$? 2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2887 (exit $ac_status); } 2888{ (ac_try="$ac_compiler -V >&5" 2889case "(($ac_try" in 2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2891 *) ac_try_echo=$ac_try;; 2892esac 2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2894 (eval "$ac_compiler -V >&5") 2>&5 2895 ac_status=$? 2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2897 (exit $ac_status); } 2898 2899cat >conftest.$ac_ext <<_ACEOF 2900/* confdefs.h. */ 2901_ACEOF 2902cat confdefs.h >>conftest.$ac_ext 2903cat >>conftest.$ac_ext <<_ACEOF 2904/* end confdefs.h. */ 2905 2906int 2907main () 2908{ 2909 2910 ; 2911 return 0; 2912} 2913_ACEOF 2914ac_clean_files_save=$ac_clean_files 2915ac_clean_files="$ac_clean_files a.out a.exe b.out" 2916# Try to create an executable without -o first, disregard a.out. 2917# It will help us diagnose broken compilers, and finding out an intuition 2918# of exeext. 2919{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2920echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2921ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2922# 2923# List of possible output files, starting from the most likely. 2924# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2925# only as a last resort. b.out is created by i960 compilers. 2926ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2927# 2928# The IRIX 6 linker writes into existing files which may not be 2929# executable, retaining their permissions. Remove them first so a 2930# subsequent execution test works. 2931ac_rmfiles= 2932for ac_file in $ac_files 2933do 2934 case $ac_file in 2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2936 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2937 esac 2938done 2939rm -f $ac_rmfiles 2940 2941if { (ac_try="$ac_link_default" 2942case "(($ac_try" in 2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2944 *) ac_try_echo=$ac_try;; 2945esac 2946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2947 (eval "$ac_link_default") 2>&5 2948 ac_status=$? 2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2950 (exit $ac_status); }; then 2951 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2952# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2953# in a Makefile. We should not override ac_cv_exeext if it was cached, 2954# so that the user can short-circuit this test for compilers unknown to 2955# Autoconf. 2956for ac_file in $ac_files '' 2957do 2958 test -f "$ac_file" || continue 2959 case $ac_file in 2960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2961 ;; 2962 [ab].out ) 2963 # We found the default executable, but exeext='' is most 2964 # certainly right. 2965 break;; 2966 *.* ) 2967 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2968 then :; else 2969 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2970 fi 2971 # We set ac_cv_exeext here because the later test for it is not 2972 # safe: cross compilers may not add the suffix if given an `-o' 2973 # argument, so we may need to know it at that point already. 2974 # Even if this section looks crufty: it has the advantage of 2975 # actually working. 2976 break;; 2977 * ) 2978 break;; 2979 esac 2980done 2981test "$ac_cv_exeext" = no && ac_cv_exeext= 2982 2983else 2984 ac_file='' 2985fi 2986 2987{ echo "$as_me:$LINENO: result: $ac_file" >&5 2988echo "${ECHO_T}$ac_file" >&6; } 2989if test -z "$ac_file"; then 2990 echo "$as_me: failed program was:" >&5 2991sed 's/^/| /' conftest.$ac_ext >&5 2992 2993{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2994See \`config.log' for more details." >&5 2995echo "$as_me: error: C compiler cannot create executables 2996See \`config.log' for more details." >&2;} 2997 { (exit 77); exit 77; }; } 2998fi 2999 3000ac_exeext=$ac_cv_exeext 3001 3002# Check that the compiler produces executables we can run. If not, either 3003# the compiler is broken, or we cross compile. 3004{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3005echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3006# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3007# If not cross compiling, check that we can run a simple program. 3008if test "$cross_compiling" != yes; then 3009 if { ac_try='./$ac_file' 3010 { (case "(($ac_try" in 3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3012 *) ac_try_echo=$ac_try;; 3013esac 3014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3015 (eval "$ac_try") 2>&5 3016 ac_status=$? 3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); }; }; then 3019 cross_compiling=no 3020 else 3021 if test "$cross_compiling" = maybe; then 3022 cross_compiling=yes 3023 else 3024 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3025If you meant to cross compile, use \`--host'. 3026See \`config.log' for more details." >&5 3027echo "$as_me: error: cannot run C compiled programs. 3028If you meant to cross compile, use \`--host'. 3029See \`config.log' for more details." >&2;} 3030 { (exit 1); exit 1; }; } 3031 fi 3032 fi 3033fi 3034{ echo "$as_me:$LINENO: result: yes" >&5 3035echo "${ECHO_T}yes" >&6; } 3036 3037rm -f a.out a.exe conftest$ac_cv_exeext b.out 3038ac_clean_files=$ac_clean_files_save 3039# Check that the compiler produces executables we can run. If not, either 3040# the compiler is broken, or we cross compile. 3041{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3042echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3043{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3044echo "${ECHO_T}$cross_compiling" >&6; } 3045 3046{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3047echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3048if { (ac_try="$ac_link" 3049case "(($ac_try" in 3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3051 *) ac_try_echo=$ac_try;; 3052esac 3053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3054 (eval "$ac_link") 2>&5 3055 ac_status=$? 3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3057 (exit $ac_status); }; then 3058 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3059# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3060# work properly (i.e., refer to `conftest.exe'), while it won't with 3061# `rm'. 3062for ac_file in conftest.exe conftest conftest.*; do 3063 test -f "$ac_file" || continue 3064 case $ac_file in 3065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3067 break;; 3068 * ) break;; 3069 esac 3070done 3071else 3072 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3073See \`config.log' for more details." >&5 3074echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3075See \`config.log' for more details." >&2;} 3076 { (exit 1); exit 1; }; } 3077fi 3078 3079rm -f conftest$ac_cv_exeext 3080{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3081echo "${ECHO_T}$ac_cv_exeext" >&6; } 3082 3083rm -f conftest.$ac_ext 3084EXEEXT=$ac_cv_exeext 3085ac_exeext=$EXEEXT 3086{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3087echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3088if test "${ac_cv_objext+set}" = set; then 3089 echo $ECHO_N "(cached) $ECHO_C" >&6 3090else 3091 cat >conftest.$ac_ext <<_ACEOF 3092/* confdefs.h. */ 3093_ACEOF 3094cat confdefs.h >>conftest.$ac_ext 3095cat >>conftest.$ac_ext <<_ACEOF 3096/* end confdefs.h. */ 3097 3098int 3099main () 3100{ 3101 3102 ; 3103 return 0; 3104} 3105_ACEOF 3106rm -f conftest.o conftest.obj 3107if { (ac_try="$ac_compile" 3108case "(($ac_try" in 3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3110 *) ac_try_echo=$ac_try;; 3111esac 3112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3113 (eval "$ac_compile") 2>&5 3114 ac_status=$? 3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3116 (exit $ac_status); }; then 3117 for ac_file in conftest.o conftest.obj conftest.*; do 3118 test -f "$ac_file" || continue; 3119 case $ac_file in 3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3121 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3122 break;; 3123 esac 3124done 3125else 3126 echo "$as_me: failed program was:" >&5 3127sed 's/^/| /' conftest.$ac_ext >&5 3128 3129{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3130See \`config.log' for more details." >&5 3131echo "$as_me: error: cannot compute suffix of object files: cannot compile 3132See \`config.log' for more details." >&2;} 3133 { (exit 1); exit 1; }; } 3134fi 3135 3136rm -f conftest.$ac_cv_objext conftest.$ac_ext 3137fi 3138{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3139echo "${ECHO_T}$ac_cv_objext" >&6; } 3140OBJEXT=$ac_cv_objext 3141ac_objext=$OBJEXT 3142{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3143echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3144if test "${ac_cv_c_compiler_gnu+set}" = set; then 3145 echo $ECHO_N "(cached) $ECHO_C" >&6 3146else 3147 cat >conftest.$ac_ext <<_ACEOF 3148/* confdefs.h. */ 3149_ACEOF 3150cat confdefs.h >>conftest.$ac_ext 3151cat >>conftest.$ac_ext <<_ACEOF 3152/* end confdefs.h. */ 3153 3154int 3155main () 3156{ 3157#ifndef __GNUC__ 3158 choke me 3159#endif 3160 3161 ; 3162 return 0; 3163} 3164_ACEOF 3165rm -f conftest.$ac_objext 3166if { (ac_try="$ac_compile" 3167case "(($ac_try" in 3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3169 *) ac_try_echo=$ac_try;; 3170esac 3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3172 (eval "$ac_compile") 2>conftest.er1 3173 ac_status=$? 3174 grep -v '^ *+' conftest.er1 >conftest.err 3175 rm -f conftest.er1 3176 cat conftest.err >&5 3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3178 (exit $ac_status); } && { 3179 test -z "$ac_c_werror_flag" || 3180 test ! -s conftest.err 3181 } && test -s conftest.$ac_objext; then 3182 ac_compiler_gnu=yes 3183else 3184 echo "$as_me: failed program was:" >&5 3185sed 's/^/| /' conftest.$ac_ext >&5 3186 3187 ac_compiler_gnu=no 3188fi 3189 3190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3191ac_cv_c_compiler_gnu=$ac_compiler_gnu 3192 3193fi 3194{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3195echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3196GCC=`test $ac_compiler_gnu = yes && echo yes` 3197ac_test_CFLAGS=${CFLAGS+set} 3198ac_save_CFLAGS=$CFLAGS 3199{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3200echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3201if test "${ac_cv_prog_cc_g+set}" = set; then 3202 echo $ECHO_N "(cached) $ECHO_C" >&6 3203else 3204 ac_save_c_werror_flag=$ac_c_werror_flag 3205 ac_c_werror_flag=yes 3206 ac_cv_prog_cc_g=no 3207 CFLAGS="-g" 3208 cat >conftest.$ac_ext <<_ACEOF 3209/* confdefs.h. */ 3210_ACEOF 3211cat confdefs.h >>conftest.$ac_ext 3212cat >>conftest.$ac_ext <<_ACEOF 3213/* end confdefs.h. */ 3214 3215int 3216main () 3217{ 3218 3219 ; 3220 return 0; 3221} 3222_ACEOF 3223rm -f conftest.$ac_objext 3224if { (ac_try="$ac_compile" 3225case "(($ac_try" in 3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3227 *) ac_try_echo=$ac_try;; 3228esac 3229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3230 (eval "$ac_compile") 2>conftest.er1 3231 ac_status=$? 3232 grep -v '^ *+' conftest.er1 >conftest.err 3233 rm -f conftest.er1 3234 cat conftest.err >&5 3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3236 (exit $ac_status); } && { 3237 test -z "$ac_c_werror_flag" || 3238 test ! -s conftest.err 3239 } && test -s conftest.$ac_objext; then 3240 ac_cv_prog_cc_g=yes 3241else 3242 echo "$as_me: failed program was:" >&5 3243sed 's/^/| /' conftest.$ac_ext >&5 3244 3245 CFLAGS="" 3246 cat >conftest.$ac_ext <<_ACEOF 3247/* confdefs.h. */ 3248_ACEOF 3249cat confdefs.h >>conftest.$ac_ext 3250cat >>conftest.$ac_ext <<_ACEOF 3251/* end confdefs.h. */ 3252 3253int 3254main () 3255{ 3256 3257 ; 3258 return 0; 3259} 3260_ACEOF 3261rm -f conftest.$ac_objext 3262if { (ac_try="$ac_compile" 3263case "(($ac_try" in 3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3265 *) ac_try_echo=$ac_try;; 3266esac 3267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3268 (eval "$ac_compile") 2>conftest.er1 3269 ac_status=$? 3270 grep -v '^ *+' conftest.er1 >conftest.err 3271 rm -f conftest.er1 3272 cat conftest.err >&5 3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3274 (exit $ac_status); } && { 3275 test -z "$ac_c_werror_flag" || 3276 test ! -s conftest.err 3277 } && test -s conftest.$ac_objext; then 3278 : 3279else 3280 echo "$as_me: failed program was:" >&5 3281sed 's/^/| /' conftest.$ac_ext >&5 3282 3283 ac_c_werror_flag=$ac_save_c_werror_flag 3284 CFLAGS="-g" 3285 cat >conftest.$ac_ext <<_ACEOF 3286/* confdefs.h. */ 3287_ACEOF 3288cat confdefs.h >>conftest.$ac_ext 3289cat >>conftest.$ac_ext <<_ACEOF 3290/* end confdefs.h. */ 3291 3292int 3293main () 3294{ 3295 3296 ; 3297 return 0; 3298} 3299_ACEOF 3300rm -f conftest.$ac_objext 3301if { (ac_try="$ac_compile" 3302case "(($ac_try" in 3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3304 *) ac_try_echo=$ac_try;; 3305esac 3306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3307 (eval "$ac_compile") 2>conftest.er1 3308 ac_status=$? 3309 grep -v '^ *+' conftest.er1 >conftest.err 3310 rm -f conftest.er1 3311 cat conftest.err >&5 3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3313 (exit $ac_status); } && { 3314 test -z "$ac_c_werror_flag" || 3315 test ! -s conftest.err 3316 } && test -s conftest.$ac_objext; then 3317 ac_cv_prog_cc_g=yes 3318else 3319 echo "$as_me: failed program was:" >&5 3320sed 's/^/| /' conftest.$ac_ext >&5 3321 3322 3323fi 3324 3325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3326fi 3327 3328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3329fi 3330 3331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3332 ac_c_werror_flag=$ac_save_c_werror_flag 3333fi 3334{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3335echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3336if test "$ac_test_CFLAGS" = set; then 3337 CFLAGS=$ac_save_CFLAGS 3338elif test $ac_cv_prog_cc_g = yes; then 3339 if test "$GCC" = yes; then 3340 CFLAGS="-g -O2" 3341 else 3342 CFLAGS="-g" 3343 fi 3344else 3345 if test "$GCC" = yes; then 3346 CFLAGS="-O2" 3347 else 3348 CFLAGS= 3349 fi 3350fi 3351{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3352echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3353if test "${ac_cv_prog_cc_c89+set}" = set; then 3354 echo $ECHO_N "(cached) $ECHO_C" >&6 3355else 3356 ac_cv_prog_cc_c89=no 3357ac_save_CC=$CC 3358cat >conftest.$ac_ext <<_ACEOF 3359/* confdefs.h. */ 3360_ACEOF 3361cat confdefs.h >>conftest.$ac_ext 3362cat >>conftest.$ac_ext <<_ACEOF 3363/* end confdefs.h. */ 3364#include <stdarg.h> 3365#include <stdio.h> 3366#include <sys/types.h> 3367#include <sys/stat.h> 3368/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3369struct buf { int x; }; 3370FILE * (*rcsopen) (struct buf *, struct stat *, int); 3371static char *e (p, i) 3372 char **p; 3373 int i; 3374{ 3375 return p[i]; 3376} 3377static char *f (char * (*g) (char **, int), char **p, ...) 3378{ 3379 char *s; 3380 va_list v; 3381 va_start (v,p); 3382 s = g (p, va_arg (v,int)); 3383 va_end (v); 3384 return s; 3385} 3386 3387/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3388 function prototypes and stuff, but not '\xHH' hex character constants. 3389 These don't provoke an error unfortunately, instead are silently treated 3390 as 'x'. The following induces an error, until -std is added to get 3391 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3392 array size at least. It's necessary to write '\x00'==0 to get something 3393 that's true only with -std. */ 3394int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3395 3396/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3397 inside strings and character constants. */ 3398#define FOO(x) 'x' 3399int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3400 3401int test (int i, double x); 3402struct s1 {int (*f) (int a);}; 3403struct s2 {int (*f) (double a);}; 3404int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3405int argc; 3406char **argv; 3407int 3408main () 3409{ 3410return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3411 ; 3412 return 0; 3413} 3414_ACEOF 3415for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3416 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3417do 3418 CC="$ac_save_CC $ac_arg" 3419 rm -f conftest.$ac_objext 3420if { (ac_try="$ac_compile" 3421case "(($ac_try" in 3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3423 *) ac_try_echo=$ac_try;; 3424esac 3425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3426 (eval "$ac_compile") 2>conftest.er1 3427 ac_status=$? 3428 grep -v '^ *+' conftest.er1 >conftest.err 3429 rm -f conftest.er1 3430 cat conftest.err >&5 3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3432 (exit $ac_status); } && { 3433 test -z "$ac_c_werror_flag" || 3434 test ! -s conftest.err 3435 } && test -s conftest.$ac_objext; then 3436 ac_cv_prog_cc_c89=$ac_arg 3437else 3438 echo "$as_me: failed program was:" >&5 3439sed 's/^/| /' conftest.$ac_ext >&5 3440 3441 3442fi 3443 3444rm -f core conftest.err conftest.$ac_objext 3445 test "x$ac_cv_prog_cc_c89" != "xno" && break 3446done 3447rm -f conftest.$ac_ext 3448CC=$ac_save_CC 3449 3450fi 3451# AC_CACHE_VAL 3452case "x$ac_cv_prog_cc_c89" in 3453 x) 3454 { echo "$as_me:$LINENO: result: none needed" >&5 3455echo "${ECHO_T}none needed" >&6; } ;; 3456 xno) 3457 { echo "$as_me:$LINENO: result: unsupported" >&5 3458echo "${ECHO_T}unsupported" >&6; } ;; 3459 *) 3460 CC="$CC $ac_cv_prog_cc_c89" 3461 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3462echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3463esac 3464 3465 3466ac_ext=c 3467ac_cpp='$CPP $CPPFLAGS' 3468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3470ac_compiler_gnu=$ac_cv_c_compiler_gnu 3471DEPDIR="${am__leading_dot}deps" 3472 3473ac_config_commands="$ac_config_commands depfiles" 3474 3475 3476am_make=${MAKE-make} 3477cat > confinc << 'END' 3478am__doit: 3479 @echo done 3480.PHONY: am__doit 3481END 3482# If we don't find an include directive, just comment out the code. 3483{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3484echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3485am__include="#" 3486am__quote= 3487_am_result=none 3488# First try GNU make style include. 3489echo "include confinc" > confmf 3490# We grep out `Entering directory' and `Leaving directory' 3491# messages which can occur if `w' ends up in MAKEFLAGS. 3492# In particular we don't look at `^make:' because GNU make might 3493# be invoked under some other name (usually "gmake"), in which 3494# case it prints its new name instead of `make'. 3495if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3496 am__include=include 3497 am__quote= 3498 _am_result=GNU 3499fi 3500# Now try BSD make style include. 3501if test "$am__include" = "#"; then 3502 echo '.include "confinc"' > confmf 3503 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3504 am__include=.include 3505 am__quote="\"" 3506 _am_result=BSD 3507 fi 3508fi 3509 3510 3511{ echo "$as_me:$LINENO: result: $_am_result" >&5 3512echo "${ECHO_T}$_am_result" >&6; } 3513rm -f confinc confmf 3514 3515# Check whether --enable-dependency-tracking was given. 3516if test "${enable_dependency_tracking+set}" = set; then 3517 enableval=$enable_dependency_tracking; 3518fi 3519 3520if test "x$enable_dependency_tracking" != xno; then 3521 am_depcomp="$ac_aux_dir/depcomp" 3522 AMDEPBACKSLASH='\' 3523fi 3524 if test "x$enable_dependency_tracking" != xno; then 3525 AMDEP_TRUE= 3526 AMDEP_FALSE='#' 3527else 3528 AMDEP_TRUE='#' 3529 AMDEP_FALSE= 3530fi 3531 3532 3533 3534depcc="$CC" am_compiler_list= 3535 3536{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3537echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3538if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3539 echo $ECHO_N "(cached) $ECHO_C" >&6 3540else 3541 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3542 # We make a subdir and do the tests there. Otherwise we can end up 3543 # making bogus files that we don't know about and never remove. For 3544 # instance it was reported that on HP-UX the gcc test will end up 3545 # making a dummy file named `D' -- because `-MD' means `put the output 3546 # in D'. 3547 mkdir conftest.dir 3548 # Copy depcomp to subdir because otherwise we won't find it if we're 3549 # using a relative directory. 3550 cp "$am_depcomp" conftest.dir 3551 cd conftest.dir 3552 # We will build objects and dependencies in a subdirectory because 3553 # it helps to detect inapplicable dependency modes. For instance 3554 # both Tru64's cc and ICC support -MD to output dependencies as a 3555 # side effect of compilation, but ICC will put the dependencies in 3556 # the current directory while Tru64 will put them in the object 3557 # directory. 3558 mkdir sub 3559 3560 am_cv_CC_dependencies_compiler_type=none 3561 if test "$am_compiler_list" = ""; then 3562 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3563 fi 3564 for depmode in $am_compiler_list; do 3565 # Setup a source with many dependencies, because some compilers 3566 # like to wrap large dependency lists on column 80 (with \), and 3567 # we should not choose a depcomp mode which is confused by this. 3568 # 3569 # We need to recreate these files for each test, as the compiler may 3570 # overwrite some of them when testing with obscure command lines. 3571 # This happens at least with the AIX C compiler. 3572 : > sub/conftest.c 3573 for i in 1 2 3 4 5 6; do 3574 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3575 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3576 # Solaris 8's {/usr,}/bin/sh. 3577 touch sub/conftst$i.h 3578 done 3579 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3580 3581 case $depmode in 3582 nosideeffect) 3583 # after this tag, mechanisms are not by side-effect, so they'll 3584 # only be used when explicitly requested 3585 if test "x$enable_dependency_tracking" = xyes; then 3586 continue 3587 else 3588 break 3589 fi 3590 ;; 3591 none) break ;; 3592 esac 3593 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3594 # mode. It turns out that the SunPro C++ compiler does not properly 3595 # handle `-M -o', and we need to detect this. 3596 if depmode=$depmode \ 3597 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3598 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3599 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3600 >/dev/null 2>conftest.err && 3601 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3602 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3603 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3604 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3605 # icc doesn't choke on unknown options, it will just issue warnings 3606 # or remarks (even with -Werror). So we grep stderr for any message 3607 # that says an option was ignored or not supported. 3608 # When given -MP, icc 7.0 and 7.1 complain thusly: 3609 # icc: Command line warning: ignoring option '-M'; no argument required 3610 # The diagnosis changed in icc 8.0: 3611 # icc: Command line remark: option '-MP' not supported 3612 if (grep 'ignoring option' conftest.err || 3613 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3614 am_cv_CC_dependencies_compiler_type=$depmode 3615 break 3616 fi 3617 fi 3618 done 3619 3620 cd .. 3621 rm -rf conftest.dir 3622else 3623 am_cv_CC_dependencies_compiler_type=none 3624fi 3625 3626fi 3627{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3628echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3629CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3630 3631 if 3632 test "x$enable_dependency_tracking" != xno \ 3633 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3634 am__fastdepCC_TRUE= 3635 am__fastdepCC_FALSE='#' 3636else 3637 am__fastdepCC_TRUE='#' 3638 am__fastdepCC_FALSE= 3639fi 3640 3641 3642# Check whether --enable-shared was given. 3643if test "${enable_shared+set}" = set; then 3644 enableval=$enable_shared; p=${PACKAGE-default} 3645 case $enableval in 3646 yes) enable_shared=yes ;; 3647 no) enable_shared=no ;; 3648 *) 3649 enable_shared=no 3650 # Look at the argument we got. We use all the common list separators. 3651 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3652 for pkg in $enableval; do 3653 IFS="$lt_save_ifs" 3654 if test "X$pkg" = "X$p"; then 3655 enable_shared=yes 3656 fi 3657 done 3658 IFS="$lt_save_ifs" 3659 ;; 3660 esac 3661else 3662 enable_shared=yes 3663fi 3664 3665 3666# Check whether --enable-static was given. 3667if test "${enable_static+set}" = set; then 3668 enableval=$enable_static; p=${PACKAGE-default} 3669 case $enableval in 3670 yes) enable_static=yes ;; 3671 no) enable_static=no ;; 3672 *) 3673 enable_static=no 3674 # Look at the argument we got. We use all the common list separators. 3675 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3676 for pkg in $enableval; do 3677 IFS="$lt_save_ifs" 3678 if test "X$pkg" = "X$p"; then 3679 enable_static=yes 3680 fi 3681 done 3682 IFS="$lt_save_ifs" 3683 ;; 3684 esac 3685else 3686 enable_static=yes 3687fi 3688 3689 3690# Check whether --enable-fast-install was given. 3691if test "${enable_fast_install+set}" = set; then 3692 enableval=$enable_fast_install; p=${PACKAGE-default} 3693 case $enableval in 3694 yes) enable_fast_install=yes ;; 3695 no) enable_fast_install=no ;; 3696 *) 3697 enable_fast_install=no 3698 # Look at the argument we got. We use all the common list separators. 3699 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3700 for pkg in $enableval; do 3701 IFS="$lt_save_ifs" 3702 if test "X$pkg" = "X$p"; then 3703 enable_fast_install=yes 3704 fi 3705 done 3706 IFS="$lt_save_ifs" 3707 ;; 3708 esac 3709else 3710 enable_fast_install=yes 3711fi 3712 3713 3714# Make sure we can run config.sub. 3715$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3716 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3717echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3718 { (exit 1); exit 1; }; } 3719 3720{ echo "$as_me:$LINENO: checking build system type" >&5 3721echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3722if test "${ac_cv_build+set}" = set; then 3723 echo $ECHO_N "(cached) $ECHO_C" >&6 3724else 3725 ac_build_alias=$build_alias 3726test "x$ac_build_alias" = x && 3727 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3728test "x$ac_build_alias" = x && 3729 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3730echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3731 { (exit 1); exit 1; }; } 3732ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3733 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3734echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3735 { (exit 1); exit 1; }; } 3736 3737fi 3738{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3739echo "${ECHO_T}$ac_cv_build" >&6; } 3740case $ac_cv_build in 3741*-*-*) ;; 3742*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3743echo "$as_me: error: invalid value of canonical build" >&2;} 3744 { (exit 1); exit 1; }; };; 3745esac 3746build=$ac_cv_build 3747ac_save_IFS=$IFS; IFS='-' 3748set x $ac_cv_build 3749shift 3750build_cpu=$1 3751build_vendor=$2 3752shift; shift 3753# Remember, the first character of IFS is used to create $*, 3754# except with old shells: 3755build_os=$* 3756IFS=$ac_save_IFS 3757case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3758 3759 3760{ echo "$as_me:$LINENO: checking host system type" >&5 3761echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3762if test "${ac_cv_host+set}" = set; then 3763 echo $ECHO_N "(cached) $ECHO_C" >&6 3764else 3765 if test "x$host_alias" = x; then 3766 ac_cv_host=$ac_cv_build 3767else 3768 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3769 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3770echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3771 { (exit 1); exit 1; }; } 3772fi 3773 3774fi 3775{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3776echo "${ECHO_T}$ac_cv_host" >&6; } 3777case $ac_cv_host in 3778*-*-*) ;; 3779*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3780echo "$as_me: error: invalid value of canonical host" >&2;} 3781 { (exit 1); exit 1; }; };; 3782esac 3783host=$ac_cv_host 3784ac_save_IFS=$IFS; IFS='-' 3785set x $ac_cv_host 3786shift 3787host_cpu=$1 3788host_vendor=$2 3789shift; shift 3790# Remember, the first character of IFS is used to create $*, 3791# except with old shells: 3792host_os=$* 3793IFS=$ac_save_IFS 3794case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3795 3796 3797{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3798echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3799if test "${lt_cv_path_SED+set}" = set; then 3800 echo $ECHO_N "(cached) $ECHO_C" >&6 3801else 3802 # Loop through the user's path and test for sed and gsed. 3803# Then use that list of sed's as ones to test for truncation. 3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3805for as_dir in $PATH 3806do 3807 IFS=$as_save_IFS 3808 test -z "$as_dir" && as_dir=. 3809 for lt_ac_prog in sed gsed; do 3810 for ac_exec_ext in '' $ac_executable_extensions; do 3811 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3812 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3813 fi 3814 done 3815 done 3816done 3817IFS=$as_save_IFS 3818lt_ac_max=0 3819lt_ac_count=0 3820# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3821# along with /bin/sed that truncates output. 3822for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3823 test ! -f $lt_ac_sed && continue 3824 cat /dev/null > conftest.in 3825 lt_ac_count=0 3826 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3827 # Check for GNU sed and select it if it is found. 3828 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3829 lt_cv_path_SED=$lt_ac_sed 3830 break 3831 fi 3832 while true; do 3833 cat conftest.in conftest.in >conftest.tmp 3834 mv conftest.tmp conftest.in 3835 cp conftest.in conftest.nl 3836 echo >>conftest.nl 3837 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3838 cmp -s conftest.out conftest.nl || break 3839 # 10000 chars as input seems more than enough 3840 test $lt_ac_count -gt 10 && break 3841 lt_ac_count=`expr $lt_ac_count + 1` 3842 if test $lt_ac_count -gt $lt_ac_max; then 3843 lt_ac_max=$lt_ac_count 3844 lt_cv_path_SED=$lt_ac_sed 3845 fi 3846 done 3847done 3848 3849fi 3850 3851SED=$lt_cv_path_SED 3852 3853{ echo "$as_me:$LINENO: result: $SED" >&5 3854echo "${ECHO_T}$SED" >&6; } 3855 3856{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3857echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3858if test "${ac_cv_path_GREP+set}" = set; then 3859 echo $ECHO_N "(cached) $ECHO_C" >&6 3860else 3861 # Extract the first word of "grep ggrep" to use in msg output 3862if test -z "$GREP"; then 3863set dummy grep ggrep; ac_prog_name=$2 3864if test "${ac_cv_path_GREP+set}" = set; then 3865 echo $ECHO_N "(cached) $ECHO_C" >&6 3866else 3867 ac_path_GREP_found=false 3868# Loop through the user's path and test for each of PROGNAME-LIST 3869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3870for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3871do 3872 IFS=$as_save_IFS 3873 test -z "$as_dir" && as_dir=. 3874 for ac_prog in grep ggrep; do 3875 for ac_exec_ext in '' $ac_executable_extensions; do 3876 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3877 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3878 # Check for GNU ac_path_GREP and select it if it is found. 3879 # Check for GNU $ac_path_GREP 3880case `"$ac_path_GREP" --version 2>&1` in 3881*GNU*) 3882 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3883*) 3884 ac_count=0 3885 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3886 while : 3887 do 3888 cat "conftest.in" "conftest.in" >"conftest.tmp" 3889 mv "conftest.tmp" "conftest.in" 3890 cp "conftest.in" "conftest.nl" 3891 echo 'GREP' >> "conftest.nl" 3892 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3894 ac_count=`expr $ac_count + 1` 3895 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3896 # Best one so far, save it but keep looking for a better one 3897 ac_cv_path_GREP="$ac_path_GREP" 3898 ac_path_GREP_max=$ac_count 3899 fi 3900 # 10*(2^10) chars as input seems more than enough 3901 test $ac_count -gt 10 && break 3902 done 3903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3904esac 3905 3906 3907 $ac_path_GREP_found && break 3 3908 done 3909done 3910 3911done 3912IFS=$as_save_IFS 3913 3914 3915fi 3916 3917GREP="$ac_cv_path_GREP" 3918if test -z "$GREP"; then 3919 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3920echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3921 { (exit 1); exit 1; }; } 3922fi 3923 3924else 3925 ac_cv_path_GREP=$GREP 3926fi 3927 3928 3929fi 3930{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3931echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3932 GREP="$ac_cv_path_GREP" 3933 3934 3935{ echo "$as_me:$LINENO: checking for egrep" >&5 3936echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3937if test "${ac_cv_path_EGREP+set}" = set; then 3938 echo $ECHO_N "(cached) $ECHO_C" >&6 3939else 3940 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3941 then ac_cv_path_EGREP="$GREP -E" 3942 else 3943 # Extract the first word of "egrep" to use in msg output 3944if test -z "$EGREP"; then 3945set dummy egrep; ac_prog_name=$2 3946if test "${ac_cv_path_EGREP+set}" = set; then 3947 echo $ECHO_N "(cached) $ECHO_C" >&6 3948else 3949 ac_path_EGREP_found=false 3950# Loop through the user's path and test for each of PROGNAME-LIST 3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3952for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3953do 3954 IFS=$as_save_IFS 3955 test -z "$as_dir" && as_dir=. 3956 for ac_prog in egrep; do 3957 for ac_exec_ext in '' $ac_executable_extensions; do 3958 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3959 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3960 # Check for GNU ac_path_EGREP and select it if it is found. 3961 # Check for GNU $ac_path_EGREP 3962case `"$ac_path_EGREP" --version 2>&1` in 3963*GNU*) 3964 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3965*) 3966 ac_count=0 3967 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3968 while : 3969 do 3970 cat "conftest.in" "conftest.in" >"conftest.tmp" 3971 mv "conftest.tmp" "conftest.in" 3972 cp "conftest.in" "conftest.nl" 3973 echo 'EGREP' >> "conftest.nl" 3974 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3976 ac_count=`expr $ac_count + 1` 3977 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3978 # Best one so far, save it but keep looking for a better one 3979 ac_cv_path_EGREP="$ac_path_EGREP" 3980 ac_path_EGREP_max=$ac_count 3981 fi 3982 # 10*(2^10) chars as input seems more than enough 3983 test $ac_count -gt 10 && break 3984 done 3985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3986esac 3987 3988 3989 $ac_path_EGREP_found && break 3 3990 done 3991done 3992 3993done 3994IFS=$as_save_IFS 3995 3996 3997fi 3998 3999EGREP="$ac_cv_path_EGREP" 4000if test -z "$EGREP"; then 4001 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4002echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4003 { (exit 1); exit 1; }; } 4004fi 4005 4006else 4007 ac_cv_path_EGREP=$EGREP 4008fi 4009 4010 4011 fi 4012fi 4013{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4014echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4015 EGREP="$ac_cv_path_EGREP" 4016 4017 4018 4019# Check whether --with-gnu-ld was given. 4020if test "${with_gnu_ld+set}" = set; then 4021 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4022else 4023 with_gnu_ld=no 4024fi 4025 4026ac_prog=ld 4027if test "$GCC" = yes; then 4028 # Check if gcc -print-prog-name=ld gives a path. 4029 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4030echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4031 case $host in 4032 *-*-mingw*) 4033 # gcc leaves a trailing carriage return which upsets mingw 4034 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4035 *) 4036 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4037 esac 4038 case $ac_prog in 4039 # Accept absolute paths. 4040 [\\/]* | ?:[\\/]*) 4041 re_direlt='/[^/][^/]*/\.\./' 4042 # Canonicalize the pathname of ld 4043 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4044 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4045 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4046 done 4047 test -z "$LD" && LD="$ac_prog" 4048 ;; 4049 "") 4050 # If it fails, then pretend we aren't using GCC. 4051 ac_prog=ld 4052 ;; 4053 *) 4054 # If it is relative, then search for the first ld in PATH. 4055 with_gnu_ld=unknown 4056 ;; 4057 esac 4058elif test "$with_gnu_ld" = yes; then 4059 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4060echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4061else 4062 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4063echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4064fi 4065if test "${lt_cv_path_LD+set}" = set; then 4066 echo $ECHO_N "(cached) $ECHO_C" >&6 4067else 4068 if test -z "$LD"; then 4069 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4070 for ac_dir in $PATH; do 4071 IFS="$lt_save_ifs" 4072 test -z "$ac_dir" && ac_dir=. 4073 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4074 lt_cv_path_LD="$ac_dir/$ac_prog" 4075 # Check to see if the program is GNU ld. I'd rather use --version, 4076 # but apparently some variants of GNU ld only accept -v. 4077 # Break only if it was the GNU/non-GNU ld that we prefer. 4078 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4079 *GNU* | *'with BFD'*) 4080 test "$with_gnu_ld" != no && break 4081 ;; 4082 *) 4083 test "$with_gnu_ld" != yes && break 4084 ;; 4085 esac 4086 fi 4087 done 4088 IFS="$lt_save_ifs" 4089else 4090 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4091fi 4092fi 4093 4094LD="$lt_cv_path_LD" 4095if test -n "$LD"; then 4096 { echo "$as_me:$LINENO: result: $LD" >&5 4097echo "${ECHO_T}$LD" >&6; } 4098else 4099 { echo "$as_me:$LINENO: result: no" >&5 4100echo "${ECHO_T}no" >&6; } 4101fi 4102test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4103echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4104 { (exit 1); exit 1; }; } 4105{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4106echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4107if test "${lt_cv_prog_gnu_ld+set}" = set; then 4108 echo $ECHO_N "(cached) $ECHO_C" >&6 4109else 4110 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4111case `$LD -v 2>&1 </dev/null` in 4112*GNU* | *'with BFD'*) 4113 lt_cv_prog_gnu_ld=yes 4114 ;; 4115*) 4116 lt_cv_prog_gnu_ld=no 4117 ;; 4118esac 4119fi 4120{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4121echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4122with_gnu_ld=$lt_cv_prog_gnu_ld 4123 4124 4125{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4126echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4127if test "${lt_cv_ld_reload_flag+set}" = set; then 4128 echo $ECHO_N "(cached) $ECHO_C" >&6 4129else 4130 lt_cv_ld_reload_flag='-r' 4131fi 4132{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4133echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4134reload_flag=$lt_cv_ld_reload_flag 4135case $reload_flag in 4136"" | " "*) ;; 4137*) reload_flag=" $reload_flag" ;; 4138esac 4139reload_cmds='$LD$reload_flag -o $output$reload_objs' 4140case $host_os in 4141 darwin*) 4142 if test "$GCC" = yes; then 4143 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4144 else 4145 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4146 fi 4147 ;; 4148esac 4149 4150{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4151echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4152if test "${lt_cv_path_NM+set}" = set; then 4153 echo $ECHO_N "(cached) $ECHO_C" >&6 4154else 4155 if test -n "$NM"; then 4156 # Let the user override the test. 4157 lt_cv_path_NM="$NM" 4158else 4159 lt_nm_to_check="${ac_tool_prefix}nm" 4160 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4161 lt_nm_to_check="$lt_nm_to_check nm" 4162 fi 4163 for lt_tmp_nm in $lt_nm_to_check; do 4164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4165 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4166 IFS="$lt_save_ifs" 4167 test -z "$ac_dir" && ac_dir=. 4168 tmp_nm="$ac_dir/$lt_tmp_nm" 4169 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4170 # Check to see if the nm accepts a BSD-compat flag. 4171 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4172 # nm: unknown option "B" ignored 4173 # Tru64's nm complains that /dev/null is an invalid object file 4174 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4175 */dev/null* | *'Invalid file or object type'*) 4176 lt_cv_path_NM="$tmp_nm -B" 4177 break 4178 ;; 4179 *) 4180 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4181 */dev/null*) 4182 lt_cv_path_NM="$tmp_nm -p" 4183 break 4184 ;; 4185 *) 4186 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4187 continue # so that we can try to find one that supports BSD flags 4188 ;; 4189 esac 4190 ;; 4191 esac 4192 fi 4193 done 4194 IFS="$lt_save_ifs" 4195 done 4196 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4197fi 4198fi 4199{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4200echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4201NM="$lt_cv_path_NM" 4202 4203{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4204echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4205LN_S=$as_ln_s 4206if test "$LN_S" = "ln -s"; then 4207 { echo "$as_me:$LINENO: result: yes" >&5 4208echo "${ECHO_T}yes" >&6; } 4209else 4210 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4211echo "${ECHO_T}no, using $LN_S" >&6; } 4212fi 4213 4214{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4215echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4216if test "${lt_cv_deplibs_check_method+set}" = set; then 4217 echo $ECHO_N "(cached) $ECHO_C" >&6 4218else 4219 lt_cv_file_magic_cmd='$MAGIC_CMD' 4220lt_cv_file_magic_test_file= 4221lt_cv_deplibs_check_method='unknown' 4222# Need to set the preceding variable on all platforms that support 4223# interlibrary dependencies. 4224# 'none' -- dependencies not supported. 4225# `unknown' -- same as none, but documents that we really don't know. 4226# 'pass_all' -- all dependencies passed with no checks. 4227# 'test_compile' -- check by making test program. 4228# 'file_magic [[regex]]' -- check by looking for files in library path 4229# which responds to the $file_magic_cmd with a given extended regex. 4230# If you have `file' or equivalent on your system and you're not sure 4231# whether `pass_all' will *always* work, you probably want this one. 4232 4233case $host_os in 4234aix[4-9]*) 4235 lt_cv_deplibs_check_method=pass_all 4236 ;; 4237 4238beos*) 4239 lt_cv_deplibs_check_method=pass_all 4240 ;; 4241 4242bsdi[45]*) 4243 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4244 lt_cv_file_magic_cmd='/usr/bin/file -L' 4245 lt_cv_file_magic_test_file=/shlib/libc.so 4246 ;; 4247 4248cygwin*) 4249 # func_win32_libid is a shell function defined in ltmain.sh 4250 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4251 lt_cv_file_magic_cmd='func_win32_libid' 4252 ;; 4253 4254mingw* | pw32*) 4255 # Base MSYS/MinGW do not provide the 'file' command needed by 4256 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4257 # unless we find 'file', for example because we are cross-compiling. 4258 if ( file / ) >/dev/null 2>&1; then 4259 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4260 lt_cv_file_magic_cmd='func_win32_libid' 4261 else 4262 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4263 lt_cv_file_magic_cmd='$OBJDUMP -f' 4264 fi 4265 ;; 4266 4267darwin* | rhapsody*) 4268 lt_cv_deplibs_check_method=pass_all 4269 ;; 4270 4271freebsd* | dragonfly*) 4272 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4273 case $host_cpu in 4274 i*86 ) 4275 # Not sure whether the presence of OpenBSD here was a mistake. 4276 # Let's accept both of them until this is cleared up. 4277 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4278 lt_cv_file_magic_cmd=/usr/bin/file 4279 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4280 ;; 4281 esac 4282 else 4283 lt_cv_deplibs_check_method=pass_all 4284 fi 4285 ;; 4286 4287gnu*) 4288 lt_cv_deplibs_check_method=pass_all 4289 ;; 4290 4291hpux10.20* | hpux11*) 4292 lt_cv_file_magic_cmd=/usr/bin/file 4293 case $host_cpu in 4294 ia64*) 4295 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4296 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4297 ;; 4298 hppa*64*) 4299 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]' 4300 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4301 ;; 4302 *) 4303 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4304 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4305 ;; 4306 esac 4307 ;; 4308 4309interix[3-9]*) 4310 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4311 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4312 ;; 4313 4314irix5* | irix6* | nonstopux*) 4315 case $LD in 4316 *-32|*"-32 ") libmagic=32-bit;; 4317 *-n32|*"-n32 ") libmagic=N32;; 4318 *-64|*"-64 ") libmagic=64-bit;; 4319 *) libmagic=never-match;; 4320 esac 4321 lt_cv_deplibs_check_method=pass_all 4322 ;; 4323 4324# This must be Linux ELF. 4325linux* | k*bsd*-gnu) 4326 lt_cv_deplibs_check_method=pass_all 4327 ;; 4328 4329netbsd* | netbsdelf*-gnu) 4330 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4332 else 4333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4334 fi 4335 ;; 4336 4337newos6*) 4338 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4339 lt_cv_file_magic_cmd=/usr/bin/file 4340 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4341 ;; 4342 4343nto-qnx*) 4344 lt_cv_deplibs_check_method=unknown 4345 ;; 4346 4347openbsd*) 4348 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4350 else 4351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4352 fi 4353 ;; 4354 4355osf3* | osf4* | osf5*) 4356 lt_cv_deplibs_check_method=pass_all 4357 ;; 4358 4359rdos*) 4360 lt_cv_deplibs_check_method=pass_all 4361 ;; 4362 4363solaris*) 4364 lt_cv_deplibs_check_method=pass_all 4365 ;; 4366 4367sysv4 | sysv4.3*) 4368 case $host_vendor in 4369 motorola) 4370 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]' 4371 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4372 ;; 4373 ncr) 4374 lt_cv_deplibs_check_method=pass_all 4375 ;; 4376 sequent) 4377 lt_cv_file_magic_cmd='/bin/file' 4378 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4379 ;; 4380 sni) 4381 lt_cv_file_magic_cmd='/bin/file' 4382 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4383 lt_cv_file_magic_test_file=/lib/libc.so 4384 ;; 4385 siemens) 4386 lt_cv_deplibs_check_method=pass_all 4387 ;; 4388 pc) 4389 lt_cv_deplibs_check_method=pass_all 4390 ;; 4391 esac 4392 ;; 4393 4394sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4395 lt_cv_deplibs_check_method=pass_all 4396 ;; 4397esac 4398 4399fi 4400{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4401echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4402file_magic_cmd=$lt_cv_file_magic_cmd 4403deplibs_check_method=$lt_cv_deplibs_check_method 4404test -z "$deplibs_check_method" && deplibs_check_method=unknown 4405 4406 4407 4408 4409# If no C compiler was specified, use CC. 4410LTCC=${LTCC-"$CC"} 4411 4412# If no C compiler flags were specified, use CFLAGS. 4413LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4414 4415# Allow CC to be a program name with arguments. 4416compiler=$CC 4417 4418 4419# Check whether --enable-libtool-lock was given. 4420if test "${enable_libtool_lock+set}" = set; then 4421 enableval=$enable_libtool_lock; 4422fi 4423 4424test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4425 4426# Some flags need to be propagated to the compiler or linker for good 4427# libtool support. 4428case $host in 4429ia64-*-hpux*) 4430 # Find out which ABI we are using. 4431 echo 'int i;' > conftest.$ac_ext 4432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4433 (eval $ac_compile) 2>&5 4434 ac_status=$? 4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4436 (exit $ac_status); }; then 4437 case `/usr/bin/file conftest.$ac_objext` in 4438 *ELF-32*) 4439 HPUX_IA64_MODE="32" 4440 ;; 4441 *ELF-64*) 4442 HPUX_IA64_MODE="64" 4443 ;; 4444 esac 4445 fi 4446 rm -rf conftest* 4447 ;; 4448*-*-irix6*) 4449 # Find out which ABI we are using. 4450 echo '#line 4450 "configure"' > conftest.$ac_ext 4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4452 (eval $ac_compile) 2>&5 4453 ac_status=$? 4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4455 (exit $ac_status); }; then 4456 if test "$lt_cv_prog_gnu_ld" = yes; then 4457 case `/usr/bin/file conftest.$ac_objext` in 4458 *32-bit*) 4459 LD="${LD-ld} -melf32bsmip" 4460 ;; 4461 *N32*) 4462 LD="${LD-ld} -melf32bmipn32" 4463 ;; 4464 *64-bit*) 4465 LD="${LD-ld} -melf64bmip" 4466 ;; 4467 esac 4468 else 4469 case `/usr/bin/file conftest.$ac_objext` in 4470 *32-bit*) 4471 LD="${LD-ld} -32" 4472 ;; 4473 *N32*) 4474 LD="${LD-ld} -n32" 4475 ;; 4476 *64-bit*) 4477 LD="${LD-ld} -64" 4478 ;; 4479 esac 4480 fi 4481 fi 4482 rm -rf conftest* 4483 ;; 4484 4485x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4486s390*-*linux*|sparc*-*linux*) 4487 # Find out which ABI we are using. 4488 echo 'int i;' > conftest.$ac_ext 4489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4490 (eval $ac_compile) 2>&5 4491 ac_status=$? 4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4493 (exit $ac_status); }; then 4494 case `/usr/bin/file conftest.o` in 4495 *32-bit*) 4496 case $host in 4497 x86_64-*kfreebsd*-gnu) 4498 LD="${LD-ld} -m elf_i386_fbsd" 4499 ;; 4500 x86_64-*linux*) 4501 LD="${LD-ld} -m elf_i386" 4502 ;; 4503 ppc64-*linux*|powerpc64-*linux*) 4504 LD="${LD-ld} -m elf32ppclinux" 4505 ;; 4506 s390x-*linux*) 4507 LD="${LD-ld} -m elf_s390" 4508 ;; 4509 sparc64-*linux*) 4510 LD="${LD-ld} -m elf32_sparc" 4511 ;; 4512 esac 4513 ;; 4514 *64-bit*) 4515 case $host in 4516 x86_64-*kfreebsd*-gnu) 4517 LD="${LD-ld} -m elf_x86_64_fbsd" 4518 ;; 4519 x86_64-*linux*) 4520 LD="${LD-ld} -m elf_x86_64" 4521 ;; 4522 ppc*-*linux*|powerpc*-*linux*) 4523 LD="${LD-ld} -m elf64ppc" 4524 ;; 4525 s390*-*linux*) 4526 LD="${LD-ld} -m elf64_s390" 4527 ;; 4528 sparc*-*linux*) 4529 LD="${LD-ld} -m elf64_sparc" 4530 ;; 4531 esac 4532 ;; 4533 esac 4534 fi 4535 rm -rf conftest* 4536 ;; 4537 4538*-*-sco3.2v5*) 4539 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4540 SAVE_CFLAGS="$CFLAGS" 4541 CFLAGS="$CFLAGS -belf" 4542 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4543echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4544if test "${lt_cv_cc_needs_belf+set}" = set; then 4545 echo $ECHO_N "(cached) $ECHO_C" >&6 4546else 4547 ac_ext=c 4548ac_cpp='$CPP $CPPFLAGS' 4549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4551ac_compiler_gnu=$ac_cv_c_compiler_gnu 4552 4553 cat >conftest.$ac_ext <<_ACEOF 4554/* confdefs.h. */ 4555_ACEOF 4556cat confdefs.h >>conftest.$ac_ext 4557cat >>conftest.$ac_ext <<_ACEOF 4558/* end confdefs.h. */ 4559 4560int 4561main () 4562{ 4563 4564 ; 4565 return 0; 4566} 4567_ACEOF 4568rm -f conftest.$ac_objext conftest$ac_exeext 4569if { (ac_try="$ac_link" 4570case "(($ac_try" in 4571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4572 *) ac_try_echo=$ac_try;; 4573esac 4574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4575 (eval "$ac_link") 2>conftest.er1 4576 ac_status=$? 4577 grep -v '^ *+' conftest.er1 >conftest.err 4578 rm -f conftest.er1 4579 cat conftest.err >&5 4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4581 (exit $ac_status); } && { 4582 test -z "$ac_c_werror_flag" || 4583 test ! -s conftest.err 4584 } && test -s conftest$ac_exeext && 4585 $as_test_x conftest$ac_exeext; then 4586 lt_cv_cc_needs_belf=yes 4587else 4588 echo "$as_me: failed program was:" >&5 4589sed 's/^/| /' conftest.$ac_ext >&5 4590 4591 lt_cv_cc_needs_belf=no 4592fi 4593 4594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4595 conftest$ac_exeext conftest.$ac_ext 4596 ac_ext=c 4597ac_cpp='$CPP $CPPFLAGS' 4598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4600ac_compiler_gnu=$ac_cv_c_compiler_gnu 4601 4602fi 4603{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4604echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4605 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4606 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4607 CFLAGS="$SAVE_CFLAGS" 4608 fi 4609 ;; 4610sparc*-*solaris*) 4611 # Find out which ABI we are using. 4612 echo 'int i;' > conftest.$ac_ext 4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4614 (eval $ac_compile) 2>&5 4615 ac_status=$? 4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4617 (exit $ac_status); }; then 4618 case `/usr/bin/file conftest.o` in 4619 *64-bit*) 4620 case $lt_cv_prog_gnu_ld in 4621 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4622 *) 4623 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 4624 LD="${LD-ld} -64" 4625 fi 4626 ;; 4627 esac 4628 ;; 4629 esac 4630 fi 4631 rm -rf conftest* 4632 ;; 4633 4634 4635esac 4636 4637need_locks="$enable_libtool_lock" 4638 4639 4640ac_ext=c 4641ac_cpp='$CPP $CPPFLAGS' 4642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4644ac_compiler_gnu=$ac_cv_c_compiler_gnu 4645{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4646echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4647# On Suns, sometimes $CPP names a directory. 4648if test -n "$CPP" && test -d "$CPP"; then 4649 CPP= 4650fi 4651if test -z "$CPP"; then 4652 if test "${ac_cv_prog_CPP+set}" = set; then 4653 echo $ECHO_N "(cached) $ECHO_C" >&6 4654else 4655 # Double quotes because CPP needs to be expanded 4656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4657 do 4658 ac_preproc_ok=false 4659for ac_c_preproc_warn_flag in '' yes 4660do 4661 # Use a header file that comes with gcc, so configuring glibc 4662 # with a fresh cross-compiler works. 4663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4664 # <limits.h> exists even on freestanding compilers. 4665 # On the NeXT, cc -E runs the code through the compiler's parser, 4666 # not just through cpp. "Syntax error" is here to catch this case. 4667 cat >conftest.$ac_ext <<_ACEOF 4668/* confdefs.h. */ 4669_ACEOF 4670cat confdefs.h >>conftest.$ac_ext 4671cat >>conftest.$ac_ext <<_ACEOF 4672/* end confdefs.h. */ 4673#ifdef __STDC__ 4674# include <limits.h> 4675#else 4676# include <assert.h> 4677#endif 4678 Syntax error 4679_ACEOF 4680if { (ac_try="$ac_cpp conftest.$ac_ext" 4681case "(($ac_try" in 4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4683 *) ac_try_echo=$ac_try;; 4684esac 4685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4687 ac_status=$? 4688 grep -v '^ *+' conftest.er1 >conftest.err 4689 rm -f conftest.er1 4690 cat conftest.err >&5 4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4692 (exit $ac_status); } >/dev/null && { 4693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4694 test ! -s conftest.err 4695 }; then 4696 : 4697else 4698 echo "$as_me: failed program was:" >&5 4699sed 's/^/| /' conftest.$ac_ext >&5 4700 4701 # Broken: fails on valid input. 4702continue 4703fi 4704 4705rm -f conftest.err conftest.$ac_ext 4706 4707 # OK, works on sane cases. Now check whether nonexistent headers 4708 # can be detected and how. 4709 cat >conftest.$ac_ext <<_ACEOF 4710/* confdefs.h. */ 4711_ACEOF 4712cat confdefs.h >>conftest.$ac_ext 4713cat >>conftest.$ac_ext <<_ACEOF 4714/* end confdefs.h. */ 4715#include <ac_nonexistent.h> 4716_ACEOF 4717if { (ac_try="$ac_cpp conftest.$ac_ext" 4718case "(($ac_try" in 4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4720 *) ac_try_echo=$ac_try;; 4721esac 4722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4724 ac_status=$? 4725 grep -v '^ *+' conftest.er1 >conftest.err 4726 rm -f conftest.er1 4727 cat conftest.err >&5 4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4729 (exit $ac_status); } >/dev/null && { 4730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4731 test ! -s conftest.err 4732 }; then 4733 # Broken: success on invalid input. 4734continue 4735else 4736 echo "$as_me: failed program was:" >&5 4737sed 's/^/| /' conftest.$ac_ext >&5 4738 4739 # Passes both tests. 4740ac_preproc_ok=: 4741break 4742fi 4743 4744rm -f conftest.err conftest.$ac_ext 4745 4746done 4747# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4748rm -f conftest.err conftest.$ac_ext 4749if $ac_preproc_ok; then 4750 break 4751fi 4752 4753 done 4754 ac_cv_prog_CPP=$CPP 4755 4756fi 4757 CPP=$ac_cv_prog_CPP 4758else 4759 ac_cv_prog_CPP=$CPP 4760fi 4761{ echo "$as_me:$LINENO: result: $CPP" >&5 4762echo "${ECHO_T}$CPP" >&6; } 4763ac_preproc_ok=false 4764for ac_c_preproc_warn_flag in '' yes 4765do 4766 # Use a header file that comes with gcc, so configuring glibc 4767 # with a fresh cross-compiler works. 4768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4769 # <limits.h> exists even on freestanding compilers. 4770 # On the NeXT, cc -E runs the code through the compiler's parser, 4771 # not just through cpp. "Syntax error" is here to catch this case. 4772 cat >conftest.$ac_ext <<_ACEOF 4773/* confdefs.h. */ 4774_ACEOF 4775cat confdefs.h >>conftest.$ac_ext 4776cat >>conftest.$ac_ext <<_ACEOF 4777/* end confdefs.h. */ 4778#ifdef __STDC__ 4779# include <limits.h> 4780#else 4781# include <assert.h> 4782#endif 4783 Syntax error 4784_ACEOF 4785if { (ac_try="$ac_cpp conftest.$ac_ext" 4786case "(($ac_try" in 4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4788 *) ac_try_echo=$ac_try;; 4789esac 4790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4792 ac_status=$? 4793 grep -v '^ *+' conftest.er1 >conftest.err 4794 rm -f conftest.er1 4795 cat conftest.err >&5 4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4797 (exit $ac_status); } >/dev/null && { 4798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4799 test ! -s conftest.err 4800 }; then 4801 : 4802else 4803 echo "$as_me: failed program was:" >&5 4804sed 's/^/| /' conftest.$ac_ext >&5 4805 4806 # Broken: fails on valid input. 4807continue 4808fi 4809 4810rm -f conftest.err conftest.$ac_ext 4811 4812 # OK, works on sane cases. Now check whether nonexistent headers 4813 # can be detected and how. 4814 cat >conftest.$ac_ext <<_ACEOF 4815/* confdefs.h. */ 4816_ACEOF 4817cat confdefs.h >>conftest.$ac_ext 4818cat >>conftest.$ac_ext <<_ACEOF 4819/* end confdefs.h. */ 4820#include <ac_nonexistent.h> 4821_ACEOF 4822if { (ac_try="$ac_cpp conftest.$ac_ext" 4823case "(($ac_try" in 4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4825 *) ac_try_echo=$ac_try;; 4826esac 4827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4829 ac_status=$? 4830 grep -v '^ *+' conftest.er1 >conftest.err 4831 rm -f conftest.er1 4832 cat conftest.err >&5 4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4834 (exit $ac_status); } >/dev/null && { 4835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4836 test ! -s conftest.err 4837 }; then 4838 # Broken: success on invalid input. 4839continue 4840else 4841 echo "$as_me: failed program was:" >&5 4842sed 's/^/| /' conftest.$ac_ext >&5 4843 4844 # Passes both tests. 4845ac_preproc_ok=: 4846break 4847fi 4848 4849rm -f conftest.err conftest.$ac_ext 4850 4851done 4852# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4853rm -f conftest.err conftest.$ac_ext 4854if $ac_preproc_ok; then 4855 : 4856else 4857 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4858See \`config.log' for more details." >&5 4859echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4860See \`config.log' for more details." >&2;} 4861 { (exit 1); exit 1; }; } 4862fi 4863 4864ac_ext=c 4865ac_cpp='$CPP $CPPFLAGS' 4866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4868ac_compiler_gnu=$ac_cv_c_compiler_gnu 4869 4870 4871{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4872echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4873if test "${ac_cv_header_stdc+set}" = set; then 4874 echo $ECHO_N "(cached) $ECHO_C" >&6 4875else 4876 cat >conftest.$ac_ext <<_ACEOF 4877/* confdefs.h. */ 4878_ACEOF 4879cat confdefs.h >>conftest.$ac_ext 4880cat >>conftest.$ac_ext <<_ACEOF 4881/* end confdefs.h. */ 4882#include <stdlib.h> 4883#include <stdarg.h> 4884#include <string.h> 4885#include <float.h> 4886 4887int 4888main () 4889{ 4890 4891 ; 4892 return 0; 4893} 4894_ACEOF 4895rm -f conftest.$ac_objext 4896if { (ac_try="$ac_compile" 4897case "(($ac_try" in 4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4899 *) ac_try_echo=$ac_try;; 4900esac 4901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4902 (eval "$ac_compile") 2>conftest.er1 4903 ac_status=$? 4904 grep -v '^ *+' conftest.er1 >conftest.err 4905 rm -f conftest.er1 4906 cat conftest.err >&5 4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4908 (exit $ac_status); } && { 4909 test -z "$ac_c_werror_flag" || 4910 test ! -s conftest.err 4911 } && test -s conftest.$ac_objext; then 4912 ac_cv_header_stdc=yes 4913else 4914 echo "$as_me: failed program was:" >&5 4915sed 's/^/| /' conftest.$ac_ext >&5 4916 4917 ac_cv_header_stdc=no 4918fi 4919 4920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4921 4922if test $ac_cv_header_stdc = yes; then 4923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4924 cat >conftest.$ac_ext <<_ACEOF 4925/* confdefs.h. */ 4926_ACEOF 4927cat confdefs.h >>conftest.$ac_ext 4928cat >>conftest.$ac_ext <<_ACEOF 4929/* end confdefs.h. */ 4930#include <string.h> 4931 4932_ACEOF 4933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4934 $EGREP "memchr" >/dev/null 2>&1; then 4935 : 4936else 4937 ac_cv_header_stdc=no 4938fi 4939rm -f conftest* 4940 4941fi 4942 4943if test $ac_cv_header_stdc = yes; then 4944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4945 cat >conftest.$ac_ext <<_ACEOF 4946/* confdefs.h. */ 4947_ACEOF 4948cat confdefs.h >>conftest.$ac_ext 4949cat >>conftest.$ac_ext <<_ACEOF 4950/* end confdefs.h. */ 4951#include <stdlib.h> 4952 4953_ACEOF 4954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4955 $EGREP "free" >/dev/null 2>&1; then 4956 : 4957else 4958 ac_cv_header_stdc=no 4959fi 4960rm -f conftest* 4961 4962fi 4963 4964if test $ac_cv_header_stdc = yes; then 4965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4966 if test "$cross_compiling" = yes; then 4967 : 4968else 4969 cat >conftest.$ac_ext <<_ACEOF 4970/* confdefs.h. */ 4971_ACEOF 4972cat confdefs.h >>conftest.$ac_ext 4973cat >>conftest.$ac_ext <<_ACEOF 4974/* end confdefs.h. */ 4975#include <ctype.h> 4976#include <stdlib.h> 4977#if ((' ' & 0x0FF) == 0x020) 4978# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4979# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4980#else 4981# define ISLOWER(c) \ 4982 (('a' <= (c) && (c) <= 'i') \ 4983 || ('j' <= (c) && (c) <= 'r') \ 4984 || ('s' <= (c) && (c) <= 'z')) 4985# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4986#endif 4987 4988#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4989int 4990main () 4991{ 4992 int i; 4993 for (i = 0; i < 256; i++) 4994 if (XOR (islower (i), ISLOWER (i)) 4995 || toupper (i) != TOUPPER (i)) 4996 return 2; 4997 return 0; 4998} 4999_ACEOF 5000rm -f conftest$ac_exeext 5001if { (ac_try="$ac_link" 5002case "(($ac_try" in 5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5004 *) ac_try_echo=$ac_try;; 5005esac 5006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5007 (eval "$ac_link") 2>&5 5008 ac_status=$? 5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5011 { (case "(($ac_try" in 5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5013 *) ac_try_echo=$ac_try;; 5014esac 5015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5016 (eval "$ac_try") 2>&5 5017 ac_status=$? 5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5019 (exit $ac_status); }; }; then 5020 : 5021else 5022 echo "$as_me: program exited with status $ac_status" >&5 5023echo "$as_me: failed program was:" >&5 5024sed 's/^/| /' conftest.$ac_ext >&5 5025 5026( exit $ac_status ) 5027ac_cv_header_stdc=no 5028fi 5029rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5030fi 5031 5032 5033fi 5034fi 5035{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5036echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5037if test $ac_cv_header_stdc = yes; then 5038 5039cat >>confdefs.h <<\_ACEOF 5040#define STDC_HEADERS 1 5041_ACEOF 5042 5043fi 5044 5045# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5056 inttypes.h stdint.h unistd.h 5057do 5058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5059{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5062 echo $ECHO_N "(cached) $ECHO_C" >&6 5063else 5064 cat >conftest.$ac_ext <<_ACEOF 5065/* confdefs.h. */ 5066_ACEOF 5067cat confdefs.h >>conftest.$ac_ext 5068cat >>conftest.$ac_ext <<_ACEOF 5069/* end confdefs.h. */ 5070$ac_includes_default 5071 5072#include <$ac_header> 5073_ACEOF 5074rm -f conftest.$ac_objext 5075if { (ac_try="$ac_compile" 5076case "(($ac_try" in 5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5078 *) ac_try_echo=$ac_try;; 5079esac 5080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5081 (eval "$ac_compile") 2>conftest.er1 5082 ac_status=$? 5083 grep -v '^ *+' conftest.er1 >conftest.err 5084 rm -f conftest.er1 5085 cat conftest.err >&5 5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5087 (exit $ac_status); } && { 5088 test -z "$ac_c_werror_flag" || 5089 test ! -s conftest.err 5090 } && test -s conftest.$ac_objext; then 5091 eval "$as_ac_Header=yes" 5092else 5093 echo "$as_me: failed program was:" >&5 5094sed 's/^/| /' conftest.$ac_ext >&5 5095 5096 eval "$as_ac_Header=no" 5097fi 5098 5099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5100fi 5101ac_res=`eval echo '${'$as_ac_Header'}'` 5102 { echo "$as_me:$LINENO: result: $ac_res" >&5 5103echo "${ECHO_T}$ac_res" >&6; } 5104if test `eval echo '${'$as_ac_Header'}'` = yes; then 5105 cat >>confdefs.h <<_ACEOF 5106#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5107_ACEOF 5108 5109fi 5110 5111done 5112 5113 5114 5115for ac_header in dlfcn.h 5116do 5117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5119 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5122 echo $ECHO_N "(cached) $ECHO_C" >&6 5123fi 5124ac_res=`eval echo '${'$as_ac_Header'}'` 5125 { echo "$as_me:$LINENO: result: $ac_res" >&5 5126echo "${ECHO_T}$ac_res" >&6; } 5127else 5128 # Is the header compilable? 5129{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5130echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5131cat >conftest.$ac_ext <<_ACEOF 5132/* confdefs.h. */ 5133_ACEOF 5134cat confdefs.h >>conftest.$ac_ext 5135cat >>conftest.$ac_ext <<_ACEOF 5136/* end confdefs.h. */ 5137$ac_includes_default 5138#include <$ac_header> 5139_ACEOF 5140rm -f conftest.$ac_objext 5141if { (ac_try="$ac_compile" 5142case "(($ac_try" in 5143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5144 *) ac_try_echo=$ac_try;; 5145esac 5146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5147 (eval "$ac_compile") 2>conftest.er1 5148 ac_status=$? 5149 grep -v '^ *+' conftest.er1 >conftest.err 5150 rm -f conftest.er1 5151 cat conftest.err >&5 5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5153 (exit $ac_status); } && { 5154 test -z "$ac_c_werror_flag" || 5155 test ! -s conftest.err 5156 } && test -s conftest.$ac_objext; then 5157 ac_header_compiler=yes 5158else 5159 echo "$as_me: failed program was:" >&5 5160sed 's/^/| /' conftest.$ac_ext >&5 5161 5162 ac_header_compiler=no 5163fi 5164 5165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5166{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5167echo "${ECHO_T}$ac_header_compiler" >&6; } 5168 5169# Is the header present? 5170{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5171echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5172cat >conftest.$ac_ext <<_ACEOF 5173/* confdefs.h. */ 5174_ACEOF 5175cat confdefs.h >>conftest.$ac_ext 5176cat >>conftest.$ac_ext <<_ACEOF 5177/* end confdefs.h. */ 5178#include <$ac_header> 5179_ACEOF 5180if { (ac_try="$ac_cpp conftest.$ac_ext" 5181case "(($ac_try" in 5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5183 *) ac_try_echo=$ac_try;; 5184esac 5185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5187 ac_status=$? 5188 grep -v '^ *+' conftest.er1 >conftest.err 5189 rm -f conftest.er1 5190 cat conftest.err >&5 5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5192 (exit $ac_status); } >/dev/null && { 5193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5194 test ! -s conftest.err 5195 }; then 5196 ac_header_preproc=yes 5197else 5198 echo "$as_me: failed program was:" >&5 5199sed 's/^/| /' conftest.$ac_ext >&5 5200 5201 ac_header_preproc=no 5202fi 5203 5204rm -f conftest.err conftest.$ac_ext 5205{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5206echo "${ECHO_T}$ac_header_preproc" >&6; } 5207 5208# So? What about this header? 5209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5210 yes:no: ) 5211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5215 ac_header_preproc=yes 5216 ;; 5217 no:yes:* ) 5218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5221echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5225echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5230 ( cat <<\_ASBOX 5231## ----------------------------------------- ## 5232## Report this to apreq-dev@httpd.apache.org ## 5233## ----------------------------------------- ## 5234_ASBOX 5235 ) | sed "s/^/$as_me: WARNING: /" >&2 5236 ;; 5237esac 5238{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5241 echo $ECHO_N "(cached) $ECHO_C" >&6 5242else 5243 eval "$as_ac_Header=\$ac_header_preproc" 5244fi 5245ac_res=`eval echo '${'$as_ac_Header'}'` 5246 { echo "$as_me:$LINENO: result: $ac_res" >&5 5247echo "${ECHO_T}$ac_res" >&6; } 5248 5249fi 5250if test `eval echo '${'$as_ac_Header'}'` = yes; then 5251 cat >>confdefs.h <<_ACEOF 5252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5253_ACEOF 5254 5255fi 5256 5257done 5258 5259ac_ext=cpp 5260ac_cpp='$CXXCPP $CPPFLAGS' 5261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5264if test -z "$CXX"; then 5265 if test -n "$CCC"; then 5266 CXX=$CCC 5267 else 5268 if test -n "$ac_tool_prefix"; then 5269 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5270 do 5271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5272set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5273{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5275if test "${ac_cv_prog_CXX+set}" = set; then 5276 echo $ECHO_N "(cached) $ECHO_C" >&6 5277else 5278 if test -n "$CXX"; then 5279 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5280else 5281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5282for as_dir in $PATH 5283do 5284 IFS=$as_save_IFS 5285 test -z "$as_dir" && as_dir=. 5286 for ac_exec_ext in '' $ac_executable_extensions; do 5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5288 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5290 break 2 5291 fi 5292done 5293done 5294IFS=$as_save_IFS 5295 5296fi 5297fi 5298CXX=$ac_cv_prog_CXX 5299if test -n "$CXX"; then 5300 { echo "$as_me:$LINENO: result: $CXX" >&5 5301echo "${ECHO_T}$CXX" >&6; } 5302else 5303 { echo "$as_me:$LINENO: result: no" >&5 5304echo "${ECHO_T}no" >&6; } 5305fi 5306 5307 5308 test -n "$CXX" && break 5309 done 5310fi 5311if test -z "$CXX"; then 5312 ac_ct_CXX=$CXX 5313 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5314do 5315 # Extract the first word of "$ac_prog", so it can be a program name with args. 5316set dummy $ac_prog; ac_word=$2 5317{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5319if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5320 echo $ECHO_N "(cached) $ECHO_C" >&6 5321else 5322 if test -n "$ac_ct_CXX"; then 5323 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5324else 5325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5326for as_dir in $PATH 5327do 5328 IFS=$as_save_IFS 5329 test -z "$as_dir" && as_dir=. 5330 for ac_exec_ext in '' $ac_executable_extensions; do 5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5332 ac_cv_prog_ac_ct_CXX="$ac_prog" 5333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5334 break 2 5335 fi 5336done 5337done 5338IFS=$as_save_IFS 5339 5340fi 5341fi 5342ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5343if test -n "$ac_ct_CXX"; then 5344 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5345echo "${ECHO_T}$ac_ct_CXX" >&6; } 5346else 5347 { echo "$as_me:$LINENO: result: no" >&5 5348echo "${ECHO_T}no" >&6; } 5349fi 5350 5351 5352 test -n "$ac_ct_CXX" && break 5353done 5354 5355 if test "x$ac_ct_CXX" = x; then 5356 CXX="g++" 5357 else 5358 case $cross_compiling:$ac_tool_warned in 5359yes:) 5360{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5361whose name does not start with the host triplet. If you think this 5362configuration is useful to you, please write to autoconf@gnu.org." >&5 5363echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5364whose name does not start with the host triplet. If you think this 5365configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5366ac_tool_warned=yes ;; 5367esac 5368 CXX=$ac_ct_CXX 5369 fi 5370fi 5371 5372 fi 5373fi 5374# Provide some information about the compiler. 5375echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5376ac_compiler=`set X $ac_compile; echo $2` 5377{ (ac_try="$ac_compiler --version >&5" 5378case "(($ac_try" in 5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5380 *) ac_try_echo=$ac_try;; 5381esac 5382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5383 (eval "$ac_compiler --version >&5") 2>&5 5384 ac_status=$? 5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5386 (exit $ac_status); } 5387{ (ac_try="$ac_compiler -v >&5" 5388case "(($ac_try" in 5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5390 *) ac_try_echo=$ac_try;; 5391esac 5392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5393 (eval "$ac_compiler -v >&5") 2>&5 5394 ac_status=$? 5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5396 (exit $ac_status); } 5397{ (ac_try="$ac_compiler -V >&5" 5398case "(($ac_try" in 5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5400 *) ac_try_echo=$ac_try;; 5401esac 5402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5403 (eval "$ac_compiler -V >&5") 2>&5 5404 ac_status=$? 5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5406 (exit $ac_status); } 5407 5408{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5409echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5410if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5411 echo $ECHO_N "(cached) $ECHO_C" >&6 5412else 5413 cat >conftest.$ac_ext <<_ACEOF 5414/* confdefs.h. */ 5415_ACEOF 5416cat confdefs.h >>conftest.$ac_ext 5417cat >>conftest.$ac_ext <<_ACEOF 5418/* end confdefs.h. */ 5419 5420int 5421main () 5422{ 5423#ifndef __GNUC__ 5424 choke me 5425#endif 5426 5427 ; 5428 return 0; 5429} 5430_ACEOF 5431rm -f conftest.$ac_objext 5432if { (ac_try="$ac_compile" 5433case "(($ac_try" in 5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5435 *) ac_try_echo=$ac_try;; 5436esac 5437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5438 (eval "$ac_compile") 2>conftest.er1 5439 ac_status=$? 5440 grep -v '^ *+' conftest.er1 >conftest.err 5441 rm -f conftest.er1 5442 cat conftest.err >&5 5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5444 (exit $ac_status); } && { 5445 test -z "$ac_cxx_werror_flag" || 5446 test ! -s conftest.err 5447 } && test -s conftest.$ac_objext; then 5448 ac_compiler_gnu=yes 5449else 5450 echo "$as_me: failed program was:" >&5 5451sed 's/^/| /' conftest.$ac_ext >&5 5452 5453 ac_compiler_gnu=no 5454fi 5455 5456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5457ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5458 5459fi 5460{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5461echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5462GXX=`test $ac_compiler_gnu = yes && echo yes` 5463ac_test_CXXFLAGS=${CXXFLAGS+set} 5464ac_save_CXXFLAGS=$CXXFLAGS 5465{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5466echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5467if test "${ac_cv_prog_cxx_g+set}" = set; then 5468 echo $ECHO_N "(cached) $ECHO_C" >&6 5469else 5470 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5471 ac_cxx_werror_flag=yes 5472 ac_cv_prog_cxx_g=no 5473 CXXFLAGS="-g" 5474 cat >conftest.$ac_ext <<_ACEOF 5475/* confdefs.h. */ 5476_ACEOF 5477cat confdefs.h >>conftest.$ac_ext 5478cat >>conftest.$ac_ext <<_ACEOF 5479/* end confdefs.h. */ 5480 5481int 5482main () 5483{ 5484 5485 ; 5486 return 0; 5487} 5488_ACEOF 5489rm -f conftest.$ac_objext 5490if { (ac_try="$ac_compile" 5491case "(($ac_try" in 5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5493 *) ac_try_echo=$ac_try;; 5494esac 5495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5496 (eval "$ac_compile") 2>conftest.er1 5497 ac_status=$? 5498 grep -v '^ *+' conftest.er1 >conftest.err 5499 rm -f conftest.er1 5500 cat conftest.err >&5 5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5502 (exit $ac_status); } && { 5503 test -z "$ac_cxx_werror_flag" || 5504 test ! -s conftest.err 5505 } && test -s conftest.$ac_objext; then 5506 ac_cv_prog_cxx_g=yes 5507else 5508 echo "$as_me: failed program was:" >&5 5509sed 's/^/| /' conftest.$ac_ext >&5 5510 5511 CXXFLAGS="" 5512 cat >conftest.$ac_ext <<_ACEOF 5513/* confdefs.h. */ 5514_ACEOF 5515cat confdefs.h >>conftest.$ac_ext 5516cat >>conftest.$ac_ext <<_ACEOF 5517/* end confdefs.h. */ 5518 5519int 5520main () 5521{ 5522 5523 ; 5524 return 0; 5525} 5526_ACEOF 5527rm -f conftest.$ac_objext 5528if { (ac_try="$ac_compile" 5529case "(($ac_try" in 5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5531 *) ac_try_echo=$ac_try;; 5532esac 5533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5534 (eval "$ac_compile") 2>conftest.er1 5535 ac_status=$? 5536 grep -v '^ *+' conftest.er1 >conftest.err 5537 rm -f conftest.er1 5538 cat conftest.err >&5 5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5540 (exit $ac_status); } && { 5541 test -z "$ac_cxx_werror_flag" || 5542 test ! -s conftest.err 5543 } && test -s conftest.$ac_objext; then 5544 : 5545else 5546 echo "$as_me: failed program was:" >&5 5547sed 's/^/| /' conftest.$ac_ext >&5 5548 5549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5550 CXXFLAGS="-g" 5551 cat >conftest.$ac_ext <<_ACEOF 5552/* confdefs.h. */ 5553_ACEOF 5554cat confdefs.h >>conftest.$ac_ext 5555cat >>conftest.$ac_ext <<_ACEOF 5556/* end confdefs.h. */ 5557 5558int 5559main () 5560{ 5561 5562 ; 5563 return 0; 5564} 5565_ACEOF 5566rm -f conftest.$ac_objext 5567if { (ac_try="$ac_compile" 5568case "(($ac_try" in 5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5570 *) ac_try_echo=$ac_try;; 5571esac 5572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5573 (eval "$ac_compile") 2>conftest.er1 5574 ac_status=$? 5575 grep -v '^ *+' conftest.er1 >conftest.err 5576 rm -f conftest.er1 5577 cat conftest.err >&5 5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5579 (exit $ac_status); } && { 5580 test -z "$ac_cxx_werror_flag" || 5581 test ! -s conftest.err 5582 } && test -s conftest.$ac_objext; then 5583 ac_cv_prog_cxx_g=yes 5584else 5585 echo "$as_me: failed program was:" >&5 5586sed 's/^/| /' conftest.$ac_ext >&5 5587 5588 5589fi 5590 5591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5592fi 5593 5594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5595fi 5596 5597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5598 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5599fi 5600{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5601echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5602if test "$ac_test_CXXFLAGS" = set; then 5603 CXXFLAGS=$ac_save_CXXFLAGS 5604elif test $ac_cv_prog_cxx_g = yes; then 5605 if test "$GXX" = yes; then 5606 CXXFLAGS="-g -O2" 5607 else 5608 CXXFLAGS="-g" 5609 fi 5610else 5611 if test "$GXX" = yes; then 5612 CXXFLAGS="-O2" 5613 else 5614 CXXFLAGS= 5615 fi 5616fi 5617ac_ext=cpp 5618ac_cpp='$CXXCPP $CPPFLAGS' 5619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5622 5623depcc="$CXX" am_compiler_list= 5624 5625{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5626echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5627if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5628 echo $ECHO_N "(cached) $ECHO_C" >&6 5629else 5630 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5631 # We make a subdir and do the tests there. Otherwise we can end up 5632 # making bogus files that we don't know about and never remove. For 5633 # instance it was reported that on HP-UX the gcc test will end up 5634 # making a dummy file named `D' -- because `-MD' means `put the output 5635 # in D'. 5636 mkdir conftest.dir 5637 # Copy depcomp to subdir because otherwise we won't find it if we're 5638 # using a relative directory. 5639 cp "$am_depcomp" conftest.dir 5640 cd conftest.dir 5641 # We will build objects and dependencies in a subdirectory because 5642 # it helps to detect inapplicable dependency modes. For instance 5643 # both Tru64's cc and ICC support -MD to output dependencies as a 5644 # side effect of compilation, but ICC will put the dependencies in 5645 # the current directory while Tru64 will put them in the object 5646 # directory. 5647 mkdir sub 5648 5649 am_cv_CXX_dependencies_compiler_type=none 5650 if test "$am_compiler_list" = ""; then 5651 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5652 fi 5653 for depmode in $am_compiler_list; do 5654 # Setup a source with many dependencies, because some compilers 5655 # like to wrap large dependency lists on column 80 (with \), and 5656 # we should not choose a depcomp mode which is confused by this. 5657 # 5658 # We need to recreate these files for each test, as the compiler may 5659 # overwrite some of them when testing with obscure command lines. 5660 # This happens at least with the AIX C compiler. 5661 : > sub/conftest.c 5662 for i in 1 2 3 4 5 6; do 5663 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5664 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5665 # Solaris 8's {/usr,}/bin/sh. 5666 touch sub/conftst$i.h 5667 done 5668 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5669 5670 case $depmode in 5671 nosideeffect) 5672 # after this tag, mechanisms are not by side-effect, so they'll 5673 # only be used when explicitly requested 5674 if test "x$enable_dependency_tracking" = xyes; then 5675 continue 5676 else 5677 break 5678 fi 5679 ;; 5680 none) break ;; 5681 esac 5682 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5683 # mode. It turns out that the SunPro C++ compiler does not properly 5684 # handle `-M -o', and we need to detect this. 5685 if depmode=$depmode \ 5686 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5687 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5688 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5689 >/dev/null 2>conftest.err && 5690 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5691 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5692 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5693 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5694 # icc doesn't choke on unknown options, it will just issue warnings 5695 # or remarks (even with -Werror). So we grep stderr for any message 5696 # that says an option was ignored or not supported. 5697 # When given -MP, icc 7.0 and 7.1 complain thusly: 5698 # icc: Command line warning: ignoring option '-M'; no argument required 5699 # The diagnosis changed in icc 8.0: 5700 # icc: Command line remark: option '-MP' not supported 5701 if (grep 'ignoring option' conftest.err || 5702 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5703 am_cv_CXX_dependencies_compiler_type=$depmode 5704 break 5705 fi 5706 fi 5707 done 5708 5709 cd .. 5710 rm -rf conftest.dir 5711else 5712 am_cv_CXX_dependencies_compiler_type=none 5713fi 5714 5715fi 5716{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5717echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5718CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5719 5720 if 5721 test "x$enable_dependency_tracking" != xno \ 5722 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5723 am__fastdepCXX_TRUE= 5724 am__fastdepCXX_FALSE='#' 5725else 5726 am__fastdepCXX_TRUE='#' 5727 am__fastdepCXX_FALSE= 5728fi 5729 5730 5731 5732 5733if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5734 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5735 (test "X$CXX" != "Xg++"))) ; then 5736 ac_ext=cpp 5737ac_cpp='$CXXCPP $CPPFLAGS' 5738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5741{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5742echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5743if test -z "$CXXCPP"; then 5744 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5745 echo $ECHO_N "(cached) $ECHO_C" >&6 5746else 5747 # Double quotes because CXXCPP needs to be expanded 5748 for CXXCPP in "$CXX -E" "/lib/cpp" 5749 do 5750 ac_preproc_ok=false 5751for ac_cxx_preproc_warn_flag in '' yes 5752do 5753 # Use a header file that comes with gcc, so configuring glibc 5754 # with a fresh cross-compiler works. 5755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5756 # <limits.h> exists even on freestanding compilers. 5757 # On the NeXT, cc -E runs the code through the compiler's parser, 5758 # not just through cpp. "Syntax error" is here to catch this case. 5759 cat >conftest.$ac_ext <<_ACEOF 5760/* confdefs.h. */ 5761_ACEOF 5762cat confdefs.h >>conftest.$ac_ext 5763cat >>conftest.$ac_ext <<_ACEOF 5764/* end confdefs.h. */ 5765#ifdef __STDC__ 5766# include <limits.h> 5767#else 5768# include <assert.h> 5769#endif 5770 Syntax error 5771_ACEOF 5772if { (ac_try="$ac_cpp conftest.$ac_ext" 5773case "(($ac_try" in 5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5775 *) ac_try_echo=$ac_try;; 5776esac 5777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5779 ac_status=$? 5780 grep -v '^ *+' conftest.er1 >conftest.err 5781 rm -f conftest.er1 5782 cat conftest.err >&5 5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5784 (exit $ac_status); } >/dev/null && { 5785 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5786 test ! -s conftest.err 5787 }; then 5788 : 5789else 5790 echo "$as_me: failed program was:" >&5 5791sed 's/^/| /' conftest.$ac_ext >&5 5792 5793 # Broken: fails on valid input. 5794continue 5795fi 5796 5797rm -f conftest.err conftest.$ac_ext 5798 5799 # OK, works on sane cases. Now check whether nonexistent headers 5800 # can be detected and how. 5801 cat >conftest.$ac_ext <<_ACEOF 5802/* confdefs.h. */ 5803_ACEOF 5804cat confdefs.h >>conftest.$ac_ext 5805cat >>conftest.$ac_ext <<_ACEOF 5806/* end confdefs.h. */ 5807#include <ac_nonexistent.h> 5808_ACEOF 5809if { (ac_try="$ac_cpp conftest.$ac_ext" 5810case "(($ac_try" in 5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5812 *) ac_try_echo=$ac_try;; 5813esac 5814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5816 ac_status=$? 5817 grep -v '^ *+' conftest.er1 >conftest.err 5818 rm -f conftest.er1 5819 cat conftest.err >&5 5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5821 (exit $ac_status); } >/dev/null && { 5822 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5823 test ! -s conftest.err 5824 }; then 5825 # Broken: success on invalid input. 5826continue 5827else 5828 echo "$as_me: failed program was:" >&5 5829sed 's/^/| /' conftest.$ac_ext >&5 5830 5831 # Passes both tests. 5832ac_preproc_ok=: 5833break 5834fi 5835 5836rm -f conftest.err conftest.$ac_ext 5837 5838done 5839# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5840rm -f conftest.err conftest.$ac_ext 5841if $ac_preproc_ok; then 5842 break 5843fi 5844 5845 done 5846 ac_cv_prog_CXXCPP=$CXXCPP 5847 5848fi 5849 CXXCPP=$ac_cv_prog_CXXCPP 5850else 5851 ac_cv_prog_CXXCPP=$CXXCPP 5852fi 5853{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5854echo "${ECHO_T}$CXXCPP" >&6; } 5855ac_preproc_ok=false 5856for ac_cxx_preproc_warn_flag in '' yes 5857do 5858 # Use a header file that comes with gcc, so configuring glibc 5859 # with a fresh cross-compiler works. 5860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5861 # <limits.h> exists even on freestanding compilers. 5862 # On the NeXT, cc -E runs the code through the compiler's parser, 5863 # not just through cpp. "Syntax error" is here to catch this case. 5864 cat >conftest.$ac_ext <<_ACEOF 5865/* confdefs.h. */ 5866_ACEOF 5867cat confdefs.h >>conftest.$ac_ext 5868cat >>conftest.$ac_ext <<_ACEOF 5869/* end confdefs.h. */ 5870#ifdef __STDC__ 5871# include <limits.h> 5872#else 5873# include <assert.h> 5874#endif 5875 Syntax error 5876_ACEOF 5877if { (ac_try="$ac_cpp conftest.$ac_ext" 5878case "(($ac_try" in 5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5880 *) ac_try_echo=$ac_try;; 5881esac 5882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5884 ac_status=$? 5885 grep -v '^ *+' conftest.er1 >conftest.err 5886 rm -f conftest.er1 5887 cat conftest.err >&5 5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5889 (exit $ac_status); } >/dev/null && { 5890 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5891 test ! -s conftest.err 5892 }; then 5893 : 5894else 5895 echo "$as_me: failed program was:" >&5 5896sed 's/^/| /' conftest.$ac_ext >&5 5897 5898 # Broken: fails on valid input. 5899continue 5900fi 5901 5902rm -f conftest.err conftest.$ac_ext 5903 5904 # OK, works on sane cases. Now check whether nonexistent headers 5905 # can be detected and how. 5906 cat >conftest.$ac_ext <<_ACEOF 5907/* confdefs.h. */ 5908_ACEOF 5909cat confdefs.h >>conftest.$ac_ext 5910cat >>conftest.$ac_ext <<_ACEOF 5911/* end confdefs.h. */ 5912#include <ac_nonexistent.h> 5913_ACEOF 5914if { (ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 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); } >/dev/null && { 5927 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5928 test ! -s conftest.err 5929 }; then 5930 # Broken: success on invalid input. 5931continue 5932else 5933 echo "$as_me: failed program was:" >&5 5934sed 's/^/| /' conftest.$ac_ext >&5 5935 5936 # Passes both tests. 5937ac_preproc_ok=: 5938break 5939fi 5940 5941rm -f conftest.err conftest.$ac_ext 5942 5943done 5944# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5945rm -f conftest.err conftest.$ac_ext 5946if $ac_preproc_ok; then 5947 : 5948else 5949 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5950See \`config.log' for more details." >&5 5951echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5952See \`config.log' for more details." >&2;} 5953 { (exit 1); exit 1; }; } 5954fi 5955 5956ac_ext=cpp 5957ac_cpp='$CXXCPP $CPPFLAGS' 5958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5961 5962fi 5963 5964 5965ac_ext=f 5966ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5967ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5968ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5969if test -n "$ac_tool_prefix"; then 5970 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 5971 do 5972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5973set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5974{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5976if test "${ac_cv_prog_F77+set}" = set; then 5977 echo $ECHO_N "(cached) $ECHO_C" >&6 5978else 5979 if test -n "$F77"; then 5980 ac_cv_prog_F77="$F77" # Let the user override the test. 5981else 5982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5983for as_dir in $PATH 5984do 5985 IFS=$as_save_IFS 5986 test -z "$as_dir" && as_dir=. 5987 for ac_exec_ext in '' $ac_executable_extensions; do 5988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5989 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5991 break 2 5992 fi 5993done 5994done 5995IFS=$as_save_IFS 5996 5997fi 5998fi 5999F77=$ac_cv_prog_F77 6000if test -n "$F77"; then 6001 { echo "$as_me:$LINENO: result: $F77" >&5 6002echo "${ECHO_T}$F77" >&6; } 6003else 6004 { echo "$as_me:$LINENO: result: no" >&5 6005echo "${ECHO_T}no" >&6; } 6006fi 6007 6008 6009 test -n "$F77" && break 6010 done 6011fi 6012if test -z "$F77"; then 6013 ac_ct_F77=$F77 6014 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 6015do 6016 # Extract the first word of "$ac_prog", so it can be a program name with args. 6017set dummy $ac_prog; ac_word=$2 6018{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6020if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6021 echo $ECHO_N "(cached) $ECHO_C" >&6 6022else 6023 if test -n "$ac_ct_F77"; then 6024 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6025else 6026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6027for as_dir in $PATH 6028do 6029 IFS=$as_save_IFS 6030 test -z "$as_dir" && as_dir=. 6031 for ac_exec_ext in '' $ac_executable_extensions; do 6032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6033 ac_cv_prog_ac_ct_F77="$ac_prog" 6034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6035 break 2 6036 fi 6037done 6038done 6039IFS=$as_save_IFS 6040 6041fi 6042fi 6043ac_ct_F77=$ac_cv_prog_ac_ct_F77 6044if test -n "$ac_ct_F77"; then 6045 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6046echo "${ECHO_T}$ac_ct_F77" >&6; } 6047else 6048 { echo "$as_me:$LINENO: result: no" >&5 6049echo "${ECHO_T}no" >&6; } 6050fi 6051 6052 6053 test -n "$ac_ct_F77" && break 6054done 6055 6056 if test "x$ac_ct_F77" = x; then 6057 F77="" 6058 else 6059 case $cross_compiling:$ac_tool_warned in 6060yes:) 6061{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6062whose name does not start with the host triplet. If you think this 6063configuration is useful to you, please write to autoconf@gnu.org." >&5 6064echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6065whose name does not start with the host triplet. If you think this 6066configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6067ac_tool_warned=yes ;; 6068esac 6069 F77=$ac_ct_F77 6070 fi 6071fi 6072 6073 6074# Provide some information about the compiler. 6075echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6076ac_compiler=`set X $ac_compile; echo $2` 6077{ (ac_try="$ac_compiler --version >&5" 6078case "(($ac_try" in 6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6080 *) ac_try_echo=$ac_try;; 6081esac 6082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6083 (eval "$ac_compiler --version >&5") 2>&5 6084 ac_status=$? 6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6086 (exit $ac_status); } 6087{ (ac_try="$ac_compiler -v >&5" 6088case "(($ac_try" in 6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6090 *) ac_try_echo=$ac_try;; 6091esac 6092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6093 (eval "$ac_compiler -v >&5") 2>&5 6094 ac_status=$? 6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6096 (exit $ac_status); } 6097{ (ac_try="$ac_compiler -V >&5" 6098case "(($ac_try" in 6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6100 *) ac_try_echo=$ac_try;; 6101esac 6102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6103 (eval "$ac_compiler -V >&5") 2>&5 6104 ac_status=$? 6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6106 (exit $ac_status); } 6107rm -f a.out 6108 6109# If we don't use `.F' as extension, the preprocessor is not run on the 6110# input file. (Note that this only needs to work for GNU compilers.) 6111ac_save_ext=$ac_ext 6112ac_ext=F 6113{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6114echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6115if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6116 echo $ECHO_N "(cached) $ECHO_C" >&6 6117else 6118 cat >conftest.$ac_ext <<_ACEOF 6119 program main 6120#ifndef __GNUC__ 6121 choke me 6122#endif 6123 6124 end 6125_ACEOF 6126rm -f conftest.$ac_objext 6127if { (ac_try="$ac_compile" 6128case "(($ac_try" in 6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6130 *) ac_try_echo=$ac_try;; 6131esac 6132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6133 (eval "$ac_compile") 2>conftest.er1 6134 ac_status=$? 6135 grep -v '^ *+' conftest.er1 >conftest.err 6136 rm -f conftest.er1 6137 cat conftest.err >&5 6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6139 (exit $ac_status); } && { 6140 test -z "$ac_f77_werror_flag" || 6141 test ! -s conftest.err 6142 } && test -s conftest.$ac_objext; then 6143 ac_compiler_gnu=yes 6144else 6145 echo "$as_me: failed program was:" >&5 6146sed 's/^/| /' conftest.$ac_ext >&5 6147 6148 ac_compiler_gnu=no 6149fi 6150 6151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6152ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6153 6154fi 6155{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6156echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6157ac_ext=$ac_save_ext 6158ac_test_FFLAGS=${FFLAGS+set} 6159ac_save_FFLAGS=$FFLAGS 6160FFLAGS= 6161{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6162echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6163if test "${ac_cv_prog_f77_g+set}" = set; then 6164 echo $ECHO_N "(cached) $ECHO_C" >&6 6165else 6166 FFLAGS=-g 6167cat >conftest.$ac_ext <<_ACEOF 6168 program main 6169 6170 end 6171_ACEOF 6172rm -f conftest.$ac_objext 6173if { (ac_try="$ac_compile" 6174case "(($ac_try" in 6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6176 *) ac_try_echo=$ac_try;; 6177esac 6178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6179 (eval "$ac_compile") 2>conftest.er1 6180 ac_status=$? 6181 grep -v '^ *+' conftest.er1 >conftest.err 6182 rm -f conftest.er1 6183 cat conftest.err >&5 6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6185 (exit $ac_status); } && { 6186 test -z "$ac_f77_werror_flag" || 6187 test ! -s conftest.err 6188 } && test -s conftest.$ac_objext; then 6189 ac_cv_prog_f77_g=yes 6190else 6191 echo "$as_me: failed program was:" >&5 6192sed 's/^/| /' conftest.$ac_ext >&5 6193 6194 ac_cv_prog_f77_g=no 6195fi 6196 6197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6198 6199fi 6200{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6201echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6202if test "$ac_test_FFLAGS" = set; then 6203 FFLAGS=$ac_save_FFLAGS 6204elif test $ac_cv_prog_f77_g = yes; then 6205 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6206 FFLAGS="-g -O2" 6207 else 6208 FFLAGS="-g" 6209 fi 6210else 6211 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6212 FFLAGS="-O2" 6213 else 6214 FFLAGS= 6215 fi 6216fi 6217 6218G77=`test $ac_compiler_gnu = yes && echo yes` 6219ac_ext=c 6220ac_cpp='$CPP $CPPFLAGS' 6221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6223ac_compiler_gnu=$ac_cv_c_compiler_gnu 6224 6225 6226 6227# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6228# find the maximum length of command line arguments 6229{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6230echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6231if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6232 echo $ECHO_N "(cached) $ECHO_C" >&6 6233else 6234 i=0 6235 teststring="ABCD" 6236 6237 case $build_os in 6238 msdosdjgpp*) 6239 # On DJGPP, this test can blow up pretty badly due to problems in libc 6240 # (any single argument exceeding 2000 bytes causes a buffer overrun 6241 # during glob expansion). Even if it were fixed, the result of this 6242 # check would be larger than it should be. 6243 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6244 ;; 6245 6246 gnu*) 6247 # Under GNU Hurd, this test is not required because there is 6248 # no limit to the length of command line arguments. 6249 # Libtool will interpret -1 as no limit whatsoever 6250 lt_cv_sys_max_cmd_len=-1; 6251 ;; 6252 6253 cygwin* | mingw*) 6254 # On Win9x/ME, this test blows up -- it succeeds, but takes 6255 # about 5 minutes as the teststring grows exponentially. 6256 # Worse, since 9x/ME are not pre-emptively multitasking, 6257 # you end up with a "frozen" computer, even though with patience 6258 # the test eventually succeeds (with a max line length of 256k). 6259 # Instead, let's just punt: use the minimum linelength reported by 6260 # all of the supported platforms: 8192 (on NT/2K/XP). 6261 lt_cv_sys_max_cmd_len=8192; 6262 ;; 6263 6264 amigaos*) 6265 # On AmigaOS with pdksh, this test takes hours, literally. 6266 # So we just punt and use a minimum line length of 8192. 6267 lt_cv_sys_max_cmd_len=8192; 6268 ;; 6269 6270 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6271 # This has been around since 386BSD, at least. Likely further. 6272 if test -x /sbin/sysctl; then 6273 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6274 elif test -x /usr/sbin/sysctl; then 6275 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6276 else 6277 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6278 fi 6279 # And add a safety zone 6280 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6282 ;; 6283 6284 interix*) 6285 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6286 lt_cv_sys_max_cmd_len=196608 6287 ;; 6288 6289 osf*) 6290 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6291 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6292 # nice to cause kernel panics so lets avoid the loop below. 6293 # First set a reasonable default. 6294 lt_cv_sys_max_cmd_len=16384 6295 # 6296 if test -x /sbin/sysconfig; then 6297 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6298 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6299 esac 6300 fi 6301 ;; 6302 sco3.2v5*) 6303 lt_cv_sys_max_cmd_len=102400 6304 ;; 6305 sysv5* | sco5v6* | sysv4.2uw2*) 6306 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6307 if test -n "$kargmax"; then 6308 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6309 else 6310 lt_cv_sys_max_cmd_len=32768 6311 fi 6312 ;; 6313 *) 6314 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6315 if test -n "$lt_cv_sys_max_cmd_len"; then 6316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6318 else 6319 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6320 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6321 = "XX$teststring") >/dev/null 2>&1 && 6322 new_result=`expr "X$teststring" : ".*" 2>&1` && 6323 lt_cv_sys_max_cmd_len=$new_result && 6324 test $i != 17 # 1/2 MB should be enough 6325 do 6326 i=`expr $i + 1` 6327 teststring=$teststring$teststring 6328 done 6329 teststring= 6330 # Add a significant safety factor because C++ compilers can tack on massive 6331 # amounts of additional arguments before passing them to the linker. 6332 # It appears as though 1/2 is a usable value. 6333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6334 fi 6335 ;; 6336 esac 6337 6338fi 6339 6340if test -n $lt_cv_sys_max_cmd_len ; then 6341 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6342echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6343else 6344 { echo "$as_me:$LINENO: result: none" >&5 6345echo "${ECHO_T}none" >&6; } 6346fi 6347 6348 6349 6350 6351 6352# Check for command to grab the raw symbol name followed by C symbol from nm. 6353{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6354echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6355if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6356 echo $ECHO_N "(cached) $ECHO_C" >&6 6357else 6358 6359# These are sane defaults that work on at least a few old systems. 6360# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6361 6362# Character class describing NM global symbol codes. 6363symcode='[BCDEGRST]' 6364 6365# Regexp to match symbols that can be accessed directly from C. 6366sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6367 6368# Transform an extracted symbol line into a proper C declaration 6369lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6370 6371# Transform an extracted symbol line into symbol name and symbol address 6372lt_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'" 6373 6374# Define system-specific variables. 6375case $host_os in 6376aix*) 6377 symcode='[BCDT]' 6378 ;; 6379cygwin* | mingw* | pw32*) 6380 symcode='[ABCDGISTW]' 6381 ;; 6382hpux*) # Its linker distinguishes data from code symbols 6383 if test "$host_cpu" = ia64; then 6384 symcode='[ABCDEGRST]' 6385 fi 6386 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6387 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'" 6388 ;; 6389linux* | k*bsd*-gnu) 6390 if test "$host_cpu" = ia64; then 6391 symcode='[ABCDGIRSTW]' 6392 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6393 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'" 6394 fi 6395 ;; 6396irix* | nonstopux*) 6397 symcode='[BCDEGRST]' 6398 ;; 6399osf*) 6400 symcode='[BCDEGQRST]' 6401 ;; 6402solaris*) 6403 symcode='[BDRT]' 6404 ;; 6405sco3.2v5*) 6406 symcode='[DT]' 6407 ;; 6408sysv4.2uw2*) 6409 symcode='[DT]' 6410 ;; 6411sysv5* | sco5v6* | unixware* | OpenUNIX*) 6412 symcode='[ABDT]' 6413 ;; 6414sysv4) 6415 symcode='[DFNSTU]' 6416 ;; 6417esac 6418 6419# Handle CRLF in mingw tool chain 6420opt_cr= 6421case $build_os in 6422mingw*) 6423 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6424 ;; 6425esac 6426 6427# If we're using GNU nm, then use its standard symbol codes. 6428case `$NM -V 2>&1` in 6429*GNU* | *'with BFD'*) 6430 symcode='[ABCDGIRSTW]' ;; 6431esac 6432 6433# Try without a prefix undercore, then with it. 6434for ac_symprfx in "" "_"; do 6435 6436 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6437 symxfrm="\\1 $ac_symprfx\\2 \\2" 6438 6439 # Write the raw and C identifiers. 6440 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6441 6442 # Check to see that the pipe works correctly. 6443 pipe_works=no 6444 6445 rm -f conftest* 6446 cat > conftest.$ac_ext <<EOF 6447#ifdef __cplusplus 6448extern "C" { 6449#endif 6450char nm_test_var; 6451void nm_test_func(){} 6452#ifdef __cplusplus 6453} 6454#endif 6455int main(){nm_test_var='a';nm_test_func();return(0);} 6456EOF 6457 6458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6459 (eval $ac_compile) 2>&5 6460 ac_status=$? 6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6462 (exit $ac_status); }; then 6463 # Now try to grab the symbols. 6464 nlist=conftest.nm 6465 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6466 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6467 ac_status=$? 6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6469 (exit $ac_status); } && test -s "$nlist"; then 6470 # Try sorting and uniquifying the output. 6471 if sort "$nlist" | uniq > "$nlist"T; then 6472 mv -f "$nlist"T "$nlist" 6473 else 6474 rm -f "$nlist"T 6475 fi 6476 6477 # Make sure that we snagged all the symbols we need. 6478 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6479 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6480 cat <<EOF > conftest.$ac_ext 6481#ifdef __cplusplus 6482extern "C" { 6483#endif 6484 6485EOF 6486 # Now generate the symbol file. 6487 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6488 6489 cat <<EOF >> conftest.$ac_ext 6490#if defined (__STDC__) && __STDC__ 6491# define lt_ptr_t void * 6492#else 6493# define lt_ptr_t char * 6494# define const 6495#endif 6496 6497/* The mapping between symbol names and symbols. */ 6498const struct { 6499 const char *name; 6500 lt_ptr_t address; 6501} 6502lt_preloaded_symbols[] = 6503{ 6504EOF 6505 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6506 cat <<\EOF >> conftest.$ac_ext 6507 {0, (lt_ptr_t) 0} 6508}; 6509 6510#ifdef __cplusplus 6511} 6512#endif 6513EOF 6514 # Now try linking the two files. 6515 mv conftest.$ac_objext conftstm.$ac_objext 6516 lt_save_LIBS="$LIBS" 6517 lt_save_CFLAGS="$CFLAGS" 6518 LIBS="conftstm.$ac_objext" 6519 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6521 (eval $ac_link) 2>&5 6522 ac_status=$? 6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6524 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6525 pipe_works=yes 6526 fi 6527 LIBS="$lt_save_LIBS" 6528 CFLAGS="$lt_save_CFLAGS" 6529 else 6530 echo "cannot find nm_test_func in $nlist" >&5 6531 fi 6532 else 6533 echo "cannot find nm_test_var in $nlist" >&5 6534 fi 6535 else 6536 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6537 fi 6538 else 6539 echo "$progname: failed program was:" >&5 6540 cat conftest.$ac_ext >&5 6541 fi 6542 rm -rf conftest* conftst* 6543 6544 # Do not use the global_symbol_pipe unless it works. 6545 if test "$pipe_works" = yes; then 6546 break 6547 else 6548 lt_cv_sys_global_symbol_pipe= 6549 fi 6550done 6551 6552fi 6553 6554if test -z "$lt_cv_sys_global_symbol_pipe"; then 6555 lt_cv_sys_global_symbol_to_cdecl= 6556fi 6557if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6558 { echo "$as_me:$LINENO: result: failed" >&5 6559echo "${ECHO_T}failed" >&6; } 6560else 6561 { echo "$as_me:$LINENO: result: ok" >&5 6562echo "${ECHO_T}ok" >&6; } 6563fi 6564 6565{ echo "$as_me:$LINENO: checking for objdir" >&5 6566echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6567if test "${lt_cv_objdir+set}" = set; then 6568 echo $ECHO_N "(cached) $ECHO_C" >&6 6569else 6570 rm -f .libs 2>/dev/null 6571mkdir .libs 2>/dev/null 6572if test -d .libs; then 6573 lt_cv_objdir=.libs 6574else 6575 # MS-DOS does not allow filenames that begin with a dot. 6576 lt_cv_objdir=_libs 6577fi 6578rmdir .libs 2>/dev/null 6579fi 6580{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6581echo "${ECHO_T}$lt_cv_objdir" >&6; } 6582objdir=$lt_cv_objdir 6583 6584 6585 6586 6587 6588case $host_os in 6589aix3*) 6590 # AIX sometimes has problems with the GCC collect2 program. For some 6591 # reason, if we set the COLLECT_NAMES environment variable, the problems 6592 # vanish in a puff of smoke. 6593 if test "X${COLLECT_NAMES+set}" != Xset; then 6594 COLLECT_NAMES= 6595 export COLLECT_NAMES 6596 fi 6597 ;; 6598esac 6599 6600# Sed substitution that helps us do robust quoting. It backslashifies 6601# metacharacters that are still active within double-quoted strings. 6602Xsed='sed -e 1s/^X//' 6603sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6604 6605# Same as above, but do not quote variable references. 6606double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6607 6608# Sed substitution to delay expansion of an escaped shell variable in a 6609# double_quote_subst'ed string. 6610delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6611 6612# Sed substitution to avoid accidental globbing in evaled expressions 6613no_glob_subst='s/\*/\\\*/g' 6614 6615# Constants: 6616rm="rm -f" 6617 6618# Global variables: 6619default_ofile=libtool 6620can_build_shared=yes 6621 6622# All known linkers require a `.a' archive for static linking (except MSVC, 6623# which needs '.lib'). 6624libext=a 6625ltmain="$ac_aux_dir/ltmain.sh" 6626ofile="$default_ofile" 6627with_gnu_ld="$lt_cv_prog_gnu_ld" 6628 6629if test -n "$ac_tool_prefix"; then 6630 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6631set dummy ${ac_tool_prefix}ar; ac_word=$2 6632{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6634if test "${ac_cv_prog_AR+set}" = set; then 6635 echo $ECHO_N "(cached) $ECHO_C" >&6 6636else 6637 if test -n "$AR"; then 6638 ac_cv_prog_AR="$AR" # Let the user override the test. 6639else 6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6641for as_dir in $PATH 6642do 6643 IFS=$as_save_IFS 6644 test -z "$as_dir" && as_dir=. 6645 for ac_exec_ext in '' $ac_executable_extensions; do 6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6647 ac_cv_prog_AR="${ac_tool_prefix}ar" 6648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6649 break 2 6650 fi 6651done 6652done 6653IFS=$as_save_IFS 6654 6655fi 6656fi 6657AR=$ac_cv_prog_AR 6658if test -n "$AR"; then 6659 { echo "$as_me:$LINENO: result: $AR" >&5 6660echo "${ECHO_T}$AR" >&6; } 6661else 6662 { echo "$as_me:$LINENO: result: no" >&5 6663echo "${ECHO_T}no" >&6; } 6664fi 6665 6666 6667fi 6668if test -z "$ac_cv_prog_AR"; then 6669 ac_ct_AR=$AR 6670 # Extract the first word of "ar", so it can be a program name with args. 6671set dummy ar; ac_word=$2 6672{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6674if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6675 echo $ECHO_N "(cached) $ECHO_C" >&6 6676else 6677 if test -n "$ac_ct_AR"; then 6678 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6679else 6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6681for as_dir in $PATH 6682do 6683 IFS=$as_save_IFS 6684 test -z "$as_dir" && as_dir=. 6685 for ac_exec_ext in '' $ac_executable_extensions; do 6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6687 ac_cv_prog_ac_ct_AR="ar" 6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6689 break 2 6690 fi 6691done 6692done 6693IFS=$as_save_IFS 6694 6695fi 6696fi 6697ac_ct_AR=$ac_cv_prog_ac_ct_AR 6698if test -n "$ac_ct_AR"; then 6699 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6700echo "${ECHO_T}$ac_ct_AR" >&6; } 6701else 6702 { echo "$as_me:$LINENO: result: no" >&5 6703echo "${ECHO_T}no" >&6; } 6704fi 6705 6706 if test "x$ac_ct_AR" = x; then 6707 AR="false" 6708 else 6709 case $cross_compiling:$ac_tool_warned in 6710yes:) 6711{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6712whose name does not start with the host triplet. If you think this 6713configuration is useful to you, please write to autoconf@gnu.org." >&5 6714echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6715whose name does not start with the host triplet. If you think this 6716configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6717ac_tool_warned=yes ;; 6718esac 6719 AR=$ac_ct_AR 6720 fi 6721else 6722 AR="$ac_cv_prog_AR" 6723fi 6724 6725if test -n "$ac_tool_prefix"; then 6726 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6727set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6728{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6730if test "${ac_cv_prog_RANLIB+set}" = set; then 6731 echo $ECHO_N "(cached) $ECHO_C" >&6 6732else 6733 if test -n "$RANLIB"; then 6734 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6735else 6736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6737for as_dir in $PATH 6738do 6739 IFS=$as_save_IFS 6740 test -z "$as_dir" && as_dir=. 6741 for ac_exec_ext in '' $ac_executable_extensions; do 6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6743 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6745 break 2 6746 fi 6747done 6748done 6749IFS=$as_save_IFS 6750 6751fi 6752fi 6753RANLIB=$ac_cv_prog_RANLIB 6754if test -n "$RANLIB"; then 6755 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6756echo "${ECHO_T}$RANLIB" >&6; } 6757else 6758 { echo "$as_me:$LINENO: result: no" >&5 6759echo "${ECHO_T}no" >&6; } 6760fi 6761 6762 6763fi 6764if test -z "$ac_cv_prog_RANLIB"; then 6765 ac_ct_RANLIB=$RANLIB 6766 # Extract the first word of "ranlib", so it can be a program name with args. 6767set dummy ranlib; ac_word=$2 6768{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6770if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6771 echo $ECHO_N "(cached) $ECHO_C" >&6 6772else 6773 if test -n "$ac_ct_RANLIB"; then 6774 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6775else 6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6777for as_dir in $PATH 6778do 6779 IFS=$as_save_IFS 6780 test -z "$as_dir" && as_dir=. 6781 for ac_exec_ext in '' $ac_executable_extensions; do 6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6783 ac_cv_prog_ac_ct_RANLIB="ranlib" 6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6785 break 2 6786 fi 6787done 6788done 6789IFS=$as_save_IFS 6790 6791fi 6792fi 6793ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6794if test -n "$ac_ct_RANLIB"; then 6795 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6796echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6797else 6798 { echo "$as_me:$LINENO: result: no" >&5 6799echo "${ECHO_T}no" >&6; } 6800fi 6801 6802 if test "x$ac_ct_RANLIB" = x; then 6803 RANLIB=":" 6804 else 6805 case $cross_compiling:$ac_tool_warned in 6806yes:) 6807{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6808whose name does not start with the host triplet. If you think this 6809configuration is useful to you, please write to autoconf@gnu.org." >&5 6810echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6811whose name does not start with the host triplet. If you think this 6812configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6813ac_tool_warned=yes ;; 6814esac 6815 RANLIB=$ac_ct_RANLIB 6816 fi 6817else 6818 RANLIB="$ac_cv_prog_RANLIB" 6819fi 6820 6821if test -n "$ac_tool_prefix"; then 6822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6823set dummy ${ac_tool_prefix}strip; ac_word=$2 6824{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6826if test "${ac_cv_prog_STRIP+set}" = set; then 6827 echo $ECHO_N "(cached) $ECHO_C" >&6 6828else 6829 if test -n "$STRIP"; then 6830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6831else 6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6833for as_dir in $PATH 6834do 6835 IFS=$as_save_IFS 6836 test -z "$as_dir" && as_dir=. 6837 for ac_exec_ext in '' $ac_executable_extensions; do 6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6839 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6841 break 2 6842 fi 6843done 6844done 6845IFS=$as_save_IFS 6846 6847fi 6848fi 6849STRIP=$ac_cv_prog_STRIP 6850if test -n "$STRIP"; then 6851 { echo "$as_me:$LINENO: result: $STRIP" >&5 6852echo "${ECHO_T}$STRIP" >&6; } 6853else 6854 { echo "$as_me:$LINENO: result: no" >&5 6855echo "${ECHO_T}no" >&6; } 6856fi 6857 6858 6859fi 6860if test -z "$ac_cv_prog_STRIP"; then 6861 ac_ct_STRIP=$STRIP 6862 # Extract the first word of "strip", so it can be a program name with args. 6863set dummy strip; ac_word=$2 6864{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6866if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6867 echo $ECHO_N "(cached) $ECHO_C" >&6 6868else 6869 if test -n "$ac_ct_STRIP"; then 6870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6871else 6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6873for as_dir in $PATH 6874do 6875 IFS=$as_save_IFS 6876 test -z "$as_dir" && as_dir=. 6877 for ac_exec_ext in '' $ac_executable_extensions; do 6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6879 ac_cv_prog_ac_ct_STRIP="strip" 6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6881 break 2 6882 fi 6883done 6884done 6885IFS=$as_save_IFS 6886 6887fi 6888fi 6889ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6890if test -n "$ac_ct_STRIP"; then 6891 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6892echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6893else 6894 { echo "$as_me:$LINENO: result: no" >&5 6895echo "${ECHO_T}no" >&6; } 6896fi 6897 6898 if test "x$ac_ct_STRIP" = x; then 6899 STRIP=":" 6900 else 6901 case $cross_compiling:$ac_tool_warned in 6902yes:) 6903{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6904whose name does not start with the host triplet. If you think this 6905configuration is useful to you, please write to autoconf@gnu.org." >&5 6906echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6907whose name does not start with the host triplet. If you think this 6908configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6909ac_tool_warned=yes ;; 6910esac 6911 STRIP=$ac_ct_STRIP 6912 fi 6913else 6914 STRIP="$ac_cv_prog_STRIP" 6915fi 6916 6917 6918old_CC="$CC" 6919old_CFLAGS="$CFLAGS" 6920 6921# Set sane defaults for various variables 6922test -z "$AR" && AR=ar 6923test -z "$AR_FLAGS" && AR_FLAGS=cru 6924test -z "$AS" && AS=as 6925test -z "$CC" && CC=cc 6926test -z "$LTCC" && LTCC=$CC 6927test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6928test -z "$DLLTOOL" && DLLTOOL=dlltool 6929test -z "$LD" && LD=ld 6930test -z "$LN_S" && LN_S="ln -s" 6931test -z "$MAGIC_CMD" && MAGIC_CMD=file 6932test -z "$NM" && NM=nm 6933test -z "$SED" && SED=sed 6934test -z "$OBJDUMP" && OBJDUMP=objdump 6935test -z "$RANLIB" && RANLIB=: 6936test -z "$STRIP" && STRIP=: 6937test -z "$ac_objext" && ac_objext=o 6938 6939# Determine commands to create old-style static archives. 6940old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6941old_postinstall_cmds='chmod 644 $oldlib' 6942old_postuninstall_cmds= 6943 6944if test -n "$RANLIB"; then 6945 case $host_os in 6946 openbsd*) 6947 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6948 ;; 6949 *) 6950 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6951 ;; 6952 esac 6953 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6954fi 6955 6956for cc_temp in $compiler""; do 6957 case $cc_temp in 6958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6960 \-*) ;; 6961 *) break;; 6962 esac 6963done 6964cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6965 6966 6967# Only perform the check for file, if the check method requires it 6968case $deplibs_check_method in 6969file_magic*) 6970 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6971 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6972echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6973if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6974 echo $ECHO_N "(cached) $ECHO_C" >&6 6975else 6976 case $MAGIC_CMD in 6977[\\/*] | ?:[\\/]*) 6978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6979 ;; 6980*) 6981 lt_save_MAGIC_CMD="$MAGIC_CMD" 6982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6984 for ac_dir in $ac_dummy; do 6985 IFS="$lt_save_ifs" 6986 test -z "$ac_dir" && ac_dir=. 6987 if test -f $ac_dir/${ac_tool_prefix}file; then 6988 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6989 if test -n "$file_magic_test_file"; then 6990 case $deplibs_check_method in 6991 "file_magic "*) 6992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6995 $EGREP "$file_magic_regex" > /dev/null; then 6996 : 6997 else 6998 cat <<EOF 1>&2 6999 7000*** Warning: the command libtool uses to detect shared libraries, 7001*** $file_magic_cmd, produces output that libtool cannot recognize. 7002*** The result is that libtool may fail to recognize shared libraries 7003*** as such. This will affect the creation of libtool libraries that 7004*** depend on shared libraries, but programs linked with such libtool 7005*** libraries will work regardless of this problem. Nevertheless, you 7006*** may want to report the problem to your system manager and/or to 7007*** bug-libtool@gnu.org 7008 7009EOF 7010 fi ;; 7011 esac 7012 fi 7013 break 7014 fi 7015 done 7016 IFS="$lt_save_ifs" 7017 MAGIC_CMD="$lt_save_MAGIC_CMD" 7018 ;; 7019esac 7020fi 7021 7022MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7023if test -n "$MAGIC_CMD"; then 7024 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7025echo "${ECHO_T}$MAGIC_CMD" >&6; } 7026else 7027 { echo "$as_me:$LINENO: result: no" >&5 7028echo "${ECHO_T}no" >&6; } 7029fi 7030 7031if test -z "$lt_cv_path_MAGIC_CMD"; then 7032 if test -n "$ac_tool_prefix"; then 7033 { echo "$as_me:$LINENO: checking for file" >&5 7034echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7035if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7036 echo $ECHO_N "(cached) $ECHO_C" >&6 7037else 7038 case $MAGIC_CMD in 7039[\\/*] | ?:[\\/]*) 7040 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7041 ;; 7042*) 7043 lt_save_MAGIC_CMD="$MAGIC_CMD" 7044 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7045 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7046 for ac_dir in $ac_dummy; do 7047 IFS="$lt_save_ifs" 7048 test -z "$ac_dir" && ac_dir=. 7049 if test -f $ac_dir/file; then 7050 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7051 if test -n "$file_magic_test_file"; then 7052 case $deplibs_check_method in 7053 "file_magic "*) 7054 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7056 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7057 $EGREP "$file_magic_regex" > /dev/null; then 7058 : 7059 else 7060 cat <<EOF 1>&2 7061 7062*** Warning: the command libtool uses to detect shared libraries, 7063*** $file_magic_cmd, produces output that libtool cannot recognize. 7064*** The result is that libtool may fail to recognize shared libraries 7065*** as such. This will affect the creation of libtool libraries that 7066*** depend on shared libraries, but programs linked with such libtool 7067*** libraries will work regardless of this problem. Nevertheless, you 7068*** may want to report the problem to your system manager and/or to 7069*** bug-libtool@gnu.org 7070 7071EOF 7072 fi ;; 7073 esac 7074 fi 7075 break 7076 fi 7077 done 7078 IFS="$lt_save_ifs" 7079 MAGIC_CMD="$lt_save_MAGIC_CMD" 7080 ;; 7081esac 7082fi 7083 7084MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7085if test -n "$MAGIC_CMD"; then 7086 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7087echo "${ECHO_T}$MAGIC_CMD" >&6; } 7088else 7089 { echo "$as_me:$LINENO: result: no" >&5 7090echo "${ECHO_T}no" >&6; } 7091fi 7092 7093 else 7094 MAGIC_CMD=: 7095 fi 7096fi 7097 7098 fi 7099 ;; 7100esac 7101 7102 7103 case $host_os in 7104 rhapsody* | darwin*) 7105 if test -n "$ac_tool_prefix"; then 7106 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7107set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7108{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7110if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7111 echo $ECHO_N "(cached) $ECHO_C" >&6 7112else 7113 if test -n "$DSYMUTIL"; then 7114 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7115else 7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7117for as_dir in $PATH 7118do 7119 IFS=$as_save_IFS 7120 test -z "$as_dir" && as_dir=. 7121 for ac_exec_ext in '' $ac_executable_extensions; do 7122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7123 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7125 break 2 7126 fi 7127done 7128done 7129IFS=$as_save_IFS 7130 7131fi 7132fi 7133DSYMUTIL=$ac_cv_prog_DSYMUTIL 7134if test -n "$DSYMUTIL"; then 7135 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7136echo "${ECHO_T}$DSYMUTIL" >&6; } 7137else 7138 { echo "$as_me:$LINENO: result: no" >&5 7139echo "${ECHO_T}no" >&6; } 7140fi 7141 7142 7143fi 7144if test -z "$ac_cv_prog_DSYMUTIL"; then 7145 ac_ct_DSYMUTIL=$DSYMUTIL 7146 # Extract the first word of "dsymutil", so it can be a program name with args. 7147set dummy dsymutil; ac_word=$2 7148{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7150if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7151 echo $ECHO_N "(cached) $ECHO_C" >&6 7152else 7153 if test -n "$ac_ct_DSYMUTIL"; then 7154 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7155else 7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7157for as_dir in $PATH 7158do 7159 IFS=$as_save_IFS 7160 test -z "$as_dir" && as_dir=. 7161 for ac_exec_ext in '' $ac_executable_extensions; do 7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7163 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7165 break 2 7166 fi 7167done 7168done 7169IFS=$as_save_IFS 7170 7171fi 7172fi 7173ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7174if test -n "$ac_ct_DSYMUTIL"; then 7175 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7176echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 7177else 7178 { echo "$as_me:$LINENO: result: no" >&5 7179echo "${ECHO_T}no" >&6; } 7180fi 7181 7182 if test "x$ac_ct_DSYMUTIL" = x; then 7183 DSYMUTIL=":" 7184 else 7185 case $cross_compiling:$ac_tool_warned in 7186yes:) 7187{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7188whose name does not start with the host triplet. If you think this 7189configuration is useful to you, please write to autoconf@gnu.org." >&5 7190echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7191whose name does not start with the host triplet. If you think this 7192configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7193ac_tool_warned=yes ;; 7194esac 7195 DSYMUTIL=$ac_ct_DSYMUTIL 7196 fi 7197else 7198 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7199fi 7200 7201 if test -n "$ac_tool_prefix"; then 7202 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7203set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7204{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7206if test "${ac_cv_prog_NMEDIT+set}" = set; then 7207 echo $ECHO_N "(cached) $ECHO_C" >&6 7208else 7209 if test -n "$NMEDIT"; then 7210 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7211else 7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7213for as_dir in $PATH 7214do 7215 IFS=$as_save_IFS 7216 test -z "$as_dir" && as_dir=. 7217 for ac_exec_ext in '' $ac_executable_extensions; do 7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7219 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7221 break 2 7222 fi 7223done 7224done 7225IFS=$as_save_IFS 7226 7227fi 7228fi 7229NMEDIT=$ac_cv_prog_NMEDIT 7230if test -n "$NMEDIT"; then 7231 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 7232echo "${ECHO_T}$NMEDIT" >&6; } 7233else 7234 { echo "$as_me:$LINENO: result: no" >&5 7235echo "${ECHO_T}no" >&6; } 7236fi 7237 7238 7239fi 7240if test -z "$ac_cv_prog_NMEDIT"; then 7241 ac_ct_NMEDIT=$NMEDIT 7242 # Extract the first word of "nmedit", so it can be a program name with args. 7243set dummy nmedit; ac_word=$2 7244{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7246if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7247 echo $ECHO_N "(cached) $ECHO_C" >&6 7248else 7249 if test -n "$ac_ct_NMEDIT"; then 7250 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7251else 7252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7253for as_dir in $PATH 7254do 7255 IFS=$as_save_IFS 7256 test -z "$as_dir" && as_dir=. 7257 for ac_exec_ext in '' $ac_executable_extensions; do 7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7259 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7261 break 2 7262 fi 7263done 7264done 7265IFS=$as_save_IFS 7266 7267fi 7268fi 7269ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7270if test -n "$ac_ct_NMEDIT"; then 7271 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7272echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 7273else 7274 { echo "$as_me:$LINENO: result: no" >&5 7275echo "${ECHO_T}no" >&6; } 7276fi 7277 7278 if test "x$ac_ct_NMEDIT" = x; then 7279 NMEDIT=":" 7280 else 7281 case $cross_compiling:$ac_tool_warned in 7282yes:) 7283{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7284whose name does not start with the host triplet. If you think this 7285configuration is useful to you, please write to autoconf@gnu.org." >&5 7286echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7287whose name does not start with the host triplet. If you think this 7288configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7289ac_tool_warned=yes ;; 7290esac 7291 NMEDIT=$ac_ct_NMEDIT 7292 fi 7293else 7294 NMEDIT="$ac_cv_prog_NMEDIT" 7295fi 7296 7297 7298 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7299echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 7300if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7301 echo $ECHO_N "(cached) $ECHO_C" >&6 7302else 7303 lt_cv_apple_cc_single_mod=no 7304 if test -z "${LT_MULTI_MODULE}"; then 7305 # By default we will add the -single_module flag. You can override 7306 # by either setting the environment variable LT_MULTI_MODULE 7307 # non-empty at configure time, or by adding -multi_module to the 7308 # link flags. 7309 echo "int foo(void){return 1;}" > conftest.c 7310 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7311 -dynamiclib ${wl}-single_module conftest.c 7312 if test -f libconftest.dylib; then 7313 lt_cv_apple_cc_single_mod=yes 7314 rm -rf libconftest.dylib* 7315 fi 7316 rm conftest.c 7317 fi 7318fi 7319{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7320echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 7321 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7322echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 7323if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7324 echo $ECHO_N "(cached) $ECHO_C" >&6 7325else 7326 lt_cv_ld_exported_symbols_list=no 7327 save_LDFLAGS=$LDFLAGS 7328 echo "_main" > conftest.sym 7329 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7330 cat >conftest.$ac_ext <<_ACEOF 7331/* confdefs.h. */ 7332_ACEOF 7333cat confdefs.h >>conftest.$ac_ext 7334cat >>conftest.$ac_ext <<_ACEOF 7335/* end confdefs.h. */ 7336 7337int 7338main () 7339{ 7340 7341 ; 7342 return 0; 7343} 7344_ACEOF 7345rm -f conftest.$ac_objext conftest$ac_exeext 7346if { (ac_try="$ac_link" 7347case "(($ac_try" in 7348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7349 *) ac_try_echo=$ac_try;; 7350esac 7351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7352 (eval "$ac_link") 2>conftest.er1 7353 ac_status=$? 7354 grep -v '^ *+' conftest.er1 >conftest.err 7355 rm -f conftest.er1 7356 cat conftest.err >&5 7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7358 (exit $ac_status); } && { 7359 test -z "$ac_c_werror_flag" || 7360 test ! -s conftest.err 7361 } && test -s conftest$ac_exeext && 7362 $as_test_x conftest$ac_exeext; then 7363 lt_cv_ld_exported_symbols_list=yes 7364else 7365 echo "$as_me: failed program was:" >&5 7366sed 's/^/| /' conftest.$ac_ext >&5 7367 7368 lt_cv_ld_exported_symbols_list=no 7369fi 7370 7371rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7372 conftest$ac_exeext conftest.$ac_ext 7373 LDFLAGS="$save_LDFLAGS" 7374 7375fi 7376{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7377echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 7378 case $host_os in 7379 rhapsody* | darwin1.[0123]) 7380 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7381 darwin1.*) 7382 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7383 darwin*) 7384 # if running on 10.5 or later, the deployment target defaults 7385 # to the OS version, if on x86, and 10.4, the deployment 7386 # target defaults to 10.4. Don't you love it? 7387 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7388 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7389 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7390 10.[012]*) 7391 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7392 10.*) 7393 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7394 esac 7395 ;; 7396 esac 7397 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7398 _lt_dar_single_mod='$single_module' 7399 fi 7400 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7401 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7402 else 7403 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7404 fi 7405 if test "$DSYMUTIL" != ":"; then 7406 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7407 else 7408 _lt_dsymutil= 7409 fi 7410 ;; 7411 esac 7412 7413 7414enable_dlopen=no 7415enable_win32_dll=no 7416 7417# Check whether --enable-libtool-lock was given. 7418if test "${enable_libtool_lock+set}" = set; then 7419 enableval=$enable_libtool_lock; 7420fi 7421 7422test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7423 7424 7425# Check whether --with-pic was given. 7426if test "${with_pic+set}" = set; then 7427 withval=$with_pic; pic_mode="$withval" 7428else 7429 pic_mode=default 7430fi 7431 7432test -z "$pic_mode" && pic_mode=default 7433 7434# Use C for the default configuration in the libtool script 7435tagname= 7436lt_save_CC="$CC" 7437ac_ext=c 7438ac_cpp='$CPP $CPPFLAGS' 7439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7441ac_compiler_gnu=$ac_cv_c_compiler_gnu 7442 7443 7444# Source file extension for C test sources. 7445ac_ext=c 7446 7447# Object file extension for compiled C test sources. 7448objext=o 7449objext=$objext 7450 7451# Code to be used in simple compile tests 7452lt_simple_compile_test_code="int some_variable = 0;" 7453 7454# Code to be used in simple link tests 7455lt_simple_link_test_code='int main(){return(0);}' 7456 7457 7458# If no C compiler was specified, use CC. 7459LTCC=${LTCC-"$CC"} 7460 7461# If no C compiler flags were specified, use CFLAGS. 7462LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7463 7464# Allow CC to be a program name with arguments. 7465compiler=$CC 7466 7467 7468# save warnings/boilerplate of simple test code 7469ac_outfile=conftest.$ac_objext 7470echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7471eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7472_lt_compiler_boilerplate=`cat conftest.err` 7473$rm conftest* 7474 7475ac_outfile=conftest.$ac_objext 7476echo "$lt_simple_link_test_code" >conftest.$ac_ext 7477eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7478_lt_linker_boilerplate=`cat conftest.err` 7479$rm -r conftest* 7480 7481 7482 7483lt_prog_compiler_no_builtin_flag= 7484 7485if test "$GCC" = yes; then 7486 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7487 7488 7489{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7490echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7491if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7492 echo $ECHO_N "(cached) $ECHO_C" >&6 7493else 7494 lt_cv_prog_compiler_rtti_exceptions=no 7495 ac_outfile=conftest.$ac_objext 7496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7497 lt_compiler_flag="-fno-rtti -fno-exceptions" 7498 # Insert the option either (1) after the last *FLAGS variable, or 7499 # (2) before a word containing "conftest.", or (3) at the end. 7500 # Note that $ac_compile itself does not contain backslashes and begins 7501 # with a dollar sign (not a hyphen), so the echo should work correctly. 7502 # The option is referenced via a variable to avoid confusing sed. 7503 lt_compile=`echo "$ac_compile" | $SED \ 7504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7506 -e 's:$: $lt_compiler_flag:'` 7507 (eval echo "\"\$as_me:7507: $lt_compile\"" >&5) 7508 (eval "$lt_compile" 2>conftest.err) 7509 ac_status=$? 7510 cat conftest.err >&5 7511 echo "$as_me:7511: \$? = $ac_status" >&5 7512 if (exit $ac_status) && test -s "$ac_outfile"; then 7513 # The compiler can only warn and ignore the option if not recognized 7514 # So say no if there are warnings other than the usual output. 7515 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7517 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7518 lt_cv_prog_compiler_rtti_exceptions=yes 7519 fi 7520 fi 7521 $rm conftest* 7522 7523fi 7524{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7525echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7526 7527if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7528 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7529else 7530 : 7531fi 7532 7533fi 7534 7535lt_prog_compiler_wl= 7536lt_prog_compiler_pic= 7537lt_prog_compiler_static= 7538 7539{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7540echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7541 7542 if test "$GCC" = yes; then 7543 lt_prog_compiler_wl='-Wl,' 7544 lt_prog_compiler_static='-static' 7545 7546 case $host_os in 7547 aix*) 7548 # All AIX code is PIC. 7549 if test "$host_cpu" = ia64; then 7550 # AIX 5 now supports IA64 processor 7551 lt_prog_compiler_static='-Bstatic' 7552 fi 7553 ;; 7554 7555 amigaos*) 7556 # FIXME: we need at least 68020 code to build shared libraries, but 7557 # adding the `-m68020' flag to GCC prevents building anything better, 7558 # like `-m68040'. 7559 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7560 ;; 7561 7562 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7563 # PIC is the default for these OSes. 7564 ;; 7565 7566 mingw* | cygwin* | pw32* | os2*) 7567 # This hack is so that the source file can tell whether it is being 7568 # built for inclusion in a dll (and should export symbols for example). 7569 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7570 # (--disable-auto-import) libraries 7571 lt_prog_compiler_pic='-DDLL_EXPORT' 7572 ;; 7573 7574 darwin* | rhapsody*) 7575 # PIC is the default on this platform 7576 # Common symbols not allowed in MH_DYLIB files 7577 lt_prog_compiler_pic='-fno-common' 7578 ;; 7579 7580 interix[3-9]*) 7581 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7582 # Instead, we relocate shared libraries at runtime. 7583 ;; 7584 7585 msdosdjgpp*) 7586 # Just because we use GCC doesn't mean we suddenly get shared libraries 7587 # on systems that don't support them. 7588 lt_prog_compiler_can_build_shared=no 7589 enable_shared=no 7590 ;; 7591 7592 sysv4*MP*) 7593 if test -d /usr/nec; then 7594 lt_prog_compiler_pic=-Kconform_pic 7595 fi 7596 ;; 7597 7598 hpux*) 7599 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7600 # not for PA HP-UX. 7601 case $host_cpu in 7602 hppa*64*|ia64*) 7603 # +Z the default 7604 ;; 7605 *) 7606 lt_prog_compiler_pic='-fPIC' 7607 ;; 7608 esac 7609 ;; 7610 7611 *) 7612 lt_prog_compiler_pic='-fPIC' 7613 ;; 7614 esac 7615 else 7616 # PORTME Check for flag to pass linker flags through the system compiler. 7617 case $host_os in 7618 aix*) 7619 lt_prog_compiler_wl='-Wl,' 7620 if test "$host_cpu" = ia64; then 7621 # AIX 5 now supports IA64 processor 7622 lt_prog_compiler_static='-Bstatic' 7623 else 7624 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7625 fi 7626 ;; 7627 darwin*) 7628 # PIC is the default on this platform 7629 # Common symbols not allowed in MH_DYLIB files 7630 case $cc_basename in 7631 xlc*) 7632 lt_prog_compiler_pic='-qnocommon' 7633 lt_prog_compiler_wl='-Wl,' 7634 ;; 7635 esac 7636 ;; 7637 7638 mingw* | cygwin* | pw32* | os2*) 7639 # This hack is so that the source file can tell whether it is being 7640 # built for inclusion in a dll (and should export symbols for example). 7641 lt_prog_compiler_pic='-DDLL_EXPORT' 7642 ;; 7643 7644 hpux9* | hpux10* | hpux11*) 7645 lt_prog_compiler_wl='-Wl,' 7646 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7647 # not for PA HP-UX. 7648 case $host_cpu in 7649 hppa*64*|ia64*) 7650 # +Z the default 7651 ;; 7652 *) 7653 lt_prog_compiler_pic='+Z' 7654 ;; 7655 esac 7656 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7657 lt_prog_compiler_static='${wl}-a ${wl}archive' 7658 ;; 7659 7660 irix5* | irix6* | nonstopux*) 7661 lt_prog_compiler_wl='-Wl,' 7662 # PIC (with -KPIC) is the default. 7663 lt_prog_compiler_static='-non_shared' 7664 ;; 7665 7666 newsos6) 7667 lt_prog_compiler_pic='-KPIC' 7668 lt_prog_compiler_static='-Bstatic' 7669 ;; 7670 7671 linux* | k*bsd*-gnu) 7672 case $cc_basename in 7673 icc* | ecc*) 7674 lt_prog_compiler_wl='-Wl,' 7675 lt_prog_compiler_pic='-KPIC' 7676 lt_prog_compiler_static='-static' 7677 ;; 7678 pgcc* | pgf77* | pgf90* | pgf95*) 7679 # Portland Group compilers (*not* the Pentium gcc compiler, 7680 # which looks to be a dead project) 7681 lt_prog_compiler_wl='-Wl,' 7682 lt_prog_compiler_pic='-fpic' 7683 lt_prog_compiler_static='-Bstatic' 7684 ;; 7685 ccc*) 7686 lt_prog_compiler_wl='-Wl,' 7687 # All Alpha code is PIC. 7688 lt_prog_compiler_static='-non_shared' 7689 ;; 7690 *) 7691 case `$CC -V 2>&1 | sed 5q` in 7692 *Sun\ C*) 7693 # Sun C 5.9 7694 lt_prog_compiler_pic='-KPIC' 7695 lt_prog_compiler_static='-Bstatic' 7696 lt_prog_compiler_wl='-Wl,' 7697 ;; 7698 *Sun\ F*) 7699 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7700 lt_prog_compiler_pic='-KPIC' 7701 lt_prog_compiler_static='-Bstatic' 7702 lt_prog_compiler_wl='' 7703 ;; 7704 esac 7705 ;; 7706 esac 7707 ;; 7708 7709 osf3* | osf4* | osf5*) 7710 lt_prog_compiler_wl='-Wl,' 7711 # All OSF/1 code is PIC. 7712 lt_prog_compiler_static='-non_shared' 7713 ;; 7714 7715 rdos*) 7716 lt_prog_compiler_static='-non_shared' 7717 ;; 7718 7719 solaris*) 7720 lt_prog_compiler_pic='-KPIC' 7721 lt_prog_compiler_static='-Bstatic' 7722 case $cc_basename in 7723 f77* | f90* | f95*) 7724 lt_prog_compiler_wl='-Qoption ld ';; 7725 *) 7726 lt_prog_compiler_wl='-Wl,';; 7727 esac 7728 ;; 7729 7730 sunos4*) 7731 lt_prog_compiler_wl='-Qoption ld ' 7732 lt_prog_compiler_pic='-PIC' 7733 lt_prog_compiler_static='-Bstatic' 7734 ;; 7735 7736 sysv4 | sysv4.2uw2* | sysv4.3*) 7737 lt_prog_compiler_wl='-Wl,' 7738 lt_prog_compiler_pic='-KPIC' 7739 lt_prog_compiler_static='-Bstatic' 7740 ;; 7741 7742 sysv4*MP*) 7743 if test -d /usr/nec ;then 7744 lt_prog_compiler_pic='-Kconform_pic' 7745 lt_prog_compiler_static='-Bstatic' 7746 fi 7747 ;; 7748 7749 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7750 lt_prog_compiler_wl='-Wl,' 7751 lt_prog_compiler_pic='-KPIC' 7752 lt_prog_compiler_static='-Bstatic' 7753 ;; 7754 7755 unicos*) 7756 lt_prog_compiler_wl='-Wl,' 7757 lt_prog_compiler_can_build_shared=no 7758 ;; 7759 7760 uts4*) 7761 lt_prog_compiler_pic='-pic' 7762 lt_prog_compiler_static='-Bstatic' 7763 ;; 7764 7765 *) 7766 lt_prog_compiler_can_build_shared=no 7767 ;; 7768 esac 7769 fi 7770 7771{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7772echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7773 7774# 7775# Check to make sure the PIC flag actually works. 7776# 7777if test -n "$lt_prog_compiler_pic"; then 7778 7779{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7780echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7781if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7782 echo $ECHO_N "(cached) $ECHO_C" >&6 7783else 7784 lt_cv_prog_compiler_pic_works=no 7785 ac_outfile=conftest.$ac_objext 7786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7787 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7788 # Insert the option either (1) after the last *FLAGS variable, or 7789 # (2) before a word containing "conftest.", or (3) at the end. 7790 # Note that $ac_compile itself does not contain backslashes and begins 7791 # with a dollar sign (not a hyphen), so the echo should work correctly. 7792 # The option is referenced via a variable to avoid confusing sed. 7793 lt_compile=`echo "$ac_compile" | $SED \ 7794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7796 -e 's:$: $lt_compiler_flag:'` 7797 (eval echo "\"\$as_me:7797: $lt_compile\"" >&5) 7798 (eval "$lt_compile" 2>conftest.err) 7799 ac_status=$? 7800 cat conftest.err >&5 7801 echo "$as_me:7801: \$? = $ac_status" >&5 7802 if (exit $ac_status) && test -s "$ac_outfile"; then 7803 # The compiler can only warn and ignore the option if not recognized 7804 # So say no if there are warnings other than the usual output. 7805 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7807 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7808 lt_cv_prog_compiler_pic_works=yes 7809 fi 7810 fi 7811 $rm conftest* 7812 7813fi 7814{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7815echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 7816 7817if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7818 case $lt_prog_compiler_pic in 7819 "" | " "*) ;; 7820 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7821 esac 7822else 7823 lt_prog_compiler_pic= 7824 lt_prog_compiler_can_build_shared=no 7825fi 7826 7827fi 7828case $host_os in 7829 # For platforms which do not support PIC, -DPIC is meaningless: 7830 *djgpp*) 7831 lt_prog_compiler_pic= 7832 ;; 7833 *) 7834 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7835 ;; 7836esac 7837 7838# 7839# Check to make sure the static flag actually works. 7840# 7841wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7842{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7843echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7844if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7845 echo $ECHO_N "(cached) $ECHO_C" >&6 7846else 7847 lt_cv_prog_compiler_static_works=no 7848 save_LDFLAGS="$LDFLAGS" 7849 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7850 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7852 # The linker can only warn and ignore the option if not recognized 7853 # So say no if there are warnings 7854 if test -s conftest.err; then 7855 # Append any errors to the config.log. 7856 cat conftest.err 1>&5 7857 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7859 if diff conftest.exp conftest.er2 >/dev/null; then 7860 lt_cv_prog_compiler_static_works=yes 7861 fi 7862 else 7863 lt_cv_prog_compiler_static_works=yes 7864 fi 7865 fi 7866 $rm -r conftest* 7867 LDFLAGS="$save_LDFLAGS" 7868 7869fi 7870{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7871echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 7872 7873if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7874 : 7875else 7876 lt_prog_compiler_static= 7877fi 7878 7879 7880{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7881echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7882if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7883 echo $ECHO_N "(cached) $ECHO_C" >&6 7884else 7885 lt_cv_prog_compiler_c_o=no 7886 $rm -r conftest 2>/dev/null 7887 mkdir conftest 7888 cd conftest 7889 mkdir out 7890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7891 7892 lt_compiler_flag="-o out/conftest2.$ac_objext" 7893 # Insert the option either (1) after the last *FLAGS variable, or 7894 # (2) before a word containing "conftest.", or (3) at the end. 7895 # Note that $ac_compile itself does not contain backslashes and begins 7896 # with a dollar sign (not a hyphen), so the echo should work correctly. 7897 lt_compile=`echo "$ac_compile" | $SED \ 7898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7900 -e 's:$: $lt_compiler_flag:'` 7901 (eval echo "\"\$as_me:7901: $lt_compile\"" >&5) 7902 (eval "$lt_compile" 2>out/conftest.err) 7903 ac_status=$? 7904 cat out/conftest.err >&5 7905 echo "$as_me:7905: \$? = $ac_status" >&5 7906 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7907 then 7908 # The compiler can only warn and ignore the option if not recognized 7909 # So say no if there are warnings 7910 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7913 lt_cv_prog_compiler_c_o=yes 7914 fi 7915 fi 7916 chmod u+w . 2>&5 7917 $rm conftest* 7918 # SGI C++ compiler will create directory out/ii_files/ for 7919 # template instantiation 7920 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7921 $rm out/* && rmdir out 7922 cd .. 7923 rmdir conftest 7924 $rm conftest* 7925 7926fi 7927{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7928echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7929 7930 7931hard_links="nottested" 7932if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7933 # do not overwrite the value of need_locks provided by the user 7934 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7935echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7936 hard_links=yes 7937 $rm conftest* 7938 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7939 touch conftest.a 7940 ln conftest.a conftest.b 2>&5 || hard_links=no 7941 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7942 { echo "$as_me:$LINENO: result: $hard_links" >&5 7943echo "${ECHO_T}$hard_links" >&6; } 7944 if test "$hard_links" = no; then 7945 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7946echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7947 need_locks=warn 7948 fi 7949else 7950 need_locks=no 7951fi 7952 7953{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7954echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7955 7956 runpath_var= 7957 allow_undefined_flag= 7958 enable_shared_with_static_runtimes=no 7959 archive_cmds= 7960 archive_expsym_cmds= 7961 old_archive_From_new_cmds= 7962 old_archive_from_expsyms_cmds= 7963 export_dynamic_flag_spec= 7964 whole_archive_flag_spec= 7965 thread_safe_flag_spec= 7966 hardcode_libdir_flag_spec= 7967 hardcode_libdir_flag_spec_ld= 7968 hardcode_libdir_separator= 7969 hardcode_direct=no 7970 hardcode_minus_L=no 7971 hardcode_shlibpath_var=unsupported 7972 link_all_deplibs=unknown 7973 hardcode_automatic=no 7974 module_cmds= 7975 module_expsym_cmds= 7976 always_export_symbols=no 7977 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7978 # include_expsyms should be a list of space-separated symbols to be *always* 7979 # included in the symbol list 7980 include_expsyms= 7981 # exclude_expsyms can be an extended regexp of symbols to exclude 7982 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7983 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7984 # as well as any symbol that contains `d'. 7985 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7986 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7987 # platforms (ab)use it in PIC code, but their linkers get confused if 7988 # the symbol is explicitly referenced. Since portable code cannot 7989 # rely on this symbol name, it's probably fine to never include it in 7990 # preloaded symbol tables. 7991 # Exclude shared library initialization/finalization symbols. 7992 extract_expsyms_cmds= 7993 # Just being paranoid about ensuring that cc_basename is set. 7994 for cc_temp in $compiler""; do 7995 case $cc_temp in 7996 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7997 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7998 \-*) ;; 7999 *) break;; 8000 esac 8001done 8002cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8003 8004 case $host_os in 8005 cygwin* | mingw* | pw32*) 8006 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8007 # When not using gcc, we currently assume that we are using 8008 # Microsoft Visual C++. 8009 if test "$GCC" != yes; then 8010 with_gnu_ld=no 8011 fi 8012 ;; 8013 interix*) 8014 # we just hope/assume this is gcc and not c89 (= MSVC++) 8015 with_gnu_ld=yes 8016 ;; 8017 openbsd*) 8018 with_gnu_ld=no 8019 ;; 8020 esac 8021 8022 ld_shlibs=yes 8023 if test "$with_gnu_ld" = yes; then 8024 # If archive_cmds runs LD, not CC, wlarc should be empty 8025 wlarc='${wl}' 8026 8027 # Set some defaults for GNU ld with shared library support. These 8028 # are reset later if shared libraries are not supported. Putting them 8029 # here allows them to be overridden if necessary. 8030 runpath_var=LD_RUN_PATH 8031 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8032 export_dynamic_flag_spec='${wl}--export-dynamic' 8033 # ancient GNU ld didn't support --whole-archive et. al. 8034 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8035 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8036 else 8037 whole_archive_flag_spec= 8038 fi 8039 supports_anon_versioning=no 8040 case `$LD -v 2>/dev/null` in 8041 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8042 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8043 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8044 *\ 2.11.*) ;; # other 2.11 versions 8045 *) supports_anon_versioning=yes ;; 8046 esac 8047 8048 # See if GNU ld supports shared libraries. 8049 case $host_os in 8050 aix[3-9]*) 8051 # On AIX/PPC, the GNU linker is very broken 8052 if test "$host_cpu" != ia64; then 8053 ld_shlibs=no 8054 cat <<EOF 1>&2 8055 8056*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8057*** to be unable to reliably create shared libraries on AIX. 8058*** Therefore, libtool is disabling shared libraries support. If you 8059*** really care for shared libraries, you may want to modify your PATH 8060*** so that a non-GNU linker is found, and then restart. 8061 8062EOF 8063 fi 8064 ;; 8065 8066 amigaos*) 8067 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)' 8068 hardcode_libdir_flag_spec='-L$libdir' 8069 hardcode_minus_L=yes 8070 8071 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8072 # that the semantics of dynamic libraries on AmigaOS, at least up 8073 # to version 4, is to share data among multiple programs linked 8074 # with the same dynamic library. Since this doesn't match the 8075 # behavior of shared libraries on other platforms, we can't use 8076 # them. 8077 ld_shlibs=no 8078 ;; 8079 8080 beos*) 8081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8082 allow_undefined_flag=unsupported 8083 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8084 # support --undefined. This deserves some investigation. FIXME 8085 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8086 else 8087 ld_shlibs=no 8088 fi 8089 ;; 8090 8091 cygwin* | mingw* | pw32*) 8092 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8093 # as there is no search path for DLLs. 8094 hardcode_libdir_flag_spec='-L$libdir' 8095 allow_undefined_flag=unsupported 8096 always_export_symbols=no 8097 enable_shared_with_static_runtimes=yes 8098 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8099 8100 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8102 # If the export-symbols file already is a .def file (1st line 8103 # is EXPORTS), use it as is; otherwise, prepend... 8104 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8105 cp $export_symbols $output_objdir/$soname.def; 8106 else 8107 echo EXPORTS > $output_objdir/$soname.def; 8108 cat $export_symbols >> $output_objdir/$soname.def; 8109 fi~ 8110 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8111 else 8112 ld_shlibs=no 8113 fi 8114 ;; 8115 8116 interix[3-9]*) 8117 hardcode_direct=no 8118 hardcode_shlibpath_var=no 8119 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8120 export_dynamic_flag_spec='${wl}-E' 8121 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8122 # Instead, shared libraries are loaded at an image base (0x10000000 by 8123 # default) and relocated if they conflict, which is a slow very memory 8124 # consuming and fragmenting process. To avoid this, we pick a random, 8125 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8126 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8127 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8128 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' 8129 ;; 8130 8131 gnu* | linux* | k*bsd*-gnu) 8132 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8133 tmp_addflag= 8134 case $cc_basename,$host_cpu in 8135 pgcc*) # Portland Group C compiler 8136 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' 8137 tmp_addflag=' $pic_flag' 8138 ;; 8139 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8140 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' 8141 tmp_addflag=' $pic_flag -Mnomain' ;; 8142 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8143 tmp_addflag=' -i_dynamic' ;; 8144 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8145 tmp_addflag=' -i_dynamic -nofor_main' ;; 8146 ifc* | ifort*) # Intel Fortran compiler 8147 tmp_addflag=' -nofor_main' ;; 8148 esac 8149 case `$CC -V 2>&1 | sed 5q` in 8150 *Sun\ C*) # Sun C 5.9 8151 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' 8152 tmp_sharedflag='-G' ;; 8153 *Sun\ F*) # Sun Fortran 8.3 8154 tmp_sharedflag='-G' ;; 8155 *) 8156 tmp_sharedflag='-shared' ;; 8157 esac 8158 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8159 8160 if test $supports_anon_versioning = yes; then 8161 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8162 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8163 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8164 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8165 fi 8166 link_all_deplibs=no 8167 else 8168 ld_shlibs=no 8169 fi 8170 ;; 8171 8172 netbsd* | netbsdelf*-gnu) 8173 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8174 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8175 wlarc= 8176 else 8177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8179 fi 8180 ;; 8181 8182 solaris*) 8183 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8184 ld_shlibs=no 8185 cat <<EOF 1>&2 8186 8187*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8188*** create shared libraries on Solaris systems. Therefore, libtool 8189*** is disabling shared libraries support. We urge you to upgrade GNU 8190*** binutils to release 2.9.1 or newer. Another option is to modify 8191*** your PATH or compiler configuration so that the native linker is 8192*** used, and then restart. 8193 8194EOF 8195 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8198 else 8199 ld_shlibs=no 8200 fi 8201 ;; 8202 8203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8204 case `$LD -v 2>&1` in 8205 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8206 ld_shlibs=no 8207 cat <<_LT_EOF 1>&2 8208 8209*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8210*** reliably create shared libraries on SCO systems. Therefore, libtool 8211*** is disabling shared libraries support. We urge you to upgrade GNU 8212*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8213*** your PATH or compiler configuration so that the native linker is 8214*** used, and then restart. 8215 8216_LT_EOF 8217 ;; 8218 *) 8219 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8220 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8222 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8223 else 8224 ld_shlibs=no 8225 fi 8226 ;; 8227 esac 8228 ;; 8229 8230 sunos4*) 8231 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8232 wlarc= 8233 hardcode_direct=yes 8234 hardcode_shlibpath_var=no 8235 ;; 8236 8237 *) 8238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8241 else 8242 ld_shlibs=no 8243 fi 8244 ;; 8245 esac 8246 8247 if test "$ld_shlibs" = no; then 8248 runpath_var= 8249 hardcode_libdir_flag_spec= 8250 export_dynamic_flag_spec= 8251 whole_archive_flag_spec= 8252 fi 8253 else 8254 # PORTME fill in a description of your system's linker (not GNU ld) 8255 case $host_os in 8256 aix3*) 8257 allow_undefined_flag=unsupported 8258 always_export_symbols=yes 8259 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' 8260 # Note: this linker hardcodes the directories in LIBPATH if there 8261 # are no directories specified by -L. 8262 hardcode_minus_L=yes 8263 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8264 # Neither direct hardcoding nor static linking is supported with a 8265 # broken collect2. 8266 hardcode_direct=unsupported 8267 fi 8268 ;; 8269 8270 aix[4-9]*) 8271 if test "$host_cpu" = ia64; then 8272 # On IA64, the linker does run time linking by default, so we don't 8273 # have to do anything special. 8274 aix_use_runtimelinking=no 8275 exp_sym_flag='-Bexport' 8276 no_entry_flag="" 8277 else 8278 # If we're using GNU nm, then we don't want the "-C" option. 8279 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8280 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8281 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' 8282 else 8283 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' 8284 fi 8285 aix_use_runtimelinking=no 8286 8287 # Test if we are trying to use run time linking or normal 8288 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8289 # need to do runtime linking. 8290 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8291 for ld_flag in $LDFLAGS; do 8292 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8293 aix_use_runtimelinking=yes 8294 break 8295 fi 8296 done 8297 ;; 8298 esac 8299 8300 exp_sym_flag='-bexport' 8301 no_entry_flag='-bnoentry' 8302 fi 8303 8304 # When large executables or shared objects are built, AIX ld can 8305 # have problems creating the table of contents. If linking a library 8306 # or program results in "error TOC overflow" add -mminimal-toc to 8307 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8308 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8309 8310 archive_cmds='' 8311 hardcode_direct=yes 8312 hardcode_libdir_separator=':' 8313 link_all_deplibs=yes 8314 8315 if test "$GCC" = yes; then 8316 case $host_os in aix4.[012]|aix4.[012].*) 8317 # We only want to do this on AIX 4.2 and lower, the check 8318 # below for broken collect2 doesn't work under 4.3+ 8319 collect2name=`${CC} -print-prog-name=collect2` 8320 if test -f "$collect2name" && \ 8321 strings "$collect2name" | grep resolve_lib_name >/dev/null 8322 then 8323 # We have reworked collect2 8324 : 8325 else 8326 # We have old collect2 8327 hardcode_direct=unsupported 8328 # It fails to find uninstalled libraries when the uninstalled 8329 # path is not listed in the libpath. Setting hardcode_minus_L 8330 # to unsupported forces relinking 8331 hardcode_minus_L=yes 8332 hardcode_libdir_flag_spec='-L$libdir' 8333 hardcode_libdir_separator= 8334 fi 8335 ;; 8336 esac 8337 shared_flag='-shared' 8338 if test "$aix_use_runtimelinking" = yes; then 8339 shared_flag="$shared_flag "'${wl}-G' 8340 fi 8341 else 8342 # not using gcc 8343 if test "$host_cpu" = ia64; then 8344 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8345 # chokes on -Wl,-G. The following line is correct: 8346 shared_flag='-G' 8347 else 8348 if test "$aix_use_runtimelinking" = yes; then 8349 shared_flag='${wl}-G' 8350 else 8351 shared_flag='${wl}-bM:SRE' 8352 fi 8353 fi 8354 fi 8355 8356 # It seems that -bexpall does not export symbols beginning with 8357 # underscore (_), so it is better to generate a list of symbols to export. 8358 always_export_symbols=yes 8359 if test "$aix_use_runtimelinking" = yes; then 8360 # Warning - without using the other runtime loading flags (-brtl), 8361 # -berok will link without error, but may produce a broken library. 8362 allow_undefined_flag='-berok' 8363 # Determine the default libpath from the value encoded in an empty executable. 8364 cat >conftest.$ac_ext <<_ACEOF 8365/* confdefs.h. */ 8366_ACEOF 8367cat confdefs.h >>conftest.$ac_ext 8368cat >>conftest.$ac_ext <<_ACEOF 8369/* end confdefs.h. */ 8370 8371int 8372main () 8373{ 8374 8375 ; 8376 return 0; 8377} 8378_ACEOF 8379rm -f conftest.$ac_objext conftest$ac_exeext 8380if { (ac_try="$ac_link" 8381case "(($ac_try" in 8382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8383 *) ac_try_echo=$ac_try;; 8384esac 8385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8386 (eval "$ac_link") 2>conftest.er1 8387 ac_status=$? 8388 grep -v '^ *+' conftest.er1 >conftest.err 8389 rm -f conftest.er1 8390 cat conftest.err >&5 8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8392 (exit $ac_status); } && { 8393 test -z "$ac_c_werror_flag" || 8394 test ! -s conftest.err 8395 } && test -s conftest$ac_exeext && 8396 $as_test_x conftest$ac_exeext; then 8397 8398lt_aix_libpath_sed=' 8399 /Import File Strings/,/^$/ { 8400 /^0/ { 8401 s/^0 *\(.*\)$/\1/ 8402 p 8403 } 8404 }' 8405aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8406# Check for a 64-bit object if we didn't find anything. 8407if test -z "$aix_libpath"; then 8408 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8409fi 8410else 8411 echo "$as_me: failed program was:" >&5 8412sed 's/^/| /' conftest.$ac_ext >&5 8413 8414 8415fi 8416 8417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8418 conftest$ac_exeext conftest.$ac_ext 8419if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8420 8421 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8422 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" 8423 else 8424 if test "$host_cpu" = ia64; then 8425 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8426 allow_undefined_flag="-z nodefs" 8427 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" 8428 else 8429 # Determine the default libpath from the value encoded in an empty executable. 8430 cat >conftest.$ac_ext <<_ACEOF 8431/* confdefs.h. */ 8432_ACEOF 8433cat confdefs.h >>conftest.$ac_ext 8434cat >>conftest.$ac_ext <<_ACEOF 8435/* end confdefs.h. */ 8436 8437int 8438main () 8439{ 8440 8441 ; 8442 return 0; 8443} 8444_ACEOF 8445rm -f conftest.$ac_objext conftest$ac_exeext 8446if { (ac_try="$ac_link" 8447case "(($ac_try" in 8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8449 *) ac_try_echo=$ac_try;; 8450esac 8451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8452 (eval "$ac_link") 2>conftest.er1 8453 ac_status=$? 8454 grep -v '^ *+' conftest.er1 >conftest.err 8455 rm -f conftest.er1 8456 cat conftest.err >&5 8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8458 (exit $ac_status); } && { 8459 test -z "$ac_c_werror_flag" || 8460 test ! -s conftest.err 8461 } && test -s conftest$ac_exeext && 8462 $as_test_x conftest$ac_exeext; then 8463 8464lt_aix_libpath_sed=' 8465 /Import File Strings/,/^$/ { 8466 /^0/ { 8467 s/^0 *\(.*\)$/\1/ 8468 p 8469 } 8470 }' 8471aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8472# Check for a 64-bit object if we didn't find anything. 8473if test -z "$aix_libpath"; then 8474 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8475fi 8476else 8477 echo "$as_me: failed program was:" >&5 8478sed 's/^/| /' conftest.$ac_ext >&5 8479 8480 8481fi 8482 8483rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8484 conftest$ac_exeext conftest.$ac_ext 8485if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8486 8487 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8488 # Warning - without using the other run time loading flags, 8489 # -berok will link without error, but may produce a broken library. 8490 no_undefined_flag=' ${wl}-bernotok' 8491 allow_undefined_flag=' ${wl}-berok' 8492 # Exported symbols can be pulled into shared objects from archives 8493 whole_archive_flag_spec='$convenience' 8494 archive_cmds_need_lc=yes 8495 # This is similar to how AIX traditionally builds its shared libraries. 8496 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' 8497 fi 8498 fi 8499 ;; 8500 8501 amigaos*) 8502 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)' 8503 hardcode_libdir_flag_spec='-L$libdir' 8504 hardcode_minus_L=yes 8505 # see comment about different semantics on the GNU ld section 8506 ld_shlibs=no 8507 ;; 8508 8509 bsdi[45]*) 8510 export_dynamic_flag_spec=-rdynamic 8511 ;; 8512 8513 cygwin* | mingw* | pw32*) 8514 # When not using gcc, we currently assume that we are using 8515 # Microsoft Visual C++. 8516 # hardcode_libdir_flag_spec is actually meaningless, as there is 8517 # no search path for DLLs. 8518 hardcode_libdir_flag_spec=' ' 8519 allow_undefined_flag=unsupported 8520 # Tell ltmain to make .lib files, not .a files. 8521 libext=lib 8522 # Tell ltmain to make .dll files, not .so files. 8523 shrext_cmds=".dll" 8524 # FIXME: Setting linknames here is a bad hack. 8525 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8526 # The linker will automatically build a .lib file if we build a DLL. 8527 old_archive_From_new_cmds='true' 8528 # FIXME: Should let the user specify the lib program. 8529 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8530 fix_srcfile_path='`cygpath -w "$srcfile"`' 8531 enable_shared_with_static_runtimes=yes 8532 ;; 8533 8534 darwin* | rhapsody*) 8535 case $host_os in 8536 rhapsody* | darwin1.[012]) 8537 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8538 ;; 8539 *) # Darwin 1.3 on 8540 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8541 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8542 else 8543 case ${MACOSX_DEPLOYMENT_TARGET} in 8544 10.[012]) 8545 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8546 ;; 8547 10.*) 8548 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8549 ;; 8550 esac 8551 fi 8552 ;; 8553 esac 8554 archive_cmds_need_lc=no 8555 hardcode_direct=no 8556 hardcode_automatic=yes 8557 hardcode_shlibpath_var=unsupported 8558 whole_archive_flag_spec='' 8559 link_all_deplibs=yes 8560 if test "$GCC" = yes ; then 8561 output_verbose_link_cmd='echo' 8562 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8563 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8564 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}" 8565 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}" 8566 else 8567 case $cc_basename in 8568 xlc*) 8569 output_verbose_link_cmd='echo' 8570 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8571 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8572 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8573 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}' 8574 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}' 8575 ;; 8576 *) 8577 ld_shlibs=no 8578 ;; 8579 esac 8580 fi 8581 ;; 8582 8583 dgux*) 8584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8585 hardcode_libdir_flag_spec='-L$libdir' 8586 hardcode_shlibpath_var=no 8587 ;; 8588 8589 freebsd1*) 8590 ld_shlibs=no 8591 ;; 8592 8593 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8594 # support. Future versions do this automatically, but an explicit c++rt0.o 8595 # does not break anything, and helps significantly (at the cost of a little 8596 # extra space). 8597 freebsd2.2*) 8598 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8599 hardcode_libdir_flag_spec='-R$libdir' 8600 hardcode_direct=yes 8601 hardcode_shlibpath_var=no 8602 ;; 8603 8604 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8605 freebsd2*) 8606 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8607 hardcode_direct=yes 8608 hardcode_minus_L=yes 8609 hardcode_shlibpath_var=no 8610 ;; 8611 8612 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8613 freebsd* | dragonfly*) 8614 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8615 hardcode_libdir_flag_spec='-R$libdir' 8616 hardcode_direct=yes 8617 hardcode_shlibpath_var=no 8618 ;; 8619 8620 hpux9*) 8621 if test "$GCC" = yes; then 8622 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' 8623 else 8624 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' 8625 fi 8626 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8627 hardcode_libdir_separator=: 8628 hardcode_direct=yes 8629 8630 # hardcode_minus_L: Not really in the search PATH, 8631 # but as the default location of the library. 8632 hardcode_minus_L=yes 8633 export_dynamic_flag_spec='${wl}-E' 8634 ;; 8635 8636 hpux10*) 8637 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8638 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8639 else 8640 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8641 fi 8642 if test "$with_gnu_ld" = no; then 8643 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8644 hardcode_libdir_separator=: 8645 8646 hardcode_direct=yes 8647 export_dynamic_flag_spec='${wl}-E' 8648 8649 # hardcode_minus_L: Not really in the search PATH, 8650 # but as the default location of the library. 8651 hardcode_minus_L=yes 8652 fi 8653 ;; 8654 8655 hpux11*) 8656 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8657 case $host_cpu in 8658 hppa*64*) 8659 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8660 ;; 8661 ia64*) 8662 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8663 ;; 8664 *) 8665 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8666 ;; 8667 esac 8668 else 8669 case $host_cpu in 8670 hppa*64*) 8671 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8672 ;; 8673 ia64*) 8674 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8675 ;; 8676 *) 8677 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8678 ;; 8679 esac 8680 fi 8681 if test "$with_gnu_ld" = no; then 8682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8683 hardcode_libdir_separator=: 8684 8685 case $host_cpu in 8686 hppa*64*|ia64*) 8687 hardcode_libdir_flag_spec_ld='+b $libdir' 8688 hardcode_direct=no 8689 hardcode_shlibpath_var=no 8690 ;; 8691 *) 8692 hardcode_direct=yes 8693 export_dynamic_flag_spec='${wl}-E' 8694 8695 # hardcode_minus_L: Not really in the search PATH, 8696 # but as the default location of the library. 8697 hardcode_minus_L=yes 8698 ;; 8699 esac 8700 fi 8701 ;; 8702 8703 irix5* | irix6* | nonstopux*) 8704 if test "$GCC" = yes; then 8705 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' 8706 else 8707 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' 8708 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8709 fi 8710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8711 hardcode_libdir_separator=: 8712 link_all_deplibs=yes 8713 ;; 8714 8715 netbsd* | netbsdelf*-gnu) 8716 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8717 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8718 else 8719 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8720 fi 8721 hardcode_libdir_flag_spec='-R$libdir' 8722 hardcode_direct=yes 8723 hardcode_shlibpath_var=no 8724 ;; 8725 8726 newsos6) 8727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8728 hardcode_direct=yes 8729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8730 hardcode_libdir_separator=: 8731 hardcode_shlibpath_var=no 8732 ;; 8733 8734 openbsd*) 8735 if test -f /usr/libexec/ld.so; then 8736 hardcode_direct=yes 8737 hardcode_shlibpath_var=no 8738 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8740 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8741 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8742 export_dynamic_flag_spec='${wl}-E' 8743 else 8744 case $host_os in 8745 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8747 hardcode_libdir_flag_spec='-R$libdir' 8748 ;; 8749 *) 8750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8752 ;; 8753 esac 8754 fi 8755 else 8756 ld_shlibs=no 8757 fi 8758 ;; 8759 8760 os2*) 8761 hardcode_libdir_flag_spec='-L$libdir' 8762 hardcode_minus_L=yes 8763 allow_undefined_flag=unsupported 8764 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' 8765 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8766 ;; 8767 8768 osf3*) 8769 if test "$GCC" = yes; then 8770 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8771 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' 8772 else 8773 allow_undefined_flag=' -expect_unresolved \*' 8774 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' 8775 fi 8776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8777 hardcode_libdir_separator=: 8778 ;; 8779 8780 osf4* | osf5*) # as osf3* with the addition of -msym flag 8781 if test "$GCC" = yes; then 8782 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8783 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' 8784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8785 else 8786 allow_undefined_flag=' -expect_unresolved \*' 8787 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' 8788 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8789 $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' 8790 8791 # Both c and cxx compiler support -rpath directly 8792 hardcode_libdir_flag_spec='-rpath $libdir' 8793 fi 8794 hardcode_libdir_separator=: 8795 ;; 8796 8797 solaris*) 8798 no_undefined_flag=' -z text' 8799 if test "$GCC" = yes; then 8800 wlarc='${wl}' 8801 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8802 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8803 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8804 else 8805 wlarc='' 8806 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8807 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8808 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8809 fi 8810 hardcode_libdir_flag_spec='-R$libdir' 8811 hardcode_shlibpath_var=no 8812 case $host_os in 8813 solaris2.[0-5] | solaris2.[0-5].*) ;; 8814 *) 8815 # The compiler driver will combine and reorder linker options, 8816 # but understands `-z linker_flag'. GCC discards it without `$wl', 8817 # but is careful enough not to reorder. 8818 # Supported since Solaris 2.6 (maybe 2.5.1?) 8819 if test "$GCC" = yes; then 8820 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8821 else 8822 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8823 fi 8824 ;; 8825 esac 8826 link_all_deplibs=yes 8827 ;; 8828 8829 sunos4*) 8830 if test "x$host_vendor" = xsequent; then 8831 # Use $CC to link under sequent, because it throws in some extra .o 8832 # files that make .init and .fini sections work. 8833 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8834 else 8835 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8836 fi 8837 hardcode_libdir_flag_spec='-L$libdir' 8838 hardcode_direct=yes 8839 hardcode_minus_L=yes 8840 hardcode_shlibpath_var=no 8841 ;; 8842 8843 sysv4) 8844 case $host_vendor in 8845 sni) 8846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8847 hardcode_direct=yes # is this really true??? 8848 ;; 8849 siemens) 8850 ## LD is ld it makes a PLAMLIB 8851 ## CC just makes a GrossModule. 8852 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8853 reload_cmds='$CC -r -o $output$reload_objs' 8854 hardcode_direct=no 8855 ;; 8856 motorola) 8857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8858 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8859 ;; 8860 esac 8861 runpath_var='LD_RUN_PATH' 8862 hardcode_shlibpath_var=no 8863 ;; 8864 8865 sysv4.3*) 8866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8867 hardcode_shlibpath_var=no 8868 export_dynamic_flag_spec='-Bexport' 8869 ;; 8870 8871 sysv4*MP*) 8872 if test -d /usr/nec; then 8873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8874 hardcode_shlibpath_var=no 8875 runpath_var=LD_RUN_PATH 8876 hardcode_runpath_var=yes 8877 ld_shlibs=yes 8878 fi 8879 ;; 8880 8881 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8882 no_undefined_flag='${wl}-z,text' 8883 archive_cmds_need_lc=no 8884 hardcode_shlibpath_var=no 8885 runpath_var='LD_RUN_PATH' 8886 8887 if test "$GCC" = yes; then 8888 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8889 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8890 else 8891 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8892 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8893 fi 8894 ;; 8895 8896 sysv5* | sco3.2v5* | sco5v6*) 8897 # Note: We can NOT use -z defs as we might desire, because we do not 8898 # link with -lc, and that would cause any symbols used from libc to 8899 # always be unresolved, which means just about no library would 8900 # ever link correctly. If we're not using GNU ld we use -z text 8901 # though, which does catch some bad symbols but isn't as heavy-handed 8902 # as -z defs. 8903 no_undefined_flag='${wl}-z,text' 8904 allow_undefined_flag='${wl}-z,nodefs' 8905 archive_cmds_need_lc=no 8906 hardcode_shlibpath_var=no 8907 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8908 hardcode_libdir_separator=':' 8909 link_all_deplibs=yes 8910 export_dynamic_flag_spec='${wl}-Bexport' 8911 runpath_var='LD_RUN_PATH' 8912 8913 if test "$GCC" = yes; then 8914 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8915 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8916 else 8917 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8918 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8919 fi 8920 ;; 8921 8922 uts4*) 8923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8924 hardcode_libdir_flag_spec='-L$libdir' 8925 hardcode_shlibpath_var=no 8926 ;; 8927 8928 *) 8929 ld_shlibs=no 8930 ;; 8931 esac 8932 fi 8933 8934{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8935echo "${ECHO_T}$ld_shlibs" >&6; } 8936test "$ld_shlibs" = no && can_build_shared=no 8937 8938# 8939# Do we need to explicitly link libc? 8940# 8941case "x$archive_cmds_need_lc" in 8942x|xyes) 8943 # Assume -lc should be added 8944 archive_cmds_need_lc=yes 8945 8946 if test "$enable_shared" = yes && test "$GCC" = yes; then 8947 case $archive_cmds in 8948 *'~'*) 8949 # FIXME: we may have to deal with multi-command sequences. 8950 ;; 8951 '$CC '*) 8952 # Test whether the compiler implicitly links with -lc since on some 8953 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8954 # to ld, don't add -lc before -lgcc. 8955 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8956echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8957 $rm conftest* 8958 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8959 8960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8961 (eval $ac_compile) 2>&5 8962 ac_status=$? 8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8964 (exit $ac_status); } 2>conftest.err; then 8965 soname=conftest 8966 lib=conftest 8967 libobjs=conftest.$ac_objext 8968 deplibs= 8969 wl=$lt_prog_compiler_wl 8970 pic_flag=$lt_prog_compiler_pic 8971 compiler_flags=-v 8972 linker_flags=-v 8973 verstring= 8974 output_objdir=. 8975 libname=conftest 8976 lt_save_allow_undefined_flag=$allow_undefined_flag 8977 allow_undefined_flag= 8978 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8979 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8980 ac_status=$? 8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8982 (exit $ac_status); } 8983 then 8984 archive_cmds_need_lc=no 8985 else 8986 archive_cmds_need_lc=yes 8987 fi 8988 allow_undefined_flag=$lt_save_allow_undefined_flag 8989 else 8990 cat conftest.err 1>&5 8991 fi 8992 $rm conftest* 8993 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8994echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8995 ;; 8996 esac 8997 fi 8998 ;; 8999esac 9000 9001{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9002echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9003library_names_spec= 9004libname_spec='lib$name' 9005soname_spec= 9006shrext_cmds=".so" 9007postinstall_cmds= 9008postuninstall_cmds= 9009finish_cmds= 9010finish_eval= 9011shlibpath_var= 9012shlibpath_overrides_runpath=unknown 9013version_type=none 9014dynamic_linker="$host_os ld.so" 9015sys_lib_dlsearch_path_spec="/lib /usr/lib" 9016 9017if test "$GCC" = yes; then 9018 case $host_os in 9019 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9020 *) lt_awk_arg="/^libraries:/" ;; 9021 esac 9022 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9023 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9024 # if the path contains ";" then we assume it to be the separator 9025 # otherwise default to the standard path separator (i.e. ":") - it is 9026 # assumed that no part of a normal pathname contains ";" but that should 9027 # okay in the real world where ";" in dirpaths is itself problematic. 9028 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9029 else 9030 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9031 fi 9032 # Ok, now we have the path, separated by spaces, we can step through it 9033 # and add multilib dir if necessary. 9034 lt_tmp_lt_search_path_spec= 9035 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9036 for lt_sys_path in $lt_search_path_spec; do 9037 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9038 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9039 else 9040 test -d "$lt_sys_path" && \ 9041 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9042 fi 9043 done 9044 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9045BEGIN {RS=" "; FS="/|\n";} { 9046 lt_foo=""; 9047 lt_count=0; 9048 for (lt_i = NF; lt_i > 0; lt_i--) { 9049 if ($lt_i != "" && $lt_i != ".") { 9050 if ($lt_i == "..") { 9051 lt_count++; 9052 } else { 9053 if (lt_count == 0) { 9054 lt_foo="/" $lt_i lt_foo; 9055 } else { 9056 lt_count--; 9057 } 9058 } 9059 } 9060 } 9061 if (lt_foo != "") { lt_freq[lt_foo]++; } 9062 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9063}'` 9064 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9065else 9066 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9067fi 9068need_lib_prefix=unknown 9069hardcode_into_libs=no 9070 9071# when you set need_version to no, make sure it does not cause -set_version 9072# flags to be left without arguments 9073need_version=unknown 9074 9075case $host_os in 9076aix3*) 9077 version_type=linux 9078 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9079 shlibpath_var=LIBPATH 9080 9081 # AIX 3 has no versioning support, so we append a major version to the name. 9082 soname_spec='${libname}${release}${shared_ext}$major' 9083 ;; 9084 9085aix[4-9]*) 9086 version_type=linux 9087 need_lib_prefix=no 9088 need_version=no 9089 hardcode_into_libs=yes 9090 if test "$host_cpu" = ia64; then 9091 # AIX 5 supports IA64 9092 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9093 shlibpath_var=LD_LIBRARY_PATH 9094 else 9095 # With GCC up to 2.95.x, collect2 would create an import file 9096 # for dependence libraries. The import file would start with 9097 # the line `#! .'. This would cause the generated library to 9098 # depend on `.', always an invalid library. This was fixed in 9099 # development snapshots of GCC prior to 3.0. 9100 case $host_os in 9101 aix4 | aix4.[01] | aix4.[01].*) 9102 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9103 echo ' yes ' 9104 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9105 : 9106 else 9107 can_build_shared=no 9108 fi 9109 ;; 9110 esac 9111 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9112 # soname into executable. Probably we can add versioning support to 9113 # collect2, so additional links can be useful in future. 9114 if test "$aix_use_runtimelinking" = yes; then 9115 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9116 # instead of lib<name>.a to let people know that these are not 9117 # typical AIX shared libraries. 9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9119 else 9120 # We preserve .a as extension for shared libraries through AIX4.2 9121 # and later when we are not doing run time linking. 9122 library_names_spec='${libname}${release}.a $libname.a' 9123 soname_spec='${libname}${release}${shared_ext}$major' 9124 fi 9125 shlibpath_var=LIBPATH 9126 fi 9127 ;; 9128 9129amigaos*) 9130 library_names_spec='$libname.ixlibrary $libname.a' 9131 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9132 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' 9133 ;; 9134 9135beos*) 9136 library_names_spec='${libname}${shared_ext}' 9137 dynamic_linker="$host_os ld.so" 9138 shlibpath_var=LIBRARY_PATH 9139 ;; 9140 9141bsdi[45]*) 9142 version_type=linux 9143 need_version=no 9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9145 soname_spec='${libname}${release}${shared_ext}$major' 9146 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9147 shlibpath_var=LD_LIBRARY_PATH 9148 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9149 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9150 # the default ld.so.conf also contains /usr/contrib/lib and 9151 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9152 # libtool to hard-code these into programs 9153 ;; 9154 9155cygwin* | mingw* | pw32*) 9156 version_type=windows 9157 shrext_cmds=".dll" 9158 need_version=no 9159 need_lib_prefix=no 9160 9161 case $GCC,$host_os in 9162 yes,cygwin* | yes,mingw* | yes,pw32*) 9163 library_names_spec='$libname.dll.a' 9164 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9165 postinstall_cmds='base_file=`basename \${file}`~ 9166 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9167 dldir=$destdir/`dirname \$dlpath`~ 9168 test -d \$dldir || mkdir -p \$dldir~ 9169 $install_prog $dir/$dlname \$dldir/$dlname~ 9170 chmod a+x \$dldir/$dlname' 9171 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9172 dlpath=$dir/\$dldll~ 9173 $rm \$dlpath' 9174 shlibpath_overrides_runpath=yes 9175 9176 case $host_os in 9177 cygwin*) 9178 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9179 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9180 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9181 ;; 9182 mingw*) 9183 # MinGW DLLs use traditional 'lib' prefix 9184 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9185 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9186 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9187 # It is most probably a Windows format PATH printed by 9188 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9189 # path with ; separators, and with drive letters. We can handle the 9190 # drive letters (cygwin fileutils understands them), so leave them, 9191 # especially as we might pass files found there to a mingw objdump, 9192 # which wouldn't understand a cygwinified path. Ahh. 9193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9194 else 9195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9196 fi 9197 ;; 9198 pw32*) 9199 # pw32 DLLs use 'pw' prefix rather than 'lib' 9200 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9201 ;; 9202 esac 9203 ;; 9204 9205 *) 9206 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9207 ;; 9208 esac 9209 dynamic_linker='Win32 ld.exe' 9210 # FIXME: first we should search . and the directory the executable is in 9211 shlibpath_var=PATH 9212 ;; 9213 9214darwin* | rhapsody*) 9215 dynamic_linker="$host_os dyld" 9216 version_type=darwin 9217 need_lib_prefix=no 9218 need_version=no 9219 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9220 soname_spec='${libname}${release}${major}$shared_ext' 9221 shlibpath_overrides_runpath=yes 9222 shlibpath_var=DYLD_LIBRARY_PATH 9223 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9224 9225 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9226 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9227 ;; 9228 9229dgux*) 9230 version_type=linux 9231 need_lib_prefix=no 9232 need_version=no 9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9234 soname_spec='${libname}${release}${shared_ext}$major' 9235 shlibpath_var=LD_LIBRARY_PATH 9236 ;; 9237 9238freebsd1*) 9239 dynamic_linker=no 9240 ;; 9241 9242freebsd* | dragonfly*) 9243 # DragonFly does not have aout. When/if they implement a new 9244 # versioning mechanism, adjust this. 9245 if test -x /usr/bin/objformat; then 9246 objformat=`/usr/bin/objformat` 9247 else 9248 case $host_os in 9249 freebsd[123]*) objformat=aout ;; 9250 *) objformat=elf ;; 9251 esac 9252 fi 9253 version_type=freebsd-$objformat 9254 case $version_type in 9255 freebsd-elf*) 9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9257 need_version=no 9258 need_lib_prefix=no 9259 ;; 9260 freebsd-*) 9261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9262 need_version=yes 9263 ;; 9264 esac 9265 shlibpath_var=LD_LIBRARY_PATH 9266 case $host_os in 9267 freebsd2*) 9268 shlibpath_overrides_runpath=yes 9269 ;; 9270 freebsd3.[01]* | freebsdelf3.[01]*) 9271 shlibpath_overrides_runpath=yes 9272 hardcode_into_libs=yes 9273 ;; 9274 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9275 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9276 shlibpath_overrides_runpath=no 9277 hardcode_into_libs=yes 9278 ;; 9279 *) # from 4.6 on, and DragonFly 9280 shlibpath_overrides_runpath=yes 9281 hardcode_into_libs=yes 9282 ;; 9283 esac 9284 ;; 9285 9286gnu*) 9287 version_type=linux 9288 need_lib_prefix=no 9289 need_version=no 9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9291 soname_spec='${libname}${release}${shared_ext}$major' 9292 shlibpath_var=LD_LIBRARY_PATH 9293 hardcode_into_libs=yes 9294 ;; 9295 9296hpux9* | hpux10* | hpux11*) 9297 # Give a soname corresponding to the major version so that dld.sl refuses to 9298 # link against other versions. 9299 version_type=sunos 9300 need_lib_prefix=no 9301 need_version=no 9302 case $host_cpu in 9303 ia64*) 9304 shrext_cmds='.so' 9305 hardcode_into_libs=yes 9306 dynamic_linker="$host_os dld.so" 9307 shlibpath_var=LD_LIBRARY_PATH 9308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9310 soname_spec='${libname}${release}${shared_ext}$major' 9311 if test "X$HPUX_IA64_MODE" = X32; then 9312 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9313 else 9314 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9315 fi 9316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9317 ;; 9318 hppa*64*) 9319 shrext_cmds='.sl' 9320 hardcode_into_libs=yes 9321 dynamic_linker="$host_os dld.sl" 9322 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9325 soname_spec='${libname}${release}${shared_ext}$major' 9326 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9328 ;; 9329 *) 9330 shrext_cmds='.sl' 9331 dynamic_linker="$host_os dld.sl" 9332 shlibpath_var=SHLIB_PATH 9333 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9335 soname_spec='${libname}${release}${shared_ext}$major' 9336 ;; 9337 esac 9338 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9339 postinstall_cmds='chmod 555 $lib' 9340 ;; 9341 9342interix[3-9]*) 9343 version_type=linux 9344 need_lib_prefix=no 9345 need_version=no 9346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9347 soname_spec='${libname}${release}${shared_ext}$major' 9348 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9349 shlibpath_var=LD_LIBRARY_PATH 9350 shlibpath_overrides_runpath=no 9351 hardcode_into_libs=yes 9352 ;; 9353 9354irix5* | irix6* | nonstopux*) 9355 case $host_os in 9356 nonstopux*) version_type=nonstopux ;; 9357 *) 9358 if test "$lt_cv_prog_gnu_ld" = yes; then 9359 version_type=linux 9360 else 9361 version_type=irix 9362 fi ;; 9363 esac 9364 need_lib_prefix=no 9365 need_version=no 9366 soname_spec='${libname}${release}${shared_ext}$major' 9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9368 case $host_os in 9369 irix5* | nonstopux*) 9370 libsuff= shlibsuff= 9371 ;; 9372 *) 9373 case $LD in # libtool.m4 will add one of these switches to LD 9374 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9375 libsuff= shlibsuff= libmagic=32-bit;; 9376 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9377 libsuff=32 shlibsuff=N32 libmagic=N32;; 9378 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9379 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9380 *) libsuff= shlibsuff= libmagic=never-match;; 9381 esac 9382 ;; 9383 esac 9384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9385 shlibpath_overrides_runpath=no 9386 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9387 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9388 hardcode_into_libs=yes 9389 ;; 9390 9391# No shared lib support for Linux oldld, aout, or coff. 9392linux*oldld* | linux*aout* | linux*coff*) 9393 dynamic_linker=no 9394 ;; 9395 9396# This must be Linux ELF. 9397linux* | k*bsd*-gnu) 9398 version_type=linux 9399 need_lib_prefix=no 9400 need_version=no 9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9402 soname_spec='${libname}${release}${shared_ext}$major' 9403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9404 shlibpath_var=LD_LIBRARY_PATH 9405 shlibpath_overrides_runpath=no 9406 # This implies no fast_install, which is unacceptable. 9407 # Some rework will be needed to allow for fast_install 9408 # before this can be enabled. 9409 hardcode_into_libs=yes 9410 9411 # Append ld.so.conf contents to the search path 9412 if test -f /etc/ld.so.conf; then 9413 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' ' '` 9414 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9415 fi 9416 9417 # We used to test for /lib/ld.so.1 and disable shared libraries on 9418 # powerpc, because MkLinux only supported shared libraries with the 9419 # GNU dynamic linker. Since this was broken with cross compilers, 9420 # most powerpc-linux boxes support dynamic linking these days and 9421 # people can always --disable-shared, the test was removed, and we 9422 # assume the GNU/Linux dynamic linker is in use. 9423 dynamic_linker='GNU/Linux ld.so' 9424 ;; 9425 9426netbsdelf*-gnu) 9427 version_type=linux 9428 need_lib_prefix=no 9429 need_version=no 9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9431 soname_spec='${libname}${release}${shared_ext}$major' 9432 shlibpath_var=LD_LIBRARY_PATH 9433 shlibpath_overrides_runpath=no 9434 hardcode_into_libs=yes 9435 dynamic_linker='NetBSD ld.elf_so' 9436 ;; 9437 9438netbsd*) 9439 version_type=sunos 9440 need_lib_prefix=no 9441 need_version=no 9442 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9445 dynamic_linker='NetBSD (a.out) ld.so' 9446 else 9447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9448 soname_spec='${libname}${release}${shared_ext}$major' 9449 dynamic_linker='NetBSD ld.elf_so' 9450 fi 9451 shlibpath_var=LD_LIBRARY_PATH 9452 shlibpath_overrides_runpath=yes 9453 hardcode_into_libs=yes 9454 ;; 9455 9456newsos6) 9457 version_type=linux 9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9459 shlibpath_var=LD_LIBRARY_PATH 9460 shlibpath_overrides_runpath=yes 9461 ;; 9462 9463nto-qnx*) 9464 version_type=linux 9465 need_lib_prefix=no 9466 need_version=no 9467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9468 soname_spec='${libname}${release}${shared_ext}$major' 9469 shlibpath_var=LD_LIBRARY_PATH 9470 shlibpath_overrides_runpath=yes 9471 ;; 9472 9473openbsd*) 9474 version_type=sunos 9475 sys_lib_dlsearch_path_spec="/usr/lib" 9476 need_lib_prefix=no 9477 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9478 case $host_os in 9479 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9480 *) need_version=no ;; 9481 esac 9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9484 shlibpath_var=LD_LIBRARY_PATH 9485 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9486 case $host_os in 9487 openbsd2.[89] | openbsd2.[89].*) 9488 shlibpath_overrides_runpath=no 9489 ;; 9490 *) 9491 shlibpath_overrides_runpath=yes 9492 ;; 9493 esac 9494 else 9495 shlibpath_overrides_runpath=yes 9496 fi 9497 ;; 9498 9499os2*) 9500 libname_spec='$name' 9501 shrext_cmds=".dll" 9502 need_lib_prefix=no 9503 library_names_spec='$libname${shared_ext} $libname.a' 9504 dynamic_linker='OS/2 ld.exe' 9505 shlibpath_var=LIBPATH 9506 ;; 9507 9508osf3* | osf4* | osf5*) 9509 version_type=osf 9510 need_lib_prefix=no 9511 need_version=no 9512 soname_spec='${libname}${release}${shared_ext}$major' 9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9514 shlibpath_var=LD_LIBRARY_PATH 9515 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9516 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9517 ;; 9518 9519rdos*) 9520 dynamic_linker=no 9521 ;; 9522 9523solaris*) 9524 version_type=linux 9525 need_lib_prefix=no 9526 need_version=no 9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9528 soname_spec='${libname}${release}${shared_ext}$major' 9529 shlibpath_var=LD_LIBRARY_PATH 9530 shlibpath_overrides_runpath=yes 9531 hardcode_into_libs=yes 9532 # ldd complains unless libraries are executable 9533 postinstall_cmds='chmod +x $lib' 9534 ;; 9535 9536sunos4*) 9537 version_type=sunos 9538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9539 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9540 shlibpath_var=LD_LIBRARY_PATH 9541 shlibpath_overrides_runpath=yes 9542 if test "$with_gnu_ld" = yes; then 9543 need_lib_prefix=no 9544 fi 9545 need_version=yes 9546 ;; 9547 9548sysv4 | sysv4.3*) 9549 version_type=linux 9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9551 soname_spec='${libname}${release}${shared_ext}$major' 9552 shlibpath_var=LD_LIBRARY_PATH 9553 case $host_vendor in 9554 sni) 9555 shlibpath_overrides_runpath=no 9556 need_lib_prefix=no 9557 export_dynamic_flag_spec='${wl}-Blargedynsym' 9558 runpath_var=LD_RUN_PATH 9559 ;; 9560 siemens) 9561 need_lib_prefix=no 9562 ;; 9563 motorola) 9564 need_lib_prefix=no 9565 need_version=no 9566 shlibpath_overrides_runpath=no 9567 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9568 ;; 9569 esac 9570 ;; 9571 9572sysv4*MP*) 9573 if test -d /usr/nec ;then 9574 version_type=linux 9575 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9576 soname_spec='$libname${shared_ext}.$major' 9577 shlibpath_var=LD_LIBRARY_PATH 9578 fi 9579 ;; 9580 9581sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9582 version_type=freebsd-elf 9583 need_lib_prefix=no 9584 need_version=no 9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9586 soname_spec='${libname}${release}${shared_ext}$major' 9587 shlibpath_var=LD_LIBRARY_PATH 9588 hardcode_into_libs=yes 9589 if test "$with_gnu_ld" = yes; then 9590 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9591 shlibpath_overrides_runpath=no 9592 else 9593 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9594 shlibpath_overrides_runpath=yes 9595 case $host_os in 9596 sco3.2v5*) 9597 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9598 ;; 9599 esac 9600 fi 9601 sys_lib_dlsearch_path_spec='/usr/lib' 9602 ;; 9603 9604uts4*) 9605 version_type=linux 9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9607 soname_spec='${libname}${release}${shared_ext}$major' 9608 shlibpath_var=LD_LIBRARY_PATH 9609 ;; 9610 9611*) 9612 dynamic_linker=no 9613 ;; 9614esac 9615{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9616echo "${ECHO_T}$dynamic_linker" >&6; } 9617test "$dynamic_linker" = no && can_build_shared=no 9618 9619if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9620 echo $ECHO_N "(cached) $ECHO_C" >&6 9621else 9622 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9623fi 9624 9625sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9626if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9627 echo $ECHO_N "(cached) $ECHO_C" >&6 9628else 9629 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9630fi 9631 9632sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9633 9634variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9635if test "$GCC" = yes; then 9636 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9637fi 9638 9639{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9640echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9641hardcode_action= 9642if test -n "$hardcode_libdir_flag_spec" || \ 9643 test -n "$runpath_var" || \ 9644 test "X$hardcode_automatic" = "Xyes" ; then 9645 9646 # We can hardcode non-existant directories. 9647 if test "$hardcode_direct" != no && 9648 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9649 # have to relink, otherwise we might link with an installed library 9650 # when we should be linking with a yet-to-be-installed one 9651 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9652 test "$hardcode_minus_L" != no; then 9653 # Linking always hardcodes the temporary library directory. 9654 hardcode_action=relink 9655 else 9656 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9657 hardcode_action=immediate 9658 fi 9659else 9660 # We cannot hardcode anything, or else we can only hardcode existing 9661 # directories. 9662 hardcode_action=unsupported 9663fi 9664{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9665echo "${ECHO_T}$hardcode_action" >&6; } 9666 9667if test "$hardcode_action" = relink; then 9668 # Fast installation is not supported 9669 enable_fast_install=no 9670elif test "$shlibpath_overrides_runpath" = yes || 9671 test "$enable_shared" = no; then 9672 # Fast installation is not necessary 9673 enable_fast_install=needless 9674fi 9675 9676striplib= 9677old_striplib= 9678{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9679echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9680if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9681 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9682 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9683 { echo "$as_me:$LINENO: result: yes" >&5 9684echo "${ECHO_T}yes" >&6; } 9685else 9686# FIXME - insert some real tests, host_os isn't really good enough 9687 case $host_os in 9688 darwin*) 9689 if test -n "$STRIP" ; then 9690 striplib="$STRIP -x" 9691 old_striplib="$STRIP -S" 9692 { echo "$as_me:$LINENO: result: yes" >&5 9693echo "${ECHO_T}yes" >&6; } 9694 else 9695 { echo "$as_me:$LINENO: result: no" >&5 9696echo "${ECHO_T}no" >&6; } 9697fi 9698 ;; 9699 *) 9700 { echo "$as_me:$LINENO: result: no" >&5 9701echo "${ECHO_T}no" >&6; } 9702 ;; 9703 esac 9704fi 9705 9706if test "x$enable_dlopen" != xyes; then 9707 enable_dlopen=unknown 9708 enable_dlopen_self=unknown 9709 enable_dlopen_self_static=unknown 9710else 9711 lt_cv_dlopen=no 9712 lt_cv_dlopen_libs= 9713 9714 case $host_os in 9715 beos*) 9716 lt_cv_dlopen="load_add_on" 9717 lt_cv_dlopen_libs= 9718 lt_cv_dlopen_self=yes 9719 ;; 9720 9721 mingw* | pw32*) 9722 lt_cv_dlopen="LoadLibrary" 9723 lt_cv_dlopen_libs= 9724 ;; 9725 9726 cygwin*) 9727 lt_cv_dlopen="dlopen" 9728 lt_cv_dlopen_libs= 9729 ;; 9730 9731 darwin*) 9732 # if libdl is installed we need to link against it 9733 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9734echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9735if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9736 echo $ECHO_N "(cached) $ECHO_C" >&6 9737else 9738 ac_check_lib_save_LIBS=$LIBS 9739LIBS="-ldl $LIBS" 9740cat >conftest.$ac_ext <<_ACEOF 9741/* confdefs.h. */ 9742_ACEOF 9743cat confdefs.h >>conftest.$ac_ext 9744cat >>conftest.$ac_ext <<_ACEOF 9745/* end confdefs.h. */ 9746 9747/* Override any GCC internal prototype to avoid an error. 9748 Use char because int might match the return type of a GCC 9749 builtin and then its argument prototype would still apply. */ 9750#ifdef __cplusplus 9751extern "C" 9752#endif 9753char dlopen (); 9754int 9755main () 9756{ 9757return dlopen (); 9758 ; 9759 return 0; 9760} 9761_ACEOF 9762rm -f conftest.$ac_objext conftest$ac_exeext 9763if { (ac_try="$ac_link" 9764case "(($ac_try" in 9765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9766 *) ac_try_echo=$ac_try;; 9767esac 9768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9769 (eval "$ac_link") 2>conftest.er1 9770 ac_status=$? 9771 grep -v '^ *+' conftest.er1 >conftest.err 9772 rm -f conftest.er1 9773 cat conftest.err >&5 9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9775 (exit $ac_status); } && { 9776 test -z "$ac_c_werror_flag" || 9777 test ! -s conftest.err 9778 } && test -s conftest$ac_exeext && 9779 $as_test_x conftest$ac_exeext; then 9780 ac_cv_lib_dl_dlopen=yes 9781else 9782 echo "$as_me: failed program was:" >&5 9783sed 's/^/| /' conftest.$ac_ext >&5 9784 9785 ac_cv_lib_dl_dlopen=no 9786fi 9787 9788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9789 conftest$ac_exeext conftest.$ac_ext 9790LIBS=$ac_check_lib_save_LIBS 9791fi 9792{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9793echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9794if test $ac_cv_lib_dl_dlopen = yes; then 9795 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9796else 9797 9798 lt_cv_dlopen="dyld" 9799 lt_cv_dlopen_libs= 9800 lt_cv_dlopen_self=yes 9801 9802fi 9803 9804 ;; 9805 9806 *) 9807 { echo "$as_me:$LINENO: checking for shl_load" >&5 9808echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9809if test "${ac_cv_func_shl_load+set}" = set; then 9810 echo $ECHO_N "(cached) $ECHO_C" >&6 9811else 9812 cat >conftest.$ac_ext <<_ACEOF 9813/* confdefs.h. */ 9814_ACEOF 9815cat confdefs.h >>conftest.$ac_ext 9816cat >>conftest.$ac_ext <<_ACEOF 9817/* end confdefs.h. */ 9818/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9819 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9820#define shl_load innocuous_shl_load 9821 9822/* System header to define __stub macros and hopefully few prototypes, 9823 which can conflict with char shl_load (); below. 9824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9825 <limits.h> exists even on freestanding compilers. */ 9826 9827#ifdef __STDC__ 9828# include <limits.h> 9829#else 9830# include <assert.h> 9831#endif 9832 9833#undef shl_load 9834 9835/* Override any GCC internal prototype to avoid an error. 9836 Use char because int might match the return type of a GCC 9837 builtin and then its argument prototype would still apply. */ 9838#ifdef __cplusplus 9839extern "C" 9840#endif 9841char shl_load (); 9842/* The GNU C library defines this for functions which it implements 9843 to always fail with ENOSYS. Some functions are actually named 9844 something starting with __ and the normal name is an alias. */ 9845#if defined __stub_shl_load || defined __stub___shl_load 9846choke me 9847#endif 9848 9849int 9850main () 9851{ 9852return shl_load (); 9853 ; 9854 return 0; 9855} 9856_ACEOF 9857rm -f conftest.$ac_objext conftest$ac_exeext 9858if { (ac_try="$ac_link" 9859case "(($ac_try" in 9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9861 *) ac_try_echo=$ac_try;; 9862esac 9863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9864 (eval "$ac_link") 2>conftest.er1 9865 ac_status=$? 9866 grep -v '^ *+' conftest.er1 >conftest.err 9867 rm -f conftest.er1 9868 cat conftest.err >&5 9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9870 (exit $ac_status); } && { 9871 test -z "$ac_c_werror_flag" || 9872 test ! -s conftest.err 9873 } && test -s conftest$ac_exeext && 9874 $as_test_x conftest$ac_exeext; then 9875 ac_cv_func_shl_load=yes 9876else 9877 echo "$as_me: failed program was:" >&5 9878sed 's/^/| /' conftest.$ac_ext >&5 9879 9880 ac_cv_func_shl_load=no 9881fi 9882 9883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9884 conftest$ac_exeext conftest.$ac_ext 9885fi 9886{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9887echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9888if test $ac_cv_func_shl_load = yes; then 9889 lt_cv_dlopen="shl_load" 9890else 9891 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9892echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9893if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9894 echo $ECHO_N "(cached) $ECHO_C" >&6 9895else 9896 ac_check_lib_save_LIBS=$LIBS 9897LIBS="-ldld $LIBS" 9898cat >conftest.$ac_ext <<_ACEOF 9899/* confdefs.h. */ 9900_ACEOF 9901cat confdefs.h >>conftest.$ac_ext 9902cat >>conftest.$ac_ext <<_ACEOF 9903/* end confdefs.h. */ 9904 9905/* Override any GCC internal prototype to avoid an error. 9906 Use char because int might match the return type of a GCC 9907 builtin and then its argument prototype would still apply. */ 9908#ifdef __cplusplus 9909extern "C" 9910#endif 9911char shl_load (); 9912int 9913main () 9914{ 9915return shl_load (); 9916 ; 9917 return 0; 9918} 9919_ACEOF 9920rm -f conftest.$ac_objext conftest$ac_exeext 9921if { (ac_try="$ac_link" 9922case "(($ac_try" in 9923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9924 *) ac_try_echo=$ac_try;; 9925esac 9926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9927 (eval "$ac_link") 2>conftest.er1 9928 ac_status=$? 9929 grep -v '^ *+' conftest.er1 >conftest.err 9930 rm -f conftest.er1 9931 cat conftest.err >&5 9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9933 (exit $ac_status); } && { 9934 test -z "$ac_c_werror_flag" || 9935 test ! -s conftest.err 9936 } && test -s conftest$ac_exeext && 9937 $as_test_x conftest$ac_exeext; then 9938 ac_cv_lib_dld_shl_load=yes 9939else 9940 echo "$as_me: failed program was:" >&5 9941sed 's/^/| /' conftest.$ac_ext >&5 9942 9943 ac_cv_lib_dld_shl_load=no 9944fi 9945 9946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9947 conftest$ac_exeext conftest.$ac_ext 9948LIBS=$ac_check_lib_save_LIBS 9949fi 9950{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9951echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9952if test $ac_cv_lib_dld_shl_load = yes; then 9953 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9954else 9955 { echo "$as_me:$LINENO: checking for dlopen" >&5 9956echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9957if test "${ac_cv_func_dlopen+set}" = set; then 9958 echo $ECHO_N "(cached) $ECHO_C" >&6 9959else 9960 cat >conftest.$ac_ext <<_ACEOF 9961/* confdefs.h. */ 9962_ACEOF 9963cat confdefs.h >>conftest.$ac_ext 9964cat >>conftest.$ac_ext <<_ACEOF 9965/* end confdefs.h. */ 9966/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9967 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9968#define dlopen innocuous_dlopen 9969 9970/* System header to define __stub macros and hopefully few prototypes, 9971 which can conflict with char dlopen (); below. 9972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9973 <limits.h> exists even on freestanding compilers. */ 9974 9975#ifdef __STDC__ 9976# include <limits.h> 9977#else 9978# include <assert.h> 9979#endif 9980 9981#undef dlopen 9982 9983/* Override any GCC internal prototype to avoid an error. 9984 Use char because int might match the return type of a GCC 9985 builtin and then its argument prototype would still apply. */ 9986#ifdef __cplusplus 9987extern "C" 9988#endif 9989char dlopen (); 9990/* The GNU C library defines this for functions which it implements 9991 to always fail with ENOSYS. Some functions are actually named 9992 something starting with __ and the normal name is an alias. */ 9993#if defined __stub_dlopen || defined __stub___dlopen 9994choke me 9995#endif 9996 9997int 9998main () 9999{ 10000return dlopen (); 10001 ; 10002 return 0; 10003} 10004_ACEOF 10005rm -f conftest.$ac_objext conftest$ac_exeext 10006if { (ac_try="$ac_link" 10007case "(($ac_try" in 10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10009 *) ac_try_echo=$ac_try;; 10010esac 10011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10012 (eval "$ac_link") 2>conftest.er1 10013 ac_status=$? 10014 grep -v '^ *+' conftest.er1 >conftest.err 10015 rm -f conftest.er1 10016 cat conftest.err >&5 10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10018 (exit $ac_status); } && { 10019 test -z "$ac_c_werror_flag" || 10020 test ! -s conftest.err 10021 } && test -s conftest$ac_exeext && 10022 $as_test_x conftest$ac_exeext; then 10023 ac_cv_func_dlopen=yes 10024else 10025 echo "$as_me: failed program was:" >&5 10026sed 's/^/| /' conftest.$ac_ext >&5 10027 10028 ac_cv_func_dlopen=no 10029fi 10030 10031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10032 conftest$ac_exeext conftest.$ac_ext 10033fi 10034{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10035echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10036if test $ac_cv_func_dlopen = yes; then 10037 lt_cv_dlopen="dlopen" 10038else 10039 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10040echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10041if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10042 echo $ECHO_N "(cached) $ECHO_C" >&6 10043else 10044 ac_check_lib_save_LIBS=$LIBS 10045LIBS="-ldl $LIBS" 10046cat >conftest.$ac_ext <<_ACEOF 10047/* confdefs.h. */ 10048_ACEOF 10049cat confdefs.h >>conftest.$ac_ext 10050cat >>conftest.$ac_ext <<_ACEOF 10051/* end confdefs.h. */ 10052 10053/* Override any GCC internal prototype to avoid an error. 10054 Use char because int might match the return type of a GCC 10055 builtin and then its argument prototype would still apply. */ 10056#ifdef __cplusplus 10057extern "C" 10058#endif 10059char dlopen (); 10060int 10061main () 10062{ 10063return dlopen (); 10064 ; 10065 return 0; 10066} 10067_ACEOF 10068rm -f conftest.$ac_objext conftest$ac_exeext 10069if { (ac_try="$ac_link" 10070case "(($ac_try" in 10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10072 *) ac_try_echo=$ac_try;; 10073esac 10074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10075 (eval "$ac_link") 2>conftest.er1 10076 ac_status=$? 10077 grep -v '^ *+' conftest.er1 >conftest.err 10078 rm -f conftest.er1 10079 cat conftest.err >&5 10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10081 (exit $ac_status); } && { 10082 test -z "$ac_c_werror_flag" || 10083 test ! -s conftest.err 10084 } && test -s conftest$ac_exeext && 10085 $as_test_x conftest$ac_exeext; then 10086 ac_cv_lib_dl_dlopen=yes 10087else 10088 echo "$as_me: failed program was:" >&5 10089sed 's/^/| /' conftest.$ac_ext >&5 10090 10091 ac_cv_lib_dl_dlopen=no 10092fi 10093 10094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10095 conftest$ac_exeext conftest.$ac_ext 10096LIBS=$ac_check_lib_save_LIBS 10097fi 10098{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10099echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10100if test $ac_cv_lib_dl_dlopen = yes; then 10101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10102else 10103 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10104echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10105if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10106 echo $ECHO_N "(cached) $ECHO_C" >&6 10107else 10108 ac_check_lib_save_LIBS=$LIBS 10109LIBS="-lsvld $LIBS" 10110cat >conftest.$ac_ext <<_ACEOF 10111/* confdefs.h. */ 10112_ACEOF 10113cat confdefs.h >>conftest.$ac_ext 10114cat >>conftest.$ac_ext <<_ACEOF 10115/* end confdefs.h. */ 10116 10117/* Override any GCC internal prototype to avoid an error. 10118 Use char because int might match the return type of a GCC 10119 builtin and then its argument prototype would still apply. */ 10120#ifdef __cplusplus 10121extern "C" 10122#endif 10123char dlopen (); 10124int 10125main () 10126{ 10127return dlopen (); 10128 ; 10129 return 0; 10130} 10131_ACEOF 10132rm -f conftest.$ac_objext conftest$ac_exeext 10133if { (ac_try="$ac_link" 10134case "(($ac_try" in 10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10136 *) ac_try_echo=$ac_try;; 10137esac 10138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10139 (eval "$ac_link") 2>conftest.er1 10140 ac_status=$? 10141 grep -v '^ *+' conftest.er1 >conftest.err 10142 rm -f conftest.er1 10143 cat conftest.err >&5 10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10145 (exit $ac_status); } && { 10146 test -z "$ac_c_werror_flag" || 10147 test ! -s conftest.err 10148 } && test -s conftest$ac_exeext && 10149 $as_test_x conftest$ac_exeext; then 10150 ac_cv_lib_svld_dlopen=yes 10151else 10152 echo "$as_me: failed program was:" >&5 10153sed 's/^/| /' conftest.$ac_ext >&5 10154 10155 ac_cv_lib_svld_dlopen=no 10156fi 10157 10158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10159 conftest$ac_exeext conftest.$ac_ext 10160LIBS=$ac_check_lib_save_LIBS 10161fi 10162{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10163echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10164if test $ac_cv_lib_svld_dlopen = yes; then 10165 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10166else 10167 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10168echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10169if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10170 echo $ECHO_N "(cached) $ECHO_C" >&6 10171else 10172 ac_check_lib_save_LIBS=$LIBS 10173LIBS="-ldld $LIBS" 10174cat >conftest.$ac_ext <<_ACEOF 10175/* confdefs.h. */ 10176_ACEOF 10177cat confdefs.h >>conftest.$ac_ext 10178cat >>conftest.$ac_ext <<_ACEOF 10179/* end confdefs.h. */ 10180 10181/* Override any GCC internal prototype to avoid an error. 10182 Use char because int might match the return type of a GCC 10183 builtin and then its argument prototype would still apply. */ 10184#ifdef __cplusplus 10185extern "C" 10186#endif 10187char dld_link (); 10188int 10189main () 10190{ 10191return dld_link (); 10192 ; 10193 return 0; 10194} 10195_ACEOF 10196rm -f conftest.$ac_objext conftest$ac_exeext 10197if { (ac_try="$ac_link" 10198case "(($ac_try" in 10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10200 *) ac_try_echo=$ac_try;; 10201esac 10202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10203 (eval "$ac_link") 2>conftest.er1 10204 ac_status=$? 10205 grep -v '^ *+' conftest.er1 >conftest.err 10206 rm -f conftest.er1 10207 cat conftest.err >&5 10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10209 (exit $ac_status); } && { 10210 test -z "$ac_c_werror_flag" || 10211 test ! -s conftest.err 10212 } && test -s conftest$ac_exeext && 10213 $as_test_x conftest$ac_exeext; then 10214 ac_cv_lib_dld_dld_link=yes 10215else 10216 echo "$as_me: failed program was:" >&5 10217sed 's/^/| /' conftest.$ac_ext >&5 10218 10219 ac_cv_lib_dld_dld_link=no 10220fi 10221 10222rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10223 conftest$ac_exeext conftest.$ac_ext 10224LIBS=$ac_check_lib_save_LIBS 10225fi 10226{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10227echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10228if test $ac_cv_lib_dld_dld_link = yes; then 10229 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10230fi 10231 10232 10233fi 10234 10235 10236fi 10237 10238 10239fi 10240 10241 10242fi 10243 10244 10245fi 10246 10247 ;; 10248 esac 10249 10250 if test "x$lt_cv_dlopen" != xno; then 10251 enable_dlopen=yes 10252 else 10253 enable_dlopen=no 10254 fi 10255 10256 case $lt_cv_dlopen in 10257 dlopen) 10258 save_CPPFLAGS="$CPPFLAGS" 10259 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10260 10261 save_LDFLAGS="$LDFLAGS" 10262 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10263 10264 save_LIBS="$LIBS" 10265 LIBS="$lt_cv_dlopen_libs $LIBS" 10266 10267 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10268echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10269if test "${lt_cv_dlopen_self+set}" = set; then 10270 echo $ECHO_N "(cached) $ECHO_C" >&6 10271else 10272 if test "$cross_compiling" = yes; then : 10273 lt_cv_dlopen_self=cross 10274else 10275 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10276 lt_status=$lt_dlunknown 10277 cat > conftest.$ac_ext <<EOF 10278#line 10278 "configure" 10279#include "confdefs.h" 10280 10281#if HAVE_DLFCN_H 10282#include <dlfcn.h> 10283#endif 10284 10285#include <stdio.h> 10286 10287#ifdef RTLD_GLOBAL 10288# define LT_DLGLOBAL RTLD_GLOBAL 10289#else 10290# ifdef DL_GLOBAL 10291# define LT_DLGLOBAL DL_GLOBAL 10292# else 10293# define LT_DLGLOBAL 0 10294# endif 10295#endif 10296 10297/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10298 find out it does not work in some platform. */ 10299#ifndef LT_DLLAZY_OR_NOW 10300# ifdef RTLD_LAZY 10301# define LT_DLLAZY_OR_NOW RTLD_LAZY 10302# else 10303# ifdef DL_LAZY 10304# define LT_DLLAZY_OR_NOW DL_LAZY 10305# else 10306# ifdef RTLD_NOW 10307# define LT_DLLAZY_OR_NOW RTLD_NOW 10308# else 10309# ifdef DL_NOW 10310# define LT_DLLAZY_OR_NOW DL_NOW 10311# else 10312# define LT_DLLAZY_OR_NOW 0 10313# endif 10314# endif 10315# endif 10316# endif 10317#endif 10318 10319#ifdef __cplusplus 10320extern "C" void exit (int); 10321#endif 10322 10323void fnord() { int i=42;} 10324int main () 10325{ 10326 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10327 int status = $lt_dlunknown; 10328 10329 if (self) 10330 { 10331 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10332 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10333 /* dlclose (self); */ 10334 } 10335 else 10336 puts (dlerror ()); 10337 10338 exit (status); 10339} 10340EOF 10341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10342 (eval $ac_link) 2>&5 10343 ac_status=$? 10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10345 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10346 (./conftest; exit; ) >&5 2>/dev/null 10347 lt_status=$? 10348 case x$lt_status in 10349 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10350 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10351 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10352 esac 10353 else : 10354 # compilation failed 10355 lt_cv_dlopen_self=no 10356 fi 10357fi 10358rm -fr conftest* 10359 10360 10361fi 10362{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10363echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10364 10365 if test "x$lt_cv_dlopen_self" = xyes; then 10366 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10367 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10368echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10369if test "${lt_cv_dlopen_self_static+set}" = set; then 10370 echo $ECHO_N "(cached) $ECHO_C" >&6 10371else 10372 if test "$cross_compiling" = yes; then : 10373 lt_cv_dlopen_self_static=cross 10374else 10375 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10376 lt_status=$lt_dlunknown 10377 cat > conftest.$ac_ext <<EOF 10378#line 10378 "configure" 10379#include "confdefs.h" 10380 10381#if HAVE_DLFCN_H 10382#include <dlfcn.h> 10383#endif 10384 10385#include <stdio.h> 10386 10387#ifdef RTLD_GLOBAL 10388# define LT_DLGLOBAL RTLD_GLOBAL 10389#else 10390# ifdef DL_GLOBAL 10391# define LT_DLGLOBAL DL_GLOBAL 10392# else 10393# define LT_DLGLOBAL 0 10394# endif 10395#endif 10396 10397/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10398 find out it does not work in some platform. */ 10399#ifndef LT_DLLAZY_OR_NOW 10400# ifdef RTLD_LAZY 10401# define LT_DLLAZY_OR_NOW RTLD_LAZY 10402# else 10403# ifdef DL_LAZY 10404# define LT_DLLAZY_OR_NOW DL_LAZY 10405# else 10406# ifdef RTLD_NOW 10407# define LT_DLLAZY_OR_NOW RTLD_NOW 10408# else 10409# ifdef DL_NOW 10410# define LT_DLLAZY_OR_NOW DL_NOW 10411# else 10412# define LT_DLLAZY_OR_NOW 0 10413# endif 10414# endif 10415# endif 10416# endif 10417#endif 10418 10419#ifdef __cplusplus 10420extern "C" void exit (int); 10421#endif 10422 10423void fnord() { int i=42;} 10424int main () 10425{ 10426 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10427 int status = $lt_dlunknown; 10428 10429 if (self) 10430 { 10431 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10432 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10433 /* dlclose (self); */ 10434 } 10435 else 10436 puts (dlerror ()); 10437 10438 exit (status); 10439} 10440EOF 10441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10442 (eval $ac_link) 2>&5 10443 ac_status=$? 10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10445 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10446 (./conftest; exit; ) >&5 2>/dev/null 10447 lt_status=$? 10448 case x$lt_status in 10449 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10450 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10451 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10452 esac 10453 else : 10454 # compilation failed 10455 lt_cv_dlopen_self_static=no 10456 fi 10457fi 10458rm -fr conftest* 10459 10460 10461fi 10462{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10463echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10464 fi 10465 10466 CPPFLAGS="$save_CPPFLAGS" 10467 LDFLAGS="$save_LDFLAGS" 10468 LIBS="$save_LIBS" 10469 ;; 10470 esac 10471 10472 case $lt_cv_dlopen_self in 10473 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10474 *) enable_dlopen_self=unknown ;; 10475 esac 10476 10477 case $lt_cv_dlopen_self_static in 10478 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10479 *) enable_dlopen_self_static=unknown ;; 10480 esac 10481fi 10482 10483 10484# Report which library types will actually be built 10485{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10486echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10487{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10488echo "${ECHO_T}$can_build_shared" >&6; } 10489 10490{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10491echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10492test "$can_build_shared" = "no" && enable_shared=no 10493 10494# On AIX, shared libraries and static libraries use the same namespace, and 10495# are all built from PIC. 10496case $host_os in 10497aix3*) 10498 test "$enable_shared" = yes && enable_static=no 10499 if test -n "$RANLIB"; then 10500 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10501 postinstall_cmds='$RANLIB $lib' 10502 fi 10503 ;; 10504 10505aix[4-9]*) 10506 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10507 test "$enable_shared" = yes && enable_static=no 10508 fi 10509 ;; 10510esac 10511{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10512echo "${ECHO_T}$enable_shared" >&6; } 10513 10514{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10515echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10516# Make sure either enable_shared or enable_static is yes. 10517test "$enable_shared" = yes || enable_static=yes 10518{ echo "$as_me:$LINENO: result: $enable_static" >&5 10519echo "${ECHO_T}$enable_static" >&6; } 10520 10521# The else clause should only fire when bootstrapping the 10522# libtool distribution, otherwise you forgot to ship ltmain.sh 10523# with your package, and you will get complaints that there are 10524# no rules to generate ltmain.sh. 10525if test -f "$ltmain"; then 10526 # See if we are running on zsh, and set the options which allow our commands through 10527 # without removal of \ escapes. 10528 if test -n "${ZSH_VERSION+set}" ; then 10529 setopt NO_GLOB_SUBST 10530 fi 10531 # Now quote all the things that may contain metacharacters while being 10532 # careful not to overquote the AC_SUBSTed values. We take copies of the 10533 # variables and quote the copies for generation of the libtool script. 10534 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10535 SED SHELL STRIP \ 10536 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10537 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10538 deplibs_check_method reload_flag reload_cmds need_locks \ 10539 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10540 lt_cv_sys_global_symbol_to_c_name_address \ 10541 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10542 old_postinstall_cmds old_postuninstall_cmds \ 10543 compiler \ 10544 CC \ 10545 LD \ 10546 lt_prog_compiler_wl \ 10547 lt_prog_compiler_pic \ 10548 lt_prog_compiler_static \ 10549 lt_prog_compiler_no_builtin_flag \ 10550 export_dynamic_flag_spec \ 10551 thread_safe_flag_spec \ 10552 whole_archive_flag_spec \ 10553 enable_shared_with_static_runtimes \ 10554 old_archive_cmds \ 10555 old_archive_from_new_cmds \ 10556 predep_objects \ 10557 postdep_objects \ 10558 predeps \ 10559 postdeps \ 10560 compiler_lib_search_path \ 10561 compiler_lib_search_dirs \ 10562 archive_cmds \ 10563 archive_expsym_cmds \ 10564 postinstall_cmds \ 10565 postuninstall_cmds \ 10566 old_archive_from_expsyms_cmds \ 10567 allow_undefined_flag \ 10568 no_undefined_flag \ 10569 export_symbols_cmds \ 10570 hardcode_libdir_flag_spec \ 10571 hardcode_libdir_flag_spec_ld \ 10572 hardcode_libdir_separator \ 10573 hardcode_automatic \ 10574 module_cmds \ 10575 module_expsym_cmds \ 10576 lt_cv_prog_compiler_c_o \ 10577 fix_srcfile_path \ 10578 exclude_expsyms \ 10579 include_expsyms; do 10580 10581 case $var in 10582 old_archive_cmds | \ 10583 old_archive_from_new_cmds | \ 10584 archive_cmds | \ 10585 archive_expsym_cmds | \ 10586 module_cmds | \ 10587 module_expsym_cmds | \ 10588 old_archive_from_expsyms_cmds | \ 10589 export_symbols_cmds | \ 10590 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10591 postinstall_cmds | postuninstall_cmds | \ 10592 old_postinstall_cmds | old_postuninstall_cmds | \ 10593 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10594 # Double-quote double-evaled strings. 10595 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10596 ;; 10597 *) 10598 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10599 ;; 10600 esac 10601 done 10602 10603 case $lt_echo in 10604 *'\$0 --fallback-echo"') 10605 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10606 ;; 10607 esac 10608 10609cfgfile="${ofile}T" 10610 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10611 $rm -f "$cfgfile" 10612 { echo "$as_me:$LINENO: creating $ofile" >&5 10613echo "$as_me: creating $ofile" >&6;} 10614 10615 cat <<__EOF__ >> "$cfgfile" 10616#! $SHELL 10617 10618# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10619# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10620# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10621# 10622# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10623# Free Software Foundation, Inc. 10624# 10625# This file is part of GNU Libtool: 10626# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10627# 10628# This program is free software; you can redistribute it and/or modify 10629# it under the terms of the GNU General Public License as published by 10630# the Free Software Foundation; either version 2 of the License, or 10631# (at your option) any later version. 10632# 10633# This program is distributed in the hope that it will be useful, but 10634# WITHOUT ANY WARRANTY; without even the implied warranty of 10635# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10636# General Public License for more details. 10637# 10638# You should have received a copy of the GNU General Public License 10639# along with this program; if not, write to the Free Software 10640# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10641# 10642# As a special exception to the GNU General Public License, if you 10643# distribute this file as part of a program that contains a 10644# configuration script generated by Autoconf, you may include it under 10645# the same distribution terms that you use for the rest of that program. 10646 10647# A sed program that does not truncate output. 10648SED=$lt_SED 10649 10650# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10651Xsed="$SED -e 1s/^X//" 10652 10653# The HP-UX ksh and POSIX shell print the target directory to stdout 10654# if CDPATH is set. 10655(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10656 10657# The names of the tagged configurations supported by this script. 10658available_tags= 10659 10660# ### BEGIN LIBTOOL CONFIG 10661 10662# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10663 10664# Shell to use when invoking shell scripts. 10665SHELL=$lt_SHELL 10666 10667# Whether or not to build shared libraries. 10668build_libtool_libs=$enable_shared 10669 10670# Whether or not to build static libraries. 10671build_old_libs=$enable_static 10672 10673# Whether or not to add -lc for building shared libraries. 10674build_libtool_need_lc=$archive_cmds_need_lc 10675 10676# Whether or not to disallow shared libs when runtime libs are static 10677allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10678 10679# Whether or not to optimize for fast installation. 10680fast_install=$enable_fast_install 10681 10682# The host system. 10683host_alias=$host_alias 10684host=$host 10685host_os=$host_os 10686 10687# The build system. 10688build_alias=$build_alias 10689build=$build 10690build_os=$build_os 10691 10692# An echo program that does not interpret backslashes. 10693echo=$lt_echo 10694 10695# The archiver. 10696AR=$lt_AR 10697AR_FLAGS=$lt_AR_FLAGS 10698 10699# A C compiler. 10700LTCC=$lt_LTCC 10701 10702# LTCC compiler flags. 10703LTCFLAGS=$lt_LTCFLAGS 10704 10705# A language-specific compiler. 10706CC=$lt_compiler 10707 10708# Is the compiler the GNU C compiler? 10709with_gcc=$GCC 10710 10711# An ERE matcher. 10712EGREP=$lt_EGREP 10713 10714# The linker used to build libraries. 10715LD=$lt_LD 10716 10717# Whether we need hard or soft links. 10718LN_S=$lt_LN_S 10719 10720# A BSD-compatible nm program. 10721NM=$lt_NM 10722 10723# A symbol stripping program 10724STRIP=$lt_STRIP 10725 10726# Used to examine libraries when file_magic_cmd begins "file" 10727MAGIC_CMD=$MAGIC_CMD 10728 10729# Used on cygwin: DLL creation program. 10730DLLTOOL="$DLLTOOL" 10731 10732# Used on cygwin: object dumper. 10733OBJDUMP="$OBJDUMP" 10734 10735# Used on cygwin: assembler. 10736AS="$AS" 10737 10738# The name of the directory that contains temporary libtool files. 10739objdir=$objdir 10740 10741# How to create reloadable object files. 10742reload_flag=$lt_reload_flag 10743reload_cmds=$lt_reload_cmds 10744 10745# How to pass a linker flag through the compiler. 10746wl=$lt_lt_prog_compiler_wl 10747 10748# Object file suffix (normally "o"). 10749objext="$ac_objext" 10750 10751# Old archive suffix (normally "a"). 10752libext="$libext" 10753 10754# Shared library suffix (normally ".so"). 10755shrext_cmds='$shrext_cmds' 10756 10757# Executable file suffix (normally ""). 10758exeext="$exeext" 10759 10760# Additional compiler flags for building library objects. 10761pic_flag=$lt_lt_prog_compiler_pic 10762pic_mode=$pic_mode 10763 10764# What is the maximum length of a command? 10765max_cmd_len=$lt_cv_sys_max_cmd_len 10766 10767# Does compiler simultaneously support -c and -o options? 10768compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10769 10770# Must we lock files when doing compilation? 10771need_locks=$lt_need_locks 10772 10773# Do we need the lib prefix for modules? 10774need_lib_prefix=$need_lib_prefix 10775 10776# Do we need a version for libraries? 10777need_version=$need_version 10778 10779# Whether dlopen is supported. 10780dlopen_support=$enable_dlopen 10781 10782# Whether dlopen of programs is supported. 10783dlopen_self=$enable_dlopen_self 10784 10785# Whether dlopen of statically linked programs is supported. 10786dlopen_self_static=$enable_dlopen_self_static 10787 10788# Compiler flag to prevent dynamic linking. 10789link_static_flag=$lt_lt_prog_compiler_static 10790 10791# Compiler flag to turn off builtin functions. 10792no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10793 10794# Compiler flag to allow reflexive dlopens. 10795export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10796 10797# Compiler flag to generate shared objects directly from archives. 10798whole_archive_flag_spec=$lt_whole_archive_flag_spec 10799 10800# Compiler flag to generate thread-safe objects. 10801thread_safe_flag_spec=$lt_thread_safe_flag_spec 10802 10803# Library versioning type. 10804version_type=$version_type 10805 10806# Format of library name prefix. 10807libname_spec=$lt_libname_spec 10808 10809# List of archive names. First name is the real one, the rest are links. 10810# The last name is the one that the linker finds with -lNAME. 10811library_names_spec=$lt_library_names_spec 10812 10813# The coded name of the library, if different from the real name. 10814soname_spec=$lt_soname_spec 10815 10816# Commands used to build and install an old-style archive. 10817RANLIB=$lt_RANLIB 10818old_archive_cmds=$lt_old_archive_cmds 10819old_postinstall_cmds=$lt_old_postinstall_cmds 10820old_postuninstall_cmds=$lt_old_postuninstall_cmds 10821 10822# Create an old-style archive from a shared archive. 10823old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10824 10825# Create a temporary old-style archive to link instead of a shared archive. 10826old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10827 10828# Commands used to build and install a shared archive. 10829archive_cmds=$lt_archive_cmds 10830archive_expsym_cmds=$lt_archive_expsym_cmds 10831postinstall_cmds=$lt_postinstall_cmds 10832postuninstall_cmds=$lt_postuninstall_cmds 10833 10834# Commands used to build a loadable module (assumed same as above if empty) 10835module_cmds=$lt_module_cmds 10836module_expsym_cmds=$lt_module_expsym_cmds 10837 10838# Commands to strip libraries. 10839old_striplib=$lt_old_striplib 10840striplib=$lt_striplib 10841 10842# Dependencies to place before the objects being linked to create a 10843# shared library. 10844predep_objects=$lt_predep_objects 10845 10846# Dependencies to place after the objects being linked to create a 10847# shared library. 10848postdep_objects=$lt_postdep_objects 10849 10850# Dependencies to place before the objects being linked to create a 10851# shared library. 10852predeps=$lt_predeps 10853 10854# Dependencies to place after the objects being linked to create a 10855# shared library. 10856postdeps=$lt_postdeps 10857 10858# The directories searched by this compiler when creating a shared 10859# library 10860compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 10861 10862# The library search path used internally by the compiler when linking 10863# a shared library. 10864compiler_lib_search_path=$lt_compiler_lib_search_path 10865 10866# Method to check whether dependent libraries are shared objects. 10867deplibs_check_method=$lt_deplibs_check_method 10868 10869# Command to use when deplibs_check_method == file_magic. 10870file_magic_cmd=$lt_file_magic_cmd 10871 10872# Flag that allows shared libraries with undefined symbols to be built. 10873allow_undefined_flag=$lt_allow_undefined_flag 10874 10875# Flag that forces no undefined symbols. 10876no_undefined_flag=$lt_no_undefined_flag 10877 10878# Commands used to finish a libtool library installation in a directory. 10879finish_cmds=$lt_finish_cmds 10880 10881# Same as above, but a single script fragment to be evaled but not shown. 10882finish_eval=$lt_finish_eval 10883 10884# Take the output of nm and produce a listing of raw symbols and C names. 10885global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10886 10887# Transform the output of nm in a proper C declaration 10888global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10889 10890# Transform the output of nm in a C name address pair 10891global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10892 10893# This is the shared library runtime path variable. 10894runpath_var=$runpath_var 10895 10896# This is the shared library path variable. 10897shlibpath_var=$shlibpath_var 10898 10899# Is shlibpath searched before the hard-coded library search path? 10900shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10901 10902# How to hardcode a shared library path into an executable. 10903hardcode_action=$hardcode_action 10904 10905# Whether we should hardcode library paths into libraries. 10906hardcode_into_libs=$hardcode_into_libs 10907 10908# Flag to hardcode \$libdir into a binary during linking. 10909# This must work even if \$libdir does not exist. 10910hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10911 10912# If ld is used when linking, flag to hardcode \$libdir into 10913# a binary during linking. This must work even if \$libdir does 10914# not exist. 10915hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10916 10917# Whether we need a single -rpath flag with a separated argument. 10918hardcode_libdir_separator=$lt_hardcode_libdir_separator 10919 10920# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10921# resulting binary. 10922hardcode_direct=$hardcode_direct 10923 10924# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10925# resulting binary. 10926hardcode_minus_L=$hardcode_minus_L 10927 10928# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10929# the resulting binary. 10930hardcode_shlibpath_var=$hardcode_shlibpath_var 10931 10932# Set to yes if building a shared library automatically hardcodes DIR into the library 10933# and all subsequent libraries and executables linked against it. 10934hardcode_automatic=$hardcode_automatic 10935 10936# Variables whose values should be saved in libtool wrapper scripts and 10937# restored at relink time. 10938variables_saved_for_relink="$variables_saved_for_relink" 10939 10940# Whether libtool must link a program against all its dependency libraries. 10941link_all_deplibs=$link_all_deplibs 10942 10943# Compile-time system search path for libraries 10944sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10945 10946# Run-time system search path for libraries 10947sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10948 10949# Fix the shell variable \$srcfile for the compiler. 10950fix_srcfile_path=$lt_fix_srcfile_path 10951 10952# Set to yes if exported symbols are required. 10953always_export_symbols=$always_export_symbols 10954 10955# The commands to list exported symbols. 10956export_symbols_cmds=$lt_export_symbols_cmds 10957 10958# The commands to extract the exported symbol list from a shared archive. 10959extract_expsyms_cmds=$lt_extract_expsyms_cmds 10960 10961# Symbols that should not be listed in the preloaded symbols. 10962exclude_expsyms=$lt_exclude_expsyms 10963 10964# Symbols that must always be exported. 10965include_expsyms=$lt_include_expsyms 10966 10967# ### END LIBTOOL CONFIG 10968 10969__EOF__ 10970 10971 10972 case $host_os in 10973 aix3*) 10974 cat <<\EOF >> "$cfgfile" 10975 10976# AIX sometimes has problems with the GCC collect2 program. For some 10977# reason, if we set the COLLECT_NAMES environment variable, the problems 10978# vanish in a puff of smoke. 10979if test "X${COLLECT_NAMES+set}" != Xset; then 10980 COLLECT_NAMES= 10981 export COLLECT_NAMES 10982fi 10983EOF 10984 ;; 10985 esac 10986 10987 # We use sed instead of cat because bash on DJGPP gets confused if 10988 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10989 # text mode, it properly converts lines to CR/LF. This bash problem 10990 # is reportedly fixed, but why not run on old versions too? 10991 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10992 10993 mv -f "$cfgfile" "$ofile" || \ 10994 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10995 chmod +x "$ofile" 10996 10997else 10998 # If there is no Makefile yet, we rely on a make rule to execute 10999 # `config.status --recheck' to rerun these tests and create the 11000 # libtool script then. 11001 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11002 if test -f "$ltmain_in"; then 11003 test -f Makefile && make "$ltmain" 11004 fi 11005fi 11006 11007 11008ac_ext=c 11009ac_cpp='$CPP $CPPFLAGS' 11010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11012ac_compiler_gnu=$ac_cv_c_compiler_gnu 11013 11014CC="$lt_save_CC" 11015 11016 11017# Check whether --with-tags was given. 11018if test "${with_tags+set}" = set; then 11019 withval=$with_tags; tagnames="$withval" 11020fi 11021 11022 11023if test -f "$ltmain" && test -n "$tagnames"; then 11024 if test ! -f "${ofile}"; then 11025 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11026echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11027 fi 11028 11029 if test -z "$LTCC"; then 11030 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11031 if test -z "$LTCC"; then 11032 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11033echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11034 else 11035 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11036echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11037 fi 11038 fi 11039 if test -z "$LTCFLAGS"; then 11040 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11041 fi 11042 11043 # Extract list of available tagged configurations in $ofile. 11044 # Note that this assumes the entire list is on one line. 11045 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11046 11047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11048 for tagname in $tagnames; do 11049 IFS="$lt_save_ifs" 11050 # Check whether tagname contains only valid characters 11051 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11052 "") ;; 11053 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11054echo "$as_me: error: invalid tag name: $tagname" >&2;} 11055 { (exit 1); exit 1; }; } 11056 ;; 11057 esac 11058 11059 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11060 then 11061 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11062echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11063 { (exit 1); exit 1; }; } 11064 fi 11065 11066 # Update the list of available tags. 11067 if test -n "$tagname"; then 11068 echo appending configuration tag \"$tagname\" to $ofile 11069 11070 case $tagname in 11071 CXX) 11072 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11073 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11074 (test "X$CXX" != "Xg++"))) ; then 11075 ac_ext=cpp 11076ac_cpp='$CXXCPP $CPPFLAGS' 11077ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11078ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11079ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11080 11081 11082 11083 11084archive_cmds_need_lc_CXX=no 11085allow_undefined_flag_CXX= 11086always_export_symbols_CXX=no 11087archive_expsym_cmds_CXX= 11088export_dynamic_flag_spec_CXX= 11089hardcode_direct_CXX=no 11090hardcode_libdir_flag_spec_CXX= 11091hardcode_libdir_flag_spec_ld_CXX= 11092hardcode_libdir_separator_CXX= 11093hardcode_minus_L_CXX=no 11094hardcode_shlibpath_var_CXX=unsupported 11095hardcode_automatic_CXX=no 11096module_cmds_CXX= 11097module_expsym_cmds_CXX= 11098link_all_deplibs_CXX=unknown 11099old_archive_cmds_CXX=$old_archive_cmds 11100no_undefined_flag_CXX= 11101whole_archive_flag_spec_CXX= 11102enable_shared_with_static_runtimes_CXX=no 11103 11104# Dependencies to place before and after the object being linked: 11105predep_objects_CXX= 11106postdep_objects_CXX= 11107predeps_CXX= 11108postdeps_CXX= 11109compiler_lib_search_path_CXX= 11110compiler_lib_search_dirs_CXX= 11111 11112# Source file extension for C++ test sources. 11113ac_ext=cpp 11114 11115# Object file extension for compiled C++ test sources. 11116objext=o 11117objext_CXX=$objext 11118 11119# Code to be used in simple compile tests 11120lt_simple_compile_test_code="int some_variable = 0;" 11121 11122# Code to be used in simple link tests 11123lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11124 11125# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11126 11127# If no C compiler was specified, use CC. 11128LTCC=${LTCC-"$CC"} 11129 11130# If no C compiler flags were specified, use CFLAGS. 11131LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11132 11133# Allow CC to be a program name with arguments. 11134compiler=$CC 11135 11136 11137# save warnings/boilerplate of simple test code 11138ac_outfile=conftest.$ac_objext 11139echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11140eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11141_lt_compiler_boilerplate=`cat conftest.err` 11142$rm conftest* 11143 11144ac_outfile=conftest.$ac_objext 11145echo "$lt_simple_link_test_code" >conftest.$ac_ext 11146eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11147_lt_linker_boilerplate=`cat conftest.err` 11148$rm -r conftest* 11149 11150 11151# Allow CC to be a program name with arguments. 11152lt_save_CC=$CC 11153lt_save_LD=$LD 11154lt_save_GCC=$GCC 11155GCC=$GXX 11156lt_save_with_gnu_ld=$with_gnu_ld 11157lt_save_path_LD=$lt_cv_path_LD 11158if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11159 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11160else 11161 $as_unset lt_cv_prog_gnu_ld 11162fi 11163if test -n "${lt_cv_path_LDCXX+set}"; then 11164 lt_cv_path_LD=$lt_cv_path_LDCXX 11165else 11166 $as_unset lt_cv_path_LD 11167fi 11168test -z "${LDCXX+set}" || LD=$LDCXX 11169CC=${CXX-"c++"} 11170compiler=$CC 11171compiler_CXX=$CC 11172for cc_temp in $compiler""; do 11173 case $cc_temp in 11174 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11175 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11176 \-*) ;; 11177 *) break;; 11178 esac 11179done 11180cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11181 11182 11183# We don't want -fno-exception wen compiling C++ code, so set the 11184# no_builtin_flag separately 11185if test "$GXX" = yes; then 11186 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11187else 11188 lt_prog_compiler_no_builtin_flag_CXX= 11189fi 11190 11191if test "$GXX" = yes; then 11192 # Set up default GNU C++ configuration 11193 11194 11195# Check whether --with-gnu-ld was given. 11196if test "${with_gnu_ld+set}" = set; then 11197 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11198else 11199 with_gnu_ld=no 11200fi 11201 11202ac_prog=ld 11203if test "$GCC" = yes; then 11204 # Check if gcc -print-prog-name=ld gives a path. 11205 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11206echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11207 case $host in 11208 *-*-mingw*) 11209 # gcc leaves a trailing carriage return which upsets mingw 11210 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11211 *) 11212 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11213 esac 11214 case $ac_prog in 11215 # Accept absolute paths. 11216 [\\/]* | ?:[\\/]*) 11217 re_direlt='/[^/][^/]*/\.\./' 11218 # Canonicalize the pathname of ld 11219 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11220 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11221 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11222 done 11223 test -z "$LD" && LD="$ac_prog" 11224 ;; 11225 "") 11226 # If it fails, then pretend we aren't using GCC. 11227 ac_prog=ld 11228 ;; 11229 *) 11230 # If it is relative, then search for the first ld in PATH. 11231 with_gnu_ld=unknown 11232 ;; 11233 esac 11234elif test "$with_gnu_ld" = yes; then 11235 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11236echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11237else 11238 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11239echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11240fi 11241if test "${lt_cv_path_LD+set}" = set; then 11242 echo $ECHO_N "(cached) $ECHO_C" >&6 11243else 11244 if test -z "$LD"; then 11245 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11246 for ac_dir in $PATH; do 11247 IFS="$lt_save_ifs" 11248 test -z "$ac_dir" && ac_dir=. 11249 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11250 lt_cv_path_LD="$ac_dir/$ac_prog" 11251 # Check to see if the program is GNU ld. I'd rather use --version, 11252 # but apparently some variants of GNU ld only accept -v. 11253 # Break only if it was the GNU/non-GNU ld that we prefer. 11254 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11255 *GNU* | *'with BFD'*) 11256 test "$with_gnu_ld" != no && break 11257 ;; 11258 *) 11259 test "$with_gnu_ld" != yes && break 11260 ;; 11261 esac 11262 fi 11263 done 11264 IFS="$lt_save_ifs" 11265else 11266 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11267fi 11268fi 11269 11270LD="$lt_cv_path_LD" 11271if test -n "$LD"; then 11272 { echo "$as_me:$LINENO: result: $LD" >&5 11273echo "${ECHO_T}$LD" >&6; } 11274else 11275 { echo "$as_me:$LINENO: result: no" >&5 11276echo "${ECHO_T}no" >&6; } 11277fi 11278test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11279echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11280 { (exit 1); exit 1; }; } 11281{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11282echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11283if test "${lt_cv_prog_gnu_ld+set}" = set; then 11284 echo $ECHO_N "(cached) $ECHO_C" >&6 11285else 11286 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11287case `$LD -v 2>&1 </dev/null` in 11288*GNU* | *'with BFD'*) 11289 lt_cv_prog_gnu_ld=yes 11290 ;; 11291*) 11292 lt_cv_prog_gnu_ld=no 11293 ;; 11294esac 11295fi 11296{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11297echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11298with_gnu_ld=$lt_cv_prog_gnu_ld 11299 11300 11301 11302 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11303 # archiving commands below assume that GNU ld is being used. 11304 if test "$with_gnu_ld" = yes; then 11305 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11306 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' 11307 11308 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11309 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11310 11311 # If archive_cmds runs LD, not CC, wlarc should be empty 11312 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11313 # investigate it a little bit more. (MM) 11314 wlarc='${wl}' 11315 11316 # ancient GNU ld didn't support --whole-archive et. al. 11317 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11318 grep 'no-whole-archive' > /dev/null; then 11319 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11320 else 11321 whole_archive_flag_spec_CXX= 11322 fi 11323 else 11324 with_gnu_ld=no 11325 wlarc= 11326 11327 # A generic and very simple default shared library creation 11328 # command for GNU C++ for the case where it uses the native 11329 # linker, instead of GNU ld. If possible, this setting should 11330 # overridden to take advantage of the native linker features on 11331 # the platform it is being used on. 11332 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11333 fi 11334 11335 # Commands to make compiler produce verbose output that lists 11336 # what "hidden" libraries, object files and flags are used when 11337 # linking a shared library. 11338 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11339 11340else 11341 GXX=no 11342 with_gnu_ld=no 11343 wlarc= 11344fi 11345 11346# PORTME: fill in a description of your system's C++ link characteristics 11347{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11348echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11349ld_shlibs_CXX=yes 11350case $host_os in 11351 aix3*) 11352 # FIXME: insert proper C++ library support 11353 ld_shlibs_CXX=no 11354 ;; 11355 aix[4-9]*) 11356 if test "$host_cpu" = ia64; then 11357 # On IA64, the linker does run time linking by default, so we don't 11358 # have to do anything special. 11359 aix_use_runtimelinking=no 11360 exp_sym_flag='-Bexport' 11361 no_entry_flag="" 11362 else 11363 aix_use_runtimelinking=no 11364 11365 # Test if we are trying to use run time linking or normal 11366 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11367 # need to do runtime linking. 11368 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11369 for ld_flag in $LDFLAGS; do 11370 case $ld_flag in 11371 *-brtl*) 11372 aix_use_runtimelinking=yes 11373 break 11374 ;; 11375 esac 11376 done 11377 ;; 11378 esac 11379 11380 exp_sym_flag='-bexport' 11381 no_entry_flag='-bnoentry' 11382 fi 11383 11384 # When large executables or shared objects are built, AIX ld can 11385 # have problems creating the table of contents. If linking a library 11386 # or program results in "error TOC overflow" add -mminimal-toc to 11387 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11388 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11389 11390 archive_cmds_CXX='' 11391 hardcode_direct_CXX=yes 11392 hardcode_libdir_separator_CXX=':' 11393 link_all_deplibs_CXX=yes 11394 11395 if test "$GXX" = yes; then 11396 case $host_os in aix4.[012]|aix4.[012].*) 11397 # We only want to do this on AIX 4.2 and lower, the check 11398 # below for broken collect2 doesn't work under 4.3+ 11399 collect2name=`${CC} -print-prog-name=collect2` 11400 if test -f "$collect2name" && \ 11401 strings "$collect2name" | grep resolve_lib_name >/dev/null 11402 then 11403 # We have reworked collect2 11404 : 11405 else 11406 # We have old collect2 11407 hardcode_direct_CXX=unsupported 11408 # It fails to find uninstalled libraries when the uninstalled 11409 # path is not listed in the libpath. Setting hardcode_minus_L 11410 # to unsupported forces relinking 11411 hardcode_minus_L_CXX=yes 11412 hardcode_libdir_flag_spec_CXX='-L$libdir' 11413 hardcode_libdir_separator_CXX= 11414 fi 11415 ;; 11416 esac 11417 shared_flag='-shared' 11418 if test "$aix_use_runtimelinking" = yes; then 11419 shared_flag="$shared_flag "'${wl}-G' 11420 fi 11421 else 11422 # not using gcc 11423 if test "$host_cpu" = ia64; then 11424 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11425 # chokes on -Wl,-G. The following line is correct: 11426 shared_flag='-G' 11427 else 11428 if test "$aix_use_runtimelinking" = yes; then 11429 shared_flag='${wl}-G' 11430 else 11431 shared_flag='${wl}-bM:SRE' 11432 fi 11433 fi 11434 fi 11435 11436 # It seems that -bexpall does not export symbols beginning with 11437 # underscore (_), so it is better to generate a list of symbols to export. 11438 always_export_symbols_CXX=yes 11439 if test "$aix_use_runtimelinking" = yes; then 11440 # Warning - without using the other runtime loading flags (-brtl), 11441 # -berok will link without error, but may produce a broken library. 11442 allow_undefined_flag_CXX='-berok' 11443 # Determine the default libpath from the value encoded in an empty executable. 11444 cat >conftest.$ac_ext <<_ACEOF 11445/* confdefs.h. */ 11446_ACEOF 11447cat confdefs.h >>conftest.$ac_ext 11448cat >>conftest.$ac_ext <<_ACEOF 11449/* end confdefs.h. */ 11450 11451int 11452main () 11453{ 11454 11455 ; 11456 return 0; 11457} 11458_ACEOF 11459rm -f conftest.$ac_objext conftest$ac_exeext 11460if { (ac_try="$ac_link" 11461case "(($ac_try" in 11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11463 *) ac_try_echo=$ac_try;; 11464esac 11465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11466 (eval "$ac_link") 2>conftest.er1 11467 ac_status=$? 11468 grep -v '^ *+' conftest.er1 >conftest.err 11469 rm -f conftest.er1 11470 cat conftest.err >&5 11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11472 (exit $ac_status); } && { 11473 test -z "$ac_cxx_werror_flag" || 11474 test ! -s conftest.err 11475 } && test -s conftest$ac_exeext && 11476 $as_test_x conftest$ac_exeext; then 11477 11478lt_aix_libpath_sed=' 11479 /Import File Strings/,/^$/ { 11480 /^0/ { 11481 s/^0 *\(.*\)$/\1/ 11482 p 11483 } 11484 }' 11485aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11486# Check for a 64-bit object if we didn't find anything. 11487if test -z "$aix_libpath"; then 11488 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11489fi 11490else 11491 echo "$as_me: failed program was:" >&5 11492sed 's/^/| /' conftest.$ac_ext >&5 11493 11494 11495fi 11496 11497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11498 conftest$ac_exeext conftest.$ac_ext 11499if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11500 11501 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11502 11503 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" 11504 else 11505 if test "$host_cpu" = ia64; then 11506 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11507 allow_undefined_flag_CXX="-z nodefs" 11508 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" 11509 else 11510 # Determine the default libpath from the value encoded in an empty executable. 11511 cat >conftest.$ac_ext <<_ACEOF 11512/* confdefs.h. */ 11513_ACEOF 11514cat confdefs.h >>conftest.$ac_ext 11515cat >>conftest.$ac_ext <<_ACEOF 11516/* end confdefs.h. */ 11517 11518int 11519main () 11520{ 11521 11522 ; 11523 return 0; 11524} 11525_ACEOF 11526rm -f conftest.$ac_objext conftest$ac_exeext 11527if { (ac_try="$ac_link" 11528case "(($ac_try" in 11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11530 *) ac_try_echo=$ac_try;; 11531esac 11532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11533 (eval "$ac_link") 2>conftest.er1 11534 ac_status=$? 11535 grep -v '^ *+' conftest.er1 >conftest.err 11536 rm -f conftest.er1 11537 cat conftest.err >&5 11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11539 (exit $ac_status); } && { 11540 test -z "$ac_cxx_werror_flag" || 11541 test ! -s conftest.err 11542 } && test -s conftest$ac_exeext && 11543 $as_test_x conftest$ac_exeext; then 11544 11545lt_aix_libpath_sed=' 11546 /Import File Strings/,/^$/ { 11547 /^0/ { 11548 s/^0 *\(.*\)$/\1/ 11549 p 11550 } 11551 }' 11552aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11553# Check for a 64-bit object if we didn't find anything. 11554if test -z "$aix_libpath"; then 11555 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11556fi 11557else 11558 echo "$as_me: failed program was:" >&5 11559sed 's/^/| /' conftest.$ac_ext >&5 11560 11561 11562fi 11563 11564rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11565 conftest$ac_exeext conftest.$ac_ext 11566if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11567 11568 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11569 # Warning - without using the other run time loading flags, 11570 # -berok will link without error, but may produce a broken library. 11571 no_undefined_flag_CXX=' ${wl}-bernotok' 11572 allow_undefined_flag_CXX=' ${wl}-berok' 11573 # Exported symbols can be pulled into shared objects from archives 11574 whole_archive_flag_spec_CXX='$convenience' 11575 archive_cmds_need_lc_CXX=yes 11576 # This is similar to how AIX traditionally builds its shared libraries. 11577 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' 11578 fi 11579 fi 11580 ;; 11581 11582 beos*) 11583 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11584 allow_undefined_flag_CXX=unsupported 11585 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11586 # support --undefined. This deserves some investigation. FIXME 11587 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11588 else 11589 ld_shlibs_CXX=no 11590 fi 11591 ;; 11592 11593 chorus*) 11594 case $cc_basename in 11595 *) 11596 # FIXME: insert proper C++ library support 11597 ld_shlibs_CXX=no 11598 ;; 11599 esac 11600 ;; 11601 11602 cygwin* | mingw* | pw32*) 11603 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11604 # as there is no search path for DLLs. 11605 hardcode_libdir_flag_spec_CXX='-L$libdir' 11606 allow_undefined_flag_CXX=unsupported 11607 always_export_symbols_CXX=no 11608 enable_shared_with_static_runtimes_CXX=yes 11609 11610 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11611 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' 11612 # If the export-symbols file already is a .def file (1st line 11613 # is EXPORTS), use it as is; otherwise, prepend... 11614 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11615 cp $export_symbols $output_objdir/$soname.def; 11616 else 11617 echo EXPORTS > $output_objdir/$soname.def; 11618 cat $export_symbols >> $output_objdir/$soname.def; 11619 fi~ 11620 $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' 11621 else 11622 ld_shlibs_CXX=no 11623 fi 11624 ;; 11625 darwin* | rhapsody*) 11626 archive_cmds_need_lc_CXX=no 11627 hardcode_direct_CXX=no 11628 hardcode_automatic_CXX=yes 11629 hardcode_shlibpath_var_CXX=unsupported 11630 whole_archive_flag_spec_CXX='' 11631 link_all_deplibs_CXX=yes 11632 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11633 if test "$GXX" = yes ; then 11634 output_verbose_link_cmd='echo' 11635 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}" 11636 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11637 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}" 11638 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}" 11639 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11640 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}" 11641 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}" 11642 fi 11643 else 11644 case $cc_basename in 11645 xlc*) 11646 output_verbose_link_cmd='echo' 11647 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' 11648 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11649 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11650 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}' 11651 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}' 11652 ;; 11653 *) 11654 ld_shlibs_CXX=no 11655 ;; 11656 esac 11657 fi 11658 ;; 11659 11660 dgux*) 11661 case $cc_basename in 11662 ec++*) 11663 # FIXME: insert proper C++ library support 11664 ld_shlibs_CXX=no 11665 ;; 11666 ghcx*) 11667 # Green Hills C++ Compiler 11668 # FIXME: insert proper C++ library support 11669 ld_shlibs_CXX=no 11670 ;; 11671 *) 11672 # FIXME: insert proper C++ library support 11673 ld_shlibs_CXX=no 11674 ;; 11675 esac 11676 ;; 11677 freebsd[12]*) 11678 # C++ shared libraries reported to be fairly broken before switch to ELF 11679 ld_shlibs_CXX=no 11680 ;; 11681 freebsd-elf*) 11682 archive_cmds_need_lc_CXX=no 11683 ;; 11684 freebsd* | dragonfly*) 11685 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11686 # conventions 11687 ld_shlibs_CXX=yes 11688 ;; 11689 gnu*) 11690 ;; 11691 hpux9*) 11692 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11693 hardcode_libdir_separator_CXX=: 11694 export_dynamic_flag_spec_CXX='${wl}-E' 11695 hardcode_direct_CXX=yes 11696 hardcode_minus_L_CXX=yes # Not in the search PATH, 11697 # but as the default 11698 # location of the library. 11699 11700 case $cc_basename in 11701 CC*) 11702 # FIXME: insert proper C++ library support 11703 ld_shlibs_CXX=no 11704 ;; 11705 aCC*) 11706 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' 11707 # Commands to make compiler produce verbose output that lists 11708 # what "hidden" libraries, object files and flags are used when 11709 # linking a shared library. 11710 # 11711 # There doesn't appear to be a way to prevent this compiler from 11712 # explicitly linking system object files so we need to strip them 11713 # from the output so that they don't get included in the library 11714 # dependencies. 11715 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' 11716 ;; 11717 *) 11718 if test "$GXX" = yes; then 11719 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' 11720 else 11721 # FIXME: insert proper C++ library support 11722 ld_shlibs_CXX=no 11723 fi 11724 ;; 11725 esac 11726 ;; 11727 hpux10*|hpux11*) 11728 if test $with_gnu_ld = no; then 11729 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11730 hardcode_libdir_separator_CXX=: 11731 11732 case $host_cpu in 11733 hppa*64*|ia64*) ;; 11734 *) 11735 export_dynamic_flag_spec_CXX='${wl}-E' 11736 ;; 11737 esac 11738 fi 11739 case $host_cpu in 11740 hppa*64*|ia64*) 11741 hardcode_direct_CXX=no 11742 hardcode_shlibpath_var_CXX=no 11743 ;; 11744 *) 11745 hardcode_direct_CXX=yes 11746 hardcode_minus_L_CXX=yes # Not in the search PATH, 11747 # but as the default 11748 # location of the library. 11749 ;; 11750 esac 11751 11752 case $cc_basename in 11753 CC*) 11754 # FIXME: insert proper C++ library support 11755 ld_shlibs_CXX=no 11756 ;; 11757 aCC*) 11758 case $host_cpu in 11759 hppa*64*) 11760 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11761 ;; 11762 ia64*) 11763 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11764 ;; 11765 *) 11766 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11767 ;; 11768 esac 11769 # Commands to make compiler produce verbose output that lists 11770 # what "hidden" libraries, object files and flags are used when 11771 # linking a shared library. 11772 # 11773 # There doesn't appear to be a way to prevent this compiler from 11774 # explicitly linking system object files so we need to strip them 11775 # from the output so that they don't get included in the library 11776 # dependencies. 11777 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' 11778 ;; 11779 *) 11780 if test "$GXX" = yes; then 11781 if test $with_gnu_ld = no; then 11782 case $host_cpu in 11783 hppa*64*) 11784 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11785 ;; 11786 ia64*) 11787 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11788 ;; 11789 *) 11790 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' 11791 ;; 11792 esac 11793 fi 11794 else 11795 # FIXME: insert proper C++ library support 11796 ld_shlibs_CXX=no 11797 fi 11798 ;; 11799 esac 11800 ;; 11801 interix[3-9]*) 11802 hardcode_direct_CXX=no 11803 hardcode_shlibpath_var_CXX=no 11804 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11805 export_dynamic_flag_spec_CXX='${wl}-E' 11806 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11807 # Instead, shared libraries are loaded at an image base (0x10000000 by 11808 # default) and relocated if they conflict, which is a slow very memory 11809 # consuming and fragmenting process. To avoid this, we pick a random, 11810 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11811 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11812 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' 11813 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' 11814 ;; 11815 irix5* | irix6*) 11816 case $cc_basename in 11817 CC*) 11818 # SGI C++ 11819 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' 11820 11821 # Archives containing C++ object files must be created using 11822 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11823 # necessary to make sure instantiated templates are included 11824 # in the archive. 11825 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11826 ;; 11827 *) 11828 if test "$GXX" = yes; then 11829 if test "$with_gnu_ld" = no; then 11830 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' 11831 else 11832 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' 11833 fi 11834 fi 11835 link_all_deplibs_CXX=yes 11836 ;; 11837 esac 11838 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11839 hardcode_libdir_separator_CXX=: 11840 ;; 11841 linux* | k*bsd*-gnu) 11842 case $cc_basename in 11843 KCC*) 11844 # Kuck and Associates, Inc. (KAI) C++ Compiler 11845 11846 # KCC will only create a shared library if the output file 11847 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11848 # to its proper name (with version) after linking. 11849 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' 11850 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' 11851 # Commands to make compiler produce verbose output that lists 11852 # what "hidden" libraries, object files and flags are used when 11853 # linking a shared library. 11854 # 11855 # There doesn't appear to be a way to prevent this compiler from 11856 # explicitly linking system object files so we need to strip them 11857 # from the output so that they don't get included in the library 11858 # dependencies. 11859 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' 11860 11861 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11862 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11863 11864 # Archives containing C++ object files must be created using 11865 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11866 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11867 ;; 11868 icpc*) 11869 # Intel C++ 11870 with_gnu_ld=yes 11871 # version 8.0 and above of icpc choke on multiply defined symbols 11872 # if we add $predep_objects and $postdep_objects, however 7.1 and 11873 # earlier do not add the objects themselves. 11874 case `$CC -V 2>&1` in 11875 *"Version 7."*) 11876 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11877 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' 11878 ;; 11879 *) # Version 8.0 or newer 11880 tmp_idyn= 11881 case $host_cpu in 11882 ia64*) tmp_idyn=' -i_dynamic';; 11883 esac 11884 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11885 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' 11886 ;; 11887 esac 11888 archive_cmds_need_lc_CXX=no 11889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11890 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11891 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11892 ;; 11893 pgCC* | pgcpp*) 11894 # Portland Group C++ compiler 11895 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11896 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' 11897 11898 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11899 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11900 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' 11901 ;; 11902 cxx*) 11903 # Compaq C++ 11904 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11905 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' 11906 11907 runpath_var=LD_RUN_PATH 11908 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11909 hardcode_libdir_separator_CXX=: 11910 11911 # Commands to make compiler produce verbose output that lists 11912 # what "hidden" libraries, object files and flags are used when 11913 # linking a shared library. 11914 # 11915 # There doesn't appear to be a way to prevent this compiler from 11916 # explicitly linking system object files so we need to strip them 11917 # from the output so that they don't get included in the library 11918 # dependencies. 11919 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' 11920 ;; 11921 *) 11922 case `$CC -V 2>&1 | sed 5q` in 11923 *Sun\ C*) 11924 # Sun C++ 5.9 11925 no_undefined_flag_CXX=' -zdefs' 11926 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11927 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' 11928 hardcode_libdir_flag_spec_CXX='-R$libdir' 11929 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' 11930 11931 # Not sure whether something based on 11932 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11933 # would be better. 11934 output_verbose_link_cmd='echo' 11935 11936 # Archives containing C++ object files must be created using 11937 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11938 # necessary to make sure instantiated templates are included 11939 # in the archive. 11940 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11941 ;; 11942 esac 11943 ;; 11944 esac 11945 ;; 11946 lynxos*) 11947 # FIXME: insert proper C++ library support 11948 ld_shlibs_CXX=no 11949 ;; 11950 m88k*) 11951 # FIXME: insert proper C++ library support 11952 ld_shlibs_CXX=no 11953 ;; 11954 mvs*) 11955 case $cc_basename in 11956 cxx*) 11957 # FIXME: insert proper C++ library support 11958 ld_shlibs_CXX=no 11959 ;; 11960 *) 11961 # FIXME: insert proper C++ library support 11962 ld_shlibs_CXX=no 11963 ;; 11964 esac 11965 ;; 11966 netbsd* | netbsdelf*-gnu) 11967 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11968 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11969 wlarc= 11970 hardcode_libdir_flag_spec_CXX='-R$libdir' 11971 hardcode_direct_CXX=yes 11972 hardcode_shlibpath_var_CXX=no 11973 fi 11974 # Workaround some broken pre-1.5 toolchains 11975 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11976 ;; 11977 openbsd2*) 11978 # C++ shared libraries are fairly broken 11979 ld_shlibs_CXX=no 11980 ;; 11981 openbsd*) 11982 if test -f /usr/libexec/ld.so; then 11983 hardcode_direct_CXX=yes 11984 hardcode_shlibpath_var_CXX=no 11985 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11986 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11987 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11988 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11989 export_dynamic_flag_spec_CXX='${wl}-E' 11990 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11991 fi 11992 output_verbose_link_cmd='echo' 11993 else 11994 ld_shlibs_CXX=no 11995 fi 11996 ;; 11997 osf3*) 11998 case $cc_basename in 11999 KCC*) 12000 # Kuck and Associates, Inc. (KAI) C++ Compiler 12001 12002 # KCC will only create a shared library if the output file 12003 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12004 # to its proper name (with version) after linking. 12005 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' 12006 12007 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12008 hardcode_libdir_separator_CXX=: 12009 12010 # Archives containing C++ object files must be created using 12011 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12012 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12013 12014 ;; 12015 RCC*) 12016 # Rational C++ 2.4.1 12017 # FIXME: insert proper C++ library support 12018 ld_shlibs_CXX=no 12019 ;; 12020 cxx*) 12021 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12022 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' 12023 12024 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12025 hardcode_libdir_separator_CXX=: 12026 12027 # Commands to make compiler produce verbose output that lists 12028 # what "hidden" libraries, object files and flags are used when 12029 # linking a shared library. 12030 # 12031 # There doesn't appear to be a way to prevent this compiler from 12032 # explicitly linking system object files so we need to strip them 12033 # from the output so that they don't get included in the library 12034 # dependencies. 12035 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' 12036 ;; 12037 *) 12038 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12039 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12040 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' 12041 12042 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12043 hardcode_libdir_separator_CXX=: 12044 12045 # Commands to make compiler produce verbose output that lists 12046 # what "hidden" libraries, object files and flags are used when 12047 # linking a shared library. 12048 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12049 12050 else 12051 # FIXME: insert proper C++ library support 12052 ld_shlibs_CXX=no 12053 fi 12054 ;; 12055 esac 12056 ;; 12057 osf4* | osf5*) 12058 case $cc_basename in 12059 KCC*) 12060 # Kuck and Associates, Inc. (KAI) C++ Compiler 12061 12062 # KCC will only create a shared library if the output file 12063 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12064 # to its proper name (with version) after linking. 12065 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' 12066 12067 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12068 hardcode_libdir_separator_CXX=: 12069 12070 # Archives containing C++ object files must be created using 12071 # the KAI C++ compiler. 12072 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12073 ;; 12074 RCC*) 12075 # Rational C++ 2.4.1 12076 # FIXME: insert proper C++ library support 12077 ld_shlibs_CXX=no 12078 ;; 12079 cxx*) 12080 allow_undefined_flag_CXX=' -expect_unresolved \*' 12081 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' 12082 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12083 echo "-hidden">> $lib.exp~ 12084 $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~ 12085 $rm $lib.exp' 12086 12087 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12088 hardcode_libdir_separator_CXX=: 12089 12090 # Commands to make compiler produce verbose output that lists 12091 # what "hidden" libraries, object files and flags are used when 12092 # linking a shared library. 12093 # 12094 # There doesn't appear to be a way to prevent this compiler from 12095 # explicitly linking system object files so we need to strip them 12096 # from the output so that they don't get included in the library 12097 # dependencies. 12098 output_verbose_link_cmd='templist=`$CC -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' 12099 ;; 12100 *) 12101 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12102 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12103 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' 12104 12105 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12106 hardcode_libdir_separator_CXX=: 12107 12108 # Commands to make compiler produce verbose output that lists 12109 # what "hidden" libraries, object files and flags are used when 12110 # linking a shared library. 12111 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12112 12113 else 12114 # FIXME: insert proper C++ library support 12115 ld_shlibs_CXX=no 12116 fi 12117 ;; 12118 esac 12119 ;; 12120 psos*) 12121 # FIXME: insert proper C++ library support 12122 ld_shlibs_CXX=no 12123 ;; 12124 sunos4*) 12125 case $cc_basename in 12126 CC*) 12127 # Sun C++ 4.x 12128 # FIXME: insert proper C++ library support 12129 ld_shlibs_CXX=no 12130 ;; 12131 lcc*) 12132 # Lucid 12133 # FIXME: insert proper C++ library support 12134 ld_shlibs_CXX=no 12135 ;; 12136 *) 12137 # FIXME: insert proper C++ library support 12138 ld_shlibs_CXX=no 12139 ;; 12140 esac 12141 ;; 12142 solaris*) 12143 case $cc_basename in 12144 CC*) 12145 # Sun C++ 4.2, 5.x and Centerline C++ 12146 archive_cmds_need_lc_CXX=yes 12147 no_undefined_flag_CXX=' -zdefs' 12148 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12149 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12150 $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' 12151 12152 hardcode_libdir_flag_spec_CXX='-R$libdir' 12153 hardcode_shlibpath_var_CXX=no 12154 case $host_os in 12155 solaris2.[0-5] | solaris2.[0-5].*) ;; 12156 *) 12157 # The compiler driver will combine and reorder linker options, 12158 # but understands `-z linker_flag'. 12159 # Supported since Solaris 2.6 (maybe 2.5.1?) 12160 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12161 ;; 12162 esac 12163 link_all_deplibs_CXX=yes 12164 12165 output_verbose_link_cmd='echo' 12166 12167 # Archives containing C++ object files must be created using 12168 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12169 # necessary to make sure instantiated templates are included 12170 # in the archive. 12171 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12172 ;; 12173 gcx*) 12174 # Green Hills C++ Compiler 12175 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12176 12177 # The C++ compiler must be used to create the archive. 12178 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12179 ;; 12180 *) 12181 # GNU C++ compiler with Solaris linker 12182 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12183 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12184 if $CC --version | grep -v '^2\.7' > /dev/null; then 12185 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12186 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12187 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12188 12189 # Commands to make compiler produce verbose output that lists 12190 # what "hidden" libraries, object files and flags are used when 12191 # linking a shared library. 12192 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12193 else 12194 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12195 # platform. 12196 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12197 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12198 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12199 12200 # Commands to make compiler produce verbose output that lists 12201 # what "hidden" libraries, object files and flags are used when 12202 # linking a shared library. 12203 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12204 fi 12205 12206 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12207 case $host_os in 12208 solaris2.[0-5] | solaris2.[0-5].*) ;; 12209 *) 12210 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12211 ;; 12212 esac 12213 fi 12214 ;; 12215 esac 12216 ;; 12217 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12218 no_undefined_flag_CXX='${wl}-z,text' 12219 archive_cmds_need_lc_CXX=no 12220 hardcode_shlibpath_var_CXX=no 12221 runpath_var='LD_RUN_PATH' 12222 12223 case $cc_basename in 12224 CC*) 12225 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12226 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12227 ;; 12228 *) 12229 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12230 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12231 ;; 12232 esac 12233 ;; 12234 sysv5* | sco3.2v5* | sco5v6*) 12235 # Note: We can NOT use -z defs as we might desire, because we do not 12236 # link with -lc, and that would cause any symbols used from libc to 12237 # always be unresolved, which means just about no library would 12238 # ever link correctly. If we're not using GNU ld we use -z text 12239 # though, which does catch some bad symbols but isn't as heavy-handed 12240 # as -z defs. 12241 # For security reasons, it is highly recommended that you always 12242 # use absolute paths for naming shared libraries, and exclude the 12243 # DT_RUNPATH tag from executables and libraries. But doing so 12244 # requires that you compile everything twice, which is a pain. 12245 # So that behaviour is only enabled if SCOABSPATH is set to a 12246 # non-empty value in the environment. Most likely only useful for 12247 # creating official distributions of packages. 12248 # This is a hack until libtool officially supports absolute path 12249 # names for shared libraries. 12250 no_undefined_flag_CXX='${wl}-z,text' 12251 allow_undefined_flag_CXX='${wl}-z,nodefs' 12252 archive_cmds_need_lc_CXX=no 12253 hardcode_shlibpath_var_CXX=no 12254 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12255 hardcode_libdir_separator_CXX=':' 12256 link_all_deplibs_CXX=yes 12257 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12258 runpath_var='LD_RUN_PATH' 12259 12260 case $cc_basename in 12261 CC*) 12262 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12263 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12264 ;; 12265 *) 12266 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12267 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12268 ;; 12269 esac 12270 ;; 12271 tandem*) 12272 case $cc_basename in 12273 NCC*) 12274 # NonStop-UX NCC 3.20 12275 # FIXME: insert proper C++ library support 12276 ld_shlibs_CXX=no 12277 ;; 12278 *) 12279 # FIXME: insert proper C++ library support 12280 ld_shlibs_CXX=no 12281 ;; 12282 esac 12283 ;; 12284 vxworks*) 12285 # FIXME: insert proper C++ library support 12286 ld_shlibs_CXX=no 12287 ;; 12288 *) 12289 # FIXME: insert proper C++ library support 12290 ld_shlibs_CXX=no 12291 ;; 12292esac 12293{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12294echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12295test "$ld_shlibs_CXX" = no && can_build_shared=no 12296 12297GCC_CXX="$GXX" 12298LD_CXX="$LD" 12299 12300cat > conftest.$ac_ext <<EOF 12301class Foo 12302{ 12303public: 12304 Foo (void) { a = 0; } 12305private: 12306 int a; 12307}; 12308EOF 12309 12310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12311 (eval $ac_compile) 2>&5 12312 ac_status=$? 12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12314 (exit $ac_status); }; then 12315 # Parse the compiler output and extract the necessary 12316 # objects, libraries and library flags. 12317 12318 # Sentinel used to keep track of whether or not we are before 12319 # the conftest object file. 12320 pre_test_object_deps_done=no 12321 12322 # The `*' in the case matches for architectures that use `case' in 12323 # $output_verbose_cmd can trigger glob expansion during the loop 12324 # eval without this substitution. 12325 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12326 12327 for p in `eval $output_verbose_link_cmd`; do 12328 case $p in 12329 12330 -L* | -R* | -l*) 12331 # Some compilers place space between "-{L,R}" and the path. 12332 # Remove the space. 12333 if test $p = "-L" \ 12334 || test $p = "-R"; then 12335 prev=$p 12336 continue 12337 else 12338 prev= 12339 fi 12340 12341 if test "$pre_test_object_deps_done" = no; then 12342 case $p in 12343 -L* | -R*) 12344 # Internal compiler library paths should come after those 12345 # provided the user. The postdeps already come after the 12346 # user supplied libs so there is no need to process them. 12347 if test -z "$compiler_lib_search_path_CXX"; then 12348 compiler_lib_search_path_CXX="${prev}${p}" 12349 else 12350 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12351 fi 12352 ;; 12353 # The "-l" case would never come before the object being 12354 # linked, so don't bother handling this case. 12355 esac 12356 else 12357 if test -z "$postdeps_CXX"; then 12358 postdeps_CXX="${prev}${p}" 12359 else 12360 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12361 fi 12362 fi 12363 ;; 12364 12365 *.$objext) 12366 # This assumes that the test object file only shows up 12367 # once in the compiler output. 12368 if test "$p" = "conftest.$objext"; then 12369 pre_test_object_deps_done=yes 12370 continue 12371 fi 12372 12373 if test "$pre_test_object_deps_done" = no; then 12374 if test -z "$predep_objects_CXX"; then 12375 predep_objects_CXX="$p" 12376 else 12377 predep_objects_CXX="$predep_objects_CXX $p" 12378 fi 12379 else 12380 if test -z "$postdep_objects_CXX"; then 12381 postdep_objects_CXX="$p" 12382 else 12383 postdep_objects_CXX="$postdep_objects_CXX $p" 12384 fi 12385 fi 12386 ;; 12387 12388 *) ;; # Ignore the rest. 12389 12390 esac 12391 done 12392 12393 # Clean up. 12394 rm -f a.out a.exe 12395else 12396 echo "libtool.m4: error: problem compiling CXX test program" 12397fi 12398 12399$rm -f confest.$objext 12400 12401compiler_lib_search_dirs_CXX= 12402if test -n "$compiler_lib_search_path_CXX"; then 12403 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12404fi 12405 12406# PORTME: override above test on systems where it is broken 12407case $host_os in 12408interix[3-9]*) 12409 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12410 # hack all around it, let's just trust "g++" to DTRT. 12411 predep_objects_CXX= 12412 postdep_objects_CXX= 12413 postdeps_CXX= 12414 ;; 12415 12416linux*) 12417 case `$CC -V 2>&1 | sed 5q` in 12418 *Sun\ C*) 12419 # Sun C++ 5.9 12420 # 12421 # The more standards-conforming stlport4 library is 12422 # incompatible with the Cstd library. Avoid specifying 12423 # it if it's in CXXFLAGS. Ignore libCrun as 12424 # -library=stlport4 depends on it. 12425 case " $CXX $CXXFLAGS " in 12426 *" -library=stlport4 "*) 12427 solaris_use_stlport4=yes 12428 ;; 12429 esac 12430 if test "$solaris_use_stlport4" != yes; then 12431 postdeps_CXX='-library=Cstd -library=Crun' 12432 fi 12433 ;; 12434 esac 12435 ;; 12436 12437solaris*) 12438 case $cc_basename in 12439 CC*) 12440 # The more standards-conforming stlport4 library is 12441 # incompatible with the Cstd library. Avoid specifying 12442 # it if it's in CXXFLAGS. Ignore libCrun as 12443 # -library=stlport4 depends on it. 12444 case " $CXX $CXXFLAGS " in 12445 *" -library=stlport4 "*) 12446 solaris_use_stlport4=yes 12447 ;; 12448 esac 12449 12450 # Adding this requires a known-good setup of shared libraries for 12451 # Sun compiler versions before 5.6, else PIC objects from an old 12452 # archive will be linked into the output, leading to subtle bugs. 12453 if test "$solaris_use_stlport4" != yes; then 12454 postdeps_CXX='-library=Cstd -library=Crun' 12455 fi 12456 ;; 12457 esac 12458 ;; 12459esac 12460 12461case " $postdeps_CXX " in 12462*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12463esac 12464 12465lt_prog_compiler_wl_CXX= 12466lt_prog_compiler_pic_CXX= 12467lt_prog_compiler_static_CXX= 12468 12469{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12470echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12471 12472 # C++ specific cases for pic, static, wl, etc. 12473 if test "$GXX" = yes; then 12474 lt_prog_compiler_wl_CXX='-Wl,' 12475 lt_prog_compiler_static_CXX='-static' 12476 12477 case $host_os in 12478 aix*) 12479 # All AIX code is PIC. 12480 if test "$host_cpu" = ia64; then 12481 # AIX 5 now supports IA64 processor 12482 lt_prog_compiler_static_CXX='-Bstatic' 12483 fi 12484 ;; 12485 amigaos*) 12486 # FIXME: we need at least 68020 code to build shared libraries, but 12487 # adding the `-m68020' flag to GCC prevents building anything better, 12488 # like `-m68040'. 12489 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12490 ;; 12491 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12492 # PIC is the default for these OSes. 12493 ;; 12494 mingw* | cygwin* | os2* | pw32*) 12495 # This hack is so that the source file can tell whether it is being 12496 # built for inclusion in a dll (and should export symbols for example). 12497 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12498 # (--disable-auto-import) libraries 12499 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12500 ;; 12501 darwin* | rhapsody*) 12502 # PIC is the default on this platform 12503 # Common symbols not allowed in MH_DYLIB files 12504 lt_prog_compiler_pic_CXX='-fno-common' 12505 ;; 12506 *djgpp*) 12507 # DJGPP does not support shared libraries at all 12508 lt_prog_compiler_pic_CXX= 12509 ;; 12510 interix[3-9]*) 12511 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12512 # Instead, we relocate shared libraries at runtime. 12513 ;; 12514 sysv4*MP*) 12515 if test -d /usr/nec; then 12516 lt_prog_compiler_pic_CXX=-Kconform_pic 12517 fi 12518 ;; 12519 hpux*) 12520 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12521 # not for PA HP-UX. 12522 case $host_cpu in 12523 hppa*64*|ia64*) 12524 ;; 12525 *) 12526 lt_prog_compiler_pic_CXX='-fPIC' 12527 ;; 12528 esac 12529 ;; 12530 *) 12531 lt_prog_compiler_pic_CXX='-fPIC' 12532 ;; 12533 esac 12534 else 12535 case $host_os in 12536 aix[4-9]*) 12537 # All AIX code is PIC. 12538 if test "$host_cpu" = ia64; then 12539 # AIX 5 now supports IA64 processor 12540 lt_prog_compiler_static_CXX='-Bstatic' 12541 else 12542 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12543 fi 12544 ;; 12545 chorus*) 12546 case $cc_basename in 12547 cxch68*) 12548 # Green Hills C++ Compiler 12549 # _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" 12550 ;; 12551 esac 12552 ;; 12553 darwin*) 12554 # PIC is the default on this platform 12555 # Common symbols not allowed in MH_DYLIB files 12556 case $cc_basename in 12557 xlc*) 12558 lt_prog_compiler_pic_CXX='-qnocommon' 12559 lt_prog_compiler_wl_CXX='-Wl,' 12560 ;; 12561 esac 12562 ;; 12563 dgux*) 12564 case $cc_basename in 12565 ec++*) 12566 lt_prog_compiler_pic_CXX='-KPIC' 12567 ;; 12568 ghcx*) 12569 # Green Hills C++ Compiler 12570 lt_prog_compiler_pic_CXX='-pic' 12571 ;; 12572 *) 12573 ;; 12574 esac 12575 ;; 12576 freebsd* | dragonfly*) 12577 # FreeBSD uses GNU C++ 12578 ;; 12579 hpux9* | hpux10* | hpux11*) 12580 case $cc_basename in 12581 CC*) 12582 lt_prog_compiler_wl_CXX='-Wl,' 12583 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12584 if test "$host_cpu" != ia64; then 12585 lt_prog_compiler_pic_CXX='+Z' 12586 fi 12587 ;; 12588 aCC*) 12589 lt_prog_compiler_wl_CXX='-Wl,' 12590 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12591 case $host_cpu in 12592 hppa*64*|ia64*) 12593 # +Z the default 12594 ;; 12595 *) 12596 lt_prog_compiler_pic_CXX='+Z' 12597 ;; 12598 esac 12599 ;; 12600 *) 12601 ;; 12602 esac 12603 ;; 12604 interix*) 12605 # This is c89, which is MS Visual C++ (no shared libs) 12606 # Anyone wants to do a port? 12607 ;; 12608 irix5* | irix6* | nonstopux*) 12609 case $cc_basename in 12610 CC*) 12611 lt_prog_compiler_wl_CXX='-Wl,' 12612 lt_prog_compiler_static_CXX='-non_shared' 12613 # CC pic flag -KPIC is the default. 12614 ;; 12615 *) 12616 ;; 12617 esac 12618 ;; 12619 linux* | k*bsd*-gnu) 12620 case $cc_basename in 12621 KCC*) 12622 # KAI C++ Compiler 12623 lt_prog_compiler_wl_CXX='--backend -Wl,' 12624 lt_prog_compiler_pic_CXX='-fPIC' 12625 ;; 12626 icpc* | ecpc*) 12627 # Intel C++ 12628 lt_prog_compiler_wl_CXX='-Wl,' 12629 lt_prog_compiler_pic_CXX='-KPIC' 12630 lt_prog_compiler_static_CXX='-static' 12631 ;; 12632 pgCC* | pgcpp*) 12633 # Portland Group C++ compiler. 12634 lt_prog_compiler_wl_CXX='-Wl,' 12635 lt_prog_compiler_pic_CXX='-fpic' 12636 lt_prog_compiler_static_CXX='-Bstatic' 12637 ;; 12638 cxx*) 12639 # Compaq C++ 12640 # Make sure the PIC flag is empty. It appears that all Alpha 12641 # Linux and Compaq Tru64 Unix objects are PIC. 12642 lt_prog_compiler_pic_CXX= 12643 lt_prog_compiler_static_CXX='-non_shared' 12644 ;; 12645 *) 12646 case `$CC -V 2>&1 | sed 5q` in 12647 *Sun\ C*) 12648 # Sun C++ 5.9 12649 lt_prog_compiler_pic_CXX='-KPIC' 12650 lt_prog_compiler_static_CXX='-Bstatic' 12651 lt_prog_compiler_wl_CXX='-Qoption ld ' 12652 ;; 12653 esac 12654 ;; 12655 esac 12656 ;; 12657 lynxos*) 12658 ;; 12659 m88k*) 12660 ;; 12661 mvs*) 12662 case $cc_basename in 12663 cxx*) 12664 lt_prog_compiler_pic_CXX='-W c,exportall' 12665 ;; 12666 *) 12667 ;; 12668 esac 12669 ;; 12670 netbsd* | netbsdelf*-gnu) 12671 ;; 12672 osf3* | osf4* | osf5*) 12673 case $cc_basename in 12674 KCC*) 12675 lt_prog_compiler_wl_CXX='--backend -Wl,' 12676 ;; 12677 RCC*) 12678 # Rational C++ 2.4.1 12679 lt_prog_compiler_pic_CXX='-pic' 12680 ;; 12681 cxx*) 12682 # Digital/Compaq C++ 12683 lt_prog_compiler_wl_CXX='-Wl,' 12684 # Make sure the PIC flag is empty. It appears that all Alpha 12685 # Linux and Compaq Tru64 Unix objects are PIC. 12686 lt_prog_compiler_pic_CXX= 12687 lt_prog_compiler_static_CXX='-non_shared' 12688 ;; 12689 *) 12690 ;; 12691 esac 12692 ;; 12693 psos*) 12694 ;; 12695 solaris*) 12696 case $cc_basename in 12697 CC*) 12698 # Sun C++ 4.2, 5.x and Centerline C++ 12699 lt_prog_compiler_pic_CXX='-KPIC' 12700 lt_prog_compiler_static_CXX='-Bstatic' 12701 lt_prog_compiler_wl_CXX='-Qoption ld ' 12702 ;; 12703 gcx*) 12704 # Green Hills C++ Compiler 12705 lt_prog_compiler_pic_CXX='-PIC' 12706 ;; 12707 *) 12708 ;; 12709 esac 12710 ;; 12711 sunos4*) 12712 case $cc_basename in 12713 CC*) 12714 # Sun C++ 4.x 12715 lt_prog_compiler_pic_CXX='-pic' 12716 lt_prog_compiler_static_CXX='-Bstatic' 12717 ;; 12718 lcc*) 12719 # Lucid 12720 lt_prog_compiler_pic_CXX='-pic' 12721 ;; 12722 *) 12723 ;; 12724 esac 12725 ;; 12726 tandem*) 12727 case $cc_basename in 12728 NCC*) 12729 # NonStop-UX NCC 3.20 12730 lt_prog_compiler_pic_CXX='-KPIC' 12731 ;; 12732 *) 12733 ;; 12734 esac 12735 ;; 12736 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12737 case $cc_basename in 12738 CC*) 12739 lt_prog_compiler_wl_CXX='-Wl,' 12740 lt_prog_compiler_pic_CXX='-KPIC' 12741 lt_prog_compiler_static_CXX='-Bstatic' 12742 ;; 12743 esac 12744 ;; 12745 vxworks*) 12746 ;; 12747 *) 12748 lt_prog_compiler_can_build_shared_CXX=no 12749 ;; 12750 esac 12751 fi 12752 12753{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12754echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12755 12756# 12757# Check to make sure the PIC flag actually works. 12758# 12759if test -n "$lt_prog_compiler_pic_CXX"; then 12760 12761{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12762echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12763if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12764 echo $ECHO_N "(cached) $ECHO_C" >&6 12765else 12766 lt_cv_prog_compiler_pic_works_CXX=no 12767 ac_outfile=conftest.$ac_objext 12768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12769 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12770 # Insert the option either (1) after the last *FLAGS variable, or 12771 # (2) before a word containing "conftest.", or (3) at the end. 12772 # Note that $ac_compile itself does not contain backslashes and begins 12773 # with a dollar sign (not a hyphen), so the echo should work correctly. 12774 # The option is referenced via a variable to avoid confusing sed. 12775 lt_compile=`echo "$ac_compile" | $SED \ 12776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12778 -e 's:$: $lt_compiler_flag:'` 12779 (eval echo "\"\$as_me:12779: $lt_compile\"" >&5) 12780 (eval "$lt_compile" 2>conftest.err) 12781 ac_status=$? 12782 cat conftest.err >&5 12783 echo "$as_me:12783: \$? = $ac_status" >&5 12784 if (exit $ac_status) && test -s "$ac_outfile"; then 12785 # The compiler can only warn and ignore the option if not recognized 12786 # So say no if there are warnings other than the usual output. 12787 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12789 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12790 lt_cv_prog_compiler_pic_works_CXX=yes 12791 fi 12792 fi 12793 $rm conftest* 12794 12795fi 12796{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12797echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12798 12799if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12800 case $lt_prog_compiler_pic_CXX in 12801 "" | " "*) ;; 12802 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12803 esac 12804else 12805 lt_prog_compiler_pic_CXX= 12806 lt_prog_compiler_can_build_shared_CXX=no 12807fi 12808 12809fi 12810case $host_os in 12811 # For platforms which do not support PIC, -DPIC is meaningless: 12812 *djgpp*) 12813 lt_prog_compiler_pic_CXX= 12814 ;; 12815 *) 12816 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12817 ;; 12818esac 12819 12820# 12821# Check to make sure the static flag actually works. 12822# 12823wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12824{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12825echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12826if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 12827 echo $ECHO_N "(cached) $ECHO_C" >&6 12828else 12829 lt_cv_prog_compiler_static_works_CXX=no 12830 save_LDFLAGS="$LDFLAGS" 12831 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12832 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12833 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12834 # The linker can only warn and ignore the option if not recognized 12835 # So say no if there are warnings 12836 if test -s conftest.err; then 12837 # Append any errors to the config.log. 12838 cat conftest.err 1>&5 12839 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12841 if diff conftest.exp conftest.er2 >/dev/null; then 12842 lt_cv_prog_compiler_static_works_CXX=yes 12843 fi 12844 else 12845 lt_cv_prog_compiler_static_works_CXX=yes 12846 fi 12847 fi 12848 $rm -r conftest* 12849 LDFLAGS="$save_LDFLAGS" 12850 12851fi 12852{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 12853echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } 12854 12855if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 12856 : 12857else 12858 lt_prog_compiler_static_CXX= 12859fi 12860 12861 12862{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12863echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12864if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12865 echo $ECHO_N "(cached) $ECHO_C" >&6 12866else 12867 lt_cv_prog_compiler_c_o_CXX=no 12868 $rm -r conftest 2>/dev/null 12869 mkdir conftest 12870 cd conftest 12871 mkdir out 12872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12873 12874 lt_compiler_flag="-o out/conftest2.$ac_objext" 12875 # Insert the option either (1) after the last *FLAGS variable, or 12876 # (2) before a word containing "conftest.", or (3) at the end. 12877 # Note that $ac_compile itself does not contain backslashes and begins 12878 # with a dollar sign (not a hyphen), so the echo should work correctly. 12879 lt_compile=`echo "$ac_compile" | $SED \ 12880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12882 -e 's:$: $lt_compiler_flag:'` 12883 (eval echo "\"\$as_me:12883: $lt_compile\"" >&5) 12884 (eval "$lt_compile" 2>out/conftest.err) 12885 ac_status=$? 12886 cat out/conftest.err >&5 12887 echo "$as_me:12887: \$? = $ac_status" >&5 12888 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12889 then 12890 # The compiler can only warn and ignore the option if not recognized 12891 # So say no if there are warnings 12892 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12895 lt_cv_prog_compiler_c_o_CXX=yes 12896 fi 12897 fi 12898 chmod u+w . 2>&5 12899 $rm conftest* 12900 # SGI C++ compiler will create directory out/ii_files/ for 12901 # template instantiation 12902 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12903 $rm out/* && rmdir out 12904 cd .. 12905 rmdir conftest 12906 $rm conftest* 12907 12908fi 12909{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12910echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12911 12912 12913hard_links="nottested" 12914if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12915 # do not overwrite the value of need_locks provided by the user 12916 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12917echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12918 hard_links=yes 12919 $rm conftest* 12920 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12921 touch conftest.a 12922 ln conftest.a conftest.b 2>&5 || hard_links=no 12923 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12924 { echo "$as_me:$LINENO: result: $hard_links" >&5 12925echo "${ECHO_T}$hard_links" >&6; } 12926 if test "$hard_links" = no; then 12927 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12928echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12929 need_locks=warn 12930 fi 12931else 12932 need_locks=no 12933fi 12934 12935{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12936echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12937 12938 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12939 case $host_os in 12940 aix[4-9]*) 12941 # If we're using GNU nm, then we don't want the "-C" option. 12942 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12943 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12944 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' 12945 else 12946 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' 12947 fi 12948 ;; 12949 pw32*) 12950 export_symbols_cmds_CXX="$ltdll_cmds" 12951 ;; 12952 cygwin* | mingw*) 12953 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' 12954 ;; 12955 linux* | k*bsd*-gnu) 12956 link_all_deplibs_CXX=no 12957 ;; 12958 *) 12959 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12960 ;; 12961 esac 12962 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12963 12964{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12965echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12966test "$ld_shlibs_CXX" = no && can_build_shared=no 12967 12968# 12969# Do we need to explicitly link libc? 12970# 12971case "x$archive_cmds_need_lc_CXX" in 12972x|xyes) 12973 # Assume -lc should be added 12974 archive_cmds_need_lc_CXX=yes 12975 12976 if test "$enable_shared" = yes && test "$GCC" = yes; then 12977 case $archive_cmds_CXX in 12978 *'~'*) 12979 # FIXME: we may have to deal with multi-command sequences. 12980 ;; 12981 '$CC '*) 12982 # Test whether the compiler implicitly links with -lc since on some 12983 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12984 # to ld, don't add -lc before -lgcc. 12985 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12986echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12987 $rm conftest* 12988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12989 12990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12991 (eval $ac_compile) 2>&5 12992 ac_status=$? 12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12994 (exit $ac_status); } 2>conftest.err; then 12995 soname=conftest 12996 lib=conftest 12997 libobjs=conftest.$ac_objext 12998 deplibs= 12999 wl=$lt_prog_compiler_wl_CXX 13000 pic_flag=$lt_prog_compiler_pic_CXX 13001 compiler_flags=-v 13002 linker_flags=-v 13003 verstring= 13004 output_objdir=. 13005 libname=conftest 13006 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13007 allow_undefined_flag_CXX= 13008 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13009 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13010 ac_status=$? 13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13012 (exit $ac_status); } 13013 then 13014 archive_cmds_need_lc_CXX=no 13015 else 13016 archive_cmds_need_lc_CXX=yes 13017 fi 13018 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13019 else 13020 cat conftest.err 1>&5 13021 fi 13022 $rm conftest* 13023 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13024echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 13025 ;; 13026 esac 13027 fi 13028 ;; 13029esac 13030 13031{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13032echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 13033library_names_spec= 13034libname_spec='lib$name' 13035soname_spec= 13036shrext_cmds=".so" 13037postinstall_cmds= 13038postuninstall_cmds= 13039finish_cmds= 13040finish_eval= 13041shlibpath_var= 13042shlibpath_overrides_runpath=unknown 13043version_type=none 13044dynamic_linker="$host_os ld.so" 13045sys_lib_dlsearch_path_spec="/lib /usr/lib" 13046 13047need_lib_prefix=unknown 13048hardcode_into_libs=no 13049 13050# when you set need_version to no, make sure it does not cause -set_version 13051# flags to be left without arguments 13052need_version=unknown 13053 13054case $host_os in 13055aix3*) 13056 version_type=linux 13057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13058 shlibpath_var=LIBPATH 13059 13060 # AIX 3 has no versioning support, so we append a major version to the name. 13061 soname_spec='${libname}${release}${shared_ext}$major' 13062 ;; 13063 13064aix[4-9]*) 13065 version_type=linux 13066 need_lib_prefix=no 13067 need_version=no 13068 hardcode_into_libs=yes 13069 if test "$host_cpu" = ia64; then 13070 # AIX 5 supports IA64 13071 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13072 shlibpath_var=LD_LIBRARY_PATH 13073 else 13074 # With GCC up to 2.95.x, collect2 would create an import file 13075 # for dependence libraries. The import file would start with 13076 # the line `#! .'. This would cause the generated library to 13077 # depend on `.', always an invalid library. This was fixed in 13078 # development snapshots of GCC prior to 3.0. 13079 case $host_os in 13080 aix4 | aix4.[01] | aix4.[01].*) 13081 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13082 echo ' yes ' 13083 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13084 : 13085 else 13086 can_build_shared=no 13087 fi 13088 ;; 13089 esac 13090 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13091 # soname into executable. Probably we can add versioning support to 13092 # collect2, so additional links can be useful in future. 13093 if test "$aix_use_runtimelinking" = yes; then 13094 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13095 # instead of lib<name>.a to let people know that these are not 13096 # typical AIX shared libraries. 13097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13098 else 13099 # We preserve .a as extension for shared libraries through AIX4.2 13100 # and later when we are not doing run time linking. 13101 library_names_spec='${libname}${release}.a $libname.a' 13102 soname_spec='${libname}${release}${shared_ext}$major' 13103 fi 13104 shlibpath_var=LIBPATH 13105 fi 13106 ;; 13107 13108amigaos*) 13109 library_names_spec='$libname.ixlibrary $libname.a' 13110 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13111 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' 13112 ;; 13113 13114beos*) 13115 library_names_spec='${libname}${shared_ext}' 13116 dynamic_linker="$host_os ld.so" 13117 shlibpath_var=LIBRARY_PATH 13118 ;; 13119 13120bsdi[45]*) 13121 version_type=linux 13122 need_version=no 13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13124 soname_spec='${libname}${release}${shared_ext}$major' 13125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13126 shlibpath_var=LD_LIBRARY_PATH 13127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13129 # the default ld.so.conf also contains /usr/contrib/lib and 13130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13131 # libtool to hard-code these into programs 13132 ;; 13133 13134cygwin* | mingw* | pw32*) 13135 version_type=windows 13136 shrext_cmds=".dll" 13137 need_version=no 13138 need_lib_prefix=no 13139 13140 case $GCC,$host_os in 13141 yes,cygwin* | yes,mingw* | yes,pw32*) 13142 library_names_spec='$libname.dll.a' 13143 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13144 postinstall_cmds='base_file=`basename \${file}`~ 13145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13146 dldir=$destdir/`dirname \$dlpath`~ 13147 test -d \$dldir || mkdir -p \$dldir~ 13148 $install_prog $dir/$dlname \$dldir/$dlname~ 13149 chmod a+x \$dldir/$dlname' 13150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13151 dlpath=$dir/\$dldll~ 13152 $rm \$dlpath' 13153 shlibpath_overrides_runpath=yes 13154 13155 case $host_os in 13156 cygwin*) 13157 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13158 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13159 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13160 ;; 13161 mingw*) 13162 # MinGW DLLs use traditional 'lib' prefix 13163 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13164 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13165 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13166 # It is most probably a Windows format PATH printed by 13167 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13168 # path with ; separators, and with drive letters. We can handle the 13169 # drive letters (cygwin fileutils understands them), so leave them, 13170 # especially as we might pass files found there to a mingw objdump, 13171 # which wouldn't understand a cygwinified path. Ahh. 13172 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13173 else 13174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13175 fi 13176 ;; 13177 pw32*) 13178 # pw32 DLLs use 'pw' prefix rather than 'lib' 13179 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13180 ;; 13181 esac 13182 ;; 13183 13184 *) 13185 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13186 ;; 13187 esac 13188 dynamic_linker='Win32 ld.exe' 13189 # FIXME: first we should search . and the directory the executable is in 13190 shlibpath_var=PATH 13191 ;; 13192 13193darwin* | rhapsody*) 13194 dynamic_linker="$host_os dyld" 13195 version_type=darwin 13196 need_lib_prefix=no 13197 need_version=no 13198 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13199 soname_spec='${libname}${release}${major}$shared_ext' 13200 shlibpath_overrides_runpath=yes 13201 shlibpath_var=DYLD_LIBRARY_PATH 13202 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13203 13204 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13205 ;; 13206 13207dgux*) 13208 version_type=linux 13209 need_lib_prefix=no 13210 need_version=no 13211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13212 soname_spec='${libname}${release}${shared_ext}$major' 13213 shlibpath_var=LD_LIBRARY_PATH 13214 ;; 13215 13216freebsd1*) 13217 dynamic_linker=no 13218 ;; 13219 13220freebsd* | dragonfly*) 13221 # DragonFly does not have aout. When/if they implement a new 13222 # versioning mechanism, adjust this. 13223 if test -x /usr/bin/objformat; then 13224 objformat=`/usr/bin/objformat` 13225 else 13226 case $host_os in 13227 freebsd[123]*) objformat=aout ;; 13228 *) objformat=elf ;; 13229 esac 13230 fi 13231 version_type=freebsd-$objformat 13232 case $version_type in 13233 freebsd-elf*) 13234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13235 need_version=no 13236 need_lib_prefix=no 13237 ;; 13238 freebsd-*) 13239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13240 need_version=yes 13241 ;; 13242 esac 13243 shlibpath_var=LD_LIBRARY_PATH 13244 case $host_os in 13245 freebsd2*) 13246 shlibpath_overrides_runpath=yes 13247 ;; 13248 freebsd3.[01]* | freebsdelf3.[01]*) 13249 shlibpath_overrides_runpath=yes 13250 hardcode_into_libs=yes 13251 ;; 13252 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13253 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13254 shlibpath_overrides_runpath=no 13255 hardcode_into_libs=yes 13256 ;; 13257 *) # from 4.6 on, and DragonFly 13258 shlibpath_overrides_runpath=yes 13259 hardcode_into_libs=yes 13260 ;; 13261 esac 13262 ;; 13263 13264gnu*) 13265 version_type=linux 13266 need_lib_prefix=no 13267 need_version=no 13268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13269 soname_spec='${libname}${release}${shared_ext}$major' 13270 shlibpath_var=LD_LIBRARY_PATH 13271 hardcode_into_libs=yes 13272 ;; 13273 13274hpux9* | hpux10* | hpux11*) 13275 # Give a soname corresponding to the major version so that dld.sl refuses to 13276 # link against other versions. 13277 version_type=sunos 13278 need_lib_prefix=no 13279 need_version=no 13280 case $host_cpu in 13281 ia64*) 13282 shrext_cmds='.so' 13283 hardcode_into_libs=yes 13284 dynamic_linker="$host_os dld.so" 13285 shlibpath_var=LD_LIBRARY_PATH 13286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13288 soname_spec='${libname}${release}${shared_ext}$major' 13289 if test "X$HPUX_IA64_MODE" = X32; then 13290 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13291 else 13292 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13293 fi 13294 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13295 ;; 13296 hppa*64*) 13297 shrext_cmds='.sl' 13298 hardcode_into_libs=yes 13299 dynamic_linker="$host_os dld.sl" 13300 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13303 soname_spec='${libname}${release}${shared_ext}$major' 13304 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13306 ;; 13307 *) 13308 shrext_cmds='.sl' 13309 dynamic_linker="$host_os dld.sl" 13310 shlibpath_var=SHLIB_PATH 13311 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13313 soname_spec='${libname}${release}${shared_ext}$major' 13314 ;; 13315 esac 13316 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13317 postinstall_cmds='chmod 555 $lib' 13318 ;; 13319 13320interix[3-9]*) 13321 version_type=linux 13322 need_lib_prefix=no 13323 need_version=no 13324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13325 soname_spec='${libname}${release}${shared_ext}$major' 13326 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13327 shlibpath_var=LD_LIBRARY_PATH 13328 shlibpath_overrides_runpath=no 13329 hardcode_into_libs=yes 13330 ;; 13331 13332irix5* | irix6* | nonstopux*) 13333 case $host_os in 13334 nonstopux*) version_type=nonstopux ;; 13335 *) 13336 if test "$lt_cv_prog_gnu_ld" = yes; then 13337 version_type=linux 13338 else 13339 version_type=irix 13340 fi ;; 13341 esac 13342 need_lib_prefix=no 13343 need_version=no 13344 soname_spec='${libname}${release}${shared_ext}$major' 13345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13346 case $host_os in 13347 irix5* | nonstopux*) 13348 libsuff= shlibsuff= 13349 ;; 13350 *) 13351 case $LD in # libtool.m4 will add one of these switches to LD 13352 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13353 libsuff= shlibsuff= libmagic=32-bit;; 13354 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13355 libsuff=32 shlibsuff=N32 libmagic=N32;; 13356 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13357 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13358 *) libsuff= shlibsuff= libmagic=never-match;; 13359 esac 13360 ;; 13361 esac 13362 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13363 shlibpath_overrides_runpath=no 13364 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13365 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13366 hardcode_into_libs=yes 13367 ;; 13368 13369# No shared lib support for Linux oldld, aout, or coff. 13370linux*oldld* | linux*aout* | linux*coff*) 13371 dynamic_linker=no 13372 ;; 13373 13374# This must be Linux ELF. 13375linux* | k*bsd*-gnu) 13376 version_type=linux 13377 need_lib_prefix=no 13378 need_version=no 13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13380 soname_spec='${libname}${release}${shared_ext}$major' 13381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13382 shlibpath_var=LD_LIBRARY_PATH 13383 shlibpath_overrides_runpath=no 13384 # This implies no fast_install, which is unacceptable. 13385 # Some rework will be needed to allow for fast_install 13386 # before this can be enabled. 13387 hardcode_into_libs=yes 13388 13389 # Append ld.so.conf contents to the search path 13390 if test -f /etc/ld.so.conf; then 13391 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' ' '` 13392 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13393 fi 13394 13395 # We used to test for /lib/ld.so.1 and disable shared libraries on 13396 # powerpc, because MkLinux only supported shared libraries with the 13397 # GNU dynamic linker. Since this was broken with cross compilers, 13398 # most powerpc-linux boxes support dynamic linking these days and 13399 # people can always --disable-shared, the test was removed, and we 13400 # assume the GNU/Linux dynamic linker is in use. 13401 dynamic_linker='GNU/Linux ld.so' 13402 ;; 13403 13404netbsdelf*-gnu) 13405 version_type=linux 13406 need_lib_prefix=no 13407 need_version=no 13408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13409 soname_spec='${libname}${release}${shared_ext}$major' 13410 shlibpath_var=LD_LIBRARY_PATH 13411 shlibpath_overrides_runpath=no 13412 hardcode_into_libs=yes 13413 dynamic_linker='NetBSD ld.elf_so' 13414 ;; 13415 13416netbsd*) 13417 version_type=sunos 13418 need_lib_prefix=no 13419 need_version=no 13420 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13423 dynamic_linker='NetBSD (a.out) ld.so' 13424 else 13425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13426 soname_spec='${libname}${release}${shared_ext}$major' 13427 dynamic_linker='NetBSD ld.elf_so' 13428 fi 13429 shlibpath_var=LD_LIBRARY_PATH 13430 shlibpath_overrides_runpath=yes 13431 hardcode_into_libs=yes 13432 ;; 13433 13434newsos6) 13435 version_type=linux 13436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13437 shlibpath_var=LD_LIBRARY_PATH 13438 shlibpath_overrides_runpath=yes 13439 ;; 13440 13441nto-qnx*) 13442 version_type=linux 13443 need_lib_prefix=no 13444 need_version=no 13445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13446 soname_spec='${libname}${release}${shared_ext}$major' 13447 shlibpath_var=LD_LIBRARY_PATH 13448 shlibpath_overrides_runpath=yes 13449 ;; 13450 13451openbsd*) 13452 version_type=sunos 13453 sys_lib_dlsearch_path_spec="/usr/lib" 13454 need_lib_prefix=no 13455 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13456 case $host_os in 13457 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13458 *) need_version=no ;; 13459 esac 13460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13462 shlibpath_var=LD_LIBRARY_PATH 13463 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13464 case $host_os in 13465 openbsd2.[89] | openbsd2.[89].*) 13466 shlibpath_overrides_runpath=no 13467 ;; 13468 *) 13469 shlibpath_overrides_runpath=yes 13470 ;; 13471 esac 13472 else 13473 shlibpath_overrides_runpath=yes 13474 fi 13475 ;; 13476 13477os2*) 13478 libname_spec='$name' 13479 shrext_cmds=".dll" 13480 need_lib_prefix=no 13481 library_names_spec='$libname${shared_ext} $libname.a' 13482 dynamic_linker='OS/2 ld.exe' 13483 shlibpath_var=LIBPATH 13484 ;; 13485 13486osf3* | osf4* | osf5*) 13487 version_type=osf 13488 need_lib_prefix=no 13489 need_version=no 13490 soname_spec='${libname}${release}${shared_ext}$major' 13491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13492 shlibpath_var=LD_LIBRARY_PATH 13493 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13494 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13495 ;; 13496 13497rdos*) 13498 dynamic_linker=no 13499 ;; 13500 13501solaris*) 13502 version_type=linux 13503 need_lib_prefix=no 13504 need_version=no 13505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13506 soname_spec='${libname}${release}${shared_ext}$major' 13507 shlibpath_var=LD_LIBRARY_PATH 13508 shlibpath_overrides_runpath=yes 13509 hardcode_into_libs=yes 13510 # ldd complains unless libraries are executable 13511 postinstall_cmds='chmod +x $lib' 13512 ;; 13513 13514sunos4*) 13515 version_type=sunos 13516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13517 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13518 shlibpath_var=LD_LIBRARY_PATH 13519 shlibpath_overrides_runpath=yes 13520 if test "$with_gnu_ld" = yes; then 13521 need_lib_prefix=no 13522 fi 13523 need_version=yes 13524 ;; 13525 13526sysv4 | sysv4.3*) 13527 version_type=linux 13528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13529 soname_spec='${libname}${release}${shared_ext}$major' 13530 shlibpath_var=LD_LIBRARY_PATH 13531 case $host_vendor in 13532 sni) 13533 shlibpath_overrides_runpath=no 13534 need_lib_prefix=no 13535 export_dynamic_flag_spec='${wl}-Blargedynsym' 13536 runpath_var=LD_RUN_PATH 13537 ;; 13538 siemens) 13539 need_lib_prefix=no 13540 ;; 13541 motorola) 13542 need_lib_prefix=no 13543 need_version=no 13544 shlibpath_overrides_runpath=no 13545 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13546 ;; 13547 esac 13548 ;; 13549 13550sysv4*MP*) 13551 if test -d /usr/nec ;then 13552 version_type=linux 13553 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13554 soname_spec='$libname${shared_ext}.$major' 13555 shlibpath_var=LD_LIBRARY_PATH 13556 fi 13557 ;; 13558 13559sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13560 version_type=freebsd-elf 13561 need_lib_prefix=no 13562 need_version=no 13563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13564 soname_spec='${libname}${release}${shared_ext}$major' 13565 shlibpath_var=LD_LIBRARY_PATH 13566 hardcode_into_libs=yes 13567 if test "$with_gnu_ld" = yes; then 13568 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13569 shlibpath_overrides_runpath=no 13570 else 13571 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13572 shlibpath_overrides_runpath=yes 13573 case $host_os in 13574 sco3.2v5*) 13575 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13576 ;; 13577 esac 13578 fi 13579 sys_lib_dlsearch_path_spec='/usr/lib' 13580 ;; 13581 13582uts4*) 13583 version_type=linux 13584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13585 soname_spec='${libname}${release}${shared_ext}$major' 13586 shlibpath_var=LD_LIBRARY_PATH 13587 ;; 13588 13589*) 13590 dynamic_linker=no 13591 ;; 13592esac 13593{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13594echo "${ECHO_T}$dynamic_linker" >&6; } 13595test "$dynamic_linker" = no && can_build_shared=no 13596 13597if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13598 echo $ECHO_N "(cached) $ECHO_C" >&6 13599else 13600 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13601fi 13602 13603sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13604if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13605 echo $ECHO_N "(cached) $ECHO_C" >&6 13606else 13607 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13608fi 13609 13610sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13611 13612variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13613if test "$GCC" = yes; then 13614 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13615fi 13616 13617{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13618echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13619hardcode_action_CXX= 13620if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13621 test -n "$runpath_var_CXX" || \ 13622 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13623 13624 # We can hardcode non-existant directories. 13625 if test "$hardcode_direct_CXX" != no && 13626 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13627 # have to relink, otherwise we might link with an installed library 13628 # when we should be linking with a yet-to-be-installed one 13629 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13630 test "$hardcode_minus_L_CXX" != no; then 13631 # Linking always hardcodes the temporary library directory. 13632 hardcode_action_CXX=relink 13633 else 13634 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13635 hardcode_action_CXX=immediate 13636 fi 13637else 13638 # We cannot hardcode anything, or else we can only hardcode existing 13639 # directories. 13640 hardcode_action_CXX=unsupported 13641fi 13642{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13643echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13644 13645if test "$hardcode_action_CXX" = relink; then 13646 # Fast installation is not supported 13647 enable_fast_install=no 13648elif test "$shlibpath_overrides_runpath" = yes || 13649 test "$enable_shared" = no; then 13650 # Fast installation is not necessary 13651 enable_fast_install=needless 13652fi 13653 13654 13655# The else clause should only fire when bootstrapping the 13656# libtool distribution, otherwise you forgot to ship ltmain.sh 13657# with your package, and you will get complaints that there are 13658# no rules to generate ltmain.sh. 13659if test -f "$ltmain"; then 13660 # See if we are running on zsh, and set the options which allow our commands through 13661 # without removal of \ escapes. 13662 if test -n "${ZSH_VERSION+set}" ; then 13663 setopt NO_GLOB_SUBST 13664 fi 13665 # Now quote all the things that may contain metacharacters while being 13666 # careful not to overquote the AC_SUBSTed values. We take copies of the 13667 # variables and quote the copies for generation of the libtool script. 13668 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13669 SED SHELL STRIP \ 13670 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13671 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13672 deplibs_check_method reload_flag reload_cmds need_locks \ 13673 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13674 lt_cv_sys_global_symbol_to_c_name_address \ 13675 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13676 old_postinstall_cmds old_postuninstall_cmds \ 13677 compiler_CXX \ 13678 CC_CXX \ 13679 LD_CXX \ 13680 lt_prog_compiler_wl_CXX \ 13681 lt_prog_compiler_pic_CXX \ 13682 lt_prog_compiler_static_CXX \ 13683 lt_prog_compiler_no_builtin_flag_CXX \ 13684 export_dynamic_flag_spec_CXX \ 13685 thread_safe_flag_spec_CXX \ 13686 whole_archive_flag_spec_CXX \ 13687 enable_shared_with_static_runtimes_CXX \ 13688 old_archive_cmds_CXX \ 13689 old_archive_from_new_cmds_CXX \ 13690 predep_objects_CXX \ 13691 postdep_objects_CXX \ 13692 predeps_CXX \ 13693 postdeps_CXX \ 13694 compiler_lib_search_path_CXX \ 13695 compiler_lib_search_dirs_CXX \ 13696 archive_cmds_CXX \ 13697 archive_expsym_cmds_CXX \ 13698 postinstall_cmds_CXX \ 13699 postuninstall_cmds_CXX \ 13700 old_archive_from_expsyms_cmds_CXX \ 13701 allow_undefined_flag_CXX \ 13702 no_undefined_flag_CXX \ 13703 export_symbols_cmds_CXX \ 13704 hardcode_libdir_flag_spec_CXX \ 13705 hardcode_libdir_flag_spec_ld_CXX \ 13706 hardcode_libdir_separator_CXX \ 13707 hardcode_automatic_CXX \ 13708 module_cmds_CXX \ 13709 module_expsym_cmds_CXX \ 13710 lt_cv_prog_compiler_c_o_CXX \ 13711 fix_srcfile_path_CXX \ 13712 exclude_expsyms_CXX \ 13713 include_expsyms_CXX; do 13714 13715 case $var in 13716 old_archive_cmds_CXX | \ 13717 old_archive_from_new_cmds_CXX | \ 13718 archive_cmds_CXX | \ 13719 archive_expsym_cmds_CXX | \ 13720 module_cmds_CXX | \ 13721 module_expsym_cmds_CXX | \ 13722 old_archive_from_expsyms_cmds_CXX | \ 13723 export_symbols_cmds_CXX | \ 13724 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13725 postinstall_cmds | postuninstall_cmds | \ 13726 old_postinstall_cmds | old_postuninstall_cmds | \ 13727 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13728 # Double-quote double-evaled strings. 13729 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13730 ;; 13731 *) 13732 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13733 ;; 13734 esac 13735 done 13736 13737 case $lt_echo in 13738 *'\$0 --fallback-echo"') 13739 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13740 ;; 13741 esac 13742 13743cfgfile="$ofile" 13744 13745 cat <<__EOF__ >> "$cfgfile" 13746# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13747 13748# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13749 13750# Shell to use when invoking shell scripts. 13751SHELL=$lt_SHELL 13752 13753# Whether or not to build shared libraries. 13754build_libtool_libs=$enable_shared 13755 13756# Whether or not to build static libraries. 13757build_old_libs=$enable_static 13758 13759# Whether or not to add -lc for building shared libraries. 13760build_libtool_need_lc=$archive_cmds_need_lc_CXX 13761 13762# Whether or not to disallow shared libs when runtime libs are static 13763allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13764 13765# Whether or not to optimize for fast installation. 13766fast_install=$enable_fast_install 13767 13768# The host system. 13769host_alias=$host_alias 13770host=$host 13771host_os=$host_os 13772 13773# The build system. 13774build_alias=$build_alias 13775build=$build 13776build_os=$build_os 13777 13778# An echo program that does not interpret backslashes. 13779echo=$lt_echo 13780 13781# The archiver. 13782AR=$lt_AR 13783AR_FLAGS=$lt_AR_FLAGS 13784 13785# A C compiler. 13786LTCC=$lt_LTCC 13787 13788# LTCC compiler flags. 13789LTCFLAGS=$lt_LTCFLAGS 13790 13791# A language-specific compiler. 13792CC=$lt_compiler_CXX 13793 13794# Is the compiler the GNU C compiler? 13795with_gcc=$GCC_CXX 13796 13797# An ERE matcher. 13798EGREP=$lt_EGREP 13799 13800# The linker used to build libraries. 13801LD=$lt_LD_CXX 13802 13803# Whether we need hard or soft links. 13804LN_S=$lt_LN_S 13805 13806# A BSD-compatible nm program. 13807NM=$lt_NM 13808 13809# A symbol stripping program 13810STRIP=$lt_STRIP 13811 13812# Used to examine libraries when file_magic_cmd begins "file" 13813MAGIC_CMD=$MAGIC_CMD 13814 13815# Used on cygwin: DLL creation program. 13816DLLTOOL="$DLLTOOL" 13817 13818# Used on cygwin: object dumper. 13819OBJDUMP="$OBJDUMP" 13820 13821# Used on cygwin: assembler. 13822AS="$AS" 13823 13824# The name of the directory that contains temporary libtool files. 13825objdir=$objdir 13826 13827# How to create reloadable object files. 13828reload_flag=$lt_reload_flag 13829reload_cmds=$lt_reload_cmds 13830 13831# How to pass a linker flag through the compiler. 13832wl=$lt_lt_prog_compiler_wl_CXX 13833 13834# Object file suffix (normally "o"). 13835objext="$ac_objext" 13836 13837# Old archive suffix (normally "a"). 13838libext="$libext" 13839 13840# Shared library suffix (normally ".so"). 13841shrext_cmds='$shrext_cmds' 13842 13843# Executable file suffix (normally ""). 13844exeext="$exeext" 13845 13846# Additional compiler flags for building library objects. 13847pic_flag=$lt_lt_prog_compiler_pic_CXX 13848pic_mode=$pic_mode 13849 13850# What is the maximum length of a command? 13851max_cmd_len=$lt_cv_sys_max_cmd_len 13852 13853# Does compiler simultaneously support -c and -o options? 13854compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13855 13856# Must we lock files when doing compilation? 13857need_locks=$lt_need_locks 13858 13859# Do we need the lib prefix for modules? 13860need_lib_prefix=$need_lib_prefix 13861 13862# Do we need a version for libraries? 13863need_version=$need_version 13864 13865# Whether dlopen is supported. 13866dlopen_support=$enable_dlopen 13867 13868# Whether dlopen of programs is supported. 13869dlopen_self=$enable_dlopen_self 13870 13871# Whether dlopen of statically linked programs is supported. 13872dlopen_self_static=$enable_dlopen_self_static 13873 13874# Compiler flag to prevent dynamic linking. 13875link_static_flag=$lt_lt_prog_compiler_static_CXX 13876 13877# Compiler flag to turn off builtin functions. 13878no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13879 13880# Compiler flag to allow reflexive dlopens. 13881export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13882 13883# Compiler flag to generate shared objects directly from archives. 13884whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13885 13886# Compiler flag to generate thread-safe objects. 13887thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13888 13889# Library versioning type. 13890version_type=$version_type 13891 13892# Format of library name prefix. 13893libname_spec=$lt_libname_spec 13894 13895# List of archive names. First name is the real one, the rest are links. 13896# The last name is the one that the linker finds with -lNAME. 13897library_names_spec=$lt_library_names_spec 13898 13899# The coded name of the library, if different from the real name. 13900soname_spec=$lt_soname_spec 13901 13902# Commands used to build and install an old-style archive. 13903RANLIB=$lt_RANLIB 13904old_archive_cmds=$lt_old_archive_cmds_CXX 13905old_postinstall_cmds=$lt_old_postinstall_cmds 13906old_postuninstall_cmds=$lt_old_postuninstall_cmds 13907 13908# Create an old-style archive from a shared archive. 13909old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13910 13911# Create a temporary old-style archive to link instead of a shared archive. 13912old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13913 13914# Commands used to build and install a shared archive. 13915archive_cmds=$lt_archive_cmds_CXX 13916archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13917postinstall_cmds=$lt_postinstall_cmds 13918postuninstall_cmds=$lt_postuninstall_cmds 13919 13920# Commands used to build a loadable module (assumed same as above if empty) 13921module_cmds=$lt_module_cmds_CXX 13922module_expsym_cmds=$lt_module_expsym_cmds_CXX 13923 13924# Commands to strip libraries. 13925old_striplib=$lt_old_striplib 13926striplib=$lt_striplib 13927 13928# Dependencies to place before the objects being linked to create a 13929# shared library. 13930predep_objects=$lt_predep_objects_CXX 13931 13932# Dependencies to place after the objects being linked to create a 13933# shared library. 13934postdep_objects=$lt_postdep_objects_CXX 13935 13936# Dependencies to place before the objects being linked to create a 13937# shared library. 13938predeps=$lt_predeps_CXX 13939 13940# Dependencies to place after the objects being linked to create a 13941# shared library. 13942postdeps=$lt_postdeps_CXX 13943 13944# The directories searched by this compiler when creating a shared 13945# library 13946compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 13947 13948# The library search path used internally by the compiler when linking 13949# a shared library. 13950compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13951 13952# Method to check whether dependent libraries are shared objects. 13953deplibs_check_method=$lt_deplibs_check_method 13954 13955# Command to use when deplibs_check_method == file_magic. 13956file_magic_cmd=$lt_file_magic_cmd 13957 13958# Flag that allows shared libraries with undefined symbols to be built. 13959allow_undefined_flag=$lt_allow_undefined_flag_CXX 13960 13961# Flag that forces no undefined symbols. 13962no_undefined_flag=$lt_no_undefined_flag_CXX 13963 13964# Commands used to finish a libtool library installation in a directory. 13965finish_cmds=$lt_finish_cmds 13966 13967# Same as above, but a single script fragment to be evaled but not shown. 13968finish_eval=$lt_finish_eval 13969 13970# Take the output of nm and produce a listing of raw symbols and C names. 13971global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13972 13973# Transform the output of nm in a proper C declaration 13974global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13975 13976# Transform the output of nm in a C name address pair 13977global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13978 13979# This is the shared library runtime path variable. 13980runpath_var=$runpath_var 13981 13982# This is the shared library path variable. 13983shlibpath_var=$shlibpath_var 13984 13985# Is shlibpath searched before the hard-coded library search path? 13986shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13987 13988# How to hardcode a shared library path into an executable. 13989hardcode_action=$hardcode_action_CXX 13990 13991# Whether we should hardcode library paths into libraries. 13992hardcode_into_libs=$hardcode_into_libs 13993 13994# Flag to hardcode \$libdir into a binary during linking. 13995# This must work even if \$libdir does not exist. 13996hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13997 13998# If ld is used when linking, flag to hardcode \$libdir into 13999# a binary during linking. This must work even if \$libdir does 14000# not exist. 14001hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14002 14003# Whether we need a single -rpath flag with a separated argument. 14004hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14005 14006# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14007# resulting binary. 14008hardcode_direct=$hardcode_direct_CXX 14009 14010# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14011# resulting binary. 14012hardcode_minus_L=$hardcode_minus_L_CXX 14013 14014# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14015# the resulting binary. 14016hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14017 14018# Set to yes if building a shared library automatically hardcodes DIR into the library 14019# and all subsequent libraries and executables linked against it. 14020hardcode_automatic=$hardcode_automatic_CXX 14021 14022# Variables whose values should be saved in libtool wrapper scripts and 14023# restored at relink time. 14024variables_saved_for_relink="$variables_saved_for_relink" 14025 14026# Whether libtool must link a program against all its dependency libraries. 14027link_all_deplibs=$link_all_deplibs_CXX 14028 14029# Compile-time system search path for libraries 14030sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14031 14032# Run-time system search path for libraries 14033sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14034 14035# Fix the shell variable \$srcfile for the compiler. 14036fix_srcfile_path=$lt_fix_srcfile_path 14037 14038# Set to yes if exported symbols are required. 14039always_export_symbols=$always_export_symbols_CXX 14040 14041# The commands to list exported symbols. 14042export_symbols_cmds=$lt_export_symbols_cmds_CXX 14043 14044# The commands to extract the exported symbol list from a shared archive. 14045extract_expsyms_cmds=$lt_extract_expsyms_cmds 14046 14047# Symbols that should not be listed in the preloaded symbols. 14048exclude_expsyms=$lt_exclude_expsyms_CXX 14049 14050# Symbols that must always be exported. 14051include_expsyms=$lt_include_expsyms_CXX 14052 14053# ### END LIBTOOL TAG CONFIG: $tagname 14054 14055__EOF__ 14056 14057 14058else 14059 # If there is no Makefile yet, we rely on a make rule to execute 14060 # `config.status --recheck' to rerun these tests and create the 14061 # libtool script then. 14062 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14063 if test -f "$ltmain_in"; then 14064 test -f Makefile && make "$ltmain" 14065 fi 14066fi 14067 14068 14069ac_ext=c 14070ac_cpp='$CPP $CPPFLAGS' 14071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14073ac_compiler_gnu=$ac_cv_c_compiler_gnu 14074 14075CC=$lt_save_CC 14076LDCXX=$LD 14077LD=$lt_save_LD 14078GCC=$lt_save_GCC 14079with_gnu_ldcxx=$with_gnu_ld 14080with_gnu_ld=$lt_save_with_gnu_ld 14081lt_cv_path_LDCXX=$lt_cv_path_LD 14082lt_cv_path_LD=$lt_save_path_LD 14083lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14084lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14085 14086 else 14087 tagname="" 14088 fi 14089 ;; 14090 14091 F77) 14092 if test -n "$F77" && test "X$F77" != "Xno"; then 14093 14094ac_ext=f 14095ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14096ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14097ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14098 14099 14100archive_cmds_need_lc_F77=no 14101allow_undefined_flag_F77= 14102always_export_symbols_F77=no 14103archive_expsym_cmds_F77= 14104export_dynamic_flag_spec_F77= 14105hardcode_direct_F77=no 14106hardcode_libdir_flag_spec_F77= 14107hardcode_libdir_flag_spec_ld_F77= 14108hardcode_libdir_separator_F77= 14109hardcode_minus_L_F77=no 14110hardcode_automatic_F77=no 14111module_cmds_F77= 14112module_expsym_cmds_F77= 14113link_all_deplibs_F77=unknown 14114old_archive_cmds_F77=$old_archive_cmds 14115no_undefined_flag_F77= 14116whole_archive_flag_spec_F77= 14117enable_shared_with_static_runtimes_F77=no 14118 14119# Source file extension for f77 test sources. 14120ac_ext=f 14121 14122# Object file extension for compiled f77 test sources. 14123objext=o 14124objext_F77=$objext 14125 14126# Code to be used in simple compile tests 14127lt_simple_compile_test_code="\ 14128 subroutine t 14129 return 14130 end 14131" 14132 14133# Code to be used in simple link tests 14134lt_simple_link_test_code="\ 14135 program t 14136 end 14137" 14138 14139# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14140 14141# If no C compiler was specified, use CC. 14142LTCC=${LTCC-"$CC"} 14143 14144# If no C compiler flags were specified, use CFLAGS. 14145LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14146 14147# Allow CC to be a program name with arguments. 14148compiler=$CC 14149 14150 14151# save warnings/boilerplate of simple test code 14152ac_outfile=conftest.$ac_objext 14153echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14154eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14155_lt_compiler_boilerplate=`cat conftest.err` 14156$rm conftest* 14157 14158ac_outfile=conftest.$ac_objext 14159echo "$lt_simple_link_test_code" >conftest.$ac_ext 14160eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14161_lt_linker_boilerplate=`cat conftest.err` 14162$rm -r conftest* 14163 14164 14165# Allow CC to be a program name with arguments. 14166lt_save_CC="$CC" 14167CC=${F77-"f77"} 14168compiler=$CC 14169compiler_F77=$CC 14170for cc_temp in $compiler""; do 14171 case $cc_temp in 14172 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14173 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14174 \-*) ;; 14175 *) break;; 14176 esac 14177done 14178cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14179 14180 14181{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14182echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14183{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14184echo "${ECHO_T}$can_build_shared" >&6; } 14185 14186{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14187echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14188test "$can_build_shared" = "no" && enable_shared=no 14189 14190# On AIX, shared libraries and static libraries use the same namespace, and 14191# are all built from PIC. 14192case $host_os in 14193aix3*) 14194 test "$enable_shared" = yes && enable_static=no 14195 if test -n "$RANLIB"; then 14196 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14197 postinstall_cmds='$RANLIB $lib' 14198 fi 14199 ;; 14200aix[4-9]*) 14201 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14202 test "$enable_shared" = yes && enable_static=no 14203 fi 14204 ;; 14205esac 14206{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14207echo "${ECHO_T}$enable_shared" >&6; } 14208 14209{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14210echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14211# Make sure either enable_shared or enable_static is yes. 14212test "$enable_shared" = yes || enable_static=yes 14213{ echo "$as_me:$LINENO: result: $enable_static" >&5 14214echo "${ECHO_T}$enable_static" >&6; } 14215 14216GCC_F77="$G77" 14217LD_F77="$LD" 14218 14219lt_prog_compiler_wl_F77= 14220lt_prog_compiler_pic_F77= 14221lt_prog_compiler_static_F77= 14222 14223{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14224echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14225 14226 if test "$GCC" = yes; then 14227 lt_prog_compiler_wl_F77='-Wl,' 14228 lt_prog_compiler_static_F77='-static' 14229 14230 case $host_os in 14231 aix*) 14232 # All AIX code is PIC. 14233 if test "$host_cpu" = ia64; then 14234 # AIX 5 now supports IA64 processor 14235 lt_prog_compiler_static_F77='-Bstatic' 14236 fi 14237 ;; 14238 14239 amigaos*) 14240 # FIXME: we need at least 68020 code to build shared libraries, but 14241 # adding the `-m68020' flag to GCC prevents building anything better, 14242 # like `-m68040'. 14243 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14244 ;; 14245 14246 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14247 # PIC is the default for these OSes. 14248 ;; 14249 14250 mingw* | cygwin* | pw32* | os2*) 14251 # This hack is so that the source file can tell whether it is being 14252 # built for inclusion in a dll (and should export symbols for example). 14253 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14254 # (--disable-auto-import) libraries 14255 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14256 ;; 14257 14258 darwin* | rhapsody*) 14259 # PIC is the default on this platform 14260 # Common symbols not allowed in MH_DYLIB files 14261 lt_prog_compiler_pic_F77='-fno-common' 14262 ;; 14263 14264 interix[3-9]*) 14265 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14266 # Instead, we relocate shared libraries at runtime. 14267 ;; 14268 14269 msdosdjgpp*) 14270 # Just because we use GCC doesn't mean we suddenly get shared libraries 14271 # on systems that don't support them. 14272 lt_prog_compiler_can_build_shared_F77=no 14273 enable_shared=no 14274 ;; 14275 14276 sysv4*MP*) 14277 if test -d /usr/nec; then 14278 lt_prog_compiler_pic_F77=-Kconform_pic 14279 fi 14280 ;; 14281 14282 hpux*) 14283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14284 # not for PA HP-UX. 14285 case $host_cpu in 14286 hppa*64*|ia64*) 14287 # +Z the default 14288 ;; 14289 *) 14290 lt_prog_compiler_pic_F77='-fPIC' 14291 ;; 14292 esac 14293 ;; 14294 14295 *) 14296 lt_prog_compiler_pic_F77='-fPIC' 14297 ;; 14298 esac 14299 else 14300 # PORTME Check for flag to pass linker flags through the system compiler. 14301 case $host_os in 14302 aix*) 14303 lt_prog_compiler_wl_F77='-Wl,' 14304 if test "$host_cpu" = ia64; then 14305 # AIX 5 now supports IA64 processor 14306 lt_prog_compiler_static_F77='-Bstatic' 14307 else 14308 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14309 fi 14310 ;; 14311 darwin*) 14312 # PIC is the default on this platform 14313 # Common symbols not allowed in MH_DYLIB files 14314 case $cc_basename in 14315 xlc*) 14316 lt_prog_compiler_pic_F77='-qnocommon' 14317 lt_prog_compiler_wl_F77='-Wl,' 14318 ;; 14319 esac 14320 ;; 14321 14322 mingw* | cygwin* | pw32* | os2*) 14323 # This hack is so that the source file can tell whether it is being 14324 # built for inclusion in a dll (and should export symbols for example). 14325 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14326 ;; 14327 14328 hpux9* | hpux10* | hpux11*) 14329 lt_prog_compiler_wl_F77='-Wl,' 14330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14331 # not for PA HP-UX. 14332 case $host_cpu in 14333 hppa*64*|ia64*) 14334 # +Z the default 14335 ;; 14336 *) 14337 lt_prog_compiler_pic_F77='+Z' 14338 ;; 14339 esac 14340 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14341 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14342 ;; 14343 14344 irix5* | irix6* | nonstopux*) 14345 lt_prog_compiler_wl_F77='-Wl,' 14346 # PIC (with -KPIC) is the default. 14347 lt_prog_compiler_static_F77='-non_shared' 14348 ;; 14349 14350 newsos6) 14351 lt_prog_compiler_pic_F77='-KPIC' 14352 lt_prog_compiler_static_F77='-Bstatic' 14353 ;; 14354 14355 linux* | k*bsd*-gnu) 14356 case $cc_basename in 14357 icc* | ecc*) 14358 lt_prog_compiler_wl_F77='-Wl,' 14359 lt_prog_compiler_pic_F77='-KPIC' 14360 lt_prog_compiler_static_F77='-static' 14361 ;; 14362 pgcc* | pgf77* | pgf90* | pgf95*) 14363 # Portland Group compilers (*not* the Pentium gcc compiler, 14364 # which looks to be a dead project) 14365 lt_prog_compiler_wl_F77='-Wl,' 14366 lt_prog_compiler_pic_F77='-fpic' 14367 lt_prog_compiler_static_F77='-Bstatic' 14368 ;; 14369 ccc*) 14370 lt_prog_compiler_wl_F77='-Wl,' 14371 # All Alpha code is PIC. 14372 lt_prog_compiler_static_F77='-non_shared' 14373 ;; 14374 *) 14375 case `$CC -V 2>&1 | sed 5q` in 14376 *Sun\ C*) 14377 # Sun C 5.9 14378 lt_prog_compiler_pic_F77='-KPIC' 14379 lt_prog_compiler_static_F77='-Bstatic' 14380 lt_prog_compiler_wl_F77='-Wl,' 14381 ;; 14382 *Sun\ F*) 14383 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14384 lt_prog_compiler_pic_F77='-KPIC' 14385 lt_prog_compiler_static_F77='-Bstatic' 14386 lt_prog_compiler_wl_F77='' 14387 ;; 14388 esac 14389 ;; 14390 esac 14391 ;; 14392 14393 osf3* | osf4* | osf5*) 14394 lt_prog_compiler_wl_F77='-Wl,' 14395 # All OSF/1 code is PIC. 14396 lt_prog_compiler_static_F77='-non_shared' 14397 ;; 14398 14399 rdos*) 14400 lt_prog_compiler_static_F77='-non_shared' 14401 ;; 14402 14403 solaris*) 14404 lt_prog_compiler_pic_F77='-KPIC' 14405 lt_prog_compiler_static_F77='-Bstatic' 14406 case $cc_basename in 14407 f77* | f90* | f95*) 14408 lt_prog_compiler_wl_F77='-Qoption ld ';; 14409 *) 14410 lt_prog_compiler_wl_F77='-Wl,';; 14411 esac 14412 ;; 14413 14414 sunos4*) 14415 lt_prog_compiler_wl_F77='-Qoption ld ' 14416 lt_prog_compiler_pic_F77='-PIC' 14417 lt_prog_compiler_static_F77='-Bstatic' 14418 ;; 14419 14420 sysv4 | sysv4.2uw2* | sysv4.3*) 14421 lt_prog_compiler_wl_F77='-Wl,' 14422 lt_prog_compiler_pic_F77='-KPIC' 14423 lt_prog_compiler_static_F77='-Bstatic' 14424 ;; 14425 14426 sysv4*MP*) 14427 if test -d /usr/nec ;then 14428 lt_prog_compiler_pic_F77='-Kconform_pic' 14429 lt_prog_compiler_static_F77='-Bstatic' 14430 fi 14431 ;; 14432 14433 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14434 lt_prog_compiler_wl_F77='-Wl,' 14435 lt_prog_compiler_pic_F77='-KPIC' 14436 lt_prog_compiler_static_F77='-Bstatic' 14437 ;; 14438 14439 unicos*) 14440 lt_prog_compiler_wl_F77='-Wl,' 14441 lt_prog_compiler_can_build_shared_F77=no 14442 ;; 14443 14444 uts4*) 14445 lt_prog_compiler_pic_F77='-pic' 14446 lt_prog_compiler_static_F77='-Bstatic' 14447 ;; 14448 14449 *) 14450 lt_prog_compiler_can_build_shared_F77=no 14451 ;; 14452 esac 14453 fi 14454 14455{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14456echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14457 14458# 14459# Check to make sure the PIC flag actually works. 14460# 14461if test -n "$lt_prog_compiler_pic_F77"; then 14462 14463{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14464echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14465if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14466 echo $ECHO_N "(cached) $ECHO_C" >&6 14467else 14468 lt_cv_prog_compiler_pic_works_F77=no 14469 ac_outfile=conftest.$ac_objext 14470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14471 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14472 # Insert the option either (1) after the last *FLAGS variable, or 14473 # (2) before a word containing "conftest.", or (3) at the end. 14474 # Note that $ac_compile itself does not contain backslashes and begins 14475 # with a dollar sign (not a hyphen), so the echo should work correctly. 14476 # The option is referenced via a variable to avoid confusing sed. 14477 lt_compile=`echo "$ac_compile" | $SED \ 14478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14480 -e 's:$: $lt_compiler_flag:'` 14481 (eval echo "\"\$as_me:14481: $lt_compile\"" >&5) 14482 (eval "$lt_compile" 2>conftest.err) 14483 ac_status=$? 14484 cat conftest.err >&5 14485 echo "$as_me:14485: \$? = $ac_status" >&5 14486 if (exit $ac_status) && test -s "$ac_outfile"; then 14487 # The compiler can only warn and ignore the option if not recognized 14488 # So say no if there are warnings other than the usual output. 14489 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14491 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14492 lt_cv_prog_compiler_pic_works_F77=yes 14493 fi 14494 fi 14495 $rm conftest* 14496 14497fi 14498{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14499echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } 14500 14501if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14502 case $lt_prog_compiler_pic_F77 in 14503 "" | " "*) ;; 14504 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14505 esac 14506else 14507 lt_prog_compiler_pic_F77= 14508 lt_prog_compiler_can_build_shared_F77=no 14509fi 14510 14511fi 14512case $host_os in 14513 # For platforms which do not support PIC, -DPIC is meaningless: 14514 *djgpp*) 14515 lt_prog_compiler_pic_F77= 14516 ;; 14517 *) 14518 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14519 ;; 14520esac 14521 14522# 14523# Check to make sure the static flag actually works. 14524# 14525wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14526{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14527echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14528if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14529 echo $ECHO_N "(cached) $ECHO_C" >&6 14530else 14531 lt_cv_prog_compiler_static_works_F77=no 14532 save_LDFLAGS="$LDFLAGS" 14533 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14534 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14535 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14536 # The linker can only warn and ignore the option if not recognized 14537 # So say no if there are warnings 14538 if test -s conftest.err; then 14539 # Append any errors to the config.log. 14540 cat conftest.err 1>&5 14541 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14543 if diff conftest.exp conftest.er2 >/dev/null; then 14544 lt_cv_prog_compiler_static_works_F77=yes 14545 fi 14546 else 14547 lt_cv_prog_compiler_static_works_F77=yes 14548 fi 14549 fi 14550 $rm -r conftest* 14551 LDFLAGS="$save_LDFLAGS" 14552 14553fi 14554{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14555echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } 14556 14557if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14558 : 14559else 14560 lt_prog_compiler_static_F77= 14561fi 14562 14563 14564{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14565echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14566if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14567 echo $ECHO_N "(cached) $ECHO_C" >&6 14568else 14569 lt_cv_prog_compiler_c_o_F77=no 14570 $rm -r conftest 2>/dev/null 14571 mkdir conftest 14572 cd conftest 14573 mkdir out 14574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14575 14576 lt_compiler_flag="-o out/conftest2.$ac_objext" 14577 # Insert the option either (1) after the last *FLAGS variable, or 14578 # (2) before a word containing "conftest.", or (3) at the end. 14579 # Note that $ac_compile itself does not contain backslashes and begins 14580 # with a dollar sign (not a hyphen), so the echo should work correctly. 14581 lt_compile=`echo "$ac_compile" | $SED \ 14582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14584 -e 's:$: $lt_compiler_flag:'` 14585 (eval echo "\"\$as_me:14585: $lt_compile\"" >&5) 14586 (eval "$lt_compile" 2>out/conftest.err) 14587 ac_status=$? 14588 cat out/conftest.err >&5 14589 echo "$as_me:14589: \$? = $ac_status" >&5 14590 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14591 then 14592 # The compiler can only warn and ignore the option if not recognized 14593 # So say no if there are warnings 14594 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14597 lt_cv_prog_compiler_c_o_F77=yes 14598 fi 14599 fi 14600 chmod u+w . 2>&5 14601 $rm conftest* 14602 # SGI C++ compiler will create directory out/ii_files/ for 14603 # template instantiation 14604 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14605 $rm out/* && rmdir out 14606 cd .. 14607 rmdir conftest 14608 $rm conftest* 14609 14610fi 14611{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14612echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14613 14614 14615hard_links="nottested" 14616if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14617 # do not overwrite the value of need_locks provided by the user 14618 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14619echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14620 hard_links=yes 14621 $rm conftest* 14622 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14623 touch conftest.a 14624 ln conftest.a conftest.b 2>&5 || hard_links=no 14625 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14626 { echo "$as_me:$LINENO: result: $hard_links" >&5 14627echo "${ECHO_T}$hard_links" >&6; } 14628 if test "$hard_links" = no; then 14629 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14630echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14631 need_locks=warn 14632 fi 14633else 14634 need_locks=no 14635fi 14636 14637{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14638echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14639 14640 runpath_var= 14641 allow_undefined_flag_F77= 14642 enable_shared_with_static_runtimes_F77=no 14643 archive_cmds_F77= 14644 archive_expsym_cmds_F77= 14645 old_archive_From_new_cmds_F77= 14646 old_archive_from_expsyms_cmds_F77= 14647 export_dynamic_flag_spec_F77= 14648 whole_archive_flag_spec_F77= 14649 thread_safe_flag_spec_F77= 14650 hardcode_libdir_flag_spec_F77= 14651 hardcode_libdir_flag_spec_ld_F77= 14652 hardcode_libdir_separator_F77= 14653 hardcode_direct_F77=no 14654 hardcode_minus_L_F77=no 14655 hardcode_shlibpath_var_F77=unsupported 14656 link_all_deplibs_F77=unknown 14657 hardcode_automatic_F77=no 14658 module_cmds_F77= 14659 module_expsym_cmds_F77= 14660 always_export_symbols_F77=no 14661 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14662 # include_expsyms should be a list of space-separated symbols to be *always* 14663 # included in the symbol list 14664 include_expsyms_F77= 14665 # exclude_expsyms can be an extended regexp of symbols to exclude 14666 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14667 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14668 # as well as any symbol that contains `d'. 14669 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14670 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14671 # platforms (ab)use it in PIC code, but their linkers get confused if 14672 # the symbol is explicitly referenced. Since portable code cannot 14673 # rely on this symbol name, it's probably fine to never include it in 14674 # preloaded symbol tables. 14675 # Exclude shared library initialization/finalization symbols. 14676 extract_expsyms_cmds= 14677 # Just being paranoid about ensuring that cc_basename is set. 14678 for cc_temp in $compiler""; do 14679 case $cc_temp in 14680 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14681 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14682 \-*) ;; 14683 *) break;; 14684 esac 14685done 14686cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14687 14688 case $host_os in 14689 cygwin* | mingw* | pw32*) 14690 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14691 # When not using gcc, we currently assume that we are using 14692 # Microsoft Visual C++. 14693 if test "$GCC" != yes; then 14694 with_gnu_ld=no 14695 fi 14696 ;; 14697 interix*) 14698 # we just hope/assume this is gcc and not c89 (= MSVC++) 14699 with_gnu_ld=yes 14700 ;; 14701 openbsd*) 14702 with_gnu_ld=no 14703 ;; 14704 esac 14705 14706 ld_shlibs_F77=yes 14707 if test "$with_gnu_ld" = yes; then 14708 # If archive_cmds runs LD, not CC, wlarc should be empty 14709 wlarc='${wl}' 14710 14711 # Set some defaults for GNU ld with shared library support. These 14712 # are reset later if shared libraries are not supported. Putting them 14713 # here allows them to be overridden if necessary. 14714 runpath_var=LD_RUN_PATH 14715 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14716 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14717 # ancient GNU ld didn't support --whole-archive et. al. 14718 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14719 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14720 else 14721 whole_archive_flag_spec_F77= 14722 fi 14723 supports_anon_versioning=no 14724 case `$LD -v 2>/dev/null` in 14725 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14726 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14727 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14728 *\ 2.11.*) ;; # other 2.11 versions 14729 *) supports_anon_versioning=yes ;; 14730 esac 14731 14732 # See if GNU ld supports shared libraries. 14733 case $host_os in 14734 aix[3-9]*) 14735 # On AIX/PPC, the GNU linker is very broken 14736 if test "$host_cpu" != ia64; then 14737 ld_shlibs_F77=no 14738 cat <<EOF 1>&2 14739 14740*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14741*** to be unable to reliably create shared libraries on AIX. 14742*** Therefore, libtool is disabling shared libraries support. If you 14743*** really care for shared libraries, you may want to modify your PATH 14744*** so that a non-GNU linker is found, and then restart. 14745 14746EOF 14747 fi 14748 ;; 14749 14750 amigaos*) 14751 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)' 14752 hardcode_libdir_flag_spec_F77='-L$libdir' 14753 hardcode_minus_L_F77=yes 14754 14755 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14756 # that the semantics of dynamic libraries on AmigaOS, at least up 14757 # to version 4, is to share data among multiple programs linked 14758 # with the same dynamic library. Since this doesn't match the 14759 # behavior of shared libraries on other platforms, we can't use 14760 # them. 14761 ld_shlibs_F77=no 14762 ;; 14763 14764 beos*) 14765 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14766 allow_undefined_flag_F77=unsupported 14767 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14768 # support --undefined. This deserves some investigation. FIXME 14769 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14770 else 14771 ld_shlibs_F77=no 14772 fi 14773 ;; 14774 14775 cygwin* | mingw* | pw32*) 14776 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14777 # as there is no search path for DLLs. 14778 hardcode_libdir_flag_spec_F77='-L$libdir' 14779 allow_undefined_flag_F77=unsupported 14780 always_export_symbols_F77=no 14781 enable_shared_with_static_runtimes_F77=yes 14782 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14783 14784 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14785 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14786 # If the export-symbols file already is a .def file (1st line 14787 # is EXPORTS), use it as is; otherwise, prepend... 14788 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14789 cp $export_symbols $output_objdir/$soname.def; 14790 else 14791 echo EXPORTS > $output_objdir/$soname.def; 14792 cat $export_symbols >> $output_objdir/$soname.def; 14793 fi~ 14794 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14795 else 14796 ld_shlibs_F77=no 14797 fi 14798 ;; 14799 14800 interix[3-9]*) 14801 hardcode_direct_F77=no 14802 hardcode_shlibpath_var_F77=no 14803 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14804 export_dynamic_flag_spec_F77='${wl}-E' 14805 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14806 # Instead, shared libraries are loaded at an image base (0x10000000 by 14807 # default) and relocated if they conflict, which is a slow very memory 14808 # consuming and fragmenting process. To avoid this, we pick a random, 14809 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14810 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14811 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' 14812 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' 14813 ;; 14814 14815 gnu* | linux* | k*bsd*-gnu) 14816 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14817 tmp_addflag= 14818 case $cc_basename,$host_cpu in 14819 pgcc*) # Portland Group C compiler 14820 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' 14821 tmp_addflag=' $pic_flag' 14822 ;; 14823 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14824 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' 14825 tmp_addflag=' $pic_flag -Mnomain' ;; 14826 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14827 tmp_addflag=' -i_dynamic' ;; 14828 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14829 tmp_addflag=' -i_dynamic -nofor_main' ;; 14830 ifc* | ifort*) # Intel Fortran compiler 14831 tmp_addflag=' -nofor_main' ;; 14832 esac 14833 case `$CC -V 2>&1 | sed 5q` in 14834 *Sun\ C*) # Sun C 5.9 14835 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' 14836 tmp_sharedflag='-G' ;; 14837 *Sun\ F*) # Sun Fortran 8.3 14838 tmp_sharedflag='-G' ;; 14839 *) 14840 tmp_sharedflag='-shared' ;; 14841 esac 14842 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14843 14844 if test $supports_anon_versioning = yes; then 14845 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14846 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14847 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14848 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14849 fi 14850 link_all_deplibs_F77=no 14851 else 14852 ld_shlibs_F77=no 14853 fi 14854 ;; 14855 14856 netbsd* | netbsdelf*-gnu) 14857 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14858 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14859 wlarc= 14860 else 14861 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14862 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14863 fi 14864 ;; 14865 14866 solaris*) 14867 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14868 ld_shlibs_F77=no 14869 cat <<EOF 1>&2 14870 14871*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14872*** create shared libraries on Solaris systems. Therefore, libtool 14873*** is disabling shared libraries support. We urge you to upgrade GNU 14874*** binutils to release 2.9.1 or newer. Another option is to modify 14875*** your PATH or compiler configuration so that the native linker is 14876*** used, and then restart. 14877 14878EOF 14879 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14880 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14881 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14882 else 14883 ld_shlibs_F77=no 14884 fi 14885 ;; 14886 14887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14888 case `$LD -v 2>&1` in 14889 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14890 ld_shlibs_F77=no 14891 cat <<_LT_EOF 1>&2 14892 14893*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14894*** reliably create shared libraries on SCO systems. Therefore, libtool 14895*** is disabling shared libraries support. We urge you to upgrade GNU 14896*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14897*** your PATH or compiler configuration so that the native linker is 14898*** used, and then restart. 14899 14900_LT_EOF 14901 ;; 14902 *) 14903 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14904 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14905 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14906 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14907 else 14908 ld_shlibs_F77=no 14909 fi 14910 ;; 14911 esac 14912 ;; 14913 14914 sunos4*) 14915 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14916 wlarc= 14917 hardcode_direct_F77=yes 14918 hardcode_shlibpath_var_F77=no 14919 ;; 14920 14921 *) 14922 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14923 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14924 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14925 else 14926 ld_shlibs_F77=no 14927 fi 14928 ;; 14929 esac 14930 14931 if test "$ld_shlibs_F77" = no; then 14932 runpath_var= 14933 hardcode_libdir_flag_spec_F77= 14934 export_dynamic_flag_spec_F77= 14935 whole_archive_flag_spec_F77= 14936 fi 14937 else 14938 # PORTME fill in a description of your system's linker (not GNU ld) 14939 case $host_os in 14940 aix3*) 14941 allow_undefined_flag_F77=unsupported 14942 always_export_symbols_F77=yes 14943 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' 14944 # Note: this linker hardcodes the directories in LIBPATH if there 14945 # are no directories specified by -L. 14946 hardcode_minus_L_F77=yes 14947 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14948 # Neither direct hardcoding nor static linking is supported with a 14949 # broken collect2. 14950 hardcode_direct_F77=unsupported 14951 fi 14952 ;; 14953 14954 aix[4-9]*) 14955 if test "$host_cpu" = ia64; then 14956 # On IA64, the linker does run time linking by default, so we don't 14957 # have to do anything special. 14958 aix_use_runtimelinking=no 14959 exp_sym_flag='-Bexport' 14960 no_entry_flag="" 14961 else 14962 # If we're using GNU nm, then we don't want the "-C" option. 14963 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14964 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14965 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' 14966 else 14967 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' 14968 fi 14969 aix_use_runtimelinking=no 14970 14971 # Test if we are trying to use run time linking or normal 14972 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14973 # need to do runtime linking. 14974 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14975 for ld_flag in $LDFLAGS; do 14976 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14977 aix_use_runtimelinking=yes 14978 break 14979 fi 14980 done 14981 ;; 14982 esac 14983 14984 exp_sym_flag='-bexport' 14985 no_entry_flag='-bnoentry' 14986 fi 14987 14988 # When large executables or shared objects are built, AIX ld can 14989 # have problems creating the table of contents. If linking a library 14990 # or program results in "error TOC overflow" add -mminimal-toc to 14991 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14992 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14993 14994 archive_cmds_F77='' 14995 hardcode_direct_F77=yes 14996 hardcode_libdir_separator_F77=':' 14997 link_all_deplibs_F77=yes 14998 14999 if test "$GCC" = yes; then 15000 case $host_os in aix4.[012]|aix4.[012].*) 15001 # We only want to do this on AIX 4.2 and lower, the check 15002 # below for broken collect2 doesn't work under 4.3+ 15003 collect2name=`${CC} -print-prog-name=collect2` 15004 if test -f "$collect2name" && \ 15005 strings "$collect2name" | grep resolve_lib_name >/dev/null 15006 then 15007 # We have reworked collect2 15008 : 15009 else 15010 # We have old collect2 15011 hardcode_direct_F77=unsupported 15012 # It fails to find uninstalled libraries when the uninstalled 15013 # path is not listed in the libpath. Setting hardcode_minus_L 15014 # to unsupported forces relinking 15015 hardcode_minus_L_F77=yes 15016 hardcode_libdir_flag_spec_F77='-L$libdir' 15017 hardcode_libdir_separator_F77= 15018 fi 15019 ;; 15020 esac 15021 shared_flag='-shared' 15022 if test "$aix_use_runtimelinking" = yes; then 15023 shared_flag="$shared_flag "'${wl}-G' 15024 fi 15025 else 15026 # not using gcc 15027 if test "$host_cpu" = ia64; then 15028 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15029 # chokes on -Wl,-G. The following line is correct: 15030 shared_flag='-G' 15031 else 15032 if test "$aix_use_runtimelinking" = yes; then 15033 shared_flag='${wl}-G' 15034 else 15035 shared_flag='${wl}-bM:SRE' 15036 fi 15037 fi 15038 fi 15039 15040 # It seems that -bexpall does not export symbols beginning with 15041 # underscore (_), so it is better to generate a list of symbols to export. 15042 always_export_symbols_F77=yes 15043 if test "$aix_use_runtimelinking" = yes; then 15044 # Warning - without using the other runtime loading flags (-brtl), 15045 # -berok will link without error, but may produce a broken library. 15046 allow_undefined_flag_F77='-berok' 15047 # Determine the default libpath from the value encoded in an empty executable. 15048 cat >conftest.$ac_ext <<_ACEOF 15049 program main 15050 15051 end 15052_ACEOF 15053rm -f conftest.$ac_objext conftest$ac_exeext 15054if { (ac_try="$ac_link" 15055case "(($ac_try" in 15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15057 *) ac_try_echo=$ac_try;; 15058esac 15059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15060 (eval "$ac_link") 2>conftest.er1 15061 ac_status=$? 15062 grep -v '^ *+' conftest.er1 >conftest.err 15063 rm -f conftest.er1 15064 cat conftest.err >&5 15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15066 (exit $ac_status); } && { 15067 test -z "$ac_f77_werror_flag" || 15068 test ! -s conftest.err 15069 } && test -s conftest$ac_exeext && 15070 $as_test_x conftest$ac_exeext; then 15071 15072lt_aix_libpath_sed=' 15073 /Import File Strings/,/^$/ { 15074 /^0/ { 15075 s/^0 *\(.*\)$/\1/ 15076 p 15077 } 15078 }' 15079aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15080# Check for a 64-bit object if we didn't find anything. 15081if test -z "$aix_libpath"; then 15082 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15083fi 15084else 15085 echo "$as_me: failed program was:" >&5 15086sed 's/^/| /' conftest.$ac_ext >&5 15087 15088 15089fi 15090 15091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15092 conftest$ac_exeext conftest.$ac_ext 15093if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15094 15095 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15096 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" 15097 else 15098 if test "$host_cpu" = ia64; then 15099 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15100 allow_undefined_flag_F77="-z nodefs" 15101 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" 15102 else 15103 # Determine the default libpath from the value encoded in an empty executable. 15104 cat >conftest.$ac_ext <<_ACEOF 15105 program main 15106 15107 end 15108_ACEOF 15109rm -f conftest.$ac_objext conftest$ac_exeext 15110if { (ac_try="$ac_link" 15111case "(($ac_try" in 15112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15113 *) ac_try_echo=$ac_try;; 15114esac 15115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15116 (eval "$ac_link") 2>conftest.er1 15117 ac_status=$? 15118 grep -v '^ *+' conftest.er1 >conftest.err 15119 rm -f conftest.er1 15120 cat conftest.err >&5 15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15122 (exit $ac_status); } && { 15123 test -z "$ac_f77_werror_flag" || 15124 test ! -s conftest.err 15125 } && test -s conftest$ac_exeext && 15126 $as_test_x conftest$ac_exeext; then 15127 15128lt_aix_libpath_sed=' 15129 /Import File Strings/,/^$/ { 15130 /^0/ { 15131 s/^0 *\(.*\)$/\1/ 15132 p 15133 } 15134 }' 15135aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15136# Check for a 64-bit object if we didn't find anything. 15137if test -z "$aix_libpath"; then 15138 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15139fi 15140else 15141 echo "$as_me: failed program was:" >&5 15142sed 's/^/| /' conftest.$ac_ext >&5 15143 15144 15145fi 15146 15147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15148 conftest$ac_exeext conftest.$ac_ext 15149if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15150 15151 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15152 # Warning - without using the other run time loading flags, 15153 # -berok will link without error, but may produce a broken library. 15154 no_undefined_flag_F77=' ${wl}-bernotok' 15155 allow_undefined_flag_F77=' ${wl}-berok' 15156 # Exported symbols can be pulled into shared objects from archives 15157 whole_archive_flag_spec_F77='$convenience' 15158 archive_cmds_need_lc_F77=yes 15159 # This is similar to how AIX traditionally builds its shared libraries. 15160 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' 15161 fi 15162 fi 15163 ;; 15164 15165 amigaos*) 15166 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)' 15167 hardcode_libdir_flag_spec_F77='-L$libdir' 15168 hardcode_minus_L_F77=yes 15169 # see comment about different semantics on the GNU ld section 15170 ld_shlibs_F77=no 15171 ;; 15172 15173 bsdi[45]*) 15174 export_dynamic_flag_spec_F77=-rdynamic 15175 ;; 15176 15177 cygwin* | mingw* | pw32*) 15178 # When not using gcc, we currently assume that we are using 15179 # Microsoft Visual C++. 15180 # hardcode_libdir_flag_spec is actually meaningless, as there is 15181 # no search path for DLLs. 15182 hardcode_libdir_flag_spec_F77=' ' 15183 allow_undefined_flag_F77=unsupported 15184 # Tell ltmain to make .lib files, not .a files. 15185 libext=lib 15186 # Tell ltmain to make .dll files, not .so files. 15187 shrext_cmds=".dll" 15188 # FIXME: Setting linknames here is a bad hack. 15189 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15190 # The linker will automatically build a .lib file if we build a DLL. 15191 old_archive_From_new_cmds_F77='true' 15192 # FIXME: Should let the user specify the lib program. 15193 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15194 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15195 enable_shared_with_static_runtimes_F77=yes 15196 ;; 15197 15198 darwin* | rhapsody*) 15199 case $host_os in 15200 rhapsody* | darwin1.[012]) 15201 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15202 ;; 15203 *) # Darwin 1.3 on 15204 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15205 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15206 else 15207 case ${MACOSX_DEPLOYMENT_TARGET} in 15208 10.[012]) 15209 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15210 ;; 15211 10.*) 15212 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15213 ;; 15214 esac 15215 fi 15216 ;; 15217 esac 15218 archive_cmds_need_lc_F77=no 15219 hardcode_direct_F77=no 15220 hardcode_automatic_F77=yes 15221 hardcode_shlibpath_var_F77=unsupported 15222 whole_archive_flag_spec_F77='' 15223 link_all_deplibs_F77=yes 15224 if test "$GCC" = yes ; then 15225 output_verbose_link_cmd='echo' 15226 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}" 15227 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15228 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}" 15229 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}" 15230 else 15231 case $cc_basename in 15232 xlc*) 15233 output_verbose_link_cmd='echo' 15234 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15235 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15236 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15237 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}' 15238 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}' 15239 ;; 15240 *) 15241 ld_shlibs_F77=no 15242 ;; 15243 esac 15244 fi 15245 ;; 15246 15247 dgux*) 15248 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15249 hardcode_libdir_flag_spec_F77='-L$libdir' 15250 hardcode_shlibpath_var_F77=no 15251 ;; 15252 15253 freebsd1*) 15254 ld_shlibs_F77=no 15255 ;; 15256 15257 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15258 # support. Future versions do this automatically, but an explicit c++rt0.o 15259 # does not break anything, and helps significantly (at the cost of a little 15260 # extra space). 15261 freebsd2.2*) 15262 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15263 hardcode_libdir_flag_spec_F77='-R$libdir' 15264 hardcode_direct_F77=yes 15265 hardcode_shlibpath_var_F77=no 15266 ;; 15267 15268 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15269 freebsd2*) 15270 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15271 hardcode_direct_F77=yes 15272 hardcode_minus_L_F77=yes 15273 hardcode_shlibpath_var_F77=no 15274 ;; 15275 15276 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15277 freebsd* | dragonfly*) 15278 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15279 hardcode_libdir_flag_spec_F77='-R$libdir' 15280 hardcode_direct_F77=yes 15281 hardcode_shlibpath_var_F77=no 15282 ;; 15283 15284 hpux9*) 15285 if test "$GCC" = yes; then 15286 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' 15287 else 15288 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' 15289 fi 15290 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15291 hardcode_libdir_separator_F77=: 15292 hardcode_direct_F77=yes 15293 15294 # hardcode_minus_L: Not really in the search PATH, 15295 # but as the default location of the library. 15296 hardcode_minus_L_F77=yes 15297 export_dynamic_flag_spec_F77='${wl}-E' 15298 ;; 15299 15300 hpux10*) 15301 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15302 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15303 else 15304 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15305 fi 15306 if test "$with_gnu_ld" = no; then 15307 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15308 hardcode_libdir_separator_F77=: 15309 15310 hardcode_direct_F77=yes 15311 export_dynamic_flag_spec_F77='${wl}-E' 15312 15313 # hardcode_minus_L: Not really in the search PATH, 15314 # but as the default location of the library. 15315 hardcode_minus_L_F77=yes 15316 fi 15317 ;; 15318 15319 hpux11*) 15320 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15321 case $host_cpu in 15322 hppa*64*) 15323 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15324 ;; 15325 ia64*) 15326 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15327 ;; 15328 *) 15329 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15330 ;; 15331 esac 15332 else 15333 case $host_cpu in 15334 hppa*64*) 15335 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15336 ;; 15337 ia64*) 15338 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15339 ;; 15340 *) 15341 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15342 ;; 15343 esac 15344 fi 15345 if test "$with_gnu_ld" = no; then 15346 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15347 hardcode_libdir_separator_F77=: 15348 15349 case $host_cpu in 15350 hppa*64*|ia64*) 15351 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15352 hardcode_direct_F77=no 15353 hardcode_shlibpath_var_F77=no 15354 ;; 15355 *) 15356 hardcode_direct_F77=yes 15357 export_dynamic_flag_spec_F77='${wl}-E' 15358 15359 # hardcode_minus_L: Not really in the search PATH, 15360 # but as the default location of the library. 15361 hardcode_minus_L_F77=yes 15362 ;; 15363 esac 15364 fi 15365 ;; 15366 15367 irix5* | irix6* | nonstopux*) 15368 if test "$GCC" = yes; then 15369 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' 15370 else 15371 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' 15372 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15373 fi 15374 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15375 hardcode_libdir_separator_F77=: 15376 link_all_deplibs_F77=yes 15377 ;; 15378 15379 netbsd* | netbsdelf*-gnu) 15380 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15381 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15382 else 15383 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15384 fi 15385 hardcode_libdir_flag_spec_F77='-R$libdir' 15386 hardcode_direct_F77=yes 15387 hardcode_shlibpath_var_F77=no 15388 ;; 15389 15390 newsos6) 15391 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15392 hardcode_direct_F77=yes 15393 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15394 hardcode_libdir_separator_F77=: 15395 hardcode_shlibpath_var_F77=no 15396 ;; 15397 15398 openbsd*) 15399 if test -f /usr/libexec/ld.so; then 15400 hardcode_direct_F77=yes 15401 hardcode_shlibpath_var_F77=no 15402 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15403 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15404 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15405 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15406 export_dynamic_flag_spec_F77='${wl}-E' 15407 else 15408 case $host_os in 15409 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15410 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15411 hardcode_libdir_flag_spec_F77='-R$libdir' 15412 ;; 15413 *) 15414 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15415 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15416 ;; 15417 esac 15418 fi 15419 else 15420 ld_shlibs_F77=no 15421 fi 15422 ;; 15423 15424 os2*) 15425 hardcode_libdir_flag_spec_F77='-L$libdir' 15426 hardcode_minus_L_F77=yes 15427 allow_undefined_flag_F77=unsupported 15428 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' 15429 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15430 ;; 15431 15432 osf3*) 15433 if test "$GCC" = yes; then 15434 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15435 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' 15436 else 15437 allow_undefined_flag_F77=' -expect_unresolved \*' 15438 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' 15439 fi 15440 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15441 hardcode_libdir_separator_F77=: 15442 ;; 15443 15444 osf4* | osf5*) # as osf3* with the addition of -msym flag 15445 if test "$GCC" = yes; then 15446 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15447 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' 15448 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15449 else 15450 allow_undefined_flag_F77=' -expect_unresolved \*' 15451 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' 15452 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~ 15453 $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' 15454 15455 # Both c and cxx compiler support -rpath directly 15456 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15457 fi 15458 hardcode_libdir_separator_F77=: 15459 ;; 15460 15461 solaris*) 15462 no_undefined_flag_F77=' -z text' 15463 if test "$GCC" = yes; then 15464 wlarc='${wl}' 15465 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15466 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15467 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15468 else 15469 wlarc='' 15470 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15471 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15472 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15473 fi 15474 hardcode_libdir_flag_spec_F77='-R$libdir' 15475 hardcode_shlibpath_var_F77=no 15476 case $host_os in 15477 solaris2.[0-5] | solaris2.[0-5].*) ;; 15478 *) 15479 # The compiler driver will combine and reorder linker options, 15480 # but understands `-z linker_flag'. GCC discards it without `$wl', 15481 # but is careful enough not to reorder. 15482 # Supported since Solaris 2.6 (maybe 2.5.1?) 15483 if test "$GCC" = yes; then 15484 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15485 else 15486 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15487 fi 15488 ;; 15489 esac 15490 link_all_deplibs_F77=yes 15491 ;; 15492 15493 sunos4*) 15494 if test "x$host_vendor" = xsequent; then 15495 # Use $CC to link under sequent, because it throws in some extra .o 15496 # files that make .init and .fini sections work. 15497 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15498 else 15499 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15500 fi 15501 hardcode_libdir_flag_spec_F77='-L$libdir' 15502 hardcode_direct_F77=yes 15503 hardcode_minus_L_F77=yes 15504 hardcode_shlibpath_var_F77=no 15505 ;; 15506 15507 sysv4) 15508 case $host_vendor in 15509 sni) 15510 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15511 hardcode_direct_F77=yes # is this really true??? 15512 ;; 15513 siemens) 15514 ## LD is ld it makes a PLAMLIB 15515 ## CC just makes a GrossModule. 15516 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15517 reload_cmds_F77='$CC -r -o $output$reload_objs' 15518 hardcode_direct_F77=no 15519 ;; 15520 motorola) 15521 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15522 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15523 ;; 15524 esac 15525 runpath_var='LD_RUN_PATH' 15526 hardcode_shlibpath_var_F77=no 15527 ;; 15528 15529 sysv4.3*) 15530 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15531 hardcode_shlibpath_var_F77=no 15532 export_dynamic_flag_spec_F77='-Bexport' 15533 ;; 15534 15535 sysv4*MP*) 15536 if test -d /usr/nec; then 15537 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15538 hardcode_shlibpath_var_F77=no 15539 runpath_var=LD_RUN_PATH 15540 hardcode_runpath_var=yes 15541 ld_shlibs_F77=yes 15542 fi 15543 ;; 15544 15545 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15546 no_undefined_flag_F77='${wl}-z,text' 15547 archive_cmds_need_lc_F77=no 15548 hardcode_shlibpath_var_F77=no 15549 runpath_var='LD_RUN_PATH' 15550 15551 if test "$GCC" = yes; then 15552 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15553 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15554 else 15555 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15556 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15557 fi 15558 ;; 15559 15560 sysv5* | sco3.2v5* | sco5v6*) 15561 # Note: We can NOT use -z defs as we might desire, because we do not 15562 # link with -lc, and that would cause any symbols used from libc to 15563 # always be unresolved, which means just about no library would 15564 # ever link correctly. If we're not using GNU ld we use -z text 15565 # though, which does catch some bad symbols but isn't as heavy-handed 15566 # as -z defs. 15567 no_undefined_flag_F77='${wl}-z,text' 15568 allow_undefined_flag_F77='${wl}-z,nodefs' 15569 archive_cmds_need_lc_F77=no 15570 hardcode_shlibpath_var_F77=no 15571 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15572 hardcode_libdir_separator_F77=':' 15573 link_all_deplibs_F77=yes 15574 export_dynamic_flag_spec_F77='${wl}-Bexport' 15575 runpath_var='LD_RUN_PATH' 15576 15577 if test "$GCC" = yes; then 15578 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15579 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15580 else 15581 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15582 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15583 fi 15584 ;; 15585 15586 uts4*) 15587 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15588 hardcode_libdir_flag_spec_F77='-L$libdir' 15589 hardcode_shlibpath_var_F77=no 15590 ;; 15591 15592 *) 15593 ld_shlibs_F77=no 15594 ;; 15595 esac 15596 fi 15597 15598{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15599echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15600test "$ld_shlibs_F77" = no && can_build_shared=no 15601 15602# 15603# Do we need to explicitly link libc? 15604# 15605case "x$archive_cmds_need_lc_F77" in 15606x|xyes) 15607 # Assume -lc should be added 15608 archive_cmds_need_lc_F77=yes 15609 15610 if test "$enable_shared" = yes && test "$GCC" = yes; then 15611 case $archive_cmds_F77 in 15612 *'~'*) 15613 # FIXME: we may have to deal with multi-command sequences. 15614 ;; 15615 '$CC '*) 15616 # Test whether the compiler implicitly links with -lc since on some 15617 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15618 # to ld, don't add -lc before -lgcc. 15619 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15620echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15621 $rm conftest* 15622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15623 15624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15625 (eval $ac_compile) 2>&5 15626 ac_status=$? 15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15628 (exit $ac_status); } 2>conftest.err; then 15629 soname=conftest 15630 lib=conftest 15631 libobjs=conftest.$ac_objext 15632 deplibs= 15633 wl=$lt_prog_compiler_wl_F77 15634 pic_flag=$lt_prog_compiler_pic_F77 15635 compiler_flags=-v 15636 linker_flags=-v 15637 verstring= 15638 output_objdir=. 15639 libname=conftest 15640 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15641 allow_undefined_flag_F77= 15642 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15643 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15644 ac_status=$? 15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15646 (exit $ac_status); } 15647 then 15648 archive_cmds_need_lc_F77=no 15649 else 15650 archive_cmds_need_lc_F77=yes 15651 fi 15652 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15653 else 15654 cat conftest.err 1>&5 15655 fi 15656 $rm conftest* 15657 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15658echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15659 ;; 15660 esac 15661 fi 15662 ;; 15663esac 15664 15665{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15666echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15667library_names_spec= 15668libname_spec='lib$name' 15669soname_spec= 15670shrext_cmds=".so" 15671postinstall_cmds= 15672postuninstall_cmds= 15673finish_cmds= 15674finish_eval= 15675shlibpath_var= 15676shlibpath_overrides_runpath=unknown 15677version_type=none 15678dynamic_linker="$host_os ld.so" 15679sys_lib_dlsearch_path_spec="/lib /usr/lib" 15680 15681need_lib_prefix=unknown 15682hardcode_into_libs=no 15683 15684# when you set need_version to no, make sure it does not cause -set_version 15685# flags to be left without arguments 15686need_version=unknown 15687 15688case $host_os in 15689aix3*) 15690 version_type=linux 15691 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15692 shlibpath_var=LIBPATH 15693 15694 # AIX 3 has no versioning support, so we append a major version to the name. 15695 soname_spec='${libname}${release}${shared_ext}$major' 15696 ;; 15697 15698aix[4-9]*) 15699 version_type=linux 15700 need_lib_prefix=no 15701 need_version=no 15702 hardcode_into_libs=yes 15703 if test "$host_cpu" = ia64; then 15704 # AIX 5 supports IA64 15705 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15706 shlibpath_var=LD_LIBRARY_PATH 15707 else 15708 # With GCC up to 2.95.x, collect2 would create an import file 15709 # for dependence libraries. The import file would start with 15710 # the line `#! .'. This would cause the generated library to 15711 # depend on `.', always an invalid library. This was fixed in 15712 # development snapshots of GCC prior to 3.0. 15713 case $host_os in 15714 aix4 | aix4.[01] | aix4.[01].*) 15715 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15716 echo ' yes ' 15717 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15718 : 15719 else 15720 can_build_shared=no 15721 fi 15722 ;; 15723 esac 15724 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15725 # soname into executable. Probably we can add versioning support to 15726 # collect2, so additional links can be useful in future. 15727 if test "$aix_use_runtimelinking" = yes; then 15728 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15729 # instead of lib<name>.a to let people know that these are not 15730 # typical AIX shared libraries. 15731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15732 else 15733 # We preserve .a as extension for shared libraries through AIX4.2 15734 # and later when we are not doing run time linking. 15735 library_names_spec='${libname}${release}.a $libname.a' 15736 soname_spec='${libname}${release}${shared_ext}$major' 15737 fi 15738 shlibpath_var=LIBPATH 15739 fi 15740 ;; 15741 15742amigaos*) 15743 library_names_spec='$libname.ixlibrary $libname.a' 15744 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15745 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' 15746 ;; 15747 15748beos*) 15749 library_names_spec='${libname}${shared_ext}' 15750 dynamic_linker="$host_os ld.so" 15751 shlibpath_var=LIBRARY_PATH 15752 ;; 15753 15754bsdi[45]*) 15755 version_type=linux 15756 need_version=no 15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15758 soname_spec='${libname}${release}${shared_ext}$major' 15759 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15760 shlibpath_var=LD_LIBRARY_PATH 15761 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15762 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15763 # the default ld.so.conf also contains /usr/contrib/lib and 15764 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15765 # libtool to hard-code these into programs 15766 ;; 15767 15768cygwin* | mingw* | pw32*) 15769 version_type=windows 15770 shrext_cmds=".dll" 15771 need_version=no 15772 need_lib_prefix=no 15773 15774 case $GCC,$host_os in 15775 yes,cygwin* | yes,mingw* | yes,pw32*) 15776 library_names_spec='$libname.dll.a' 15777 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15778 postinstall_cmds='base_file=`basename \${file}`~ 15779 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15780 dldir=$destdir/`dirname \$dlpath`~ 15781 test -d \$dldir || mkdir -p \$dldir~ 15782 $install_prog $dir/$dlname \$dldir/$dlname~ 15783 chmod a+x \$dldir/$dlname' 15784 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15785 dlpath=$dir/\$dldll~ 15786 $rm \$dlpath' 15787 shlibpath_overrides_runpath=yes 15788 15789 case $host_os in 15790 cygwin*) 15791 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15792 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15793 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15794 ;; 15795 mingw*) 15796 # MinGW DLLs use traditional 'lib' prefix 15797 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15798 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15799 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15800 # It is most probably a Windows format PATH printed by 15801 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15802 # path with ; separators, and with drive letters. We can handle the 15803 # drive letters (cygwin fileutils understands them), so leave them, 15804 # especially as we might pass files found there to a mingw objdump, 15805 # which wouldn't understand a cygwinified path. Ahh. 15806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15807 else 15808 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15809 fi 15810 ;; 15811 pw32*) 15812 # pw32 DLLs use 'pw' prefix rather than 'lib' 15813 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15814 ;; 15815 esac 15816 ;; 15817 15818 *) 15819 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15820 ;; 15821 esac 15822 dynamic_linker='Win32 ld.exe' 15823 # FIXME: first we should search . and the directory the executable is in 15824 shlibpath_var=PATH 15825 ;; 15826 15827darwin* | rhapsody*) 15828 dynamic_linker="$host_os dyld" 15829 version_type=darwin 15830 need_lib_prefix=no 15831 need_version=no 15832 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15833 soname_spec='${libname}${release}${major}$shared_ext' 15834 shlibpath_overrides_runpath=yes 15835 shlibpath_var=DYLD_LIBRARY_PATH 15836 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15837 15838 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15839 ;; 15840 15841dgux*) 15842 version_type=linux 15843 need_lib_prefix=no 15844 need_version=no 15845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15846 soname_spec='${libname}${release}${shared_ext}$major' 15847 shlibpath_var=LD_LIBRARY_PATH 15848 ;; 15849 15850freebsd1*) 15851 dynamic_linker=no 15852 ;; 15853 15854freebsd* | dragonfly*) 15855 # DragonFly does not have aout. When/if they implement a new 15856 # versioning mechanism, adjust this. 15857 if test -x /usr/bin/objformat; then 15858 objformat=`/usr/bin/objformat` 15859 else 15860 case $host_os in 15861 freebsd[123]*) objformat=aout ;; 15862 *) objformat=elf ;; 15863 esac 15864 fi 15865 version_type=freebsd-$objformat 15866 case $version_type in 15867 freebsd-elf*) 15868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15869 need_version=no 15870 need_lib_prefix=no 15871 ;; 15872 freebsd-*) 15873 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15874 need_version=yes 15875 ;; 15876 esac 15877 shlibpath_var=LD_LIBRARY_PATH 15878 case $host_os in 15879 freebsd2*) 15880 shlibpath_overrides_runpath=yes 15881 ;; 15882 freebsd3.[01]* | freebsdelf3.[01]*) 15883 shlibpath_overrides_runpath=yes 15884 hardcode_into_libs=yes 15885 ;; 15886 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15887 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15888 shlibpath_overrides_runpath=no 15889 hardcode_into_libs=yes 15890 ;; 15891 *) # from 4.6 on, and DragonFly 15892 shlibpath_overrides_runpath=yes 15893 hardcode_into_libs=yes 15894 ;; 15895 esac 15896 ;; 15897 15898gnu*) 15899 version_type=linux 15900 need_lib_prefix=no 15901 need_version=no 15902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15903 soname_spec='${libname}${release}${shared_ext}$major' 15904 shlibpath_var=LD_LIBRARY_PATH 15905 hardcode_into_libs=yes 15906 ;; 15907 15908hpux9* | hpux10* | hpux11*) 15909 # Give a soname corresponding to the major version so that dld.sl refuses to 15910 # link against other versions. 15911 version_type=sunos 15912 need_lib_prefix=no 15913 need_version=no 15914 case $host_cpu in 15915 ia64*) 15916 shrext_cmds='.so' 15917 hardcode_into_libs=yes 15918 dynamic_linker="$host_os dld.so" 15919 shlibpath_var=LD_LIBRARY_PATH 15920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15922 soname_spec='${libname}${release}${shared_ext}$major' 15923 if test "X$HPUX_IA64_MODE" = X32; then 15924 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15925 else 15926 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15927 fi 15928 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15929 ;; 15930 hppa*64*) 15931 shrext_cmds='.sl' 15932 hardcode_into_libs=yes 15933 dynamic_linker="$host_os dld.sl" 15934 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15937 soname_spec='${libname}${release}${shared_ext}$major' 15938 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15940 ;; 15941 *) 15942 shrext_cmds='.sl' 15943 dynamic_linker="$host_os dld.sl" 15944 shlibpath_var=SHLIB_PATH 15945 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15947 soname_spec='${libname}${release}${shared_ext}$major' 15948 ;; 15949 esac 15950 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15951 postinstall_cmds='chmod 555 $lib' 15952 ;; 15953 15954interix[3-9]*) 15955 version_type=linux 15956 need_lib_prefix=no 15957 need_version=no 15958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15959 soname_spec='${libname}${release}${shared_ext}$major' 15960 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15961 shlibpath_var=LD_LIBRARY_PATH 15962 shlibpath_overrides_runpath=no 15963 hardcode_into_libs=yes 15964 ;; 15965 15966irix5* | irix6* | nonstopux*) 15967 case $host_os in 15968 nonstopux*) version_type=nonstopux ;; 15969 *) 15970 if test "$lt_cv_prog_gnu_ld" = yes; then 15971 version_type=linux 15972 else 15973 version_type=irix 15974 fi ;; 15975 esac 15976 need_lib_prefix=no 15977 need_version=no 15978 soname_spec='${libname}${release}${shared_ext}$major' 15979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15980 case $host_os in 15981 irix5* | nonstopux*) 15982 libsuff= shlibsuff= 15983 ;; 15984 *) 15985 case $LD in # libtool.m4 will add one of these switches to LD 15986 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15987 libsuff= shlibsuff= libmagic=32-bit;; 15988 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15989 libsuff=32 shlibsuff=N32 libmagic=N32;; 15990 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15991 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15992 *) libsuff= shlibsuff= libmagic=never-match;; 15993 esac 15994 ;; 15995 esac 15996 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15997 shlibpath_overrides_runpath=no 15998 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15999 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16000 hardcode_into_libs=yes 16001 ;; 16002 16003# No shared lib support for Linux oldld, aout, or coff. 16004linux*oldld* | linux*aout* | linux*coff*) 16005 dynamic_linker=no 16006 ;; 16007 16008# This must be Linux ELF. 16009linux* | k*bsd*-gnu) 16010 version_type=linux 16011 need_lib_prefix=no 16012 need_version=no 16013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16014 soname_spec='${libname}${release}${shared_ext}$major' 16015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16016 shlibpath_var=LD_LIBRARY_PATH 16017 shlibpath_overrides_runpath=no 16018 # This implies no fast_install, which is unacceptable. 16019 # Some rework will be needed to allow for fast_install 16020 # before this can be enabled. 16021 hardcode_into_libs=yes 16022 16023 # Append ld.so.conf contents to the search path 16024 if test -f /etc/ld.so.conf; then 16025 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' ' '` 16026 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16027 fi 16028 16029 # We used to test for /lib/ld.so.1 and disable shared libraries on 16030 # powerpc, because MkLinux only supported shared libraries with the 16031 # GNU dynamic linker. Since this was broken with cross compilers, 16032 # most powerpc-linux boxes support dynamic linking these days and 16033 # people can always --disable-shared, the test was removed, and we 16034 # assume the GNU/Linux dynamic linker is in use. 16035 dynamic_linker='GNU/Linux ld.so' 16036 ;; 16037 16038netbsdelf*-gnu) 16039 version_type=linux 16040 need_lib_prefix=no 16041 need_version=no 16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16043 soname_spec='${libname}${release}${shared_ext}$major' 16044 shlibpath_var=LD_LIBRARY_PATH 16045 shlibpath_overrides_runpath=no 16046 hardcode_into_libs=yes 16047 dynamic_linker='NetBSD ld.elf_so' 16048 ;; 16049 16050netbsd*) 16051 version_type=sunos 16052 need_lib_prefix=no 16053 need_version=no 16054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16057 dynamic_linker='NetBSD (a.out) ld.so' 16058 else 16059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16060 soname_spec='${libname}${release}${shared_ext}$major' 16061 dynamic_linker='NetBSD ld.elf_so' 16062 fi 16063 shlibpath_var=LD_LIBRARY_PATH 16064 shlibpath_overrides_runpath=yes 16065 hardcode_into_libs=yes 16066 ;; 16067 16068newsos6) 16069 version_type=linux 16070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16071 shlibpath_var=LD_LIBRARY_PATH 16072 shlibpath_overrides_runpath=yes 16073 ;; 16074 16075nto-qnx*) 16076 version_type=linux 16077 need_lib_prefix=no 16078 need_version=no 16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16080 soname_spec='${libname}${release}${shared_ext}$major' 16081 shlibpath_var=LD_LIBRARY_PATH 16082 shlibpath_overrides_runpath=yes 16083 ;; 16084 16085openbsd*) 16086 version_type=sunos 16087 sys_lib_dlsearch_path_spec="/usr/lib" 16088 need_lib_prefix=no 16089 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16090 case $host_os in 16091 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16092 *) need_version=no ;; 16093 esac 16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16096 shlibpath_var=LD_LIBRARY_PATH 16097 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16098 case $host_os in 16099 openbsd2.[89] | openbsd2.[89].*) 16100 shlibpath_overrides_runpath=no 16101 ;; 16102 *) 16103 shlibpath_overrides_runpath=yes 16104 ;; 16105 esac 16106 else 16107 shlibpath_overrides_runpath=yes 16108 fi 16109 ;; 16110 16111os2*) 16112 libname_spec='$name' 16113 shrext_cmds=".dll" 16114 need_lib_prefix=no 16115 library_names_spec='$libname${shared_ext} $libname.a' 16116 dynamic_linker='OS/2 ld.exe' 16117 shlibpath_var=LIBPATH 16118 ;; 16119 16120osf3* | osf4* | osf5*) 16121 version_type=osf 16122 need_lib_prefix=no 16123 need_version=no 16124 soname_spec='${libname}${release}${shared_ext}$major' 16125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16126 shlibpath_var=LD_LIBRARY_PATH 16127 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16128 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16129 ;; 16130 16131rdos*) 16132 dynamic_linker=no 16133 ;; 16134 16135solaris*) 16136 version_type=linux 16137 need_lib_prefix=no 16138 need_version=no 16139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16140 soname_spec='${libname}${release}${shared_ext}$major' 16141 shlibpath_var=LD_LIBRARY_PATH 16142 shlibpath_overrides_runpath=yes 16143 hardcode_into_libs=yes 16144 # ldd complains unless libraries are executable 16145 postinstall_cmds='chmod +x $lib' 16146 ;; 16147 16148sunos4*) 16149 version_type=sunos 16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16151 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16152 shlibpath_var=LD_LIBRARY_PATH 16153 shlibpath_overrides_runpath=yes 16154 if test "$with_gnu_ld" = yes; then 16155 need_lib_prefix=no 16156 fi 16157 need_version=yes 16158 ;; 16159 16160sysv4 | sysv4.3*) 16161 version_type=linux 16162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16163 soname_spec='${libname}${release}${shared_ext}$major' 16164 shlibpath_var=LD_LIBRARY_PATH 16165 case $host_vendor in 16166 sni) 16167 shlibpath_overrides_runpath=no 16168 need_lib_prefix=no 16169 export_dynamic_flag_spec='${wl}-Blargedynsym' 16170 runpath_var=LD_RUN_PATH 16171 ;; 16172 siemens) 16173 need_lib_prefix=no 16174 ;; 16175 motorola) 16176 need_lib_prefix=no 16177 need_version=no 16178 shlibpath_overrides_runpath=no 16179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16180 ;; 16181 esac 16182 ;; 16183 16184sysv4*MP*) 16185 if test -d /usr/nec ;then 16186 version_type=linux 16187 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16188 soname_spec='$libname${shared_ext}.$major' 16189 shlibpath_var=LD_LIBRARY_PATH 16190 fi 16191 ;; 16192 16193sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16194 version_type=freebsd-elf 16195 need_lib_prefix=no 16196 need_version=no 16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16198 soname_spec='${libname}${release}${shared_ext}$major' 16199 shlibpath_var=LD_LIBRARY_PATH 16200 hardcode_into_libs=yes 16201 if test "$with_gnu_ld" = yes; then 16202 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16203 shlibpath_overrides_runpath=no 16204 else 16205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16206 shlibpath_overrides_runpath=yes 16207 case $host_os in 16208 sco3.2v5*) 16209 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16210 ;; 16211 esac 16212 fi 16213 sys_lib_dlsearch_path_spec='/usr/lib' 16214 ;; 16215 16216uts4*) 16217 version_type=linux 16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16219 soname_spec='${libname}${release}${shared_ext}$major' 16220 shlibpath_var=LD_LIBRARY_PATH 16221 ;; 16222 16223*) 16224 dynamic_linker=no 16225 ;; 16226esac 16227{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16228echo "${ECHO_T}$dynamic_linker" >&6; } 16229test "$dynamic_linker" = no && can_build_shared=no 16230 16231if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16232 echo $ECHO_N "(cached) $ECHO_C" >&6 16233else 16234 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16235fi 16236 16237sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16238if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16239 echo $ECHO_N "(cached) $ECHO_C" >&6 16240else 16241 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16242fi 16243 16244sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16245 16246variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16247if test "$GCC" = yes; then 16248 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16249fi 16250 16251{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16252echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16253hardcode_action_F77= 16254if test -n "$hardcode_libdir_flag_spec_F77" || \ 16255 test -n "$runpath_var_F77" || \ 16256 test "X$hardcode_automatic_F77" = "Xyes" ; then 16257 16258 # We can hardcode non-existant directories. 16259 if test "$hardcode_direct_F77" != no && 16260 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16261 # have to relink, otherwise we might link with an installed library 16262 # when we should be linking with a yet-to-be-installed one 16263 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16264 test "$hardcode_minus_L_F77" != no; then 16265 # Linking always hardcodes the temporary library directory. 16266 hardcode_action_F77=relink 16267 else 16268 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16269 hardcode_action_F77=immediate 16270 fi 16271else 16272 # We cannot hardcode anything, or else we can only hardcode existing 16273 # directories. 16274 hardcode_action_F77=unsupported 16275fi 16276{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16277echo "${ECHO_T}$hardcode_action_F77" >&6; } 16278 16279if test "$hardcode_action_F77" = relink; then 16280 # Fast installation is not supported 16281 enable_fast_install=no 16282elif test "$shlibpath_overrides_runpath" = yes || 16283 test "$enable_shared" = no; then 16284 # Fast installation is not necessary 16285 enable_fast_install=needless 16286fi 16287 16288 16289# The else clause should only fire when bootstrapping the 16290# libtool distribution, otherwise you forgot to ship ltmain.sh 16291# with your package, and you will get complaints that there are 16292# no rules to generate ltmain.sh. 16293if test -f "$ltmain"; then 16294 # See if we are running on zsh, and set the options which allow our commands through 16295 # without removal of \ escapes. 16296 if test -n "${ZSH_VERSION+set}" ; then 16297 setopt NO_GLOB_SUBST 16298 fi 16299 # Now quote all the things that may contain metacharacters while being 16300 # careful not to overquote the AC_SUBSTed values. We take copies of the 16301 # variables and quote the copies for generation of the libtool script. 16302 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16303 SED SHELL STRIP \ 16304 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16305 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16306 deplibs_check_method reload_flag reload_cmds need_locks \ 16307 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16308 lt_cv_sys_global_symbol_to_c_name_address \ 16309 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16310 old_postinstall_cmds old_postuninstall_cmds \ 16311 compiler_F77 \ 16312 CC_F77 \ 16313 LD_F77 \ 16314 lt_prog_compiler_wl_F77 \ 16315 lt_prog_compiler_pic_F77 \ 16316 lt_prog_compiler_static_F77 \ 16317 lt_prog_compiler_no_builtin_flag_F77 \ 16318 export_dynamic_flag_spec_F77 \ 16319 thread_safe_flag_spec_F77 \ 16320 whole_archive_flag_spec_F77 \ 16321 enable_shared_with_static_runtimes_F77 \ 16322 old_archive_cmds_F77 \ 16323 old_archive_from_new_cmds_F77 \ 16324 predep_objects_F77 \ 16325 postdep_objects_F77 \ 16326 predeps_F77 \ 16327 postdeps_F77 \ 16328 compiler_lib_search_path_F77 \ 16329 compiler_lib_search_dirs_F77 \ 16330 archive_cmds_F77 \ 16331 archive_expsym_cmds_F77 \ 16332 postinstall_cmds_F77 \ 16333 postuninstall_cmds_F77 \ 16334 old_archive_from_expsyms_cmds_F77 \ 16335 allow_undefined_flag_F77 \ 16336 no_undefined_flag_F77 \ 16337 export_symbols_cmds_F77 \ 16338 hardcode_libdir_flag_spec_F77 \ 16339 hardcode_libdir_flag_spec_ld_F77 \ 16340 hardcode_libdir_separator_F77 \ 16341 hardcode_automatic_F77 \ 16342 module_cmds_F77 \ 16343 module_expsym_cmds_F77 \ 16344 lt_cv_prog_compiler_c_o_F77 \ 16345 fix_srcfile_path_F77 \ 16346 exclude_expsyms_F77 \ 16347 include_expsyms_F77; do 16348 16349 case $var in 16350 old_archive_cmds_F77 | \ 16351 old_archive_from_new_cmds_F77 | \ 16352 archive_cmds_F77 | \ 16353 archive_expsym_cmds_F77 | \ 16354 module_cmds_F77 | \ 16355 module_expsym_cmds_F77 | \ 16356 old_archive_from_expsyms_cmds_F77 | \ 16357 export_symbols_cmds_F77 | \ 16358 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16359 postinstall_cmds | postuninstall_cmds | \ 16360 old_postinstall_cmds | old_postuninstall_cmds | \ 16361 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16362 # Double-quote double-evaled strings. 16363 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16364 ;; 16365 *) 16366 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16367 ;; 16368 esac 16369 done 16370 16371 case $lt_echo in 16372 *'\$0 --fallback-echo"') 16373 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16374 ;; 16375 esac 16376 16377cfgfile="$ofile" 16378 16379 cat <<__EOF__ >> "$cfgfile" 16380# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16381 16382# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16383 16384# Shell to use when invoking shell scripts. 16385SHELL=$lt_SHELL 16386 16387# Whether or not to build shared libraries. 16388build_libtool_libs=$enable_shared 16389 16390# Whether or not to build static libraries. 16391build_old_libs=$enable_static 16392 16393# Whether or not to add -lc for building shared libraries. 16394build_libtool_need_lc=$archive_cmds_need_lc_F77 16395 16396# Whether or not to disallow shared libs when runtime libs are static 16397allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16398 16399# Whether or not to optimize for fast installation. 16400fast_install=$enable_fast_install 16401 16402# The host system. 16403host_alias=$host_alias 16404host=$host 16405host_os=$host_os 16406 16407# The build system. 16408build_alias=$build_alias 16409build=$build 16410build_os=$build_os 16411 16412# An echo program that does not interpret backslashes. 16413echo=$lt_echo 16414 16415# The archiver. 16416AR=$lt_AR 16417AR_FLAGS=$lt_AR_FLAGS 16418 16419# A C compiler. 16420LTCC=$lt_LTCC 16421 16422# LTCC compiler flags. 16423LTCFLAGS=$lt_LTCFLAGS 16424 16425# A language-specific compiler. 16426CC=$lt_compiler_F77 16427 16428# Is the compiler the GNU C compiler? 16429with_gcc=$GCC_F77 16430 16431# An ERE matcher. 16432EGREP=$lt_EGREP 16433 16434# The linker used to build libraries. 16435LD=$lt_LD_F77 16436 16437# Whether we need hard or soft links. 16438LN_S=$lt_LN_S 16439 16440# A BSD-compatible nm program. 16441NM=$lt_NM 16442 16443# A symbol stripping program 16444STRIP=$lt_STRIP 16445 16446# Used to examine libraries when file_magic_cmd begins "file" 16447MAGIC_CMD=$MAGIC_CMD 16448 16449# Used on cygwin: DLL creation program. 16450DLLTOOL="$DLLTOOL" 16451 16452# Used on cygwin: object dumper. 16453OBJDUMP="$OBJDUMP" 16454 16455# Used on cygwin: assembler. 16456AS="$AS" 16457 16458# The name of the directory that contains temporary libtool files. 16459objdir=$objdir 16460 16461# How to create reloadable object files. 16462reload_flag=$lt_reload_flag 16463reload_cmds=$lt_reload_cmds 16464 16465# How to pass a linker flag through the compiler. 16466wl=$lt_lt_prog_compiler_wl_F77 16467 16468# Object file suffix (normally "o"). 16469objext="$ac_objext" 16470 16471# Old archive suffix (normally "a"). 16472libext="$libext" 16473 16474# Shared library suffix (normally ".so"). 16475shrext_cmds='$shrext_cmds' 16476 16477# Executable file suffix (normally ""). 16478exeext="$exeext" 16479 16480# Additional compiler flags for building library objects. 16481pic_flag=$lt_lt_prog_compiler_pic_F77 16482pic_mode=$pic_mode 16483 16484# What is the maximum length of a command? 16485max_cmd_len=$lt_cv_sys_max_cmd_len 16486 16487# Does compiler simultaneously support -c and -o options? 16488compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16489 16490# Must we lock files when doing compilation? 16491need_locks=$lt_need_locks 16492 16493# Do we need the lib prefix for modules? 16494need_lib_prefix=$need_lib_prefix 16495 16496# Do we need a version for libraries? 16497need_version=$need_version 16498 16499# Whether dlopen is supported. 16500dlopen_support=$enable_dlopen 16501 16502# Whether dlopen of programs is supported. 16503dlopen_self=$enable_dlopen_self 16504 16505# Whether dlopen of statically linked programs is supported. 16506dlopen_self_static=$enable_dlopen_self_static 16507 16508# Compiler flag to prevent dynamic linking. 16509link_static_flag=$lt_lt_prog_compiler_static_F77 16510 16511# Compiler flag to turn off builtin functions. 16512no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16513 16514# Compiler flag to allow reflexive dlopens. 16515export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16516 16517# Compiler flag to generate shared objects directly from archives. 16518whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16519 16520# Compiler flag to generate thread-safe objects. 16521thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16522 16523# Library versioning type. 16524version_type=$version_type 16525 16526# Format of library name prefix. 16527libname_spec=$lt_libname_spec 16528 16529# List of archive names. First name is the real one, the rest are links. 16530# The last name is the one that the linker finds with -lNAME. 16531library_names_spec=$lt_library_names_spec 16532 16533# The coded name of the library, if different from the real name. 16534soname_spec=$lt_soname_spec 16535 16536# Commands used to build and install an old-style archive. 16537RANLIB=$lt_RANLIB 16538old_archive_cmds=$lt_old_archive_cmds_F77 16539old_postinstall_cmds=$lt_old_postinstall_cmds 16540old_postuninstall_cmds=$lt_old_postuninstall_cmds 16541 16542# Create an old-style archive from a shared archive. 16543old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16544 16545# Create a temporary old-style archive to link instead of a shared archive. 16546old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16547 16548# Commands used to build and install a shared archive. 16549archive_cmds=$lt_archive_cmds_F77 16550archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16551postinstall_cmds=$lt_postinstall_cmds 16552postuninstall_cmds=$lt_postuninstall_cmds 16553 16554# Commands used to build a loadable module (assumed same as above if empty) 16555module_cmds=$lt_module_cmds_F77 16556module_expsym_cmds=$lt_module_expsym_cmds_F77 16557 16558# Commands to strip libraries. 16559old_striplib=$lt_old_striplib 16560striplib=$lt_striplib 16561 16562# Dependencies to place before the objects being linked to create a 16563# shared library. 16564predep_objects=$lt_predep_objects_F77 16565 16566# Dependencies to place after the objects being linked to create a 16567# shared library. 16568postdep_objects=$lt_postdep_objects_F77 16569 16570# Dependencies to place before the objects being linked to create a 16571# shared library. 16572predeps=$lt_predeps_F77 16573 16574# Dependencies to place after the objects being linked to create a 16575# shared library. 16576postdeps=$lt_postdeps_F77 16577 16578# The directories searched by this compiler when creating a shared 16579# library 16580compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16581 16582# The library search path used internally by the compiler when linking 16583# a shared library. 16584compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16585 16586# Method to check whether dependent libraries are shared objects. 16587deplibs_check_method=$lt_deplibs_check_method 16588 16589# Command to use when deplibs_check_method == file_magic. 16590file_magic_cmd=$lt_file_magic_cmd 16591 16592# Flag that allows shared libraries with undefined symbols to be built. 16593allow_undefined_flag=$lt_allow_undefined_flag_F77 16594 16595# Flag that forces no undefined symbols. 16596no_undefined_flag=$lt_no_undefined_flag_F77 16597 16598# Commands used to finish a libtool library installation in a directory. 16599finish_cmds=$lt_finish_cmds 16600 16601# Same as above, but a single script fragment to be evaled but not shown. 16602finish_eval=$lt_finish_eval 16603 16604# Take the output of nm and produce a listing of raw symbols and C names. 16605global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16606 16607# Transform the output of nm in a proper C declaration 16608global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16609 16610# Transform the output of nm in a C name address pair 16611global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16612 16613# This is the shared library runtime path variable. 16614runpath_var=$runpath_var 16615 16616# This is the shared library path variable. 16617shlibpath_var=$shlibpath_var 16618 16619# Is shlibpath searched before the hard-coded library search path? 16620shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16621 16622# How to hardcode a shared library path into an executable. 16623hardcode_action=$hardcode_action_F77 16624 16625# Whether we should hardcode library paths into libraries. 16626hardcode_into_libs=$hardcode_into_libs 16627 16628# Flag to hardcode \$libdir into a binary during linking. 16629# This must work even if \$libdir does not exist. 16630hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16631 16632# If ld is used when linking, flag to hardcode \$libdir into 16633# a binary during linking. This must work even if \$libdir does 16634# not exist. 16635hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16636 16637# Whether we need a single -rpath flag with a separated argument. 16638hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16639 16640# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16641# resulting binary. 16642hardcode_direct=$hardcode_direct_F77 16643 16644# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16645# resulting binary. 16646hardcode_minus_L=$hardcode_minus_L_F77 16647 16648# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16649# the resulting binary. 16650hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16651 16652# Set to yes if building a shared library automatically hardcodes DIR into the library 16653# and all subsequent libraries and executables linked against it. 16654hardcode_automatic=$hardcode_automatic_F77 16655 16656# Variables whose values should be saved in libtool wrapper scripts and 16657# restored at relink time. 16658variables_saved_for_relink="$variables_saved_for_relink" 16659 16660# Whether libtool must link a program against all its dependency libraries. 16661link_all_deplibs=$link_all_deplibs_F77 16662 16663# Compile-time system search path for libraries 16664sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16665 16666# Run-time system search path for libraries 16667sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16668 16669# Fix the shell variable \$srcfile for the compiler. 16670fix_srcfile_path=$lt_fix_srcfile_path 16671 16672# Set to yes if exported symbols are required. 16673always_export_symbols=$always_export_symbols_F77 16674 16675# The commands to list exported symbols. 16676export_symbols_cmds=$lt_export_symbols_cmds_F77 16677 16678# The commands to extract the exported symbol list from a shared archive. 16679extract_expsyms_cmds=$lt_extract_expsyms_cmds 16680 16681# Symbols that should not be listed in the preloaded symbols. 16682exclude_expsyms=$lt_exclude_expsyms_F77 16683 16684# Symbols that must always be exported. 16685include_expsyms=$lt_include_expsyms_F77 16686 16687# ### END LIBTOOL TAG CONFIG: $tagname 16688 16689__EOF__ 16690 16691 16692else 16693 # If there is no Makefile yet, we rely on a make rule to execute 16694 # `config.status --recheck' to rerun these tests and create the 16695 # libtool script then. 16696 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16697 if test -f "$ltmain_in"; then 16698 test -f Makefile && make "$ltmain" 16699 fi 16700fi 16701 16702 16703ac_ext=c 16704ac_cpp='$CPP $CPPFLAGS' 16705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16707ac_compiler_gnu=$ac_cv_c_compiler_gnu 16708 16709CC="$lt_save_CC" 16710 16711 else 16712 tagname="" 16713 fi 16714 ;; 16715 16716 GCJ) 16717 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16718 16719 16720# Source file extension for Java test sources. 16721ac_ext=java 16722 16723# Object file extension for compiled Java test sources. 16724objext=o 16725objext_GCJ=$objext 16726 16727# Code to be used in simple compile tests 16728lt_simple_compile_test_code="class foo {}" 16729 16730# Code to be used in simple link tests 16731lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16732 16733# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16734 16735# If no C compiler was specified, use CC. 16736LTCC=${LTCC-"$CC"} 16737 16738# If no C compiler flags were specified, use CFLAGS. 16739LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16740 16741# Allow CC to be a program name with arguments. 16742compiler=$CC 16743 16744 16745# save warnings/boilerplate of simple test code 16746ac_outfile=conftest.$ac_objext 16747echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16748eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16749_lt_compiler_boilerplate=`cat conftest.err` 16750$rm conftest* 16751 16752ac_outfile=conftest.$ac_objext 16753echo "$lt_simple_link_test_code" >conftest.$ac_ext 16754eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16755_lt_linker_boilerplate=`cat conftest.err` 16756$rm -r conftest* 16757 16758 16759# Allow CC to be a program name with arguments. 16760lt_save_CC="$CC" 16761CC=${GCJ-"gcj"} 16762compiler=$CC 16763compiler_GCJ=$CC 16764for cc_temp in $compiler""; do 16765 case $cc_temp in 16766 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16767 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16768 \-*) ;; 16769 *) break;; 16770 esac 16771done 16772cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16773 16774 16775# GCJ did not exist at the time GCC didn't implicitly link libc in. 16776archive_cmds_need_lc_GCJ=no 16777 16778old_archive_cmds_GCJ=$old_archive_cmds 16779 16780 16781lt_prog_compiler_no_builtin_flag_GCJ= 16782 16783if test "$GCC" = yes; then 16784 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16785 16786 16787{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16788echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16789if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16790 echo $ECHO_N "(cached) $ECHO_C" >&6 16791else 16792 lt_cv_prog_compiler_rtti_exceptions=no 16793 ac_outfile=conftest.$ac_objext 16794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16795 lt_compiler_flag="-fno-rtti -fno-exceptions" 16796 # Insert the option either (1) after the last *FLAGS variable, or 16797 # (2) before a word containing "conftest.", or (3) at the end. 16798 # Note that $ac_compile itself does not contain backslashes and begins 16799 # with a dollar sign (not a hyphen), so the echo should work correctly. 16800 # The option is referenced via a variable to avoid confusing sed. 16801 lt_compile=`echo "$ac_compile" | $SED \ 16802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16804 -e 's:$: $lt_compiler_flag:'` 16805 (eval echo "\"\$as_me:16805: $lt_compile\"" >&5) 16806 (eval "$lt_compile" 2>conftest.err) 16807 ac_status=$? 16808 cat conftest.err >&5 16809 echo "$as_me:16809: \$? = $ac_status" >&5 16810 if (exit $ac_status) && test -s "$ac_outfile"; then 16811 # The compiler can only warn and ignore the option if not recognized 16812 # So say no if there are warnings other than the usual output. 16813 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16816 lt_cv_prog_compiler_rtti_exceptions=yes 16817 fi 16818 fi 16819 $rm conftest* 16820 16821fi 16822{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16823echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16824 16825if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16826 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16827else 16828 : 16829fi 16830 16831fi 16832 16833lt_prog_compiler_wl_GCJ= 16834lt_prog_compiler_pic_GCJ= 16835lt_prog_compiler_static_GCJ= 16836 16837{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16838echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16839 16840 if test "$GCC" = yes; then 16841 lt_prog_compiler_wl_GCJ='-Wl,' 16842 lt_prog_compiler_static_GCJ='-static' 16843 16844 case $host_os in 16845 aix*) 16846 # All AIX code is PIC. 16847 if test "$host_cpu" = ia64; then 16848 # AIX 5 now supports IA64 processor 16849 lt_prog_compiler_static_GCJ='-Bstatic' 16850 fi 16851 ;; 16852 16853 amigaos*) 16854 # FIXME: we need at least 68020 code to build shared libraries, but 16855 # adding the `-m68020' flag to GCC prevents building anything better, 16856 # like `-m68040'. 16857 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16858 ;; 16859 16860 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16861 # PIC is the default for these OSes. 16862 ;; 16863 16864 mingw* | cygwin* | pw32* | os2*) 16865 # This hack is so that the source file can tell whether it is being 16866 # built for inclusion in a dll (and should export symbols for example). 16867 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16868 # (--disable-auto-import) libraries 16869 16870 ;; 16871 16872 darwin* | rhapsody*) 16873 # PIC is the default on this platform 16874 # Common symbols not allowed in MH_DYLIB files 16875 lt_prog_compiler_pic_GCJ='-fno-common' 16876 ;; 16877 16878 interix[3-9]*) 16879 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16880 # Instead, we relocate shared libraries at runtime. 16881 ;; 16882 16883 msdosdjgpp*) 16884 # Just because we use GCC doesn't mean we suddenly get shared libraries 16885 # on systems that don't support them. 16886 lt_prog_compiler_can_build_shared_GCJ=no 16887 enable_shared=no 16888 ;; 16889 16890 sysv4*MP*) 16891 if test -d /usr/nec; then 16892 lt_prog_compiler_pic_GCJ=-Kconform_pic 16893 fi 16894 ;; 16895 16896 hpux*) 16897 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16898 # not for PA HP-UX. 16899 case $host_cpu in 16900 hppa*64*|ia64*) 16901 # +Z the default 16902 ;; 16903 *) 16904 lt_prog_compiler_pic_GCJ='-fPIC' 16905 ;; 16906 esac 16907 ;; 16908 16909 *) 16910 lt_prog_compiler_pic_GCJ='-fPIC' 16911 ;; 16912 esac 16913 else 16914 # PORTME Check for flag to pass linker flags through the system compiler. 16915 case $host_os in 16916 aix*) 16917 lt_prog_compiler_wl_GCJ='-Wl,' 16918 if test "$host_cpu" = ia64; then 16919 # AIX 5 now supports IA64 processor 16920 lt_prog_compiler_static_GCJ='-Bstatic' 16921 else 16922 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16923 fi 16924 ;; 16925 darwin*) 16926 # PIC is the default on this platform 16927 # Common symbols not allowed in MH_DYLIB files 16928 case $cc_basename in 16929 xlc*) 16930 lt_prog_compiler_pic_GCJ='-qnocommon' 16931 lt_prog_compiler_wl_GCJ='-Wl,' 16932 ;; 16933 esac 16934 ;; 16935 16936 mingw* | cygwin* | pw32* | os2*) 16937 # This hack is so that the source file can tell whether it is being 16938 # built for inclusion in a dll (and should export symbols for example). 16939 16940 ;; 16941 16942 hpux9* | hpux10* | hpux11*) 16943 lt_prog_compiler_wl_GCJ='-Wl,' 16944 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16945 # not for PA HP-UX. 16946 case $host_cpu in 16947 hppa*64*|ia64*) 16948 # +Z the default 16949 ;; 16950 *) 16951 lt_prog_compiler_pic_GCJ='+Z' 16952 ;; 16953 esac 16954 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16955 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16956 ;; 16957 16958 irix5* | irix6* | nonstopux*) 16959 lt_prog_compiler_wl_GCJ='-Wl,' 16960 # PIC (with -KPIC) is the default. 16961 lt_prog_compiler_static_GCJ='-non_shared' 16962 ;; 16963 16964 newsos6) 16965 lt_prog_compiler_pic_GCJ='-KPIC' 16966 lt_prog_compiler_static_GCJ='-Bstatic' 16967 ;; 16968 16969 linux* | k*bsd*-gnu) 16970 case $cc_basename in 16971 icc* | ecc*) 16972 lt_prog_compiler_wl_GCJ='-Wl,' 16973 lt_prog_compiler_pic_GCJ='-KPIC' 16974 lt_prog_compiler_static_GCJ='-static' 16975 ;; 16976 pgcc* | pgf77* | pgf90* | pgf95*) 16977 # Portland Group compilers (*not* the Pentium gcc compiler, 16978 # which looks to be a dead project) 16979 lt_prog_compiler_wl_GCJ='-Wl,' 16980 lt_prog_compiler_pic_GCJ='-fpic' 16981 lt_prog_compiler_static_GCJ='-Bstatic' 16982 ;; 16983 ccc*) 16984 lt_prog_compiler_wl_GCJ='-Wl,' 16985 # All Alpha code is PIC. 16986 lt_prog_compiler_static_GCJ='-non_shared' 16987 ;; 16988 *) 16989 case `$CC -V 2>&1 | sed 5q` in 16990 *Sun\ C*) 16991 # Sun C 5.9 16992 lt_prog_compiler_pic_GCJ='-KPIC' 16993 lt_prog_compiler_static_GCJ='-Bstatic' 16994 lt_prog_compiler_wl_GCJ='-Wl,' 16995 ;; 16996 *Sun\ F*) 16997 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16998 lt_prog_compiler_pic_GCJ='-KPIC' 16999 lt_prog_compiler_static_GCJ='-Bstatic' 17000 lt_prog_compiler_wl_GCJ='' 17001 ;; 17002 esac 17003 ;; 17004 esac 17005 ;; 17006 17007 osf3* | osf4* | osf5*) 17008 lt_prog_compiler_wl_GCJ='-Wl,' 17009 # All OSF/1 code is PIC. 17010 lt_prog_compiler_static_GCJ='-non_shared' 17011 ;; 17012 17013 rdos*) 17014 lt_prog_compiler_static_GCJ='-non_shared' 17015 ;; 17016 17017 solaris*) 17018 lt_prog_compiler_pic_GCJ='-KPIC' 17019 lt_prog_compiler_static_GCJ='-Bstatic' 17020 case $cc_basename in 17021 f77* | f90* | f95*) 17022 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17023 *) 17024 lt_prog_compiler_wl_GCJ='-Wl,';; 17025 esac 17026 ;; 17027 17028 sunos4*) 17029 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17030 lt_prog_compiler_pic_GCJ='-PIC' 17031 lt_prog_compiler_static_GCJ='-Bstatic' 17032 ;; 17033 17034 sysv4 | sysv4.2uw2* | sysv4.3*) 17035 lt_prog_compiler_wl_GCJ='-Wl,' 17036 lt_prog_compiler_pic_GCJ='-KPIC' 17037 lt_prog_compiler_static_GCJ='-Bstatic' 17038 ;; 17039 17040 sysv4*MP*) 17041 if test -d /usr/nec ;then 17042 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17043 lt_prog_compiler_static_GCJ='-Bstatic' 17044 fi 17045 ;; 17046 17047 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17048 lt_prog_compiler_wl_GCJ='-Wl,' 17049 lt_prog_compiler_pic_GCJ='-KPIC' 17050 lt_prog_compiler_static_GCJ='-Bstatic' 17051 ;; 17052 17053 unicos*) 17054 lt_prog_compiler_wl_GCJ='-Wl,' 17055 lt_prog_compiler_can_build_shared_GCJ=no 17056 ;; 17057 17058 uts4*) 17059 lt_prog_compiler_pic_GCJ='-pic' 17060 lt_prog_compiler_static_GCJ='-Bstatic' 17061 ;; 17062 17063 *) 17064 lt_prog_compiler_can_build_shared_GCJ=no 17065 ;; 17066 esac 17067 fi 17068 17069{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17070echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 17071 17072# 17073# Check to make sure the PIC flag actually works. 17074# 17075if test -n "$lt_prog_compiler_pic_GCJ"; then 17076 17077{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17078echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 17079if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17080 echo $ECHO_N "(cached) $ECHO_C" >&6 17081else 17082 lt_cv_prog_compiler_pic_works_GCJ=no 17083 ac_outfile=conftest.$ac_objext 17084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17085 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17086 # Insert the option either (1) after the last *FLAGS variable, or 17087 # (2) before a word containing "conftest.", or (3) at the end. 17088 # Note that $ac_compile itself does not contain backslashes and begins 17089 # with a dollar sign (not a hyphen), so the echo should work correctly. 17090 # The option is referenced via a variable to avoid confusing sed. 17091 lt_compile=`echo "$ac_compile" | $SED \ 17092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17094 -e 's:$: $lt_compiler_flag:'` 17095 (eval echo "\"\$as_me:17095: $lt_compile\"" >&5) 17096 (eval "$lt_compile" 2>conftest.err) 17097 ac_status=$? 17098 cat conftest.err >&5 17099 echo "$as_me:17099: \$? = $ac_status" >&5 17100 if (exit $ac_status) && test -s "$ac_outfile"; then 17101 # The compiler can only warn and ignore the option if not recognized 17102 # So say no if there are warnings other than the usual output. 17103 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17105 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17106 lt_cv_prog_compiler_pic_works_GCJ=yes 17107 fi 17108 fi 17109 $rm conftest* 17110 17111fi 17112{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17113echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17114 17115if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17116 case $lt_prog_compiler_pic_GCJ in 17117 "" | " "*) ;; 17118 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17119 esac 17120else 17121 lt_prog_compiler_pic_GCJ= 17122 lt_prog_compiler_can_build_shared_GCJ=no 17123fi 17124 17125fi 17126case $host_os in 17127 # For platforms which do not support PIC, -DPIC is meaningless: 17128 *djgpp*) 17129 lt_prog_compiler_pic_GCJ= 17130 ;; 17131 *) 17132 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17133 ;; 17134esac 17135 17136# 17137# Check to make sure the static flag actually works. 17138# 17139wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17140{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17141echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17142if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17143 echo $ECHO_N "(cached) $ECHO_C" >&6 17144else 17145 lt_cv_prog_compiler_static_works_GCJ=no 17146 save_LDFLAGS="$LDFLAGS" 17147 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17148 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17149 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17150 # The linker can only warn and ignore the option if not recognized 17151 # So say no if there are warnings 17152 if test -s conftest.err; then 17153 # Append any errors to the config.log. 17154 cat conftest.err 1>&5 17155 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17157 if diff conftest.exp conftest.er2 >/dev/null; then 17158 lt_cv_prog_compiler_static_works_GCJ=yes 17159 fi 17160 else 17161 lt_cv_prog_compiler_static_works_GCJ=yes 17162 fi 17163 fi 17164 $rm -r conftest* 17165 LDFLAGS="$save_LDFLAGS" 17166 17167fi 17168{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17169echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17170 17171if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17172 : 17173else 17174 lt_prog_compiler_static_GCJ= 17175fi 17176 17177 17178{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17179echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17180if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17181 echo $ECHO_N "(cached) $ECHO_C" >&6 17182else 17183 lt_cv_prog_compiler_c_o_GCJ=no 17184 $rm -r conftest 2>/dev/null 17185 mkdir conftest 17186 cd conftest 17187 mkdir out 17188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17189 17190 lt_compiler_flag="-o out/conftest2.$ac_objext" 17191 # Insert the option either (1) after the last *FLAGS variable, or 17192 # (2) before a word containing "conftest.", or (3) at the end. 17193 # Note that $ac_compile itself does not contain backslashes and begins 17194 # with a dollar sign (not a hyphen), so the echo should work correctly. 17195 lt_compile=`echo "$ac_compile" | $SED \ 17196 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17198 -e 's:$: $lt_compiler_flag:'` 17199 (eval echo "\"\$as_me:17199: $lt_compile\"" >&5) 17200 (eval "$lt_compile" 2>out/conftest.err) 17201 ac_status=$? 17202 cat out/conftest.err >&5 17203 echo "$as_me:17203: \$? = $ac_status" >&5 17204 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17205 then 17206 # The compiler can only warn and ignore the option if not recognized 17207 # So say no if there are warnings 17208 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17209 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17210 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17211 lt_cv_prog_compiler_c_o_GCJ=yes 17212 fi 17213 fi 17214 chmod u+w . 2>&5 17215 $rm conftest* 17216 # SGI C++ compiler will create directory out/ii_files/ for 17217 # template instantiation 17218 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17219 $rm out/* && rmdir out 17220 cd .. 17221 rmdir conftest 17222 $rm conftest* 17223 17224fi 17225{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17226echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17227 17228 17229hard_links="nottested" 17230if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17231 # do not overwrite the value of need_locks provided by the user 17232 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17233echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17234 hard_links=yes 17235 $rm conftest* 17236 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17237 touch conftest.a 17238 ln conftest.a conftest.b 2>&5 || hard_links=no 17239 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17240 { echo "$as_me:$LINENO: result: $hard_links" >&5 17241echo "${ECHO_T}$hard_links" >&6; } 17242 if test "$hard_links" = no; then 17243 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17244echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17245 need_locks=warn 17246 fi 17247else 17248 need_locks=no 17249fi 17250 17251{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17252echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17253 17254 runpath_var= 17255 allow_undefined_flag_GCJ= 17256 enable_shared_with_static_runtimes_GCJ=no 17257 archive_cmds_GCJ= 17258 archive_expsym_cmds_GCJ= 17259 old_archive_From_new_cmds_GCJ= 17260 old_archive_from_expsyms_cmds_GCJ= 17261 export_dynamic_flag_spec_GCJ= 17262 whole_archive_flag_spec_GCJ= 17263 thread_safe_flag_spec_GCJ= 17264 hardcode_libdir_flag_spec_GCJ= 17265 hardcode_libdir_flag_spec_ld_GCJ= 17266 hardcode_libdir_separator_GCJ= 17267 hardcode_direct_GCJ=no 17268 hardcode_minus_L_GCJ=no 17269 hardcode_shlibpath_var_GCJ=unsupported 17270 link_all_deplibs_GCJ=unknown 17271 hardcode_automatic_GCJ=no 17272 module_cmds_GCJ= 17273 module_expsym_cmds_GCJ= 17274 always_export_symbols_GCJ=no 17275 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17276 # include_expsyms should be a list of space-separated symbols to be *always* 17277 # included in the symbol list 17278 include_expsyms_GCJ= 17279 # exclude_expsyms can be an extended regexp of symbols to exclude 17280 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17281 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17282 # as well as any symbol that contains `d'. 17283 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17284 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17285 # platforms (ab)use it in PIC code, but their linkers get confused if 17286 # the symbol is explicitly referenced. Since portable code cannot 17287 # rely on this symbol name, it's probably fine to never include it in 17288 # preloaded symbol tables. 17289 # Exclude shared library initialization/finalization symbols. 17290 extract_expsyms_cmds= 17291 # Just being paranoid about ensuring that cc_basename is set. 17292 for cc_temp in $compiler""; do 17293 case $cc_temp in 17294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17296 \-*) ;; 17297 *) break;; 17298 esac 17299done 17300cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17301 17302 case $host_os in 17303 cygwin* | mingw* | pw32*) 17304 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17305 # When not using gcc, we currently assume that we are using 17306 # Microsoft Visual C++. 17307 if test "$GCC" != yes; then 17308 with_gnu_ld=no 17309 fi 17310 ;; 17311 interix*) 17312 # we just hope/assume this is gcc and not c89 (= MSVC++) 17313 with_gnu_ld=yes 17314 ;; 17315 openbsd*) 17316 with_gnu_ld=no 17317 ;; 17318 esac 17319 17320 ld_shlibs_GCJ=yes 17321 if test "$with_gnu_ld" = yes; then 17322 # If archive_cmds runs LD, not CC, wlarc should be empty 17323 wlarc='${wl}' 17324 17325 # Set some defaults for GNU ld with shared library support. These 17326 # are reset later if shared libraries are not supported. Putting them 17327 # here allows them to be overridden if necessary. 17328 runpath_var=LD_RUN_PATH 17329 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17330 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17331 # ancient GNU ld didn't support --whole-archive et. al. 17332 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17333 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17334 else 17335 whole_archive_flag_spec_GCJ= 17336 fi 17337 supports_anon_versioning=no 17338 case `$LD -v 2>/dev/null` in 17339 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17340 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17341 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17342 *\ 2.11.*) ;; # other 2.11 versions 17343 *) supports_anon_versioning=yes ;; 17344 esac 17345 17346 # See if GNU ld supports shared libraries. 17347 case $host_os in 17348 aix[3-9]*) 17349 # On AIX/PPC, the GNU linker is very broken 17350 if test "$host_cpu" != ia64; then 17351 ld_shlibs_GCJ=no 17352 cat <<EOF 1>&2 17353 17354*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17355*** to be unable to reliably create shared libraries on AIX. 17356*** Therefore, libtool is disabling shared libraries support. If you 17357*** really care for shared libraries, you may want to modify your PATH 17358*** so that a non-GNU linker is found, and then restart. 17359 17360EOF 17361 fi 17362 ;; 17363 17364 amigaos*) 17365 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)' 17366 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17367 hardcode_minus_L_GCJ=yes 17368 17369 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17370 # that the semantics of dynamic libraries on AmigaOS, at least up 17371 # to version 4, is to share data among multiple programs linked 17372 # with the same dynamic library. Since this doesn't match the 17373 # behavior of shared libraries on other platforms, we can't use 17374 # them. 17375 ld_shlibs_GCJ=no 17376 ;; 17377 17378 beos*) 17379 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17380 allow_undefined_flag_GCJ=unsupported 17381 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17382 # support --undefined. This deserves some investigation. FIXME 17383 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17384 else 17385 ld_shlibs_GCJ=no 17386 fi 17387 ;; 17388 17389 cygwin* | mingw* | pw32*) 17390 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17391 # as there is no search path for DLLs. 17392 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17393 allow_undefined_flag_GCJ=unsupported 17394 always_export_symbols_GCJ=no 17395 enable_shared_with_static_runtimes_GCJ=yes 17396 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17397 17398 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17399 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17400 # If the export-symbols file already is a .def file (1st line 17401 # is EXPORTS), use it as is; otherwise, prepend... 17402 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17403 cp $export_symbols $output_objdir/$soname.def; 17404 else 17405 echo EXPORTS > $output_objdir/$soname.def; 17406 cat $export_symbols >> $output_objdir/$soname.def; 17407 fi~ 17408 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17409 else 17410 ld_shlibs_GCJ=no 17411 fi 17412 ;; 17413 17414 interix[3-9]*) 17415 hardcode_direct_GCJ=no 17416 hardcode_shlibpath_var_GCJ=no 17417 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17418 export_dynamic_flag_spec_GCJ='${wl}-E' 17419 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17420 # Instead, shared libraries are loaded at an image base (0x10000000 by 17421 # default) and relocated if they conflict, which is a slow very memory 17422 # consuming and fragmenting process. To avoid this, we pick a random, 17423 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17424 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17425 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' 17426 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' 17427 ;; 17428 17429 gnu* | linux* | k*bsd*-gnu) 17430 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17431 tmp_addflag= 17432 case $cc_basename,$host_cpu in 17433 pgcc*) # Portland Group C compiler 17434 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' 17435 tmp_addflag=' $pic_flag' 17436 ;; 17437 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17438 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' 17439 tmp_addflag=' $pic_flag -Mnomain' ;; 17440 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17441 tmp_addflag=' -i_dynamic' ;; 17442 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17443 tmp_addflag=' -i_dynamic -nofor_main' ;; 17444 ifc* | ifort*) # Intel Fortran compiler 17445 tmp_addflag=' -nofor_main' ;; 17446 esac 17447 case `$CC -V 2>&1 | sed 5q` in 17448 *Sun\ C*) # Sun C 5.9 17449 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' 17450 tmp_sharedflag='-G' ;; 17451 *Sun\ F*) # Sun Fortran 8.3 17452 tmp_sharedflag='-G' ;; 17453 *) 17454 tmp_sharedflag='-shared' ;; 17455 esac 17456 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17457 17458 if test $supports_anon_versioning = yes; then 17459 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17461 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17462 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17463 fi 17464 link_all_deplibs_GCJ=no 17465 else 17466 ld_shlibs_GCJ=no 17467 fi 17468 ;; 17469 17470 netbsd* | netbsdelf*-gnu) 17471 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17472 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17473 wlarc= 17474 else 17475 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17476 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17477 fi 17478 ;; 17479 17480 solaris*) 17481 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17482 ld_shlibs_GCJ=no 17483 cat <<EOF 1>&2 17484 17485*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17486*** create shared libraries on Solaris systems. Therefore, libtool 17487*** is disabling shared libraries support. We urge you to upgrade GNU 17488*** binutils to release 2.9.1 or newer. Another option is to modify 17489*** your PATH or compiler configuration so that the native linker is 17490*** used, and then restart. 17491 17492EOF 17493 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17494 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17495 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17496 else 17497 ld_shlibs_GCJ=no 17498 fi 17499 ;; 17500 17501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17502 case `$LD -v 2>&1` in 17503 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17504 ld_shlibs_GCJ=no 17505 cat <<_LT_EOF 1>&2 17506 17507*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17508*** reliably create shared libraries on SCO systems. Therefore, libtool 17509*** is disabling shared libraries support. We urge you to upgrade GNU 17510*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17511*** your PATH or compiler configuration so that the native linker is 17512*** used, and then restart. 17513 17514_LT_EOF 17515 ;; 17516 *) 17517 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17518 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17519 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17520 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17521 else 17522 ld_shlibs_GCJ=no 17523 fi 17524 ;; 17525 esac 17526 ;; 17527 17528 sunos4*) 17529 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17530 wlarc= 17531 hardcode_direct_GCJ=yes 17532 hardcode_shlibpath_var_GCJ=no 17533 ;; 17534 17535 *) 17536 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17537 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17538 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17539 else 17540 ld_shlibs_GCJ=no 17541 fi 17542 ;; 17543 esac 17544 17545 if test "$ld_shlibs_GCJ" = no; then 17546 runpath_var= 17547 hardcode_libdir_flag_spec_GCJ= 17548 export_dynamic_flag_spec_GCJ= 17549 whole_archive_flag_spec_GCJ= 17550 fi 17551 else 17552 # PORTME fill in a description of your system's linker (not GNU ld) 17553 case $host_os in 17554 aix3*) 17555 allow_undefined_flag_GCJ=unsupported 17556 always_export_symbols_GCJ=yes 17557 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' 17558 # Note: this linker hardcodes the directories in LIBPATH if there 17559 # are no directories specified by -L. 17560 hardcode_minus_L_GCJ=yes 17561 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17562 # Neither direct hardcoding nor static linking is supported with a 17563 # broken collect2. 17564 hardcode_direct_GCJ=unsupported 17565 fi 17566 ;; 17567 17568 aix[4-9]*) 17569 if test "$host_cpu" = ia64; then 17570 # On IA64, the linker does run time linking by default, so we don't 17571 # have to do anything special. 17572 aix_use_runtimelinking=no 17573 exp_sym_flag='-Bexport' 17574 no_entry_flag="" 17575 else 17576 # If we're using GNU nm, then we don't want the "-C" option. 17577 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17578 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17579 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' 17580 else 17581 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' 17582 fi 17583 aix_use_runtimelinking=no 17584 17585 # Test if we are trying to use run time linking or normal 17586 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17587 # need to do runtime linking. 17588 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17589 for ld_flag in $LDFLAGS; do 17590 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17591 aix_use_runtimelinking=yes 17592 break 17593 fi 17594 done 17595 ;; 17596 esac 17597 17598 exp_sym_flag='-bexport' 17599 no_entry_flag='-bnoentry' 17600 fi 17601 17602 # When large executables or shared objects are built, AIX ld can 17603 # have problems creating the table of contents. If linking a library 17604 # or program results in "error TOC overflow" add -mminimal-toc to 17605 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17606 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17607 17608 archive_cmds_GCJ='' 17609 hardcode_direct_GCJ=yes 17610 hardcode_libdir_separator_GCJ=':' 17611 link_all_deplibs_GCJ=yes 17612 17613 if test "$GCC" = yes; then 17614 case $host_os in aix4.[012]|aix4.[012].*) 17615 # We only want to do this on AIX 4.2 and lower, the check 17616 # below for broken collect2 doesn't work under 4.3+ 17617 collect2name=`${CC} -print-prog-name=collect2` 17618 if test -f "$collect2name" && \ 17619 strings "$collect2name" | grep resolve_lib_name >/dev/null 17620 then 17621 # We have reworked collect2 17622 : 17623 else 17624 # We have old collect2 17625 hardcode_direct_GCJ=unsupported 17626 # It fails to find uninstalled libraries when the uninstalled 17627 # path is not listed in the libpath. Setting hardcode_minus_L 17628 # to unsupported forces relinking 17629 hardcode_minus_L_GCJ=yes 17630 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17631 hardcode_libdir_separator_GCJ= 17632 fi 17633 ;; 17634 esac 17635 shared_flag='-shared' 17636 if test "$aix_use_runtimelinking" = yes; then 17637 shared_flag="$shared_flag "'${wl}-G' 17638 fi 17639 else 17640 # not using gcc 17641 if test "$host_cpu" = ia64; then 17642 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17643 # chokes on -Wl,-G. The following line is correct: 17644 shared_flag='-G' 17645 else 17646 if test "$aix_use_runtimelinking" = yes; then 17647 shared_flag='${wl}-G' 17648 else 17649 shared_flag='${wl}-bM:SRE' 17650 fi 17651 fi 17652 fi 17653 17654 # It seems that -bexpall does not export symbols beginning with 17655 # underscore (_), so it is better to generate a list of symbols to export. 17656 always_export_symbols_GCJ=yes 17657 if test "$aix_use_runtimelinking" = yes; then 17658 # Warning - without using the other runtime loading flags (-brtl), 17659 # -berok will link without error, but may produce a broken library. 17660 allow_undefined_flag_GCJ='-berok' 17661 # Determine the default libpath from the value encoded in an empty executable. 17662 cat >conftest.$ac_ext <<_ACEOF 17663/* confdefs.h. */ 17664_ACEOF 17665cat confdefs.h >>conftest.$ac_ext 17666cat >>conftest.$ac_ext <<_ACEOF 17667/* end confdefs.h. */ 17668 17669int 17670main () 17671{ 17672 17673 ; 17674 return 0; 17675} 17676_ACEOF 17677rm -f conftest.$ac_objext conftest$ac_exeext 17678if { (ac_try="$ac_link" 17679case "(($ac_try" in 17680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17681 *) ac_try_echo=$ac_try;; 17682esac 17683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17684 (eval "$ac_link") 2>conftest.er1 17685 ac_status=$? 17686 grep -v '^ *+' conftest.er1 >conftest.err 17687 rm -f conftest.er1 17688 cat conftest.err >&5 17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17690 (exit $ac_status); } && { 17691 test -z "$ac_c_werror_flag" || 17692 test ! -s conftest.err 17693 } && test -s conftest$ac_exeext && 17694 $as_test_x conftest$ac_exeext; then 17695 17696lt_aix_libpath_sed=' 17697 /Import File Strings/,/^$/ { 17698 /^0/ { 17699 s/^0 *\(.*\)$/\1/ 17700 p 17701 } 17702 }' 17703aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17704# Check for a 64-bit object if we didn't find anything. 17705if test -z "$aix_libpath"; then 17706 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17707fi 17708else 17709 echo "$as_me: failed program was:" >&5 17710sed 's/^/| /' conftest.$ac_ext >&5 17711 17712 17713fi 17714 17715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17716 conftest$ac_exeext conftest.$ac_ext 17717if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17718 17719 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17720 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" 17721 else 17722 if test "$host_cpu" = ia64; then 17723 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17724 allow_undefined_flag_GCJ="-z nodefs" 17725 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" 17726 else 17727 # Determine the default libpath from the value encoded in an empty executable. 17728 cat >conftest.$ac_ext <<_ACEOF 17729/* confdefs.h. */ 17730_ACEOF 17731cat confdefs.h >>conftest.$ac_ext 17732cat >>conftest.$ac_ext <<_ACEOF 17733/* end confdefs.h. */ 17734 17735int 17736main () 17737{ 17738 17739 ; 17740 return 0; 17741} 17742_ACEOF 17743rm -f conftest.$ac_objext conftest$ac_exeext 17744if { (ac_try="$ac_link" 17745case "(($ac_try" in 17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17747 *) ac_try_echo=$ac_try;; 17748esac 17749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17750 (eval "$ac_link") 2>conftest.er1 17751 ac_status=$? 17752 grep -v '^ *+' conftest.er1 >conftest.err 17753 rm -f conftest.er1 17754 cat conftest.err >&5 17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17756 (exit $ac_status); } && { 17757 test -z "$ac_c_werror_flag" || 17758 test ! -s conftest.err 17759 } && test -s conftest$ac_exeext && 17760 $as_test_x conftest$ac_exeext; then 17761 17762lt_aix_libpath_sed=' 17763 /Import File Strings/,/^$/ { 17764 /^0/ { 17765 s/^0 *\(.*\)$/\1/ 17766 p 17767 } 17768 }' 17769aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17770# Check for a 64-bit object if we didn't find anything. 17771if test -z "$aix_libpath"; then 17772 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17773fi 17774else 17775 echo "$as_me: failed program was:" >&5 17776sed 's/^/| /' conftest.$ac_ext >&5 17777 17778 17779fi 17780 17781rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17782 conftest$ac_exeext conftest.$ac_ext 17783if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17784 17785 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17786 # Warning - without using the other run time loading flags, 17787 # -berok will link without error, but may produce a broken library. 17788 no_undefined_flag_GCJ=' ${wl}-bernotok' 17789 allow_undefined_flag_GCJ=' ${wl}-berok' 17790 # Exported symbols can be pulled into shared objects from archives 17791 whole_archive_flag_spec_GCJ='$convenience' 17792 archive_cmds_need_lc_GCJ=yes 17793 # This is similar to how AIX traditionally builds its shared libraries. 17794 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' 17795 fi 17796 fi 17797 ;; 17798 17799 amigaos*) 17800 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)' 17801 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17802 hardcode_minus_L_GCJ=yes 17803 # see comment about different semantics on the GNU ld section 17804 ld_shlibs_GCJ=no 17805 ;; 17806 17807 bsdi[45]*) 17808 export_dynamic_flag_spec_GCJ=-rdynamic 17809 ;; 17810 17811 cygwin* | mingw* | pw32*) 17812 # When not using gcc, we currently assume that we are using 17813 # Microsoft Visual C++. 17814 # hardcode_libdir_flag_spec is actually meaningless, as there is 17815 # no search path for DLLs. 17816 hardcode_libdir_flag_spec_GCJ=' ' 17817 allow_undefined_flag_GCJ=unsupported 17818 # Tell ltmain to make .lib files, not .a files. 17819 libext=lib 17820 # Tell ltmain to make .dll files, not .so files. 17821 shrext_cmds=".dll" 17822 # FIXME: Setting linknames here is a bad hack. 17823 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17824 # The linker will automatically build a .lib file if we build a DLL. 17825 old_archive_From_new_cmds_GCJ='true' 17826 # FIXME: Should let the user specify the lib program. 17827 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17828 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17829 enable_shared_with_static_runtimes_GCJ=yes 17830 ;; 17831 17832 darwin* | rhapsody*) 17833 case $host_os in 17834 rhapsody* | darwin1.[012]) 17835 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17836 ;; 17837 *) # Darwin 1.3 on 17838 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17839 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17840 else 17841 case ${MACOSX_DEPLOYMENT_TARGET} in 17842 10.[012]) 17843 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17844 ;; 17845 10.*) 17846 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17847 ;; 17848 esac 17849 fi 17850 ;; 17851 esac 17852 archive_cmds_need_lc_GCJ=no 17853 hardcode_direct_GCJ=no 17854 hardcode_automatic_GCJ=yes 17855 hardcode_shlibpath_var_GCJ=unsupported 17856 whole_archive_flag_spec_GCJ='' 17857 link_all_deplibs_GCJ=yes 17858 if test "$GCC" = yes ; then 17859 output_verbose_link_cmd='echo' 17860 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}" 17861 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17862 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}" 17863 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}" 17864 else 17865 case $cc_basename in 17866 xlc*) 17867 output_verbose_link_cmd='echo' 17868 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17869 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17870 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17871 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}' 17872 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}' 17873 ;; 17874 *) 17875 ld_shlibs_GCJ=no 17876 ;; 17877 esac 17878 fi 17879 ;; 17880 17881 dgux*) 17882 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17883 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17884 hardcode_shlibpath_var_GCJ=no 17885 ;; 17886 17887 freebsd1*) 17888 ld_shlibs_GCJ=no 17889 ;; 17890 17891 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17892 # support. Future versions do this automatically, but an explicit c++rt0.o 17893 # does not break anything, and helps significantly (at the cost of a little 17894 # extra space). 17895 freebsd2.2*) 17896 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17897 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17898 hardcode_direct_GCJ=yes 17899 hardcode_shlibpath_var_GCJ=no 17900 ;; 17901 17902 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17903 freebsd2*) 17904 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17905 hardcode_direct_GCJ=yes 17906 hardcode_minus_L_GCJ=yes 17907 hardcode_shlibpath_var_GCJ=no 17908 ;; 17909 17910 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17911 freebsd* | dragonfly*) 17912 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17913 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17914 hardcode_direct_GCJ=yes 17915 hardcode_shlibpath_var_GCJ=no 17916 ;; 17917 17918 hpux9*) 17919 if test "$GCC" = yes; then 17920 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' 17921 else 17922 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' 17923 fi 17924 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17925 hardcode_libdir_separator_GCJ=: 17926 hardcode_direct_GCJ=yes 17927 17928 # hardcode_minus_L: Not really in the search PATH, 17929 # but as the default location of the library. 17930 hardcode_minus_L_GCJ=yes 17931 export_dynamic_flag_spec_GCJ='${wl}-E' 17932 ;; 17933 17934 hpux10*) 17935 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17936 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17937 else 17938 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17939 fi 17940 if test "$with_gnu_ld" = no; then 17941 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17942 hardcode_libdir_separator_GCJ=: 17943 17944 hardcode_direct_GCJ=yes 17945 export_dynamic_flag_spec_GCJ='${wl}-E' 17946 17947 # hardcode_minus_L: Not really in the search PATH, 17948 # but as the default location of the library. 17949 hardcode_minus_L_GCJ=yes 17950 fi 17951 ;; 17952 17953 hpux11*) 17954 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17955 case $host_cpu in 17956 hppa*64*) 17957 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17958 ;; 17959 ia64*) 17960 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17961 ;; 17962 *) 17963 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17964 ;; 17965 esac 17966 else 17967 case $host_cpu in 17968 hppa*64*) 17969 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17970 ;; 17971 ia64*) 17972 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17973 ;; 17974 *) 17975 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17976 ;; 17977 esac 17978 fi 17979 if test "$with_gnu_ld" = no; then 17980 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17981 hardcode_libdir_separator_GCJ=: 17982 17983 case $host_cpu in 17984 hppa*64*|ia64*) 17985 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17986 hardcode_direct_GCJ=no 17987 hardcode_shlibpath_var_GCJ=no 17988 ;; 17989 *) 17990 hardcode_direct_GCJ=yes 17991 export_dynamic_flag_spec_GCJ='${wl}-E' 17992 17993 # hardcode_minus_L: Not really in the search PATH, 17994 # but as the default location of the library. 17995 hardcode_minus_L_GCJ=yes 17996 ;; 17997 esac 17998 fi 17999 ;; 18000 18001 irix5* | irix6* | nonstopux*) 18002 if test "$GCC" = yes; then 18003 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' 18004 else 18005 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' 18006 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18007 fi 18008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18009 hardcode_libdir_separator_GCJ=: 18010 link_all_deplibs_GCJ=yes 18011 ;; 18012 18013 netbsd* | netbsdelf*-gnu) 18014 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18015 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18016 else 18017 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18018 fi 18019 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18020 hardcode_direct_GCJ=yes 18021 hardcode_shlibpath_var_GCJ=no 18022 ;; 18023 18024 newsos6) 18025 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18026 hardcode_direct_GCJ=yes 18027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18028 hardcode_libdir_separator_GCJ=: 18029 hardcode_shlibpath_var_GCJ=no 18030 ;; 18031 18032 openbsd*) 18033 if test -f /usr/libexec/ld.so; then 18034 hardcode_direct_GCJ=yes 18035 hardcode_shlibpath_var_GCJ=no 18036 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18037 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18038 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18039 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18040 export_dynamic_flag_spec_GCJ='${wl}-E' 18041 else 18042 case $host_os in 18043 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18044 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18045 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18046 ;; 18047 *) 18048 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18049 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18050 ;; 18051 esac 18052 fi 18053 else 18054 ld_shlibs_GCJ=no 18055 fi 18056 ;; 18057 18058 os2*) 18059 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18060 hardcode_minus_L_GCJ=yes 18061 allow_undefined_flag_GCJ=unsupported 18062 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' 18063 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18064 ;; 18065 18066 osf3*) 18067 if test "$GCC" = yes; then 18068 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18069 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' 18070 else 18071 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18072 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' 18073 fi 18074 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18075 hardcode_libdir_separator_GCJ=: 18076 ;; 18077 18078 osf4* | osf5*) # as osf3* with the addition of -msym flag 18079 if test "$GCC" = yes; then 18080 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18081 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' 18082 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18083 else 18084 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18085 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' 18086 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~ 18087 $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' 18088 18089 # Both c and cxx compiler support -rpath directly 18090 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18091 fi 18092 hardcode_libdir_separator_GCJ=: 18093 ;; 18094 18095 solaris*) 18096 no_undefined_flag_GCJ=' -z text' 18097 if test "$GCC" = yes; then 18098 wlarc='${wl}' 18099 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18100 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18101 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18102 else 18103 wlarc='' 18104 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18105 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18106 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18107 fi 18108 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18109 hardcode_shlibpath_var_GCJ=no 18110 case $host_os in 18111 solaris2.[0-5] | solaris2.[0-5].*) ;; 18112 *) 18113 # The compiler driver will combine and reorder linker options, 18114 # but understands `-z linker_flag'. GCC discards it without `$wl', 18115 # but is careful enough not to reorder. 18116 # Supported since Solaris 2.6 (maybe 2.5.1?) 18117 if test "$GCC" = yes; then 18118 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18119 else 18120 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18121 fi 18122 ;; 18123 esac 18124 link_all_deplibs_GCJ=yes 18125 ;; 18126 18127 sunos4*) 18128 if test "x$host_vendor" = xsequent; then 18129 # Use $CC to link under sequent, because it throws in some extra .o 18130 # files that make .init and .fini sections work. 18131 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18132 else 18133 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18134 fi 18135 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18136 hardcode_direct_GCJ=yes 18137 hardcode_minus_L_GCJ=yes 18138 hardcode_shlibpath_var_GCJ=no 18139 ;; 18140 18141 sysv4) 18142 case $host_vendor in 18143 sni) 18144 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18145 hardcode_direct_GCJ=yes # is this really true??? 18146 ;; 18147 siemens) 18148 ## LD is ld it makes a PLAMLIB 18149 ## CC just makes a GrossModule. 18150 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18151 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18152 hardcode_direct_GCJ=no 18153 ;; 18154 motorola) 18155 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18156 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18157 ;; 18158 esac 18159 runpath_var='LD_RUN_PATH' 18160 hardcode_shlibpath_var_GCJ=no 18161 ;; 18162 18163 sysv4.3*) 18164 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18165 hardcode_shlibpath_var_GCJ=no 18166 export_dynamic_flag_spec_GCJ='-Bexport' 18167 ;; 18168 18169 sysv4*MP*) 18170 if test -d /usr/nec; then 18171 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18172 hardcode_shlibpath_var_GCJ=no 18173 runpath_var=LD_RUN_PATH 18174 hardcode_runpath_var=yes 18175 ld_shlibs_GCJ=yes 18176 fi 18177 ;; 18178 18179 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18180 no_undefined_flag_GCJ='${wl}-z,text' 18181 archive_cmds_need_lc_GCJ=no 18182 hardcode_shlibpath_var_GCJ=no 18183 runpath_var='LD_RUN_PATH' 18184 18185 if test "$GCC" = yes; then 18186 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18187 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18188 else 18189 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18190 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18191 fi 18192 ;; 18193 18194 sysv5* | sco3.2v5* | sco5v6*) 18195 # Note: We can NOT use -z defs as we might desire, because we do not 18196 # link with -lc, and that would cause any symbols used from libc to 18197 # always be unresolved, which means just about no library would 18198 # ever link correctly. If we're not using GNU ld we use -z text 18199 # though, which does catch some bad symbols but isn't as heavy-handed 18200 # as -z defs. 18201 no_undefined_flag_GCJ='${wl}-z,text' 18202 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18203 archive_cmds_need_lc_GCJ=no 18204 hardcode_shlibpath_var_GCJ=no 18205 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18206 hardcode_libdir_separator_GCJ=':' 18207 link_all_deplibs_GCJ=yes 18208 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18209 runpath_var='LD_RUN_PATH' 18210 18211 if test "$GCC" = yes; then 18212 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18213 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18214 else 18215 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18216 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18217 fi 18218 ;; 18219 18220 uts4*) 18221 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18222 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18223 hardcode_shlibpath_var_GCJ=no 18224 ;; 18225 18226 *) 18227 ld_shlibs_GCJ=no 18228 ;; 18229 esac 18230 fi 18231 18232{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18233echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18234test "$ld_shlibs_GCJ" = no && can_build_shared=no 18235 18236# 18237# Do we need to explicitly link libc? 18238# 18239case "x$archive_cmds_need_lc_GCJ" in 18240x|xyes) 18241 # Assume -lc should be added 18242 archive_cmds_need_lc_GCJ=yes 18243 18244 if test "$enable_shared" = yes && test "$GCC" = yes; then 18245 case $archive_cmds_GCJ in 18246 *'~'*) 18247 # FIXME: we may have to deal with multi-command sequences. 18248 ;; 18249 '$CC '*) 18250 # Test whether the compiler implicitly links with -lc since on some 18251 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18252 # to ld, don't add -lc before -lgcc. 18253 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18254echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18255 $rm conftest* 18256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18257 18258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18259 (eval $ac_compile) 2>&5 18260 ac_status=$? 18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18262 (exit $ac_status); } 2>conftest.err; then 18263 soname=conftest 18264 lib=conftest 18265 libobjs=conftest.$ac_objext 18266 deplibs= 18267 wl=$lt_prog_compiler_wl_GCJ 18268 pic_flag=$lt_prog_compiler_pic_GCJ 18269 compiler_flags=-v 18270 linker_flags=-v 18271 verstring= 18272 output_objdir=. 18273 libname=conftest 18274 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18275 allow_undefined_flag_GCJ= 18276 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18277 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18278 ac_status=$? 18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18280 (exit $ac_status); } 18281 then 18282 archive_cmds_need_lc_GCJ=no 18283 else 18284 archive_cmds_need_lc_GCJ=yes 18285 fi 18286 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18287 else 18288 cat conftest.err 1>&5 18289 fi 18290 $rm conftest* 18291 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18292echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18293 ;; 18294 esac 18295 fi 18296 ;; 18297esac 18298 18299{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18300echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18301library_names_spec= 18302libname_spec='lib$name' 18303soname_spec= 18304shrext_cmds=".so" 18305postinstall_cmds= 18306postuninstall_cmds= 18307finish_cmds= 18308finish_eval= 18309shlibpath_var= 18310shlibpath_overrides_runpath=unknown 18311version_type=none 18312dynamic_linker="$host_os ld.so" 18313sys_lib_dlsearch_path_spec="/lib /usr/lib" 18314 18315need_lib_prefix=unknown 18316hardcode_into_libs=no 18317 18318# when you set need_version to no, make sure it does not cause -set_version 18319# flags to be left without arguments 18320need_version=unknown 18321 18322case $host_os in 18323aix3*) 18324 version_type=linux 18325 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18326 shlibpath_var=LIBPATH 18327 18328 # AIX 3 has no versioning support, so we append a major version to the name. 18329 soname_spec='${libname}${release}${shared_ext}$major' 18330 ;; 18331 18332aix[4-9]*) 18333 version_type=linux 18334 need_lib_prefix=no 18335 need_version=no 18336 hardcode_into_libs=yes 18337 if test "$host_cpu" = ia64; then 18338 # AIX 5 supports IA64 18339 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18340 shlibpath_var=LD_LIBRARY_PATH 18341 else 18342 # With GCC up to 2.95.x, collect2 would create an import file 18343 # for dependence libraries. The import file would start with 18344 # the line `#! .'. This would cause the generated library to 18345 # depend on `.', always an invalid library. This was fixed in 18346 # development snapshots of GCC prior to 3.0. 18347 case $host_os in 18348 aix4 | aix4.[01] | aix4.[01].*) 18349 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18350 echo ' yes ' 18351 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18352 : 18353 else 18354 can_build_shared=no 18355 fi 18356 ;; 18357 esac 18358 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18359 # soname into executable. Probably we can add versioning support to 18360 # collect2, so additional links can be useful in future. 18361 if test "$aix_use_runtimelinking" = yes; then 18362 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18363 # instead of lib<name>.a to let people know that these are not 18364 # typical AIX shared libraries. 18365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18366 else 18367 # We preserve .a as extension for shared libraries through AIX4.2 18368 # and later when we are not doing run time linking. 18369 library_names_spec='${libname}${release}.a $libname.a' 18370 soname_spec='${libname}${release}${shared_ext}$major' 18371 fi 18372 shlibpath_var=LIBPATH 18373 fi 18374 ;; 18375 18376amigaos*) 18377 library_names_spec='$libname.ixlibrary $libname.a' 18378 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18379 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' 18380 ;; 18381 18382beos*) 18383 library_names_spec='${libname}${shared_ext}' 18384 dynamic_linker="$host_os ld.so" 18385 shlibpath_var=LIBRARY_PATH 18386 ;; 18387 18388bsdi[45]*) 18389 version_type=linux 18390 need_version=no 18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18392 soname_spec='${libname}${release}${shared_ext}$major' 18393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18394 shlibpath_var=LD_LIBRARY_PATH 18395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18397 # the default ld.so.conf also contains /usr/contrib/lib and 18398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18399 # libtool to hard-code these into programs 18400 ;; 18401 18402cygwin* | mingw* | pw32*) 18403 version_type=windows 18404 shrext_cmds=".dll" 18405 need_version=no 18406 need_lib_prefix=no 18407 18408 case $GCC,$host_os in 18409 yes,cygwin* | yes,mingw* | yes,pw32*) 18410 library_names_spec='$libname.dll.a' 18411 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18412 postinstall_cmds='base_file=`basename \${file}`~ 18413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18414 dldir=$destdir/`dirname \$dlpath`~ 18415 test -d \$dldir || mkdir -p \$dldir~ 18416 $install_prog $dir/$dlname \$dldir/$dlname~ 18417 chmod a+x \$dldir/$dlname' 18418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18419 dlpath=$dir/\$dldll~ 18420 $rm \$dlpath' 18421 shlibpath_overrides_runpath=yes 18422 18423 case $host_os in 18424 cygwin*) 18425 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18426 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18427 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18428 ;; 18429 mingw*) 18430 # MinGW DLLs use traditional 'lib' prefix 18431 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18432 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18433 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18434 # It is most probably a Windows format PATH printed by 18435 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18436 # path with ; separators, and with drive letters. We can handle the 18437 # drive letters (cygwin fileutils understands them), so leave them, 18438 # especially as we might pass files found there to a mingw objdump, 18439 # which wouldn't understand a cygwinified path. Ahh. 18440 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18441 else 18442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18443 fi 18444 ;; 18445 pw32*) 18446 # pw32 DLLs use 'pw' prefix rather than 'lib' 18447 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18448 ;; 18449 esac 18450 ;; 18451 18452 *) 18453 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18454 ;; 18455 esac 18456 dynamic_linker='Win32 ld.exe' 18457 # FIXME: first we should search . and the directory the executable is in 18458 shlibpath_var=PATH 18459 ;; 18460 18461darwin* | rhapsody*) 18462 dynamic_linker="$host_os dyld" 18463 version_type=darwin 18464 need_lib_prefix=no 18465 need_version=no 18466 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18467 soname_spec='${libname}${release}${major}$shared_ext' 18468 shlibpath_overrides_runpath=yes 18469 shlibpath_var=DYLD_LIBRARY_PATH 18470 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18471 18472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18473 ;; 18474 18475dgux*) 18476 version_type=linux 18477 need_lib_prefix=no 18478 need_version=no 18479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18480 soname_spec='${libname}${release}${shared_ext}$major' 18481 shlibpath_var=LD_LIBRARY_PATH 18482 ;; 18483 18484freebsd1*) 18485 dynamic_linker=no 18486 ;; 18487 18488freebsd* | dragonfly*) 18489 # DragonFly does not have aout. When/if they implement a new 18490 # versioning mechanism, adjust this. 18491 if test -x /usr/bin/objformat; then 18492 objformat=`/usr/bin/objformat` 18493 else 18494 case $host_os in 18495 freebsd[123]*) objformat=aout ;; 18496 *) objformat=elf ;; 18497 esac 18498 fi 18499 version_type=freebsd-$objformat 18500 case $version_type in 18501 freebsd-elf*) 18502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18503 need_version=no 18504 need_lib_prefix=no 18505 ;; 18506 freebsd-*) 18507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18508 need_version=yes 18509 ;; 18510 esac 18511 shlibpath_var=LD_LIBRARY_PATH 18512 case $host_os in 18513 freebsd2*) 18514 shlibpath_overrides_runpath=yes 18515 ;; 18516 freebsd3.[01]* | freebsdelf3.[01]*) 18517 shlibpath_overrides_runpath=yes 18518 hardcode_into_libs=yes 18519 ;; 18520 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18521 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18522 shlibpath_overrides_runpath=no 18523 hardcode_into_libs=yes 18524 ;; 18525 *) # from 4.6 on, and DragonFly 18526 shlibpath_overrides_runpath=yes 18527 hardcode_into_libs=yes 18528 ;; 18529 esac 18530 ;; 18531 18532gnu*) 18533 version_type=linux 18534 need_lib_prefix=no 18535 need_version=no 18536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18537 soname_spec='${libname}${release}${shared_ext}$major' 18538 shlibpath_var=LD_LIBRARY_PATH 18539 hardcode_into_libs=yes 18540 ;; 18541 18542hpux9* | hpux10* | hpux11*) 18543 # Give a soname corresponding to the major version so that dld.sl refuses to 18544 # link against other versions. 18545 version_type=sunos 18546 need_lib_prefix=no 18547 need_version=no 18548 case $host_cpu in 18549 ia64*) 18550 shrext_cmds='.so' 18551 hardcode_into_libs=yes 18552 dynamic_linker="$host_os dld.so" 18553 shlibpath_var=LD_LIBRARY_PATH 18554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18556 soname_spec='${libname}${release}${shared_ext}$major' 18557 if test "X$HPUX_IA64_MODE" = X32; then 18558 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18559 else 18560 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18561 fi 18562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18563 ;; 18564 hppa*64*) 18565 shrext_cmds='.sl' 18566 hardcode_into_libs=yes 18567 dynamic_linker="$host_os dld.sl" 18568 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18571 soname_spec='${libname}${release}${shared_ext}$major' 18572 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18574 ;; 18575 *) 18576 shrext_cmds='.sl' 18577 dynamic_linker="$host_os dld.sl" 18578 shlibpath_var=SHLIB_PATH 18579 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18581 soname_spec='${libname}${release}${shared_ext}$major' 18582 ;; 18583 esac 18584 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18585 postinstall_cmds='chmod 555 $lib' 18586 ;; 18587 18588interix[3-9]*) 18589 version_type=linux 18590 need_lib_prefix=no 18591 need_version=no 18592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18593 soname_spec='${libname}${release}${shared_ext}$major' 18594 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18595 shlibpath_var=LD_LIBRARY_PATH 18596 shlibpath_overrides_runpath=no 18597 hardcode_into_libs=yes 18598 ;; 18599 18600irix5* | irix6* | nonstopux*) 18601 case $host_os in 18602 nonstopux*) version_type=nonstopux ;; 18603 *) 18604 if test "$lt_cv_prog_gnu_ld" = yes; then 18605 version_type=linux 18606 else 18607 version_type=irix 18608 fi ;; 18609 esac 18610 need_lib_prefix=no 18611 need_version=no 18612 soname_spec='${libname}${release}${shared_ext}$major' 18613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18614 case $host_os in 18615 irix5* | nonstopux*) 18616 libsuff= shlibsuff= 18617 ;; 18618 *) 18619 case $LD in # libtool.m4 will add one of these switches to LD 18620 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18621 libsuff= shlibsuff= libmagic=32-bit;; 18622 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18623 libsuff=32 shlibsuff=N32 libmagic=N32;; 18624 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18625 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18626 *) libsuff= shlibsuff= libmagic=never-match;; 18627 esac 18628 ;; 18629 esac 18630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18631 shlibpath_overrides_runpath=no 18632 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18633 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18634 hardcode_into_libs=yes 18635 ;; 18636 18637# No shared lib support for Linux oldld, aout, or coff. 18638linux*oldld* | linux*aout* | linux*coff*) 18639 dynamic_linker=no 18640 ;; 18641 18642# This must be Linux ELF. 18643linux* | k*bsd*-gnu) 18644 version_type=linux 18645 need_lib_prefix=no 18646 need_version=no 18647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18648 soname_spec='${libname}${release}${shared_ext}$major' 18649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18650 shlibpath_var=LD_LIBRARY_PATH 18651 shlibpath_overrides_runpath=no 18652 # This implies no fast_install, which is unacceptable. 18653 # Some rework will be needed to allow for fast_install 18654 # before this can be enabled. 18655 hardcode_into_libs=yes 18656 18657 # Append ld.so.conf contents to the search path 18658 if test -f /etc/ld.so.conf; then 18659 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' ' '` 18660 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18661 fi 18662 18663 # We used to test for /lib/ld.so.1 and disable shared libraries on 18664 # powerpc, because MkLinux only supported shared libraries with the 18665 # GNU dynamic linker. Since this was broken with cross compilers, 18666 # most powerpc-linux boxes support dynamic linking these days and 18667 # people can always --disable-shared, the test was removed, and we 18668 # assume the GNU/Linux dynamic linker is in use. 18669 dynamic_linker='GNU/Linux ld.so' 18670 ;; 18671 18672netbsdelf*-gnu) 18673 version_type=linux 18674 need_lib_prefix=no 18675 need_version=no 18676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18677 soname_spec='${libname}${release}${shared_ext}$major' 18678 shlibpath_var=LD_LIBRARY_PATH 18679 shlibpath_overrides_runpath=no 18680 hardcode_into_libs=yes 18681 dynamic_linker='NetBSD ld.elf_so' 18682 ;; 18683 18684netbsd*) 18685 version_type=sunos 18686 need_lib_prefix=no 18687 need_version=no 18688 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18691 dynamic_linker='NetBSD (a.out) ld.so' 18692 else 18693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18694 soname_spec='${libname}${release}${shared_ext}$major' 18695 dynamic_linker='NetBSD ld.elf_so' 18696 fi 18697 shlibpath_var=LD_LIBRARY_PATH 18698 shlibpath_overrides_runpath=yes 18699 hardcode_into_libs=yes 18700 ;; 18701 18702newsos6) 18703 version_type=linux 18704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18705 shlibpath_var=LD_LIBRARY_PATH 18706 shlibpath_overrides_runpath=yes 18707 ;; 18708 18709nto-qnx*) 18710 version_type=linux 18711 need_lib_prefix=no 18712 need_version=no 18713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18714 soname_spec='${libname}${release}${shared_ext}$major' 18715 shlibpath_var=LD_LIBRARY_PATH 18716 shlibpath_overrides_runpath=yes 18717 ;; 18718 18719openbsd*) 18720 version_type=sunos 18721 sys_lib_dlsearch_path_spec="/usr/lib" 18722 need_lib_prefix=no 18723 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18724 case $host_os in 18725 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18726 *) need_version=no ;; 18727 esac 18728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18730 shlibpath_var=LD_LIBRARY_PATH 18731 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18732 case $host_os in 18733 openbsd2.[89] | openbsd2.[89].*) 18734 shlibpath_overrides_runpath=no 18735 ;; 18736 *) 18737 shlibpath_overrides_runpath=yes 18738 ;; 18739 esac 18740 else 18741 shlibpath_overrides_runpath=yes 18742 fi 18743 ;; 18744 18745os2*) 18746 libname_spec='$name' 18747 shrext_cmds=".dll" 18748 need_lib_prefix=no 18749 library_names_spec='$libname${shared_ext} $libname.a' 18750 dynamic_linker='OS/2 ld.exe' 18751 shlibpath_var=LIBPATH 18752 ;; 18753 18754osf3* | osf4* | osf5*) 18755 version_type=osf 18756 need_lib_prefix=no 18757 need_version=no 18758 soname_spec='${libname}${release}${shared_ext}$major' 18759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18760 shlibpath_var=LD_LIBRARY_PATH 18761 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18762 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18763 ;; 18764 18765rdos*) 18766 dynamic_linker=no 18767 ;; 18768 18769solaris*) 18770 version_type=linux 18771 need_lib_prefix=no 18772 need_version=no 18773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18774 soname_spec='${libname}${release}${shared_ext}$major' 18775 shlibpath_var=LD_LIBRARY_PATH 18776 shlibpath_overrides_runpath=yes 18777 hardcode_into_libs=yes 18778 # ldd complains unless libraries are executable 18779 postinstall_cmds='chmod +x $lib' 18780 ;; 18781 18782sunos4*) 18783 version_type=sunos 18784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18785 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18786 shlibpath_var=LD_LIBRARY_PATH 18787 shlibpath_overrides_runpath=yes 18788 if test "$with_gnu_ld" = yes; then 18789 need_lib_prefix=no 18790 fi 18791 need_version=yes 18792 ;; 18793 18794sysv4 | sysv4.3*) 18795 version_type=linux 18796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18797 soname_spec='${libname}${release}${shared_ext}$major' 18798 shlibpath_var=LD_LIBRARY_PATH 18799 case $host_vendor in 18800 sni) 18801 shlibpath_overrides_runpath=no 18802 need_lib_prefix=no 18803 export_dynamic_flag_spec='${wl}-Blargedynsym' 18804 runpath_var=LD_RUN_PATH 18805 ;; 18806 siemens) 18807 need_lib_prefix=no 18808 ;; 18809 motorola) 18810 need_lib_prefix=no 18811 need_version=no 18812 shlibpath_overrides_runpath=no 18813 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18814 ;; 18815 esac 18816 ;; 18817 18818sysv4*MP*) 18819 if test -d /usr/nec ;then 18820 version_type=linux 18821 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18822 soname_spec='$libname${shared_ext}.$major' 18823 shlibpath_var=LD_LIBRARY_PATH 18824 fi 18825 ;; 18826 18827sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18828 version_type=freebsd-elf 18829 need_lib_prefix=no 18830 need_version=no 18831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18832 soname_spec='${libname}${release}${shared_ext}$major' 18833 shlibpath_var=LD_LIBRARY_PATH 18834 hardcode_into_libs=yes 18835 if test "$with_gnu_ld" = yes; then 18836 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18837 shlibpath_overrides_runpath=no 18838 else 18839 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18840 shlibpath_overrides_runpath=yes 18841 case $host_os in 18842 sco3.2v5*) 18843 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18844 ;; 18845 esac 18846 fi 18847 sys_lib_dlsearch_path_spec='/usr/lib' 18848 ;; 18849 18850uts4*) 18851 version_type=linux 18852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18853 soname_spec='${libname}${release}${shared_ext}$major' 18854 shlibpath_var=LD_LIBRARY_PATH 18855 ;; 18856 18857*) 18858 dynamic_linker=no 18859 ;; 18860esac 18861{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18862echo "${ECHO_T}$dynamic_linker" >&6; } 18863test "$dynamic_linker" = no && can_build_shared=no 18864 18865if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18866 echo $ECHO_N "(cached) $ECHO_C" >&6 18867else 18868 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18869fi 18870 18871sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18872if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18873 echo $ECHO_N "(cached) $ECHO_C" >&6 18874else 18875 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 18876fi 18877 18878sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18879 18880variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18881if test "$GCC" = yes; then 18882 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18883fi 18884 18885{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18886echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18887hardcode_action_GCJ= 18888if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18889 test -n "$runpath_var_GCJ" || \ 18890 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18891 18892 # We can hardcode non-existant directories. 18893 if test "$hardcode_direct_GCJ" != no && 18894 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18895 # have to relink, otherwise we might link with an installed library 18896 # when we should be linking with a yet-to-be-installed one 18897 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18898 test "$hardcode_minus_L_GCJ" != no; then 18899 # Linking always hardcodes the temporary library directory. 18900 hardcode_action_GCJ=relink 18901 else 18902 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18903 hardcode_action_GCJ=immediate 18904 fi 18905else 18906 # We cannot hardcode anything, or else we can only hardcode existing 18907 # directories. 18908 hardcode_action_GCJ=unsupported 18909fi 18910{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18911echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18912 18913if test "$hardcode_action_GCJ" = relink; then 18914 # Fast installation is not supported 18915 enable_fast_install=no 18916elif test "$shlibpath_overrides_runpath" = yes || 18917 test "$enable_shared" = no; then 18918 # Fast installation is not necessary 18919 enable_fast_install=needless 18920fi 18921 18922 18923# The else clause should only fire when bootstrapping the 18924# libtool distribution, otherwise you forgot to ship ltmain.sh 18925# with your package, and you will get complaints that there are 18926# no rules to generate ltmain.sh. 18927if test -f "$ltmain"; then 18928 # See if we are running on zsh, and set the options which allow our commands through 18929 # without removal of \ escapes. 18930 if test -n "${ZSH_VERSION+set}" ; then 18931 setopt NO_GLOB_SUBST 18932 fi 18933 # Now quote all the things that may contain metacharacters while being 18934 # careful not to overquote the AC_SUBSTed values. We take copies of the 18935 # variables and quote the copies for generation of the libtool script. 18936 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18937 SED SHELL STRIP \ 18938 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18939 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18940 deplibs_check_method reload_flag reload_cmds need_locks \ 18941 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18942 lt_cv_sys_global_symbol_to_c_name_address \ 18943 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18944 old_postinstall_cmds old_postuninstall_cmds \ 18945 compiler_GCJ \ 18946 CC_GCJ \ 18947 LD_GCJ \ 18948 lt_prog_compiler_wl_GCJ \ 18949 lt_prog_compiler_pic_GCJ \ 18950 lt_prog_compiler_static_GCJ \ 18951 lt_prog_compiler_no_builtin_flag_GCJ \ 18952 export_dynamic_flag_spec_GCJ \ 18953 thread_safe_flag_spec_GCJ \ 18954 whole_archive_flag_spec_GCJ \ 18955 enable_shared_with_static_runtimes_GCJ \ 18956 old_archive_cmds_GCJ \ 18957 old_archive_from_new_cmds_GCJ \ 18958 predep_objects_GCJ \ 18959 postdep_objects_GCJ \ 18960 predeps_GCJ \ 18961 postdeps_GCJ \ 18962 compiler_lib_search_path_GCJ \ 18963 compiler_lib_search_dirs_GCJ \ 18964 archive_cmds_GCJ \ 18965 archive_expsym_cmds_GCJ \ 18966 postinstall_cmds_GCJ \ 18967 postuninstall_cmds_GCJ \ 18968 old_archive_from_expsyms_cmds_GCJ \ 18969 allow_undefined_flag_GCJ \ 18970 no_undefined_flag_GCJ \ 18971 export_symbols_cmds_GCJ \ 18972 hardcode_libdir_flag_spec_GCJ \ 18973 hardcode_libdir_flag_spec_ld_GCJ \ 18974 hardcode_libdir_separator_GCJ \ 18975 hardcode_automatic_GCJ \ 18976 module_cmds_GCJ \ 18977 module_expsym_cmds_GCJ \ 18978 lt_cv_prog_compiler_c_o_GCJ \ 18979 fix_srcfile_path_GCJ \ 18980 exclude_expsyms_GCJ \ 18981 include_expsyms_GCJ; do 18982 18983 case $var in 18984 old_archive_cmds_GCJ | \ 18985 old_archive_from_new_cmds_GCJ | \ 18986 archive_cmds_GCJ | \ 18987 archive_expsym_cmds_GCJ | \ 18988 module_cmds_GCJ | \ 18989 module_expsym_cmds_GCJ | \ 18990 old_archive_from_expsyms_cmds_GCJ | \ 18991 export_symbols_cmds_GCJ | \ 18992 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18993 postinstall_cmds | postuninstall_cmds | \ 18994 old_postinstall_cmds | old_postuninstall_cmds | \ 18995 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18996 # Double-quote double-evaled strings. 18997 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18998 ;; 18999 *) 19000 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19001 ;; 19002 esac 19003 done 19004 19005 case $lt_echo in 19006 *'\$0 --fallback-echo"') 19007 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19008 ;; 19009 esac 19010 19011cfgfile="$ofile" 19012 19013 cat <<__EOF__ >> "$cfgfile" 19014# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19015 19016# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19017 19018# Shell to use when invoking shell scripts. 19019SHELL=$lt_SHELL 19020 19021# Whether or not to build shared libraries. 19022build_libtool_libs=$enable_shared 19023 19024# Whether or not to build static libraries. 19025build_old_libs=$enable_static 19026 19027# Whether or not to add -lc for building shared libraries. 19028build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19029 19030# Whether or not to disallow shared libs when runtime libs are static 19031allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19032 19033# Whether or not to optimize for fast installation. 19034fast_install=$enable_fast_install 19035 19036# The host system. 19037host_alias=$host_alias 19038host=$host 19039host_os=$host_os 19040 19041# The build system. 19042build_alias=$build_alias 19043build=$build 19044build_os=$build_os 19045 19046# An echo program that does not interpret backslashes. 19047echo=$lt_echo 19048 19049# The archiver. 19050AR=$lt_AR 19051AR_FLAGS=$lt_AR_FLAGS 19052 19053# A C compiler. 19054LTCC=$lt_LTCC 19055 19056# LTCC compiler flags. 19057LTCFLAGS=$lt_LTCFLAGS 19058 19059# A language-specific compiler. 19060CC=$lt_compiler_GCJ 19061 19062# Is the compiler the GNU C compiler? 19063with_gcc=$GCC_GCJ 19064 19065# An ERE matcher. 19066EGREP=$lt_EGREP 19067 19068# The linker used to build libraries. 19069LD=$lt_LD_GCJ 19070 19071# Whether we need hard or soft links. 19072LN_S=$lt_LN_S 19073 19074# A BSD-compatible nm program. 19075NM=$lt_NM 19076 19077# A symbol stripping program 19078STRIP=$lt_STRIP 19079 19080# Used to examine libraries when file_magic_cmd begins "file" 19081MAGIC_CMD=$MAGIC_CMD 19082 19083# Used on cygwin: DLL creation program. 19084DLLTOOL="$DLLTOOL" 19085 19086# Used on cygwin: object dumper. 19087OBJDUMP="$OBJDUMP" 19088 19089# Used on cygwin: assembler. 19090AS="$AS" 19091 19092# The name of the directory that contains temporary libtool files. 19093objdir=$objdir 19094 19095# How to create reloadable object files. 19096reload_flag=$lt_reload_flag 19097reload_cmds=$lt_reload_cmds 19098 19099# How to pass a linker flag through the compiler. 19100wl=$lt_lt_prog_compiler_wl_GCJ 19101 19102# Object file suffix (normally "o"). 19103objext="$ac_objext" 19104 19105# Old archive suffix (normally "a"). 19106libext="$libext" 19107 19108# Shared library suffix (normally ".so"). 19109shrext_cmds='$shrext_cmds' 19110 19111# Executable file suffix (normally ""). 19112exeext="$exeext" 19113 19114# Additional compiler flags for building library objects. 19115pic_flag=$lt_lt_prog_compiler_pic_GCJ 19116pic_mode=$pic_mode 19117 19118# What is the maximum length of a command? 19119max_cmd_len=$lt_cv_sys_max_cmd_len 19120 19121# Does compiler simultaneously support -c and -o options? 19122compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19123 19124# Must we lock files when doing compilation? 19125need_locks=$lt_need_locks 19126 19127# Do we need the lib prefix for modules? 19128need_lib_prefix=$need_lib_prefix 19129 19130# Do we need a version for libraries? 19131need_version=$need_version 19132 19133# Whether dlopen is supported. 19134dlopen_support=$enable_dlopen 19135 19136# Whether dlopen of programs is supported. 19137dlopen_self=$enable_dlopen_self 19138 19139# Whether dlopen of statically linked programs is supported. 19140dlopen_self_static=$enable_dlopen_self_static 19141 19142# Compiler flag to prevent dynamic linking. 19143link_static_flag=$lt_lt_prog_compiler_static_GCJ 19144 19145# Compiler flag to turn off builtin functions. 19146no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19147 19148# Compiler flag to allow reflexive dlopens. 19149export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19150 19151# Compiler flag to generate shared objects directly from archives. 19152whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19153 19154# Compiler flag to generate thread-safe objects. 19155thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19156 19157# Library versioning type. 19158version_type=$version_type 19159 19160# Format of library name prefix. 19161libname_spec=$lt_libname_spec 19162 19163# List of archive names. First name is the real one, the rest are links. 19164# The last name is the one that the linker finds with -lNAME. 19165library_names_spec=$lt_library_names_spec 19166 19167# The coded name of the library, if different from the real name. 19168soname_spec=$lt_soname_spec 19169 19170# Commands used to build and install an old-style archive. 19171RANLIB=$lt_RANLIB 19172old_archive_cmds=$lt_old_archive_cmds_GCJ 19173old_postinstall_cmds=$lt_old_postinstall_cmds 19174old_postuninstall_cmds=$lt_old_postuninstall_cmds 19175 19176# Create an old-style archive from a shared archive. 19177old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19178 19179# Create a temporary old-style archive to link instead of a shared archive. 19180old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19181 19182# Commands used to build and install a shared archive. 19183archive_cmds=$lt_archive_cmds_GCJ 19184archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19185postinstall_cmds=$lt_postinstall_cmds 19186postuninstall_cmds=$lt_postuninstall_cmds 19187 19188# Commands used to build a loadable module (assumed same as above if empty) 19189module_cmds=$lt_module_cmds_GCJ 19190module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19191 19192# Commands to strip libraries. 19193old_striplib=$lt_old_striplib 19194striplib=$lt_striplib 19195 19196# Dependencies to place before the objects being linked to create a 19197# shared library. 19198predep_objects=$lt_predep_objects_GCJ 19199 19200# Dependencies to place after the objects being linked to create a 19201# shared library. 19202postdep_objects=$lt_postdep_objects_GCJ 19203 19204# Dependencies to place before the objects being linked to create a 19205# shared library. 19206predeps=$lt_predeps_GCJ 19207 19208# Dependencies to place after the objects being linked to create a 19209# shared library. 19210postdeps=$lt_postdeps_GCJ 19211 19212# The directories searched by this compiler when creating a shared 19213# library 19214compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19215 19216# The library search path used internally by the compiler when linking 19217# a shared library. 19218compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19219 19220# Method to check whether dependent libraries are shared objects. 19221deplibs_check_method=$lt_deplibs_check_method 19222 19223# Command to use when deplibs_check_method == file_magic. 19224file_magic_cmd=$lt_file_magic_cmd 19225 19226# Flag that allows shared libraries with undefined symbols to be built. 19227allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19228 19229# Flag that forces no undefined symbols. 19230no_undefined_flag=$lt_no_undefined_flag_GCJ 19231 19232# Commands used to finish a libtool library installation in a directory. 19233finish_cmds=$lt_finish_cmds 19234 19235# Same as above, but a single script fragment to be evaled but not shown. 19236finish_eval=$lt_finish_eval 19237 19238# Take the output of nm and produce a listing of raw symbols and C names. 19239global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19240 19241# Transform the output of nm in a proper C declaration 19242global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19243 19244# Transform the output of nm in a C name address pair 19245global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19246 19247# This is the shared library runtime path variable. 19248runpath_var=$runpath_var 19249 19250# This is the shared library path variable. 19251shlibpath_var=$shlibpath_var 19252 19253# Is shlibpath searched before the hard-coded library search path? 19254shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19255 19256# How to hardcode a shared library path into an executable. 19257hardcode_action=$hardcode_action_GCJ 19258 19259# Whether we should hardcode library paths into libraries. 19260hardcode_into_libs=$hardcode_into_libs 19261 19262# Flag to hardcode \$libdir into a binary during linking. 19263# This must work even if \$libdir does not exist. 19264hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19265 19266# If ld is used when linking, flag to hardcode \$libdir into 19267# a binary during linking. This must work even if \$libdir does 19268# not exist. 19269hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19270 19271# Whether we need a single -rpath flag with a separated argument. 19272hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19273 19274# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19275# resulting binary. 19276hardcode_direct=$hardcode_direct_GCJ 19277 19278# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19279# resulting binary. 19280hardcode_minus_L=$hardcode_minus_L_GCJ 19281 19282# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19283# the resulting binary. 19284hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19285 19286# Set to yes if building a shared library automatically hardcodes DIR into the library 19287# and all subsequent libraries and executables linked against it. 19288hardcode_automatic=$hardcode_automatic_GCJ 19289 19290# Variables whose values should be saved in libtool wrapper scripts and 19291# restored at relink time. 19292variables_saved_for_relink="$variables_saved_for_relink" 19293 19294# Whether libtool must link a program against all its dependency libraries. 19295link_all_deplibs=$link_all_deplibs_GCJ 19296 19297# Compile-time system search path for libraries 19298sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19299 19300# Run-time system search path for libraries 19301sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19302 19303# Fix the shell variable \$srcfile for the compiler. 19304fix_srcfile_path=$lt_fix_srcfile_path 19305 19306# Set to yes if exported symbols are required. 19307always_export_symbols=$always_export_symbols_GCJ 19308 19309# The commands to list exported symbols. 19310export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19311 19312# The commands to extract the exported symbol list from a shared archive. 19313extract_expsyms_cmds=$lt_extract_expsyms_cmds 19314 19315# Symbols that should not be listed in the preloaded symbols. 19316exclude_expsyms=$lt_exclude_expsyms_GCJ 19317 19318# Symbols that must always be exported. 19319include_expsyms=$lt_include_expsyms_GCJ 19320 19321# ### END LIBTOOL TAG CONFIG: $tagname 19322 19323__EOF__ 19324 19325 19326else 19327 # If there is no Makefile yet, we rely on a make rule to execute 19328 # `config.status --recheck' to rerun these tests and create the 19329 # libtool script then. 19330 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19331 if test -f "$ltmain_in"; then 19332 test -f Makefile && make "$ltmain" 19333 fi 19334fi 19335 19336 19337ac_ext=c 19338ac_cpp='$CPP $CPPFLAGS' 19339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19341ac_compiler_gnu=$ac_cv_c_compiler_gnu 19342 19343CC="$lt_save_CC" 19344 19345 else 19346 tagname="" 19347 fi 19348 ;; 19349 19350 RC) 19351 19352 19353# Source file extension for RC test sources. 19354ac_ext=rc 19355 19356# Object file extension for compiled RC test sources. 19357objext=o 19358objext_RC=$objext 19359 19360# Code to be used in simple compile tests 19361lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19362 19363# Code to be used in simple link tests 19364lt_simple_link_test_code="$lt_simple_compile_test_code" 19365 19366# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19367 19368# If no C compiler was specified, use CC. 19369LTCC=${LTCC-"$CC"} 19370 19371# If no C compiler flags were specified, use CFLAGS. 19372LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19373 19374# Allow CC to be a program name with arguments. 19375compiler=$CC 19376 19377 19378# save warnings/boilerplate of simple test code 19379ac_outfile=conftest.$ac_objext 19380echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19381eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19382_lt_compiler_boilerplate=`cat conftest.err` 19383$rm conftest* 19384 19385ac_outfile=conftest.$ac_objext 19386echo "$lt_simple_link_test_code" >conftest.$ac_ext 19387eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19388_lt_linker_boilerplate=`cat conftest.err` 19389$rm -r conftest* 19390 19391 19392# Allow CC to be a program name with arguments. 19393lt_save_CC="$CC" 19394CC=${RC-"windres"} 19395compiler=$CC 19396compiler_RC=$CC 19397for cc_temp in $compiler""; do 19398 case $cc_temp in 19399 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19400 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19401 \-*) ;; 19402 *) break;; 19403 esac 19404done 19405cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19406 19407lt_cv_prog_compiler_c_o_RC=yes 19408 19409# The else clause should only fire when bootstrapping the 19410# libtool distribution, otherwise you forgot to ship ltmain.sh 19411# with your package, and you will get complaints that there are 19412# no rules to generate ltmain.sh. 19413if test -f "$ltmain"; then 19414 # See if we are running on zsh, and set the options which allow our commands through 19415 # without removal of \ escapes. 19416 if test -n "${ZSH_VERSION+set}" ; then 19417 setopt NO_GLOB_SUBST 19418 fi 19419 # Now quote all the things that may contain metacharacters while being 19420 # careful not to overquote the AC_SUBSTed values. We take copies of the 19421 # variables and quote the copies for generation of the libtool script. 19422 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19423 SED SHELL STRIP \ 19424 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19425 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19426 deplibs_check_method reload_flag reload_cmds need_locks \ 19427 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19428 lt_cv_sys_global_symbol_to_c_name_address \ 19429 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19430 old_postinstall_cmds old_postuninstall_cmds \ 19431 compiler_RC \ 19432 CC_RC \ 19433 LD_RC \ 19434 lt_prog_compiler_wl_RC \ 19435 lt_prog_compiler_pic_RC \ 19436 lt_prog_compiler_static_RC \ 19437 lt_prog_compiler_no_builtin_flag_RC \ 19438 export_dynamic_flag_spec_RC \ 19439 thread_safe_flag_spec_RC \ 19440 whole_archive_flag_spec_RC \ 19441 enable_shared_with_static_runtimes_RC \ 19442 old_archive_cmds_RC \ 19443 old_archive_from_new_cmds_RC \ 19444 predep_objects_RC \ 19445 postdep_objects_RC \ 19446 predeps_RC \ 19447 postdeps_RC \ 19448 compiler_lib_search_path_RC \ 19449 compiler_lib_search_dirs_RC \ 19450 archive_cmds_RC \ 19451 archive_expsym_cmds_RC \ 19452 postinstall_cmds_RC \ 19453 postuninstall_cmds_RC \ 19454 old_archive_from_expsyms_cmds_RC \ 19455 allow_undefined_flag_RC \ 19456 no_undefined_flag_RC \ 19457 export_symbols_cmds_RC \ 19458 hardcode_libdir_flag_spec_RC \ 19459 hardcode_libdir_flag_spec_ld_RC \ 19460 hardcode_libdir_separator_RC \ 19461 hardcode_automatic_RC \ 19462 module_cmds_RC \ 19463 module_expsym_cmds_RC \ 19464 lt_cv_prog_compiler_c_o_RC \ 19465 fix_srcfile_path_RC \ 19466 exclude_expsyms_RC \ 19467 include_expsyms_RC; do 19468 19469 case $var in 19470 old_archive_cmds_RC | \ 19471 old_archive_from_new_cmds_RC | \ 19472 archive_cmds_RC | \ 19473 archive_expsym_cmds_RC | \ 19474 module_cmds_RC | \ 19475 module_expsym_cmds_RC | \ 19476 old_archive_from_expsyms_cmds_RC | \ 19477 export_symbols_cmds_RC | \ 19478 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19479 postinstall_cmds | postuninstall_cmds | \ 19480 old_postinstall_cmds | old_postuninstall_cmds | \ 19481 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19482 # Double-quote double-evaled strings. 19483 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19484 ;; 19485 *) 19486 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19487 ;; 19488 esac 19489 done 19490 19491 case $lt_echo in 19492 *'\$0 --fallback-echo"') 19493 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19494 ;; 19495 esac 19496 19497cfgfile="$ofile" 19498 19499 cat <<__EOF__ >> "$cfgfile" 19500# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19501 19502# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19503 19504# Shell to use when invoking shell scripts. 19505SHELL=$lt_SHELL 19506 19507# Whether or not to build shared libraries. 19508build_libtool_libs=$enable_shared 19509 19510# Whether or not to build static libraries. 19511build_old_libs=$enable_static 19512 19513# Whether or not to add -lc for building shared libraries. 19514build_libtool_need_lc=$archive_cmds_need_lc_RC 19515 19516# Whether or not to disallow shared libs when runtime libs are static 19517allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19518 19519# Whether or not to optimize for fast installation. 19520fast_install=$enable_fast_install 19521 19522# The host system. 19523host_alias=$host_alias 19524host=$host 19525host_os=$host_os 19526 19527# The build system. 19528build_alias=$build_alias 19529build=$build 19530build_os=$build_os 19531 19532# An echo program that does not interpret backslashes. 19533echo=$lt_echo 19534 19535# The archiver. 19536AR=$lt_AR 19537AR_FLAGS=$lt_AR_FLAGS 19538 19539# A C compiler. 19540LTCC=$lt_LTCC 19541 19542# LTCC compiler flags. 19543LTCFLAGS=$lt_LTCFLAGS 19544 19545# A language-specific compiler. 19546CC=$lt_compiler_RC 19547 19548# Is the compiler the GNU C compiler? 19549with_gcc=$GCC_RC 19550 19551# An ERE matcher. 19552EGREP=$lt_EGREP 19553 19554# The linker used to build libraries. 19555LD=$lt_LD_RC 19556 19557# Whether we need hard or soft links. 19558LN_S=$lt_LN_S 19559 19560# A BSD-compatible nm program. 19561NM=$lt_NM 19562 19563# A symbol stripping program 19564STRIP=$lt_STRIP 19565 19566# Used to examine libraries when file_magic_cmd begins "file" 19567MAGIC_CMD=$MAGIC_CMD 19568 19569# Used on cygwin: DLL creation program. 19570DLLTOOL="$DLLTOOL" 19571 19572# Used on cygwin: object dumper. 19573OBJDUMP="$OBJDUMP" 19574 19575# Used on cygwin: assembler. 19576AS="$AS" 19577 19578# The name of the directory that contains temporary libtool files. 19579objdir=$objdir 19580 19581# How to create reloadable object files. 19582reload_flag=$lt_reload_flag 19583reload_cmds=$lt_reload_cmds 19584 19585# How to pass a linker flag through the compiler. 19586wl=$lt_lt_prog_compiler_wl_RC 19587 19588# Object file suffix (normally "o"). 19589objext="$ac_objext" 19590 19591# Old archive suffix (normally "a"). 19592libext="$libext" 19593 19594# Shared library suffix (normally ".so"). 19595shrext_cmds='$shrext_cmds' 19596 19597# Executable file suffix (normally ""). 19598exeext="$exeext" 19599 19600# Additional compiler flags for building library objects. 19601pic_flag=$lt_lt_prog_compiler_pic_RC 19602pic_mode=$pic_mode 19603 19604# What is the maximum length of a command? 19605max_cmd_len=$lt_cv_sys_max_cmd_len 19606 19607# Does compiler simultaneously support -c and -o options? 19608compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19609 19610# Must we lock files when doing compilation? 19611need_locks=$lt_need_locks 19612 19613# Do we need the lib prefix for modules? 19614need_lib_prefix=$need_lib_prefix 19615 19616# Do we need a version for libraries? 19617need_version=$need_version 19618 19619# Whether dlopen is supported. 19620dlopen_support=$enable_dlopen 19621 19622# Whether dlopen of programs is supported. 19623dlopen_self=$enable_dlopen_self 19624 19625# Whether dlopen of statically linked programs is supported. 19626dlopen_self_static=$enable_dlopen_self_static 19627 19628# Compiler flag to prevent dynamic linking. 19629link_static_flag=$lt_lt_prog_compiler_static_RC 19630 19631# Compiler flag to turn off builtin functions. 19632no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19633 19634# Compiler flag to allow reflexive dlopens. 19635export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19636 19637# Compiler flag to generate shared objects directly from archives. 19638whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19639 19640# Compiler flag to generate thread-safe objects. 19641thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19642 19643# Library versioning type. 19644version_type=$version_type 19645 19646# Format of library name prefix. 19647libname_spec=$lt_libname_spec 19648 19649# List of archive names. First name is the real one, the rest are links. 19650# The last name is the one that the linker finds with -lNAME. 19651library_names_spec=$lt_library_names_spec 19652 19653# The coded name of the library, if different from the real name. 19654soname_spec=$lt_soname_spec 19655 19656# Commands used to build and install an old-style archive. 19657RANLIB=$lt_RANLIB 19658old_archive_cmds=$lt_old_archive_cmds_RC 19659old_postinstall_cmds=$lt_old_postinstall_cmds 19660old_postuninstall_cmds=$lt_old_postuninstall_cmds 19661 19662# Create an old-style archive from a shared archive. 19663old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19664 19665# Create a temporary old-style archive to link instead of a shared archive. 19666old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19667 19668# Commands used to build and install a shared archive. 19669archive_cmds=$lt_archive_cmds_RC 19670archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19671postinstall_cmds=$lt_postinstall_cmds 19672postuninstall_cmds=$lt_postuninstall_cmds 19673 19674# Commands used to build a loadable module (assumed same as above if empty) 19675module_cmds=$lt_module_cmds_RC 19676module_expsym_cmds=$lt_module_expsym_cmds_RC 19677 19678# Commands to strip libraries. 19679old_striplib=$lt_old_striplib 19680striplib=$lt_striplib 19681 19682# Dependencies to place before the objects being linked to create a 19683# shared library. 19684predep_objects=$lt_predep_objects_RC 19685 19686# Dependencies to place after the objects being linked to create a 19687# shared library. 19688postdep_objects=$lt_postdep_objects_RC 19689 19690# Dependencies to place before the objects being linked to create a 19691# shared library. 19692predeps=$lt_predeps_RC 19693 19694# Dependencies to place after the objects being linked to create a 19695# shared library. 19696postdeps=$lt_postdeps_RC 19697 19698# The directories searched by this compiler when creating a shared 19699# library 19700compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19701 19702# The library search path used internally by the compiler when linking 19703# a shared library. 19704compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19705 19706# Method to check whether dependent libraries are shared objects. 19707deplibs_check_method=$lt_deplibs_check_method 19708 19709# Command to use when deplibs_check_method == file_magic. 19710file_magic_cmd=$lt_file_magic_cmd 19711 19712# Flag that allows shared libraries with undefined symbols to be built. 19713allow_undefined_flag=$lt_allow_undefined_flag_RC 19714 19715# Flag that forces no undefined symbols. 19716no_undefined_flag=$lt_no_undefined_flag_RC 19717 19718# Commands used to finish a libtool library installation in a directory. 19719finish_cmds=$lt_finish_cmds 19720 19721# Same as above, but a single script fragment to be evaled but not shown. 19722finish_eval=$lt_finish_eval 19723 19724# Take the output of nm and produce a listing of raw symbols and C names. 19725global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19726 19727# Transform the output of nm in a proper C declaration 19728global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19729 19730# Transform the output of nm in a C name address pair 19731global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19732 19733# This is the shared library runtime path variable. 19734runpath_var=$runpath_var 19735 19736# This is the shared library path variable. 19737shlibpath_var=$shlibpath_var 19738 19739# Is shlibpath searched before the hard-coded library search path? 19740shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19741 19742# How to hardcode a shared library path into an executable. 19743hardcode_action=$hardcode_action_RC 19744 19745# Whether we should hardcode library paths into libraries. 19746hardcode_into_libs=$hardcode_into_libs 19747 19748# Flag to hardcode \$libdir into a binary during linking. 19749# This must work even if \$libdir does not exist. 19750hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19751 19752# If ld is used when linking, flag to hardcode \$libdir into 19753# a binary during linking. This must work even if \$libdir does 19754# not exist. 19755hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19756 19757# Whether we need a single -rpath flag with a separated argument. 19758hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19759 19760# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19761# resulting binary. 19762hardcode_direct=$hardcode_direct_RC 19763 19764# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19765# resulting binary. 19766hardcode_minus_L=$hardcode_minus_L_RC 19767 19768# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19769# the resulting binary. 19770hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19771 19772# Set to yes if building a shared library automatically hardcodes DIR into the library 19773# and all subsequent libraries and executables linked against it. 19774hardcode_automatic=$hardcode_automatic_RC 19775 19776# Variables whose values should be saved in libtool wrapper scripts and 19777# restored at relink time. 19778variables_saved_for_relink="$variables_saved_for_relink" 19779 19780# Whether libtool must link a program against all its dependency libraries. 19781link_all_deplibs=$link_all_deplibs_RC 19782 19783# Compile-time system search path for libraries 19784sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19785 19786# Run-time system search path for libraries 19787sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19788 19789# Fix the shell variable \$srcfile for the compiler. 19790fix_srcfile_path=$lt_fix_srcfile_path 19791 19792# Set to yes if exported symbols are required. 19793always_export_symbols=$always_export_symbols_RC 19794 19795# The commands to list exported symbols. 19796export_symbols_cmds=$lt_export_symbols_cmds_RC 19797 19798# The commands to extract the exported symbol list from a shared archive. 19799extract_expsyms_cmds=$lt_extract_expsyms_cmds 19800 19801# Symbols that should not be listed in the preloaded symbols. 19802exclude_expsyms=$lt_exclude_expsyms_RC 19803 19804# Symbols that must always be exported. 19805include_expsyms=$lt_include_expsyms_RC 19806 19807# ### END LIBTOOL TAG CONFIG: $tagname 19808 19809__EOF__ 19810 19811 19812else 19813 # If there is no Makefile yet, we rely on a make rule to execute 19814 # `config.status --recheck' to rerun these tests and create the 19815 # libtool script then. 19816 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19817 if test -f "$ltmain_in"; then 19818 test -f Makefile && make "$ltmain" 19819 fi 19820fi 19821 19822 19823ac_ext=c 19824ac_cpp='$CPP $CPPFLAGS' 19825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19827ac_compiler_gnu=$ac_cv_c_compiler_gnu 19828 19829CC="$lt_save_CC" 19830 19831 ;; 19832 19833 *) 19834 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19835echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19836 { (exit 1); exit 1; }; } 19837 ;; 19838 esac 19839 19840 # Append the new tag name to the list of available tags. 19841 if test -n "$tagname" ; then 19842 available_tags="$available_tags $tagname" 19843 fi 19844 fi 19845 done 19846 IFS="$lt_save_ifs" 19847 19848 # Now substitute the updated list of available tags. 19849 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19850 mv "${ofile}T" "$ofile" 19851 chmod +x "$ofile" 19852 else 19853 rm -f "${ofile}T" 19854 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19855echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19856 { (exit 1); exit 1; }; } 19857 fi 19858fi 19859 19860 19861 19862# This can be used to rebuild libtool when needed 19863LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19864 19865# Always use our own libtool. 19866LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19867 19868# Prevent multiple expansion 19869 19870 19871 19872 19873 19874 19875 19876 19877 19878 19879 19880 19881 19882 19883 19884 19885 19886 19887 19888 19889if test -n "$ac_tool_prefix"; then 19890 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 19891set dummy ${ac_tool_prefix}ranlib; ac_word=$2 19892{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19894if test "${ac_cv_prog_RANLIB+set}" = set; then 19895 echo $ECHO_N "(cached) $ECHO_C" >&6 19896else 19897 if test -n "$RANLIB"; then 19898 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 19899else 19900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19901for as_dir in $PATH 19902do 19903 IFS=$as_save_IFS 19904 test -z "$as_dir" && as_dir=. 19905 for ac_exec_ext in '' $ac_executable_extensions; do 19906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19907 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 19908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19909 break 2 19910 fi 19911done 19912done 19913IFS=$as_save_IFS 19914 19915fi 19916fi 19917RANLIB=$ac_cv_prog_RANLIB 19918if test -n "$RANLIB"; then 19919 { echo "$as_me:$LINENO: result: $RANLIB" >&5 19920echo "${ECHO_T}$RANLIB" >&6; } 19921else 19922 { echo "$as_me:$LINENO: result: no" >&5 19923echo "${ECHO_T}no" >&6; } 19924fi 19925 19926 19927fi 19928if test -z "$ac_cv_prog_RANLIB"; then 19929 ac_ct_RANLIB=$RANLIB 19930 # Extract the first word of "ranlib", so it can be a program name with args. 19931set dummy ranlib; ac_word=$2 19932{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19934if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 19935 echo $ECHO_N "(cached) $ECHO_C" >&6 19936else 19937 if test -n "$ac_ct_RANLIB"; then 19938 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 19939else 19940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19941for as_dir in $PATH 19942do 19943 IFS=$as_save_IFS 19944 test -z "$as_dir" && as_dir=. 19945 for ac_exec_ext in '' $ac_executable_extensions; do 19946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19947 ac_cv_prog_ac_ct_RANLIB="ranlib" 19948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19949 break 2 19950 fi 19951done 19952done 19953IFS=$as_save_IFS 19954 19955fi 19956fi 19957ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 19958if test -n "$ac_ct_RANLIB"; then 19959 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 19960echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 19961else 19962 { echo "$as_me:$LINENO: result: no" >&5 19963echo "${ECHO_T}no" >&6; } 19964fi 19965 19966 if test "x$ac_ct_RANLIB" = x; then 19967 RANLIB=":" 19968 else 19969 case $cross_compiling:$ac_tool_warned in 19970yes:) 19971{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19972whose name does not start with the host triplet. If you think this 19973configuration is useful to you, please write to autoconf@gnu.org." >&5 19974echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19975whose name does not start with the host triplet. If you think this 19976configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19977ac_tool_warned=yes ;; 19978esac 19979 RANLIB=$ac_ct_RANLIB 19980 fi 19981else 19982 RANLIB="$ac_cv_prog_RANLIB" 19983fi 19984 19985# Find a good install program. We prefer a C program (faster), 19986# so one script is as good as another. But avoid the broken or 19987# incompatible versions: 19988# SysV /etc/install, /usr/sbin/install 19989# SunOS /usr/etc/install 19990# IRIX /sbin/install 19991# AIX /bin/install 19992# AmigaOS /C/install, which installs bootblocks on floppy discs 19993# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 19994# AFS /usr/afsws/bin/install, which mishandles nonexistent args 19995# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 19996# OS/2's system install, which has a completely different semantic 19997# ./install, which can be erroneously created by make from ./install.sh. 19998{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 19999echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 20000if test -z "$INSTALL"; then 20001if test "${ac_cv_path_install+set}" = set; then 20002 echo $ECHO_N "(cached) $ECHO_C" >&6 20003else 20004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20005for as_dir in $PATH 20006do 20007 IFS=$as_save_IFS 20008 test -z "$as_dir" && as_dir=. 20009 # Account for people who put trailing slashes in PATH elements. 20010case $as_dir/ in 20011 ./ | .// | /cC/* | \ 20012 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 20013 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 20014 /usr/ucb/* ) ;; 20015 *) 20016 # OSF1 and SCO ODT 3.0 have their own names for install. 20017 # Don't use installbsd from OSF since it installs stuff as root 20018 # by default. 20019 for ac_prog in ginstall scoinst install; do 20020 for ac_exec_ext in '' $ac_executable_extensions; do 20021 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 20022 if test $ac_prog = install && 20023 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 20024 # AIX install. It has an incompatible calling convention. 20025 : 20026 elif test $ac_prog = install && 20027 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 20028 # program-specific install script used by HP pwplus--don't use. 20029 : 20030 else 20031 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 20032 break 3 20033 fi 20034 fi 20035 done 20036 done 20037 ;; 20038esac 20039done 20040IFS=$as_save_IFS 20041 20042 20043fi 20044 if test "${ac_cv_path_install+set}" = set; then 20045 INSTALL=$ac_cv_path_install 20046 else 20047 # As a last resort, use the slow shell script. Don't cache a 20048 # value for INSTALL within a source directory, because that will 20049 # break other packages using the cache if that directory is 20050 # removed, or if the value is a relative name. 20051 INSTALL=$ac_install_sh 20052 fi 20053fi 20054{ echo "$as_me:$LINENO: result: $INSTALL" >&5 20055echo "${ECHO_T}$INSTALL" >&6; } 20056 20057# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 20058# It thinks the first close brace ends the variable substitution. 20059test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 20060 20061test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 20062 20063test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 20064 20065{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 20066echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 20067LN_S=$as_ln_s 20068if test "$LN_S" = "ln -s"; then 20069 { echo "$as_me:$LINENO: result: yes" >&5 20070echo "${ECHO_T}yes" >&6; } 20071else 20072 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 20073echo "${ECHO_T}no, using $LN_S" >&6; } 20074fi 20075 20076 20077{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 20078echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 20079 # Check whether --enable-maintainer-mode was given. 20080if test "${enable_maintainer_mode+set}" = set; then 20081 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 20082else 20083 USE_MAINTAINER_MODE=no 20084fi 20085 20086 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 20087echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 20088 if test $USE_MAINTAINER_MODE = yes; then 20089 MAINTAINER_MODE_TRUE= 20090 MAINTAINER_MODE_FALSE='#' 20091else 20092 MAINTAINER_MODE_TRUE='#' 20093 MAINTAINER_MODE_FALSE= 20094fi 20095 20096 MAINT=$MAINTAINER_MODE_TRUE 20097 20098 20099 20100ac_config_headers="$ac_config_headers include/apreq_config.h" 20101 20102 20103 20104 20105 # Check whether --enable-profile was given. 20106if test "${enable_profile+set}" = set; then 20107 enableval=$enable_profile; PROFILE=$enableval 20108else 20109 PROFILE="no" 20110fi 20111 20112 # Check whether --enable-perl_glue was given. 20113if test "${enable_perl_glue+set}" = set; then 20114 enableval=$enable_perl_glue; PERL_GLUE=$enableval 20115else 20116 PERL_GLUE="no" 20117fi 20118 20119 20120# Check whether --with-perl was given. 20121if test "${with_perl+set}" = set; then 20122 withval=$with_perl; PERL=$withval 20123else 20124 PERL="perl" 20125fi 20126 20127 20128# Check whether --with-apache2-apxs was given. 20129if test "${with_apache2_apxs+set}" = set; then 20130 withval=$with_apache2_apxs; APACHE2_APXS=$withval 20131else 20132 APACHE2_APXS="apxs" 20133fi 20134 20135 20136# Check whether --with-apache2-src was given. 20137if test "${with_apache2_src+set}" = set; then 20138 withval=$with_apache2_src; APACHE2_SRC=$withval 20139else 20140 APACHE2_SRC="" 20141fi 20142 20143 20144# Check whether --with-apache2-httpd was given. 20145if test "${with_apache2_httpd+set}" = set; then 20146 withval=$with_apache2_httpd; APACHE2_HTTPD=$withval 20147else 20148 APACHE2_HTTPD="" 20149fi 20150 20151 20152# Check whether --with-apr-config was given. 20153if test "${with_apr_config+set}" = set; then 20154 withval=$with_apr_config; APR_CONFIG=$withval 20155else 20156 APR_CONFIG="" 20157fi 20158 20159 20160# Check whether --with-apu-config was given. 20161if test "${with_apu_config+set}" = set; then 20162 withval=$with_apu_config; APU_CONFIG=$withval 20163else 20164 APU_CONFIG="" 20165fi 20166 20167 20168# Check whether --with-apache1-apxs was given. 20169if test "${with_apache1_apxs+set}" = set; then 20170 withval=$with_apache1_apxs; APACHE1_APXS=$withval 20171else 20172 APACHE1_APXS="" 20173fi 20174 20175 20176# Check whether --with-perl-opts was given. 20177if test "${with_perl_opts+set}" = set; then 20178 withval=$with_perl_opts; PERL_OPTS=$withval 20179else 20180 PERL_OPTS="" 20181fi 20182 20183 20184# Check whether --with-mm-opts was given. 20185if test "${with_mm_opts+set}" = set; then 20186 withval=$with_mm_opts; MM_OPTS=$withval 20187else 20188 MM_OPTS="" 20189fi 20190 20191 20192# Check whether --with-expat was given. 20193if test "${with_expat+set}" = set; then 20194 withval=$with_expat; EXPAT_DIR=$withval 20195else 20196 EXPAT_DIR="" 20197fi 20198 20199 20200 OS=`$PERL -e 'print $^O'` 20201 20202 prereq_check="$PERL $PERL_OPTS build/version_check.pl" 20203 20204 if test -n "$APACHE2_SRC"; then 20205 # no apxs: must compile httpd from source 20206 20207 APACHE2_SRC=`cd $APACHE2_SRC;pwd` 20208 20209 as_ac_File=`echo "ac_cv_file_$APACHE2_SRC/include/httpd.h" | $as_tr_sh` 20210{ echo "$as_me:$LINENO: checking for $APACHE2_SRC/include/httpd.h" >&5 20211echo $ECHO_N "checking for $APACHE2_SRC/include/httpd.h... $ECHO_C" >&6; } 20212if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 20213 echo $ECHO_N "(cached) $ECHO_C" >&6 20214else 20215 test "$cross_compiling" = yes && 20216 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 20217echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 20218 { (exit 1); exit 1; }; } 20219if test -r "$APACHE2_SRC/include/httpd.h"; then 20220 eval "$as_ac_File=yes" 20221else 20222 eval "$as_ac_File=no" 20223fi 20224fi 20225ac_res=`eval echo '${'$as_ac_File'}'` 20226 { echo "$as_me:$LINENO: result: $ac_res" >&5 20227echo "${ECHO_T}$ac_res" >&6; } 20228if test `eval echo '${'$as_ac_File'}'` = yes; then 20229 : 20230else 20231 { { echo "$as_me:$LINENO: error: invalid Apache2 source directory" >&5 20232echo "$as_me: error: invalid Apache2 source directory" >&2;} 20233 { (exit 1); exit 1; }; } 20234fi 20235 20236 20237 APACHE2_INCLUDES=-I$APACHE2_SRC/include 20238 20239 if test -z "$APR_CONFIG"; then 20240 APR_CONFIG="$APACHE2_SRC/srclib/apr/apr-config" 20241 fi 20242 20243 if test -z "$APU_CONFIG"; then 20244 APU_CONFIG="$APACHE2_SRC/srclib/apr-util/apu-config" 20245 fi 20246 20247 APACHE2_HTTPD=$APACHE2_SRC/httpd 20248 20249 else 20250 # have apxs: use it 20251 20252 APACHE2_INCLUDES=-I`$APACHE2_APXS -q INCLUDEDIR` 20253 20254 APR_MAJOR_VERSION=`$APACHE2_APXS -q APR_VERSION 2>/dev/null | cut -d. -f 1` 20255 if test ${APR_MAJOR_VERSION:="0"} -eq 0; then 20256 apr_config=apr-config 20257 apu_config=apu-config 20258 apreq_libs="-lapr -laprutil" 20259 else 20260 apr_config=apr-$APR_MAJOR_VERSION-config 20261 apu_config=apu-$APR_MAJOR_VERSION-config 20262 apreq_libs="-lapr-$APR_MAJOR_VERSION -laprutil-$APR_MAJOR_VERSION" 20263 fi 20264 20265 if test -z "$APR_CONFIG"; then 20266 APR_CONFIG=`$APACHE2_APXS -q APR_BINDIR`/$apr_config 20267 fi 20268 20269 if test -z "$APU_CONFIG"; then 20270 APU_CONFIG=`$APACHE2_APXS -q APU_BINDIR`/$apu_config 20271 fi 20272 20273 if test -z "$APACHE2_HTTPD"; then 20274 APACHE2_HTTPD=`$APACHE2_APXS -q SBINDIR`/`$APACHE2_APXS -q progname` 20275 fi 20276 20277 if test -z "`$prereq_check apache2 $APACHE2_HTTPD`"; then 20278 { { echo "$as_me:$LINENO: error: Bad apache2 binary ($APACHE2_HTTPD)" >&5 20279echo "$as_me: error: Bad apache2 binary ($APACHE2_HTTPD)" >&2;} 20280 { (exit 1); exit 1; }; } 20281 fi 20282 20283 APR_DOC_VERSION=`$APACHE2_APXS -q APR_VERSION 2>/dev/null | cut -d. -f -2` 20284 APU_DOC_VERSION=`$APACHE2_APXS -q APU_VERSION 2>/dev/null | cut -d. -f -2` 20285 fi 20286 20287 if test "x$APR_DOC_VERSION" = 'x'; then 20288 APR_DOC_VERSION=0.9 20289 fi 20290 if test "x$APU_DOC_VERSION" = 'x'; then 20291 APU_DOC_VERSION=0.9 20292 fi 20293 20294 as_ac_File=`echo "ac_cv_file_$APR_CONFIG" | $as_tr_sh` 20295{ echo "$as_me:$LINENO: checking for $APR_CONFIG" >&5 20296echo $ECHO_N "checking for $APR_CONFIG... $ECHO_C" >&6; } 20297if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 20298 echo $ECHO_N "(cached) $ECHO_C" >&6 20299else 20300 test "$cross_compiling" = yes && 20301 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 20302echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 20303 { (exit 1); exit 1; }; } 20304if test -r "$APR_CONFIG"; then 20305 eval "$as_ac_File=yes" 20306else 20307 eval "$as_ac_File=no" 20308fi 20309fi 20310ac_res=`eval echo '${'$as_ac_File'}'` 20311 { echo "$as_me:$LINENO: result: $ac_res" >&5 20312echo "${ECHO_T}$ac_res" >&6; } 20313if test `eval echo '${'$as_ac_File'}'` = yes; then 20314 : 20315else 20316 { { echo "$as_me:$LINENO: error: invalid apr-config location ($APR_CONFIG)- did you forget to configure apr?" >&5 20317echo "$as_me: error: invalid apr-config location ($APR_CONFIG)- did you forget to configure apr?" >&2;} 20318 { (exit 1); exit 1; }; } 20319fi 20320 20321 20322 if test -z "`$prereq_check apr $APR_CONFIG`"; then 20323 { { echo "$as_me:$LINENO: error: Bad libapr version" >&5 20324echo "$as_me: error: Bad libapr version" >&2;} 20325 { (exit 1); exit 1; }; } 20326 fi 20327 20328 as_ac_File=`echo "ac_cv_file_$APU_CONFIG" | $as_tr_sh` 20329{ echo "$as_me:$LINENO: checking for $APU_CONFIG" >&5 20330echo $ECHO_N "checking for $APU_CONFIG... $ECHO_C" >&6; } 20331if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then 20332 echo $ECHO_N "(cached) $ECHO_C" >&6 20333else 20334 test "$cross_compiling" = yes && 20335 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 20336echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} 20337 { (exit 1); exit 1; }; } 20338if test -r "$APU_CONFIG"; then 20339 eval "$as_ac_File=yes" 20340else 20341 eval "$as_ac_File=no" 20342fi 20343fi 20344ac_res=`eval echo '${'$as_ac_File'}'` 20345 { echo "$as_me:$LINENO: result: $ac_res" >&5 20346echo "${ECHO_T}$ac_res" >&6; } 20347if test `eval echo '${'$as_ac_File'}'` = yes; then 20348 : 20349else 20350 { { echo "$as_me:$LINENO: error: invalid apu-config location ($APU_CONFIG)- did you forget to configure apr-util?" >&5 20351echo "$as_me: error: invalid apu-config location ($APU_CONFIG)- did you forget to configure apr-util?" >&2;} 20352 { (exit 1); exit 1; }; } 20353fi 20354 20355 20356 if test -z "`$prereq_check apu $APU_CONFIG`"; then 20357 { { echo "$as_me:$LINENO: error: Bad libaprutil version" >&5 20358echo "$as_me: error: Bad libaprutil version" >&2;} 20359 { (exit 1); exit 1; }; } 20360 fi 20361 20362 if test "x$PERL_GLUE" != "xno"; then 20363 { echo "$as_me:$LINENO: checking for perl" >&5 20364echo $ECHO_N "checking for perl... $ECHO_C" >&6; } 20365 if test -z "`$prereq_check perl $PERL`"; then 20366 { { echo "$as_me:$LINENO: error: Bad perl version" >&5 20367echo "$as_me: error: Bad perl version" >&2;} 20368 { (exit 1); exit 1; }; } 20369 fi 20370 { echo "$as_me:$LINENO: result: $PERL" >&5 20371echo "${ECHO_T}$PERL" >&6; } 20372 20373 { echo "$as_me:$LINENO: checking for ExtUtils::XSBuilder" >&5 20374echo $ECHO_N "checking for ExtUtils::XSBuilder... $ECHO_C" >&6; } 20375 if test -z "`$prereq_check ExtUtils::XSBuilder`"; then 20376 { echo "$as_me:$LINENO: WARNING: Bad ExtUtils::XSBuilder version" >&5 20377echo "$as_me: WARNING: Bad ExtUtils::XSBuilder version" >&2;} 20378 fi 20379 { echo "$as_me:$LINENO: result: yes" >&5 20380echo "${ECHO_T}yes" >&6; } 20381 20382 { echo "$as_me:$LINENO: checking for mod_perl2" >&5 20383echo $ECHO_N "checking for mod_perl2... $ECHO_C" >&6; } 20384 if test -z "`$prereq_check mod_perl2`"; then 20385 { echo "$as_me:$LINENO: WARNING: Bad mod_perl2 version" >&5 20386echo "$as_me: WARNING: Bad mod_perl2 version" >&2;} 20387 fi 20388 { echo "$as_me:$LINENO: result: yes" >&5 20389echo "${ECHO_T}yes" >&6; } 20390 20391 { echo "$as_me:$LINENO: checking for Apache::Test" >&5 20392echo $ECHO_N "checking for Apache::Test... $ECHO_C" >&6; } 20393 if test -z "`$prereq_check Apache::Test`"; then 20394 { echo "$as_me:$LINENO: WARNING: Bad Apache::Test version" >&5 20395echo "$as_me: WARNING: Bad Apache::Test version" >&2;} 20396 fi 20397 { echo "$as_me:$LINENO: result: yes" >&5 20398echo "${ECHO_T}yes" >&6; } 20399 20400 { echo "$as_me:$LINENO: checking for ExtUtils::MakeMaker" >&5 20401echo $ECHO_N "checking for ExtUtils::MakeMaker... $ECHO_C" >&6; } 20402 if test -z "`$prereq_check ExtUtils::MakeMaker`"; then 20403 { echo "$as_me:$LINENO: WARNING: Bad ExtUtils::MakeMaker version" >&5 20404echo "$as_me: WARNING: Bad ExtUtils::MakeMaker version" >&2;} 20405 fi 20406 { echo "$as_me:$LINENO: result: yes" >&5 20407echo "${ECHO_T}yes" >&6; } 20408 20409 fi 20410 20411 if test "x$PROFILE" != "xno"; then 20412 ENABLE_PROFILE_TRUE= 20413 ENABLE_PROFILE_FALSE='#' 20414else 20415 ENABLE_PROFILE_TRUE='#' 20416 ENABLE_PROFILE_FALSE= 20417fi 20418 20419 if test "x$PERL_GLUE" != "xno"; then 20420 BUILD_PERL_GLUE_TRUE= 20421 BUILD_PERL_GLUE_FALSE='#' 20422else 20423 BUILD_PERL_GLUE_TRUE='#' 20424 BUILD_PERL_GLUE_FALSE= 20425fi 20426 20427 if test -n "`$prereq_check Apache::Test`"; then 20428 HAVE_APACHE_TEST_TRUE= 20429 HAVE_APACHE_TEST_FALSE='#' 20430else 20431 HAVE_APACHE_TEST_TRUE='#' 20432 HAVE_APACHE_TEST_FALSE= 20433fi 20434 20435 if test -n "$APACHE2_SRC"; then 20436 BUILD_HTTPD_TRUE= 20437 BUILD_HTTPD_FALSE='#' 20438else 20439 BUILD_HTTPD_TRUE='#' 20440 BUILD_HTTPD_FALSE= 20441fi 20442 20443 if test "x$APR_CONFIG" = x`$APR_CONFIG --srcdir`/apr-config; then 20444 BUILD_APR_TRUE= 20445 BUILD_APR_FALSE='#' 20446else 20447 BUILD_APR_TRUE='#' 20448 BUILD_APR_FALSE= 20449fi 20450 20451 if test "x$APU_CONFIG" = x`$APU_CONFIG --srcdir`/apu-config; then 20452 BUILD_APU_TRUE= 20453 BUILD_APU_FALSE='#' 20454else 20455 BUILD_APU_TRUE='#' 20456 BUILD_APU_FALSE= 20457fi 20458 20459 if test -n "$APACHE1_APXS"; then 20460 HAVE_APACHE1_TRUE= 20461 HAVE_APACHE1_FALSE='#' 20462else 20463 HAVE_APACHE1_TRUE='#' 20464 HAVE_APACHE1_FALSE= 20465fi 20466 20467 20468 ac_default_prefix="`$APU_CONFIG --prefix`" 20469 20470 20471 if test "x$APR_INCLUDES" = "x"; then 20472 echo " setting APR_INCLUDES to \""`$APR_CONFIG --includes`"\"" 20473 APR_INCLUDES=""`$APR_CONFIG --includes`"" 20474 else 20475 apr_addto_bugger=""`$APR_CONFIG --includes`"" 20476 for i in $apr_addto_bugger; do 20477 apr_addto_duplicate="0" 20478 for j in $APR_INCLUDES; do 20479 if test "x$i" = "x$j"; then 20480 apr_addto_duplicate="1" 20481 break 20482 fi 20483 done 20484 if test $apr_addto_duplicate = "0"; then 20485 echo " adding \"$i\" to APR_INCLUDES" 20486 APR_INCLUDES="$APR_INCLUDES $i" 20487 fi 20488 done 20489 fi 20490 20491 20492 if test "x$APR_INCLUDES" = "x"; then 20493 echo " setting APR_INCLUDES to \""`$APU_CONFIG --includes`"\"" 20494 APR_INCLUDES=""`$APU_CONFIG --includes`"" 20495 else 20496 apr_addto_bugger=""`$APU_CONFIG --includes`"" 20497 for i in $apr_addto_bugger; do 20498 apr_addto_duplicate="0" 20499 for j in $APR_INCLUDES; do 20500 if test "x$i" = "x$j"; then 20501 apr_addto_duplicate="1" 20502 break 20503 fi 20504 done 20505 if test $apr_addto_duplicate = "0"; then 20506 echo " adding \"$i\" to APR_INCLUDES" 20507 APR_INCLUDES="$APR_INCLUDES $i" 20508 fi 20509 done 20510 fi 20511 20512 APR_LA="`$APR_CONFIG --apr-la-file`" 20513 APU_LA="`$APU_CONFIG --apu-la-file`" 20514 20515 if test "x$APR_LTFLAGS" = "x"; then 20516 echo " setting APR_LTFLAGS to \""`$APR_CONFIG --link-libtool`"\"" 20517 APR_LTFLAGS=""`$APR_CONFIG --link-libtool`"" 20518 else 20519 apr_addto_bugger=""`$APR_CONFIG --link-libtool`"" 20520 for i in $apr_addto_bugger; do 20521 apr_addto_duplicate="0" 20522 for j in $APR_LTFLAGS; do 20523 if test "x$i" = "x$j"; then 20524 apr_addto_duplicate="1" 20525 break 20526 fi 20527 done 20528 if test $apr_addto_duplicate = "0"; then 20529 echo " adding \"$i\" to APR_LTFLAGS" 20530 APR_LTFLAGS="$APR_LTFLAGS $i" 20531 fi 20532 done 20533 fi 20534 20535 20536 if test "x$APR_LTFLAGS" = "x"; then 20537 echo " setting APR_LTFLAGS to \""`$APU_CONFIG --link-libtool`"\"" 20538 APR_LTFLAGS=""`$APU_CONFIG --link-libtool`"" 20539 else 20540 apr_addto_bugger=""`$APU_CONFIG --link-libtool`"" 20541 for i in $apr_addto_bugger; do 20542 apr_addto_duplicate="0" 20543 for j in $APR_LTFLAGS; do 20544 if test "x$i" = "x$j"; then 20545 apr_addto_duplicate="1" 20546 break 20547 fi 20548 done 20549 if test $apr_addto_duplicate = "0"; then 20550 echo " adding \"$i\" to APR_LTFLAGS" 20551 APR_LTFLAGS="$APR_LTFLAGS $i" 20552 fi 20553 done 20554 fi 20555 20556 20557 20558 if test "x$APR_LIBS" = "x"; then 20559 echo " setting APR_LIBS to \""`$APR_CONFIG --libs`"\"" 20560 APR_LIBS=""`$APR_CONFIG --libs`"" 20561 else 20562 apr_addto_bugger=""`$APR_CONFIG --libs`"" 20563 for i in $apr_addto_bugger; do 20564 apr_addto_duplicate="0" 20565 for j in $APR_LIBS; do 20566 if test "x$i" = "x$j"; then 20567 apr_addto_duplicate="1" 20568 break 20569 fi 20570 done 20571 if test $apr_addto_duplicate = "0"; then 20572 echo " adding \"$i\" to APR_LIBS" 20573 APR_LIBS="$APR_LIBS $i" 20574 fi 20575 done 20576 fi 20577 20578 20579 apu_avoid_libs="" 20580 if $APU_CONFIG --avoid-ldap >/dev/null 2>&1; then 20581 apu_avoid_libs="--avoid-ldap" 20582 fi 20583 if $APU_CONFIG --avoid-dbm >/dev/null 2>&1; then 20584 apu_avoid_libs="--avoid-dbm $apu_avoid_libs" 20585 fi 20586 20587 if test "x$OS" = "xsolaris"; then 20588 APU_LIBS="`$APU_CONFIG $apu_avoid_libs --libs | $PERL -pe 's,-lexpat,,'`" 20589 else 20590 APU_LIBS="`$APU_CONFIG $apu_avoid_libs --libs`" 20591 fi 20592 20593 if test "x$APR_LIBS" = "x"; then 20594 echo " setting APR_LIBS to \""$APU_LIBS"\"" 20595 APR_LIBS=""$APU_LIBS"" 20596 else 20597 apr_addto_bugger=""$APU_LIBS"" 20598 for i in $apr_addto_bugger; do 20599 apr_addto_duplicate="0" 20600 for j in $APR_LIBS; do 20601 if test "x$i" = "x$j"; then 20602 apr_addto_duplicate="1" 20603 break 20604 fi 20605 done 20606 if test $apr_addto_duplicate = "0"; then 20607 echo " adding \"$i\" to APR_LIBS" 20608 APR_LIBS="$APR_LIBS $i" 20609 fi 20610 done 20611 fi 20612 20613 20614 20615 if test "x$APR_LDFLAGS" = "x"; then 20616 echo " setting APR_LDFLAGS to \""`$APU_CONFIG --link-ld --ldflags`"\"" 20617 APR_LDFLAGS=""`$APU_CONFIG --link-ld --ldflags`"" 20618 else 20619 apr_addto_bugger=""`$APU_CONFIG --link-ld --ldflags`"" 20620 for i in $apr_addto_bugger; do 20621 apr_addto_duplicate="0" 20622 for j in $APR_LDFLAGS; do 20623 if test "x$i" = "x$j"; then 20624 apr_addto_duplicate="1" 20625 break 20626 fi 20627 done 20628 if test $apr_addto_duplicate = "0"; then 20629 echo " adding \"$i\" to APR_LDFLAGS" 20630 APR_LDFLAGS="$APR_LDFLAGS $i" 20631 fi 20632 done 20633 fi 20634 20635 20636 if test "x$APR_LDFLAGS" = "x"; then 20637 echo " setting APR_LDFLAGS to \""`$APR_CONFIG --link-ld --ldflags`"\"" 20638 APR_LDFLAGS=""`$APR_CONFIG --link-ld --ldflags`"" 20639 else 20640 apr_addto_bugger=""`$APR_CONFIG --link-ld --ldflags`"" 20641 for i in $apr_addto_bugger; do 20642 apr_addto_duplicate="0" 20643 for j in $APR_LDFLAGS; do 20644 if test "x$i" = "x$j"; then 20645 apr_addto_duplicate="1" 20646 break 20647 fi 20648 done 20649 if test $apr_addto_duplicate = "0"; then 20650 echo " adding \"$i\" to APR_LDFLAGS" 20651 APR_LDFLAGS="$APR_LDFLAGS $i" 20652 fi 20653 done 20654 fi 20655 20656 20657 if test -n "$EXPAT_DIR"; then 20658 20659 if test "x$APR_INCLUDES" = "x"; then 20660 echo " setting APR_INCLUDES to \""-I$EXPAT_DIR/include"\"" 20661 APR_INCLUDES=""-I$EXPAT_DIR/include"" 20662 else 20663 apr_addto_bugger=""-I$EXPAT_DIR/include"" 20664 for i in $apr_addto_bugger; do 20665 apr_addto_duplicate="0" 20666 for j in $APR_INCLUDES; do 20667 if test "x$i" = "x$j"; then 20668 apr_addto_duplicate="1" 20669 break 20670 fi 20671 done 20672 if test $apr_addto_duplicate = "0"; then 20673 echo " adding \"$i\" to APR_INCLUDES" 20674 APR_INCLUDES="$APR_INCLUDES $i" 20675 fi 20676 done 20677 fi 20678 20679 20680 if test "x$APR_LTFLAGS" = "x"; then 20681 echo " setting APR_LTFLAGS to \""-L$EXPAT_DIR/lib"\"" 20682 APR_LTFLAGS=""-L$EXPAT_DIR/lib"" 20683 else 20684 apr_addto_bugger=""-L$EXPAT_DIR/lib"" 20685 for i in $apr_addto_bugger; do 20686 apr_addto_duplicate="0" 20687 for j in $APR_LTFLAGS; do 20688 if test "x$i" = "x$j"; then 20689 apr_addto_duplicate="1" 20690 break 20691 fi 20692 done 20693 if test $apr_addto_duplicate = "0"; then 20694 echo " adding \"$i\" to APR_LTFLAGS" 20695 APR_LTFLAGS="$APR_LTFLAGS $i" 20696 fi 20697 done 20698 fi 20699 20700 fi 20701 20702 abs_srcdir=`(cd $srcdir && pwd)` 20703 abs_builddir=`pwd` 20704 top_builddir="$abs_srcdir" 20705 20706 if test "$abs_builddir" != "$abs_srcdir"; then 20707 USE_VPATH=1 20708 fi 20709 20710 if test "x$USE_MAINTAINER_MODE" != "xno"; then 20711 20712 if test "x$CFLAGS" = "x"; then 20713 echo " setting CFLAGS to \" 20714 -fno-strict-aliasing 20715 -Wall -Wmissing-prototypes -Wstrict-prototypes 20716 -Wmissing-declarations -Wwrite-strings -Wcast-qual 20717 -Wfloat-equal -Wshadow -Wpointer-arith 20718 -Wbad-function-cast -Wsign-compare -Waggregate-return 20719 -Wmissing-noreturn -Wmissing-format-attribute -Wpacked 20720 -Wredundant-decls -Wnested-externs -Wdisabled-optimization 20721 -Wno-long-long -Wendif-labels -Wcast-align -Wpacked 20722 \"" 20723 CFLAGS=" 20724 -fno-strict-aliasing 20725 -Wall -Wmissing-prototypes -Wstrict-prototypes 20726 -Wmissing-declarations -Wwrite-strings -Wcast-qual 20727 -Wfloat-equal -Wshadow -Wpointer-arith 20728 -Wbad-function-cast -Wsign-compare -Waggregate-return 20729 -Wmissing-noreturn -Wmissing-format-attribute -Wpacked 20730 -Wredundant-decls -Wnested-externs -Wdisabled-optimization 20731 -Wno-long-long -Wendif-labels -Wcast-align -Wpacked 20732 " 20733 else 20734 apr_addto_bugger=" 20735 -fno-strict-aliasing 20736 -Wall -Wmissing-prototypes -Wstrict-prototypes 20737 -Wmissing-declarations -Wwrite-strings -Wcast-qual 20738 -Wfloat-equal -Wshadow -Wpointer-arith 20739 -Wbad-function-cast -Wsign-compare -Waggregate-return 20740 -Wmissing-noreturn -Wmissing-format-attribute -Wpacked 20741 -Wredundant-decls -Wnested-externs -Wdisabled-optimization 20742 -Wno-long-long -Wendif-labels -Wcast-align -Wpacked 20743 " 20744 for i in $apr_addto_bugger; do 20745 apr_addto_duplicate="0" 20746 for j in $CFLAGS; do 20747 if test "x$i" = "x$j"; then 20748 apr_addto_duplicate="1" 20749 break 20750 fi 20751 done 20752 if test $apr_addto_duplicate = "0"; then 20753 echo " adding \"$i\" to CFLAGS" 20754 CFLAGS="$CFLAGS $i" 20755 fi 20756 done 20757 fi 20758 20759 # -Wdeclaration-after-statement is only supported on gcc 3.4+ 20760 fi 20761 20762 20763 if test "x$CPPFLAGS" = "x"; then 20764 echo " setting CPPFLAGS to \""`$APR_CONFIG --cppflags`"\"" 20765 CPPFLAGS=""`$APR_CONFIG --cppflags`"" 20766 else 20767 apr_addto_bugger=""`$APR_CONFIG --cppflags`"" 20768 for i in $apr_addto_bugger; do 20769 apr_addto_duplicate="0" 20770 for j in $CPPFLAGS; do 20771 if test "x$i" = "x$j"; then 20772 apr_addto_duplicate="1" 20773 break 20774 fi 20775 done 20776 if test $apr_addto_duplicate = "0"; then 20777 echo " adding \"$i\" to CPPFLAGS" 20778 CPPFLAGS="$CPPFLAGS $i" 20779 fi 20780 done 20781 fi 20782 20783 20784 get_version="$SHELL $abs_srcdir/build/get-version.sh" 20785 version_hdr="$abs_srcdir/include/apreq_version.h" 20786 20787 # set version data 20788 20789 APREQ_CONFIG="$top_builddir/apreq2-config" 20790 20791 APREQ_MAJOR_VERSION=`$get_version major $version_hdr APREQ` 20792 APREQ_MINOR_VERSION=`$get_version minor $version_hdr APREQ` 20793 APREQ_PATCH_VERSION=`$get_version patch $version_hdr APREQ` 20794 APREQ_DOTTED_VERSION=`$get_version all $version_hdr APREQ` 20795 20796 # XXX: APR_MAJOR_VERSION doesn't yet work for static builds 20797 APREQ_LIBTOOL_CURRENT=`expr $APREQ_MAJOR_VERSION + $APREQ_MINOR_VERSION + $APR_MAJOR_VERSION` 20798 APREQ_LIBTOOL_REVISION=$APREQ_PATCH_VERSION 20799 APREQ_LIBTOOL_AGE=$APREQ_MINOR_VERSION 20800 20801 APREQ_LIBTOOL_VERSION="$APREQ_LIBTOOL_CURRENT:$APREQ_LIBTOOL_REVISION:$APREQ_LIBTOOL_AGE" 20802 20803 APREQ_LIBNAME="apreq$APREQ_MAJOR_VERSION" 20804 20805 echo "lib$APREQ_LIBNAME Version: $APREQ_DOTTED_VERSION" 20806 20807 ## Apparently FC5 doesn't like bsdtar 20808 ## which is the default /usr/bin/tar on FreeBSD 20809 ## by default /usr/ports/archivers/gtar installs here 20810 if test "x$OS" = 'xfreebsd'; then 20811 TAR='/usr/local/bin/gtar' 20812 else 20813 TAR='tar' 20814 fi 20815 20816 20817 20818 20819 20820 20821 20822 20823 20824 20825 20826 20827 20828 20829 20830 20831 20832 20833 20834 20835 20836 20837 20838 20839 20840 20841 20842 20843 20844 20845 20846 if test "x$OS" = "xsolaris"; then 20847 $PERL -pi -e 's,^shrext=,shrext_cmds=,' libtool 20848 fi 20849 20850ac_config_files="$ac_config_files Makefile include/Makefile library/Makefile library/t/Makefile module/Makefile module/apache2/Makefile glue/Makefile" 20851 20852ac_config_files="$ac_config_files build/doxygen.conf include/groups.dox" 20853 20854ac_config_files="$ac_config_files apreq2-config" 20855 20856cat >confcache <<\_ACEOF 20857# This file is a shell script that caches the results of configure 20858# tests run on this system so they can be shared between configure 20859# scripts and configure runs, see configure's option --config-cache. 20860# It is not useful on other systems. If it contains results you don't 20861# want to keep, you may remove or edit it. 20862# 20863# config.status only pays attention to the cache file if you give it 20864# the --recheck option to rerun configure. 20865# 20866# `ac_cv_env_foo' variables (set or unset) will be overridden when 20867# loading this file, other *unset* `ac_cv_foo' will be assigned the 20868# following values. 20869 20870_ACEOF 20871 20872# The following way of writing the cache mishandles newlines in values, 20873# but we know of no workaround that is simple, portable, and efficient. 20874# So, we kill variables containing newlines. 20875# Ultrix sh set writes to stderr and can't be redirected directly, 20876# and sets the high bit in the cache file unless we assign to the vars. 20877( 20878 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20879 eval ac_val=\$$ac_var 20880 case $ac_val in #( 20881 *${as_nl}*) 20882 case $ac_var in #( 20883 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20884echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20885 esac 20886 case $ac_var in #( 20887 _ | IFS | as_nl) ;; #( 20888 *) $as_unset $ac_var ;; 20889 esac ;; 20890 esac 20891 done 20892 20893 (set) 2>&1 | 20894 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20895 *${as_nl}ac_space=\ *) 20896 # `set' does not quote correctly, so add quotes (double-quote 20897 # substitution turns \\\\ into \\, and sed turns \\ into \). 20898 sed -n \ 20899 "s/'/'\\\\''/g; 20900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20901 ;; #( 20902 *) 20903 # `set' quotes correctly as required by POSIX, so do not add quotes. 20904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20905 ;; 20906 esac | 20907 sort 20908) | 20909 sed ' 20910 /^ac_cv_env_/b end 20911 t clear 20912 :clear 20913 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20914 t end 20915 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20916 :end' >>confcache 20917if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20918 if test -w "$cache_file"; then 20919 test "x$cache_file" != "x/dev/null" && 20920 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 20921echo "$as_me: updating cache $cache_file" >&6;} 20922 cat confcache >$cache_file 20923 else 20924 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20925echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20926 fi 20927fi 20928rm -f confcache 20929 20930test "x$prefix" = xNONE && prefix=$ac_default_prefix 20931# Let make expand exec_prefix. 20932test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20933 20934DEFS=-DHAVE_CONFIG_H 20935 20936ac_libobjs= 20937ac_ltlibobjs= 20938for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20939 # 1. Remove the extension, and $U if already installed. 20940 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20941 ac_i=`echo "$ac_i" | sed "$ac_script"` 20942 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20943 # will be set to the directory where LIBOBJS objects are built. 20944 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20945 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20946done 20947LIBOBJS=$ac_libobjs 20948 20949LTLIBOBJS=$ac_ltlibobjs 20950 20951 20952if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20953 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20954Usually this means the macro was only invoked conditionally." >&5 20955echo "$as_me: error: conditional \"AMDEP\" was never defined. 20956Usually this means the macro was only invoked conditionally." >&2;} 20957 { (exit 1); exit 1; }; } 20958fi 20959if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20960 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20961Usually this means the macro was only invoked conditionally." >&5 20962echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20963Usually this means the macro was only invoked conditionally." >&2;} 20964 { (exit 1); exit 1; }; } 20965fi 20966if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20967 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20968Usually this means the macro was only invoked conditionally." >&5 20969echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20970Usually this means the macro was only invoked conditionally." >&2;} 20971 { (exit 1); exit 1; }; } 20972fi 20973if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20974 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 20975Usually this means the macro was only invoked conditionally." >&5 20976echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 20977Usually this means the macro was only invoked conditionally." >&2;} 20978 { (exit 1); exit 1; }; } 20979fi 20980if test -z "${ENABLE_PROFILE_TRUE}" && test -z "${ENABLE_PROFILE_FALSE}"; then 20981 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PROFILE\" was never defined. 20982Usually this means the macro was only invoked conditionally." >&5 20983echo "$as_me: error: conditional \"ENABLE_PROFILE\" was never defined. 20984Usually this means the macro was only invoked conditionally." >&2;} 20985 { (exit 1); exit 1; }; } 20986fi 20987if test -z "${BUILD_PERL_GLUE_TRUE}" && test -z "${BUILD_PERL_GLUE_FALSE}"; then 20988 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PERL_GLUE\" was never defined. 20989Usually this means the macro was only invoked conditionally." >&5 20990echo "$as_me: error: conditional \"BUILD_PERL_GLUE\" was never defined. 20991Usually this means the macro was only invoked conditionally." >&2;} 20992 { (exit 1); exit 1; }; } 20993fi 20994if test -z "${HAVE_APACHE_TEST_TRUE}" && test -z "${HAVE_APACHE_TEST_FALSE}"; then 20995 { { echo "$as_me:$LINENO: error: conditional \"HAVE_APACHE_TEST\" was never defined. 20996Usually this means the macro was only invoked conditionally." >&5 20997echo "$as_me: error: conditional \"HAVE_APACHE_TEST\" was never defined. 20998Usually this means the macro was only invoked conditionally." >&2;} 20999 { (exit 1); exit 1; }; } 21000fi 21001if test -z "${BUILD_HTTPD_TRUE}" && test -z "${BUILD_HTTPD_FALSE}"; then 21002 { { echo "$as_me:$LINENO: error: conditional \"BUILD_HTTPD\" was never defined. 21003Usually this means the macro was only invoked conditionally." >&5 21004echo "$as_me: error: conditional \"BUILD_HTTPD\" was never defined. 21005Usually this means the macro was only invoked conditionally." >&2;} 21006 { (exit 1); exit 1; }; } 21007fi 21008if test -z "${BUILD_APR_TRUE}" && test -z "${BUILD_APR_FALSE}"; then 21009 { { echo "$as_me:$LINENO: error: conditional \"BUILD_APR\" was never defined. 21010Usually this means the macro was only invoked conditionally." >&5 21011echo "$as_me: error: conditional \"BUILD_APR\" was never defined. 21012Usually this means the macro was only invoked conditionally." >&2;} 21013 { (exit 1); exit 1; }; } 21014fi 21015if test -z "${BUILD_APU_TRUE}" && test -z "${BUILD_APU_FALSE}"; then 21016 { { echo "$as_me:$LINENO: error: conditional \"BUILD_APU\" was never defined. 21017Usually this means the macro was only invoked conditionally." >&5 21018echo "$as_me: error: conditional \"BUILD_APU\" was never defined. 21019Usually this means the macro was only invoked conditionally." >&2;} 21020 { (exit 1); exit 1; }; } 21021fi 21022if test -z "${HAVE_APACHE1_TRUE}" && test -z "${HAVE_APACHE1_FALSE}"; then 21023 { { echo "$as_me:$LINENO: error: conditional \"HAVE_APACHE1\" was never defined. 21024Usually this means the macro was only invoked conditionally." >&5 21025echo "$as_me: error: conditional \"HAVE_APACHE1\" was never defined. 21026Usually this means the macro was only invoked conditionally." >&2;} 21027 { (exit 1); exit 1; }; } 21028fi 21029 21030: ${CONFIG_STATUS=./config.status} 21031ac_clean_files_save=$ac_clean_files 21032ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21033{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21034echo "$as_me: creating $CONFIG_STATUS" >&6;} 21035cat >$CONFIG_STATUS <<_ACEOF 21036#! $SHELL 21037# Generated by $as_me. 21038# Run this file to recreate the current configuration. 21039# Compiler output produced by configure, useful for debugging 21040# configure, is in config.log if it exists. 21041 21042debug=false 21043ac_cs_recheck=false 21044ac_cs_silent=false 21045SHELL=\${CONFIG_SHELL-$SHELL} 21046_ACEOF 21047 21048cat >>$CONFIG_STATUS <<\_ACEOF 21049## --------------------- ## 21050## M4sh Initialization. ## 21051## --------------------- ## 21052 21053# Be more Bourne compatible 21054DUALCASE=1; export DUALCASE # for MKS sh 21055if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21056 emulate sh 21057 NULLCMD=: 21058 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21059 # is contrary to our usage. Disable this feature. 21060 alias -g '${1+"$@"}'='"$@"' 21061 setopt NO_GLOB_SUBST 21062else 21063 case `(set -o) 2>/dev/null` in 21064 *posix*) set -o posix ;; 21065esac 21066 21067fi 21068 21069 21070 21071 21072# PATH needs CR 21073# Avoid depending upon Character Ranges. 21074as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21075as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21076as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21077as_cr_digits='0123456789' 21078as_cr_alnum=$as_cr_Letters$as_cr_digits 21079 21080# The user is always right. 21081if test "${PATH_SEPARATOR+set}" != set; then 21082 echo "#! /bin/sh" >conf$$.sh 21083 echo "exit 0" >>conf$$.sh 21084 chmod +x conf$$.sh 21085 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21086 PATH_SEPARATOR=';' 21087 else 21088 PATH_SEPARATOR=: 21089 fi 21090 rm -f conf$$.sh 21091fi 21092 21093# Support unset when possible. 21094if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21095 as_unset=unset 21096else 21097 as_unset=false 21098fi 21099 21100 21101# IFS 21102# We need space, tab and new line, in precisely that order. Quoting is 21103# there to prevent editors from complaining about space-tab. 21104# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21105# splitting by setting IFS to empty value.) 21106as_nl=' 21107' 21108IFS=" "" $as_nl" 21109 21110# Find who we are. Look in the path if we contain no directory separator. 21111case $0 in 21112 *[\\/]* ) as_myself=$0 ;; 21113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21114for as_dir in $PATH 21115do 21116 IFS=$as_save_IFS 21117 test -z "$as_dir" && as_dir=. 21118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21119done 21120IFS=$as_save_IFS 21121 21122 ;; 21123esac 21124# We did not find ourselves, most probably we were run as `sh COMMAND' 21125# in which case we are not to be found in the path. 21126if test "x$as_myself" = x; then 21127 as_myself=$0 21128fi 21129if test ! -f "$as_myself"; then 21130 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21131 { (exit 1); exit 1; } 21132fi 21133 21134# Work around bugs in pre-3.0 UWIN ksh. 21135for as_var in ENV MAIL MAILPATH 21136do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21137done 21138PS1='$ ' 21139PS2='> ' 21140PS4='+ ' 21141 21142# NLS nuisances. 21143for as_var in \ 21144 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21145 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21146 LC_TELEPHONE LC_TIME 21147do 21148 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21149 eval $as_var=C; export $as_var 21150 else 21151 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21152 fi 21153done 21154 21155# Required to use basename. 21156if expr a : '\(a\)' >/dev/null 2>&1 && 21157 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21158 as_expr=expr 21159else 21160 as_expr=false 21161fi 21162 21163if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21164 as_basename=basename 21165else 21166 as_basename=false 21167fi 21168 21169 21170# Name of the executable. 21171as_me=`$as_basename -- "$0" || 21172$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21173 X"$0" : 'X\(//\)$' \| \ 21174 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21175echo X/"$0" | 21176 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21177 s//\1/ 21178 q 21179 } 21180 /^X\/\(\/\/\)$/{ 21181 s//\1/ 21182 q 21183 } 21184 /^X\/\(\/\).*/{ 21185 s//\1/ 21186 q 21187 } 21188 s/.*/./; q'` 21189 21190# CDPATH. 21191$as_unset CDPATH 21192 21193 21194 21195 as_lineno_1=$LINENO 21196 as_lineno_2=$LINENO 21197 test "x$as_lineno_1" != "x$as_lineno_2" && 21198 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21199 21200 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21201 # uniformly replaced by the line number. The first 'sed' inserts a 21202 # line-number line after each line using $LINENO; the second 'sed' 21203 # does the real work. The second script uses 'N' to pair each 21204 # line-number line with the line containing $LINENO, and appends 21205 # trailing '-' during substitution so that $LINENO is not a special 21206 # case at line end. 21207 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21208 # scripts with optimization help from Paolo Bonzini. Blame Lee 21209 # E. McMahon (1931-1989) for sed's syntax. :-) 21210 sed -n ' 21211 p 21212 /[$]LINENO/= 21213 ' <$as_myself | 21214 sed ' 21215 s/[$]LINENO.*/&-/ 21216 t lineno 21217 b 21218 :lineno 21219 N 21220 :loop 21221 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21222 t loop 21223 s/-\n.*// 21224 ' >$as_me.lineno && 21225 chmod +x "$as_me.lineno" || 21226 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21227 { (exit 1); exit 1; }; } 21228 21229 # Don't try to exec as it changes $[0], causing all sort of problems 21230 # (the dirname of $[0] is not the place where we might find the 21231 # original and so on. Autoconf is especially sensitive to this). 21232 . "./$as_me.lineno" 21233 # Exit status is that of the last command. 21234 exit 21235} 21236 21237 21238if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21239 as_dirname=dirname 21240else 21241 as_dirname=false 21242fi 21243 21244ECHO_C= ECHO_N= ECHO_T= 21245case `echo -n x` in 21246-n*) 21247 case `echo 'x\c'` in 21248 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21249 *) ECHO_C='\c';; 21250 esac;; 21251*) 21252 ECHO_N='-n';; 21253esac 21254 21255if expr a : '\(a\)' >/dev/null 2>&1 && 21256 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21257 as_expr=expr 21258else 21259 as_expr=false 21260fi 21261 21262rm -f conf$$ conf$$.exe conf$$.file 21263if test -d conf$$.dir; then 21264 rm -f conf$$.dir/conf$$.file 21265else 21266 rm -f conf$$.dir 21267 mkdir conf$$.dir 21268fi 21269echo >conf$$.file 21270if ln -s conf$$.file conf$$ 2>/dev/null; then 21271 as_ln_s='ln -s' 21272 # ... but there are two gotchas: 21273 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21274 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21275 # In both cases, we have to default to `cp -p'. 21276 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21277 as_ln_s='cp -p' 21278elif ln conf$$.file conf$$ 2>/dev/null; then 21279 as_ln_s=ln 21280else 21281 as_ln_s='cp -p' 21282fi 21283rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21284rmdir conf$$.dir 2>/dev/null 21285 21286if mkdir -p . 2>/dev/null; then 21287 as_mkdir_p=: 21288else 21289 test -d ./-p && rmdir ./-p 21290 as_mkdir_p=false 21291fi 21292 21293if test -x / >/dev/null 2>&1; then 21294 as_test_x='test -x' 21295else 21296 if ls -dL / >/dev/null 2>&1; then 21297 as_ls_L_option=L 21298 else 21299 as_ls_L_option= 21300 fi 21301 as_test_x=' 21302 eval sh -c '\'' 21303 if test -d "$1"; then 21304 test -d "$1/."; 21305 else 21306 case $1 in 21307 -*)set "./$1";; 21308 esac; 21309 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 21310 ???[sx]*):;;*)false;;esac;fi 21311 '\'' sh 21312 ' 21313fi 21314as_executable_p=$as_test_x 21315 21316# Sed expression to map a string onto a valid CPP name. 21317as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21318 21319# Sed expression to map a string onto a valid variable name. 21320as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21321 21322 21323exec 6>&1 21324 21325# Save the log message, to keep $[0] and so on meaningful, and to 21326# report actual input values of CONFIG_FILES etc. instead of their 21327# values after options handling. 21328ac_log=" 21329This file was extended by Apache HTTP Server Request Library $as_me 2.13, which was 21330generated by GNU Autoconf 2.61. Invocation command line was 21331 21332 CONFIG_FILES = $CONFIG_FILES 21333 CONFIG_HEADERS = $CONFIG_HEADERS 21334 CONFIG_LINKS = $CONFIG_LINKS 21335 CONFIG_COMMANDS = $CONFIG_COMMANDS 21336 $ $0 $@ 21337 21338on `(hostname || uname -n) 2>/dev/null | sed 1q` 21339" 21340 21341_ACEOF 21342 21343cat >>$CONFIG_STATUS <<_ACEOF 21344# Files that config.status was made for. 21345config_files="$ac_config_files" 21346config_headers="$ac_config_headers" 21347config_commands="$ac_config_commands" 21348 21349_ACEOF 21350 21351cat >>$CONFIG_STATUS <<\_ACEOF 21352ac_cs_usage="\ 21353\`$as_me' instantiates files from templates according to the 21354current configuration. 21355 21356Usage: $0 [OPTIONS] [FILE]... 21357 21358 -h, --help print this help, then exit 21359 -V, --version print version number and configuration settings, then exit 21360 -q, --quiet do not print progress messages 21361 -d, --debug don't remove temporary files 21362 --recheck update $as_me by reconfiguring in the same conditions 21363 --file=FILE[:TEMPLATE] 21364 instantiate the configuration file FILE 21365 --header=FILE[:TEMPLATE] 21366 instantiate the configuration header FILE 21367 21368Configuration files: 21369$config_files 21370 21371Configuration headers: 21372$config_headers 21373 21374Configuration commands: 21375$config_commands 21376 21377Report bugs to <bug-autoconf@gnu.org>." 21378 21379_ACEOF 21380cat >>$CONFIG_STATUS <<_ACEOF 21381ac_cs_version="\\ 21382Apache HTTP Server Request Library config.status 2.13 21383configured by $0, generated by GNU Autoconf 2.61, 21384 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21385 21386Copyright (C) 2006 Free Software Foundation, Inc. 21387This config.status script is free software; the Free Software Foundation 21388gives unlimited permission to copy, distribute and modify it." 21389 21390ac_pwd='$ac_pwd' 21391srcdir='$srcdir' 21392INSTALL='$INSTALL' 21393MKDIR_P='$MKDIR_P' 21394_ACEOF 21395 21396cat >>$CONFIG_STATUS <<\_ACEOF 21397# If no file are specified by the user, then we need to provide default 21398# value. By we need to know if files were specified by the user. 21399ac_need_defaults=: 21400while test $# != 0 21401do 21402 case $1 in 21403 --*=*) 21404 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21405 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21406 ac_shift=: 21407 ;; 21408 *) 21409 ac_option=$1 21410 ac_optarg=$2 21411 ac_shift=shift 21412 ;; 21413 esac 21414 21415 case $ac_option in 21416 # Handling of the options. 21417 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21418 ac_cs_recheck=: ;; 21419 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21420 echo "$ac_cs_version"; exit ;; 21421 --debug | --debu | --deb | --de | --d | -d ) 21422 debug=: ;; 21423 --file | --fil | --fi | --f ) 21424 $ac_shift 21425 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21426 ac_need_defaults=false;; 21427 --header | --heade | --head | --hea ) 21428 $ac_shift 21429 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21430 ac_need_defaults=false;; 21431 --he | --h) 21432 # Conflict between --help and --header 21433 { echo "$as_me: error: ambiguous option: $1 21434Try \`$0 --help' for more information." >&2 21435 { (exit 1); exit 1; }; };; 21436 --help | --hel | -h ) 21437 echo "$ac_cs_usage"; exit ;; 21438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21439 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21440 ac_cs_silent=: ;; 21441 21442 # This is an error. 21443 -*) { echo "$as_me: error: unrecognized option: $1 21444Try \`$0 --help' for more information." >&2 21445 { (exit 1); exit 1; }; } ;; 21446 21447 *) ac_config_targets="$ac_config_targets $1" 21448 ac_need_defaults=false ;; 21449 21450 esac 21451 shift 21452done 21453 21454ac_configure_extra_args= 21455 21456if $ac_cs_silent; then 21457 exec 6>/dev/null 21458 ac_configure_extra_args="$ac_configure_extra_args --silent" 21459fi 21460 21461_ACEOF 21462cat >>$CONFIG_STATUS <<_ACEOF 21463if \$ac_cs_recheck; then 21464 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21465 CONFIG_SHELL=$SHELL 21466 export CONFIG_SHELL 21467 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21468fi 21469 21470_ACEOF 21471cat >>$CONFIG_STATUS <<\_ACEOF 21472exec 5>>config.log 21473{ 21474 echo 21475 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21476## Running $as_me. ## 21477_ASBOX 21478 echo "$ac_log" 21479} >&5 21480 21481_ACEOF 21482cat >>$CONFIG_STATUS <<_ACEOF 21483# 21484# INIT-COMMANDS 21485# 21486AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21487 21488_ACEOF 21489 21490cat >>$CONFIG_STATUS <<\_ACEOF 21491 21492# Handling of arguments. 21493for ac_config_target in $ac_config_targets 21494do 21495 case $ac_config_target in 21496 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21497 "include/apreq_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/apreq_config.h" ;; 21498 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21499 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 21500 "library/Makefile") CONFIG_FILES="$CONFIG_FILES library/Makefile" ;; 21501 "library/t/Makefile") CONFIG_FILES="$CONFIG_FILES library/t/Makefile" ;; 21502 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;; 21503 "module/apache2/Makefile") CONFIG_FILES="$CONFIG_FILES module/apache2/Makefile" ;; 21504 "glue/Makefile") CONFIG_FILES="$CONFIG_FILES glue/Makefile" ;; 21505 "build/doxygen.conf") CONFIG_FILES="$CONFIG_FILES build/doxygen.conf" ;; 21506 "include/groups.dox") CONFIG_FILES="$CONFIG_FILES include/groups.dox" ;; 21507 "apreq2-config") CONFIG_FILES="$CONFIG_FILES apreq2-config" ;; 21508 21509 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21510echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21511 { (exit 1); exit 1; }; };; 21512 esac 21513done 21514 21515 21516# If the user did not use the arguments to specify the items to instantiate, 21517# then the envvar interface is used. Set only those that are not. 21518# We use the long form for the default assignment because of an extremely 21519# bizarre bug on SunOS 4.1.3. 21520if $ac_need_defaults; then 21521 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21522 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21523 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21524fi 21525 21526# Have a temporary directory for convenience. Make it in the build tree 21527# simply because there is no reason against having it here, and in addition, 21528# creating and moving files from /tmp can sometimes cause problems. 21529# Hook for its removal unless debugging. 21530# Note that there is a small window in which the directory will not be cleaned: 21531# after its creation but before its name has been assigned to `$tmp'. 21532$debug || 21533{ 21534 tmp= 21535 trap 'exit_status=$? 21536 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21537' 0 21538 trap '{ (exit 1); exit 1; }' 1 2 13 15 21539} 21540# Create a (secure) tmp directory for tmp files. 21541 21542{ 21543 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21544 test -n "$tmp" && test -d "$tmp" 21545} || 21546{ 21547 tmp=./conf$$-$RANDOM 21548 (umask 077 && mkdir "$tmp") 21549} || 21550{ 21551 echo "$me: cannot create a temporary directory in ." >&2 21552 { (exit 1); exit 1; } 21553} 21554 21555# 21556# Set up the sed scripts for CONFIG_FILES section. 21557# 21558 21559# No need to generate the scripts if there are no CONFIG_FILES. 21560# This happens for instance when ./config.status config.h 21561if test -n "$CONFIG_FILES"; then 21562 21563_ACEOF 21564 21565 21566 21567ac_delim='%!_!# ' 21568for ac_last_try in false false false false false :; do 21569 cat >conf$$subs.sed <<_ACEOF 21570SHELL!$SHELL$ac_delim 21571PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21572PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21573PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21574PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21575PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21576PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21577exec_prefix!$exec_prefix$ac_delim 21578prefix!$prefix$ac_delim 21579program_transform_name!$program_transform_name$ac_delim 21580bindir!$bindir$ac_delim 21581sbindir!$sbindir$ac_delim 21582libexecdir!$libexecdir$ac_delim 21583datarootdir!$datarootdir$ac_delim 21584datadir!$datadir$ac_delim 21585sysconfdir!$sysconfdir$ac_delim 21586sharedstatedir!$sharedstatedir$ac_delim 21587localstatedir!$localstatedir$ac_delim 21588includedir!$includedir$ac_delim 21589oldincludedir!$oldincludedir$ac_delim 21590docdir!$docdir$ac_delim 21591infodir!$infodir$ac_delim 21592htmldir!$htmldir$ac_delim 21593dvidir!$dvidir$ac_delim 21594pdfdir!$pdfdir$ac_delim 21595psdir!$psdir$ac_delim 21596libdir!$libdir$ac_delim 21597localedir!$localedir$ac_delim 21598mandir!$mandir$ac_delim 21599DEFS!$DEFS$ac_delim 21600ECHO_C!$ECHO_C$ac_delim 21601ECHO_N!$ECHO_N$ac_delim 21602ECHO_T!$ECHO_T$ac_delim 21603LIBS!$LIBS$ac_delim 21604build_alias!$build_alias$ac_delim 21605host_alias!$host_alias$ac_delim 21606target_alias!$target_alias$ac_delim 21607INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21608INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21609INSTALL_DATA!$INSTALL_DATA$ac_delim 21610am__isrc!$am__isrc$ac_delim 21611CYGPATH_W!$CYGPATH_W$ac_delim 21612PACKAGE!$PACKAGE$ac_delim 21613VERSION!$VERSION$ac_delim 21614ACLOCAL!$ACLOCAL$ac_delim 21615AUTOCONF!$AUTOCONF$ac_delim 21616AUTOMAKE!$AUTOMAKE$ac_delim 21617AUTOHEADER!$AUTOHEADER$ac_delim 21618MAKEINFO!$MAKEINFO$ac_delim 21619install_sh!$install_sh$ac_delim 21620STRIP!$STRIP$ac_delim 21621INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21622mkdir_p!$mkdir_p$ac_delim 21623AWK!$AWK$ac_delim 21624SET_MAKE!$SET_MAKE$ac_delim 21625am__leading_dot!$am__leading_dot$ac_delim 21626AMTAR!$AMTAR$ac_delim 21627am__tar!$am__tar$ac_delim 21628am__untar!$am__untar$ac_delim 21629CC!$CC$ac_delim 21630CFLAGS!$CFLAGS$ac_delim 21631LDFLAGS!$LDFLAGS$ac_delim 21632CPPFLAGS!$CPPFLAGS$ac_delim 21633ac_ct_CC!$ac_ct_CC$ac_delim 21634EXEEXT!$EXEEXT$ac_delim 21635OBJEXT!$OBJEXT$ac_delim 21636DEPDIR!$DEPDIR$ac_delim 21637am__include!$am__include$ac_delim 21638am__quote!$am__quote$ac_delim 21639AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21640AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21641AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21642CCDEPMODE!$CCDEPMODE$ac_delim 21643am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21644am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21645build!$build$ac_delim 21646build_cpu!$build_cpu$ac_delim 21647build_vendor!$build_vendor$ac_delim 21648build_os!$build_os$ac_delim 21649host!$host$ac_delim 21650host_cpu!$host_cpu$ac_delim 21651host_vendor!$host_vendor$ac_delim 21652host_os!$host_os$ac_delim 21653SED!$SED$ac_delim 21654GREP!$GREP$ac_delim 21655EGREP!$EGREP$ac_delim 21656LN_S!$LN_S$ac_delim 21657ECHO!$ECHO$ac_delim 21658AR!$AR$ac_delim 21659RANLIB!$RANLIB$ac_delim 21660DSYMUTIL!$DSYMUTIL$ac_delim 21661NMEDIT!$NMEDIT$ac_delim 21662CPP!$CPP$ac_delim 21663CXX!$CXX$ac_delim 21664CXXFLAGS!$CXXFLAGS$ac_delim 21665ac_ct_CXX!$ac_ct_CXX$ac_delim 21666CXXDEPMODE!$CXXDEPMODE$ac_delim 21667_ACEOF 21668 21669 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21670 break 21671 elif $ac_last_try; then 21672 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21673echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21674 { (exit 1); exit 1; }; } 21675 else 21676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21677 fi 21678done 21679 21680ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21681if test -n "$ac_eof"; then 21682 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21683 ac_eof=`expr $ac_eof + 1` 21684fi 21685 21686cat >>$CONFIG_STATUS <<_ACEOF 21687cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21688/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21689_ACEOF 21690sed ' 21691s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21692s/^/s,@/; s/!/@,|#_!!_#|/ 21693:n 21694t n 21695s/'"$ac_delim"'$/,g/; t 21696s/$/\\/; p 21697N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21698' >>$CONFIG_STATUS <conf$$subs.sed 21699rm -f conf$$subs.sed 21700cat >>$CONFIG_STATUS <<_ACEOF 21701CEOF$ac_eof 21702_ACEOF 21703 21704 21705ac_delim='%!_!# ' 21706for ac_last_try in false false false false false :; do 21707 cat >conf$$subs.sed <<_ACEOF 21708am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 21709am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 21710CXXCPP!$CXXCPP$ac_delim 21711F77!$F77$ac_delim 21712FFLAGS!$FFLAGS$ac_delim 21713ac_ct_F77!$ac_ct_F77$ac_delim 21714LIBTOOL!$LIBTOOL$ac_delim 21715MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 21716MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 21717MAINT!$MAINT$ac_delim 21718ENABLE_PROFILE_TRUE!$ENABLE_PROFILE_TRUE$ac_delim 21719ENABLE_PROFILE_FALSE!$ENABLE_PROFILE_FALSE$ac_delim 21720BUILD_PERL_GLUE_TRUE!$BUILD_PERL_GLUE_TRUE$ac_delim 21721BUILD_PERL_GLUE_FALSE!$BUILD_PERL_GLUE_FALSE$ac_delim 21722HAVE_APACHE_TEST_TRUE!$HAVE_APACHE_TEST_TRUE$ac_delim 21723HAVE_APACHE_TEST_FALSE!$HAVE_APACHE_TEST_FALSE$ac_delim 21724BUILD_HTTPD_TRUE!$BUILD_HTTPD_TRUE$ac_delim 21725BUILD_HTTPD_FALSE!$BUILD_HTTPD_FALSE$ac_delim 21726BUILD_APR_TRUE!$BUILD_APR_TRUE$ac_delim 21727BUILD_APR_FALSE!$BUILD_APR_FALSE$ac_delim 21728BUILD_APU_TRUE!$BUILD_APU_TRUE$ac_delim 21729BUILD_APU_FALSE!$BUILD_APU_FALSE$ac_delim 21730HAVE_APACHE1_TRUE!$HAVE_APACHE1_TRUE$ac_delim 21731HAVE_APACHE1_FALSE!$HAVE_APACHE1_FALSE$ac_delim 21732APREQ_CONFIG!$APREQ_CONFIG$ac_delim 21733APREQ_LIBNAME!$APREQ_LIBNAME$ac_delim 21734APREQ_LIBTOOL_VERSION!$APREQ_LIBTOOL_VERSION$ac_delim 21735APREQ_MAJOR_VERSION!$APREQ_MAJOR_VERSION$ac_delim 21736APREQ_DOTTED_VERSION!$APREQ_DOTTED_VERSION$ac_delim 21737APACHE2_APXS!$APACHE2_APXS$ac_delim 21738APACHE2_SRC!$APACHE2_SRC$ac_delim 21739APACHE2_INCLUDES!$APACHE2_INCLUDES$ac_delim 21740APACHE2_HTTPD!$APACHE2_HTTPD$ac_delim 21741APACHE1_APXS!$APACHE1_APXS$ac_delim 21742APU_CONFIG!$APU_CONFIG$ac_delim 21743APR_CONFIG!$APR_CONFIG$ac_delim 21744APR_INCLUDES!$APR_INCLUDES$ac_delim 21745APR_LDFLAGS!$APR_LDFLAGS$ac_delim 21746APR_LTFLAGS!$APR_LTFLAGS$ac_delim 21747APR_LIBS!$APR_LIBS$ac_delim 21748APR_LA!$APR_LA$ac_delim 21749APU_LA!$APU_LA$ac_delim 21750PERL!$PERL$ac_delim 21751PERL_OPTS!$PERL_OPTS$ac_delim 21752MM_OPTS!$MM_OPTS$ac_delim 21753TAR!$TAR$ac_delim 21754APR_DOC_VERSION!$APR_DOC_VERSION$ac_delim 21755APU_DOC_VERSION!$APU_DOC_VERSION$ac_delim 21756LIBOBJS!$LIBOBJS$ac_delim 21757LTLIBOBJS!$LTLIBOBJS$ac_delim 21758_ACEOF 21759 21760 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then 21761 break 21762 elif $ac_last_try; then 21763 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21764echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21765 { (exit 1); exit 1; }; } 21766 else 21767 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21768 fi 21769done 21770 21771ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21772if test -n "$ac_eof"; then 21773 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21774 ac_eof=`expr $ac_eof + 1` 21775fi 21776 21777cat >>$CONFIG_STATUS <<_ACEOF 21778cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21779/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21780_ACEOF 21781sed ' 21782s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21783s/^/s,@/; s/!/@,|#_!!_#|/ 21784:n 21785t n 21786s/'"$ac_delim"'$/,g/; t 21787s/$/\\/; p 21788N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21789' >>$CONFIG_STATUS <conf$$subs.sed 21790rm -f conf$$subs.sed 21791cat >>$CONFIG_STATUS <<_ACEOF 21792:end 21793s/|#_!!_#|//g 21794CEOF$ac_eof 21795_ACEOF 21796 21797 21798# VPATH may cause trouble with some makes, so we remove $(srcdir), 21799# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21800# trailing colons and then remove the whole line if VPATH becomes empty 21801# (actually we leave an empty line to preserve line numbers). 21802if test "x$srcdir" = x.; then 21803 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21804s/:*\$(srcdir):*/:/ 21805s/:*\${srcdir}:*/:/ 21806s/:*@srcdir@:*/:/ 21807s/^\([^=]*=[ ]*\):*/\1/ 21808s/:*$// 21809s/^[^=]*=[ ]*$// 21810}' 21811fi 21812 21813cat >>$CONFIG_STATUS <<\_ACEOF 21814fi # test -n "$CONFIG_FILES" 21815 21816 21817for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 21818do 21819 case $ac_tag in 21820 :[FHLC]) ac_mode=$ac_tag; continue;; 21821 esac 21822 case $ac_mode$ac_tag in 21823 :[FHL]*:*);; 21824 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21825echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21826 { (exit 1); exit 1; }; };; 21827 :[FH]-) ac_tag=-:-;; 21828 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21829 esac 21830 ac_save_IFS=$IFS 21831 IFS=: 21832 set x $ac_tag 21833 IFS=$ac_save_IFS 21834 shift 21835 ac_file=$1 21836 shift 21837 21838 case $ac_mode in 21839 :L) ac_source=$1;; 21840 :[FH]) 21841 ac_file_inputs= 21842 for ac_f 21843 do 21844 case $ac_f in 21845 -) ac_f="$tmp/stdin";; 21846 *) # Look for the file first in the build tree, then in the source tree 21847 # (if the path is not absolute). The absolute path cannot be DOS-style, 21848 # because $ac_f cannot contain `:'. 21849 test -f "$ac_f" || 21850 case $ac_f in 21851 [\\/$]*) false;; 21852 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21853 esac || 21854 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21855echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21856 { (exit 1); exit 1; }; };; 21857 esac 21858 ac_file_inputs="$ac_file_inputs $ac_f" 21859 done 21860 21861 # Let's still pretend it is `configure' which instantiates (i.e., don't 21862 # use $as_me), people would be surprised to read: 21863 # /* config.h. Generated by config.status. */ 21864 configure_input="Generated from "`IFS=: 21865 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 21866 if test x"$ac_file" != x-; then 21867 configure_input="$ac_file. $configure_input" 21868 { echo "$as_me:$LINENO: creating $ac_file" >&5 21869echo "$as_me: creating $ac_file" >&6;} 21870 fi 21871 21872 case $ac_tag in 21873 *:-:* | *:-) cat >"$tmp/stdin";; 21874 esac 21875 ;; 21876 esac 21877 21878 ac_dir=`$as_dirname -- "$ac_file" || 21879$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21880 X"$ac_file" : 'X\(//\)[^/]' \| \ 21881 X"$ac_file" : 'X\(//\)$' \| \ 21882 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21883echo X"$ac_file" | 21884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21885 s//\1/ 21886 q 21887 } 21888 /^X\(\/\/\)[^/].*/{ 21889 s//\1/ 21890 q 21891 } 21892 /^X\(\/\/\)$/{ 21893 s//\1/ 21894 q 21895 } 21896 /^X\(\/\).*/{ 21897 s//\1/ 21898 q 21899 } 21900 s/.*/./; q'` 21901 { as_dir="$ac_dir" 21902 case $as_dir in #( 21903 -*) as_dir=./$as_dir;; 21904 esac 21905 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21906 as_dirs= 21907 while :; do 21908 case $as_dir in #( 21909 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21910 *) as_qdir=$as_dir;; 21911 esac 21912 as_dirs="'$as_qdir' $as_dirs" 21913 as_dir=`$as_dirname -- "$as_dir" || 21914$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21915 X"$as_dir" : 'X\(//\)[^/]' \| \ 21916 X"$as_dir" : 'X\(//\)$' \| \ 21917 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21918echo X"$as_dir" | 21919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21920 s//\1/ 21921 q 21922 } 21923 /^X\(\/\/\)[^/].*/{ 21924 s//\1/ 21925 q 21926 } 21927 /^X\(\/\/\)$/{ 21928 s//\1/ 21929 q 21930 } 21931 /^X\(\/\).*/{ 21932 s//\1/ 21933 q 21934 } 21935 s/.*/./; q'` 21936 test -d "$as_dir" && break 21937 done 21938 test -z "$as_dirs" || eval "mkdir $as_dirs" 21939 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21940echo "$as_me: error: cannot create directory $as_dir" >&2;} 21941 { (exit 1); exit 1; }; }; } 21942 ac_builddir=. 21943 21944case "$ac_dir" in 21945.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21946*) 21947 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21948 # A ".." for each directory in $ac_dir_suffix. 21949 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 21950 case $ac_top_builddir_sub in 21951 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21952 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21953 esac ;; 21954esac 21955ac_abs_top_builddir=$ac_pwd 21956ac_abs_builddir=$ac_pwd$ac_dir_suffix 21957# for backward compatibility: 21958ac_top_builddir=$ac_top_build_prefix 21959 21960case $srcdir in 21961 .) # We are building in place. 21962 ac_srcdir=. 21963 ac_top_srcdir=$ac_top_builddir_sub 21964 ac_abs_top_srcdir=$ac_pwd ;; 21965 [\\/]* | ?:[\\/]* ) # Absolute name. 21966 ac_srcdir=$srcdir$ac_dir_suffix; 21967 ac_top_srcdir=$srcdir 21968 ac_abs_top_srcdir=$srcdir ;; 21969 *) # Relative name. 21970 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21971 ac_top_srcdir=$ac_top_build_prefix$srcdir 21972 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21973esac 21974ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21975 21976 21977 case $ac_mode in 21978 :F) 21979 # 21980 # CONFIG_FILE 21981 # 21982 21983 case $INSTALL in 21984 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21985 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21986 esac 21987 ac_MKDIR_P=$MKDIR_P 21988 case $MKDIR_P in 21989 [\\/$]* | ?:[\\/]* ) ;; 21990 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21991 esac 21992_ACEOF 21993 21994cat >>$CONFIG_STATUS <<\_ACEOF 21995# If the template does not know about datarootdir, expand it. 21996# FIXME: This hack should be removed a few years after 2.60. 21997ac_datarootdir_hack=; ac_datarootdir_seen= 21998 21999case `sed -n '/datarootdir/ { 22000 p 22001 q 22002} 22003/@datadir@/p 22004/@docdir@/p 22005/@infodir@/p 22006/@localedir@/p 22007/@mandir@/p 22008' $ac_file_inputs` in 22009*datarootdir*) ac_datarootdir_seen=yes;; 22010*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22011 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22012echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22013_ACEOF 22014cat >>$CONFIG_STATUS <<_ACEOF 22015 ac_datarootdir_hack=' 22016 s&@datadir@&$datadir&g 22017 s&@docdir@&$docdir&g 22018 s&@infodir@&$infodir&g 22019 s&@localedir@&$localedir&g 22020 s&@mandir@&$mandir&g 22021 s&\\\${datarootdir}&$datarootdir&g' ;; 22022esac 22023_ACEOF 22024 22025# Neutralize VPATH when `$srcdir' = `.'. 22026# Shell code in configure.ac might set extrasub. 22027# FIXME: do we really want to maintain this feature? 22028cat >>$CONFIG_STATUS <<_ACEOF 22029 sed "$ac_vpsub 22030$extrasub 22031_ACEOF 22032cat >>$CONFIG_STATUS <<\_ACEOF 22033:t 22034/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22035s&@configure_input@&$configure_input&;t t 22036s&@top_builddir@&$ac_top_builddir_sub&;t t 22037s&@srcdir@&$ac_srcdir&;t t 22038s&@abs_srcdir@&$ac_abs_srcdir&;t t 22039s&@top_srcdir@&$ac_top_srcdir&;t t 22040s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22041s&@builddir@&$ac_builddir&;t t 22042s&@abs_builddir@&$ac_abs_builddir&;t t 22043s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22044s&@INSTALL@&$ac_INSTALL&;t t 22045s&@MKDIR_P@&$ac_MKDIR_P&;t t 22046$ac_datarootdir_hack 22047" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22048 22049test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22050 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22051 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22052 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22053which seems to be undefined. Please make sure it is defined." >&5 22054echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22055which seems to be undefined. Please make sure it is defined." >&2;} 22056 22057 rm -f "$tmp/stdin" 22058 case $ac_file in 22059 -) cat "$tmp/out"; rm -f "$tmp/out";; 22060 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22061 esac 22062 ;; 22063 :H) 22064 # 22065 # CONFIG_HEADER 22066 # 22067_ACEOF 22068 22069# Transform confdefs.h into a sed script `conftest.defines', that 22070# substitutes the proper values into config.h.in to produce config.h. 22071rm -f conftest.defines conftest.tail 22072# First, append a space to every undef/define line, to ease matching. 22073echo 's/$/ /' >conftest.defines 22074# Then, protect against being on the right side of a sed subst, or in 22075# an unquoted here document, in config.status. If some macros were 22076# called several times there might be several #defines for the same 22077# symbol, which is useless. But do not sort them, since the last 22078# AC_DEFINE must be honored. 22079ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22080# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22081# NAME is the cpp macro being defined, VALUE is the value it is being given. 22082# PARAMS is the parameter list in the macro definition--in most cases, it's 22083# just an empty string. 22084ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22085ac_dB='\\)[ (].*,\\1define\\2' 22086ac_dC=' ' 22087ac_dD=' ,' 22088 22089uniq confdefs.h | 22090 sed -n ' 22091 t rset 22092 :rset 22093 s/^[ ]*#[ ]*define[ ][ ]*// 22094 t ok 22095 d 22096 :ok 22097 s/[\\&,]/\\&/g 22098 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22099 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22100 ' >>conftest.defines 22101 22102# Remove the space that was appended to ease matching. 22103# Then replace #undef with comments. This is necessary, for 22104# example, in the case of _POSIX_SOURCE, which is predefined and required 22105# on some systems where configure will not decide to define it. 22106# (The regexp can be short, since the line contains either #define or #undef.) 22107echo 's/ $// 22108s,^[ #]*u.*,/* & */,' >>conftest.defines 22109 22110# Break up conftest.defines: 22111ac_max_sed_lines=50 22112 22113# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22114# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22115# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22116# et cetera. 22117ac_in='$ac_file_inputs' 22118ac_out='"$tmp/out1"' 22119ac_nxt='"$tmp/out2"' 22120 22121while : 22122do 22123 # Write a here document: 22124 cat >>$CONFIG_STATUS <<_ACEOF 22125 # First, check the format of the line: 22126 cat >"\$tmp/defines.sed" <<\\CEOF 22127/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22128/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22129b 22130:def 22131_ACEOF 22132 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22133 echo 'CEOF 22134 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22135 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22136 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22137 grep . conftest.tail >/dev/null || break 22138 rm -f conftest.defines 22139 mv conftest.tail conftest.defines 22140done 22141rm -f conftest.defines conftest.tail 22142 22143echo "ac_result=$ac_in" >>$CONFIG_STATUS 22144cat >>$CONFIG_STATUS <<\_ACEOF 22145 if test x"$ac_file" != x-; then 22146 echo "/* $configure_input */" >"$tmp/config.h" 22147 cat "$ac_result" >>"$tmp/config.h" 22148 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22149 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22150echo "$as_me: $ac_file is unchanged" >&6;} 22151 else 22152 rm -f $ac_file 22153 mv "$tmp/config.h" $ac_file 22154 fi 22155 else 22156 echo "/* $configure_input */" 22157 cat "$ac_result" 22158 fi 22159 rm -f "$tmp/out12" 22160# Compute $ac_file's index in $config_headers. 22161_am_arg=$ac_file 22162_am_stamp_count=1 22163for _am_header in $config_headers :; do 22164 case $_am_header in 22165 $_am_arg | $_am_arg:* ) 22166 break ;; 22167 * ) 22168 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22169 esac 22170done 22171echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22172$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22173 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22174 X"$_am_arg" : 'X\(//\)$' \| \ 22175 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22176echo X"$_am_arg" | 22177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22178 s//\1/ 22179 q 22180 } 22181 /^X\(\/\/\)[^/].*/{ 22182 s//\1/ 22183 q 22184 } 22185 /^X\(\/\/\)$/{ 22186 s//\1/ 22187 q 22188 } 22189 /^X\(\/\).*/{ 22190 s//\1/ 22191 q 22192 } 22193 s/.*/./; q'`/stamp-h$_am_stamp_count 22194 ;; 22195 22196 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22197echo "$as_me: executing $ac_file commands" >&6;} 22198 ;; 22199 esac 22200 22201 22202 case $ac_file$ac_mode in 22203 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22204 # Strip MF so we end up with the name of the file. 22205 mf=`echo "$mf" | sed -e 's/:.*$//'` 22206 # Check whether this is an Automake generated Makefile or not. 22207 # We used to match only the files named `Makefile.in', but 22208 # some people rename them; so instead we look at the file content. 22209 # Grep'ing the first line is not enough: some people post-process 22210 # each Makefile.in and add a new line on top of each file to say so. 22211 # Grep'ing the whole file is not good either: AIX grep has a line 22212 # limit of 2048, but all sed's we know have understand at least 4000. 22213 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22214 dirpart=`$as_dirname -- "$mf" || 22215$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22216 X"$mf" : 'X\(//\)[^/]' \| \ 22217 X"$mf" : 'X\(//\)$' \| \ 22218 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22219echo X"$mf" | 22220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22221 s//\1/ 22222 q 22223 } 22224 /^X\(\/\/\)[^/].*/{ 22225 s//\1/ 22226 q 22227 } 22228 /^X\(\/\/\)$/{ 22229 s//\1/ 22230 q 22231 } 22232 /^X\(\/\).*/{ 22233 s//\1/ 22234 q 22235 } 22236 s/.*/./; q'` 22237 else 22238 continue 22239 fi 22240 # Extract the definition of DEPDIR, am__include, and am__quote 22241 # from the Makefile without running `make'. 22242 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22243 test -z "$DEPDIR" && continue 22244 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22245 test -z "am__include" && continue 22246 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22247 # When using ansi2knr, U may be empty or an underscore; expand it 22248 U=`sed -n 's/^U = //p' < "$mf"` 22249 # Find all dependency output files, they are included files with 22250 # $(DEPDIR) in their names. We invoke sed twice because it is the 22251 # simplest approach to changing $(DEPDIR) to its actual value in the 22252 # expansion. 22253 for file in `sed -n " 22254 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22255 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22256 # Make sure the directory exists. 22257 test -f "$dirpart/$file" && continue 22258 fdir=`$as_dirname -- "$file" || 22259$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22260 X"$file" : 'X\(//\)[^/]' \| \ 22261 X"$file" : 'X\(//\)$' \| \ 22262 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22263echo X"$file" | 22264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22265 s//\1/ 22266 q 22267 } 22268 /^X\(\/\/\)[^/].*/{ 22269 s//\1/ 22270 q 22271 } 22272 /^X\(\/\/\)$/{ 22273 s//\1/ 22274 q 22275 } 22276 /^X\(\/\).*/{ 22277 s//\1/ 22278 q 22279 } 22280 s/.*/./; q'` 22281 { as_dir=$dirpart/$fdir 22282 case $as_dir in #( 22283 -*) as_dir=./$as_dir;; 22284 esac 22285 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22286 as_dirs= 22287 while :; do 22288 case $as_dir in #( 22289 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22290 *) as_qdir=$as_dir;; 22291 esac 22292 as_dirs="'$as_qdir' $as_dirs" 22293 as_dir=`$as_dirname -- "$as_dir" || 22294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22295 X"$as_dir" : 'X\(//\)[^/]' \| \ 22296 X"$as_dir" : 'X\(//\)$' \| \ 22297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22298echo X"$as_dir" | 22299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22300 s//\1/ 22301 q 22302 } 22303 /^X\(\/\/\)[^/].*/{ 22304 s//\1/ 22305 q 22306 } 22307 /^X\(\/\/\)$/{ 22308 s//\1/ 22309 q 22310 } 22311 /^X\(\/\).*/{ 22312 s//\1/ 22313 q 22314 } 22315 s/.*/./; q'` 22316 test -d "$as_dir" && break 22317 done 22318 test -z "$as_dirs" || eval "mkdir $as_dirs" 22319 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22320echo "$as_me: error: cannot create directory $as_dir" >&2;} 22321 { (exit 1); exit 1; }; }; } 22322 # echo "creating $dirpart/$file" 22323 echo '# dummy' > "$dirpart/$file" 22324 done 22325done 22326 ;; 22327 "apreq2-config":F) chmod +x apreq2-config ;; 22328 22329 esac 22330done # for ac_tag 22331 22332 22333{ (exit 0); exit 0; } 22334_ACEOF 22335chmod +x $CONFIG_STATUS 22336ac_clean_files=$ac_clean_files_save 22337 22338 22339# configure is writing to config.log, and then calls config.status. 22340# config.status does its own redirection, appending to config.log. 22341# Unfortunately, on DOS this fails, as config.log is still kept open 22342# by configure, so config.status won't be able to write to it; its 22343# output is simply discarded. So we exec the FD to /dev/null, 22344# effectively closing config.log, so it can be properly (re)opened and 22345# appended to by config.status. When coming back to configure, we 22346# need to make the FD available again. 22347if test "$no_create" != yes; then 22348 ac_cs_success=: 22349 ac_config_status_args= 22350 test "$silent" = yes && 22351 ac_config_status_args="$ac_config_status_args --quiet" 22352 exec 5>/dev/null 22353 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22354 exec 5>>config.log 22355 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22356 # would make configure fail if this is the last instruction. 22357 $ac_cs_success || { (exit 1); exit 1; } 22358fi 22359 22360