1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for rubrica2 2.1.6. 4# 5# Report bugs to <nicolafragale@gmail.com>. 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='rubrica2' 730PACKAGE_TARNAME='rubrica2' 731PACKAGE_VERSION='2.1.6' 732PACKAGE_STRING='rubrica2 2.1.6' 733PACKAGE_BUGREPORT='nicolafragale@gmail.com' 734 735ac_unique_file="config.h.in" 736# Factoring default headers for most tests. 737ac_includes_default="\ 738#include <stdio.h> 739#ifdef HAVE_SYS_TYPES_H 740# include <sys/types.h> 741#endif 742#ifdef HAVE_SYS_STAT_H 743# include <sys/stat.h> 744#endif 745#ifdef STDC_HEADERS 746# include <stdlib.h> 747# include <stddef.h> 748#else 749# ifdef HAVE_STDLIB_H 750# include <stdlib.h> 751# endif 752#endif 753#ifdef HAVE_STRING_H 754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 755# include <memory.h> 756# endif 757# include <string.h> 758#endif 759#ifdef HAVE_STRINGS_H 760# include <strings.h> 761#endif 762#ifdef HAVE_INTTYPES_H 763# include <inttypes.h> 764#endif 765#ifdef HAVE_STDINT_H 766# include <stdint.h> 767#endif 768#ifdef HAVE_UNISTD_H 769# include <unistd.h> 770#endif" 771 772ac_header_list= 773ac_func_list= 774ac_subst_vars='SHELL 775PATH_SEPARATOR 776PACKAGE_NAME 777PACKAGE_TARNAME 778PACKAGE_VERSION 779PACKAGE_STRING 780PACKAGE_BUGREPORT 781exec_prefix 782prefix 783program_transform_name 784bindir 785sbindir 786libexecdir 787datarootdir 788datadir 789sysconfdir 790sharedstatedir 791localstatedir 792includedir 793oldincludedir 794docdir 795infodir 796htmldir 797dvidir 798pdfdir 799psdir 800libdir 801localedir 802mandir 803DEFS 804ECHO_C 805ECHO_N 806ECHO_T 807LIBS 808build_alias 809host_alias 810target_alias 811RUBRICA_FILE_FORMAT 812RUBRICA_NAME 813RUBRICA_VERSION 814RUBRICA_CAP_NAME 815PACKAGE_STATUS 816RUBRICA_CODE_NAME 817RUBRICA_INFO_CODE_NAME 818LIBRAL_CODE_NAME 819LIBRAL_INFO_CODE_NAME 820LIBRAL_VERSION 821LIBRAL_CURRENT_VERSION 822LIBRAL_REVISION_VERSION 823LIBRAL_COMPAT_VERSION 824INSTALL_PROGRAM 825INSTALL_SCRIPT 826INSTALL_DATA 827am__isrc 828CYGPATH_W 829PACKAGE 830VERSION 831ACLOCAL 832AUTOCONF 833AUTOMAKE 834AUTOHEADER 835MAKEINFO 836install_sh 837STRIP 838INSTALL_STRIP_PROGRAM 839mkdir_p 840AWK 841SET_MAKE 842am__leading_dot 843AMTAR 844am__tar 845am__untar 846MAINTAINER_MODE_TRUE 847MAINTAINER_MODE_FALSE 848MAINT 849CXX 850CXXFLAGS 851LDFLAGS 852CPPFLAGS 853ac_ct_CXX 854EXEEXT 855OBJEXT 856DEPDIR 857am__include 858am__quote 859AMDEP_TRUE 860AMDEP_FALSE 861AMDEPBACKSLASH 862CXXDEPMODE 863am__fastdepCXX_TRUE 864am__fastdepCXX_FALSE 865CC 866CFLAGS 867ac_ct_CC 868CCDEPMODE 869am__fastdepCC_TRUE 870am__fastdepCC_FALSE 871CPP 872LN_S 873INTLTOOL_DESKTOP_RULE 874INTLTOOL_DIRECTORY_RULE 875INTLTOOL_KEYS_RULE 876INTLTOOL_PROP_RULE 877INTLTOOL_OAF_RULE 878INTLTOOL_PONG_RULE 879INTLTOOL_SERVER_RULE 880INTLTOOL_SHEET_RULE 881INTLTOOL_SOUNDLIST_RULE 882INTLTOOL_UI_RULE 883INTLTOOL_XAM_RULE 884INTLTOOL_KBD_RULE 885INTLTOOL_XML_RULE 886INTLTOOL_XML_NOMERGE_RULE 887INTLTOOL_CAVES_RULE 888INTLTOOL_SCHEMAS_RULE 889INTLTOOL_THEME_RULE 890INTLTOOL_SERVICE_RULE 891INTLTOOL_POLICY_RULE 892INTLTOOL_EXTRACT 893INTLTOOL_MERGE 894INTLTOOL_UPDATE 895INTLTOOL_PERL 896ALL_LINGUAS 897DATADIRNAME 898build 899build_cpu 900build_vendor 901build_os 902host 903host_cpu 904host_vendor 905host_os 906SED 907GREP 908EGREP 909ECHO 910AR 911RANLIB 912CXXCPP 913F77 914FFLAGS 915ac_ct_F77 916LIBTOOL 917LIBOBJS 918DESKTOP_ICON_PATH 919GETTEXT_PACKAGE 920PKG_CONFIG 921LIBRAL_CFLAGS 922LIBRAL_LIBS 923RUBRICA_CFLAGS 924RUBRICA_LIBS 925USE_NLS 926MSGFMT 927MSGFMT_OPTS 928GMSGFMT 929XGETTEXT 930CATALOGS 931CATOBJEXT 932GMOFILES 933INSTOBJEXT 934INTLLIBS 935PO_IN_DATADIR_TRUE 936PO_IN_DATADIR_FALSE 937POFILES 938POSUB 939MKINSTALLDIRS 940GCONFTOOL 941GCONF_SCHEMA_CONFIG_SOURCE 942GCONF_SCHEMA_FILE_DIR 943GCONF_SCHEMAS_INSTALL_TRUE 944GCONF_SCHEMAS_INSTALL_FALSE 945HTML_DIR 946ENABLE_GTK_DOC_TRUE 947ENABLE_GTK_DOC_FALSE 948GTK_DOC_USE_LIBTOOL_TRUE 949GTK_DOC_USE_LIBTOOL_FALSE 950libral_plugins_dir 951libral_plugins_gui_dir 952libral_plugins_pixmaps_dir 953rubrica_data_dir 954rubrica_gui_dir 955rubrica_pixmaps_dir 956rubrica_icons_dir 957desktop_icon_path 958ENABLE_DEBUG_CFLAGS 959ENABLE_TESTS_TRUE 960ENABLE_TESTS_FALSE 961GLIB_GENMARSHAL 962GLIB_MKENUMS 963LTLIBOBJS' 964ac_subst_files='' 965 ac_precious_vars='build_alias 966host_alias 967target_alias 968CXX 969CXXFLAGS 970LDFLAGS 971LIBS 972CPPFLAGS 973CCC 974CC 975CFLAGS 976CPP 977CXXCPP 978F77 979FFLAGS 980PKG_CONFIG 981LIBRAL_CFLAGS 982LIBRAL_LIBS 983RUBRICA_CFLAGS 984RUBRICA_LIBS' 985 986 987# Initialize some variables set by options. 988ac_init_help= 989ac_init_version=false 990# The variables have the same names as the options, with 991# dashes changed to underlines. 992cache_file=/dev/null 993exec_prefix=NONE 994no_create= 995no_recursion= 996prefix=NONE 997program_prefix=NONE 998program_suffix=NONE 999program_transform_name=s,x,x, 1000silent= 1001site= 1002srcdir= 1003verbose= 1004x_includes=NONE 1005x_libraries=NONE 1006 1007# Installation directory options. 1008# These are left unexpanded so users can "make install exec_prefix=/foo" 1009# and all the variables that are supposed to be based on exec_prefix 1010# by default will actually change. 1011# Use braces instead of parens because sh, perl, etc. also accept them. 1012# (The list follows the same order as the GNU Coding Standards.) 1013bindir='${exec_prefix}/bin' 1014sbindir='${exec_prefix}/sbin' 1015libexecdir='${exec_prefix}/libexec' 1016datarootdir='${prefix}/share' 1017datadir='${datarootdir}' 1018sysconfdir='${prefix}/etc' 1019sharedstatedir='${prefix}/com' 1020localstatedir='${prefix}/var' 1021includedir='${prefix}/include' 1022oldincludedir='/usr/include' 1023docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1024infodir='${datarootdir}/info' 1025htmldir='${docdir}' 1026dvidir='${docdir}' 1027pdfdir='${docdir}' 1028psdir='${docdir}' 1029libdir='${exec_prefix}/lib' 1030localedir='${datarootdir}/locale' 1031mandir='${datarootdir}/man' 1032 1033ac_prev= 1034ac_dashdash= 1035for ac_option 1036do 1037 # If the previous option needs an argument, assign it. 1038 if test -n "$ac_prev"; then 1039 eval $ac_prev=\$ac_option 1040 ac_prev= 1041 continue 1042 fi 1043 1044 case $ac_option in 1045 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1046 *) ac_optarg=yes ;; 1047 esac 1048 1049 # Accept the important Cygnus configure options, so we can diagnose typos. 1050 1051 case $ac_dashdash$ac_option in 1052 --) 1053 ac_dashdash=yes ;; 1054 1055 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1056 ac_prev=bindir ;; 1057 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1058 bindir=$ac_optarg ;; 1059 1060 -build | --build | --buil | --bui | --bu) 1061 ac_prev=build_alias ;; 1062 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1063 build_alias=$ac_optarg ;; 1064 1065 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1066 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1067 ac_prev=cache_file ;; 1068 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1069 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1070 cache_file=$ac_optarg ;; 1071 1072 --config-cache | -C) 1073 cache_file=config.cache ;; 1074 1075 -datadir | --datadir | --datadi | --datad) 1076 ac_prev=datadir ;; 1077 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1078 datadir=$ac_optarg ;; 1079 1080 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1081 | --dataroo | --dataro | --datar) 1082 ac_prev=datarootdir ;; 1083 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1084 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1085 datarootdir=$ac_optarg ;; 1086 1087 -disable-* | --disable-*) 1088 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1089 # Reject names that are not valid shell variable names. 1090 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1091 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1092 { (exit 1); exit 1; }; } 1093 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1094 eval enable_$ac_feature=no ;; 1095 1096 -docdir | --docdir | --docdi | --doc | --do) 1097 ac_prev=docdir ;; 1098 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1099 docdir=$ac_optarg ;; 1100 1101 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1102 ac_prev=dvidir ;; 1103 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1104 dvidir=$ac_optarg ;; 1105 1106 -enable-* | --enable-*) 1107 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1108 # Reject names that are not valid shell variable names. 1109 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1110 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1111 { (exit 1); exit 1; }; } 1112 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1113 eval enable_$ac_feature=\$ac_optarg ;; 1114 1115 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1116 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1117 | --exec | --exe | --ex) 1118 ac_prev=exec_prefix ;; 1119 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1120 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1121 | --exec=* | --exe=* | --ex=*) 1122 exec_prefix=$ac_optarg ;; 1123 1124 -gas | --gas | --ga | --g) 1125 # Obsolete; use --with-gas. 1126 with_gas=yes ;; 1127 1128 -help | --help | --hel | --he | -h) 1129 ac_init_help=long ;; 1130 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1131 ac_init_help=recursive ;; 1132 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1133 ac_init_help=short ;; 1134 1135 -host | --host | --hos | --ho) 1136 ac_prev=host_alias ;; 1137 -host=* | --host=* | --hos=* | --ho=*) 1138 host_alias=$ac_optarg ;; 1139 1140 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1141 ac_prev=htmldir ;; 1142 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1143 | --ht=*) 1144 htmldir=$ac_optarg ;; 1145 1146 -includedir | --includedir | --includedi | --included | --include \ 1147 | --includ | --inclu | --incl | --inc) 1148 ac_prev=includedir ;; 1149 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1150 | --includ=* | --inclu=* | --incl=* | --inc=*) 1151 includedir=$ac_optarg ;; 1152 1153 -infodir | --infodir | --infodi | --infod | --info | --inf) 1154 ac_prev=infodir ;; 1155 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1156 infodir=$ac_optarg ;; 1157 1158 -libdir | --libdir | --libdi | --libd) 1159 ac_prev=libdir ;; 1160 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1161 libdir=$ac_optarg ;; 1162 1163 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1164 | --libexe | --libex | --libe) 1165 ac_prev=libexecdir ;; 1166 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1167 | --libexe=* | --libex=* | --libe=*) 1168 libexecdir=$ac_optarg ;; 1169 1170 -localedir | --localedir | --localedi | --localed | --locale) 1171 ac_prev=localedir ;; 1172 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1173 localedir=$ac_optarg ;; 1174 1175 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1176 | --localstate | --localstat | --localsta | --localst | --locals) 1177 ac_prev=localstatedir ;; 1178 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1179 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1180 localstatedir=$ac_optarg ;; 1181 1182 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1183 ac_prev=mandir ;; 1184 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1185 mandir=$ac_optarg ;; 1186 1187 -nfp | --nfp | --nf) 1188 # Obsolete; use --without-fp. 1189 with_fp=no ;; 1190 1191 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1192 | --no-cr | --no-c | -n) 1193 no_create=yes ;; 1194 1195 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1196 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1197 no_recursion=yes ;; 1198 1199 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1200 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1201 | --oldin | --oldi | --old | --ol | --o) 1202 ac_prev=oldincludedir ;; 1203 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1204 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1205 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1206 oldincludedir=$ac_optarg ;; 1207 1208 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1209 ac_prev=prefix ;; 1210 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1211 prefix=$ac_optarg ;; 1212 1213 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1214 | --program-pre | --program-pr | --program-p) 1215 ac_prev=program_prefix ;; 1216 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1217 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1218 program_prefix=$ac_optarg ;; 1219 1220 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1221 | --program-suf | --program-su | --program-s) 1222 ac_prev=program_suffix ;; 1223 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1224 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1225 program_suffix=$ac_optarg ;; 1226 1227 -program-transform-name | --program-transform-name \ 1228 | --program-transform-nam | --program-transform-na \ 1229 | --program-transform-n | --program-transform- \ 1230 | --program-transform | --program-transfor \ 1231 | --program-transfo | --program-transf \ 1232 | --program-trans | --program-tran \ 1233 | --progr-tra | --program-tr | --program-t) 1234 ac_prev=program_transform_name ;; 1235 -program-transform-name=* | --program-transform-name=* \ 1236 | --program-transform-nam=* | --program-transform-na=* \ 1237 | --program-transform-n=* | --program-transform-=* \ 1238 | --program-transform=* | --program-transfor=* \ 1239 | --program-transfo=* | --program-transf=* \ 1240 | --program-trans=* | --program-tran=* \ 1241 | --progr-tra=* | --program-tr=* | --program-t=*) 1242 program_transform_name=$ac_optarg ;; 1243 1244 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1245 ac_prev=pdfdir ;; 1246 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1247 pdfdir=$ac_optarg ;; 1248 1249 -psdir | --psdir | --psdi | --psd | --ps) 1250 ac_prev=psdir ;; 1251 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1252 psdir=$ac_optarg ;; 1253 1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1255 | -silent | --silent | --silen | --sile | --sil) 1256 silent=yes ;; 1257 1258 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1259 ac_prev=sbindir ;; 1260 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1261 | --sbi=* | --sb=*) 1262 sbindir=$ac_optarg ;; 1263 1264 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1265 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1266 | --sharedst | --shareds | --shared | --share | --shar \ 1267 | --sha | --sh) 1268 ac_prev=sharedstatedir ;; 1269 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1270 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1271 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1272 | --sha=* | --sh=*) 1273 sharedstatedir=$ac_optarg ;; 1274 1275 -site | --site | --sit) 1276 ac_prev=site ;; 1277 -site=* | --site=* | --sit=*) 1278 site=$ac_optarg ;; 1279 1280 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1281 ac_prev=srcdir ;; 1282 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1283 srcdir=$ac_optarg ;; 1284 1285 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1286 | --syscon | --sysco | --sysc | --sys | --sy) 1287 ac_prev=sysconfdir ;; 1288 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1289 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1290 sysconfdir=$ac_optarg ;; 1291 1292 -target | --target | --targe | --targ | --tar | --ta | --t) 1293 ac_prev=target_alias ;; 1294 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1295 target_alias=$ac_optarg ;; 1296 1297 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1298 verbose=yes ;; 1299 1300 -version | --version | --versio | --versi | --vers | -V) 1301 ac_init_version=: ;; 1302 1303 -with-* | --with-*) 1304 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1305 # Reject names that are not valid shell variable names. 1306 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1307 { echo "$as_me: error: invalid package name: $ac_package" >&2 1308 { (exit 1); exit 1; }; } 1309 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1310 eval with_$ac_package=\$ac_optarg ;; 1311 1312 -without-* | --without-*) 1313 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1314 # Reject names that are not valid shell variable names. 1315 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1316 { echo "$as_me: error: invalid package name: $ac_package" >&2 1317 { (exit 1); exit 1; }; } 1318 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1319 eval with_$ac_package=no ;; 1320 1321 --x) 1322 # Obsolete; use --with-x. 1323 with_x=yes ;; 1324 1325 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1326 | --x-incl | --x-inc | --x-in | --x-i) 1327 ac_prev=x_includes ;; 1328 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1329 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1330 x_includes=$ac_optarg ;; 1331 1332 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1333 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1334 ac_prev=x_libraries ;; 1335 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1337 x_libraries=$ac_optarg ;; 1338 1339 -*) { echo "$as_me: error: unrecognized option: $ac_option 1340Try \`$0 --help' for more information." >&2 1341 { (exit 1); exit 1; }; } 1342 ;; 1343 1344 *=*) 1345 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1346 # Reject names that are not valid shell variable names. 1347 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1348 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1349 { (exit 1); exit 1; }; } 1350 eval $ac_envvar=\$ac_optarg 1351 export $ac_envvar ;; 1352 1353 *) 1354 # FIXME: should be removed in autoconf 3.0. 1355 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1357 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1358 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1359 ;; 1360 1361 esac 1362done 1363 1364if test -n "$ac_prev"; then 1365 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1366 { echo "$as_me: error: missing argument to $ac_option" >&2 1367 { (exit 1); exit 1; }; } 1368fi 1369 1370# Be sure to have absolute directory names. 1371for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1372 datadir sysconfdir sharedstatedir localstatedir includedir \ 1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1374 libdir localedir mandir 1375do 1376 eval ac_val=\$$ac_var 1377 case $ac_val in 1378 [\\/$]* | ?:[\\/]* ) continue;; 1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1380 esac 1381 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1382 { (exit 1); exit 1; }; } 1383done 1384 1385# There might be people who depend on the old broken behavior: `$host' 1386# used to hold the argument of --host etc. 1387# FIXME: To remove some day. 1388build=$build_alias 1389host=$host_alias 1390target=$target_alias 1391 1392# FIXME: To remove some day. 1393if test "x$host_alias" != x; then 1394 if test "x$build_alias" = x; then 1395 cross_compiling=maybe 1396 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1397 If a cross compiler is detected then cross compile mode will be used." >&2 1398 elif test "x$build_alias" != "x$host_alias"; then 1399 cross_compiling=yes 1400 fi 1401fi 1402 1403ac_tool_prefix= 1404test -n "$host_alias" && ac_tool_prefix=$host_alias- 1405 1406test "$silent" = yes && exec 6>/dev/null 1407 1408 1409ac_pwd=`pwd` && test -n "$ac_pwd" && 1410ac_ls_di=`ls -di .` && 1411ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1412 { echo "$as_me: error: Working directory cannot be determined" >&2 1413 { (exit 1); exit 1; }; } 1414test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1415 { echo "$as_me: error: pwd does not report name of working directory" >&2 1416 { (exit 1); exit 1; }; } 1417 1418 1419# Find the source files, if location was not specified. 1420if test -z "$srcdir"; then 1421 ac_srcdir_defaulted=yes 1422 # Try the directory containing this script, then the parent directory. 1423 ac_confdir=`$as_dirname -- "$0" || 1424$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1425 X"$0" : 'X\(//\)[^/]' \| \ 1426 X"$0" : 'X\(//\)$' \| \ 1427 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1428echo X"$0" | 1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1430 s//\1/ 1431 q 1432 } 1433 /^X\(\/\/\)[^/].*/{ 1434 s//\1/ 1435 q 1436 } 1437 /^X\(\/\/\)$/{ 1438 s//\1/ 1439 q 1440 } 1441 /^X\(\/\).*/{ 1442 s//\1/ 1443 q 1444 } 1445 s/.*/./; q'` 1446 srcdir=$ac_confdir 1447 if test ! -r "$srcdir/$ac_unique_file"; then 1448 srcdir=.. 1449 fi 1450else 1451 ac_srcdir_defaulted=no 1452fi 1453if test ! -r "$srcdir/$ac_unique_file"; then 1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1455 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1456 { (exit 1); exit 1; }; } 1457fi 1458ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1459ac_abs_confdir=`( 1460 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1461 { (exit 1); exit 1; }; } 1462 pwd)` 1463# When building in place, set srcdir=. 1464if test "$ac_abs_confdir" = "$ac_pwd"; then 1465 srcdir=. 1466fi 1467# Remove unnecessary trailing slashes from srcdir. 1468# Double slashes in file names in object file debugging info 1469# mess up M-x gdb in Emacs. 1470case $srcdir in 1471*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1472esac 1473for ac_var in $ac_precious_vars; do 1474 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1475 eval ac_env_${ac_var}_value=\$${ac_var} 1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1477 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1478done 1479 1480# 1481# Report the --help message. 1482# 1483if test "$ac_init_help" = "long"; then 1484 # Omit some internal or obsolete options to make the list less imposing. 1485 # This message is too long to be a string in the A/UX 3.1 sh. 1486 cat <<_ACEOF 1487\`configure' configures rubrica2 2.1.6 to adapt to many kinds of systems. 1488 1489Usage: $0 [OPTION]... [VAR=VALUE]... 1490 1491To assign environment variables (e.g., CC, CFLAGS...), specify them as 1492VAR=VALUE. See below for descriptions of some of the useful variables. 1493 1494Defaults for the options are specified in brackets. 1495 1496Configuration: 1497 -h, --help display this help and exit 1498 --help=short display options specific to this package 1499 --help=recursive display the short help of all the included packages 1500 -V, --version display version information and exit 1501 -q, --quiet, --silent do not print \`checking...' messages 1502 --cache-file=FILE cache test results in FILE [disabled] 1503 -C, --config-cache alias for \`--cache-file=config.cache' 1504 -n, --no-create do not create output files 1505 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1506 1507Installation directories: 1508 --prefix=PREFIX install architecture-independent files in PREFIX 1509 [$ac_default_prefix] 1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1511 [PREFIX] 1512 1513By default, \`make install' will install all the files in 1514\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1515an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1516for instance \`--prefix=\$HOME'. 1517 1518For better control, use the options below. 1519 1520Fine tuning of the installation directories: 1521 --bindir=DIR user executables [EPREFIX/bin] 1522 --sbindir=DIR system admin executables [EPREFIX/sbin] 1523 --libexecdir=DIR program executables [EPREFIX/libexec] 1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1527 --libdir=DIR object code libraries [EPREFIX/lib] 1528 --includedir=DIR C header files [PREFIX/include] 1529 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1532 --infodir=DIR info documentation [DATAROOTDIR/info] 1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1534 --mandir=DIR man documentation [DATAROOTDIR/man] 1535 --docdir=DIR documentation root [DATAROOTDIR/doc/rubrica2] 1536 --htmldir=DIR html documentation [DOCDIR] 1537 --dvidir=DIR dvi documentation [DOCDIR] 1538 --pdfdir=DIR pdf documentation [DOCDIR] 1539 --psdir=DIR ps documentation [DOCDIR] 1540_ACEOF 1541 1542 cat <<\_ACEOF 1543 1544Program names: 1545 --program-prefix=PREFIX prepend PREFIX to installed program names 1546 --program-suffix=SUFFIX append SUFFIX to installed program names 1547 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1548 1549System types: 1550 --build=BUILD configure for building on BUILD [guessed] 1551 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1552_ACEOF 1553fi 1554 1555if test -n "$ac_init_help"; then 1556 case $ac_init_help in 1557 short | recursive ) echo "Configuration of rubrica2 2.1.6:";; 1558 esac 1559 cat <<\_ACEOF 1560 1561Optional Features: 1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1564 --enable-maintainer-mode enable make rules and dependencies not useful 1565 (and sometimes confusing) to the casual installer 1566 --disable-dependency-tracking speeds up one-time build 1567 --enable-dependency-tracking do not reject slow dependency extractors 1568 --enable-shared[=PKGS] build shared libraries [default=yes] 1569 --enable-static[=PKGS] build static libraries [default=yes] 1570 --enable-fast-install[=PKGS] 1571 optimize for fast installation [default=yes] 1572 --disable-libtool-lock avoid locking (might break parallel builds) 1573 --disable-schemas-install Disable the schemas installation 1574 --enable-gtk-doc use gtk-doc to build documentation default=no 1575 --enable-debug enable debugging define in source code [default=no] 1576 --enable-tests Build libral tests [default=no] 1577 1578Optional Packages: 1579 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1580 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1581 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1582 --with-pic try to use only PIC/non-PIC objects [default=use 1583 both] 1584 --with-tags[=TAGS] include additional configurations [automatic] 1585 --with-gconf-source=sourceaddress Config database for installing schema files. 1586 --with-gconf-schema-file-dir=dir Directory for installing schema files. 1587 --with-html-dir=PATH path to installed docs 1588 1589Some influential environment variables: 1590 CXX C++ compiler command 1591 CXXFLAGS C++ compiler flags 1592 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1593 nonstandard directory <lib dir> 1594 LIBS libraries to pass to the linker, e.g. -l<library> 1595 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1596 you have headers in a nonstandard directory <include dir> 1597 CC C compiler command 1598 CFLAGS C compiler flags 1599 CPP C preprocessor 1600 CXXCPP C++ preprocessor 1601 F77 Fortran 77 compiler command 1602 FFLAGS Fortran 77 compiler flags 1603 PKG_CONFIG path to pkg-config utility 1604 LIBRAL_CFLAGS 1605 C compiler flags for LIBRAL, overriding pkg-config 1606 LIBRAL_LIBS linker flags for LIBRAL, overriding pkg-config 1607 RUBRICA_CFLAGS 1608 C compiler flags for RUBRICA, overriding pkg-config 1609 RUBRICA_LIBS 1610 linker flags for RUBRICA, overriding pkg-config 1611 1612Use these variables to override the choices made by `configure' or to help 1613it to find libraries and programs with nonstandard names/locations. 1614 1615Report bugs to <nicolafragale@gmail.com>. 1616_ACEOF 1617ac_status=$? 1618fi 1619 1620if test "$ac_init_help" = "recursive"; then 1621 # If there are subdirs, report their specific --help. 1622 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1623 test -d "$ac_dir" || continue 1624 ac_builddir=. 1625 1626case "$ac_dir" in 1627.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1628*) 1629 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1630 # A ".." for each directory in $ac_dir_suffix. 1631 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1632 case $ac_top_builddir_sub in 1633 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1634 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1635 esac ;; 1636esac 1637ac_abs_top_builddir=$ac_pwd 1638ac_abs_builddir=$ac_pwd$ac_dir_suffix 1639# for backward compatibility: 1640ac_top_builddir=$ac_top_build_prefix 1641 1642case $srcdir in 1643 .) # We are building in place. 1644 ac_srcdir=. 1645 ac_top_srcdir=$ac_top_builddir_sub 1646 ac_abs_top_srcdir=$ac_pwd ;; 1647 [\\/]* | ?:[\\/]* ) # Absolute name. 1648 ac_srcdir=$srcdir$ac_dir_suffix; 1649 ac_top_srcdir=$srcdir 1650 ac_abs_top_srcdir=$srcdir ;; 1651 *) # Relative name. 1652 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1653 ac_top_srcdir=$ac_top_build_prefix$srcdir 1654 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1655esac 1656ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1657 1658 cd "$ac_dir" || { ac_status=$?; continue; } 1659 # Check for guested configure. 1660 if test -f "$ac_srcdir/configure.gnu"; then 1661 echo && 1662 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1663 elif test -f "$ac_srcdir/configure"; then 1664 echo && 1665 $SHELL "$ac_srcdir/configure" --help=recursive 1666 else 1667 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1668 fi || ac_status=$? 1669 cd "$ac_pwd" || { ac_status=$?; break; } 1670 done 1671fi 1672 1673test -n "$ac_init_help" && exit $ac_status 1674if $ac_init_version; then 1675 cat <<\_ACEOF 1676rubrica2 configure 2.1.6 1677generated by GNU Autoconf 2.61 1678 1679Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16802002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1681This configure script is free software; the Free Software Foundation 1682gives unlimited permission to copy, distribute and modify it. 1683_ACEOF 1684 exit 1685fi 1686cat >config.log <<_ACEOF 1687This file contains any messages produced by compilers while 1688running configure, to aid debugging if configure makes a mistake. 1689 1690It was created by rubrica2 $as_me 2.1.6, which was 1691generated by GNU Autoconf 2.61. Invocation command line was 1692 1693 $ $0 $@ 1694 1695_ACEOF 1696exec 5>>config.log 1697{ 1698cat <<_ASUNAME 1699## --------- ## 1700## Platform. ## 1701## --------- ## 1702 1703hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1704uname -m = `(uname -m) 2>/dev/null || echo unknown` 1705uname -r = `(uname -r) 2>/dev/null || echo unknown` 1706uname -s = `(uname -s) 2>/dev/null || echo unknown` 1707uname -v = `(uname -v) 2>/dev/null || echo unknown` 1708 1709/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1710/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1711 1712/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1713/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1714/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1715/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1716/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1717/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1718/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1719 1720_ASUNAME 1721 1722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1723for as_dir in $PATH 1724do 1725 IFS=$as_save_IFS 1726 test -z "$as_dir" && as_dir=. 1727 echo "PATH: $as_dir" 1728done 1729IFS=$as_save_IFS 1730 1731} >&5 1732 1733cat >&5 <<_ACEOF 1734 1735 1736## ----------- ## 1737## Core tests. ## 1738## ----------- ## 1739 1740_ACEOF 1741 1742 1743# Keep a trace of the command line. 1744# Strip out --no-create and --no-recursion so they do not pile up. 1745# Strip out --silent because we don't want to record it for future runs. 1746# Also quote any args containing shell meta-characters. 1747# Make two passes to allow for proper duplicate-argument suppression. 1748ac_configure_args= 1749ac_configure_args0= 1750ac_configure_args1= 1751ac_must_keep_next=false 1752for ac_pass in 1 2 1753do 1754 for ac_arg 1755 do 1756 case $ac_arg in 1757 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1758 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1759 | -silent | --silent | --silen | --sile | --sil) 1760 continue ;; 1761 *\'*) 1762 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1763 esac 1764 case $ac_pass in 1765 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1766 2) 1767 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1768 if test $ac_must_keep_next = true; then 1769 ac_must_keep_next=false # Got value, back to normal. 1770 else 1771 case $ac_arg in 1772 *=* | --config-cache | -C | -disable-* | --disable-* \ 1773 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1774 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1775 | -with-* | --with-* | -without-* | --without-* | --x) 1776 case "$ac_configure_args0 " in 1777 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1778 esac 1779 ;; 1780 -* ) ac_must_keep_next=true ;; 1781 esac 1782 fi 1783 ac_configure_args="$ac_configure_args '$ac_arg'" 1784 ;; 1785 esac 1786 done 1787done 1788$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1789$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1790 1791# When interrupted or exit'd, cleanup temporary files, and complete 1792# config.log. We remove comments because anyway the quotes in there 1793# would cause problems or look ugly. 1794# WARNING: Use '\'' to represent an apostrophe within the trap. 1795# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1796trap 'exit_status=$? 1797 # Save into config.log some information that might help in debugging. 1798 { 1799 echo 1800 1801 cat <<\_ASBOX 1802## ---------------- ## 1803## Cache variables. ## 1804## ---------------- ## 1805_ASBOX 1806 echo 1807 # The following way of writing the cache mishandles newlines in values, 1808( 1809 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1810 eval ac_val=\$$ac_var 1811 case $ac_val in #( 1812 *${as_nl}*) 1813 case $ac_var in #( 1814 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1815echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1816 esac 1817 case $ac_var in #( 1818 _ | IFS | as_nl) ;; #( 1819 *) $as_unset $ac_var ;; 1820 esac ;; 1821 esac 1822 done 1823 (set) 2>&1 | 1824 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1825 *${as_nl}ac_space=\ *) 1826 sed -n \ 1827 "s/'\''/'\''\\\\'\'''\''/g; 1828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1829 ;; #( 1830 *) 1831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1832 ;; 1833 esac | 1834 sort 1835) 1836 echo 1837 1838 cat <<\_ASBOX 1839## ----------------- ## 1840## Output variables. ## 1841## ----------------- ## 1842_ASBOX 1843 echo 1844 for ac_var in $ac_subst_vars 1845 do 1846 eval ac_val=\$$ac_var 1847 case $ac_val in 1848 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1849 esac 1850 echo "$ac_var='\''$ac_val'\''" 1851 done | sort 1852 echo 1853 1854 if test -n "$ac_subst_files"; then 1855 cat <<\_ASBOX 1856## ------------------- ## 1857## File substitutions. ## 1858## ------------------- ## 1859_ASBOX 1860 echo 1861 for ac_var in $ac_subst_files 1862 do 1863 eval ac_val=\$$ac_var 1864 case $ac_val in 1865 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1866 esac 1867 echo "$ac_var='\''$ac_val'\''" 1868 done | sort 1869 echo 1870 fi 1871 1872 if test -s confdefs.h; then 1873 cat <<\_ASBOX 1874## ----------- ## 1875## confdefs.h. ## 1876## ----------- ## 1877_ASBOX 1878 echo 1879 cat confdefs.h 1880 echo 1881 fi 1882 test "$ac_signal" != 0 && 1883 echo "$as_me: caught signal $ac_signal" 1884 echo "$as_me: exit $exit_status" 1885 } >&5 1886 rm -f core *.core core.conftest.* && 1887 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1888 exit $exit_status 1889' 0 1890for ac_signal in 1 2 13 15; do 1891 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1892done 1893ac_signal=0 1894 1895# confdefs.h avoids OS command line length limits that DEFS can exceed. 1896rm -f -r conftest* confdefs.h 1897 1898# Predefined preprocessor variables. 1899 1900cat >>confdefs.h <<_ACEOF 1901#define PACKAGE_NAME "$PACKAGE_NAME" 1902_ACEOF 1903 1904 1905cat >>confdefs.h <<_ACEOF 1906#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1907_ACEOF 1908 1909 1910cat >>confdefs.h <<_ACEOF 1911#define PACKAGE_VERSION "$PACKAGE_VERSION" 1912_ACEOF 1913 1914 1915cat >>confdefs.h <<_ACEOF 1916#define PACKAGE_STRING "$PACKAGE_STRING" 1917_ACEOF 1918 1919 1920cat >>confdefs.h <<_ACEOF 1921#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1922_ACEOF 1923 1924 1925# Let the site file select an alternate cache file if it wants to. 1926# Prefer explicitly selected file to automatically selected ones. 1927if test -n "$CONFIG_SITE"; then 1928 set x "$CONFIG_SITE" 1929elif test "x$prefix" != xNONE; then 1930 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1931else 1932 set x "$ac_default_prefix/share/config.site" \ 1933 "$ac_default_prefix/etc/config.site" 1934fi 1935shift 1936for ac_site_file 1937do 1938 if test -r "$ac_site_file"; then 1939 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1940echo "$as_me: loading site script $ac_site_file" >&6;} 1941 sed 's/^/| /' "$ac_site_file" >&5 1942 . "$ac_site_file" 1943 fi 1944done 1945 1946if test -r "$cache_file"; then 1947 # Some versions of bash will fail to source /dev/null (special 1948 # files actually), so we avoid doing that. 1949 if test -f "$cache_file"; then 1950 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1951echo "$as_me: loading cache $cache_file" >&6;} 1952 case $cache_file in 1953 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1954 *) . "./$cache_file";; 1955 esac 1956 fi 1957else 1958 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1959echo "$as_me: creating cache $cache_file" >&6;} 1960 >$cache_file 1961fi 1962 1963ac_header_list="$ac_header_list sys/time.h" 1964ac_header_list="$ac_header_list unistd.h" 1965ac_func_list="$ac_func_list alarm" 1966# Check that the precious variables saved in the cache have kept the same 1967# value. 1968ac_cache_corrupted=false 1969for ac_var in $ac_precious_vars; do 1970 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1971 eval ac_new_set=\$ac_env_${ac_var}_set 1972 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1973 eval ac_new_val=\$ac_env_${ac_var}_value 1974 case $ac_old_set,$ac_new_set in 1975 set,) 1976 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1977echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1978 ac_cache_corrupted=: ;; 1979 ,set) 1980 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1981echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1982 ac_cache_corrupted=: ;; 1983 ,);; 1984 *) 1985 if test "x$ac_old_val" != "x$ac_new_val"; then 1986 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1987echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1988 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1989echo "$as_me: former value: $ac_old_val" >&2;} 1990 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1991echo "$as_me: current value: $ac_new_val" >&2;} 1992 ac_cache_corrupted=: 1993 fi;; 1994 esac 1995 # Pass precious variables to config.status. 1996 if test "$ac_new_set" = set; then 1997 case $ac_new_val in 1998 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1999 *) ac_arg=$ac_var=$ac_new_val ;; 2000 esac 2001 case " $ac_configure_args " in 2002 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2003 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2004 esac 2005 fi 2006done 2007if $ac_cache_corrupted; then 2008 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2009echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2010 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2011echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2012 { (exit 1); exit 1; }; } 2013fi 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039ac_ext=c 2040ac_cpp='$CPP $CPPFLAGS' 2041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2043ac_compiler_gnu=$ac_cv_c_compiler_gnu 2044 2045 2046 2047ac_config_headers="$ac_config_headers config.h" 2048 2049 2050 2051PACKAGE_STATUS='Development Release' 2052#PACKAGE_STATUS=Stable Release 2053 2054RUBRICA_FILE_FORMAT=4 2055RUBRICA_NAME=$PACKAGE_NAME 2056RUBRICA_VERSION=$PACKAGE_VERSION 2057RUBRICA_CAP_NAME=Rubrica2 2058 2059 2060 2061 2062 2063 2064 2065 2066# Code Name 2067RUBRICA_CODE_NAME=Perekotipole 2068RUBRICA_INFO_CODE_NAME='Il corridore del deserto' 2069LIBRAL_CODE_NAME=$RUBRICA_CODE_NAME 2070LIBRAL_INFO_CODE_NAME=$RUBRICA_INFO_CODE_NAME 2071 2072 2073 2074 2075 2076LIBRAL_VERSION=1.0 2077LIBRAL_CURRENT_VERSION=1 2078LIBRAL_REVISION_VERSION=0 2079LIBRAL_COMPAT_VERSION=0 2080 2081 2082 2083 2084 2085# AC_SUBST(LIBRAL_RELEASE) 2086 2087 2088# AM_INIT_AUTOMAKE($RUBRICA_NAME, $RUBRICA_VERSION) 2089am__api_version='1.10' 2090 2091ac_aux_dir= 2092for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2093 if test -f "$ac_dir/install-sh"; then 2094 ac_aux_dir=$ac_dir 2095 ac_install_sh="$ac_aux_dir/install-sh -c" 2096 break 2097 elif test -f "$ac_dir/install.sh"; then 2098 ac_aux_dir=$ac_dir 2099 ac_install_sh="$ac_aux_dir/install.sh -c" 2100 break 2101 elif test -f "$ac_dir/shtool"; then 2102 ac_aux_dir=$ac_dir 2103 ac_install_sh="$ac_aux_dir/shtool install -c" 2104 break 2105 fi 2106done 2107if test -z "$ac_aux_dir"; then 2108 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2109echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2110 { (exit 1); exit 1; }; } 2111fi 2112 2113# These three variables are undocumented and unsupported, 2114# and are intended to be withdrawn in a future Autoconf release. 2115# They can cause serious problems if a builder's source tree is in a directory 2116# whose full name contains unusual characters. 2117ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2118ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2119ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2120 2121 2122# Find a good install program. We prefer a C program (faster), 2123# so one script is as good as another. But avoid the broken or 2124# incompatible versions: 2125# SysV /etc/install, /usr/sbin/install 2126# SunOS /usr/etc/install 2127# IRIX /sbin/install 2128# AIX /bin/install 2129# AmigaOS /C/install, which installs bootblocks on floppy discs 2130# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2131# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2132# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2133# OS/2's system install, which has a completely different semantic 2134# ./install, which can be erroneously created by make from ./install.sh. 2135{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2136echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2137if test -z "$INSTALL"; then 2138if test "${ac_cv_path_install+set}" = set; then 2139 echo $ECHO_N "(cached) $ECHO_C" >&6 2140else 2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2142for as_dir in $PATH 2143do 2144 IFS=$as_save_IFS 2145 test -z "$as_dir" && as_dir=. 2146 # Account for people who put trailing slashes in PATH elements. 2147case $as_dir/ in 2148 ./ | .// | /cC/* | \ 2149 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2150 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2151 /usr/ucb/* ) ;; 2152 *) 2153 # OSF1 and SCO ODT 3.0 have their own names for install. 2154 # Don't use installbsd from OSF since it installs stuff as root 2155 # by default. 2156 for ac_prog in ginstall scoinst install; do 2157 for ac_exec_ext in '' $ac_executable_extensions; do 2158 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2159 if test $ac_prog = install && 2160 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2161 # AIX install. It has an incompatible calling convention. 2162 : 2163 elif test $ac_prog = install && 2164 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2165 # program-specific install script used by HP pwplus--don't use. 2166 : 2167 else 2168 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2169 break 3 2170 fi 2171 fi 2172 done 2173 done 2174 ;; 2175esac 2176done 2177IFS=$as_save_IFS 2178 2179 2180fi 2181 if test "${ac_cv_path_install+set}" = set; then 2182 INSTALL=$ac_cv_path_install 2183 else 2184 # As a last resort, use the slow shell script. Don't cache a 2185 # value for INSTALL within a source directory, because that will 2186 # break other packages using the cache if that directory is 2187 # removed, or if the value is a relative name. 2188 INSTALL=$ac_install_sh 2189 fi 2190fi 2191{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2192echo "${ECHO_T}$INSTALL" >&6; } 2193 2194# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2195# It thinks the first close brace ends the variable substitution. 2196test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2197 2198test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2199 2200test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2201 2202{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2203echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2204# Just in case 2205sleep 1 2206echo timestamp > conftest.file 2207# Do `set' in a subshell so we don't clobber the current shell's 2208# arguments. Must try -L first in case configure is actually a 2209# symlink; some systems play weird games with the mod time of symlinks 2210# (eg FreeBSD returns the mod time of the symlink's containing 2211# directory). 2212if ( 2213 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2214 if test "$*" = "X"; then 2215 # -L didn't work. 2216 set X `ls -t $srcdir/configure conftest.file` 2217 fi 2218 rm -f conftest.file 2219 if test "$*" != "X $srcdir/configure conftest.file" \ 2220 && test "$*" != "X conftest.file $srcdir/configure"; then 2221 2222 # If neither matched, then we have a broken ls. This can happen 2223 # if, for instance, CONFIG_SHELL is bash and it inherits a 2224 # broken ls alias from the environment. This has actually 2225 # happened. Such a system could not be considered "sane". 2226 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2227alias in your environment" >&5 2228echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2229alias in your environment" >&2;} 2230 { (exit 1); exit 1; }; } 2231 fi 2232 2233 test "$2" = conftest.file 2234 ) 2235then 2236 # Ok. 2237 : 2238else 2239 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2240Check your system clock" >&5 2241echo "$as_me: error: newly created file is older than distributed files! 2242Check your system clock" >&2;} 2243 { (exit 1); exit 1; }; } 2244fi 2245{ echo "$as_me:$LINENO: result: yes" >&5 2246echo "${ECHO_T}yes" >&6; } 2247test "$program_prefix" != NONE && 2248 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2249# Use a double $ so make ignores it. 2250test "$program_suffix" != NONE && 2251 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2252# Double any \ or $. echo might interpret backslashes. 2253# By default was `s,x,x', remove it if useless. 2254cat <<\_ACEOF >conftest.sed 2255s/[\\$]/&&/g;s/;s,x,x,$// 2256_ACEOF 2257program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2258rm -f conftest.sed 2259 2260# expand $ac_aux_dir to an absolute path 2261am_aux_dir=`cd $ac_aux_dir && pwd` 2262 2263test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2264# Use eval to expand $SHELL 2265if eval "$MISSING --run true"; then 2266 am_missing_run="$MISSING --run " 2267else 2268 am_missing_run= 2269 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2270echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2271fi 2272 2273{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2274echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2275if test -z "$MKDIR_P"; then 2276 if test "${ac_cv_path_mkdir+set}" = set; then 2277 echo $ECHO_N "(cached) $ECHO_C" >&6 2278else 2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2280for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2281do 2282 IFS=$as_save_IFS 2283 test -z "$as_dir" && as_dir=. 2284 for ac_prog in mkdir gmkdir; do 2285 for ac_exec_ext in '' $ac_executable_extensions; do 2286 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2287 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2288 'mkdir (GNU coreutils) '* | \ 2289 'mkdir (coreutils) '* | \ 2290 'mkdir (fileutils) '4.1*) 2291 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2292 break 3;; 2293 esac 2294 done 2295 done 2296done 2297IFS=$as_save_IFS 2298 2299fi 2300 2301 if test "${ac_cv_path_mkdir+set}" = set; then 2302 MKDIR_P="$ac_cv_path_mkdir -p" 2303 else 2304 # As a last resort, use the slow shell script. Don't cache a 2305 # value for MKDIR_P within a source directory, because that will 2306 # break other packages using the cache if that directory is 2307 # removed, or if the value is a relative name. 2308 test -d ./--version && rmdir ./--version 2309 MKDIR_P="$ac_install_sh -d" 2310 fi 2311fi 2312{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2313echo "${ECHO_T}$MKDIR_P" >&6; } 2314 2315mkdir_p="$MKDIR_P" 2316case $mkdir_p in 2317 [\\/$]* | ?:[\\/]*) ;; 2318 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2319esac 2320 2321for ac_prog in gawk mawk nawk awk 2322do 2323 # Extract the first word of "$ac_prog", so it can be a program name with args. 2324set dummy $ac_prog; ac_word=$2 2325{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2327if test "${ac_cv_prog_AWK+set}" = set; then 2328 echo $ECHO_N "(cached) $ECHO_C" >&6 2329else 2330 if test -n "$AWK"; then 2331 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2332else 2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2334for as_dir in $PATH 2335do 2336 IFS=$as_save_IFS 2337 test -z "$as_dir" && as_dir=. 2338 for ac_exec_ext in '' $ac_executable_extensions; do 2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2340 ac_cv_prog_AWK="$ac_prog" 2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2342 break 2 2343 fi 2344done 2345done 2346IFS=$as_save_IFS 2347 2348fi 2349fi 2350AWK=$ac_cv_prog_AWK 2351if test -n "$AWK"; then 2352 { echo "$as_me:$LINENO: result: $AWK" >&5 2353echo "${ECHO_T}$AWK" >&6; } 2354else 2355 { echo "$as_me:$LINENO: result: no" >&5 2356echo "${ECHO_T}no" >&6; } 2357fi 2358 2359 2360 test -n "$AWK" && break 2361done 2362 2363{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2364echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2365set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2366if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2367 echo $ECHO_N "(cached) $ECHO_C" >&6 2368else 2369 cat >conftest.make <<\_ACEOF 2370SHELL = /bin/sh 2371all: 2372 @echo '@@@%%%=$(MAKE)=@@@%%%' 2373_ACEOF 2374# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2375case `${MAKE-make} -f conftest.make 2>/dev/null` in 2376 *@@@%%%=?*=@@@%%%*) 2377 eval ac_cv_prog_make_${ac_make}_set=yes;; 2378 *) 2379 eval ac_cv_prog_make_${ac_make}_set=no;; 2380esac 2381rm -f conftest.make 2382fi 2383if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2384 { echo "$as_me:$LINENO: result: yes" >&5 2385echo "${ECHO_T}yes" >&6; } 2386 SET_MAKE= 2387else 2388 { echo "$as_me:$LINENO: result: no" >&5 2389echo "${ECHO_T}no" >&6; } 2390 SET_MAKE="MAKE=${MAKE-make}" 2391fi 2392 2393rm -rf .tst 2>/dev/null 2394mkdir .tst 2>/dev/null 2395if test -d .tst; then 2396 am__leading_dot=. 2397else 2398 am__leading_dot=_ 2399fi 2400rmdir .tst 2>/dev/null 2401 2402if test "`cd $srcdir && pwd`" != "`pwd`"; then 2403 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2404 # is not polluted with repeated "-I." 2405 am__isrc=' -I$(srcdir)' 2406 # test to see if srcdir already configured 2407 if test -f $srcdir/config.status; then 2408 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2409echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2410 { (exit 1); exit 1; }; } 2411 fi 2412fi 2413 2414# test whether we have cygpath 2415if test -z "$CYGPATH_W"; then 2416 if (cygpath --version) >/dev/null 2>/dev/null; then 2417 CYGPATH_W='cygpath -w' 2418 else 2419 CYGPATH_W=echo 2420 fi 2421fi 2422 2423 2424# Define the identity of the package. 2425 PACKAGE='rubrica2' 2426 VERSION='2.1.6' 2427 2428 2429cat >>confdefs.h <<_ACEOF 2430#define PACKAGE "$PACKAGE" 2431_ACEOF 2432 2433 2434cat >>confdefs.h <<_ACEOF 2435#define VERSION "$VERSION" 2436_ACEOF 2437 2438# Some tools Automake needs. 2439 2440ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2441 2442 2443AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2444 2445 2446AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2447 2448 2449AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2450 2451 2452MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2453 2454install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2455 2456# Installed binaries are usually stripped using `strip' when the user 2457# run `make install-strip'. However `strip' might not be the right 2458# tool to use in cross-compilation environments, therefore Automake 2459# will honor the `STRIP' environment variable to overrule this program. 2460if test "$cross_compiling" != no; then 2461 if test -n "$ac_tool_prefix"; then 2462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2463set dummy ${ac_tool_prefix}strip; ac_word=$2 2464{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2466if test "${ac_cv_prog_STRIP+set}" = set; then 2467 echo $ECHO_N "(cached) $ECHO_C" >&6 2468else 2469 if test -n "$STRIP"; then 2470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2471else 2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2473for as_dir in $PATH 2474do 2475 IFS=$as_save_IFS 2476 test -z "$as_dir" && as_dir=. 2477 for ac_exec_ext in '' $ac_executable_extensions; do 2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2479 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2481 break 2 2482 fi 2483done 2484done 2485IFS=$as_save_IFS 2486 2487fi 2488fi 2489STRIP=$ac_cv_prog_STRIP 2490if test -n "$STRIP"; then 2491 { echo "$as_me:$LINENO: result: $STRIP" >&5 2492echo "${ECHO_T}$STRIP" >&6; } 2493else 2494 { echo "$as_me:$LINENO: result: no" >&5 2495echo "${ECHO_T}no" >&6; } 2496fi 2497 2498 2499fi 2500if test -z "$ac_cv_prog_STRIP"; then 2501 ac_ct_STRIP=$STRIP 2502 # Extract the first word of "strip", so it can be a program name with args. 2503set dummy strip; ac_word=$2 2504{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2506if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2507 echo $ECHO_N "(cached) $ECHO_C" >&6 2508else 2509 if test -n "$ac_ct_STRIP"; then 2510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2511else 2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2513for as_dir in $PATH 2514do 2515 IFS=$as_save_IFS 2516 test -z "$as_dir" && as_dir=. 2517 for ac_exec_ext in '' $ac_executable_extensions; do 2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2519 ac_cv_prog_ac_ct_STRIP="strip" 2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2521 break 2 2522 fi 2523done 2524done 2525IFS=$as_save_IFS 2526 2527fi 2528fi 2529ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2530if test -n "$ac_ct_STRIP"; then 2531 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2532echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2533else 2534 { echo "$as_me:$LINENO: result: no" >&5 2535echo "${ECHO_T}no" >&6; } 2536fi 2537 2538 if test "x$ac_ct_STRIP" = x; then 2539 STRIP=":" 2540 else 2541 case $cross_compiling:$ac_tool_warned in 2542yes:) 2543{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2544whose name does not start with the host triplet. If you think this 2545configuration is useful to you, please write to autoconf@gnu.org." >&5 2546echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2547whose name does not start with the host triplet. If you think this 2548configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2549ac_tool_warned=yes ;; 2550esac 2551 STRIP=$ac_ct_STRIP 2552 fi 2553else 2554 STRIP="$ac_cv_prog_STRIP" 2555fi 2556 2557fi 2558INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2559 2560# We need awk for the "check" target. The system "awk" is bad on 2561# some platforms. 2562# Always define AMTAR for backward compatibility. 2563 2564AMTAR=${AMTAR-"${am_missing_run}tar"} 2565 2566am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2567 2568 2569 2570 2571 2572{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2573echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2574 # Check whether --enable-maintainer-mode was given. 2575if test "${enable_maintainer_mode+set}" = set; then 2576 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2577else 2578 USE_MAINTAINER_MODE=no 2579fi 2580 2581 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2582echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2583 if test $USE_MAINTAINER_MODE = yes; then 2584 MAINTAINER_MODE_TRUE= 2585 MAINTAINER_MODE_FALSE='#' 2586else 2587 MAINTAINER_MODE_TRUE='#' 2588 MAINTAINER_MODE_FALSE= 2589fi 2590 2591 MAINT=$MAINTAINER_MODE_TRUE 2592 2593 2594 2595# Checks for programs. 2596ac_ext=cpp 2597ac_cpp='$CXXCPP $CPPFLAGS' 2598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2601if test -z "$CXX"; then 2602 if test -n "$CCC"; then 2603 CXX=$CCC 2604 else 2605 if test -n "$ac_tool_prefix"; then 2606 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2607 do 2608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2609set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2610{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2612if test "${ac_cv_prog_CXX+set}" = set; then 2613 echo $ECHO_N "(cached) $ECHO_C" >&6 2614else 2615 if test -n "$CXX"; then 2616 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2617else 2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2619for as_dir in $PATH 2620do 2621 IFS=$as_save_IFS 2622 test -z "$as_dir" && as_dir=. 2623 for ac_exec_ext in '' $ac_executable_extensions; do 2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2625 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2627 break 2 2628 fi 2629done 2630done 2631IFS=$as_save_IFS 2632 2633fi 2634fi 2635CXX=$ac_cv_prog_CXX 2636if test -n "$CXX"; then 2637 { echo "$as_me:$LINENO: result: $CXX" >&5 2638echo "${ECHO_T}$CXX" >&6; } 2639else 2640 { echo "$as_me:$LINENO: result: no" >&5 2641echo "${ECHO_T}no" >&6; } 2642fi 2643 2644 2645 test -n "$CXX" && break 2646 done 2647fi 2648if test -z "$CXX"; then 2649 ac_ct_CXX=$CXX 2650 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2651do 2652 # Extract the first word of "$ac_prog", so it can be a program name with args. 2653set dummy $ac_prog; ac_word=$2 2654{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2656if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2657 echo $ECHO_N "(cached) $ECHO_C" >&6 2658else 2659 if test -n "$ac_ct_CXX"; then 2660 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2661else 2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2663for as_dir in $PATH 2664do 2665 IFS=$as_save_IFS 2666 test -z "$as_dir" && as_dir=. 2667 for ac_exec_ext in '' $ac_executable_extensions; do 2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2669 ac_cv_prog_ac_ct_CXX="$ac_prog" 2670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2671 break 2 2672 fi 2673done 2674done 2675IFS=$as_save_IFS 2676 2677fi 2678fi 2679ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2680if test -n "$ac_ct_CXX"; then 2681 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2682echo "${ECHO_T}$ac_ct_CXX" >&6; } 2683else 2684 { echo "$as_me:$LINENO: result: no" >&5 2685echo "${ECHO_T}no" >&6; } 2686fi 2687 2688 2689 test -n "$ac_ct_CXX" && break 2690done 2691 2692 if test "x$ac_ct_CXX" = x; then 2693 CXX="g++" 2694 else 2695 case $cross_compiling:$ac_tool_warned in 2696yes:) 2697{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2698whose name does not start with the host triplet. If you think this 2699configuration is useful to you, please write to autoconf@gnu.org." >&5 2700echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2701whose name does not start with the host triplet. If you think this 2702configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2703ac_tool_warned=yes ;; 2704esac 2705 CXX=$ac_ct_CXX 2706 fi 2707fi 2708 2709 fi 2710fi 2711# Provide some information about the compiler. 2712echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2713ac_compiler=`set X $ac_compile; echo $2` 2714{ (ac_try="$ac_compiler --version >&5" 2715case "(($ac_try" in 2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2717 *) ac_try_echo=$ac_try;; 2718esac 2719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2720 (eval "$ac_compiler --version >&5") 2>&5 2721 ac_status=$? 2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2723 (exit $ac_status); } 2724{ (ac_try="$ac_compiler -v >&5" 2725case "(($ac_try" in 2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2727 *) ac_try_echo=$ac_try;; 2728esac 2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2730 (eval "$ac_compiler -v >&5") 2>&5 2731 ac_status=$? 2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2733 (exit $ac_status); } 2734{ (ac_try="$ac_compiler -V >&5" 2735case "(($ac_try" in 2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2737 *) ac_try_echo=$ac_try;; 2738esac 2739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2740 (eval "$ac_compiler -V >&5") 2>&5 2741 ac_status=$? 2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2743 (exit $ac_status); } 2744 2745cat >conftest.$ac_ext <<_ACEOF 2746/* confdefs.h. */ 2747_ACEOF 2748cat confdefs.h >>conftest.$ac_ext 2749cat >>conftest.$ac_ext <<_ACEOF 2750/* end confdefs.h. */ 2751 2752int 2753main () 2754{ 2755 2756 ; 2757 return 0; 2758} 2759_ACEOF 2760ac_clean_files_save=$ac_clean_files 2761ac_clean_files="$ac_clean_files a.out a.exe b.out" 2762# Try to create an executable without -o first, disregard a.out. 2763# It will help us diagnose broken compilers, and finding out an intuition 2764# of exeext. 2765{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 2766echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } 2767ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2768# 2769# List of possible output files, starting from the most likely. 2770# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2771# only as a last resort. b.out is created by i960 compilers. 2772ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2773# 2774# The IRIX 6 linker writes into existing files which may not be 2775# executable, retaining their permissions. Remove them first so a 2776# subsequent execution test works. 2777ac_rmfiles= 2778for ac_file in $ac_files 2779do 2780 case $ac_file in 2781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2782 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2783 esac 2784done 2785rm -f $ac_rmfiles 2786 2787if { (ac_try="$ac_link_default" 2788case "(($ac_try" in 2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2790 *) ac_try_echo=$ac_try;; 2791esac 2792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2793 (eval "$ac_link_default") 2>&5 2794 ac_status=$? 2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2796 (exit $ac_status); }; then 2797 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2798# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2799# in a Makefile. We should not override ac_cv_exeext if it was cached, 2800# so that the user can short-circuit this test for compilers unknown to 2801# Autoconf. 2802for ac_file in $ac_files '' 2803do 2804 test -f "$ac_file" || continue 2805 case $ac_file in 2806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2807 ;; 2808 [ab].out ) 2809 # We found the default executable, but exeext='' is most 2810 # certainly right. 2811 break;; 2812 *.* ) 2813 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2814 then :; else 2815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2816 fi 2817 # We set ac_cv_exeext here because the later test for it is not 2818 # safe: cross compilers may not add the suffix if given an `-o' 2819 # argument, so we may need to know it at that point already. 2820 # Even if this section looks crufty: it has the advantage of 2821 # actually working. 2822 break;; 2823 * ) 2824 break;; 2825 esac 2826done 2827test "$ac_cv_exeext" = no && ac_cv_exeext= 2828 2829else 2830 ac_file='' 2831fi 2832 2833{ echo "$as_me:$LINENO: result: $ac_file" >&5 2834echo "${ECHO_T}$ac_file" >&6; } 2835if test -z "$ac_file"; then 2836 echo "$as_me: failed program was:" >&5 2837sed 's/^/| /' conftest.$ac_ext >&5 2838 2839{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2840See \`config.log' for more details." >&5 2841echo "$as_me: error: C++ compiler cannot create executables 2842See \`config.log' for more details." >&2;} 2843 { (exit 77); exit 77; }; } 2844fi 2845 2846ac_exeext=$ac_cv_exeext 2847 2848# Check that the compiler produces executables we can run. If not, either 2849# the compiler is broken, or we cross compile. 2850{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 2851echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } 2852# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2853# If not cross compiling, check that we can run a simple program. 2854if test "$cross_compiling" != yes; then 2855 if { ac_try='./$ac_file' 2856 { (case "(($ac_try" in 2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2858 *) ac_try_echo=$ac_try;; 2859esac 2860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2861 (eval "$ac_try") 2>&5 2862 ac_status=$? 2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2864 (exit $ac_status); }; }; then 2865 cross_compiling=no 2866 else 2867 if test "$cross_compiling" = maybe; then 2868 cross_compiling=yes 2869 else 2870 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2871If you meant to cross compile, use \`--host'. 2872See \`config.log' for more details." >&5 2873echo "$as_me: error: cannot run C++ compiled programs. 2874If you meant to cross compile, use \`--host'. 2875See \`config.log' for more details." >&2;} 2876 { (exit 1); exit 1; }; } 2877 fi 2878 fi 2879fi 2880{ echo "$as_me:$LINENO: result: yes" >&5 2881echo "${ECHO_T}yes" >&6; } 2882 2883rm -f a.out a.exe conftest$ac_cv_exeext b.out 2884ac_clean_files=$ac_clean_files_save 2885# Check that the compiler produces executables we can run. If not, either 2886# the compiler is broken, or we cross compile. 2887{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2888echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2889{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2890echo "${ECHO_T}$cross_compiling" >&6; } 2891 2892{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2893echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2894if { (ac_try="$ac_link" 2895case "(($ac_try" in 2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2897 *) ac_try_echo=$ac_try;; 2898esac 2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2900 (eval "$ac_link") 2>&5 2901 ac_status=$? 2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2903 (exit $ac_status); }; then 2904 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2905# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2906# work properly (i.e., refer to `conftest.exe'), while it won't with 2907# `rm'. 2908for ac_file in conftest.exe conftest conftest.*; do 2909 test -f "$ac_file" || continue 2910 case $ac_file in 2911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2913 break;; 2914 * ) break;; 2915 esac 2916done 2917else 2918 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2919See \`config.log' for more details." >&5 2920echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2921See \`config.log' for more details." >&2;} 2922 { (exit 1); exit 1; }; } 2923fi 2924 2925rm -f conftest$ac_cv_exeext 2926{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2927echo "${ECHO_T}$ac_cv_exeext" >&6; } 2928 2929rm -f conftest.$ac_ext 2930EXEEXT=$ac_cv_exeext 2931ac_exeext=$EXEEXT 2932{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2933echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2934if test "${ac_cv_objext+set}" = set; then 2935 echo $ECHO_N "(cached) $ECHO_C" >&6 2936else 2937 cat >conftest.$ac_ext <<_ACEOF 2938/* confdefs.h. */ 2939_ACEOF 2940cat confdefs.h >>conftest.$ac_ext 2941cat >>conftest.$ac_ext <<_ACEOF 2942/* end confdefs.h. */ 2943 2944int 2945main () 2946{ 2947 2948 ; 2949 return 0; 2950} 2951_ACEOF 2952rm -f conftest.o conftest.obj 2953if { (ac_try="$ac_compile" 2954case "(($ac_try" in 2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2956 *) ac_try_echo=$ac_try;; 2957esac 2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2959 (eval "$ac_compile") 2>&5 2960 ac_status=$? 2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2962 (exit $ac_status); }; then 2963 for ac_file in conftest.o conftest.obj conftest.*; do 2964 test -f "$ac_file" || continue; 2965 case $ac_file in 2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2967 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2968 break;; 2969 esac 2970done 2971else 2972 echo "$as_me: failed program was:" >&5 2973sed 's/^/| /' conftest.$ac_ext >&5 2974 2975{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2976See \`config.log' for more details." >&5 2977echo "$as_me: error: cannot compute suffix of object files: cannot compile 2978See \`config.log' for more details." >&2;} 2979 { (exit 1); exit 1; }; } 2980fi 2981 2982rm -f conftest.$ac_cv_objext conftest.$ac_ext 2983fi 2984{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2985echo "${ECHO_T}$ac_cv_objext" >&6; } 2986OBJEXT=$ac_cv_objext 2987ac_objext=$OBJEXT 2988{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2989echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2990if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2991 echo $ECHO_N "(cached) $ECHO_C" >&6 2992else 2993 cat >conftest.$ac_ext <<_ACEOF 2994/* confdefs.h. */ 2995_ACEOF 2996cat confdefs.h >>conftest.$ac_ext 2997cat >>conftest.$ac_ext <<_ACEOF 2998/* end confdefs.h. */ 2999 3000int 3001main () 3002{ 3003#ifndef __GNUC__ 3004 choke me 3005#endif 3006 3007 ; 3008 return 0; 3009} 3010_ACEOF 3011rm -f conftest.$ac_objext 3012if { (ac_try="$ac_compile" 3013case "(($ac_try" in 3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3015 *) ac_try_echo=$ac_try;; 3016esac 3017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3018 (eval "$ac_compile") 2>conftest.er1 3019 ac_status=$? 3020 grep -v '^ *+' conftest.er1 >conftest.err 3021 rm -f conftest.er1 3022 cat conftest.err >&5 3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3024 (exit $ac_status); } && { 3025 test -z "$ac_cxx_werror_flag" || 3026 test ! -s conftest.err 3027 } && test -s conftest.$ac_objext; then 3028 ac_compiler_gnu=yes 3029else 3030 echo "$as_me: failed program was:" >&5 3031sed 's/^/| /' conftest.$ac_ext >&5 3032 3033 ac_compiler_gnu=no 3034fi 3035 3036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3037ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3038 3039fi 3040{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3041echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3042GXX=`test $ac_compiler_gnu = yes && echo yes` 3043ac_test_CXXFLAGS=${CXXFLAGS+set} 3044ac_save_CXXFLAGS=$CXXFLAGS 3045{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3046echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3047if test "${ac_cv_prog_cxx_g+set}" = set; then 3048 echo $ECHO_N "(cached) $ECHO_C" >&6 3049else 3050 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3051 ac_cxx_werror_flag=yes 3052 ac_cv_prog_cxx_g=no 3053 CXXFLAGS="-g" 3054 cat >conftest.$ac_ext <<_ACEOF 3055/* confdefs.h. */ 3056_ACEOF 3057cat confdefs.h >>conftest.$ac_ext 3058cat >>conftest.$ac_ext <<_ACEOF 3059/* end confdefs.h. */ 3060 3061int 3062main () 3063{ 3064 3065 ; 3066 return 0; 3067} 3068_ACEOF 3069rm -f conftest.$ac_objext 3070if { (ac_try="$ac_compile" 3071case "(($ac_try" in 3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3073 *) ac_try_echo=$ac_try;; 3074esac 3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3076 (eval "$ac_compile") 2>conftest.er1 3077 ac_status=$? 3078 grep -v '^ *+' conftest.er1 >conftest.err 3079 rm -f conftest.er1 3080 cat conftest.err >&5 3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3082 (exit $ac_status); } && { 3083 test -z "$ac_cxx_werror_flag" || 3084 test ! -s conftest.err 3085 } && test -s conftest.$ac_objext; then 3086 ac_cv_prog_cxx_g=yes 3087else 3088 echo "$as_me: failed program was:" >&5 3089sed 's/^/| /' conftest.$ac_ext >&5 3090 3091 CXXFLAGS="" 3092 cat >conftest.$ac_ext <<_ACEOF 3093/* confdefs.h. */ 3094_ACEOF 3095cat confdefs.h >>conftest.$ac_ext 3096cat >>conftest.$ac_ext <<_ACEOF 3097/* end confdefs.h. */ 3098 3099int 3100main () 3101{ 3102 3103 ; 3104 return 0; 3105} 3106_ACEOF 3107rm -f conftest.$ac_objext 3108if { (ac_try="$ac_compile" 3109case "(($ac_try" in 3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3111 *) ac_try_echo=$ac_try;; 3112esac 3113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3114 (eval "$ac_compile") 2>conftest.er1 3115 ac_status=$? 3116 grep -v '^ *+' conftest.er1 >conftest.err 3117 rm -f conftest.er1 3118 cat conftest.err >&5 3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3120 (exit $ac_status); } && { 3121 test -z "$ac_cxx_werror_flag" || 3122 test ! -s conftest.err 3123 } && test -s conftest.$ac_objext; then 3124 : 3125else 3126 echo "$as_me: failed program was:" >&5 3127sed 's/^/| /' conftest.$ac_ext >&5 3128 3129 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3130 CXXFLAGS="-g" 3131 cat >conftest.$ac_ext <<_ACEOF 3132/* confdefs.h. */ 3133_ACEOF 3134cat confdefs.h >>conftest.$ac_ext 3135cat >>conftest.$ac_ext <<_ACEOF 3136/* end confdefs.h. */ 3137 3138int 3139main () 3140{ 3141 3142 ; 3143 return 0; 3144} 3145_ACEOF 3146rm -f conftest.$ac_objext 3147if { (ac_try="$ac_compile" 3148case "(($ac_try" in 3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3150 *) ac_try_echo=$ac_try;; 3151esac 3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3153 (eval "$ac_compile") 2>conftest.er1 3154 ac_status=$? 3155 grep -v '^ *+' conftest.er1 >conftest.err 3156 rm -f conftest.er1 3157 cat conftest.err >&5 3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3159 (exit $ac_status); } && { 3160 test -z "$ac_cxx_werror_flag" || 3161 test ! -s conftest.err 3162 } && test -s conftest.$ac_objext; then 3163 ac_cv_prog_cxx_g=yes 3164else 3165 echo "$as_me: failed program was:" >&5 3166sed 's/^/| /' conftest.$ac_ext >&5 3167 3168 3169fi 3170 3171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3172fi 3173 3174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3175fi 3176 3177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3178 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3179fi 3180{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3181echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3182if test "$ac_test_CXXFLAGS" = set; then 3183 CXXFLAGS=$ac_save_CXXFLAGS 3184elif test $ac_cv_prog_cxx_g = yes; then 3185 if test "$GXX" = yes; then 3186 CXXFLAGS="-g -O2" 3187 else 3188 CXXFLAGS="-g" 3189 fi 3190else 3191 if test "$GXX" = yes; then 3192 CXXFLAGS="-O2" 3193 else 3194 CXXFLAGS= 3195 fi 3196fi 3197ac_ext=c 3198ac_cpp='$CPP $CPPFLAGS' 3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3201ac_compiler_gnu=$ac_cv_c_compiler_gnu 3202DEPDIR="${am__leading_dot}deps" 3203 3204ac_config_commands="$ac_config_commands depfiles" 3205 3206 3207am_make=${MAKE-make} 3208cat > confinc << 'END' 3209am__doit: 3210 @echo done 3211.PHONY: am__doit 3212END 3213# If we don't find an include directive, just comment out the code. 3214{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3215echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3216am__include="#" 3217am__quote= 3218_am_result=none 3219# First try GNU make style include. 3220echo "include confinc" > confmf 3221# We grep out `Entering directory' and `Leaving directory' 3222# messages which can occur if `w' ends up in MAKEFLAGS. 3223# In particular we don't look at `^make:' because GNU make might 3224# be invoked under some other name (usually "gmake"), in which 3225# case it prints its new name instead of `make'. 3226if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3227 am__include=include 3228 am__quote= 3229 _am_result=GNU 3230fi 3231# Now try BSD make style include. 3232if test "$am__include" = "#"; then 3233 echo '.include "confinc"' > confmf 3234 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3235 am__include=.include 3236 am__quote="\"" 3237 _am_result=BSD 3238 fi 3239fi 3240 3241 3242{ echo "$as_me:$LINENO: result: $_am_result" >&5 3243echo "${ECHO_T}$_am_result" >&6; } 3244rm -f confinc confmf 3245 3246# Check whether --enable-dependency-tracking was given. 3247if test "${enable_dependency_tracking+set}" = set; then 3248 enableval=$enable_dependency_tracking; 3249fi 3250 3251if test "x$enable_dependency_tracking" != xno; then 3252 am_depcomp="$ac_aux_dir/depcomp" 3253 AMDEPBACKSLASH='\' 3254fi 3255 if test "x$enable_dependency_tracking" != xno; then 3256 AMDEP_TRUE= 3257 AMDEP_FALSE='#' 3258else 3259 AMDEP_TRUE='#' 3260 AMDEP_FALSE= 3261fi 3262 3263 3264 3265depcc="$CXX" am_compiler_list= 3266 3267{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3268echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3269if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3270 echo $ECHO_N "(cached) $ECHO_C" >&6 3271else 3272 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3273 # We make a subdir and do the tests there. Otherwise we can end up 3274 # making bogus files that we don't know about and never remove. For 3275 # instance it was reported that on HP-UX the gcc test will end up 3276 # making a dummy file named `D' -- because `-MD' means `put the output 3277 # in D'. 3278 mkdir conftest.dir 3279 # Copy depcomp to subdir because otherwise we won't find it if we're 3280 # using a relative directory. 3281 cp "$am_depcomp" conftest.dir 3282 cd conftest.dir 3283 # We will build objects and dependencies in a subdirectory because 3284 # it helps to detect inapplicable dependency modes. For instance 3285 # both Tru64's cc and ICC support -MD to output dependencies as a 3286 # side effect of compilation, but ICC will put the dependencies in 3287 # the current directory while Tru64 will put them in the object 3288 # directory. 3289 mkdir sub 3290 3291 am_cv_CXX_dependencies_compiler_type=none 3292 if test "$am_compiler_list" = ""; then 3293 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3294 fi 3295 for depmode in $am_compiler_list; do 3296 # Setup a source with many dependencies, because some compilers 3297 # like to wrap large dependency lists on column 80 (with \), and 3298 # we should not choose a depcomp mode which is confused by this. 3299 # 3300 # We need to recreate these files for each test, as the compiler may 3301 # overwrite some of them when testing with obscure command lines. 3302 # This happens at least with the AIX C compiler. 3303 : > sub/conftest.c 3304 for i in 1 2 3 4 5 6; do 3305 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3306 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3307 # Solaris 8's {/usr,}/bin/sh. 3308 touch sub/conftst$i.h 3309 done 3310 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3311 3312 case $depmode in 3313 nosideeffect) 3314 # after this tag, mechanisms are not by side-effect, so they'll 3315 # only be used when explicitly requested 3316 if test "x$enable_dependency_tracking" = xyes; then 3317 continue 3318 else 3319 break 3320 fi 3321 ;; 3322 none) break ;; 3323 esac 3324 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3325 # mode. It turns out that the SunPro C++ compiler does not properly 3326 # handle `-M -o', and we need to detect this. 3327 if depmode=$depmode \ 3328 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3329 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3330 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3331 >/dev/null 2>conftest.err && 3332 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3333 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3334 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3335 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3336 # icc doesn't choke on unknown options, it will just issue warnings 3337 # or remarks (even with -Werror). So we grep stderr for any message 3338 # that says an option was ignored or not supported. 3339 # When given -MP, icc 7.0 and 7.1 complain thusly: 3340 # icc: Command line warning: ignoring option '-M'; no argument required 3341 # The diagnosis changed in icc 8.0: 3342 # icc: Command line remark: option '-MP' not supported 3343 if (grep 'ignoring option' conftest.err || 3344 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3345 am_cv_CXX_dependencies_compiler_type=$depmode 3346 break 3347 fi 3348 fi 3349 done 3350 3351 cd .. 3352 rm -rf conftest.dir 3353else 3354 am_cv_CXX_dependencies_compiler_type=none 3355fi 3356 3357fi 3358{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3359echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 3360CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3361 3362 if 3363 test "x$enable_dependency_tracking" != xno \ 3364 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3365 am__fastdepCXX_TRUE= 3366 am__fastdepCXX_FALSE='#' 3367else 3368 am__fastdepCXX_TRUE='#' 3369 am__fastdepCXX_FALSE= 3370fi 3371 3372 3373# AC_PROG_CC 3374ac_ext=c 3375ac_cpp='$CPP $CPPFLAGS' 3376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3378ac_compiler_gnu=$ac_cv_c_compiler_gnu 3379if test -n "$ac_tool_prefix"; then 3380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3381set dummy ${ac_tool_prefix}gcc; ac_word=$2 3382{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3384if test "${ac_cv_prog_CC+set}" = set; then 3385 echo $ECHO_N "(cached) $ECHO_C" >&6 3386else 3387 if test -n "$CC"; then 3388 ac_cv_prog_CC="$CC" # Let the user override the test. 3389else 3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3391for as_dir in $PATH 3392do 3393 IFS=$as_save_IFS 3394 test -z "$as_dir" && as_dir=. 3395 for ac_exec_ext in '' $ac_executable_extensions; do 3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3397 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3399 break 2 3400 fi 3401done 3402done 3403IFS=$as_save_IFS 3404 3405fi 3406fi 3407CC=$ac_cv_prog_CC 3408if test -n "$CC"; then 3409 { echo "$as_me:$LINENO: result: $CC" >&5 3410echo "${ECHO_T}$CC" >&6; } 3411else 3412 { echo "$as_me:$LINENO: result: no" >&5 3413echo "${ECHO_T}no" >&6; } 3414fi 3415 3416 3417fi 3418if test -z "$ac_cv_prog_CC"; then 3419 ac_ct_CC=$CC 3420 # Extract the first word of "gcc", so it can be a program name with args. 3421set dummy gcc; ac_word=$2 3422{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3424if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3425 echo $ECHO_N "(cached) $ECHO_C" >&6 3426else 3427 if test -n "$ac_ct_CC"; then 3428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3429else 3430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3431for as_dir in $PATH 3432do 3433 IFS=$as_save_IFS 3434 test -z "$as_dir" && as_dir=. 3435 for ac_exec_ext in '' $ac_executable_extensions; do 3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3437 ac_cv_prog_ac_ct_CC="gcc" 3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3439 break 2 3440 fi 3441done 3442done 3443IFS=$as_save_IFS 3444 3445fi 3446fi 3447ac_ct_CC=$ac_cv_prog_ac_ct_CC 3448if test -n "$ac_ct_CC"; then 3449 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3450echo "${ECHO_T}$ac_ct_CC" >&6; } 3451else 3452 { echo "$as_me:$LINENO: result: no" >&5 3453echo "${ECHO_T}no" >&6; } 3454fi 3455 3456 if test "x$ac_ct_CC" = x; then 3457 CC="" 3458 else 3459 case $cross_compiling:$ac_tool_warned in 3460yes:) 3461{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3462whose name does not start with the host triplet. If you think this 3463configuration is useful to you, please write to autoconf@gnu.org." >&5 3464echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3465whose name does not start with the host triplet. If you think this 3466configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3467ac_tool_warned=yes ;; 3468esac 3469 CC=$ac_ct_CC 3470 fi 3471else 3472 CC="$ac_cv_prog_CC" 3473fi 3474 3475if test -z "$CC"; then 3476 if test -n "$ac_tool_prefix"; then 3477 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3478set dummy ${ac_tool_prefix}cc; ac_word=$2 3479{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3481if test "${ac_cv_prog_CC+set}" = set; then 3482 echo $ECHO_N "(cached) $ECHO_C" >&6 3483else 3484 if test -n "$CC"; then 3485 ac_cv_prog_CC="$CC" # Let the user override the test. 3486else 3487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3488for as_dir in $PATH 3489do 3490 IFS=$as_save_IFS 3491 test -z "$as_dir" && as_dir=. 3492 for ac_exec_ext in '' $ac_executable_extensions; do 3493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3494 ac_cv_prog_CC="${ac_tool_prefix}cc" 3495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3496 break 2 3497 fi 3498done 3499done 3500IFS=$as_save_IFS 3501 3502fi 3503fi 3504CC=$ac_cv_prog_CC 3505if test -n "$CC"; then 3506 { echo "$as_me:$LINENO: result: $CC" >&5 3507echo "${ECHO_T}$CC" >&6; } 3508else 3509 { echo "$as_me:$LINENO: result: no" >&5 3510echo "${ECHO_T}no" >&6; } 3511fi 3512 3513 3514 fi 3515fi 3516if test -z "$CC"; then 3517 # Extract the first word of "cc", so it can be a program name with args. 3518set dummy cc; ac_word=$2 3519{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3521if test "${ac_cv_prog_CC+set}" = set; then 3522 echo $ECHO_N "(cached) $ECHO_C" >&6 3523else 3524 if test -n "$CC"; then 3525 ac_cv_prog_CC="$CC" # Let the user override the test. 3526else 3527 ac_prog_rejected=no 3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3529for as_dir in $PATH 3530do 3531 IFS=$as_save_IFS 3532 test -z "$as_dir" && as_dir=. 3533 for ac_exec_ext in '' $ac_executable_extensions; do 3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3535 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3536 ac_prog_rejected=yes 3537 continue 3538 fi 3539 ac_cv_prog_CC="cc" 3540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3541 break 2 3542 fi 3543done 3544done 3545IFS=$as_save_IFS 3546 3547if test $ac_prog_rejected = yes; then 3548 # We found a bogon in the path, so make sure we never use it. 3549 set dummy $ac_cv_prog_CC 3550 shift 3551 if test $# != 0; then 3552 # We chose a different compiler from the bogus one. 3553 # However, it has the same basename, so the bogon will be chosen 3554 # first if we set CC to just the basename; use the full file name. 3555 shift 3556 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3557 fi 3558fi 3559fi 3560fi 3561CC=$ac_cv_prog_CC 3562if test -n "$CC"; then 3563 { echo "$as_me:$LINENO: result: $CC" >&5 3564echo "${ECHO_T}$CC" >&6; } 3565else 3566 { echo "$as_me:$LINENO: result: no" >&5 3567echo "${ECHO_T}no" >&6; } 3568fi 3569 3570 3571fi 3572if test -z "$CC"; then 3573 if test -n "$ac_tool_prefix"; then 3574 for ac_prog in cl.exe 3575 do 3576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3577set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3578{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3580if test "${ac_cv_prog_CC+set}" = set; then 3581 echo $ECHO_N "(cached) $ECHO_C" >&6 3582else 3583 if test -n "$CC"; then 3584 ac_cv_prog_CC="$CC" # Let the user override the test. 3585else 3586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3587for as_dir in $PATH 3588do 3589 IFS=$as_save_IFS 3590 test -z "$as_dir" && as_dir=. 3591 for ac_exec_ext in '' $ac_executable_extensions; do 3592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3595 break 2 3596 fi 3597done 3598done 3599IFS=$as_save_IFS 3600 3601fi 3602fi 3603CC=$ac_cv_prog_CC 3604if test -n "$CC"; then 3605 { echo "$as_me:$LINENO: result: $CC" >&5 3606echo "${ECHO_T}$CC" >&6; } 3607else 3608 { echo "$as_me:$LINENO: result: no" >&5 3609echo "${ECHO_T}no" >&6; } 3610fi 3611 3612 3613 test -n "$CC" && break 3614 done 3615fi 3616if test -z "$CC"; then 3617 ac_ct_CC=$CC 3618 for ac_prog in cl.exe 3619do 3620 # Extract the first word of "$ac_prog", so it can be a program name with args. 3621set dummy $ac_prog; ac_word=$2 3622{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3624if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3625 echo $ECHO_N "(cached) $ECHO_C" >&6 3626else 3627 if test -n "$ac_ct_CC"; then 3628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3629else 3630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3631for as_dir in $PATH 3632do 3633 IFS=$as_save_IFS 3634 test -z "$as_dir" && as_dir=. 3635 for ac_exec_ext in '' $ac_executable_extensions; do 3636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3637 ac_cv_prog_ac_ct_CC="$ac_prog" 3638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3639 break 2 3640 fi 3641done 3642done 3643IFS=$as_save_IFS 3644 3645fi 3646fi 3647ac_ct_CC=$ac_cv_prog_ac_ct_CC 3648if test -n "$ac_ct_CC"; then 3649 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3650echo "${ECHO_T}$ac_ct_CC" >&6; } 3651else 3652 { echo "$as_me:$LINENO: result: no" >&5 3653echo "${ECHO_T}no" >&6; } 3654fi 3655 3656 3657 test -n "$ac_ct_CC" && break 3658done 3659 3660 if test "x$ac_ct_CC" = x; then 3661 CC="" 3662 else 3663 case $cross_compiling:$ac_tool_warned in 3664yes:) 3665{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3666whose name does not start with the host triplet. If you think this 3667configuration is useful to you, please write to autoconf@gnu.org." >&5 3668echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3669whose name does not start with the host triplet. If you think this 3670configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3671ac_tool_warned=yes ;; 3672esac 3673 CC=$ac_ct_CC 3674 fi 3675fi 3676 3677fi 3678 3679 3680test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3681See \`config.log' for more details." >&5 3682echo "$as_me: error: no acceptable C compiler found in \$PATH 3683See \`config.log' for more details." >&2;} 3684 { (exit 1); exit 1; }; } 3685 3686# Provide some information about the compiler. 3687echo "$as_me:$LINENO: checking for C compiler version" >&5 3688ac_compiler=`set X $ac_compile; echo $2` 3689{ (ac_try="$ac_compiler --version >&5" 3690case "(($ac_try" in 3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3692 *) ac_try_echo=$ac_try;; 3693esac 3694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3695 (eval "$ac_compiler --version >&5") 2>&5 3696 ac_status=$? 3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3698 (exit $ac_status); } 3699{ (ac_try="$ac_compiler -v >&5" 3700case "(($ac_try" in 3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3702 *) ac_try_echo=$ac_try;; 3703esac 3704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3705 (eval "$ac_compiler -v >&5") 2>&5 3706 ac_status=$? 3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3708 (exit $ac_status); } 3709{ (ac_try="$ac_compiler -V >&5" 3710case "(($ac_try" in 3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3712 *) ac_try_echo=$ac_try;; 3713esac 3714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3715 (eval "$ac_compiler -V >&5") 2>&5 3716 ac_status=$? 3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3718 (exit $ac_status); } 3719 3720{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3721echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3722if test "${ac_cv_c_compiler_gnu+set}" = set; then 3723 echo $ECHO_N "(cached) $ECHO_C" >&6 3724else 3725 cat >conftest.$ac_ext <<_ACEOF 3726/* confdefs.h. */ 3727_ACEOF 3728cat confdefs.h >>conftest.$ac_ext 3729cat >>conftest.$ac_ext <<_ACEOF 3730/* end confdefs.h. */ 3731 3732int 3733main () 3734{ 3735#ifndef __GNUC__ 3736 choke me 3737#endif 3738 3739 ; 3740 return 0; 3741} 3742_ACEOF 3743rm -f conftest.$ac_objext 3744if { (ac_try="$ac_compile" 3745case "(($ac_try" in 3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3747 *) ac_try_echo=$ac_try;; 3748esac 3749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3750 (eval "$ac_compile") 2>conftest.er1 3751 ac_status=$? 3752 grep -v '^ *+' conftest.er1 >conftest.err 3753 rm -f conftest.er1 3754 cat conftest.err >&5 3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3756 (exit $ac_status); } && { 3757 test -z "$ac_c_werror_flag" || 3758 test ! -s conftest.err 3759 } && test -s conftest.$ac_objext; then 3760 ac_compiler_gnu=yes 3761else 3762 echo "$as_me: failed program was:" >&5 3763sed 's/^/| /' conftest.$ac_ext >&5 3764 3765 ac_compiler_gnu=no 3766fi 3767 3768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3769ac_cv_c_compiler_gnu=$ac_compiler_gnu 3770 3771fi 3772{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3773echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3774GCC=`test $ac_compiler_gnu = yes && echo yes` 3775ac_test_CFLAGS=${CFLAGS+set} 3776ac_save_CFLAGS=$CFLAGS 3777{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3778echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3779if test "${ac_cv_prog_cc_g+set}" = set; then 3780 echo $ECHO_N "(cached) $ECHO_C" >&6 3781else 3782 ac_save_c_werror_flag=$ac_c_werror_flag 3783 ac_c_werror_flag=yes 3784 ac_cv_prog_cc_g=no 3785 CFLAGS="-g" 3786 cat >conftest.$ac_ext <<_ACEOF 3787/* confdefs.h. */ 3788_ACEOF 3789cat confdefs.h >>conftest.$ac_ext 3790cat >>conftest.$ac_ext <<_ACEOF 3791/* end confdefs.h. */ 3792 3793int 3794main () 3795{ 3796 3797 ; 3798 return 0; 3799} 3800_ACEOF 3801rm -f conftest.$ac_objext 3802if { (ac_try="$ac_compile" 3803case "(($ac_try" in 3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3805 *) ac_try_echo=$ac_try;; 3806esac 3807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3808 (eval "$ac_compile") 2>conftest.er1 3809 ac_status=$? 3810 grep -v '^ *+' conftest.er1 >conftest.err 3811 rm -f conftest.er1 3812 cat conftest.err >&5 3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3814 (exit $ac_status); } && { 3815 test -z "$ac_c_werror_flag" || 3816 test ! -s conftest.err 3817 } && test -s conftest.$ac_objext; then 3818 ac_cv_prog_cc_g=yes 3819else 3820 echo "$as_me: failed program was:" >&5 3821sed 's/^/| /' conftest.$ac_ext >&5 3822 3823 CFLAGS="" 3824 cat >conftest.$ac_ext <<_ACEOF 3825/* confdefs.h. */ 3826_ACEOF 3827cat confdefs.h >>conftest.$ac_ext 3828cat >>conftest.$ac_ext <<_ACEOF 3829/* end confdefs.h. */ 3830 3831int 3832main () 3833{ 3834 3835 ; 3836 return 0; 3837} 3838_ACEOF 3839rm -f conftest.$ac_objext 3840if { (ac_try="$ac_compile" 3841case "(($ac_try" in 3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3843 *) ac_try_echo=$ac_try;; 3844esac 3845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3846 (eval "$ac_compile") 2>conftest.er1 3847 ac_status=$? 3848 grep -v '^ *+' conftest.er1 >conftest.err 3849 rm -f conftest.er1 3850 cat conftest.err >&5 3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3852 (exit $ac_status); } && { 3853 test -z "$ac_c_werror_flag" || 3854 test ! -s conftest.err 3855 } && test -s conftest.$ac_objext; then 3856 : 3857else 3858 echo "$as_me: failed program was:" >&5 3859sed 's/^/| /' conftest.$ac_ext >&5 3860 3861 ac_c_werror_flag=$ac_save_c_werror_flag 3862 CFLAGS="-g" 3863 cat >conftest.$ac_ext <<_ACEOF 3864/* confdefs.h. */ 3865_ACEOF 3866cat confdefs.h >>conftest.$ac_ext 3867cat >>conftest.$ac_ext <<_ACEOF 3868/* end confdefs.h. */ 3869 3870int 3871main () 3872{ 3873 3874 ; 3875 return 0; 3876} 3877_ACEOF 3878rm -f conftest.$ac_objext 3879if { (ac_try="$ac_compile" 3880case "(($ac_try" in 3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3882 *) ac_try_echo=$ac_try;; 3883esac 3884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3885 (eval "$ac_compile") 2>conftest.er1 3886 ac_status=$? 3887 grep -v '^ *+' conftest.er1 >conftest.err 3888 rm -f conftest.er1 3889 cat conftest.err >&5 3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3891 (exit $ac_status); } && { 3892 test -z "$ac_c_werror_flag" || 3893 test ! -s conftest.err 3894 } && test -s conftest.$ac_objext; then 3895 ac_cv_prog_cc_g=yes 3896else 3897 echo "$as_me: failed program was:" >&5 3898sed 's/^/| /' conftest.$ac_ext >&5 3899 3900 3901fi 3902 3903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3904fi 3905 3906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3907fi 3908 3909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3910 ac_c_werror_flag=$ac_save_c_werror_flag 3911fi 3912{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3913echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3914if test "$ac_test_CFLAGS" = set; then 3915 CFLAGS=$ac_save_CFLAGS 3916elif test $ac_cv_prog_cc_g = yes; then 3917 if test "$GCC" = yes; then 3918 CFLAGS="-g -O2" 3919 else 3920 CFLAGS="-g" 3921 fi 3922else 3923 if test "$GCC" = yes; then 3924 CFLAGS="-O2" 3925 else 3926 CFLAGS= 3927 fi 3928fi 3929{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3930echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3931if test "${ac_cv_prog_cc_c89+set}" = set; then 3932 echo $ECHO_N "(cached) $ECHO_C" >&6 3933else 3934 ac_cv_prog_cc_c89=no 3935ac_save_CC=$CC 3936cat >conftest.$ac_ext <<_ACEOF 3937/* confdefs.h. */ 3938_ACEOF 3939cat confdefs.h >>conftest.$ac_ext 3940cat >>conftest.$ac_ext <<_ACEOF 3941/* end confdefs.h. */ 3942#include <stdarg.h> 3943#include <stdio.h> 3944#include <sys/types.h> 3945#include <sys/stat.h> 3946/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3947struct buf { int x; }; 3948FILE * (*rcsopen) (struct buf *, struct stat *, int); 3949static char *e (p, i) 3950 char **p; 3951 int i; 3952{ 3953 return p[i]; 3954} 3955static char *f (char * (*g) (char **, int), char **p, ...) 3956{ 3957 char *s; 3958 va_list v; 3959 va_start (v,p); 3960 s = g (p, va_arg (v,int)); 3961 va_end (v); 3962 return s; 3963} 3964 3965/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3966 function prototypes and stuff, but not '\xHH' hex character constants. 3967 These don't provoke an error unfortunately, instead are silently treated 3968 as 'x'. The following induces an error, until -std is added to get 3969 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3970 array size at least. It's necessary to write '\x00'==0 to get something 3971 that's true only with -std. */ 3972int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3973 3974/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3975 inside strings and character constants. */ 3976#define FOO(x) 'x' 3977int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3978 3979int test (int i, double x); 3980struct s1 {int (*f) (int a);}; 3981struct s2 {int (*f) (double a);}; 3982int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3983int argc; 3984char **argv; 3985int 3986main () 3987{ 3988return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3989 ; 3990 return 0; 3991} 3992_ACEOF 3993for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3994 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3995do 3996 CC="$ac_save_CC $ac_arg" 3997 rm -f conftest.$ac_objext 3998if { (ac_try="$ac_compile" 3999case "(($ac_try" in 4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4001 *) ac_try_echo=$ac_try;; 4002esac 4003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4004 (eval "$ac_compile") 2>conftest.er1 4005 ac_status=$? 4006 grep -v '^ *+' conftest.er1 >conftest.err 4007 rm -f conftest.er1 4008 cat conftest.err >&5 4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4010 (exit $ac_status); } && { 4011 test -z "$ac_c_werror_flag" || 4012 test ! -s conftest.err 4013 } && test -s conftest.$ac_objext; then 4014 ac_cv_prog_cc_c89=$ac_arg 4015else 4016 echo "$as_me: failed program was:" >&5 4017sed 's/^/| /' conftest.$ac_ext >&5 4018 4019 4020fi 4021 4022rm -f core conftest.err conftest.$ac_objext 4023 test "x$ac_cv_prog_cc_c89" != "xno" && break 4024done 4025rm -f conftest.$ac_ext 4026CC=$ac_save_CC 4027 4028fi 4029# AC_CACHE_VAL 4030case "x$ac_cv_prog_cc_c89" in 4031 x) 4032 { echo "$as_me:$LINENO: result: none needed" >&5 4033echo "${ECHO_T}none needed" >&6; } ;; 4034 xno) 4035 { echo "$as_me:$LINENO: result: unsupported" >&5 4036echo "${ECHO_T}unsupported" >&6; } ;; 4037 *) 4038 CC="$CC $ac_cv_prog_cc_c89" 4039 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4040echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 4041esac 4042 4043 4044ac_ext=c 4045ac_cpp='$CPP $CPPFLAGS' 4046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4048ac_compiler_gnu=$ac_cv_c_compiler_gnu 4049 4050depcc="$CC" am_compiler_list= 4051 4052{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4053echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4054if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4055 echo $ECHO_N "(cached) $ECHO_C" >&6 4056else 4057 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4058 # We make a subdir and do the tests there. Otherwise we can end up 4059 # making bogus files that we don't know about and never remove. For 4060 # instance it was reported that on HP-UX the gcc test will end up 4061 # making a dummy file named `D' -- because `-MD' means `put the output 4062 # in D'. 4063 mkdir conftest.dir 4064 # Copy depcomp to subdir because otherwise we won't find it if we're 4065 # using a relative directory. 4066 cp "$am_depcomp" conftest.dir 4067 cd conftest.dir 4068 # We will build objects and dependencies in a subdirectory because 4069 # it helps to detect inapplicable dependency modes. For instance 4070 # both Tru64's cc and ICC support -MD to output dependencies as a 4071 # side effect of compilation, but ICC will put the dependencies in 4072 # the current directory while Tru64 will put them in the object 4073 # directory. 4074 mkdir sub 4075 4076 am_cv_CC_dependencies_compiler_type=none 4077 if test "$am_compiler_list" = ""; then 4078 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4079 fi 4080 for depmode in $am_compiler_list; do 4081 # Setup a source with many dependencies, because some compilers 4082 # like to wrap large dependency lists on column 80 (with \), and 4083 # we should not choose a depcomp mode which is confused by this. 4084 # 4085 # We need to recreate these files for each test, as the compiler may 4086 # overwrite some of them when testing with obscure command lines. 4087 # This happens at least with the AIX C compiler. 4088 : > sub/conftest.c 4089 for i in 1 2 3 4 5 6; do 4090 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4091 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4092 # Solaris 8's {/usr,}/bin/sh. 4093 touch sub/conftst$i.h 4094 done 4095 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4096 4097 case $depmode in 4098 nosideeffect) 4099 # after this tag, mechanisms are not by side-effect, so they'll 4100 # only be used when explicitly requested 4101 if test "x$enable_dependency_tracking" = xyes; then 4102 continue 4103 else 4104 break 4105 fi 4106 ;; 4107 none) break ;; 4108 esac 4109 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4110 # mode. It turns out that the SunPro C++ compiler does not properly 4111 # handle `-M -o', and we need to detect this. 4112 if depmode=$depmode \ 4113 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4114 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4115 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4116 >/dev/null 2>conftest.err && 4117 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4118 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4119 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4120 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4121 # icc doesn't choke on unknown options, it will just issue warnings 4122 # or remarks (even with -Werror). So we grep stderr for any message 4123 # that says an option was ignored or not supported. 4124 # When given -MP, icc 7.0 and 7.1 complain thusly: 4125 # icc: Command line warning: ignoring option '-M'; no argument required 4126 # The diagnosis changed in icc 8.0: 4127 # icc: Command line remark: option '-MP' not supported 4128 if (grep 'ignoring option' conftest.err || 4129 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4130 am_cv_CC_dependencies_compiler_type=$depmode 4131 break 4132 fi 4133 fi 4134 done 4135 4136 cd .. 4137 rm -rf conftest.dir 4138else 4139 am_cv_CC_dependencies_compiler_type=none 4140fi 4141 4142fi 4143{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4144echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 4145CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4146 4147 if 4148 test "x$enable_dependency_tracking" != xno \ 4149 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4150 am__fastdepCC_TRUE= 4151 am__fastdepCC_FALSE='#' 4152else 4153 am__fastdepCC_TRUE='#' 4154 am__fastdepCC_FALSE= 4155fi 4156 4157 4158ac_ext=c 4159ac_cpp='$CPP $CPPFLAGS' 4160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4162ac_compiler_gnu=$ac_cv_c_compiler_gnu 4163{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4164echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4165# On Suns, sometimes $CPP names a directory. 4166if test -n "$CPP" && test -d "$CPP"; then 4167 CPP= 4168fi 4169if test -z "$CPP"; then 4170 if test "${ac_cv_prog_CPP+set}" = set; then 4171 echo $ECHO_N "(cached) $ECHO_C" >&6 4172else 4173 # Double quotes because CPP needs to be expanded 4174 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4175 do 4176 ac_preproc_ok=false 4177for ac_c_preproc_warn_flag in '' yes 4178do 4179 # Use a header file that comes with gcc, so configuring glibc 4180 # with a fresh cross-compiler works. 4181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4182 # <limits.h> exists even on freestanding compilers. 4183 # On the NeXT, cc -E runs the code through the compiler's parser, 4184 # not just through cpp. "Syntax error" is here to catch this case. 4185 cat >conftest.$ac_ext <<_ACEOF 4186/* confdefs.h. */ 4187_ACEOF 4188cat confdefs.h >>conftest.$ac_ext 4189cat >>conftest.$ac_ext <<_ACEOF 4190/* end confdefs.h. */ 4191#ifdef __STDC__ 4192# include <limits.h> 4193#else 4194# include <assert.h> 4195#endif 4196 Syntax error 4197_ACEOF 4198if { (ac_try="$ac_cpp conftest.$ac_ext" 4199case "(($ac_try" in 4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4201 *) ac_try_echo=$ac_try;; 4202esac 4203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4205 ac_status=$? 4206 grep -v '^ *+' conftest.er1 >conftest.err 4207 rm -f conftest.er1 4208 cat conftest.err >&5 4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4210 (exit $ac_status); } >/dev/null && { 4211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4212 test ! -s conftest.err 4213 }; then 4214 : 4215else 4216 echo "$as_me: failed program was:" >&5 4217sed 's/^/| /' conftest.$ac_ext >&5 4218 4219 # Broken: fails on valid input. 4220continue 4221fi 4222 4223rm -f conftest.err conftest.$ac_ext 4224 4225 # OK, works on sane cases. Now check whether nonexistent headers 4226 # can be detected and how. 4227 cat >conftest.$ac_ext <<_ACEOF 4228/* confdefs.h. */ 4229_ACEOF 4230cat confdefs.h >>conftest.$ac_ext 4231cat >>conftest.$ac_ext <<_ACEOF 4232/* end confdefs.h. */ 4233#include <ac_nonexistent.h> 4234_ACEOF 4235if { (ac_try="$ac_cpp conftest.$ac_ext" 4236case "(($ac_try" in 4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4238 *) ac_try_echo=$ac_try;; 4239esac 4240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4242 ac_status=$? 4243 grep -v '^ *+' conftest.er1 >conftest.err 4244 rm -f conftest.er1 4245 cat conftest.err >&5 4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4247 (exit $ac_status); } >/dev/null && { 4248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4249 test ! -s conftest.err 4250 }; then 4251 # Broken: success on invalid input. 4252continue 4253else 4254 echo "$as_me: failed program was:" >&5 4255sed 's/^/| /' conftest.$ac_ext >&5 4256 4257 # Passes both tests. 4258ac_preproc_ok=: 4259break 4260fi 4261 4262rm -f conftest.err conftest.$ac_ext 4263 4264done 4265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4266rm -f conftest.err conftest.$ac_ext 4267if $ac_preproc_ok; then 4268 break 4269fi 4270 4271 done 4272 ac_cv_prog_CPP=$CPP 4273 4274fi 4275 CPP=$ac_cv_prog_CPP 4276else 4277 ac_cv_prog_CPP=$CPP 4278fi 4279{ echo "$as_me:$LINENO: result: $CPP" >&5 4280echo "${ECHO_T}$CPP" >&6; } 4281ac_preproc_ok=false 4282for ac_c_preproc_warn_flag in '' yes 4283do 4284 # Use a header file that comes with gcc, so configuring glibc 4285 # with a fresh cross-compiler works. 4286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4287 # <limits.h> exists even on freestanding compilers. 4288 # On the NeXT, cc -E runs the code through the compiler's parser, 4289 # not just through cpp. "Syntax error" is here to catch this case. 4290 cat >conftest.$ac_ext <<_ACEOF 4291/* confdefs.h. */ 4292_ACEOF 4293cat confdefs.h >>conftest.$ac_ext 4294cat >>conftest.$ac_ext <<_ACEOF 4295/* end confdefs.h. */ 4296#ifdef __STDC__ 4297# include <limits.h> 4298#else 4299# include <assert.h> 4300#endif 4301 Syntax error 4302_ACEOF 4303if { (ac_try="$ac_cpp conftest.$ac_ext" 4304case "(($ac_try" in 4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4306 *) ac_try_echo=$ac_try;; 4307esac 4308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4310 ac_status=$? 4311 grep -v '^ *+' conftest.er1 >conftest.err 4312 rm -f conftest.er1 4313 cat conftest.err >&5 4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4315 (exit $ac_status); } >/dev/null && { 4316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4317 test ! -s conftest.err 4318 }; then 4319 : 4320else 4321 echo "$as_me: failed program was:" >&5 4322sed 's/^/| /' conftest.$ac_ext >&5 4323 4324 # Broken: fails on valid input. 4325continue 4326fi 4327 4328rm -f conftest.err conftest.$ac_ext 4329 4330 # OK, works on sane cases. Now check whether nonexistent headers 4331 # can be detected and how. 4332 cat >conftest.$ac_ext <<_ACEOF 4333/* confdefs.h. */ 4334_ACEOF 4335cat confdefs.h >>conftest.$ac_ext 4336cat >>conftest.$ac_ext <<_ACEOF 4337/* end confdefs.h. */ 4338#include <ac_nonexistent.h> 4339_ACEOF 4340if { (ac_try="$ac_cpp conftest.$ac_ext" 4341case "(($ac_try" in 4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4343 *) ac_try_echo=$ac_try;; 4344esac 4345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4347 ac_status=$? 4348 grep -v '^ *+' conftest.er1 >conftest.err 4349 rm -f conftest.er1 4350 cat conftest.err >&5 4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4352 (exit $ac_status); } >/dev/null && { 4353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4354 test ! -s conftest.err 4355 }; then 4356 # Broken: success on invalid input. 4357continue 4358else 4359 echo "$as_me: failed program was:" >&5 4360sed 's/^/| /' conftest.$ac_ext >&5 4361 4362 # Passes both tests. 4363ac_preproc_ok=: 4364break 4365fi 4366 4367rm -f conftest.err conftest.$ac_ext 4368 4369done 4370# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4371rm -f conftest.err conftest.$ac_ext 4372if $ac_preproc_ok; then 4373 : 4374else 4375 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4376See \`config.log' for more details." >&5 4377echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4378See \`config.log' for more details." >&2;} 4379 { (exit 1); exit 1; }; } 4380fi 4381 4382ac_ext=c 4383ac_cpp='$CPP $CPPFLAGS' 4384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4386ac_compiler_gnu=$ac_cv_c_compiler_gnu 4387 4388# Find a good install program. We prefer a C program (faster), 4389# so one script is as good as another. But avoid the broken or 4390# incompatible versions: 4391# SysV /etc/install, /usr/sbin/install 4392# SunOS /usr/etc/install 4393# IRIX /sbin/install 4394# AIX /bin/install 4395# AmigaOS /C/install, which installs bootblocks on floppy discs 4396# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4397# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4398# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4399# OS/2's system install, which has a completely different semantic 4400# ./install, which can be erroneously created by make from ./install.sh. 4401{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4402echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 4403if test -z "$INSTALL"; then 4404if test "${ac_cv_path_install+set}" = set; then 4405 echo $ECHO_N "(cached) $ECHO_C" >&6 4406else 4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4408for as_dir in $PATH 4409do 4410 IFS=$as_save_IFS 4411 test -z "$as_dir" && as_dir=. 4412 # Account for people who put trailing slashes in PATH elements. 4413case $as_dir/ in 4414 ./ | .// | /cC/* | \ 4415 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4416 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4417 /usr/ucb/* ) ;; 4418 *) 4419 # OSF1 and SCO ODT 3.0 have their own names for install. 4420 # Don't use installbsd from OSF since it installs stuff as root 4421 # by default. 4422 for ac_prog in ginstall scoinst install; do 4423 for ac_exec_ext in '' $ac_executable_extensions; do 4424 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4425 if test $ac_prog = install && 4426 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4427 # AIX install. It has an incompatible calling convention. 4428 : 4429 elif test $ac_prog = install && 4430 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4431 # program-specific install script used by HP pwplus--don't use. 4432 : 4433 else 4434 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4435 break 3 4436 fi 4437 fi 4438 done 4439 done 4440 ;; 4441esac 4442done 4443IFS=$as_save_IFS 4444 4445 4446fi 4447 if test "${ac_cv_path_install+set}" = set; then 4448 INSTALL=$ac_cv_path_install 4449 else 4450 # As a last resort, use the slow shell script. Don't cache a 4451 # value for INSTALL within a source directory, because that will 4452 # break other packages using the cache if that directory is 4453 # removed, or if the value is a relative name. 4454 INSTALL=$ac_install_sh 4455 fi 4456fi 4457{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4458echo "${ECHO_T}$INSTALL" >&6; } 4459 4460# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4461# It thinks the first close brace ends the variable substitution. 4462test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4463 4464test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4465 4466test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4467 4468{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4469echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4470LN_S=$as_ln_s 4471if test "$LN_S" = "ln -s"; then 4472 { echo "$as_me:$LINENO: result: yes" >&5 4473echo "${ECHO_T}yes" >&6; } 4474else 4475 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4476echo "${ECHO_T}no, using $LN_S" >&6; } 4477fi 4478 4479{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4480echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 4481set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4482if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 4483 echo $ECHO_N "(cached) $ECHO_C" >&6 4484else 4485 cat >conftest.make <<\_ACEOF 4486SHELL = /bin/sh 4487all: 4488 @echo '@@@%%%=$(MAKE)=@@@%%%' 4489_ACEOF 4490# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4491case `${MAKE-make} -f conftest.make 2>/dev/null` in 4492 *@@@%%%=?*=@@@%%%*) 4493 eval ac_cv_prog_make_${ac_make}_set=yes;; 4494 *) 4495 eval ac_cv_prog_make_${ac_make}_set=no;; 4496esac 4497rm -f conftest.make 4498fi 4499if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4500 { echo "$as_me:$LINENO: result: yes" >&5 4501echo "${ECHO_T}yes" >&6; } 4502 SET_MAKE= 4503else 4504 { echo "$as_me:$LINENO: result: no" >&5 4505echo "${ECHO_T}no" >&6; } 4506 SET_MAKE="MAKE=${MAKE-make}" 4507fi 4508 4509# AC_PROG_RANLIB 4510 4511 4512 4513case "$am__api_version" in 4514 1.01234) 4515 { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5 4516echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;} 4517 { (exit 1); exit 1; }; } 4518 ;; 4519 *) 4520 ;; 4521esac 4522 4523if test -n ""; then 4524 { echo "$as_me:$LINENO: checking for intltool >= " >&5 4525echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6; } 4526 4527 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` 4528 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in` 4529 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in` 4530 4531 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5 4532echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; } 4533 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || 4534 { { echo "$as_me:$LINENO: error: Your intltool is too old. You need intltool or later." >&5 4535echo "$as_me: error: Your intltool is too old. You need intltool or later." >&2;} 4536 { (exit 1); exit 1; }; } 4537fi 4538 4539 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4540INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4541 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4542 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4543 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@' 4544 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4545 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4546 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4547INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4548 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4549 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4550 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' 4551 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4552 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4553 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4554 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4555 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4556 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4557 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579# Use the tools built into the package, not the ones that are installed. 4580INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract' 4581 4582INTLTOOL_MERGE='$(top_builddir)/intltool-merge' 4583 4584INTLTOOL_UPDATE='$(top_builddir)/intltool-update' 4585 4586 4587# Extract the first word of "perl", so it can be a program name with args. 4588set dummy perl; ac_word=$2 4589{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4591if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then 4592 echo $ECHO_N "(cached) $ECHO_C" >&6 4593else 4594 case $INTLTOOL_PERL in 4595 [\\/]* | ?:[\\/]*) 4596 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. 4597 ;; 4598 *) 4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in $PATH 4601do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_exec_ext in '' $ac_executable_extensions; do 4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4606 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" 4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4608 break 2 4609 fi 4610done 4611done 4612IFS=$as_save_IFS 4613 4614 ;; 4615esac 4616fi 4617INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL 4618if test -n "$INTLTOOL_PERL"; then 4619 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5 4620echo "${ECHO_T}$INTLTOOL_PERL" >&6; } 4621else 4622 { echo "$as_me:$LINENO: result: no" >&5 4623echo "${ECHO_T}no" >&6; } 4624fi 4625 4626 4627if test -z "$INTLTOOL_PERL"; then 4628 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5 4629echo "$as_me: error: perl not found; required for intltool" >&2;} 4630 { (exit 1); exit 1; }; } 4631fi 4632if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then 4633 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5 4634echo "$as_me: error: perl 5.x required for intltool" >&2;} 4635 { (exit 1); exit 1; }; } 4636fi 4637if test "x" != "xno-xml"; then 4638 { echo "$as_me:$LINENO: checking for XML::Parser" >&5 4639echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; } 4640 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then 4641 { echo "$as_me:$LINENO: result: ok" >&5 4642echo "${ECHO_T}ok" >&6; } 4643 else 4644 { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5 4645echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;} 4646 { (exit 1); exit 1; }; } 4647 fi 4648fi 4649 4650# Substitute ALL_LINGUAS so we can use it in po/Makefile 4651 4652 4653# Set DATADIRNAME correctly if it is not set yet 4654# (copied from glib-gettext.m4) 4655if test -z "$DATADIRNAME"; then 4656 cat >conftest.$ac_ext <<_ACEOF 4657/* confdefs.h. */ 4658_ACEOF 4659cat confdefs.h >>conftest.$ac_ext 4660cat >>conftest.$ac_ext <<_ACEOF 4661/* end confdefs.h. */ 4662 4663int 4664main () 4665{ 4666extern int _nl_msg_cat_cntr; 4667 return _nl_msg_cat_cntr 4668 ; 4669 return 0; 4670} 4671_ACEOF 4672rm -f conftest.$ac_objext conftest$ac_exeext 4673if { (ac_try="$ac_link" 4674case "(($ac_try" in 4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4676 *) ac_try_echo=$ac_try;; 4677esac 4678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4679 (eval "$ac_link") 2>conftest.er1 4680 ac_status=$? 4681 grep -v '^ *+' conftest.er1 >conftest.err 4682 rm -f conftest.er1 4683 cat conftest.err >&5 4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4685 (exit $ac_status); } && { 4686 test -z "$ac_c_werror_flag" || 4687 test ! -s conftest.err 4688 } && test -s conftest$ac_exeext && 4689 $as_test_x conftest$ac_exeext; then 4690 DATADIRNAME=share 4691else 4692 echo "$as_me: failed program was:" >&5 4693sed 's/^/| /' conftest.$ac_ext >&5 4694 4695 case $host in 4696 *-*-solaris*) 4697 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 4698echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; } 4699if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then 4700 echo $ECHO_N "(cached) $ECHO_C" >&6 4701else 4702 cat >conftest.$ac_ext <<_ACEOF 4703/* confdefs.h. */ 4704_ACEOF 4705cat confdefs.h >>conftest.$ac_ext 4706cat >>conftest.$ac_ext <<_ACEOF 4707/* end confdefs.h. */ 4708/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset. 4709 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4710#define bind_textdomain_codeset innocuous_bind_textdomain_codeset 4711 4712/* System header to define __stub macros and hopefully few prototypes, 4713 which can conflict with char bind_textdomain_codeset (); below. 4714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4715 <limits.h> exists even on freestanding compilers. */ 4716 4717#ifdef __STDC__ 4718# include <limits.h> 4719#else 4720# include <assert.h> 4721#endif 4722 4723#undef bind_textdomain_codeset 4724 4725/* Override any GCC internal prototype to avoid an error. 4726 Use char because int might match the return type of a GCC 4727 builtin and then its argument prototype would still apply. */ 4728#ifdef __cplusplus 4729extern "C" 4730#endif 4731char bind_textdomain_codeset (); 4732/* The GNU C library defines this for functions which it implements 4733 to always fail with ENOSYS. Some functions are actually named 4734 something starting with __ and the normal name is an alias. */ 4735#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset 4736choke me 4737#endif 4738 4739int 4740main () 4741{ 4742return bind_textdomain_codeset (); 4743 ; 4744 return 0; 4745} 4746_ACEOF 4747rm -f conftest.$ac_objext conftest$ac_exeext 4748if { (ac_try="$ac_link" 4749case "(($ac_try" in 4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4751 *) ac_try_echo=$ac_try;; 4752esac 4753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4754 (eval "$ac_link") 2>conftest.er1 4755 ac_status=$? 4756 grep -v '^ *+' conftest.er1 >conftest.err 4757 rm -f conftest.er1 4758 cat conftest.err >&5 4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4760 (exit $ac_status); } && { 4761 test -z "$ac_c_werror_flag" || 4762 test ! -s conftest.err 4763 } && test -s conftest$ac_exeext && 4764 $as_test_x conftest$ac_exeext; then 4765 ac_cv_func_bind_textdomain_codeset=yes 4766else 4767 echo "$as_me: failed program was:" >&5 4768sed 's/^/| /' conftest.$ac_ext >&5 4769 4770 ac_cv_func_bind_textdomain_codeset=no 4771fi 4772 4773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4774 conftest$ac_exeext conftest.$ac_ext 4775fi 4776{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 4777echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; } 4778if test $ac_cv_func_bind_textdomain_codeset = yes; then 4779 DATADIRNAME=share 4780else 4781 DATADIRNAME=lib 4782fi 4783 4784 ;; 4785 *) 4786 DATADIRNAME=lib 4787 ;; 4788 esac 4789fi 4790 4791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4792 conftest$ac_exeext conftest.$ac_ext 4793fi 4794 4795 4796 4797 4798 4799ac_config_commands="$ac_config_commands intltool" 4800 4801 4802 4803# Check whether --enable-shared was given. 4804if test "${enable_shared+set}" = set; then 4805 enableval=$enable_shared; p=${PACKAGE-default} 4806 case $enableval in 4807 yes) enable_shared=yes ;; 4808 no) enable_shared=no ;; 4809 *) 4810 enable_shared=no 4811 # Look at the argument we got. We use all the common list separators. 4812 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4813 for pkg in $enableval; do 4814 IFS="$lt_save_ifs" 4815 if test "X$pkg" = "X$p"; then 4816 enable_shared=yes 4817 fi 4818 done 4819 IFS="$lt_save_ifs" 4820 ;; 4821 esac 4822else 4823 enable_shared=yes 4824fi 4825 4826 4827# Check whether --enable-static was given. 4828if test "${enable_static+set}" = set; then 4829 enableval=$enable_static; p=${PACKAGE-default} 4830 case $enableval in 4831 yes) enable_static=yes ;; 4832 no) enable_static=no ;; 4833 *) 4834 enable_static=no 4835 # Look at the argument we got. We use all the common list separators. 4836 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4837 for pkg in $enableval; do 4838 IFS="$lt_save_ifs" 4839 if test "X$pkg" = "X$p"; then 4840 enable_static=yes 4841 fi 4842 done 4843 IFS="$lt_save_ifs" 4844 ;; 4845 esac 4846else 4847 enable_static=yes 4848fi 4849 4850 4851# Check whether --enable-fast-install was given. 4852if test "${enable_fast_install+set}" = set; then 4853 enableval=$enable_fast_install; p=${PACKAGE-default} 4854 case $enableval in 4855 yes) enable_fast_install=yes ;; 4856 no) enable_fast_install=no ;; 4857 *) 4858 enable_fast_install=no 4859 # Look at the argument we got. We use all the common list separators. 4860 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4861 for pkg in $enableval; do 4862 IFS="$lt_save_ifs" 4863 if test "X$pkg" = "X$p"; then 4864 enable_fast_install=yes 4865 fi 4866 done 4867 IFS="$lt_save_ifs" 4868 ;; 4869 esac 4870else 4871 enable_fast_install=yes 4872fi 4873 4874 4875# Make sure we can run config.sub. 4876$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4877 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4878echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4879 { (exit 1); exit 1; }; } 4880 4881{ echo "$as_me:$LINENO: checking build system type" >&5 4882echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 4883if test "${ac_cv_build+set}" = set; then 4884 echo $ECHO_N "(cached) $ECHO_C" >&6 4885else 4886 ac_build_alias=$build_alias 4887test "x$ac_build_alias" = x && 4888 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4889test "x$ac_build_alias" = x && 4890 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4891echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4892 { (exit 1); exit 1; }; } 4893ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4894 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4895echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4896 { (exit 1); exit 1; }; } 4897 4898fi 4899{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4900echo "${ECHO_T}$ac_cv_build" >&6; } 4901case $ac_cv_build in 4902*-*-*) ;; 4903*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4904echo "$as_me: error: invalid value of canonical build" >&2;} 4905 { (exit 1); exit 1; }; };; 4906esac 4907build=$ac_cv_build 4908ac_save_IFS=$IFS; IFS='-' 4909set x $ac_cv_build 4910shift 4911build_cpu=$1 4912build_vendor=$2 4913shift; shift 4914# Remember, the first character of IFS is used to create $*, 4915# except with old shells: 4916build_os=$* 4917IFS=$ac_save_IFS 4918case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4919 4920 4921{ echo "$as_me:$LINENO: checking host system type" >&5 4922echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 4923if test "${ac_cv_host+set}" = set; then 4924 echo $ECHO_N "(cached) $ECHO_C" >&6 4925else 4926 if test "x$host_alias" = x; then 4927 ac_cv_host=$ac_cv_build 4928else 4929 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4930 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4931echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4932 { (exit 1); exit 1; }; } 4933fi 4934 4935fi 4936{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4937echo "${ECHO_T}$ac_cv_host" >&6; } 4938case $ac_cv_host in 4939*-*-*) ;; 4940*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4941echo "$as_me: error: invalid value of canonical host" >&2;} 4942 { (exit 1); exit 1; }; };; 4943esac 4944host=$ac_cv_host 4945ac_save_IFS=$IFS; IFS='-' 4946set x $ac_cv_host 4947shift 4948host_cpu=$1 4949host_vendor=$2 4950shift; shift 4951# Remember, the first character of IFS is used to create $*, 4952# except with old shells: 4953host_os=$* 4954IFS=$ac_save_IFS 4955case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4956 4957 4958{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4959echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 4960if test "${lt_cv_path_SED+set}" = set; then 4961 echo $ECHO_N "(cached) $ECHO_C" >&6 4962else 4963 # Loop through the user's path and test for sed and gsed. 4964# Then use that list of sed's as ones to test for truncation. 4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4966for as_dir in $PATH 4967do 4968 IFS=$as_save_IFS 4969 test -z "$as_dir" && as_dir=. 4970 for lt_ac_prog in sed gsed; do 4971 for ac_exec_ext in '' $ac_executable_extensions; do 4972 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 4973 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4974 fi 4975 done 4976 done 4977done 4978IFS=$as_save_IFS 4979lt_ac_max=0 4980lt_ac_count=0 4981# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4982# along with /bin/sed that truncates output. 4983for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4984 test ! -f $lt_ac_sed && continue 4985 cat /dev/null > conftest.in 4986 lt_ac_count=0 4987 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4988 # Check for GNU sed and select it if it is found. 4989 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4990 lt_cv_path_SED=$lt_ac_sed 4991 break 4992 fi 4993 while true; do 4994 cat conftest.in conftest.in >conftest.tmp 4995 mv conftest.tmp conftest.in 4996 cp conftest.in conftest.nl 4997 echo >>conftest.nl 4998 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4999 cmp -s conftest.out conftest.nl || break 5000 # 10000 chars as input seems more than enough 5001 test $lt_ac_count -gt 10 && break 5002 lt_ac_count=`expr $lt_ac_count + 1` 5003 if test $lt_ac_count -gt $lt_ac_max; then 5004 lt_ac_max=$lt_ac_count 5005 lt_cv_path_SED=$lt_ac_sed 5006 fi 5007 done 5008done 5009 5010fi 5011 5012SED=$lt_cv_path_SED 5013 5014{ echo "$as_me:$LINENO: result: $SED" >&5 5015echo "${ECHO_T}$SED" >&6; } 5016 5017{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 5018echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 5019if test "${ac_cv_path_GREP+set}" = set; then 5020 echo $ECHO_N "(cached) $ECHO_C" >&6 5021else 5022 # Extract the first word of "grep ggrep" to use in msg output 5023if test -z "$GREP"; then 5024set dummy grep ggrep; ac_prog_name=$2 5025if test "${ac_cv_path_GREP+set}" = set; then 5026 echo $ECHO_N "(cached) $ECHO_C" >&6 5027else 5028 ac_path_GREP_found=false 5029# Loop through the user's path and test for each of PROGNAME-LIST 5030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5031for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5032do 5033 IFS=$as_save_IFS 5034 test -z "$as_dir" && as_dir=. 5035 for ac_prog in grep ggrep; do 5036 for ac_exec_ext in '' $ac_executable_extensions; do 5037 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5038 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5039 # Check for GNU ac_path_GREP and select it if it is found. 5040 # Check for GNU $ac_path_GREP 5041case `"$ac_path_GREP" --version 2>&1` in 5042*GNU*) 5043 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5044*) 5045 ac_count=0 5046 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5047 while : 5048 do 5049 cat "conftest.in" "conftest.in" >"conftest.tmp" 5050 mv "conftest.tmp" "conftest.in" 5051 cp "conftest.in" "conftest.nl" 5052 echo 'GREP' >> "conftest.nl" 5053 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5055 ac_count=`expr $ac_count + 1` 5056 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5057 # Best one so far, save it but keep looking for a better one 5058 ac_cv_path_GREP="$ac_path_GREP" 5059 ac_path_GREP_max=$ac_count 5060 fi 5061 # 10*(2^10) chars as input seems more than enough 5062 test $ac_count -gt 10 && break 5063 done 5064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5065esac 5066 5067 5068 $ac_path_GREP_found && break 3 5069 done 5070done 5071 5072done 5073IFS=$as_save_IFS 5074 5075 5076fi 5077 5078GREP="$ac_cv_path_GREP" 5079if test -z "$GREP"; then 5080 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5081echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5082 { (exit 1); exit 1; }; } 5083fi 5084 5085else 5086 ac_cv_path_GREP=$GREP 5087fi 5088 5089 5090fi 5091{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 5092echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 5093 GREP="$ac_cv_path_GREP" 5094 5095 5096{ echo "$as_me:$LINENO: checking for egrep" >&5 5097echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 5098if test "${ac_cv_path_EGREP+set}" = set; then 5099 echo $ECHO_N "(cached) $ECHO_C" >&6 5100else 5101 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5102 then ac_cv_path_EGREP="$GREP -E" 5103 else 5104 # Extract the first word of "egrep" to use in msg output 5105if test -z "$EGREP"; then 5106set dummy egrep; ac_prog_name=$2 5107if test "${ac_cv_path_EGREP+set}" = set; then 5108 echo $ECHO_N "(cached) $ECHO_C" >&6 5109else 5110 ac_path_EGREP_found=false 5111# Loop through the user's path and test for each of PROGNAME-LIST 5112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5113for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5114do 5115 IFS=$as_save_IFS 5116 test -z "$as_dir" && as_dir=. 5117 for ac_prog in egrep; do 5118 for ac_exec_ext in '' $ac_executable_extensions; do 5119 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5120 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5121 # Check for GNU ac_path_EGREP and select it if it is found. 5122 # Check for GNU $ac_path_EGREP 5123case `"$ac_path_EGREP" --version 2>&1` in 5124*GNU*) 5125 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5126*) 5127 ac_count=0 5128 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5129 while : 5130 do 5131 cat "conftest.in" "conftest.in" >"conftest.tmp" 5132 mv "conftest.tmp" "conftest.in" 5133 cp "conftest.in" "conftest.nl" 5134 echo 'EGREP' >> "conftest.nl" 5135 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5137 ac_count=`expr $ac_count + 1` 5138 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5139 # Best one so far, save it but keep looking for a better one 5140 ac_cv_path_EGREP="$ac_path_EGREP" 5141 ac_path_EGREP_max=$ac_count 5142 fi 5143 # 10*(2^10) chars as input seems more than enough 5144 test $ac_count -gt 10 && break 5145 done 5146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5147esac 5148 5149 5150 $ac_path_EGREP_found && break 3 5151 done 5152done 5153 5154done 5155IFS=$as_save_IFS 5156 5157 5158fi 5159 5160EGREP="$ac_cv_path_EGREP" 5161if test -z "$EGREP"; then 5162 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5163echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5164 { (exit 1); exit 1; }; } 5165fi 5166 5167else 5168 ac_cv_path_EGREP=$EGREP 5169fi 5170 5171 5172 fi 5173fi 5174{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 5175echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 5176 EGREP="$ac_cv_path_EGREP" 5177 5178 5179 5180# Check whether --with-gnu-ld was given. 5181if test "${with_gnu_ld+set}" = set; then 5182 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5183else 5184 with_gnu_ld=no 5185fi 5186 5187ac_prog=ld 5188if test "$GCC" = yes; then 5189 # Check if gcc -print-prog-name=ld gives a path. 5190 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5191echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 5192 case $host in 5193 *-*-mingw*) 5194 # gcc leaves a trailing carriage return which upsets mingw 5195 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5196 *) 5197 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5198 esac 5199 case $ac_prog in 5200 # Accept absolute paths. 5201 [\\/]* | ?:[\\/]*) 5202 re_direlt='/[^/][^/]*/\.\./' 5203 # Canonicalize the pathname of ld 5204 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5205 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5206 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5207 done 5208 test -z "$LD" && LD="$ac_prog" 5209 ;; 5210 "") 5211 # If it fails, then pretend we aren't using GCC. 5212 ac_prog=ld 5213 ;; 5214 *) 5215 # If it is relative, then search for the first ld in PATH. 5216 with_gnu_ld=unknown 5217 ;; 5218 esac 5219elif test "$with_gnu_ld" = yes; then 5220 { echo "$as_me:$LINENO: checking for GNU ld" >&5 5221echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 5222else 5223 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5224echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 5225fi 5226if test "${lt_cv_path_LD+set}" = set; then 5227 echo $ECHO_N "(cached) $ECHO_C" >&6 5228else 5229 if test -z "$LD"; then 5230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5231 for ac_dir in $PATH; do 5232 IFS="$lt_save_ifs" 5233 test -z "$ac_dir" && ac_dir=. 5234 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5235 lt_cv_path_LD="$ac_dir/$ac_prog" 5236 # Check to see if the program is GNU ld. I'd rather use --version, 5237 # but apparently some variants of GNU ld only accept -v. 5238 # Break only if it was the GNU/non-GNU ld that we prefer. 5239 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5240 *GNU* | *'with BFD'*) 5241 test "$with_gnu_ld" != no && break 5242 ;; 5243 *) 5244 test "$with_gnu_ld" != yes && break 5245 ;; 5246 esac 5247 fi 5248 done 5249 IFS="$lt_save_ifs" 5250else 5251 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5252fi 5253fi 5254 5255LD="$lt_cv_path_LD" 5256if test -n "$LD"; then 5257 { echo "$as_me:$LINENO: result: $LD" >&5 5258echo "${ECHO_T}$LD" >&6; } 5259else 5260 { echo "$as_me:$LINENO: result: no" >&5 5261echo "${ECHO_T}no" >&6; } 5262fi 5263test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5264echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5265 { (exit 1); exit 1; }; } 5266{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5267echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 5268if test "${lt_cv_prog_gnu_ld+set}" = set; then 5269 echo $ECHO_N "(cached) $ECHO_C" >&6 5270else 5271 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5272case `$LD -v 2>&1 </dev/null` in 5273*GNU* | *'with BFD'*) 5274 lt_cv_prog_gnu_ld=yes 5275 ;; 5276*) 5277 lt_cv_prog_gnu_ld=no 5278 ;; 5279esac 5280fi 5281{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5282echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 5283with_gnu_ld=$lt_cv_prog_gnu_ld 5284 5285 5286{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 5287echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 5288if test "${lt_cv_ld_reload_flag+set}" = set; then 5289 echo $ECHO_N "(cached) $ECHO_C" >&6 5290else 5291 lt_cv_ld_reload_flag='-r' 5292fi 5293{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 5294echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 5295reload_flag=$lt_cv_ld_reload_flag 5296case $reload_flag in 5297"" | " "*) ;; 5298*) reload_flag=" $reload_flag" ;; 5299esac 5300reload_cmds='$LD$reload_flag -o $output$reload_objs' 5301case $host_os in 5302 darwin*) 5303 if test "$GCC" = yes; then 5304 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5305 else 5306 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5307 fi 5308 ;; 5309esac 5310 5311{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5312echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 5313if test "${lt_cv_path_NM+set}" = set; then 5314 echo $ECHO_N "(cached) $ECHO_C" >&6 5315else 5316 if test -n "$NM"; then 5317 # Let the user override the test. 5318 lt_cv_path_NM="$NM" 5319else 5320 lt_nm_to_check="${ac_tool_prefix}nm" 5321 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5322 lt_nm_to_check="$lt_nm_to_check nm" 5323 fi 5324 for lt_tmp_nm in $lt_nm_to_check; do 5325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5326 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5327 IFS="$lt_save_ifs" 5328 test -z "$ac_dir" && ac_dir=. 5329 tmp_nm="$ac_dir/$lt_tmp_nm" 5330 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5331 # Check to see if the nm accepts a BSD-compat flag. 5332 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5333 # nm: unknown option "B" ignored 5334 # Tru64's nm complains that /dev/null is an invalid object file 5335 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5336 */dev/null* | *'Invalid file or object type'*) 5337 lt_cv_path_NM="$tmp_nm -B" 5338 break 5339 ;; 5340 *) 5341 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5342 */dev/null*) 5343 lt_cv_path_NM="$tmp_nm -p" 5344 break 5345 ;; 5346 *) 5347 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5348 continue # so that we can try to find one that supports BSD flags 5349 ;; 5350 esac 5351 ;; 5352 esac 5353 fi 5354 done 5355 IFS="$lt_save_ifs" 5356 done 5357 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5358fi 5359fi 5360{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5361echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5362NM="$lt_cv_path_NM" 5363 5364{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5365echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 5366if test "${lt_cv_deplibs_check_method+set}" = set; then 5367 echo $ECHO_N "(cached) $ECHO_C" >&6 5368else 5369 lt_cv_file_magic_cmd='$MAGIC_CMD' 5370lt_cv_file_magic_test_file= 5371lt_cv_deplibs_check_method='unknown' 5372# Need to set the preceding variable on all platforms that support 5373# interlibrary dependencies. 5374# 'none' -- dependencies not supported. 5375# `unknown' -- same as none, but documents that we really don't know. 5376# 'pass_all' -- all dependencies passed with no checks. 5377# 'test_compile' -- check by making test program. 5378# 'file_magic [[regex]]' -- check by looking for files in library path 5379# which responds to the $file_magic_cmd with a given extended regex. 5380# If you have `file' or equivalent on your system and you're not sure 5381# whether `pass_all' will *always* work, you probably want this one. 5382 5383case $host_os in 5384aix4* | aix5*) 5385 lt_cv_deplibs_check_method=pass_all 5386 ;; 5387 5388beos*) 5389 lt_cv_deplibs_check_method=pass_all 5390 ;; 5391 5392bsdi[45]*) 5393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5394 lt_cv_file_magic_cmd='/usr/bin/file -L' 5395 lt_cv_file_magic_test_file=/shlib/libc.so 5396 ;; 5397 5398cygwin*) 5399 # func_win32_libid is a shell function defined in ltmain.sh 5400 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5401 lt_cv_file_magic_cmd='func_win32_libid' 5402 ;; 5403 5404mingw* | pw32*) 5405 # Base MSYS/MinGW do not provide the 'file' command needed by 5406 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5407 # unless we find 'file', for example because we are cross-compiling. 5408 if ( file / ) >/dev/null 2>&1; then 5409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5410 lt_cv_file_magic_cmd='func_win32_libid' 5411 else 5412 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5413 lt_cv_file_magic_cmd='$OBJDUMP -f' 5414 fi 5415 ;; 5416 5417darwin* | rhapsody*) 5418 lt_cv_deplibs_check_method=pass_all 5419 ;; 5420 5421freebsd* | dragonfly*) 5422 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5423 case $host_cpu in 5424 i*86 ) 5425 # Not sure whether the presence of OpenBSD here was a mistake. 5426 # Let's accept both of them until this is cleared up. 5427 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5428 lt_cv_file_magic_cmd=/usr/bin/file 5429 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5430 ;; 5431 esac 5432 else 5433 lt_cv_deplibs_check_method=pass_all 5434 fi 5435 ;; 5436 5437gnu*) 5438 lt_cv_deplibs_check_method=pass_all 5439 ;; 5440 5441hpux10.20* | hpux11*) 5442 lt_cv_file_magic_cmd=/usr/bin/file 5443 case $host_cpu in 5444 ia64*) 5445 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5446 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5447 ;; 5448 hppa*64*) 5449 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]' 5450 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5451 ;; 5452 *) 5453 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5454 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5455 ;; 5456 esac 5457 ;; 5458 5459interix[3-9]*) 5460 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5462 ;; 5463 5464irix5* | irix6* | nonstopux*) 5465 case $LD in 5466 *-32|*"-32 ") libmagic=32-bit;; 5467 *-n32|*"-n32 ") libmagic=N32;; 5468 *-64|*"-64 ") libmagic=64-bit;; 5469 *) libmagic=never-match;; 5470 esac 5471 lt_cv_deplibs_check_method=pass_all 5472 ;; 5473 5474# This must be Linux ELF. 5475linux* | k*bsd*-gnu) 5476 lt_cv_deplibs_check_method=pass_all 5477 ;; 5478 5479netbsd*) 5480 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5482 else 5483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5484 fi 5485 ;; 5486 5487newos6*) 5488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5489 lt_cv_file_magic_cmd=/usr/bin/file 5490 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5491 ;; 5492 5493nto-qnx*) 5494 lt_cv_deplibs_check_method=unknown 5495 ;; 5496 5497openbsd*) 5498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5500 else 5501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5502 fi 5503 ;; 5504 5505osf3* | osf4* | osf5*) 5506 lt_cv_deplibs_check_method=pass_all 5507 ;; 5508 5509rdos*) 5510 lt_cv_deplibs_check_method=pass_all 5511 ;; 5512 5513solaris*) 5514 lt_cv_deplibs_check_method=pass_all 5515 ;; 5516 5517sysv4 | sysv4.3*) 5518 case $host_vendor in 5519 motorola) 5520 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]' 5521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5522 ;; 5523 ncr) 5524 lt_cv_deplibs_check_method=pass_all 5525 ;; 5526 sequent) 5527 lt_cv_file_magic_cmd='/bin/file' 5528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5529 ;; 5530 sni) 5531 lt_cv_file_magic_cmd='/bin/file' 5532 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5533 lt_cv_file_magic_test_file=/lib/libc.so 5534 ;; 5535 siemens) 5536 lt_cv_deplibs_check_method=pass_all 5537 ;; 5538 pc) 5539 lt_cv_deplibs_check_method=pass_all 5540 ;; 5541 esac 5542 ;; 5543 5544sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5545 lt_cv_deplibs_check_method=pass_all 5546 ;; 5547esac 5548 5549fi 5550{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5551echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 5552file_magic_cmd=$lt_cv_file_magic_cmd 5553deplibs_check_method=$lt_cv_deplibs_check_method 5554test -z "$deplibs_check_method" && deplibs_check_method=unknown 5555 5556 5557 5558 5559# If no C compiler was specified, use CC. 5560LTCC=${LTCC-"$CC"} 5561 5562# If no C compiler flags were specified, use CFLAGS. 5563LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5564 5565# Allow CC to be a program name with arguments. 5566compiler=$CC 5567 5568# Check whether --enable-libtool-lock was given. 5569if test "${enable_libtool_lock+set}" = set; then 5570 enableval=$enable_libtool_lock; 5571fi 5572 5573test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5574 5575# Some flags need to be propagated to the compiler or linker for good 5576# libtool support. 5577case $host in 5578ia64-*-hpux*) 5579 # Find out which ABI we are using. 5580 echo 'int i;' > conftest.$ac_ext 5581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5582 (eval $ac_compile) 2>&5 5583 ac_status=$? 5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5585 (exit $ac_status); }; then 5586 case `/usr/bin/file conftest.$ac_objext` in 5587 *ELF-32*) 5588 HPUX_IA64_MODE="32" 5589 ;; 5590 *ELF-64*) 5591 HPUX_IA64_MODE="64" 5592 ;; 5593 esac 5594 fi 5595 rm -rf conftest* 5596 ;; 5597*-*-irix6*) 5598 # Find out which ABI we are using. 5599 echo '#line 5599 "configure"' > conftest.$ac_ext 5600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5601 (eval $ac_compile) 2>&5 5602 ac_status=$? 5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5604 (exit $ac_status); }; then 5605 if test "$lt_cv_prog_gnu_ld" = yes; then 5606 case `/usr/bin/file conftest.$ac_objext` in 5607 *32-bit*) 5608 LD="${LD-ld} -melf32bsmip" 5609 ;; 5610 *N32*) 5611 LD="${LD-ld} -melf32bmipn32" 5612 ;; 5613 *64-bit*) 5614 LD="${LD-ld} -melf64bmip" 5615 ;; 5616 esac 5617 else 5618 case `/usr/bin/file conftest.$ac_objext` in 5619 *32-bit*) 5620 LD="${LD-ld} -32" 5621 ;; 5622 *N32*) 5623 LD="${LD-ld} -n32" 5624 ;; 5625 *64-bit*) 5626 LD="${LD-ld} -64" 5627 ;; 5628 esac 5629 fi 5630 fi 5631 rm -rf conftest* 5632 ;; 5633 5634x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5635s390*-*linux*|sparc*-*linux*) 5636 # Find out which ABI we are using. 5637 echo 'int i;' > conftest.$ac_ext 5638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5639 (eval $ac_compile) 2>&5 5640 ac_status=$? 5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5642 (exit $ac_status); }; then 5643 case `/usr/bin/file conftest.o` in 5644 *32-bit*) 5645 case $host in 5646 x86_64-*kfreebsd*-gnu) 5647 LD="${LD-ld} -m elf_i386_fbsd" 5648 ;; 5649 x86_64-*linux*) 5650 LD="${LD-ld} -m elf_i386" 5651 ;; 5652 ppc64-*linux*|powerpc64-*linux*) 5653 LD="${LD-ld} -m elf32ppclinux" 5654 ;; 5655 s390x-*linux*) 5656 LD="${LD-ld} -m elf_s390" 5657 ;; 5658 sparc64-*linux*) 5659 LD="${LD-ld} -m elf32_sparc" 5660 ;; 5661 esac 5662 ;; 5663 *64-bit*) 5664 libsuff=64 5665 case $host in 5666 x86_64-*kfreebsd*-gnu) 5667 LD="${LD-ld} -m elf_x86_64_fbsd" 5668 ;; 5669 x86_64-*linux*) 5670 LD="${LD-ld} -m elf_x86_64" 5671 ;; 5672 ppc*-*linux*|powerpc*-*linux*) 5673 LD="${LD-ld} -m elf64ppc" 5674 ;; 5675 s390*-*linux*) 5676 LD="${LD-ld} -m elf64_s390" 5677 ;; 5678 sparc*-*linux*) 5679 LD="${LD-ld} -m elf64_sparc" 5680 ;; 5681 esac 5682 ;; 5683 esac 5684 fi 5685 rm -rf conftest* 5686 ;; 5687 5688*-*-sco3.2v5*) 5689 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5690 SAVE_CFLAGS="$CFLAGS" 5691 CFLAGS="$CFLAGS -belf" 5692 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5693echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 5694if test "${lt_cv_cc_needs_belf+set}" = set; then 5695 echo $ECHO_N "(cached) $ECHO_C" >&6 5696else 5697 ac_ext=c 5698ac_cpp='$CPP $CPPFLAGS' 5699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5701ac_compiler_gnu=$ac_cv_c_compiler_gnu 5702 5703 cat >conftest.$ac_ext <<_ACEOF 5704/* confdefs.h. */ 5705_ACEOF 5706cat confdefs.h >>conftest.$ac_ext 5707cat >>conftest.$ac_ext <<_ACEOF 5708/* end confdefs.h. */ 5709 5710int 5711main () 5712{ 5713 5714 ; 5715 return 0; 5716} 5717_ACEOF 5718rm -f conftest.$ac_objext conftest$ac_exeext 5719if { (ac_try="$ac_link" 5720case "(($ac_try" in 5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5722 *) ac_try_echo=$ac_try;; 5723esac 5724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5725 (eval "$ac_link") 2>conftest.er1 5726 ac_status=$? 5727 grep -v '^ *+' conftest.er1 >conftest.err 5728 rm -f conftest.er1 5729 cat conftest.err >&5 5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5731 (exit $ac_status); } && { 5732 test -z "$ac_c_werror_flag" || 5733 test ! -s conftest.err 5734 } && test -s conftest$ac_exeext && 5735 $as_test_x conftest$ac_exeext; then 5736 lt_cv_cc_needs_belf=yes 5737else 5738 echo "$as_me: failed program was:" >&5 5739sed 's/^/| /' conftest.$ac_ext >&5 5740 5741 lt_cv_cc_needs_belf=no 5742fi 5743 5744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5745 conftest$ac_exeext conftest.$ac_ext 5746 ac_ext=c 5747ac_cpp='$CPP $CPPFLAGS' 5748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5750ac_compiler_gnu=$ac_cv_c_compiler_gnu 5751 5752fi 5753{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5754echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 5755 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5756 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5757 CFLAGS="$SAVE_CFLAGS" 5758 fi 5759 ;; 5760sparc*-*solaris*) 5761 # Find out which ABI we are using. 5762 echo 'int i;' > conftest.$ac_ext 5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5764 (eval $ac_compile) 2>&5 5765 ac_status=$? 5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5767 (exit $ac_status); }; then 5768 case `/usr/bin/file conftest.o` in 5769 *64-bit*) 5770 case $lt_cv_prog_gnu_ld in 5771 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5772 *) LD="${LD-ld} -64" ;; 5773 esac 5774 ;; 5775 esac 5776 fi 5777 rm -rf conftest* 5778 ;; 5779 5780 5781esac 5782 5783need_locks="$enable_libtool_lock" 5784 5785 5786 5787{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5788echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5789if test "${ac_cv_header_stdc+set}" = set; then 5790 echo $ECHO_N "(cached) $ECHO_C" >&6 5791else 5792 cat >conftest.$ac_ext <<_ACEOF 5793/* confdefs.h. */ 5794_ACEOF 5795cat confdefs.h >>conftest.$ac_ext 5796cat >>conftest.$ac_ext <<_ACEOF 5797/* end confdefs.h. */ 5798#include <stdlib.h> 5799#include <stdarg.h> 5800#include <string.h> 5801#include <float.h> 5802 5803int 5804main () 5805{ 5806 5807 ; 5808 return 0; 5809} 5810_ACEOF 5811rm -f conftest.$ac_objext 5812if { (ac_try="$ac_compile" 5813case "(($ac_try" in 5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5815 *) ac_try_echo=$ac_try;; 5816esac 5817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5818 (eval "$ac_compile") 2>conftest.er1 5819 ac_status=$? 5820 grep -v '^ *+' conftest.er1 >conftest.err 5821 rm -f conftest.er1 5822 cat conftest.err >&5 5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5824 (exit $ac_status); } && { 5825 test -z "$ac_c_werror_flag" || 5826 test ! -s conftest.err 5827 } && test -s conftest.$ac_objext; then 5828 ac_cv_header_stdc=yes 5829else 5830 echo "$as_me: failed program was:" >&5 5831sed 's/^/| /' conftest.$ac_ext >&5 5832 5833 ac_cv_header_stdc=no 5834fi 5835 5836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5837 5838if test $ac_cv_header_stdc = yes; then 5839 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5840 cat >conftest.$ac_ext <<_ACEOF 5841/* confdefs.h. */ 5842_ACEOF 5843cat confdefs.h >>conftest.$ac_ext 5844cat >>conftest.$ac_ext <<_ACEOF 5845/* end confdefs.h. */ 5846#include <string.h> 5847 5848_ACEOF 5849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5850 $EGREP "memchr" >/dev/null 2>&1; then 5851 : 5852else 5853 ac_cv_header_stdc=no 5854fi 5855rm -f conftest* 5856 5857fi 5858 5859if test $ac_cv_header_stdc = yes; then 5860 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5861 cat >conftest.$ac_ext <<_ACEOF 5862/* confdefs.h. */ 5863_ACEOF 5864cat confdefs.h >>conftest.$ac_ext 5865cat >>conftest.$ac_ext <<_ACEOF 5866/* end confdefs.h. */ 5867#include <stdlib.h> 5868 5869_ACEOF 5870if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5871 $EGREP "free" >/dev/null 2>&1; then 5872 : 5873else 5874 ac_cv_header_stdc=no 5875fi 5876rm -f conftest* 5877 5878fi 5879 5880if test $ac_cv_header_stdc = yes; then 5881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5882 if test "$cross_compiling" = yes; then 5883 : 5884else 5885 cat >conftest.$ac_ext <<_ACEOF 5886/* confdefs.h. */ 5887_ACEOF 5888cat confdefs.h >>conftest.$ac_ext 5889cat >>conftest.$ac_ext <<_ACEOF 5890/* end confdefs.h. */ 5891#include <ctype.h> 5892#include <stdlib.h> 5893#if ((' ' & 0x0FF) == 0x020) 5894# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5895# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5896#else 5897# define ISLOWER(c) \ 5898 (('a' <= (c) && (c) <= 'i') \ 5899 || ('j' <= (c) && (c) <= 'r') \ 5900 || ('s' <= (c) && (c) <= 'z')) 5901# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5902#endif 5903 5904#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5905int 5906main () 5907{ 5908 int i; 5909 for (i = 0; i < 256; i++) 5910 if (XOR (islower (i), ISLOWER (i)) 5911 || toupper (i) != TOUPPER (i)) 5912 return 2; 5913 return 0; 5914} 5915_ACEOF 5916rm -f conftest$ac_exeext 5917if { (ac_try="$ac_link" 5918case "(($ac_try" in 5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5920 *) ac_try_echo=$ac_try;; 5921esac 5922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5923 (eval "$ac_link") 2>&5 5924 ac_status=$? 5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5927 { (case "(($ac_try" in 5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5929 *) ac_try_echo=$ac_try;; 5930esac 5931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5932 (eval "$ac_try") 2>&5 5933 ac_status=$? 5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5935 (exit $ac_status); }; }; then 5936 : 5937else 5938 echo "$as_me: program exited with status $ac_status" >&5 5939echo "$as_me: failed program was:" >&5 5940sed 's/^/| /' conftest.$ac_ext >&5 5941 5942( exit $ac_status ) 5943ac_cv_header_stdc=no 5944fi 5945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5946fi 5947 5948 5949fi 5950fi 5951{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5952echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5953if test $ac_cv_header_stdc = yes; then 5954 5955cat >>confdefs.h <<\_ACEOF 5956#define STDC_HEADERS 1 5957_ACEOF 5958 5959fi 5960 5961# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5972 inttypes.h stdint.h unistd.h 5973do 5974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5975{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5978 echo $ECHO_N "(cached) $ECHO_C" >&6 5979else 5980 cat >conftest.$ac_ext <<_ACEOF 5981/* confdefs.h. */ 5982_ACEOF 5983cat confdefs.h >>conftest.$ac_ext 5984cat >>conftest.$ac_ext <<_ACEOF 5985/* end confdefs.h. */ 5986$ac_includes_default 5987 5988#include <$ac_header> 5989_ACEOF 5990rm -f conftest.$ac_objext 5991if { (ac_try="$ac_compile" 5992case "(($ac_try" in 5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5994 *) ac_try_echo=$ac_try;; 5995esac 5996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5997 (eval "$ac_compile") 2>conftest.er1 5998 ac_status=$? 5999 grep -v '^ *+' conftest.er1 >conftest.err 6000 rm -f conftest.er1 6001 cat conftest.err >&5 6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6003 (exit $ac_status); } && { 6004 test -z "$ac_c_werror_flag" || 6005 test ! -s conftest.err 6006 } && test -s conftest.$ac_objext; then 6007 eval "$as_ac_Header=yes" 6008else 6009 echo "$as_me: failed program was:" >&5 6010sed 's/^/| /' conftest.$ac_ext >&5 6011 6012 eval "$as_ac_Header=no" 6013fi 6014 6015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6016fi 6017ac_res=`eval echo '${'$as_ac_Header'}'` 6018 { echo "$as_me:$LINENO: result: $ac_res" >&5 6019echo "${ECHO_T}$ac_res" >&6; } 6020if test `eval echo '${'$as_ac_Header'}'` = yes; then 6021 cat >>confdefs.h <<_ACEOF 6022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6023_ACEOF 6024 6025fi 6026 6027done 6028 6029 6030 6031for ac_header in dlfcn.h 6032do 6033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6035 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6037if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6038 echo $ECHO_N "(cached) $ECHO_C" >&6 6039fi 6040ac_res=`eval echo '${'$as_ac_Header'}'` 6041 { echo "$as_me:$LINENO: result: $ac_res" >&5 6042echo "${ECHO_T}$ac_res" >&6; } 6043else 6044 # Is the header compilable? 6045{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6046echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6047cat >conftest.$ac_ext <<_ACEOF 6048/* confdefs.h. */ 6049_ACEOF 6050cat confdefs.h >>conftest.$ac_ext 6051cat >>conftest.$ac_ext <<_ACEOF 6052/* end confdefs.h. */ 6053$ac_includes_default 6054#include <$ac_header> 6055_ACEOF 6056rm -f conftest.$ac_objext 6057if { (ac_try="$ac_compile" 6058case "(($ac_try" in 6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6060 *) ac_try_echo=$ac_try;; 6061esac 6062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6063 (eval "$ac_compile") 2>conftest.er1 6064 ac_status=$? 6065 grep -v '^ *+' conftest.er1 >conftest.err 6066 rm -f conftest.er1 6067 cat conftest.err >&5 6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6069 (exit $ac_status); } && { 6070 test -z "$ac_c_werror_flag" || 6071 test ! -s conftest.err 6072 } && test -s conftest.$ac_objext; then 6073 ac_header_compiler=yes 6074else 6075 echo "$as_me: failed program was:" >&5 6076sed 's/^/| /' conftest.$ac_ext >&5 6077 6078 ac_header_compiler=no 6079fi 6080 6081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6082{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6083echo "${ECHO_T}$ac_header_compiler" >&6; } 6084 6085# Is the header present? 6086{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6087echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6088cat >conftest.$ac_ext <<_ACEOF 6089/* confdefs.h. */ 6090_ACEOF 6091cat confdefs.h >>conftest.$ac_ext 6092cat >>conftest.$ac_ext <<_ACEOF 6093/* end confdefs.h. */ 6094#include <$ac_header> 6095_ACEOF 6096if { (ac_try="$ac_cpp conftest.$ac_ext" 6097case "(($ac_try" in 6098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6099 *) ac_try_echo=$ac_try;; 6100esac 6101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6103 ac_status=$? 6104 grep -v '^ *+' conftest.er1 >conftest.err 6105 rm -f conftest.er1 6106 cat conftest.err >&5 6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6108 (exit $ac_status); } >/dev/null && { 6109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6110 test ! -s conftest.err 6111 }; then 6112 ac_header_preproc=yes 6113else 6114 echo "$as_me: failed program was:" >&5 6115sed 's/^/| /' conftest.$ac_ext >&5 6116 6117 ac_header_preproc=no 6118fi 6119 6120rm -f conftest.err conftest.$ac_ext 6121{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6122echo "${ECHO_T}$ac_header_preproc" >&6; } 6123 6124# So? What about this header? 6125case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6126 yes:no: ) 6127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6128echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6130echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6131 ac_header_preproc=yes 6132 ;; 6133 no:yes:* ) 6134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6135echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6137echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6139echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6141echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6143echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6145echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6146 ( cat <<\_ASBOX 6147## -------------------------------------- ## 6148## Report this to nicolafragale@gmail.com ## 6149## -------------------------------------- ## 6150_ASBOX 6151 ) | sed "s/^/$as_me: WARNING: /" >&2 6152 ;; 6153esac 6154{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6157 echo $ECHO_N "(cached) $ECHO_C" >&6 6158else 6159 eval "$as_ac_Header=\$ac_header_preproc" 6160fi 6161ac_res=`eval echo '${'$as_ac_Header'}'` 6162 { echo "$as_me:$LINENO: result: $ac_res" >&5 6163echo "${ECHO_T}$ac_res" >&6; } 6164 6165fi 6166if test `eval echo '${'$as_ac_Header'}'` = yes; then 6167 cat >>confdefs.h <<_ACEOF 6168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6169_ACEOF 6170 6171fi 6172 6173done 6174 6175 6176 6177if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6178 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6179 (test "X$CXX" != "Xg++"))) ; then 6180 ac_ext=cpp 6181ac_cpp='$CXXCPP $CPPFLAGS' 6182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6185{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 6186echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 6187if test -z "$CXXCPP"; then 6188 if test "${ac_cv_prog_CXXCPP+set}" = set; then 6189 echo $ECHO_N "(cached) $ECHO_C" >&6 6190else 6191 # Double quotes because CXXCPP needs to be expanded 6192 for CXXCPP in "$CXX -E" "/lib/cpp" 6193 do 6194 ac_preproc_ok=false 6195for ac_cxx_preproc_warn_flag in '' yes 6196do 6197 # Use a header file that comes with gcc, so configuring glibc 6198 # with a fresh cross-compiler works. 6199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6200 # <limits.h> exists even on freestanding compilers. 6201 # On the NeXT, cc -E runs the code through the compiler's parser, 6202 # not just through cpp. "Syntax error" is here to catch this case. 6203 cat >conftest.$ac_ext <<_ACEOF 6204/* confdefs.h. */ 6205_ACEOF 6206cat confdefs.h >>conftest.$ac_ext 6207cat >>conftest.$ac_ext <<_ACEOF 6208/* end confdefs.h. */ 6209#ifdef __STDC__ 6210# include <limits.h> 6211#else 6212# include <assert.h> 6213#endif 6214 Syntax error 6215_ACEOF 6216if { (ac_try="$ac_cpp conftest.$ac_ext" 6217case "(($ac_try" in 6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6219 *) ac_try_echo=$ac_try;; 6220esac 6221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6223 ac_status=$? 6224 grep -v '^ *+' conftest.er1 >conftest.err 6225 rm -f conftest.er1 6226 cat conftest.err >&5 6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6228 (exit $ac_status); } >/dev/null && { 6229 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6230 test ! -s conftest.err 6231 }; then 6232 : 6233else 6234 echo "$as_me: failed program was:" >&5 6235sed 's/^/| /' conftest.$ac_ext >&5 6236 6237 # Broken: fails on valid input. 6238continue 6239fi 6240 6241rm -f conftest.err conftest.$ac_ext 6242 6243 # OK, works on sane cases. Now check whether nonexistent headers 6244 # can be detected and how. 6245 cat >conftest.$ac_ext <<_ACEOF 6246/* confdefs.h. */ 6247_ACEOF 6248cat confdefs.h >>conftest.$ac_ext 6249cat >>conftest.$ac_ext <<_ACEOF 6250/* end confdefs.h. */ 6251#include <ac_nonexistent.h> 6252_ACEOF 6253if { (ac_try="$ac_cpp conftest.$ac_ext" 6254case "(($ac_try" in 6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6256 *) ac_try_echo=$ac_try;; 6257esac 6258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6260 ac_status=$? 6261 grep -v '^ *+' conftest.er1 >conftest.err 6262 rm -f conftest.er1 6263 cat conftest.err >&5 6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6265 (exit $ac_status); } >/dev/null && { 6266 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6267 test ! -s conftest.err 6268 }; then 6269 # Broken: success on invalid input. 6270continue 6271else 6272 echo "$as_me: failed program was:" >&5 6273sed 's/^/| /' conftest.$ac_ext >&5 6274 6275 # Passes both tests. 6276ac_preproc_ok=: 6277break 6278fi 6279 6280rm -f conftest.err conftest.$ac_ext 6281 6282done 6283# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6284rm -f conftest.err conftest.$ac_ext 6285if $ac_preproc_ok; then 6286 break 6287fi 6288 6289 done 6290 ac_cv_prog_CXXCPP=$CXXCPP 6291 6292fi 6293 CXXCPP=$ac_cv_prog_CXXCPP 6294else 6295 ac_cv_prog_CXXCPP=$CXXCPP 6296fi 6297{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6298echo "${ECHO_T}$CXXCPP" >&6; } 6299ac_preproc_ok=false 6300for ac_cxx_preproc_warn_flag in '' yes 6301do 6302 # Use a header file that comes with gcc, so configuring glibc 6303 # with a fresh cross-compiler works. 6304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6305 # <limits.h> exists even on freestanding compilers. 6306 # On the NeXT, cc -E runs the code through the compiler's parser, 6307 # not just through cpp. "Syntax error" is here to catch this case. 6308 cat >conftest.$ac_ext <<_ACEOF 6309/* confdefs.h. */ 6310_ACEOF 6311cat confdefs.h >>conftest.$ac_ext 6312cat >>conftest.$ac_ext <<_ACEOF 6313/* end confdefs.h. */ 6314#ifdef __STDC__ 6315# include <limits.h> 6316#else 6317# include <assert.h> 6318#endif 6319 Syntax error 6320_ACEOF 6321if { (ac_try="$ac_cpp conftest.$ac_ext" 6322case "(($ac_try" in 6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6324 *) ac_try_echo=$ac_try;; 6325esac 6326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6328 ac_status=$? 6329 grep -v '^ *+' conftest.er1 >conftest.err 6330 rm -f conftest.er1 6331 cat conftest.err >&5 6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6333 (exit $ac_status); } >/dev/null && { 6334 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6335 test ! -s conftest.err 6336 }; then 6337 : 6338else 6339 echo "$as_me: failed program was:" >&5 6340sed 's/^/| /' conftest.$ac_ext >&5 6341 6342 # Broken: fails on valid input. 6343continue 6344fi 6345 6346rm -f conftest.err conftest.$ac_ext 6347 6348 # OK, works on sane cases. Now check whether nonexistent headers 6349 # can be detected and how. 6350 cat >conftest.$ac_ext <<_ACEOF 6351/* confdefs.h. */ 6352_ACEOF 6353cat confdefs.h >>conftest.$ac_ext 6354cat >>conftest.$ac_ext <<_ACEOF 6355/* end confdefs.h. */ 6356#include <ac_nonexistent.h> 6357_ACEOF 6358if { (ac_try="$ac_cpp conftest.$ac_ext" 6359case "(($ac_try" in 6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6361 *) ac_try_echo=$ac_try;; 6362esac 6363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6365 ac_status=$? 6366 grep -v '^ *+' conftest.er1 >conftest.err 6367 rm -f conftest.er1 6368 cat conftest.err >&5 6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6370 (exit $ac_status); } >/dev/null && { 6371 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6372 test ! -s conftest.err 6373 }; then 6374 # Broken: success on invalid input. 6375continue 6376else 6377 echo "$as_me: failed program was:" >&5 6378sed 's/^/| /' conftest.$ac_ext >&5 6379 6380 # Passes both tests. 6381ac_preproc_ok=: 6382break 6383fi 6384 6385rm -f conftest.err conftest.$ac_ext 6386 6387done 6388# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6389rm -f conftest.err conftest.$ac_ext 6390if $ac_preproc_ok; then 6391 : 6392else 6393 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6394See \`config.log' for more details." >&5 6395echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6396See \`config.log' for more details." >&2;} 6397 { (exit 1); exit 1; }; } 6398fi 6399 6400ac_ext=cpp 6401ac_cpp='$CXXCPP $CPPFLAGS' 6402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6405 6406fi 6407 6408 6409ac_ext=f 6410ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6411ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6412ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6413if test -n "$ac_tool_prefix"; then 6414 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 6415 do 6416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6417set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6418{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6420if test "${ac_cv_prog_F77+set}" = set; then 6421 echo $ECHO_N "(cached) $ECHO_C" >&6 6422else 6423 if test -n "$F77"; then 6424 ac_cv_prog_F77="$F77" # Let the user override the test. 6425else 6426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6427for as_dir in $PATH 6428do 6429 IFS=$as_save_IFS 6430 test -z "$as_dir" && as_dir=. 6431 for ac_exec_ext in '' $ac_executable_extensions; do 6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6433 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6435 break 2 6436 fi 6437done 6438done 6439IFS=$as_save_IFS 6440 6441fi 6442fi 6443F77=$ac_cv_prog_F77 6444if test -n "$F77"; then 6445 { echo "$as_me:$LINENO: result: $F77" >&5 6446echo "${ECHO_T}$F77" >&6; } 6447else 6448 { echo "$as_me:$LINENO: result: no" >&5 6449echo "${ECHO_T}no" >&6; } 6450fi 6451 6452 6453 test -n "$F77" && break 6454 done 6455fi 6456if test -z "$F77"; then 6457 ac_ct_F77=$F77 6458 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 6459do 6460 # Extract the first word of "$ac_prog", so it can be a program name with args. 6461set dummy $ac_prog; ac_word=$2 6462{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6464if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6465 echo $ECHO_N "(cached) $ECHO_C" >&6 6466else 6467 if test -n "$ac_ct_F77"; then 6468 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6469else 6470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6471for as_dir in $PATH 6472do 6473 IFS=$as_save_IFS 6474 test -z "$as_dir" && as_dir=. 6475 for ac_exec_ext in '' $ac_executable_extensions; do 6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6477 ac_cv_prog_ac_ct_F77="$ac_prog" 6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6479 break 2 6480 fi 6481done 6482done 6483IFS=$as_save_IFS 6484 6485fi 6486fi 6487ac_ct_F77=$ac_cv_prog_ac_ct_F77 6488if test -n "$ac_ct_F77"; then 6489 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6490echo "${ECHO_T}$ac_ct_F77" >&6; } 6491else 6492 { echo "$as_me:$LINENO: result: no" >&5 6493echo "${ECHO_T}no" >&6; } 6494fi 6495 6496 6497 test -n "$ac_ct_F77" && break 6498done 6499 6500 if test "x$ac_ct_F77" = x; then 6501 F77="" 6502 else 6503 case $cross_compiling:$ac_tool_warned in 6504yes:) 6505{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6506whose name does not start with the host triplet. If you think this 6507configuration is useful to you, please write to autoconf@gnu.org." >&5 6508echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6509whose name does not start with the host triplet. If you think this 6510configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6511ac_tool_warned=yes ;; 6512esac 6513 F77=$ac_ct_F77 6514 fi 6515fi 6516 6517 6518# Provide some information about the compiler. 6519echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6520ac_compiler=`set X $ac_compile; echo $2` 6521{ (ac_try="$ac_compiler --version >&5" 6522case "(($ac_try" in 6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6524 *) ac_try_echo=$ac_try;; 6525esac 6526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6527 (eval "$ac_compiler --version >&5") 2>&5 6528 ac_status=$? 6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6530 (exit $ac_status); } 6531{ (ac_try="$ac_compiler -v >&5" 6532case "(($ac_try" in 6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6534 *) ac_try_echo=$ac_try;; 6535esac 6536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6537 (eval "$ac_compiler -v >&5") 2>&5 6538 ac_status=$? 6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6540 (exit $ac_status); } 6541{ (ac_try="$ac_compiler -V >&5" 6542case "(($ac_try" in 6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6544 *) ac_try_echo=$ac_try;; 6545esac 6546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6547 (eval "$ac_compiler -V >&5") 2>&5 6548 ac_status=$? 6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6550 (exit $ac_status); } 6551rm -f a.out 6552 6553# If we don't use `.F' as extension, the preprocessor is not run on the 6554# input file. (Note that this only needs to work for GNU compilers.) 6555ac_save_ext=$ac_ext 6556ac_ext=F 6557{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6558echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6559if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6560 echo $ECHO_N "(cached) $ECHO_C" >&6 6561else 6562 cat >conftest.$ac_ext <<_ACEOF 6563 program main 6564#ifndef __GNUC__ 6565 choke me 6566#endif 6567 6568 end 6569_ACEOF 6570rm -f conftest.$ac_objext 6571if { (ac_try="$ac_compile" 6572case "(($ac_try" in 6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6574 *) ac_try_echo=$ac_try;; 6575esac 6576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6577 (eval "$ac_compile") 2>conftest.er1 6578 ac_status=$? 6579 grep -v '^ *+' conftest.er1 >conftest.err 6580 rm -f conftest.er1 6581 cat conftest.err >&5 6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6583 (exit $ac_status); } && { 6584 test -z "$ac_f77_werror_flag" || 6585 test ! -s conftest.err 6586 } && test -s conftest.$ac_objext; then 6587 ac_compiler_gnu=yes 6588else 6589 echo "$as_me: failed program was:" >&5 6590sed 's/^/| /' conftest.$ac_ext >&5 6591 6592 ac_compiler_gnu=no 6593fi 6594 6595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6596ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6597 6598fi 6599{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6600echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6601ac_ext=$ac_save_ext 6602ac_test_FFLAGS=${FFLAGS+set} 6603ac_save_FFLAGS=$FFLAGS 6604FFLAGS= 6605{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6606echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6607if test "${ac_cv_prog_f77_g+set}" = set; then 6608 echo $ECHO_N "(cached) $ECHO_C" >&6 6609else 6610 FFLAGS=-g 6611cat >conftest.$ac_ext <<_ACEOF 6612 program main 6613 6614 end 6615_ACEOF 6616rm -f conftest.$ac_objext 6617if { (ac_try="$ac_compile" 6618case "(($ac_try" in 6619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6620 *) ac_try_echo=$ac_try;; 6621esac 6622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6623 (eval "$ac_compile") 2>conftest.er1 6624 ac_status=$? 6625 grep -v '^ *+' conftest.er1 >conftest.err 6626 rm -f conftest.er1 6627 cat conftest.err >&5 6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6629 (exit $ac_status); } && { 6630 test -z "$ac_f77_werror_flag" || 6631 test ! -s conftest.err 6632 } && test -s conftest.$ac_objext; then 6633 ac_cv_prog_f77_g=yes 6634else 6635 echo "$as_me: failed program was:" >&5 6636sed 's/^/| /' conftest.$ac_ext >&5 6637 6638 ac_cv_prog_f77_g=no 6639fi 6640 6641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6642 6643fi 6644{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6645echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6646if test "$ac_test_FFLAGS" = set; then 6647 FFLAGS=$ac_save_FFLAGS 6648elif test $ac_cv_prog_f77_g = yes; then 6649 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6650 FFLAGS="-g -O2" 6651 else 6652 FFLAGS="-g" 6653 fi 6654else 6655 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6656 FFLAGS="-O2" 6657 else 6658 FFLAGS= 6659 fi 6660fi 6661 6662G77=`test $ac_compiler_gnu = yes && echo yes` 6663ac_ext=c 6664ac_cpp='$CPP $CPPFLAGS' 6665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6667ac_compiler_gnu=$ac_cv_c_compiler_gnu 6668 6669 6670 6671# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6672 6673# find the maximum length of command line arguments 6674{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6675echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6676if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6677 echo $ECHO_N "(cached) $ECHO_C" >&6 6678else 6679 i=0 6680 teststring="ABCD" 6681 6682 case $build_os in 6683 msdosdjgpp*) 6684 # On DJGPP, this test can blow up pretty badly due to problems in libc 6685 # (any single argument exceeding 2000 bytes causes a buffer overrun 6686 # during glob expansion). Even if it were fixed, the result of this 6687 # check would be larger than it should be. 6688 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6689 ;; 6690 6691 gnu*) 6692 # Under GNU Hurd, this test is not required because there is 6693 # no limit to the length of command line arguments. 6694 # Libtool will interpret -1 as no limit whatsoever 6695 lt_cv_sys_max_cmd_len=-1; 6696 ;; 6697 6698 cygwin* | mingw*) 6699 # On Win9x/ME, this test blows up -- it succeeds, but takes 6700 # about 5 minutes as the teststring grows exponentially. 6701 # Worse, since 9x/ME are not pre-emptively multitasking, 6702 # you end up with a "frozen" computer, even though with patience 6703 # the test eventually succeeds (with a max line length of 256k). 6704 # Instead, let's just punt: use the minimum linelength reported by 6705 # all of the supported platforms: 8192 (on NT/2K/XP). 6706 lt_cv_sys_max_cmd_len=8192; 6707 ;; 6708 6709 amigaos*) 6710 # On AmigaOS with pdksh, this test takes hours, literally. 6711 # So we just punt and use a minimum line length of 8192. 6712 lt_cv_sys_max_cmd_len=8192; 6713 ;; 6714 6715 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6716 # This has been around since 386BSD, at least. Likely further. 6717 if test -x /sbin/sysctl; then 6718 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6719 elif test -x /usr/sbin/sysctl; then 6720 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6721 else 6722 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6723 fi 6724 # And add a safety zone 6725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6727 ;; 6728 6729 interix*) 6730 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6731 lt_cv_sys_max_cmd_len=196608 6732 ;; 6733 6734 osf*) 6735 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6736 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6737 # nice to cause kernel panics so lets avoid the loop below. 6738 # First set a reasonable default. 6739 lt_cv_sys_max_cmd_len=16384 6740 # 6741 if test -x /sbin/sysconfig; then 6742 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6743 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6744 esac 6745 fi 6746 ;; 6747 sco3.2v5*) 6748 lt_cv_sys_max_cmd_len=102400 6749 ;; 6750 sysv5* | sco5v6* | sysv4.2uw2*) 6751 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6752 if test -n "$kargmax"; then 6753 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6754 else 6755 lt_cv_sys_max_cmd_len=32768 6756 fi 6757 ;; 6758 *) 6759 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6760 if test -n "$lt_cv_sys_max_cmd_len"; then 6761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6763 else 6764 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6765 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6766 = "XX$teststring") >/dev/null 2>&1 && 6767 new_result=`expr "X$teststring" : ".*" 2>&1` && 6768 lt_cv_sys_max_cmd_len=$new_result && 6769 test $i != 17 # 1/2 MB should be enough 6770 do 6771 i=`expr $i + 1` 6772 teststring=$teststring$teststring 6773 done 6774 teststring= 6775 # Add a significant safety factor because C++ compilers can tack on massive 6776 # amounts of additional arguments before passing them to the linker. 6777 # It appears as though 1/2 is a usable value. 6778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6779 fi 6780 ;; 6781 esac 6782 6783fi 6784 6785if test -n $lt_cv_sys_max_cmd_len ; then 6786 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6787echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6788else 6789 { echo "$as_me:$LINENO: result: none" >&5 6790echo "${ECHO_T}none" >&6; } 6791fi 6792 6793 6794 6795 6796 6797# Check for command to grab the raw symbol name followed by C symbol from nm. 6798{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6799echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6800if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6801 echo $ECHO_N "(cached) $ECHO_C" >&6 6802else 6803 6804# These are sane defaults that work on at least a few old systems. 6805# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6806 6807# Character class describing NM global symbol codes. 6808symcode='[BCDEGRST]' 6809 6810# Regexp to match symbols that can be accessed directly from C. 6811sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6812 6813# Transform an extracted symbol line into a proper C declaration 6814lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6815 6816# Transform an extracted symbol line into symbol name and symbol address 6817lt_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'" 6818 6819# Define system-specific variables. 6820case $host_os in 6821aix*) 6822 symcode='[BCDT]' 6823 ;; 6824cygwin* | mingw* | pw32*) 6825 symcode='[ABCDGISTW]' 6826 ;; 6827hpux*) # Its linker distinguishes data from code symbols 6828 if test "$host_cpu" = ia64; then 6829 symcode='[ABCDEGRST]' 6830 fi 6831 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6832 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'" 6833 ;; 6834linux* | k*bsd*-gnu) 6835 if test "$host_cpu" = ia64; then 6836 symcode='[ABCDGIRSTW]' 6837 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6838 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'" 6839 fi 6840 ;; 6841irix* | nonstopux*) 6842 symcode='[BCDEGRST]' 6843 ;; 6844osf*) 6845 symcode='[BCDEGQRST]' 6846 ;; 6847solaris*) 6848 symcode='[BDRT]' 6849 ;; 6850sco3.2v5*) 6851 symcode='[DT]' 6852 ;; 6853sysv4.2uw2*) 6854 symcode='[DT]' 6855 ;; 6856sysv5* | sco5v6* | unixware* | OpenUNIX*) 6857 symcode='[ABDT]' 6858 ;; 6859sysv4) 6860 symcode='[DFNSTU]' 6861 ;; 6862esac 6863 6864# Handle CRLF in mingw tool chain 6865opt_cr= 6866case $build_os in 6867mingw*) 6868 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6869 ;; 6870esac 6871 6872# If we're using GNU nm, then use its standard symbol codes. 6873case `$NM -V 2>&1` in 6874*GNU* | *'with BFD'*) 6875 symcode='[ABCDGIRSTW]' ;; 6876esac 6877 6878# Try without a prefix undercore, then with it. 6879for ac_symprfx in "" "_"; do 6880 6881 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6882 symxfrm="\\1 $ac_symprfx\\2 \\2" 6883 6884 # Write the raw and C identifiers. 6885 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6886 6887 # Check to see that the pipe works correctly. 6888 pipe_works=no 6889 6890 rm -f conftest* 6891 cat > conftest.$ac_ext <<EOF 6892#ifdef __cplusplus 6893extern "C" { 6894#endif 6895char nm_test_var; 6896void nm_test_func(){} 6897#ifdef __cplusplus 6898} 6899#endif 6900int main(){nm_test_var='a';nm_test_func();return(0);} 6901EOF 6902 6903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6904 (eval $ac_compile) 2>&5 6905 ac_status=$? 6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6907 (exit $ac_status); }; then 6908 # Now try to grab the symbols. 6909 nlist=conftest.nm 6910 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6911 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6912 ac_status=$? 6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6914 (exit $ac_status); } && test -s "$nlist"; then 6915 # Try sorting and uniquifying the output. 6916 if sort "$nlist" | uniq > "$nlist"T; then 6917 mv -f "$nlist"T "$nlist" 6918 else 6919 rm -f "$nlist"T 6920 fi 6921 6922 # Make sure that we snagged all the symbols we need. 6923 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6924 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6925 cat <<EOF > conftest.$ac_ext 6926#ifdef __cplusplus 6927extern "C" { 6928#endif 6929 6930EOF 6931 # Now generate the symbol file. 6932 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6933 6934 cat <<EOF >> conftest.$ac_ext 6935#if defined (__STDC__) && __STDC__ 6936# define lt_ptr_t void * 6937#else 6938# define lt_ptr_t char * 6939# define const 6940#endif 6941 6942/* The mapping between symbol names and symbols. */ 6943const struct { 6944 const char *name; 6945 lt_ptr_t address; 6946} 6947lt_preloaded_symbols[] = 6948{ 6949EOF 6950 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6951 cat <<\EOF >> conftest.$ac_ext 6952 {0, (lt_ptr_t) 0} 6953}; 6954 6955#ifdef __cplusplus 6956} 6957#endif 6958EOF 6959 # Now try linking the two files. 6960 mv conftest.$ac_objext conftstm.$ac_objext 6961 lt_save_LIBS="$LIBS" 6962 lt_save_CFLAGS="$CFLAGS" 6963 LIBS="conftstm.$ac_objext" 6964 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6966 (eval $ac_link) 2>&5 6967 ac_status=$? 6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6969 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6970 pipe_works=yes 6971 fi 6972 LIBS="$lt_save_LIBS" 6973 CFLAGS="$lt_save_CFLAGS" 6974 else 6975 echo "cannot find nm_test_func in $nlist" >&5 6976 fi 6977 else 6978 echo "cannot find nm_test_var in $nlist" >&5 6979 fi 6980 else 6981 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6982 fi 6983 else 6984 echo "$progname: failed program was:" >&5 6985 cat conftest.$ac_ext >&5 6986 fi 6987 rm -f conftest* conftst* 6988 6989 # Do not use the global_symbol_pipe unless it works. 6990 if test "$pipe_works" = yes; then 6991 break 6992 else 6993 lt_cv_sys_global_symbol_pipe= 6994 fi 6995done 6996 6997fi 6998 6999if test -z "$lt_cv_sys_global_symbol_pipe"; then 7000 lt_cv_sys_global_symbol_to_cdecl= 7001fi 7002if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7003 { echo "$as_me:$LINENO: result: failed" >&5 7004echo "${ECHO_T}failed" >&6; } 7005else 7006 { echo "$as_me:$LINENO: result: ok" >&5 7007echo "${ECHO_T}ok" >&6; } 7008fi 7009 7010{ echo "$as_me:$LINENO: checking for objdir" >&5 7011echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 7012if test "${lt_cv_objdir+set}" = set; then 7013 echo $ECHO_N "(cached) $ECHO_C" >&6 7014else 7015 rm -f .libs 2>/dev/null 7016mkdir .libs 2>/dev/null 7017if test -d .libs; then 7018 lt_cv_objdir=.libs 7019else 7020 # MS-DOS does not allow filenames that begin with a dot. 7021 lt_cv_objdir=_libs 7022fi 7023rmdir .libs 2>/dev/null 7024fi 7025{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7026echo "${ECHO_T}$lt_cv_objdir" >&6; } 7027objdir=$lt_cv_objdir 7028 7029 7030 7031 7032 7033case $host_os in 7034aix3*) 7035 # AIX sometimes has problems with the GCC collect2 program. For some 7036 # reason, if we set the COLLECT_NAMES environment variable, the problems 7037 # vanish in a puff of smoke. 7038 if test "X${COLLECT_NAMES+set}" != Xset; then 7039 COLLECT_NAMES= 7040 export COLLECT_NAMES 7041 fi 7042 ;; 7043esac 7044 7045# Sed substitution that helps us do robust quoting. It backslashifies 7046# metacharacters that are still active within double-quoted strings. 7047Xsed='sed -e 1s/^X//' 7048sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7049 7050# Same as above, but do not quote variable references. 7051double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7052 7053# Sed substitution to delay expansion of an escaped shell variable in a 7054# double_quote_subst'ed string. 7055delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7056 7057# Sed substitution to avoid accidental globbing in evaled expressions 7058no_glob_subst='s/\*/\\\*/g' 7059 7060# Constants: 7061rm="rm -f" 7062 7063# Global variables: 7064default_ofile=libtool 7065can_build_shared=yes 7066 7067# All known linkers require a `.a' archive for static linking (except MSVC, 7068# which needs '.lib'). 7069libext=a 7070ltmain="$ac_aux_dir/ltmain.sh" 7071ofile="$default_ofile" 7072with_gnu_ld="$lt_cv_prog_gnu_ld" 7073 7074if test -n "$ac_tool_prefix"; then 7075 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7076set dummy ${ac_tool_prefix}ar; ac_word=$2 7077{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7079if test "${ac_cv_prog_AR+set}" = set; then 7080 echo $ECHO_N "(cached) $ECHO_C" >&6 7081else 7082 if test -n "$AR"; then 7083 ac_cv_prog_AR="$AR" # Let the user override the test. 7084else 7085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7086for as_dir in $PATH 7087do 7088 IFS=$as_save_IFS 7089 test -z "$as_dir" && as_dir=. 7090 for ac_exec_ext in '' $ac_executable_extensions; do 7091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7092 ac_cv_prog_AR="${ac_tool_prefix}ar" 7093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7094 break 2 7095 fi 7096done 7097done 7098IFS=$as_save_IFS 7099 7100fi 7101fi 7102AR=$ac_cv_prog_AR 7103if test -n "$AR"; then 7104 { echo "$as_me:$LINENO: result: $AR" >&5 7105echo "${ECHO_T}$AR" >&6; } 7106else 7107 { echo "$as_me:$LINENO: result: no" >&5 7108echo "${ECHO_T}no" >&6; } 7109fi 7110 7111 7112fi 7113if test -z "$ac_cv_prog_AR"; then 7114 ac_ct_AR=$AR 7115 # Extract the first word of "ar", so it can be a program name with args. 7116set dummy ar; ac_word=$2 7117{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7119if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7120 echo $ECHO_N "(cached) $ECHO_C" >&6 7121else 7122 if test -n "$ac_ct_AR"; then 7123 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7124else 7125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7126for as_dir in $PATH 7127do 7128 IFS=$as_save_IFS 7129 test -z "$as_dir" && as_dir=. 7130 for ac_exec_ext in '' $ac_executable_extensions; do 7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7132 ac_cv_prog_ac_ct_AR="ar" 7133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7134 break 2 7135 fi 7136done 7137done 7138IFS=$as_save_IFS 7139 7140fi 7141fi 7142ac_ct_AR=$ac_cv_prog_ac_ct_AR 7143if test -n "$ac_ct_AR"; then 7144 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7145echo "${ECHO_T}$ac_ct_AR" >&6; } 7146else 7147 { echo "$as_me:$LINENO: result: no" >&5 7148echo "${ECHO_T}no" >&6; } 7149fi 7150 7151 if test "x$ac_ct_AR" = x; then 7152 AR="false" 7153 else 7154 case $cross_compiling:$ac_tool_warned in 7155yes:) 7156{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7157whose name does not start with the host triplet. If you think this 7158configuration is useful to you, please write to autoconf@gnu.org." >&5 7159echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7160whose name does not start with the host triplet. If you think this 7161configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7162ac_tool_warned=yes ;; 7163esac 7164 AR=$ac_ct_AR 7165 fi 7166else 7167 AR="$ac_cv_prog_AR" 7168fi 7169 7170if test -n "$ac_tool_prefix"; then 7171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7172set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7173{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7175if test "${ac_cv_prog_RANLIB+set}" = set; then 7176 echo $ECHO_N "(cached) $ECHO_C" >&6 7177else 7178 if test -n "$RANLIB"; then 7179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7180else 7181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7182for as_dir in $PATH 7183do 7184 IFS=$as_save_IFS 7185 test -z "$as_dir" && as_dir=. 7186 for ac_exec_ext in '' $ac_executable_extensions; do 7187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7190 break 2 7191 fi 7192done 7193done 7194IFS=$as_save_IFS 7195 7196fi 7197fi 7198RANLIB=$ac_cv_prog_RANLIB 7199if test -n "$RANLIB"; then 7200 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7201echo "${ECHO_T}$RANLIB" >&6; } 7202else 7203 { echo "$as_me:$LINENO: result: no" >&5 7204echo "${ECHO_T}no" >&6; } 7205fi 7206 7207 7208fi 7209if test -z "$ac_cv_prog_RANLIB"; then 7210 ac_ct_RANLIB=$RANLIB 7211 # Extract the first word of "ranlib", so it can be a program name with args. 7212set dummy ranlib; ac_word=$2 7213{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7215if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7216 echo $ECHO_N "(cached) $ECHO_C" >&6 7217else 7218 if test -n "$ac_ct_RANLIB"; then 7219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7220else 7221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7222for as_dir in $PATH 7223do 7224 IFS=$as_save_IFS 7225 test -z "$as_dir" && as_dir=. 7226 for ac_exec_ext in '' $ac_executable_extensions; do 7227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7228 ac_cv_prog_ac_ct_RANLIB="ranlib" 7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7230 break 2 7231 fi 7232done 7233done 7234IFS=$as_save_IFS 7235 7236fi 7237fi 7238ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7239if test -n "$ac_ct_RANLIB"; then 7240 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7241echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7242else 7243 { echo "$as_me:$LINENO: result: no" >&5 7244echo "${ECHO_T}no" >&6; } 7245fi 7246 7247 if test "x$ac_ct_RANLIB" = x; then 7248 RANLIB=":" 7249 else 7250 case $cross_compiling:$ac_tool_warned in 7251yes:) 7252{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7253whose name does not start with the host triplet. If you think this 7254configuration is useful to you, please write to autoconf@gnu.org." >&5 7255echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7256whose name does not start with the host triplet. If you think this 7257configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7258ac_tool_warned=yes ;; 7259esac 7260 RANLIB=$ac_ct_RANLIB 7261 fi 7262else 7263 RANLIB="$ac_cv_prog_RANLIB" 7264fi 7265 7266if test -n "$ac_tool_prefix"; then 7267 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7268set dummy ${ac_tool_prefix}strip; ac_word=$2 7269{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7271if test "${ac_cv_prog_STRIP+set}" = set; then 7272 echo $ECHO_N "(cached) $ECHO_C" >&6 7273else 7274 if test -n "$STRIP"; then 7275 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7276else 7277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7278for as_dir in $PATH 7279do 7280 IFS=$as_save_IFS 7281 test -z "$as_dir" && as_dir=. 7282 for ac_exec_ext in '' $ac_executable_extensions; do 7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7284 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7286 break 2 7287 fi 7288done 7289done 7290IFS=$as_save_IFS 7291 7292fi 7293fi 7294STRIP=$ac_cv_prog_STRIP 7295if test -n "$STRIP"; then 7296 { echo "$as_me:$LINENO: result: $STRIP" >&5 7297echo "${ECHO_T}$STRIP" >&6; } 7298else 7299 { echo "$as_me:$LINENO: result: no" >&5 7300echo "${ECHO_T}no" >&6; } 7301fi 7302 7303 7304fi 7305if test -z "$ac_cv_prog_STRIP"; then 7306 ac_ct_STRIP=$STRIP 7307 # Extract the first word of "strip", so it can be a program name with args. 7308set dummy strip; ac_word=$2 7309{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7311if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7312 echo $ECHO_N "(cached) $ECHO_C" >&6 7313else 7314 if test -n "$ac_ct_STRIP"; then 7315 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7316else 7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7318for as_dir in $PATH 7319do 7320 IFS=$as_save_IFS 7321 test -z "$as_dir" && as_dir=. 7322 for ac_exec_ext in '' $ac_executable_extensions; do 7323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7324 ac_cv_prog_ac_ct_STRIP="strip" 7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7326 break 2 7327 fi 7328done 7329done 7330IFS=$as_save_IFS 7331 7332fi 7333fi 7334ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7335if test -n "$ac_ct_STRIP"; then 7336 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7337echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7338else 7339 { echo "$as_me:$LINENO: result: no" >&5 7340echo "${ECHO_T}no" >&6; } 7341fi 7342 7343 if test "x$ac_ct_STRIP" = x; then 7344 STRIP=":" 7345 else 7346 case $cross_compiling:$ac_tool_warned in 7347yes:) 7348{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7349whose name does not start with the host triplet. If you think this 7350configuration is useful to you, please write to autoconf@gnu.org." >&5 7351echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7352whose name does not start with the host triplet. If you think this 7353configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7354ac_tool_warned=yes ;; 7355esac 7356 STRIP=$ac_ct_STRIP 7357 fi 7358else 7359 STRIP="$ac_cv_prog_STRIP" 7360fi 7361 7362 7363old_CC="$CC" 7364old_CFLAGS="$CFLAGS" 7365 7366# Set sane defaults for various variables 7367test -z "$AR" && AR=ar 7368test -z "$AR_FLAGS" && AR_FLAGS=cru 7369test -z "$AS" && AS=as 7370test -z "$CC" && CC=cc 7371test -z "$LTCC" && LTCC=$CC 7372test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7373test -z "$DLLTOOL" && DLLTOOL=dlltool 7374test -z "$LD" && LD=ld 7375test -z "$LN_S" && LN_S="ln -s" 7376test -z "$MAGIC_CMD" && MAGIC_CMD=file 7377test -z "$NM" && NM=nm 7378test -z "$SED" && SED=sed 7379test -z "$OBJDUMP" && OBJDUMP=objdump 7380test -z "$RANLIB" && RANLIB=: 7381test -z "$STRIP" && STRIP=: 7382test -z "$ac_objext" && ac_objext=o 7383 7384# Determine commands to create old-style static archives. 7385old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7386old_postinstall_cmds='chmod 644 $oldlib' 7387old_postuninstall_cmds= 7388 7389if test -n "$RANLIB"; then 7390 case $host_os in 7391 openbsd*) 7392 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7393 ;; 7394 *) 7395 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7396 ;; 7397 esac 7398 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7399fi 7400 7401for cc_temp in $compiler""; do 7402 case $cc_temp in 7403 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7404 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7405 \-*) ;; 7406 *) break;; 7407 esac 7408done 7409cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7410 7411 7412# Only perform the check for file, if the check method requires it 7413case $deplibs_check_method in 7414file_magic*) 7415 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7416 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7417echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7418if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7419 echo $ECHO_N "(cached) $ECHO_C" >&6 7420else 7421 case $MAGIC_CMD in 7422[\\/*] | ?:[\\/]*) 7423 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7424 ;; 7425*) 7426 lt_save_MAGIC_CMD="$MAGIC_CMD" 7427 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7428 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7429 for ac_dir in $ac_dummy; do 7430 IFS="$lt_save_ifs" 7431 test -z "$ac_dir" && ac_dir=. 7432 if test -f $ac_dir/${ac_tool_prefix}file; then 7433 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7434 if test -n "$file_magic_test_file"; then 7435 case $deplibs_check_method in 7436 "file_magic "*) 7437 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7438 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7439 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7440 $EGREP "$file_magic_regex" > /dev/null; then 7441 : 7442 else 7443 cat <<EOF 1>&2 7444 7445*** Warning: the command libtool uses to detect shared libraries, 7446*** $file_magic_cmd, produces output that libtool cannot recognize. 7447*** The result is that libtool may fail to recognize shared libraries 7448*** as such. This will affect the creation of libtool libraries that 7449*** depend on shared libraries, but programs linked with such libtool 7450*** libraries will work regardless of this problem. Nevertheless, you 7451*** may want to report the problem to your system manager and/or to 7452*** bug-libtool@gnu.org 7453 7454EOF 7455 fi ;; 7456 esac 7457 fi 7458 break 7459 fi 7460 done 7461 IFS="$lt_save_ifs" 7462 MAGIC_CMD="$lt_save_MAGIC_CMD" 7463 ;; 7464esac 7465fi 7466 7467MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7468if test -n "$MAGIC_CMD"; then 7469 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7470echo "${ECHO_T}$MAGIC_CMD" >&6; } 7471else 7472 { echo "$as_me:$LINENO: result: no" >&5 7473echo "${ECHO_T}no" >&6; } 7474fi 7475 7476if test -z "$lt_cv_path_MAGIC_CMD"; then 7477 if test -n "$ac_tool_prefix"; then 7478 { echo "$as_me:$LINENO: checking for file" >&5 7479echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7480if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7481 echo $ECHO_N "(cached) $ECHO_C" >&6 7482else 7483 case $MAGIC_CMD in 7484[\\/*] | ?:[\\/]*) 7485 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7486 ;; 7487*) 7488 lt_save_MAGIC_CMD="$MAGIC_CMD" 7489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7490 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7491 for ac_dir in $ac_dummy; do 7492 IFS="$lt_save_ifs" 7493 test -z "$ac_dir" && ac_dir=. 7494 if test -f $ac_dir/file; then 7495 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7496 if test -n "$file_magic_test_file"; then 7497 case $deplibs_check_method in 7498 "file_magic "*) 7499 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7500 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7501 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7502 $EGREP "$file_magic_regex" > /dev/null; then 7503 : 7504 else 7505 cat <<EOF 1>&2 7506 7507*** Warning: the command libtool uses to detect shared libraries, 7508*** $file_magic_cmd, produces output that libtool cannot recognize. 7509*** The result is that libtool may fail to recognize shared libraries 7510*** as such. This will affect the creation of libtool libraries that 7511*** depend on shared libraries, but programs linked with such libtool 7512*** libraries will work regardless of this problem. Nevertheless, you 7513*** may want to report the problem to your system manager and/or to 7514*** bug-libtool@gnu.org 7515 7516EOF 7517 fi ;; 7518 esac 7519 fi 7520 break 7521 fi 7522 done 7523 IFS="$lt_save_ifs" 7524 MAGIC_CMD="$lt_save_MAGIC_CMD" 7525 ;; 7526esac 7527fi 7528 7529MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7530if test -n "$MAGIC_CMD"; then 7531 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7532echo "${ECHO_T}$MAGIC_CMD" >&6; } 7533else 7534 { echo "$as_me:$LINENO: result: no" >&5 7535echo "${ECHO_T}no" >&6; } 7536fi 7537 7538 else 7539 MAGIC_CMD=: 7540 fi 7541fi 7542 7543 fi 7544 ;; 7545esac 7546 7547enable_dlopen=no 7548enable_win32_dll=no 7549 7550# Check whether --enable-libtool-lock was given. 7551if test "${enable_libtool_lock+set}" = set; then 7552 enableval=$enable_libtool_lock; 7553fi 7554 7555test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7556 7557 7558# Check whether --with-pic was given. 7559if test "${with_pic+set}" = set; then 7560 withval=$with_pic; pic_mode="$withval" 7561else 7562 pic_mode=default 7563fi 7564 7565test -z "$pic_mode" && pic_mode=default 7566 7567# Use C for the default configuration in the libtool script 7568tagname= 7569lt_save_CC="$CC" 7570ac_ext=c 7571ac_cpp='$CPP $CPPFLAGS' 7572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7574ac_compiler_gnu=$ac_cv_c_compiler_gnu 7575 7576 7577# Source file extension for C test sources. 7578ac_ext=c 7579 7580# Object file extension for compiled C test sources. 7581objext=o 7582objext=$objext 7583 7584# Code to be used in simple compile tests 7585lt_simple_compile_test_code="int some_variable = 0;" 7586 7587# Code to be used in simple link tests 7588lt_simple_link_test_code='int main(){return(0);}' 7589 7590 7591# If no C compiler was specified, use CC. 7592LTCC=${LTCC-"$CC"} 7593 7594# If no C compiler flags were specified, use CFLAGS. 7595LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7596 7597# Allow CC to be a program name with arguments. 7598compiler=$CC 7599 7600 7601# save warnings/boilerplate of simple test code 7602ac_outfile=conftest.$ac_objext 7603echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7604eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7605_lt_compiler_boilerplate=`cat conftest.err` 7606$rm conftest* 7607 7608ac_outfile=conftest.$ac_objext 7609echo "$lt_simple_link_test_code" >conftest.$ac_ext 7610eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7611_lt_linker_boilerplate=`cat conftest.err` 7612$rm conftest* 7613 7614 7615 7616lt_prog_compiler_no_builtin_flag= 7617 7618if test "$GCC" = yes; then 7619 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7620 7621 7622{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7623echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7624if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7625 echo $ECHO_N "(cached) $ECHO_C" >&6 7626else 7627 lt_cv_prog_compiler_rtti_exceptions=no 7628 ac_outfile=conftest.$ac_objext 7629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7630 lt_compiler_flag="-fno-rtti -fno-exceptions" 7631 # Insert the option either (1) after the last *FLAGS variable, or 7632 # (2) before a word containing "conftest.", or (3) at the end. 7633 # Note that $ac_compile itself does not contain backslashes and begins 7634 # with a dollar sign (not a hyphen), so the echo should work correctly. 7635 # The option is referenced via a variable to avoid confusing sed. 7636 lt_compile=`echo "$ac_compile" | $SED \ 7637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7639 -e 's:$: $lt_compiler_flag:'` 7640 (eval echo "\"\$as_me:7640: $lt_compile\"" >&5) 7641 (eval "$lt_compile" 2>conftest.err) 7642 ac_status=$? 7643 cat conftest.err >&5 7644 echo "$as_me:7644: \$? = $ac_status" >&5 7645 if (exit $ac_status) && test -s "$ac_outfile"; then 7646 # The compiler can only warn and ignore the option if not recognized 7647 # So say no if there are warnings other than the usual output. 7648 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7651 lt_cv_prog_compiler_rtti_exceptions=yes 7652 fi 7653 fi 7654 $rm conftest* 7655 7656fi 7657{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7658echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7659 7660if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7661 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7662else 7663 : 7664fi 7665 7666fi 7667 7668lt_prog_compiler_wl= 7669lt_prog_compiler_pic= 7670lt_prog_compiler_static= 7671 7672{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7673echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7674 7675 if test "$GCC" = yes; then 7676 lt_prog_compiler_wl='-Wl,' 7677 lt_prog_compiler_static='-static' 7678 7679 case $host_os in 7680 aix*) 7681 # All AIX code is PIC. 7682 if test "$host_cpu" = ia64; then 7683 # AIX 5 now supports IA64 processor 7684 lt_prog_compiler_static='-Bstatic' 7685 fi 7686 ;; 7687 7688 amigaos*) 7689 # FIXME: we need at least 68020 code to build shared libraries, but 7690 # adding the `-m68020' flag to GCC prevents building anything better, 7691 # like `-m68040'. 7692 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7693 ;; 7694 7695 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7696 # PIC is the default for these OSes. 7697 ;; 7698 7699 mingw* | cygwin* | pw32* | os2*) 7700 # This hack is so that the source file can tell whether it is being 7701 # built for inclusion in a dll (and should export symbols for example). 7702 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7703 # (--disable-auto-import) libraries 7704 lt_prog_compiler_pic='-DDLL_EXPORT' 7705 ;; 7706 7707 darwin* | rhapsody*) 7708 # PIC is the default on this platform 7709 # Common symbols not allowed in MH_DYLIB files 7710 lt_prog_compiler_pic='-fno-common' 7711 ;; 7712 7713 interix[3-9]*) 7714 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7715 # Instead, we relocate shared libraries at runtime. 7716 ;; 7717 7718 msdosdjgpp*) 7719 # Just because we use GCC doesn't mean we suddenly get shared libraries 7720 # on systems that don't support them. 7721 lt_prog_compiler_can_build_shared=no 7722 enable_shared=no 7723 ;; 7724 7725 sysv4*MP*) 7726 if test -d /usr/nec; then 7727 lt_prog_compiler_pic=-Kconform_pic 7728 fi 7729 ;; 7730 7731 hpux*) 7732 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7733 # not for PA HP-UX. 7734 case $host_cpu in 7735 hppa*64*|ia64*) 7736 # +Z the default 7737 ;; 7738 *) 7739 lt_prog_compiler_pic='-fPIC' 7740 ;; 7741 esac 7742 ;; 7743 7744 *) 7745 lt_prog_compiler_pic='-fPIC' 7746 ;; 7747 esac 7748 else 7749 # PORTME Check for flag to pass linker flags through the system compiler. 7750 case $host_os in 7751 aix*) 7752 lt_prog_compiler_wl='-Wl,' 7753 if test "$host_cpu" = ia64; then 7754 # AIX 5 now supports IA64 processor 7755 lt_prog_compiler_static='-Bstatic' 7756 else 7757 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7758 fi 7759 ;; 7760 darwin*) 7761 # PIC is the default on this platform 7762 # Common symbols not allowed in MH_DYLIB files 7763 case $cc_basename in 7764 xlc*) 7765 lt_prog_compiler_pic='-qnocommon' 7766 lt_prog_compiler_wl='-Wl,' 7767 ;; 7768 esac 7769 ;; 7770 7771 mingw* | cygwin* | pw32* | os2*) 7772 # This hack is so that the source file can tell whether it is being 7773 # built for inclusion in a dll (and should export symbols for example). 7774 lt_prog_compiler_pic='-DDLL_EXPORT' 7775 ;; 7776 7777 hpux9* | hpux10* | hpux11*) 7778 lt_prog_compiler_wl='-Wl,' 7779 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7780 # not for PA HP-UX. 7781 case $host_cpu in 7782 hppa*64*|ia64*) 7783 # +Z the default 7784 ;; 7785 *) 7786 lt_prog_compiler_pic='+Z' 7787 ;; 7788 esac 7789 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7790 lt_prog_compiler_static='${wl}-a ${wl}archive' 7791 ;; 7792 7793 irix5* | irix6* | nonstopux*) 7794 lt_prog_compiler_wl='-Wl,' 7795 # PIC (with -KPIC) is the default. 7796 lt_prog_compiler_static='-non_shared' 7797 ;; 7798 7799 newsos6) 7800 lt_prog_compiler_pic='-KPIC' 7801 lt_prog_compiler_static='-Bstatic' 7802 ;; 7803 7804 linux* | k*bsd*-gnu) 7805 case $cc_basename in 7806 icc* | ecc*) 7807 lt_prog_compiler_wl='-Wl,' 7808 lt_prog_compiler_pic='-KPIC' 7809 lt_prog_compiler_static='-static' 7810 ;; 7811 pgcc* | pgf77* | pgf90* | pgf95*) 7812 # Portland Group compilers (*not* the Pentium gcc compiler, 7813 # which looks to be a dead project) 7814 lt_prog_compiler_wl='-Wl,' 7815 lt_prog_compiler_pic='-fpic' 7816 lt_prog_compiler_static='-Bstatic' 7817 ;; 7818 ccc*) 7819 lt_prog_compiler_wl='-Wl,' 7820 # All Alpha code is PIC. 7821 lt_prog_compiler_static='-non_shared' 7822 ;; 7823 *) 7824 case `$CC -V 2>&1 | sed 5q` in 7825 *Sun\ C*) 7826 # Sun C 5.9 7827 lt_prog_compiler_pic='-KPIC' 7828 lt_prog_compiler_static='-Bstatic' 7829 lt_prog_compiler_wl='-Wl,' 7830 ;; 7831 *Sun\ F*) 7832 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7833 lt_prog_compiler_pic='-KPIC' 7834 lt_prog_compiler_static='-Bstatic' 7835 lt_prog_compiler_wl='' 7836 ;; 7837 esac 7838 ;; 7839 esac 7840 ;; 7841 7842 osf3* | osf4* | osf5*) 7843 lt_prog_compiler_wl='-Wl,' 7844 # All OSF/1 code is PIC. 7845 lt_prog_compiler_static='-non_shared' 7846 ;; 7847 7848 rdos*) 7849 lt_prog_compiler_static='-non_shared' 7850 ;; 7851 7852 solaris*) 7853 lt_prog_compiler_pic='-KPIC' 7854 lt_prog_compiler_static='-Bstatic' 7855 case $cc_basename in 7856 f77* | f90* | f95*) 7857 lt_prog_compiler_wl='-Qoption ld ';; 7858 *) 7859 lt_prog_compiler_wl='-Wl,';; 7860 esac 7861 ;; 7862 7863 sunos4*) 7864 lt_prog_compiler_wl='-Qoption ld ' 7865 lt_prog_compiler_pic='-PIC' 7866 lt_prog_compiler_static='-Bstatic' 7867 ;; 7868 7869 sysv4 | sysv4.2uw2* | sysv4.3*) 7870 lt_prog_compiler_wl='-Wl,' 7871 lt_prog_compiler_pic='-KPIC' 7872 lt_prog_compiler_static='-Bstatic' 7873 ;; 7874 7875 sysv4*MP*) 7876 if test -d /usr/nec ;then 7877 lt_prog_compiler_pic='-Kconform_pic' 7878 lt_prog_compiler_static='-Bstatic' 7879 fi 7880 ;; 7881 7882 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7883 lt_prog_compiler_wl='-Wl,' 7884 lt_prog_compiler_pic='-KPIC' 7885 lt_prog_compiler_static='-Bstatic' 7886 ;; 7887 7888 unicos*) 7889 lt_prog_compiler_wl='-Wl,' 7890 lt_prog_compiler_can_build_shared=no 7891 ;; 7892 7893 uts4*) 7894 lt_prog_compiler_pic='-pic' 7895 lt_prog_compiler_static='-Bstatic' 7896 ;; 7897 7898 *) 7899 lt_prog_compiler_can_build_shared=no 7900 ;; 7901 esac 7902 fi 7903 7904{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7905echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7906 7907# 7908# Check to make sure the PIC flag actually works. 7909# 7910if test -n "$lt_prog_compiler_pic"; then 7911 7912{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7913echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7914if test "${lt_prog_compiler_pic_works+set}" = set; then 7915 echo $ECHO_N "(cached) $ECHO_C" >&6 7916else 7917 lt_prog_compiler_pic_works=no 7918 ac_outfile=conftest.$ac_objext 7919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7920 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7921 # Insert the option either (1) after the last *FLAGS variable, or 7922 # (2) before a word containing "conftest.", or (3) at the end. 7923 # Note that $ac_compile itself does not contain backslashes and begins 7924 # with a dollar sign (not a hyphen), so the echo should work correctly. 7925 # The option is referenced via a variable to avoid confusing sed. 7926 lt_compile=`echo "$ac_compile" | $SED \ 7927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7929 -e 's:$: $lt_compiler_flag:'` 7930 (eval echo "\"\$as_me:7930: $lt_compile\"" >&5) 7931 (eval "$lt_compile" 2>conftest.err) 7932 ac_status=$? 7933 cat conftest.err >&5 7934 echo "$as_me:7934: \$? = $ac_status" >&5 7935 if (exit $ac_status) && test -s "$ac_outfile"; then 7936 # The compiler can only warn and ignore the option if not recognized 7937 # So say no if there are warnings other than the usual output. 7938 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7941 lt_prog_compiler_pic_works=yes 7942 fi 7943 fi 7944 $rm conftest* 7945 7946fi 7947{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7948echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7949 7950if test x"$lt_prog_compiler_pic_works" = xyes; then 7951 case $lt_prog_compiler_pic in 7952 "" | " "*) ;; 7953 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7954 esac 7955else 7956 lt_prog_compiler_pic= 7957 lt_prog_compiler_can_build_shared=no 7958fi 7959 7960fi 7961case $host_os in 7962 # For platforms which do not support PIC, -DPIC is meaningless: 7963 *djgpp*) 7964 lt_prog_compiler_pic= 7965 ;; 7966 *) 7967 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7968 ;; 7969esac 7970 7971# 7972# Check to make sure the static flag actually works. 7973# 7974wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7975{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7976echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7977if test "${lt_prog_compiler_static_works+set}" = set; then 7978 echo $ECHO_N "(cached) $ECHO_C" >&6 7979else 7980 lt_prog_compiler_static_works=no 7981 save_LDFLAGS="$LDFLAGS" 7982 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7983 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7984 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7985 # The linker can only warn and ignore the option if not recognized 7986 # So say no if there are warnings 7987 if test -s conftest.err; then 7988 # Append any errors to the config.log. 7989 cat conftest.err 1>&5 7990 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7992 if diff conftest.exp conftest.er2 >/dev/null; then 7993 lt_prog_compiler_static_works=yes 7994 fi 7995 else 7996 lt_prog_compiler_static_works=yes 7997 fi 7998 fi 7999 $rm conftest* 8000 LDFLAGS="$save_LDFLAGS" 8001 8002fi 8003{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8004echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 8005 8006if test x"$lt_prog_compiler_static_works" = xyes; then 8007 : 8008else 8009 lt_prog_compiler_static= 8010fi 8011 8012 8013{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8014echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 8015if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8016 echo $ECHO_N "(cached) $ECHO_C" >&6 8017else 8018 lt_cv_prog_compiler_c_o=no 8019 $rm -r conftest 2>/dev/null 8020 mkdir conftest 8021 cd conftest 8022 mkdir out 8023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8024 8025 lt_compiler_flag="-o out/conftest2.$ac_objext" 8026 # Insert the option either (1) after the last *FLAGS variable, or 8027 # (2) before a word containing "conftest.", or (3) at the end. 8028 # Note that $ac_compile itself does not contain backslashes and begins 8029 # with a dollar sign (not a hyphen), so the echo should work correctly. 8030 lt_compile=`echo "$ac_compile" | $SED \ 8031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8033 -e 's:$: $lt_compiler_flag:'` 8034 (eval echo "\"\$as_me:8034: $lt_compile\"" >&5) 8035 (eval "$lt_compile" 2>out/conftest.err) 8036 ac_status=$? 8037 cat out/conftest.err >&5 8038 echo "$as_me:8038: \$? = $ac_status" >&5 8039 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8040 then 8041 # The compiler can only warn and ignore the option if not recognized 8042 # So say no if there are warnings 8043 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8046 lt_cv_prog_compiler_c_o=yes 8047 fi 8048 fi 8049 chmod u+w . 2>&5 8050 $rm conftest* 8051 # SGI C++ compiler will create directory out/ii_files/ for 8052 # template instantiation 8053 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8054 $rm out/* && rmdir out 8055 cd .. 8056 rmdir conftest 8057 $rm conftest* 8058 8059fi 8060{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8061echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 8062 8063 8064hard_links="nottested" 8065if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8066 # do not overwrite the value of need_locks provided by the user 8067 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8068echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 8069 hard_links=yes 8070 $rm conftest* 8071 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8072 touch conftest.a 8073 ln conftest.a conftest.b 2>&5 || hard_links=no 8074 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8075 { echo "$as_me:$LINENO: result: $hard_links" >&5 8076echo "${ECHO_T}$hard_links" >&6; } 8077 if test "$hard_links" = no; then 8078 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8079echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8080 need_locks=warn 8081 fi 8082else 8083 need_locks=no 8084fi 8085 8086{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8087echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 8088 8089 runpath_var= 8090 allow_undefined_flag= 8091 enable_shared_with_static_runtimes=no 8092 archive_cmds= 8093 archive_expsym_cmds= 8094 old_archive_From_new_cmds= 8095 old_archive_from_expsyms_cmds= 8096 export_dynamic_flag_spec= 8097 whole_archive_flag_spec= 8098 thread_safe_flag_spec= 8099 hardcode_libdir_flag_spec= 8100 hardcode_libdir_flag_spec_ld= 8101 hardcode_libdir_separator= 8102 hardcode_direct=no 8103 hardcode_minus_L=no 8104 hardcode_shlibpath_var=unsupported 8105 link_all_deplibs=unknown 8106 hardcode_automatic=no 8107 module_cmds= 8108 module_expsym_cmds= 8109 always_export_symbols=no 8110 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8111 # include_expsyms should be a list of space-separated symbols to be *always* 8112 # included in the symbol list 8113 include_expsyms= 8114 # exclude_expsyms can be an extended regexp of symbols to exclude 8115 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8116 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8117 # as well as any symbol that contains `d'. 8118 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 8119 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8120 # platforms (ab)use it in PIC code, but their linkers get confused if 8121 # the symbol is explicitly referenced. Since portable code cannot 8122 # rely on this symbol name, it's probably fine to never include it in 8123 # preloaded symbol tables. 8124 extract_expsyms_cmds= 8125 # Just being paranoid about ensuring that cc_basename is set. 8126 for cc_temp in $compiler""; do 8127 case $cc_temp in 8128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8130 \-*) ;; 8131 *) break;; 8132 esac 8133done 8134cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8135 8136 case $host_os in 8137 cygwin* | mingw* | pw32*) 8138 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8139 # When not using gcc, we currently assume that we are using 8140 # Microsoft Visual C++. 8141 if test "$GCC" != yes; then 8142 with_gnu_ld=no 8143 fi 8144 ;; 8145 interix*) 8146 # we just hope/assume this is gcc and not c89 (= MSVC++) 8147 with_gnu_ld=yes 8148 ;; 8149 openbsd*) 8150 with_gnu_ld=no 8151 ;; 8152 esac 8153 8154 ld_shlibs=yes 8155 if test "$with_gnu_ld" = yes; then 8156 # If archive_cmds runs LD, not CC, wlarc should be empty 8157 wlarc='${wl}' 8158 8159 # Set some defaults for GNU ld with shared library support. These 8160 # are reset later if shared libraries are not supported. Putting them 8161 # here allows them to be overridden if necessary. 8162 runpath_var=LD_RUN_PATH 8163 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8164 export_dynamic_flag_spec='${wl}--export-dynamic' 8165 # ancient GNU ld didn't support --whole-archive et. al. 8166 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8167 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8168 else 8169 whole_archive_flag_spec= 8170 fi 8171 supports_anon_versioning=no 8172 case `$LD -v 2>/dev/null` in 8173 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8174 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8175 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8176 *\ 2.11.*) ;; # other 2.11 versions 8177 *) supports_anon_versioning=yes ;; 8178 esac 8179 8180 # See if GNU ld supports shared libraries. 8181 case $host_os in 8182 aix3* | aix4* | aix5*) 8183 # On AIX/PPC, the GNU linker is very broken 8184 if test "$host_cpu" != ia64; then 8185 ld_shlibs=no 8186 cat <<EOF 1>&2 8187 8188*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8189*** to be unable to reliably create shared libraries on AIX. 8190*** Therefore, libtool is disabling shared libraries support. If you 8191*** really care for shared libraries, you may want to modify your PATH 8192*** so that a non-GNU linker is found, and then restart. 8193 8194EOF 8195 fi 8196 ;; 8197 8198 amigaos*) 8199 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)' 8200 hardcode_libdir_flag_spec='-L$libdir' 8201 hardcode_minus_L=yes 8202 8203 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8204 # that the semantics of dynamic libraries on AmigaOS, at least up 8205 # to version 4, is to share data among multiple programs linked 8206 # with the same dynamic library. Since this doesn't match the 8207 # behavior of shared libraries on other platforms, we can't use 8208 # them. 8209 ld_shlibs=no 8210 ;; 8211 8212 beos*) 8213 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8214 allow_undefined_flag=unsupported 8215 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8216 # support --undefined. This deserves some investigation. FIXME 8217 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8218 else 8219 ld_shlibs=no 8220 fi 8221 ;; 8222 8223 cygwin* | mingw* | pw32*) 8224 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8225 # as there is no search path for DLLs. 8226 hardcode_libdir_flag_spec='-L$libdir' 8227 allow_undefined_flag=unsupported 8228 always_export_symbols=no 8229 enable_shared_with_static_runtimes=yes 8230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8231 8232 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8234 # If the export-symbols file already is a .def file (1st line 8235 # is EXPORTS), use it as is; otherwise, prepend... 8236 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8237 cp $export_symbols $output_objdir/$soname.def; 8238 else 8239 echo EXPORTS > $output_objdir/$soname.def; 8240 cat $export_symbols >> $output_objdir/$soname.def; 8241 fi~ 8242 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8243 else 8244 ld_shlibs=no 8245 fi 8246 ;; 8247 8248 interix[3-9]*) 8249 hardcode_direct=no 8250 hardcode_shlibpath_var=no 8251 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8252 export_dynamic_flag_spec='${wl}-E' 8253 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8254 # Instead, shared libraries are loaded at an image base (0x10000000 by 8255 # default) and relocated if they conflict, which is a slow very memory 8256 # consuming and fragmenting process. To avoid this, we pick a random, 8257 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8258 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8259 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8260 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' 8261 ;; 8262 8263 gnu* | linux* | k*bsd*-gnu) 8264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8265 tmp_addflag= 8266 case $cc_basename,$host_cpu in 8267 pgcc*) # Portland Group C compiler 8268 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' 8269 tmp_addflag=' $pic_flag' 8270 ;; 8271 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8272 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' 8273 tmp_addflag=' $pic_flag -Mnomain' ;; 8274 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8275 tmp_addflag=' -i_dynamic' ;; 8276 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8277 tmp_addflag=' -i_dynamic -nofor_main' ;; 8278 ifc* | ifort*) # Intel Fortran compiler 8279 tmp_addflag=' -nofor_main' ;; 8280 esac 8281 case `$CC -V 2>&1 | sed 5q` in 8282 *Sun\ C*) # Sun C 5.9 8283 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' 8284 tmp_sharedflag='-G' ;; 8285 *Sun\ F*) # Sun Fortran 8.3 8286 tmp_sharedflag='-G' ;; 8287 *) 8288 tmp_sharedflag='-shared' ;; 8289 esac 8290 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8291 8292 if test $supports_anon_versioning = yes; then 8293 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8294 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8295 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8296 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8297 fi 8298 else 8299 ld_shlibs=no 8300 fi 8301 ;; 8302 8303 netbsd*) 8304 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8305 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8306 wlarc= 8307 else 8308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8309 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8310 fi 8311 ;; 8312 8313 solaris*) 8314 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8315 ld_shlibs=no 8316 cat <<EOF 1>&2 8317 8318*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8319*** create shared libraries on Solaris systems. Therefore, libtool 8320*** is disabling shared libraries support. We urge you to upgrade GNU 8321*** binutils to release 2.9.1 or newer. Another option is to modify 8322*** your PATH or compiler configuration so that the native linker is 8323*** used, and then restart. 8324 8325EOF 8326 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8329 else 8330 ld_shlibs=no 8331 fi 8332 ;; 8333 8334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8335 case `$LD -v 2>&1` in 8336 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8337 ld_shlibs=no 8338 cat <<_LT_EOF 1>&2 8339 8340*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8341*** reliably create shared libraries on SCO systems. Therefore, libtool 8342*** is disabling shared libraries support. We urge you to upgrade GNU 8343*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8344*** your PATH or compiler configuration so that the native linker is 8345*** used, and then restart. 8346 8347_LT_EOF 8348 ;; 8349 *) 8350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8351 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8354 else 8355 ld_shlibs=no 8356 fi 8357 ;; 8358 esac 8359 ;; 8360 8361 sunos4*) 8362 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8363 wlarc= 8364 hardcode_direct=yes 8365 hardcode_shlibpath_var=no 8366 ;; 8367 8368 *) 8369 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8371 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8372 else 8373 ld_shlibs=no 8374 fi 8375 ;; 8376 esac 8377 8378 if test "$ld_shlibs" = no; then 8379 runpath_var= 8380 hardcode_libdir_flag_spec= 8381 export_dynamic_flag_spec= 8382 whole_archive_flag_spec= 8383 fi 8384 else 8385 # PORTME fill in a description of your system's linker (not GNU ld) 8386 case $host_os in 8387 aix3*) 8388 allow_undefined_flag=unsupported 8389 always_export_symbols=yes 8390 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' 8391 # Note: this linker hardcodes the directories in LIBPATH if there 8392 # are no directories specified by -L. 8393 hardcode_minus_L=yes 8394 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8395 # Neither direct hardcoding nor static linking is supported with a 8396 # broken collect2. 8397 hardcode_direct=unsupported 8398 fi 8399 ;; 8400 8401 aix4* | aix5*) 8402 if test "$host_cpu" = ia64; then 8403 # On IA64, the linker does run time linking by default, so we don't 8404 # have to do anything special. 8405 aix_use_runtimelinking=no 8406 exp_sym_flag='-Bexport' 8407 no_entry_flag="" 8408 else 8409 # If we're using GNU nm, then we don't want the "-C" option. 8410 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8411 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8412 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' 8413 else 8414 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' 8415 fi 8416 aix_use_runtimelinking=no 8417 8418 # Test if we are trying to use run time linking or normal 8419 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8420 # need to do runtime linking. 8421 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8422 for ld_flag in $LDFLAGS; do 8423 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8424 aix_use_runtimelinking=yes 8425 break 8426 fi 8427 done 8428 ;; 8429 esac 8430 8431 exp_sym_flag='-bexport' 8432 no_entry_flag='-bnoentry' 8433 fi 8434 8435 # When large executables or shared objects are built, AIX ld can 8436 # have problems creating the table of contents. If linking a library 8437 # or program results in "error TOC overflow" add -mminimal-toc to 8438 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8439 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8440 8441 archive_cmds='' 8442 hardcode_direct=yes 8443 hardcode_libdir_separator=':' 8444 link_all_deplibs=yes 8445 8446 if test "$GCC" = yes; then 8447 case $host_os in aix4.[012]|aix4.[012].*) 8448 # We only want to do this on AIX 4.2 and lower, the check 8449 # below for broken collect2 doesn't work under 4.3+ 8450 collect2name=`${CC} -print-prog-name=collect2` 8451 if test -f "$collect2name" && \ 8452 strings "$collect2name" | grep resolve_lib_name >/dev/null 8453 then 8454 # We have reworked collect2 8455 : 8456 else 8457 # We have old collect2 8458 hardcode_direct=unsupported 8459 # It fails to find uninstalled libraries when the uninstalled 8460 # path is not listed in the libpath. Setting hardcode_minus_L 8461 # to unsupported forces relinking 8462 hardcode_minus_L=yes 8463 hardcode_libdir_flag_spec='-L$libdir' 8464 hardcode_libdir_separator= 8465 fi 8466 ;; 8467 esac 8468 shared_flag='-shared' 8469 if test "$aix_use_runtimelinking" = yes; then 8470 shared_flag="$shared_flag "'${wl}-G' 8471 fi 8472 else 8473 # not using gcc 8474 if test "$host_cpu" = ia64; then 8475 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8476 # chokes on -Wl,-G. The following line is correct: 8477 shared_flag='-G' 8478 else 8479 if test "$aix_use_runtimelinking" = yes; then 8480 shared_flag='${wl}-G' 8481 else 8482 shared_flag='${wl}-bM:SRE' 8483 fi 8484 fi 8485 fi 8486 8487 # It seems that -bexpall does not export symbols beginning with 8488 # underscore (_), so it is better to generate a list of symbols to export. 8489 always_export_symbols=yes 8490 if test "$aix_use_runtimelinking" = yes; then 8491 # Warning - without using the other runtime loading flags (-brtl), 8492 # -berok will link without error, but may produce a broken library. 8493 allow_undefined_flag='-berok' 8494 # Determine the default libpath from the value encoded in an empty executable. 8495 cat >conftest.$ac_ext <<_ACEOF 8496/* confdefs.h. */ 8497_ACEOF 8498cat confdefs.h >>conftest.$ac_ext 8499cat >>conftest.$ac_ext <<_ACEOF 8500/* end confdefs.h. */ 8501 8502int 8503main () 8504{ 8505 8506 ; 8507 return 0; 8508} 8509_ACEOF 8510rm -f conftest.$ac_objext conftest$ac_exeext 8511if { (ac_try="$ac_link" 8512case "(($ac_try" in 8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8514 *) ac_try_echo=$ac_try;; 8515esac 8516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8517 (eval "$ac_link") 2>conftest.er1 8518 ac_status=$? 8519 grep -v '^ *+' conftest.er1 >conftest.err 8520 rm -f conftest.er1 8521 cat conftest.err >&5 8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8523 (exit $ac_status); } && { 8524 test -z "$ac_c_werror_flag" || 8525 test ! -s conftest.err 8526 } && test -s conftest$ac_exeext && 8527 $as_test_x conftest$ac_exeext; then 8528 8529lt_aix_libpath_sed=' 8530 /Import File Strings/,/^$/ { 8531 /^0/ { 8532 s/^0 *\(.*\)$/\1/ 8533 p 8534 } 8535 }' 8536aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8537# Check for a 64-bit object if we didn't find anything. 8538if test -z "$aix_libpath"; then 8539 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8540fi 8541else 8542 echo "$as_me: failed program was:" >&5 8543sed 's/^/| /' conftest.$ac_ext >&5 8544 8545 8546fi 8547 8548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8549 conftest$ac_exeext conftest.$ac_ext 8550if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8551 8552 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8553 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" 8554 else 8555 if test "$host_cpu" = ia64; then 8556 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8557 allow_undefined_flag="-z nodefs" 8558 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" 8559 else 8560 # Determine the default libpath from the value encoded in an empty executable. 8561 cat >conftest.$ac_ext <<_ACEOF 8562/* confdefs.h. */ 8563_ACEOF 8564cat confdefs.h >>conftest.$ac_ext 8565cat >>conftest.$ac_ext <<_ACEOF 8566/* end confdefs.h. */ 8567 8568int 8569main () 8570{ 8571 8572 ; 8573 return 0; 8574} 8575_ACEOF 8576rm -f conftest.$ac_objext conftest$ac_exeext 8577if { (ac_try="$ac_link" 8578case "(($ac_try" in 8579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8580 *) ac_try_echo=$ac_try;; 8581esac 8582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8583 (eval "$ac_link") 2>conftest.er1 8584 ac_status=$? 8585 grep -v '^ *+' conftest.er1 >conftest.err 8586 rm -f conftest.er1 8587 cat conftest.err >&5 8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8589 (exit $ac_status); } && { 8590 test -z "$ac_c_werror_flag" || 8591 test ! -s conftest.err 8592 } && test -s conftest$ac_exeext && 8593 $as_test_x conftest$ac_exeext; then 8594 8595lt_aix_libpath_sed=' 8596 /Import File Strings/,/^$/ { 8597 /^0/ { 8598 s/^0 *\(.*\)$/\1/ 8599 p 8600 } 8601 }' 8602aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8603# Check for a 64-bit object if we didn't find anything. 8604if test -z "$aix_libpath"; then 8605 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8606fi 8607else 8608 echo "$as_me: failed program was:" >&5 8609sed 's/^/| /' conftest.$ac_ext >&5 8610 8611 8612fi 8613 8614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8615 conftest$ac_exeext conftest.$ac_ext 8616if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8617 8618 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8619 # Warning - without using the other run time loading flags, 8620 # -berok will link without error, but may produce a broken library. 8621 no_undefined_flag=' ${wl}-bernotok' 8622 allow_undefined_flag=' ${wl}-berok' 8623 # Exported symbols can be pulled into shared objects from archives 8624 whole_archive_flag_spec='$convenience' 8625 archive_cmds_need_lc=yes 8626 # This is similar to how AIX traditionally builds its shared libraries. 8627 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' 8628 fi 8629 fi 8630 ;; 8631 8632 amigaos*) 8633 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)' 8634 hardcode_libdir_flag_spec='-L$libdir' 8635 hardcode_minus_L=yes 8636 # see comment about different semantics on the GNU ld section 8637 ld_shlibs=no 8638 ;; 8639 8640 bsdi[45]*) 8641 export_dynamic_flag_spec=-rdynamic 8642 ;; 8643 8644 cygwin* | mingw* | pw32*) 8645 # When not using gcc, we currently assume that we are using 8646 # Microsoft Visual C++. 8647 # hardcode_libdir_flag_spec is actually meaningless, as there is 8648 # no search path for DLLs. 8649 hardcode_libdir_flag_spec=' ' 8650 allow_undefined_flag=unsupported 8651 # Tell ltmain to make .lib files, not .a files. 8652 libext=lib 8653 # Tell ltmain to make .dll files, not .so files. 8654 shrext_cmds=".dll" 8655 # FIXME: Setting linknames here is a bad hack. 8656 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8657 # The linker will automatically build a .lib file if we build a DLL. 8658 old_archive_From_new_cmds='true' 8659 # FIXME: Should let the user specify the lib program. 8660 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8661 fix_srcfile_path='`cygpath -w "$srcfile"`' 8662 enable_shared_with_static_runtimes=yes 8663 ;; 8664 8665 darwin* | rhapsody*) 8666 case $host_os in 8667 rhapsody* | darwin1.[012]) 8668 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8669 ;; 8670 *) # Darwin 1.3 on 8671 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8672 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8673 else 8674 case ${MACOSX_DEPLOYMENT_TARGET} in 8675 10.[012]) 8676 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8677 ;; 8678 10.*) 8679 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8680 ;; 8681 esac 8682 fi 8683 ;; 8684 esac 8685 archive_cmds_need_lc=no 8686 hardcode_direct=no 8687 hardcode_automatic=yes 8688 hardcode_shlibpath_var=unsupported 8689 whole_archive_flag_spec='' 8690 link_all_deplibs=yes 8691 if test "$GCC" = yes ; then 8692 output_verbose_link_cmd='echo' 8693 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8694 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8695 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8696 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8697 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}' 8698 else 8699 case $cc_basename in 8700 xlc*) 8701 output_verbose_link_cmd='echo' 8702 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8703 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8704 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8705 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}' 8706 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}' 8707 ;; 8708 *) 8709 ld_shlibs=no 8710 ;; 8711 esac 8712 fi 8713 ;; 8714 8715 dgux*) 8716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8717 hardcode_libdir_flag_spec='-L$libdir' 8718 hardcode_shlibpath_var=no 8719 ;; 8720 8721 freebsd1*) 8722 ld_shlibs=no 8723 ;; 8724 8725 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8726 # support. Future versions do this automatically, but an explicit c++rt0.o 8727 # does not break anything, and helps significantly (at the cost of a little 8728 # extra space). 8729 freebsd2.2*) 8730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8731 hardcode_libdir_flag_spec='-R$libdir' 8732 hardcode_direct=yes 8733 hardcode_shlibpath_var=no 8734 ;; 8735 8736 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8737 freebsd2*) 8738 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8739 hardcode_direct=yes 8740 hardcode_minus_L=yes 8741 hardcode_shlibpath_var=no 8742 ;; 8743 8744 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8745 freebsd* | dragonfly*) 8746 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8747 hardcode_libdir_flag_spec='-R$libdir' 8748 hardcode_direct=yes 8749 hardcode_shlibpath_var=no 8750 ;; 8751 8752 hpux9*) 8753 if test "$GCC" = yes; then 8754 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' 8755 else 8756 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' 8757 fi 8758 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8759 hardcode_libdir_separator=: 8760 hardcode_direct=yes 8761 8762 # hardcode_minus_L: Not really in the search PATH, 8763 # but as the default location of the library. 8764 hardcode_minus_L=yes 8765 export_dynamic_flag_spec='${wl}-E' 8766 ;; 8767 8768 hpux10*) 8769 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8770 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8771 else 8772 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8773 fi 8774 if test "$with_gnu_ld" = no; then 8775 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8776 hardcode_libdir_separator=: 8777 8778 hardcode_direct=yes 8779 export_dynamic_flag_spec='${wl}-E' 8780 8781 # hardcode_minus_L: Not really in the search PATH, 8782 # but as the default location of the library. 8783 hardcode_minus_L=yes 8784 fi 8785 ;; 8786 8787 hpux11*) 8788 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8789 case $host_cpu in 8790 hppa*64*) 8791 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8792 ;; 8793 ia64*) 8794 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8795 ;; 8796 *) 8797 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8798 ;; 8799 esac 8800 else 8801 case $host_cpu in 8802 hppa*64*) 8803 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8804 ;; 8805 ia64*) 8806 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8807 ;; 8808 *) 8809 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8810 ;; 8811 esac 8812 fi 8813 if test "$with_gnu_ld" = no; then 8814 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8815 hardcode_libdir_separator=: 8816 8817 case $host_cpu in 8818 hppa*64*|ia64*) 8819 hardcode_libdir_flag_spec_ld='+b $libdir' 8820 hardcode_direct=no 8821 hardcode_shlibpath_var=no 8822 ;; 8823 *) 8824 hardcode_direct=yes 8825 export_dynamic_flag_spec='${wl}-E' 8826 8827 # hardcode_minus_L: Not really in the search PATH, 8828 # but as the default location of the library. 8829 hardcode_minus_L=yes 8830 ;; 8831 esac 8832 fi 8833 ;; 8834 8835 irix5* | irix6* | nonstopux*) 8836 if test "$GCC" = yes; then 8837 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' 8838 else 8839 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' 8840 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8841 fi 8842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8843 hardcode_libdir_separator=: 8844 link_all_deplibs=yes 8845 ;; 8846 8847 netbsd*) 8848 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8850 else 8851 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8852 fi 8853 hardcode_libdir_flag_spec='-R$libdir' 8854 hardcode_direct=yes 8855 hardcode_shlibpath_var=no 8856 ;; 8857 8858 newsos6) 8859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8860 hardcode_direct=yes 8861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8862 hardcode_libdir_separator=: 8863 hardcode_shlibpath_var=no 8864 ;; 8865 8866 openbsd*) 8867 if test -f /usr/libexec/ld.so; then 8868 hardcode_direct=yes 8869 hardcode_shlibpath_var=no 8870 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8871 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8872 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8873 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8874 export_dynamic_flag_spec='${wl}-E' 8875 else 8876 case $host_os in 8877 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8878 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8879 hardcode_libdir_flag_spec='-R$libdir' 8880 ;; 8881 *) 8882 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8883 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8884 ;; 8885 esac 8886 fi 8887 else 8888 ld_shlibs=no 8889 fi 8890 ;; 8891 8892 os2*) 8893 hardcode_libdir_flag_spec='-L$libdir' 8894 hardcode_minus_L=yes 8895 allow_undefined_flag=unsupported 8896 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' 8897 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8898 ;; 8899 8900 osf3*) 8901 if test "$GCC" = yes; then 8902 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8903 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' 8904 else 8905 allow_undefined_flag=' -expect_unresolved \*' 8906 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' 8907 fi 8908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8909 hardcode_libdir_separator=: 8910 ;; 8911 8912 osf4* | osf5*) # as osf3* with the addition of -msym flag 8913 if test "$GCC" = yes; then 8914 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8915 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' 8916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8917 else 8918 allow_undefined_flag=' -expect_unresolved \*' 8919 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' 8920 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8921 $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' 8922 8923 # Both c and cxx compiler support -rpath directly 8924 hardcode_libdir_flag_spec='-rpath $libdir' 8925 fi 8926 hardcode_libdir_separator=: 8927 ;; 8928 8929 solaris*) 8930 no_undefined_flag=' -z text' 8931 if test "$GCC" = yes; then 8932 wlarc='${wl}' 8933 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8934 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8935 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8936 else 8937 wlarc='' 8938 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8939 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8940 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8941 fi 8942 hardcode_libdir_flag_spec='-R$libdir' 8943 hardcode_shlibpath_var=no 8944 case $host_os in 8945 solaris2.[0-5] | solaris2.[0-5].*) ;; 8946 *) 8947 # The compiler driver will combine and reorder linker options, 8948 # but understands `-z linker_flag'. GCC discards it without `$wl', 8949 # but is careful enough not to reorder. 8950 # Supported since Solaris 2.6 (maybe 2.5.1?) 8951 if test "$GCC" = yes; then 8952 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8953 else 8954 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8955 fi 8956 ;; 8957 esac 8958 link_all_deplibs=yes 8959 ;; 8960 8961 sunos4*) 8962 if test "x$host_vendor" = xsequent; then 8963 # Use $CC to link under sequent, because it throws in some extra .o 8964 # files that make .init and .fini sections work. 8965 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8966 else 8967 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8968 fi 8969 hardcode_libdir_flag_spec='-L$libdir' 8970 hardcode_direct=yes 8971 hardcode_minus_L=yes 8972 hardcode_shlibpath_var=no 8973 ;; 8974 8975 sysv4) 8976 case $host_vendor in 8977 sni) 8978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8979 hardcode_direct=yes # is this really true??? 8980 ;; 8981 siemens) 8982 ## LD is ld it makes a PLAMLIB 8983 ## CC just makes a GrossModule. 8984 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8985 reload_cmds='$CC -r -o $output$reload_objs' 8986 hardcode_direct=no 8987 ;; 8988 motorola) 8989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8990 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8991 ;; 8992 esac 8993 runpath_var='LD_RUN_PATH' 8994 hardcode_shlibpath_var=no 8995 ;; 8996 8997 sysv4.3*) 8998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8999 hardcode_shlibpath_var=no 9000 export_dynamic_flag_spec='-Bexport' 9001 ;; 9002 9003 sysv4*MP*) 9004 if test -d /usr/nec; then 9005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9006 hardcode_shlibpath_var=no 9007 runpath_var=LD_RUN_PATH 9008 hardcode_runpath_var=yes 9009 ld_shlibs=yes 9010 fi 9011 ;; 9012 9013 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9014 no_undefined_flag='${wl}-z,text' 9015 archive_cmds_need_lc=no 9016 hardcode_shlibpath_var=no 9017 runpath_var='LD_RUN_PATH' 9018 9019 if test "$GCC" = yes; then 9020 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9021 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9022 else 9023 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9024 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9025 fi 9026 ;; 9027 9028 sysv5* | sco3.2v5* | sco5v6*) 9029 # Note: We can NOT use -z defs as we might desire, because we do not 9030 # link with -lc, and that would cause any symbols used from libc to 9031 # always be unresolved, which means just about no library would 9032 # ever link correctly. If we're not using GNU ld we use -z text 9033 # though, which does catch some bad symbols but isn't as heavy-handed 9034 # as -z defs. 9035 no_undefined_flag='${wl}-z,text' 9036 allow_undefined_flag='${wl}-z,nodefs' 9037 archive_cmds_need_lc=no 9038 hardcode_shlibpath_var=no 9039 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9040 hardcode_libdir_separator=':' 9041 link_all_deplibs=yes 9042 export_dynamic_flag_spec='${wl}-Bexport' 9043 runpath_var='LD_RUN_PATH' 9044 9045 if test "$GCC" = yes; then 9046 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9047 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9048 else 9049 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9050 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9051 fi 9052 ;; 9053 9054 uts4*) 9055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9056 hardcode_libdir_flag_spec='-L$libdir' 9057 hardcode_shlibpath_var=no 9058 ;; 9059 9060 *) 9061 ld_shlibs=no 9062 ;; 9063 esac 9064 fi 9065 9066{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9067echo "${ECHO_T}$ld_shlibs" >&6; } 9068test "$ld_shlibs" = no && can_build_shared=no 9069 9070# 9071# Do we need to explicitly link libc? 9072# 9073case "x$archive_cmds_need_lc" in 9074x|xyes) 9075 # Assume -lc should be added 9076 archive_cmds_need_lc=yes 9077 9078 if test "$enable_shared" = yes && test "$GCC" = yes; then 9079 case $archive_cmds in 9080 *'~'*) 9081 # FIXME: we may have to deal with multi-command sequences. 9082 ;; 9083 '$CC '*) 9084 # Test whether the compiler implicitly links with -lc since on some 9085 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9086 # to ld, don't add -lc before -lgcc. 9087 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9088echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 9089 $rm conftest* 9090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9091 9092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9093 (eval $ac_compile) 2>&5 9094 ac_status=$? 9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9096 (exit $ac_status); } 2>conftest.err; then 9097 soname=conftest 9098 lib=conftest 9099 libobjs=conftest.$ac_objext 9100 deplibs= 9101 wl=$lt_prog_compiler_wl 9102 pic_flag=$lt_prog_compiler_pic 9103 compiler_flags=-v 9104 linker_flags=-v 9105 verstring= 9106 output_objdir=. 9107 libname=conftest 9108 lt_save_allow_undefined_flag=$allow_undefined_flag 9109 allow_undefined_flag= 9110 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 9111 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9112 ac_status=$? 9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9114 (exit $ac_status); } 9115 then 9116 archive_cmds_need_lc=no 9117 else 9118 archive_cmds_need_lc=yes 9119 fi 9120 allow_undefined_flag=$lt_save_allow_undefined_flag 9121 else 9122 cat conftest.err 1>&5 9123 fi 9124 $rm conftest* 9125 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9126echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 9127 ;; 9128 esac 9129 fi 9130 ;; 9131esac 9132 9133{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9134echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9135library_names_spec= 9136libname_spec='lib$name' 9137soname_spec= 9138shrext_cmds=".so" 9139postinstall_cmds= 9140postuninstall_cmds= 9141finish_cmds= 9142finish_eval= 9143shlibpath_var= 9144shlibpath_overrides_runpath=unknown 9145version_type=none 9146dynamic_linker="$host_os ld.so" 9147sys_lib_dlsearch_path_spec="/lib /usr/lib" 9148 9149if test "$GCC" = yes; then 9150 case $host_os in 9151 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9152 *) lt_awk_arg="/^libraries:/" ;; 9153 esac 9154 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9155 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9156 # if the path contains ";" then we assume it to be the separator 9157 # otherwise default to the standard path separator (i.e. ":") - it is 9158 # assumed that no part of a normal pathname contains ";" but that should 9159 # okay in the real world where ";" in dirpaths is itself problematic. 9160 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9161 else 9162 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9163 fi 9164 # Ok, now we have the path, separated by spaces, we can step through it 9165 # and add multilib dir if necessary. 9166 lt_tmp_lt_search_path_spec= 9167 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9168 for lt_sys_path in $lt_search_path_spec; do 9169 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9170 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9171 else 9172 test -d "$lt_sys_path" && \ 9173 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9174 fi 9175 done 9176 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9177BEGIN {RS=" "; FS="/|\n";} { 9178 lt_foo=""; 9179 lt_count=0; 9180 for (lt_i = NF; lt_i > 0; lt_i--) { 9181 if ($lt_i != "" && $lt_i != ".") { 9182 if ($lt_i == "..") { 9183 lt_count++; 9184 } else { 9185 if (lt_count == 0) { 9186 lt_foo="/" $lt_i lt_foo; 9187 } else { 9188 lt_count--; 9189 } 9190 } 9191 } 9192 } 9193 if (lt_foo != "") { lt_freq[lt_foo]++; } 9194 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9195}'` 9196 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9197else 9198 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9199fi 9200need_lib_prefix=unknown 9201hardcode_into_libs=no 9202 9203# when you set need_version to no, make sure it does not cause -set_version 9204# flags to be left without arguments 9205need_version=unknown 9206 9207case $host_os in 9208aix3*) 9209 version_type=linux 9210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9211 shlibpath_var=LIBPATH 9212 9213 # AIX 3 has no versioning support, so we append a major version to the name. 9214 soname_spec='${libname}${release}${shared_ext}$major' 9215 ;; 9216 9217aix4* | aix5*) 9218 version_type=linux 9219 need_lib_prefix=no 9220 need_version=no 9221 hardcode_into_libs=yes 9222 if test "$host_cpu" = ia64; then 9223 # AIX 5 supports IA64 9224 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9225 shlibpath_var=LD_LIBRARY_PATH 9226 else 9227 # With GCC up to 2.95.x, collect2 would create an import file 9228 # for dependence libraries. The import file would start with 9229 # the line `#! .'. This would cause the generated library to 9230 # depend on `.', always an invalid library. This was fixed in 9231 # development snapshots of GCC prior to 3.0. 9232 case $host_os in 9233 aix4 | aix4.[01] | aix4.[01].*) 9234 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9235 echo ' yes ' 9236 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9237 : 9238 else 9239 can_build_shared=no 9240 fi 9241 ;; 9242 esac 9243 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9244 # soname into executable. Probably we can add versioning support to 9245 # collect2, so additional links can be useful in future. 9246 if test "$aix_use_runtimelinking" = yes; then 9247 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9248 # instead of lib<name>.a to let people know that these are not 9249 # typical AIX shared libraries. 9250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9251 else 9252 # We preserve .a as extension for shared libraries through AIX4.2 9253 # and later when we are not doing run time linking. 9254 library_names_spec='${libname}${release}.a $libname.a' 9255 soname_spec='${libname}${release}${shared_ext}$major' 9256 fi 9257 shlibpath_var=LIBPATH 9258 fi 9259 ;; 9260 9261amigaos*) 9262 library_names_spec='$libname.ixlibrary $libname.a' 9263 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9264 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' 9265 ;; 9266 9267beos*) 9268 library_names_spec='${libname}${shared_ext}' 9269 dynamic_linker="$host_os ld.so" 9270 shlibpath_var=LIBRARY_PATH 9271 ;; 9272 9273bsdi[45]*) 9274 version_type=linux 9275 need_version=no 9276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9277 soname_spec='${libname}${release}${shared_ext}$major' 9278 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9279 shlibpath_var=LD_LIBRARY_PATH 9280 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9281 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9282 # the default ld.so.conf also contains /usr/contrib/lib and 9283 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9284 # libtool to hard-code these into programs 9285 ;; 9286 9287cygwin* | mingw* | pw32*) 9288 version_type=windows 9289 shrext_cmds=".dll" 9290 need_version=no 9291 need_lib_prefix=no 9292 9293 case $GCC,$host_os in 9294 yes,cygwin* | yes,mingw* | yes,pw32*) 9295 library_names_spec='$libname.dll.a' 9296 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9297 postinstall_cmds='base_file=`basename \${file}`~ 9298 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9299 dldir=$destdir/`dirname \$dlpath`~ 9300 test -d \$dldir || mkdir -p \$dldir~ 9301 $install_prog $dir/$dlname \$dldir/$dlname~ 9302 chmod a+x \$dldir/$dlname' 9303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9304 dlpath=$dir/\$dldll~ 9305 $rm \$dlpath' 9306 shlibpath_overrides_runpath=yes 9307 9308 case $host_os in 9309 cygwin*) 9310 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9311 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9312 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9313 ;; 9314 mingw*) 9315 # MinGW DLLs use traditional 'lib' prefix 9316 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9317 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9318 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9319 # It is most probably a Windows format PATH printed by 9320 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9321 # path with ; separators, and with drive letters. We can handle the 9322 # drive letters (cygwin fileutils understands them), so leave them, 9323 # especially as we might pass files found there to a mingw objdump, 9324 # which wouldn't understand a cygwinified path. Ahh. 9325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9326 else 9327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9328 fi 9329 ;; 9330 pw32*) 9331 # pw32 DLLs use 'pw' prefix rather than 'lib' 9332 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9333 ;; 9334 esac 9335 ;; 9336 9337 *) 9338 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9339 ;; 9340 esac 9341 dynamic_linker='Win32 ld.exe' 9342 # FIXME: first we should search . and the directory the executable is in 9343 shlibpath_var=PATH 9344 ;; 9345 9346darwin* | rhapsody*) 9347 dynamic_linker="$host_os dyld" 9348 version_type=darwin 9349 need_lib_prefix=no 9350 need_version=no 9351 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9352 soname_spec='${libname}${release}${major}$shared_ext' 9353 shlibpath_overrides_runpath=yes 9354 shlibpath_var=DYLD_LIBRARY_PATH 9355 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9356 9357 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9358 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9359 ;; 9360 9361dgux*) 9362 version_type=linux 9363 need_lib_prefix=no 9364 need_version=no 9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9366 soname_spec='${libname}${release}${shared_ext}$major' 9367 shlibpath_var=LD_LIBRARY_PATH 9368 ;; 9369 9370freebsd1*) 9371 dynamic_linker=no 9372 ;; 9373 9374freebsd* | dragonfly*) 9375 # DragonFly does not have aout. When/if they implement a new 9376 # versioning mechanism, adjust this. 9377 if test -x /usr/bin/objformat; then 9378 objformat=`/usr/bin/objformat` 9379 else 9380 case $host_os in 9381 freebsd[123]*) objformat=aout ;; 9382 *) objformat=elf ;; 9383 esac 9384 fi 9385 version_type=freebsd-$objformat 9386 case $version_type in 9387 freebsd-elf*) 9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9389 need_version=no 9390 need_lib_prefix=no 9391 ;; 9392 freebsd-*) 9393 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9394 need_version=yes 9395 ;; 9396 esac 9397 shlibpath_var=LD_LIBRARY_PATH 9398 case $host_os in 9399 freebsd2*) 9400 shlibpath_overrides_runpath=yes 9401 ;; 9402 freebsd3.[01]* | freebsdelf3.[01]*) 9403 shlibpath_overrides_runpath=yes 9404 hardcode_into_libs=yes 9405 ;; 9406 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9407 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9408 shlibpath_overrides_runpath=no 9409 hardcode_into_libs=yes 9410 ;; 9411 *) # from 4.6 on, and DragonFly 9412 shlibpath_overrides_runpath=yes 9413 hardcode_into_libs=yes 9414 ;; 9415 esac 9416 ;; 9417 9418gnu*) 9419 version_type=linux 9420 need_lib_prefix=no 9421 need_version=no 9422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9423 soname_spec='${libname}${release}${shared_ext}$major' 9424 shlibpath_var=LD_LIBRARY_PATH 9425 hardcode_into_libs=yes 9426 ;; 9427 9428hpux9* | hpux10* | hpux11*) 9429 # Give a soname corresponding to the major version so that dld.sl refuses to 9430 # link against other versions. 9431 version_type=sunos 9432 need_lib_prefix=no 9433 need_version=no 9434 case $host_cpu in 9435 ia64*) 9436 shrext_cmds='.so' 9437 hardcode_into_libs=yes 9438 dynamic_linker="$host_os dld.so" 9439 shlibpath_var=LD_LIBRARY_PATH 9440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9442 soname_spec='${libname}${release}${shared_ext}$major' 9443 if test "X$HPUX_IA64_MODE" = X32; then 9444 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9445 else 9446 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9447 fi 9448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9449 ;; 9450 hppa*64*) 9451 shrext_cmds='.sl' 9452 hardcode_into_libs=yes 9453 dynamic_linker="$host_os dld.sl" 9454 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9457 soname_spec='${libname}${release}${shared_ext}$major' 9458 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9460 ;; 9461 *) 9462 shrext_cmds='.sl' 9463 dynamic_linker="$host_os dld.sl" 9464 shlibpath_var=SHLIB_PATH 9465 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9467 soname_spec='${libname}${release}${shared_ext}$major' 9468 ;; 9469 esac 9470 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9471 postinstall_cmds='chmod 555 $lib' 9472 ;; 9473 9474interix[3-9]*) 9475 version_type=linux 9476 need_lib_prefix=no 9477 need_version=no 9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9479 soname_spec='${libname}${release}${shared_ext}$major' 9480 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9481 shlibpath_var=LD_LIBRARY_PATH 9482 shlibpath_overrides_runpath=no 9483 hardcode_into_libs=yes 9484 ;; 9485 9486irix5* | irix6* | nonstopux*) 9487 case $host_os in 9488 nonstopux*) version_type=nonstopux ;; 9489 *) 9490 if test "$lt_cv_prog_gnu_ld" = yes; then 9491 version_type=linux 9492 else 9493 version_type=irix 9494 fi ;; 9495 esac 9496 need_lib_prefix=no 9497 need_version=no 9498 soname_spec='${libname}${release}${shared_ext}$major' 9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9500 case $host_os in 9501 irix5* | nonstopux*) 9502 libsuff= shlibsuff= 9503 ;; 9504 *) 9505 case $LD in # libtool.m4 will add one of these switches to LD 9506 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9507 libsuff= shlibsuff= libmagic=32-bit;; 9508 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9509 libsuff=32 shlibsuff=N32 libmagic=N32;; 9510 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9511 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9512 *) libsuff= shlibsuff= libmagic=never-match;; 9513 esac 9514 ;; 9515 esac 9516 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9517 shlibpath_overrides_runpath=no 9518 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9519 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9520 hardcode_into_libs=yes 9521 ;; 9522 9523# No shared lib support for Linux oldld, aout, or coff. 9524linux*oldld* | linux*aout* | linux*coff*) 9525 dynamic_linker=no 9526 ;; 9527 9528# This must be Linux ELF. 9529linux* | k*bsd*-gnu) 9530 version_type=linux 9531 need_lib_prefix=no 9532 need_version=no 9533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9534 soname_spec='${libname}${release}${shared_ext}$major' 9535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9536 shlibpath_var=LD_LIBRARY_PATH 9537 shlibpath_overrides_runpath=no 9538 # This implies no fast_install, which is unacceptable. 9539 # Some rework will be needed to allow for fast_install 9540 # before this can be enabled. 9541 hardcode_into_libs=yes 9542 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9543 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9544 9545 # Append ld.so.conf contents to the search path 9546 if test -f /etc/ld.so.conf; then 9547 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' ' '` 9548 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9549 fi 9550 9551 # We used to test for /lib/ld.so.1 and disable shared libraries on 9552 # powerpc, because MkLinux only supported shared libraries with the 9553 # GNU dynamic linker. Since this was broken with cross compilers, 9554 # most powerpc-linux boxes support dynamic linking these days and 9555 # people can always --disable-shared, the test was removed, and we 9556 # assume the GNU/Linux dynamic linker is in use. 9557 dynamic_linker='GNU/Linux ld.so' 9558 ;; 9559 9560netbsd*) 9561 version_type=sunos 9562 need_lib_prefix=no 9563 need_version=no 9564 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9567 dynamic_linker='NetBSD (a.out) ld.so' 9568 else 9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9570 soname_spec='${libname}${release}${shared_ext}$major' 9571 dynamic_linker='NetBSD ld.elf_so' 9572 fi 9573 shlibpath_var=LD_LIBRARY_PATH 9574 shlibpath_overrides_runpath=yes 9575 hardcode_into_libs=yes 9576 ;; 9577 9578newsos6) 9579 version_type=linux 9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9581 shlibpath_var=LD_LIBRARY_PATH 9582 shlibpath_overrides_runpath=yes 9583 ;; 9584 9585nto-qnx*) 9586 version_type=linux 9587 need_lib_prefix=no 9588 need_version=no 9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9590 soname_spec='${libname}${release}${shared_ext}$major' 9591 shlibpath_var=LD_LIBRARY_PATH 9592 shlibpath_overrides_runpath=yes 9593 ;; 9594 9595openbsd*) 9596 version_type=sunos 9597 sys_lib_dlsearch_path_spec="/usr/lib" 9598 need_lib_prefix=no 9599 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9600 case $host_os in 9601 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9602 *) need_version=no ;; 9603 esac 9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9606 shlibpath_var=LD_LIBRARY_PATH 9607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9608 case $host_os in 9609 openbsd2.[89] | openbsd2.[89].*) 9610 shlibpath_overrides_runpath=no 9611 ;; 9612 *) 9613 shlibpath_overrides_runpath=yes 9614 ;; 9615 esac 9616 else 9617 shlibpath_overrides_runpath=yes 9618 fi 9619 ;; 9620 9621os2*) 9622 libname_spec='$name' 9623 shrext_cmds=".dll" 9624 need_lib_prefix=no 9625 library_names_spec='$libname${shared_ext} $libname.a' 9626 dynamic_linker='OS/2 ld.exe' 9627 shlibpath_var=LIBPATH 9628 ;; 9629 9630osf3* | osf4* | osf5*) 9631 version_type=osf 9632 need_lib_prefix=no 9633 need_version=no 9634 soname_spec='${libname}${release}${shared_ext}$major' 9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9636 shlibpath_var=LD_LIBRARY_PATH 9637 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9638 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9639 ;; 9640 9641rdos*) 9642 dynamic_linker=no 9643 ;; 9644 9645solaris*) 9646 version_type=linux 9647 need_lib_prefix=no 9648 need_version=no 9649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9650 soname_spec='${libname}${release}${shared_ext}$major' 9651 shlibpath_var=LD_LIBRARY_PATH 9652 shlibpath_overrides_runpath=yes 9653 hardcode_into_libs=yes 9654 # ldd complains unless libraries are executable 9655 postinstall_cmds='chmod +x $lib' 9656 ;; 9657 9658sunos4*) 9659 version_type=sunos 9660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9661 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9662 shlibpath_var=LD_LIBRARY_PATH 9663 shlibpath_overrides_runpath=yes 9664 if test "$with_gnu_ld" = yes; then 9665 need_lib_prefix=no 9666 fi 9667 need_version=yes 9668 ;; 9669 9670sysv4 | sysv4.3*) 9671 version_type=linux 9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9673 soname_spec='${libname}${release}${shared_ext}$major' 9674 shlibpath_var=LD_LIBRARY_PATH 9675 case $host_vendor in 9676 sni) 9677 shlibpath_overrides_runpath=no 9678 need_lib_prefix=no 9679 export_dynamic_flag_spec='${wl}-Blargedynsym' 9680 runpath_var=LD_RUN_PATH 9681 ;; 9682 siemens) 9683 need_lib_prefix=no 9684 ;; 9685 motorola) 9686 need_lib_prefix=no 9687 need_version=no 9688 shlibpath_overrides_runpath=no 9689 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9690 ;; 9691 esac 9692 ;; 9693 9694sysv4*MP*) 9695 if test -d /usr/nec ;then 9696 version_type=linux 9697 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9698 soname_spec='$libname${shared_ext}.$major' 9699 shlibpath_var=LD_LIBRARY_PATH 9700 fi 9701 ;; 9702 9703sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9704 version_type=freebsd-elf 9705 need_lib_prefix=no 9706 need_version=no 9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9708 soname_spec='${libname}${release}${shared_ext}$major' 9709 shlibpath_var=LD_LIBRARY_PATH 9710 hardcode_into_libs=yes 9711 if test "$with_gnu_ld" = yes; then 9712 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9713 shlibpath_overrides_runpath=no 9714 else 9715 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9716 shlibpath_overrides_runpath=yes 9717 case $host_os in 9718 sco3.2v5*) 9719 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9720 ;; 9721 esac 9722 fi 9723 sys_lib_dlsearch_path_spec='/usr/lib' 9724 ;; 9725 9726uts4*) 9727 version_type=linux 9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9729 soname_spec='${libname}${release}${shared_ext}$major' 9730 shlibpath_var=LD_LIBRARY_PATH 9731 ;; 9732 9733*) 9734 dynamic_linker=no 9735 ;; 9736esac 9737{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9738echo "${ECHO_T}$dynamic_linker" >&6; } 9739test "$dynamic_linker" = no && can_build_shared=no 9740 9741variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9742if test "$GCC" = yes; then 9743 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9744fi 9745 9746{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9747echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9748hardcode_action= 9749if test -n "$hardcode_libdir_flag_spec" || \ 9750 test -n "$runpath_var" || \ 9751 test "X$hardcode_automatic" = "Xyes" ; then 9752 9753 # We can hardcode non-existant directories. 9754 if test "$hardcode_direct" != no && 9755 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9756 # have to relink, otherwise we might link with an installed library 9757 # when we should be linking with a yet-to-be-installed one 9758 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9759 test "$hardcode_minus_L" != no; then 9760 # Linking always hardcodes the temporary library directory. 9761 hardcode_action=relink 9762 else 9763 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9764 hardcode_action=immediate 9765 fi 9766else 9767 # We cannot hardcode anything, or else we can only hardcode existing 9768 # directories. 9769 hardcode_action=unsupported 9770fi 9771{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9772echo "${ECHO_T}$hardcode_action" >&6; } 9773 9774if test "$hardcode_action" = relink; then 9775 # Fast installation is not supported 9776 enable_fast_install=no 9777elif test "$shlibpath_overrides_runpath" = yes || 9778 test "$enable_shared" = no; then 9779 # Fast installation is not necessary 9780 enable_fast_install=needless 9781fi 9782 9783striplib= 9784old_striplib= 9785{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9786echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9787if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9788 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9789 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9790 { echo "$as_me:$LINENO: result: yes" >&5 9791echo "${ECHO_T}yes" >&6; } 9792else 9793# FIXME - insert some real tests, host_os isn't really good enough 9794 case $host_os in 9795 darwin*) 9796 if test -n "$STRIP" ; then 9797 striplib="$STRIP -x" 9798 old_striplib="$STRIP -S" 9799 { echo "$as_me:$LINENO: result: yes" >&5 9800echo "${ECHO_T}yes" >&6; } 9801 else 9802 { echo "$as_me:$LINENO: result: no" >&5 9803echo "${ECHO_T}no" >&6; } 9804fi 9805 ;; 9806 *) 9807 { echo "$as_me:$LINENO: result: no" >&5 9808echo "${ECHO_T}no" >&6; } 9809 ;; 9810 esac 9811fi 9812 9813if test "x$enable_dlopen" != xyes; then 9814 enable_dlopen=unknown 9815 enable_dlopen_self=unknown 9816 enable_dlopen_self_static=unknown 9817else 9818 lt_cv_dlopen=no 9819 lt_cv_dlopen_libs= 9820 9821 case $host_os in 9822 beos*) 9823 lt_cv_dlopen="load_add_on" 9824 lt_cv_dlopen_libs= 9825 lt_cv_dlopen_self=yes 9826 ;; 9827 9828 mingw* | pw32*) 9829 lt_cv_dlopen="LoadLibrary" 9830 lt_cv_dlopen_libs= 9831 ;; 9832 9833 cygwin*) 9834 lt_cv_dlopen="dlopen" 9835 lt_cv_dlopen_libs= 9836 ;; 9837 9838 darwin*) 9839 # if libdl is installed we need to link against it 9840 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9841echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9842if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9843 echo $ECHO_N "(cached) $ECHO_C" >&6 9844else 9845 ac_check_lib_save_LIBS=$LIBS 9846LIBS="-ldl $LIBS" 9847cat >conftest.$ac_ext <<_ACEOF 9848/* confdefs.h. */ 9849_ACEOF 9850cat confdefs.h >>conftest.$ac_ext 9851cat >>conftest.$ac_ext <<_ACEOF 9852/* end confdefs.h. */ 9853 9854/* Override any GCC internal prototype to avoid an error. 9855 Use char because int might match the return type of a GCC 9856 builtin and then its argument prototype would still apply. */ 9857#ifdef __cplusplus 9858extern "C" 9859#endif 9860char dlopen (); 9861int 9862main () 9863{ 9864return dlopen (); 9865 ; 9866 return 0; 9867} 9868_ACEOF 9869rm -f conftest.$ac_objext conftest$ac_exeext 9870if { (ac_try="$ac_link" 9871case "(($ac_try" in 9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9873 *) ac_try_echo=$ac_try;; 9874esac 9875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9876 (eval "$ac_link") 2>conftest.er1 9877 ac_status=$? 9878 grep -v '^ *+' conftest.er1 >conftest.err 9879 rm -f conftest.er1 9880 cat conftest.err >&5 9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9882 (exit $ac_status); } && { 9883 test -z "$ac_c_werror_flag" || 9884 test ! -s conftest.err 9885 } && test -s conftest$ac_exeext && 9886 $as_test_x conftest$ac_exeext; then 9887 ac_cv_lib_dl_dlopen=yes 9888else 9889 echo "$as_me: failed program was:" >&5 9890sed 's/^/| /' conftest.$ac_ext >&5 9891 9892 ac_cv_lib_dl_dlopen=no 9893fi 9894 9895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9896 conftest$ac_exeext conftest.$ac_ext 9897LIBS=$ac_check_lib_save_LIBS 9898fi 9899{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9900echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9901if test $ac_cv_lib_dl_dlopen = yes; then 9902 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9903else 9904 9905 lt_cv_dlopen="dyld" 9906 lt_cv_dlopen_libs= 9907 lt_cv_dlopen_self=yes 9908 9909fi 9910 9911 ;; 9912 9913 *) 9914 { echo "$as_me:$LINENO: checking for shl_load" >&5 9915echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9916if test "${ac_cv_func_shl_load+set}" = set; then 9917 echo $ECHO_N "(cached) $ECHO_C" >&6 9918else 9919 cat >conftest.$ac_ext <<_ACEOF 9920/* confdefs.h. */ 9921_ACEOF 9922cat confdefs.h >>conftest.$ac_ext 9923cat >>conftest.$ac_ext <<_ACEOF 9924/* end confdefs.h. */ 9925/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9926 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9927#define shl_load innocuous_shl_load 9928 9929/* System header to define __stub macros and hopefully few prototypes, 9930 which can conflict with char shl_load (); below. 9931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9932 <limits.h> exists even on freestanding compilers. */ 9933 9934#ifdef __STDC__ 9935# include <limits.h> 9936#else 9937# include <assert.h> 9938#endif 9939 9940#undef shl_load 9941 9942/* Override any GCC internal prototype to avoid an error. 9943 Use char because int might match the return type of a GCC 9944 builtin and then its argument prototype would still apply. */ 9945#ifdef __cplusplus 9946extern "C" 9947#endif 9948char shl_load (); 9949/* The GNU C library defines this for functions which it implements 9950 to always fail with ENOSYS. Some functions are actually named 9951 something starting with __ and the normal name is an alias. */ 9952#if defined __stub_shl_load || defined __stub___shl_load 9953choke me 9954#endif 9955 9956int 9957main () 9958{ 9959return shl_load (); 9960 ; 9961 return 0; 9962} 9963_ACEOF 9964rm -f conftest.$ac_objext conftest$ac_exeext 9965if { (ac_try="$ac_link" 9966case "(($ac_try" in 9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9968 *) ac_try_echo=$ac_try;; 9969esac 9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9971 (eval "$ac_link") 2>conftest.er1 9972 ac_status=$? 9973 grep -v '^ *+' conftest.er1 >conftest.err 9974 rm -f conftest.er1 9975 cat conftest.err >&5 9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9977 (exit $ac_status); } && { 9978 test -z "$ac_c_werror_flag" || 9979 test ! -s conftest.err 9980 } && test -s conftest$ac_exeext && 9981 $as_test_x conftest$ac_exeext; then 9982 ac_cv_func_shl_load=yes 9983else 9984 echo "$as_me: failed program was:" >&5 9985sed 's/^/| /' conftest.$ac_ext >&5 9986 9987 ac_cv_func_shl_load=no 9988fi 9989 9990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9991 conftest$ac_exeext conftest.$ac_ext 9992fi 9993{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9994echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9995if test $ac_cv_func_shl_load = yes; then 9996 lt_cv_dlopen="shl_load" 9997else 9998 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9999echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10000if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10001 echo $ECHO_N "(cached) $ECHO_C" >&6 10002else 10003 ac_check_lib_save_LIBS=$LIBS 10004LIBS="-ldld $LIBS" 10005cat >conftest.$ac_ext <<_ACEOF 10006/* confdefs.h. */ 10007_ACEOF 10008cat confdefs.h >>conftest.$ac_ext 10009cat >>conftest.$ac_ext <<_ACEOF 10010/* end confdefs.h. */ 10011 10012/* Override any GCC internal prototype to avoid an error. 10013 Use char because int might match the return type of a GCC 10014 builtin and then its argument prototype would still apply. */ 10015#ifdef __cplusplus 10016extern "C" 10017#endif 10018char shl_load (); 10019int 10020main () 10021{ 10022return shl_load (); 10023 ; 10024 return 0; 10025} 10026_ACEOF 10027rm -f conftest.$ac_objext conftest$ac_exeext 10028if { (ac_try="$ac_link" 10029case "(($ac_try" in 10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10031 *) ac_try_echo=$ac_try;; 10032esac 10033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10034 (eval "$ac_link") 2>conftest.er1 10035 ac_status=$? 10036 grep -v '^ *+' conftest.er1 >conftest.err 10037 rm -f conftest.er1 10038 cat conftest.err >&5 10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10040 (exit $ac_status); } && { 10041 test -z "$ac_c_werror_flag" || 10042 test ! -s conftest.err 10043 } && test -s conftest$ac_exeext && 10044 $as_test_x conftest$ac_exeext; then 10045 ac_cv_lib_dld_shl_load=yes 10046else 10047 echo "$as_me: failed program was:" >&5 10048sed 's/^/| /' conftest.$ac_ext >&5 10049 10050 ac_cv_lib_dld_shl_load=no 10051fi 10052 10053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10054 conftest$ac_exeext conftest.$ac_ext 10055LIBS=$ac_check_lib_save_LIBS 10056fi 10057{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10058echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10059if test $ac_cv_lib_dld_shl_load = yes; then 10060 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 10061else 10062 { echo "$as_me:$LINENO: checking for dlopen" >&5 10063echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 10064if test "${ac_cv_func_dlopen+set}" = set; then 10065 echo $ECHO_N "(cached) $ECHO_C" >&6 10066else 10067 cat >conftest.$ac_ext <<_ACEOF 10068/* confdefs.h. */ 10069_ACEOF 10070cat confdefs.h >>conftest.$ac_ext 10071cat >>conftest.$ac_ext <<_ACEOF 10072/* end confdefs.h. */ 10073/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10074 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10075#define dlopen innocuous_dlopen 10076 10077/* System header to define __stub macros and hopefully few prototypes, 10078 which can conflict with char dlopen (); below. 10079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10080 <limits.h> exists even on freestanding compilers. */ 10081 10082#ifdef __STDC__ 10083# include <limits.h> 10084#else 10085# include <assert.h> 10086#endif 10087 10088#undef dlopen 10089 10090/* Override any GCC internal prototype to avoid an error. 10091 Use char because int might match the return type of a GCC 10092 builtin and then its argument prototype would still apply. */ 10093#ifdef __cplusplus 10094extern "C" 10095#endif 10096char dlopen (); 10097/* The GNU C library defines this for functions which it implements 10098 to always fail with ENOSYS. Some functions are actually named 10099 something starting with __ and the normal name is an alias. */ 10100#if defined __stub_dlopen || defined __stub___dlopen 10101choke me 10102#endif 10103 10104int 10105main () 10106{ 10107return dlopen (); 10108 ; 10109 return 0; 10110} 10111_ACEOF 10112rm -f conftest.$ac_objext conftest$ac_exeext 10113if { (ac_try="$ac_link" 10114case "(($ac_try" in 10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10116 *) ac_try_echo=$ac_try;; 10117esac 10118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10119 (eval "$ac_link") 2>conftest.er1 10120 ac_status=$? 10121 grep -v '^ *+' conftest.er1 >conftest.err 10122 rm -f conftest.er1 10123 cat conftest.err >&5 10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10125 (exit $ac_status); } && { 10126 test -z "$ac_c_werror_flag" || 10127 test ! -s conftest.err 10128 } && test -s conftest$ac_exeext && 10129 $as_test_x conftest$ac_exeext; then 10130 ac_cv_func_dlopen=yes 10131else 10132 echo "$as_me: failed program was:" >&5 10133sed 's/^/| /' conftest.$ac_ext >&5 10134 10135 ac_cv_func_dlopen=no 10136fi 10137 10138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10139 conftest$ac_exeext conftest.$ac_ext 10140fi 10141{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10142echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10143if test $ac_cv_func_dlopen = yes; then 10144 lt_cv_dlopen="dlopen" 10145else 10146 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10147echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10148if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10149 echo $ECHO_N "(cached) $ECHO_C" >&6 10150else 10151 ac_check_lib_save_LIBS=$LIBS 10152LIBS="-ldl $LIBS" 10153cat >conftest.$ac_ext <<_ACEOF 10154/* confdefs.h. */ 10155_ACEOF 10156cat confdefs.h >>conftest.$ac_ext 10157cat >>conftest.$ac_ext <<_ACEOF 10158/* end confdefs.h. */ 10159 10160/* Override any GCC internal prototype to avoid an error. 10161 Use char because int might match the return type of a GCC 10162 builtin and then its argument prototype would still apply. */ 10163#ifdef __cplusplus 10164extern "C" 10165#endif 10166char dlopen (); 10167int 10168main () 10169{ 10170return dlopen (); 10171 ; 10172 return 0; 10173} 10174_ACEOF 10175rm -f conftest.$ac_objext conftest$ac_exeext 10176if { (ac_try="$ac_link" 10177case "(($ac_try" in 10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10179 *) ac_try_echo=$ac_try;; 10180esac 10181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10182 (eval "$ac_link") 2>conftest.er1 10183 ac_status=$? 10184 grep -v '^ *+' conftest.er1 >conftest.err 10185 rm -f conftest.er1 10186 cat conftest.err >&5 10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10188 (exit $ac_status); } && { 10189 test -z "$ac_c_werror_flag" || 10190 test ! -s conftest.err 10191 } && test -s conftest$ac_exeext && 10192 $as_test_x conftest$ac_exeext; then 10193 ac_cv_lib_dl_dlopen=yes 10194else 10195 echo "$as_me: failed program was:" >&5 10196sed 's/^/| /' conftest.$ac_ext >&5 10197 10198 ac_cv_lib_dl_dlopen=no 10199fi 10200 10201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10202 conftest$ac_exeext conftest.$ac_ext 10203LIBS=$ac_check_lib_save_LIBS 10204fi 10205{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10206echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10207if test $ac_cv_lib_dl_dlopen = yes; then 10208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10209else 10210 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10211echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10212if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10213 echo $ECHO_N "(cached) $ECHO_C" >&6 10214else 10215 ac_check_lib_save_LIBS=$LIBS 10216LIBS="-lsvld $LIBS" 10217cat >conftest.$ac_ext <<_ACEOF 10218/* confdefs.h. */ 10219_ACEOF 10220cat confdefs.h >>conftest.$ac_ext 10221cat >>conftest.$ac_ext <<_ACEOF 10222/* end confdefs.h. */ 10223 10224/* Override any GCC internal prototype to avoid an error. 10225 Use char because int might match the return type of a GCC 10226 builtin and then its argument prototype would still apply. */ 10227#ifdef __cplusplus 10228extern "C" 10229#endif 10230char dlopen (); 10231int 10232main () 10233{ 10234return dlopen (); 10235 ; 10236 return 0; 10237} 10238_ACEOF 10239rm -f conftest.$ac_objext conftest$ac_exeext 10240if { (ac_try="$ac_link" 10241case "(($ac_try" in 10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10243 *) ac_try_echo=$ac_try;; 10244esac 10245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10246 (eval "$ac_link") 2>conftest.er1 10247 ac_status=$? 10248 grep -v '^ *+' conftest.er1 >conftest.err 10249 rm -f conftest.er1 10250 cat conftest.err >&5 10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10252 (exit $ac_status); } && { 10253 test -z "$ac_c_werror_flag" || 10254 test ! -s conftest.err 10255 } && test -s conftest$ac_exeext && 10256 $as_test_x conftest$ac_exeext; then 10257 ac_cv_lib_svld_dlopen=yes 10258else 10259 echo "$as_me: failed program was:" >&5 10260sed 's/^/| /' conftest.$ac_ext >&5 10261 10262 ac_cv_lib_svld_dlopen=no 10263fi 10264 10265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10266 conftest$ac_exeext conftest.$ac_ext 10267LIBS=$ac_check_lib_save_LIBS 10268fi 10269{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10270echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10271if test $ac_cv_lib_svld_dlopen = yes; then 10272 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10273else 10274 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10275echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10276if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10277 echo $ECHO_N "(cached) $ECHO_C" >&6 10278else 10279 ac_check_lib_save_LIBS=$LIBS 10280LIBS="-ldld $LIBS" 10281cat >conftest.$ac_ext <<_ACEOF 10282/* confdefs.h. */ 10283_ACEOF 10284cat confdefs.h >>conftest.$ac_ext 10285cat >>conftest.$ac_ext <<_ACEOF 10286/* end confdefs.h. */ 10287 10288/* Override any GCC internal prototype to avoid an error. 10289 Use char because int might match the return type of a GCC 10290 builtin and then its argument prototype would still apply. */ 10291#ifdef __cplusplus 10292extern "C" 10293#endif 10294char dld_link (); 10295int 10296main () 10297{ 10298return dld_link (); 10299 ; 10300 return 0; 10301} 10302_ACEOF 10303rm -f conftest.$ac_objext conftest$ac_exeext 10304if { (ac_try="$ac_link" 10305case "(($ac_try" in 10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10307 *) ac_try_echo=$ac_try;; 10308esac 10309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10310 (eval "$ac_link") 2>conftest.er1 10311 ac_status=$? 10312 grep -v '^ *+' conftest.er1 >conftest.err 10313 rm -f conftest.er1 10314 cat conftest.err >&5 10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10316 (exit $ac_status); } && { 10317 test -z "$ac_c_werror_flag" || 10318 test ! -s conftest.err 10319 } && test -s conftest$ac_exeext && 10320 $as_test_x conftest$ac_exeext; then 10321 ac_cv_lib_dld_dld_link=yes 10322else 10323 echo "$as_me: failed program was:" >&5 10324sed 's/^/| /' conftest.$ac_ext >&5 10325 10326 ac_cv_lib_dld_dld_link=no 10327fi 10328 10329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10330 conftest$ac_exeext conftest.$ac_ext 10331LIBS=$ac_check_lib_save_LIBS 10332fi 10333{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10334echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10335if test $ac_cv_lib_dld_dld_link = yes; then 10336 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10337fi 10338 10339 10340fi 10341 10342 10343fi 10344 10345 10346fi 10347 10348 10349fi 10350 10351 10352fi 10353 10354 ;; 10355 esac 10356 10357 if test "x$lt_cv_dlopen" != xno; then 10358 enable_dlopen=yes 10359 else 10360 enable_dlopen=no 10361 fi 10362 10363 case $lt_cv_dlopen in 10364 dlopen) 10365 save_CPPFLAGS="$CPPFLAGS" 10366 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10367 10368 save_LDFLAGS="$LDFLAGS" 10369 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10370 10371 save_LIBS="$LIBS" 10372 LIBS="$lt_cv_dlopen_libs $LIBS" 10373 10374 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10375echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10376if test "${lt_cv_dlopen_self+set}" = set; then 10377 echo $ECHO_N "(cached) $ECHO_C" >&6 10378else 10379 if test "$cross_compiling" = yes; then : 10380 lt_cv_dlopen_self=cross 10381else 10382 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10383 lt_status=$lt_dlunknown 10384 cat > conftest.$ac_ext <<EOF 10385#line 10385 "configure" 10386#include "confdefs.h" 10387 10388#if HAVE_DLFCN_H 10389#include <dlfcn.h> 10390#endif 10391 10392#include <stdio.h> 10393 10394#ifdef RTLD_GLOBAL 10395# define LT_DLGLOBAL RTLD_GLOBAL 10396#else 10397# ifdef DL_GLOBAL 10398# define LT_DLGLOBAL DL_GLOBAL 10399# else 10400# define LT_DLGLOBAL 0 10401# endif 10402#endif 10403 10404/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10405 find out it does not work in some platform. */ 10406#ifndef LT_DLLAZY_OR_NOW 10407# ifdef RTLD_LAZY 10408# define LT_DLLAZY_OR_NOW RTLD_LAZY 10409# else 10410# ifdef DL_LAZY 10411# define LT_DLLAZY_OR_NOW DL_LAZY 10412# else 10413# ifdef RTLD_NOW 10414# define LT_DLLAZY_OR_NOW RTLD_NOW 10415# else 10416# ifdef DL_NOW 10417# define LT_DLLAZY_OR_NOW DL_NOW 10418# else 10419# define LT_DLLAZY_OR_NOW 0 10420# endif 10421# endif 10422# endif 10423# endif 10424#endif 10425 10426#ifdef __cplusplus 10427extern "C" void exit (int); 10428#endif 10429 10430void fnord() { int i=42;} 10431int main () 10432{ 10433 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10434 int status = $lt_dlunknown; 10435 10436 if (self) 10437 { 10438 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10439 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10440 /* dlclose (self); */ 10441 } 10442 else 10443 puts (dlerror ()); 10444 10445 exit (status); 10446} 10447EOF 10448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10449 (eval $ac_link) 2>&5 10450 ac_status=$? 10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10452 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10453 (./conftest; exit; ) >&5 2>/dev/null 10454 lt_status=$? 10455 case x$lt_status in 10456 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10457 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10458 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10459 esac 10460 else : 10461 # compilation failed 10462 lt_cv_dlopen_self=no 10463 fi 10464fi 10465rm -fr conftest* 10466 10467 10468fi 10469{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10470echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10471 10472 if test "x$lt_cv_dlopen_self" = xyes; then 10473 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10474 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10475echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10476if test "${lt_cv_dlopen_self_static+set}" = set; then 10477 echo $ECHO_N "(cached) $ECHO_C" >&6 10478else 10479 if test "$cross_compiling" = yes; then : 10480 lt_cv_dlopen_self_static=cross 10481else 10482 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10483 lt_status=$lt_dlunknown 10484 cat > conftest.$ac_ext <<EOF 10485#line 10485 "configure" 10486#include "confdefs.h" 10487 10488#if HAVE_DLFCN_H 10489#include <dlfcn.h> 10490#endif 10491 10492#include <stdio.h> 10493 10494#ifdef RTLD_GLOBAL 10495# define LT_DLGLOBAL RTLD_GLOBAL 10496#else 10497# ifdef DL_GLOBAL 10498# define LT_DLGLOBAL DL_GLOBAL 10499# else 10500# define LT_DLGLOBAL 0 10501# endif 10502#endif 10503 10504/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10505 find out it does not work in some platform. */ 10506#ifndef LT_DLLAZY_OR_NOW 10507# ifdef RTLD_LAZY 10508# define LT_DLLAZY_OR_NOW RTLD_LAZY 10509# else 10510# ifdef DL_LAZY 10511# define LT_DLLAZY_OR_NOW DL_LAZY 10512# else 10513# ifdef RTLD_NOW 10514# define LT_DLLAZY_OR_NOW RTLD_NOW 10515# else 10516# ifdef DL_NOW 10517# define LT_DLLAZY_OR_NOW DL_NOW 10518# else 10519# define LT_DLLAZY_OR_NOW 0 10520# endif 10521# endif 10522# endif 10523# endif 10524#endif 10525 10526#ifdef __cplusplus 10527extern "C" void exit (int); 10528#endif 10529 10530void fnord() { int i=42;} 10531int main () 10532{ 10533 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10534 int status = $lt_dlunknown; 10535 10536 if (self) 10537 { 10538 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10539 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10540 /* dlclose (self); */ 10541 } 10542 else 10543 puts (dlerror ()); 10544 10545 exit (status); 10546} 10547EOF 10548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10549 (eval $ac_link) 2>&5 10550 ac_status=$? 10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10552 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10553 (./conftest; exit; ) >&5 2>/dev/null 10554 lt_status=$? 10555 case x$lt_status in 10556 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10557 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10558 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10559 esac 10560 else : 10561 # compilation failed 10562 lt_cv_dlopen_self_static=no 10563 fi 10564fi 10565rm -fr conftest* 10566 10567 10568fi 10569{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10570echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10571 fi 10572 10573 CPPFLAGS="$save_CPPFLAGS" 10574 LDFLAGS="$save_LDFLAGS" 10575 LIBS="$save_LIBS" 10576 ;; 10577 esac 10578 10579 case $lt_cv_dlopen_self in 10580 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10581 *) enable_dlopen_self=unknown ;; 10582 esac 10583 10584 case $lt_cv_dlopen_self_static in 10585 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10586 *) enable_dlopen_self_static=unknown ;; 10587 esac 10588fi 10589 10590 10591# Report which library types will actually be built 10592{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10593echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10594{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10595echo "${ECHO_T}$can_build_shared" >&6; } 10596 10597{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10598echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10599test "$can_build_shared" = "no" && enable_shared=no 10600 10601# On AIX, shared libraries and static libraries use the same namespace, and 10602# are all built from PIC. 10603case $host_os in 10604aix3*) 10605 test "$enable_shared" = yes && enable_static=no 10606 if test -n "$RANLIB"; then 10607 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10608 postinstall_cmds='$RANLIB $lib' 10609 fi 10610 ;; 10611 10612aix4* | aix5*) 10613 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10614 test "$enable_shared" = yes && enable_static=no 10615 fi 10616 ;; 10617esac 10618{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10619echo "${ECHO_T}$enable_shared" >&6; } 10620 10621{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10622echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10623# Make sure either enable_shared or enable_static is yes. 10624test "$enable_shared" = yes || enable_static=yes 10625{ echo "$as_me:$LINENO: result: $enable_static" >&5 10626echo "${ECHO_T}$enable_static" >&6; } 10627 10628# The else clause should only fire when bootstrapping the 10629# libtool distribution, otherwise you forgot to ship ltmain.sh 10630# with your package, and you will get complaints that there are 10631# no rules to generate ltmain.sh. 10632if test -f "$ltmain"; then 10633 # See if we are running on zsh, and set the options which allow our commands through 10634 # without removal of \ escapes. 10635 if test -n "${ZSH_VERSION+set}" ; then 10636 setopt NO_GLOB_SUBST 10637 fi 10638 # Now quote all the things that may contain metacharacters while being 10639 # careful not to overquote the AC_SUBSTed values. We take copies of the 10640 # variables and quote the copies for generation of the libtool script. 10641 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10642 SED SHELL STRIP \ 10643 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10644 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10645 deplibs_check_method reload_flag reload_cmds need_locks \ 10646 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10647 lt_cv_sys_global_symbol_to_c_name_address \ 10648 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10649 old_postinstall_cmds old_postuninstall_cmds \ 10650 compiler \ 10651 CC \ 10652 LD \ 10653 lt_prog_compiler_wl \ 10654 lt_prog_compiler_pic \ 10655 lt_prog_compiler_static \ 10656 lt_prog_compiler_no_builtin_flag \ 10657 export_dynamic_flag_spec \ 10658 thread_safe_flag_spec \ 10659 whole_archive_flag_spec \ 10660 enable_shared_with_static_runtimes \ 10661 old_archive_cmds \ 10662 old_archive_from_new_cmds \ 10663 predep_objects \ 10664 postdep_objects \ 10665 predeps \ 10666 postdeps \ 10667 compiler_lib_search_path \ 10668 archive_cmds \ 10669 archive_expsym_cmds \ 10670 postinstall_cmds \ 10671 postuninstall_cmds \ 10672 old_archive_from_expsyms_cmds \ 10673 allow_undefined_flag \ 10674 no_undefined_flag \ 10675 export_symbols_cmds \ 10676 hardcode_libdir_flag_spec \ 10677 hardcode_libdir_flag_spec_ld \ 10678 hardcode_libdir_separator \ 10679 hardcode_automatic \ 10680 module_cmds \ 10681 module_expsym_cmds \ 10682 lt_cv_prog_compiler_c_o \ 10683 fix_srcfile_path \ 10684 exclude_expsyms \ 10685 include_expsyms; do 10686 10687 case $var in 10688 old_archive_cmds | \ 10689 old_archive_from_new_cmds | \ 10690 archive_cmds | \ 10691 archive_expsym_cmds | \ 10692 module_cmds | \ 10693 module_expsym_cmds | \ 10694 old_archive_from_expsyms_cmds | \ 10695 export_symbols_cmds | \ 10696 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10697 postinstall_cmds | postuninstall_cmds | \ 10698 old_postinstall_cmds | old_postuninstall_cmds | \ 10699 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10700 # Double-quote double-evaled strings. 10701 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10702 ;; 10703 *) 10704 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10705 ;; 10706 esac 10707 done 10708 10709 case $lt_echo in 10710 *'\$0 --fallback-echo"') 10711 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10712 ;; 10713 esac 10714 10715cfgfile="${ofile}T" 10716 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10717 $rm -f "$cfgfile" 10718 { echo "$as_me:$LINENO: creating $ofile" >&5 10719echo "$as_me: creating $ofile" >&6;} 10720 10721 cat <<__EOF__ >> "$cfgfile" 10722#! $SHELL 10723 10724# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10725# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10726# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10727# 10728# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 10729# Free Software Foundation, Inc. 10730# 10731# This file is part of GNU Libtool: 10732# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10733# 10734# This program is free software; you can redistribute it and/or modify 10735# it under the terms of the GNU General Public License as published by 10736# the Free Software Foundation; either version 2 of the License, or 10737# (at your option) any later version. 10738# 10739# This program is distributed in the hope that it will be useful, but 10740# WITHOUT ANY WARRANTY; without even the implied warranty of 10741# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10742# General Public License for more details. 10743# 10744# You should have received a copy of the GNU General Public License 10745# along with this program; if not, write to the Free Software 10746# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10747# 10748# As a special exception to the GNU General Public License, if you 10749# distribute this file as part of a program that contains a 10750# configuration script generated by Autoconf, you may include it under 10751# the same distribution terms that you use for the rest of that program. 10752 10753# A sed program that does not truncate output. 10754SED=$lt_SED 10755 10756# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10757Xsed="$SED -e 1s/^X//" 10758 10759# The HP-UX ksh and POSIX shell print the target directory to stdout 10760# if CDPATH is set. 10761(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10762 10763# The names of the tagged configurations supported by this script. 10764available_tags= 10765 10766# ### BEGIN LIBTOOL CONFIG 10767 10768# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10769 10770# Shell to use when invoking shell scripts. 10771SHELL=$lt_SHELL 10772 10773# Whether or not to build shared libraries. 10774build_libtool_libs=$enable_shared 10775 10776# Whether or not to build static libraries. 10777build_old_libs=$enable_static 10778 10779# Whether or not to add -lc for building shared libraries. 10780build_libtool_need_lc=$archive_cmds_need_lc 10781 10782# Whether or not to disallow shared libs when runtime libs are static 10783allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10784 10785# Whether or not to optimize for fast installation. 10786fast_install=$enable_fast_install 10787 10788# The host system. 10789host_alias=$host_alias 10790host=$host 10791host_os=$host_os 10792 10793# The build system. 10794build_alias=$build_alias 10795build=$build 10796build_os=$build_os 10797 10798# An echo program that does not interpret backslashes. 10799echo=$lt_echo 10800 10801# The archiver. 10802AR=$lt_AR 10803AR_FLAGS=$lt_AR_FLAGS 10804 10805# A C compiler. 10806LTCC=$lt_LTCC 10807 10808# LTCC compiler flags. 10809LTCFLAGS=$lt_LTCFLAGS 10810 10811# A language-specific compiler. 10812CC=$lt_compiler 10813 10814# Is the compiler the GNU C compiler? 10815with_gcc=$GCC 10816 10817# An ERE matcher. 10818EGREP=$lt_EGREP 10819 10820# The linker used to build libraries. 10821LD=$lt_LD 10822 10823# Whether we need hard or soft links. 10824LN_S=$lt_LN_S 10825 10826# A BSD-compatible nm program. 10827NM=$lt_NM 10828 10829# A symbol stripping program 10830STRIP=$lt_STRIP 10831 10832# Used to examine libraries when file_magic_cmd begins "file" 10833MAGIC_CMD=$MAGIC_CMD 10834 10835# Used on cygwin: DLL creation program. 10836DLLTOOL="$DLLTOOL" 10837 10838# Used on cygwin: object dumper. 10839OBJDUMP="$OBJDUMP" 10840 10841# Used on cygwin: assembler. 10842AS="$AS" 10843 10844# The name of the directory that contains temporary libtool files. 10845objdir=$objdir 10846 10847# How to create reloadable object files. 10848reload_flag=$lt_reload_flag 10849reload_cmds=$lt_reload_cmds 10850 10851# How to pass a linker flag through the compiler. 10852wl=$lt_lt_prog_compiler_wl 10853 10854# Object file suffix (normally "o"). 10855objext="$ac_objext" 10856 10857# Old archive suffix (normally "a"). 10858libext="$libext" 10859 10860# Shared library suffix (normally ".so"). 10861shrext_cmds='$shrext_cmds' 10862 10863# Executable file suffix (normally ""). 10864exeext="$exeext" 10865 10866# Additional compiler flags for building library objects. 10867pic_flag=$lt_lt_prog_compiler_pic 10868pic_mode=$pic_mode 10869 10870# What is the maximum length of a command? 10871max_cmd_len=$lt_cv_sys_max_cmd_len 10872 10873# Does compiler simultaneously support -c and -o options? 10874compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10875 10876# Must we lock files when doing compilation? 10877need_locks=$lt_need_locks 10878 10879# Do we need the lib prefix for modules? 10880need_lib_prefix=$need_lib_prefix 10881 10882# Do we need a version for libraries? 10883need_version=$need_version 10884 10885# Whether dlopen is supported. 10886dlopen_support=$enable_dlopen 10887 10888# Whether dlopen of programs is supported. 10889dlopen_self=$enable_dlopen_self 10890 10891# Whether dlopen of statically linked programs is supported. 10892dlopen_self_static=$enable_dlopen_self_static 10893 10894# Compiler flag to prevent dynamic linking. 10895link_static_flag=$lt_lt_prog_compiler_static 10896 10897# Compiler flag to turn off builtin functions. 10898no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10899 10900# Compiler flag to allow reflexive dlopens. 10901export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10902 10903# Compiler flag to generate shared objects directly from archives. 10904whole_archive_flag_spec=$lt_whole_archive_flag_spec 10905 10906# Compiler flag to generate thread-safe objects. 10907thread_safe_flag_spec=$lt_thread_safe_flag_spec 10908 10909# Library versioning type. 10910version_type=$version_type 10911 10912# Format of library name prefix. 10913libname_spec=$lt_libname_spec 10914 10915# List of archive names. First name is the real one, the rest are links. 10916# The last name is the one that the linker finds with -lNAME. 10917library_names_spec=$lt_library_names_spec 10918 10919# The coded name of the library, if different from the real name. 10920soname_spec=$lt_soname_spec 10921 10922# Commands used to build and install an old-style archive. 10923RANLIB=$lt_RANLIB 10924old_archive_cmds=$lt_old_archive_cmds 10925old_postinstall_cmds=$lt_old_postinstall_cmds 10926old_postuninstall_cmds=$lt_old_postuninstall_cmds 10927 10928# Create an old-style archive from a shared archive. 10929old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10930 10931# Create a temporary old-style archive to link instead of a shared archive. 10932old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10933 10934# Commands used to build and install a shared archive. 10935archive_cmds=$lt_archive_cmds 10936archive_expsym_cmds=$lt_archive_expsym_cmds 10937postinstall_cmds=$lt_postinstall_cmds 10938postuninstall_cmds=$lt_postuninstall_cmds 10939 10940# Commands used to build a loadable module (assumed same as above if empty) 10941module_cmds=$lt_module_cmds 10942module_expsym_cmds=$lt_module_expsym_cmds 10943 10944# Commands to strip libraries. 10945old_striplib=$lt_old_striplib 10946striplib=$lt_striplib 10947 10948# Dependencies to place before the objects being linked to create a 10949# shared library. 10950predep_objects=$lt_predep_objects 10951 10952# Dependencies to place after the objects being linked to create a 10953# shared library. 10954postdep_objects=$lt_postdep_objects 10955 10956# Dependencies to place before the objects being linked to create a 10957# shared library. 10958predeps=$lt_predeps 10959 10960# Dependencies to place after the objects being linked to create a 10961# shared library. 10962postdeps=$lt_postdeps 10963 10964# The library search path used internally by the compiler when linking 10965# a shared library. 10966compiler_lib_search_path=$lt_compiler_lib_search_path 10967 10968# Method to check whether dependent libraries are shared objects. 10969deplibs_check_method=$lt_deplibs_check_method 10970 10971# Command to use when deplibs_check_method == file_magic. 10972file_magic_cmd=$lt_file_magic_cmd 10973 10974# Flag that allows shared libraries with undefined symbols to be built. 10975allow_undefined_flag=$lt_allow_undefined_flag 10976 10977# Flag that forces no undefined symbols. 10978no_undefined_flag=$lt_no_undefined_flag 10979 10980# Commands used to finish a libtool library installation in a directory. 10981finish_cmds=$lt_finish_cmds 10982 10983# Same as above, but a single script fragment to be evaled but not shown. 10984finish_eval=$lt_finish_eval 10985 10986# Take the output of nm and produce a listing of raw symbols and C names. 10987global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10988 10989# Transform the output of nm in a proper C declaration 10990global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10991 10992# Transform the output of nm in a C name address pair 10993global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10994 10995# This is the shared library runtime path variable. 10996runpath_var=$runpath_var 10997 10998# This is the shared library path variable. 10999shlibpath_var=$shlibpath_var 11000 11001# Is shlibpath searched before the hard-coded library search path? 11002shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11003 11004# How to hardcode a shared library path into an executable. 11005hardcode_action=$hardcode_action 11006 11007# Whether we should hardcode library paths into libraries. 11008hardcode_into_libs=$hardcode_into_libs 11009 11010# Flag to hardcode \$libdir into a binary during linking. 11011# This must work even if \$libdir does not exist. 11012hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11013 11014# If ld is used when linking, flag to hardcode \$libdir into 11015# a binary during linking. This must work even if \$libdir does 11016# not exist. 11017hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11018 11019# Whether we need a single -rpath flag with a separated argument. 11020hardcode_libdir_separator=$lt_hardcode_libdir_separator 11021 11022# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11023# resulting binary. 11024hardcode_direct=$hardcode_direct 11025 11026# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11027# resulting binary. 11028hardcode_minus_L=$hardcode_minus_L 11029 11030# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11031# the resulting binary. 11032hardcode_shlibpath_var=$hardcode_shlibpath_var 11033 11034# Set to yes if building a shared library automatically hardcodes DIR into the library 11035# and all subsequent libraries and executables linked against it. 11036hardcode_automatic=$hardcode_automatic 11037 11038# Variables whose values should be saved in libtool wrapper scripts and 11039# restored at relink time. 11040variables_saved_for_relink="$variables_saved_for_relink" 11041 11042# Whether libtool must link a program against all its dependency libraries. 11043link_all_deplibs=$link_all_deplibs 11044 11045# Compile-time system search path for libraries 11046sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11047 11048# Run-time system search path for libraries 11049sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11050 11051# Fix the shell variable \$srcfile for the compiler. 11052fix_srcfile_path=$lt_fix_srcfile_path 11053 11054# Set to yes if exported symbols are required. 11055always_export_symbols=$always_export_symbols 11056 11057# The commands to list exported symbols. 11058export_symbols_cmds=$lt_export_symbols_cmds 11059 11060# The commands to extract the exported symbol list from a shared archive. 11061extract_expsyms_cmds=$lt_extract_expsyms_cmds 11062 11063# Symbols that should not be listed in the preloaded symbols. 11064exclude_expsyms=$lt_exclude_expsyms 11065 11066# Symbols that must always be exported. 11067include_expsyms=$lt_include_expsyms 11068 11069# ### END LIBTOOL CONFIG 11070 11071__EOF__ 11072 11073 11074 case $host_os in 11075 aix3*) 11076 cat <<\EOF >> "$cfgfile" 11077 11078# AIX sometimes has problems with the GCC collect2 program. For some 11079# reason, if we set the COLLECT_NAMES environment variable, the problems 11080# vanish in a puff of smoke. 11081if test "X${COLLECT_NAMES+set}" != Xset; then 11082 COLLECT_NAMES= 11083 export COLLECT_NAMES 11084fi 11085EOF 11086 ;; 11087 esac 11088 11089 # We use sed instead of cat because bash on DJGPP gets confused if 11090 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11091 # text mode, it properly converts lines to CR/LF. This bash problem 11092 # is reportedly fixed, but why not run on old versions too? 11093 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11094 11095 mv -f "$cfgfile" "$ofile" || \ 11096 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11097 chmod +x "$ofile" 11098 11099else 11100 # If there is no Makefile yet, we rely on a make rule to execute 11101 # `config.status --recheck' to rerun these tests and create the 11102 # libtool script then. 11103 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11104 if test -f "$ltmain_in"; then 11105 test -f Makefile && make "$ltmain" 11106 fi 11107fi 11108 11109 11110ac_ext=c 11111ac_cpp='$CPP $CPPFLAGS' 11112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11114ac_compiler_gnu=$ac_cv_c_compiler_gnu 11115 11116CC="$lt_save_CC" 11117 11118 11119# Check whether --with-tags was given. 11120if test "${with_tags+set}" = set; then 11121 withval=$with_tags; tagnames="$withval" 11122fi 11123 11124 11125if test -f "$ltmain" && test -n "$tagnames"; then 11126 if test ! -f "${ofile}"; then 11127 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11128echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11129 fi 11130 11131 if test -z "$LTCC"; then 11132 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11133 if test -z "$LTCC"; then 11134 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11135echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11136 else 11137 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11138echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11139 fi 11140 fi 11141 if test -z "$LTCFLAGS"; then 11142 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11143 fi 11144 11145 # Extract list of available tagged configurations in $ofile. 11146 # Note that this assumes the entire list is on one line. 11147 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11148 11149 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11150 for tagname in $tagnames; do 11151 IFS="$lt_save_ifs" 11152 # Check whether tagname contains only valid characters 11153 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11154 "") ;; 11155 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11156echo "$as_me: error: invalid tag name: $tagname" >&2;} 11157 { (exit 1); exit 1; }; } 11158 ;; 11159 esac 11160 11161 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11162 then 11163 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11164echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11165 { (exit 1); exit 1; }; } 11166 fi 11167 11168 # Update the list of available tags. 11169 if test -n "$tagname"; then 11170 echo appending configuration tag \"$tagname\" to $ofile 11171 11172 case $tagname in 11173 CXX) 11174 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11175 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11176 (test "X$CXX" != "Xg++"))) ; then 11177 ac_ext=cpp 11178ac_cpp='$CXXCPP $CPPFLAGS' 11179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11182 11183 11184 11185 11186archive_cmds_need_lc_CXX=no 11187allow_undefined_flag_CXX= 11188always_export_symbols_CXX=no 11189archive_expsym_cmds_CXX= 11190export_dynamic_flag_spec_CXX= 11191hardcode_direct_CXX=no 11192hardcode_libdir_flag_spec_CXX= 11193hardcode_libdir_flag_spec_ld_CXX= 11194hardcode_libdir_separator_CXX= 11195hardcode_minus_L_CXX=no 11196hardcode_shlibpath_var_CXX=unsupported 11197hardcode_automatic_CXX=no 11198module_cmds_CXX= 11199module_expsym_cmds_CXX= 11200link_all_deplibs_CXX=unknown 11201old_archive_cmds_CXX=$old_archive_cmds 11202no_undefined_flag_CXX= 11203whole_archive_flag_spec_CXX= 11204enable_shared_with_static_runtimes_CXX=no 11205 11206# Dependencies to place before and after the object being linked: 11207predep_objects_CXX= 11208postdep_objects_CXX= 11209predeps_CXX= 11210postdeps_CXX= 11211compiler_lib_search_path_CXX= 11212 11213# Source file extension for C++ test sources. 11214ac_ext=cpp 11215 11216# Object file extension for compiled C++ test sources. 11217objext=o 11218objext_CXX=$objext 11219 11220# Code to be used in simple compile tests 11221lt_simple_compile_test_code="int some_variable = 0;" 11222 11223# Code to be used in simple link tests 11224lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11225 11226# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11227 11228# If no C compiler was specified, use CC. 11229LTCC=${LTCC-"$CC"} 11230 11231# If no C compiler flags were specified, use CFLAGS. 11232LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11233 11234# Allow CC to be a program name with arguments. 11235compiler=$CC 11236 11237 11238# save warnings/boilerplate of simple test code 11239ac_outfile=conftest.$ac_objext 11240echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11241eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11242_lt_compiler_boilerplate=`cat conftest.err` 11243$rm conftest* 11244 11245ac_outfile=conftest.$ac_objext 11246echo "$lt_simple_link_test_code" >conftest.$ac_ext 11247eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11248_lt_linker_boilerplate=`cat conftest.err` 11249$rm conftest* 11250 11251 11252# Allow CC to be a program name with arguments. 11253lt_save_CC=$CC 11254lt_save_LD=$LD 11255lt_save_GCC=$GCC 11256GCC=$GXX 11257lt_save_with_gnu_ld=$with_gnu_ld 11258lt_save_path_LD=$lt_cv_path_LD 11259if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11260 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11261else 11262 $as_unset lt_cv_prog_gnu_ld 11263fi 11264if test -n "${lt_cv_path_LDCXX+set}"; then 11265 lt_cv_path_LD=$lt_cv_path_LDCXX 11266else 11267 $as_unset lt_cv_path_LD 11268fi 11269test -z "${LDCXX+set}" || LD=$LDCXX 11270CC=${CXX-"c++"} 11271compiler=$CC 11272compiler_CXX=$CC 11273for cc_temp in $compiler""; do 11274 case $cc_temp in 11275 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11276 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11277 \-*) ;; 11278 *) break;; 11279 esac 11280done 11281cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11282 11283 11284# We don't want -fno-exception wen compiling C++ code, so set the 11285# no_builtin_flag separately 11286if test "$GXX" = yes; then 11287 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11288else 11289 lt_prog_compiler_no_builtin_flag_CXX= 11290fi 11291 11292if test "$GXX" = yes; then 11293 # Set up default GNU C++ configuration 11294 11295 11296# Check whether --with-gnu-ld was given. 11297if test "${with_gnu_ld+set}" = set; then 11298 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11299else 11300 with_gnu_ld=no 11301fi 11302 11303ac_prog=ld 11304if test "$GCC" = yes; then 11305 # Check if gcc -print-prog-name=ld gives a path. 11306 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11307echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11308 case $host in 11309 *-*-mingw*) 11310 # gcc leaves a trailing carriage return which upsets mingw 11311 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11312 *) 11313 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11314 esac 11315 case $ac_prog in 11316 # Accept absolute paths. 11317 [\\/]* | ?:[\\/]*) 11318 re_direlt='/[^/][^/]*/\.\./' 11319 # Canonicalize the pathname of ld 11320 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11321 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11322 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11323 done 11324 test -z "$LD" && LD="$ac_prog" 11325 ;; 11326 "") 11327 # If it fails, then pretend we aren't using GCC. 11328 ac_prog=ld 11329 ;; 11330 *) 11331 # If it is relative, then search for the first ld in PATH. 11332 with_gnu_ld=unknown 11333 ;; 11334 esac 11335elif test "$with_gnu_ld" = yes; then 11336 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11337echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11338else 11339 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11340echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11341fi 11342if test "${lt_cv_path_LD+set}" = set; then 11343 echo $ECHO_N "(cached) $ECHO_C" >&6 11344else 11345 if test -z "$LD"; then 11346 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11347 for ac_dir in $PATH; do 11348 IFS="$lt_save_ifs" 11349 test -z "$ac_dir" && ac_dir=. 11350 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11351 lt_cv_path_LD="$ac_dir/$ac_prog" 11352 # Check to see if the program is GNU ld. I'd rather use --version, 11353 # but apparently some variants of GNU ld only accept -v. 11354 # Break only if it was the GNU/non-GNU ld that we prefer. 11355 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11356 *GNU* | *'with BFD'*) 11357 test "$with_gnu_ld" != no && break 11358 ;; 11359 *) 11360 test "$with_gnu_ld" != yes && break 11361 ;; 11362 esac 11363 fi 11364 done 11365 IFS="$lt_save_ifs" 11366else 11367 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11368fi 11369fi 11370 11371LD="$lt_cv_path_LD" 11372if test -n "$LD"; then 11373 { echo "$as_me:$LINENO: result: $LD" >&5 11374echo "${ECHO_T}$LD" >&6; } 11375else 11376 { echo "$as_me:$LINENO: result: no" >&5 11377echo "${ECHO_T}no" >&6; } 11378fi 11379test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11380echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11381 { (exit 1); exit 1; }; } 11382{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11383echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11384if test "${lt_cv_prog_gnu_ld+set}" = set; then 11385 echo $ECHO_N "(cached) $ECHO_C" >&6 11386else 11387 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11388case `$LD -v 2>&1 </dev/null` in 11389*GNU* | *'with BFD'*) 11390 lt_cv_prog_gnu_ld=yes 11391 ;; 11392*) 11393 lt_cv_prog_gnu_ld=no 11394 ;; 11395esac 11396fi 11397{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11398echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11399with_gnu_ld=$lt_cv_prog_gnu_ld 11400 11401 11402 11403 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11404 # archiving commands below assume that GNU ld is being used. 11405 if test "$with_gnu_ld" = yes; then 11406 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11407 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' 11408 11409 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11411 11412 # If archive_cmds runs LD, not CC, wlarc should be empty 11413 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11414 # investigate it a little bit more. (MM) 11415 wlarc='${wl}' 11416 11417 # ancient GNU ld didn't support --whole-archive et. al. 11418 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11419 grep 'no-whole-archive' > /dev/null; then 11420 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11421 else 11422 whole_archive_flag_spec_CXX= 11423 fi 11424 else 11425 with_gnu_ld=no 11426 wlarc= 11427 11428 # A generic and very simple default shared library creation 11429 # command for GNU C++ for the case where it uses the native 11430 # linker, instead of GNU ld. If possible, this setting should 11431 # overridden to take advantage of the native linker features on 11432 # the platform it is being used on. 11433 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11434 fi 11435 11436 # Commands to make compiler produce verbose output that lists 11437 # what "hidden" libraries, object files and flags are used when 11438 # linking a shared library. 11439 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11440 11441else 11442 GXX=no 11443 with_gnu_ld=no 11444 wlarc= 11445fi 11446 11447# PORTME: fill in a description of your system's C++ link characteristics 11448{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11449echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11450ld_shlibs_CXX=yes 11451case $host_os in 11452 aix3*) 11453 # FIXME: insert proper C++ library support 11454 ld_shlibs_CXX=no 11455 ;; 11456 aix4* | aix5*) 11457 if test "$host_cpu" = ia64; then 11458 # On IA64, the linker does run time linking by default, so we don't 11459 # have to do anything special. 11460 aix_use_runtimelinking=no 11461 exp_sym_flag='-Bexport' 11462 no_entry_flag="" 11463 else 11464 aix_use_runtimelinking=no 11465 11466 # Test if we are trying to use run time linking or normal 11467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11468 # need to do runtime linking. 11469 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11470 for ld_flag in $LDFLAGS; do 11471 case $ld_flag in 11472 *-brtl*) 11473 aix_use_runtimelinking=yes 11474 break 11475 ;; 11476 esac 11477 done 11478 ;; 11479 esac 11480 11481 exp_sym_flag='-bexport' 11482 no_entry_flag='-bnoentry' 11483 fi 11484 11485 # When large executables or shared objects are built, AIX ld can 11486 # have problems creating the table of contents. If linking a library 11487 # or program results in "error TOC overflow" add -mminimal-toc to 11488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11490 11491 archive_cmds_CXX='' 11492 hardcode_direct_CXX=yes 11493 hardcode_libdir_separator_CXX=':' 11494 link_all_deplibs_CXX=yes 11495 11496 if test "$GXX" = yes; then 11497 case $host_os in aix4.[012]|aix4.[012].*) 11498 # We only want to do this on AIX 4.2 and lower, the check 11499 # below for broken collect2 doesn't work under 4.3+ 11500 collect2name=`${CC} -print-prog-name=collect2` 11501 if test -f "$collect2name" && \ 11502 strings "$collect2name" | grep resolve_lib_name >/dev/null 11503 then 11504 # We have reworked collect2 11505 : 11506 else 11507 # We have old collect2 11508 hardcode_direct_CXX=unsupported 11509 # It fails to find uninstalled libraries when the uninstalled 11510 # path is not listed in the libpath. Setting hardcode_minus_L 11511 # to unsupported forces relinking 11512 hardcode_minus_L_CXX=yes 11513 hardcode_libdir_flag_spec_CXX='-L$libdir' 11514 hardcode_libdir_separator_CXX= 11515 fi 11516 ;; 11517 esac 11518 shared_flag='-shared' 11519 if test "$aix_use_runtimelinking" = yes; then 11520 shared_flag="$shared_flag "'${wl}-G' 11521 fi 11522 else 11523 # not using gcc 11524 if test "$host_cpu" = ia64; then 11525 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11526 # chokes on -Wl,-G. The following line is correct: 11527 shared_flag='-G' 11528 else 11529 if test "$aix_use_runtimelinking" = yes; then 11530 shared_flag='${wl}-G' 11531 else 11532 shared_flag='${wl}-bM:SRE' 11533 fi 11534 fi 11535 fi 11536 11537 # It seems that -bexpall does not export symbols beginning with 11538 # underscore (_), so it is better to generate a list of symbols to export. 11539 always_export_symbols_CXX=yes 11540 if test "$aix_use_runtimelinking" = yes; then 11541 # Warning - without using the other runtime loading flags (-brtl), 11542 # -berok will link without error, but may produce a broken library. 11543 allow_undefined_flag_CXX='-berok' 11544 # Determine the default libpath from the value encoded in an empty executable. 11545 cat >conftest.$ac_ext <<_ACEOF 11546/* confdefs.h. */ 11547_ACEOF 11548cat confdefs.h >>conftest.$ac_ext 11549cat >>conftest.$ac_ext <<_ACEOF 11550/* end confdefs.h. */ 11551 11552int 11553main () 11554{ 11555 11556 ; 11557 return 0; 11558} 11559_ACEOF 11560rm -f conftest.$ac_objext conftest$ac_exeext 11561if { (ac_try="$ac_link" 11562case "(($ac_try" in 11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11564 *) ac_try_echo=$ac_try;; 11565esac 11566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11567 (eval "$ac_link") 2>conftest.er1 11568 ac_status=$? 11569 grep -v '^ *+' conftest.er1 >conftest.err 11570 rm -f conftest.er1 11571 cat conftest.err >&5 11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11573 (exit $ac_status); } && { 11574 test -z "$ac_cxx_werror_flag" || 11575 test ! -s conftest.err 11576 } && test -s conftest$ac_exeext && 11577 $as_test_x conftest$ac_exeext; then 11578 11579lt_aix_libpath_sed=' 11580 /Import File Strings/,/^$/ { 11581 /^0/ { 11582 s/^0 *\(.*\)$/\1/ 11583 p 11584 } 11585 }' 11586aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11587# Check for a 64-bit object if we didn't find anything. 11588if test -z "$aix_libpath"; then 11589 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11590fi 11591else 11592 echo "$as_me: failed program was:" >&5 11593sed 's/^/| /' conftest.$ac_ext >&5 11594 11595 11596fi 11597 11598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11599 conftest$ac_exeext conftest.$ac_ext 11600if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11601 11602 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11603 11604 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" 11605 else 11606 if test "$host_cpu" = ia64; then 11607 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11608 allow_undefined_flag_CXX="-z nodefs" 11609 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" 11610 else 11611 # Determine the default libpath from the value encoded in an empty executable. 11612 cat >conftest.$ac_ext <<_ACEOF 11613/* confdefs.h. */ 11614_ACEOF 11615cat confdefs.h >>conftest.$ac_ext 11616cat >>conftest.$ac_ext <<_ACEOF 11617/* end confdefs.h. */ 11618 11619int 11620main () 11621{ 11622 11623 ; 11624 return 0; 11625} 11626_ACEOF 11627rm -f conftest.$ac_objext conftest$ac_exeext 11628if { (ac_try="$ac_link" 11629case "(($ac_try" in 11630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11631 *) ac_try_echo=$ac_try;; 11632esac 11633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11634 (eval "$ac_link") 2>conftest.er1 11635 ac_status=$? 11636 grep -v '^ *+' conftest.er1 >conftest.err 11637 rm -f conftest.er1 11638 cat conftest.err >&5 11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11640 (exit $ac_status); } && { 11641 test -z "$ac_cxx_werror_flag" || 11642 test ! -s conftest.err 11643 } && test -s conftest$ac_exeext && 11644 $as_test_x conftest$ac_exeext; then 11645 11646lt_aix_libpath_sed=' 11647 /Import File Strings/,/^$/ { 11648 /^0/ { 11649 s/^0 *\(.*\)$/\1/ 11650 p 11651 } 11652 }' 11653aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11654# Check for a 64-bit object if we didn't find anything. 11655if test -z "$aix_libpath"; then 11656 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11657fi 11658else 11659 echo "$as_me: failed program was:" >&5 11660sed 's/^/| /' conftest.$ac_ext >&5 11661 11662 11663fi 11664 11665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11666 conftest$ac_exeext conftest.$ac_ext 11667if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11668 11669 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11670 # Warning - without using the other run time loading flags, 11671 # -berok will link without error, but may produce a broken library. 11672 no_undefined_flag_CXX=' ${wl}-bernotok' 11673 allow_undefined_flag_CXX=' ${wl}-berok' 11674 # Exported symbols can be pulled into shared objects from archives 11675 whole_archive_flag_spec_CXX='$convenience' 11676 archive_cmds_need_lc_CXX=yes 11677 # This is similar to how AIX traditionally builds its shared libraries. 11678 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' 11679 fi 11680 fi 11681 ;; 11682 11683 beos*) 11684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11685 allow_undefined_flag_CXX=unsupported 11686 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11687 # support --undefined. This deserves some investigation. FIXME 11688 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11689 else 11690 ld_shlibs_CXX=no 11691 fi 11692 ;; 11693 11694 chorus*) 11695 case $cc_basename in 11696 *) 11697 # FIXME: insert proper C++ library support 11698 ld_shlibs_CXX=no 11699 ;; 11700 esac 11701 ;; 11702 11703 cygwin* | mingw* | pw32*) 11704 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11705 # as there is no search path for DLLs. 11706 hardcode_libdir_flag_spec_CXX='-L$libdir' 11707 allow_undefined_flag_CXX=unsupported 11708 always_export_symbols_CXX=no 11709 enable_shared_with_static_runtimes_CXX=yes 11710 11711 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11712 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' 11713 # If the export-symbols file already is a .def file (1st line 11714 # is EXPORTS), use it as is; otherwise, prepend... 11715 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11716 cp $export_symbols $output_objdir/$soname.def; 11717 else 11718 echo EXPORTS > $output_objdir/$soname.def; 11719 cat $export_symbols >> $output_objdir/$soname.def; 11720 fi~ 11721 $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' 11722 else 11723 ld_shlibs_CXX=no 11724 fi 11725 ;; 11726 darwin* | rhapsody*) 11727 case $host_os in 11728 rhapsody* | darwin1.[012]) 11729 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11730 ;; 11731 *) # Darwin 1.3 on 11732 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11733 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11734 else 11735 case ${MACOSX_DEPLOYMENT_TARGET} in 11736 10.[012]) 11737 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11738 ;; 11739 10.*) 11740 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11741 ;; 11742 esac 11743 fi 11744 ;; 11745 esac 11746 archive_cmds_need_lc_CXX=no 11747 hardcode_direct_CXX=no 11748 hardcode_automatic_CXX=yes 11749 hardcode_shlibpath_var_CXX=unsupported 11750 whole_archive_flag_spec_CXX='' 11751 link_all_deplibs_CXX=yes 11752 11753 if test "$GXX" = yes ; then 11754 lt_int_apple_cc_single_mod=no 11755 output_verbose_link_cmd='echo' 11756 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11757 lt_int_apple_cc_single_mod=yes 11758 fi 11759 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11760 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11761 else 11762 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' 11763 fi 11764 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11765 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11766 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11767 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11768 else 11769 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11770 fi 11771 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}' 11772 else 11773 case $cc_basename in 11774 xlc*) 11775 output_verbose_link_cmd='echo' 11776 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' 11777 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11778 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11779 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}' 11780 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}' 11781 ;; 11782 *) 11783 ld_shlibs_CXX=no 11784 ;; 11785 esac 11786 fi 11787 ;; 11788 11789 dgux*) 11790 case $cc_basename in 11791 ec++*) 11792 # FIXME: insert proper C++ library support 11793 ld_shlibs_CXX=no 11794 ;; 11795 ghcx*) 11796 # Green Hills C++ Compiler 11797 # FIXME: insert proper C++ library support 11798 ld_shlibs_CXX=no 11799 ;; 11800 *) 11801 # FIXME: insert proper C++ library support 11802 ld_shlibs_CXX=no 11803 ;; 11804 esac 11805 ;; 11806 freebsd[12]*) 11807 # C++ shared libraries reported to be fairly broken before switch to ELF 11808 ld_shlibs_CXX=no 11809 ;; 11810 freebsd-elf*) 11811 archive_cmds_need_lc_CXX=no 11812 ;; 11813 freebsd* | dragonfly*) 11814 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11815 # conventions 11816 ld_shlibs_CXX=yes 11817 ;; 11818 gnu*) 11819 ;; 11820 hpux9*) 11821 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11822 hardcode_libdir_separator_CXX=: 11823 export_dynamic_flag_spec_CXX='${wl}-E' 11824 hardcode_direct_CXX=yes 11825 hardcode_minus_L_CXX=yes # Not in the search PATH, 11826 # but as the default 11827 # location of the library. 11828 11829 case $cc_basename in 11830 CC*) 11831 # FIXME: insert proper C++ library support 11832 ld_shlibs_CXX=no 11833 ;; 11834 aCC*) 11835 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' 11836 # Commands to make compiler produce verbose output that lists 11837 # what "hidden" libraries, object files and flags are used when 11838 # linking a shared library. 11839 # 11840 # There doesn't appear to be a way to prevent this compiler from 11841 # explicitly linking system object files so we need to strip them 11842 # from the output so that they don't get included in the library 11843 # dependencies. 11844 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' 11845 ;; 11846 *) 11847 if test "$GXX" = yes; then 11848 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' 11849 else 11850 # FIXME: insert proper C++ library support 11851 ld_shlibs_CXX=no 11852 fi 11853 ;; 11854 esac 11855 ;; 11856 hpux10*|hpux11*) 11857 if test $with_gnu_ld = no; then 11858 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11859 hardcode_libdir_separator_CXX=: 11860 11861 case $host_cpu in 11862 hppa*64*|ia64*) ;; 11863 *) 11864 export_dynamic_flag_spec_CXX='${wl}-E' 11865 ;; 11866 esac 11867 fi 11868 case $host_cpu in 11869 hppa*64*|ia64*) 11870 hardcode_direct_CXX=no 11871 hardcode_shlibpath_var_CXX=no 11872 ;; 11873 *) 11874 hardcode_direct_CXX=yes 11875 hardcode_minus_L_CXX=yes # Not in the search PATH, 11876 # but as the default 11877 # location of the library. 11878 ;; 11879 esac 11880 11881 case $cc_basename in 11882 CC*) 11883 # FIXME: insert proper C++ library support 11884 ld_shlibs_CXX=no 11885 ;; 11886 aCC*) 11887 case $host_cpu in 11888 hppa*64*) 11889 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11890 ;; 11891 ia64*) 11892 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11893 ;; 11894 *) 11895 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11896 ;; 11897 esac 11898 # Commands to make compiler produce verbose output that lists 11899 # what "hidden" libraries, object files and flags are used when 11900 # linking a shared library. 11901 # 11902 # There doesn't appear to be a way to prevent this compiler from 11903 # explicitly linking system object files so we need to strip them 11904 # from the output so that they don't get included in the library 11905 # dependencies. 11906 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' 11907 ;; 11908 *) 11909 if test "$GXX" = yes; then 11910 if test $with_gnu_ld = no; then 11911 case $host_cpu in 11912 hppa*64*) 11913 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11914 ;; 11915 ia64*) 11916 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11917 ;; 11918 *) 11919 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' 11920 ;; 11921 esac 11922 fi 11923 else 11924 # FIXME: insert proper C++ library support 11925 ld_shlibs_CXX=no 11926 fi 11927 ;; 11928 esac 11929 ;; 11930 interix[3-9]*) 11931 hardcode_direct_CXX=no 11932 hardcode_shlibpath_var_CXX=no 11933 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11934 export_dynamic_flag_spec_CXX='${wl}-E' 11935 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11936 # Instead, shared libraries are loaded at an image base (0x10000000 by 11937 # default) and relocated if they conflict, which is a slow very memory 11938 # consuming and fragmenting process. To avoid this, we pick a random, 11939 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11940 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11941 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' 11942 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' 11943 ;; 11944 irix5* | irix6*) 11945 case $cc_basename in 11946 CC*) 11947 # SGI C++ 11948 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' 11949 11950 # Archives containing C++ object files must be created using 11951 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11952 # necessary to make sure instantiated templates are included 11953 # in the archive. 11954 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11955 ;; 11956 *) 11957 if test "$GXX" = yes; then 11958 if test "$with_gnu_ld" = no; then 11959 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' 11960 else 11961 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' 11962 fi 11963 fi 11964 link_all_deplibs_CXX=yes 11965 ;; 11966 esac 11967 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11968 hardcode_libdir_separator_CXX=: 11969 ;; 11970 linux* | k*bsd*-gnu) 11971 case $cc_basename in 11972 KCC*) 11973 # Kuck and Associates, Inc. (KAI) C++ Compiler 11974 11975 # KCC will only create a shared library if the output file 11976 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11977 # to its proper name (with version) after linking. 11978 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' 11979 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' 11980 # Commands to make compiler produce verbose output that lists 11981 # what "hidden" libraries, object files and flags are used when 11982 # linking a shared library. 11983 # 11984 # There doesn't appear to be a way to prevent this compiler from 11985 # explicitly linking system object files so we need to strip them 11986 # from the output so that they don't get included in the library 11987 # dependencies. 11988 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' 11989 11990 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11991 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11992 11993 # Archives containing C++ object files must be created using 11994 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11995 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11996 ;; 11997 icpc*) 11998 # Intel C++ 11999 with_gnu_ld=yes 12000 # version 8.0 and above of icpc choke on multiply defined symbols 12001 # if we add $predep_objects and $postdep_objects, however 7.1 and 12002 # earlier do not add the objects themselves. 12003 case `$CC -V 2>&1` in 12004 *"Version 7."*) 12005 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12006 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' 12007 ;; 12008 *) # Version 8.0 or newer 12009 tmp_idyn= 12010 case $host_cpu in 12011 ia64*) tmp_idyn=' -i_dynamic';; 12012 esac 12013 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12014 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' 12015 ;; 12016 esac 12017 archive_cmds_need_lc_CXX=no 12018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12020 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12021 ;; 12022 pgCC*) 12023 # Portland Group C++ compiler 12024 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12025 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' 12026 12027 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12028 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12029 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' 12030 ;; 12031 cxx*) 12032 # Compaq C++ 12033 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12034 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' 12035 12036 runpath_var=LD_RUN_PATH 12037 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12038 hardcode_libdir_separator_CXX=: 12039 12040 # Commands to make compiler produce verbose output that lists 12041 # what "hidden" libraries, object files and flags are used when 12042 # linking a shared library. 12043 # 12044 # There doesn't appear to be a way to prevent this compiler from 12045 # explicitly linking system object files so we need to strip them 12046 # from the output so that they don't get included in the library 12047 # dependencies. 12048 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' 12049 ;; 12050 *) 12051 case `$CC -V 2>&1 | sed 5q` in 12052 *Sun\ C*) 12053 # Sun C++ 5.9 12054 no_undefined_flag_CXX=' -zdefs' 12055 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12056 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' 12057 hardcode_libdir_flag_spec_CXX='-R$libdir' 12058 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' 12059 12060 # Not sure whether something based on 12061 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12062 # would be better. 12063 output_verbose_link_cmd='echo' 12064 12065 # Archives containing C++ object files must be created using 12066 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12067 # necessary to make sure instantiated templates are included 12068 # in the archive. 12069 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12070 ;; 12071 esac 12072 ;; 12073 esac 12074 ;; 12075 lynxos*) 12076 # FIXME: insert proper C++ library support 12077 ld_shlibs_CXX=no 12078 ;; 12079 m88k*) 12080 # FIXME: insert proper C++ library support 12081 ld_shlibs_CXX=no 12082 ;; 12083 mvs*) 12084 case $cc_basename in 12085 cxx*) 12086 # FIXME: insert proper C++ library support 12087 ld_shlibs_CXX=no 12088 ;; 12089 *) 12090 # FIXME: insert proper C++ library support 12091 ld_shlibs_CXX=no 12092 ;; 12093 esac 12094 ;; 12095 netbsd*) 12096 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12097 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12098 wlarc= 12099 hardcode_libdir_flag_spec_CXX='-R$libdir' 12100 hardcode_direct_CXX=yes 12101 hardcode_shlibpath_var_CXX=no 12102 fi 12103 # Workaround some broken pre-1.5 toolchains 12104 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12105 ;; 12106 openbsd2*) 12107 # C++ shared libraries are fairly broken 12108 ld_shlibs_CXX=no 12109 ;; 12110 openbsd*) 12111 if test -f /usr/libexec/ld.so; then 12112 hardcode_direct_CXX=yes 12113 hardcode_shlibpath_var_CXX=no 12114 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12115 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12116 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12117 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12118 export_dynamic_flag_spec_CXX='${wl}-E' 12119 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12120 fi 12121 output_verbose_link_cmd='echo' 12122 else 12123 ld_shlibs_CXX=no 12124 fi 12125 ;; 12126 osf3*) 12127 case $cc_basename in 12128 KCC*) 12129 # Kuck and Associates, Inc. (KAI) C++ Compiler 12130 12131 # KCC will only create a shared library if the output file 12132 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12133 # to its proper name (with version) after linking. 12134 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' 12135 12136 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12137 hardcode_libdir_separator_CXX=: 12138 12139 # Archives containing C++ object files must be created using 12140 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12141 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12142 12143 ;; 12144 RCC*) 12145 # Rational C++ 2.4.1 12146 # FIXME: insert proper C++ library support 12147 ld_shlibs_CXX=no 12148 ;; 12149 cxx*) 12150 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12151 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' 12152 12153 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12154 hardcode_libdir_separator_CXX=: 12155 12156 # Commands to make compiler produce verbose output that lists 12157 # what "hidden" libraries, object files and flags are used when 12158 # linking a shared library. 12159 # 12160 # There doesn't appear to be a way to prevent this compiler from 12161 # explicitly linking system object files so we need to strip them 12162 # from the output so that they don't get included in the library 12163 # dependencies. 12164 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' 12165 ;; 12166 *) 12167 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12168 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12169 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' 12170 12171 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12172 hardcode_libdir_separator_CXX=: 12173 12174 # Commands to make compiler produce verbose output that lists 12175 # what "hidden" libraries, object files and flags are used when 12176 # linking a shared library. 12177 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12178 12179 else 12180 # FIXME: insert proper C++ library support 12181 ld_shlibs_CXX=no 12182 fi 12183 ;; 12184 esac 12185 ;; 12186 osf4* | osf5*) 12187 case $cc_basename in 12188 KCC*) 12189 # Kuck and Associates, Inc. (KAI) C++ Compiler 12190 12191 # KCC will only create a shared library if the output file 12192 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12193 # to its proper name (with version) after linking. 12194 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' 12195 12196 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12197 hardcode_libdir_separator_CXX=: 12198 12199 # Archives containing C++ object files must be created using 12200 # the KAI C++ compiler. 12201 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12202 ;; 12203 RCC*) 12204 # Rational C++ 2.4.1 12205 # FIXME: insert proper C++ library support 12206 ld_shlibs_CXX=no 12207 ;; 12208 cxx*) 12209 allow_undefined_flag_CXX=' -expect_unresolved \*' 12210 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' 12211 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12212 echo "-hidden">> $lib.exp~ 12213 $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~ 12214 $rm $lib.exp' 12215 12216 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12217 hardcode_libdir_separator_CXX=: 12218 12219 # Commands to make compiler produce verbose output that lists 12220 # what "hidden" libraries, object files and flags are used when 12221 # linking a shared library. 12222 # 12223 # There doesn't appear to be a way to prevent this compiler from 12224 # explicitly linking system object files so we need to strip them 12225 # from the output so that they don't get included in the library 12226 # dependencies. 12227 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' 12228 ;; 12229 *) 12230 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12231 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12232 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' 12233 12234 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12235 hardcode_libdir_separator_CXX=: 12236 12237 # Commands to make compiler produce verbose output that lists 12238 # what "hidden" libraries, object files and flags are used when 12239 # linking a shared library. 12240 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12241 12242 else 12243 # FIXME: insert proper C++ library support 12244 ld_shlibs_CXX=no 12245 fi 12246 ;; 12247 esac 12248 ;; 12249 psos*) 12250 # FIXME: insert proper C++ library support 12251 ld_shlibs_CXX=no 12252 ;; 12253 sunos4*) 12254 case $cc_basename in 12255 CC*) 12256 # Sun C++ 4.x 12257 # FIXME: insert proper C++ library support 12258 ld_shlibs_CXX=no 12259 ;; 12260 lcc*) 12261 # Lucid 12262 # FIXME: insert proper C++ library support 12263 ld_shlibs_CXX=no 12264 ;; 12265 *) 12266 # FIXME: insert proper C++ library support 12267 ld_shlibs_CXX=no 12268 ;; 12269 esac 12270 ;; 12271 solaris*) 12272 case $cc_basename in 12273 CC*) 12274 # Sun C++ 4.2, 5.x and Centerline C++ 12275 archive_cmds_need_lc_CXX=yes 12276 no_undefined_flag_CXX=' -zdefs' 12277 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12278 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12279 $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' 12280 12281 hardcode_libdir_flag_spec_CXX='-R$libdir' 12282 hardcode_shlibpath_var_CXX=no 12283 case $host_os in 12284 solaris2.[0-5] | solaris2.[0-5].*) ;; 12285 *) 12286 # The compiler driver will combine and reorder linker options, 12287 # but understands `-z linker_flag'. 12288 # Supported since Solaris 2.6 (maybe 2.5.1?) 12289 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12290 ;; 12291 esac 12292 link_all_deplibs_CXX=yes 12293 12294 output_verbose_link_cmd='echo' 12295 12296 # Archives containing C++ object files must be created using 12297 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12298 # necessary to make sure instantiated templates are included 12299 # in the archive. 12300 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12301 ;; 12302 gcx*) 12303 # Green Hills C++ Compiler 12304 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12305 12306 # The C++ compiler must be used to create the archive. 12307 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12308 ;; 12309 *) 12310 # GNU C++ compiler with Solaris linker 12311 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12312 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12313 if $CC --version | grep -v '^2\.7' > /dev/null; then 12314 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12315 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12316 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12317 12318 # Commands to make compiler produce verbose output that lists 12319 # what "hidden" libraries, object files and flags are used when 12320 # linking a shared library. 12321 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12322 else 12323 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12324 # platform. 12325 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12326 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12327 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12328 12329 # Commands to make compiler produce verbose output that lists 12330 # what "hidden" libraries, object files and flags are used when 12331 # linking a shared library. 12332 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12333 fi 12334 12335 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12336 case $host_os in 12337 solaris2.[0-5] | solaris2.[0-5].*) ;; 12338 *) 12339 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12340 ;; 12341 esac 12342 fi 12343 ;; 12344 esac 12345 ;; 12346 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12347 no_undefined_flag_CXX='${wl}-z,text' 12348 archive_cmds_need_lc_CXX=no 12349 hardcode_shlibpath_var_CXX=no 12350 runpath_var='LD_RUN_PATH' 12351 12352 case $cc_basename in 12353 CC*) 12354 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12355 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12356 ;; 12357 *) 12358 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12359 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12360 ;; 12361 esac 12362 ;; 12363 sysv5* | sco3.2v5* | sco5v6*) 12364 # Note: We can NOT use -z defs as we might desire, because we do not 12365 # link with -lc, and that would cause any symbols used from libc to 12366 # always be unresolved, which means just about no library would 12367 # ever link correctly. If we're not using GNU ld we use -z text 12368 # though, which does catch some bad symbols but isn't as heavy-handed 12369 # as -z defs. 12370 # For security reasons, it is highly recommended that you always 12371 # use absolute paths for naming shared libraries, and exclude the 12372 # DT_RUNPATH tag from executables and libraries. But doing so 12373 # requires that you compile everything twice, which is a pain. 12374 # So that behaviour is only enabled if SCOABSPATH is set to a 12375 # non-empty value in the environment. Most likely only useful for 12376 # creating official distributions of packages. 12377 # This is a hack until libtool officially supports absolute path 12378 # names for shared libraries. 12379 no_undefined_flag_CXX='${wl}-z,text' 12380 allow_undefined_flag_CXX='${wl}-z,nodefs' 12381 archive_cmds_need_lc_CXX=no 12382 hardcode_shlibpath_var_CXX=no 12383 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12384 hardcode_libdir_separator_CXX=':' 12385 link_all_deplibs_CXX=yes 12386 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12387 runpath_var='LD_RUN_PATH' 12388 12389 case $cc_basename in 12390 CC*) 12391 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12392 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12393 ;; 12394 *) 12395 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12396 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12397 ;; 12398 esac 12399 ;; 12400 tandem*) 12401 case $cc_basename in 12402 NCC*) 12403 # NonStop-UX NCC 3.20 12404 # FIXME: insert proper C++ library support 12405 ld_shlibs_CXX=no 12406 ;; 12407 *) 12408 # FIXME: insert proper C++ library support 12409 ld_shlibs_CXX=no 12410 ;; 12411 esac 12412 ;; 12413 vxworks*) 12414 # FIXME: insert proper C++ library support 12415 ld_shlibs_CXX=no 12416 ;; 12417 *) 12418 # FIXME: insert proper C++ library support 12419 ld_shlibs_CXX=no 12420 ;; 12421esac 12422{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12423echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12424test "$ld_shlibs_CXX" = no && can_build_shared=no 12425 12426GCC_CXX="$GXX" 12427LD_CXX="$LD" 12428 12429 12430cat > conftest.$ac_ext <<EOF 12431class Foo 12432{ 12433public: 12434 Foo (void) { a = 0; } 12435private: 12436 int a; 12437}; 12438EOF 12439 12440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12441 (eval $ac_compile) 2>&5 12442 ac_status=$? 12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12444 (exit $ac_status); }; then 12445 # Parse the compiler output and extract the necessary 12446 # objects, libraries and library flags. 12447 12448 # Sentinel used to keep track of whether or not we are before 12449 # the conftest object file. 12450 pre_test_object_deps_done=no 12451 12452 # The `*' in the case matches for architectures that use `case' in 12453 # $output_verbose_cmd can trigger glob expansion during the loop 12454 # eval without this substitution. 12455 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12456 12457 for p in `eval $output_verbose_link_cmd`; do 12458 case $p in 12459 12460 -L* | -R* | -l*) 12461 # Some compilers place space between "-{L,R}" and the path. 12462 # Remove the space. 12463 if test $p = "-L" \ 12464 || test $p = "-R"; then 12465 prev=$p 12466 continue 12467 else 12468 prev= 12469 fi 12470 12471 if test "$pre_test_object_deps_done" = no; then 12472 case $p in 12473 -L* | -R*) 12474 # Internal compiler library paths should come after those 12475 # provided the user. The postdeps already come after the 12476 # user supplied libs so there is no need to process them. 12477 if test -z "$compiler_lib_search_path_CXX"; then 12478 compiler_lib_search_path_CXX="${prev}${p}" 12479 else 12480 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12481 fi 12482 ;; 12483 # The "-l" case would never come before the object being 12484 # linked, so don't bother handling this case. 12485 esac 12486 else 12487 if test -z "$postdeps_CXX"; then 12488 postdeps_CXX="${prev}${p}" 12489 else 12490 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12491 fi 12492 fi 12493 ;; 12494 12495 *.$objext) 12496 # This assumes that the test object file only shows up 12497 # once in the compiler output. 12498 if test "$p" = "conftest.$objext"; then 12499 pre_test_object_deps_done=yes 12500 continue 12501 fi 12502 12503 if test "$pre_test_object_deps_done" = no; then 12504 if test -z "$predep_objects_CXX"; then 12505 predep_objects_CXX="$p" 12506 else 12507 predep_objects_CXX="$predep_objects_CXX $p" 12508 fi 12509 else 12510 if test -z "$postdep_objects_CXX"; then 12511 postdep_objects_CXX="$p" 12512 else 12513 postdep_objects_CXX="$postdep_objects_CXX $p" 12514 fi 12515 fi 12516 ;; 12517 12518 *) ;; # Ignore the rest. 12519 12520 esac 12521 done 12522 12523 # Clean up. 12524 rm -f a.out a.exe 12525else 12526 echo "libtool.m4: error: problem compiling CXX test program" 12527fi 12528 12529$rm -f confest.$objext 12530 12531# PORTME: override above test on systems where it is broken 12532case $host_os in 12533interix[3-9]*) 12534 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12535 # hack all around it, let's just trust "g++" to DTRT. 12536 predep_objects_CXX= 12537 postdep_objects_CXX= 12538 postdeps_CXX= 12539 ;; 12540 12541linux*) 12542 case `$CC -V 2>&1 | sed 5q` in 12543 *Sun\ C*) 12544 # Sun C++ 5.9 12545 # 12546 # The more standards-conforming stlport4 library is 12547 # incompatible with the Cstd library. Avoid specifying 12548 # it if it's in CXXFLAGS. Ignore libCrun as 12549 # -library=stlport4 depends on it. 12550 case " $CXX $CXXFLAGS " in 12551 *" -library=stlport4 "*) 12552 solaris_use_stlport4=yes 12553 ;; 12554 esac 12555 if test "$solaris_use_stlport4" != yes; then 12556 postdeps_CXX='-library=Cstd -library=Crun' 12557 fi 12558 ;; 12559 esac 12560 ;; 12561 12562solaris*) 12563 case $cc_basename in 12564 CC*) 12565 # The more standards-conforming stlport4 library is 12566 # incompatible with the Cstd library. Avoid specifying 12567 # it if it's in CXXFLAGS. Ignore libCrun as 12568 # -library=stlport4 depends on it. 12569 case " $CXX $CXXFLAGS " in 12570 *" -library=stlport4 "*) 12571 solaris_use_stlport4=yes 12572 ;; 12573 esac 12574 12575 # Adding this requires a known-good setup of shared libraries for 12576 # Sun compiler versions before 5.6, else PIC objects from an old 12577 # archive will be linked into the output, leading to subtle bugs. 12578 if test "$solaris_use_stlport4" != yes; then 12579 postdeps_CXX='-library=Cstd -library=Crun' 12580 fi 12581 ;; 12582 esac 12583 ;; 12584esac 12585 12586 12587case " $postdeps_CXX " in 12588*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12589esac 12590 12591lt_prog_compiler_wl_CXX= 12592lt_prog_compiler_pic_CXX= 12593lt_prog_compiler_static_CXX= 12594 12595{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12596echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12597 12598 # C++ specific cases for pic, static, wl, etc. 12599 if test "$GXX" = yes; then 12600 lt_prog_compiler_wl_CXX='-Wl,' 12601 lt_prog_compiler_static_CXX='-static' 12602 12603 case $host_os in 12604 aix*) 12605 # All AIX code is PIC. 12606 if test "$host_cpu" = ia64; then 12607 # AIX 5 now supports IA64 processor 12608 lt_prog_compiler_static_CXX='-Bstatic' 12609 fi 12610 ;; 12611 amigaos*) 12612 # FIXME: we need at least 68020 code to build shared libraries, but 12613 # adding the `-m68020' flag to GCC prevents building anything better, 12614 # like `-m68040'. 12615 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12616 ;; 12617 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12618 # PIC is the default for these OSes. 12619 ;; 12620 mingw* | cygwin* | os2* | pw32*) 12621 # This hack is so that the source file can tell whether it is being 12622 # built for inclusion in a dll (and should export symbols for example). 12623 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12624 # (--disable-auto-import) libraries 12625 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12626 ;; 12627 darwin* | rhapsody*) 12628 # PIC is the default on this platform 12629 # Common symbols not allowed in MH_DYLIB files 12630 lt_prog_compiler_pic_CXX='-fno-common' 12631 ;; 12632 *djgpp*) 12633 # DJGPP does not support shared libraries at all 12634 lt_prog_compiler_pic_CXX= 12635 ;; 12636 interix[3-9]*) 12637 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12638 # Instead, we relocate shared libraries at runtime. 12639 ;; 12640 sysv4*MP*) 12641 if test -d /usr/nec; then 12642 lt_prog_compiler_pic_CXX=-Kconform_pic 12643 fi 12644 ;; 12645 hpux*) 12646 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12647 # not for PA HP-UX. 12648 case $host_cpu in 12649 hppa*64*|ia64*) 12650 ;; 12651 *) 12652 lt_prog_compiler_pic_CXX='-fPIC' 12653 ;; 12654 esac 12655 ;; 12656 *) 12657 lt_prog_compiler_pic_CXX='-fPIC' 12658 ;; 12659 esac 12660 else 12661 case $host_os in 12662 aix4* | aix5*) 12663 # All AIX code is PIC. 12664 if test "$host_cpu" = ia64; then 12665 # AIX 5 now supports IA64 processor 12666 lt_prog_compiler_static_CXX='-Bstatic' 12667 else 12668 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12669 fi 12670 ;; 12671 chorus*) 12672 case $cc_basename in 12673 cxch68*) 12674 # Green Hills C++ Compiler 12675 # _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" 12676 ;; 12677 esac 12678 ;; 12679 darwin*) 12680 # PIC is the default on this platform 12681 # Common symbols not allowed in MH_DYLIB files 12682 case $cc_basename in 12683 xlc*) 12684 lt_prog_compiler_pic_CXX='-qnocommon' 12685 lt_prog_compiler_wl_CXX='-Wl,' 12686 ;; 12687 esac 12688 ;; 12689 dgux*) 12690 case $cc_basename in 12691 ec++*) 12692 lt_prog_compiler_pic_CXX='-KPIC' 12693 ;; 12694 ghcx*) 12695 # Green Hills C++ Compiler 12696 lt_prog_compiler_pic_CXX='-pic' 12697 ;; 12698 *) 12699 ;; 12700 esac 12701 ;; 12702 freebsd* | dragonfly*) 12703 # FreeBSD uses GNU C++ 12704 ;; 12705 hpux9* | hpux10* | hpux11*) 12706 case $cc_basename in 12707 CC*) 12708 lt_prog_compiler_wl_CXX='-Wl,' 12709 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12710 if test "$host_cpu" != ia64; then 12711 lt_prog_compiler_pic_CXX='+Z' 12712 fi 12713 ;; 12714 aCC*) 12715 lt_prog_compiler_wl_CXX='-Wl,' 12716 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12717 case $host_cpu in 12718 hppa*64*|ia64*) 12719 # +Z the default 12720 ;; 12721 *) 12722 lt_prog_compiler_pic_CXX='+Z' 12723 ;; 12724 esac 12725 ;; 12726 *) 12727 ;; 12728 esac 12729 ;; 12730 interix*) 12731 # This is c89, which is MS Visual C++ (no shared libs) 12732 # Anyone wants to do a port? 12733 ;; 12734 irix5* | irix6* | nonstopux*) 12735 case $cc_basename in 12736 CC*) 12737 lt_prog_compiler_wl_CXX='-Wl,' 12738 lt_prog_compiler_static_CXX='-non_shared' 12739 # CC pic flag -KPIC is the default. 12740 ;; 12741 *) 12742 ;; 12743 esac 12744 ;; 12745 linux* | k*bsd*-gnu) 12746 case $cc_basename in 12747 KCC*) 12748 # KAI C++ Compiler 12749 lt_prog_compiler_wl_CXX='--backend -Wl,' 12750 lt_prog_compiler_pic_CXX='-fPIC' 12751 ;; 12752 icpc* | ecpc*) 12753 # Intel C++ 12754 lt_prog_compiler_wl_CXX='-Wl,' 12755 lt_prog_compiler_pic_CXX='-KPIC' 12756 lt_prog_compiler_static_CXX='-static' 12757 ;; 12758 pgCC*) 12759 # Portland Group C++ compiler. 12760 lt_prog_compiler_wl_CXX='-Wl,' 12761 lt_prog_compiler_pic_CXX='-fpic' 12762 lt_prog_compiler_static_CXX='-Bstatic' 12763 ;; 12764 cxx*) 12765 # Compaq C++ 12766 # Make sure the PIC flag is empty. It appears that all Alpha 12767 # Linux and Compaq Tru64 Unix objects are PIC. 12768 lt_prog_compiler_pic_CXX= 12769 lt_prog_compiler_static_CXX='-non_shared' 12770 ;; 12771 *) 12772 case `$CC -V 2>&1 | sed 5q` in 12773 *Sun\ C*) 12774 # Sun C++ 5.9 12775 lt_prog_compiler_pic_CXX='-KPIC' 12776 lt_prog_compiler_static_CXX='-Bstatic' 12777 lt_prog_compiler_wl_CXX='-Qoption ld ' 12778 ;; 12779 esac 12780 ;; 12781 esac 12782 ;; 12783 lynxos*) 12784 ;; 12785 m88k*) 12786 ;; 12787 mvs*) 12788 case $cc_basename in 12789 cxx*) 12790 lt_prog_compiler_pic_CXX='-W c,exportall' 12791 ;; 12792 *) 12793 ;; 12794 esac 12795 ;; 12796 netbsd*) 12797 ;; 12798 osf3* | osf4* | osf5*) 12799 case $cc_basename in 12800 KCC*) 12801 lt_prog_compiler_wl_CXX='--backend -Wl,' 12802 ;; 12803 RCC*) 12804 # Rational C++ 2.4.1 12805 lt_prog_compiler_pic_CXX='-pic' 12806 ;; 12807 cxx*) 12808 # Digital/Compaq C++ 12809 lt_prog_compiler_wl_CXX='-Wl,' 12810 # Make sure the PIC flag is empty. It appears that all Alpha 12811 # Linux and Compaq Tru64 Unix objects are PIC. 12812 lt_prog_compiler_pic_CXX= 12813 lt_prog_compiler_static_CXX='-non_shared' 12814 ;; 12815 *) 12816 ;; 12817 esac 12818 ;; 12819 psos*) 12820 ;; 12821 solaris*) 12822 case $cc_basename in 12823 CC*) 12824 # Sun C++ 4.2, 5.x and Centerline C++ 12825 lt_prog_compiler_pic_CXX='-KPIC' 12826 lt_prog_compiler_static_CXX='-Bstatic' 12827 lt_prog_compiler_wl_CXX='-Qoption ld ' 12828 ;; 12829 gcx*) 12830 # Green Hills C++ Compiler 12831 lt_prog_compiler_pic_CXX='-PIC' 12832 ;; 12833 *) 12834 ;; 12835 esac 12836 ;; 12837 sunos4*) 12838 case $cc_basename in 12839 CC*) 12840 # Sun C++ 4.x 12841 lt_prog_compiler_pic_CXX='-pic' 12842 lt_prog_compiler_static_CXX='-Bstatic' 12843 ;; 12844 lcc*) 12845 # Lucid 12846 lt_prog_compiler_pic_CXX='-pic' 12847 ;; 12848 *) 12849 ;; 12850 esac 12851 ;; 12852 tandem*) 12853 case $cc_basename in 12854 NCC*) 12855 # NonStop-UX NCC 3.20 12856 lt_prog_compiler_pic_CXX='-KPIC' 12857 ;; 12858 *) 12859 ;; 12860 esac 12861 ;; 12862 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12863 case $cc_basename in 12864 CC*) 12865 lt_prog_compiler_wl_CXX='-Wl,' 12866 lt_prog_compiler_pic_CXX='-KPIC' 12867 lt_prog_compiler_static_CXX='-Bstatic' 12868 ;; 12869 esac 12870 ;; 12871 vxworks*) 12872 ;; 12873 *) 12874 lt_prog_compiler_can_build_shared_CXX=no 12875 ;; 12876 esac 12877 fi 12878 12879{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12880echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12881 12882# 12883# Check to make sure the PIC flag actually works. 12884# 12885if test -n "$lt_prog_compiler_pic_CXX"; then 12886 12887{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12888echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12889if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12890 echo $ECHO_N "(cached) $ECHO_C" >&6 12891else 12892 lt_prog_compiler_pic_works_CXX=no 12893 ac_outfile=conftest.$ac_objext 12894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12895 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12896 # Insert the option either (1) after the last *FLAGS variable, or 12897 # (2) before a word containing "conftest.", or (3) at the end. 12898 # Note that $ac_compile itself does not contain backslashes and begins 12899 # with a dollar sign (not a hyphen), so the echo should work correctly. 12900 # The option is referenced via a variable to avoid confusing sed. 12901 lt_compile=`echo "$ac_compile" | $SED \ 12902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12904 -e 's:$: $lt_compiler_flag:'` 12905 (eval echo "\"\$as_me:12905: $lt_compile\"" >&5) 12906 (eval "$lt_compile" 2>conftest.err) 12907 ac_status=$? 12908 cat conftest.err >&5 12909 echo "$as_me:12909: \$? = $ac_status" >&5 12910 if (exit $ac_status) && test -s "$ac_outfile"; then 12911 # The compiler can only warn and ignore the option if not recognized 12912 # So say no if there are warnings other than the usual output. 12913 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12915 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12916 lt_prog_compiler_pic_works_CXX=yes 12917 fi 12918 fi 12919 $rm conftest* 12920 12921fi 12922{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12923echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12924 12925if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12926 case $lt_prog_compiler_pic_CXX in 12927 "" | " "*) ;; 12928 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12929 esac 12930else 12931 lt_prog_compiler_pic_CXX= 12932 lt_prog_compiler_can_build_shared_CXX=no 12933fi 12934 12935fi 12936case $host_os in 12937 # For platforms which do not support PIC, -DPIC is meaningless: 12938 *djgpp*) 12939 lt_prog_compiler_pic_CXX= 12940 ;; 12941 *) 12942 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12943 ;; 12944esac 12945 12946# 12947# Check to make sure the static flag actually works. 12948# 12949wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12950{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12951echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12952if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12953 echo $ECHO_N "(cached) $ECHO_C" >&6 12954else 12955 lt_prog_compiler_static_works_CXX=no 12956 save_LDFLAGS="$LDFLAGS" 12957 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12958 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12959 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12960 # The linker can only warn and ignore the option if not recognized 12961 # So say no if there are warnings 12962 if test -s conftest.err; then 12963 # Append any errors to the config.log. 12964 cat conftest.err 1>&5 12965 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12967 if diff conftest.exp conftest.er2 >/dev/null; then 12968 lt_prog_compiler_static_works_CXX=yes 12969 fi 12970 else 12971 lt_prog_compiler_static_works_CXX=yes 12972 fi 12973 fi 12974 $rm conftest* 12975 LDFLAGS="$save_LDFLAGS" 12976 12977fi 12978{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12979echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12980 12981if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12982 : 12983else 12984 lt_prog_compiler_static_CXX= 12985fi 12986 12987 12988{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12989echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12990if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12991 echo $ECHO_N "(cached) $ECHO_C" >&6 12992else 12993 lt_cv_prog_compiler_c_o_CXX=no 12994 $rm -r conftest 2>/dev/null 12995 mkdir conftest 12996 cd conftest 12997 mkdir out 12998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12999 13000 lt_compiler_flag="-o out/conftest2.$ac_objext" 13001 # Insert the option either (1) after the last *FLAGS variable, or 13002 # (2) before a word containing "conftest.", or (3) at the end. 13003 # Note that $ac_compile itself does not contain backslashes and begins 13004 # with a dollar sign (not a hyphen), so the echo should work correctly. 13005 lt_compile=`echo "$ac_compile" | $SED \ 13006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13008 -e 's:$: $lt_compiler_flag:'` 13009 (eval echo "\"\$as_me:13009: $lt_compile\"" >&5) 13010 (eval "$lt_compile" 2>out/conftest.err) 13011 ac_status=$? 13012 cat out/conftest.err >&5 13013 echo "$as_me:13013: \$? = $ac_status" >&5 13014 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13015 then 13016 # The compiler can only warn and ignore the option if not recognized 13017 # So say no if there are warnings 13018 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13019 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13020 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13021 lt_cv_prog_compiler_c_o_CXX=yes 13022 fi 13023 fi 13024 chmod u+w . 2>&5 13025 $rm conftest* 13026 # SGI C++ compiler will create directory out/ii_files/ for 13027 # template instantiation 13028 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13029 $rm out/* && rmdir out 13030 cd .. 13031 rmdir conftest 13032 $rm conftest* 13033 13034fi 13035{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13036echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 13037 13038 13039hard_links="nottested" 13040if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13041 # do not overwrite the value of need_locks provided by the user 13042 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13043echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 13044 hard_links=yes 13045 $rm conftest* 13046 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13047 touch conftest.a 13048 ln conftest.a conftest.b 2>&5 || hard_links=no 13049 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13050 { echo "$as_me:$LINENO: result: $hard_links" >&5 13051echo "${ECHO_T}$hard_links" >&6; } 13052 if test "$hard_links" = no; then 13053 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13054echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13055 need_locks=warn 13056 fi 13057else 13058 need_locks=no 13059fi 13060 13061{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13062echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 13063 13064 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13065 case $host_os in 13066 aix4* | aix5*) 13067 # If we're using GNU nm, then we don't want the "-C" option. 13068 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13069 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13070 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' 13071 else 13072 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' 13073 fi 13074 ;; 13075 pw32*) 13076 export_symbols_cmds_CXX="$ltdll_cmds" 13077 ;; 13078 cygwin* | mingw*) 13079 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' 13080 ;; 13081 *) 13082 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13083 ;; 13084 esac 13085 13086{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13087echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 13088test "$ld_shlibs_CXX" = no && can_build_shared=no 13089 13090# 13091# Do we need to explicitly link libc? 13092# 13093case "x$archive_cmds_need_lc_CXX" in 13094x|xyes) 13095 # Assume -lc should be added 13096 archive_cmds_need_lc_CXX=yes 13097 13098 if test "$enable_shared" = yes && test "$GCC" = yes; then 13099 case $archive_cmds_CXX in 13100 *'~'*) 13101 # FIXME: we may have to deal with multi-command sequences. 13102 ;; 13103 '$CC '*) 13104 # Test whether the compiler implicitly links with -lc since on some 13105 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13106 # to ld, don't add -lc before -lgcc. 13107 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13108echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 13109 $rm conftest* 13110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13111 13112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13113 (eval $ac_compile) 2>&5 13114 ac_status=$? 13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13116 (exit $ac_status); } 2>conftest.err; then 13117 soname=conftest 13118 lib=conftest 13119 libobjs=conftest.$ac_objext 13120 deplibs= 13121 wl=$lt_prog_compiler_wl_CXX 13122 pic_flag=$lt_prog_compiler_pic_CXX 13123 compiler_flags=-v 13124 linker_flags=-v 13125 verstring= 13126 output_objdir=. 13127 libname=conftest 13128 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13129 allow_undefined_flag_CXX= 13130 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13131 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13132 ac_status=$? 13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13134 (exit $ac_status); } 13135 then 13136 archive_cmds_need_lc_CXX=no 13137 else 13138 archive_cmds_need_lc_CXX=yes 13139 fi 13140 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13141 else 13142 cat conftest.err 1>&5 13143 fi 13144 $rm conftest* 13145 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 13146echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 13147 ;; 13148 esac 13149 fi 13150 ;; 13151esac 13152 13153{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13154echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 13155library_names_spec= 13156libname_spec='lib$name' 13157soname_spec= 13158shrext_cmds=".so" 13159postinstall_cmds= 13160postuninstall_cmds= 13161finish_cmds= 13162finish_eval= 13163shlibpath_var= 13164shlibpath_overrides_runpath=unknown 13165version_type=none 13166dynamic_linker="$host_os ld.so" 13167sys_lib_dlsearch_path_spec="/lib /usr/lib" 13168 13169need_lib_prefix=unknown 13170hardcode_into_libs=no 13171 13172# when you set need_version to no, make sure it does not cause -set_version 13173# flags to be left without arguments 13174need_version=unknown 13175 13176case $host_os in 13177aix3*) 13178 version_type=linux 13179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13180 shlibpath_var=LIBPATH 13181 13182 # AIX 3 has no versioning support, so we append a major version to the name. 13183 soname_spec='${libname}${release}${shared_ext}$major' 13184 ;; 13185 13186aix4* | aix5*) 13187 version_type=linux 13188 need_lib_prefix=no 13189 need_version=no 13190 hardcode_into_libs=yes 13191 if test "$host_cpu" = ia64; then 13192 # AIX 5 supports IA64 13193 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13194 shlibpath_var=LD_LIBRARY_PATH 13195 else 13196 # With GCC up to 2.95.x, collect2 would create an import file 13197 # for dependence libraries. The import file would start with 13198 # the line `#! .'. This would cause the generated library to 13199 # depend on `.', always an invalid library. This was fixed in 13200 # development snapshots of GCC prior to 3.0. 13201 case $host_os in 13202 aix4 | aix4.[01] | aix4.[01].*) 13203 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13204 echo ' yes ' 13205 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13206 : 13207 else 13208 can_build_shared=no 13209 fi 13210 ;; 13211 esac 13212 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13213 # soname into executable. Probably we can add versioning support to 13214 # collect2, so additional links can be useful in future. 13215 if test "$aix_use_runtimelinking" = yes; then 13216 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13217 # instead of lib<name>.a to let people know that these are not 13218 # typical AIX shared libraries. 13219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13220 else 13221 # We preserve .a as extension for shared libraries through AIX4.2 13222 # and later when we are not doing run time linking. 13223 library_names_spec='${libname}${release}.a $libname.a' 13224 soname_spec='${libname}${release}${shared_ext}$major' 13225 fi 13226 shlibpath_var=LIBPATH 13227 fi 13228 ;; 13229 13230amigaos*) 13231 library_names_spec='$libname.ixlibrary $libname.a' 13232 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13233 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' 13234 ;; 13235 13236beos*) 13237 library_names_spec='${libname}${shared_ext}' 13238 dynamic_linker="$host_os ld.so" 13239 shlibpath_var=LIBRARY_PATH 13240 ;; 13241 13242bsdi[45]*) 13243 version_type=linux 13244 need_version=no 13245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13246 soname_spec='${libname}${release}${shared_ext}$major' 13247 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13248 shlibpath_var=LD_LIBRARY_PATH 13249 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13250 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13251 # the default ld.so.conf also contains /usr/contrib/lib and 13252 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13253 # libtool to hard-code these into programs 13254 ;; 13255 13256cygwin* | mingw* | pw32*) 13257 version_type=windows 13258 shrext_cmds=".dll" 13259 need_version=no 13260 need_lib_prefix=no 13261 13262 case $GCC,$host_os in 13263 yes,cygwin* | yes,mingw* | yes,pw32*) 13264 library_names_spec='$libname.dll.a' 13265 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13266 postinstall_cmds='base_file=`basename \${file}`~ 13267 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13268 dldir=$destdir/`dirname \$dlpath`~ 13269 test -d \$dldir || mkdir -p \$dldir~ 13270 $install_prog $dir/$dlname \$dldir/$dlname~ 13271 chmod a+x \$dldir/$dlname' 13272 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13273 dlpath=$dir/\$dldll~ 13274 $rm \$dlpath' 13275 shlibpath_overrides_runpath=yes 13276 13277 case $host_os in 13278 cygwin*) 13279 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13280 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13281 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13282 ;; 13283 mingw*) 13284 # MinGW DLLs use traditional 'lib' prefix 13285 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13286 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13287 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13288 # It is most probably a Windows format PATH printed by 13289 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13290 # path with ; separators, and with drive letters. We can handle the 13291 # drive letters (cygwin fileutils understands them), so leave them, 13292 # especially as we might pass files found there to a mingw objdump, 13293 # which wouldn't understand a cygwinified path. Ahh. 13294 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13295 else 13296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13297 fi 13298 ;; 13299 pw32*) 13300 # pw32 DLLs use 'pw' prefix rather than 'lib' 13301 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13302 ;; 13303 esac 13304 ;; 13305 13306 *) 13307 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13308 ;; 13309 esac 13310 dynamic_linker='Win32 ld.exe' 13311 # FIXME: first we should search . and the directory the executable is in 13312 shlibpath_var=PATH 13313 ;; 13314 13315darwin* | rhapsody*) 13316 dynamic_linker="$host_os dyld" 13317 version_type=darwin 13318 need_lib_prefix=no 13319 need_version=no 13320 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13321 soname_spec='${libname}${release}${major}$shared_ext' 13322 shlibpath_overrides_runpath=yes 13323 shlibpath_var=DYLD_LIBRARY_PATH 13324 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13325 13326 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13327 ;; 13328 13329dgux*) 13330 version_type=linux 13331 need_lib_prefix=no 13332 need_version=no 13333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13334 soname_spec='${libname}${release}${shared_ext}$major' 13335 shlibpath_var=LD_LIBRARY_PATH 13336 ;; 13337 13338freebsd1*) 13339 dynamic_linker=no 13340 ;; 13341 13342freebsd* | dragonfly*) 13343 # DragonFly does not have aout. When/if they implement a new 13344 # versioning mechanism, adjust this. 13345 if test -x /usr/bin/objformat; then 13346 objformat=`/usr/bin/objformat` 13347 else 13348 case $host_os in 13349 freebsd[123]*) objformat=aout ;; 13350 *) objformat=elf ;; 13351 esac 13352 fi 13353 version_type=freebsd-$objformat 13354 case $version_type in 13355 freebsd-elf*) 13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13357 need_version=no 13358 need_lib_prefix=no 13359 ;; 13360 freebsd-*) 13361 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13362 need_version=yes 13363 ;; 13364 esac 13365 shlibpath_var=LD_LIBRARY_PATH 13366 case $host_os in 13367 freebsd2*) 13368 shlibpath_overrides_runpath=yes 13369 ;; 13370 freebsd3.[01]* | freebsdelf3.[01]*) 13371 shlibpath_overrides_runpath=yes 13372 hardcode_into_libs=yes 13373 ;; 13374 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13375 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13376 shlibpath_overrides_runpath=no 13377 hardcode_into_libs=yes 13378 ;; 13379 *) # from 4.6 on, and DragonFly 13380 shlibpath_overrides_runpath=yes 13381 hardcode_into_libs=yes 13382 ;; 13383 esac 13384 ;; 13385 13386gnu*) 13387 version_type=linux 13388 need_lib_prefix=no 13389 need_version=no 13390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13391 soname_spec='${libname}${release}${shared_ext}$major' 13392 shlibpath_var=LD_LIBRARY_PATH 13393 hardcode_into_libs=yes 13394 ;; 13395 13396hpux9* | hpux10* | hpux11*) 13397 # Give a soname corresponding to the major version so that dld.sl refuses to 13398 # link against other versions. 13399 version_type=sunos 13400 need_lib_prefix=no 13401 need_version=no 13402 case $host_cpu in 13403 ia64*) 13404 shrext_cmds='.so' 13405 hardcode_into_libs=yes 13406 dynamic_linker="$host_os dld.so" 13407 shlibpath_var=LD_LIBRARY_PATH 13408 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13410 soname_spec='${libname}${release}${shared_ext}$major' 13411 if test "X$HPUX_IA64_MODE" = X32; then 13412 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13413 else 13414 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13415 fi 13416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13417 ;; 13418 hppa*64*) 13419 shrext_cmds='.sl' 13420 hardcode_into_libs=yes 13421 dynamic_linker="$host_os dld.sl" 13422 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13425 soname_spec='${libname}${release}${shared_ext}$major' 13426 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13427 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13428 ;; 13429 *) 13430 shrext_cmds='.sl' 13431 dynamic_linker="$host_os dld.sl" 13432 shlibpath_var=SHLIB_PATH 13433 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13435 soname_spec='${libname}${release}${shared_ext}$major' 13436 ;; 13437 esac 13438 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13439 postinstall_cmds='chmod 555 $lib' 13440 ;; 13441 13442interix[3-9]*) 13443 version_type=linux 13444 need_lib_prefix=no 13445 need_version=no 13446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13447 soname_spec='${libname}${release}${shared_ext}$major' 13448 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13449 shlibpath_var=LD_LIBRARY_PATH 13450 shlibpath_overrides_runpath=no 13451 hardcode_into_libs=yes 13452 ;; 13453 13454irix5* | irix6* | nonstopux*) 13455 case $host_os in 13456 nonstopux*) version_type=nonstopux ;; 13457 *) 13458 if test "$lt_cv_prog_gnu_ld" = yes; then 13459 version_type=linux 13460 else 13461 version_type=irix 13462 fi ;; 13463 esac 13464 need_lib_prefix=no 13465 need_version=no 13466 soname_spec='${libname}${release}${shared_ext}$major' 13467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13468 case $host_os in 13469 irix5* | nonstopux*) 13470 libsuff= shlibsuff= 13471 ;; 13472 *) 13473 case $LD in # libtool.m4 will add one of these switches to LD 13474 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13475 libsuff= shlibsuff= libmagic=32-bit;; 13476 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13477 libsuff=32 shlibsuff=N32 libmagic=N32;; 13478 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13479 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13480 *) libsuff= shlibsuff= libmagic=never-match;; 13481 esac 13482 ;; 13483 esac 13484 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13485 shlibpath_overrides_runpath=no 13486 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13487 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13488 hardcode_into_libs=yes 13489 ;; 13490 13491# No shared lib support for Linux oldld, aout, or coff. 13492linux*oldld* | linux*aout* | linux*coff*) 13493 dynamic_linker=no 13494 ;; 13495 13496# This must be Linux ELF. 13497linux* | k*bsd*-gnu) 13498 version_type=linux 13499 need_lib_prefix=no 13500 need_version=no 13501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13502 soname_spec='${libname}${release}${shared_ext}$major' 13503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13504 shlibpath_var=LD_LIBRARY_PATH 13505 shlibpath_overrides_runpath=no 13506 # This implies no fast_install, which is unacceptable. 13507 # Some rework will be needed to allow for fast_install 13508 # before this can be enabled. 13509 hardcode_into_libs=yes 13510 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13511 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13512 13513 # Append ld.so.conf contents to the search path 13514 if test -f /etc/ld.so.conf; then 13515 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' ' '` 13516 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13517 fi 13518 13519 # We used to test for /lib/ld.so.1 and disable shared libraries on 13520 # powerpc, because MkLinux only supported shared libraries with the 13521 # GNU dynamic linker. Since this was broken with cross compilers, 13522 # most powerpc-linux boxes support dynamic linking these days and 13523 # people can always --disable-shared, the test was removed, and we 13524 # assume the GNU/Linux dynamic linker is in use. 13525 dynamic_linker='GNU/Linux ld.so' 13526 ;; 13527 13528netbsd*) 13529 version_type=sunos 13530 need_lib_prefix=no 13531 need_version=no 13532 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13535 dynamic_linker='NetBSD (a.out) ld.so' 13536 else 13537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13538 soname_spec='${libname}${release}${shared_ext}$major' 13539 dynamic_linker='NetBSD ld.elf_so' 13540 fi 13541 shlibpath_var=LD_LIBRARY_PATH 13542 shlibpath_overrides_runpath=yes 13543 hardcode_into_libs=yes 13544 ;; 13545 13546newsos6) 13547 version_type=linux 13548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13549 shlibpath_var=LD_LIBRARY_PATH 13550 shlibpath_overrides_runpath=yes 13551 ;; 13552 13553nto-qnx*) 13554 version_type=linux 13555 need_lib_prefix=no 13556 need_version=no 13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13558 soname_spec='${libname}${release}${shared_ext}$major' 13559 shlibpath_var=LD_LIBRARY_PATH 13560 shlibpath_overrides_runpath=yes 13561 ;; 13562 13563openbsd*) 13564 version_type=sunos 13565 sys_lib_dlsearch_path_spec="/usr/lib" 13566 need_lib_prefix=no 13567 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13568 case $host_os in 13569 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13570 *) need_version=no ;; 13571 esac 13572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13574 shlibpath_var=LD_LIBRARY_PATH 13575 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13576 case $host_os in 13577 openbsd2.[89] | openbsd2.[89].*) 13578 shlibpath_overrides_runpath=no 13579 ;; 13580 *) 13581 shlibpath_overrides_runpath=yes 13582 ;; 13583 esac 13584 else 13585 shlibpath_overrides_runpath=yes 13586 fi 13587 ;; 13588 13589os2*) 13590 libname_spec='$name' 13591 shrext_cmds=".dll" 13592 need_lib_prefix=no 13593 library_names_spec='$libname${shared_ext} $libname.a' 13594 dynamic_linker='OS/2 ld.exe' 13595 shlibpath_var=LIBPATH 13596 ;; 13597 13598osf3* | osf4* | osf5*) 13599 version_type=osf 13600 need_lib_prefix=no 13601 need_version=no 13602 soname_spec='${libname}${release}${shared_ext}$major' 13603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13604 shlibpath_var=LD_LIBRARY_PATH 13605 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13606 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13607 ;; 13608 13609rdos*) 13610 dynamic_linker=no 13611 ;; 13612 13613solaris*) 13614 version_type=linux 13615 need_lib_prefix=no 13616 need_version=no 13617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13618 soname_spec='${libname}${release}${shared_ext}$major' 13619 shlibpath_var=LD_LIBRARY_PATH 13620 shlibpath_overrides_runpath=yes 13621 hardcode_into_libs=yes 13622 # ldd complains unless libraries are executable 13623 postinstall_cmds='chmod +x $lib' 13624 ;; 13625 13626sunos4*) 13627 version_type=sunos 13628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13629 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13630 shlibpath_var=LD_LIBRARY_PATH 13631 shlibpath_overrides_runpath=yes 13632 if test "$with_gnu_ld" = yes; then 13633 need_lib_prefix=no 13634 fi 13635 need_version=yes 13636 ;; 13637 13638sysv4 | sysv4.3*) 13639 version_type=linux 13640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13641 soname_spec='${libname}${release}${shared_ext}$major' 13642 shlibpath_var=LD_LIBRARY_PATH 13643 case $host_vendor in 13644 sni) 13645 shlibpath_overrides_runpath=no 13646 need_lib_prefix=no 13647 export_dynamic_flag_spec='${wl}-Blargedynsym' 13648 runpath_var=LD_RUN_PATH 13649 ;; 13650 siemens) 13651 need_lib_prefix=no 13652 ;; 13653 motorola) 13654 need_lib_prefix=no 13655 need_version=no 13656 shlibpath_overrides_runpath=no 13657 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13658 ;; 13659 esac 13660 ;; 13661 13662sysv4*MP*) 13663 if test -d /usr/nec ;then 13664 version_type=linux 13665 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13666 soname_spec='$libname${shared_ext}.$major' 13667 shlibpath_var=LD_LIBRARY_PATH 13668 fi 13669 ;; 13670 13671sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13672 version_type=freebsd-elf 13673 need_lib_prefix=no 13674 need_version=no 13675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13676 soname_spec='${libname}${release}${shared_ext}$major' 13677 shlibpath_var=LD_LIBRARY_PATH 13678 hardcode_into_libs=yes 13679 if test "$with_gnu_ld" = yes; then 13680 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13681 shlibpath_overrides_runpath=no 13682 else 13683 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13684 shlibpath_overrides_runpath=yes 13685 case $host_os in 13686 sco3.2v5*) 13687 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13688 ;; 13689 esac 13690 fi 13691 sys_lib_dlsearch_path_spec='/usr/lib' 13692 ;; 13693 13694uts4*) 13695 version_type=linux 13696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13697 soname_spec='${libname}${release}${shared_ext}$major' 13698 shlibpath_var=LD_LIBRARY_PATH 13699 ;; 13700 13701*) 13702 dynamic_linker=no 13703 ;; 13704esac 13705{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13706echo "${ECHO_T}$dynamic_linker" >&6; } 13707test "$dynamic_linker" = no && can_build_shared=no 13708 13709variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13710if test "$GCC" = yes; then 13711 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13712fi 13713 13714{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13715echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13716hardcode_action_CXX= 13717if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13718 test -n "$runpath_var_CXX" || \ 13719 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13720 13721 # We can hardcode non-existant directories. 13722 if test "$hardcode_direct_CXX" != no && 13723 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13724 # have to relink, otherwise we might link with an installed library 13725 # when we should be linking with a yet-to-be-installed one 13726 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13727 test "$hardcode_minus_L_CXX" != no; then 13728 # Linking always hardcodes the temporary library directory. 13729 hardcode_action_CXX=relink 13730 else 13731 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13732 hardcode_action_CXX=immediate 13733 fi 13734else 13735 # We cannot hardcode anything, or else we can only hardcode existing 13736 # directories. 13737 hardcode_action_CXX=unsupported 13738fi 13739{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13740echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13741 13742if test "$hardcode_action_CXX" = relink; then 13743 # Fast installation is not supported 13744 enable_fast_install=no 13745elif test "$shlibpath_overrides_runpath" = yes || 13746 test "$enable_shared" = no; then 13747 # Fast installation is not necessary 13748 enable_fast_install=needless 13749fi 13750 13751 13752# The else clause should only fire when bootstrapping the 13753# libtool distribution, otherwise you forgot to ship ltmain.sh 13754# with your package, and you will get complaints that there are 13755# no rules to generate ltmain.sh. 13756if test -f "$ltmain"; then 13757 # See if we are running on zsh, and set the options which allow our commands through 13758 # without removal of \ escapes. 13759 if test -n "${ZSH_VERSION+set}" ; then 13760 setopt NO_GLOB_SUBST 13761 fi 13762 # Now quote all the things that may contain metacharacters while being 13763 # careful not to overquote the AC_SUBSTed values. We take copies of the 13764 # variables and quote the copies for generation of the libtool script. 13765 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13766 SED SHELL STRIP \ 13767 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13768 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13769 deplibs_check_method reload_flag reload_cmds need_locks \ 13770 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13771 lt_cv_sys_global_symbol_to_c_name_address \ 13772 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13773 old_postinstall_cmds old_postuninstall_cmds \ 13774 compiler_CXX \ 13775 CC_CXX \ 13776 LD_CXX \ 13777 lt_prog_compiler_wl_CXX \ 13778 lt_prog_compiler_pic_CXX \ 13779 lt_prog_compiler_static_CXX \ 13780 lt_prog_compiler_no_builtin_flag_CXX \ 13781 export_dynamic_flag_spec_CXX \ 13782 thread_safe_flag_spec_CXX \ 13783 whole_archive_flag_spec_CXX \ 13784 enable_shared_with_static_runtimes_CXX \ 13785 old_archive_cmds_CXX \ 13786 old_archive_from_new_cmds_CXX \ 13787 predep_objects_CXX \ 13788 postdep_objects_CXX \ 13789 predeps_CXX \ 13790 postdeps_CXX \ 13791 compiler_lib_search_path_CXX \ 13792 archive_cmds_CXX \ 13793 archive_expsym_cmds_CXX \ 13794 postinstall_cmds_CXX \ 13795 postuninstall_cmds_CXX \ 13796 old_archive_from_expsyms_cmds_CXX \ 13797 allow_undefined_flag_CXX \ 13798 no_undefined_flag_CXX \ 13799 export_symbols_cmds_CXX \ 13800 hardcode_libdir_flag_spec_CXX \ 13801 hardcode_libdir_flag_spec_ld_CXX \ 13802 hardcode_libdir_separator_CXX \ 13803 hardcode_automatic_CXX \ 13804 module_cmds_CXX \ 13805 module_expsym_cmds_CXX \ 13806 lt_cv_prog_compiler_c_o_CXX \ 13807 fix_srcfile_path_CXX \ 13808 exclude_expsyms_CXX \ 13809 include_expsyms_CXX; do 13810 13811 case $var in 13812 old_archive_cmds_CXX | \ 13813 old_archive_from_new_cmds_CXX | \ 13814 archive_cmds_CXX | \ 13815 archive_expsym_cmds_CXX | \ 13816 module_cmds_CXX | \ 13817 module_expsym_cmds_CXX | \ 13818 old_archive_from_expsyms_cmds_CXX | \ 13819 export_symbols_cmds_CXX | \ 13820 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13821 postinstall_cmds | postuninstall_cmds | \ 13822 old_postinstall_cmds | old_postuninstall_cmds | \ 13823 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13824 # Double-quote double-evaled strings. 13825 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13826 ;; 13827 *) 13828 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13829 ;; 13830 esac 13831 done 13832 13833 case $lt_echo in 13834 *'\$0 --fallback-echo"') 13835 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13836 ;; 13837 esac 13838 13839cfgfile="$ofile" 13840 13841 cat <<__EOF__ >> "$cfgfile" 13842# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13843 13844# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13845 13846# Shell to use when invoking shell scripts. 13847SHELL=$lt_SHELL 13848 13849# Whether or not to build shared libraries. 13850build_libtool_libs=$enable_shared 13851 13852# Whether or not to build static libraries. 13853build_old_libs=$enable_static 13854 13855# Whether or not to add -lc for building shared libraries. 13856build_libtool_need_lc=$archive_cmds_need_lc_CXX 13857 13858# Whether or not to disallow shared libs when runtime libs are static 13859allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13860 13861# Whether or not to optimize for fast installation. 13862fast_install=$enable_fast_install 13863 13864# The host system. 13865host_alias=$host_alias 13866host=$host 13867host_os=$host_os 13868 13869# The build system. 13870build_alias=$build_alias 13871build=$build 13872build_os=$build_os 13873 13874# An echo program that does not interpret backslashes. 13875echo=$lt_echo 13876 13877# The archiver. 13878AR=$lt_AR 13879AR_FLAGS=$lt_AR_FLAGS 13880 13881# A C compiler. 13882LTCC=$lt_LTCC 13883 13884# LTCC compiler flags. 13885LTCFLAGS=$lt_LTCFLAGS 13886 13887# A language-specific compiler. 13888CC=$lt_compiler_CXX 13889 13890# Is the compiler the GNU C compiler? 13891with_gcc=$GCC_CXX 13892 13893# An ERE matcher. 13894EGREP=$lt_EGREP 13895 13896# The linker used to build libraries. 13897LD=$lt_LD_CXX 13898 13899# Whether we need hard or soft links. 13900LN_S=$lt_LN_S 13901 13902# A BSD-compatible nm program. 13903NM=$lt_NM 13904 13905# A symbol stripping program 13906STRIP=$lt_STRIP 13907 13908# Used to examine libraries when file_magic_cmd begins "file" 13909MAGIC_CMD=$MAGIC_CMD 13910 13911# Used on cygwin: DLL creation program. 13912DLLTOOL="$DLLTOOL" 13913 13914# Used on cygwin: object dumper. 13915OBJDUMP="$OBJDUMP" 13916 13917# Used on cygwin: assembler. 13918AS="$AS" 13919 13920# The name of the directory that contains temporary libtool files. 13921objdir=$objdir 13922 13923# How to create reloadable object files. 13924reload_flag=$lt_reload_flag 13925reload_cmds=$lt_reload_cmds 13926 13927# How to pass a linker flag through the compiler. 13928wl=$lt_lt_prog_compiler_wl_CXX 13929 13930# Object file suffix (normally "o"). 13931objext="$ac_objext" 13932 13933# Old archive suffix (normally "a"). 13934libext="$libext" 13935 13936# Shared library suffix (normally ".so"). 13937shrext_cmds='$shrext_cmds' 13938 13939# Executable file suffix (normally ""). 13940exeext="$exeext" 13941 13942# Additional compiler flags for building library objects. 13943pic_flag=$lt_lt_prog_compiler_pic_CXX 13944pic_mode=$pic_mode 13945 13946# What is the maximum length of a command? 13947max_cmd_len=$lt_cv_sys_max_cmd_len 13948 13949# Does compiler simultaneously support -c and -o options? 13950compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13951 13952# Must we lock files when doing compilation? 13953need_locks=$lt_need_locks 13954 13955# Do we need the lib prefix for modules? 13956need_lib_prefix=$need_lib_prefix 13957 13958# Do we need a version for libraries? 13959need_version=$need_version 13960 13961# Whether dlopen is supported. 13962dlopen_support=$enable_dlopen 13963 13964# Whether dlopen of programs is supported. 13965dlopen_self=$enable_dlopen_self 13966 13967# Whether dlopen of statically linked programs is supported. 13968dlopen_self_static=$enable_dlopen_self_static 13969 13970# Compiler flag to prevent dynamic linking. 13971link_static_flag=$lt_lt_prog_compiler_static_CXX 13972 13973# Compiler flag to turn off builtin functions. 13974no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13975 13976# Compiler flag to allow reflexive dlopens. 13977export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13978 13979# Compiler flag to generate shared objects directly from archives. 13980whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13981 13982# Compiler flag to generate thread-safe objects. 13983thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13984 13985# Library versioning type. 13986version_type=$version_type 13987 13988# Format of library name prefix. 13989libname_spec=$lt_libname_spec 13990 13991# List of archive names. First name is the real one, the rest are links. 13992# The last name is the one that the linker finds with -lNAME. 13993library_names_spec=$lt_library_names_spec 13994 13995# The coded name of the library, if different from the real name. 13996soname_spec=$lt_soname_spec 13997 13998# Commands used to build and install an old-style archive. 13999RANLIB=$lt_RANLIB 14000old_archive_cmds=$lt_old_archive_cmds_CXX 14001old_postinstall_cmds=$lt_old_postinstall_cmds 14002old_postuninstall_cmds=$lt_old_postuninstall_cmds 14003 14004# Create an old-style archive from a shared archive. 14005old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14006 14007# Create a temporary old-style archive to link instead of a shared archive. 14008old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14009 14010# Commands used to build and install a shared archive. 14011archive_cmds=$lt_archive_cmds_CXX 14012archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14013postinstall_cmds=$lt_postinstall_cmds 14014postuninstall_cmds=$lt_postuninstall_cmds 14015 14016# Commands used to build a loadable module (assumed same as above if empty) 14017module_cmds=$lt_module_cmds_CXX 14018module_expsym_cmds=$lt_module_expsym_cmds_CXX 14019 14020# Commands to strip libraries. 14021old_striplib=$lt_old_striplib 14022striplib=$lt_striplib 14023 14024# Dependencies to place before the objects being linked to create a 14025# shared library. 14026predep_objects=$lt_predep_objects_CXX 14027 14028# Dependencies to place after the objects being linked to create a 14029# shared library. 14030postdep_objects=$lt_postdep_objects_CXX 14031 14032# Dependencies to place before the objects being linked to create a 14033# shared library. 14034predeps=$lt_predeps_CXX 14035 14036# Dependencies to place after the objects being linked to create a 14037# shared library. 14038postdeps=$lt_postdeps_CXX 14039 14040# The library search path used internally by the compiler when linking 14041# a shared library. 14042compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14043 14044# Method to check whether dependent libraries are shared objects. 14045deplibs_check_method=$lt_deplibs_check_method 14046 14047# Command to use when deplibs_check_method == file_magic. 14048file_magic_cmd=$lt_file_magic_cmd 14049 14050# Flag that allows shared libraries with undefined symbols to be built. 14051allow_undefined_flag=$lt_allow_undefined_flag_CXX 14052 14053# Flag that forces no undefined symbols. 14054no_undefined_flag=$lt_no_undefined_flag_CXX 14055 14056# Commands used to finish a libtool library installation in a directory. 14057finish_cmds=$lt_finish_cmds 14058 14059# Same as above, but a single script fragment to be evaled but not shown. 14060finish_eval=$lt_finish_eval 14061 14062# Take the output of nm and produce a listing of raw symbols and C names. 14063global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14064 14065# Transform the output of nm in a proper C declaration 14066global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14067 14068# Transform the output of nm in a C name address pair 14069global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14070 14071# This is the shared library runtime path variable. 14072runpath_var=$runpath_var 14073 14074# This is the shared library path variable. 14075shlibpath_var=$shlibpath_var 14076 14077# Is shlibpath searched before the hard-coded library search path? 14078shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14079 14080# How to hardcode a shared library path into an executable. 14081hardcode_action=$hardcode_action_CXX 14082 14083# Whether we should hardcode library paths into libraries. 14084hardcode_into_libs=$hardcode_into_libs 14085 14086# Flag to hardcode \$libdir into a binary during linking. 14087# This must work even if \$libdir does not exist. 14088hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14089 14090# If ld is used when linking, flag to hardcode \$libdir into 14091# a binary during linking. This must work even if \$libdir does 14092# not exist. 14093hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14094 14095# Whether we need a single -rpath flag with a separated argument. 14096hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14097 14098# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14099# resulting binary. 14100hardcode_direct=$hardcode_direct_CXX 14101 14102# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14103# resulting binary. 14104hardcode_minus_L=$hardcode_minus_L_CXX 14105 14106# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14107# the resulting binary. 14108hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14109 14110# Set to yes if building a shared library automatically hardcodes DIR into the library 14111# and all subsequent libraries and executables linked against it. 14112hardcode_automatic=$hardcode_automatic_CXX 14113 14114# Variables whose values should be saved in libtool wrapper scripts and 14115# restored at relink time. 14116variables_saved_for_relink="$variables_saved_for_relink" 14117 14118# Whether libtool must link a program against all its dependency libraries. 14119link_all_deplibs=$link_all_deplibs_CXX 14120 14121# Compile-time system search path for libraries 14122sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14123 14124# Run-time system search path for libraries 14125sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14126 14127# Fix the shell variable \$srcfile for the compiler. 14128fix_srcfile_path=$lt_fix_srcfile_path 14129 14130# Set to yes if exported symbols are required. 14131always_export_symbols=$always_export_symbols_CXX 14132 14133# The commands to list exported symbols. 14134export_symbols_cmds=$lt_export_symbols_cmds_CXX 14135 14136# The commands to extract the exported symbol list from a shared archive. 14137extract_expsyms_cmds=$lt_extract_expsyms_cmds 14138 14139# Symbols that should not be listed in the preloaded symbols. 14140exclude_expsyms=$lt_exclude_expsyms_CXX 14141 14142# Symbols that must always be exported. 14143include_expsyms=$lt_include_expsyms_CXX 14144 14145# ### END LIBTOOL TAG CONFIG: $tagname 14146 14147__EOF__ 14148 14149 14150else 14151 # If there is no Makefile yet, we rely on a make rule to execute 14152 # `config.status --recheck' to rerun these tests and create the 14153 # libtool script then. 14154 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14155 if test -f "$ltmain_in"; then 14156 test -f Makefile && make "$ltmain" 14157 fi 14158fi 14159 14160 14161ac_ext=c 14162ac_cpp='$CPP $CPPFLAGS' 14163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14165ac_compiler_gnu=$ac_cv_c_compiler_gnu 14166 14167CC=$lt_save_CC 14168LDCXX=$LD 14169LD=$lt_save_LD 14170GCC=$lt_save_GCC 14171with_gnu_ldcxx=$with_gnu_ld 14172with_gnu_ld=$lt_save_with_gnu_ld 14173lt_cv_path_LDCXX=$lt_cv_path_LD 14174lt_cv_path_LD=$lt_save_path_LD 14175lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14176lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14177 14178 else 14179 tagname="" 14180 fi 14181 ;; 14182 14183 F77) 14184 if test -n "$F77" && test "X$F77" != "Xno"; then 14185 14186ac_ext=f 14187ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14188ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14189ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14190 14191 14192archive_cmds_need_lc_F77=no 14193allow_undefined_flag_F77= 14194always_export_symbols_F77=no 14195archive_expsym_cmds_F77= 14196export_dynamic_flag_spec_F77= 14197hardcode_direct_F77=no 14198hardcode_libdir_flag_spec_F77= 14199hardcode_libdir_flag_spec_ld_F77= 14200hardcode_libdir_separator_F77= 14201hardcode_minus_L_F77=no 14202hardcode_automatic_F77=no 14203module_cmds_F77= 14204module_expsym_cmds_F77= 14205link_all_deplibs_F77=unknown 14206old_archive_cmds_F77=$old_archive_cmds 14207no_undefined_flag_F77= 14208whole_archive_flag_spec_F77= 14209enable_shared_with_static_runtimes_F77=no 14210 14211# Source file extension for f77 test sources. 14212ac_ext=f 14213 14214# Object file extension for compiled f77 test sources. 14215objext=o 14216objext_F77=$objext 14217 14218# Code to be used in simple compile tests 14219lt_simple_compile_test_code="\ 14220 subroutine t 14221 return 14222 end 14223" 14224 14225# Code to be used in simple link tests 14226lt_simple_link_test_code="\ 14227 program t 14228 end 14229" 14230 14231# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14232 14233# If no C compiler was specified, use CC. 14234LTCC=${LTCC-"$CC"} 14235 14236# If no C compiler flags were specified, use CFLAGS. 14237LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14238 14239# Allow CC to be a program name with arguments. 14240compiler=$CC 14241 14242 14243# save warnings/boilerplate of simple test code 14244ac_outfile=conftest.$ac_objext 14245echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14246eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14247_lt_compiler_boilerplate=`cat conftest.err` 14248$rm conftest* 14249 14250ac_outfile=conftest.$ac_objext 14251echo "$lt_simple_link_test_code" >conftest.$ac_ext 14252eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14253_lt_linker_boilerplate=`cat conftest.err` 14254$rm conftest* 14255 14256 14257# Allow CC to be a program name with arguments. 14258lt_save_CC="$CC" 14259CC=${F77-"f77"} 14260compiler=$CC 14261compiler_F77=$CC 14262for cc_temp in $compiler""; do 14263 case $cc_temp in 14264 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14265 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14266 \-*) ;; 14267 *) break;; 14268 esac 14269done 14270cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14271 14272 14273{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14274echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14275{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14276echo "${ECHO_T}$can_build_shared" >&6; } 14277 14278{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14279echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14280test "$can_build_shared" = "no" && enable_shared=no 14281 14282# On AIX, shared libraries and static libraries use the same namespace, and 14283# are all built from PIC. 14284case $host_os in 14285aix3*) 14286 test "$enable_shared" = yes && enable_static=no 14287 if test -n "$RANLIB"; then 14288 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14289 postinstall_cmds='$RANLIB $lib' 14290 fi 14291 ;; 14292aix4* | aix5*) 14293 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14294 test "$enable_shared" = yes && enable_static=no 14295 fi 14296 ;; 14297esac 14298{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14299echo "${ECHO_T}$enable_shared" >&6; } 14300 14301{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14302echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14303# Make sure either enable_shared or enable_static is yes. 14304test "$enable_shared" = yes || enable_static=yes 14305{ echo "$as_me:$LINENO: result: $enable_static" >&5 14306echo "${ECHO_T}$enable_static" >&6; } 14307 14308GCC_F77="$G77" 14309LD_F77="$LD" 14310 14311lt_prog_compiler_wl_F77= 14312lt_prog_compiler_pic_F77= 14313lt_prog_compiler_static_F77= 14314 14315{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14316echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14317 14318 if test "$GCC" = yes; then 14319 lt_prog_compiler_wl_F77='-Wl,' 14320 lt_prog_compiler_static_F77='-static' 14321 14322 case $host_os in 14323 aix*) 14324 # All AIX code is PIC. 14325 if test "$host_cpu" = ia64; then 14326 # AIX 5 now supports IA64 processor 14327 lt_prog_compiler_static_F77='-Bstatic' 14328 fi 14329 ;; 14330 14331 amigaos*) 14332 # FIXME: we need at least 68020 code to build shared libraries, but 14333 # adding the `-m68020' flag to GCC prevents building anything better, 14334 # like `-m68040'. 14335 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14336 ;; 14337 14338 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14339 # PIC is the default for these OSes. 14340 ;; 14341 14342 mingw* | cygwin* | pw32* | os2*) 14343 # This hack is so that the source file can tell whether it is being 14344 # built for inclusion in a dll (and should export symbols for example). 14345 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14346 # (--disable-auto-import) libraries 14347 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14348 ;; 14349 14350 darwin* | rhapsody*) 14351 # PIC is the default on this platform 14352 # Common symbols not allowed in MH_DYLIB files 14353 lt_prog_compiler_pic_F77='-fno-common' 14354 ;; 14355 14356 interix[3-9]*) 14357 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14358 # Instead, we relocate shared libraries at runtime. 14359 ;; 14360 14361 msdosdjgpp*) 14362 # Just because we use GCC doesn't mean we suddenly get shared libraries 14363 # on systems that don't support them. 14364 lt_prog_compiler_can_build_shared_F77=no 14365 enable_shared=no 14366 ;; 14367 14368 sysv4*MP*) 14369 if test -d /usr/nec; then 14370 lt_prog_compiler_pic_F77=-Kconform_pic 14371 fi 14372 ;; 14373 14374 hpux*) 14375 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14376 # not for PA HP-UX. 14377 case $host_cpu in 14378 hppa*64*|ia64*) 14379 # +Z the default 14380 ;; 14381 *) 14382 lt_prog_compiler_pic_F77='-fPIC' 14383 ;; 14384 esac 14385 ;; 14386 14387 *) 14388 lt_prog_compiler_pic_F77='-fPIC' 14389 ;; 14390 esac 14391 else 14392 # PORTME Check for flag to pass linker flags through the system compiler. 14393 case $host_os in 14394 aix*) 14395 lt_prog_compiler_wl_F77='-Wl,' 14396 if test "$host_cpu" = ia64; then 14397 # AIX 5 now supports IA64 processor 14398 lt_prog_compiler_static_F77='-Bstatic' 14399 else 14400 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14401 fi 14402 ;; 14403 darwin*) 14404 # PIC is the default on this platform 14405 # Common symbols not allowed in MH_DYLIB files 14406 case $cc_basename in 14407 xlc*) 14408 lt_prog_compiler_pic_F77='-qnocommon' 14409 lt_prog_compiler_wl_F77='-Wl,' 14410 ;; 14411 esac 14412 ;; 14413 14414 mingw* | cygwin* | pw32* | os2*) 14415 # This hack is so that the source file can tell whether it is being 14416 # built for inclusion in a dll (and should export symbols for example). 14417 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14418 ;; 14419 14420 hpux9* | hpux10* | hpux11*) 14421 lt_prog_compiler_wl_F77='-Wl,' 14422 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14423 # not for PA HP-UX. 14424 case $host_cpu in 14425 hppa*64*|ia64*) 14426 # +Z the default 14427 ;; 14428 *) 14429 lt_prog_compiler_pic_F77='+Z' 14430 ;; 14431 esac 14432 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14433 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14434 ;; 14435 14436 irix5* | irix6* | nonstopux*) 14437 lt_prog_compiler_wl_F77='-Wl,' 14438 # PIC (with -KPIC) is the default. 14439 lt_prog_compiler_static_F77='-non_shared' 14440 ;; 14441 14442 newsos6) 14443 lt_prog_compiler_pic_F77='-KPIC' 14444 lt_prog_compiler_static_F77='-Bstatic' 14445 ;; 14446 14447 linux* | k*bsd*-gnu) 14448 case $cc_basename in 14449 icc* | ecc*) 14450 lt_prog_compiler_wl_F77='-Wl,' 14451 lt_prog_compiler_pic_F77='-KPIC' 14452 lt_prog_compiler_static_F77='-static' 14453 ;; 14454 pgcc* | pgf77* | pgf90* | pgf95*) 14455 # Portland Group compilers (*not* the Pentium gcc compiler, 14456 # which looks to be a dead project) 14457 lt_prog_compiler_wl_F77='-Wl,' 14458 lt_prog_compiler_pic_F77='-fpic' 14459 lt_prog_compiler_static_F77='-Bstatic' 14460 ;; 14461 ccc*) 14462 lt_prog_compiler_wl_F77='-Wl,' 14463 # All Alpha code is PIC. 14464 lt_prog_compiler_static_F77='-non_shared' 14465 ;; 14466 *) 14467 case `$CC -V 2>&1 | sed 5q` in 14468 *Sun\ C*) 14469 # Sun C 5.9 14470 lt_prog_compiler_pic_F77='-KPIC' 14471 lt_prog_compiler_static_F77='-Bstatic' 14472 lt_prog_compiler_wl_F77='-Wl,' 14473 ;; 14474 *Sun\ F*) 14475 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14476 lt_prog_compiler_pic_F77='-KPIC' 14477 lt_prog_compiler_static_F77='-Bstatic' 14478 lt_prog_compiler_wl_F77='' 14479 ;; 14480 esac 14481 ;; 14482 esac 14483 ;; 14484 14485 osf3* | osf4* | osf5*) 14486 lt_prog_compiler_wl_F77='-Wl,' 14487 # All OSF/1 code is PIC. 14488 lt_prog_compiler_static_F77='-non_shared' 14489 ;; 14490 14491 rdos*) 14492 lt_prog_compiler_static_F77='-non_shared' 14493 ;; 14494 14495 solaris*) 14496 lt_prog_compiler_pic_F77='-KPIC' 14497 lt_prog_compiler_static_F77='-Bstatic' 14498 case $cc_basename in 14499 f77* | f90* | f95*) 14500 lt_prog_compiler_wl_F77='-Qoption ld ';; 14501 *) 14502 lt_prog_compiler_wl_F77='-Wl,';; 14503 esac 14504 ;; 14505 14506 sunos4*) 14507 lt_prog_compiler_wl_F77='-Qoption ld ' 14508 lt_prog_compiler_pic_F77='-PIC' 14509 lt_prog_compiler_static_F77='-Bstatic' 14510 ;; 14511 14512 sysv4 | sysv4.2uw2* | sysv4.3*) 14513 lt_prog_compiler_wl_F77='-Wl,' 14514 lt_prog_compiler_pic_F77='-KPIC' 14515 lt_prog_compiler_static_F77='-Bstatic' 14516 ;; 14517 14518 sysv4*MP*) 14519 if test -d /usr/nec ;then 14520 lt_prog_compiler_pic_F77='-Kconform_pic' 14521 lt_prog_compiler_static_F77='-Bstatic' 14522 fi 14523 ;; 14524 14525 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14526 lt_prog_compiler_wl_F77='-Wl,' 14527 lt_prog_compiler_pic_F77='-KPIC' 14528 lt_prog_compiler_static_F77='-Bstatic' 14529 ;; 14530 14531 unicos*) 14532 lt_prog_compiler_wl_F77='-Wl,' 14533 lt_prog_compiler_can_build_shared_F77=no 14534 ;; 14535 14536 uts4*) 14537 lt_prog_compiler_pic_F77='-pic' 14538 lt_prog_compiler_static_F77='-Bstatic' 14539 ;; 14540 14541 *) 14542 lt_prog_compiler_can_build_shared_F77=no 14543 ;; 14544 esac 14545 fi 14546 14547{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14548echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14549 14550# 14551# Check to make sure the PIC flag actually works. 14552# 14553if test -n "$lt_prog_compiler_pic_F77"; then 14554 14555{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14556echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14557if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14558 echo $ECHO_N "(cached) $ECHO_C" >&6 14559else 14560 lt_prog_compiler_pic_works_F77=no 14561 ac_outfile=conftest.$ac_objext 14562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14563 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14564 # Insert the option either (1) after the last *FLAGS variable, or 14565 # (2) before a word containing "conftest.", or (3) at the end. 14566 # Note that $ac_compile itself does not contain backslashes and begins 14567 # with a dollar sign (not a hyphen), so the echo should work correctly. 14568 # The option is referenced via a variable to avoid confusing sed. 14569 lt_compile=`echo "$ac_compile" | $SED \ 14570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14572 -e 's:$: $lt_compiler_flag:'` 14573 (eval echo "\"\$as_me:14573: $lt_compile\"" >&5) 14574 (eval "$lt_compile" 2>conftest.err) 14575 ac_status=$? 14576 cat conftest.err >&5 14577 echo "$as_me:14577: \$? = $ac_status" >&5 14578 if (exit $ac_status) && test -s "$ac_outfile"; then 14579 # The compiler can only warn and ignore the option if not recognized 14580 # So say no if there are warnings other than the usual output. 14581 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14584 lt_prog_compiler_pic_works_F77=yes 14585 fi 14586 fi 14587 $rm conftest* 14588 14589fi 14590{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14591echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14592 14593if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14594 case $lt_prog_compiler_pic_F77 in 14595 "" | " "*) ;; 14596 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14597 esac 14598else 14599 lt_prog_compiler_pic_F77= 14600 lt_prog_compiler_can_build_shared_F77=no 14601fi 14602 14603fi 14604case $host_os in 14605 # For platforms which do not support PIC, -DPIC is meaningless: 14606 *djgpp*) 14607 lt_prog_compiler_pic_F77= 14608 ;; 14609 *) 14610 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14611 ;; 14612esac 14613 14614# 14615# Check to make sure the static flag actually works. 14616# 14617wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14618{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14619echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14620if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14621 echo $ECHO_N "(cached) $ECHO_C" >&6 14622else 14623 lt_prog_compiler_static_works_F77=no 14624 save_LDFLAGS="$LDFLAGS" 14625 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14626 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14627 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14628 # The linker can only warn and ignore the option if not recognized 14629 # So say no if there are warnings 14630 if test -s conftest.err; then 14631 # Append any errors to the config.log. 14632 cat conftest.err 1>&5 14633 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14635 if diff conftest.exp conftest.er2 >/dev/null; then 14636 lt_prog_compiler_static_works_F77=yes 14637 fi 14638 else 14639 lt_prog_compiler_static_works_F77=yes 14640 fi 14641 fi 14642 $rm conftest* 14643 LDFLAGS="$save_LDFLAGS" 14644 14645fi 14646{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14647echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14648 14649if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14650 : 14651else 14652 lt_prog_compiler_static_F77= 14653fi 14654 14655 14656{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14657echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14658if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14659 echo $ECHO_N "(cached) $ECHO_C" >&6 14660else 14661 lt_cv_prog_compiler_c_o_F77=no 14662 $rm -r conftest 2>/dev/null 14663 mkdir conftest 14664 cd conftest 14665 mkdir out 14666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14667 14668 lt_compiler_flag="-o out/conftest2.$ac_objext" 14669 # Insert the option either (1) after the last *FLAGS variable, or 14670 # (2) before a word containing "conftest.", or (3) at the end. 14671 # Note that $ac_compile itself does not contain backslashes and begins 14672 # with a dollar sign (not a hyphen), so the echo should work correctly. 14673 lt_compile=`echo "$ac_compile" | $SED \ 14674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14676 -e 's:$: $lt_compiler_flag:'` 14677 (eval echo "\"\$as_me:14677: $lt_compile\"" >&5) 14678 (eval "$lt_compile" 2>out/conftest.err) 14679 ac_status=$? 14680 cat out/conftest.err >&5 14681 echo "$as_me:14681: \$? = $ac_status" >&5 14682 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14683 then 14684 # The compiler can only warn and ignore the option if not recognized 14685 # So say no if there are warnings 14686 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14689 lt_cv_prog_compiler_c_o_F77=yes 14690 fi 14691 fi 14692 chmod u+w . 2>&5 14693 $rm conftest* 14694 # SGI C++ compiler will create directory out/ii_files/ for 14695 # template instantiation 14696 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14697 $rm out/* && rmdir out 14698 cd .. 14699 rmdir conftest 14700 $rm conftest* 14701 14702fi 14703{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14704echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14705 14706 14707hard_links="nottested" 14708if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14709 # do not overwrite the value of need_locks provided by the user 14710 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14711echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14712 hard_links=yes 14713 $rm conftest* 14714 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14715 touch conftest.a 14716 ln conftest.a conftest.b 2>&5 || hard_links=no 14717 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14718 { echo "$as_me:$LINENO: result: $hard_links" >&5 14719echo "${ECHO_T}$hard_links" >&6; } 14720 if test "$hard_links" = no; then 14721 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14722echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14723 need_locks=warn 14724 fi 14725else 14726 need_locks=no 14727fi 14728 14729{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14730echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14731 14732 runpath_var= 14733 allow_undefined_flag_F77= 14734 enable_shared_with_static_runtimes_F77=no 14735 archive_cmds_F77= 14736 archive_expsym_cmds_F77= 14737 old_archive_From_new_cmds_F77= 14738 old_archive_from_expsyms_cmds_F77= 14739 export_dynamic_flag_spec_F77= 14740 whole_archive_flag_spec_F77= 14741 thread_safe_flag_spec_F77= 14742 hardcode_libdir_flag_spec_F77= 14743 hardcode_libdir_flag_spec_ld_F77= 14744 hardcode_libdir_separator_F77= 14745 hardcode_direct_F77=no 14746 hardcode_minus_L_F77=no 14747 hardcode_shlibpath_var_F77=unsupported 14748 link_all_deplibs_F77=unknown 14749 hardcode_automatic_F77=no 14750 module_cmds_F77= 14751 module_expsym_cmds_F77= 14752 always_export_symbols_F77=no 14753 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14754 # include_expsyms should be a list of space-separated symbols to be *always* 14755 # included in the symbol list 14756 include_expsyms_F77= 14757 # exclude_expsyms can be an extended regexp of symbols to exclude 14758 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14759 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14760 # as well as any symbol that contains `d'. 14761 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14762 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14763 # platforms (ab)use it in PIC code, but their linkers get confused if 14764 # the symbol is explicitly referenced. Since portable code cannot 14765 # rely on this symbol name, it's probably fine to never include it in 14766 # preloaded symbol tables. 14767 extract_expsyms_cmds= 14768 # Just being paranoid about ensuring that cc_basename is set. 14769 for cc_temp in $compiler""; do 14770 case $cc_temp in 14771 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14772 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14773 \-*) ;; 14774 *) break;; 14775 esac 14776done 14777cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14778 14779 case $host_os in 14780 cygwin* | mingw* | pw32*) 14781 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14782 # When not using gcc, we currently assume that we are using 14783 # Microsoft Visual C++. 14784 if test "$GCC" != yes; then 14785 with_gnu_ld=no 14786 fi 14787 ;; 14788 interix*) 14789 # we just hope/assume this is gcc and not c89 (= MSVC++) 14790 with_gnu_ld=yes 14791 ;; 14792 openbsd*) 14793 with_gnu_ld=no 14794 ;; 14795 esac 14796 14797 ld_shlibs_F77=yes 14798 if test "$with_gnu_ld" = yes; then 14799 # If archive_cmds runs LD, not CC, wlarc should be empty 14800 wlarc='${wl}' 14801 14802 # Set some defaults for GNU ld with shared library support. These 14803 # are reset later if shared libraries are not supported. Putting them 14804 # here allows them to be overridden if necessary. 14805 runpath_var=LD_RUN_PATH 14806 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14807 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14808 # ancient GNU ld didn't support --whole-archive et. al. 14809 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14810 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14811 else 14812 whole_archive_flag_spec_F77= 14813 fi 14814 supports_anon_versioning=no 14815 case `$LD -v 2>/dev/null` in 14816 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14817 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14818 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14819 *\ 2.11.*) ;; # other 2.11 versions 14820 *) supports_anon_versioning=yes ;; 14821 esac 14822 14823 # See if GNU ld supports shared libraries. 14824 case $host_os in 14825 aix3* | aix4* | aix5*) 14826 # On AIX/PPC, the GNU linker is very broken 14827 if test "$host_cpu" != ia64; then 14828 ld_shlibs_F77=no 14829 cat <<EOF 1>&2 14830 14831*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14832*** to be unable to reliably create shared libraries on AIX. 14833*** Therefore, libtool is disabling shared libraries support. If you 14834*** really care for shared libraries, you may want to modify your PATH 14835*** so that a non-GNU linker is found, and then restart. 14836 14837EOF 14838 fi 14839 ;; 14840 14841 amigaos*) 14842 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)' 14843 hardcode_libdir_flag_spec_F77='-L$libdir' 14844 hardcode_minus_L_F77=yes 14845 14846 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14847 # that the semantics of dynamic libraries on AmigaOS, at least up 14848 # to version 4, is to share data among multiple programs linked 14849 # with the same dynamic library. Since this doesn't match the 14850 # behavior of shared libraries on other platforms, we can't use 14851 # them. 14852 ld_shlibs_F77=no 14853 ;; 14854 14855 beos*) 14856 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14857 allow_undefined_flag_F77=unsupported 14858 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14859 # support --undefined. This deserves some investigation. FIXME 14860 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14861 else 14862 ld_shlibs_F77=no 14863 fi 14864 ;; 14865 14866 cygwin* | mingw* | pw32*) 14867 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14868 # as there is no search path for DLLs. 14869 hardcode_libdir_flag_spec_F77='-L$libdir' 14870 allow_undefined_flag_F77=unsupported 14871 always_export_symbols_F77=no 14872 enable_shared_with_static_runtimes_F77=yes 14873 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14874 14875 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14876 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14877 # If the export-symbols file already is a .def file (1st line 14878 # is EXPORTS), use it as is; otherwise, prepend... 14879 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14880 cp $export_symbols $output_objdir/$soname.def; 14881 else 14882 echo EXPORTS > $output_objdir/$soname.def; 14883 cat $export_symbols >> $output_objdir/$soname.def; 14884 fi~ 14885 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14886 else 14887 ld_shlibs_F77=no 14888 fi 14889 ;; 14890 14891 interix[3-9]*) 14892 hardcode_direct_F77=no 14893 hardcode_shlibpath_var_F77=no 14894 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14895 export_dynamic_flag_spec_F77='${wl}-E' 14896 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14897 # Instead, shared libraries are loaded at an image base (0x10000000 by 14898 # default) and relocated if they conflict, which is a slow very memory 14899 # consuming and fragmenting process. To avoid this, we pick a random, 14900 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14901 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14902 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' 14903 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' 14904 ;; 14905 14906 gnu* | linux* | k*bsd*-gnu) 14907 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14908 tmp_addflag= 14909 case $cc_basename,$host_cpu in 14910 pgcc*) # Portland Group C compiler 14911 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' 14912 tmp_addflag=' $pic_flag' 14913 ;; 14914 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14915 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' 14916 tmp_addflag=' $pic_flag -Mnomain' ;; 14917 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14918 tmp_addflag=' -i_dynamic' ;; 14919 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14920 tmp_addflag=' -i_dynamic -nofor_main' ;; 14921 ifc* | ifort*) # Intel Fortran compiler 14922 tmp_addflag=' -nofor_main' ;; 14923 esac 14924 case `$CC -V 2>&1 | sed 5q` in 14925 *Sun\ C*) # Sun C 5.9 14926 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' 14927 tmp_sharedflag='-G' ;; 14928 *Sun\ F*) # Sun Fortran 8.3 14929 tmp_sharedflag='-G' ;; 14930 *) 14931 tmp_sharedflag='-shared' ;; 14932 esac 14933 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14934 14935 if test $supports_anon_versioning = yes; then 14936 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14938 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14939 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14940 fi 14941 else 14942 ld_shlibs_F77=no 14943 fi 14944 ;; 14945 14946 netbsd*) 14947 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14948 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14949 wlarc= 14950 else 14951 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14952 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14953 fi 14954 ;; 14955 14956 solaris*) 14957 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14958 ld_shlibs_F77=no 14959 cat <<EOF 1>&2 14960 14961*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14962*** create shared libraries on Solaris systems. Therefore, libtool 14963*** is disabling shared libraries support. We urge you to upgrade GNU 14964*** binutils to release 2.9.1 or newer. Another option is to modify 14965*** your PATH or compiler configuration so that the native linker is 14966*** used, and then restart. 14967 14968EOF 14969 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14970 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14971 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14972 else 14973 ld_shlibs_F77=no 14974 fi 14975 ;; 14976 14977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14978 case `$LD -v 2>&1` in 14979 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14980 ld_shlibs_F77=no 14981 cat <<_LT_EOF 1>&2 14982 14983*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14984*** reliably create shared libraries on SCO systems. Therefore, libtool 14985*** is disabling shared libraries support. We urge you to upgrade GNU 14986*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14987*** your PATH or compiler configuration so that the native linker is 14988*** used, and then restart. 14989 14990_LT_EOF 14991 ;; 14992 *) 14993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14994 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14995 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14996 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14997 else 14998 ld_shlibs_F77=no 14999 fi 15000 ;; 15001 esac 15002 ;; 15003 15004 sunos4*) 15005 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15006 wlarc= 15007 hardcode_direct_F77=yes 15008 hardcode_shlibpath_var_F77=no 15009 ;; 15010 15011 *) 15012 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15013 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15014 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15015 else 15016 ld_shlibs_F77=no 15017 fi 15018 ;; 15019 esac 15020 15021 if test "$ld_shlibs_F77" = no; then 15022 runpath_var= 15023 hardcode_libdir_flag_spec_F77= 15024 export_dynamic_flag_spec_F77= 15025 whole_archive_flag_spec_F77= 15026 fi 15027 else 15028 # PORTME fill in a description of your system's linker (not GNU ld) 15029 case $host_os in 15030 aix3*) 15031 allow_undefined_flag_F77=unsupported 15032 always_export_symbols_F77=yes 15033 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' 15034 # Note: this linker hardcodes the directories in LIBPATH if there 15035 # are no directories specified by -L. 15036 hardcode_minus_L_F77=yes 15037 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15038 # Neither direct hardcoding nor static linking is supported with a 15039 # broken collect2. 15040 hardcode_direct_F77=unsupported 15041 fi 15042 ;; 15043 15044 aix4* | aix5*) 15045 if test "$host_cpu" = ia64; then 15046 # On IA64, the linker does run time linking by default, so we don't 15047 # have to do anything special. 15048 aix_use_runtimelinking=no 15049 exp_sym_flag='-Bexport' 15050 no_entry_flag="" 15051 else 15052 # If we're using GNU nm, then we don't want the "-C" option. 15053 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15054 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15055 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' 15056 else 15057 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' 15058 fi 15059 aix_use_runtimelinking=no 15060 15061 # Test if we are trying to use run time linking or normal 15062 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15063 # need to do runtime linking. 15064 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15065 for ld_flag in $LDFLAGS; do 15066 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15067 aix_use_runtimelinking=yes 15068 break 15069 fi 15070 done 15071 ;; 15072 esac 15073 15074 exp_sym_flag='-bexport' 15075 no_entry_flag='-bnoentry' 15076 fi 15077 15078 # When large executables or shared objects are built, AIX ld can 15079 # have problems creating the table of contents. If linking a library 15080 # or program results in "error TOC overflow" add -mminimal-toc to 15081 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15082 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15083 15084 archive_cmds_F77='' 15085 hardcode_direct_F77=yes 15086 hardcode_libdir_separator_F77=':' 15087 link_all_deplibs_F77=yes 15088 15089 if test "$GCC" = yes; then 15090 case $host_os in aix4.[012]|aix4.[012].*) 15091 # We only want to do this on AIX 4.2 and lower, the check 15092 # below for broken collect2 doesn't work under 4.3+ 15093 collect2name=`${CC} -print-prog-name=collect2` 15094 if test -f "$collect2name" && \ 15095 strings "$collect2name" | grep resolve_lib_name >/dev/null 15096 then 15097 # We have reworked collect2 15098 : 15099 else 15100 # We have old collect2 15101 hardcode_direct_F77=unsupported 15102 # It fails to find uninstalled libraries when the uninstalled 15103 # path is not listed in the libpath. Setting hardcode_minus_L 15104 # to unsupported forces relinking 15105 hardcode_minus_L_F77=yes 15106 hardcode_libdir_flag_spec_F77='-L$libdir' 15107 hardcode_libdir_separator_F77= 15108 fi 15109 ;; 15110 esac 15111 shared_flag='-shared' 15112 if test "$aix_use_runtimelinking" = yes; then 15113 shared_flag="$shared_flag "'${wl}-G' 15114 fi 15115 else 15116 # not using gcc 15117 if test "$host_cpu" = ia64; then 15118 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15119 # chokes on -Wl,-G. The following line is correct: 15120 shared_flag='-G' 15121 else 15122 if test "$aix_use_runtimelinking" = yes; then 15123 shared_flag='${wl}-G' 15124 else 15125 shared_flag='${wl}-bM:SRE' 15126 fi 15127 fi 15128 fi 15129 15130 # It seems that -bexpall does not export symbols beginning with 15131 # underscore (_), so it is better to generate a list of symbols to export. 15132 always_export_symbols_F77=yes 15133 if test "$aix_use_runtimelinking" = yes; then 15134 # Warning - without using the other runtime loading flags (-brtl), 15135 # -berok will link without error, but may produce a broken library. 15136 allow_undefined_flag_F77='-berok' 15137 # Determine the default libpath from the value encoded in an empty executable. 15138 cat >conftest.$ac_ext <<_ACEOF 15139 program main 15140 15141 end 15142_ACEOF 15143rm -f conftest.$ac_objext conftest$ac_exeext 15144if { (ac_try="$ac_link" 15145case "(($ac_try" in 15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15147 *) ac_try_echo=$ac_try;; 15148esac 15149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15150 (eval "$ac_link") 2>conftest.er1 15151 ac_status=$? 15152 grep -v '^ *+' conftest.er1 >conftest.err 15153 rm -f conftest.er1 15154 cat conftest.err >&5 15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15156 (exit $ac_status); } && { 15157 test -z "$ac_f77_werror_flag" || 15158 test ! -s conftest.err 15159 } && test -s conftest$ac_exeext && 15160 $as_test_x conftest$ac_exeext; then 15161 15162lt_aix_libpath_sed=' 15163 /Import File Strings/,/^$/ { 15164 /^0/ { 15165 s/^0 *\(.*\)$/\1/ 15166 p 15167 } 15168 }' 15169aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15170# Check for a 64-bit object if we didn't find anything. 15171if test -z "$aix_libpath"; then 15172 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15173fi 15174else 15175 echo "$as_me: failed program was:" >&5 15176sed 's/^/| /' conftest.$ac_ext >&5 15177 15178 15179fi 15180 15181rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15182 conftest$ac_exeext conftest.$ac_ext 15183if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15184 15185 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15186 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" 15187 else 15188 if test "$host_cpu" = ia64; then 15189 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15190 allow_undefined_flag_F77="-z nodefs" 15191 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" 15192 else 15193 # Determine the default libpath from the value encoded in an empty executable. 15194 cat >conftest.$ac_ext <<_ACEOF 15195 program main 15196 15197 end 15198_ACEOF 15199rm -f conftest.$ac_objext conftest$ac_exeext 15200if { (ac_try="$ac_link" 15201case "(($ac_try" in 15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15203 *) ac_try_echo=$ac_try;; 15204esac 15205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15206 (eval "$ac_link") 2>conftest.er1 15207 ac_status=$? 15208 grep -v '^ *+' conftest.er1 >conftest.err 15209 rm -f conftest.er1 15210 cat conftest.err >&5 15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15212 (exit $ac_status); } && { 15213 test -z "$ac_f77_werror_flag" || 15214 test ! -s conftest.err 15215 } && test -s conftest$ac_exeext && 15216 $as_test_x conftest$ac_exeext; then 15217 15218lt_aix_libpath_sed=' 15219 /Import File Strings/,/^$/ { 15220 /^0/ { 15221 s/^0 *\(.*\)$/\1/ 15222 p 15223 } 15224 }' 15225aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15226# Check for a 64-bit object if we didn't find anything. 15227if test -z "$aix_libpath"; then 15228 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15229fi 15230else 15231 echo "$as_me: failed program was:" >&5 15232sed 's/^/| /' conftest.$ac_ext >&5 15233 15234 15235fi 15236 15237rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15238 conftest$ac_exeext conftest.$ac_ext 15239if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15240 15241 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15242 # Warning - without using the other run time loading flags, 15243 # -berok will link without error, but may produce a broken library. 15244 no_undefined_flag_F77=' ${wl}-bernotok' 15245 allow_undefined_flag_F77=' ${wl}-berok' 15246 # Exported symbols can be pulled into shared objects from archives 15247 whole_archive_flag_spec_F77='$convenience' 15248 archive_cmds_need_lc_F77=yes 15249 # This is similar to how AIX traditionally builds its shared libraries. 15250 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' 15251 fi 15252 fi 15253 ;; 15254 15255 amigaos*) 15256 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)' 15257 hardcode_libdir_flag_spec_F77='-L$libdir' 15258 hardcode_minus_L_F77=yes 15259 # see comment about different semantics on the GNU ld section 15260 ld_shlibs_F77=no 15261 ;; 15262 15263 bsdi[45]*) 15264 export_dynamic_flag_spec_F77=-rdynamic 15265 ;; 15266 15267 cygwin* | mingw* | pw32*) 15268 # When not using gcc, we currently assume that we are using 15269 # Microsoft Visual C++. 15270 # hardcode_libdir_flag_spec is actually meaningless, as there is 15271 # no search path for DLLs. 15272 hardcode_libdir_flag_spec_F77=' ' 15273 allow_undefined_flag_F77=unsupported 15274 # Tell ltmain to make .lib files, not .a files. 15275 libext=lib 15276 # Tell ltmain to make .dll files, not .so files. 15277 shrext_cmds=".dll" 15278 # FIXME: Setting linknames here is a bad hack. 15279 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15280 # The linker will automatically build a .lib file if we build a DLL. 15281 old_archive_From_new_cmds_F77='true' 15282 # FIXME: Should let the user specify the lib program. 15283 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15284 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15285 enable_shared_with_static_runtimes_F77=yes 15286 ;; 15287 15288 darwin* | rhapsody*) 15289 case $host_os in 15290 rhapsody* | darwin1.[012]) 15291 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15292 ;; 15293 *) # Darwin 1.3 on 15294 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15295 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15296 else 15297 case ${MACOSX_DEPLOYMENT_TARGET} in 15298 10.[012]) 15299 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15300 ;; 15301 10.*) 15302 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15303 ;; 15304 esac 15305 fi 15306 ;; 15307 esac 15308 archive_cmds_need_lc_F77=no 15309 hardcode_direct_F77=no 15310 hardcode_automatic_F77=yes 15311 hardcode_shlibpath_var_F77=unsupported 15312 whole_archive_flag_spec_F77='' 15313 link_all_deplibs_F77=yes 15314 if test "$GCC" = yes ; then 15315 output_verbose_link_cmd='echo' 15316 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15317 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15318 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15319 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15320 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}' 15321 else 15322 case $cc_basename in 15323 xlc*) 15324 output_verbose_link_cmd='echo' 15325 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15326 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15327 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15328 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}' 15329 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}' 15330 ;; 15331 *) 15332 ld_shlibs_F77=no 15333 ;; 15334 esac 15335 fi 15336 ;; 15337 15338 dgux*) 15339 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15340 hardcode_libdir_flag_spec_F77='-L$libdir' 15341 hardcode_shlibpath_var_F77=no 15342 ;; 15343 15344 freebsd1*) 15345 ld_shlibs_F77=no 15346 ;; 15347 15348 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15349 # support. Future versions do this automatically, but an explicit c++rt0.o 15350 # does not break anything, and helps significantly (at the cost of a little 15351 # extra space). 15352 freebsd2.2*) 15353 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15354 hardcode_libdir_flag_spec_F77='-R$libdir' 15355 hardcode_direct_F77=yes 15356 hardcode_shlibpath_var_F77=no 15357 ;; 15358 15359 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15360 freebsd2*) 15361 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15362 hardcode_direct_F77=yes 15363 hardcode_minus_L_F77=yes 15364 hardcode_shlibpath_var_F77=no 15365 ;; 15366 15367 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15368 freebsd* | dragonfly*) 15369 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15370 hardcode_libdir_flag_spec_F77='-R$libdir' 15371 hardcode_direct_F77=yes 15372 hardcode_shlibpath_var_F77=no 15373 ;; 15374 15375 hpux9*) 15376 if test "$GCC" = yes; then 15377 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' 15378 else 15379 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' 15380 fi 15381 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15382 hardcode_libdir_separator_F77=: 15383 hardcode_direct_F77=yes 15384 15385 # hardcode_minus_L: Not really in the search PATH, 15386 # but as the default location of the library. 15387 hardcode_minus_L_F77=yes 15388 export_dynamic_flag_spec_F77='${wl}-E' 15389 ;; 15390 15391 hpux10*) 15392 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15393 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15394 else 15395 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15396 fi 15397 if test "$with_gnu_ld" = no; then 15398 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15399 hardcode_libdir_separator_F77=: 15400 15401 hardcode_direct_F77=yes 15402 export_dynamic_flag_spec_F77='${wl}-E' 15403 15404 # hardcode_minus_L: Not really in the search PATH, 15405 # but as the default location of the library. 15406 hardcode_minus_L_F77=yes 15407 fi 15408 ;; 15409 15410 hpux11*) 15411 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15412 case $host_cpu in 15413 hppa*64*) 15414 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15415 ;; 15416 ia64*) 15417 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15418 ;; 15419 *) 15420 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15421 ;; 15422 esac 15423 else 15424 case $host_cpu in 15425 hppa*64*) 15426 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15427 ;; 15428 ia64*) 15429 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15430 ;; 15431 *) 15432 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15433 ;; 15434 esac 15435 fi 15436 if test "$with_gnu_ld" = no; then 15437 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15438 hardcode_libdir_separator_F77=: 15439 15440 case $host_cpu in 15441 hppa*64*|ia64*) 15442 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15443 hardcode_direct_F77=no 15444 hardcode_shlibpath_var_F77=no 15445 ;; 15446 *) 15447 hardcode_direct_F77=yes 15448 export_dynamic_flag_spec_F77='${wl}-E' 15449 15450 # hardcode_minus_L: Not really in the search PATH, 15451 # but as the default location of the library. 15452 hardcode_minus_L_F77=yes 15453 ;; 15454 esac 15455 fi 15456 ;; 15457 15458 irix5* | irix6* | nonstopux*) 15459 if test "$GCC" = yes; then 15460 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' 15461 else 15462 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' 15463 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15464 fi 15465 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15466 hardcode_libdir_separator_F77=: 15467 link_all_deplibs_F77=yes 15468 ;; 15469 15470 netbsd*) 15471 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15472 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15473 else 15474 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15475 fi 15476 hardcode_libdir_flag_spec_F77='-R$libdir' 15477 hardcode_direct_F77=yes 15478 hardcode_shlibpath_var_F77=no 15479 ;; 15480 15481 newsos6) 15482 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15483 hardcode_direct_F77=yes 15484 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15485 hardcode_libdir_separator_F77=: 15486 hardcode_shlibpath_var_F77=no 15487 ;; 15488 15489 openbsd*) 15490 if test -f /usr/libexec/ld.so; then 15491 hardcode_direct_F77=yes 15492 hardcode_shlibpath_var_F77=no 15493 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15494 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15495 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15496 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15497 export_dynamic_flag_spec_F77='${wl}-E' 15498 else 15499 case $host_os in 15500 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15501 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15502 hardcode_libdir_flag_spec_F77='-R$libdir' 15503 ;; 15504 *) 15505 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15506 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15507 ;; 15508 esac 15509 fi 15510 else 15511 ld_shlibs_F77=no 15512 fi 15513 ;; 15514 15515 os2*) 15516 hardcode_libdir_flag_spec_F77='-L$libdir' 15517 hardcode_minus_L_F77=yes 15518 allow_undefined_flag_F77=unsupported 15519 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' 15520 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15521 ;; 15522 15523 osf3*) 15524 if test "$GCC" = yes; then 15525 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15526 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' 15527 else 15528 allow_undefined_flag_F77=' -expect_unresolved \*' 15529 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' 15530 fi 15531 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15532 hardcode_libdir_separator_F77=: 15533 ;; 15534 15535 osf4* | osf5*) # as osf3* with the addition of -msym flag 15536 if test "$GCC" = yes; then 15537 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15538 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' 15539 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15540 else 15541 allow_undefined_flag_F77=' -expect_unresolved \*' 15542 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' 15543 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~ 15544 $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' 15545 15546 # Both c and cxx compiler support -rpath directly 15547 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15548 fi 15549 hardcode_libdir_separator_F77=: 15550 ;; 15551 15552 solaris*) 15553 no_undefined_flag_F77=' -z text' 15554 if test "$GCC" = yes; then 15555 wlarc='${wl}' 15556 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15557 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15558 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15559 else 15560 wlarc='' 15561 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15562 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15563 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15564 fi 15565 hardcode_libdir_flag_spec_F77='-R$libdir' 15566 hardcode_shlibpath_var_F77=no 15567 case $host_os in 15568 solaris2.[0-5] | solaris2.[0-5].*) ;; 15569 *) 15570 # The compiler driver will combine and reorder linker options, 15571 # but understands `-z linker_flag'. GCC discards it without `$wl', 15572 # but is careful enough not to reorder. 15573 # Supported since Solaris 2.6 (maybe 2.5.1?) 15574 if test "$GCC" = yes; then 15575 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15576 else 15577 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15578 fi 15579 ;; 15580 esac 15581 link_all_deplibs_F77=yes 15582 ;; 15583 15584 sunos4*) 15585 if test "x$host_vendor" = xsequent; then 15586 # Use $CC to link under sequent, because it throws in some extra .o 15587 # files that make .init and .fini sections work. 15588 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15589 else 15590 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15591 fi 15592 hardcode_libdir_flag_spec_F77='-L$libdir' 15593 hardcode_direct_F77=yes 15594 hardcode_minus_L_F77=yes 15595 hardcode_shlibpath_var_F77=no 15596 ;; 15597 15598 sysv4) 15599 case $host_vendor in 15600 sni) 15601 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15602 hardcode_direct_F77=yes # is this really true??? 15603 ;; 15604 siemens) 15605 ## LD is ld it makes a PLAMLIB 15606 ## CC just makes a GrossModule. 15607 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15608 reload_cmds_F77='$CC -r -o $output$reload_objs' 15609 hardcode_direct_F77=no 15610 ;; 15611 motorola) 15612 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15613 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15614 ;; 15615 esac 15616 runpath_var='LD_RUN_PATH' 15617 hardcode_shlibpath_var_F77=no 15618 ;; 15619 15620 sysv4.3*) 15621 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15622 hardcode_shlibpath_var_F77=no 15623 export_dynamic_flag_spec_F77='-Bexport' 15624 ;; 15625 15626 sysv4*MP*) 15627 if test -d /usr/nec; then 15628 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15629 hardcode_shlibpath_var_F77=no 15630 runpath_var=LD_RUN_PATH 15631 hardcode_runpath_var=yes 15632 ld_shlibs_F77=yes 15633 fi 15634 ;; 15635 15636 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15637 no_undefined_flag_F77='${wl}-z,text' 15638 archive_cmds_need_lc_F77=no 15639 hardcode_shlibpath_var_F77=no 15640 runpath_var='LD_RUN_PATH' 15641 15642 if test "$GCC" = yes; then 15643 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15644 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15645 else 15646 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15647 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15648 fi 15649 ;; 15650 15651 sysv5* | sco3.2v5* | sco5v6*) 15652 # Note: We can NOT use -z defs as we might desire, because we do not 15653 # link with -lc, and that would cause any symbols used from libc to 15654 # always be unresolved, which means just about no library would 15655 # ever link correctly. If we're not using GNU ld we use -z text 15656 # though, which does catch some bad symbols but isn't as heavy-handed 15657 # as -z defs. 15658 no_undefined_flag_F77='${wl}-z,text' 15659 allow_undefined_flag_F77='${wl}-z,nodefs' 15660 archive_cmds_need_lc_F77=no 15661 hardcode_shlibpath_var_F77=no 15662 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15663 hardcode_libdir_separator_F77=':' 15664 link_all_deplibs_F77=yes 15665 export_dynamic_flag_spec_F77='${wl}-Bexport' 15666 runpath_var='LD_RUN_PATH' 15667 15668 if test "$GCC" = yes; then 15669 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15670 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15671 else 15672 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15673 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15674 fi 15675 ;; 15676 15677 uts4*) 15678 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15679 hardcode_libdir_flag_spec_F77='-L$libdir' 15680 hardcode_shlibpath_var_F77=no 15681 ;; 15682 15683 *) 15684 ld_shlibs_F77=no 15685 ;; 15686 esac 15687 fi 15688 15689{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15690echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15691test "$ld_shlibs_F77" = no && can_build_shared=no 15692 15693# 15694# Do we need to explicitly link libc? 15695# 15696case "x$archive_cmds_need_lc_F77" in 15697x|xyes) 15698 # Assume -lc should be added 15699 archive_cmds_need_lc_F77=yes 15700 15701 if test "$enable_shared" = yes && test "$GCC" = yes; then 15702 case $archive_cmds_F77 in 15703 *'~'*) 15704 # FIXME: we may have to deal with multi-command sequences. 15705 ;; 15706 '$CC '*) 15707 # Test whether the compiler implicitly links with -lc since on some 15708 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15709 # to ld, don't add -lc before -lgcc. 15710 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15711echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15712 $rm conftest* 15713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15714 15715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15716 (eval $ac_compile) 2>&5 15717 ac_status=$? 15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15719 (exit $ac_status); } 2>conftest.err; then 15720 soname=conftest 15721 lib=conftest 15722 libobjs=conftest.$ac_objext 15723 deplibs= 15724 wl=$lt_prog_compiler_wl_F77 15725 pic_flag=$lt_prog_compiler_pic_F77 15726 compiler_flags=-v 15727 linker_flags=-v 15728 verstring= 15729 output_objdir=. 15730 libname=conftest 15731 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15732 allow_undefined_flag_F77= 15733 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15734 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15735 ac_status=$? 15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15737 (exit $ac_status); } 15738 then 15739 archive_cmds_need_lc_F77=no 15740 else 15741 archive_cmds_need_lc_F77=yes 15742 fi 15743 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15744 else 15745 cat conftest.err 1>&5 15746 fi 15747 $rm conftest* 15748 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15749echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15750 ;; 15751 esac 15752 fi 15753 ;; 15754esac 15755 15756{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15757echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15758library_names_spec= 15759libname_spec='lib$name' 15760soname_spec= 15761shrext_cmds=".so" 15762postinstall_cmds= 15763postuninstall_cmds= 15764finish_cmds= 15765finish_eval= 15766shlibpath_var= 15767shlibpath_overrides_runpath=unknown 15768version_type=none 15769dynamic_linker="$host_os ld.so" 15770sys_lib_dlsearch_path_spec="/lib /usr/lib" 15771 15772need_lib_prefix=unknown 15773hardcode_into_libs=no 15774 15775# when you set need_version to no, make sure it does not cause -set_version 15776# flags to be left without arguments 15777need_version=unknown 15778 15779case $host_os in 15780aix3*) 15781 version_type=linux 15782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15783 shlibpath_var=LIBPATH 15784 15785 # AIX 3 has no versioning support, so we append a major version to the name. 15786 soname_spec='${libname}${release}${shared_ext}$major' 15787 ;; 15788 15789aix4* | aix5*) 15790 version_type=linux 15791 need_lib_prefix=no 15792 need_version=no 15793 hardcode_into_libs=yes 15794 if test "$host_cpu" = ia64; then 15795 # AIX 5 supports IA64 15796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15797 shlibpath_var=LD_LIBRARY_PATH 15798 else 15799 # With GCC up to 2.95.x, collect2 would create an import file 15800 # for dependence libraries. The import file would start with 15801 # the line `#! .'. This would cause the generated library to 15802 # depend on `.', always an invalid library. This was fixed in 15803 # development snapshots of GCC prior to 3.0. 15804 case $host_os in 15805 aix4 | aix4.[01] | aix4.[01].*) 15806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15807 echo ' yes ' 15808 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15809 : 15810 else 15811 can_build_shared=no 15812 fi 15813 ;; 15814 esac 15815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15816 # soname into executable. Probably we can add versioning support to 15817 # collect2, so additional links can be useful in future. 15818 if test "$aix_use_runtimelinking" = yes; then 15819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15820 # instead of lib<name>.a to let people know that these are not 15821 # typical AIX shared libraries. 15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15823 else 15824 # We preserve .a as extension for shared libraries through AIX4.2 15825 # and later when we are not doing run time linking. 15826 library_names_spec='${libname}${release}.a $libname.a' 15827 soname_spec='${libname}${release}${shared_ext}$major' 15828 fi 15829 shlibpath_var=LIBPATH 15830 fi 15831 ;; 15832 15833amigaos*) 15834 library_names_spec='$libname.ixlibrary $libname.a' 15835 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15836 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' 15837 ;; 15838 15839beos*) 15840 library_names_spec='${libname}${shared_ext}' 15841 dynamic_linker="$host_os ld.so" 15842 shlibpath_var=LIBRARY_PATH 15843 ;; 15844 15845bsdi[45]*) 15846 version_type=linux 15847 need_version=no 15848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15849 soname_spec='${libname}${release}${shared_ext}$major' 15850 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15851 shlibpath_var=LD_LIBRARY_PATH 15852 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15853 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15854 # the default ld.so.conf also contains /usr/contrib/lib and 15855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15856 # libtool to hard-code these into programs 15857 ;; 15858 15859cygwin* | mingw* | pw32*) 15860 version_type=windows 15861 shrext_cmds=".dll" 15862 need_version=no 15863 need_lib_prefix=no 15864 15865 case $GCC,$host_os in 15866 yes,cygwin* | yes,mingw* | yes,pw32*) 15867 library_names_spec='$libname.dll.a' 15868 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15869 postinstall_cmds='base_file=`basename \${file}`~ 15870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15871 dldir=$destdir/`dirname \$dlpath`~ 15872 test -d \$dldir || mkdir -p \$dldir~ 15873 $install_prog $dir/$dlname \$dldir/$dlname~ 15874 chmod a+x \$dldir/$dlname' 15875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15876 dlpath=$dir/\$dldll~ 15877 $rm \$dlpath' 15878 shlibpath_overrides_runpath=yes 15879 15880 case $host_os in 15881 cygwin*) 15882 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15883 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15884 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15885 ;; 15886 mingw*) 15887 # MinGW DLLs use traditional 'lib' prefix 15888 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15889 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15890 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15891 # It is most probably a Windows format PATH printed by 15892 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15893 # path with ; separators, and with drive letters. We can handle the 15894 # drive letters (cygwin fileutils understands them), so leave them, 15895 # especially as we might pass files found there to a mingw objdump, 15896 # which wouldn't understand a cygwinified path. Ahh. 15897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15898 else 15899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15900 fi 15901 ;; 15902 pw32*) 15903 # pw32 DLLs use 'pw' prefix rather than 'lib' 15904 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15905 ;; 15906 esac 15907 ;; 15908 15909 *) 15910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15911 ;; 15912 esac 15913 dynamic_linker='Win32 ld.exe' 15914 # FIXME: first we should search . and the directory the executable is in 15915 shlibpath_var=PATH 15916 ;; 15917 15918darwin* | rhapsody*) 15919 dynamic_linker="$host_os dyld" 15920 version_type=darwin 15921 need_lib_prefix=no 15922 need_version=no 15923 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15924 soname_spec='${libname}${release}${major}$shared_ext' 15925 shlibpath_overrides_runpath=yes 15926 shlibpath_var=DYLD_LIBRARY_PATH 15927 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15928 15929 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15930 ;; 15931 15932dgux*) 15933 version_type=linux 15934 need_lib_prefix=no 15935 need_version=no 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 shlibpath_var=LD_LIBRARY_PATH 15939 ;; 15940 15941freebsd1*) 15942 dynamic_linker=no 15943 ;; 15944 15945freebsd* | dragonfly*) 15946 # DragonFly does not have aout. When/if they implement a new 15947 # versioning mechanism, adjust this. 15948 if test -x /usr/bin/objformat; then 15949 objformat=`/usr/bin/objformat` 15950 else 15951 case $host_os in 15952 freebsd[123]*) objformat=aout ;; 15953 *) objformat=elf ;; 15954 esac 15955 fi 15956 version_type=freebsd-$objformat 15957 case $version_type in 15958 freebsd-elf*) 15959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15960 need_version=no 15961 need_lib_prefix=no 15962 ;; 15963 freebsd-*) 15964 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15965 need_version=yes 15966 ;; 15967 esac 15968 shlibpath_var=LD_LIBRARY_PATH 15969 case $host_os in 15970 freebsd2*) 15971 shlibpath_overrides_runpath=yes 15972 ;; 15973 freebsd3.[01]* | freebsdelf3.[01]*) 15974 shlibpath_overrides_runpath=yes 15975 hardcode_into_libs=yes 15976 ;; 15977 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15978 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15979 shlibpath_overrides_runpath=no 15980 hardcode_into_libs=yes 15981 ;; 15982 *) # from 4.6 on, and DragonFly 15983 shlibpath_overrides_runpath=yes 15984 hardcode_into_libs=yes 15985 ;; 15986 esac 15987 ;; 15988 15989gnu*) 15990 version_type=linux 15991 need_lib_prefix=no 15992 need_version=no 15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15994 soname_spec='${libname}${release}${shared_ext}$major' 15995 shlibpath_var=LD_LIBRARY_PATH 15996 hardcode_into_libs=yes 15997 ;; 15998 15999hpux9* | hpux10* | hpux11*) 16000 # Give a soname corresponding to the major version so that dld.sl refuses to 16001 # link against other versions. 16002 version_type=sunos 16003 need_lib_prefix=no 16004 need_version=no 16005 case $host_cpu in 16006 ia64*) 16007 shrext_cmds='.so' 16008 hardcode_into_libs=yes 16009 dynamic_linker="$host_os dld.so" 16010 shlibpath_var=LD_LIBRARY_PATH 16011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16013 soname_spec='${libname}${release}${shared_ext}$major' 16014 if test "X$HPUX_IA64_MODE" = X32; then 16015 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16016 else 16017 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16018 fi 16019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16020 ;; 16021 hppa*64*) 16022 shrext_cmds='.sl' 16023 hardcode_into_libs=yes 16024 dynamic_linker="$host_os dld.sl" 16025 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16028 soname_spec='${libname}${release}${shared_ext}$major' 16029 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16031 ;; 16032 *) 16033 shrext_cmds='.sl' 16034 dynamic_linker="$host_os dld.sl" 16035 shlibpath_var=SHLIB_PATH 16036 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16038 soname_spec='${libname}${release}${shared_ext}$major' 16039 ;; 16040 esac 16041 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16042 postinstall_cmds='chmod 555 $lib' 16043 ;; 16044 16045interix[3-9]*) 16046 version_type=linux 16047 need_lib_prefix=no 16048 need_version=no 16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16050 soname_spec='${libname}${release}${shared_ext}$major' 16051 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16052 shlibpath_var=LD_LIBRARY_PATH 16053 shlibpath_overrides_runpath=no 16054 hardcode_into_libs=yes 16055 ;; 16056 16057irix5* | irix6* | nonstopux*) 16058 case $host_os in 16059 nonstopux*) version_type=nonstopux ;; 16060 *) 16061 if test "$lt_cv_prog_gnu_ld" = yes; then 16062 version_type=linux 16063 else 16064 version_type=irix 16065 fi ;; 16066 esac 16067 need_lib_prefix=no 16068 need_version=no 16069 soname_spec='${libname}${release}${shared_ext}$major' 16070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16071 case $host_os in 16072 irix5* | nonstopux*) 16073 libsuff= shlibsuff= 16074 ;; 16075 *) 16076 case $LD in # libtool.m4 will add one of these switches to LD 16077 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16078 libsuff= shlibsuff= libmagic=32-bit;; 16079 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16080 libsuff=32 shlibsuff=N32 libmagic=N32;; 16081 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16082 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16083 *) libsuff= shlibsuff= libmagic=never-match;; 16084 esac 16085 ;; 16086 esac 16087 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16088 shlibpath_overrides_runpath=no 16089 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16090 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16091 hardcode_into_libs=yes 16092 ;; 16093 16094# No shared lib support for Linux oldld, aout, or coff. 16095linux*oldld* | linux*aout* | linux*coff*) 16096 dynamic_linker=no 16097 ;; 16098 16099# This must be Linux ELF. 16100linux* | k*bsd*-gnu) 16101 version_type=linux 16102 need_lib_prefix=no 16103 need_version=no 16104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16105 soname_spec='${libname}${release}${shared_ext}$major' 16106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16107 shlibpath_var=LD_LIBRARY_PATH 16108 shlibpath_overrides_runpath=no 16109 # This implies no fast_install, which is unacceptable. 16110 # Some rework will be needed to allow for fast_install 16111 # before this can be enabled. 16112 hardcode_into_libs=yes 16113 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16114 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16115 16116 # Append ld.so.conf contents to the search path 16117 if test -f /etc/ld.so.conf; then 16118 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' ' '` 16119 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16120 fi 16121 16122 # We used to test for /lib/ld.so.1 and disable shared libraries on 16123 # powerpc, because MkLinux only supported shared libraries with the 16124 # GNU dynamic linker. Since this was broken with cross compilers, 16125 # most powerpc-linux boxes support dynamic linking these days and 16126 # people can always --disable-shared, the test was removed, and we 16127 # assume the GNU/Linux dynamic linker is in use. 16128 dynamic_linker='GNU/Linux ld.so' 16129 ;; 16130 16131netbsd*) 16132 version_type=sunos 16133 need_lib_prefix=no 16134 need_version=no 16135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16138 dynamic_linker='NetBSD (a.out) ld.so' 16139 else 16140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16141 soname_spec='${libname}${release}${shared_ext}$major' 16142 dynamic_linker='NetBSD ld.elf_so' 16143 fi 16144 shlibpath_var=LD_LIBRARY_PATH 16145 shlibpath_overrides_runpath=yes 16146 hardcode_into_libs=yes 16147 ;; 16148 16149newsos6) 16150 version_type=linux 16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16152 shlibpath_var=LD_LIBRARY_PATH 16153 shlibpath_overrides_runpath=yes 16154 ;; 16155 16156nto-qnx*) 16157 version_type=linux 16158 need_lib_prefix=no 16159 need_version=no 16160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16161 soname_spec='${libname}${release}${shared_ext}$major' 16162 shlibpath_var=LD_LIBRARY_PATH 16163 shlibpath_overrides_runpath=yes 16164 ;; 16165 16166openbsd*) 16167 version_type=sunos 16168 sys_lib_dlsearch_path_spec="/usr/lib" 16169 need_lib_prefix=no 16170 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16171 case $host_os in 16172 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16173 *) need_version=no ;; 16174 esac 16175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16177 shlibpath_var=LD_LIBRARY_PATH 16178 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16179 case $host_os in 16180 openbsd2.[89] | openbsd2.[89].*) 16181 shlibpath_overrides_runpath=no 16182 ;; 16183 *) 16184 shlibpath_overrides_runpath=yes 16185 ;; 16186 esac 16187 else 16188 shlibpath_overrides_runpath=yes 16189 fi 16190 ;; 16191 16192os2*) 16193 libname_spec='$name' 16194 shrext_cmds=".dll" 16195 need_lib_prefix=no 16196 library_names_spec='$libname${shared_ext} $libname.a' 16197 dynamic_linker='OS/2 ld.exe' 16198 shlibpath_var=LIBPATH 16199 ;; 16200 16201osf3* | osf4* | osf5*) 16202 version_type=osf 16203 need_lib_prefix=no 16204 need_version=no 16205 soname_spec='${libname}${release}${shared_ext}$major' 16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16207 shlibpath_var=LD_LIBRARY_PATH 16208 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16209 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16210 ;; 16211 16212rdos*) 16213 dynamic_linker=no 16214 ;; 16215 16216solaris*) 16217 version_type=linux 16218 need_lib_prefix=no 16219 need_version=no 16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16221 soname_spec='${libname}${release}${shared_ext}$major' 16222 shlibpath_var=LD_LIBRARY_PATH 16223 shlibpath_overrides_runpath=yes 16224 hardcode_into_libs=yes 16225 # ldd complains unless libraries are executable 16226 postinstall_cmds='chmod +x $lib' 16227 ;; 16228 16229sunos4*) 16230 version_type=sunos 16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16232 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16233 shlibpath_var=LD_LIBRARY_PATH 16234 shlibpath_overrides_runpath=yes 16235 if test "$with_gnu_ld" = yes; then 16236 need_lib_prefix=no 16237 fi 16238 need_version=yes 16239 ;; 16240 16241sysv4 | sysv4.3*) 16242 version_type=linux 16243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16244 soname_spec='${libname}${release}${shared_ext}$major' 16245 shlibpath_var=LD_LIBRARY_PATH 16246 case $host_vendor in 16247 sni) 16248 shlibpath_overrides_runpath=no 16249 need_lib_prefix=no 16250 export_dynamic_flag_spec='${wl}-Blargedynsym' 16251 runpath_var=LD_RUN_PATH 16252 ;; 16253 siemens) 16254 need_lib_prefix=no 16255 ;; 16256 motorola) 16257 need_lib_prefix=no 16258 need_version=no 16259 shlibpath_overrides_runpath=no 16260 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16261 ;; 16262 esac 16263 ;; 16264 16265sysv4*MP*) 16266 if test -d /usr/nec ;then 16267 version_type=linux 16268 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16269 soname_spec='$libname${shared_ext}.$major' 16270 shlibpath_var=LD_LIBRARY_PATH 16271 fi 16272 ;; 16273 16274sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16275 version_type=freebsd-elf 16276 need_lib_prefix=no 16277 need_version=no 16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16279 soname_spec='${libname}${release}${shared_ext}$major' 16280 shlibpath_var=LD_LIBRARY_PATH 16281 hardcode_into_libs=yes 16282 if test "$with_gnu_ld" = yes; then 16283 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16284 shlibpath_overrides_runpath=no 16285 else 16286 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16287 shlibpath_overrides_runpath=yes 16288 case $host_os in 16289 sco3.2v5*) 16290 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16291 ;; 16292 esac 16293 fi 16294 sys_lib_dlsearch_path_spec='/usr/lib' 16295 ;; 16296 16297uts4*) 16298 version_type=linux 16299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16300 soname_spec='${libname}${release}${shared_ext}$major' 16301 shlibpath_var=LD_LIBRARY_PATH 16302 ;; 16303 16304*) 16305 dynamic_linker=no 16306 ;; 16307esac 16308{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16309echo "${ECHO_T}$dynamic_linker" >&6; } 16310test "$dynamic_linker" = no && can_build_shared=no 16311 16312variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16313if test "$GCC" = yes; then 16314 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16315fi 16316 16317{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16318echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16319hardcode_action_F77= 16320if test -n "$hardcode_libdir_flag_spec_F77" || \ 16321 test -n "$runpath_var_F77" || \ 16322 test "X$hardcode_automatic_F77" = "Xyes" ; then 16323 16324 # We can hardcode non-existant directories. 16325 if test "$hardcode_direct_F77" != no && 16326 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16327 # have to relink, otherwise we might link with an installed library 16328 # when we should be linking with a yet-to-be-installed one 16329 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16330 test "$hardcode_minus_L_F77" != no; then 16331 # Linking always hardcodes the temporary library directory. 16332 hardcode_action_F77=relink 16333 else 16334 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16335 hardcode_action_F77=immediate 16336 fi 16337else 16338 # We cannot hardcode anything, or else we can only hardcode existing 16339 # directories. 16340 hardcode_action_F77=unsupported 16341fi 16342{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16343echo "${ECHO_T}$hardcode_action_F77" >&6; } 16344 16345if test "$hardcode_action_F77" = relink; then 16346 # Fast installation is not supported 16347 enable_fast_install=no 16348elif test "$shlibpath_overrides_runpath" = yes || 16349 test "$enable_shared" = no; then 16350 # Fast installation is not necessary 16351 enable_fast_install=needless 16352fi 16353 16354 16355# The else clause should only fire when bootstrapping the 16356# libtool distribution, otherwise you forgot to ship ltmain.sh 16357# with your package, and you will get complaints that there are 16358# no rules to generate ltmain.sh. 16359if test -f "$ltmain"; then 16360 # See if we are running on zsh, and set the options which allow our commands through 16361 # without removal of \ escapes. 16362 if test -n "${ZSH_VERSION+set}" ; then 16363 setopt NO_GLOB_SUBST 16364 fi 16365 # Now quote all the things that may contain metacharacters while being 16366 # careful not to overquote the AC_SUBSTed values. We take copies of the 16367 # variables and quote the copies for generation of the libtool script. 16368 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16369 SED SHELL STRIP \ 16370 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16371 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16372 deplibs_check_method reload_flag reload_cmds need_locks \ 16373 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16374 lt_cv_sys_global_symbol_to_c_name_address \ 16375 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16376 old_postinstall_cmds old_postuninstall_cmds \ 16377 compiler_F77 \ 16378 CC_F77 \ 16379 LD_F77 \ 16380 lt_prog_compiler_wl_F77 \ 16381 lt_prog_compiler_pic_F77 \ 16382 lt_prog_compiler_static_F77 \ 16383 lt_prog_compiler_no_builtin_flag_F77 \ 16384 export_dynamic_flag_spec_F77 \ 16385 thread_safe_flag_spec_F77 \ 16386 whole_archive_flag_spec_F77 \ 16387 enable_shared_with_static_runtimes_F77 \ 16388 old_archive_cmds_F77 \ 16389 old_archive_from_new_cmds_F77 \ 16390 predep_objects_F77 \ 16391 postdep_objects_F77 \ 16392 predeps_F77 \ 16393 postdeps_F77 \ 16394 compiler_lib_search_path_F77 \ 16395 archive_cmds_F77 \ 16396 archive_expsym_cmds_F77 \ 16397 postinstall_cmds_F77 \ 16398 postuninstall_cmds_F77 \ 16399 old_archive_from_expsyms_cmds_F77 \ 16400 allow_undefined_flag_F77 \ 16401 no_undefined_flag_F77 \ 16402 export_symbols_cmds_F77 \ 16403 hardcode_libdir_flag_spec_F77 \ 16404 hardcode_libdir_flag_spec_ld_F77 \ 16405 hardcode_libdir_separator_F77 \ 16406 hardcode_automatic_F77 \ 16407 module_cmds_F77 \ 16408 module_expsym_cmds_F77 \ 16409 lt_cv_prog_compiler_c_o_F77 \ 16410 fix_srcfile_path_F77 \ 16411 exclude_expsyms_F77 \ 16412 include_expsyms_F77; do 16413 16414 case $var in 16415 old_archive_cmds_F77 | \ 16416 old_archive_from_new_cmds_F77 | \ 16417 archive_cmds_F77 | \ 16418 archive_expsym_cmds_F77 | \ 16419 module_cmds_F77 | \ 16420 module_expsym_cmds_F77 | \ 16421 old_archive_from_expsyms_cmds_F77 | \ 16422 export_symbols_cmds_F77 | \ 16423 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16424 postinstall_cmds | postuninstall_cmds | \ 16425 old_postinstall_cmds | old_postuninstall_cmds | \ 16426 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16427 # Double-quote double-evaled strings. 16428 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16429 ;; 16430 *) 16431 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16432 ;; 16433 esac 16434 done 16435 16436 case $lt_echo in 16437 *'\$0 --fallback-echo"') 16438 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16439 ;; 16440 esac 16441 16442cfgfile="$ofile" 16443 16444 cat <<__EOF__ >> "$cfgfile" 16445# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16446 16447# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16448 16449# Shell to use when invoking shell scripts. 16450SHELL=$lt_SHELL 16451 16452# Whether or not to build shared libraries. 16453build_libtool_libs=$enable_shared 16454 16455# Whether or not to build static libraries. 16456build_old_libs=$enable_static 16457 16458# Whether or not to add -lc for building shared libraries. 16459build_libtool_need_lc=$archive_cmds_need_lc_F77 16460 16461# Whether or not to disallow shared libs when runtime libs are static 16462allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16463 16464# Whether or not to optimize for fast installation. 16465fast_install=$enable_fast_install 16466 16467# The host system. 16468host_alias=$host_alias 16469host=$host 16470host_os=$host_os 16471 16472# The build system. 16473build_alias=$build_alias 16474build=$build 16475build_os=$build_os 16476 16477# An echo program that does not interpret backslashes. 16478echo=$lt_echo 16479 16480# The archiver. 16481AR=$lt_AR 16482AR_FLAGS=$lt_AR_FLAGS 16483 16484# A C compiler. 16485LTCC=$lt_LTCC 16486 16487# LTCC compiler flags. 16488LTCFLAGS=$lt_LTCFLAGS 16489 16490# A language-specific compiler. 16491CC=$lt_compiler_F77 16492 16493# Is the compiler the GNU C compiler? 16494with_gcc=$GCC_F77 16495 16496# An ERE matcher. 16497EGREP=$lt_EGREP 16498 16499# The linker used to build libraries. 16500LD=$lt_LD_F77 16501 16502# Whether we need hard or soft links. 16503LN_S=$lt_LN_S 16504 16505# A BSD-compatible nm program. 16506NM=$lt_NM 16507 16508# A symbol stripping program 16509STRIP=$lt_STRIP 16510 16511# Used to examine libraries when file_magic_cmd begins "file" 16512MAGIC_CMD=$MAGIC_CMD 16513 16514# Used on cygwin: DLL creation program. 16515DLLTOOL="$DLLTOOL" 16516 16517# Used on cygwin: object dumper. 16518OBJDUMP="$OBJDUMP" 16519 16520# Used on cygwin: assembler. 16521AS="$AS" 16522 16523# The name of the directory that contains temporary libtool files. 16524objdir=$objdir 16525 16526# How to create reloadable object files. 16527reload_flag=$lt_reload_flag 16528reload_cmds=$lt_reload_cmds 16529 16530# How to pass a linker flag through the compiler. 16531wl=$lt_lt_prog_compiler_wl_F77 16532 16533# Object file suffix (normally "o"). 16534objext="$ac_objext" 16535 16536# Old archive suffix (normally "a"). 16537libext="$libext" 16538 16539# Shared library suffix (normally ".so"). 16540shrext_cmds='$shrext_cmds' 16541 16542# Executable file suffix (normally ""). 16543exeext="$exeext" 16544 16545# Additional compiler flags for building library objects. 16546pic_flag=$lt_lt_prog_compiler_pic_F77 16547pic_mode=$pic_mode 16548 16549# What is the maximum length of a command? 16550max_cmd_len=$lt_cv_sys_max_cmd_len 16551 16552# Does compiler simultaneously support -c and -o options? 16553compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16554 16555# Must we lock files when doing compilation? 16556need_locks=$lt_need_locks 16557 16558# Do we need the lib prefix for modules? 16559need_lib_prefix=$need_lib_prefix 16560 16561# Do we need a version for libraries? 16562need_version=$need_version 16563 16564# Whether dlopen is supported. 16565dlopen_support=$enable_dlopen 16566 16567# Whether dlopen of programs is supported. 16568dlopen_self=$enable_dlopen_self 16569 16570# Whether dlopen of statically linked programs is supported. 16571dlopen_self_static=$enable_dlopen_self_static 16572 16573# Compiler flag to prevent dynamic linking. 16574link_static_flag=$lt_lt_prog_compiler_static_F77 16575 16576# Compiler flag to turn off builtin functions. 16577no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16578 16579# Compiler flag to allow reflexive dlopens. 16580export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16581 16582# Compiler flag to generate shared objects directly from archives. 16583whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16584 16585# Compiler flag to generate thread-safe objects. 16586thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16587 16588# Library versioning type. 16589version_type=$version_type 16590 16591# Format of library name prefix. 16592libname_spec=$lt_libname_spec 16593 16594# List of archive names. First name is the real one, the rest are links. 16595# The last name is the one that the linker finds with -lNAME. 16596library_names_spec=$lt_library_names_spec 16597 16598# The coded name of the library, if different from the real name. 16599soname_spec=$lt_soname_spec 16600 16601# Commands used to build and install an old-style archive. 16602RANLIB=$lt_RANLIB 16603old_archive_cmds=$lt_old_archive_cmds_F77 16604old_postinstall_cmds=$lt_old_postinstall_cmds 16605old_postuninstall_cmds=$lt_old_postuninstall_cmds 16606 16607# Create an old-style archive from a shared archive. 16608old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16609 16610# Create a temporary old-style archive to link instead of a shared archive. 16611old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16612 16613# Commands used to build and install a shared archive. 16614archive_cmds=$lt_archive_cmds_F77 16615archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16616postinstall_cmds=$lt_postinstall_cmds 16617postuninstall_cmds=$lt_postuninstall_cmds 16618 16619# Commands used to build a loadable module (assumed same as above if empty) 16620module_cmds=$lt_module_cmds_F77 16621module_expsym_cmds=$lt_module_expsym_cmds_F77 16622 16623# Commands to strip libraries. 16624old_striplib=$lt_old_striplib 16625striplib=$lt_striplib 16626 16627# Dependencies to place before the objects being linked to create a 16628# shared library. 16629predep_objects=$lt_predep_objects_F77 16630 16631# Dependencies to place after the objects being linked to create a 16632# shared library. 16633postdep_objects=$lt_postdep_objects_F77 16634 16635# Dependencies to place before the objects being linked to create a 16636# shared library. 16637predeps=$lt_predeps_F77 16638 16639# Dependencies to place after the objects being linked to create a 16640# shared library. 16641postdeps=$lt_postdeps_F77 16642 16643# The library search path used internally by the compiler when linking 16644# a shared library. 16645compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16646 16647# Method to check whether dependent libraries are shared objects. 16648deplibs_check_method=$lt_deplibs_check_method 16649 16650# Command to use when deplibs_check_method == file_magic. 16651file_magic_cmd=$lt_file_magic_cmd 16652 16653# Flag that allows shared libraries with undefined symbols to be built. 16654allow_undefined_flag=$lt_allow_undefined_flag_F77 16655 16656# Flag that forces no undefined symbols. 16657no_undefined_flag=$lt_no_undefined_flag_F77 16658 16659# Commands used to finish a libtool library installation in a directory. 16660finish_cmds=$lt_finish_cmds 16661 16662# Same as above, but a single script fragment to be evaled but not shown. 16663finish_eval=$lt_finish_eval 16664 16665# Take the output of nm and produce a listing of raw symbols and C names. 16666global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16667 16668# Transform the output of nm in a proper C declaration 16669global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16670 16671# Transform the output of nm in a C name address pair 16672global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16673 16674# This is the shared library runtime path variable. 16675runpath_var=$runpath_var 16676 16677# This is the shared library path variable. 16678shlibpath_var=$shlibpath_var 16679 16680# Is shlibpath searched before the hard-coded library search path? 16681shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16682 16683# How to hardcode a shared library path into an executable. 16684hardcode_action=$hardcode_action_F77 16685 16686# Whether we should hardcode library paths into libraries. 16687hardcode_into_libs=$hardcode_into_libs 16688 16689# Flag to hardcode \$libdir into a binary during linking. 16690# This must work even if \$libdir does not exist. 16691hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16692 16693# If ld is used when linking, flag to hardcode \$libdir into 16694# a binary during linking. This must work even if \$libdir does 16695# not exist. 16696hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16697 16698# Whether we need a single -rpath flag with a separated argument. 16699hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16700 16701# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16702# resulting binary. 16703hardcode_direct=$hardcode_direct_F77 16704 16705# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16706# resulting binary. 16707hardcode_minus_L=$hardcode_minus_L_F77 16708 16709# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16710# the resulting binary. 16711hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16712 16713# Set to yes if building a shared library automatically hardcodes DIR into the library 16714# and all subsequent libraries and executables linked against it. 16715hardcode_automatic=$hardcode_automatic_F77 16716 16717# Variables whose values should be saved in libtool wrapper scripts and 16718# restored at relink time. 16719variables_saved_for_relink="$variables_saved_for_relink" 16720 16721# Whether libtool must link a program against all its dependency libraries. 16722link_all_deplibs=$link_all_deplibs_F77 16723 16724# Compile-time system search path for libraries 16725sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16726 16727# Run-time system search path for libraries 16728sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16729 16730# Fix the shell variable \$srcfile for the compiler. 16731fix_srcfile_path=$lt_fix_srcfile_path 16732 16733# Set to yes if exported symbols are required. 16734always_export_symbols=$always_export_symbols_F77 16735 16736# The commands to list exported symbols. 16737export_symbols_cmds=$lt_export_symbols_cmds_F77 16738 16739# The commands to extract the exported symbol list from a shared archive. 16740extract_expsyms_cmds=$lt_extract_expsyms_cmds 16741 16742# Symbols that should not be listed in the preloaded symbols. 16743exclude_expsyms=$lt_exclude_expsyms_F77 16744 16745# Symbols that must always be exported. 16746include_expsyms=$lt_include_expsyms_F77 16747 16748# ### END LIBTOOL TAG CONFIG: $tagname 16749 16750__EOF__ 16751 16752 16753else 16754 # If there is no Makefile yet, we rely on a make rule to execute 16755 # `config.status --recheck' to rerun these tests and create the 16756 # libtool script then. 16757 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16758 if test -f "$ltmain_in"; then 16759 test -f Makefile && make "$ltmain" 16760 fi 16761fi 16762 16763 16764ac_ext=c 16765ac_cpp='$CPP $CPPFLAGS' 16766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16768ac_compiler_gnu=$ac_cv_c_compiler_gnu 16769 16770CC="$lt_save_CC" 16771 16772 else 16773 tagname="" 16774 fi 16775 ;; 16776 16777 GCJ) 16778 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16779 16780 16781# Source file extension for Java test sources. 16782ac_ext=java 16783 16784# Object file extension for compiled Java test sources. 16785objext=o 16786objext_GCJ=$objext 16787 16788# Code to be used in simple compile tests 16789lt_simple_compile_test_code="class foo {}" 16790 16791# Code to be used in simple link tests 16792lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16793 16794# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16795 16796# If no C compiler was specified, use CC. 16797LTCC=${LTCC-"$CC"} 16798 16799# If no C compiler flags were specified, use CFLAGS. 16800LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16801 16802# Allow CC to be a program name with arguments. 16803compiler=$CC 16804 16805 16806# save warnings/boilerplate of simple test code 16807ac_outfile=conftest.$ac_objext 16808echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16809eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16810_lt_compiler_boilerplate=`cat conftest.err` 16811$rm conftest* 16812 16813ac_outfile=conftest.$ac_objext 16814echo "$lt_simple_link_test_code" >conftest.$ac_ext 16815eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16816_lt_linker_boilerplate=`cat conftest.err` 16817$rm conftest* 16818 16819 16820# Allow CC to be a program name with arguments. 16821lt_save_CC="$CC" 16822CC=${GCJ-"gcj"} 16823compiler=$CC 16824compiler_GCJ=$CC 16825for cc_temp in $compiler""; do 16826 case $cc_temp in 16827 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16828 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16829 \-*) ;; 16830 *) break;; 16831 esac 16832done 16833cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16834 16835 16836# GCJ did not exist at the time GCC didn't implicitly link libc in. 16837archive_cmds_need_lc_GCJ=no 16838 16839old_archive_cmds_GCJ=$old_archive_cmds 16840 16841 16842lt_prog_compiler_no_builtin_flag_GCJ= 16843 16844if test "$GCC" = yes; then 16845 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16846 16847 16848{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16849echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16850if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16851 echo $ECHO_N "(cached) $ECHO_C" >&6 16852else 16853 lt_cv_prog_compiler_rtti_exceptions=no 16854 ac_outfile=conftest.$ac_objext 16855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16856 lt_compiler_flag="-fno-rtti -fno-exceptions" 16857 # Insert the option either (1) after the last *FLAGS variable, or 16858 # (2) before a word containing "conftest.", or (3) at the end. 16859 # Note that $ac_compile itself does not contain backslashes and begins 16860 # with a dollar sign (not a hyphen), so the echo should work correctly. 16861 # The option is referenced via a variable to avoid confusing sed. 16862 lt_compile=`echo "$ac_compile" | $SED \ 16863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16865 -e 's:$: $lt_compiler_flag:'` 16866 (eval echo "\"\$as_me:16866: $lt_compile\"" >&5) 16867 (eval "$lt_compile" 2>conftest.err) 16868 ac_status=$? 16869 cat conftest.err >&5 16870 echo "$as_me:16870: \$? = $ac_status" >&5 16871 if (exit $ac_status) && test -s "$ac_outfile"; then 16872 # The compiler can only warn and ignore the option if not recognized 16873 # So say no if there are warnings other than the usual output. 16874 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16876 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16877 lt_cv_prog_compiler_rtti_exceptions=yes 16878 fi 16879 fi 16880 $rm conftest* 16881 16882fi 16883{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16884echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16885 16886if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16887 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16888else 16889 : 16890fi 16891 16892fi 16893 16894lt_prog_compiler_wl_GCJ= 16895lt_prog_compiler_pic_GCJ= 16896lt_prog_compiler_static_GCJ= 16897 16898{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16899echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16900 16901 if test "$GCC" = yes; then 16902 lt_prog_compiler_wl_GCJ='-Wl,' 16903 lt_prog_compiler_static_GCJ='-static' 16904 16905 case $host_os in 16906 aix*) 16907 # All AIX code is PIC. 16908 if test "$host_cpu" = ia64; then 16909 # AIX 5 now supports IA64 processor 16910 lt_prog_compiler_static_GCJ='-Bstatic' 16911 fi 16912 ;; 16913 16914 amigaos*) 16915 # FIXME: we need at least 68020 code to build shared libraries, but 16916 # adding the `-m68020' flag to GCC prevents building anything better, 16917 # like `-m68040'. 16918 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16919 ;; 16920 16921 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16922 # PIC is the default for these OSes. 16923 ;; 16924 16925 mingw* | cygwin* | pw32* | os2*) 16926 # This hack is so that the source file can tell whether it is being 16927 # built for inclusion in a dll (and should export symbols for example). 16928 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16929 # (--disable-auto-import) libraries 16930 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16931 ;; 16932 16933 darwin* | rhapsody*) 16934 # PIC is the default on this platform 16935 # Common symbols not allowed in MH_DYLIB files 16936 lt_prog_compiler_pic_GCJ='-fno-common' 16937 ;; 16938 16939 interix[3-9]*) 16940 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16941 # Instead, we relocate shared libraries at runtime. 16942 ;; 16943 16944 msdosdjgpp*) 16945 # Just because we use GCC doesn't mean we suddenly get shared libraries 16946 # on systems that don't support them. 16947 lt_prog_compiler_can_build_shared_GCJ=no 16948 enable_shared=no 16949 ;; 16950 16951 sysv4*MP*) 16952 if test -d /usr/nec; then 16953 lt_prog_compiler_pic_GCJ=-Kconform_pic 16954 fi 16955 ;; 16956 16957 hpux*) 16958 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16959 # not for PA HP-UX. 16960 case $host_cpu in 16961 hppa*64*|ia64*) 16962 # +Z the default 16963 ;; 16964 *) 16965 lt_prog_compiler_pic_GCJ='-fPIC' 16966 ;; 16967 esac 16968 ;; 16969 16970 *) 16971 lt_prog_compiler_pic_GCJ='-fPIC' 16972 ;; 16973 esac 16974 else 16975 # PORTME Check for flag to pass linker flags through the system compiler. 16976 case $host_os in 16977 aix*) 16978 lt_prog_compiler_wl_GCJ='-Wl,' 16979 if test "$host_cpu" = ia64; then 16980 # AIX 5 now supports IA64 processor 16981 lt_prog_compiler_static_GCJ='-Bstatic' 16982 else 16983 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16984 fi 16985 ;; 16986 darwin*) 16987 # PIC is the default on this platform 16988 # Common symbols not allowed in MH_DYLIB files 16989 case $cc_basename in 16990 xlc*) 16991 lt_prog_compiler_pic_GCJ='-qnocommon' 16992 lt_prog_compiler_wl_GCJ='-Wl,' 16993 ;; 16994 esac 16995 ;; 16996 16997 mingw* | cygwin* | pw32* | os2*) 16998 # This hack is so that the source file can tell whether it is being 16999 # built for inclusion in a dll (and should export symbols for example). 17000 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17001 ;; 17002 17003 hpux9* | hpux10* | hpux11*) 17004 lt_prog_compiler_wl_GCJ='-Wl,' 17005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17006 # not for PA HP-UX. 17007 case $host_cpu in 17008 hppa*64*|ia64*) 17009 # +Z the default 17010 ;; 17011 *) 17012 lt_prog_compiler_pic_GCJ='+Z' 17013 ;; 17014 esac 17015 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17016 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17017 ;; 17018 17019 irix5* | irix6* | nonstopux*) 17020 lt_prog_compiler_wl_GCJ='-Wl,' 17021 # PIC (with -KPIC) is the default. 17022 lt_prog_compiler_static_GCJ='-non_shared' 17023 ;; 17024 17025 newsos6) 17026 lt_prog_compiler_pic_GCJ='-KPIC' 17027 lt_prog_compiler_static_GCJ='-Bstatic' 17028 ;; 17029 17030 linux* | k*bsd*-gnu) 17031 case $cc_basename in 17032 icc* | ecc*) 17033 lt_prog_compiler_wl_GCJ='-Wl,' 17034 lt_prog_compiler_pic_GCJ='-KPIC' 17035 lt_prog_compiler_static_GCJ='-static' 17036 ;; 17037 pgcc* | pgf77* | pgf90* | pgf95*) 17038 # Portland Group compilers (*not* the Pentium gcc compiler, 17039 # which looks to be a dead project) 17040 lt_prog_compiler_wl_GCJ='-Wl,' 17041 lt_prog_compiler_pic_GCJ='-fpic' 17042 lt_prog_compiler_static_GCJ='-Bstatic' 17043 ;; 17044 ccc*) 17045 lt_prog_compiler_wl_GCJ='-Wl,' 17046 # All Alpha code is PIC. 17047 lt_prog_compiler_static_GCJ='-non_shared' 17048 ;; 17049 *) 17050 case `$CC -V 2>&1 | sed 5q` in 17051 *Sun\ C*) 17052 # Sun C 5.9 17053 lt_prog_compiler_pic_GCJ='-KPIC' 17054 lt_prog_compiler_static_GCJ='-Bstatic' 17055 lt_prog_compiler_wl_GCJ='-Wl,' 17056 ;; 17057 *Sun\ F*) 17058 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17059 lt_prog_compiler_pic_GCJ='-KPIC' 17060 lt_prog_compiler_static_GCJ='-Bstatic' 17061 lt_prog_compiler_wl_GCJ='' 17062 ;; 17063 esac 17064 ;; 17065 esac 17066 ;; 17067 17068 osf3* | osf4* | osf5*) 17069 lt_prog_compiler_wl_GCJ='-Wl,' 17070 # All OSF/1 code is PIC. 17071 lt_prog_compiler_static_GCJ='-non_shared' 17072 ;; 17073 17074 rdos*) 17075 lt_prog_compiler_static_GCJ='-non_shared' 17076 ;; 17077 17078 solaris*) 17079 lt_prog_compiler_pic_GCJ='-KPIC' 17080 lt_prog_compiler_static_GCJ='-Bstatic' 17081 case $cc_basename in 17082 f77* | f90* | f95*) 17083 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17084 *) 17085 lt_prog_compiler_wl_GCJ='-Wl,';; 17086 esac 17087 ;; 17088 17089 sunos4*) 17090 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17091 lt_prog_compiler_pic_GCJ='-PIC' 17092 lt_prog_compiler_static_GCJ='-Bstatic' 17093 ;; 17094 17095 sysv4 | sysv4.2uw2* | sysv4.3*) 17096 lt_prog_compiler_wl_GCJ='-Wl,' 17097 lt_prog_compiler_pic_GCJ='-KPIC' 17098 lt_prog_compiler_static_GCJ='-Bstatic' 17099 ;; 17100 17101 sysv4*MP*) 17102 if test -d /usr/nec ;then 17103 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17104 lt_prog_compiler_static_GCJ='-Bstatic' 17105 fi 17106 ;; 17107 17108 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17109 lt_prog_compiler_wl_GCJ='-Wl,' 17110 lt_prog_compiler_pic_GCJ='-KPIC' 17111 lt_prog_compiler_static_GCJ='-Bstatic' 17112 ;; 17113 17114 unicos*) 17115 lt_prog_compiler_wl_GCJ='-Wl,' 17116 lt_prog_compiler_can_build_shared_GCJ=no 17117 ;; 17118 17119 uts4*) 17120 lt_prog_compiler_pic_GCJ='-pic' 17121 lt_prog_compiler_static_GCJ='-Bstatic' 17122 ;; 17123 17124 *) 17125 lt_prog_compiler_can_build_shared_GCJ=no 17126 ;; 17127 esac 17128 fi 17129 17130{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17131echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 17132 17133# 17134# Check to make sure the PIC flag actually works. 17135# 17136if test -n "$lt_prog_compiler_pic_GCJ"; then 17137 17138{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17139echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 17140if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 17141 echo $ECHO_N "(cached) $ECHO_C" >&6 17142else 17143 lt_prog_compiler_pic_works_GCJ=no 17144 ac_outfile=conftest.$ac_objext 17145 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17146 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17147 # Insert the option either (1) after the last *FLAGS variable, or 17148 # (2) before a word containing "conftest.", or (3) at the end. 17149 # Note that $ac_compile itself does not contain backslashes and begins 17150 # with a dollar sign (not a hyphen), so the echo should work correctly. 17151 # The option is referenced via a variable to avoid confusing sed. 17152 lt_compile=`echo "$ac_compile" | $SED \ 17153 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17155 -e 's:$: $lt_compiler_flag:'` 17156 (eval echo "\"\$as_me:17156: $lt_compile\"" >&5) 17157 (eval "$lt_compile" 2>conftest.err) 17158 ac_status=$? 17159 cat conftest.err >&5 17160 echo "$as_me:17160: \$? = $ac_status" >&5 17161 if (exit $ac_status) && test -s "$ac_outfile"; then 17162 # The compiler can only warn and ignore the option if not recognized 17163 # So say no if there are warnings other than the usual output. 17164 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17165 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17166 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17167 lt_prog_compiler_pic_works_GCJ=yes 17168 fi 17169 fi 17170 $rm conftest* 17171 17172fi 17173{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 17174echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 17175 17176if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 17177 case $lt_prog_compiler_pic_GCJ in 17178 "" | " "*) ;; 17179 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17180 esac 17181else 17182 lt_prog_compiler_pic_GCJ= 17183 lt_prog_compiler_can_build_shared_GCJ=no 17184fi 17185 17186fi 17187case $host_os in 17188 # For platforms which do not support PIC, -DPIC is meaningless: 17189 *djgpp*) 17190 lt_prog_compiler_pic_GCJ= 17191 ;; 17192 *) 17193 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17194 ;; 17195esac 17196 17197# 17198# Check to make sure the static flag actually works. 17199# 17200wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17201{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17202echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17203if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17204 echo $ECHO_N "(cached) $ECHO_C" >&6 17205else 17206 lt_prog_compiler_static_works_GCJ=no 17207 save_LDFLAGS="$LDFLAGS" 17208 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17209 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17210 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17211 # The linker can only warn and ignore the option if not recognized 17212 # So say no if there are warnings 17213 if test -s conftest.err; then 17214 # Append any errors to the config.log. 17215 cat conftest.err 1>&5 17216 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17217 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17218 if diff conftest.exp conftest.er2 >/dev/null; then 17219 lt_prog_compiler_static_works_GCJ=yes 17220 fi 17221 else 17222 lt_prog_compiler_static_works_GCJ=yes 17223 fi 17224 fi 17225 $rm conftest* 17226 LDFLAGS="$save_LDFLAGS" 17227 17228fi 17229{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17230echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17231 17232if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17233 : 17234else 17235 lt_prog_compiler_static_GCJ= 17236fi 17237 17238 17239{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17240echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17241if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17242 echo $ECHO_N "(cached) $ECHO_C" >&6 17243else 17244 lt_cv_prog_compiler_c_o_GCJ=no 17245 $rm -r conftest 2>/dev/null 17246 mkdir conftest 17247 cd conftest 17248 mkdir out 17249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17250 17251 lt_compiler_flag="-o out/conftest2.$ac_objext" 17252 # Insert the option either (1) after the last *FLAGS variable, or 17253 # (2) before a word containing "conftest.", or (3) at the end. 17254 # Note that $ac_compile itself does not contain backslashes and begins 17255 # with a dollar sign (not a hyphen), so the echo should work correctly. 17256 lt_compile=`echo "$ac_compile" | $SED \ 17257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17259 -e 's:$: $lt_compiler_flag:'` 17260 (eval echo "\"\$as_me:17260: $lt_compile\"" >&5) 17261 (eval "$lt_compile" 2>out/conftest.err) 17262 ac_status=$? 17263 cat out/conftest.err >&5 17264 echo "$as_me:17264: \$? = $ac_status" >&5 17265 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17266 then 17267 # The compiler can only warn and ignore the option if not recognized 17268 # So say no if there are warnings 17269 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17270 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17271 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17272 lt_cv_prog_compiler_c_o_GCJ=yes 17273 fi 17274 fi 17275 chmod u+w . 2>&5 17276 $rm conftest* 17277 # SGI C++ compiler will create directory out/ii_files/ for 17278 # template instantiation 17279 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17280 $rm out/* && rmdir out 17281 cd .. 17282 rmdir conftest 17283 $rm conftest* 17284 17285fi 17286{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17287echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17288 17289 17290hard_links="nottested" 17291if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17292 # do not overwrite the value of need_locks provided by the user 17293 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17294echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17295 hard_links=yes 17296 $rm conftest* 17297 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17298 touch conftest.a 17299 ln conftest.a conftest.b 2>&5 || hard_links=no 17300 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17301 { echo "$as_me:$LINENO: result: $hard_links" >&5 17302echo "${ECHO_T}$hard_links" >&6; } 17303 if test "$hard_links" = no; then 17304 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17305echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17306 need_locks=warn 17307 fi 17308else 17309 need_locks=no 17310fi 17311 17312{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17313echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17314 17315 runpath_var= 17316 allow_undefined_flag_GCJ= 17317 enable_shared_with_static_runtimes_GCJ=no 17318 archive_cmds_GCJ= 17319 archive_expsym_cmds_GCJ= 17320 old_archive_From_new_cmds_GCJ= 17321 old_archive_from_expsyms_cmds_GCJ= 17322 export_dynamic_flag_spec_GCJ= 17323 whole_archive_flag_spec_GCJ= 17324 thread_safe_flag_spec_GCJ= 17325 hardcode_libdir_flag_spec_GCJ= 17326 hardcode_libdir_flag_spec_ld_GCJ= 17327 hardcode_libdir_separator_GCJ= 17328 hardcode_direct_GCJ=no 17329 hardcode_minus_L_GCJ=no 17330 hardcode_shlibpath_var_GCJ=unsupported 17331 link_all_deplibs_GCJ=unknown 17332 hardcode_automatic_GCJ=no 17333 module_cmds_GCJ= 17334 module_expsym_cmds_GCJ= 17335 always_export_symbols_GCJ=no 17336 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17337 # include_expsyms should be a list of space-separated symbols to be *always* 17338 # included in the symbol list 17339 include_expsyms_GCJ= 17340 # exclude_expsyms can be an extended regexp of symbols to exclude 17341 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17342 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17343 # as well as any symbol that contains `d'. 17344 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17345 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17346 # platforms (ab)use it in PIC code, but their linkers get confused if 17347 # the symbol is explicitly referenced. Since portable code cannot 17348 # rely on this symbol name, it's probably fine to never include it in 17349 # preloaded symbol tables. 17350 extract_expsyms_cmds= 17351 # Just being paranoid about ensuring that cc_basename is set. 17352 for cc_temp in $compiler""; do 17353 case $cc_temp in 17354 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17355 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17356 \-*) ;; 17357 *) break;; 17358 esac 17359done 17360cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17361 17362 case $host_os in 17363 cygwin* | mingw* | pw32*) 17364 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17365 # When not using gcc, we currently assume that we are using 17366 # Microsoft Visual C++. 17367 if test "$GCC" != yes; then 17368 with_gnu_ld=no 17369 fi 17370 ;; 17371 interix*) 17372 # we just hope/assume this is gcc and not c89 (= MSVC++) 17373 with_gnu_ld=yes 17374 ;; 17375 openbsd*) 17376 with_gnu_ld=no 17377 ;; 17378 esac 17379 17380 ld_shlibs_GCJ=yes 17381 if test "$with_gnu_ld" = yes; then 17382 # If archive_cmds runs LD, not CC, wlarc should be empty 17383 wlarc='${wl}' 17384 17385 # Set some defaults for GNU ld with shared library support. These 17386 # are reset later if shared libraries are not supported. Putting them 17387 # here allows them to be overridden if necessary. 17388 runpath_var=LD_RUN_PATH 17389 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17390 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17391 # ancient GNU ld didn't support --whole-archive et. al. 17392 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17393 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17394 else 17395 whole_archive_flag_spec_GCJ= 17396 fi 17397 supports_anon_versioning=no 17398 case `$LD -v 2>/dev/null` in 17399 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17400 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17401 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17402 *\ 2.11.*) ;; # other 2.11 versions 17403 *) supports_anon_versioning=yes ;; 17404 esac 17405 17406 # See if GNU ld supports shared libraries. 17407 case $host_os in 17408 aix3* | aix4* | aix5*) 17409 # On AIX/PPC, the GNU linker is very broken 17410 if test "$host_cpu" != ia64; then 17411 ld_shlibs_GCJ=no 17412 cat <<EOF 1>&2 17413 17414*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17415*** to be unable to reliably create shared libraries on AIX. 17416*** Therefore, libtool is disabling shared libraries support. If you 17417*** really care for shared libraries, you may want to modify your PATH 17418*** so that a non-GNU linker is found, and then restart. 17419 17420EOF 17421 fi 17422 ;; 17423 17424 amigaos*) 17425 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)' 17426 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17427 hardcode_minus_L_GCJ=yes 17428 17429 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17430 # that the semantics of dynamic libraries on AmigaOS, at least up 17431 # to version 4, is to share data among multiple programs linked 17432 # with the same dynamic library. Since this doesn't match the 17433 # behavior of shared libraries on other platforms, we can't use 17434 # them. 17435 ld_shlibs_GCJ=no 17436 ;; 17437 17438 beos*) 17439 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17440 allow_undefined_flag_GCJ=unsupported 17441 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17442 # support --undefined. This deserves some investigation. FIXME 17443 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17444 else 17445 ld_shlibs_GCJ=no 17446 fi 17447 ;; 17448 17449 cygwin* | mingw* | pw32*) 17450 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17451 # as there is no search path for DLLs. 17452 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17453 allow_undefined_flag_GCJ=unsupported 17454 always_export_symbols_GCJ=no 17455 enable_shared_with_static_runtimes_GCJ=yes 17456 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17457 17458 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17459 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17460 # If the export-symbols file already is a .def file (1st line 17461 # is EXPORTS), use it as is; otherwise, prepend... 17462 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17463 cp $export_symbols $output_objdir/$soname.def; 17464 else 17465 echo EXPORTS > $output_objdir/$soname.def; 17466 cat $export_symbols >> $output_objdir/$soname.def; 17467 fi~ 17468 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17469 else 17470 ld_shlibs_GCJ=no 17471 fi 17472 ;; 17473 17474 interix[3-9]*) 17475 hardcode_direct_GCJ=no 17476 hardcode_shlibpath_var_GCJ=no 17477 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17478 export_dynamic_flag_spec_GCJ='${wl}-E' 17479 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17480 # Instead, shared libraries are loaded at an image base (0x10000000 by 17481 # default) and relocated if they conflict, which is a slow very memory 17482 # consuming and fragmenting process. To avoid this, we pick a random, 17483 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17484 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17485 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' 17486 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' 17487 ;; 17488 17489 gnu* | linux* | k*bsd*-gnu) 17490 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17491 tmp_addflag= 17492 case $cc_basename,$host_cpu in 17493 pgcc*) # Portland Group C compiler 17494 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' 17495 tmp_addflag=' $pic_flag' 17496 ;; 17497 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17498 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' 17499 tmp_addflag=' $pic_flag -Mnomain' ;; 17500 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17501 tmp_addflag=' -i_dynamic' ;; 17502 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17503 tmp_addflag=' -i_dynamic -nofor_main' ;; 17504 ifc* | ifort*) # Intel Fortran compiler 17505 tmp_addflag=' -nofor_main' ;; 17506 esac 17507 case `$CC -V 2>&1 | sed 5q` in 17508 *Sun\ C*) # Sun C 5.9 17509 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' 17510 tmp_sharedflag='-G' ;; 17511 *Sun\ F*) # Sun Fortran 8.3 17512 tmp_sharedflag='-G' ;; 17513 *) 17514 tmp_sharedflag='-shared' ;; 17515 esac 17516 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17517 17518 if test $supports_anon_versioning = yes; then 17519 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17520 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17521 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17522 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17523 fi 17524 else 17525 ld_shlibs_GCJ=no 17526 fi 17527 ;; 17528 17529 netbsd*) 17530 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17531 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17532 wlarc= 17533 else 17534 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17535 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17536 fi 17537 ;; 17538 17539 solaris*) 17540 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17541 ld_shlibs_GCJ=no 17542 cat <<EOF 1>&2 17543 17544*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17545*** create shared libraries on Solaris systems. Therefore, libtool 17546*** is disabling shared libraries support. We urge you to upgrade GNU 17547*** binutils to release 2.9.1 or newer. Another option is to modify 17548*** your PATH or compiler configuration so that the native linker is 17549*** used, and then restart. 17550 17551EOF 17552 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17553 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17554 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17555 else 17556 ld_shlibs_GCJ=no 17557 fi 17558 ;; 17559 17560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17561 case `$LD -v 2>&1` in 17562 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17563 ld_shlibs_GCJ=no 17564 cat <<_LT_EOF 1>&2 17565 17566*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17567*** reliably create shared libraries on SCO systems. Therefore, libtool 17568*** is disabling shared libraries support. We urge you to upgrade GNU 17569*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17570*** your PATH or compiler configuration so that the native linker is 17571*** used, and then restart. 17572 17573_LT_EOF 17574 ;; 17575 *) 17576 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17577 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17578 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17579 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17580 else 17581 ld_shlibs_GCJ=no 17582 fi 17583 ;; 17584 esac 17585 ;; 17586 17587 sunos4*) 17588 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17589 wlarc= 17590 hardcode_direct_GCJ=yes 17591 hardcode_shlibpath_var_GCJ=no 17592 ;; 17593 17594 *) 17595 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17596 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17597 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17598 else 17599 ld_shlibs_GCJ=no 17600 fi 17601 ;; 17602 esac 17603 17604 if test "$ld_shlibs_GCJ" = no; then 17605 runpath_var= 17606 hardcode_libdir_flag_spec_GCJ= 17607 export_dynamic_flag_spec_GCJ= 17608 whole_archive_flag_spec_GCJ= 17609 fi 17610 else 17611 # PORTME fill in a description of your system's linker (not GNU ld) 17612 case $host_os in 17613 aix3*) 17614 allow_undefined_flag_GCJ=unsupported 17615 always_export_symbols_GCJ=yes 17616 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' 17617 # Note: this linker hardcodes the directories in LIBPATH if there 17618 # are no directories specified by -L. 17619 hardcode_minus_L_GCJ=yes 17620 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17621 # Neither direct hardcoding nor static linking is supported with a 17622 # broken collect2. 17623 hardcode_direct_GCJ=unsupported 17624 fi 17625 ;; 17626 17627 aix4* | aix5*) 17628 if test "$host_cpu" = ia64; then 17629 # On IA64, the linker does run time linking by default, so we don't 17630 # have to do anything special. 17631 aix_use_runtimelinking=no 17632 exp_sym_flag='-Bexport' 17633 no_entry_flag="" 17634 else 17635 # If we're using GNU nm, then we don't want the "-C" option. 17636 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17637 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17638 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' 17639 else 17640 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' 17641 fi 17642 aix_use_runtimelinking=no 17643 17644 # Test if we are trying to use run time linking or normal 17645 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17646 # need to do runtime linking. 17647 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17648 for ld_flag in $LDFLAGS; do 17649 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17650 aix_use_runtimelinking=yes 17651 break 17652 fi 17653 done 17654 ;; 17655 esac 17656 17657 exp_sym_flag='-bexport' 17658 no_entry_flag='-bnoentry' 17659 fi 17660 17661 # When large executables or shared objects are built, AIX ld can 17662 # have problems creating the table of contents. If linking a library 17663 # or program results in "error TOC overflow" add -mminimal-toc to 17664 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17665 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17666 17667 archive_cmds_GCJ='' 17668 hardcode_direct_GCJ=yes 17669 hardcode_libdir_separator_GCJ=':' 17670 link_all_deplibs_GCJ=yes 17671 17672 if test "$GCC" = yes; then 17673 case $host_os in aix4.[012]|aix4.[012].*) 17674 # We only want to do this on AIX 4.2 and lower, the check 17675 # below for broken collect2 doesn't work under 4.3+ 17676 collect2name=`${CC} -print-prog-name=collect2` 17677 if test -f "$collect2name" && \ 17678 strings "$collect2name" | grep resolve_lib_name >/dev/null 17679 then 17680 # We have reworked collect2 17681 : 17682 else 17683 # We have old collect2 17684 hardcode_direct_GCJ=unsupported 17685 # It fails to find uninstalled libraries when the uninstalled 17686 # path is not listed in the libpath. Setting hardcode_minus_L 17687 # to unsupported forces relinking 17688 hardcode_minus_L_GCJ=yes 17689 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17690 hardcode_libdir_separator_GCJ= 17691 fi 17692 ;; 17693 esac 17694 shared_flag='-shared' 17695 if test "$aix_use_runtimelinking" = yes; then 17696 shared_flag="$shared_flag "'${wl}-G' 17697 fi 17698 else 17699 # not using gcc 17700 if test "$host_cpu" = ia64; then 17701 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17702 # chokes on -Wl,-G. The following line is correct: 17703 shared_flag='-G' 17704 else 17705 if test "$aix_use_runtimelinking" = yes; then 17706 shared_flag='${wl}-G' 17707 else 17708 shared_flag='${wl}-bM:SRE' 17709 fi 17710 fi 17711 fi 17712 17713 # It seems that -bexpall does not export symbols beginning with 17714 # underscore (_), so it is better to generate a list of symbols to export. 17715 always_export_symbols_GCJ=yes 17716 if test "$aix_use_runtimelinking" = yes; then 17717 # Warning - without using the other runtime loading flags (-brtl), 17718 # -berok will link without error, but may produce a broken library. 17719 allow_undefined_flag_GCJ='-berok' 17720 # Determine the default libpath from the value encoded in an empty executable. 17721 cat >conftest.$ac_ext <<_ACEOF 17722/* confdefs.h. */ 17723_ACEOF 17724cat confdefs.h >>conftest.$ac_ext 17725cat >>conftest.$ac_ext <<_ACEOF 17726/* end confdefs.h. */ 17727 17728int 17729main () 17730{ 17731 17732 ; 17733 return 0; 17734} 17735_ACEOF 17736rm -f conftest.$ac_objext conftest$ac_exeext 17737if { (ac_try="$ac_link" 17738case "(($ac_try" in 17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17740 *) ac_try_echo=$ac_try;; 17741esac 17742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17743 (eval "$ac_link") 2>conftest.er1 17744 ac_status=$? 17745 grep -v '^ *+' conftest.er1 >conftest.err 17746 rm -f conftest.er1 17747 cat conftest.err >&5 17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17749 (exit $ac_status); } && { 17750 test -z "$ac_c_werror_flag" || 17751 test ! -s conftest.err 17752 } && test -s conftest$ac_exeext && 17753 $as_test_x conftest$ac_exeext; then 17754 17755lt_aix_libpath_sed=' 17756 /Import File Strings/,/^$/ { 17757 /^0/ { 17758 s/^0 *\(.*\)$/\1/ 17759 p 17760 } 17761 }' 17762aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17763# Check for a 64-bit object if we didn't find anything. 17764if test -z "$aix_libpath"; then 17765 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17766fi 17767else 17768 echo "$as_me: failed program was:" >&5 17769sed 's/^/| /' conftest.$ac_ext >&5 17770 17771 17772fi 17773 17774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17775 conftest$ac_exeext conftest.$ac_ext 17776if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17777 17778 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17779 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" 17780 else 17781 if test "$host_cpu" = ia64; then 17782 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17783 allow_undefined_flag_GCJ="-z nodefs" 17784 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" 17785 else 17786 # Determine the default libpath from the value encoded in an empty executable. 17787 cat >conftest.$ac_ext <<_ACEOF 17788/* confdefs.h. */ 17789_ACEOF 17790cat confdefs.h >>conftest.$ac_ext 17791cat >>conftest.$ac_ext <<_ACEOF 17792/* end confdefs.h. */ 17793 17794int 17795main () 17796{ 17797 17798 ; 17799 return 0; 17800} 17801_ACEOF 17802rm -f conftest.$ac_objext conftest$ac_exeext 17803if { (ac_try="$ac_link" 17804case "(($ac_try" in 17805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17806 *) ac_try_echo=$ac_try;; 17807esac 17808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17809 (eval "$ac_link") 2>conftest.er1 17810 ac_status=$? 17811 grep -v '^ *+' conftest.er1 >conftest.err 17812 rm -f conftest.er1 17813 cat conftest.err >&5 17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17815 (exit $ac_status); } && { 17816 test -z "$ac_c_werror_flag" || 17817 test ! -s conftest.err 17818 } && test -s conftest$ac_exeext && 17819 $as_test_x conftest$ac_exeext; then 17820 17821lt_aix_libpath_sed=' 17822 /Import File Strings/,/^$/ { 17823 /^0/ { 17824 s/^0 *\(.*\)$/\1/ 17825 p 17826 } 17827 }' 17828aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17829# Check for a 64-bit object if we didn't find anything. 17830if test -z "$aix_libpath"; then 17831 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17832fi 17833else 17834 echo "$as_me: failed program was:" >&5 17835sed 's/^/| /' conftest.$ac_ext >&5 17836 17837 17838fi 17839 17840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17841 conftest$ac_exeext conftest.$ac_ext 17842if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17843 17844 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17845 # Warning - without using the other run time loading flags, 17846 # -berok will link without error, but may produce a broken library. 17847 no_undefined_flag_GCJ=' ${wl}-bernotok' 17848 allow_undefined_flag_GCJ=' ${wl}-berok' 17849 # Exported symbols can be pulled into shared objects from archives 17850 whole_archive_flag_spec_GCJ='$convenience' 17851 archive_cmds_need_lc_GCJ=yes 17852 # This is similar to how AIX traditionally builds its shared libraries. 17853 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' 17854 fi 17855 fi 17856 ;; 17857 17858 amigaos*) 17859 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)' 17860 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17861 hardcode_minus_L_GCJ=yes 17862 # see comment about different semantics on the GNU ld section 17863 ld_shlibs_GCJ=no 17864 ;; 17865 17866 bsdi[45]*) 17867 export_dynamic_flag_spec_GCJ=-rdynamic 17868 ;; 17869 17870 cygwin* | mingw* | pw32*) 17871 # When not using gcc, we currently assume that we are using 17872 # Microsoft Visual C++. 17873 # hardcode_libdir_flag_spec is actually meaningless, as there is 17874 # no search path for DLLs. 17875 hardcode_libdir_flag_spec_GCJ=' ' 17876 allow_undefined_flag_GCJ=unsupported 17877 # Tell ltmain to make .lib files, not .a files. 17878 libext=lib 17879 # Tell ltmain to make .dll files, not .so files. 17880 shrext_cmds=".dll" 17881 # FIXME: Setting linknames here is a bad hack. 17882 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17883 # The linker will automatically build a .lib file if we build a DLL. 17884 old_archive_From_new_cmds_GCJ='true' 17885 # FIXME: Should let the user specify the lib program. 17886 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17887 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17888 enable_shared_with_static_runtimes_GCJ=yes 17889 ;; 17890 17891 darwin* | rhapsody*) 17892 case $host_os in 17893 rhapsody* | darwin1.[012]) 17894 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17895 ;; 17896 *) # Darwin 1.3 on 17897 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17898 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17899 else 17900 case ${MACOSX_DEPLOYMENT_TARGET} in 17901 10.[012]) 17902 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17903 ;; 17904 10.*) 17905 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17906 ;; 17907 esac 17908 fi 17909 ;; 17910 esac 17911 archive_cmds_need_lc_GCJ=no 17912 hardcode_direct_GCJ=no 17913 hardcode_automatic_GCJ=yes 17914 hardcode_shlibpath_var_GCJ=unsupported 17915 whole_archive_flag_spec_GCJ='' 17916 link_all_deplibs_GCJ=yes 17917 if test "$GCC" = yes ; then 17918 output_verbose_link_cmd='echo' 17919 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17920 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17921 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17922 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17923 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}' 17924 else 17925 case $cc_basename in 17926 xlc*) 17927 output_verbose_link_cmd='echo' 17928 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17929 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17930 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17931 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}' 17932 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}' 17933 ;; 17934 *) 17935 ld_shlibs_GCJ=no 17936 ;; 17937 esac 17938 fi 17939 ;; 17940 17941 dgux*) 17942 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17943 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17944 hardcode_shlibpath_var_GCJ=no 17945 ;; 17946 17947 freebsd1*) 17948 ld_shlibs_GCJ=no 17949 ;; 17950 17951 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17952 # support. Future versions do this automatically, but an explicit c++rt0.o 17953 # does not break anything, and helps significantly (at the cost of a little 17954 # extra space). 17955 freebsd2.2*) 17956 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17957 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17958 hardcode_direct_GCJ=yes 17959 hardcode_shlibpath_var_GCJ=no 17960 ;; 17961 17962 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17963 freebsd2*) 17964 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17965 hardcode_direct_GCJ=yes 17966 hardcode_minus_L_GCJ=yes 17967 hardcode_shlibpath_var_GCJ=no 17968 ;; 17969 17970 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17971 freebsd* | dragonfly*) 17972 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17973 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17974 hardcode_direct_GCJ=yes 17975 hardcode_shlibpath_var_GCJ=no 17976 ;; 17977 17978 hpux9*) 17979 if test "$GCC" = yes; then 17980 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' 17981 else 17982 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' 17983 fi 17984 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17985 hardcode_libdir_separator_GCJ=: 17986 hardcode_direct_GCJ=yes 17987 17988 # hardcode_minus_L: Not really in the search PATH, 17989 # but as the default location of the library. 17990 hardcode_minus_L_GCJ=yes 17991 export_dynamic_flag_spec_GCJ='${wl}-E' 17992 ;; 17993 17994 hpux10*) 17995 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17996 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17997 else 17998 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17999 fi 18000 if test "$with_gnu_ld" = no; then 18001 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18002 hardcode_libdir_separator_GCJ=: 18003 18004 hardcode_direct_GCJ=yes 18005 export_dynamic_flag_spec_GCJ='${wl}-E' 18006 18007 # hardcode_minus_L: Not really in the search PATH, 18008 # but as the default location of the library. 18009 hardcode_minus_L_GCJ=yes 18010 fi 18011 ;; 18012 18013 hpux11*) 18014 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18015 case $host_cpu in 18016 hppa*64*) 18017 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18018 ;; 18019 ia64*) 18020 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18021 ;; 18022 *) 18023 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18024 ;; 18025 esac 18026 else 18027 case $host_cpu in 18028 hppa*64*) 18029 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18030 ;; 18031 ia64*) 18032 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18033 ;; 18034 *) 18035 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18036 ;; 18037 esac 18038 fi 18039 if test "$with_gnu_ld" = no; then 18040 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18041 hardcode_libdir_separator_GCJ=: 18042 18043 case $host_cpu in 18044 hppa*64*|ia64*) 18045 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18046 hardcode_direct_GCJ=no 18047 hardcode_shlibpath_var_GCJ=no 18048 ;; 18049 *) 18050 hardcode_direct_GCJ=yes 18051 export_dynamic_flag_spec_GCJ='${wl}-E' 18052 18053 # hardcode_minus_L: Not really in the search PATH, 18054 # but as the default location of the library. 18055 hardcode_minus_L_GCJ=yes 18056 ;; 18057 esac 18058 fi 18059 ;; 18060 18061 irix5* | irix6* | nonstopux*) 18062 if test "$GCC" = yes; then 18063 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' 18064 else 18065 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' 18066 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18067 fi 18068 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18069 hardcode_libdir_separator_GCJ=: 18070 link_all_deplibs_GCJ=yes 18071 ;; 18072 18073 netbsd*) 18074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18075 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18076 else 18077 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18078 fi 18079 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18080 hardcode_direct_GCJ=yes 18081 hardcode_shlibpath_var_GCJ=no 18082 ;; 18083 18084 newsos6) 18085 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18086 hardcode_direct_GCJ=yes 18087 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18088 hardcode_libdir_separator_GCJ=: 18089 hardcode_shlibpath_var_GCJ=no 18090 ;; 18091 18092 openbsd*) 18093 if test -f /usr/libexec/ld.so; then 18094 hardcode_direct_GCJ=yes 18095 hardcode_shlibpath_var_GCJ=no 18096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18097 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18098 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18099 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18100 export_dynamic_flag_spec_GCJ='${wl}-E' 18101 else 18102 case $host_os in 18103 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18104 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18105 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18106 ;; 18107 *) 18108 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18109 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18110 ;; 18111 esac 18112 fi 18113 else 18114 ld_shlibs_GCJ=no 18115 fi 18116 ;; 18117 18118 os2*) 18119 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18120 hardcode_minus_L_GCJ=yes 18121 allow_undefined_flag_GCJ=unsupported 18122 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' 18123 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18124 ;; 18125 18126 osf3*) 18127 if test "$GCC" = yes; then 18128 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18129 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' 18130 else 18131 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18132 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' 18133 fi 18134 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18135 hardcode_libdir_separator_GCJ=: 18136 ;; 18137 18138 osf4* | osf5*) # as osf3* with the addition of -msym flag 18139 if test "$GCC" = yes; then 18140 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18141 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' 18142 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18143 else 18144 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18145 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' 18146 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~ 18147 $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' 18148 18149 # Both c and cxx compiler support -rpath directly 18150 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18151 fi 18152 hardcode_libdir_separator_GCJ=: 18153 ;; 18154 18155 solaris*) 18156 no_undefined_flag_GCJ=' -z text' 18157 if test "$GCC" = yes; then 18158 wlarc='${wl}' 18159 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18160 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18161 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18162 else 18163 wlarc='' 18164 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18165 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18166 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18167 fi 18168 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18169 hardcode_shlibpath_var_GCJ=no 18170 case $host_os in 18171 solaris2.[0-5] | solaris2.[0-5].*) ;; 18172 *) 18173 # The compiler driver will combine and reorder linker options, 18174 # but understands `-z linker_flag'. GCC discards it without `$wl', 18175 # but is careful enough not to reorder. 18176 # Supported since Solaris 2.6 (maybe 2.5.1?) 18177 if test "$GCC" = yes; then 18178 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18179 else 18180 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18181 fi 18182 ;; 18183 esac 18184 link_all_deplibs_GCJ=yes 18185 ;; 18186 18187 sunos4*) 18188 if test "x$host_vendor" = xsequent; then 18189 # Use $CC to link under sequent, because it throws in some extra .o 18190 # files that make .init and .fini sections work. 18191 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18192 else 18193 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18194 fi 18195 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18196 hardcode_direct_GCJ=yes 18197 hardcode_minus_L_GCJ=yes 18198 hardcode_shlibpath_var_GCJ=no 18199 ;; 18200 18201 sysv4) 18202 case $host_vendor in 18203 sni) 18204 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18205 hardcode_direct_GCJ=yes # is this really true??? 18206 ;; 18207 siemens) 18208 ## LD is ld it makes a PLAMLIB 18209 ## CC just makes a GrossModule. 18210 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18211 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18212 hardcode_direct_GCJ=no 18213 ;; 18214 motorola) 18215 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18216 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18217 ;; 18218 esac 18219 runpath_var='LD_RUN_PATH' 18220 hardcode_shlibpath_var_GCJ=no 18221 ;; 18222 18223 sysv4.3*) 18224 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18225 hardcode_shlibpath_var_GCJ=no 18226 export_dynamic_flag_spec_GCJ='-Bexport' 18227 ;; 18228 18229 sysv4*MP*) 18230 if test -d /usr/nec; then 18231 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18232 hardcode_shlibpath_var_GCJ=no 18233 runpath_var=LD_RUN_PATH 18234 hardcode_runpath_var=yes 18235 ld_shlibs_GCJ=yes 18236 fi 18237 ;; 18238 18239 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18240 no_undefined_flag_GCJ='${wl}-z,text' 18241 archive_cmds_need_lc_GCJ=no 18242 hardcode_shlibpath_var_GCJ=no 18243 runpath_var='LD_RUN_PATH' 18244 18245 if test "$GCC" = yes; then 18246 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18247 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18248 else 18249 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18250 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18251 fi 18252 ;; 18253 18254 sysv5* | sco3.2v5* | sco5v6*) 18255 # Note: We can NOT use -z defs as we might desire, because we do not 18256 # link with -lc, and that would cause any symbols used from libc to 18257 # always be unresolved, which means just about no library would 18258 # ever link correctly. If we're not using GNU ld we use -z text 18259 # though, which does catch some bad symbols but isn't as heavy-handed 18260 # as -z defs. 18261 no_undefined_flag_GCJ='${wl}-z,text' 18262 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18263 archive_cmds_need_lc_GCJ=no 18264 hardcode_shlibpath_var_GCJ=no 18265 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18266 hardcode_libdir_separator_GCJ=':' 18267 link_all_deplibs_GCJ=yes 18268 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18269 runpath_var='LD_RUN_PATH' 18270 18271 if test "$GCC" = yes; then 18272 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18273 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18274 else 18275 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18276 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18277 fi 18278 ;; 18279 18280 uts4*) 18281 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18282 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18283 hardcode_shlibpath_var_GCJ=no 18284 ;; 18285 18286 *) 18287 ld_shlibs_GCJ=no 18288 ;; 18289 esac 18290 fi 18291 18292{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18293echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18294test "$ld_shlibs_GCJ" = no && can_build_shared=no 18295 18296# 18297# Do we need to explicitly link libc? 18298# 18299case "x$archive_cmds_need_lc_GCJ" in 18300x|xyes) 18301 # Assume -lc should be added 18302 archive_cmds_need_lc_GCJ=yes 18303 18304 if test "$enable_shared" = yes && test "$GCC" = yes; then 18305 case $archive_cmds_GCJ in 18306 *'~'*) 18307 # FIXME: we may have to deal with multi-command sequences. 18308 ;; 18309 '$CC '*) 18310 # Test whether the compiler implicitly links with -lc since on some 18311 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18312 # to ld, don't add -lc before -lgcc. 18313 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18314echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18315 $rm conftest* 18316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18317 18318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18319 (eval $ac_compile) 2>&5 18320 ac_status=$? 18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18322 (exit $ac_status); } 2>conftest.err; then 18323 soname=conftest 18324 lib=conftest 18325 libobjs=conftest.$ac_objext 18326 deplibs= 18327 wl=$lt_prog_compiler_wl_GCJ 18328 pic_flag=$lt_prog_compiler_pic_GCJ 18329 compiler_flags=-v 18330 linker_flags=-v 18331 verstring= 18332 output_objdir=. 18333 libname=conftest 18334 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18335 allow_undefined_flag_GCJ= 18336 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18337 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18338 ac_status=$? 18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18340 (exit $ac_status); } 18341 then 18342 archive_cmds_need_lc_GCJ=no 18343 else 18344 archive_cmds_need_lc_GCJ=yes 18345 fi 18346 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18347 else 18348 cat conftest.err 1>&5 18349 fi 18350 $rm conftest* 18351 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18352echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18353 ;; 18354 esac 18355 fi 18356 ;; 18357esac 18358 18359{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18360echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18361library_names_spec= 18362libname_spec='lib$name' 18363soname_spec= 18364shrext_cmds=".so" 18365postinstall_cmds= 18366postuninstall_cmds= 18367finish_cmds= 18368finish_eval= 18369shlibpath_var= 18370shlibpath_overrides_runpath=unknown 18371version_type=none 18372dynamic_linker="$host_os ld.so" 18373sys_lib_dlsearch_path_spec="/lib /usr/lib" 18374 18375need_lib_prefix=unknown 18376hardcode_into_libs=no 18377 18378# when you set need_version to no, make sure it does not cause -set_version 18379# flags to be left without arguments 18380need_version=unknown 18381 18382case $host_os in 18383aix3*) 18384 version_type=linux 18385 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18386 shlibpath_var=LIBPATH 18387 18388 # AIX 3 has no versioning support, so we append a major version to the name. 18389 soname_spec='${libname}${release}${shared_ext}$major' 18390 ;; 18391 18392aix4* | aix5*) 18393 version_type=linux 18394 need_lib_prefix=no 18395 need_version=no 18396 hardcode_into_libs=yes 18397 if test "$host_cpu" = ia64; then 18398 # AIX 5 supports IA64 18399 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18400 shlibpath_var=LD_LIBRARY_PATH 18401 else 18402 # With GCC up to 2.95.x, collect2 would create an import file 18403 # for dependence libraries. The import file would start with 18404 # the line `#! .'. This would cause the generated library to 18405 # depend on `.', always an invalid library. This was fixed in 18406 # development snapshots of GCC prior to 3.0. 18407 case $host_os in 18408 aix4 | aix4.[01] | aix4.[01].*) 18409 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18410 echo ' yes ' 18411 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18412 : 18413 else 18414 can_build_shared=no 18415 fi 18416 ;; 18417 esac 18418 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18419 # soname into executable. Probably we can add versioning support to 18420 # collect2, so additional links can be useful in future. 18421 if test "$aix_use_runtimelinking" = yes; then 18422 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18423 # instead of lib<name>.a to let people know that these are not 18424 # typical AIX shared libraries. 18425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18426 else 18427 # We preserve .a as extension for shared libraries through AIX4.2 18428 # and later when we are not doing run time linking. 18429 library_names_spec='${libname}${release}.a $libname.a' 18430 soname_spec='${libname}${release}${shared_ext}$major' 18431 fi 18432 shlibpath_var=LIBPATH 18433 fi 18434 ;; 18435 18436amigaos*) 18437 library_names_spec='$libname.ixlibrary $libname.a' 18438 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18439 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' 18440 ;; 18441 18442beos*) 18443 library_names_spec='${libname}${shared_ext}' 18444 dynamic_linker="$host_os ld.so" 18445 shlibpath_var=LIBRARY_PATH 18446 ;; 18447 18448bsdi[45]*) 18449 version_type=linux 18450 need_version=no 18451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18452 soname_spec='${libname}${release}${shared_ext}$major' 18453 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18454 shlibpath_var=LD_LIBRARY_PATH 18455 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18456 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18457 # the default ld.so.conf also contains /usr/contrib/lib and 18458 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18459 # libtool to hard-code these into programs 18460 ;; 18461 18462cygwin* | mingw* | pw32*) 18463 version_type=windows 18464 shrext_cmds=".dll" 18465 need_version=no 18466 need_lib_prefix=no 18467 18468 case $GCC,$host_os in 18469 yes,cygwin* | yes,mingw* | yes,pw32*) 18470 library_names_spec='$libname.dll.a' 18471 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18472 postinstall_cmds='base_file=`basename \${file}`~ 18473 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18474 dldir=$destdir/`dirname \$dlpath`~ 18475 test -d \$dldir || mkdir -p \$dldir~ 18476 $install_prog $dir/$dlname \$dldir/$dlname~ 18477 chmod a+x \$dldir/$dlname' 18478 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18479 dlpath=$dir/\$dldll~ 18480 $rm \$dlpath' 18481 shlibpath_overrides_runpath=yes 18482 18483 case $host_os in 18484 cygwin*) 18485 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18486 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18487 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18488 ;; 18489 mingw*) 18490 # MinGW DLLs use traditional 'lib' prefix 18491 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18492 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18493 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18494 # It is most probably a Windows format PATH printed by 18495 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18496 # path with ; separators, and with drive letters. We can handle the 18497 # drive letters (cygwin fileutils understands them), so leave them, 18498 # especially as we might pass files found there to a mingw objdump, 18499 # which wouldn't understand a cygwinified path. Ahh. 18500 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18501 else 18502 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18503 fi 18504 ;; 18505 pw32*) 18506 # pw32 DLLs use 'pw' prefix rather than 'lib' 18507 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18508 ;; 18509 esac 18510 ;; 18511 18512 *) 18513 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18514 ;; 18515 esac 18516 dynamic_linker='Win32 ld.exe' 18517 # FIXME: first we should search . and the directory the executable is in 18518 shlibpath_var=PATH 18519 ;; 18520 18521darwin* | rhapsody*) 18522 dynamic_linker="$host_os dyld" 18523 version_type=darwin 18524 need_lib_prefix=no 18525 need_version=no 18526 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18527 soname_spec='${libname}${release}${major}$shared_ext' 18528 shlibpath_overrides_runpath=yes 18529 shlibpath_var=DYLD_LIBRARY_PATH 18530 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18531 18532 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18533 ;; 18534 18535dgux*) 18536 version_type=linux 18537 need_lib_prefix=no 18538 need_version=no 18539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18540 soname_spec='${libname}${release}${shared_ext}$major' 18541 shlibpath_var=LD_LIBRARY_PATH 18542 ;; 18543 18544freebsd1*) 18545 dynamic_linker=no 18546 ;; 18547 18548freebsd* | dragonfly*) 18549 # DragonFly does not have aout. When/if they implement a new 18550 # versioning mechanism, adjust this. 18551 if test -x /usr/bin/objformat; then 18552 objformat=`/usr/bin/objformat` 18553 else 18554 case $host_os in 18555 freebsd[123]*) objformat=aout ;; 18556 *) objformat=elf ;; 18557 esac 18558 fi 18559 version_type=freebsd-$objformat 18560 case $version_type in 18561 freebsd-elf*) 18562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18563 need_version=no 18564 need_lib_prefix=no 18565 ;; 18566 freebsd-*) 18567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18568 need_version=yes 18569 ;; 18570 esac 18571 shlibpath_var=LD_LIBRARY_PATH 18572 case $host_os in 18573 freebsd2*) 18574 shlibpath_overrides_runpath=yes 18575 ;; 18576 freebsd3.[01]* | freebsdelf3.[01]*) 18577 shlibpath_overrides_runpath=yes 18578 hardcode_into_libs=yes 18579 ;; 18580 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18581 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18582 shlibpath_overrides_runpath=no 18583 hardcode_into_libs=yes 18584 ;; 18585 *) # from 4.6 on, and DragonFly 18586 shlibpath_overrides_runpath=yes 18587 hardcode_into_libs=yes 18588 ;; 18589 esac 18590 ;; 18591 18592gnu*) 18593 version_type=linux 18594 need_lib_prefix=no 18595 need_version=no 18596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18597 soname_spec='${libname}${release}${shared_ext}$major' 18598 shlibpath_var=LD_LIBRARY_PATH 18599 hardcode_into_libs=yes 18600 ;; 18601 18602hpux9* | hpux10* | hpux11*) 18603 # Give a soname corresponding to the major version so that dld.sl refuses to 18604 # link against other versions. 18605 version_type=sunos 18606 need_lib_prefix=no 18607 need_version=no 18608 case $host_cpu in 18609 ia64*) 18610 shrext_cmds='.so' 18611 hardcode_into_libs=yes 18612 dynamic_linker="$host_os dld.so" 18613 shlibpath_var=LD_LIBRARY_PATH 18614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18616 soname_spec='${libname}${release}${shared_ext}$major' 18617 if test "X$HPUX_IA64_MODE" = X32; then 18618 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18619 else 18620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18621 fi 18622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18623 ;; 18624 hppa*64*) 18625 shrext_cmds='.sl' 18626 hardcode_into_libs=yes 18627 dynamic_linker="$host_os dld.sl" 18628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18631 soname_spec='${libname}${release}${shared_ext}$major' 18632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18634 ;; 18635 *) 18636 shrext_cmds='.sl' 18637 dynamic_linker="$host_os dld.sl" 18638 shlibpath_var=SHLIB_PATH 18639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18641 soname_spec='${libname}${release}${shared_ext}$major' 18642 ;; 18643 esac 18644 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18645 postinstall_cmds='chmod 555 $lib' 18646 ;; 18647 18648interix[3-9]*) 18649 version_type=linux 18650 need_lib_prefix=no 18651 need_version=no 18652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18653 soname_spec='${libname}${release}${shared_ext}$major' 18654 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18655 shlibpath_var=LD_LIBRARY_PATH 18656 shlibpath_overrides_runpath=no 18657 hardcode_into_libs=yes 18658 ;; 18659 18660irix5* | irix6* | nonstopux*) 18661 case $host_os in 18662 nonstopux*) version_type=nonstopux ;; 18663 *) 18664 if test "$lt_cv_prog_gnu_ld" = yes; then 18665 version_type=linux 18666 else 18667 version_type=irix 18668 fi ;; 18669 esac 18670 need_lib_prefix=no 18671 need_version=no 18672 soname_spec='${libname}${release}${shared_ext}$major' 18673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18674 case $host_os in 18675 irix5* | nonstopux*) 18676 libsuff= shlibsuff= 18677 ;; 18678 *) 18679 case $LD in # libtool.m4 will add one of these switches to LD 18680 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18681 libsuff= shlibsuff= libmagic=32-bit;; 18682 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18683 libsuff=32 shlibsuff=N32 libmagic=N32;; 18684 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18685 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18686 *) libsuff= shlibsuff= libmagic=never-match;; 18687 esac 18688 ;; 18689 esac 18690 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18691 shlibpath_overrides_runpath=no 18692 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18693 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18694 hardcode_into_libs=yes 18695 ;; 18696 18697# No shared lib support for Linux oldld, aout, or coff. 18698linux*oldld* | linux*aout* | linux*coff*) 18699 dynamic_linker=no 18700 ;; 18701 18702# This must be Linux ELF. 18703linux* | k*bsd*-gnu) 18704 version_type=linux 18705 need_lib_prefix=no 18706 need_version=no 18707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18708 soname_spec='${libname}${release}${shared_ext}$major' 18709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18710 shlibpath_var=LD_LIBRARY_PATH 18711 shlibpath_overrides_runpath=no 18712 # This implies no fast_install, which is unacceptable. 18713 # Some rework will be needed to allow for fast_install 18714 # before this can be enabled. 18715 hardcode_into_libs=yes 18716 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18717 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18718 18719 # Append ld.so.conf contents to the search path 18720 if test -f /etc/ld.so.conf; then 18721 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' ' '` 18722 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18723 fi 18724 18725 # We used to test for /lib/ld.so.1 and disable shared libraries on 18726 # powerpc, because MkLinux only supported shared libraries with the 18727 # GNU dynamic linker. Since this was broken with cross compilers, 18728 # most powerpc-linux boxes support dynamic linking these days and 18729 # people can always --disable-shared, the test was removed, and we 18730 # assume the GNU/Linux dynamic linker is in use. 18731 dynamic_linker='GNU/Linux ld.so' 18732 ;; 18733 18734netbsd*) 18735 version_type=sunos 18736 need_lib_prefix=no 18737 need_version=no 18738 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18741 dynamic_linker='NetBSD (a.out) ld.so' 18742 else 18743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18744 soname_spec='${libname}${release}${shared_ext}$major' 18745 dynamic_linker='NetBSD ld.elf_so' 18746 fi 18747 shlibpath_var=LD_LIBRARY_PATH 18748 shlibpath_overrides_runpath=yes 18749 hardcode_into_libs=yes 18750 ;; 18751 18752newsos6) 18753 version_type=linux 18754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18755 shlibpath_var=LD_LIBRARY_PATH 18756 shlibpath_overrides_runpath=yes 18757 ;; 18758 18759nto-qnx*) 18760 version_type=linux 18761 need_lib_prefix=no 18762 need_version=no 18763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18764 soname_spec='${libname}${release}${shared_ext}$major' 18765 shlibpath_var=LD_LIBRARY_PATH 18766 shlibpath_overrides_runpath=yes 18767 ;; 18768 18769openbsd*) 18770 version_type=sunos 18771 sys_lib_dlsearch_path_spec="/usr/lib" 18772 need_lib_prefix=no 18773 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18774 case $host_os in 18775 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18776 *) need_version=no ;; 18777 esac 18778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18780 shlibpath_var=LD_LIBRARY_PATH 18781 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18782 case $host_os in 18783 openbsd2.[89] | openbsd2.[89].*) 18784 shlibpath_overrides_runpath=no 18785 ;; 18786 *) 18787 shlibpath_overrides_runpath=yes 18788 ;; 18789 esac 18790 else 18791 shlibpath_overrides_runpath=yes 18792 fi 18793 ;; 18794 18795os2*) 18796 libname_spec='$name' 18797 shrext_cmds=".dll" 18798 need_lib_prefix=no 18799 library_names_spec='$libname${shared_ext} $libname.a' 18800 dynamic_linker='OS/2 ld.exe' 18801 shlibpath_var=LIBPATH 18802 ;; 18803 18804osf3* | osf4* | osf5*) 18805 version_type=osf 18806 need_lib_prefix=no 18807 need_version=no 18808 soname_spec='${libname}${release}${shared_ext}$major' 18809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18810 shlibpath_var=LD_LIBRARY_PATH 18811 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18812 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18813 ;; 18814 18815rdos*) 18816 dynamic_linker=no 18817 ;; 18818 18819solaris*) 18820 version_type=linux 18821 need_lib_prefix=no 18822 need_version=no 18823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18824 soname_spec='${libname}${release}${shared_ext}$major' 18825 shlibpath_var=LD_LIBRARY_PATH 18826 shlibpath_overrides_runpath=yes 18827 hardcode_into_libs=yes 18828 # ldd complains unless libraries are executable 18829 postinstall_cmds='chmod +x $lib' 18830 ;; 18831 18832sunos4*) 18833 version_type=sunos 18834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18835 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18836 shlibpath_var=LD_LIBRARY_PATH 18837 shlibpath_overrides_runpath=yes 18838 if test "$with_gnu_ld" = yes; then 18839 need_lib_prefix=no 18840 fi 18841 need_version=yes 18842 ;; 18843 18844sysv4 | sysv4.3*) 18845 version_type=linux 18846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18847 soname_spec='${libname}${release}${shared_ext}$major' 18848 shlibpath_var=LD_LIBRARY_PATH 18849 case $host_vendor in 18850 sni) 18851 shlibpath_overrides_runpath=no 18852 need_lib_prefix=no 18853 export_dynamic_flag_spec='${wl}-Blargedynsym' 18854 runpath_var=LD_RUN_PATH 18855 ;; 18856 siemens) 18857 need_lib_prefix=no 18858 ;; 18859 motorola) 18860 need_lib_prefix=no 18861 need_version=no 18862 shlibpath_overrides_runpath=no 18863 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18864 ;; 18865 esac 18866 ;; 18867 18868sysv4*MP*) 18869 if test -d /usr/nec ;then 18870 version_type=linux 18871 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18872 soname_spec='$libname${shared_ext}.$major' 18873 shlibpath_var=LD_LIBRARY_PATH 18874 fi 18875 ;; 18876 18877sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18878 version_type=freebsd-elf 18879 need_lib_prefix=no 18880 need_version=no 18881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18882 soname_spec='${libname}${release}${shared_ext}$major' 18883 shlibpath_var=LD_LIBRARY_PATH 18884 hardcode_into_libs=yes 18885 if test "$with_gnu_ld" = yes; then 18886 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18887 shlibpath_overrides_runpath=no 18888 else 18889 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18890 shlibpath_overrides_runpath=yes 18891 case $host_os in 18892 sco3.2v5*) 18893 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18894 ;; 18895 esac 18896 fi 18897 sys_lib_dlsearch_path_spec='/usr/lib' 18898 ;; 18899 18900uts4*) 18901 version_type=linux 18902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18903 soname_spec='${libname}${release}${shared_ext}$major' 18904 shlibpath_var=LD_LIBRARY_PATH 18905 ;; 18906 18907*) 18908 dynamic_linker=no 18909 ;; 18910esac 18911{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18912echo "${ECHO_T}$dynamic_linker" >&6; } 18913test "$dynamic_linker" = no && can_build_shared=no 18914 18915variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18916if test "$GCC" = yes; then 18917 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18918fi 18919 18920{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18921echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18922hardcode_action_GCJ= 18923if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18924 test -n "$runpath_var_GCJ" || \ 18925 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18926 18927 # We can hardcode non-existant directories. 18928 if test "$hardcode_direct_GCJ" != no && 18929 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18930 # have to relink, otherwise we might link with an installed library 18931 # when we should be linking with a yet-to-be-installed one 18932 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18933 test "$hardcode_minus_L_GCJ" != no; then 18934 # Linking always hardcodes the temporary library directory. 18935 hardcode_action_GCJ=relink 18936 else 18937 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18938 hardcode_action_GCJ=immediate 18939 fi 18940else 18941 # We cannot hardcode anything, or else we can only hardcode existing 18942 # directories. 18943 hardcode_action_GCJ=unsupported 18944fi 18945{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18946echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18947 18948if test "$hardcode_action_GCJ" = relink; then 18949 # Fast installation is not supported 18950 enable_fast_install=no 18951elif test "$shlibpath_overrides_runpath" = yes || 18952 test "$enable_shared" = no; then 18953 # Fast installation is not necessary 18954 enable_fast_install=needless 18955fi 18956 18957 18958# The else clause should only fire when bootstrapping the 18959# libtool distribution, otherwise you forgot to ship ltmain.sh 18960# with your package, and you will get complaints that there are 18961# no rules to generate ltmain.sh. 18962if test -f "$ltmain"; then 18963 # See if we are running on zsh, and set the options which allow our commands through 18964 # without removal of \ escapes. 18965 if test -n "${ZSH_VERSION+set}" ; then 18966 setopt NO_GLOB_SUBST 18967 fi 18968 # Now quote all the things that may contain metacharacters while being 18969 # careful not to overquote the AC_SUBSTed values. We take copies of the 18970 # variables and quote the copies for generation of the libtool script. 18971 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18972 SED SHELL STRIP \ 18973 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18974 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18975 deplibs_check_method reload_flag reload_cmds need_locks \ 18976 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18977 lt_cv_sys_global_symbol_to_c_name_address \ 18978 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18979 old_postinstall_cmds old_postuninstall_cmds \ 18980 compiler_GCJ \ 18981 CC_GCJ \ 18982 LD_GCJ \ 18983 lt_prog_compiler_wl_GCJ \ 18984 lt_prog_compiler_pic_GCJ \ 18985 lt_prog_compiler_static_GCJ \ 18986 lt_prog_compiler_no_builtin_flag_GCJ \ 18987 export_dynamic_flag_spec_GCJ \ 18988 thread_safe_flag_spec_GCJ \ 18989 whole_archive_flag_spec_GCJ \ 18990 enable_shared_with_static_runtimes_GCJ \ 18991 old_archive_cmds_GCJ \ 18992 old_archive_from_new_cmds_GCJ \ 18993 predep_objects_GCJ \ 18994 postdep_objects_GCJ \ 18995 predeps_GCJ \ 18996 postdeps_GCJ \ 18997 compiler_lib_search_path_GCJ \ 18998 archive_cmds_GCJ \ 18999 archive_expsym_cmds_GCJ \ 19000 postinstall_cmds_GCJ \ 19001 postuninstall_cmds_GCJ \ 19002 old_archive_from_expsyms_cmds_GCJ \ 19003 allow_undefined_flag_GCJ \ 19004 no_undefined_flag_GCJ \ 19005 export_symbols_cmds_GCJ \ 19006 hardcode_libdir_flag_spec_GCJ \ 19007 hardcode_libdir_flag_spec_ld_GCJ \ 19008 hardcode_libdir_separator_GCJ \ 19009 hardcode_automatic_GCJ \ 19010 module_cmds_GCJ \ 19011 module_expsym_cmds_GCJ \ 19012 lt_cv_prog_compiler_c_o_GCJ \ 19013 fix_srcfile_path_GCJ \ 19014 exclude_expsyms_GCJ \ 19015 include_expsyms_GCJ; do 19016 19017 case $var in 19018 old_archive_cmds_GCJ | \ 19019 old_archive_from_new_cmds_GCJ | \ 19020 archive_cmds_GCJ | \ 19021 archive_expsym_cmds_GCJ | \ 19022 module_cmds_GCJ | \ 19023 module_expsym_cmds_GCJ | \ 19024 old_archive_from_expsyms_cmds_GCJ | \ 19025 export_symbols_cmds_GCJ | \ 19026 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19027 postinstall_cmds | postuninstall_cmds | \ 19028 old_postinstall_cmds | old_postuninstall_cmds | \ 19029 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19030 # Double-quote double-evaled strings. 19031 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19032 ;; 19033 *) 19034 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19035 ;; 19036 esac 19037 done 19038 19039 case $lt_echo in 19040 *'\$0 --fallback-echo"') 19041 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19042 ;; 19043 esac 19044 19045cfgfile="$ofile" 19046 19047 cat <<__EOF__ >> "$cfgfile" 19048# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19049 19050# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19051 19052# Shell to use when invoking shell scripts. 19053SHELL=$lt_SHELL 19054 19055# Whether or not to build shared libraries. 19056build_libtool_libs=$enable_shared 19057 19058# Whether or not to build static libraries. 19059build_old_libs=$enable_static 19060 19061# Whether or not to add -lc for building shared libraries. 19062build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19063 19064# Whether or not to disallow shared libs when runtime libs are static 19065allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19066 19067# Whether or not to optimize for fast installation. 19068fast_install=$enable_fast_install 19069 19070# The host system. 19071host_alias=$host_alias 19072host=$host 19073host_os=$host_os 19074 19075# The build system. 19076build_alias=$build_alias 19077build=$build 19078build_os=$build_os 19079 19080# An echo program that does not interpret backslashes. 19081echo=$lt_echo 19082 19083# The archiver. 19084AR=$lt_AR 19085AR_FLAGS=$lt_AR_FLAGS 19086 19087# A C compiler. 19088LTCC=$lt_LTCC 19089 19090# LTCC compiler flags. 19091LTCFLAGS=$lt_LTCFLAGS 19092 19093# A language-specific compiler. 19094CC=$lt_compiler_GCJ 19095 19096# Is the compiler the GNU C compiler? 19097with_gcc=$GCC_GCJ 19098 19099# An ERE matcher. 19100EGREP=$lt_EGREP 19101 19102# The linker used to build libraries. 19103LD=$lt_LD_GCJ 19104 19105# Whether we need hard or soft links. 19106LN_S=$lt_LN_S 19107 19108# A BSD-compatible nm program. 19109NM=$lt_NM 19110 19111# A symbol stripping program 19112STRIP=$lt_STRIP 19113 19114# Used to examine libraries when file_magic_cmd begins "file" 19115MAGIC_CMD=$MAGIC_CMD 19116 19117# Used on cygwin: DLL creation program. 19118DLLTOOL="$DLLTOOL" 19119 19120# Used on cygwin: object dumper. 19121OBJDUMP="$OBJDUMP" 19122 19123# Used on cygwin: assembler. 19124AS="$AS" 19125 19126# The name of the directory that contains temporary libtool files. 19127objdir=$objdir 19128 19129# How to create reloadable object files. 19130reload_flag=$lt_reload_flag 19131reload_cmds=$lt_reload_cmds 19132 19133# How to pass a linker flag through the compiler. 19134wl=$lt_lt_prog_compiler_wl_GCJ 19135 19136# Object file suffix (normally "o"). 19137objext="$ac_objext" 19138 19139# Old archive suffix (normally "a"). 19140libext="$libext" 19141 19142# Shared library suffix (normally ".so"). 19143shrext_cmds='$shrext_cmds' 19144 19145# Executable file suffix (normally ""). 19146exeext="$exeext" 19147 19148# Additional compiler flags for building library objects. 19149pic_flag=$lt_lt_prog_compiler_pic_GCJ 19150pic_mode=$pic_mode 19151 19152# What is the maximum length of a command? 19153max_cmd_len=$lt_cv_sys_max_cmd_len 19154 19155# Does compiler simultaneously support -c and -o options? 19156compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19157 19158# Must we lock files when doing compilation? 19159need_locks=$lt_need_locks 19160 19161# Do we need the lib prefix for modules? 19162need_lib_prefix=$need_lib_prefix 19163 19164# Do we need a version for libraries? 19165need_version=$need_version 19166 19167# Whether dlopen is supported. 19168dlopen_support=$enable_dlopen 19169 19170# Whether dlopen of programs is supported. 19171dlopen_self=$enable_dlopen_self 19172 19173# Whether dlopen of statically linked programs is supported. 19174dlopen_self_static=$enable_dlopen_self_static 19175 19176# Compiler flag to prevent dynamic linking. 19177link_static_flag=$lt_lt_prog_compiler_static_GCJ 19178 19179# Compiler flag to turn off builtin functions. 19180no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19181 19182# Compiler flag to allow reflexive dlopens. 19183export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19184 19185# Compiler flag to generate shared objects directly from archives. 19186whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19187 19188# Compiler flag to generate thread-safe objects. 19189thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19190 19191# Library versioning type. 19192version_type=$version_type 19193 19194# Format of library name prefix. 19195libname_spec=$lt_libname_spec 19196 19197# List of archive names. First name is the real one, the rest are links. 19198# The last name is the one that the linker finds with -lNAME. 19199library_names_spec=$lt_library_names_spec 19200 19201# The coded name of the library, if different from the real name. 19202soname_spec=$lt_soname_spec 19203 19204# Commands used to build and install an old-style archive. 19205RANLIB=$lt_RANLIB 19206old_archive_cmds=$lt_old_archive_cmds_GCJ 19207old_postinstall_cmds=$lt_old_postinstall_cmds 19208old_postuninstall_cmds=$lt_old_postuninstall_cmds 19209 19210# Create an old-style archive from a shared archive. 19211old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19212 19213# Create a temporary old-style archive to link instead of a shared archive. 19214old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19215 19216# Commands used to build and install a shared archive. 19217archive_cmds=$lt_archive_cmds_GCJ 19218archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19219postinstall_cmds=$lt_postinstall_cmds 19220postuninstall_cmds=$lt_postuninstall_cmds 19221 19222# Commands used to build a loadable module (assumed same as above if empty) 19223module_cmds=$lt_module_cmds_GCJ 19224module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19225 19226# Commands to strip libraries. 19227old_striplib=$lt_old_striplib 19228striplib=$lt_striplib 19229 19230# Dependencies to place before the objects being linked to create a 19231# shared library. 19232predep_objects=$lt_predep_objects_GCJ 19233 19234# Dependencies to place after the objects being linked to create a 19235# shared library. 19236postdep_objects=$lt_postdep_objects_GCJ 19237 19238# Dependencies to place before the objects being linked to create a 19239# shared library. 19240predeps=$lt_predeps_GCJ 19241 19242# Dependencies to place after the objects being linked to create a 19243# shared library. 19244postdeps=$lt_postdeps_GCJ 19245 19246# The library search path used internally by the compiler when linking 19247# a shared library. 19248compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19249 19250# Method to check whether dependent libraries are shared objects. 19251deplibs_check_method=$lt_deplibs_check_method 19252 19253# Command to use when deplibs_check_method == file_magic. 19254file_magic_cmd=$lt_file_magic_cmd 19255 19256# Flag that allows shared libraries with undefined symbols to be built. 19257allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19258 19259# Flag that forces no undefined symbols. 19260no_undefined_flag=$lt_no_undefined_flag_GCJ 19261 19262# Commands used to finish a libtool library installation in a directory. 19263finish_cmds=$lt_finish_cmds 19264 19265# Same as above, but a single script fragment to be evaled but not shown. 19266finish_eval=$lt_finish_eval 19267 19268# Take the output of nm and produce a listing of raw symbols and C names. 19269global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19270 19271# Transform the output of nm in a proper C declaration 19272global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19273 19274# Transform the output of nm in a C name address pair 19275global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19276 19277# This is the shared library runtime path variable. 19278runpath_var=$runpath_var 19279 19280# This is the shared library path variable. 19281shlibpath_var=$shlibpath_var 19282 19283# Is shlibpath searched before the hard-coded library search path? 19284shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19285 19286# How to hardcode a shared library path into an executable. 19287hardcode_action=$hardcode_action_GCJ 19288 19289# Whether we should hardcode library paths into libraries. 19290hardcode_into_libs=$hardcode_into_libs 19291 19292# Flag to hardcode \$libdir into a binary during linking. 19293# This must work even if \$libdir does not exist. 19294hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19295 19296# If ld is used when linking, flag to hardcode \$libdir into 19297# a binary during linking. This must work even if \$libdir does 19298# not exist. 19299hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19300 19301# Whether we need a single -rpath flag with a separated argument. 19302hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19303 19304# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19305# resulting binary. 19306hardcode_direct=$hardcode_direct_GCJ 19307 19308# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19309# resulting binary. 19310hardcode_minus_L=$hardcode_minus_L_GCJ 19311 19312# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19313# the resulting binary. 19314hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19315 19316# Set to yes if building a shared library automatically hardcodes DIR into the library 19317# and all subsequent libraries and executables linked against it. 19318hardcode_automatic=$hardcode_automatic_GCJ 19319 19320# Variables whose values should be saved in libtool wrapper scripts and 19321# restored at relink time. 19322variables_saved_for_relink="$variables_saved_for_relink" 19323 19324# Whether libtool must link a program against all its dependency libraries. 19325link_all_deplibs=$link_all_deplibs_GCJ 19326 19327# Compile-time system search path for libraries 19328sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19329 19330# Run-time system search path for libraries 19331sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19332 19333# Fix the shell variable \$srcfile for the compiler. 19334fix_srcfile_path=$lt_fix_srcfile_path 19335 19336# Set to yes if exported symbols are required. 19337always_export_symbols=$always_export_symbols_GCJ 19338 19339# The commands to list exported symbols. 19340export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19341 19342# The commands to extract the exported symbol list from a shared archive. 19343extract_expsyms_cmds=$lt_extract_expsyms_cmds 19344 19345# Symbols that should not be listed in the preloaded symbols. 19346exclude_expsyms=$lt_exclude_expsyms_GCJ 19347 19348# Symbols that must always be exported. 19349include_expsyms=$lt_include_expsyms_GCJ 19350 19351# ### END LIBTOOL TAG CONFIG: $tagname 19352 19353__EOF__ 19354 19355 19356else 19357 # If there is no Makefile yet, we rely on a make rule to execute 19358 # `config.status --recheck' to rerun these tests and create the 19359 # libtool script then. 19360 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19361 if test -f "$ltmain_in"; then 19362 test -f Makefile && make "$ltmain" 19363 fi 19364fi 19365 19366 19367ac_ext=c 19368ac_cpp='$CPP $CPPFLAGS' 19369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19371ac_compiler_gnu=$ac_cv_c_compiler_gnu 19372 19373CC="$lt_save_CC" 19374 19375 else 19376 tagname="" 19377 fi 19378 ;; 19379 19380 RC) 19381 19382 19383# Source file extension for RC test sources. 19384ac_ext=rc 19385 19386# Object file extension for compiled RC test sources. 19387objext=o 19388objext_RC=$objext 19389 19390# Code to be used in simple compile tests 19391lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19392 19393# Code to be used in simple link tests 19394lt_simple_link_test_code="$lt_simple_compile_test_code" 19395 19396# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19397 19398# If no C compiler was specified, use CC. 19399LTCC=${LTCC-"$CC"} 19400 19401# If no C compiler flags were specified, use CFLAGS. 19402LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19403 19404# Allow CC to be a program name with arguments. 19405compiler=$CC 19406 19407 19408# save warnings/boilerplate of simple test code 19409ac_outfile=conftest.$ac_objext 19410echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19411eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19412_lt_compiler_boilerplate=`cat conftest.err` 19413$rm conftest* 19414 19415ac_outfile=conftest.$ac_objext 19416echo "$lt_simple_link_test_code" >conftest.$ac_ext 19417eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19418_lt_linker_boilerplate=`cat conftest.err` 19419$rm conftest* 19420 19421 19422# Allow CC to be a program name with arguments. 19423lt_save_CC="$CC" 19424CC=${RC-"windres"} 19425compiler=$CC 19426compiler_RC=$CC 19427for cc_temp in $compiler""; do 19428 case $cc_temp in 19429 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19430 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19431 \-*) ;; 19432 *) break;; 19433 esac 19434done 19435cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19436 19437lt_cv_prog_compiler_c_o_RC=yes 19438 19439# The else clause should only fire when bootstrapping the 19440# libtool distribution, otherwise you forgot to ship ltmain.sh 19441# with your package, and you will get complaints that there are 19442# no rules to generate ltmain.sh. 19443if test -f "$ltmain"; then 19444 # See if we are running on zsh, and set the options which allow our commands through 19445 # without removal of \ escapes. 19446 if test -n "${ZSH_VERSION+set}" ; then 19447 setopt NO_GLOB_SUBST 19448 fi 19449 # Now quote all the things that may contain metacharacters while being 19450 # careful not to overquote the AC_SUBSTed values. We take copies of the 19451 # variables and quote the copies for generation of the libtool script. 19452 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19453 SED SHELL STRIP \ 19454 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19455 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19456 deplibs_check_method reload_flag reload_cmds need_locks \ 19457 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19458 lt_cv_sys_global_symbol_to_c_name_address \ 19459 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19460 old_postinstall_cmds old_postuninstall_cmds \ 19461 compiler_RC \ 19462 CC_RC \ 19463 LD_RC \ 19464 lt_prog_compiler_wl_RC \ 19465 lt_prog_compiler_pic_RC \ 19466 lt_prog_compiler_static_RC \ 19467 lt_prog_compiler_no_builtin_flag_RC \ 19468 export_dynamic_flag_spec_RC \ 19469 thread_safe_flag_spec_RC \ 19470 whole_archive_flag_spec_RC \ 19471 enable_shared_with_static_runtimes_RC \ 19472 old_archive_cmds_RC \ 19473 old_archive_from_new_cmds_RC \ 19474 predep_objects_RC \ 19475 postdep_objects_RC \ 19476 predeps_RC \ 19477 postdeps_RC \ 19478 compiler_lib_search_path_RC \ 19479 archive_cmds_RC \ 19480 archive_expsym_cmds_RC \ 19481 postinstall_cmds_RC \ 19482 postuninstall_cmds_RC \ 19483 old_archive_from_expsyms_cmds_RC \ 19484 allow_undefined_flag_RC \ 19485 no_undefined_flag_RC \ 19486 export_symbols_cmds_RC \ 19487 hardcode_libdir_flag_spec_RC \ 19488 hardcode_libdir_flag_spec_ld_RC \ 19489 hardcode_libdir_separator_RC \ 19490 hardcode_automatic_RC \ 19491 module_cmds_RC \ 19492 module_expsym_cmds_RC \ 19493 lt_cv_prog_compiler_c_o_RC \ 19494 fix_srcfile_path_RC \ 19495 exclude_expsyms_RC \ 19496 include_expsyms_RC; do 19497 19498 case $var in 19499 old_archive_cmds_RC | \ 19500 old_archive_from_new_cmds_RC | \ 19501 archive_cmds_RC | \ 19502 archive_expsym_cmds_RC | \ 19503 module_cmds_RC | \ 19504 module_expsym_cmds_RC | \ 19505 old_archive_from_expsyms_cmds_RC | \ 19506 export_symbols_cmds_RC | \ 19507 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19508 postinstall_cmds | postuninstall_cmds | \ 19509 old_postinstall_cmds | old_postuninstall_cmds | \ 19510 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19511 # Double-quote double-evaled strings. 19512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19513 ;; 19514 *) 19515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19516 ;; 19517 esac 19518 done 19519 19520 case $lt_echo in 19521 *'\$0 --fallback-echo"') 19522 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19523 ;; 19524 esac 19525 19526cfgfile="$ofile" 19527 19528 cat <<__EOF__ >> "$cfgfile" 19529# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19530 19531# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19532 19533# Shell to use when invoking shell scripts. 19534SHELL=$lt_SHELL 19535 19536# Whether or not to build shared libraries. 19537build_libtool_libs=$enable_shared 19538 19539# Whether or not to build static libraries. 19540build_old_libs=$enable_static 19541 19542# Whether or not to add -lc for building shared libraries. 19543build_libtool_need_lc=$archive_cmds_need_lc_RC 19544 19545# Whether or not to disallow shared libs when runtime libs are static 19546allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19547 19548# Whether or not to optimize for fast installation. 19549fast_install=$enable_fast_install 19550 19551# The host system. 19552host_alias=$host_alias 19553host=$host 19554host_os=$host_os 19555 19556# The build system. 19557build_alias=$build_alias 19558build=$build 19559build_os=$build_os 19560 19561# An echo program that does not interpret backslashes. 19562echo=$lt_echo 19563 19564# The archiver. 19565AR=$lt_AR 19566AR_FLAGS=$lt_AR_FLAGS 19567 19568# A C compiler. 19569LTCC=$lt_LTCC 19570 19571# LTCC compiler flags. 19572LTCFLAGS=$lt_LTCFLAGS 19573 19574# A language-specific compiler. 19575CC=$lt_compiler_RC 19576 19577# Is the compiler the GNU C compiler? 19578with_gcc=$GCC_RC 19579 19580# An ERE matcher. 19581EGREP=$lt_EGREP 19582 19583# The linker used to build libraries. 19584LD=$lt_LD_RC 19585 19586# Whether we need hard or soft links. 19587LN_S=$lt_LN_S 19588 19589# A BSD-compatible nm program. 19590NM=$lt_NM 19591 19592# A symbol stripping program 19593STRIP=$lt_STRIP 19594 19595# Used to examine libraries when file_magic_cmd begins "file" 19596MAGIC_CMD=$MAGIC_CMD 19597 19598# Used on cygwin: DLL creation program. 19599DLLTOOL="$DLLTOOL" 19600 19601# Used on cygwin: object dumper. 19602OBJDUMP="$OBJDUMP" 19603 19604# Used on cygwin: assembler. 19605AS="$AS" 19606 19607# The name of the directory that contains temporary libtool files. 19608objdir=$objdir 19609 19610# How to create reloadable object files. 19611reload_flag=$lt_reload_flag 19612reload_cmds=$lt_reload_cmds 19613 19614# How to pass a linker flag through the compiler. 19615wl=$lt_lt_prog_compiler_wl_RC 19616 19617# Object file suffix (normally "o"). 19618objext="$ac_objext" 19619 19620# Old archive suffix (normally "a"). 19621libext="$libext" 19622 19623# Shared library suffix (normally ".so"). 19624shrext_cmds='$shrext_cmds' 19625 19626# Executable file suffix (normally ""). 19627exeext="$exeext" 19628 19629# Additional compiler flags for building library objects. 19630pic_flag=$lt_lt_prog_compiler_pic_RC 19631pic_mode=$pic_mode 19632 19633# What is the maximum length of a command? 19634max_cmd_len=$lt_cv_sys_max_cmd_len 19635 19636# Does compiler simultaneously support -c and -o options? 19637compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19638 19639# Must we lock files when doing compilation? 19640need_locks=$lt_need_locks 19641 19642# Do we need the lib prefix for modules? 19643need_lib_prefix=$need_lib_prefix 19644 19645# Do we need a version for libraries? 19646need_version=$need_version 19647 19648# Whether dlopen is supported. 19649dlopen_support=$enable_dlopen 19650 19651# Whether dlopen of programs is supported. 19652dlopen_self=$enable_dlopen_self 19653 19654# Whether dlopen of statically linked programs is supported. 19655dlopen_self_static=$enable_dlopen_self_static 19656 19657# Compiler flag to prevent dynamic linking. 19658link_static_flag=$lt_lt_prog_compiler_static_RC 19659 19660# Compiler flag to turn off builtin functions. 19661no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19662 19663# Compiler flag to allow reflexive dlopens. 19664export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19665 19666# Compiler flag to generate shared objects directly from archives. 19667whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19668 19669# Compiler flag to generate thread-safe objects. 19670thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19671 19672# Library versioning type. 19673version_type=$version_type 19674 19675# Format of library name prefix. 19676libname_spec=$lt_libname_spec 19677 19678# List of archive names. First name is the real one, the rest are links. 19679# The last name is the one that the linker finds with -lNAME. 19680library_names_spec=$lt_library_names_spec 19681 19682# The coded name of the library, if different from the real name. 19683soname_spec=$lt_soname_spec 19684 19685# Commands used to build and install an old-style archive. 19686RANLIB=$lt_RANLIB 19687old_archive_cmds=$lt_old_archive_cmds_RC 19688old_postinstall_cmds=$lt_old_postinstall_cmds 19689old_postuninstall_cmds=$lt_old_postuninstall_cmds 19690 19691# Create an old-style archive from a shared archive. 19692old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19693 19694# Create a temporary old-style archive to link instead of a shared archive. 19695old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19696 19697# Commands used to build and install a shared archive. 19698archive_cmds=$lt_archive_cmds_RC 19699archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19700postinstall_cmds=$lt_postinstall_cmds 19701postuninstall_cmds=$lt_postuninstall_cmds 19702 19703# Commands used to build a loadable module (assumed same as above if empty) 19704module_cmds=$lt_module_cmds_RC 19705module_expsym_cmds=$lt_module_expsym_cmds_RC 19706 19707# Commands to strip libraries. 19708old_striplib=$lt_old_striplib 19709striplib=$lt_striplib 19710 19711# Dependencies to place before the objects being linked to create a 19712# shared library. 19713predep_objects=$lt_predep_objects_RC 19714 19715# Dependencies to place after the objects being linked to create a 19716# shared library. 19717postdep_objects=$lt_postdep_objects_RC 19718 19719# Dependencies to place before the objects being linked to create a 19720# shared library. 19721predeps=$lt_predeps_RC 19722 19723# Dependencies to place after the objects being linked to create a 19724# shared library. 19725postdeps=$lt_postdeps_RC 19726 19727# The library search path used internally by the compiler when linking 19728# a shared library. 19729compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19730 19731# Method to check whether dependent libraries are shared objects. 19732deplibs_check_method=$lt_deplibs_check_method 19733 19734# Command to use when deplibs_check_method == file_magic. 19735file_magic_cmd=$lt_file_magic_cmd 19736 19737# Flag that allows shared libraries with undefined symbols to be built. 19738allow_undefined_flag=$lt_allow_undefined_flag_RC 19739 19740# Flag that forces no undefined symbols. 19741no_undefined_flag=$lt_no_undefined_flag_RC 19742 19743# Commands used to finish a libtool library installation in a directory. 19744finish_cmds=$lt_finish_cmds 19745 19746# Same as above, but a single script fragment to be evaled but not shown. 19747finish_eval=$lt_finish_eval 19748 19749# Take the output of nm and produce a listing of raw symbols and C names. 19750global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19751 19752# Transform the output of nm in a proper C declaration 19753global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19754 19755# Transform the output of nm in a C name address pair 19756global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19757 19758# This is the shared library runtime path variable. 19759runpath_var=$runpath_var 19760 19761# This is the shared library path variable. 19762shlibpath_var=$shlibpath_var 19763 19764# Is shlibpath searched before the hard-coded library search path? 19765shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19766 19767# How to hardcode a shared library path into an executable. 19768hardcode_action=$hardcode_action_RC 19769 19770# Whether we should hardcode library paths into libraries. 19771hardcode_into_libs=$hardcode_into_libs 19772 19773# Flag to hardcode \$libdir into a binary during linking. 19774# This must work even if \$libdir does not exist. 19775hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19776 19777# If ld is used when linking, flag to hardcode \$libdir into 19778# a binary during linking. This must work even if \$libdir does 19779# not exist. 19780hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19781 19782# Whether we need a single -rpath flag with a separated argument. 19783hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19784 19785# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19786# resulting binary. 19787hardcode_direct=$hardcode_direct_RC 19788 19789# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19790# resulting binary. 19791hardcode_minus_L=$hardcode_minus_L_RC 19792 19793# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19794# the resulting binary. 19795hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19796 19797# Set to yes if building a shared library automatically hardcodes DIR into the library 19798# and all subsequent libraries and executables linked against it. 19799hardcode_automatic=$hardcode_automatic_RC 19800 19801# Variables whose values should be saved in libtool wrapper scripts and 19802# restored at relink time. 19803variables_saved_for_relink="$variables_saved_for_relink" 19804 19805# Whether libtool must link a program against all its dependency libraries. 19806link_all_deplibs=$link_all_deplibs_RC 19807 19808# Compile-time system search path for libraries 19809sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19810 19811# Run-time system search path for libraries 19812sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19813 19814# Fix the shell variable \$srcfile for the compiler. 19815fix_srcfile_path=$lt_fix_srcfile_path 19816 19817# Set to yes if exported symbols are required. 19818always_export_symbols=$always_export_symbols_RC 19819 19820# The commands to list exported symbols. 19821export_symbols_cmds=$lt_export_symbols_cmds_RC 19822 19823# The commands to extract the exported symbol list from a shared archive. 19824extract_expsyms_cmds=$lt_extract_expsyms_cmds 19825 19826# Symbols that should not be listed in the preloaded symbols. 19827exclude_expsyms=$lt_exclude_expsyms_RC 19828 19829# Symbols that must always be exported. 19830include_expsyms=$lt_include_expsyms_RC 19831 19832# ### END LIBTOOL TAG CONFIG: $tagname 19833 19834__EOF__ 19835 19836 19837else 19838 # If there is no Makefile yet, we rely on a make rule to execute 19839 # `config.status --recheck' to rerun these tests and create the 19840 # libtool script then. 19841 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19842 if test -f "$ltmain_in"; then 19843 test -f Makefile && make "$ltmain" 19844 fi 19845fi 19846 19847 19848ac_ext=c 19849ac_cpp='$CPP $CPPFLAGS' 19850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19852ac_compiler_gnu=$ac_cv_c_compiler_gnu 19853 19854CC="$lt_save_CC" 19855 19856 ;; 19857 19858 *) 19859 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19860echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19861 { (exit 1); exit 1; }; } 19862 ;; 19863 esac 19864 19865 # Append the new tag name to the list of available tags. 19866 if test -n "$tagname" ; then 19867 available_tags="$available_tags $tagname" 19868 fi 19869 fi 19870 done 19871 IFS="$lt_save_ifs" 19872 19873 # Now substitute the updated list of available tags. 19874 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19875 mv "${ofile}T" "$ofile" 19876 chmod +x "$ofile" 19877 else 19878 rm -f "${ofile}T" 19879 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19880echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19881 { (exit 1); exit 1; }; } 19882 fi 19883fi 19884 19885 19886 19887# This can be used to rebuild libtool when needed 19888LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19889 19890# Always use our own libtool. 19891LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19892 19893# Prevent multiple expansion 19894 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 19915echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 19916if test "${ac_cv_search_strerror+set}" = set; then 19917 echo $ECHO_N "(cached) $ECHO_C" >&6 19918else 19919 ac_func_search_save_LIBS=$LIBS 19920cat >conftest.$ac_ext <<_ACEOF 19921/* confdefs.h. */ 19922_ACEOF 19923cat confdefs.h >>conftest.$ac_ext 19924cat >>conftest.$ac_ext <<_ACEOF 19925/* end confdefs.h. */ 19926 19927/* Override any GCC internal prototype to avoid an error. 19928 Use char because int might match the return type of a GCC 19929 builtin and then its argument prototype would still apply. */ 19930#ifdef __cplusplus 19931extern "C" 19932#endif 19933char strerror (); 19934int 19935main () 19936{ 19937return strerror (); 19938 ; 19939 return 0; 19940} 19941_ACEOF 19942for ac_lib in '' cposix; do 19943 if test -z "$ac_lib"; then 19944 ac_res="none required" 19945 else 19946 ac_res=-l$ac_lib 19947 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19948 fi 19949 rm -f conftest.$ac_objext conftest$ac_exeext 19950if { (ac_try="$ac_link" 19951case "(($ac_try" in 19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19953 *) ac_try_echo=$ac_try;; 19954esac 19955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19956 (eval "$ac_link") 2>conftest.er1 19957 ac_status=$? 19958 grep -v '^ *+' conftest.er1 >conftest.err 19959 rm -f conftest.er1 19960 cat conftest.err >&5 19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19962 (exit $ac_status); } && { 19963 test -z "$ac_c_werror_flag" || 19964 test ! -s conftest.err 19965 } && test -s conftest$ac_exeext && 19966 $as_test_x conftest$ac_exeext; then 19967 ac_cv_search_strerror=$ac_res 19968else 19969 echo "$as_me: failed program was:" >&5 19970sed 's/^/| /' conftest.$ac_ext >&5 19971 19972 19973fi 19974 19975rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19976 conftest$ac_exeext 19977 if test "${ac_cv_search_strerror+set}" = set; then 19978 break 19979fi 19980done 19981if test "${ac_cv_search_strerror+set}" = set; then 19982 : 19983else 19984 ac_cv_search_strerror=no 19985fi 19986rm conftest.$ac_ext 19987LIBS=$ac_func_search_save_LIBS 19988fi 19989{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 19990echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 19991ac_res=$ac_cv_search_strerror 19992if test "$ac_res" != no; then 19993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19994 19995fi 19996 19997 19998# Checks for header files. 19999{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 20000echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 20001if test "${ac_cv_header_stdc+set}" = set; then 20002 echo $ECHO_N "(cached) $ECHO_C" >&6 20003else 20004 cat >conftest.$ac_ext <<_ACEOF 20005/* confdefs.h. */ 20006_ACEOF 20007cat confdefs.h >>conftest.$ac_ext 20008cat >>conftest.$ac_ext <<_ACEOF 20009/* end confdefs.h. */ 20010#include <stdlib.h> 20011#include <stdarg.h> 20012#include <string.h> 20013#include <float.h> 20014 20015int 20016main () 20017{ 20018 20019 ; 20020 return 0; 20021} 20022_ACEOF 20023rm -f conftest.$ac_objext 20024if { (ac_try="$ac_compile" 20025case "(($ac_try" in 20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20027 *) ac_try_echo=$ac_try;; 20028esac 20029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20030 (eval "$ac_compile") 2>conftest.er1 20031 ac_status=$? 20032 grep -v '^ *+' conftest.er1 >conftest.err 20033 rm -f conftest.er1 20034 cat conftest.err >&5 20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20036 (exit $ac_status); } && { 20037 test -z "$ac_c_werror_flag" || 20038 test ! -s conftest.err 20039 } && test -s conftest.$ac_objext; then 20040 ac_cv_header_stdc=yes 20041else 20042 echo "$as_me: failed program was:" >&5 20043sed 's/^/| /' conftest.$ac_ext >&5 20044 20045 ac_cv_header_stdc=no 20046fi 20047 20048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20049 20050if test $ac_cv_header_stdc = yes; then 20051 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20052 cat >conftest.$ac_ext <<_ACEOF 20053/* confdefs.h. */ 20054_ACEOF 20055cat confdefs.h >>conftest.$ac_ext 20056cat >>conftest.$ac_ext <<_ACEOF 20057/* end confdefs.h. */ 20058#include <string.h> 20059 20060_ACEOF 20061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20062 $EGREP "memchr" >/dev/null 2>&1; then 20063 : 20064else 20065 ac_cv_header_stdc=no 20066fi 20067rm -f conftest* 20068 20069fi 20070 20071if test $ac_cv_header_stdc = yes; then 20072 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20073 cat >conftest.$ac_ext <<_ACEOF 20074/* confdefs.h. */ 20075_ACEOF 20076cat confdefs.h >>conftest.$ac_ext 20077cat >>conftest.$ac_ext <<_ACEOF 20078/* end confdefs.h. */ 20079#include <stdlib.h> 20080 20081_ACEOF 20082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20083 $EGREP "free" >/dev/null 2>&1; then 20084 : 20085else 20086 ac_cv_header_stdc=no 20087fi 20088rm -f conftest* 20089 20090fi 20091 20092if test $ac_cv_header_stdc = yes; then 20093 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20094 if test "$cross_compiling" = yes; then 20095 : 20096else 20097 cat >conftest.$ac_ext <<_ACEOF 20098/* confdefs.h. */ 20099_ACEOF 20100cat confdefs.h >>conftest.$ac_ext 20101cat >>conftest.$ac_ext <<_ACEOF 20102/* end confdefs.h. */ 20103#include <ctype.h> 20104#include <stdlib.h> 20105#if ((' ' & 0x0FF) == 0x020) 20106# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20107# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20108#else 20109# define ISLOWER(c) \ 20110 (('a' <= (c) && (c) <= 'i') \ 20111 || ('j' <= (c) && (c) <= 'r') \ 20112 || ('s' <= (c) && (c) <= 'z')) 20113# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20114#endif 20115 20116#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20117int 20118main () 20119{ 20120 int i; 20121 for (i = 0; i < 256; i++) 20122 if (XOR (islower (i), ISLOWER (i)) 20123 || toupper (i) != TOUPPER (i)) 20124 return 2; 20125 return 0; 20126} 20127_ACEOF 20128rm -f conftest$ac_exeext 20129if { (ac_try="$ac_link" 20130case "(($ac_try" in 20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20132 *) ac_try_echo=$ac_try;; 20133esac 20134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20135 (eval "$ac_link") 2>&5 20136 ac_status=$? 20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20139 { (case "(($ac_try" in 20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20141 *) ac_try_echo=$ac_try;; 20142esac 20143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20144 (eval "$ac_try") 2>&5 20145 ac_status=$? 20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20147 (exit $ac_status); }; }; then 20148 : 20149else 20150 echo "$as_me: program exited with status $ac_status" >&5 20151echo "$as_me: failed program was:" >&5 20152sed 's/^/| /' conftest.$ac_ext >&5 20153 20154( exit $ac_status ) 20155ac_cv_header_stdc=no 20156fi 20157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20158fi 20159 20160 20161fi 20162fi 20163{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20164echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 20165if test $ac_cv_header_stdc = yes; then 20166 20167cat >>confdefs.h <<\_ACEOF 20168#define STDC_HEADERS 1 20169_ACEOF 20170 20171fi 20172 20173 20174 20175 20176 20177 20178for ac_header in libintl.h stdlib.h string.h unistd.h wchar.h 20179do 20180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20182 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20185 echo $ECHO_N "(cached) $ECHO_C" >&6 20186fi 20187ac_res=`eval echo '${'$as_ac_Header'}'` 20188 { echo "$as_me:$LINENO: result: $ac_res" >&5 20189echo "${ECHO_T}$ac_res" >&6; } 20190else 20191 # Is the header compilable? 20192{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20193echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20194cat >conftest.$ac_ext <<_ACEOF 20195/* confdefs.h. */ 20196_ACEOF 20197cat confdefs.h >>conftest.$ac_ext 20198cat >>conftest.$ac_ext <<_ACEOF 20199/* end confdefs.h. */ 20200$ac_includes_default 20201#include <$ac_header> 20202_ACEOF 20203rm -f conftest.$ac_objext 20204if { (ac_try="$ac_compile" 20205case "(($ac_try" in 20206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20207 *) ac_try_echo=$ac_try;; 20208esac 20209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20210 (eval "$ac_compile") 2>conftest.er1 20211 ac_status=$? 20212 grep -v '^ *+' conftest.er1 >conftest.err 20213 rm -f conftest.er1 20214 cat conftest.err >&5 20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20216 (exit $ac_status); } && { 20217 test -z "$ac_c_werror_flag" || 20218 test ! -s conftest.err 20219 } && test -s conftest.$ac_objext; then 20220 ac_header_compiler=yes 20221else 20222 echo "$as_me: failed program was:" >&5 20223sed 's/^/| /' conftest.$ac_ext >&5 20224 20225 ac_header_compiler=no 20226fi 20227 20228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20229{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20230echo "${ECHO_T}$ac_header_compiler" >&6; } 20231 20232# Is the header present? 20233{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20235cat >conftest.$ac_ext <<_ACEOF 20236/* confdefs.h. */ 20237_ACEOF 20238cat confdefs.h >>conftest.$ac_ext 20239cat >>conftest.$ac_ext <<_ACEOF 20240/* end confdefs.h. */ 20241#include <$ac_header> 20242_ACEOF 20243if { (ac_try="$ac_cpp conftest.$ac_ext" 20244case "(($ac_try" in 20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20246 *) ac_try_echo=$ac_try;; 20247esac 20248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20250 ac_status=$? 20251 grep -v '^ *+' conftest.er1 >conftest.err 20252 rm -f conftest.er1 20253 cat conftest.err >&5 20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20255 (exit $ac_status); } >/dev/null && { 20256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20257 test ! -s conftest.err 20258 }; then 20259 ac_header_preproc=yes 20260else 20261 echo "$as_me: failed program was:" >&5 20262sed 's/^/| /' conftest.$ac_ext >&5 20263 20264 ac_header_preproc=no 20265fi 20266 20267rm -f conftest.err conftest.$ac_ext 20268{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20269echo "${ECHO_T}$ac_header_preproc" >&6; } 20270 20271# So? What about this header? 20272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20273 yes:no: ) 20274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20277echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20278 ac_header_preproc=yes 20279 ;; 20280 no:yes:* ) 20281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20282echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20284echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20286echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20288echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20290echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20292echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20293 ( cat <<\_ASBOX 20294## -------------------------------------- ## 20295## Report this to nicolafragale@gmail.com ## 20296## -------------------------------------- ## 20297_ASBOX 20298 ) | sed "s/^/$as_me: WARNING: /" >&2 20299 ;; 20300esac 20301{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20304 echo $ECHO_N "(cached) $ECHO_C" >&6 20305else 20306 eval "$as_ac_Header=\$ac_header_preproc" 20307fi 20308ac_res=`eval echo '${'$as_ac_Header'}'` 20309 { echo "$as_me:$LINENO: result: $ac_res" >&5 20310echo "${ECHO_T}$ac_res" >&6; } 20311 20312fi 20313if test `eval echo '${'$as_ac_Header'}'` = yes; then 20314 cat >>confdefs.h <<_ACEOF 20315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20316_ACEOF 20317 20318fi 20319 20320done 20321 20322 20323{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 20324echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } 20325if test "${ac_cv_header_stdbool_h+set}" = set; then 20326 echo $ECHO_N "(cached) $ECHO_C" >&6 20327else 20328 cat >conftest.$ac_ext <<_ACEOF 20329/* confdefs.h. */ 20330_ACEOF 20331cat confdefs.h >>conftest.$ac_ext 20332cat >>conftest.$ac_ext <<_ACEOF 20333/* end confdefs.h. */ 20334 20335#include <stdbool.h> 20336#ifndef bool 20337 "error: bool is not defined" 20338#endif 20339#ifndef false 20340 "error: false is not defined" 20341#endif 20342#if false 20343 "error: false is not 0" 20344#endif 20345#ifndef true 20346 "error: true is not defined" 20347#endif 20348#if true != 1 20349 "error: true is not 1" 20350#endif 20351#ifndef __bool_true_false_are_defined 20352 "error: __bool_true_false_are_defined is not defined" 20353#endif 20354 20355 struct s { _Bool s: 1; _Bool t; } s; 20356 20357 char a[true == 1 ? 1 : -1]; 20358 char b[false == 0 ? 1 : -1]; 20359 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 20360 char d[(bool) 0.5 == true ? 1 : -1]; 20361 bool e = &s; 20362 char f[(_Bool) 0.0 == false ? 1 : -1]; 20363 char g[true]; 20364 char h[sizeof (_Bool)]; 20365 char i[sizeof s.t]; 20366 enum { j = false, k = true, l = false * true, m = true * 256 }; 20367 _Bool n[m]; 20368 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 20369 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 20370# if defined __xlc__ || defined __GNUC__ 20371 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 20372 reported by James Lemley on 2005-10-05; see 20373 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html 20374 This test is not quite right, since xlc is allowed to 20375 reject this program, as the initializer for xlcbug is 20376 not one of the forms that C requires support for. 20377 However, doing the test right would require a runtime 20378 test, and that would make cross-compilation harder. 20379 Let us hope that IBM fixes the xlc bug, and also adds 20380 support for this kind of constant expression. In the 20381 meantime, this test will reject xlc, which is OK, since 20382 our stdbool.h substitute should suffice. We also test 20383 this with GCC, where it should work, to detect more 20384 quickly whether someone messes up the test in the 20385 future. */ 20386 char digs[] = "0123456789"; 20387 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); 20388# endif 20389 /* Catch a bug in an HP-UX C compiler. See 20390 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 20391 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 20392 */ 20393 _Bool q = true; 20394 _Bool *pq = &q; 20395 20396int 20397main () 20398{ 20399 20400 *pq |= q; 20401 *pq |= ! q; 20402 /* Refer to every declared value, to avoid compiler optimizations. */ 20403 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 20404 + !m + !n + !o + !p + !q + !pq); 20405 20406 ; 20407 return 0; 20408} 20409_ACEOF 20410rm -f conftest.$ac_objext 20411if { (ac_try="$ac_compile" 20412case "(($ac_try" in 20413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20414 *) ac_try_echo=$ac_try;; 20415esac 20416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20417 (eval "$ac_compile") 2>conftest.er1 20418 ac_status=$? 20419 grep -v '^ *+' conftest.er1 >conftest.err 20420 rm -f conftest.er1 20421 cat conftest.err >&5 20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20423 (exit $ac_status); } && { 20424 test -z "$ac_c_werror_flag" || 20425 test ! -s conftest.err 20426 } && test -s conftest.$ac_objext; then 20427 ac_cv_header_stdbool_h=yes 20428else 20429 echo "$as_me: failed program was:" >&5 20430sed 's/^/| /' conftest.$ac_ext >&5 20431 20432 ac_cv_header_stdbool_h=no 20433fi 20434 20435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20436fi 20437{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 20438echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } 20439{ echo "$as_me:$LINENO: checking for _Bool" >&5 20440echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } 20441if test "${ac_cv_type__Bool+set}" = set; then 20442 echo $ECHO_N "(cached) $ECHO_C" >&6 20443else 20444 cat >conftest.$ac_ext <<_ACEOF 20445/* confdefs.h. */ 20446_ACEOF 20447cat confdefs.h >>conftest.$ac_ext 20448cat >>conftest.$ac_ext <<_ACEOF 20449/* end confdefs.h. */ 20450$ac_includes_default 20451typedef _Bool ac__type_new_; 20452int 20453main () 20454{ 20455if ((ac__type_new_ *) 0) 20456 return 0; 20457if (sizeof (ac__type_new_)) 20458 return 0; 20459 ; 20460 return 0; 20461} 20462_ACEOF 20463rm -f conftest.$ac_objext 20464if { (ac_try="$ac_compile" 20465case "(($ac_try" in 20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20467 *) ac_try_echo=$ac_try;; 20468esac 20469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20470 (eval "$ac_compile") 2>conftest.er1 20471 ac_status=$? 20472 grep -v '^ *+' conftest.er1 >conftest.err 20473 rm -f conftest.er1 20474 cat conftest.err >&5 20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20476 (exit $ac_status); } && { 20477 test -z "$ac_c_werror_flag" || 20478 test ! -s conftest.err 20479 } && test -s conftest.$ac_objext; then 20480 ac_cv_type__Bool=yes 20481else 20482 echo "$as_me: failed program was:" >&5 20483sed 's/^/| /' conftest.$ac_ext >&5 20484 20485 ac_cv_type__Bool=no 20486fi 20487 20488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20489fi 20490{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 20491echo "${ECHO_T}$ac_cv_type__Bool" >&6; } 20492if test $ac_cv_type__Bool = yes; then 20493 20494cat >>confdefs.h <<_ACEOF 20495#define HAVE__BOOL 1 20496_ACEOF 20497 20498 20499fi 20500 20501if test $ac_cv_header_stdbool_h = yes; then 20502 20503cat >>confdefs.h <<\_ACEOF 20504#define HAVE_STDBOOL_H 1 20505_ACEOF 20506 20507fi 20508 20509{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 20510echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 20511if test "${ac_cv_c_const+set}" = set; then 20512 echo $ECHO_N "(cached) $ECHO_C" >&6 20513else 20514 cat >conftest.$ac_ext <<_ACEOF 20515/* confdefs.h. */ 20516_ACEOF 20517cat confdefs.h >>conftest.$ac_ext 20518cat >>conftest.$ac_ext <<_ACEOF 20519/* end confdefs.h. */ 20520 20521int 20522main () 20523{ 20524/* FIXME: Include the comments suggested by Paul. */ 20525#ifndef __cplusplus 20526 /* Ultrix mips cc rejects this. */ 20527 typedef int charset[2]; 20528 const charset cs; 20529 /* SunOS 4.1.1 cc rejects this. */ 20530 char const *const *pcpcc; 20531 char **ppc; 20532 /* NEC SVR4.0.2 mips cc rejects this. */ 20533 struct point {int x, y;}; 20534 static struct point const zero = {0,0}; 20535 /* AIX XL C 1.02.0.0 rejects this. 20536 It does not let you subtract one const X* pointer from another in 20537 an arm of an if-expression whose if-part is not a constant 20538 expression */ 20539 const char *g = "string"; 20540 pcpcc = &g + (g ? g-g : 0); 20541 /* HPUX 7.0 cc rejects these. */ 20542 ++pcpcc; 20543 ppc = (char**) pcpcc; 20544 pcpcc = (char const *const *) ppc; 20545 { /* SCO 3.2v4 cc rejects this. */ 20546 char *t; 20547 char const *s = 0 ? (char *) 0 : (char const *) 0; 20548 20549 *t++ = 0; 20550 if (s) return 0; 20551 } 20552 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20553 int x[] = {25, 17}; 20554 const int *foo = &x[0]; 20555 ++foo; 20556 } 20557 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20558 typedef const int *iptr; 20559 iptr p = 0; 20560 ++p; 20561 } 20562 { /* AIX XL C 1.02.0.0 rejects this saying 20563 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20564 struct s { int j; const int *ap[3]; }; 20565 struct s *b; b->j = 5; 20566 } 20567 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20568 const int foo = 10; 20569 if (!foo) return 0; 20570 } 20571 return !cs[0] && !zero.x; 20572#endif 20573 20574 ; 20575 return 0; 20576} 20577_ACEOF 20578rm -f conftest.$ac_objext 20579if { (ac_try="$ac_compile" 20580case "(($ac_try" in 20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20582 *) ac_try_echo=$ac_try;; 20583esac 20584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20585 (eval "$ac_compile") 2>conftest.er1 20586 ac_status=$? 20587 grep -v '^ *+' conftest.er1 >conftest.err 20588 rm -f conftest.er1 20589 cat conftest.err >&5 20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20591 (exit $ac_status); } && { 20592 test -z "$ac_c_werror_flag" || 20593 test ! -s conftest.err 20594 } && test -s conftest.$ac_objext; then 20595 ac_cv_c_const=yes 20596else 20597 echo "$as_me: failed program was:" >&5 20598sed 's/^/| /' conftest.$ac_ext >&5 20599 20600 ac_cv_c_const=no 20601fi 20602 20603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20604fi 20605{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 20606echo "${ECHO_T}$ac_cv_c_const" >&6; } 20607if test $ac_cv_c_const = no; then 20608 20609cat >>confdefs.h <<\_ACEOF 20610#define const 20611_ACEOF 20612 20613fi 20614 20615{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 20616echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 20617if test "${ac_cv_struct_tm+set}" = set; then 20618 echo $ECHO_N "(cached) $ECHO_C" >&6 20619else 20620 cat >conftest.$ac_ext <<_ACEOF 20621/* confdefs.h. */ 20622_ACEOF 20623cat confdefs.h >>conftest.$ac_ext 20624cat >>conftest.$ac_ext <<_ACEOF 20625/* end confdefs.h. */ 20626#include <sys/types.h> 20627#include <time.h> 20628 20629int 20630main () 20631{ 20632struct tm tm; 20633 int *p = &tm.tm_sec; 20634 return !p; 20635 ; 20636 return 0; 20637} 20638_ACEOF 20639rm -f conftest.$ac_objext 20640if { (ac_try="$ac_compile" 20641case "(($ac_try" in 20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20643 *) ac_try_echo=$ac_try;; 20644esac 20645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20646 (eval "$ac_compile") 2>conftest.er1 20647 ac_status=$? 20648 grep -v '^ *+' conftest.er1 >conftest.err 20649 rm -f conftest.er1 20650 cat conftest.err >&5 20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20652 (exit $ac_status); } && { 20653 test -z "$ac_c_werror_flag" || 20654 test ! -s conftest.err 20655 } && test -s conftest.$ac_objext; then 20656 ac_cv_struct_tm=time.h 20657else 20658 echo "$as_me: failed program was:" >&5 20659sed 's/^/| /' conftest.$ac_ext >&5 20660 20661 ac_cv_struct_tm=sys/time.h 20662fi 20663 20664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20665fi 20666{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 20667echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 20668if test $ac_cv_struct_tm = sys/time.h; then 20669 20670cat >>confdefs.h <<\_ACEOF 20671#define TM_IN_SYS_TIME 1 20672_ACEOF 20673 20674fi 20675 20676 20677# Checks for library functions. 20678{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 20679echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 20680if test "${ac_cv_header_time+set}" = set; then 20681 echo $ECHO_N "(cached) $ECHO_C" >&6 20682else 20683 cat >conftest.$ac_ext <<_ACEOF 20684/* confdefs.h. */ 20685_ACEOF 20686cat confdefs.h >>conftest.$ac_ext 20687cat >>conftest.$ac_ext <<_ACEOF 20688/* end confdefs.h. */ 20689#include <sys/types.h> 20690#include <sys/time.h> 20691#include <time.h> 20692 20693int 20694main () 20695{ 20696if ((struct tm *) 0) 20697return 0; 20698 ; 20699 return 0; 20700} 20701_ACEOF 20702rm -f conftest.$ac_objext 20703if { (ac_try="$ac_compile" 20704case "(($ac_try" in 20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20706 *) ac_try_echo=$ac_try;; 20707esac 20708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20709 (eval "$ac_compile") 2>conftest.er1 20710 ac_status=$? 20711 grep -v '^ *+' conftest.er1 >conftest.err 20712 rm -f conftest.er1 20713 cat conftest.err >&5 20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20715 (exit $ac_status); } && { 20716 test -z "$ac_c_werror_flag" || 20717 test ! -s conftest.err 20718 } && test -s conftest.$ac_objext; then 20719 ac_cv_header_time=yes 20720else 20721 echo "$as_me: failed program was:" >&5 20722sed 's/^/| /' conftest.$ac_ext >&5 20723 20724 ac_cv_header_time=no 20725fi 20726 20727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20728fi 20729{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 20730echo "${ECHO_T}$ac_cv_header_time" >&6; } 20731if test $ac_cv_header_time = yes; then 20732 20733cat >>confdefs.h <<\_ACEOF 20734#define TIME_WITH_SYS_TIME 1 20735_ACEOF 20736 20737fi 20738 20739 20740 20741 20742 20743for ac_header in $ac_header_list 20744do 20745as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20747 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20750 echo $ECHO_N "(cached) $ECHO_C" >&6 20751fi 20752ac_res=`eval echo '${'$as_ac_Header'}'` 20753 { echo "$as_me:$LINENO: result: $ac_res" >&5 20754echo "${ECHO_T}$ac_res" >&6; } 20755else 20756 # Is the header compilable? 20757{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20759cat >conftest.$ac_ext <<_ACEOF 20760/* confdefs.h. */ 20761_ACEOF 20762cat confdefs.h >>conftest.$ac_ext 20763cat >>conftest.$ac_ext <<_ACEOF 20764/* end confdefs.h. */ 20765$ac_includes_default 20766#include <$ac_header> 20767_ACEOF 20768rm -f conftest.$ac_objext 20769if { (ac_try="$ac_compile" 20770case "(($ac_try" in 20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20772 *) ac_try_echo=$ac_try;; 20773esac 20774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20775 (eval "$ac_compile") 2>conftest.er1 20776 ac_status=$? 20777 grep -v '^ *+' conftest.er1 >conftest.err 20778 rm -f conftest.er1 20779 cat conftest.err >&5 20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20781 (exit $ac_status); } && { 20782 test -z "$ac_c_werror_flag" || 20783 test ! -s conftest.err 20784 } && test -s conftest.$ac_objext; then 20785 ac_header_compiler=yes 20786else 20787 echo "$as_me: failed program was:" >&5 20788sed 's/^/| /' conftest.$ac_ext >&5 20789 20790 ac_header_compiler=no 20791fi 20792 20793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20794{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20795echo "${ECHO_T}$ac_header_compiler" >&6; } 20796 20797# Is the header present? 20798{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20799echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20800cat >conftest.$ac_ext <<_ACEOF 20801/* confdefs.h. */ 20802_ACEOF 20803cat confdefs.h >>conftest.$ac_ext 20804cat >>conftest.$ac_ext <<_ACEOF 20805/* end confdefs.h. */ 20806#include <$ac_header> 20807_ACEOF 20808if { (ac_try="$ac_cpp conftest.$ac_ext" 20809case "(($ac_try" in 20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20811 *) ac_try_echo=$ac_try;; 20812esac 20813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20815 ac_status=$? 20816 grep -v '^ *+' conftest.er1 >conftest.err 20817 rm -f conftest.er1 20818 cat conftest.err >&5 20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20820 (exit $ac_status); } >/dev/null && { 20821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20822 test ! -s conftest.err 20823 }; then 20824 ac_header_preproc=yes 20825else 20826 echo "$as_me: failed program was:" >&5 20827sed 's/^/| /' conftest.$ac_ext >&5 20828 20829 ac_header_preproc=no 20830fi 20831 20832rm -f conftest.err conftest.$ac_ext 20833{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20834echo "${ECHO_T}$ac_header_preproc" >&6; } 20835 20836# So? What about this header? 20837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20838 yes:no: ) 20839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20840echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20842echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20843 ac_header_preproc=yes 20844 ;; 20845 no:yes:* ) 20846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20847echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20849echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20851echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20853echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20855echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20857echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20858 ( cat <<\_ASBOX 20859## -------------------------------------- ## 20860## Report this to nicolafragale@gmail.com ## 20861## -------------------------------------- ## 20862_ASBOX 20863 ) | sed "s/^/$as_me: WARNING: /" >&2 20864 ;; 20865esac 20866{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20869 echo $ECHO_N "(cached) $ECHO_C" >&6 20870else 20871 eval "$as_ac_Header=\$ac_header_preproc" 20872fi 20873ac_res=`eval echo '${'$as_ac_Header'}'` 20874 { echo "$as_me:$LINENO: result: $ac_res" >&5 20875echo "${ECHO_T}$ac_res" >&6; } 20876 20877fi 20878if test `eval echo '${'$as_ac_Header'}'` = yes; then 20879 cat >>confdefs.h <<_ACEOF 20880#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20881_ACEOF 20882 20883fi 20884 20885done 20886 20887 20888 20889 20890 20891 20892 20893 20894 20895for ac_func in $ac_func_list 20896do 20897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20898{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20900if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20901 echo $ECHO_N "(cached) $ECHO_C" >&6 20902else 20903 cat >conftest.$ac_ext <<_ACEOF 20904/* confdefs.h. */ 20905_ACEOF 20906cat confdefs.h >>conftest.$ac_ext 20907cat >>conftest.$ac_ext <<_ACEOF 20908/* end confdefs.h. */ 20909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20910 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20911#define $ac_func innocuous_$ac_func 20912 20913/* System header to define __stub macros and hopefully few prototypes, 20914 which can conflict with char $ac_func (); below. 20915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20916 <limits.h> exists even on freestanding compilers. */ 20917 20918#ifdef __STDC__ 20919# include <limits.h> 20920#else 20921# include <assert.h> 20922#endif 20923 20924#undef $ac_func 20925 20926/* Override any GCC internal prototype to avoid an error. 20927 Use char because int might match the return type of a GCC 20928 builtin and then its argument prototype would still apply. */ 20929#ifdef __cplusplus 20930extern "C" 20931#endif 20932char $ac_func (); 20933/* The GNU C library defines this for functions which it implements 20934 to always fail with ENOSYS. Some functions are actually named 20935 something starting with __ and the normal name is an alias. */ 20936#if defined __stub_$ac_func || defined __stub___$ac_func 20937choke me 20938#endif 20939 20940int 20941main () 20942{ 20943return $ac_func (); 20944 ; 20945 return 0; 20946} 20947_ACEOF 20948rm -f conftest.$ac_objext conftest$ac_exeext 20949if { (ac_try="$ac_link" 20950case "(($ac_try" in 20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20952 *) ac_try_echo=$ac_try;; 20953esac 20954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20955 (eval "$ac_link") 2>conftest.er1 20956 ac_status=$? 20957 grep -v '^ *+' conftest.er1 >conftest.err 20958 rm -f conftest.er1 20959 cat conftest.err >&5 20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20961 (exit $ac_status); } && { 20962 test -z "$ac_c_werror_flag" || 20963 test ! -s conftest.err 20964 } && test -s conftest$ac_exeext && 20965 $as_test_x conftest$ac_exeext; then 20966 eval "$as_ac_var=yes" 20967else 20968 echo "$as_me: failed program was:" >&5 20969sed 's/^/| /' conftest.$ac_ext >&5 20970 20971 eval "$as_ac_var=no" 20972fi 20973 20974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20975 conftest$ac_exeext conftest.$ac_ext 20976fi 20977ac_res=`eval echo '${'$as_ac_var'}'` 20978 { echo "$as_me:$LINENO: result: $ac_res" >&5 20979echo "${ECHO_T}$ac_res" >&6; } 20980if test `eval echo '${'$as_ac_var'}'` = yes; then 20981 cat >>confdefs.h <<_ACEOF 20982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20983_ACEOF 20984 20985fi 20986done 20987 20988 20989 20990 20991 20992 20993 20994 20995 20996 20997 20998 20999 21000 21001 21002 21003 21004{ echo "$as_me:$LINENO: checking for working mktime" >&5 21005echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; } 21006if test "${ac_cv_func_working_mktime+set}" = set; then 21007 echo $ECHO_N "(cached) $ECHO_C" >&6 21008else 21009 if test "$cross_compiling" = yes; then 21010 ac_cv_func_working_mktime=no 21011else 21012 cat >conftest.$ac_ext <<_ACEOF 21013/* confdefs.h. */ 21014_ACEOF 21015cat confdefs.h >>conftest.$ac_ext 21016cat >>conftest.$ac_ext <<_ACEOF 21017/* end confdefs.h. */ 21018/* Test program from Paul Eggert and Tony Leneis. */ 21019#ifdef TIME_WITH_SYS_TIME 21020# include <sys/time.h> 21021# include <time.h> 21022#else 21023# ifdef HAVE_SYS_TIME_H 21024# include <sys/time.h> 21025# else 21026# include <time.h> 21027# endif 21028#endif 21029 21030#include <stdlib.h> 21031 21032#ifdef HAVE_UNISTD_H 21033# include <unistd.h> 21034#endif 21035 21036#ifndef HAVE_ALARM 21037# define alarm(X) /* empty */ 21038#endif 21039 21040/* Work around redefinition to rpl_putenv by other config tests. */ 21041#undef putenv 21042 21043static time_t time_t_max; 21044static time_t time_t_min; 21045 21046/* Values we'll use to set the TZ environment variable. */ 21047static char *tz_strings[] = { 21048 (char *) 0, "TZ=GMT0", "TZ=JST-9", 21049 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" 21050}; 21051#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) 21052 21053/* Return 0 if mktime fails to convert a date in the spring-forward gap. 21054 Based on a problem report from Andreas Jaeger. */ 21055static int 21056spring_forward_gap () 21057{ 21058 /* glibc (up to about 1998-10-07) failed this test. */ 21059 struct tm tm; 21060 21061 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 21062 instead of "TZ=America/Vancouver" in order to detect the bug even 21063 on systems that don't support the Olson extension, or don't have the 21064 full zoneinfo tables installed. */ 21065 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 21066 21067 tm.tm_year = 98; 21068 tm.tm_mon = 3; 21069 tm.tm_mday = 5; 21070 tm.tm_hour = 2; 21071 tm.tm_min = 0; 21072 tm.tm_sec = 0; 21073 tm.tm_isdst = -1; 21074 return mktime (&tm) != (time_t) -1; 21075} 21076 21077static int 21078mktime_test1 (now) 21079 time_t now; 21080{ 21081 struct tm *lt; 21082 return ! (lt = localtime (&now)) || mktime (lt) == now; 21083} 21084 21085static int 21086mktime_test (now) 21087 time_t now; 21088{ 21089 return (mktime_test1 (now) 21090 && mktime_test1 ((time_t) (time_t_max - now)) 21091 && mktime_test1 ((time_t) (time_t_min + now))); 21092} 21093 21094static int 21095irix_6_4_bug () 21096{ 21097 /* Based on code from Ariel Faigon. */ 21098 struct tm tm; 21099 tm.tm_year = 96; 21100 tm.tm_mon = 3; 21101 tm.tm_mday = 0; 21102 tm.tm_hour = 0; 21103 tm.tm_min = 0; 21104 tm.tm_sec = 0; 21105 tm.tm_isdst = -1; 21106 mktime (&tm); 21107 return tm.tm_mon == 2 && tm.tm_mday == 31; 21108} 21109 21110static int 21111bigtime_test (j) 21112 int j; 21113{ 21114 struct tm tm; 21115 time_t now; 21116 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; 21117 now = mktime (&tm); 21118 if (now != (time_t) -1) 21119 { 21120 struct tm *lt = localtime (&now); 21121 if (! (lt 21122 && lt->tm_year == tm.tm_year 21123 && lt->tm_mon == tm.tm_mon 21124 && lt->tm_mday == tm.tm_mday 21125 && lt->tm_hour == tm.tm_hour 21126 && lt->tm_min == tm.tm_min 21127 && lt->tm_sec == tm.tm_sec 21128 && lt->tm_yday == tm.tm_yday 21129 && lt->tm_wday == tm.tm_wday 21130 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) 21131 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) 21132 return 0; 21133 } 21134 return 1; 21135} 21136 21137static int 21138year_2050_test () 21139{ 21140 /* The correct answer for 2050-02-01 00:00:00 in Pacific time, 21141 ignoring leap seconds. */ 21142 unsigned long int answer = 2527315200UL; 21143 21144 struct tm tm; 21145 time_t t; 21146 tm.tm_year = 2050 - 1900; 21147 tm.tm_mon = 2 - 1; 21148 tm.tm_mday = 1; 21149 tm.tm_hour = tm.tm_min = tm.tm_sec = 0; 21150 tm.tm_isdst = -1; 21151 21152 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 21153 instead of "TZ=America/Vancouver" in order to detect the bug even 21154 on systems that don't support the Olson extension, or don't have the 21155 full zoneinfo tables installed. */ 21156 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 21157 21158 t = mktime (&tm); 21159 21160 /* Check that the result is either a failure, or close enough 21161 to the correct answer that we can assume the discrepancy is 21162 due to leap seconds. */ 21163 return (t == (time_t) -1 21164 || (0 < t && answer - 120 <= t && t <= answer + 120)); 21165} 21166 21167int 21168main () 21169{ 21170 time_t t, delta; 21171 int i, j; 21172 21173 /* This test makes some buggy mktime implementations loop. 21174 Give up after 60 seconds; a mktime slower than that 21175 isn't worth using anyway. */ 21176 alarm (60); 21177 21178 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) 21179 continue; 21180 time_t_max--; 21181 if ((time_t) -1 < 0) 21182 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) 21183 continue; 21184 delta = time_t_max / 997; /* a suitable prime number */ 21185 for (i = 0; i < N_STRINGS; i++) 21186 { 21187 if (tz_strings[i]) 21188 putenv (tz_strings[i]); 21189 21190 for (t = 0; t <= time_t_max - delta; t += delta) 21191 if (! mktime_test (t)) 21192 return 1; 21193 if (! (mktime_test ((time_t) 1) 21194 && mktime_test ((time_t) (60 * 60)) 21195 && mktime_test ((time_t) (60 * 60 * 24)))) 21196 return 1; 21197 21198 for (j = 1; 0 < j; j *= 2) 21199 if (! bigtime_test (j)) 21200 return 1; 21201 if (! bigtime_test (j - 1)) 21202 return 1; 21203 } 21204 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 21205} 21206_ACEOF 21207rm -f conftest$ac_exeext 21208if { (ac_try="$ac_link" 21209case "(($ac_try" in 21210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21211 *) ac_try_echo=$ac_try;; 21212esac 21213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21214 (eval "$ac_link") 2>&5 21215 ac_status=$? 21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21218 { (case "(($ac_try" in 21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21220 *) ac_try_echo=$ac_try;; 21221esac 21222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21223 (eval "$ac_try") 2>&5 21224 ac_status=$? 21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21226 (exit $ac_status); }; }; then 21227 ac_cv_func_working_mktime=yes 21228else 21229 echo "$as_me: program exited with status $ac_status" >&5 21230echo "$as_me: failed program was:" >&5 21231sed 's/^/| /' conftest.$ac_ext >&5 21232 21233( exit $ac_status ) 21234ac_cv_func_working_mktime=no 21235fi 21236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21237fi 21238 21239 21240fi 21241{ echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 21242echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; } 21243if test $ac_cv_func_working_mktime = no; then 21244 case " $LIBOBJS " in 21245 *" mktime.$ac_objext "* ) ;; 21246 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" 21247 ;; 21248esac 21249 21250fi 21251 21252 21253for ac_func in localtime_r 21254do 21255as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21256{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21257echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21258if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21259 echo $ECHO_N "(cached) $ECHO_C" >&6 21260else 21261 cat >conftest.$ac_ext <<_ACEOF 21262/* confdefs.h. */ 21263_ACEOF 21264cat confdefs.h >>conftest.$ac_ext 21265cat >>conftest.$ac_ext <<_ACEOF 21266/* end confdefs.h. */ 21267/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21268 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21269#define $ac_func innocuous_$ac_func 21270 21271/* System header to define __stub macros and hopefully few prototypes, 21272 which can conflict with char $ac_func (); below. 21273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21274 <limits.h> exists even on freestanding compilers. */ 21275 21276#ifdef __STDC__ 21277# include <limits.h> 21278#else 21279# include <assert.h> 21280#endif 21281 21282#undef $ac_func 21283 21284/* Override any GCC internal prototype to avoid an error. 21285 Use char because int might match the return type of a GCC 21286 builtin and then its argument prototype would still apply. */ 21287#ifdef __cplusplus 21288extern "C" 21289#endif 21290char $ac_func (); 21291/* The GNU C library defines this for functions which it implements 21292 to always fail with ENOSYS. Some functions are actually named 21293 something starting with __ and the normal name is an alias. */ 21294#if defined __stub_$ac_func || defined __stub___$ac_func 21295choke me 21296#endif 21297 21298int 21299main () 21300{ 21301return $ac_func (); 21302 ; 21303 return 0; 21304} 21305_ACEOF 21306rm -f conftest.$ac_objext conftest$ac_exeext 21307if { (ac_try="$ac_link" 21308case "(($ac_try" in 21309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21310 *) ac_try_echo=$ac_try;; 21311esac 21312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21313 (eval "$ac_link") 2>conftest.er1 21314 ac_status=$? 21315 grep -v '^ *+' conftest.er1 >conftest.err 21316 rm -f conftest.er1 21317 cat conftest.err >&5 21318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21319 (exit $ac_status); } && { 21320 test -z "$ac_c_werror_flag" || 21321 test ! -s conftest.err 21322 } && test -s conftest$ac_exeext && 21323 $as_test_x conftest$ac_exeext; then 21324 eval "$as_ac_var=yes" 21325else 21326 echo "$as_me: failed program was:" >&5 21327sed 's/^/| /' conftest.$ac_ext >&5 21328 21329 eval "$as_ac_var=no" 21330fi 21331 21332rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21333 conftest$ac_exeext conftest.$ac_ext 21334fi 21335ac_res=`eval echo '${'$as_ac_var'}'` 21336 { echo "$as_me:$LINENO: result: $ac_res" >&5 21337echo "${ECHO_T}$ac_res" >&6; } 21338if test `eval echo '${'$as_ac_var'}'` = yes; then 21339 cat >>confdefs.h <<_ACEOF 21340#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21341_ACEOF 21342 21343fi 21344done 21345 21346 21347 21348DESKTOP_ICON_PATH='$(datadir)' 21349 21350 21351 21352GETTEXT_PACKAGE=$RUBRICA_NAME 21353 21354cat >>confdefs.h <<_ACEOF 21355#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 21356_ACEOF 21357 21358 21359 21360 21361 21362 21363 21364cat >>confdefs.h <<_ACEOF 21365#define RUBRICA_NAME "$RUBRICA_NAME" 21366_ACEOF 21367 21368 21369cat >>confdefs.h <<_ACEOF 21370#define RUBRICA_CAP_NAME "$RUBRICA_CAP_NAME" 21371_ACEOF 21372 21373 21374cat >>confdefs.h <<_ACEOF 21375#define RUBRICA_VERSION "$RUBRICA_VERSION" 21376_ACEOF 21377 21378 21379 21380 21381 21382if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21383 if test -n "$ac_tool_prefix"; then 21384 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21385set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21386{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21388if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 21389 echo $ECHO_N "(cached) $ECHO_C" >&6 21390else 21391 case $PKG_CONFIG in 21392 [\\/]* | ?:[\\/]*) 21393 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21394 ;; 21395 *) 21396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21397for as_dir in $PATH 21398do 21399 IFS=$as_save_IFS 21400 test -z "$as_dir" && as_dir=. 21401 for ac_exec_ext in '' $ac_executable_extensions; do 21402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21403 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21405 break 2 21406 fi 21407done 21408done 21409IFS=$as_save_IFS 21410 21411 ;; 21412esac 21413fi 21414PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21415if test -n "$PKG_CONFIG"; then 21416 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 21417echo "${ECHO_T}$PKG_CONFIG" >&6; } 21418else 21419 { echo "$as_me:$LINENO: result: no" >&5 21420echo "${ECHO_T}no" >&6; } 21421fi 21422 21423 21424fi 21425if test -z "$ac_cv_path_PKG_CONFIG"; then 21426 ac_pt_PKG_CONFIG=$PKG_CONFIG 21427 # Extract the first word of "pkg-config", so it can be a program name with args. 21428set dummy pkg-config; ac_word=$2 21429{ echo "$as_me:$LINENO: checking for $ac_word" >&5 21430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 21431if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 21432 echo $ECHO_N "(cached) $ECHO_C" >&6 21433else 21434 case $ac_pt_PKG_CONFIG in 21435 [\\/]* | ?:[\\/]*) 21436 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21437 ;; 21438 *) 21439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21440for as_dir in $PATH 21441do 21442 IFS=$as_save_IFS 21443 test -z "$as_dir" && as_dir=. 21444 for ac_exec_ext in '' $ac_executable_extensions; do 21445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21446 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 21448 break 2 21449 fi 21450done 21451done 21452IFS=$as_save_IFS 21453 21454 ;; 21455esac 21456fi 21457ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21458if test -n "$ac_pt_PKG_CONFIG"; then 21459 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 21460echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 21461else 21462 { echo "$as_me:$LINENO: result: no" >&5 21463echo "${ECHO_T}no" >&6; } 21464fi 21465 21466 if test "x$ac_pt_PKG_CONFIG" = x; then 21467 PKG_CONFIG="" 21468 else 21469 case $cross_compiling:$ac_tool_warned in 21470yes:) 21471{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 21472whose name does not start with the host triplet. If you think this 21473configuration is useful to you, please write to autoconf@gnu.org." >&5 21474echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 21475whose name does not start with the host triplet. If you think this 21476configuration is useful to you, please write to autoconf@gnu.org." >&2;} 21477ac_tool_warned=yes ;; 21478esac 21479 PKG_CONFIG=$ac_pt_PKG_CONFIG 21480 fi 21481else 21482 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21483fi 21484 21485fi 21486if test -n "$PKG_CONFIG"; then 21487 _pkg_min_version=0.9.0 21488 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 21489echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 21490 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21491 { echo "$as_me:$LINENO: result: yes" >&5 21492echo "${ECHO_T}yes" >&6; } 21493 else 21494 { echo "$as_me:$LINENO: result: no" >&5 21495echo "${ECHO_T}no" >&6; } 21496 PKG_CONFIG="" 21497 fi 21498 21499fi 21500 21501pkg_failed=no 21502{ echo "$as_me:$LINENO: checking for LIBRAL" >&5 21503echo $ECHO_N "checking for LIBRAL... $ECHO_C" >&6; } 21504 21505if test -n "$PKG_CONFIG"; then 21506 if test -n "$LIBRAL_CFLAGS"; then 21507 pkg_cv_LIBRAL_CFLAGS="$LIBRAL_CFLAGS" 21508 else 21509 if test -n "$PKG_CONFIG" && \ 21510 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0\"") >&5 21511 ($PKG_CONFIG --exists --print-errors "gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0") 2>&5 21512 ac_status=$? 21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21514 (exit $ac_status); }; then 21515 pkg_cv_LIBRAL_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0" 2>/dev/null` 21516else 21517 pkg_failed=yes 21518fi 21519 fi 21520else 21521 pkg_failed=untried 21522fi 21523if test -n "$PKG_CONFIG"; then 21524 if test -n "$LIBRAL_LIBS"; then 21525 pkg_cv_LIBRAL_LIBS="$LIBRAL_LIBS" 21526 else 21527 if test -n "$PKG_CONFIG" && \ 21528 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0\"") >&5 21529 ($PKG_CONFIG --exists --print-errors "gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0") 2>&5 21530 ac_status=$? 21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21532 (exit $ac_status); }; then 21533 pkg_cv_LIBRAL_LIBS=`$PKG_CONFIG --libs "gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0" 2>/dev/null` 21534else 21535 pkg_failed=yes 21536fi 21537 fi 21538else 21539 pkg_failed=untried 21540fi 21541 21542 21543 21544if test $pkg_failed = yes; then 21545 21546if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21547 _pkg_short_errors_supported=yes 21548else 21549 _pkg_short_errors_supported=no 21550fi 21551 if test $_pkg_short_errors_supported = yes; then 21552 LIBRAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0"` 21553 else 21554 LIBRAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0"` 21555 fi 21556 # Put the nasty error message in config.log where it belongs 21557 echo "$LIBRAL_PKG_ERRORS" >&5 21558 21559 { { echo "$as_me:$LINENO: error: Package requirements (gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0) were not met: 21560 21561$LIBRAL_PKG_ERRORS 21562 21563Consider adjusting the PKG_CONFIG_PATH environment variable if you 21564installed software in a non-standard prefix. 21565 21566Alternatively, you may set the environment variables LIBRAL_CFLAGS 21567and LIBRAL_LIBS to avoid the need to call pkg-config. 21568See the pkg-config man page for more details. 21569" >&5 21570echo "$as_me: error: Package requirements (gobject-2.0 gmodule-2.0 glib-2.0 libxml-2.0) were not met: 21571 21572$LIBRAL_PKG_ERRORS 21573 21574Consider adjusting the PKG_CONFIG_PATH environment variable if you 21575installed software in a non-standard prefix. 21576 21577Alternatively, you may set the environment variables LIBRAL_CFLAGS 21578and LIBRAL_LIBS to avoid the need to call pkg-config. 21579See the pkg-config man page for more details. 21580" >&2;} 21581 { (exit 1); exit 1; }; } 21582elif test $pkg_failed = untried; then 21583 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21584is in your PATH or set the PKG_CONFIG environment variable to the full 21585path to pkg-config. 21586 21587Alternatively, you may set the environment variables LIBRAL_CFLAGS 21588and LIBRAL_LIBS to avoid the need to call pkg-config. 21589See the pkg-config man page for more details. 21590 21591To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21592See \`config.log' for more details." >&5 21593echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21594is in your PATH or set the PKG_CONFIG environment variable to the full 21595path to pkg-config. 21596 21597Alternatively, you may set the environment variables LIBRAL_CFLAGS 21598and LIBRAL_LIBS to avoid the need to call pkg-config. 21599See the pkg-config man page for more details. 21600 21601To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21602See \`config.log' for more details." >&2;} 21603 { (exit 1); exit 1; }; } 21604else 21605 LIBRAL_CFLAGS=$pkg_cv_LIBRAL_CFLAGS 21606 LIBRAL_LIBS=$pkg_cv_LIBRAL_LIBS 21607 { echo "$as_me:$LINENO: result: yes" >&5 21608echo "${ECHO_T}yes" >&6; } 21609 : 21610fi 21611 21612 21613 21614 21615pkg_failed=no 21616{ echo "$as_me:$LINENO: checking for RUBRICA" >&5 21617echo $ECHO_N "checking for RUBRICA... $ECHO_C" >&6; } 21618 21619if test -n "$PKG_CONFIG"; then 21620 if test -n "$RUBRICA_CFLAGS"; then 21621 pkg_cv_RUBRICA_CFLAGS="$RUBRICA_CFLAGS" 21622 else 21623 if test -n "$PKG_CONFIG" && \ 21624 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0 libnotify\"") >&5 21625 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0 libnotify") 2>&5 21626 ac_status=$? 21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21628 (exit $ac_status); }; then 21629 pkg_cv_RUBRICA_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0 libnotify" 2>/dev/null` 21630else 21631 pkg_failed=yes 21632fi 21633 fi 21634else 21635 pkg_failed=untried 21636fi 21637if test -n "$PKG_CONFIG"; then 21638 if test -n "$RUBRICA_LIBS"; then 21639 pkg_cv_RUBRICA_LIBS="$RUBRICA_LIBS" 21640 else 21641 if test -n "$PKG_CONFIG" && \ 21642 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0 libnotify\"") >&5 21643 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0 libnotify") 2>&5 21644 ac_status=$? 21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21646 (exit $ac_status); }; then 21647 pkg_cv_RUBRICA_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0 libnotify" 2>/dev/null` 21648else 21649 pkg_failed=yes 21650fi 21651 fi 21652else 21653 pkg_failed=untried 21654fi 21655 21656 21657 21658if test $pkg_failed = yes; then 21659 21660if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21661 _pkg_short_errors_supported=yes 21662else 21663 _pkg_short_errors_supported=no 21664fi 21665 if test $_pkg_short_errors_supported = yes; then 21666 RUBRICA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0 libnotify"` 21667 else 21668 RUBRICA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0 libnotify"` 21669 fi 21670 # Put the nasty error message in config.log where it belongs 21671 echo "$RUBRICA_PKG_ERRORS" >&5 21672 21673 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0 libnotify) were not met: 21674 21675$RUBRICA_PKG_ERRORS 21676 21677Consider adjusting the PKG_CONFIG_PATH environment variable if you 21678installed software in a non-standard prefix. 21679 21680Alternatively, you may set the environment variables RUBRICA_CFLAGS 21681and RUBRICA_LIBS to avoid the need to call pkg-config. 21682See the pkg-config man page for more details. 21683" >&5 21684echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.6 glib-2.0 >= 2.6 libglade-2.0 gconf-2.0 libnotify) were not met: 21685 21686$RUBRICA_PKG_ERRORS 21687 21688Consider adjusting the PKG_CONFIG_PATH environment variable if you 21689installed software in a non-standard prefix. 21690 21691Alternatively, you may set the environment variables RUBRICA_CFLAGS 21692and RUBRICA_LIBS to avoid the need to call pkg-config. 21693See the pkg-config man page for more details. 21694" >&2;} 21695 { (exit 1); exit 1; }; } 21696elif test $pkg_failed = untried; then 21697 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 21698is in your PATH or set the PKG_CONFIG environment variable to the full 21699path to pkg-config. 21700 21701Alternatively, you may set the environment variables RUBRICA_CFLAGS 21702and RUBRICA_LIBS to avoid the need to call pkg-config. 21703See the pkg-config man page for more details. 21704 21705To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21706See \`config.log' for more details." >&5 21707echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 21708is in your PATH or set the PKG_CONFIG environment variable to the full 21709path to pkg-config. 21710 21711Alternatively, you may set the environment variables RUBRICA_CFLAGS 21712and RUBRICA_LIBS to avoid the need to call pkg-config. 21713See the pkg-config man page for more details. 21714 21715To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21716See \`config.log' for more details." >&2;} 21717 { (exit 1); exit 1; }; } 21718else 21719 RUBRICA_CFLAGS=$pkg_cv_RUBRICA_CFLAGS 21720 RUBRICA_LIBS=$pkg_cv_RUBRICA_LIBS 21721 { echo "$as_me:$LINENO: result: yes" >&5 21722echo "${ECHO_T}yes" >&6; } 21723 : 21724fi 21725 21726 21727 21728 21729ALL_LINGUAS="it uk de fr ru" 21730 21731 21732for ac_header in locale.h 21733do 21734as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21736 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21739 echo $ECHO_N "(cached) $ECHO_C" >&6 21740fi 21741ac_res=`eval echo '${'$as_ac_Header'}'` 21742 { echo "$as_me:$LINENO: result: $ac_res" >&5 21743echo "${ECHO_T}$ac_res" >&6; } 21744else 21745 # Is the header compilable? 21746{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21748cat >conftest.$ac_ext <<_ACEOF 21749/* confdefs.h. */ 21750_ACEOF 21751cat confdefs.h >>conftest.$ac_ext 21752cat >>conftest.$ac_ext <<_ACEOF 21753/* end confdefs.h. */ 21754$ac_includes_default 21755#include <$ac_header> 21756_ACEOF 21757rm -f conftest.$ac_objext 21758if { (ac_try="$ac_compile" 21759case "(($ac_try" in 21760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21761 *) ac_try_echo=$ac_try;; 21762esac 21763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21764 (eval "$ac_compile") 2>conftest.er1 21765 ac_status=$? 21766 grep -v '^ *+' conftest.er1 >conftest.err 21767 rm -f conftest.er1 21768 cat conftest.err >&5 21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21770 (exit $ac_status); } && { 21771 test -z "$ac_c_werror_flag" || 21772 test ! -s conftest.err 21773 } && test -s conftest.$ac_objext; then 21774 ac_header_compiler=yes 21775else 21776 echo "$as_me: failed program was:" >&5 21777sed 's/^/| /' conftest.$ac_ext >&5 21778 21779 ac_header_compiler=no 21780fi 21781 21782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21783{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21784echo "${ECHO_T}$ac_header_compiler" >&6; } 21785 21786# Is the header present? 21787{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21788echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21789cat >conftest.$ac_ext <<_ACEOF 21790/* confdefs.h. */ 21791_ACEOF 21792cat confdefs.h >>conftest.$ac_ext 21793cat >>conftest.$ac_ext <<_ACEOF 21794/* end confdefs.h. */ 21795#include <$ac_header> 21796_ACEOF 21797if { (ac_try="$ac_cpp conftest.$ac_ext" 21798case "(($ac_try" in 21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21800 *) ac_try_echo=$ac_try;; 21801esac 21802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21804 ac_status=$? 21805 grep -v '^ *+' conftest.er1 >conftest.err 21806 rm -f conftest.er1 21807 cat conftest.err >&5 21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21809 (exit $ac_status); } >/dev/null && { 21810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 21811 test ! -s conftest.err 21812 }; then 21813 ac_header_preproc=yes 21814else 21815 echo "$as_me: failed program was:" >&5 21816sed 's/^/| /' conftest.$ac_ext >&5 21817 21818 ac_header_preproc=no 21819fi 21820 21821rm -f conftest.err conftest.$ac_ext 21822{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21823echo "${ECHO_T}$ac_header_preproc" >&6; } 21824 21825# So? What about this header? 21826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21827 yes:no: ) 21828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21829echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21831echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21832 ac_header_preproc=yes 21833 ;; 21834 no:yes:* ) 21835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21836echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21838echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21840echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21842echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21844echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21846echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21847 ( cat <<\_ASBOX 21848## -------------------------------------- ## 21849## Report this to nicolafragale@gmail.com ## 21850## -------------------------------------- ## 21851_ASBOX 21852 ) | sed "s/^/$as_me: WARNING: /" >&2 21853 ;; 21854esac 21855{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21858 echo $ECHO_N "(cached) $ECHO_C" >&6 21859else 21860 eval "$as_ac_Header=\$ac_header_preproc" 21861fi 21862ac_res=`eval echo '${'$as_ac_Header'}'` 21863 { echo "$as_me:$LINENO: result: $ac_res" >&5 21864echo "${ECHO_T}$ac_res" >&6; } 21865 21866fi 21867if test `eval echo '${'$as_ac_Header'}'` = yes; then 21868 cat >>confdefs.h <<_ACEOF 21869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21870_ACEOF 21871 21872fi 21873 21874done 21875 21876 if test $ac_cv_header_locale_h = yes; then 21877 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 21878echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } 21879if test "${am_cv_val_LC_MESSAGES+set}" = set; then 21880 echo $ECHO_N "(cached) $ECHO_C" >&6 21881else 21882 cat >conftest.$ac_ext <<_ACEOF 21883/* confdefs.h. */ 21884_ACEOF 21885cat confdefs.h >>conftest.$ac_ext 21886cat >>conftest.$ac_ext <<_ACEOF 21887/* end confdefs.h. */ 21888#include <locale.h> 21889int 21890main () 21891{ 21892return LC_MESSAGES 21893 ; 21894 return 0; 21895} 21896_ACEOF 21897rm -f conftest.$ac_objext conftest$ac_exeext 21898if { (ac_try="$ac_link" 21899case "(($ac_try" in 21900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21901 *) ac_try_echo=$ac_try;; 21902esac 21903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21904 (eval "$ac_link") 2>conftest.er1 21905 ac_status=$? 21906 grep -v '^ *+' conftest.er1 >conftest.err 21907 rm -f conftest.er1 21908 cat conftest.err >&5 21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21910 (exit $ac_status); } && { 21911 test -z "$ac_c_werror_flag" || 21912 test ! -s conftest.err 21913 } && test -s conftest$ac_exeext && 21914 $as_test_x conftest$ac_exeext; then 21915 am_cv_val_LC_MESSAGES=yes 21916else 21917 echo "$as_me: failed program was:" >&5 21918sed 's/^/| /' conftest.$ac_ext >&5 21919 21920 am_cv_val_LC_MESSAGES=no 21921fi 21922 21923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 21924 conftest$ac_exeext conftest.$ac_ext 21925fi 21926{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 21927echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } 21928 if test $am_cv_val_LC_MESSAGES = yes; then 21929 21930cat >>confdefs.h <<\_ACEOF 21931#define HAVE_LC_MESSAGES 1 21932_ACEOF 21933 21934 fi 21935 fi 21936 USE_NLS=yes 21937 21938 21939 gt_cv_have_gettext=no 21940 21941 CATOBJEXT=NONE 21942 XGETTEXT=: 21943 INTLLIBS= 21944 21945 if test "${ac_cv_header_libintl_h+set}" = set; then 21946 { echo "$as_me:$LINENO: checking for libintl.h" >&5 21947echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } 21948if test "${ac_cv_header_libintl_h+set}" = set; then 21949 echo $ECHO_N "(cached) $ECHO_C" >&6 21950fi 21951{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 21952echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } 21953else 21954 # Is the header compilable? 21955{ echo "$as_me:$LINENO: checking libintl.h usability" >&5 21956echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; } 21957cat >conftest.$ac_ext <<_ACEOF 21958/* confdefs.h. */ 21959_ACEOF 21960cat confdefs.h >>conftest.$ac_ext 21961cat >>conftest.$ac_ext <<_ACEOF 21962/* end confdefs.h. */ 21963$ac_includes_default 21964#include <libintl.h> 21965_ACEOF 21966rm -f conftest.$ac_objext 21967if { (ac_try="$ac_compile" 21968case "(($ac_try" in 21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21970 *) ac_try_echo=$ac_try;; 21971esac 21972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21973 (eval "$ac_compile") 2>conftest.er1 21974 ac_status=$? 21975 grep -v '^ *+' conftest.er1 >conftest.err 21976 rm -f conftest.er1 21977 cat conftest.err >&5 21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21979 (exit $ac_status); } && { 21980 test -z "$ac_c_werror_flag" || 21981 test ! -s conftest.err 21982 } && test -s conftest.$ac_objext; then 21983 ac_header_compiler=yes 21984else 21985 echo "$as_me: failed program was:" >&5 21986sed 's/^/| /' conftest.$ac_ext >&5 21987 21988 ac_header_compiler=no 21989fi 21990 21991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21992{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21993echo "${ECHO_T}$ac_header_compiler" >&6; } 21994 21995# Is the header present? 21996{ echo "$as_me:$LINENO: checking libintl.h presence" >&5 21997echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; } 21998cat >conftest.$ac_ext <<_ACEOF 21999/* confdefs.h. */ 22000_ACEOF 22001cat confdefs.h >>conftest.$ac_ext 22002cat >>conftest.$ac_ext <<_ACEOF 22003/* end confdefs.h. */ 22004#include <libintl.h> 22005_ACEOF 22006if { (ac_try="$ac_cpp conftest.$ac_ext" 22007case "(($ac_try" in 22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22009 *) ac_try_echo=$ac_try;; 22010esac 22011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 22013 ac_status=$? 22014 grep -v '^ *+' conftest.er1 >conftest.err 22015 rm -f conftest.er1 22016 cat conftest.err >&5 22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22018 (exit $ac_status); } >/dev/null && { 22019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 22020 test ! -s conftest.err 22021 }; then 22022 ac_header_preproc=yes 22023else 22024 echo "$as_me: failed program was:" >&5 22025sed 's/^/| /' conftest.$ac_ext >&5 22026 22027 ac_header_preproc=no 22028fi 22029 22030rm -f conftest.err conftest.$ac_ext 22031{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 22032echo "${ECHO_T}$ac_header_preproc" >&6; } 22033 22034# So? What about this header? 22035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 22036 yes:no: ) 22037 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 22038echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 22039 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 22040echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} 22041 ac_header_preproc=yes 22042 ;; 22043 no:yes:* ) 22044 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 22045echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} 22046 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 22047echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} 22048 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 22049echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} 22050 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 22051echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} 22052 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 22053echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} 22054 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 22055echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} 22056 ( cat <<\_ASBOX 22057## -------------------------------------- ## 22058## Report this to nicolafragale@gmail.com ## 22059## -------------------------------------- ## 22060_ASBOX 22061 ) | sed "s/^/$as_me: WARNING: /" >&2 22062 ;; 22063esac 22064{ echo "$as_me:$LINENO: checking for libintl.h" >&5 22065echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } 22066if test "${ac_cv_header_libintl_h+set}" = set; then 22067 echo $ECHO_N "(cached) $ECHO_C" >&6 22068else 22069 ac_cv_header_libintl_h=$ac_header_preproc 22070fi 22071{ echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 22072echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } 22073 22074fi 22075if test $ac_cv_header_libintl_h = yes; then 22076 gt_cv_func_dgettext_libintl="no" 22077 libintl_extra_libs="" 22078 22079 # 22080 # First check in libc 22081 # 22082 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5 22083echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; } 22084if test "${gt_cv_func_ngettext_libc+set}" = set; then 22085 echo $ECHO_N "(cached) $ECHO_C" >&6 22086else 22087 cat >conftest.$ac_ext <<_ACEOF 22088/* confdefs.h. */ 22089_ACEOF 22090cat confdefs.h >>conftest.$ac_ext 22091cat >>conftest.$ac_ext <<_ACEOF 22092/* end confdefs.h. */ 22093 22094#include <libintl.h> 22095 22096int 22097main () 22098{ 22099return !ngettext ("","", 1) 22100 ; 22101 return 0; 22102} 22103_ACEOF 22104rm -f conftest.$ac_objext conftest$ac_exeext 22105if { (ac_try="$ac_link" 22106case "(($ac_try" in 22107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22108 *) ac_try_echo=$ac_try;; 22109esac 22110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22111 (eval "$ac_link") 2>conftest.er1 22112 ac_status=$? 22113 grep -v '^ *+' conftest.er1 >conftest.err 22114 rm -f conftest.er1 22115 cat conftest.err >&5 22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22117 (exit $ac_status); } && { 22118 test -z "$ac_c_werror_flag" || 22119 test ! -s conftest.err 22120 } && test -s conftest$ac_exeext && 22121 $as_test_x conftest$ac_exeext; then 22122 gt_cv_func_ngettext_libc=yes 22123else 22124 echo "$as_me: failed program was:" >&5 22125sed 's/^/| /' conftest.$ac_ext >&5 22126 22127 gt_cv_func_ngettext_libc=no 22128fi 22129 22130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22131 conftest$ac_exeext conftest.$ac_ext 22132 22133fi 22134{ echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5 22135echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; } 22136 22137 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 22138 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5 22139echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; } 22140if test "${gt_cv_func_dgettext_libc+set}" = set; then 22141 echo $ECHO_N "(cached) $ECHO_C" >&6 22142else 22143 cat >conftest.$ac_ext <<_ACEOF 22144/* confdefs.h. */ 22145_ACEOF 22146cat confdefs.h >>conftest.$ac_ext 22147cat >>conftest.$ac_ext <<_ACEOF 22148/* end confdefs.h. */ 22149 22150#include <libintl.h> 22151 22152int 22153main () 22154{ 22155return !dgettext ("","") 22156 ; 22157 return 0; 22158} 22159_ACEOF 22160rm -f conftest.$ac_objext conftest$ac_exeext 22161if { (ac_try="$ac_link" 22162case "(($ac_try" in 22163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22164 *) ac_try_echo=$ac_try;; 22165esac 22166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22167 (eval "$ac_link") 2>conftest.er1 22168 ac_status=$? 22169 grep -v '^ *+' conftest.er1 >conftest.err 22170 rm -f conftest.er1 22171 cat conftest.err >&5 22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22173 (exit $ac_status); } && { 22174 test -z "$ac_c_werror_flag" || 22175 test ! -s conftest.err 22176 } && test -s conftest$ac_exeext && 22177 $as_test_x conftest$ac_exeext; then 22178 gt_cv_func_dgettext_libc=yes 22179else 22180 echo "$as_me: failed program was:" >&5 22181sed 's/^/| /' conftest.$ac_ext >&5 22182 22183 gt_cv_func_dgettext_libc=no 22184fi 22185 22186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22187 conftest$ac_exeext conftest.$ac_ext 22188 22189fi 22190{ echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5 22191echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; } 22192 fi 22193 22194 if test "$gt_cv_func_ngettext_libc" = "yes" ; then 22195 22196for ac_func in bind_textdomain_codeset 22197do 22198as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22199{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22200echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22201if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22202 echo $ECHO_N "(cached) $ECHO_C" >&6 22203else 22204 cat >conftest.$ac_ext <<_ACEOF 22205/* confdefs.h. */ 22206_ACEOF 22207cat confdefs.h >>conftest.$ac_ext 22208cat >>conftest.$ac_ext <<_ACEOF 22209/* end confdefs.h. */ 22210/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22211 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22212#define $ac_func innocuous_$ac_func 22213 22214/* System header to define __stub macros and hopefully few prototypes, 22215 which can conflict with char $ac_func (); below. 22216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22217 <limits.h> exists even on freestanding compilers. */ 22218 22219#ifdef __STDC__ 22220# include <limits.h> 22221#else 22222# include <assert.h> 22223#endif 22224 22225#undef $ac_func 22226 22227/* Override any GCC internal prototype to avoid an error. 22228 Use char because int might match the return type of a GCC 22229 builtin and then its argument prototype would still apply. */ 22230#ifdef __cplusplus 22231extern "C" 22232#endif 22233char $ac_func (); 22234/* The GNU C library defines this for functions which it implements 22235 to always fail with ENOSYS. Some functions are actually named 22236 something starting with __ and the normal name is an alias. */ 22237#if defined __stub_$ac_func || defined __stub___$ac_func 22238choke me 22239#endif 22240 22241int 22242main () 22243{ 22244return $ac_func (); 22245 ; 22246 return 0; 22247} 22248_ACEOF 22249rm -f conftest.$ac_objext conftest$ac_exeext 22250if { (ac_try="$ac_link" 22251case "(($ac_try" in 22252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22253 *) ac_try_echo=$ac_try;; 22254esac 22255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22256 (eval "$ac_link") 2>conftest.er1 22257 ac_status=$? 22258 grep -v '^ *+' conftest.er1 >conftest.err 22259 rm -f conftest.er1 22260 cat conftest.err >&5 22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22262 (exit $ac_status); } && { 22263 test -z "$ac_c_werror_flag" || 22264 test ! -s conftest.err 22265 } && test -s conftest$ac_exeext && 22266 $as_test_x conftest$ac_exeext; then 22267 eval "$as_ac_var=yes" 22268else 22269 echo "$as_me: failed program was:" >&5 22270sed 's/^/| /' conftest.$ac_ext >&5 22271 22272 eval "$as_ac_var=no" 22273fi 22274 22275rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22276 conftest$ac_exeext conftest.$ac_ext 22277fi 22278ac_res=`eval echo '${'$as_ac_var'}'` 22279 { echo "$as_me:$LINENO: result: $ac_res" >&5 22280echo "${ECHO_T}$ac_res" >&6; } 22281if test `eval echo '${'$as_ac_var'}'` = yes; then 22282 cat >>confdefs.h <<_ACEOF 22283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22284_ACEOF 22285 22286fi 22287done 22288 22289 fi 22290 22291 # 22292 # If we don't have everything we want, check in libintl 22293 # 22294 if test "$gt_cv_func_dgettext_libc" != "yes" \ 22295 || test "$gt_cv_func_ngettext_libc" != "yes" \ 22296 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then 22297 22298 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 22299echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; } 22300if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then 22301 echo $ECHO_N "(cached) $ECHO_C" >&6 22302else 22303 ac_check_lib_save_LIBS=$LIBS 22304LIBS="-lintl $LIBS" 22305cat >conftest.$ac_ext <<_ACEOF 22306/* confdefs.h. */ 22307_ACEOF 22308cat confdefs.h >>conftest.$ac_ext 22309cat >>conftest.$ac_ext <<_ACEOF 22310/* end confdefs.h. */ 22311 22312/* Override any GCC internal prototype to avoid an error. 22313 Use char because int might match the return type of a GCC 22314 builtin and then its argument prototype would still apply. */ 22315#ifdef __cplusplus 22316extern "C" 22317#endif 22318char bindtextdomain (); 22319int 22320main () 22321{ 22322return bindtextdomain (); 22323 ; 22324 return 0; 22325} 22326_ACEOF 22327rm -f conftest.$ac_objext conftest$ac_exeext 22328if { (ac_try="$ac_link" 22329case "(($ac_try" in 22330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22331 *) ac_try_echo=$ac_try;; 22332esac 22333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22334 (eval "$ac_link") 2>conftest.er1 22335 ac_status=$? 22336 grep -v '^ *+' conftest.er1 >conftest.err 22337 rm -f conftest.er1 22338 cat conftest.err >&5 22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22340 (exit $ac_status); } && { 22341 test -z "$ac_c_werror_flag" || 22342 test ! -s conftest.err 22343 } && test -s conftest$ac_exeext && 22344 $as_test_x conftest$ac_exeext; then 22345 ac_cv_lib_intl_bindtextdomain=yes 22346else 22347 echo "$as_me: failed program was:" >&5 22348sed 's/^/| /' conftest.$ac_ext >&5 22349 22350 ac_cv_lib_intl_bindtextdomain=no 22351fi 22352 22353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22354 conftest$ac_exeext conftest.$ac_ext 22355LIBS=$ac_check_lib_save_LIBS 22356fi 22357{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 22358echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; } 22359if test $ac_cv_lib_intl_bindtextdomain = yes; then 22360 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 22361echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } 22362if test "${ac_cv_lib_intl_ngettext+set}" = set; then 22363 echo $ECHO_N "(cached) $ECHO_C" >&6 22364else 22365 ac_check_lib_save_LIBS=$LIBS 22366LIBS="-lintl $LIBS" 22367cat >conftest.$ac_ext <<_ACEOF 22368/* confdefs.h. */ 22369_ACEOF 22370cat confdefs.h >>conftest.$ac_ext 22371cat >>conftest.$ac_ext <<_ACEOF 22372/* end confdefs.h. */ 22373 22374/* Override any GCC internal prototype to avoid an error. 22375 Use char because int might match the return type of a GCC 22376 builtin and then its argument prototype would still apply. */ 22377#ifdef __cplusplus 22378extern "C" 22379#endif 22380char ngettext (); 22381int 22382main () 22383{ 22384return ngettext (); 22385 ; 22386 return 0; 22387} 22388_ACEOF 22389rm -f conftest.$ac_objext conftest$ac_exeext 22390if { (ac_try="$ac_link" 22391case "(($ac_try" in 22392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22393 *) ac_try_echo=$ac_try;; 22394esac 22395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22396 (eval "$ac_link") 2>conftest.er1 22397 ac_status=$? 22398 grep -v '^ *+' conftest.er1 >conftest.err 22399 rm -f conftest.er1 22400 cat conftest.err >&5 22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22402 (exit $ac_status); } && { 22403 test -z "$ac_c_werror_flag" || 22404 test ! -s conftest.err 22405 } && test -s conftest$ac_exeext && 22406 $as_test_x conftest$ac_exeext; then 22407 ac_cv_lib_intl_ngettext=yes 22408else 22409 echo "$as_me: failed program was:" >&5 22410sed 's/^/| /' conftest.$ac_ext >&5 22411 22412 ac_cv_lib_intl_ngettext=no 22413fi 22414 22415rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22416 conftest$ac_exeext conftest.$ac_ext 22417LIBS=$ac_check_lib_save_LIBS 22418fi 22419{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 22420echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } 22421if test $ac_cv_lib_intl_ngettext = yes; then 22422 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 22423echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; } 22424if test "${ac_cv_lib_intl_dgettext+set}" = set; then 22425 echo $ECHO_N "(cached) $ECHO_C" >&6 22426else 22427 ac_check_lib_save_LIBS=$LIBS 22428LIBS="-lintl $LIBS" 22429cat >conftest.$ac_ext <<_ACEOF 22430/* confdefs.h. */ 22431_ACEOF 22432cat confdefs.h >>conftest.$ac_ext 22433cat >>conftest.$ac_ext <<_ACEOF 22434/* end confdefs.h. */ 22435 22436/* Override any GCC internal prototype to avoid an error. 22437 Use char because int might match the return type of a GCC 22438 builtin and then its argument prototype would still apply. */ 22439#ifdef __cplusplus 22440extern "C" 22441#endif 22442char dgettext (); 22443int 22444main () 22445{ 22446return dgettext (); 22447 ; 22448 return 0; 22449} 22450_ACEOF 22451rm -f conftest.$ac_objext conftest$ac_exeext 22452if { (ac_try="$ac_link" 22453case "(($ac_try" in 22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22455 *) ac_try_echo=$ac_try;; 22456esac 22457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22458 (eval "$ac_link") 2>conftest.er1 22459 ac_status=$? 22460 grep -v '^ *+' conftest.er1 >conftest.err 22461 rm -f conftest.er1 22462 cat conftest.err >&5 22463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22464 (exit $ac_status); } && { 22465 test -z "$ac_c_werror_flag" || 22466 test ! -s conftest.err 22467 } && test -s conftest$ac_exeext && 22468 $as_test_x conftest$ac_exeext; then 22469 ac_cv_lib_intl_dgettext=yes 22470else 22471 echo "$as_me: failed program was:" >&5 22472sed 's/^/| /' conftest.$ac_ext >&5 22473 22474 ac_cv_lib_intl_dgettext=no 22475fi 22476 22477rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22478 conftest$ac_exeext conftest.$ac_ext 22479LIBS=$ac_check_lib_save_LIBS 22480fi 22481{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 22482echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; } 22483if test $ac_cv_lib_intl_dgettext = yes; then 22484 gt_cv_func_dgettext_libintl=yes 22485fi 22486 22487fi 22488 22489fi 22490 22491 22492 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then 22493 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5 22494echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; } 22495 { echo "$as_me:$LINENO: result: " >&5 22496echo "${ECHO_T}" >&6; } 22497 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5 22498echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; } 22499if test "${ac_cv_lib_intl_ngettext+set}" = set; then 22500 echo $ECHO_N "(cached) $ECHO_C" >&6 22501else 22502 ac_check_lib_save_LIBS=$LIBS 22503LIBS="-lintl -liconv $LIBS" 22504cat >conftest.$ac_ext <<_ACEOF 22505/* confdefs.h. */ 22506_ACEOF 22507cat confdefs.h >>conftest.$ac_ext 22508cat >>conftest.$ac_ext <<_ACEOF 22509/* end confdefs.h. */ 22510 22511/* Override any GCC internal prototype to avoid an error. 22512 Use char because int might match the return type of a GCC 22513 builtin and then its argument prototype would still apply. */ 22514#ifdef __cplusplus 22515extern "C" 22516#endif 22517char ngettext (); 22518int 22519main () 22520{ 22521return ngettext (); 22522 ; 22523 return 0; 22524} 22525_ACEOF 22526rm -f conftest.$ac_objext conftest$ac_exeext 22527if { (ac_try="$ac_link" 22528case "(($ac_try" in 22529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22530 *) ac_try_echo=$ac_try;; 22531esac 22532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22533 (eval "$ac_link") 2>conftest.er1 22534 ac_status=$? 22535 grep -v '^ *+' conftest.er1 >conftest.err 22536 rm -f conftest.er1 22537 cat conftest.err >&5 22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22539 (exit $ac_status); } && { 22540 test -z "$ac_c_werror_flag" || 22541 test ! -s conftest.err 22542 } && test -s conftest$ac_exeext && 22543 $as_test_x conftest$ac_exeext; then 22544 ac_cv_lib_intl_ngettext=yes 22545else 22546 echo "$as_me: failed program was:" >&5 22547sed 's/^/| /' conftest.$ac_ext >&5 22548 22549 ac_cv_lib_intl_ngettext=no 22550fi 22551 22552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22553 conftest$ac_exeext conftest.$ac_ext 22554LIBS=$ac_check_lib_save_LIBS 22555fi 22556{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5 22557echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; } 22558if test $ac_cv_lib_intl_ngettext = yes; then 22559 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5 22560echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; } 22561if test "${ac_cv_lib_intl_dcgettext+set}" = set; then 22562 echo $ECHO_N "(cached) $ECHO_C" >&6 22563else 22564 ac_check_lib_save_LIBS=$LIBS 22565LIBS="-lintl -liconv $LIBS" 22566cat >conftest.$ac_ext <<_ACEOF 22567/* confdefs.h. */ 22568_ACEOF 22569cat confdefs.h >>conftest.$ac_ext 22570cat >>conftest.$ac_ext <<_ACEOF 22571/* end confdefs.h. */ 22572 22573/* Override any GCC internal prototype to avoid an error. 22574 Use char because int might match the return type of a GCC 22575 builtin and then its argument prototype would still apply. */ 22576#ifdef __cplusplus 22577extern "C" 22578#endif 22579char dcgettext (); 22580int 22581main () 22582{ 22583return dcgettext (); 22584 ; 22585 return 0; 22586} 22587_ACEOF 22588rm -f conftest.$ac_objext conftest$ac_exeext 22589if { (ac_try="$ac_link" 22590case "(($ac_try" in 22591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22592 *) ac_try_echo=$ac_try;; 22593esac 22594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22595 (eval "$ac_link") 2>conftest.er1 22596 ac_status=$? 22597 grep -v '^ *+' conftest.er1 >conftest.err 22598 rm -f conftest.er1 22599 cat conftest.err >&5 22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22601 (exit $ac_status); } && { 22602 test -z "$ac_c_werror_flag" || 22603 test ! -s conftest.err 22604 } && test -s conftest$ac_exeext && 22605 $as_test_x conftest$ac_exeext; then 22606 ac_cv_lib_intl_dcgettext=yes 22607else 22608 echo "$as_me: failed program was:" >&5 22609sed 's/^/| /' conftest.$ac_ext >&5 22610 22611 ac_cv_lib_intl_dcgettext=no 22612fi 22613 22614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22615 conftest$ac_exeext conftest.$ac_ext 22616LIBS=$ac_check_lib_save_LIBS 22617fi 22618{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5 22619echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; } 22620if test $ac_cv_lib_intl_dcgettext = yes; then 22621 gt_cv_func_dgettext_libintl=yes 22622 libintl_extra_libs=-liconv 22623else 22624 : 22625fi 22626 22627else 22628 : 22629fi 22630 22631 fi 22632 22633 # 22634 # If we found libintl, then check in it for bind_textdomain_codeset(); 22635 # we'll prefer libc if neither have bind_textdomain_codeset(), 22636 # and both have dgettext and ngettext 22637 # 22638 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then 22639 glib_save_LIBS="$LIBS" 22640 LIBS="$LIBS -lintl $libintl_extra_libs" 22641 unset ac_cv_func_bind_textdomain_codeset 22642 22643for ac_func in bind_textdomain_codeset 22644do 22645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22646{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22648if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22649 echo $ECHO_N "(cached) $ECHO_C" >&6 22650else 22651 cat >conftest.$ac_ext <<_ACEOF 22652/* confdefs.h. */ 22653_ACEOF 22654cat confdefs.h >>conftest.$ac_ext 22655cat >>conftest.$ac_ext <<_ACEOF 22656/* end confdefs.h. */ 22657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22658 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22659#define $ac_func innocuous_$ac_func 22660 22661/* System header to define __stub macros and hopefully few prototypes, 22662 which can conflict with char $ac_func (); below. 22663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22664 <limits.h> exists even on freestanding compilers. */ 22665 22666#ifdef __STDC__ 22667# include <limits.h> 22668#else 22669# include <assert.h> 22670#endif 22671 22672#undef $ac_func 22673 22674/* Override any GCC internal prototype to avoid an error. 22675 Use char because int might match the return type of a GCC 22676 builtin and then its argument prototype would still apply. */ 22677#ifdef __cplusplus 22678extern "C" 22679#endif 22680char $ac_func (); 22681/* The GNU C library defines this for functions which it implements 22682 to always fail with ENOSYS. Some functions are actually named 22683 something starting with __ and the normal name is an alias. */ 22684#if defined __stub_$ac_func || defined __stub___$ac_func 22685choke me 22686#endif 22687 22688int 22689main () 22690{ 22691return $ac_func (); 22692 ; 22693 return 0; 22694} 22695_ACEOF 22696rm -f conftest.$ac_objext conftest$ac_exeext 22697if { (ac_try="$ac_link" 22698case "(($ac_try" in 22699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22700 *) ac_try_echo=$ac_try;; 22701esac 22702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22703 (eval "$ac_link") 2>conftest.er1 22704 ac_status=$? 22705 grep -v '^ *+' conftest.er1 >conftest.err 22706 rm -f conftest.er1 22707 cat conftest.err >&5 22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22709 (exit $ac_status); } && { 22710 test -z "$ac_c_werror_flag" || 22711 test ! -s conftest.err 22712 } && test -s conftest$ac_exeext && 22713 $as_test_x conftest$ac_exeext; then 22714 eval "$as_ac_var=yes" 22715else 22716 echo "$as_me: failed program was:" >&5 22717sed 's/^/| /' conftest.$ac_ext >&5 22718 22719 eval "$as_ac_var=no" 22720fi 22721 22722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22723 conftest$ac_exeext conftest.$ac_ext 22724fi 22725ac_res=`eval echo '${'$as_ac_var'}'` 22726 { echo "$as_me:$LINENO: result: $ac_res" >&5 22727echo "${ECHO_T}$ac_res" >&6; } 22728if test `eval echo '${'$as_ac_var'}'` = yes; then 22729 cat >>confdefs.h <<_ACEOF 22730#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22731_ACEOF 22732 22733fi 22734done 22735 22736 LIBS="$glib_save_LIBS" 22737 22738 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then 22739 gt_cv_func_dgettext_libc=no 22740 else 22741 if test "$gt_cv_func_dgettext_libc" = "yes" \ 22742 && test "$gt_cv_func_ngettext_libc" = "yes"; then 22743 gt_cv_func_dgettext_libintl=no 22744 fi 22745 fi 22746 fi 22747 fi 22748 22749 if test "$gt_cv_func_dgettext_libc" = "yes" \ 22750 || test "$gt_cv_func_dgettext_libintl" = "yes"; then 22751 gt_cv_have_gettext=yes 22752 fi 22753 22754 if test "$gt_cv_func_dgettext_libintl" = "yes"; then 22755 INTLLIBS="-lintl $libintl_extra_libs" 22756 fi 22757 22758 if test "$gt_cv_have_gettext" = "yes"; then 22759 22760cat >>confdefs.h <<\_ACEOF 22761#define HAVE_GETTEXT 1 22762_ACEOF 22763 22764 # Extract the first word of "msgfmt", so it can be a program name with args. 22765set dummy msgfmt; ac_word=$2 22766{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22768if test "${ac_cv_path_MSGFMT+set}" = set; then 22769 echo $ECHO_N "(cached) $ECHO_C" >&6 22770else 22771 case "$MSGFMT" in 22772 /*) 22773 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 22774 ;; 22775 *) 22776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 22777 for ac_dir in $PATH; do 22778 test -z "$ac_dir" && ac_dir=. 22779 if test -f $ac_dir/$ac_word; then 22780 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then 22781 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 22782 break 22783 fi 22784 fi 22785 done 22786 IFS="$ac_save_ifs" 22787 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" 22788 ;; 22789esac 22790fi 22791MSGFMT="$ac_cv_path_MSGFMT" 22792if test "$MSGFMT" != "no"; then 22793 { echo "$as_me:$LINENO: result: $MSGFMT" >&5 22794echo "${ECHO_T}$MSGFMT" >&6; } 22795else 22796 { echo "$as_me:$LINENO: result: no" >&5 22797echo "${ECHO_T}no" >&6; } 22798fi 22799 if test "$MSGFMT" != "no"; then 22800 glib_save_LIBS="$LIBS" 22801 LIBS="$LIBS $INTLLIBS" 22802 22803for ac_func in dcgettext 22804do 22805as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22806{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22807echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22808if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22809 echo $ECHO_N "(cached) $ECHO_C" >&6 22810else 22811 cat >conftest.$ac_ext <<_ACEOF 22812/* confdefs.h. */ 22813_ACEOF 22814cat confdefs.h >>conftest.$ac_ext 22815cat >>conftest.$ac_ext <<_ACEOF 22816/* end confdefs.h. */ 22817/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22818 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22819#define $ac_func innocuous_$ac_func 22820 22821/* System header to define __stub macros and hopefully few prototypes, 22822 which can conflict with char $ac_func (); below. 22823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22824 <limits.h> exists even on freestanding compilers. */ 22825 22826#ifdef __STDC__ 22827# include <limits.h> 22828#else 22829# include <assert.h> 22830#endif 22831 22832#undef $ac_func 22833 22834/* Override any GCC internal prototype to avoid an error. 22835 Use char because int might match the return type of a GCC 22836 builtin and then its argument prototype would still apply. */ 22837#ifdef __cplusplus 22838extern "C" 22839#endif 22840char $ac_func (); 22841/* The GNU C library defines this for functions which it implements 22842 to always fail with ENOSYS. Some functions are actually named 22843 something starting with __ and the normal name is an alias. */ 22844#if defined __stub_$ac_func || defined __stub___$ac_func 22845choke me 22846#endif 22847 22848int 22849main () 22850{ 22851return $ac_func (); 22852 ; 22853 return 0; 22854} 22855_ACEOF 22856rm -f conftest.$ac_objext conftest$ac_exeext 22857if { (ac_try="$ac_link" 22858case "(($ac_try" in 22859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22860 *) ac_try_echo=$ac_try;; 22861esac 22862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22863 (eval "$ac_link") 2>conftest.er1 22864 ac_status=$? 22865 grep -v '^ *+' conftest.er1 >conftest.err 22866 rm -f conftest.er1 22867 cat conftest.err >&5 22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22869 (exit $ac_status); } && { 22870 test -z "$ac_c_werror_flag" || 22871 test ! -s conftest.err 22872 } && test -s conftest$ac_exeext && 22873 $as_test_x conftest$ac_exeext; then 22874 eval "$as_ac_var=yes" 22875else 22876 echo "$as_me: failed program was:" >&5 22877sed 's/^/| /' conftest.$ac_ext >&5 22878 22879 eval "$as_ac_var=no" 22880fi 22881 22882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 22883 conftest$ac_exeext conftest.$ac_ext 22884fi 22885ac_res=`eval echo '${'$as_ac_var'}'` 22886 { echo "$as_me:$LINENO: result: $ac_res" >&5 22887echo "${ECHO_T}$ac_res" >&6; } 22888if test `eval echo '${'$as_ac_var'}'` = yes; then 22889 cat >>confdefs.h <<_ACEOF 22890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22891_ACEOF 22892 22893fi 22894done 22895 22896 MSGFMT_OPTS= 22897 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5 22898echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; } 22899 cat >conftest.foo <<_ACEOF 22900 22901msgid "" 22902msgstr "" 22903"Content-Type: text/plain; charset=UTF-8\n" 22904"Project-Id-Version: test 1.0\n" 22905"PO-Revision-Date: 2007-02-15 12:01+0100\n" 22906"Last-Translator: test <foo@bar.xx>\n" 22907"Language-Team: C <LL@li.org>\n" 22908"MIME-Version: 1.0\n" 22909"Content-Transfer-Encoding: 8bit\n" 22910 22911_ACEOF 22912if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5 22913 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5 22914 ac_status=$? 22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22916 (exit $ac_status); }; then 22917 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5 22918echo "${ECHO_T}yes" >&6; } 22919else { echo "$as_me:$LINENO: result: no" >&5 22920echo "${ECHO_T}no" >&6; } 22921echo "$as_me: failed input was:" >&5 22922sed 's/^/| /' conftest.foo >&5 22923fi 22924 22925 # Extract the first word of "gmsgfmt", so it can be a program name with args. 22926set dummy gmsgfmt; ac_word=$2 22927{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22929if test "${ac_cv_path_GMSGFMT+set}" = set; then 22930 echo $ECHO_N "(cached) $ECHO_C" >&6 22931else 22932 case $GMSGFMT in 22933 [\\/]* | ?:[\\/]*) 22934 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 22935 ;; 22936 *) 22937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22938for as_dir in $PATH 22939do 22940 IFS=$as_save_IFS 22941 test -z "$as_dir" && as_dir=. 22942 for ac_exec_ext in '' $ac_executable_extensions; do 22943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22944 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 22945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 22946 break 2 22947 fi 22948done 22949done 22950IFS=$as_save_IFS 22951 22952 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 22953 ;; 22954esac 22955fi 22956GMSGFMT=$ac_cv_path_GMSGFMT 22957if test -n "$GMSGFMT"; then 22958 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 22959echo "${ECHO_T}$GMSGFMT" >&6; } 22960else 22961 { echo "$as_me:$LINENO: result: no" >&5 22962echo "${ECHO_T}no" >&6; } 22963fi 22964 22965 22966 # Extract the first word of "xgettext", so it can be a program name with args. 22967set dummy xgettext; ac_word=$2 22968{ echo "$as_me:$LINENO: checking for $ac_word" >&5 22969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 22970if test "${ac_cv_path_XGETTEXT+set}" = set; then 22971 echo $ECHO_N "(cached) $ECHO_C" >&6 22972else 22973 case "$XGETTEXT" in 22974 /*) 22975 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 22976 ;; 22977 *) 22978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 22979 for ac_dir in $PATH; do 22980 test -z "$ac_dir" && ac_dir=. 22981 if test -f $ac_dir/$ac_word; then 22982 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then 22983 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 22984 break 22985 fi 22986 fi 22987 done 22988 IFS="$ac_save_ifs" 22989 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 22990 ;; 22991esac 22992fi 22993XGETTEXT="$ac_cv_path_XGETTEXT" 22994if test "$XGETTEXT" != ":"; then 22995 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 22996echo "${ECHO_T}$XGETTEXT" >&6; } 22997else 22998 { echo "$as_me:$LINENO: result: no" >&5 22999echo "${ECHO_T}no" >&6; } 23000fi 23001 23002 cat >conftest.$ac_ext <<_ACEOF 23003/* confdefs.h. */ 23004_ACEOF 23005cat confdefs.h >>conftest.$ac_ext 23006cat >>conftest.$ac_ext <<_ACEOF 23007/* end confdefs.h. */ 23008 23009int 23010main () 23011{ 23012extern int _nl_msg_cat_cntr; 23013 return _nl_msg_cat_cntr 23014 ; 23015 return 0; 23016} 23017_ACEOF 23018rm -f conftest.$ac_objext conftest$ac_exeext 23019if { (ac_try="$ac_link" 23020case "(($ac_try" in 23021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23022 *) ac_try_echo=$ac_try;; 23023esac 23024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23025 (eval "$ac_link") 2>conftest.er1 23026 ac_status=$? 23027 grep -v '^ *+' conftest.er1 >conftest.err 23028 rm -f conftest.er1 23029 cat conftest.err >&5 23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23031 (exit $ac_status); } && { 23032 test -z "$ac_c_werror_flag" || 23033 test ! -s conftest.err 23034 } && test -s conftest$ac_exeext && 23035 $as_test_x conftest$ac_exeext; then 23036 CATOBJEXT=.gmo 23037 DATADIRNAME=share 23038else 23039 echo "$as_me: failed program was:" >&5 23040sed 's/^/| /' conftest.$ac_ext >&5 23041 23042 case $host in 23043 *-*-solaris*) 23044 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5 23045echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; } 23046if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then 23047 echo $ECHO_N "(cached) $ECHO_C" >&6 23048else 23049 cat >conftest.$ac_ext <<_ACEOF 23050/* confdefs.h. */ 23051_ACEOF 23052cat confdefs.h >>conftest.$ac_ext 23053cat >>conftest.$ac_ext <<_ACEOF 23054/* end confdefs.h. */ 23055/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset. 23056 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 23057#define bind_textdomain_codeset innocuous_bind_textdomain_codeset 23058 23059/* System header to define __stub macros and hopefully few prototypes, 23060 which can conflict with char bind_textdomain_codeset (); below. 23061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 23062 <limits.h> exists even on freestanding compilers. */ 23063 23064#ifdef __STDC__ 23065# include <limits.h> 23066#else 23067# include <assert.h> 23068#endif 23069 23070#undef bind_textdomain_codeset 23071 23072/* Override any GCC internal prototype to avoid an error. 23073 Use char because int might match the return type of a GCC 23074 builtin and then its argument prototype would still apply. */ 23075#ifdef __cplusplus 23076extern "C" 23077#endif 23078char bind_textdomain_codeset (); 23079/* The GNU C library defines this for functions which it implements 23080 to always fail with ENOSYS. Some functions are actually named 23081 something starting with __ and the normal name is an alias. */ 23082#if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset 23083choke me 23084#endif 23085 23086int 23087main () 23088{ 23089return bind_textdomain_codeset (); 23090 ; 23091 return 0; 23092} 23093_ACEOF 23094rm -f conftest.$ac_objext conftest$ac_exeext 23095if { (ac_try="$ac_link" 23096case "(($ac_try" in 23097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 23098 *) ac_try_echo=$ac_try;; 23099esac 23100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 23101 (eval "$ac_link") 2>conftest.er1 23102 ac_status=$? 23103 grep -v '^ *+' conftest.er1 >conftest.err 23104 rm -f conftest.er1 23105 cat conftest.err >&5 23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23107 (exit $ac_status); } && { 23108 test -z "$ac_c_werror_flag" || 23109 test ! -s conftest.err 23110 } && test -s conftest$ac_exeext && 23111 $as_test_x conftest$ac_exeext; then 23112 ac_cv_func_bind_textdomain_codeset=yes 23113else 23114 echo "$as_me: failed program was:" >&5 23115sed 's/^/| /' conftest.$ac_ext >&5 23116 23117 ac_cv_func_bind_textdomain_codeset=no 23118fi 23119 23120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23121 conftest$ac_exeext conftest.$ac_ext 23122fi 23123{ echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5 23124echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; } 23125if test $ac_cv_func_bind_textdomain_codeset = yes; then 23126 CATOBJEXT=.gmo 23127 DATADIRNAME=share 23128else 23129 CATOBJEXT=.mo 23130 DATADIRNAME=lib 23131fi 23132 23133 ;; 23134 *) 23135 CATOBJEXT=.mo 23136 DATADIRNAME=lib 23137 ;; 23138 esac 23139fi 23140 23141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 23142 conftest$ac_exeext conftest.$ac_ext 23143 LIBS="$glib_save_LIBS" 23144 INSTOBJEXT=.mo 23145 else 23146 gt_cv_have_gettext=no 23147 fi 23148 fi 23149 23150fi 23151 23152 23153 23154 if test "$gt_cv_have_gettext" = "yes" ; then 23155 23156cat >>confdefs.h <<\_ACEOF 23157#define ENABLE_NLS 1 23158_ACEOF 23159 23160 fi 23161 23162 if test "$XGETTEXT" != ":"; then 23163 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then 23164 : ; 23165 else 23166 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 23167echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } 23168 XGETTEXT=":" 23169 fi 23170 fi 23171 23172 # We need to process the po/ directory. 23173 POSUB=po 23174 23175 ac_config_commands="$ac_config_commands default-1" 23176 23177 23178 for lang in $ALL_LINGUAS; do 23179 GMOFILES="$GMOFILES $lang.gmo" 23180 POFILES="$POFILES $lang.po" 23181 done 23182 23183 23184 23185 23186 23187 23188 23189 23190 23191 23192 23193 23194 23195 if test "$gt_cv_have_gettext" = "yes"; then 23196 if test "x$ALL_LINGUAS" = "x"; then 23197 LINGUAS= 23198 else 23199 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 23200echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; } 23201 NEW_LINGUAS= 23202 for presentlang in $ALL_LINGUAS; do 23203 useit=no 23204 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then 23205 desiredlanguages="$LINGUAS" 23206 else 23207 desiredlanguages="$ALL_LINGUAS" 23208 fi 23209 for desiredlang in $desiredlanguages; do 23210 # Use the presentlang catalog if desiredlang is 23211 # a. equal to presentlang, or 23212 # b. a variant of presentlang (because in this case, 23213 # presentlang can be used as a fallback for messages 23214 # which are not translated in the desiredlang catalog). 23215 case "$desiredlang" in 23216 "$presentlang"*) useit=yes;; 23217 esac 23218 done 23219 if test $useit = yes; then 23220 NEW_LINGUAS="$NEW_LINGUAS $presentlang" 23221 fi 23222 done 23223 LINGUAS=$NEW_LINGUAS 23224 { echo "$as_me:$LINENO: result: $LINGUAS" >&5 23225echo "${ECHO_T}$LINGUAS" >&6; } 23226 fi 23227 23228 if test -n "$LINGUAS"; then 23229 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 23230 fi 23231 fi 23232 23233 MKINSTALLDIRS= 23234 if test -n "$ac_aux_dir"; then 23235 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 23236 fi 23237 if test -z "$MKINSTALLDIRS"; then 23238 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 23239 fi 23240 23241 23242 test -d po || mkdir po 23243 if test "x$srcdir" != "x."; then 23244 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then 23245 posrcprefix="$srcdir/" 23246 else 23247 posrcprefix="../$srcdir/" 23248 fi 23249 else 23250 posrcprefix="../" 23251 fi 23252 rm -f po/POTFILES 23253 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ 23254 < $srcdir/po/POTFILES.in > po/POTFILES 23255 23256 23257 23258# Extract the first word of "gconftool-2", so it can be a program name with args. 23259set dummy gconftool-2; ac_word=$2 23260{ echo "$as_me:$LINENO: checking for $ac_word" >&5 23261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 23262if test "${ac_cv_path_GCONFTOOL+set}" = set; then 23263 echo $ECHO_N "(cached) $ECHO_C" >&6 23264else 23265 case $GCONFTOOL in 23266 [\\/]* | ?:[\\/]*) 23267 ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path. 23268 ;; 23269 *) 23270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23271for as_dir in $PATH 23272do 23273 IFS=$as_save_IFS 23274 test -z "$as_dir" && as_dir=. 23275 for ac_exec_ext in '' $ac_executable_extensions; do 23276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23277 ac_cv_path_GCONFTOOL="$as_dir/$ac_word$ac_exec_ext" 23278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23279 break 2 23280 fi 23281done 23282done 23283IFS=$as_save_IFS 23284 23285 test -z "$ac_cv_path_GCONFTOOL" && ac_cv_path_GCONFTOOL="no" 23286 ;; 23287esac 23288fi 23289GCONFTOOL=$ac_cv_path_GCONFTOOL 23290if test -n "$GCONFTOOL"; then 23291 { echo "$as_me:$LINENO: result: $GCONFTOOL" >&5 23292echo "${ECHO_T}$GCONFTOOL" >&6; } 23293else 23294 { echo "$as_me:$LINENO: result: no" >&5 23295echo "${ECHO_T}no" >&6; } 23296fi 23297 23298 23299 23300 if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then 23301 GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source` 23302 else 23303 GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE 23304 fi 23305 23306 23307# Check whether --with-gconf-source was given. 23308if test "${with_gconf_source+set}" = set; then 23309 withval=$with_gconf_source; GCONF_SCHEMA_CONFIG_SOURCE="$withval" 23310fi 23311 23312 23313 23314 { echo "$as_me:$LINENO: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5 23315echo "${ECHO_T}Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6; } 23316 23317 if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then 23318 GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas' 23319 fi 23320 23321 23322# Check whether --with-gconf-schema-file-dir was given. 23323if test "${with_gconf_schema_file_dir+set}" = set; then 23324 withval=$with_gconf_schema_file_dir; GCONF_SCHEMA_FILE_DIR="$withval" 23325fi 23326 23327 23328 23329 { echo "$as_me:$LINENO: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5 23330echo "${ECHO_T}Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6; } 23331 23332 # Check whether --enable-schemas-install was given. 23333if test "${enable_schemas_install+set}" = set; then 23334 enableval=$enable_schemas_install; case ${enableval} in 23335 yes|no) ;; 23336 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-schemas-install" >&5 23337echo "$as_me: error: bad value ${enableval} for --enable-schemas-install" >&2;} 23338 { (exit 1); exit 1; }; } ;; 23339 esac 23340fi 23341 23342 if test "$enable_schemas_install" != no; then 23343 GCONF_SCHEMAS_INSTALL_TRUE= 23344 GCONF_SCHEMAS_INSTALL_FALSE='#' 23345else 23346 GCONF_SCHEMAS_INSTALL_TRUE='#' 23347 GCONF_SCHEMAS_INSTALL_FALSE= 23348fi 23349 23350 23351 23352 23353 23354 23355# Check whether --with-html-dir was given. 23356if test "${with_html_dir+set}" = set; then 23357 withval=$with_html_dir; 23358else 23359 with_html_dir='${datadir}/gtk-doc/html' 23360fi 23361 23362 HTML_DIR="$with_html_dir" 23363 23364 23365 # Check whether --enable-gtk-doc was given. 23366if test "${enable_gtk_doc+set}" = set; then 23367 enableval=$enable_gtk_doc; 23368else 23369 enable_gtk_doc=no 23370fi 23371 23372 23373 have_gtk_doc=no 23374 if test x$enable_gtk_doc = xyes; then 23375 if test -z "$PKG_CONFIG"; then 23376 # Extract the first word of "pkg-config", so it can be a program name with args. 23377set dummy pkg-config; ac_word=$2 23378{ echo "$as_me:$LINENO: checking for $ac_word" >&5 23379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 23380if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 23381 echo $ECHO_N "(cached) $ECHO_C" >&6 23382else 23383 case $PKG_CONFIG in 23384 [\\/]* | ?:[\\/]*) 23385 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 23386 ;; 23387 *) 23388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23389for as_dir in $PATH 23390do 23391 IFS=$as_save_IFS 23392 test -z "$as_dir" && as_dir=. 23393 for ac_exec_ext in '' $ac_executable_extensions; do 23394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23395 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23397 break 2 23398 fi 23399done 23400done 23401IFS=$as_save_IFS 23402 23403 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 23404 ;; 23405esac 23406fi 23407PKG_CONFIG=$ac_cv_path_PKG_CONFIG 23408if test -n "$PKG_CONFIG"; then 23409 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 23410echo "${ECHO_T}$PKG_CONFIG" >&6; } 23411else 23412 { echo "$as_me:$LINENO: result: no" >&5 23413echo "${ECHO_T}no" >&6; } 23414fi 23415 23416 23417 fi 23418 if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then 23419 have_gtk_doc=yes 23420 fi 23421 23422 gtk_doc_min_version=1.3 23423 if test "$have_gtk_doc" = yes; then 23424 { echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5 23425echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6; } 23426 if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then 23427 { echo "$as_me:$LINENO: result: yes" >&5 23428echo "${ECHO_T}yes" >&6; } 23429 else 23430 { echo "$as_me:$LINENO: result: no" >&5 23431echo "${ECHO_T}no" >&6; } 23432 have_gtk_doc=no 23433 fi 23434 fi 23435 23436 if test "$have_gtk_doc" != yes; then 23437 enable_gtk_doc=no 23438 fi 23439 fi 23440 23441 if test x$enable_gtk_doc = xyes; then 23442 ENABLE_GTK_DOC_TRUE= 23443 ENABLE_GTK_DOC_FALSE='#' 23444else 23445 ENABLE_GTK_DOC_TRUE='#' 23446 ENABLE_GTK_DOC_FALSE= 23447fi 23448 23449 if test -n "$LIBTOOL"; then 23450 GTK_DOC_USE_LIBTOOL_TRUE= 23451 GTK_DOC_USE_LIBTOOL_FALSE='#' 23452else 23453 GTK_DOC_USE_LIBTOOL_TRUE='#' 23454 GTK_DOC_USE_LIBTOOL_FALSE= 23455fi 23456 23457 23458 23459 23460libral_plugins_dir='$(libdir)/libral/plugins' 23461libral_plugins_gui_dir='$(datadir)/libral/plugins/gui' 23462libral_plugins_pixmaps_dir='$(datadir)/libral/plugins/pixmaps' 23463 23464 23465 23466 23467 23468 23469#rubrica_plugins_dir=${libdir}'/rubrica2/plugins' 23470#rubrica_plugins_gui_dir=${libdir}'/rubrica2/plugins/ui' 23471#rubrica_plugins_pixmaps_dir=${libdir}'/rubrica2/plugins/pixmaps' 23472 23473rubrica_data_dir=${datadir}'/rubrica2' 23474rubrica_gui_dir=${datadir}'/rubrica2/interface' 23475rubrica_pixmaps_dir=${datadir}'/pixmaps' 23476rubrica_icons_dir=${datadir}'/pixmaps/rubrica2' 23477#rubrica_icons_dir=${datadir}'/icons/hicolor' 23478# rubrica__dir='$()/rubrica' 23479# rubrica__dir='$()/rubrica' 23480 23481# AC_SUBST(rubrica_plugins_dir) 23482# AC_SUBST(rubrica_plugin_gui_dir) 23483# AC_SUBST(rubrica_plugin_pixmaps_dir) 23484 23485 23486 23487 23488 23489desktop_icon_path=@DESKTOP_ICON_PATH@/pixmaps 23490 23491 23492 23493# Check whether --enable-debug was given. 23494if test "${enable_debug+set}" = set; then 23495 enableval=$enable_debug; 23496else 23497 enable_debug=no 23498fi 23499 23500 23501if test "x$enable_debug" = "xyes"; then 23502 ENABLE_DEBUG_CFLAGS="-DENABLE_DEBUG" 23503 23504fi 23505 23506# Check whether --enable-test was given. 23507if test "${enable_test+set}" = set; then 23508 enableval=$enable_test; 23509else 23510 build_tests=no 23511fi 23512 23513 if test "x$enable_tests" = "xyes"; then 23514 ENABLE_TESTS_TRUE= 23515 ENABLE_TESTS_FALSE='#' 23516else 23517 ENABLE_TESTS_TRUE='#' 23518 ENABLE_TESTS_FALSE= 23519fi 23520 23521 23522#if test "x$build_tests" = "xyes"; then 23523# BUILD_TESTS=1 23524# AC_SUBST(BUILD_TESTS) 23525#fi 23526 23527# Extract the first word of "glib-genmarshal", so it can be a program name with args. 23528set dummy glib-genmarshal; ac_word=$2 23529{ echo "$as_me:$LINENO: checking for $ac_word" >&5 23530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 23531if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then 23532 echo $ECHO_N "(cached) $ECHO_C" >&6 23533else 23534 case $GLIB_GENMARSHAL in 23535 [\\/]* | ?:[\\/]*) 23536 ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path. 23537 ;; 23538 *) 23539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23540for as_dir in $PATH 23541do 23542 IFS=$as_save_IFS 23543 test -z "$as_dir" && as_dir=. 23544 for ac_exec_ext in '' $ac_executable_extensions; do 23545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23546 ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext" 23547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23548 break 2 23549 fi 23550done 23551done 23552IFS=$as_save_IFS 23553 23554 ;; 23555esac 23556fi 23557GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL 23558if test -n "$GLIB_GENMARSHAL"; then 23559 { echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5 23560echo "${ECHO_T}$GLIB_GENMARSHAL" >&6; } 23561else 23562 { echo "$as_me:$LINENO: result: no" >&5 23563echo "${ECHO_T}no" >&6; } 23564fi 23565 23566 23567# Extract the first word of "glib-mkenums", so it can be a program name with args. 23568set dummy glib-mkenums; ac_word=$2 23569{ echo "$as_me:$LINENO: checking for $ac_word" >&5 23570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 23571if test "${ac_cv_path_GLIB_MKENUMS+set}" = set; then 23572 echo $ECHO_N "(cached) $ECHO_C" >&6 23573else 23574 case $GLIB_MKENUMS in 23575 [\\/]* | ?:[\\/]*) 23576 ac_cv_path_GLIB_MKENUMS="$GLIB_MKENUMS" # Let the user override the test with a path. 23577 ;; 23578 *) 23579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23580for as_dir in $PATH 23581do 23582 IFS=$as_save_IFS 23583 test -z "$as_dir" && as_dir=. 23584 for ac_exec_ext in '' $ac_executable_extensions; do 23585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23586 ac_cv_path_GLIB_MKENUMS="$as_dir/$ac_word$ac_exec_ext" 23587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23588 break 2 23589 fi 23590done 23591done 23592IFS=$as_save_IFS 23593 23594 ;; 23595esac 23596fi 23597GLIB_MKENUMS=$ac_cv_path_GLIB_MKENUMS 23598if test -n "$GLIB_MKENUMS"; then 23599 { echo "$as_me:$LINENO: result: $GLIB_MKENUMS" >&5 23600echo "${ECHO_T}$GLIB_MKENUMS" >&6; } 23601else 23602 { echo "$as_me:$LINENO: result: no" >&5 23603echo "${ECHO_T}no" >&6; } 23604fi 23605 23606 23607 23608ac_config_files="$ac_config_files Makefile rubrica2.spec rubrica2.desktop rubrica2.schemas rubrica2.keys pixmaps/Makefile pixmaps/16x16/Makefile pixmaps/22x22/Makefile pixmaps/24x24/Makefile pixmaps/48x48/Makefile pixmaps/scalable/Makefile interface/Makefile doc/Makefile doc/reference/Makefile po/Makefile.in libral/Makefile libral/libral.pc src/Makefile plugins/Makefile plugins/thunderbird/Makefile plugins/rubrica/Makefile plugins/vcard/Makefile plugins/gmail/Makefile test/Makefile" 23609 23610cat >confcache <<\_ACEOF 23611# This file is a shell script that caches the results of configure 23612# tests run on this system so they can be shared between configure 23613# scripts and configure runs, see configure's option --config-cache. 23614# It is not useful on other systems. If it contains results you don't 23615# want to keep, you may remove or edit it. 23616# 23617# config.status only pays attention to the cache file if you give it 23618# the --recheck option to rerun configure. 23619# 23620# `ac_cv_env_foo' variables (set or unset) will be overridden when 23621# loading this file, other *unset* `ac_cv_foo' will be assigned the 23622# following values. 23623 23624_ACEOF 23625 23626# The following way of writing the cache mishandles newlines in values, 23627# but we know of no workaround that is simple, portable, and efficient. 23628# So, we kill variables containing newlines. 23629# Ultrix sh set writes to stderr and can't be redirected directly, 23630# and sets the high bit in the cache file unless we assign to the vars. 23631( 23632 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23633 eval ac_val=\$$ac_var 23634 case $ac_val in #( 23635 *${as_nl}*) 23636 case $ac_var in #( 23637 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 23638echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 23639 esac 23640 case $ac_var in #( 23641 _ | IFS | as_nl) ;; #( 23642 *) $as_unset $ac_var ;; 23643 esac ;; 23644 esac 23645 done 23646 23647 (set) 2>&1 | 23648 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23649 *${as_nl}ac_space=\ *) 23650 # `set' does not quote correctly, so add quotes (double-quote 23651 # substitution turns \\\\ into \\, and sed turns \\ into \). 23652 sed -n \ 23653 "s/'/'\\\\''/g; 23654 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23655 ;; #( 23656 *) 23657 # `set' quotes correctly as required by POSIX, so do not add quotes. 23658 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23659 ;; 23660 esac | 23661 sort 23662) | 23663 sed ' 23664 /^ac_cv_env_/b end 23665 t clear 23666 :clear 23667 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23668 t end 23669 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23670 :end' >>confcache 23671if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23672 if test -w "$cache_file"; then 23673 test "x$cache_file" != "x/dev/null" && 23674 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 23675echo "$as_me: updating cache $cache_file" >&6;} 23676 cat confcache >$cache_file 23677 else 23678 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 23679echo "$as_me: not updating unwritable cache $cache_file" >&6;} 23680 fi 23681fi 23682rm -f confcache 23683 23684test "x$prefix" = xNONE && prefix=$ac_default_prefix 23685# Let make expand exec_prefix. 23686test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23687 23688DEFS=-DHAVE_CONFIG_H 23689 23690ac_libobjs= 23691ac_ltlibobjs= 23692for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23693 # 1. Remove the extension, and $U if already installed. 23694 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23695 ac_i=`echo "$ac_i" | sed "$ac_script"` 23696 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23697 # will be set to the directory where LIBOBJS objects are built. 23698 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23699 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 23700done 23701LIBOBJS=$ac_libobjs 23702 23703LTLIBOBJS=$ac_ltlibobjs 23704 23705 23706if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 23707 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 23708Usually this means the macro was only invoked conditionally." >&5 23709echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 23710Usually this means the macro was only invoked conditionally." >&2;} 23711 { (exit 1); exit 1; }; } 23712fi 23713if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23714 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 23715Usually this means the macro was only invoked conditionally." >&5 23716echo "$as_me: error: conditional \"AMDEP\" was never defined. 23717Usually this means the macro was only invoked conditionally." >&2;} 23718 { (exit 1); exit 1; }; } 23719fi 23720if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23721 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 23722Usually this means the macro was only invoked conditionally." >&5 23723echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 23724Usually this means the macro was only invoked conditionally." >&2;} 23725 { (exit 1); exit 1; }; } 23726fi 23727if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23728 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 23729Usually this means the macro was only invoked conditionally." >&5 23730echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 23731Usually this means the macro was only invoked conditionally." >&2;} 23732 { (exit 1); exit 1; }; } 23733fi 23734 23735 ac_config_commands="$ac_config_commands po/stamp-it" 23736 23737 23738if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then 23739 { { echo "$as_me:$LINENO: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined. 23740Usually this means the macro was only invoked conditionally." >&5 23741echo "$as_me: error: conditional \"GCONF_SCHEMAS_INSTALL\" was never defined. 23742Usually this means the macro was only invoked conditionally." >&2;} 23743 { (exit 1); exit 1; }; } 23744fi 23745if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then 23746 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined. 23747Usually this means the macro was only invoked conditionally." >&5 23748echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined. 23749Usually this means the macro was only invoked conditionally." >&2;} 23750 { (exit 1); exit 1; }; } 23751fi 23752if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then 23753 { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 23754Usually this means the macro was only invoked conditionally." >&5 23755echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 23756Usually this means the macro was only invoked conditionally." >&2;} 23757 { (exit 1); exit 1; }; } 23758fi 23759if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then 23760 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TESTS\" was never defined. 23761Usually this means the macro was only invoked conditionally." >&5 23762echo "$as_me: error: conditional \"ENABLE_TESTS\" was never defined. 23763Usually this means the macro was only invoked conditionally." >&2;} 23764 { (exit 1); exit 1; }; } 23765fi 23766 23767: ${CONFIG_STATUS=./config.status} 23768ac_clean_files_save=$ac_clean_files 23769ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23770{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 23771echo "$as_me: creating $CONFIG_STATUS" >&6;} 23772cat >$CONFIG_STATUS <<_ACEOF 23773#! $SHELL 23774# Generated by $as_me. 23775# Run this file to recreate the current configuration. 23776# Compiler output produced by configure, useful for debugging 23777# configure, is in config.log if it exists. 23778 23779debug=false 23780ac_cs_recheck=false 23781ac_cs_silent=false 23782SHELL=\${CONFIG_SHELL-$SHELL} 23783_ACEOF 23784 23785cat >>$CONFIG_STATUS <<\_ACEOF 23786## --------------------- ## 23787## M4sh Initialization. ## 23788## --------------------- ## 23789 23790# Be more Bourne compatible 23791DUALCASE=1; export DUALCASE # for MKS sh 23792if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23793 emulate sh 23794 NULLCMD=: 23795 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 23796 # is contrary to our usage. Disable this feature. 23797 alias -g '${1+"$@"}'='"$@"' 23798 setopt NO_GLOB_SUBST 23799else 23800 case `(set -o) 2>/dev/null` in 23801 *posix*) set -o posix ;; 23802esac 23803 23804fi 23805 23806 23807 23808 23809# PATH needs CR 23810# Avoid depending upon Character Ranges. 23811as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23812as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23813as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23814as_cr_digits='0123456789' 23815as_cr_alnum=$as_cr_Letters$as_cr_digits 23816 23817# The user is always right. 23818if test "${PATH_SEPARATOR+set}" != set; then 23819 echo "#! /bin/sh" >conf$$.sh 23820 echo "exit 0" >>conf$$.sh 23821 chmod +x conf$$.sh 23822 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 23823 PATH_SEPARATOR=';' 23824 else 23825 PATH_SEPARATOR=: 23826 fi 23827 rm -f conf$$.sh 23828fi 23829 23830# Support unset when possible. 23831if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 23832 as_unset=unset 23833else 23834 as_unset=false 23835fi 23836 23837 23838# IFS 23839# We need space, tab and new line, in precisely that order. Quoting is 23840# there to prevent editors from complaining about space-tab. 23841# (If _AS_PATH_WALK were called with IFS unset, it would disable word 23842# splitting by setting IFS to empty value.) 23843as_nl=' 23844' 23845IFS=" "" $as_nl" 23846 23847# Find who we are. Look in the path if we contain no directory separator. 23848case $0 in 23849 *[\\/]* ) as_myself=$0 ;; 23850 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23851for as_dir in $PATH 23852do 23853 IFS=$as_save_IFS 23854 test -z "$as_dir" && as_dir=. 23855 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23856done 23857IFS=$as_save_IFS 23858 23859 ;; 23860esac 23861# We did not find ourselves, most probably we were run as `sh COMMAND' 23862# in which case we are not to be found in the path. 23863if test "x$as_myself" = x; then 23864 as_myself=$0 23865fi 23866if test ! -f "$as_myself"; then 23867 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23868 { (exit 1); exit 1; } 23869fi 23870 23871# Work around bugs in pre-3.0 UWIN ksh. 23872for as_var in ENV MAIL MAILPATH 23873do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23874done 23875PS1='$ ' 23876PS2='> ' 23877PS4='+ ' 23878 23879# NLS nuisances. 23880for as_var in \ 23881 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 23882 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 23883 LC_TELEPHONE LC_TIME 23884do 23885 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 23886 eval $as_var=C; export $as_var 23887 else 23888 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 23889 fi 23890done 23891 23892# Required to use basename. 23893if expr a : '\(a\)' >/dev/null 2>&1 && 23894 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23895 as_expr=expr 23896else 23897 as_expr=false 23898fi 23899 23900if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23901 as_basename=basename 23902else 23903 as_basename=false 23904fi 23905 23906 23907# Name of the executable. 23908as_me=`$as_basename -- "$0" || 23909$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23910 X"$0" : 'X\(//\)$' \| \ 23911 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23912echo X/"$0" | 23913 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23914 s//\1/ 23915 q 23916 } 23917 /^X\/\(\/\/\)$/{ 23918 s//\1/ 23919 q 23920 } 23921 /^X\/\(\/\).*/{ 23922 s//\1/ 23923 q 23924 } 23925 s/.*/./; q'` 23926 23927# CDPATH. 23928$as_unset CDPATH 23929 23930 23931 23932 as_lineno_1=$LINENO 23933 as_lineno_2=$LINENO 23934 test "x$as_lineno_1" != "x$as_lineno_2" && 23935 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 23936 23937 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 23938 # uniformly replaced by the line number. The first 'sed' inserts a 23939 # line-number line after each line using $LINENO; the second 'sed' 23940 # does the real work. The second script uses 'N' to pair each 23941 # line-number line with the line containing $LINENO, and appends 23942 # trailing '-' during substitution so that $LINENO is not a special 23943 # case at line end. 23944 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 23945 # scripts with optimization help from Paolo Bonzini. Blame Lee 23946 # E. McMahon (1931-1989) for sed's syntax. :-) 23947 sed -n ' 23948 p 23949 /[$]LINENO/= 23950 ' <$as_myself | 23951 sed ' 23952 s/[$]LINENO.*/&-/ 23953 t lineno 23954 b 23955 :lineno 23956 N 23957 :loop 23958 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 23959 t loop 23960 s/-\n.*// 23961 ' >$as_me.lineno && 23962 chmod +x "$as_me.lineno" || 23963 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 23964 { (exit 1); exit 1; }; } 23965 23966 # Don't try to exec as it changes $[0], causing all sort of problems 23967 # (the dirname of $[0] is not the place where we might find the 23968 # original and so on. Autoconf is especially sensitive to this). 23969 . "./$as_me.lineno" 23970 # Exit status is that of the last command. 23971 exit 23972} 23973 23974 23975if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23976 as_dirname=dirname 23977else 23978 as_dirname=false 23979fi 23980 23981ECHO_C= ECHO_N= ECHO_T= 23982case `echo -n x` in 23983-n*) 23984 case `echo 'x\c'` in 23985 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23986 *) ECHO_C='\c';; 23987 esac;; 23988*) 23989 ECHO_N='-n';; 23990esac 23991 23992if expr a : '\(a\)' >/dev/null 2>&1 && 23993 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23994 as_expr=expr 23995else 23996 as_expr=false 23997fi 23998 23999rm -f conf$$ conf$$.exe conf$$.file 24000if test -d conf$$.dir; then 24001 rm -f conf$$.dir/conf$$.file 24002else 24003 rm -f conf$$.dir 24004 mkdir conf$$.dir 24005fi 24006echo >conf$$.file 24007if ln -s conf$$.file conf$$ 2>/dev/null; then 24008 as_ln_s='ln -s' 24009 # ... but there are two gotchas: 24010 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 24011 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 24012 # In both cases, we have to default to `cp -p'. 24013 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 24014 as_ln_s='cp -p' 24015elif ln conf$$.file conf$$ 2>/dev/null; then 24016 as_ln_s=ln 24017else 24018 as_ln_s='cp -p' 24019fi 24020rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 24021rmdir conf$$.dir 2>/dev/null 24022 24023if mkdir -p . 2>/dev/null; then 24024 as_mkdir_p=: 24025else 24026 test -d ./-p && rmdir ./-p 24027 as_mkdir_p=false 24028fi 24029 24030if test -x / >/dev/null 2>&1; then 24031 as_test_x='test -x' 24032else 24033 if ls -dL / >/dev/null 2>&1; then 24034 as_ls_L_option=L 24035 else 24036 as_ls_L_option= 24037 fi 24038 as_test_x=' 24039 eval sh -c '\'' 24040 if test -d "$1"; then 24041 test -d "$1/."; 24042 else 24043 case $1 in 24044 -*)set "./$1";; 24045 esac; 24046 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 24047 ???[sx]*):;;*)false;;esac;fi 24048 '\'' sh 24049 ' 24050fi 24051as_executable_p=$as_test_x 24052 24053# Sed expression to map a string onto a valid CPP name. 24054as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24055 24056# Sed expression to map a string onto a valid variable name. 24057as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24058 24059 24060exec 6>&1 24061 24062# Save the log message, to keep $[0] and so on meaningful, and to 24063# report actual input values of CONFIG_FILES etc. instead of their 24064# values after options handling. 24065ac_log=" 24066This file was extended by rubrica2 $as_me 2.1.6, which was 24067generated by GNU Autoconf 2.61. Invocation command line was 24068 24069 CONFIG_FILES = $CONFIG_FILES 24070 CONFIG_HEADERS = $CONFIG_HEADERS 24071 CONFIG_LINKS = $CONFIG_LINKS 24072 CONFIG_COMMANDS = $CONFIG_COMMANDS 24073 $ $0 $@ 24074 24075on `(hostname || uname -n) 2>/dev/null | sed 1q` 24076" 24077 24078_ACEOF 24079 24080cat >>$CONFIG_STATUS <<_ACEOF 24081# Files that config.status was made for. 24082config_files="$ac_config_files" 24083config_headers="$ac_config_headers" 24084config_commands="$ac_config_commands" 24085 24086_ACEOF 24087 24088cat >>$CONFIG_STATUS <<\_ACEOF 24089ac_cs_usage="\ 24090\`$as_me' instantiates files from templates according to the 24091current configuration. 24092 24093Usage: $0 [OPTIONS] [FILE]... 24094 24095 -h, --help print this help, then exit 24096 -V, --version print version number and configuration settings, then exit 24097 -q, --quiet do not print progress messages 24098 -d, --debug don't remove temporary files 24099 --recheck update $as_me by reconfiguring in the same conditions 24100 --file=FILE[:TEMPLATE] 24101 instantiate the configuration file FILE 24102 --header=FILE[:TEMPLATE] 24103 instantiate the configuration header FILE 24104 24105Configuration files: 24106$config_files 24107 24108Configuration headers: 24109$config_headers 24110 24111Configuration commands: 24112$config_commands 24113 24114Report bugs to <bug-autoconf@gnu.org>." 24115 24116_ACEOF 24117cat >>$CONFIG_STATUS <<_ACEOF 24118ac_cs_version="\\ 24119rubrica2 config.status 2.1.6 24120configured by $0, generated by GNU Autoconf 2.61, 24121 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 24122 24123Copyright (C) 2006 Free Software Foundation, Inc. 24124This config.status script is free software; the Free Software Foundation 24125gives unlimited permission to copy, distribute and modify it." 24126 24127ac_pwd='$ac_pwd' 24128srcdir='$srcdir' 24129INSTALL='$INSTALL' 24130MKDIR_P='$MKDIR_P' 24131_ACEOF 24132 24133cat >>$CONFIG_STATUS <<\_ACEOF 24134# If no file are specified by the user, then we need to provide default 24135# value. By we need to know if files were specified by the user. 24136ac_need_defaults=: 24137while test $# != 0 24138do 24139 case $1 in 24140 --*=*) 24141 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24142 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24143 ac_shift=: 24144 ;; 24145 *) 24146 ac_option=$1 24147 ac_optarg=$2 24148 ac_shift=shift 24149 ;; 24150 esac 24151 24152 case $ac_option in 24153 # Handling of the options. 24154 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24155 ac_cs_recheck=: ;; 24156 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24157 echo "$ac_cs_version"; exit ;; 24158 --debug | --debu | --deb | --de | --d | -d ) 24159 debug=: ;; 24160 --file | --fil | --fi | --f ) 24161 $ac_shift 24162 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 24163 ac_need_defaults=false;; 24164 --header | --heade | --head | --hea ) 24165 $ac_shift 24166 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 24167 ac_need_defaults=false;; 24168 --he | --h) 24169 # Conflict between --help and --header 24170 { echo "$as_me: error: ambiguous option: $1 24171Try \`$0 --help' for more information." >&2 24172 { (exit 1); exit 1; }; };; 24173 --help | --hel | -h ) 24174 echo "$ac_cs_usage"; exit ;; 24175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24176 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24177 ac_cs_silent=: ;; 24178 24179 # This is an error. 24180 -*) { echo "$as_me: error: unrecognized option: $1 24181Try \`$0 --help' for more information." >&2 24182 { (exit 1); exit 1; }; } ;; 24183 24184 *) ac_config_targets="$ac_config_targets $1" 24185 ac_need_defaults=false ;; 24186 24187 esac 24188 shift 24189done 24190 24191ac_configure_extra_args= 24192 24193if $ac_cs_silent; then 24194 exec 6>/dev/null 24195 ac_configure_extra_args="$ac_configure_extra_args --silent" 24196fi 24197 24198_ACEOF 24199cat >>$CONFIG_STATUS <<_ACEOF 24200if \$ac_cs_recheck; then 24201 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 24202 CONFIG_SHELL=$SHELL 24203 export CONFIG_SHELL 24204 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24205fi 24206 24207_ACEOF 24208cat >>$CONFIG_STATUS <<\_ACEOF 24209exec 5>>config.log 24210{ 24211 echo 24212 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24213## Running $as_me. ## 24214_ASBOX 24215 echo "$ac_log" 24216} >&5 24217 24218_ACEOF 24219cat >>$CONFIG_STATUS <<_ACEOF 24220# 24221# INIT-COMMANDS 24222# 24223AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 24224INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}' 24225prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 24226INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' 24227 24228 24229_ACEOF 24230 24231cat >>$CONFIG_STATUS <<\_ACEOF 24232 24233# Handling of arguments. 24234for ac_config_target in $ac_config_targets 24235do 24236 case $ac_config_target in 24237 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 24238 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24239 "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;; 24240 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 24241 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24242 "rubrica2.spec") CONFIG_FILES="$CONFIG_FILES rubrica2.spec" ;; 24243 "rubrica2.desktop") CONFIG_FILES="$CONFIG_FILES rubrica2.desktop" ;; 24244 "rubrica2.schemas") CONFIG_FILES="$CONFIG_FILES rubrica2.schemas" ;; 24245 "rubrica2.keys") CONFIG_FILES="$CONFIG_FILES rubrica2.keys" ;; 24246 "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;; 24247 "pixmaps/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/16x16/Makefile" ;; 24248 "pixmaps/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/22x22/Makefile" ;; 24249 "pixmaps/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/24x24/Makefile" ;; 24250 "pixmaps/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/48x48/Makefile" ;; 24251 "pixmaps/scalable/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/scalable/Makefile" ;; 24252 "interface/Makefile") CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;; 24253 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 24254 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;; 24255 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 24256 "libral/Makefile") CONFIG_FILES="$CONFIG_FILES libral/Makefile" ;; 24257 "libral/libral.pc") CONFIG_FILES="$CONFIG_FILES libral/libral.pc" ;; 24258 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 24259 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; 24260 "plugins/thunderbird/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/thunderbird/Makefile" ;; 24261 "plugins/rubrica/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/rubrica/Makefile" ;; 24262 "plugins/vcard/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/vcard/Makefile" ;; 24263 "plugins/gmail/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/gmail/Makefile" ;; 24264 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 24265 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;; 24266 24267 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 24268echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 24269 { (exit 1); exit 1; }; };; 24270 esac 24271done 24272 24273 24274# If the user did not use the arguments to specify the items to instantiate, 24275# then the envvar interface is used. Set only those that are not. 24276# We use the long form for the default assignment because of an extremely 24277# bizarre bug on SunOS 4.1.3. 24278if $ac_need_defaults; then 24279 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24280 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24281 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24282fi 24283 24284# Have a temporary directory for convenience. Make it in the build tree 24285# simply because there is no reason against having it here, and in addition, 24286# creating and moving files from /tmp can sometimes cause problems. 24287# Hook for its removal unless debugging. 24288# Note that there is a small window in which the directory will not be cleaned: 24289# after its creation but before its name has been assigned to `$tmp'. 24290$debug || 24291{ 24292 tmp= 24293 trap 'exit_status=$? 24294 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 24295' 0 24296 trap '{ (exit 1); exit 1; }' 1 2 13 15 24297} 24298# Create a (secure) tmp directory for tmp files. 24299 24300{ 24301 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 24302 test -n "$tmp" && test -d "$tmp" 24303} || 24304{ 24305 tmp=./conf$$-$RANDOM 24306 (umask 077 && mkdir "$tmp") 24307} || 24308{ 24309 echo "$me: cannot create a temporary directory in ." >&2 24310 { (exit 1); exit 1; } 24311} 24312 24313# 24314# Set up the sed scripts for CONFIG_FILES section. 24315# 24316 24317# No need to generate the scripts if there are no CONFIG_FILES. 24318# This happens for instance when ./config.status config.h 24319if test -n "$CONFIG_FILES"; then 24320 24321_ACEOF 24322 24323 24324 24325ac_delim='%!_!# ' 24326for ac_last_try in false false false false false :; do 24327 cat >conf$$subs.sed <<_ACEOF 24328SHELL!$SHELL$ac_delim 24329PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 24330PACKAGE_NAME!$PACKAGE_NAME$ac_delim 24331PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 24332PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 24333PACKAGE_STRING!$PACKAGE_STRING$ac_delim 24334PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 24335exec_prefix!$exec_prefix$ac_delim 24336prefix!$prefix$ac_delim 24337program_transform_name!$program_transform_name$ac_delim 24338bindir!$bindir$ac_delim 24339sbindir!$sbindir$ac_delim 24340libexecdir!$libexecdir$ac_delim 24341datarootdir!$datarootdir$ac_delim 24342datadir!$datadir$ac_delim 24343sysconfdir!$sysconfdir$ac_delim 24344sharedstatedir!$sharedstatedir$ac_delim 24345localstatedir!$localstatedir$ac_delim 24346includedir!$includedir$ac_delim 24347oldincludedir!$oldincludedir$ac_delim 24348docdir!$docdir$ac_delim 24349infodir!$infodir$ac_delim 24350htmldir!$htmldir$ac_delim 24351dvidir!$dvidir$ac_delim 24352pdfdir!$pdfdir$ac_delim 24353psdir!$psdir$ac_delim 24354libdir!$libdir$ac_delim 24355localedir!$localedir$ac_delim 24356mandir!$mandir$ac_delim 24357DEFS!$DEFS$ac_delim 24358ECHO_C!$ECHO_C$ac_delim 24359ECHO_N!$ECHO_N$ac_delim 24360ECHO_T!$ECHO_T$ac_delim 24361LIBS!$LIBS$ac_delim 24362build_alias!$build_alias$ac_delim 24363host_alias!$host_alias$ac_delim 24364target_alias!$target_alias$ac_delim 24365RUBRICA_FILE_FORMAT!$RUBRICA_FILE_FORMAT$ac_delim 24366RUBRICA_NAME!$RUBRICA_NAME$ac_delim 24367RUBRICA_VERSION!$RUBRICA_VERSION$ac_delim 24368RUBRICA_CAP_NAME!$RUBRICA_CAP_NAME$ac_delim 24369PACKAGE_STATUS!$PACKAGE_STATUS$ac_delim 24370RUBRICA_CODE_NAME!$RUBRICA_CODE_NAME$ac_delim 24371RUBRICA_INFO_CODE_NAME!$RUBRICA_INFO_CODE_NAME$ac_delim 24372LIBRAL_CODE_NAME!$LIBRAL_CODE_NAME$ac_delim 24373LIBRAL_INFO_CODE_NAME!$LIBRAL_INFO_CODE_NAME$ac_delim 24374LIBRAL_VERSION!$LIBRAL_VERSION$ac_delim 24375LIBRAL_CURRENT_VERSION!$LIBRAL_CURRENT_VERSION$ac_delim 24376LIBRAL_REVISION_VERSION!$LIBRAL_REVISION_VERSION$ac_delim 24377LIBRAL_COMPAT_VERSION!$LIBRAL_COMPAT_VERSION$ac_delim 24378INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 24379INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 24380INSTALL_DATA!$INSTALL_DATA$ac_delim 24381am__isrc!$am__isrc$ac_delim 24382CYGPATH_W!$CYGPATH_W$ac_delim 24383PACKAGE!$PACKAGE$ac_delim 24384VERSION!$VERSION$ac_delim 24385ACLOCAL!$ACLOCAL$ac_delim 24386AUTOCONF!$AUTOCONF$ac_delim 24387AUTOMAKE!$AUTOMAKE$ac_delim 24388AUTOHEADER!$AUTOHEADER$ac_delim 24389MAKEINFO!$MAKEINFO$ac_delim 24390install_sh!$install_sh$ac_delim 24391STRIP!$STRIP$ac_delim 24392INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 24393mkdir_p!$mkdir_p$ac_delim 24394AWK!$AWK$ac_delim 24395SET_MAKE!$SET_MAKE$ac_delim 24396am__leading_dot!$am__leading_dot$ac_delim 24397AMTAR!$AMTAR$ac_delim 24398am__tar!$am__tar$ac_delim 24399am__untar!$am__untar$ac_delim 24400MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 24401MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 24402MAINT!$MAINT$ac_delim 24403CXX!$CXX$ac_delim 24404CXXFLAGS!$CXXFLAGS$ac_delim 24405LDFLAGS!$LDFLAGS$ac_delim 24406CPPFLAGS!$CPPFLAGS$ac_delim 24407ac_ct_CXX!$ac_ct_CXX$ac_delim 24408EXEEXT!$EXEEXT$ac_delim 24409OBJEXT!$OBJEXT$ac_delim 24410DEPDIR!$DEPDIR$ac_delim 24411am__include!$am__include$ac_delim 24412am__quote!$am__quote$ac_delim 24413AMDEP_TRUE!$AMDEP_TRUE$ac_delim 24414AMDEP_FALSE!$AMDEP_FALSE$ac_delim 24415AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 24416CXXDEPMODE!$CXXDEPMODE$ac_delim 24417am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 24418am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 24419CC!$CC$ac_delim 24420CFLAGS!$CFLAGS$ac_delim 24421ac_ct_CC!$ac_ct_CC$ac_delim 24422CCDEPMODE!$CCDEPMODE$ac_delim 24423am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 24424am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 24425_ACEOF 24426 24427 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 24428 break 24429 elif $ac_last_try; then 24430 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 24431echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 24432 { (exit 1); exit 1; }; } 24433 else 24434 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24435 fi 24436done 24437 24438ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 24439if test -n "$ac_eof"; then 24440 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 24441 ac_eof=`expr $ac_eof + 1` 24442fi 24443 24444cat >>$CONFIG_STATUS <<_ACEOF 24445cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 24446/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24447_ACEOF 24448sed ' 24449s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 24450s/^/s,@/; s/!/@,|#_!!_#|/ 24451:n 24452t n 24453s/'"$ac_delim"'$/,g/; t 24454s/$/\\/; p 24455N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 24456' >>$CONFIG_STATUS <conf$$subs.sed 24457rm -f conf$$subs.sed 24458cat >>$CONFIG_STATUS <<_ACEOF 24459CEOF$ac_eof 24460_ACEOF 24461 24462 24463ac_delim='%!_!# ' 24464for ac_last_try in false false false false false :; do 24465 cat >conf$$subs.sed <<_ACEOF 24466CPP!$CPP$ac_delim 24467LN_S!$LN_S$ac_delim 24468INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim 24469INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim 24470INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim 24471INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim 24472INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim 24473INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim 24474INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim 24475INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim 24476INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim 24477INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim 24478INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim 24479INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim 24480INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim 24481INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim 24482INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim 24483INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim 24484INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim 24485INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim 24486INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim 24487INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim 24488INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim 24489INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim 24490INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim 24491ALL_LINGUAS!$ALL_LINGUAS$ac_delim 24492DATADIRNAME!$DATADIRNAME$ac_delim 24493build!$build$ac_delim 24494build_cpu!$build_cpu$ac_delim 24495build_vendor!$build_vendor$ac_delim 24496build_os!$build_os$ac_delim 24497host!$host$ac_delim 24498host_cpu!$host_cpu$ac_delim 24499host_vendor!$host_vendor$ac_delim 24500host_os!$host_os$ac_delim 24501SED!$SED$ac_delim 24502GREP!$GREP$ac_delim 24503EGREP!$EGREP$ac_delim 24504ECHO!$ECHO$ac_delim 24505AR!$AR$ac_delim 24506RANLIB!$RANLIB$ac_delim 24507CXXCPP!$CXXCPP$ac_delim 24508F77!$F77$ac_delim 24509FFLAGS!$FFLAGS$ac_delim 24510ac_ct_F77!$ac_ct_F77$ac_delim 24511LIBTOOL!$LIBTOOL$ac_delim 24512LIBOBJS!$LIBOBJS$ac_delim 24513DESKTOP_ICON_PATH!$DESKTOP_ICON_PATH$ac_delim 24514GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim 24515PKG_CONFIG!$PKG_CONFIG$ac_delim 24516LIBRAL_CFLAGS!$LIBRAL_CFLAGS$ac_delim 24517LIBRAL_LIBS!$LIBRAL_LIBS$ac_delim 24518RUBRICA_CFLAGS!$RUBRICA_CFLAGS$ac_delim 24519RUBRICA_LIBS!$RUBRICA_LIBS$ac_delim 24520USE_NLS!$USE_NLS$ac_delim 24521MSGFMT!$MSGFMT$ac_delim 24522MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim 24523GMSGFMT!$GMSGFMT$ac_delim 24524XGETTEXT!$XGETTEXT$ac_delim 24525CATALOGS!$CATALOGS$ac_delim 24526CATOBJEXT!$CATOBJEXT$ac_delim 24527GMOFILES!$GMOFILES$ac_delim 24528INSTOBJEXT!$INSTOBJEXT$ac_delim 24529INTLLIBS!$INTLLIBS$ac_delim 24530PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim 24531PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim 24532POFILES!$POFILES$ac_delim 24533POSUB!$POSUB$ac_delim 24534MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim 24535GCONFTOOL!$GCONFTOOL$ac_delim 24536GCONF_SCHEMA_CONFIG_SOURCE!$GCONF_SCHEMA_CONFIG_SOURCE$ac_delim 24537GCONF_SCHEMA_FILE_DIR!$GCONF_SCHEMA_FILE_DIR$ac_delim 24538GCONF_SCHEMAS_INSTALL_TRUE!$GCONF_SCHEMAS_INSTALL_TRUE$ac_delim 24539GCONF_SCHEMAS_INSTALL_FALSE!$GCONF_SCHEMAS_INSTALL_FALSE$ac_delim 24540HTML_DIR!$HTML_DIR$ac_delim 24541ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim 24542ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim 24543GTK_DOC_USE_LIBTOOL_TRUE!$GTK_DOC_USE_LIBTOOL_TRUE$ac_delim 24544GTK_DOC_USE_LIBTOOL_FALSE!$GTK_DOC_USE_LIBTOOL_FALSE$ac_delim 24545libral_plugins_dir!$libral_plugins_dir$ac_delim 24546libral_plugins_gui_dir!$libral_plugins_gui_dir$ac_delim 24547libral_plugins_pixmaps_dir!$libral_plugins_pixmaps_dir$ac_delim 24548rubrica_data_dir!$rubrica_data_dir$ac_delim 24549rubrica_gui_dir!$rubrica_gui_dir$ac_delim 24550rubrica_pixmaps_dir!$rubrica_pixmaps_dir$ac_delim 24551rubrica_icons_dir!$rubrica_icons_dir$ac_delim 24552desktop_icon_path!$desktop_icon_path$ac_delim 24553ENABLE_DEBUG_CFLAGS!$ENABLE_DEBUG_CFLAGS$ac_delim 24554ENABLE_TESTS_TRUE!$ENABLE_TESTS_TRUE$ac_delim 24555ENABLE_TESTS_FALSE!$ENABLE_TESTS_FALSE$ac_delim 24556GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim 24557GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim 24558LTLIBOBJS!$LTLIBOBJS$ac_delim 24559_ACEOF 24560 24561 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then 24562 break 24563 elif $ac_last_try; then 24564 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 24565echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 24566 { (exit 1); exit 1; }; } 24567 else 24568 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24569 fi 24570done 24571 24572ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 24573if test -n "$ac_eof"; then 24574 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 24575 ac_eof=`expr $ac_eof + 1` 24576fi 24577 24578cat >>$CONFIG_STATUS <<_ACEOF 24579cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 24580/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 24581_ACEOF 24582sed ' 24583s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 24584s/^/s,@/; s/!/@,|#_!!_#|/ 24585:n 24586t n 24587s/'"$ac_delim"'$/,g/; t 24588s/$/\\/; p 24589N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 24590' >>$CONFIG_STATUS <conf$$subs.sed 24591rm -f conf$$subs.sed 24592cat >>$CONFIG_STATUS <<_ACEOF 24593:end 24594s/|#_!!_#|//g 24595CEOF$ac_eof 24596_ACEOF 24597 24598 24599# VPATH may cause trouble with some makes, so we remove $(srcdir), 24600# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 24601# trailing colons and then remove the whole line if VPATH becomes empty 24602# (actually we leave an empty line to preserve line numbers). 24603if test "x$srcdir" = x.; then 24604 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 24605s/:*\$(srcdir):*/:/ 24606s/:*\${srcdir}:*/:/ 24607s/:*@srcdir@:*/:/ 24608s/^\([^=]*=[ ]*\):*/\1/ 24609s/:*$// 24610s/^[^=]*=[ ]*$// 24611}' 24612fi 24613 24614cat >>$CONFIG_STATUS <<\_ACEOF 24615fi # test -n "$CONFIG_FILES" 24616 24617 24618for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 24619do 24620 case $ac_tag in 24621 :[FHLC]) ac_mode=$ac_tag; continue;; 24622 esac 24623 case $ac_mode$ac_tag in 24624 :[FHL]*:*);; 24625 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 24626echo "$as_me: error: Invalid tag $ac_tag." >&2;} 24627 { (exit 1); exit 1; }; };; 24628 :[FH]-) ac_tag=-:-;; 24629 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24630 esac 24631 ac_save_IFS=$IFS 24632 IFS=: 24633 set x $ac_tag 24634 IFS=$ac_save_IFS 24635 shift 24636 ac_file=$1 24637 shift 24638 24639 case $ac_mode in 24640 :L) ac_source=$1;; 24641 :[FH]) 24642 ac_file_inputs= 24643 for ac_f 24644 do 24645 case $ac_f in 24646 -) ac_f="$tmp/stdin";; 24647 *) # Look for the file first in the build tree, then in the source tree 24648 # (if the path is not absolute). The absolute path cannot be DOS-style, 24649 # because $ac_f cannot contain `:'. 24650 test -f "$ac_f" || 24651 case $ac_f in 24652 [\\/$]*) false;; 24653 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24654 esac || 24655 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 24656echo "$as_me: error: cannot find input file: $ac_f" >&2;} 24657 { (exit 1); exit 1; }; };; 24658 esac 24659 ac_file_inputs="$ac_file_inputs $ac_f" 24660 done 24661 24662 # Let's still pretend it is `configure' which instantiates (i.e., don't 24663 # use $as_me), people would be surprised to read: 24664 # /* config.h. Generated by config.status. */ 24665 configure_input="Generated from "`IFS=: 24666 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 24667 if test x"$ac_file" != x-; then 24668 configure_input="$ac_file. $configure_input" 24669 { echo "$as_me:$LINENO: creating $ac_file" >&5 24670echo "$as_me: creating $ac_file" >&6;} 24671 fi 24672 24673 case $ac_tag in 24674 *:-:* | *:-) cat >"$tmp/stdin";; 24675 esac 24676 ;; 24677 esac 24678 24679 ac_dir=`$as_dirname -- "$ac_file" || 24680$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24681 X"$ac_file" : 'X\(//\)[^/]' \| \ 24682 X"$ac_file" : 'X\(//\)$' \| \ 24683 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24684echo X"$ac_file" | 24685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24686 s//\1/ 24687 q 24688 } 24689 /^X\(\/\/\)[^/].*/{ 24690 s//\1/ 24691 q 24692 } 24693 /^X\(\/\/\)$/{ 24694 s//\1/ 24695 q 24696 } 24697 /^X\(\/\).*/{ 24698 s//\1/ 24699 q 24700 } 24701 s/.*/./; q'` 24702 { as_dir="$ac_dir" 24703 case $as_dir in #( 24704 -*) as_dir=./$as_dir;; 24705 esac 24706 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24707 as_dirs= 24708 while :; do 24709 case $as_dir in #( 24710 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24711 *) as_qdir=$as_dir;; 24712 esac 24713 as_dirs="'$as_qdir' $as_dirs" 24714 as_dir=`$as_dirname -- "$as_dir" || 24715$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24716 X"$as_dir" : 'X\(//\)[^/]' \| \ 24717 X"$as_dir" : 'X\(//\)$' \| \ 24718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24719echo X"$as_dir" | 24720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24721 s//\1/ 24722 q 24723 } 24724 /^X\(\/\/\)[^/].*/{ 24725 s//\1/ 24726 q 24727 } 24728 /^X\(\/\/\)$/{ 24729 s//\1/ 24730 q 24731 } 24732 /^X\(\/\).*/{ 24733 s//\1/ 24734 q 24735 } 24736 s/.*/./; q'` 24737 test -d "$as_dir" && break 24738 done 24739 test -z "$as_dirs" || eval "mkdir $as_dirs" 24740 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24741echo "$as_me: error: cannot create directory $as_dir" >&2;} 24742 { (exit 1); exit 1; }; }; } 24743 ac_builddir=. 24744 24745case "$ac_dir" in 24746.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24747*) 24748 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24749 # A ".." for each directory in $ac_dir_suffix. 24750 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 24751 case $ac_top_builddir_sub in 24752 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24753 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24754 esac ;; 24755esac 24756ac_abs_top_builddir=$ac_pwd 24757ac_abs_builddir=$ac_pwd$ac_dir_suffix 24758# for backward compatibility: 24759ac_top_builddir=$ac_top_build_prefix 24760 24761case $srcdir in 24762 .) # We are building in place. 24763 ac_srcdir=. 24764 ac_top_srcdir=$ac_top_builddir_sub 24765 ac_abs_top_srcdir=$ac_pwd ;; 24766 [\\/]* | ?:[\\/]* ) # Absolute name. 24767 ac_srcdir=$srcdir$ac_dir_suffix; 24768 ac_top_srcdir=$srcdir 24769 ac_abs_top_srcdir=$srcdir ;; 24770 *) # Relative name. 24771 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24772 ac_top_srcdir=$ac_top_build_prefix$srcdir 24773 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24774esac 24775ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24776 24777 24778 case $ac_mode in 24779 :F) 24780 # 24781 # CONFIG_FILE 24782 # 24783 24784 case $INSTALL in 24785 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24786 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24787 esac 24788 ac_MKDIR_P=$MKDIR_P 24789 case $MKDIR_P in 24790 [\\/$]* | ?:[\\/]* ) ;; 24791 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 24792 esac 24793_ACEOF 24794 24795cat >>$CONFIG_STATUS <<\_ACEOF 24796# If the template does not know about datarootdir, expand it. 24797# FIXME: This hack should be removed a few years after 2.60. 24798ac_datarootdir_hack=; ac_datarootdir_seen= 24799 24800case `sed -n '/datarootdir/ { 24801 p 24802 q 24803} 24804/@datadir@/p 24805/@docdir@/p 24806/@infodir@/p 24807/@localedir@/p 24808/@mandir@/p 24809' $ac_file_inputs` in 24810*datarootdir*) ac_datarootdir_seen=yes;; 24811*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24812 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24813echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24814_ACEOF 24815cat >>$CONFIG_STATUS <<_ACEOF 24816 ac_datarootdir_hack=' 24817 s&@datadir@&$datadir&g 24818 s&@docdir@&$docdir&g 24819 s&@infodir@&$infodir&g 24820 s&@localedir@&$localedir&g 24821 s&@mandir@&$mandir&g 24822 s&\\\${datarootdir}&$datarootdir&g' ;; 24823esac 24824_ACEOF 24825 24826# Neutralize VPATH when `$srcdir' = `.'. 24827# Shell code in configure.ac might set extrasub. 24828# FIXME: do we really want to maintain this feature? 24829cat >>$CONFIG_STATUS <<_ACEOF 24830 sed "$ac_vpsub 24831$extrasub 24832_ACEOF 24833cat >>$CONFIG_STATUS <<\_ACEOF 24834:t 24835/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24836s&@configure_input@&$configure_input&;t t 24837s&@top_builddir@&$ac_top_builddir_sub&;t t 24838s&@srcdir@&$ac_srcdir&;t t 24839s&@abs_srcdir@&$ac_abs_srcdir&;t t 24840s&@top_srcdir@&$ac_top_srcdir&;t t 24841s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24842s&@builddir@&$ac_builddir&;t t 24843s&@abs_builddir@&$ac_abs_builddir&;t t 24844s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24845s&@INSTALL@&$ac_INSTALL&;t t 24846s&@MKDIR_P@&$ac_MKDIR_P&;t t 24847$ac_datarootdir_hack 24848" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 24849 24850test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24851 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 24852 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 24853 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24854which seems to be undefined. Please make sure it is defined." >&5 24855echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24856which seems to be undefined. Please make sure it is defined." >&2;} 24857 24858 rm -f "$tmp/stdin" 24859 case $ac_file in 24860 -) cat "$tmp/out"; rm -f "$tmp/out";; 24861 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 24862 esac 24863 ;; 24864 :H) 24865 # 24866 # CONFIG_HEADER 24867 # 24868_ACEOF 24869 24870# Transform confdefs.h into a sed script `conftest.defines', that 24871# substitutes the proper values into config.h.in to produce config.h. 24872rm -f conftest.defines conftest.tail 24873# First, append a space to every undef/define line, to ease matching. 24874echo 's/$/ /' >conftest.defines 24875# Then, protect against being on the right side of a sed subst, or in 24876# an unquoted here document, in config.status. If some macros were 24877# called several times there might be several #defines for the same 24878# symbol, which is useless. But do not sort them, since the last 24879# AC_DEFINE must be honored. 24880ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24881# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 24882# NAME is the cpp macro being defined, VALUE is the value it is being given. 24883# PARAMS is the parameter list in the macro definition--in most cases, it's 24884# just an empty string. 24885ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 24886ac_dB='\\)[ (].*,\\1define\\2' 24887ac_dC=' ' 24888ac_dD=' ,' 24889 24890uniq confdefs.h | 24891 sed -n ' 24892 t rset 24893 :rset 24894 s/^[ ]*#[ ]*define[ ][ ]*// 24895 t ok 24896 d 24897 :ok 24898 s/[\\&,]/\\&/g 24899 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 24900 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 24901 ' >>conftest.defines 24902 24903# Remove the space that was appended to ease matching. 24904# Then replace #undef with comments. This is necessary, for 24905# example, in the case of _POSIX_SOURCE, which is predefined and required 24906# on some systems where configure will not decide to define it. 24907# (The regexp can be short, since the line contains either #define or #undef.) 24908echo 's/ $// 24909s,^[ #]*u.*,/* & */,' >>conftest.defines 24910 24911# Break up conftest.defines: 24912ac_max_sed_lines=50 24913 24914# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 24915# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 24916# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 24917# et cetera. 24918ac_in='$ac_file_inputs' 24919ac_out='"$tmp/out1"' 24920ac_nxt='"$tmp/out2"' 24921 24922while : 24923do 24924 # Write a here document: 24925 cat >>$CONFIG_STATUS <<_ACEOF 24926 # First, check the format of the line: 24927 cat >"\$tmp/defines.sed" <<\\CEOF 24928/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 24929/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 24930b 24931:def 24932_ACEOF 24933 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 24934 echo 'CEOF 24935 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 24936 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 24937 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 24938 grep . conftest.tail >/dev/null || break 24939 rm -f conftest.defines 24940 mv conftest.tail conftest.defines 24941done 24942rm -f conftest.defines conftest.tail 24943 24944echo "ac_result=$ac_in" >>$CONFIG_STATUS 24945cat >>$CONFIG_STATUS <<\_ACEOF 24946 if test x"$ac_file" != x-; then 24947 echo "/* $configure_input */" >"$tmp/config.h" 24948 cat "$ac_result" >>"$tmp/config.h" 24949 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 24950 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 24951echo "$as_me: $ac_file is unchanged" >&6;} 24952 else 24953 rm -f $ac_file 24954 mv "$tmp/config.h" $ac_file 24955 fi 24956 else 24957 echo "/* $configure_input */" 24958 cat "$ac_result" 24959 fi 24960 rm -f "$tmp/out12" 24961# Compute $ac_file's index in $config_headers. 24962_am_stamp_count=1 24963for _am_header in $config_headers :; do 24964 case $_am_header in 24965 $ac_file | $ac_file:* ) 24966 break ;; 24967 * ) 24968 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24969 esac 24970done 24971echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 24972$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24973 X$ac_file : 'X\(//\)[^/]' \| \ 24974 X$ac_file : 'X\(//\)$' \| \ 24975 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 24976echo X$ac_file | 24977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24978 s//\1/ 24979 q 24980 } 24981 /^X\(\/\/\)[^/].*/{ 24982 s//\1/ 24983 q 24984 } 24985 /^X\(\/\/\)$/{ 24986 s//\1/ 24987 q 24988 } 24989 /^X\(\/\).*/{ 24990 s//\1/ 24991 q 24992 } 24993 s/.*/./; q'`/stamp-h$_am_stamp_count 24994 ;; 24995 24996 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 24997echo "$as_me: executing $ac_file commands" >&6;} 24998 ;; 24999 esac 25000 25001 25002 case $ac_file$ac_mode in 25003 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 25004 # Strip MF so we end up with the name of the file. 25005 mf=`echo "$mf" | sed -e 's/:.*$//'` 25006 # Check whether this is an Automake generated Makefile or not. 25007 # We used to match only the files named `Makefile.in', but 25008 # some people rename them; so instead we look at the file content. 25009 # Grep'ing the first line is not enough: some people post-process 25010 # each Makefile.in and add a new line on top of each file to say so. 25011 # Grep'ing the whole file is not good either: AIX grep has a line 25012 # limit of 2048, but all sed's we know have understand at least 4000. 25013 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 25014 dirpart=`$as_dirname -- "$mf" || 25015$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25016 X"$mf" : 'X\(//\)[^/]' \| \ 25017 X"$mf" : 'X\(//\)$' \| \ 25018 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 25019echo X"$mf" | 25020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25021 s//\1/ 25022 q 25023 } 25024 /^X\(\/\/\)[^/].*/{ 25025 s//\1/ 25026 q 25027 } 25028 /^X\(\/\/\)$/{ 25029 s//\1/ 25030 q 25031 } 25032 /^X\(\/\).*/{ 25033 s//\1/ 25034 q 25035 } 25036 s/.*/./; q'` 25037 else 25038 continue 25039 fi 25040 # Extract the definition of DEPDIR, am__include, and am__quote 25041 # from the Makefile without running `make'. 25042 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 25043 test -z "$DEPDIR" && continue 25044 am__include=`sed -n 's/^am__include = //p' < "$mf"` 25045 test -z "am__include" && continue 25046 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 25047 # When using ansi2knr, U may be empty or an underscore; expand it 25048 U=`sed -n 's/^U = //p' < "$mf"` 25049 # Find all dependency output files, they are included files with 25050 # $(DEPDIR) in their names. We invoke sed twice because it is the 25051 # simplest approach to changing $(DEPDIR) to its actual value in the 25052 # expansion. 25053 for file in `sed -n " 25054 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 25055 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 25056 # Make sure the directory exists. 25057 test -f "$dirpart/$file" && continue 25058 fdir=`$as_dirname -- "$file" || 25059$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25060 X"$file" : 'X\(//\)[^/]' \| \ 25061 X"$file" : 'X\(//\)$' \| \ 25062 X"$file" : 'X\(/\)' \| . 2>/dev/null || 25063echo X"$file" | 25064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25065 s//\1/ 25066 q 25067 } 25068 /^X\(\/\/\)[^/].*/{ 25069 s//\1/ 25070 q 25071 } 25072 /^X\(\/\/\)$/{ 25073 s//\1/ 25074 q 25075 } 25076 /^X\(\/\).*/{ 25077 s//\1/ 25078 q 25079 } 25080 s/.*/./; q'` 25081 { as_dir=$dirpart/$fdir 25082 case $as_dir in #( 25083 -*) as_dir=./$as_dir;; 25084 esac 25085 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 25086 as_dirs= 25087 while :; do 25088 case $as_dir in #( 25089 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 25090 *) as_qdir=$as_dir;; 25091 esac 25092 as_dirs="'$as_qdir' $as_dirs" 25093 as_dir=`$as_dirname -- "$as_dir" || 25094$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25095 X"$as_dir" : 'X\(//\)[^/]' \| \ 25096 X"$as_dir" : 'X\(//\)$' \| \ 25097 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25098echo X"$as_dir" | 25099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25100 s//\1/ 25101 q 25102 } 25103 /^X\(\/\/\)[^/].*/{ 25104 s//\1/ 25105 q 25106 } 25107 /^X\(\/\/\)$/{ 25108 s//\1/ 25109 q 25110 } 25111 /^X\(\/\).*/{ 25112 s//\1/ 25113 q 25114 } 25115 s/.*/./; q'` 25116 test -d "$as_dir" && break 25117 done 25118 test -z "$as_dirs" || eval "mkdir $as_dirs" 25119 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 25120echo "$as_me: error: cannot create directory $as_dir" >&2;} 25121 { (exit 1); exit 1; }; }; } 25122 # echo "creating $dirpart/$file" 25123 echo '# dummy' > "$dirpart/$file" 25124 done 25125done 25126 ;; 25127 "intltool":C) 25128 25129for file in intltool-extract intltool-merge intltool-update; do 25130 sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \ 25131 -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \ 25132 -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \ 25133 < ${ac_aux_dir}/${file}.in > ${file}.out 25134 if cmp -s ${file} ${file}.out 2>/dev/null; then 25135 rm -f ${file}.out 25136 else 25137 mv -f ${file}.out ${file} 25138 fi 25139 chmod ugo+x ${file} 25140 chmod u+w ${file} 25141done 25142 25143 ;; 25144 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*) 25145 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile 25146 esac ;; 25147 "po/stamp-it":C) 25148 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp" 25149 >"po/stamp-it.tmp" 25150 sed '/^#/d 25151 s/^[[].*] *// 25152 /^[ ]*$/d 25153 '"s|^| $ac_top_srcdir/|" \ 25154 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES" 25155 25156 if test ! -f "po/Makefile"; then 25157 { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5 25158echo "$as_me: error: po/Makefile is not ready." >&2;} 25159 { (exit 1); exit 1; }; } 25160 fi 25161 mv "po/Makefile" "po/Makefile.tmp" 25162 sed '/^POTFILES =/,/[^\\]$/ { 25163 /^POTFILES =/!d 25164 r po/POTFILES 25165 } 25166 ' "po/Makefile.tmp" >"po/Makefile" 25167 rm -f "po/Makefile.tmp" 25168 mv "po/stamp-it.tmp" "po/stamp-it" 25169 ;; 25170 25171 esac 25172done # for ac_tag 25173 25174 25175{ (exit 0); exit 0; } 25176_ACEOF 25177chmod +x $CONFIG_STATUS 25178ac_clean_files=$ac_clean_files_save 25179 25180 25181# configure is writing to config.log, and then calls config.status. 25182# config.status does its own redirection, appending to config.log. 25183# Unfortunately, on DOS this fails, as config.log is still kept open 25184# by configure, so config.status won't be able to write to it; its 25185# output is simply discarded. So we exec the FD to /dev/null, 25186# effectively closing config.log, so it can be properly (re)opened and 25187# appended to by config.status. When coming back to configure, we 25188# need to make the FD available again. 25189if test "$no_create" != yes; then 25190 ac_cs_success=: 25191 ac_config_status_args= 25192 test "$silent" = yes && 25193 ac_config_status_args="$ac_config_status_args --quiet" 25194 exec 5>/dev/null 25195 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25196 exec 5>>config.log 25197 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25198 # would make configure fail if this is the last instruction. 25199 $ac_cs_success || { (exit 1); exit 1; } 25200fi 25201 25202 25203 25204 25205echo " 25206 25207Configuration: 25208 Package name: $PACKAGE 25209 Version: $PACKAGE_VERSION ($PACKAGE_STATUS) 25210 25211 Plugins dir: $libral_plugins_dir 25212 Plugins gui dir: $libral_plugins_gui_dir 25213 Pixmap dir: $rubrica_pixmaps_dir 25214 Icons dir: $rubrica_icons_dir 25215 Config dir: ${sysconfdir}/gconf/schemas 25216 Code name: $RUBRICA_CODE_NAME: $RUBRICA_INFO_CODE_NAME 25217" 25218 25219if test "x$enable_debug" = "xyes"; then 25220echo " 25221 Debug enabled $enable_debug 25222" 25223fi 25224 25225